mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
822 lines
1.6 MiB
822 lines
1.6 MiB
(function(ka,A){typeof exports=="object"&&typeof module<"u"?A(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],A):(ka=typeof globalThis<"u"?globalThis:ka||self,A(ka["InvokeAI UI"]={},ka.React,ka.reactDom))})(this,function(ka,A,v2){"use strict";function hq(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}function pq(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 a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const vt=hq(A);var zs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mq(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v={},vq={get exports(){return v},set exports(e){v=e}},Mb={};/**
|
||
* @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 SM;function gq(){if(SM)return Mb;SM=1;var e=A,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(l,c,d){var p,g={},S=null,w=null;d!==void 0&&(S=""+d),c.key!==void 0&&(S=""+c.key),c.ref!==void 0&&(w=c.ref);for(p in c)r.call(c,p)&&!a.hasOwnProperty(p)&&(g[p]=c[p]);if(l&&l.defaultProps)for(p in c=l.defaultProps,c)g[p]===void 0&&(g[p]=c[p]);return{$$typeof:t,type:l,key:S,ref:w,props:g,_owner:i.current}}return Mb.Fragment=n,Mb.jsx=o,Mb.jsxs=o,Mb}var jb={};/**
|
||
* @license React
|
||
* react-jsx-runtime.development.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 xM;function yq(){return xM||(xM=1,process.env.NODE_ENV!=="production"&&function(){var e=A,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),C=Symbol.iterator,k="@@iterator";function P(pe){if(pe===null||typeof pe!="object")return null;var ft=C&&pe[C]||pe[k];return typeof ft=="function"?ft:null}var D=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function M(pe){{for(var ft=arguments.length,kt=new Array(ft>1?ft-1:0),an=1;an<ft;an++)kt[an-1]=arguments[an];R("error",pe,kt)}}function R(pe,ft,kt){{var an=D.ReactDebugCurrentFrame,er=an.getStackAddendum();er!==""&&(ft+="%s",kt=kt.concat([er]));var Pn=kt.map(function(zn){return String(zn)});Pn.unshift("Warning: "+ft),Function.prototype.apply.call(console[pe],console,Pn)}}var L=!1,z=!1,U=!1,V=!1,Y=!1,J;J=Symbol.for("react.module.reference");function $(pe){return!!(typeof pe=="string"||typeof pe=="function"||pe===r||pe===a||Y||pe===i||pe===d||pe===p||V||pe===w||L||z||U||typeof pe=="object"&&pe!==null&&(pe.$$typeof===S||pe.$$typeof===g||pe.$$typeof===o||pe.$$typeof===l||pe.$$typeof===c||pe.$$typeof===J||pe.getModuleId!==void 0))}function K(pe,ft,kt){var an=pe.displayName;if(an)return an;var er=ft.displayName||ft.name||"";return er!==""?kt+"("+er+")":kt}function fe(pe){return pe.displayName||"Context"}function X(pe){if(pe==null)return null;if(typeof pe.tag=="number"&&M("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof pe=="function")return pe.displayName||pe.name||null;if(typeof pe=="string")return pe;switch(pe){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case p:return"SuspenseList"}if(typeof pe=="object")switch(pe.$$typeof){case l:var ft=pe;return fe(ft)+".Consumer";case o:var kt=pe;return fe(kt._context)+".Provider";case c:return K(pe,pe.render,"ForwardRef");case g:var an=pe.displayName||null;return an!==null?an:X(pe.type)||"Memo";case S:{var er=pe,Pn=er._payload,zn=er._init;try{return X(zn(Pn))}catch{return null}}}return null}var G=Object.assign,te=0,re,oe,ie,le,ee,de,Fe;function Pe(){}Pe.__reactDisabledLog=!0;function Oe(){{if(te===0){re=console.log,oe=console.info,ie=console.warn,le=console.error,ee=console.group,de=console.groupCollapsed,Fe=console.groupEnd;var pe={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:pe,log:pe,warn:pe,error:pe,group:pe,groupCollapsed:pe,groupEnd:pe})}te++}}function Ie(){{if(te--,te===0){var pe={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},pe,{value:re}),info:G({},pe,{value:oe}),warn:G({},pe,{value:ie}),error:G({},pe,{value:le}),group:G({},pe,{value:ee}),groupCollapsed:G({},pe,{value:de}),groupEnd:G({},pe,{value:Fe})})}te<0&&M("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var De=D.ReactCurrentDispatcher,$e;function it(pe,ft,kt){{if($e===void 0)try{throw Error()}catch(er){var an=er.stack.trim().match(/\n( *(at )?)/);$e=an&&an[1]||""}return`
|
||
`+$e+pe}}var mt=!1,bt;{var qe=typeof WeakMap=="function"?WeakMap:Map;bt=new qe}function Ce(pe,ft){if(!pe||mt)return"";{var kt=bt.get(pe);if(kt!==void 0)return kt}var an;mt=!0;var er=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Pn;Pn=De.current,De.current=null,Oe();try{if(ft){var zn=function(){throw Error()};if(Object.defineProperty(zn.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(zn,[])}catch(fa){an=fa}Reflect.construct(pe,[],zn)}else{try{zn.call()}catch(fa){an=fa}pe.call(zn.prototype)}}else{try{throw Error()}catch(fa){an=fa}pe()}}catch(fa){if(fa&&an&&typeof fa.stack=="string"){for(var Nn=fa.stack.split(`
|
||
`),Ei=an.stack.split(`
|
||
`),Dr=Nn.length-1,Mr=Ei.length-1;Dr>=1&&Mr>=0&&Nn[Dr]!==Ei[Mr];)Mr--;for(;Dr>=1&&Mr>=0;Dr--,Mr--)if(Nn[Dr]!==Ei[Mr]){if(Dr!==1||Mr!==1)do if(Dr--,Mr--,Mr<0||Nn[Dr]!==Ei[Mr]){var fi=`
|
||
`+Nn[Dr].replace(" at new "," at ");return pe.displayName&&fi.includes("<anonymous>")&&(fi=fi.replace("<anonymous>",pe.displayName)),typeof pe=="function"&&bt.set(pe,fi),fi}while(Dr>=1&&Mr>=0);break}}}finally{mt=!1,De.current=Pn,Ie(),Error.prepareStackTrace=er}var uo=pe?pe.displayName||pe.name:"",ru=uo?it(uo):"";return typeof pe=="function"&&bt.set(pe,ru),ru}function Nt(pe,ft,kt){return Ce(pe,!1)}function Ae(pe){var ft=pe.prototype;return!!(ft&&ft.isReactComponent)}function xt(pe,ft,kt){if(pe==null)return"";if(typeof pe=="function")return Ce(pe,Ae(pe));if(typeof pe=="string")return it(pe);switch(pe){case d:return it("Suspense");case p:return it("SuspenseList")}if(typeof pe=="object")switch(pe.$$typeof){case c:return Nt(pe.render);case g:return xt(pe.type,ft,kt);case S:{var an=pe,er=an._payload,Pn=an._init;try{return xt(Pn(er),ft,kt)}catch{}}}return""}var ln=Object.prototype.hasOwnProperty,Wt={},In=D.ReactDebugCurrentFrame;function ar(pe){if(pe){var ft=pe._owner,kt=xt(pe.type,pe._source,ft?ft.type:null);In.setExtraStackFrame(kt)}else In.setExtraStackFrame(null)}function we(pe,ft,kt,an,er){{var Pn=Function.call.bind(ln);for(var zn in pe)if(Pn(pe,zn)){var Nn=void 0;try{if(typeof pe[zn]!="function"){var Ei=Error((an||"React class")+": "+kt+" type `"+zn+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof pe[zn]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ei.name="Invariant Violation",Ei}Nn=pe[zn](ft,zn,an,kt,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Dr){Nn=Dr}Nn&&!(Nn instanceof Error)&&(ar(er),M("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",an||"React class",kt,zn,typeof Nn),ar(null)),Nn instanceof Error&&!(Nn.message in Wt)&&(Wt[Nn.message]=!0,ar(er),M("Failed %s type: %s",kt,Nn.message),ar(null))}}}var at=Array.isArray;function ot(pe){return at(pe)}function yt(pe){{var ft=typeof Symbol=="function"&&Symbol.toStringTag,kt=ft&&pe[Symbol.toStringTag]||pe.constructor.name||"Object";return kt}}function He(pe){try{return st(pe),!1}catch{return!0}}function st(pe){return""+pe}function Zt(pe){if(He(pe))return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yt(pe)),st(pe)}var nn=D.ReactCurrentOwner,Ze={key:!0,ref:!0,__self:!0,__source:!0},rn,Rn,lt;lt={};function Ge(pe){if(ln.call(pe,"ref")){var ft=Object.getOwnPropertyDescriptor(pe,"ref").get;if(ft&&ft.isReactWarning)return!1}return pe.ref!==void 0}function pt(pe){if(ln.call(pe,"key")){var ft=Object.getOwnPropertyDescriptor(pe,"key").get;if(ft&&ft.isReactWarning)return!1}return pe.key!==void 0}function Bt(pe,ft){if(typeof pe.ref=="string"&&nn.current&&ft&&nn.current.stateNode!==ft){var kt=X(nn.current.type);lt[kt]||(M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',X(nn.current.type),pe.ref),lt[kt]=!0)}}function jn(pe,ft){{var kt=function(){rn||(rn=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ft))};kt.isReactWarning=!0,Object.defineProperty(pe,"key",{get:kt,configurable:!0})}}function Un(pe,ft){{var kt=function(){Rn||(Rn=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",ft))};kt.isReactWarning=!0,Object.defineProperty(pe,"ref",{get:kt,configurable:!0})}}var Mt=function(pe,ft,kt,an,er,Pn,zn){var Nn={$$typeof:t,type:pe,key:ft,ref:kt,props:zn,_owner:Pn};return Nn._store={},Object.defineProperty(Nn._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Nn,"_self",{configurable:!1,enumerable:!1,writable:!1,value:an}),Object.defineProperty(Nn,"_source",{configurable:!1,enumerable:!1,writable:!1,value:er}),Object.freeze&&(Object.freeze(Nn.props),Object.freeze(Nn)),Nn};function Lt(pe,ft,kt,an,er){{var Pn,zn={},Nn=null,Ei=null;kt!==void 0&&(Zt(kt),Nn=""+kt),pt(ft)&&(Zt(ft.key),Nn=""+ft.key),Ge(ft)&&(Ei=ft.ref,Bt(ft,er));for(Pn in ft)ln.call(ft,Pn)&&!Ze.hasOwnProperty(Pn)&&(zn[Pn]=ft[Pn]);if(pe&&pe.defaultProps){var Dr=pe.defaultProps;for(Pn in Dr)zn[Pn]===void 0&&(zn[Pn]=Dr[Pn])}if(Nn||Ei){var Mr=typeof pe=="function"?pe.displayName||pe.name||"Unknown":pe;Nn&&jn(zn,Mr),Ei&&Un(zn,Mr)}return Mt(pe,Nn,Ei,er,an,nn.current,zn)}}var vr=D.ReactCurrentOwner,gr=D.ReactDebugCurrentFrame;function hn(pe){if(pe){var ft=pe._owner,kt=xt(pe.type,pe._source,ft?ft.type:null);gr.setExtraStackFrame(kt)}else gr.setExtraStackFrame(null)}var ri;ri=!1;function Ys(pe){return typeof pe=="object"&&pe!==null&&pe.$$typeof===t}function so(){{if(vr.current){var pe=X(vr.current.type);if(pe)return`
|
||
|
||
Check the render method of \``+pe+"`."}return""}}function qn(pe){{if(pe!==void 0){var ft=pe.fileName.replace(/^.*[\\\/]/,""),kt=pe.lineNumber;return`
|
||
|
||
Check your code at `+ft+":"+kt+"."}return""}}var Io={};function lo(pe){{var ft=so();if(!ft){var kt=typeof pe=="string"?pe:pe.displayName||pe.name;kt&&(ft=`
|
||
|
||
Check the top-level render call using <`+kt+">.")}return ft}}function Xo(pe,ft){{if(!pe._store||pe._store.validated||pe.key!=null)return;pe._store.validated=!0;var kt=lo(ft);if(Io[kt])return;Io[kt]=!0;var an="";pe&&pe._owner&&pe._owner!==vr.current&&(an=" It was passed a child from "+X(pe._owner.type)+"."),hn(pe),M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',kt,an),hn(null)}}function Na(pe,ft){{if(typeof pe!="object")return;if(ot(pe))for(var kt=0;kt<pe.length;kt++){var an=pe[kt];Ys(an)&&Xo(an,ft)}else if(Ys(pe))pe._store&&(pe._store.validated=!0);else if(pe){var er=P(pe);if(typeof er=="function"&&er!==pe.entries)for(var Pn=er.call(pe),zn;!(zn=Pn.next()).done;)Ys(zn.value)&&Xo(zn.value,ft)}}}function Fi(pe){{var ft=pe.type;if(ft==null||typeof ft=="string")return;var kt;if(typeof ft=="function")kt=ft.propTypes;else if(typeof ft=="object"&&(ft.$$typeof===c||ft.$$typeof===g))kt=ft.propTypes;else return;if(kt){var an=X(ft);we(kt,pe.props,"prop",an,pe)}else if(ft.PropTypes!==void 0&&!ri){ri=!0;var er=X(ft);M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",er||"Unknown")}typeof ft.getDefaultProps=="function"&&!ft.getDefaultProps.isReactClassApproved&&M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qo(pe){{for(var ft=Object.keys(pe.props),kt=0;kt<ft.length;kt++){var an=ft[kt];if(an!=="children"&&an!=="key"){hn(pe),M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",an),hn(null);break}}pe.ref!==null&&(hn(pe),M("Invalid attribute `ref` supplied to `React.Fragment`."),hn(null))}}function tu(pe,ft,kt,an,er,Pn){{var zn=$(pe);if(!zn){var Nn="";(pe===void 0||typeof pe=="object"&&pe!==null&&Object.keys(pe).length===0)&&(Nn+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ei=qn(er);Ei?Nn+=Ei:Nn+=so();var Dr;pe===null?Dr="null":ot(pe)?Dr="array":pe!==void 0&&pe.$$typeof===t?(Dr="<"+(X(pe.type)||"Unknown")+" />",Nn=" Did you accidentally export a JSX literal instead of a component?"):Dr=typeof pe,M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Dr,Nn)}var Mr=Lt(pe,ft,kt,er,Pn);if(Mr==null)return Mr;if(zn){var fi=ft.children;if(fi!==void 0)if(an)if(ot(fi)){for(var uo=0;uo<fi.length;uo++)Na(fi[uo],pe);Object.freeze&&Object.freeze(fi)}else M("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Na(fi,pe)}return pe===r?Qo(Mr):Fi(Mr),Mr}}function Ku(pe,ft,kt){return tu(pe,ft,kt,!0)}function Wc(pe,ft,kt){return tu(pe,ft,kt,!1)}var nu=Wc,di=Ku;jb.Fragment=r,jb.jsx=nu,jb.jsxs=di}()),jb}(function(e){process.env.NODE_ENV==="production"?e.exports=gq():e.exports=yq()})(vq);var g2={},bq={get exports(){return g2},set exports(e){g2=e}},TT={};/**
|
||
* @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 wM;function Sq(){if(wM)return TT;wM=1;var e=A;function t(g,S){return g===S&&(g!==0||1/g===1/S)||g!==g&&S!==S}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function l(g,S){var w=S(),C=r({inst:{value:w,getSnapshot:S}}),k=C[0].inst,P=C[1];return a(function(){k.value=w,k.getSnapshot=S,c(k)&&P({inst:k})},[g,w,S]),i(function(){return c(k)&&P({inst:k}),g(function(){c(k)&&P({inst:k})})},[g]),o(w),w}function c(g){var S=g.getSnapshot;g=g.value;try{var w=S();return!n(g,w)}catch{return!0}}function d(g,S){return S()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return TT.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,TT}var kT={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim.development.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 CM;function xq(){return CM||(CM=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=A,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(R){{for(var L=arguments.length,z=new Array(L>1?L-1:0),U=1;U<L;U++)z[U-1]=arguments[U];r("error",R,z)}}function r(R,L,z){{var U=t.ReactDebugCurrentFrame,V=U.getStackAddendum();V!==""&&(L+="%s",z=z.concat([V]));var Y=z.map(function(J){return String(J)});Y.unshift("Warning: "+L),Function.prototype.apply.call(console[R],console,Y)}}function i(R,L){return R===L&&(R!==0||1/R===1/L)||R!==R&&L!==L}var a=typeof Object.is=="function"?Object.is:i,o=e.useState,l=e.useEffect,c=e.useLayoutEffect,d=e.useDebugValue,p=!1,g=!1;function S(R,L,z){p||e.startTransition!==void 0&&(p=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var U=L();if(!g){var V=L();a(U,V)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),g=!0)}var Y=o({inst:{value:U,getSnapshot:L}}),J=Y[0].inst,$=Y[1];return c(function(){J.value=U,J.getSnapshot=L,w(J)&&$({inst:J})},[R,U,L]),l(function(){w(J)&&$({inst:J});var K=function(){w(J)&&$({inst:J})};return R(K)},[R]),d(U),U}function w(R){var L=R.getSnapshot,z=R.value;try{var U=L();return!a(z,U)}catch{return!0}}function C(R,L,z){return L()}var k=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",P=!k,D=P?C:S,M=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:D;kT.useSyncExternalStore=M,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),kT}(function(e){process.env.NODE_ENV==="production"?e.exports=Sq():e.exports=xq()})(bq);var PT={},wq={get exports(){return PT},set exports(e){PT=e}},AT={};/**
|
||
* @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 EM;function Cq(){if(EM)return AT;EM=1;var e=A,t=g2;function n(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,l=e.useMemo,c=e.useDebugValue;return AT.useSyncExternalStoreWithSelector=function(d,p,g,S,w){var C=a(null);if(C.current===null){var k={hasValue:!1,value:null};C.current=k}else k=C.current;C=l(function(){function D(U){if(!M){if(M=!0,R=U,U=S(U),w!==void 0&&k.hasValue){var V=k.value;if(w(V,U))return L=V}return L=U}if(V=L,r(R,U))return V;var Y=S(U);return w!==void 0&&w(V,Y)?V:(R=U,L=Y)}var M=!1,R,L,z=g===void 0?null:g;return[function(){return D(p())},z===null?void 0:function(){return D(z())}]},[p,g,S,w]);var P=i(d,C[0],C[1]);return o(function(){k.hasValue=!0,k.value=P},[P]),c(P),P},AT}var OT={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim/with-selector.development.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 _M;function Eq(){return _M||(_M=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=A,t=g2;function n(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,l=e.useMemo,c=e.useDebugValue;function d(p,g,S,w,C){var k=a(null),P;k.current===null?(P={hasValue:!1,value:null},k.current=P):P=k.current;var D=l(function(){var z=!1,U,V,Y=function(fe){if(!z){z=!0,U=fe;var X=w(fe);if(C!==void 0&&P.hasValue){var G=P.value;if(C(G,X))return V=G,G}return V=X,X}var te=U,re=V;if(r(te,fe))return re;var oe=w(fe);return C!==void 0&&C(re,oe)?re:(U=fe,V=oe,oe)},J=S===void 0?null:S,$=function(){return Y(g())},K=J===null?void 0:function(){return Y(J())};return[$,K]},[g,S,w,C]),M=D[0],R=D[1],L=i(p,M,R);return o(function(){P.hasValue=!0,P.value=L},[L]),c(L),L}OT.useSyncExternalStoreWithSelector=d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),OT}(function(e){process.env.NODE_ENV==="production"?e.exports=Cq():e.exports=Eq()})(wq);function _q(e){e()}let TM=_q;const Tq=e=>TM=e,kq=()=>TM,Hf=A.createContext(null);process.env.NODE_ENV!=="production"&&(Hf.displayName="ReactRedux");function kM(){const e=A.useContext(Hf);if(process.env.NODE_ENV!=="production"&&!e)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return e}let PM=()=>{throw new Error("uSES not initialized!")};const Pq=e=>{PM=e},Aq=(e,t)=>e===t;function Oq(e=Hf){const t=e===Hf?kM:()=>A.useContext(e);return function(r,i=Aq){if(process.env.NODE_ENV!=="production"){if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof i!="function")throw new Error("You must pass a function as an equality function to useSelector")}const{store:a,subscription:o,getServerState:l}=t(),c=PM(o.addNestedSub,a.getState,l||a.getState,r,i);return A.useDebugValue(c),c}}const Dq=Oq();function qm(){return qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qm.apply(this,arguments)}function Mq(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ib={},jq={get exports(){return Ib},set exports(e){Ib=e}},Vr={};/** @license React v16.13.1
|
||
* 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 AM;function Iq(){if(AM)return Vr;AM=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,P=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function R(z){if(typeof z=="object"&&z!==null){var U=z.$$typeof;switch(U){case t:switch(z=z.type,z){case c:case d:case r:case a:case i:case g:return z;default:switch(z=z&&z.$$typeof,z){case l:case p:case C:case w:case o:return z;default:return U}}case n:return U}}}function L(z){return R(z)===d}return Vr.AsyncMode=c,Vr.ConcurrentMode=d,Vr.ContextConsumer=l,Vr.ContextProvider=o,Vr.Element=t,Vr.ForwardRef=p,Vr.Fragment=r,Vr.Lazy=C,Vr.Memo=w,Vr.Portal=n,Vr.Profiler=a,Vr.StrictMode=i,Vr.Suspense=g,Vr.isAsyncMode=function(z){return L(z)||R(z)===c},Vr.isConcurrentMode=L,Vr.isContextConsumer=function(z){return R(z)===l},Vr.isContextProvider=function(z){return R(z)===o},Vr.isElement=function(z){return typeof z=="object"&&z!==null&&z.$$typeof===t},Vr.isForwardRef=function(z){return R(z)===p},Vr.isFragment=function(z){return R(z)===r},Vr.isLazy=function(z){return R(z)===C},Vr.isMemo=function(z){return R(z)===w},Vr.isPortal=function(z){return R(z)===n},Vr.isProfiler=function(z){return R(z)===a},Vr.isStrictMode=function(z){return R(z)===i},Vr.isSuspense=function(z){return R(z)===g},Vr.isValidElementType=function(z){return typeof z=="string"||typeof z=="function"||z===r||z===d||z===a||z===i||z===g||z===S||typeof z=="object"&&z!==null&&(z.$$typeof===C||z.$$typeof===w||z.$$typeof===o||z.$$typeof===l||z.$$typeof===p||z.$$typeof===P||z.$$typeof===D||z.$$typeof===M||z.$$typeof===k)},Vr.typeOf=R,Vr}var Hr={};/** @license React v16.13.1
|
||
* react-is.development.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 OM;function Rq(){return OM||(OM=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,P=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function R(Ce){return typeof Ce=="string"||typeof Ce=="function"||Ce===r||Ce===d||Ce===a||Ce===i||Ce===g||Ce===S||typeof Ce=="object"&&Ce!==null&&(Ce.$$typeof===C||Ce.$$typeof===w||Ce.$$typeof===o||Ce.$$typeof===l||Ce.$$typeof===p||Ce.$$typeof===P||Ce.$$typeof===D||Ce.$$typeof===M||Ce.$$typeof===k)}function L(Ce){if(typeof Ce=="object"&&Ce!==null){var Nt=Ce.$$typeof;switch(Nt){case t:var Ae=Ce.type;switch(Ae){case c:case d:case r:case a:case i:case g:return Ae;default:var xt=Ae&&Ae.$$typeof;switch(xt){case l:case p:case C:case w:case o:return xt;default:return Nt}}case n:return Nt}}}var z=c,U=d,V=l,Y=o,J=t,$=p,K=r,fe=C,X=w,G=n,te=a,re=i,oe=g,ie=!1;function le(Ce){return ie||(ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ee(Ce)||L(Ce)===c}function ee(Ce){return L(Ce)===d}function de(Ce){return L(Ce)===l}function Fe(Ce){return L(Ce)===o}function Pe(Ce){return typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===t}function Oe(Ce){return L(Ce)===p}function Ie(Ce){return L(Ce)===r}function De(Ce){return L(Ce)===C}function $e(Ce){return L(Ce)===w}function it(Ce){return L(Ce)===n}function mt(Ce){return L(Ce)===a}function bt(Ce){return L(Ce)===i}function qe(Ce){return L(Ce)===g}Hr.AsyncMode=z,Hr.ConcurrentMode=U,Hr.ContextConsumer=V,Hr.ContextProvider=Y,Hr.Element=J,Hr.ForwardRef=$,Hr.Fragment=K,Hr.Lazy=fe,Hr.Memo=X,Hr.Portal=G,Hr.Profiler=te,Hr.StrictMode=re,Hr.Suspense=oe,Hr.isAsyncMode=le,Hr.isConcurrentMode=ee,Hr.isContextConsumer=de,Hr.isContextProvider=Fe,Hr.isElement=Pe,Hr.isForwardRef=Oe,Hr.isFragment=Ie,Hr.isLazy=De,Hr.isMemo=$e,Hr.isPortal=it,Hr.isProfiler=mt,Hr.isStrictMode=bt,Hr.isSuspense=qe,Hr.isValidElementType=R,Hr.typeOf=L}()),Hr}(function(e){process.env.NODE_ENV==="production"?e.exports=Iq():e.exports=Rq()})(jq);var DM=Ib,Nq={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Lq={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},MM={};MM[DM.ForwardRef]=Nq,MM[DM.Memo]=Lq;var jM={},zq={get exports(){return jM},set exports(e){jM=e}},Gr={};/**
|
||
* @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 IM;function Bq(){if(IM)return Gr;IM=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),C;C=Symbol.for("react.module.reference");function k(P){if(typeof P=="object"&&P!==null){var D=P.$$typeof;switch(D){case e:switch(P=P.type,P){case n:case i:case r:case d:case p:return P;default:switch(P=P&&P.$$typeof,P){case l:case o:case c:case S:case g:case a:return P;default:return D}}case t:return D}}}return Gr.ContextConsumer=o,Gr.ContextProvider=a,Gr.Element=e,Gr.ForwardRef=c,Gr.Fragment=n,Gr.Lazy=S,Gr.Memo=g,Gr.Portal=t,Gr.Profiler=i,Gr.StrictMode=r,Gr.Suspense=d,Gr.SuspenseList=p,Gr.isAsyncMode=function(){return!1},Gr.isConcurrentMode=function(){return!1},Gr.isContextConsumer=function(P){return k(P)===o},Gr.isContextProvider=function(P){return k(P)===a},Gr.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===e},Gr.isForwardRef=function(P){return k(P)===c},Gr.isFragment=function(P){return k(P)===n},Gr.isLazy=function(P){return k(P)===S},Gr.isMemo=function(P){return k(P)===g},Gr.isPortal=function(P){return k(P)===t},Gr.isProfiler=function(P){return k(P)===i},Gr.isStrictMode=function(P){return k(P)===r},Gr.isSuspense=function(P){return k(P)===d},Gr.isSuspenseList=function(P){return k(P)===p},Gr.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===n||P===i||P===r||P===d||P===p||P===w||typeof P=="object"&&P!==null&&(P.$$typeof===S||P.$$typeof===g||P.$$typeof===a||P.$$typeof===o||P.$$typeof===c||P.$$typeof===C||P.getModuleId!==void 0)},Gr.typeOf=k,Gr}var Wr={};/**
|
||
* @license React
|
||
* react-is.development.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 RM;function Fq(){return RM||(RM=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),C=!1,k=!1,P=!1,D=!1,M=!1,R;R=Symbol.for("react.module.reference");function L(Ae){return!!(typeof Ae=="string"||typeof Ae=="function"||Ae===n||Ae===i||M||Ae===r||Ae===d||Ae===p||D||Ae===w||C||k||P||typeof Ae=="object"&&Ae!==null&&(Ae.$$typeof===S||Ae.$$typeof===g||Ae.$$typeof===a||Ae.$$typeof===o||Ae.$$typeof===c||Ae.$$typeof===R||Ae.getModuleId!==void 0))}function z(Ae){if(typeof Ae=="object"&&Ae!==null){var xt=Ae.$$typeof;switch(xt){case e:var ln=Ae.type;switch(ln){case n:case i:case r:case d:case p:return ln;default:var Wt=ln&&ln.$$typeof;switch(Wt){case l:case o:case c:case S:case g:case a:return Wt;default:return xt}}case t:return xt}}}var U=o,V=a,Y=e,J=c,$=n,K=S,fe=g,X=t,G=i,te=r,re=d,oe=p,ie=!1,le=!1;function ee(Ae){return ie||(ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function de(Ae){return le||(le=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Fe(Ae){return z(Ae)===o}function Pe(Ae){return z(Ae)===a}function Oe(Ae){return typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===e}function Ie(Ae){return z(Ae)===c}function De(Ae){return z(Ae)===n}function $e(Ae){return z(Ae)===S}function it(Ae){return z(Ae)===g}function mt(Ae){return z(Ae)===t}function bt(Ae){return z(Ae)===i}function qe(Ae){return z(Ae)===r}function Ce(Ae){return z(Ae)===d}function Nt(Ae){return z(Ae)===p}Wr.ContextConsumer=U,Wr.ContextProvider=V,Wr.Element=Y,Wr.ForwardRef=J,Wr.Fragment=$,Wr.Lazy=K,Wr.Memo=fe,Wr.Portal=X,Wr.Profiler=G,Wr.StrictMode=te,Wr.Suspense=re,Wr.SuspenseList=oe,Wr.isAsyncMode=ee,Wr.isConcurrentMode=de,Wr.isContextConsumer=Fe,Wr.isContextProvider=Pe,Wr.isElement=Oe,Wr.isForwardRef=Ie,Wr.isFragment=De,Wr.isLazy=$e,Wr.isMemo=it,Wr.isPortal=mt,Wr.isProfiler=bt,Wr.isStrictMode=qe,Wr.isSuspense=Ce,Wr.isSuspenseList=Nt,Wr.isValidElementType=L,Wr.typeOf=z}()),Wr}(function(e){process.env.NODE_ENV==="production"?e.exports=Bq():e.exports=Fq()})(zq);function Uq(){const e=kq();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,a=n={callback:r,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const NM={notify(){},get:()=>[]};function Vq(e,t){let n,r=NM;function i(g){return c(),r.subscribe(g)}function a(){r.notify()}function o(){p.onStateChange&&p.onStateChange()}function l(){return Boolean(n)}function c(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=Uq())}function d(){n&&(n(),n=void 0,r.clear(),r=NM)}const p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:l,trySubscribe:c,tryUnsubscribe:d,getListeners:()=>r};return p}const Hq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?A.useLayoutEffect:A.useEffect;function Gq({store:e,context:t,children:n,serverState:r}){const i=A.useMemo(()=>{const l=Vq(e);return{store:e,subscription:l,getServerState:r?()=>r:void 0}},[e,r]),a=A.useMemo(()=>e.getState(),[e]);Hq(()=>{const{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==e.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,a]);const o=t||Hf;return A.createElement(o.Provider,{value:i},n)}function LM(e=Hf){const t=e===Hf?kM:()=>A.useContext(e);return function(){const{store:r}=t();return r}}const Wq=LM();function qq(e=Hf){const t=e===Hf?Wq:LM(e);return function(){return t().dispatch}}const Yq=qq();Pq(PT.useSyncExternalStoreWithSelector),Tq(v2.unstable_batchedUpdates);function y2(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y2=function(n){return typeof n}:y2=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},y2(e)}function Kq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xq(e,t,n){return t&&zM(e.prototype,t),n&&zM(e,n),e}function Qq(e,t){return t&&(y2(t)==="object"||typeof t=="function")?t:b2(e)}function DT(e){return DT=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},DT(e)}function b2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&MT(e,t)}function MT(e,t){return MT=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},MT(e,t)}function S2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var BM=function(e){Zq(t,e);function t(){var n,r;Kq(this,t);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=Qq(this,(n=DT(t)).call.apply(n,[this].concat(a))),S2(b2(r),"state",{bootstrapped:!1}),S2(b2(r),"_unsubscribe",void 0),S2(b2(r),"handlePersistorState",function(){var l=r.props.persistor,c=l.getState(),d=c.bootstrapped;d&&(r.props.onBeforeLift?Promise.resolve(r.props.onBeforeLift()).finally(function(){return r.setState({bootstrapped:!0})}):r.setState({bootstrapped:!0}),r._unsubscribe&&r._unsubscribe())}),r}return Xq(t,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return process.env.NODE_ENV!=="production"&&typeof this.props.children=="function"&&this.props.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),t}(A.PureComponent);S2(BM,"defaultProps",{children:null,loading:null});function Oo(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var i=oY[e],a=i?typeof i=="function"?i.apply(null,n):i:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function up(e){return!!e&&!!e[Qi]}function Gf(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===sY}(e)||Array.isArray(e)||!!e[XM]||!!(!((t=e.constructor)===null||t===void 0)&&t[XM])||jT(e)||IT(e))}function Ym(e,t,n){n===void 0&&(n=!1),Kg(e)===0?(n?Object.keys:Zg)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Kg(e){var t=e[Qi];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:jT(e)?2:IT(e)?3:0}function Xg(e,t){return Kg(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Jq(e,t){return Kg(e)===2?e.get(t):e[t]}function FM(e,t,n){var r=Kg(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function UM(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function jT(e){return iY&&e instanceof Map}function IT(e){return aY&&e instanceof Set}function cp(e){return e.o||e.t}function RT(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=QM(e);delete t[Qi];for(var n=Zg(t),r=0;r<n.length;r++){var i=n[r],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function NT(e,t){return t===void 0&&(t=!1),LT(e)||up(e)||!Gf(e)||(Kg(e)>1&&(e.set=e.add=e.clear=e.delete=$q),Object.freeze(e),t&&Ym(e,function(n,r){return NT(r,!0)},!0)),e}function $q(){Oo(2)}function LT(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function xd(e){var t=qT[e];return t||Oo(18,e),t}function eY(e,t){qT[e]||(qT[e]=t)}function zT(){return process.env.NODE_ENV==="production"||Qg||Oo(0),Qg}function BT(e,t){t&&(xd("Patches"),e.u=[],e.s=[],e.v=t)}function x2(e){FT(e),e.p.forEach(tY),e.p=null}function FT(e){e===Qg&&(Qg=e.l)}function VM(e){return Qg={p:[],l:Qg,h:e,m:!0,_:0}}function tY(e){var t=e[Qi];t.i===0||t.i===1?t.j():t.O=!0}function UT(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||xd("ES5").S(t,e,r),r?(n[Qi].P&&(x2(t),Oo(4)),Gf(e)&&(e=w2(t,e),t.l||C2(t,e)),t.u&&xd("Patches").M(n[Qi].t,e,t.u,t.s)):e=w2(t,n,[]),x2(t),t.u&&t.v(t.u,t.s),e!==KM?e:void 0}function w2(e,t,n){if(LT(t))return t;var r=t[Qi];if(!r)return Ym(t,function(l,c){return HM(e,r,t,l,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return C2(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=RT(r.k):r.o,a=i,o=!1;r.i===3&&(a=new Set(i),i.clear(),o=!0),Ym(a,function(l,c){return HM(e,r,i,l,c,n,o)}),C2(e,i,!1),n&&e.u&&xd("Patches").N(r,n,e.u,e.s)}return r.o}function HM(e,t,n,r,i,a,o){if(process.env.NODE_ENV!=="production"&&i===n&&Oo(5),up(i)){var l=w2(e,i,a&&t&&t.i!==3&&!Xg(t.R,r)?a.concat(r):void 0);if(FM(n,r,l),!up(l))return;e.m=!1}else o&&n.add(i);if(Gf(i)&&!LT(i)){if(!e.h.D&&e._<1)return;w2(e,i),t&&t.A.l||C2(e,i)}}function C2(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&NT(t,n)}function VT(e,t){var n=e[Qi];return(n?cp(n):e)[t]}function GM(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function dp(e){e.P||(e.P=!0,e.l&&dp(e.l))}function HT(e){e.o||(e.o=RT(e.t))}function GT(e,t,n){var r=jT(t)?xd("MapSet").F(t,n):IT(t)?xd("MapSet").T(t,n):e.g?function(i,a){var o=Array.isArray(i),l={i:o?1:0,A:a?a.A:zT(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},c=l,d=Rb;o&&(c=[l],d=Nb);var p=Proxy.revocable(c,d),g=p.revoke,S=p.proxy;return l.k=S,l.j=g,S}(t,n):xd("ES5").J(t,n);return(n?n.A:zT()).p.push(r),r}function nY(e){return up(e)||Oo(22,e),function t(n){if(!Gf(n))return n;var r,i=n[Qi],a=Kg(n);if(i){if(!i.P&&(i.i<4||!xd("ES5").K(i)))return i.t;i.I=!0,r=WM(n,a),i.I=!1}else r=WM(n,a);return Ym(r,function(o,l){i&&Jq(i.t,o)===l||FM(r,o,t(l))}),a===3?new Set(r):r}(e)}function WM(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return RT(e)}function rY(){function e(o,l){var c=a[o];return c?c.enumerable=l:a[o]=c={configurable:!0,enumerable:l,get:function(){var d=this[Qi];return process.env.NODE_ENV!=="production"&&i(d),Rb.get(d,o)},set:function(d){var p=this[Qi];process.env.NODE_ENV!=="production"&&i(p),Rb.set(p,o,d)}},c}function t(o){for(var l=o.length-1;l>=0;l--){var c=o[l][Qi];if(!c.P)switch(c.i){case 5:r(c)&&dp(c);break;case 4:n(c)&&dp(c)}}}function n(o){for(var l=o.t,c=o.k,d=Zg(c),p=d.length-1;p>=0;p--){var g=d[p];if(g!==Qi){var S=l[g];if(S===void 0&&!Xg(l,g))return!0;var w=c[g],C=w&&w[Qi];if(C?C.t!==S:!UM(w,S))return!0}}var k=!!l[Qi];return d.length!==Zg(l).length+(k?0:1)}function r(o){var l=o.k;if(l.length!==o.t.length)return!0;var c=Object.getOwnPropertyDescriptor(l,l.length-1);if(c&&!c.get)return!0;for(var d=0;d<l.length;d++)if(!l.hasOwnProperty(d))return!0;return!1}function i(o){o.O&&Oo(3,JSON.stringify(cp(o)))}var a={};eY("ES5",{J:function(o,l){var c=Array.isArray(o),d=function(g,S){if(g){for(var w=Array(S.length),C=0;C<S.length;C++)Object.defineProperty(w,""+C,e(C,!0));return w}var k=QM(S);delete k[Qi];for(var P=Zg(k),D=0;D<P.length;D++){var M=P[D];k[M]=e(M,g||!!k[M].enumerable)}return Object.create(Object.getPrototypeOf(S),k)}(c,o),p={i:c?5:4,A:l?l.A:zT(),P:!1,I:!1,R:{},l,t:o,k:d,o:null,O:!1,C:!1};return Object.defineProperty(d,Qi,{value:p,writable:!0}),d},S:function(o,l,c){c?up(l)&&l[Qi].A===o&&t(o.p):(o.u&&function d(p){if(p&&typeof p=="object"){var g=p[Qi];if(g){var S=g.t,w=g.k,C=g.R,k=g.i;if(k===4)Ym(w,function(L){L!==Qi&&(S[L]!==void 0||Xg(S,L)?C[L]||d(w[L]):(C[L]=!0,dp(g)))}),Ym(S,function(L){w[L]!==void 0||Xg(w,L)||(C[L]=!1,dp(g))});else if(k===5){if(r(g)&&(dp(g),C.length=!0),w.length<S.length)for(var P=w.length;P<S.length;P++)C[P]=!1;else for(var D=S.length;D<w.length;D++)C[D]=!0;for(var M=Math.min(w.length,S.length),R=0;R<M;R++)w.hasOwnProperty(R)||(C[R]=!0),C[R]===void 0&&d(w[R])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?n(o):r(o)}})}var qM,Qg,WT=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",iY=typeof Map<"u",aY=typeof Set<"u",YM=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",KM=WT?Symbol.for("immer-nothing"):((qM={})["immer-nothing"]=!0,qM),XM=WT?Symbol.for("immer-draftable"):"__$immer_draftable",Qi=WT?Symbol.for("immer-state"):"__$immer_state",oY={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},sY=""+Object.prototype.constructor,Zg=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,QM=Object.getOwnPropertyDescriptors||function(e){var t={};return Zg(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},qT={},Rb={get:function(e,t){if(t===Qi)return e;var n=cp(e);if(!Xg(n,t))return function(i,a,o){var l,c=GM(a,o);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!Gf(r)?r:r===VT(e.t,t)?(HT(e),e.o[t]=GT(e.A.h,r,e)):r},has:function(e,t){return t in cp(e)},ownKeys:function(e){return Reflect.ownKeys(cp(e))},set:function(e,t,n){var r=GM(cp(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=VT(cp(e),t),a=i==null?void 0:i[Qi];if(a&&a.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(UM(n,i)&&(n!==void 0||Xg(e.t,t)))return!0;HT(e),dp(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return VT(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,HT(e),dp(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=cp(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Oo(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Oo(12)}},Nb={};Ym(Rb,function(e,t){Nb[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Nb.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Oo(13),Nb.set.call(this,e,t,void 0)},Nb.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Oo(14),Rb.set.call(this,e[0],t,n,e[0])};var lY=function(){function e(n){var r=this;this.g=YM,this.D=!0,this.produce=function(i,a,o){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var c=r;return function(k){var P=this;k===void 0&&(k=l);for(var D=arguments.length,M=Array(D>1?D-1:0),R=1;R<D;R++)M[R-1]=arguments[R];return c.produce(k,function(L){var z;return(z=a).call.apply(z,[P,L].concat(M))})}}var d;if(typeof a!="function"&&Oo(6),o!==void 0&&typeof o!="function"&&Oo(7),Gf(i)){var p=VM(r),g=GT(r,i,void 0),S=!0;try{d=a(g),S=!1}finally{S?x2(p):FT(p)}return typeof Promise<"u"&&d instanceof Promise?d.then(function(k){return BT(p,o),UT(k,p)},function(k){throw x2(p),k}):(BT(p,o),UT(d,p))}if(!i||typeof i!="object"){if((d=a(i))===void 0&&(d=i),d===KM&&(d=void 0),r.D&&NT(d,!0),o){var w=[],C=[];xd("Patches").M(i,d,w,C),o(w,C)}return d}Oo(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(d){for(var p=arguments.length,g=Array(p>1?p-1:0),S=1;S<p;S++)g[S-1]=arguments[S];return r.produceWithPatches(d,function(w){return i.apply(void 0,[w].concat(g))})};var o,l,c=r.produce(i,a,function(d,p){o=d,l=p});return typeof Promise<"u"&&c instanceof Promise?c.then(function(d){return[d,o,l]}):[c,o,l]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Gf(n)||Oo(8),up(n)&&(n=nY(n));var r=VM(this),i=GT(this,n,void 0);return i[Qi].C=!0,FT(r),i},t.finishDraft=function(n,r){var i=n&&n[Qi];process.env.NODE_ENV!=="production"&&(i&&i.C||Oo(9),i.I&&Oo(10));var a=i.A;return BT(a,r),UT(void 0,a)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!YM&&Oo(20),this.g=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var a=r[i];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}i>-1&&(r=r.slice(i+1));var o=xd("Patches").$;return up(n)?o(n,r):this.produce(n,function(l){return o(l,r)})},e}(),ql=new lY,ZM=ql.produce;ql.produceWithPatches.bind(ql),ql.setAutoFreeze.bind(ql),ql.setUseProxies.bind(ql),ql.applyPatches.bind(ql),ql.createDraft.bind(ql),ql.finishDraft.bind(ql);function Au(e){return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Au(e)}function uY(e,t){if(Au(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Au(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JM(e){var t=uY(e,"string");return Au(t)==="symbol"?t:String(t)}function Ou(e,t,n){return t=JM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $M(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 ej(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$M(Object(n),!0).forEach(function(r){Ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ds(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var tj=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),YT=function(){return Math.random().toString(36).substring(7).split("").join(".")},Km={INIT:"@@redux/INIT"+YT(),REPLACE:"@@redux/REPLACE"+YT(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+YT()}};function nj(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function cY(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(hY(e))return"date";if(fY(e))return"error";var n=dY(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function dY(e){return typeof e.constructor=="function"?e.constructor.name:null}function fY(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function hY(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Xm(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=cY(e)),t}function KT(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?ds(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?ds(1):"Expected the enhancer to be a function. Instead, received: '"+Xm(n)+"'");return n(KT)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?ds(2):"Expected the root reducer to be a function. Instead, received: '"+Xm(e)+"'");var i=e,a=t,o=[],l=o,c=!1;function d(){l===o&&(l=o.slice())}function p(){if(c)throw new Error(process.env.NODE_ENV==="production"?ds(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function g(k){if(typeof k!="function")throw new Error(process.env.NODE_ENV==="production"?ds(4):"Expected the listener to be a function. Instead, received: '"+Xm(k)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?ds(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var P=!0;return d(),l.push(k),function(){if(P){if(c)throw new Error(process.env.NODE_ENV==="production"?ds(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");P=!1,d();var M=l.indexOf(k);l.splice(M,1),o=null}}}function S(k){if(!nj(k))throw new Error(process.env.NODE_ENV==="production"?ds(7):"Actions must be plain objects. Instead, the actual type was: '"+Xm(k)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof k.type>"u")throw new Error(process.env.NODE_ENV==="production"?ds(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?ds(9):"Reducers may not dispatch actions.");try{c=!0,a=i(a,k)}finally{c=!1}for(var P=o=l,D=0;D<P.length;D++){var M=P[D];M()}return k}function w(k){if(typeof k!="function")throw new Error(process.env.NODE_ENV==="production"?ds(10):"Expected the nextReducer to be a function. Instead, received: '"+Xm(k));i=k,S({type:Km.REPLACE})}function C(){var k,P=g;return k={subscribe:function(M){if(typeof M!="object"||M===null)throw new Error(process.env.NODE_ENV==="production"?ds(11):"Expected the observer to be an object. Instead, received: '"+Xm(M)+"'");function R(){M.next&&M.next(p())}R();var L=P(R);return{unsubscribe:L}}},k[tj]=function(){return this},k}return S({type:Km.INIT}),r={dispatch:S,subscribe:g,getState:p,replaceReducer:w},r[tj]=C,r}function rj(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function pY(e,t,n,r){var i=Object.keys(t),a=n&&n.type===Km.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!nj(e))return"The "+a+' has unexpected type of "'+Xm(e)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var o=Object.keys(e).filter(function(l){return!t.hasOwnProperty(l)&&!r[l]});if(o.forEach(function(l){r[l]=!0}),!(n&&n.type===Km.REPLACE)&&o.length>0)return"Unexpected "+(o.length>1?"keys":"key")+" "+('"'+o.join('", "')+'" found in '+a+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function mY(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:Km.INIT});if(typeof r>"u")throw new Error(process.env.NODE_ENV==="production"?ds(12):'The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:Km.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?ds(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Km.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function ij(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];process.env.NODE_ENV!=="production"&&typeof e[i]>"u"&&rj('No reducer provided for key "'+i+'"'),typeof e[i]=="function"&&(n[i]=e[i])}var a=Object.keys(n),o;process.env.NODE_ENV!=="production"&&(o={});var l;try{mY(n)}catch(c){l=c}return function(d,p){if(d===void 0&&(d={}),l)throw l;if(process.env.NODE_ENV!=="production"){var g=pY(d,n,p,o);g&&rj(g)}for(var S=!1,w={},C=0;C<a.length;C++){var k=a[C],P=n[k],D=d[k],M=P(D,p);if(typeof M>"u"){var R=p&&p.type;throw new Error(process.env.NODE_ENV==="production"?ds(14):"When called with an action of type "+(R?'"'+String(R)+'"':"(unknown type)")+', the slice reducer for key "'+k+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}w[k]=M,S=S||M!==D}return S=S||a.length!==Object.keys(d).length,S?w:d}}function E2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function vY(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var i=r.apply(void 0,arguments),a=function(){throw new Error(process.env.NODE_ENV==="production"?ds(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(c){return c(o)});return a=E2.apply(void 0,l)(i.dispatch),ej(ej({},i),{},{dispatch:a})}}}var _2="NOT_FOUND";function gY(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:_2},put:function(r,i){t={key:r,value:i}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function yY(e,t){var n=[];function r(l){var c=n.findIndex(function(p){return t(l,p.key)});if(c>-1){var d=n[c];return c>0&&(n.splice(c,1),n.unshift(d)),d.value}return _2}function i(l,c){r(l)===_2&&(n.unshift({key:l,value:c}),n.length>e&&n.pop())}function a(){return n}function o(){n=[]}return{get:r,put:i,getEntries:a,clear:o}}var bY=function(t,n){return t===n};function SY(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var i=n.length,a=0;a<i;a++)if(!e(n[a],r[a]))return!1;return!0}}function xY(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,i=r===void 0?bY:r,a=n.maxSize,o=a===void 0?1:a,l=n.resultEqualityCheck,c=SY(i),d=o===1?gY(c):yY(o,c);function p(){var g=d.get(arguments);if(g===_2){if(g=e.apply(null,arguments),l){var S=d.getEntries(),w=S.find(function(C){return l(C.value,g)});w&&(g=w.value)}d.put(arguments,g)}return g}return p.clearCache=function(){return d.clear()},p}function wY(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(r){return typeof r=="function"})){var n=t.map(function(r){return typeof r=="function"?"function "+(r.name||"unnamed")+"()":typeof r}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function CY(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=function(){for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];var d=0,p,g={memoizeOptions:void 0},S=l.pop();if(typeof S=="object"&&(g=S,S=l.pop()),typeof S!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof S+"]");var w=g,C=w.memoizeOptions,k=C===void 0?n:C,P=Array.isArray(k)?k:[k],D=wY(l),M=e.apply(void 0,[function(){return d++,S.apply(null,arguments)}].concat(P)),R=e(function(){for(var z=[],U=D.length,V=0;V<U;V++)z.push(D[V].apply(null,arguments));return p=M.apply(null,z),p});return Object.assign(R,{resultFunc:S,memoizedResultFunc:M,dependencies:D,lastResult:function(){return p},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),R};return i}var Ut=CY(xY);function aj(e){var t=function(r){var i=r.dispatch,a=r.getState;return function(o){return function(l){return typeof l=="function"?l(i,a,e):o(l)}}};return t}var oj=aj();oj.withExtraArgument=aj;const sj=oj;var EY=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),_Y=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(d){return function(p){return c([d,p])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(a=d[0]&2?i.return:d[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,d[1])).done)return a;switch(i=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){n.label=d[1];break}if(d[0]===6&&n.label<a[1]){n.label=a[1],a=d;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(d);break}a[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(p){d=[6,p],i=0}finally{r=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},T2=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},TY=Object.defineProperty,kY=Object.defineProperties,PY=Object.getOwnPropertyDescriptors,lj=Object.getOwnPropertySymbols,AY=Object.prototype.hasOwnProperty,OY=Object.prototype.propertyIsEnumerable,uj=function(e,t,n){return t in e?TY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},fp=function(e,t){for(var n in t||(t={}))AY.call(t,n)&&uj(e,n,t[n]);if(lj)for(var r=0,i=lj(t);r<i.length;r++){var n=i[r];OY.call(t,n)&&uj(e,n,t[n])}return e},XT=function(e,t){return kY(e,PY(t))},DY=function(e,t,n){return new Promise(function(r,i){var a=function(c){try{l(n.next(c))}catch(d){i(d)}},o=function(c){try{l(n.throw(c))}catch(d){i(d)}},l=function(c){return c.done?r(c.value):Promise.resolve(c.value).then(a,o)};l((n=n.apply(e,t)).next())})},MY=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?E2:E2.apply(null,arguments)};function cj(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}function dj(e,t){var n=0;return{measureTime:function(r){var i=Date.now();try{return r()}finally{var a=Date.now();n+=a-i}},warnIfExceeded:function(){n>e&&console.warn(t+" took "+n+"ms, which is more than the warning threshold of "+e+`ms.
|
||
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
||
It is disabled in production builds, so you don't need to worry about that.`)}}}var jY=function(e){EY(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,T2([void 0],n[0].concat(this)))):new(t.bind.apply(t,T2([void 0],n.concat(this))))},t}(Array);function QT(e){return Gf(e)?ZM(e,function(){}):e}var IY=process.env.NODE_ENV==="production",fj="Invariant failed";function hj(e,t){if(!e)throw IY?new Error(fj):new Error(fj+": "+(t||""))}function RY(e,t,n,r){return JSON.stringify(e,NY(t,r),n)}function NY(e,t){var n=[],r=[];return t||(t=function(i,a){return n[0]===a?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(a)).join(".")+"]"}),function(i,a){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?r.splice(o,1/0,i):r.push(i),~n.indexOf(a)&&(a=t.call(this,i,a))}else n.push(a);return e==null?a:e.call(this,i,a)}}function LY(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function zY(e,t,n){var r=pj(e,t,n);return{detectMutations:function(){return mj(e,t,r,n)}}}function pj(e,t,n,r){t===void 0&&(t=[]),r===void 0&&(r="");var i={value:n};if(!e(n)){i.children={};for(var a in n){var o=r?r+"."+a:a;t.length&&t.indexOf(o)!==-1||(i.children[a]=pj(e,t,n[a],o))}}return i}function mj(e,t,n,r,i,a){t===void 0&&(t=[]),i===void 0&&(i=!1),a===void 0&&(a="");var o=n?n.value:void 0,l=o===r;if(i&&!l&&!Number.isNaN(r))return{wasMutated:!0,path:a};if(e(o)||e(r))return{wasMutated:!1};var c={};for(var d in n.children)c[d]=!0;for(var d in r)c[d]=!0;var p=t.length>0,g=function(w){var C=a?a+"."+w:w;if(p){var k=t.some(function(D){return D instanceof RegExp?D.test(C):C===D});if(k)return"continue"}var P=mj(e,t,n.children[w],r[w],l,C);if(P.wasMutated)return{value:P}};for(var d in c){var S=g(d);if(typeof S=="object")return S.value}return{wasMutated:!1}}function BY(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(c){return function(d){return c(d)}}};var t=e.isImmutable,n=t===void 0?LY:t,r=e.ignoredPaths,i=e.warnAfter,a=i===void 0?32:i,o=e.ignore;r=r||o;var l=zY.bind(null,n,r);return function(c){var d=c.getState,p=d(),g=l(p),S;return function(w){return function(C){var k=dj(a,"ImmutableStateInvariantMiddleware");k.measureTime(function(){p=d(),S=g.detectMutations(),g=l(p),hj(!S.wasMutated,"A state mutation was detected between dispatches, in the path '"+(S.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var P=w(C);return k.measureTime(function(){p=d(),S=g.detectMutations(),g=l(p),S.wasMutated&&hj(!S.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(S.path||"")+". Take a look at the reducer(s) handling the action "+RY(C)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),k.warnIfExceeded(),P}}}}function vj(e){var t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||cj(e)}function ZT(e,t,n,r,i,a){t===void 0&&(t=""),n===void 0&&(n=vj),i===void 0&&(i=[]);var o;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||a!=null&&a.has(e))return!1;for(var l=r!=null?r(e):Object.entries(e),c=i.length>0,d=function(P,D){var M=t?t+"."+P:P;if(c){var R=i.some(function(L){return L instanceof RegExp?L.test(M):M===L});if(R)return"continue"}if(!n(D))return{value:{keyPath:M,value:D}};if(typeof D=="object"&&(o=ZT(D,M,n,r,i,a),o))return{value:o}},p=0,g=l;p<g.length;p++){var S=g[p],w=S[0],C=S[1],k=d(w,C);if(typeof k=="object")return k.value}return a&&gj(e)&&a.add(e),!1}function gj(e){if(!Object.isFrozen(e))return!1;for(var t=0,n=Object.values(e);t<n.length;t++){var r=n[t];if(!(typeof r!="object"||r===null)&&!gj(r))return!1}return!0}function FY(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(R){return function(L){return R(L)}}};var t=e.isSerializable,n=t===void 0?vj:t,r=e.getEntries,i=e.ignoredActions,a=i===void 0?[]:i,o=e.ignoredActionPaths,l=o===void 0?["meta.arg","meta.baseQueryMeta"]:o,c=e.ignoredPaths,d=c===void 0?[]:c,p=e.warnAfter,g=p===void 0?32:p,S=e.ignoreState,w=S===void 0?!1:S,C=e.ignoreActions,k=C===void 0?!1:C,P=e.disableCache,D=P===void 0?!1:P,M=!D&&WeakSet?new WeakSet:void 0;return function(R){return function(L){return function(z){var U=L(z),V=dj(g,"SerializableStateInvariantMiddleware");return!k&&!(a.length&&a.indexOf(z.type)!==-1)&&V.measureTime(function(){var Y=ZT(z,"",n,r,l,M);if(Y){var J=Y.keyPath,$=Y.value;console.error("A non-serializable value was detected in an action, in the path: `"+J+"`. Value:",$,`
|
||
Take a look at the logic that dispatched this action: `,z,`
|
||
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
||
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),w||(V.measureTime(function(){var Y=R.getState(),J=ZT(Y,"",n,r,d,M);if(J){var $=J.keyPath,K=J.value;console.error("A non-serializable value was detected in the state, in the path: `"+$+"`. Value:",K,`
|
||
Take a look at the reducer(s) handling this action type: `+z.type+`.
|
||
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),V.warnIfExceeded()),U}}}}function JT(e){return typeof e=="boolean"}function UY(){return function(t){return VY(t)}}function VY(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t,r=e.immutableCheck,i=r===void 0?!0:r,a=e.serializableCheck,o=a===void 0?!0:a,l=new jY;if(n&&(JT(n)?l.push(sj):l.push(sj.withExtraArgument(n.extraArgument))),process.env.NODE_ENV!=="production"){if(i){var c={};JT(i)||(c=i),l.unshift(BY(c))}if(o){var d={};JT(o)||(d=o),l.push(FY(d))}}return l}var $T=process.env.NODE_ENV==="production";function HY(e){var t=UY(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,a=n.middleware,o=a===void 0?t():a,l=n.devTools,c=l===void 0?!0:l,d=n.preloadedState,p=d===void 0?void 0:d,g=n.enhancers,S=g===void 0?void 0:g,w;if(typeof i=="function")w=i;else if(cj(i))w=ij(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var C=o;if(typeof C=="function"&&(C=C(t),!$T&&!Array.isArray(C)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!$T&&C.some(function(R){return typeof R!="function"}))throw new Error("each middleware provided to configureStore must be a function");var k=vY.apply(void 0,C),P=E2;c&&(P=MY(fp({trace:!$T},typeof c=="object"&&c)));var D=[k];Array.isArray(S)?D=T2([k],S):typeof S=="function"&&(D=S(D));var M=P.apply(void 0,D);return KT(w,p,M)}function Zi(e,t){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t){var a=t.apply(void 0,r);if(!a)throw new Error("prepareAction did not return an object");return fp(fp({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:r[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(r){return r.type===e},n}function yj(e){var t={},n=[],r,i={addCase:function(a,o){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=o,i},addMatcher:function(a,o){if(process.env.NODE_ENV!=="production"&&r)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:a,reducer:o}),i},addDefaultCase:function(a){if(process.env.NODE_ENV!=="production"&&r)throw new Error("`builder.addDefaultCase` can only be called once");return r=a,i}};return e(i),[t,n,r]}function GY(e){return typeof e=="function"}var bj=!1;function WY(e,t,n,r){n===void 0&&(n=[]),process.env.NODE_ENV!=="production"&&typeof t=="object"&&(bj||(bj=!0,console.warn("The object notation for `createReducer` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer")));var i=typeof t=="function"?yj(t):[t,n,r],a=i[0],o=i[1],l=i[2],c;if(GY(e))c=function(){return QT(e())};else{var d=QT(e);c=function(){return d}}function p(g,S){g===void 0&&(g=c());var w=T2([a[S.type]],o.filter(function(C){var k=C.matcher;return k(S)}).map(function(C){var k=C.reducer;return k}));return w.filter(function(C){return!!C}).length===0&&(w=[l]),w.reduce(function(C,k){if(k)if(up(C)){var P=C,D=k(P,S);return D===void 0?C:D}else{if(Gf(C))return ZM(C,function(M){return k(M,S)});var D=k(C,S);if(D===void 0){if(C===null)return C;throw Error("A case reducer on a non-draftable value must not return undefined")}return D}return C},g)}return p.getInitialState=c,p}var Sj=!1;function qY(e,t){return e+"/"+t}function Qm(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&e.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");var n=typeof e.initialState=="function"?e.initialState:QT(e.initialState),r=e.reducers||{},i=Object.keys(r),a={},o={},l={};i.forEach(function(p){var g=r[p],S=qY(t,p),w,C;"reducer"in g?(w=g.reducer,C=g.prepare):w=g,a[p]=w,o[S]=w,l[p]=C?Zi(S,C):Zi(S)});function c(){process.env.NODE_ENV!=="production"&&typeof e.extraReducers=="object"&&(Sj||(Sj=!0,console.warn("The object notation for `createSlice.extraReducers` is deprecated, and will be removed in RTK 2.0. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice")));var p=typeof e.extraReducers=="function"?yj(e.extraReducers):[e.extraReducers],g=p[0],S=g===void 0?{}:g,w=p[1],C=w===void 0?[]:w,k=p[2],P=k===void 0?void 0:k,D=fp(fp({},S),o);return WY(n,function(M){for(var R in D)M.addCase(R,D[R]);for(var L=0,z=C;L<z.length;L++){var U=z[L];M.addMatcher(U.matcher,U.reducer)}P&&M.addDefaultCase(P)})}var d;return{name:t,reducer:function(p,g){return d||(d=c()),d(p,g)},actions:l,caseReducers:a,getInitialState:function(){return d||(d=c()),d.getInitialState()}}}var YY="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",KY=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=YY[Math.random()*64|0];return t},XY=["name","message","stack","code"],ek=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),xj=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),QY=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=XY;n<r.length;n++){var i=r[n];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}};(function(){function e(t,n,r){var i=Zi(t+"/fulfilled",function(p,g,S,w){return{payload:p,meta:XT(fp({},w||{}),{arg:S,requestId:g,requestStatus:"fulfilled"})}}),a=Zi(t+"/pending",function(p,g,S){return{payload:void 0,meta:XT(fp({},S||{}),{arg:g,requestId:p,requestStatus:"pending"})}}),o=Zi(t+"/rejected",function(p,g,S,w,C){return{payload:w,error:(r&&r.serializeError||QY)(p||"Rejected"),meta:XT(fp({},C||{}),{arg:S,requestId:g,rejectedWithValue:!!w,requestStatus:"rejected",aborted:(p==null?void 0:p.name)==="AbortError",condition:(p==null?void 0:p.name)==="ConditionError"})}}),l=!1,c=typeof AbortController<"u"?AbortController:function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return p.prototype.abort=function(){process.env.NODE_ENV!=="production"&&(l||(l=!0,console.info("This platform does not implement AbortController. \nIf you want to use the AbortController to react to `abort` events, please consider importing a polyfill like 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'.")))},p}();function d(p){return function(g,S,w){var C=r!=null&&r.idGenerator?r.idGenerator(p):KY(),k=new c,P;function D(R){P=R,k.abort()}var M=function(){return DY(this,null,function(){var R,L,z,U,V,Y,J;return _Y(this,function($){switch($.label){case 0:return $.trys.push([0,4,,5]),U=(R=r==null?void 0:r.condition)==null?void 0:R.call(r,p,{getState:S,extra:w}),JY(U)?[4,U]:[3,2];case 1:U=$.sent(),$.label=2;case 2:if(U===!1||k.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return V=new Promise(function(K,fe){return k.signal.addEventListener("abort",function(){return fe({name:"AbortError",message:P||"Aborted"})})}),g(a(C,p,(L=r==null?void 0:r.getPendingMeta)==null?void 0:L.call(r,{requestId:C,arg:p},{getState:S,extra:w}))),[4,Promise.race([V,Promise.resolve(n(p,{dispatch:g,getState:S,extra:w,requestId:C,signal:k.signal,abort:D,rejectWithValue:function(K,fe){return new ek(K,fe)},fulfillWithValue:function(K,fe){return new xj(K,fe)}})).then(function(K){if(K instanceof ek)throw K;return K instanceof xj?i(K.payload,C,p,K.meta):i(K,C,p)})])];case 3:return z=$.sent(),[3,5];case 4:return Y=$.sent(),z=Y instanceof ek?o(null,C,p,Y.payload,Y.meta):o(Y,C,p),[3,5];case 5:return J=r&&!r.dispatchConditionRejection&&o.match(z)&&z.meta.condition,J||g(z),[2,z]}})})}();return Object.assign(M,{abort:D,requestId:C,arg:p,unwrap:function(){return M.then(ZY)}})}}return Object.assign(d,{pending:a,rejected:o,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function ZY(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function JY(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var tk="listenerMiddleware";Zi(tk+"/add"),Zi(tk+"/removeAll"),Zi(tk+"/remove");var wj;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis),rY();var nk="persist:",Cj="persist/FLUSH",rk="persist/REHYDRATE",Ej="persist/PAUSE",_j="persist/PERSIST",Tj="persist/PURGE",kj="persist/REGISTER",$Y=-1;function Lb(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lb=function(n){return typeof n}:Lb=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lb(e)}function Pj(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 eK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pj(n,!0).forEach(function(r){tK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pj(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nK(e,t,n,r){var i=r.debug,a=eK({},n);return e&&Lb(e)==="object"&&Object.keys(e).forEach(function(o){if(o!=="_persist"){if(t[o]!==n[o]){process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",o);return}a[o]=e[o]}}),process.env.NODE_ENV!=="production"&&i&&e&&Lb(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),a}function rK(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],i=e.throttle||0,a=e.debounce||0,o="".concat(e.keyPrefix!==void 0?e.keyPrefix:nk).concat(e.key),l=e.storage,c;e.serialize===!1?c=function(V){return V}:typeof e.serialize=="function"?c=e.serialize:c=iK;var d=e.writeFailHandler||null,p={},g={},S=[],w=null,C=null;let k=0;function P(U){clearTimeout(k),k=setTimeout(()=>{Object.keys(U).forEach(function(V){R(V)&&p[V]!==U[V]&&S.indexOf(V)===-1&&S.push(V)}),Object.keys(p).forEach(function(V){U[V]===void 0&&R(V)&&S.indexOf(V)===-1&&p[V]!==void 0&&S.push(V)}),w===null&&(w=setInterval(D,i)),p=U},a)}function D(){if(S.length===0){w&&clearInterval(w),w=null;return}var U=S.shift(),V=r.reduce(function(Y,J){return J.in(Y,U,p)},p[U]);if(V!==void 0)try{g[U]=c(V)}catch(Y){console.error("redux-persist/createPersistoid: error serializing state",Y)}else delete g[U];S.length===0&&M()}function M(){Object.keys(g).forEach(function(U){p[U]===void 0&&delete g[U]}),C=l.setItem(o,c(g)).catch(L)}function R(U){return!(n&&n.indexOf(U)===-1&&U!=="_persist"||t&&t.indexOf(U)!==-1)}function L(U){d&&d(U),U&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",U)}var z=function(){for(;S.length!==0;)D();return C||Promise.resolve()};return{update:P,flush:z}}function iK(e){return JSON.stringify(e)}function aK(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:nk).concat(e.key),r=e.storage,i=e.debug,a;return e.deserialize===!1?a=function(l){return l}:typeof e.deserialize=="function"?a=e.deserialize:a=oK,r.getItem(n).then(function(o){if(o)try{var l={},c=a(o);return Object.keys(c).forEach(function(d){l[d]=t.reduceRight(function(p,g){return g.out(p,d,c)},a(c[d]))}),l}catch(d){throw process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/getStoredState: Error restoring data ".concat(o),d),d}else return})}function oK(e){return JSON.parse(e)}function sK(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:nk).concat(e.key);return t.removeItem(n,lK)}function lK(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function Aj(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 Wf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Aj(n,!0).forEach(function(r){uK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aj(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cK(e,t){if(e==null)return{};var n=dK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dK(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var fK=5e3;function hK(e,t){if(process.env.NODE_ENV!=="production"){if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=e.version!==void 0?e.version:$Y;e.debug;var r=e.stateReconciler===void 0?nK:e.stateReconciler,i=e.getStoredState||aK,a=e.timeout!==void 0?e.timeout:fK,o=null,l=!1,c=!0,d=function(g){return g._persist.rehydrated&&o&&!c&&o.update(g),g};return function(p,g){var S=p||{},w=S._persist,C=cK(S,["_persist"]),k=C;if(g.type===_j){var P=!1,D=function(Y,J){process.env.NODE_ENV!=="production"&&P&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),Y,J),P||(g.rehydrate(e.key,Y,J),P=!0)};if(a&&setTimeout(function(){!P&&D(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),c=!1,o||(o=rK(e)),w)return Wf({},t(k,g),{_persist:w});if(typeof g.rehydrate!="function"||typeof g.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return g.register(e.key),i(e).then(function(V){var Y=e.migrate||function(J,$){return Promise.resolve(J)};Y(V,n).then(function(J){D(J)},function(J){process.env.NODE_ENV!=="production"&&J&&console.error("redux-persist: migration error",J),D(void 0,J)})},function(V){D(void 0,V)}),Wf({},t(k,g),{_persist:{version:n,rehydrated:!1}})}else{if(g.type===Tj)return l=!0,g.result(sK(e)),Wf({},t(k,g),{_persist:w});if(g.type===Cj)return g.result(o&&o.flush()),Wf({},t(k,g),{_persist:w});if(g.type===Ej)c=!0;else if(g.type===rk){if(l)return Wf({},k,{_persist:Wf({},w,{rehydrated:!0})});if(g.key===e.key){var M=t(k,g),R=g.payload,L=r!==!1&&R!==void 0?r(R,p,M,e):M,z=Wf({},L,{_persist:Wf({},w,{rehydrated:!0})});return d(z)}}}if(!w)return t(p,g);var U=t(k,g);return U===k?p:d(Wf({},U,{_persist:w}))}}function Oj(e){return vK(e)||mK(e)||pK()}function pK(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function mK(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function vK(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function Dj(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 ik(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dj(n,!0).forEach(function(r){gK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dj(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mj={registry:[],bootstrapped:!1},yK=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mj,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case kj:return ik({},t,{registry:[].concat(Oj(t.registry),[n.key])});case rk:var r=t.registry.indexOf(n.key),i=Oj(t.registry);return i.splice(r,1),ik({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function bK(e,t,n){if(process.env.NODE_ENV!=="production"){var r=t||{},i=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];i.forEach(function(p){r[p]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(p,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var a=n||!1,o=KT(yK,Mj,t&&t.enhancer?t.enhancer:void 0),l=function(g){o.dispatch({type:kj,key:g})},c=function(g,S,w){var C={type:rk,payload:S,err:w,key:g};e.dispatch(C),o.dispatch(C),a&&d.getState().bootstrapped&&(a(),a=!1)},d=ik({},o,{purge:function(){var g=[];return e.dispatch({type:Tj,result:function(w){g.push(w)}}),Promise.all(g)},flush:function(){var g=[];return e.dispatch({type:Cj,result:function(w){g.push(w)}}),Promise.all(g)},pause:function(){e.dispatch({type:Ej})},persist:function(){e.dispatch({type:_j,register:l,rehydrate:c})}});return t&&t.manualPersist||d.persist(),d}var ak={},ok={};ok.__esModule=!0,ok.default=wK;function k2(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k2=function(n){return typeof n}:k2=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},k2(e)}function sk(){}var SK={getItem:sk,setItem:sk,removeItem:sk};function xK(e){if((typeof self>"u"?"undefined":k2(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(e," test failed, persistence will be disabled.")),!1}return!0}function wK(e){var t="".concat(e,"Storage");return xK(t)?self[t]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),SK)}ak.__esModule=!0,ak.default=_K;var CK=EK(ok);function EK(e){return e&&e.__esModule?e:{default:e}}function _K(e){var t=(0,CK.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,o){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var jj=void 0,TK=kK(ak);function kK(e){return e&&e.__esModule?e:{default:e}}var PK=(0,TK.default)("local");jj=PK;var Ij={},Rj={},Zm={};Object.defineProperty(Zm,"__esModule",{value:!0}),Zm.PLACEHOLDER_UNDEFINED=Zm.PACKAGE_NAME=void 0,Zm.PACKAGE_NAME="redux-deep-persist",Zm.PLACEHOLDER_UNDEFINED="@@placeholder/undefined";var lk={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigType=void 0,function(t){t[t.WHITELIST=0]="WHITELIST",t[t.BLACKLIST=1]="BLACKLIST"}(e.ConfigType||(e.ConfigType={}))})(lk),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getRootKeysGroup=e.throwError=e.configValidator=e.transformsValidator=e.singleTransformValidator=e.findDuplicatesAndSubsets=e.unique=e.preserveUndefined=e.mergeDeep=e.dissocPath=e.assocPath=e.path=e.difference=e.cloneDeep=e._cloneDeep=e.getCircularPath=e.isEmpty=e.isDate=e.isString=e.isIntegerString=e.isPlainObject=e.isArray=e.isLength=e.isObjectLike=void 0;const t=Zm,n=lk,r=function(X){return typeof X=="object"&&X!==null};e.isObjectLike=r;const i=function(X){return typeof X=="number"&&X>-1&&X%1==0&&X<=Number.MAX_SAFE_INTEGER};e.isLength=i,e.isArray=Array.isArray||function(X){return(0,e.isLength)(X&&X.length)&&Object.prototype.toString.call(X)==="[object Array]"};const a=function(X){return!!X&&typeof X=="object"&&!(0,e.isArray)(X)};e.isPlainObject=a;const o=function(X){return String(~~X)===X&&Number(X)>=0};e.isIntegerString=o;const l=function(X){return Object.prototype.toString.call(X)==="[object String]"};e.isString=l;const c=function(X){return Object.prototype.toString.call(X)==="[object Date]"};e.isDate=c;const d=function(X){return Object.keys(X).length===0};e.isEmpty=d;const p=Object.prototype.hasOwnProperty,g=function(X,G,te){te||(te=new Set([X])),G||(G="");for(const re in X){const oe=G?`${G}.${re}`:re,ie=X[re];if((0,e.isObjectLike)(ie))return te.has(ie)?`${G}.${re}:<Circular>`:(te.add(ie),(0,e.getCircularPath)(ie,oe,te))}return null};e.getCircularPath=g;const S=function(X){if(!(0,e.isObjectLike)(X))return X;if((0,e.isDate)(X))return new Date(+X);const G=(0,e.isArray)(X)?[]:{};for(const te in X){const re=X[te];G[te]=(0,e._cloneDeep)(re)}return G};e._cloneDeep=S;const w=function(X){const G=(0,e.getCircularPath)(X);if(G)throw new Error(`${t.PACKAGE_NAME}: circular dependency detected under the path '${G}' of object you're trying to persist: ${X}`);return(0,e._cloneDeep)(X)};e.cloneDeep=w;const C=function(X,G){if(X===G)return{};if(!(0,e.isObjectLike)(X)||!(0,e.isObjectLike)(G))return G;const te=(0,e.cloneDeep)(X),re=(0,e.cloneDeep)(G),oe=Object.keys(te).reduce((le,ee)=>(p.call(re,ee)||(le[ee]=void 0),le),{});if((0,e.isDate)(te)||(0,e.isDate)(re))return te.valueOf()===re.valueOf()?{}:re;const ie=Object.keys(re).reduce((le,ee)=>{if(!p.call(te,ee))return le[ee]=re[ee],le;const de=(0,e.difference)(te[ee],re[ee]);return(0,e.isObjectLike)(de)&&(0,e.isEmpty)(de)&&!(0,e.isDate)(de)?(0,e.isArray)(te)&&!(0,e.isArray)(re)||!(0,e.isArray)(te)&&(0,e.isArray)(re)?re:le:(le[ee]=de,le)},oe);return delete ie._persist,ie};e.difference=C;const k=function(X,G){return G.reduce((te,re)=>{if(te){const oe=parseInt(re,10),ie=(0,e.isIntegerString)(re)&&oe<0?te.length+oe:re;return(0,e.isString)(te)?te.charAt(ie):te[ie]}},X)};e.path=k;const P=function(X,G){return[...X].reverse().reduce((oe,ie,le)=>{const ee=(0,e.isIntegerString)(ie)?[]:{};return ee[ie]=le===0?G:oe,ee},{})};e.assocPath=P;const D=function(X,G){const te=(0,e.cloneDeep)(X);return G.reduce((re,oe,ie)=>(ie===G.length-1&&re&&(0,e.isObjectLike)(re)&&delete re[oe],re&&re[oe]),te),te};e.dissocPath=D;const M=function(X,G,...te){if(!te||!te.length)return G;const re=te.shift(),{preservePlaceholder:oe,preserveUndefined:ie}=X;if((0,e.isObjectLike)(G)&&(0,e.isObjectLike)(re))for(const le in re)if((0,e.isObjectLike)(re[le])&&(0,e.isObjectLike)(G[le]))G[le]||(G[le]={}),M(X,G[le],re[le]);else if((0,e.isArray)(G)){let ee=re[le];const de=oe?t.PLACEHOLDER_UNDEFINED:void 0;ie||(ee=typeof ee<"u"?ee:G[parseInt(le,10)]),ee=ee!==t.PLACEHOLDER_UNDEFINED?ee:de,G[parseInt(le,10)]=ee}else{const ee=re[le]!==t.PLACEHOLDER_UNDEFINED?re[le]:void 0;G[le]=ee}return M(X,G,...te)},R=function(X,G,te){return M({preservePlaceholder:te==null?void 0:te.preservePlaceholder,preserveUndefined:te==null?void 0:te.preserveUndefined},(0,e.cloneDeep)(X),(0,e.cloneDeep)(G))};e.mergeDeep=R;const L=function(X,G=[],te,re,oe){if(!(0,e.isObjectLike)(X))return X;for(const ie in X){const le=X[ie],ee=(0,e.isArray)(X),de=re?re+"."+ie:ie;le===null&&(te===n.ConfigType.WHITELIST&&G.indexOf(de)===-1||te===n.ConfigType.BLACKLIST&&G.indexOf(de)!==-1)&&ee&&(X[parseInt(ie,10)]=void 0),le===void 0&&oe&&te===n.ConfigType.BLACKLIST&&G.indexOf(de)===-1&&ee&&(X[parseInt(ie,10)]=t.PLACEHOLDER_UNDEFINED),L(le,G,te,de,oe)}},z=function(X,G,te,re){const oe=(0,e.cloneDeep)(X);return L(oe,G,te,"",re),oe};e.preserveUndefined=z;const U=function(X,G,te){return te.indexOf(X)===G};e.unique=U;const V=function(X){return X.reduce((G,te)=>{const re=X.filter(Fe=>Fe===te),oe=X.filter(Fe=>(te+".").indexOf(Fe+".")===0),{duplicates:ie,subsets:le}=G,ee=re.length>1&&ie.indexOf(te)===-1,de=oe.length>1;return{duplicates:[...ie,...ee?re:[]],subsets:[...le,...de?oe:[]].filter(e.unique).sort()}},{duplicates:[],subsets:[]})};e.findDuplicatesAndSubsets=V;const Y=function(X,G,te){const re=te===n.ConfigType.WHITELIST?"whitelist":"blacklist",oe=`${t.PACKAGE_NAME}: incorrect ${re} configuration.`,ie=`Check your create${te===n.ConfigType.WHITELIST?"White":"Black"}list arguments.
|
||
|
||
`;if(!(0,e.isString)(G)||G.length<1)throw new Error(`${oe} Name (key) of reducer is required. ${ie}`);if(!X||!X.length)return;const{duplicates:le,subsets:ee}=(0,e.findDuplicatesAndSubsets)(X);if(le.length>1)throw new Error(`${oe} Duplicated paths.
|
||
|
||
${JSON.stringify(le)}
|
||
|
||
${ie}`);if(ee.length>1)throw new Error(`${oe} You are trying to persist an entire property and also some of its subset.
|
||
|
||
${JSON.stringify(ee)}
|
||
|
||
${ie}`)};e.singleTransformValidator=Y;const J=function(X){if(!(0,e.isArray)(X))return;const G=(X==null?void 0:X.map(te=>te.deepPersistKey).filter(te=>te))||[];if(G.length){const te=G.filter((re,oe)=>G.indexOf(re)!==oe);if(te.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(te)}`)}};e.transformsValidator=J;const $=function({whitelist:X,blacklist:G}){if(X&&X.length&&G&&G.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(X){const{duplicates:te,subsets:re}=(0,e.findDuplicatesAndSubsets)(X);(0,e.throwError)({duplicates:te,subsets:re},"whitelist")}if(G){const{duplicates:te,subsets:re}=(0,e.findDuplicatesAndSubsets)(G);(0,e.throwError)({duplicates:te,subsets:re},"blacklist")}};e.configValidator=$;const K=function({duplicates:X,subsets:G},te){if(X.length)throw new Error(`${t.PACKAGE_NAME}: duplicates of paths found in your ${te}.
|
||
|
||
${JSON.stringify(X)}`);if(G.length)throw new Error(`${t.PACKAGE_NAME}: subsets of some parent keys found in your ${te}. You must decide if you want to persist an entire path or its specific subset.
|
||
|
||
${JSON.stringify(G)}`)};e.throwError=K;const fe=function(X){return(0,e.isArray)(X)?X.filter(e.unique).reduce((G,te)=>{const re=te.split("."),oe=re[0],ie=re.slice(1).join(".")||void 0,le=G.filter(de=>Object.keys(de)[0]===oe)[0],ee=le?Object.values(le)[0]:void 0;return le||G.push({[oe]:ie?[ie]:void 0}),le&&!ee&&ie&&(le[oe]=[ie]),le&&ee&&ie&&ee.push(ie),G},[]):[]};e.getRootKeysGroup=fe}(Rj),function(e){var t=zs&&zs.__rest||function(g,S){var w={};for(var C in g)Object.prototype.hasOwnProperty.call(g,C)&&S.indexOf(C)<0&&(w[C]=g[C]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,C=Object.getOwnPropertySymbols(g);k<C.length;k++)S.indexOf(C[k])<0&&Object.prototype.propertyIsEnumerable.call(g,C[k])&&(w[C[k]]=g[C[k]]);return w};Object.defineProperty(e,"__esModule",{value:!0}),e.getPersistConfig=e.getTransforms=e.createBlacklist=e.createWhitelist=e.autoMergeDeep=void 0;const n=Rj,r=Zm,i=lk,a=function(g,S,w={}){const C=w.whitelist||null,k=w.blacklist||null;function P(D){return!!(C&&C.indexOf(D)===-1||k&&k.indexOf(D)!==-1)}return{in:(D,M,R)=>!P(M)&&g?g(D,M,R):D,out:(D,M,R)=>!P(M)&&S?S(D,M,R):D,deepPersistKey:C&&C[0]}},o=(g,S,w,{debug:C,whitelist:k,blacklist:P,transforms:D})=>{if(k||P)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)(D);const M=(0,n.cloneDeep)(w);let R=g;if(R&&(0,n.isObjectLike)(R)){const L=(0,n.difference)(S,w);(0,n.isEmpty)(L)||(R=(0,n.mergeDeep)(g,L,{preserveUndefined:!0}),C&&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(R).forEach(z=>{if(z!=="_persist"){if((0,n.isObjectLike)(M[z])){M[z]=(0,n.mergeDeep)(M[z],R[z]);return}M[z]=R[z]}})}return C&&R&&(0,n.isObjectLike)(R)&&console.log(`${r.PACKAGE_NAME}/autoMergeDeep: rehydrated keys ${JSON.stringify(R)}`),M};e.autoMergeDeep=o;const l=(g,S)=>((0,n.singleTransformValidator)(S,g,i.ConfigType.WHITELIST),a(w=>{if(!S||!S.length)return w;let C=null,k;return S.forEach(P=>{const D=P.split(".");k=(0,n.path)(w,D),typeof k>"u"&&(0,n.isIntegerString)(D[D.length-1])&&(k=r.PLACEHOLDER_UNDEFINED);const M=(0,n.assocPath)(D,k),R=(0,n.isArray)(M)?[]:{};C=(0,n.mergeDeep)(C||R,M,{preservePlaceholder:!0})}),C||w},w=>(0,n.preserveUndefined)(w,S,i.ConfigType.WHITELIST),{whitelist:[g]}));e.createWhitelist=l;const c=(g,S)=>((0,n.singleTransformValidator)(S,g,i.ConfigType.BLACKLIST),a(w=>{if(!S||!S.length)return;const C=(0,n.preserveUndefined)(w,S,i.ConfigType.BLACKLIST,!0);return S.map(P=>P.split(".")).reduce((P,D)=>(0,n.dissocPath)(P,D),C)},w=>(0,n.preserveUndefined)(w,S,i.ConfigType.BLACKLIST),{whitelist:[g]}));e.createBlacklist=c;const d=function(g,S){return S.map(w=>{const C=Object.keys(w)[0],k=w[C];return g===i.ConfigType.WHITELIST?(0,e.createWhitelist)(C,k):(0,e.createBlacklist)(C,k)})};e.getTransforms=d;const p=g=>{var{key:S,whitelist:w,blacklist:C,storage:k,transforms:P,rootReducer:D}=g,M=t(g,["key","whitelist","blacklist","storage","transforms","rootReducer"]);(0,n.configValidator)({whitelist:w,blacklist:C});const R=(0,n.getRootKeysGroup)(w),L=(0,n.getRootKeysGroup)(C),z=Object.keys(D(void 0,{type:""})),U=R.map(fe=>Object.keys(fe)[0]),V=L.map(fe=>Object.keys(fe)[0]),Y=z.filter(fe=>U.indexOf(fe)===-1&&V.indexOf(fe)===-1),J=(0,e.getTransforms)(i.ConfigType.WHITELIST,R),$=(0,e.getTransforms)(i.ConfigType.BLACKLIST,L),K=(0,n.isArray)(w)?Y.map(fe=>(0,e.createBlacklist)(fe)):[];return Object.assign(Object.assign({},M),{key:S,storage:k,transforms:[...J,...$,...K,...P||[]],stateReconciler:e.autoMergeDeep})};e.getPersistConfig=p}(Ij);const hp=(e,t)=>Math.floor(e/t)*t,wd=(e,t)=>Math.round(e/t)*t;var Qe={},AK={get exports(){return Qe},set exports(e){Qe=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,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,p="__lodash_placeholder__",g=1,S=2,w=4,C=1,k=2,P=1,D=2,M=4,R=8,L=16,z=32,U=64,V=128,Y=256,J=512,$=30,K="...",fe=800,X=16,G=1,te=2,re=3,oe=1/0,ie=9007199254740991,le=17976931348623157e292,ee=0/0,de=4294967295,Fe=de-1,Pe=de>>>1,Oe=[["ary",V],["bind",P],["bindKey",D],["curry",R],["curryRight",L],["flip",J],["partial",z],["partialRight",U],["rearg",Y]],Ie="[object Arguments]",De="[object Array]",$e="[object AsyncFunction]",it="[object Boolean]",mt="[object Date]",bt="[object DOMException]",qe="[object Error]",Ce="[object Function]",Nt="[object GeneratorFunction]",Ae="[object Map]",xt="[object Number]",ln="[object Null]",Wt="[object Object]",In="[object Promise]",ar="[object Proxy]",we="[object RegExp]",at="[object Set]",ot="[object String]",yt="[object Symbol]",He="[object Undefined]",st="[object WeakMap]",Zt="[object WeakSet]",nn="[object ArrayBuffer]",Ze="[object DataView]",rn="[object Float32Array]",Rn="[object Float64Array]",lt="[object Int8Array]",Ge="[object Int16Array]",pt="[object Int32Array]",Bt="[object Uint8Array]",jn="[object Uint8ClampedArray]",Un="[object Uint16Array]",Mt="[object Uint32Array]",Lt=/\b__p \+= '';/g,vr=/\b(__p \+=) '' \+/g,gr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,hn=/&(?:amp|lt|gt|quot|#39);/g,ri=/[&<>"']/g,Ys=RegExp(hn.source),so=RegExp(ri.source),qn=/<%-([\s\S]+?)%>/g,Io=/<%([\s\S]+?)%>/g,lo=/<%=([\s\S]+?)%>/g,Xo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Na=/^\w*$/,Fi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qo=/[\\^$.*+?()[\]{}|]/g,tu=RegExp(Qo.source),Ku=/^\s+/,Wc=/\s/,nu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,di=/\{\n\/\* \[wrapped with (.+)\] \*/,pe=/,? & /,ft=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,kt=/[()=,{}\[\]\/\s]/,an=/\\(\\)?/g,er=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pn=/\w*$/,zn=/^[-+]0x[0-9a-f]+$/i,Nn=/^0b[01]+$/i,Ei=/^\[object .+?Constructor\]$/,Dr=/^0o[0-7]+$/i,Mr=/^(?:0|[1-9]\d*)$/,fi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,uo=/($^)/,ru=/['\n\r\u2028\u2029\\]/g,fa="\\ud800-\\udfff",qc="\\u0300-\\u036f",Xu="\\ufe20-\\ufe2f",iu="\\u20d0-\\u20ff",au=qc+Xu+iu,xh="\\u2700-\\u27bf",Zd="a-z\\xdf-\\xf6\\xf8-\\xff",ou="\\xac\\xb1\\xd7\\xf7",Ks="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Hn="\\u2000-\\u206f",_r=" \\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",Xs="A-Z\\xc0-\\xd6\\xd8-\\xde",ha="\\ufe0e\\ufe0f",La=ou+Ks+Hn+_r,Qs="['’]",Qu="["+fa+"]",pa="["+La+"]",El="["+au+"]",Jd="\\d+",su="["+xh+"]",_l="["+Zd+"]",$d="[^"+fa+La+Jd+xh+Zd+Xs+"]",co="\\ud83c[\\udffb-\\udfff]",ef="(?:"+El+"|"+co+")",Yc="[^"+fa+"]",wh="(?:\\ud83c[\\udde6-\\uddff]){2}",ea="[\\ud800-\\udbff][\\udc00-\\udfff]",fo="["+Xs+"]",ma="\\u200d",Kc="(?:"+_l+"|"+$d+")",qv="(?:"+fo+"|"+$d+")",tf="(?:"+Qs+"(?:d|ll|m|re|s|t|ve))?",nf="(?:"+Qs+"(?:D|LL|M|RE|S|T|VE))?",Ch=ef+"?",rf="["+ha+"]?",ho="(?:"+ma+"(?:"+[Yc,wh,ea].join("|")+")"+rf+Ch+")*",Eh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xc="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tr=rf+Ch+ho,Zu="(?:"+[su,wh,ea].join("|")+")"+tr,af="(?:"+[Yc+El+"?",El,wh,ea,Qu].join("|")+")",of=RegExp(Qs,"g"),em=RegExp(El,"g"),Zs=RegExp(co+"(?="+co+")|"+af+tr,"g"),hi=RegExp([fo+"?"+_l+"+"+tf+"(?="+[pa,fo,"$"].join("|")+")",qv+"+"+nf+"(?="+[pa,fo+Kc,"$"].join("|")+")",fo+"?"+Kc+"+"+tf,fo+"+"+nf,Xc,Eh,Jd,Zu].join("|"),"g"),_h=RegExp("["+ma+fa+au+ha+"]"),tm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Th=["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"],nm=-1,Tr={};Tr[rn]=Tr[Rn]=Tr[lt]=Tr[Ge]=Tr[pt]=Tr[Bt]=Tr[jn]=Tr[Un]=Tr[Mt]=!0,Tr[Ie]=Tr[De]=Tr[nn]=Tr[it]=Tr[Ze]=Tr[mt]=Tr[qe]=Tr[Ce]=Tr[Ae]=Tr[xt]=Tr[Wt]=Tr[we]=Tr[at]=Tr[ot]=Tr[st]=!1;var nr={};nr[Ie]=nr[De]=nr[nn]=nr[Ze]=nr[it]=nr[mt]=nr[rn]=nr[Rn]=nr[lt]=nr[Ge]=nr[pt]=nr[Ae]=nr[xt]=nr[Wt]=nr[we]=nr[at]=nr[ot]=nr[yt]=nr[Bt]=nr[jn]=nr[Un]=nr[Mt]=!0,nr[qe]=nr[Ce]=nr[st]=!1;var rm={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},im={"&":"&","<":"<",">":">",'"':""","'":"'"},ae={"&":"&","<":"<",">":">",""":'"',"'":"'"},ve={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Le=parseFloat,zt=parseInt,Yn=typeof zs=="object"&&zs&&zs.Object===Object&&zs,jr=typeof self=="object"&&self&&self.Object===Object&&self,pn=Yn||jr||Function("return this")(),An=t&&!t.nodeType&&t,rr=An&&!0&&e&&!e.nodeType&&e,ta=rr&&rr.exports===An,Ui=ta&&Yn.process,kr=function(){try{var ge=rr&&rr.require&&rr.require("util").types;return ge||Ui&&Ui.binding&&Ui.binding("util")}catch{}}(),za=kr&&kr.isArrayBuffer,bs=kr&&kr.isDate,Zo=kr&&kr.isMap,Js=kr&&kr.isRegExp,Tl=kr&&kr.isSet,Yv=kr&&kr.isTypedArray;function po(ge,ze,Te){switch(Te.length){case 0:return ge.call(ze);case 1:return ge.call(ze,Te[0]);case 2:return ge.call(ze,Te[0],Te[1]);case 3:return ge.call(ze,Te[0],Te[1],Te[2])}return ge.apply(ze,Te)}function sf(ge,ze,Te,It){for(var tn=-1,Bn=ge==null?0:ge.length;++tn<Bn;){var gn=ge[tn];ze(It,gn,Te(gn),ge)}return It}function pi(ge,ze){for(var Te=-1,It=ge==null?0:ge.length;++Te<It&&ze(ge[Te],Te,ge)!==!1;);return ge}function Ss(ge,ze){for(var Te=ge==null?0:ge.length;Te--&&ze(ge[Te],Te,ge)!==!1;);return ge}function ii(ge,ze){for(var Te=-1,It=ge==null?0:ge.length;++Te<It;)if(!ze(ge[Te],Te,ge))return!1;return!0}function xs(ge,ze){for(var Te=-1,It=ge==null?0:ge.length,tn=0,Bn=[];++Te<It;){var gn=ge[Te];ze(gn,Te,ge)&&(Bn[tn++]=gn)}return Bn}function Ro(ge,ze){var Te=ge==null?0:ge.length;return!!Te&&cf(ge,ze,0)>-1}function am(ge,ze,Te){for(var It=-1,tn=ge==null?0:ge.length;++It<tn;)if(Te(ze,ge[It]))return!0;return!1}function ai(ge,ze){for(var Te=-1,It=ge==null?0:ge.length,tn=Array(It);++Te<It;)tn[Te]=ze(ge[Te],Te,ge);return tn}function kl(ge,ze){for(var Te=-1,It=ze.length,tn=ge.length;++Te<It;)ge[tn+Te]=ze[Te];return ge}function kh(ge,ze,Te,It){var tn=-1,Bn=ge==null?0:ge.length;for(It&&Bn&&(Te=ge[++tn]);++tn<Bn;)Te=ze(Te,ge[tn],tn,ge);return Te}function gy(ge,ze,Te,It){var tn=ge==null?0:ge.length;for(It&&tn&&(Te=ge[--tn]);tn--;)Te=ze(Te,ge[tn],tn,ge);return Te}function lf(ge,ze){for(var Te=-1,It=ge==null?0:ge.length;++Te<It;)if(ze(ge[Te],Te,ge))return!0;return!1}var yy=Ju("length");function uf(ge){return ge.split("")}function Kv(ge){return ge.match(ft)||[]}function by(ge,ze,Te){var It;return Te(ge,function(tn,Bn,gn){if(ze(tn,Bn,gn))return It=Bn,!1}),It}function Qc(ge,ze,Te,It){for(var tn=ge.length,Bn=Te+(It?1:-1);It?Bn--:++Bn<tn;)if(ze(ge[Bn],Bn,ge))return Bn;return-1}function cf(ge,ze,Te){return ze===ze?um(ge,ze,Te):Qc(ge,Ph,Te)}function $s(ge,ze,Te,It){for(var tn=Te-1,Bn=ge.length;++tn<Bn;)if(It(ge[tn],ze))return tn;return-1}function Ph(ge){return ge!==ge}function Ah(ge,ze){var Te=ge==null?0:ge.length;return Te?Dh(ge,ze)/Te:ee}function Ju(ge){return function(ze){return ze==null?n:ze[ge]}}function Oh(ge){return function(ze){return ge==null?n:ge[ze]}}function om(ge,ze,Te,It,tn){return tn(ge,function(Bn,gn,yr){Te=It?(It=!1,Bn):ze(Te,Bn,gn,yr)}),Te}function Sy(ge,ze){var Te=ge.length;for(ge.sort(ze);Te--;)ge[Te]=ge[Te].value;return ge}function Dh(ge,ze){for(var Te,It=-1,tn=ge.length;++It<tn;){var Bn=ze(ge[It]);Bn!==n&&(Te=Te===n?Bn:Te+Bn)}return Te}function Mh(ge,ze){for(var Te=-1,It=Array(ge);++Te<ge;)It[Te]=ze(Te);return It}function df(ge,ze){return ai(ze,function(Te){return[Te,ge[Te]]})}function Ba(ge){return ge&&ge.slice(0,cm(ge)+1).replace(Ku,"")}function na(ge){return function(ze){return ge(ze)}}function ff(ge,ze){return ai(ze,function(Te){return ge[Te]})}function Zc(ge,ze){return ge.has(ze)}function ws(ge,ze){for(var Te=-1,It=ge.length;++Te<It&&cf(ze,ge[Te],0)>-1;);return Te}function Pl(ge,ze){for(var Te=ge.length;Te--&&cf(ze,ge[Te],0)>-1;);return Te}function sm(ge,ze){for(var Te=ge.length,It=0;Te--;)ge[Te]===ze&&++It;return It}var Xv=Oh(rm),Al=Oh(im);function $u(ge){return"\\"+ve[ge]}function lm(ge,ze){return ge==null?n:ge[ze]}function lu(ge){return _h.test(ge)}function hf(ge){return tm.test(ge)}function uu(ge){for(var ze,Te=[];!(ze=ge.next()).done;)Te.push(ze.value);return Te}function pf(ge){var ze=-1,Te=Array(ge.size);return ge.forEach(function(It,tn){Te[++ze]=[tn,It]}),Te}function Jc(ge,ze){return function(Te){return ge(ze(Te))}}function el(ge,ze){for(var Te=-1,It=ge.length,tn=0,Bn=[];++Te<It;){var gn=ge[Te];(gn===ze||gn===p)&&(ge[Te]=p,Bn[tn++]=Te)}return Bn}function $c(ge){var ze=-1,Te=Array(ge.size);return ge.forEach(function(It){Te[++ze]=It}),Te}function xy(ge){var ze=-1,Te=Array(ge.size);return ge.forEach(function(It){Te[++ze]=[It,It]}),Te}function um(ge,ze,Te){for(var It=Te-1,tn=ge.length;++It<tn;)if(ge[It]===ze)return It;return-1}function Qv(ge,ze,Te){for(var It=Te+1;It--;)if(ge[It]===ze)return It;return It}function Cs(ge){return lu(ge)?cu(ge):yy(ge)}function mo(ge){return lu(ge)?Es(ge):uf(ge)}function cm(ge){for(var ze=ge.length;ze--&&Wc.test(ge.charAt(ze)););return ze}var Zv=Oh(ae);function cu(ge){for(var ze=Zs.lastIndex=0;Zs.test(ge);)++ze;return ze}function Es(ge){return ge.match(Zs)||[]}function ed(ge){return ge.match(hi)||[]}var vo=function ge(ze){ze=ze==null?pn:Oa.defaults(pn.Object(),ze,Oa.pick(pn,Th));var Te=ze.Array,It=ze.Date,tn=ze.Error,Bn=ze.Function,gn=ze.Math,yr=ze.Object,Ol=ze.RegExp,dm=ze.String,ra=ze.TypeError,du=Te.prototype,eo=Bn.prototype,wr=yr.prototype,mi=ze["__core-js_shared__"],Oi=eo.toString,hr=wr.hasOwnProperty,ec=0,td=function(){var f=/[^.]+$/.exec(mi&&mi.keys&&mi.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""}(),fm=wr.toString,Vi=Oi.call(yr),hm=pn._,mn=Ol("^"+Oi.call(hr).replace(Qo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Vn=ta?ze.Buffer:n,En=ze.Symbol,cr=ze.Uint8Array,go=Vn?Vn.allocUnsafe:n,nd=Jc(yr.getPrototypeOf,yr),pm=yr.create,Jv=wr.propertyIsEnumerable,jh=du.splice,Ih=En?En.isConcatSpreadable:n,nt=En?En.iterator:n,oi=En?En.toStringTag:n,dn=function(){try{var f=Ln(yr,"defineProperty");return f({},"",{}),f}catch{}}(),rd=ze.clearTimeout!==pn.clearTimeout&&ze.clearTimeout,Dl=It&&It.now!==pn.Date.now&&It.now,tl=ze.setTimeout!==pn.setTimeout&&ze.setTimeout,No=gn.ceil,nl=gn.floor,rl=yr.getOwnPropertySymbols,mf=Vn?Vn.isBuffer:n,vf=ze.isFinite,mm=du.join,vm=Jc(yr.keys,yr),Di=gn.max,va=gn.min,Rh=It.now,gm=ze.parseInt,Nh=gn.random,ym=du.reverse,Lh=Ln(ze,"DataView"),tc=Ln(ze,"Map"),zh=Ln(ze,"Promise"),nc=Ln(ze,"Set"),rc=Ln(ze,"WeakMap"),ic=Ln(yr,"create"),ac=rc&&new rc,Lo={},$v=jf(Lh),eg=jf(tc),tg=jf(zh),oc=jf(nc),bm=jf(rc),Ml=En?En.prototype:n,gf=Ml?Ml.valueOf:n,id=Ml?Ml.toString:n;function q(f){if(Ri(f)&&!On(f)&&!(f instanceof Gn)){if(f instanceof Kn)return f;if(hr.call(f,"__wrapped__"))return Ly(f)}return new Kn(f)}var ga=function(){function f(){}return function(y){if(!yi(y))return{};if(pm)return pm(y);f.prototype=y;var T=new f;return f.prototype=n,T}}();function Bh(){}function Kn(f,y){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!y,this.__index__=0,this.__values__=n}q.templateSettings={escape:qn,evaluate:Io,interpolate:lo,variable:"",imports:{_:q}},q.prototype=Bh.prototype,q.prototype.constructor=q,Kn.prototype=ga(Bh.prototype),Kn.prototype.constructor=Kn;function Gn(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=de,this.__views__=[]}function Fa(){var f=new Gn(this.__wrapped__);return f.__actions__=wo(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=wo(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=wo(this.__views__),f}function ya(){if(this.__filtered__){var f=new Gn(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}function Fh(){var f=this.__wrapped__.value(),y=this.__dir__,T=On(f),N=y<0,H=T?f.length:0,Z=Dy(0,H,this.__views__),ce=Z.start,se=Z.end,Ee=se-ce,We=N?se:ce-1,Je=this.__iteratees__,ht=Je.length,Rt=0,Jt=va(Ee,this.__takeCount__);if(!T||!N&&H==Ee&&Jt==Ee)return vc(f,this.__actions__);var wn=[];e:for(;Ee--&&Rt<Jt;){We+=y;for(var Wn=-1,fn=f[We];++Wn<ht;){var Zn=Je[Wn],dr=Zn.iteratee,cl=Zn.type,ss=dr(fn);if(cl==te)fn=ss;else if(!ss){if(cl==G)continue e;break e}}wn[Rt++]=fn}return wn}Gn.prototype=ga(Bh.prototype),Gn.prototype.constructor=Gn;function sc(f){var y=-1,T=f==null?0:f.length;for(this.clear();++y<T;){var N=f[y];this.set(N[0],N[1])}}function wy(){this.__data__=ic?ic(null):{},this.size=0}function Cy(f){var y=this.has(f)&&delete this.__data__[f];return this.size-=y?1:0,y}function Ey(f){var y=this.__data__;if(ic){var T=y[f];return T===c?n:T}return hr.call(y,f)?y[f]:n}function Uh(f){var y=this.__data__;return ic?y[f]!==n:hr.call(y,f)}function _y(f,y){var T=this.__data__;return this.size+=this.has(f)?0:1,T[f]=ic&&y===n?c:y,this}sc.prototype.clear=wy,sc.prototype.delete=Cy,sc.prototype.get=Ey,sc.prototype.has=Uh,sc.prototype.set=_y;function Jo(f){var y=-1,T=f==null?0:f.length;for(this.clear();++y<T;){var N=f[y];this.set(N[0],N[1])}}function ng(){this.__data__=[],this.size=0}function Ty(f){var y=this.__data__,T=ia(y,f);if(T<0)return!1;var N=y.length-1;return T==N?y.pop():jh.call(y,T,1),--this.size,!0}function rg(f){var y=this.__data__,T=ia(y,f);return T<0?n:y[T][1]}function yf(f){return ia(this.__data__,f)>-1}function ky(f,y){var T=this.__data__,N=ia(T,f);return N<0?(++this.size,T.push([f,y])):T[N][1]=y,this}Jo.prototype.clear=ng,Jo.prototype.delete=Ty,Jo.prototype.get=rg,Jo.prototype.has=yf,Jo.prototype.set=ky;function _s(f){var y=-1,T=f==null?0:f.length;for(this.clear();++y<T;){var N=f[y];this.set(N[0],N[1])}}function Vh(){this.size=0,this.__data__={hash:new sc,map:new(tc||Jo),string:new sc}}function BS(f){var y=Cn(this,f).delete(f);return this.size-=y?1:0,y}function lc(f){return Cn(this,f).get(f)}function ad(f){return Cn(this,f).has(f)}function uc(f,y){var T=Cn(this,f),N=T.size;return T.set(f,y),this.size+=T.size==N?0:1,this}_s.prototype.clear=Vh,_s.prototype.delete=BS,_s.prototype.get=lc,_s.prototype.has=ad,_s.prototype.set=uc;function Ts(f){var y=-1,T=f==null?0:f.length;for(this.__data__=new _s;++y<T;)this.add(f[y])}function Hi(f){return this.__data__.set(f,c),this}function bf(f){return this.__data__.has(f)}Ts.prototype.add=Ts.prototype.push=Hi,Ts.prototype.has=bf;function Xt(f){var y=this.__data__=new Jo(f);this.size=y.size}function Hh(){this.__data__=new Jo,this.size=0}function Sf(f){var y=this.__data__,T=y.delete(f);return this.size=y.size,T}function Sm(f){return this.__data__.get(f)}function xm(f){return this.__data__.has(f)}function xf(f,y){var T=this.__data__;if(T instanceof Jo){var N=T.__data__;if(!tc||N.length<i-1)return N.push([f,y]),this.size=++T.size,this;T=this.__data__=new _s(N)}return T.set(f,y),this.size=T.size,this}Xt.prototype.clear=Hh,Xt.prototype.delete=Sf,Xt.prototype.get=Sm,Xt.prototype.has=xm,Xt.prototype.set=xf;function od(f,y){var T=On(f),N=!T&&xc(f),H=!T&&!N&&_u(f),Z=!T&&!N&&!H&&ip(f),ce=T||N||H||Z,se=ce?Mh(f.length,dm):[],Ee=se.length;for(var We in f)(y||hr.call(f,We))&&!(ce&&(We=="length"||H&&(We=="offset"||We=="parent")||Z&&(We=="buffer"||We=="byteLength"||We=="byteOffset")||Bl(We,Ee)))&&se.push(We);return se}function wf(f){var y=f.length;return y?f[Xh(0,y-1)]:n}function Ua(f,y){return Ry(wo(f),fu(y,0,f.length))}function FS(f){return Ry(wo(f))}function Gh(f,y,T){(T!==n&&!ul(f[y],T)||T===n&&!(y in f))&&bo(f,y,T)}function cc(f,y,T){var N=f[y];(!(hr.call(f,y)&&ul(N,T))||T===n&&!(y in f))&&bo(f,y,T)}function ia(f,y){for(var T=f.length;T--;)if(ul(f[T][0],y))return T;return-1}function Py(f,y,T,N){return hu(f,function(H,Z,ce){y(N,H,T(H),ce)}),N}function Ht(f,y){return f&&Ll(y,to(y),f)}function yo(f,y){return f&&Ll(y,Vo(y),f)}function bo(f,y,T){y=="__proto__"&&dn?dn(f,y,{configurable:!0,enumerable:!0,value:T,writable:!0}):f[y]=T}function dc(f,y){for(var T=-1,N=y.length,H=Te(N),Z=f==null;++T<N;)H[T]=Z?n:Mg(f,y[T]);return H}function fu(f,y,T){return f===f&&(T!==n&&(f=f<=T?f:T),y!==n&&(f=f>=y?f:y)),f}function aa(f,y,T,N,H,Z){var ce,se=y&g,Ee=y&S,We=y&w;if(T&&(ce=H?T(f,N,H,Z):T(f)),ce!==n)return ce;if(!yi(f))return f;var Je=On(f);if(Je){if(ce=XE(f),!se)return wo(f,ce)}else{var ht=Ii(f),Rt=ht==Ce||ht==Nt;if(_u(f))return gc(f,se);if(ht==Wt||ht==Ie||Rt&&!H){if(ce=Ee||Rt?{}:My(f),!se)return Ee?Am(f,yo(ce,f)):Os(f,Ht(ce,f))}else{if(!nr[ht])return H?f:{};ce=NO(f,ht,se)}}Z||(Z=new Xt);var Jt=Z.get(f);if(Jt)return Jt;Z.set(f,ce),k_(f)?f.forEach(function(fn){ce.add(aa(fn,y,T,fn,f,Z))}):kx(f)&&f.forEach(function(fn,Zn){ce.set(Zn,aa(fn,y,T,Zn,f,Z))});var wn=We?Ee?Be:Cr:Ee?Vo:to,Wn=Je?n:wn(f);return pi(Wn||f,function(fn,Zn){Wn&&(Zn=fn,fn=f[Zn]),cc(ce,Zn,aa(fn,y,T,Zn,f,Z))}),ce}function zo(f){var y=to(f);return function(T){return Gi(T,f,y)}}function Gi(f,y,T){var N=T.length;if(f==null)return!N;for(f=yr(f);N--;){var H=T[N],Z=y[H],ce=f[H];if(ce===n&&!(H in f)||!Z(ce))return!1}return!0}function ig(f,y,T){if(typeof f!="function")throw new ra(o);return Rm(function(){f.apply(n,T)},y)}function Cf(f,y,T,N){var H=-1,Z=Ro,ce=!0,se=f.length,Ee=[],We=y.length;if(!se)return Ee;T&&(y=ai(y,na(T))),N?(Z=am,ce=!1):y.length>=i&&(Z=Zc,ce=!1,y=new Ts(y));e:for(;++H<se;){var Je=f[H],ht=T==null?Je:T(Je);if(Je=N||Je!==0?Je:0,ce&&ht===ht){for(var Rt=We;Rt--;)if(y[Rt]===ht)continue e;Ee.push(Je)}else Z(y,ht,N)||Ee.push(Je)}return Ee}var hu=Af(ks),Wh=Af(Va,!0);function wm(f,y){var T=!0;return hu(f,function(N,H,Z){return T=!!y(N,H,Z),T}),T}function Wi(f,y,T){for(var N=-1,H=f.length;++N<H;){var Z=f[N],ce=y(Z);if(ce!=null&&(se===n?ce===ce&&!js(ce):T(ce,se)))var se=ce,Ee=Z}return Ee}function il(f,y,T,N){var H=f.length;for(T=xn(T),T<0&&(T=-T>H?0:H+T),N=N===n||N>H?H:xn(N),N<0&&(N+=H),N=T>N?0:Ul(N);T<N;)f[T++]=y;return f}function al(f,y){var T=[];return hu(f,function(N,H,Z){y(N,H,Z)&&T.push(N)}),T}function ba(f,y,T,N,H){var Z=-1,ce=f.length;for(T||(T=xu),H||(H=[]);++Z<ce;){var se=f[Z];y>0&&T(se)?y>1?ba(se,y-1,T,N,H):kl(H,se):N||(H[H.length]=se)}return H}var qi=Su(),So=Su(!0);function ks(f,y){return f&&qi(f,y,to)}function Va(f,y){return f&&So(f,y,to)}function qh(f,y){return xs(y,function(T){return Tu(f[T])})}function fc(f,y){y=Rl(y,f);for(var T=0,N=y.length;f!=null&&T<N;)f=f[wu(y[T++])];return T&&T==N?f:n}function ag(f,y,T){var N=y(f);return On(f)?N:kl(N,T(f))}function Yi(f){return f==null?f===n?He:ln:oi&&oi in yr(f)?ji(f):BO(f)}function Sa(f,y){return f>y}function Ot(f,y){return f!=null&&hr.call(f,y)}function $o(f,y){return f!=null&&y in yr(f)}function Bo(f,y,T){return f>=va(y,T)&&f<Di(y,T)}function Ef(f,y,T){for(var N=T?am:Ro,H=f[0].length,Z=f.length,ce=Z,se=Te(Z),Ee=1/0,We=[];ce--;){var Je=f[ce];ce&&y&&(Je=ai(Je,na(y))),Ee=va(Je.length,Ee),se[ce]=!T&&(y||H>=120&&Je.length>=120)?new Ts(ce&&Je):n}Je=f[0];var ht=-1,Rt=se[0];e:for(;++ht<H&&We.length<Ee;){var Jt=Je[ht],wn=y?y(Jt):Jt;if(Jt=T||Jt!==0?Jt:0,!(Rt?Zc(Rt,wn):N(We,wn,T))){for(ce=Z;--ce;){var Wn=se[ce];if(!(Wn?Zc(Wn,wn):N(f[ce],wn,T)))continue e}Rt&&Rt.push(wn),We.push(Jt)}}return We}function Cm(f,y,T,N){return ks(f,function(H,Z,ce){y(N,T(H),Z,ce)}),N}function pu(f,y,T){y=Rl(y,f),f=wa(f,y);var N=f==null?f:f[wu(Ds(y))];return N==null?n:po(N,f,T)}function Em(f){return Ri(f)&&Yi(f)==Ie}function og(f){return Ri(f)&&Yi(f)==nn}function oa(f){return Ri(f)&&Yi(f)==mt}function _f(f,y,T,N,H){return f===y?!0:f==null||y==null||!Ri(f)&&!Ri(y)?f!==f&&y!==y:sg(f,y,T,N,_f,H)}function sg(f,y,T,N,H,Z){var ce=On(f),se=On(y),Ee=ce?De:Ii(f),We=se?De:Ii(y);Ee=Ee==Ie?Wt:Ee,We=We==Ie?Wt:We;var Je=Ee==Wt,ht=We==Wt,Rt=Ee==We;if(Rt&&_u(f)){if(!_u(y))return!1;ce=!0,Je=!1}if(Rt&&!Je)return Z||(Z=new Xt),ce||ip(f)?Dt(f,y,T,N,H,Z):si(f,y,Ee,T,N,H,Z);if(!(T&C)){var Jt=Je&&hr.call(f,"__wrapped__"),wn=ht&&hr.call(y,"__wrapped__");if(Jt||wn){var Wn=Jt?f.value():f,fn=wn?y.value():y;return Z||(Z=new Xt),H(Wn,fn,T,N,Z)}}return Rt?(Z||(Z=new Xt),Ur(f,y,T,N,H,Z)):!1}function US(f){return Ri(f)&&Ii(f)==Ae}function sd(f,y,T,N){var H=T.length,Z=H,ce=!N;if(f==null)return!Z;for(f=yr(f);H--;){var se=T[H];if(ce&&se[2]?se[1]!==f[se[0]]:!(se[0]in f))return!1}for(;++H<Z;){se=T[H];var Ee=se[0],We=f[Ee],Je=se[1];if(ce&&se[2]){if(We===n&&!(Ee in f))return!1}else{var ht=new Xt;if(N)var Rt=N(We,Je,Ee,f,y,ht);if(!(Rt===n?_f(Je,We,C|k,N,ht):Rt))return!1}}return!0}function hc(f){if(!yi(f)||jy(f))return!1;var y=Tu(f)?mn:Ei;return y.test(jf(f))}function Jr(f){return Ri(f)&&Yi(f)==we}function Xn(f){return Ri(f)&&Ii(f)==at}function Da(f){return Ri(f)&&Um(f.length)&&!!Tr[Yi(f)]}function Ki(f){return typeof f=="function"?f:f==null?Is:typeof f=="object"?On(f)?mc(f[0],f[1]):ld(f):zg(f)}function xa(f){if(!Im(f))return vm(f);var y=[];for(var T in yr(f))hr.call(f,T)&&T!="constructor"&&y.push(T);return y}function es(f){if(!yi(f))return zO(f);var y=Im(f),T=[];for(var N in f)N=="constructor"&&(y||!hr.call(f,N))||T.push(N);return T}function pc(f,y){return f<y}function Xi(f,y){var T=-1,N=To(f)?Te(f.length):[];return hu(f,function(H,Z,ce){N[++T]=y(H,Z,ce)}),N}function ld(f){var y=Sn(f);return y.length==1&&y[0][2]?GS(y[0][0],y[0][1]):function(T){return T===f||sd(T,f,y)}}function mc(f,y){return Mm(f)&&HS(y)?GS(wu(f),y):function(T){var N=Mg(T,f);return N===n&&N===y?jg(T,f):_f(y,N,C|k)}}function ud(f,y,T,N,H){f!==y&&qi(y,function(Z,ce){if(H||(H=new Xt),yi(Z))lg(f,y,ce,T,ud,N,H);else{var se=N?N(mg(f,ce),Z,ce+"",f,y,H):n;se===n&&(se=Z),Gh(f,ce,se)}},Vo)}function lg(f,y,T,N,H,Z,ce){var se=mg(f,T),Ee=mg(y,T),We=ce.get(Ee);if(We){Gh(f,T,We);return}var Je=Z?Z(se,Ee,T+"",f,y,ce):n,ht=Je===n;if(ht){var Rt=On(Ee),Jt=!Rt&&_u(Ee),wn=!Rt&&!Jt&&ip(Ee);Je=Ee,Rt||Jt||wn?On(se)?Je=se:_i(se)?Je=wo(se):Jt?(ht=!1,Je=gc(Ee,!0)):wn?(ht=!1,Je=As(Ee,!0)):Je=[]:Ag(Ee)||xc(Ee)?(Je=se,xc(se)?Je=fb(se):(!yi(se)||Tu(se))&&(Je=My(Ee))):ht=!1}ht&&(ce.set(Ee,Je),H(Je,Ee,N,Z,ce),ce.delete(Ee)),Gh(f,T,Je)}function Tf(f,y){var T=f.length;if(T)return y+=y<0?T:0,Bl(y,T)?f[y]:n}function xo(f,y,T){y.length?y=ai(y,function(Z){return On(Z)?function(ce){return fc(ce,Z.length===1?Z[0]:Z)}:Z}):y=[Is];var N=-1;y=ai(y,na(rt()));var H=Xi(f,function(Z,ce,se){var Ee=ai(y,function(We){return We(Z)});return{criteria:Ee,index:++N,value:Z}});return Sy(H,function(Z,ce){return yc(Z,ce,T)})}function ug(f,y){return Yh(f,y,function(T,N){return jg(f,N)})}function Yh(f,y,T){for(var N=-1,H=y.length,Z={};++N<H;){var ce=y[N],se=fc(f,ce);T(se,ce)&&gu(Z,Rl(ce,f),se)}return Z}function mu(f){return function(y){return fc(y,f)}}function vu(f,y,T,N){var H=N?$s:cf,Z=-1,ce=y.length,se=f;for(f===y&&(y=wo(y)),T&&(se=ai(f,na(T)));++Z<ce;)for(var Ee=0,We=y[Z],Je=T?T(We):We;(Ee=H(se,Je,Ee,N))>-1;)se!==f&&jh.call(se,Ee,1),jh.call(f,Ee,1);return f}function Kh(f,y){for(var T=f?y.length:0,N=T-1;T--;){var H=y[T];if(T==N||H!==Z){var Z=H;Bl(H)?jh.call(f,H,1):Il(f,H)}}return f}function Xh(f,y){return f+nl(Nh()*(y-f+1))}function jl(f,y,T,N){for(var H=-1,Z=Di(No((y-f)/(T||1)),0),ce=Te(Z);Z--;)ce[N?Z:++H]=f,f+=T;return ce}function kf(f,y){var T="";if(!f||y<1||y>ie)return T;do y%2&&(T+=f),y=nl(y/2),y&&(f+=f);while(y);return T}function en(f,y){return YS($h(f,y,Is),f+"")}function Ps(f){return wf(Hl(f))}function cd(f,y){var T=Hl(f);return Ry(T,fu(y,0,T.length))}function gu(f,y,T,N){if(!yi(f))return f;y=Rl(y,f);for(var H=-1,Z=y.length,ce=Z-1,se=f;se!=null&&++H<Z;){var Ee=wu(y[H]),We=T;if(Ee==="__proto__"||Ee==="constructor"||Ee==="prototype")return f;if(H!=ce){var Je=se[Ee];We=N?N(Je,Ee,se):n,We===n&&(We=yi(Je)?Je:Bl(y[H+1])?[]:{})}cc(se,Ee,We),se=se[Ee]}return f}var Pf=ac?function(f,y){return ac.set(f,y),f}:Is,_m=dn?function(f,y){return dn(f,"toString",{configurable:!0,enumerable:!1,value:Zx(y),writable:!0})}:Is;function Ha(f){return Ry(Hl(f))}function Nr(f,y,T){var N=-1,H=f.length;y<0&&(y=-y>H?0:H+y),T=T>H?H:T,T<0&&(T+=H),H=y>T?0:T-y>>>0,y>>>=0;for(var Z=Te(H);++N<H;)Z[N]=f[N+y];return Z}function ts(f,y){var T;return hu(f,function(N,H,Z){return T=y(N,H,Z),!T}),!!T}function Mi(f,y,T){var N=0,H=f==null?N:f.length;if(typeof y=="number"&&y===y&&H<=Pe){for(;N<H;){var Z=N+H>>>1,ce=f[Z];ce!==null&&!js(ce)&&(T?ce<=y:ce<y)?N=Z+1:H=Z}return H}return yu(f,y,Is,T)}function yu(f,y,T,N){var H=0,Z=f==null?0:f.length;if(Z===0)return 0;y=T(y);for(var ce=y!==y,se=y===null,Ee=js(y),We=y===n;H<Z;){var Je=nl((H+Z)/2),ht=T(f[Je]),Rt=ht!==n,Jt=ht===null,wn=ht===ht,Wn=js(ht);if(ce)var fn=N||wn;else We?fn=wn&&(N||Rt):se?fn=wn&&Rt&&(N||!Jt):Ee?fn=wn&&Rt&&!Jt&&(N||!Wn):Jt||Wn?fn=!1:fn=N?ht<=y:ht<y;fn?H=Je+1:Z=Je}return va(Z,Fe)}function dd(f,y){for(var T=-1,N=f.length,H=0,Z=[];++T<N;){var ce=f[T],se=y?y(ce):ce;if(!T||!ul(se,Ee)){var Ee=se;Z[H++]=ce===0?0:ce}}return Z}function fd(f){return typeof f=="number"?f:js(f)?ee:+f}function gi(f){if(typeof f=="string")return f;if(On(f))return ai(f,gi)+"";if(js(f))return id?id.call(f):"";var y=f+"";return y=="0"&&1/f==-oe?"-0":y}function $r(f,y,T){var N=-1,H=Ro,Z=f.length,ce=!0,se=[],Ee=se;if(T)ce=!1,H=am;else if(Z>=i){var We=y?null:ne(f);if(We)return $c(We);ce=!1,H=Zc,Ee=new Ts}else Ee=y?[]:se;e:for(;++N<Z;){var Je=f[N],ht=y?y(Je):Je;if(Je=T||Je!==0?Je:0,ce&&ht===ht){for(var Rt=Ee.length;Rt--;)if(Ee[Rt]===ht)continue e;y&&Ee.push(ht),se.push(Je)}else H(Ee,ht,T)||(Ee!==se&&Ee.push(ht),se.push(Je))}return se}function Il(f,y){return y=Rl(y,f),f=wa(f,y),f==null||delete f[wu(Ds(y))]}function ol(f,y,T,N){return gu(f,y,T(fc(f,y)),N)}function Fo(f,y,T,N){for(var H=f.length,Z=N?H:-1;(N?Z--:++Z<H)&&y(f[Z],Z,f););return T?Nr(f,N?0:Z,N?Z+1:H):Nr(f,N?Z+1:0,N?H:Z)}function vc(f,y){var T=f;return T instanceof Gn&&(T=T.value()),kh(y,function(N,H){return H.func.apply(H.thisArg,kl([N],H.args))},T)}function Tm(f,y,T){var N=f.length;if(N<2)return N?$r(f[0]):[];for(var H=-1,Z=Te(N);++H<N;)for(var ce=f[H],se=-1;++se<N;)se!=H&&(Z[H]=Cf(Z[H]||ce,f[se],y,T));return $r(ba(Z,1),y,T)}function cg(f,y,T){for(var N=-1,H=f.length,Z=y.length,ce={};++N<H;){var se=N<Z?y[N]:n;T(ce,f[N],se)}return ce}function sl(f){return _i(f)?f:[]}function hd(f){return typeof f=="function"?f:Is}function Rl(f,y){return On(f)?f:Mm(f,y)?[f]:vg(lr(f))}var km=en;function bu(f,y,T){var N=f.length;return T=T===n?N:T,!y&&T>=N?f:Nr(f,y,T)}var Qh=rd||function(f){return pn.clearTimeout(f)};function gc(f,y){if(y)return f.slice();var T=f.length,N=go?go(T):new f.constructor(T);return f.copy(N),N}function dg(f){var y=new f.constructor(f.byteLength);return new cr(y).set(new cr(f)),y}function ns(f,y){var T=y?dg(f.buffer):f.buffer;return new f.constructor(T,f.byteOffset,f.byteLength)}function Ma(f){var y=new f.constructor(f.source,Pn.exec(f));return y.lastIndex=f.lastIndex,y}function sr(f){return gf?yr(gf.call(f)):{}}function As(f,y){var T=y?dg(f.buffer):f.buffer;return new f.constructor(T,f.byteOffset,f.length)}function Nl(f,y){if(f!==y){var T=f!==n,N=f===null,H=f===f,Z=js(f),ce=y!==n,se=y===null,Ee=y===y,We=js(y);if(!se&&!We&&!Z&&f>y||Z&&ce&&Ee&&!se&&!We||N&&ce&&Ee||!T&&Ee||!H)return 1;if(!N&&!Z&&!We&&f<y||We&&T&&H&&!N&&!Z||se&&T&&H||!ce&&H||!Ee)return-1}return 0}function yc(f,y,T){for(var N=-1,H=f.criteria,Z=y.criteria,ce=H.length,se=T.length;++N<ce;){var Ee=Nl(H[N],Z[N]);if(Ee){if(N>=se)return Ee;var We=T[N];return Ee*(We=="desc"?-1:1)}}return f.index-y.index}function Ay(f,y,T,N){for(var H=-1,Z=f.length,ce=T.length,se=-1,Ee=y.length,We=Di(Z-ce,0),Je=Te(Ee+We),ht=!N;++se<Ee;)Je[se]=y[se];for(;++H<ce;)(ht||H<Z)&&(Je[T[H]]=f[H]);for(;We--;)Je[se++]=f[H++];return Je}function Pm(f,y,T,N){for(var H=-1,Z=f.length,ce=-1,se=T.length,Ee=-1,We=y.length,Je=Di(Z-se,0),ht=Te(Je+We),Rt=!N;++H<Je;)ht[H]=f[H];for(var Jt=H;++Ee<We;)ht[Jt+Ee]=y[Ee];for(;++ce<se;)(Rt||H<Z)&&(ht[Jt+T[ce]]=f[H++]);return ht}function wo(f,y){var T=-1,N=f.length;for(y||(y=Te(N));++T<N;)y[T]=f[T];return y}function Ll(f,y,T,N){var H=!T;T||(T={});for(var Z=-1,ce=y.length;++Z<ce;){var se=y[Z],Ee=N?N(T[se],f[se],se,T,f):n;Ee===n&&(Ee=f[se]),H?bo(T,se,Ee):cc(T,se,Ee)}return T}function Os(f,y){return Ll(f,Qn(f),y)}function Am(f,y){return Ll(f,rs(f),y)}function Zh(f,y){return function(T,N){var H=On(T)?sf:Py,Z=y?y():{};return H(T,f,rt(N,2),Z)}}function Co(f){return en(function(y,T){var N=-1,H=T.length,Z=H>1?T[H-1]:n,ce=H>2?T[2]:n;for(Z=f.length>3&&typeof Z=="function"?(H--,Z):n,ce&&Ga(T[0],T[1],ce)&&(Z=H<3?n:Z,H=1),y=yr(y);++N<H;){var se=T[N];se&&f(y,se,N,Z)}return y})}function Af(f,y){return function(T,N){if(T==null)return T;if(!To(T))return f(T,N);for(var H=T.length,Z=y?H:-1,ce=yr(T);(y?Z--:++Z<H)&&N(ce[Z],Z,ce)!==!1;);return T}}function Su(f){return function(y,T,N){for(var H=-1,Z=yr(y),ce=N(y),se=ce.length;se--;){var Ee=ce[f?se:++H];if(T(Z[Ee],Ee,Z)===!1)break}return y}}function Of(f,y,T){var N=y&P,H=Jh(f);function Z(){var ce=this&&this!==pn&&this instanceof Z?H:f;return ce.apply(N?T:this,arguments)}return Z}function Df(f){return function(y){y=lr(y);var T=lu(y)?mo(y):n,N=T?T[0]:y.charAt(0),H=T?bu(T,1).join(""):y.slice(1);return N[f]()+H}}function zl(f){return function(y){return kh(Qx(Hx(y).replace(of,"")),f,"")}}function Jh(f){return function(){var y=arguments;switch(y.length){case 0:return new f;case 1:return new f(y[0]);case 2:return new f(y[0],y[1]);case 3:return new f(y[0],y[1],y[2]);case 4:return new f(y[0],y[1],y[2],y[3]);case 5:return new f(y[0],y[1],y[2],y[3],y[4]);case 6:return new f(y[0],y[1],y[2],y[3],y[4],y[5]);case 7:return new f(y[0],y[1],y[2],y[3],y[4],y[5],y[6])}var T=ga(f.prototype),N=f.apply(T,y);return yi(N)?N:T}}function Oy(f,y,T){var N=Jh(f);function H(){for(var Z=arguments.length,ce=Te(Z),se=Z,Ee=jt(H);se--;)ce[se]=arguments[se];var We=Z<3&&ce[0]!==Ee&&ce[Z-1]!==Ee?[]:el(ce,Ee);if(Z-=We.length,Z<T)return j(f,y,Mf,H.placeholder,n,ce,We,n,n,T-Z);var Je=this&&this!==pn&&this instanceof H?N:f;return po(Je,this,ce)}return H}function fg(f){return function(y,T,N){var H=yr(y);if(!To(y)){var Z=rt(T,3);y=to(y),T=function(se){return Z(H[se],se,H)}}var ce=f(y,T,N);return ce>-1?H[Z?y[ce]:ce]:n}}function hg(f){return or(function(y){var T=y.length,N=T,H=Kn.prototype.thru;for(f&&y.reverse();N--;){var Z=y[N];if(typeof Z!="function")throw new ra(o);if(H&&!ce&&Ue(Z)=="wrapper")var ce=new Kn([],!0)}for(N=ce?N:T;++N<T;){Z=y[N];var se=Ue(Z),Ee=se=="wrapper"?Se(Z):n;Ee&&pg(Ee[0])&&Ee[1]==(V|R|z|Y)&&!Ee[4].length&&Ee[9]==1?ce=ce[Ue(Ee[0])].apply(ce,Ee[3]):ce=Z.length==1&&pg(Z)?ce[se]():ce.thru(Z)}return function(){var We=arguments,Je=We[0];if(ce&&We.length==1&&On(Je))return ce.plant(Je).value();for(var ht=0,Rt=T?y[ht].apply(this,We):Je;++ht<T;)Rt=y[ht].call(this,Rt);return Rt}})}function Mf(f,y,T,N,H,Z,ce,se,Ee,We){var Je=y&V,ht=y&P,Rt=y&D,Jt=y&(R|L),wn=y&J,Wn=Rt?n:Jh(f);function fn(){for(var Zn=arguments.length,dr=Te(Zn),cl=Zn;cl--;)dr[cl]=arguments[cl];if(Jt)var ss=jt(fn),dl=sm(dr,ss);if(N&&(dr=Ay(dr,N,H,Jt)),Z&&(dr=Pm(dr,Z,ce,Jt)),Zn-=dl,Jt&&Zn<We){var Ca=el(dr,ss);return j(f,y,Mf,fn.placeholder,T,dr,Ca,se,Ee,We-Zn)}var Ea=ht?T:this,Ho=Rt?Ea[f]:f;return Zn=dr.length,se?dr=ep(dr,se):wn&&Zn>1&&dr.reverse(),Je&&Ee<Zn&&(dr.length=Ee),this&&this!==pn&&this instanceof fn&&(Ho=Wn||Jh(Ho)),Ho.apply(Ea,dr)}return fn}function bc(f,y){return function(T,N){return Cm(T,f,y(N),{})}}function Om(f,y){return function(T,N){var H;if(T===n&&N===n)return y;if(T!==n&&(H=T),N!==n){if(H===n)return N;typeof T=="string"||typeof N=="string"?(T=gi(T),N=gi(N)):(T=fd(T),N=fd(N)),H=f(T,N)}return H}}function Dm(f){return or(function(y){return y=ai(y,na(rt())),en(function(T){var N=this;return f(y,function(H){return po(H,N,T)})})})}function h(f,y){y=y===n?" ":gi(y);var T=y.length;if(T<2)return T?kf(y,f):y;var N=kf(y,No(f/Cs(y)));return lu(y)?bu(mo(N),0,f).join(""):N.slice(0,f)}function m(f,y,T,N){var H=y&P,Z=Jh(f);function ce(){for(var se=-1,Ee=arguments.length,We=-1,Je=N.length,ht=Te(Je+Ee),Rt=this&&this!==pn&&this instanceof ce?Z:f;++We<Je;)ht[We]=N[We];for(;Ee--;)ht[We++]=arguments[++se];return po(Rt,H?T:this,ht)}return ce}function E(f){return function(y,T,N){return N&&typeof N!="number"&&Ga(y,T,N)&&(T=N=n),y=wc(y),T===n?(T=y,y=0):T=wc(T),N=N===n?y<T?1:-1:wc(N),jl(y,T,N,f)}}function O(f){return function(y,T){return typeof y=="string"&&typeof T=="string"||(y=as(y),T=as(T)),f(y,T)}}function j(f,y,T,N,H,Z,ce,se,Ee,We){var Je=y&R,ht=Je?ce:n,Rt=Je?n:ce,Jt=Je?Z:n,wn=Je?n:Z;y|=Je?z:U,y&=~(Je?U:z),y&M||(y&=~(P|D));var Wn=[f,y,H,Jt,ht,wn,Rt,se,Ee,We],fn=T.apply(n,Wn);return pg(f)&&QE(fn,Wn),fn.placeholder=N,ZE(fn,f,y)}function B(f){var y=gn[f];return function(T,N){if(T=as(T),N=N==null?0:va(xn(N),292),N&&vf(T)){var H=(lr(T)+"e").split("e"),Z=y(H[0]+"e"+(+H[1]+N));return H=(lr(Z)+"e").split("e"),+(H[0]+"e"+(+H[1]-N))}return y(T)}}var ne=nc&&1/$c(new nc([,-0]))[1]==oe?function(f){return new nc(f)}:Sb;function ye(f){return function(y){var T=Ii(y);return T==Ae?pf(y):T==at?xy(y):df(y,f(y))}}function Ne(f,y,T,N,H,Z,ce,se){var Ee=y&D;if(!Ee&&typeof f!="function")throw new ra(o);var We=N?N.length:0;if(We||(y&=~(z|U),N=H=n),ce=ce===n?ce:Di(xn(ce),0),se=se===n?se:xn(se),We-=H?H.length:0,y&U){var Je=N,ht=H;N=H=n}var Rt=Ee?n:Se(f),Jt=[f,y,T,N,H,Je,ht,Z,ce,se];if(Rt&&qS(Jt,Rt),f=Jt[0],y=Jt[1],T=Jt[2],N=Jt[3],H=Jt[4],se=Jt[9]=Jt[9]===n?Ee?0:f.length:Di(Jt[9]-We,0),!se&&y&(R|L)&&(y&=~(R|L)),!y||y==P)var wn=Of(f,y,T);else y==R||y==L?wn=Oy(f,y,se):(y==z||y==(P|z))&&!H.length?wn=m(f,y,T,N):wn=Mf.apply(n,Jt);var Wn=Rt?Pf:QE;return ZE(Wn(wn,Jt),f,y)}function St(f,y,T,N){return f===n||ul(f,wr[T])&&!hr.call(N,T)?y:f}function Yt(f,y,T,N,H,Z){return yi(f)&&yi(y)&&(Z.set(y,f),ud(f,y,n,Yt,Z),Z.delete(y)),f}function un(f){return Ag(f)?n:f}function Dt(f,y,T,N,H,Z){var ce=T&C,se=f.length,Ee=y.length;if(se!=Ee&&!(ce&&Ee>se))return!1;var We=Z.get(f),Je=Z.get(y);if(We&&Je)return We==y&&Je==f;var ht=-1,Rt=!0,Jt=T&k?new Ts:n;for(Z.set(f,y),Z.set(y,f);++ht<se;){var wn=f[ht],Wn=y[ht];if(N)var fn=ce?N(Wn,wn,ht,y,f,Z):N(wn,Wn,ht,f,y,Z);if(fn!==n){if(fn)continue;Rt=!1;break}if(Jt){if(!lf(y,function(Zn,dr){if(!Zc(Jt,dr)&&(wn===Zn||H(wn,Zn,T,N,Z)))return Jt.push(dr)})){Rt=!1;break}}else if(!(wn===Wn||H(wn,Wn,T,N,Z))){Rt=!1;break}}return Z.delete(f),Z.delete(y),Rt}function si(f,y,T,N,H,Z,ce){switch(T){case Ze:if(f.byteLength!=y.byteLength||f.byteOffset!=y.byteOffset)return!1;f=f.buffer,y=y.buffer;case nn:return!(f.byteLength!=y.byteLength||!Z(new cr(f),new cr(y)));case it:case mt:case xt:return ul(+f,+y);case qe:return f.name==y.name&&f.message==y.message;case we:case ot:return f==y+"";case Ae:var se=pf;case at:var Ee=N&C;if(se||(se=$c),f.size!=y.size&&!Ee)return!1;var We=ce.get(f);if(We)return We==y;N|=k,ce.set(f,y);var Je=Dt(se(f),se(y),N,H,Z,ce);return ce.delete(f),Je;case yt:if(gf)return gf.call(f)==gf.call(y)}return!1}function Ur(f,y,T,N,H,Z){var ce=T&C,se=Cr(f),Ee=se.length,We=Cr(y),Je=We.length;if(Ee!=Je&&!ce)return!1;for(var ht=Ee;ht--;){var Rt=se[ht];if(!(ce?Rt in y:hr.call(y,Rt)))return!1}var Jt=Z.get(f),wn=Z.get(y);if(Jt&&wn)return Jt==y&&wn==f;var Wn=!0;Z.set(f,y),Z.set(y,f);for(var fn=ce;++ht<Ee;){Rt=se[ht];var Zn=f[Rt],dr=y[Rt];if(N)var cl=ce?N(dr,Zn,Rt,y,f,Z):N(Zn,dr,Rt,f,y,Z);if(!(cl===n?Zn===dr||H(Zn,dr,T,N,Z):cl)){Wn=!1;break}fn||(fn=Rt=="constructor")}if(Wn&&!fn){var ss=f.constructor,dl=y.constructor;ss!=dl&&"constructor"in f&&"constructor"in y&&!(typeof ss=="function"&&ss instanceof ss&&typeof dl=="function"&&dl instanceof dl)&&(Wn=!1)}return Z.delete(f),Z.delete(y),Wn}function or(f){return YS($h(f,n,gg),f+"")}function Cr(f){return ag(f,to,Qn)}function Be(f){return ag(f,Vo,rs)}var Se=ac?function(f){return ac.get(f)}:Sb;function Ue(f){for(var y=f.name+"",T=Lo[y],N=hr.call(Lo,y)?T.length:0;N--;){var H=T[N],Z=H.func;if(Z==null||Z==f)return H.name}return y}function jt(f){var y=hr.call(q,"placeholder")?q:f;return y.placeholder}function rt(){var f=q.iteratee||Jx;return f=f===Jx?Ki:f,arguments.length?f(arguments[0],arguments[1]):f}function Cn(f,y){var T=f.__data__;return jm(y)?T[typeof y=="string"?"string":"hash"]:T.map}function Sn(f){for(var y=to(f),T=y.length;T--;){var N=y[T],H=f[N];y[T]=[N,H,HS(H)]}return y}function Ln(f,y){var T=lm(f,y);return hc(T)?T:n}function ji(f){var y=hr.call(f,oi),T=f[oi];try{f[oi]=n;var N=!0}catch{}var H=fm.call(f);return N&&(y?f[oi]=T:delete f[oi]),H}var Qn=rl?function(f){return f==null?[]:(f=yr(f),xs(rl(f),function(y){return Jv.call(f,y)}))}:t2,rs=rl?function(f){for(var y=[];f;)kl(y,Qn(f)),f=nd(f);return y}:t2,Ii=Yi;(Lh&&Ii(new Lh(new ArrayBuffer(1)))!=Ze||tc&&Ii(new tc)!=Ae||zh&&Ii(zh.resolve())!=In||nc&&Ii(new nc)!=at||rc&&Ii(new rc)!=st)&&(Ii=function(f){var y=Yi(f),T=y==Wt?f.constructor:n,N=T?jf(T):"";if(N)switch(N){case $v:return Ze;case eg:return Ae;case tg:return In;case oc:return at;case bm:return st}return y});function Dy(f,y,T){for(var N=-1,H=T.length;++N<H;){var Z=T[N],ce=Z.size;switch(Z.type){case"drop":f+=ce;break;case"dropRight":y-=ce;break;case"take":y=va(y,f+ce);break;case"takeRight":f=Di(f,y-ce);break}}return{start:f,end:y}}function KE(f){var y=f.match(di);return y?y[1].split(pe):[]}function VS(f,y,T){y=Rl(y,f);for(var N=-1,H=y.length,Z=!1;++N<H;){var ce=wu(y[N]);if(!(Z=f!=null&&T(f,ce)))break;f=f[ce]}return Z||++N!=H?Z:(H=f==null?0:f.length,!!H&&Um(H)&&Bl(ce,H)&&(On(f)||xc(f)))}function XE(f){var y=f.length,T=new f.constructor(y);return y&&typeof f[0]=="string"&&hr.call(f,"index")&&(T.index=f.index,T.input=f.input),T}function My(f){return typeof f.constructor=="function"&&!Im(f)?ga(nd(f)):{}}function NO(f,y,T){var N=f.constructor;switch(y){case nn:return dg(f);case it:case mt:return new N(+f);case Ze:return ns(f,T);case rn:case Rn:case lt:case Ge:case pt:case Bt:case jn:case Un:case Mt:return As(f,T);case Ae:return new N;case xt:case ot:return new N(f);case we:return Ma(f);case at:return new N;case yt:return sr(f)}}function LO(f,y){var T=y.length;if(!T)return f;var N=T-1;return y[N]=(T>1?"& ":"")+y[N],y=y.join(T>2?", ":" "),f.replace(nu,`{
|
||
/* [wrapped with `+y+`] */
|
||
`)}function xu(f){return On(f)||xc(f)||!!(Ih&&f&&f[Ih])}function Bl(f,y){var T=typeof f;return y=y??ie,!!y&&(T=="number"||T!="symbol"&&Mr.test(f))&&f>-1&&f%1==0&&f<y}function Ga(f,y,T){if(!yi(T))return!1;var N=typeof y;return(N=="number"?To(T)&&Bl(y,T.length):N=="string"&&y in T)?ul(T[y],f):!1}function Mm(f,y){if(On(f))return!1;var T=typeof f;return T=="number"||T=="symbol"||T=="boolean"||f==null||js(f)?!0:Na.test(f)||!Xo.test(f)||y!=null&&f in yr(y)}function jm(f){var y=typeof f;return y=="string"||y=="number"||y=="symbol"||y=="boolean"?f!=="__proto__":f===null}function pg(f){var y=Ue(f),T=q[y];if(typeof T!="function"||!(y in Gn.prototype))return!1;if(f===T)return!0;var N=Se(T);return!!N&&f===N[0]}function jy(f){return!!td&&td in f}var Iy=mi?Tu:xb;function Im(f){var y=f&&f.constructor,T=typeof y=="function"&&y.prototype||wr;return f===T}function HS(f){return f===f&&!yi(f)}function GS(f,y){return function(T){return T==null?!1:T[f]===y&&(y!==n||f in yr(T))}}function WS(f){var y=ll(f,function(N){return T.size===d&&T.clear(),N}),T=y.cache;return y}function qS(f,y){var T=f[1],N=y[1],H=T|N,Z=H<(P|D|V),ce=N==V&&T==R||N==V&&T==Y&&f[7].length<=y[8]||N==(V|Y)&&y[7].length<=y[8]&&T==R;if(!(Z||ce))return f;N&P&&(f[2]=y[2],H|=T&P?0:M);var se=y[3];if(se){var Ee=f[3];f[3]=Ee?Ay(Ee,se,y[4]):se,f[4]=Ee?el(f[3],p):y[4]}return se=y[5],se&&(Ee=f[5],f[5]=Ee?Pm(Ee,se,y[6]):se,f[6]=Ee?el(f[5],p):y[6]),se=y[7],se&&(f[7]=se),N&V&&(f[8]=f[8]==null?y[8]:va(f[8],y[8])),f[9]==null&&(f[9]=y[9]),f[0]=y[0],f[1]=H,f}function zO(f){var y=[];if(f!=null)for(var T in yr(f))y.push(T);return y}function BO(f){return fm.call(f)}function $h(f,y,T){return y=Di(y===n?f.length-1:y,0),function(){for(var N=arguments,H=-1,Z=Di(N.length-y,0),ce=Te(Z);++H<Z;)ce[H]=N[y+H];H=-1;for(var se=Te(y+1);++H<y;)se[H]=N[H];return se[y]=T(ce),po(f,this,se)}}function wa(f,y){return y.length<2?f:fc(f,Nr(y,0,-1))}function ep(f,y){for(var T=f.length,N=va(y.length,T),H=wo(f);N--;){var Z=y[N];f[N]=Bl(Z,T)?H[Z]:n}return f}function mg(f,y){if(!(y==="constructor"&&typeof f[y]=="function")&&y!="__proto__")return f[y]}var QE=Uo(Pf),Rm=tl||function(f,y){return pn.setTimeout(f,y)},YS=Uo(_m);function ZE(f,y,T){var N=y+"";return YS(f,LO(N,Ny(KE(N),T)))}function Uo(f){var y=0,T=0;return function(){var N=Rh(),H=X-(N-T);if(T=N,H>0){if(++y>=fe)return arguments[0]}else y=0;return f.apply(n,arguments)}}function Ry(f,y){var T=-1,N=f.length,H=N-1;for(y=y===n?N:y;++T<y;){var Z=Xh(T,H),ce=f[Z];f[Z]=f[T],f[T]=ce}return f.length=y,f}var vg=WS(function(f){var y=[];return f.charCodeAt(0)===46&&y.push(""),f.replace(Fi,function(T,N,H,Z){y.push(H?Z.replace(an,"$1"):N||T)}),y});function wu(f){if(typeof f=="string"||js(f))return f;var y=f+"";return y=="0"&&1/f==-oe?"-0":y}function jf(f){if(f!=null){try{return Oi.call(f)}catch{}try{return f+""}catch{}}return""}function Ny(f,y){return pi(Oe,function(T){var N="_."+T[0];y&T[1]&&!Ro(f,N)&&f.push(N)}),f.sort()}function Ly(f){if(f instanceof Gn)return f.clone();var y=new Kn(f.__wrapped__,f.__chain__);return y.__actions__=wo(f.__actions__),y.__index__=f.__index__,y.__values__=f.__values__,y}function zy(f,y,T){(T?Ga(f,y,T):y===n)?y=1:y=Di(xn(y),0);var N=f==null?0:f.length;if(!N||y<1)return[];for(var H=0,Z=0,ce=Te(No(N/y));H<N;)ce[Z++]=Nr(f,H,H+=y);return ce}function KS(f){for(var y=-1,T=f==null?0:f.length,N=0,H=[];++y<T;){var Z=f[y];Z&&(H[N++]=Z)}return H}function By(){var f=arguments.length;if(!f)return[];for(var y=Te(f-1),T=arguments[0],N=f;N--;)y[N-1]=arguments[N];return kl(On(T)?wo(T):[T],ba(y,1))}var XS=en(function(f,y){return _i(f)?Cf(f,ba(y,1,_i,!0)):[]}),JE=en(function(f,y){var T=Ds(y);return _i(T)&&(T=n),_i(f)?Cf(f,ba(y,1,_i,!0),rt(T,2)):[]}),pd=en(function(f,y){var T=Ds(y);return _i(T)&&(T=n),_i(f)?Cf(f,ba(y,1,_i,!0),n,T):[]});function If(f,y,T){var N=f==null?0:f.length;return N?(y=T||y===n?1:xn(y),Nr(f,y<0?0:y,N)):[]}function Fy(f,y,T){var N=f==null?0:f.length;return N?(y=T||y===n?1:xn(y),y=N-y,Nr(f,0,y<0?0:y)):[]}function QS(f,y){return f&&f.length?Fo(f,rt(y,3),!0,!0):[]}function FO(f,y){return f&&f.length?Fo(f,rt(y,3),!0):[]}function Uy(f,y,T,N){var H=f==null?0:f.length;return H?(T&&typeof T!="number"&&Ga(f,y,T)&&(T=0,N=H),il(f,y,T,N)):[]}function $E(f,y,T){var N=f==null?0:f.length;if(!N)return-1;var H=T==null?0:xn(T);return H<0&&(H=Di(N+H,0)),Qc(f,rt(y,3),H)}function ZS(f,y,T){var N=f==null?0:f.length;if(!N)return-1;var H=N-1;return T!==n&&(H=xn(T),H=T<0?Di(N+H,0):va(H,N-1)),Qc(f,rt(y,3),H,!0)}function gg(f){var y=f==null?0:f.length;return y?ba(f,1):[]}function e_(f){var y=f==null?0:f.length;return y?ba(f,oe):[]}function JS(f,y){var T=f==null?0:f.length;return T?(y=y===n?1:xn(y),ba(f,y)):[]}function t_(f){for(var y=-1,T=f==null?0:f.length,N={};++y<T;){var H=f[y];N[H[0]]=H[1]}return N}function Vy(f){return f&&f.length?f[0]:n}function $S(f,y,T){var N=f==null?0:f.length;if(!N)return-1;var H=T==null?0:xn(T);return H<0&&(H=Di(N+H,0)),cf(f,y,H)}function ex(f){var y=f==null?0:f.length;return y?Nr(f,0,-1):[]}var tx=en(function(f){var y=ai(f,sl);return y.length&&y[0]===f[0]?Ef(y):[]}),nx=en(function(f){var y=Ds(f),T=ai(f,sl);return y===Ds(T)?y=n:T.pop(),T.length&&T[0]===f[0]?Ef(T,rt(y,2)):[]}),n_=en(function(f){var y=Ds(f),T=ai(f,sl);return y=typeof y=="function"?y:n,y&&T.pop(),T.length&&T[0]===f[0]?Ef(T,n,y):[]});function Hy(f,y){return f==null?"":mm.call(f,y)}function Ds(f){var y=f==null?0:f.length;return y?f[y-1]:n}function rx(f,y,T){var N=f==null?0:f.length;if(!N)return-1;var H=N;return T!==n&&(H=xn(T),H=H<0?Di(N+H,0):va(H,N-1)),y===y?Qv(f,y,H):Qc(f,Ph,H,!0)}function ix(f,y){return f&&f.length?Tf(f,xn(y)):n}var r_=en(Gy);function Gy(f,y){return f&&f.length&&y&&y.length?vu(f,y):f}function ax(f,y,T){return f&&f.length&&y&&y.length?vu(f,y,rt(T,2)):f}function i_(f,y,T){return f&&f.length&&y&&y.length?vu(f,y,n,T):f}var UO=or(function(f,y){var T=f==null?0:f.length,N=dc(f,y);return Kh(f,ai(y,function(H){return Bl(H,T)?+H:H}).sort(Nl)),N});function a_(f,y){var T=[];if(!(f&&f.length))return T;var N=-1,H=[],Z=f.length;for(y=rt(y,3);++N<Z;){var ce=f[N];y(ce,N,f)&&(T.push(ce),H.push(N))}return Kh(f,H),T}function Wy(f){return f==null?f:ym.call(f)}function VO(f,y,T){var N=f==null?0:f.length;return N?(T&&typeof T!="number"&&Ga(f,y,T)?(y=0,T=N):(y=y==null?0:xn(y),T=T===n?N:xn(T)),Nr(f,y,T)):[]}function o_(f,y){return Mi(f,y)}function ox(f,y,T){return yu(f,y,rt(T,2))}function HO(f,y){var T=f==null?0:f.length;if(T){var N=Mi(f,y);if(N<T&&ul(f[N],y))return N}return-1}function GO(f,y){return Mi(f,y,!0)}function sx(f,y,T){return yu(f,y,rt(T,2),!0)}function lx(f,y){var T=f==null?0:f.length;if(T){var N=Mi(f,y,!0)-1;if(ul(f[N],y))return N}return-1}function ux(f){return f&&f.length?dd(f):[]}function cx(f,y){return f&&f.length?dd(f,rt(y,2)):[]}function dx(f){var y=f==null?0:f.length;return y?Nr(f,1,y):[]}function s_(f,y,T){return f&&f.length?(y=T||y===n?1:xn(y),Nr(f,0,y<0?0:y)):[]}function yg(f,y,T){var N=f==null?0:f.length;return N?(y=T||y===n?1:xn(y),y=N-y,Nr(f,y<0?0:y,N)):[]}function qy(f,y){return f&&f.length?Fo(f,rt(y,3),!1,!0):[]}function Yy(f,y){return f&&f.length?Fo(f,rt(y,3)):[]}var l_=en(function(f){return $r(ba(f,1,_i,!0))}),u_=en(function(f){var y=Ds(f);return _i(y)&&(y=n),$r(ba(f,1,_i,!0),rt(y,2))}),Nm=en(function(f){var y=Ds(f);return y=typeof y=="function"?y:n,$r(ba(f,1,_i,!0),n,y)});function c_(f){return f&&f.length?$r(f):[]}function WO(f,y){return f&&f.length?$r(f,rt(y,2)):[]}function qO(f,y){return y=typeof y=="function"?y:n,f&&f.length?$r(f,n,y):[]}function tp(f){if(!(f&&f.length))return[];var y=0;return f=xs(f,function(T){if(_i(T))return y=Di(T.length,y),!0}),Mh(y,function(T){return ai(f,Ju(T))})}function md(f,y){if(!(f&&f.length))return[];var T=tp(f);return y==null?T:ai(T,function(N){return po(y,n,N)})}var bg=en(function(f,y){return _i(f)?Cf(f,y):[]}),Ky=en(function(f){return Tm(xs(f,_i))}),Xy=en(function(f){var y=Ds(f);return _i(y)&&(y=n),Tm(xs(f,_i),rt(y,2))}),fx=en(function(f){var y=Ds(f);return y=typeof y=="function"?y:n,Tm(xs(f,_i),n,y)}),hx=en(tp);function Lm(f,y){return cg(f||[],y||[],cc)}function Sg(f,y){return cg(f||[],y||[],gu)}var d_=en(function(f){var y=f.length,T=y>1?f[y-1]:n;return T=typeof T=="function"?(f.pop(),T):n,md(f,T)});function Qy(f){var y=q(f);return y.__chain__=!0,y}function YO(f,y){return y(f),f}function xg(f,y){return y(f)}var f_=or(function(f){var y=f.length,T=y?f[0]:0,N=this.__wrapped__,H=function(Z){return dc(Z,f)};return y>1||this.__actions__.length||!(N instanceof Gn)||!Bl(T)?this.thru(H):(N=N.slice(T,+T+(y?1:0)),N.__actions__.push({func:xg,args:[H],thisArg:n}),new Kn(N,this.__chain__).thru(function(Z){return y&&!Z.length&&Z.push(n),Z}))});function wg(){return Qy(this)}function Cu(){return new Kn(this.value(),this.__chain__)}function px(){this.__values__===n&&(this.__values__=Ox(this.value()));var f=this.__index__>=this.__values__.length,y=f?n:this.__values__[this.__index__++];return{done:f,value:y}}function zm(){return this}function mx(f){for(var y,T=this;T instanceof Bh;){var N=Ly(T);N.__index__=0,N.__values__=n,y?H.__wrapped__=N:y=N;var H=N;T=T.__wrapped__}return H.__wrapped__=f,y}function KO(){var f=this.__wrapped__;if(f instanceof Gn){var y=f;return this.__actions__.length&&(y=new Gn(this)),y=y.reverse(),y.__actions__.push({func:xg,args:[Wy],thisArg:n}),new Kn(y,this.__chain__)}return this.thru(Wy)}function Rf(){return vc(this.__wrapped__,this.__actions__)}var Bm=Zh(function(f,y,T){hr.call(f,T)?++f[T]:bo(f,T,1)});function XO(f,y,T){var N=On(f)?ii:wm;return T&&Ga(f,y,T)&&(y=n),N(f,rt(y,3))}function Zy(f,y){var T=On(f)?xs:al;return T(f,rt(y,3))}var Ms=fg($E),Wa=fg(ZS);function Sc(f,y){return ba(vd(f,y),1)}function qa(f,y){return ba(vd(f,y),oe)}function Eo(f,y,T){return T=T===n?1:xn(T),ba(vd(f,y),T)}function Jy(f,y){var T=On(f)?pi:hu;return T(f,rt(y,3))}function $y(f,y){var T=On(f)?Ss:Wh;return T(f,rt(y,3))}var QO=Zh(function(f,y,T){hr.call(f,T)?f[T].push(y):bo(f,T,[y])});function Ft(f,y,T,N){f=To(f)?f:Hl(f),T=T&&!N?xn(T):0;var H=f.length;return T<0&&(T=Di(H+T,0)),cb(f)?T<=H&&f.indexOf(y,T)>-1:!!H&&cf(f,y,T)>-1}var Cg=en(function(f,y,T){var N=-1,H=typeof y=="function",Z=To(f)?Te(f.length):[];return hu(f,function(ce){Z[++N]=H?po(y,ce,T):pu(ce,y,T)}),Z}),vx=Zh(function(f,y,T){bo(f,T,y)});function vd(f,y){var T=On(f)?ai:Xi;return T(f,rt(y,3))}function np(f,y,T,N){return f==null?[]:(On(y)||(y=y==null?[]:[y]),T=N?n:T,On(T)||(T=T==null?[]:[T]),xo(f,y,T))}var Lr=Zh(function(f,y,T){f[T?0:1].push(y)},function(){return[[],[]]});function Ya(f,y,T){var N=On(f)?kh:om,H=arguments.length<3;return N(f,rt(y,4),T,H,hu)}function Ka(f,y,T){var N=On(f)?gy:om,H=arguments.length<3;return N(f,rt(y,4),T,H,Wh)}function eb(f,y){var T=On(f)?xs:al;return T(f,is(rt(y,3)))}function Eg(f){var y=On(f)?wf:Ps;return y(f)}function _g(f,y,T){(T?Ga(f,y,T):y===n)?y=1:y=xn(y);var N=On(f)?Ua:cd;return N(f,y)}function ZO(f){var y=On(f)?FS:Ha;return y(f)}function JO(f){if(f==null)return 0;if(To(f))return cb(f)?Cs(f):f.length;var y=Ii(f);return y==Ae||y==at?f.size:xa(f).length}function Ye(f,y,T){var N=On(f)?lf:ts;return T&&Ga(f,y,T)&&(y=n),N(f,rt(y,3))}var Fl=en(function(f,y){if(f==null)return[];var T=y.length;return T>1&&Ga(f,y[0],y[1])?y=[]:T>2&&Ga(y[0],y[1],y[2])&&(y=[y[0]]),xo(f,ba(y,1),[])}),Eu=Dl||function(){return pn.Date.now()};function gx(f,y){if(typeof y!="function")throw new ra(o);return f=xn(f),function(){if(--f<1)return y.apply(this,arguments)}}function Er(f,y,T){return y=T?n:y,y=f&&y==null?f.length:y,Ne(f,V,n,n,n,n,y)}function Pt(f,y){var T;if(typeof y!="function")throw new ra(o);return f=xn(f),function(){return--f>0&&(T=y.apply(this,arguments)),f<=1&&(y=n),T}}var Nf=en(function(f,y,T){var N=P;if(T.length){var H=el(T,jt(Nf));N|=z}return Ne(f,N,y,T,H)}),h_=en(function(f,y,T){var N=P|D;if(T.length){var H=el(T,jt(h_));N|=z}return Ne(y,N,f,T,H)});function _o(f,y,T){y=T?n:y;var N=Ne(f,R,n,n,n,n,n,y);return N.placeholder=_o.placeholder,N}function tb(f,y,T){y=T?n:y;var N=Ne(f,L,n,n,n,n,n,y);return N.placeholder=tb.placeholder,N}function rp(f,y,T){var N,H,Z,ce,se,Ee,We=0,Je=!1,ht=!1,Rt=!0;if(typeof f!="function")throw new ra(o);y=as(y)||0,yi(T)&&(Je=!!T.leading,ht="maxWait"in T,Z=ht?Di(as(T.maxWait)||0,y):Z,Rt="trailing"in T?!!T.trailing:Rt);function Jt(Ca){var Ea=N,Ho=H;return N=H=n,We=Ca,ce=f.apply(Ho,Ea),ce}function wn(Ca){return We=Ca,se=Rm(Zn,y),Je?Jt(Ca):ce}function Wn(Ca){var Ea=Ca-Ee,Ho=Ca-We,rT=y-Ea;return ht?va(rT,Z-Ho):rT}function fn(Ca){var Ea=Ca-Ee,Ho=Ca-We;return Ee===n||Ea>=y||Ea<0||ht&&Ho>=Z}function Zn(){var Ca=Eu();if(fn(Ca))return dr(Ca);se=Rm(Zn,Wn(Ca))}function dr(Ca){return se=n,Rt&&N?Jt(Ca):(N=H=n,ce)}function cl(){se!==n&&Qh(se),We=0,N=Ee=H=se=n}function ss(){return se===n?ce:dr(Eu())}function dl(){var Ca=Eu(),Ea=fn(Ca);if(N=arguments,H=this,Ee=Ca,Ea){if(se===n)return wn(Ee);if(ht)return Qh(se),se=Rm(Zn,y),Jt(Ee)}return se===n&&(se=Rm(Zn,y)),ce}return dl.cancel=cl,dl.flush=ss,dl}var Fm=en(function(f,y){return ig(f,1,y)}),p_=en(function(f,y,T){return ig(f,as(y)||0,T)});function m_(f){return Ne(f,J)}function ll(f,y){if(typeof f!="function"||y!=null&&typeof y!="function")throw new ra(o);var T=function(){var N=arguments,H=y?y.apply(this,N):N[0],Z=T.cache;if(Z.has(H))return Z.get(H);var ce=f.apply(this,N);return T.cache=Z.set(H,ce)||Z,ce};return T.cache=new(ll.Cache||_s),T}ll.Cache=_s;function is(f){if(typeof f!="function")throw new ra(o);return function(){var y=arguments;switch(y.length){case 0:return!f.call(this);case 1:return!f.call(this,y[0]);case 2:return!f.call(this,y[0],y[1]);case 3:return!f.call(this,y[0],y[1],y[2])}return!f.apply(this,y)}}function v_(f){return Pt(2,f)}var yx=km(function(f,y){y=y.length==1&&On(y[0])?ai(y[0],na(rt())):ai(ba(y,1),na(rt()));var T=y.length;return en(function(N){for(var H=-1,Z=va(N.length,T);++H<Z;)N[H]=y[H].call(this,N[H]);return po(f,this,N)})}),Tg=en(function(f,y){var T=el(y,jt(Tg));return Ne(f,z,n,y,T)}),nb=en(function(f,y){var T=el(y,jt(nb));return Ne(f,U,n,y,T)}),bx=or(function(f,y){return Ne(f,Y,n,n,n,y)});function iW(f,y){if(typeof f!="function")throw new ra(o);return y=y===n?y:xn(y),en(f,y)}function aW(f,y){if(typeof f!="function")throw new ra(o);return y=y==null?0:Di(xn(y),0),en(function(T){var N=T[y],H=bu(T,0,y);return N&&kl(H,N),po(f,this,H)})}function Sx(f,y,T){var N=!0,H=!0;if(typeof f!="function")throw new ra(o);return yi(T)&&(N="leading"in T?!!T.leading:N,H="trailing"in T?!!T.trailing:H),rp(f,y,{leading:N,maxWait:y,trailing:H})}function rb(f){return Er(f,1)}function g_(f,y){return Tg(hd(y),f)}function y_(){if(!arguments.length)return[];var f=arguments[0];return On(f)?f:[f]}function b_(f){return aa(f,w)}function S_(f,y){return y=typeof y=="function"?y:n,aa(f,w,y)}function x_(f){return aa(f,g|w)}function ib(f,y){return y=typeof y=="function"?y:n,aa(f,g|w,y)}function xx(f,y){return y==null||Gi(f,y,to(y))}function ul(f,y){return f===y||f!==f&&y!==y}var kg=O(Sa),wx=O(function(f,y){return f>=y}),xc=Em(function(){return arguments}())?Em:function(f){return Ri(f)&&hr.call(f,"callee")&&!Jv.call(f,"callee")},On=Te.isArray,ab=za?na(za):og;function To(f){return f!=null&&Um(f.length)&&!Tu(f)}function _i(f){return Ri(f)&&To(f)}function Cx(f){return f===!0||f===!1||Ri(f)&&Yi(f)==it}var _u=mf||xb,Ex=bs?na(bs):oa;function ob(f){return Ri(f)&&f.nodeType===1&&!Ag(f)}function w_(f){if(f==null)return!0;if(To(f)&&(On(f)||typeof f=="string"||typeof f.splice=="function"||_u(f)||ip(f)||xc(f)))return!f.length;var y=Ii(f);if(y==Ae||y==at)return!f.size;if(Im(f))return!xa(f).length;for(var T in f)if(hr.call(f,T))return!1;return!0}function _x(f,y){return _f(f,y)}function sb(f,y,T){T=typeof T=="function"?T:n;var N=T?T(f,y):n;return N===n?_f(f,y,n,T):!!N}function Tx(f){if(!Ri(f))return!1;var y=Yi(f);return y==qe||y==bt||typeof f.message=="string"&&typeof f.name=="string"&&!Ag(f)}function lb(f){return typeof f=="number"&&vf(f)}function Tu(f){if(!yi(f))return!1;var y=Yi(f);return y==Ce||y==Nt||y==$e||y==ar}function Pg(f){return typeof f=="number"&&f==xn(f)}function Um(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=ie}function yi(f){var y=typeof f;return f!=null&&(y=="object"||y=="function")}function Ri(f){return f!=null&&typeof f=="object"}var kx=Zo?na(Zo):US;function C_(f,y){return f===y||sd(f,y,Sn(y))}function E_(f,y,T){return T=typeof T=="function"?T:n,sd(f,y,Sn(y),T)}function $O(f){return Ax(f)&&f!=+f}function Px(f){if(Iy(f))throw new tn(a);return hc(f)}function __(f){return f===null}function T_(f){return f==null}function Ax(f){return typeof f=="number"||Ri(f)&&Yi(f)==xt}function Ag(f){if(!Ri(f)||Yi(f)!=Wt)return!1;var y=nd(f);if(y===null)return!0;var T=hr.call(y,"constructor")&&y.constructor;return typeof T=="function"&&T instanceof T&&Oi.call(T)==Vi}var Og=Js?na(Js):Jr;function ub(f){return Pg(f)&&f>=-ie&&f<=ie}var k_=Tl?na(Tl):Xn;function cb(f){return typeof f=="string"||!On(f)&&Ri(f)&&Yi(f)==ot}function js(f){return typeof f=="symbol"||Ri(f)&&Yi(f)==yt}var ip=Yv?na(Yv):Da;function P_(f){return f===n}function A_(f){return Ri(f)&&Ii(f)==st}function db(f){return Ri(f)&&Yi(f)==Zt}var O_=O(pc),D_=O(function(f,y){return f<=y});function Ox(f){if(!f)return[];if(To(f))return cb(f)?mo(f):wo(f);if(nt&&f[nt])return uu(f[nt]());var y=Ii(f),T=y==Ae?pf:y==at?$c:Hl;return T(f)}function wc(f){if(!f)return f===0?f:0;if(f=as(f),f===oe||f===-oe){var y=f<0?-1:1;return y*le}return f===f?f:0}function xn(f){var y=wc(f),T=y%1;return y===y?T?y-T:y:0}function Ul(f){return f?fu(xn(f),0,de):0}function as(f){if(typeof f=="number")return f;if(js(f))return ee;if(yi(f)){var y=typeof f.valueOf=="function"?f.valueOf():f;f=yi(y)?y+"":y}if(typeof f!="string")return f===0?f:+f;f=Ba(f);var T=Nn.test(f);return T||Dr.test(f)?zt(f.slice(2),T?2:8):zn.test(f)?ee:+f}function fb(f){return Ll(f,Vo(f))}function _n(f){return f?fu(xn(f),-ie,ie):f===0?f:0}function lr(f){return f==null?"":gi(f)}var M_=Co(function(f,y){if(Im(y)||To(y)){Ll(y,to(y),f);return}for(var T in y)hr.call(y,T)&&cc(f,T,y[T])}),Dg=Co(function(f,y){Ll(y,Vo(y),f)}),Lf=Co(function(f,y,T,N){Ll(y,Vo(y),f,N)}),hb=Co(function(f,y,T,N){Ll(y,to(y),f,N)}),Dx=or(dc);function pb(f,y){var T=ga(f);return y==null?T:Ht(T,y)}var j_=en(function(f,y){f=yr(f);var T=-1,N=y.length,H=N>2?y[2]:n;for(H&&Ga(y[0],y[1],H)&&(N=1);++T<N;)for(var Z=y[T],ce=Vo(Z),se=-1,Ee=ce.length;++se<Ee;){var We=ce[se],Je=f[We];(Je===n||ul(Je,wr[We])&&!hr.call(f,We))&&(f[We]=Z[We])}return f}),eD=en(function(f){return f.push(n,Yt),po(Nx,n,f)});function tD(f,y){return by(f,rt(y,3),ks)}function nD(f,y){return by(f,rt(y,3),Va)}function I_(f,y){return f==null?f:qi(f,rt(y,3),Vo)}function R_(f,y){return f==null?f:So(f,rt(y,3),Vo)}function Mx(f,y){return f&&ks(f,rt(y,3))}function N_(f,y){return f&&Va(f,rt(y,3))}function mb(f){return f==null?[]:qh(f,to(f))}function Cc(f){return f==null?[]:qh(f,Vo(f))}function Mg(f,y,T){var N=f==null?n:fc(f,y);return N===n?T:N}function Ec(f,y){return f!=null&&VS(f,y,Ot)}function jg(f,y){return f!=null&&VS(f,y,$o)}var jx=bc(function(f,y,T){y!=null&&typeof y.toString!="function"&&(y=fm.call(y)),f[y]=T},Zx(Is)),ap=bc(function(f,y,T){y!=null&&typeof y.toString!="function"&&(y=fm.call(y)),hr.call(f,y)?f[y].push(T):f[y]=[T]},rt),Ix=en(pu);function to(f){return To(f)?od(f):xa(f)}function Vo(f){return To(f)?od(f,!0):es(f)}function rD(f,y){var T={};return y=rt(y,3),ks(f,function(N,H,Z){bo(T,y(N,H,Z),N)}),T}function L_(f,y){var T={};return y=rt(y,3),ks(f,function(N,H,Z){bo(T,H,y(N,H,Z))}),T}var Rx=Co(function(f,y,T){ud(f,y,T)}),Nx=Co(function(f,y,T,N){ud(f,y,T,N)}),iD=or(function(f,y){var T={};if(f==null)return T;var N=!1;y=ai(y,function(Z){return Z=Rl(Z,f),N||(N=Z.length>1),Z}),Ll(f,Be(f),T),N&&(T=aa(T,g|S|w,un));for(var H=y.length;H--;)Il(T,y[H]);return T});function aD(f,y){return Lx(f,is(rt(y)))}var z_=or(function(f,y){return f==null?{}:ug(f,y)});function Lx(f,y){if(f==null)return{};var T=ai(Be(f),function(N){return[N]});return y=rt(y),Yh(f,T,function(N,H){return y(N,H[0])})}function oD(f,y,T){y=Rl(y,f);var N=-1,H=y.length;for(H||(H=1,f=n);++N<H;){var Z=f==null?n:f[wu(y[N])];Z===n&&(N=H,Z=T),f=Tu(Z)?Z.call(f):Z}return f}function sD(f,y,T){return f==null?f:gu(f,y,T)}function Ig(f,y,T,N){return N=typeof N=="function"?N:n,f==null?f:gu(f,y,T,N)}var Vl=ye(to),vb=ye(Vo);function Rg(f,y,T){var N=On(f),H=N||_u(f)||ip(f);if(y=rt(y,4),T==null){var Z=f&&f.constructor;H?T=N?new Z:[]:yi(f)?T=Tu(Z)?ga(nd(f)):{}:T={}}return(H?pi:ks)(f,function(ce,se,Ee){return y(T,ce,se,Ee)}),T}function zx(f,y){return f==null?!0:Il(f,y)}function Bx(f,y,T){return f==null?f:ol(f,y,hd(T))}function Fx(f,y,T,N){return N=typeof N=="function"?N:n,f==null?f:ol(f,y,hd(T),N)}function Hl(f){return f==null?[]:ff(f,to(f))}function Ux(f){return f==null?[]:ff(f,Vo(f))}function gb(f,y,T){return T===n&&(T=y,y=n),T!==n&&(T=as(T),T=T===T?T:0),y!==n&&(y=as(y),y=y===y?y:0),fu(as(f),y,T)}function os(f,y,T){return y=wc(y),T===n?(T=y,y=0):T=wc(T),f=as(f),Bo(f,y,T)}function lD(f,y,T){if(T&&typeof T!="boolean"&&Ga(f,y,T)&&(y=T=n),T===n&&(typeof y=="boolean"?(T=y,y=n):typeof f=="boolean"&&(T=f,f=n)),f===n&&y===n?(f=0,y=1):(f=wc(f),y===n?(y=f,f=0):y=wc(y)),f>y){var N=f;f=y,y=N}if(T||f%1||y%1){var H=Nh();return va(f+H*(y-f+Le("1e-"+((H+"").length-1))),y)}return Xh(f,y)}var B_=zl(function(f,y,T){return y=y.toLowerCase(),f+(T?Vx(y):y)});function Vx(f){return Ng(lr(f).toLowerCase())}function Hx(f){return f=lr(f),f&&f.replace(fi,Xv).replace(em,"")}function F_(f,y,T){f=lr(f),y=gi(y);var N=f.length;T=T===n?N:fu(xn(T),0,N);var H=T;return T-=y.length,T>=0&&f.slice(T,H)==y}function uD(f){return f=lr(f),f&&so.test(f)?f.replace(ri,Al):f}function cD(f){return f=lr(f),f&&tu.test(f)?f.replace(Qo,"\\$&"):f}var dD=zl(function(f,y,T){return f+(T?"-":"")+y.toLowerCase()}),U_=zl(function(f,y,T){return f+(T?" ":"")+y.toLowerCase()}),Gx=Df("toLowerCase");function V_(f,y,T){f=lr(f),y=xn(y);var N=y?Cs(f):0;if(!y||N>=y)return f;var H=(y-N)/2;return h(nl(H),T)+f+h(No(H),T)}function Wx(f,y,T){f=lr(f),y=xn(y);var N=y?Cs(f):0;return y&&N<y?f+h(y-N,T):f}function H_(f,y,T){f=lr(f),y=xn(y);var N=y?Cs(f):0;return y&&N<y?h(y-N,T)+f:f}function fD(f,y,T){return T||y==null?y=0:y&&(y=+y),gm(lr(f).replace(Ku,""),y||0)}function G_(f,y,T){return(T?Ga(f,y,T):y===n)?y=1:y=xn(y),kf(lr(f),y)}function hD(){var f=arguments,y=lr(f[0]);return f.length<3?y:y.replace(f[1],f[2])}var pD=zl(function(f,y,T){return f+(T?"_":"")+y.toLowerCase()});function mD(f,y,T){return T&&typeof T!="number"&&Ga(f,y,T)&&(y=T=n),T=T===n?de:T>>>0,T?(f=lr(f),f&&(typeof y=="string"||y!=null&&!Og(y))&&(y=gi(y),!y&&lu(f))?bu(mo(f),0,T):f.split(y,T)):[]}var vD=zl(function(f,y,T){return f+(T?" ":"")+Ng(y)});function gD(f,y,T){return f=lr(f),T=T==null?0:fu(xn(T),0,f.length),y=gi(y),f.slice(T,T+y.length)==y}function qx(f,y,T){var N=q.templateSettings;T&&Ga(f,y,T)&&(y=n),f=lr(f),y=Lf({},y,N,St);var H=Lf({},y.imports,N.imports,St),Z=to(H),ce=ff(H,Z),se,Ee,We=0,Je=y.interpolate||uo,ht="__p += '",Rt=Ol((y.escape||uo).source+"|"+Je.source+"|"+(Je===lo?er:uo).source+"|"+(y.evaluate||uo).source+"|$","g"),Jt="//# sourceURL="+(hr.call(y,"sourceURL")?(y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nm+"]")+`
|
||
`;f.replace(Rt,function(fn,Zn,dr,cl,ss,dl){return dr||(dr=cl),ht+=f.slice(We,dl).replace(ru,$u),Zn&&(se=!0,ht+=`' +
|
||
__e(`+Zn+`) +
|
||
'`),ss&&(Ee=!0,ht+=`';
|
||
`+ss+`;
|
||
__p += '`),dr&&(ht+=`' +
|
||
((__t = (`+dr+`)) == null ? '' : __t) +
|
||
'`),We=dl+fn.length,fn}),ht+=`';
|
||
`;var wn=hr.call(y,"variable")&&y.variable;if(!wn)ht=`with (obj) {
|
||
`+ht+`
|
||
}
|
||
`;else if(kt.test(wn))throw new tn(l);ht=(Ee?ht.replace(Lt,""):ht).replace(vr,"$1").replace(gr,"$1;"),ht="function("+(wn||"obj")+`) {
|
||
`+(wn?"":`obj || (obj = {});
|
||
`)+"var __t, __p = ''"+(se?", __e = _.escape":"")+(Ee?`, __j = Array.prototype.join;
|
||
function print() { __p += __j.call(arguments, '') }
|
||
`:`;
|
||
`)+ht+`return __p
|
||
}`;var Wn=q_(function(){return Bn(Z,Jt+"return "+ht).apply(n,ce)});if(Wn.source=ht,Tx(Wn))throw Wn;return Wn}function Yx(f){return lr(f).toLowerCase()}function Kx(f){return lr(f).toUpperCase()}function yD(f,y,T){if(f=lr(f),f&&(T||y===n))return Ba(f);if(!f||!(y=gi(y)))return f;var N=mo(f),H=mo(y),Z=ws(N,H),ce=Pl(N,H)+1;return bu(N,Z,ce).join("")}function bD(f,y,T){if(f=lr(f),f&&(T||y===n))return f.slice(0,cm(f)+1);if(!f||!(y=gi(y)))return f;var N=mo(f),H=Pl(N,mo(y))+1;return bu(N,0,H).join("")}function SD(f,y,T){if(f=lr(f),f&&(T||y===n))return f.replace(Ku,"");if(!f||!(y=gi(y)))return f;var N=mo(f),H=ws(N,mo(y));return bu(N,H).join("")}function W_(f,y){var T=$,N=K;if(yi(y)){var H="separator"in y?y.separator:H;T="length"in y?xn(y.length):T,N="omission"in y?gi(y.omission):N}f=lr(f);var Z=f.length;if(lu(f)){var ce=mo(f);Z=ce.length}if(T>=Z)return f;var se=T-Cs(N);if(se<1)return N;var Ee=ce?bu(ce,0,se).join(""):f.slice(0,se);if(H===n)return Ee+N;if(ce&&(se+=Ee.length-se),Og(H)){if(f.slice(se).search(H)){var We,Je=Ee;for(H.global||(H=Ol(H.source,lr(Pn.exec(H))+"g")),H.lastIndex=0;We=H.exec(Je);)var ht=We.index;Ee=Ee.slice(0,ht===n?se:ht)}}else if(f.indexOf(gi(H),se)!=se){var Rt=Ee.lastIndexOf(H);Rt>-1&&(Ee=Ee.slice(0,Rt))}return Ee+N}function Xx(f){return f=lr(f),f&&Ys.test(f)?f.replace(hn,Zv):f}var xD=zl(function(f,y,T){return f+(T?" ":"")+y.toUpperCase()}),Ng=Df("toUpperCase");function Qx(f,y,T){return f=lr(f),y=T?n:y,y===n?hf(f)?ed(f):Kv(f):f.match(y)||[]}var q_=en(function(f,y){try{return po(f,n,y)}catch(T){return Tx(T)?T:new tn(T)}}),wD=or(function(f,y){return pi(y,function(T){T=wu(T),bo(f,T,Nf(f[T],f))}),f});function yb(f){var y=f==null?0:f.length,T=rt();return f=y?ai(f,function(N){if(typeof N[1]!="function")throw new ra(o);return[T(N[0]),N[1]]}):[],en(function(N){for(var H=-1;++H<y;){var Z=f[H];if(po(Z[0],this,N))return po(Z[1],this,N)}})}function CD(f){return zo(aa(f,g))}function Zx(f){return function(){return f}}function ED(f,y){return f==null||f!==f?y:f}var Y_=hg(),_D=hg(!0);function Is(f){return f}function Jx(f){return Ki(typeof f=="function"?f:aa(f,g))}function TD(f){return ld(aa(f,g))}function K_(f,y){return mc(f,aa(y,g))}var kD=en(function(f,y){return function(T){return pu(T,f,y)}}),$x=en(function(f,y){return function(T){return pu(f,T,y)}});function bb(f,y,T){var N=to(y),H=qh(y,N);T==null&&!(yi(y)&&(H.length||!N.length))&&(T=y,y=f,f=this,H=qh(y,to(y)));var Z=!(yi(T)&&"chain"in T)||!!T.chain,ce=Tu(f);return pi(H,function(se){var Ee=y[se];f[se]=Ee,ce&&(f.prototype[se]=function(){var We=this.__chain__;if(Z||We){var Je=f(this.__wrapped__),ht=Je.__actions__=wo(this.__actions__);return ht.push({func:Ee,args:arguments,thisArg:f}),Je.__chain__=We,Je}return Ee.apply(f,kl([this.value()],arguments))})}),f}function PD(){return pn._===this&&(pn._=hm),this}function Sb(){}function AD(f){return f=xn(f),en(function(y){return Tf(y,f)})}var X_=Dm(ai),OD=Dm(ii),Lg=Dm(lf);function zg(f){return Mm(f)?Ju(wu(f)):mu(f)}function gd(f){return function(y){return f==null?n:fc(f,y)}}var DD=E(),e2=E(!0);function t2(){return[]}function xb(){return!1}function _c(){return{}}function Q_(){return""}function Z_(){return!0}function Bg(f,y){if(f=xn(f),f<1||f>ie)return[];var T=de,N=va(f,de);y=rt(y),f-=de;for(var H=Mh(N,y);++T<f;)y(T);return H}function Fg(f){return On(f)?ai(f,wu):js(f)?[f]:wo(vg(lr(f)))}function wb(f){var y=++ec;return lr(f)+y}var Cb=Om(function(f,y){return f+y},0),J_=B("ceil"),Ug=Om(function(f,y){return f/y},1),ko=B("floor");function MD(f){return f&&f.length?Wi(f,Is,Sa):n}function $_(f,y){return f&&f.length?Wi(f,rt(y,2),Sa):n}function jD(f){return Ah(f,Is)}function eT(f,y){return Ah(f,rt(y,2))}function tT(f){return f&&f.length?Wi(f,Is,pc):n}function nT(f,y){return f&&f.length?Wi(f,rt(y,2),pc):n}var n2=Om(function(f,y){return f*y},1),ID=B("round"),Vg=Om(function(f,y){return f-y},0);function Eb(f){return f&&f.length?Dh(f,Is):0}function RD(f,y){return f&&f.length?Dh(f,rt(y,2)):0}return q.after=gx,q.ary=Er,q.assign=M_,q.assignIn=Dg,q.assignInWith=Lf,q.assignWith=hb,q.at=Dx,q.before=Pt,q.bind=Nf,q.bindAll=wD,q.bindKey=h_,q.castArray=y_,q.chain=Qy,q.chunk=zy,q.compact=KS,q.concat=By,q.cond=yb,q.conforms=CD,q.constant=Zx,q.countBy=Bm,q.create=pb,q.curry=_o,q.curryRight=tb,q.debounce=rp,q.defaults=j_,q.defaultsDeep=eD,q.defer=Fm,q.delay=p_,q.difference=XS,q.differenceBy=JE,q.differenceWith=pd,q.drop=If,q.dropRight=Fy,q.dropRightWhile=QS,q.dropWhile=FO,q.fill=Uy,q.filter=Zy,q.flatMap=Sc,q.flatMapDeep=qa,q.flatMapDepth=Eo,q.flatten=gg,q.flattenDeep=e_,q.flattenDepth=JS,q.flip=m_,q.flow=Y_,q.flowRight=_D,q.fromPairs=t_,q.functions=mb,q.functionsIn=Cc,q.groupBy=QO,q.initial=ex,q.intersection=tx,q.intersectionBy=nx,q.intersectionWith=n_,q.invert=jx,q.invertBy=ap,q.invokeMap=Cg,q.iteratee=Jx,q.keyBy=vx,q.keys=to,q.keysIn=Vo,q.map=vd,q.mapKeys=rD,q.mapValues=L_,q.matches=TD,q.matchesProperty=K_,q.memoize=ll,q.merge=Rx,q.mergeWith=Nx,q.method=kD,q.methodOf=$x,q.mixin=bb,q.negate=is,q.nthArg=AD,q.omit=iD,q.omitBy=aD,q.once=v_,q.orderBy=np,q.over=X_,q.overArgs=yx,q.overEvery=OD,q.overSome=Lg,q.partial=Tg,q.partialRight=nb,q.partition=Lr,q.pick=z_,q.pickBy=Lx,q.property=zg,q.propertyOf=gd,q.pull=r_,q.pullAll=Gy,q.pullAllBy=ax,q.pullAllWith=i_,q.pullAt=UO,q.range=DD,q.rangeRight=e2,q.rearg=bx,q.reject=eb,q.remove=a_,q.rest=iW,q.reverse=Wy,q.sampleSize=_g,q.set=sD,q.setWith=Ig,q.shuffle=ZO,q.slice=VO,q.sortBy=Fl,q.sortedUniq=ux,q.sortedUniqBy=cx,q.split=mD,q.spread=aW,q.tail=dx,q.take=s_,q.takeRight=yg,q.takeRightWhile=qy,q.takeWhile=Yy,q.tap=YO,q.throttle=Sx,q.thru=xg,q.toArray=Ox,q.toPairs=Vl,q.toPairsIn=vb,q.toPath=Fg,q.toPlainObject=fb,q.transform=Rg,q.unary=rb,q.union=l_,q.unionBy=u_,q.unionWith=Nm,q.uniq=c_,q.uniqBy=WO,q.uniqWith=qO,q.unset=zx,q.unzip=tp,q.unzipWith=md,q.update=Bx,q.updateWith=Fx,q.values=Hl,q.valuesIn=Ux,q.without=bg,q.words=Qx,q.wrap=g_,q.xor=Ky,q.xorBy=Xy,q.xorWith=fx,q.zip=hx,q.zipObject=Lm,q.zipObjectDeep=Sg,q.zipWith=d_,q.entries=Vl,q.entriesIn=vb,q.extend=Dg,q.extendWith=Lf,bb(q,q),q.add=Cb,q.attempt=q_,q.camelCase=B_,q.capitalize=Vx,q.ceil=J_,q.clamp=gb,q.clone=b_,q.cloneDeep=x_,q.cloneDeepWith=ib,q.cloneWith=S_,q.conformsTo=xx,q.deburr=Hx,q.defaultTo=ED,q.divide=Ug,q.endsWith=F_,q.eq=ul,q.escape=uD,q.escapeRegExp=cD,q.every=XO,q.find=Ms,q.findIndex=$E,q.findKey=tD,q.findLast=Wa,q.findLastIndex=ZS,q.findLastKey=nD,q.floor=ko,q.forEach=Jy,q.forEachRight=$y,q.forIn=I_,q.forInRight=R_,q.forOwn=Mx,q.forOwnRight=N_,q.get=Mg,q.gt=kg,q.gte=wx,q.has=Ec,q.hasIn=jg,q.head=Vy,q.identity=Is,q.includes=Ft,q.indexOf=$S,q.inRange=os,q.invoke=Ix,q.isArguments=xc,q.isArray=On,q.isArrayBuffer=ab,q.isArrayLike=To,q.isArrayLikeObject=_i,q.isBoolean=Cx,q.isBuffer=_u,q.isDate=Ex,q.isElement=ob,q.isEmpty=w_,q.isEqual=_x,q.isEqualWith=sb,q.isError=Tx,q.isFinite=lb,q.isFunction=Tu,q.isInteger=Pg,q.isLength=Um,q.isMap=kx,q.isMatch=C_,q.isMatchWith=E_,q.isNaN=$O,q.isNative=Px,q.isNil=T_,q.isNull=__,q.isNumber=Ax,q.isObject=yi,q.isObjectLike=Ri,q.isPlainObject=Ag,q.isRegExp=Og,q.isSafeInteger=ub,q.isSet=k_,q.isString=cb,q.isSymbol=js,q.isTypedArray=ip,q.isUndefined=P_,q.isWeakMap=A_,q.isWeakSet=db,q.join=Hy,q.kebabCase=dD,q.last=Ds,q.lastIndexOf=rx,q.lowerCase=U_,q.lowerFirst=Gx,q.lt=O_,q.lte=D_,q.max=MD,q.maxBy=$_,q.mean=jD,q.meanBy=eT,q.min=tT,q.minBy=nT,q.stubArray=t2,q.stubFalse=xb,q.stubObject=_c,q.stubString=Q_,q.stubTrue=Z_,q.multiply=n2,q.nth=ix,q.noConflict=PD,q.noop=Sb,q.now=Eu,q.pad=V_,q.padEnd=Wx,q.padStart=H_,q.parseInt=fD,q.random=lD,q.reduce=Ya,q.reduceRight=Ka,q.repeat=G_,q.replace=hD,q.result=oD,q.round=ID,q.runInContext=ge,q.sample=Eg,q.size=JO,q.snakeCase=pD,q.some=Ye,q.sortedIndex=o_,q.sortedIndexBy=ox,q.sortedIndexOf=HO,q.sortedLastIndex=GO,q.sortedLastIndexBy=sx,q.sortedLastIndexOf=lx,q.startCase=vD,q.startsWith=gD,q.subtract=Vg,q.sum=Eb,q.sumBy=RD,q.template=qx,q.times=Bg,q.toFinite=wc,q.toInteger=xn,q.toLength=Ul,q.toLower=Yx,q.toNumber=as,q.toSafeInteger=_n,q.toString=lr,q.toUpper=Kx,q.trim=yD,q.trimEnd=bD,q.trimStart=SD,q.truncate=W_,q.unescape=Xx,q.uniqueId=wb,q.upperCase=xD,q.upperFirst=Ng,q.each=Jy,q.eachRight=$y,q.first=Vy,bb(q,function(){var f={};return ks(q,function(y,T){hr.call(q.prototype,T)||(f[T]=y)}),f}(),{chain:!1}),q.VERSION=r,pi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){q[f].placeholder=q}),pi(["drop","take"],function(f,y){Gn.prototype[f]=function(T){T=T===n?1:Di(xn(T),0);var N=this.__filtered__&&!y?new Gn(this):this.clone();return N.__filtered__?N.__takeCount__=va(T,N.__takeCount__):N.__views__.push({size:va(T,de),type:f+(N.__dir__<0?"Right":"")}),N},Gn.prototype[f+"Right"]=function(T){return this.reverse()[f](T).reverse()}}),pi(["filter","map","takeWhile"],function(f,y){var T=y+1,N=T==G||T==re;Gn.prototype[f]=function(H){var Z=this.clone();return Z.__iteratees__.push({iteratee:rt(H,3),type:T}),Z.__filtered__=Z.__filtered__||N,Z}}),pi(["head","last"],function(f,y){var T="take"+(y?"Right":"");Gn.prototype[f]=function(){return this[T](1).value()[0]}}),pi(["initial","tail"],function(f,y){var T="drop"+(y?"":"Right");Gn.prototype[f]=function(){return this.__filtered__?new Gn(this):this[T](1)}}),Gn.prototype.compact=function(){return this.filter(Is)},Gn.prototype.find=function(f){return this.filter(f).head()},Gn.prototype.findLast=function(f){return this.reverse().find(f)},Gn.prototype.invokeMap=en(function(f,y){return typeof f=="function"?new Gn(this):this.map(function(T){return pu(T,f,y)})}),Gn.prototype.reject=function(f){return this.filter(is(rt(f)))},Gn.prototype.slice=function(f,y){f=xn(f);var T=this;return T.__filtered__&&(f>0||y<0)?new Gn(T):(f<0?T=T.takeRight(-f):f&&(T=T.drop(f)),y!==n&&(y=xn(y),T=y<0?T.dropRight(-y):T.take(y-f)),T)},Gn.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},Gn.prototype.toArray=function(){return this.take(de)},ks(Gn.prototype,function(f,y){var T=/^(?:filter|find|map|reject)|While$/.test(y),N=/^(?:head|last)$/.test(y),H=q[N?"take"+(y=="last"?"Right":""):y],Z=N||/^find/.test(y);H&&(q.prototype[y]=function(){var ce=this.__wrapped__,se=N?[1]:arguments,Ee=ce instanceof Gn,We=se[0],Je=Ee||On(ce),ht=function(Zn){var dr=H.apply(q,kl([Zn],se));return N&&Rt?dr[0]:dr};Je&&T&&typeof We=="function"&&We.length!=1&&(Ee=Je=!1);var Rt=this.__chain__,Jt=!!this.__actions__.length,wn=Z&&!Rt,Wn=Ee&&!Jt;if(!Z&&Je){ce=Wn?ce:new Gn(this);var fn=f.apply(ce,se);return fn.__actions__.push({func:xg,args:[ht],thisArg:n}),new Kn(fn,Rt)}return wn&&Wn?f.apply(this,se):(fn=this.thru(ht),wn?N?fn.value()[0]:fn.value():fn)})}),pi(["pop","push","shift","sort","splice","unshift"],function(f){var y=du[f],T=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",N=/^(?:pop|shift)$/.test(f);q.prototype[f]=function(){var H=arguments;if(N&&!this.__chain__){var Z=this.value();return y.apply(On(Z)?Z:[],H)}return this[T](function(ce){return y.apply(On(ce)?ce:[],H)})}}),ks(Gn.prototype,function(f,y){var T=q[y];if(T){var N=T.name+"";hr.call(Lo,N)||(Lo[N]=[]),Lo[N].push({name:y,func:T})}}),Lo[Mf(n,D).name]=[{name:"wrapper",func:n}],Gn.prototype.clone=Fa,Gn.prototype.reverse=ya,Gn.prototype.value=Fh,q.prototype.at=f_,q.prototype.chain=wg,q.prototype.commit=Cu,q.prototype.next=px,q.prototype.plant=mx,q.prototype.reverse=KO,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=Rf,q.prototype.first=q.prototype.head,nt&&(q.prototype[nt]=zm),q},Oa=vo();rr?((rr.exports=Oa)._=Oa,An._=Oa):pn._=Oa}).call(zs)})(AK,Qe);const Jg=(e,t,n,r,i,a,o)=>{const l=e/2-(n+i/2)*o,c=t/2-(r+a/2)*o;return{x:l,y:c}},$g=(e,t,n,r,i=.95)=>{const a=e*i/n,o=t*i/r;return Math.min(1,Math.min(a,o))},OK=.999,DK=.1,MK=20,zb=.95,Nj=30,uk=10,Lj=e=>({x:Math.floor(e.x),y:Math.floor(e.y)}),Jm=e=>{const{width:t,height:n}=e,r={width:t,height:n},i=512*512,a=t/n;let o=t*n,l=448;for(;o<i;)if(l+=64,t===n){r.width=512,r.height=512;break}else a>1?(r.width=l,r.height=wd(l/a,64)):a<1&&(r.height=l,r.width=wd(l*a,64)),o=r.width*r.height;return r},jK=e=>({width:wd(e.width,64),height:wd(e.height,64)}),zj=[{key:"Base",value:"base"},{key:"Mask",value:"mask"}],IK=[{key:"Auto",value:"auto"},{key:"Manual",value:"manual"},{key:"None",value:"none"}],ck=e=>e.kind==="line"&&e.layer==="mask",RK=e=>e.kind==="line"&&e.layer==="base",P2=e=>e.kind==="image"&&e.layer==="base",NK=e=>e.kind==="fillRect"&&e.layer==="base",LK=e=>e.kind==="eraseRect"&&e.layer==="base",zK=e=>e.kind==="line",Bb={objects:[],stagingArea:{images:[],selectedImageIndex:-1}},Bj=Qm({name:"canvas",initialState:{boundingBoxCoordinates:{x:0,y:0},boundingBoxDimensions:{width:512,height:512},boundingBoxPreviewFill:{r:0,g:0,b:0,a:.5},boundingBoxScaleMethod:"auto",brushColor:{r:90,g:90,b:255,a:1},brushSize:50,canvasContainerDimensions:{width:0,height:0},colorPickerColor:{r:90,g:90,b:255,a:1},cursorPosition:null,doesCanvasNeedScaling:!1,futureLayerStates:[],isCanvasInitialized:!1,isDrawing:!1,isMaskEnabled:!0,isMouseOverBoundingBox:!1,isMoveBoundingBoxKeyHeld:!1,isMoveStageKeyHeld:!1,isMovingBoundingBox:!1,isMovingStage:!1,isTransformingBoundingBox:!1,layer:"base",layerState:Bb,maskColor:{r:255,g:90,b:90,a:1},maxHistory:128,minimumStageScale:1,pastLayerStates:[],scaledBoundingBoxDimensions:{width:512,height:512},shouldAutoSave:!1,shouldCropToBoundingBoxOnSave:!1,shouldDarkenOutsideBoundingBox:!1,shouldLockBoundingBox:!1,shouldPreserveMaskedArea:!1,shouldRestrictStrokesToBox:!0,shouldShowBoundingBox:!0,shouldShowBrush:!0,shouldShowBrushPreview:!1,shouldShowCanvasDebugInfo:!1,shouldShowCheckboardTransparency:!1,shouldShowGrid:!0,shouldShowIntermediates:!0,shouldShowStagingImage:!0,shouldShowStagingOutline:!0,shouldSnapToGrid:!0,stageCoordinates:{x:0,y:0},stageDimensions:{width:0,height:0},stageScale:1,tool:"brush"},reducers:{setTool:(e,t)=>{const n=t.payload;e.tool=t.payload,n!=="move"&&(e.isTransformingBoundingBox=!1,e.isMouseOverBoundingBox=!1,e.isMovingBoundingBox=!1,e.isMovingStage=!1)},setLayer:(e,t)=>{e.layer=t.payload},toggleTool:e=>{const t=e.tool;t!=="move"&&(e.tool=t==="brush"?"eraser":"brush")},setMaskColor:(e,t)=>{e.maskColor=t.payload},setBrushColor:(e,t)=>{e.brushColor=t.payload},setBrushSize:(e,t)=>{e.brushSize=t.payload},clearMask:e=>{e.pastLayerStates.push(Qe.cloneDeep(e.layerState)),e.layerState.objects=e.layerState.objects.filter(t=>!ck(t)),e.futureLayerStates=[],e.shouldPreserveMaskedArea=!1},toggleShouldInvertMask:e=>{e.shouldPreserveMaskedArea=!e.shouldPreserveMaskedArea},toggleShouldShowMask:e=>{e.isMaskEnabled=!e.isMaskEnabled},setShouldPreserveMaskedArea:(e,t)=>{e.shouldPreserveMaskedArea=t.payload},setIsMaskEnabled:(e,t)=>{e.isMaskEnabled=t.payload,e.layer=t.payload?"mask":"base"},setShouldShowCheckboardTransparency:(e,t)=>{e.shouldShowCheckboardTransparency=t.payload},setShouldShowBrushPreview:(e,t)=>{e.shouldShowBrushPreview=t.payload},setShouldShowBrush:(e,t)=>{e.shouldShowBrush=t.payload},setCursorPosition:(e,t)=>{e.cursorPosition=t.payload},setInitialCanvasImage:(e,t)=>{const n=t.payload,{stageDimensions:r}=e,i={width:hp(Qe.clamp(n.width,64,512),64),height:hp(Qe.clamp(n.height,64,512),64)},a={x:wd(n.width/2-i.width/2,64),y:wd(n.height/2-i.height/2,64)};if(e.boundingBoxScaleMethod==="auto"){const c=Jm(i);e.scaledBoundingBoxDimensions=c}e.boundingBoxDimensions=i,e.boundingBoxCoordinates=a,e.pastLayerStates.push(Qe.cloneDeep(e.layerState)),e.layerState={...Bb,objects:[{kind:"image",layer:"base",x:0,y:0,width:n.width,height:n.height,image:n}]},e.futureLayerStates=[],e.isCanvasInitialized=!1;const o=$g(r.width,r.height,n.width,n.height,zb),l=Jg(r.width,r.height,0,0,n.width,n.height,o);e.stageScale=o,e.stageCoordinates=l,e.doesCanvasNeedScaling=!0},setBoundingBoxDimensions:(e,t)=>{const n=jK(t.payload);if(e.boundingBoxDimensions=n,e.boundingBoxScaleMethod==="auto"){const r=Jm(n);e.scaledBoundingBoxDimensions=r}},setBoundingBoxCoordinates:(e,t)=>{e.boundingBoxCoordinates=Lj(t.payload)},setStageCoordinates:(e,t)=>{e.stageCoordinates=t.payload},setBoundingBoxPreviewFill:(e,t)=>{e.boundingBoxPreviewFill=t.payload},setDoesCanvasNeedScaling:(e,t)=>{e.doesCanvasNeedScaling=t.payload},setStageScale:(e,t)=>{e.stageScale=t.payload},setShouldDarkenOutsideBoundingBox:(e,t)=>{e.shouldDarkenOutsideBoundingBox=t.payload},setIsDrawing:(e,t)=>{e.isDrawing=t.payload},clearCanvasHistory:e=>{e.pastLayerStates=[],e.futureLayerStates=[]},setShouldLockBoundingBox:(e,t)=>{e.shouldLockBoundingBox=t.payload},toggleShouldLockBoundingBox:e=>{e.shouldLockBoundingBox=!e.shouldLockBoundingBox},setShouldShowBoundingBox:(e,t)=>{e.shouldShowBoundingBox=t.payload},setIsTransformingBoundingBox:(e,t)=>{e.isTransformingBoundingBox=t.payload},setIsMovingBoundingBox:(e,t)=>{e.isMovingBoundingBox=t.payload},setIsMouseOverBoundingBox:(e,t)=>{e.isMouseOverBoundingBox=t.payload},setIsMoveBoundingBoxKeyHeld:(e,t)=>{e.isMoveBoundingBoxKeyHeld=t.payload},setIsMoveStageKeyHeld:(e,t)=>{e.isMoveStageKeyHeld=t.payload},addImageToStagingArea:(e,t)=>{const{boundingBox:n,image:r}=t.payload;!n||!r||(e.pastLayerStates.push(Qe.cloneDeep(e.layerState)),e.pastLayerStates.length>e.maxHistory&&e.pastLayerStates.shift(),e.layerState.stagingArea.images.push({kind:"image",layer:"base",...n,image:r}),e.layerState.stagingArea.selectedImageIndex=e.layerState.stagingArea.images.length-1,e.futureLayerStates=[])},discardStagedImages:e=>{e.pastLayerStates.push(Qe.cloneDeep(e.layerState)),e.pastLayerStates.length>e.maxHistory&&e.pastLayerStates.shift(),e.layerState.stagingArea={...Bb.stagingArea},e.futureLayerStates=[],e.shouldShowStagingOutline=!0,e.shouldShowStagingOutline=!0},addFillRect:e=>{const{boundingBoxCoordinates:t,boundingBoxDimensions:n,brushColor:r}=e;e.pastLayerStates.push(Qe.cloneDeep(e.layerState)),e.pastLayerStates.length>e.maxHistory&&e.pastLayerStates.shift(),e.layerState.objects.push({kind:"fillRect",layer:"base",...t,...n,color:r}),e.futureLayerStates=[]},addEraseRect:e=>{const{boundingBoxCoordinates:t,boundingBoxDimensions:n}=e;e.pastLayerStates.push(Qe.cloneDeep(e.layerState)),e.pastLayerStates.length>e.maxHistory&&e.pastLayerStates.shift(),e.layerState.objects.push({kind:"eraseRect",layer:"base",...t,...n}),e.futureLayerStates=[]},addLine:(e,t)=>{const{tool:n,layer:r,brushColor:i,brushSize:a,shouldRestrictStrokesToBox:o}=e;if(n==="move"||n==="colorPicker")return;const l=a/2,c=r==="base"&&n==="brush"?{color:i}:{};e.pastLayerStates.push(Qe.cloneDeep(e.layerState)),e.pastLayerStates.length>e.maxHistory&&e.pastLayerStates.shift();const d={kind:"line",layer:r,tool:n,strokeWidth:l,points:t.payload,...c};o&&(d.clip={...e.boundingBoxCoordinates,...e.boundingBoxDimensions}),e.layerState.objects.push(d),e.futureLayerStates=[]},addPointToCurrentLine:(e,t)=>{const n=e.layerState.objects.findLast(zK);n&&n.points.push(...t.payload)},undo:e=>{const t=e.pastLayerStates.pop();t&&(e.futureLayerStates.unshift(Qe.cloneDeep(e.layerState)),e.futureLayerStates.length>e.maxHistory&&e.futureLayerStates.pop(),e.layerState=t)},redo:e=>{const t=e.futureLayerStates.shift();t&&(e.pastLayerStates.push(Qe.cloneDeep(e.layerState)),e.pastLayerStates.length>e.maxHistory&&e.pastLayerStates.shift(),e.layerState=t)},setShouldShowGrid:(e,t)=>{e.shouldShowGrid=t.payload},setIsMovingStage:(e,t)=>{e.isMovingStage=t.payload},setShouldSnapToGrid:(e,t)=>{e.shouldSnapToGrid=t.payload},setShouldAutoSave:(e,t)=>{e.shouldAutoSave=t.payload},setShouldShowIntermediates:(e,t)=>{e.shouldShowIntermediates=t.payload},resetCanvas:e=>{e.pastLayerStates.push(Qe.cloneDeep(e.layerState)),e.layerState=Bb,e.futureLayerStates=[]},setCanvasContainerDimensions:(e,t)=>{e.canvasContainerDimensions=t.payload},resizeAndScaleCanvas:e=>{const{width:t,height:n}=e.canvasContainerDimensions,r=e.layerState.objects.find(P2),i={width:Math.floor(t),height:Math.floor(n)};if(!r){const p=$g(i.width,i.height,512,512,zb),g=Jg(i.width,i.height,0,0,512,512,p),S={width:512,height:512};if(e.stageScale=p,e.stageCoordinates=g,e.stageDimensions=i,e.boundingBoxCoordinates={x:0,y:0},e.boundingBoxDimensions=S,e.boundingBoxScaleMethod==="auto"){const w=Jm(S);e.scaledBoundingBoxDimensions=w}return}const{width:a,height:o}=r,c=$g(t,n,a,o,.95),d=Jg(i.width,i.height,0,0,a,o,c);e.minimumStageScale=c,e.stageScale=c,e.stageCoordinates=Lj(d),e.stageDimensions=i,e.isCanvasInitialized=!0},resizeCanvas:e=>{const{width:t,height:n}=e.canvasContainerDimensions,r={width:Math.floor(t),height:Math.floor(n)};if(e.stageDimensions=r,!e.layerState.objects.find(P2)){const i=$g(r.width,r.height,512,512,zb),a=Jg(r.width,r.height,0,0,512,512,i),o={width:512,height:512};if(e.stageScale=i,e.stageCoordinates=a,e.boundingBoxCoordinates={x:0,y:0},e.boundingBoxDimensions=o,e.boundingBoxScaleMethod==="auto"){const l=Jm(o);e.scaledBoundingBoxDimensions=l}}},resetCanvasView:(e,t)=>{const{contentRect:n,shouldScaleTo1:r}=t.payload,{stageDimensions:{width:i,height:a}}=e,{x:o,y:l,width:c,height:d}=n;if(c!==0&&d!==0){const p=r?1:$g(i,a,c,d,zb),g=Jg(i,a,o,l,c,d,p);e.stageScale=p,e.stageCoordinates=g}else{const p=$g(i,a,512,512,zb),g=Jg(i,a,0,0,512,512,p),S={width:512,height:512};if(e.stageScale=p,e.stageCoordinates=g,e.boundingBoxCoordinates={x:0,y:0},e.boundingBoxDimensions=S,e.boundingBoxScaleMethod==="auto"){const w=Jm(S);e.scaledBoundingBoxDimensions=w}}},nextStagingAreaImage:e=>{const t=e.layerState.stagingArea.selectedImageIndex,n=e.layerState.stagingArea.images.length;e.layerState.stagingArea.selectedImageIndex=Math.min(t+1,n-1)},prevStagingAreaImage:e=>{const t=e.layerState.stagingArea.selectedImageIndex;e.layerState.stagingArea.selectedImageIndex=Math.max(t-1,0)},commitStagingAreaImage:e=>{const{images:t,selectedImageIndex:n}=e.layerState.stagingArea;e.pastLayerStates.push(Qe.cloneDeep(e.layerState)),e.pastLayerStates.length>e.maxHistory&&e.pastLayerStates.shift(),e.layerState.objects.push({...t[n]}),e.layerState.stagingArea={...Bb.stagingArea},e.futureLayerStates=[],e.shouldShowStagingOutline=!0,e.shouldShowStagingImage=!0},fitBoundingBoxToStage:e=>{const{boundingBoxDimensions:t,boundingBoxCoordinates:n,stageDimensions:r,stageScale:i}=e,a=r.width/i,o=r.height/i;if(n.x<0||n.x+t.width>a||n.y<0||n.y+t.height>o){const l={width:hp(Qe.clamp(a,64,512),64),height:hp(Qe.clamp(o,64,512),64)},c={x:wd(a/2-l.width/2,64),y:wd(o/2-l.height/2,64)};if(e.boundingBoxDimensions=l,e.boundingBoxCoordinates=c,e.boundingBoxScaleMethod==="auto"){const d=Jm(l);e.scaledBoundingBoxDimensions=d}}},setBoundingBoxScaleMethod:(e,t)=>{if(e.boundingBoxScaleMethod=t.payload,t.payload==="auto"){const n=Jm(e.boundingBoxDimensions);e.scaledBoundingBoxDimensions=n}},setScaledBoundingBoxDimensions:(e,t)=>{e.scaledBoundingBoxDimensions=t.payload},setShouldShowStagingImage:(e,t)=>{e.shouldShowStagingImage=t.payload},setShouldShowStagingOutline:(e,t)=>{e.shouldShowStagingOutline=t.payload},setShouldShowCanvasDebugInfo:(e,t)=>{e.shouldShowCanvasDebugInfo=t.payload},setShouldRestrictStrokesToBox:(e,t)=>{e.shouldRestrictStrokesToBox=t.payload},setShouldCropToBoundingBoxOnSave:(e,t)=>{e.shouldCropToBoundingBoxOnSave=t.payload},setColorPickerColor:(e,t)=>{e.colorPickerColor=t.payload},commitColorPickerColor:e=>{e.brushColor={...e.colorPickerColor,a:e.brushColor.a},e.tool="brush"},setMergedCanvas:(e,t)=>{e.pastLayerStates.push(Qe.cloneDeep(e.layerState)),e.futureLayerStates=[],e.layerState.objects=[t.payload]},resetCanvasInteractionState:e=>{e.cursorPosition=null,e.isDrawing=!1,e.isMouseOverBoundingBox=!1,e.isMoveBoundingBoxKeyHeld=!1,e.isMoveStageKeyHeld=!1,e.isMovingBoundingBox=!1,e.isMovingStage=!1,e.isTransformingBoundingBox=!1},mouseLeftCanvas:e=>{e.cursorPosition=null,e.isDrawing=!1,e.isMouseOverBoundingBox=!1,e.isMovingBoundingBox=!1,e.isTransformingBoundingBox=!1}}}),{addEraseRect:Fj,addFillRect:Uj,addImageToStagingArea:BK,addLine:FK,addPointToCurrentLine:Vj,clearCanvasHistory:Hj,clearMask:dk,commitColorPickerColor:UK,commitStagingAreaImage:VK,discardStagedImages:HK,fitBoundingBoxToStage:SIe,mouseLeftCanvas:GK,nextStagingAreaImage:WK,prevStagingAreaImage:qK,redo:YK,resetCanvas:fk,resetCanvasInteractionState:KK,resetCanvasView:Gj,resizeAndScaleCanvas:A2,resizeCanvas:XK,setBoundingBoxCoordinates:hk,setBoundingBoxDimensions:Fb,setBoundingBoxPreviewFill:xIe,setBoundingBoxScaleMethod:QK,setBrushColor:e0,setBrushSize:t0,setCanvasContainerDimensions:ZK,setColorPickerColor:JK,setCursorPosition:$K,setDoesCanvasNeedScaling:Wj,setInitialCanvasImage:O2,setIsDrawing:qj,setIsMaskEnabled:Ub,setIsMouseOverBoundingBox:D2,setIsMoveBoundingBoxKeyHeld:wIe,setIsMoveStageKeyHeld:CIe,setIsMovingBoundingBox:pk,setIsMovingStage:M2,setIsTransformingBoundingBox:mk,setLayer:j2,setMaskColor:Yj,setMergedCanvas:eX,setShouldAutoSave:Kj,setShouldCropToBoundingBoxOnSave:Xj,setShouldDarkenOutsideBoundingBox:Qj,setShouldLockBoundingBox:EIe,setShouldPreserveMaskedArea:Zj,setShouldShowBoundingBox:tX,setShouldShowBrush:_Ie,setShouldShowBrushPreview:TIe,setShouldShowCanvasDebugInfo:Jj,setShouldShowCheckboardTransparency:kIe,setShouldShowGrid:$j,setShouldShowIntermediates:e6,setShouldShowStagingImage:nX,setShouldShowStagingOutline:t6,setShouldSnapToGrid:I2,setStageCoordinates:n6,setStageScale:rX,setTool:Cd,toggleShouldLockBoundingBox:PIe,toggleTool:AIe,undo:iX,setScaledBoundingBoxDimensions:R2,setShouldRestrictStrokesToBox:r6}=Bj.actions,aX=Bj.reducer,i6=Qm({name:"gallery",initialState:{currentImageUuid:"",galleryImageMinimumWidth:64,galleryImageObjectFit:"cover",shouldAutoSwitchToNewImages:!0,currentCategory:"result",categories:{user:{images:[],latest_mtime:void 0,earliest_mtime:void 0,areMoreImagesAvailable:!0},result:{images:[],latest_mtime:void 0,earliest_mtime:void 0,areMoreImagesAvailable:!0}},galleryWidth:300,shouldUseSingleGalleryColumn:!1},reducers:{setCurrentImage:(e,t)=>{e.currentImage=t.payload,e.currentImageUuid=t.payload.uuid},removeImage:(e,t)=>{const{uuid:n,category:r}=t.payload,i=e.categories[r].images,a=i.filter(o=>o.uuid!==n);if(n===e.currentImageUuid){const o=i.findIndex(c=>c.uuid===n),l=Qe.clamp(o,0,a.length-1);e.currentImage=a.length?a[l]:void 0,e.currentImageUuid=a.length?a[l].uuid:""}e.categories[r].images=a},addImage:(e,t)=>{const{image:n,category:r}=t.payload,{uuid:i,url:a,mtime:o}=n,l=e.categories[r];l.images.find(c=>c.url===a&&c.mtime===o)||(l.images.unshift(n),e.shouldAutoSwitchToNewImages&&(e.currentImageUuid=i,e.currentImage=n,e.currentCategory=r),e.intermediateImage=void 0,l.latest_mtime=o)},setIntermediateImage:(e,t)=>{e.intermediateImage=t.payload},clearIntermediateImage:e=>{e.intermediateImage=void 0},selectNextImage:e=>{const{currentImage:t}=e;if(!t)return;const n=e.categories[t.category].images;if(t){const r=n.findIndex(i=>i.uuid===t.uuid);if(r<n.length-1){const i=n[r+1];e.currentImage=i,e.currentImageUuid=i.uuid}}},selectPrevImage:e=>{const{currentImage:t}=e;if(!t)return;const n=e.categories[t.category].images;if(t){const r=n.findIndex(i=>i.uuid===t.uuid);if(r>0){const i=n[r-1];e.currentImage=i,e.currentImageUuid=i.uuid}}},addGalleryImages:(e,t)=>{const{images:n,areMoreImagesAvailable:r,category:i}=t.payload,a=e.categories[i].images;if(n.length>0){const o=n.filter(l=>!a.find(c=>c.url===l.url&&c.mtime===l.mtime));if(e.categories[i].images=a.concat(o).sort((l,c)=>c.mtime-l.mtime),!e.currentImage){const l=n[0];e.currentImage=l,e.currentImageUuid=l.uuid}e.categories[i].latest_mtime=n[0].mtime,e.categories[i].earliest_mtime=n[n.length-1].mtime}r!==void 0&&(e.categories[i].areMoreImagesAvailable=r)},setGalleryImageMinimumWidth:(e,t)=>{e.galleryImageMinimumWidth=t.payload},setGalleryImageObjectFit:(e,t)=>{e.galleryImageObjectFit=t.payload},setShouldAutoSwitchToNewImages:(e,t)=>{e.shouldAutoSwitchToNewImages=t.payload},setCurrentCategory:(e,t)=>{e.currentCategory=t.payload},setGalleryWidth:(e,t)=>{e.galleryWidth=t.payload},setShouldUseSingleGalleryColumn:(e,t)=>{e.shouldUseSingleGalleryColumn=t.payload}}}),{addImage:n0,clearIntermediateImage:vk,removeImage:a6,setCurrentImage:o6,addGalleryImages:oX,setIntermediateImage:sX,selectNextImage:s6,selectPrevImage:l6,setGalleryImageMinimumWidth:N2,setGalleryImageObjectFit:lX,setShouldAutoSwitchToNewImages:uX,setCurrentCategory:L2,setGalleryWidth:DIe,setShouldUseSingleGalleryColumn:cX}=i6.actions,dX=i6.reducer,u6=Qm({name:"lightbox",initialState:{isLightboxOpen:!1},reducers:{setIsLightboxOpen:(e,t)=>{e.isLightboxOpen=t.payload}}}),{setIsLightboxOpen:$m}=u6.actions,fX=u6.reducer,r0=e=>typeof e=="string"?e:e.length===1?e[0].prompt:e.map(t=>`${t.prompt}:${t.weight}`).join(" ");function c6(e){let t=typeof e=="string"?e:r0(e),n="";const r=new RegExp(/\[([^\][]*)]/,"gi"),i=[...t.matchAll(r)].map(a=>a[1]);return i.length&&(n=i.join(" "),i.forEach(a=>{t=t.replace(`[${a}]`,"").replaceAll("[]","").trim()})),[t,n]}const hX=e=>{const r=e.split(",").map(i=>i.split(":")).map(i=>({seed:Number(i[0]),weight:Number(i[1])}));return gk(r)?r:!1},gk=e=>Boolean(typeof e=="string"?hX(e):e.length&&!e.some(t=>{const{seed:n,weight:r}=t,i=!isNaN(parseInt(n.toString(),10)),a=!isNaN(parseInt(r.toString(),10))&&r>=0&&r<=1;return!(i&&a)})),z2=e=>e.reduce((t,n,r,i)=>{const{seed:a,weight:o}=n;return t+=`${a}:${o}`,r!==i.length-1&&(t+=","),t},""),pX=e=>e.split(",").map(r=>r.split(":")).map(r=>[parseInt(r[0],10),parseFloat(r[1])]),d6={cfgScale:7.5,height:512,img2imgStrength:.75,infillMethod:"patchmatch",iterations:1,maskPath:"",perlin:0,prompt:"",negativePrompt:"",sampler:"k_lms",seamBlur:16,seamless:!1,seamSize:96,seamSteps:30,seamStrength:.7,seed:0,seedWeights:"",shouldFitToWidthHeight:!0,shouldGenerateVariations:!1,shouldRandomizeSeed:!0,steps:50,threshold:0,tileSize:32,variationAmount:.1,width:512,shouldUseSymmetry:!1,horizontalSymmetrySteps:0,verticalSymmetrySteps:0},f6=Qm({name:"generation",initialState:d6,reducers:{setPrompt:(e,t)=>{const n=t.payload;typeof n=="string"?e.prompt=n:e.prompt=r0(n)},setNegativePrompt:(e,t)=>{const n=t.payload;typeof n=="string"?e.negativePrompt=n:e.negativePrompt=r0(n)},setIterations:(e,t)=>{e.iterations=t.payload},setSteps:(e,t)=>{e.steps=t.payload},clampSymmetrySteps:e=>{e.horizontalSymmetrySteps=Qe.clamp(e.horizontalSymmetrySteps,0,e.steps),e.verticalSymmetrySteps=Qe.clamp(e.verticalSymmetrySteps,0,e.steps)},setCfgScale:(e,t)=>{e.cfgScale=t.payload},setThreshold:(e,t)=>{e.threshold=t.payload},setPerlin:(e,t)=>{e.perlin=t.payload},setHeight:(e,t)=>{e.height=t.payload},setWidth:(e,t)=>{e.width=t.payload},setSampler:(e,t)=>{e.sampler=t.payload},setSeed:(e,t)=>{e.seed=t.payload,e.shouldRandomizeSeed=!1},setImg2imgStrength:(e,t)=>{e.img2imgStrength=t.payload},setMaskPath:(e,t)=>{e.maskPath=t.payload},setSeamless:(e,t)=>{e.seamless=t.payload},setShouldFitToWidthHeight:(e,t)=>{e.shouldFitToWidthHeight=t.payload},resetSeed:e=>{e.seed=-1},setParameter:(e,t)=>{const{key:n,value:r}=t.payload,i={...e,[n]:r};return n==="seed"&&(i.shouldRandomizeSeed=!1),i},setShouldGenerateVariations:(e,t)=>{e.shouldGenerateVariations=t.payload},setVariationAmount:(e,t)=>{e.variationAmount=t.payload},setSeedWeights:(e,t)=>{e.seedWeights=t.payload,e.shouldGenerateVariations=!0,e.variationAmount=0},setAllTextToImageParameters:(e,t)=>{const{sampler:n,prompt:r,seed:i,variations:a,steps:o,cfg_scale:l,threshold:c,perlin:d,seamless:p,_hires_fix:g,width:S,height:w}=t.payload.image;a&&a.length>0?(e.seedWeights=z2(a),e.shouldGenerateVariations=!0,e.variationAmount=0):e.shouldGenerateVariations=!1,i&&(e.seed=i,e.shouldRandomizeSeed=!1),r&&(e.prompt=r0(r)),n&&(e.sampler=n),o&&(e.steps=o),l&&(e.cfgScale=l),typeof c>"u"?e.threshold=0:e.threshold=c,typeof d>"u"?e.perlin=0:e.perlin=d,typeof p=="boolean"&&(e.seamless=p),S&&(e.width=S),w&&(e.height=w)},setAllImageToImageParameters:(e,t)=>{const{type:n,strength:r,fit:i,init_image_path:a,mask_image_path:o}=t.payload.image;n==="img2img"&&(a&&(e.initialImage=a),o&&(e.maskPath=o),r&&(e.img2imgStrength=r),typeof i=="boolean"&&(e.shouldFitToWidthHeight=i))},setAllParameters:(e,t)=>{const{type:n,sampler:r,prompt:i,seed:a,variations:o,steps:l,cfg_scale:c,threshold:d,perlin:p,seamless:g,_hires_fix:S,width:w,height:C,strength:k,fit:P,init_image_path:D,mask_image_path:M}=t.payload.image;if(n==="img2img"&&(D&&(e.initialImage=D),M&&(e.maskPath=M),k&&(e.img2imgStrength=k),typeof P=="boolean"&&(e.shouldFitToWidthHeight=P)),o&&o.length>0?(e.seedWeights=z2(o),e.shouldGenerateVariations=!0,e.variationAmount=0):e.shouldGenerateVariations=!1,a&&(e.seed=a,e.shouldRandomizeSeed=!1),i){const[R,L]=c6(i);R&&(e.prompt=R),L?e.negativePrompt=L:e.negativePrompt=""}r&&(e.sampler=r),l&&(e.steps=l),c&&(e.cfgScale=c),typeof d>"u"?e.threshold=0:e.threshold=d,typeof p>"u"?e.perlin=0:e.perlin=p,typeof g=="boolean"&&(e.seamless=g),w&&(e.width=w),C&&(e.height=C)},resetParametersState:e=>({...e,...d6}),setShouldRandomizeSeed:(e,t)=>{e.shouldRandomizeSeed=t.payload},setInitialImage:(e,t)=>{e.initialImage=t.payload},clearInitialImage:e=>{e.initialImage=void 0},setSeamSize:(e,t)=>{e.seamSize=t.payload},setSeamBlur:(e,t)=>{e.seamBlur=t.payload},setSeamStrength:(e,t)=>{e.seamStrength=t.payload},setSeamSteps:(e,t)=>{e.seamSteps=t.payload},setTileSize:(e,t)=>{e.tileSize=t.payload},setInfillMethod:(e,t)=>{e.infillMethod=t.payload},setShouldUseSymmetry:(e,t)=>{e.shouldUseSymmetry=t.payload},setHorizontalSymmetrySteps:(e,t)=>{e.horizontalSymmetrySteps=t.payload},setVerticalSymmetrySteps:(e,t)=>{e.verticalSymmetrySteps=t.payload}}}),{clampSymmetrySteps:h6,clearInitialImage:p6,resetParametersState:RIe,resetSeed:NIe,setAllImageToImageParameters:mX,setAllParameters:m6,setAllTextToImageParameters:LIe,setCfgScale:yk,setHeight:B2,setImg2imgStrength:bk,setInfillMethod:v6,setInitialImage:i0,setIterations:g6,setMaskPath:y6,setParameter:zIe,setPerlin:Sk,setPrompt:b6,setNegativePrompt:S6,setSampler:x6,setSeamBlur:w6,setSeamless:C6,setSeamSize:E6,setSeamSteps:_6,setSeamStrength:T6,setSeed:Vb,setSeedWeights:k6,setShouldFitToWidthHeight:P6,setShouldGenerateVariations:vX,setShouldRandomizeSeed:gX,setSteps:xk,setThreshold:wk,setTileSize:A6,setVariationAmount:O6,setWidth:F2,setShouldUseSymmetry:yX,setHorizontalSymmetrySteps:D6,setVerticalSymmetrySteps:M6}=f6.actions,bX=f6.reducer,j6={codeformerFidelity:.75,facetoolStrength:.75,facetoolType:"gfpgan",hiresFix:!1,hiresStrength:.75,shouldLoopback:!1,shouldRunESRGAN:!1,shouldRunFacetool:!1,upscalingLevel:4,upscalingDenoising:.75,upscalingStrength:.75},I6=Qm({name:"postprocessing",initialState:j6,reducers:{setFacetoolStrength:(e,t)=>{e.facetoolStrength=t.payload},setCodeformerFidelity:(e,t)=>{e.codeformerFidelity=t.payload},setUpscalingLevel:(e,t)=>{e.upscalingLevel=t.payload},setUpscalingDenoising:(e,t)=>{e.upscalingDenoising=t.payload},setUpscalingStrength:(e,t)=>{e.upscalingStrength=t.payload},setHiresFix:(e,t)=>{e.hiresFix=t.payload},setHiresStrength:(e,t)=>{e.hiresStrength=t.payload},resetPostprocessingState:e=>({...e,...j6}),setShouldRunFacetool:(e,t)=>{e.shouldRunFacetool=t.payload},setFacetoolType:(e,t)=>{e.facetoolType=t.payload},setShouldRunESRGAN:(e,t)=>{e.shouldRunESRGAN=t.payload},setShouldLoopback:(e,t)=>{e.shouldLoopback=t.payload}}}),{resetPostprocessingState:FIe,setCodeformerFidelity:Ck,setFacetoolStrength:U2,setFacetoolType:V2,setHiresFix:R6,setHiresStrength:N6,setShouldLoopback:SX,setShouldRunESRGAN:xX,setShouldRunFacetool:wX,setUpscalingLevel:L6,setUpscalingDenoising:Ek,setUpscalingStrength:_k}=I6.actions,CX=I6.reducer;function Du(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JM(r.key),r)}}function Mu(e,t,n){return t&&z6(e.prototype,t),n&&z6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H2(e,t){return H2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},H2(e,t)}function G2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H2(e,t)}function Hb(e,t){if(t&&(Au(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pp(e)}function Ed(e){return Ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ed(e)}function B6(e){if(Array.isArray(e))return e}function EX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function F6(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 U6(e,t){if(e){if(typeof e=="string")return F6(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 F6(e,t)}}function V6(){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 _X(e){return B6(e)||EX(e)||U6(e)||V6()}function H6(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 G6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H6(Object(n),!0).forEach(function(r){Ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var TX={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)}},kX=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Du(this,e),this.init(t,n)}return Mu(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||TX,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,a){return a&&!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,G6(G6({},{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}(),_d=new kX,mp=function(){function e(){Du(this,e),this.observers={}}return Mu(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(a){i.observers[a]=i.observers[a]||[],i.observers[a].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),a=1;a<r;a++)i[a-1]=arguments[a];if(this.observers[n]){var o=[].concat(this.observers[n]);o.forEach(function(c){c.apply(void 0,i)})}if(this.observers["*"]){var l=[].concat(this.observers["*"]);l.forEach(function(c){c.apply(c,[n].concat(i))})}}}]),e}();function Gb(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function W6(e){return e==null?"":""+e}function PX(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function Tk(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}function i(){return!e||typeof e=="string"}for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(i())return{};var o=r(a.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return i()?{}:{obj:e,k:r(a.shift())}}function q6(e,t,n){var r=Tk(e,t,Object),i=r.obj,a=r.k;i[a]=n}function AX(e,t,n,r){var i=Tk(e,t,Object),a=i.obj,o=i.k;a[o]=a[o]||[],r&&(a[o]=a[o].concat(n)),r||a[o].push(n)}function W2(e,t){var n=Tk(e,t),r=n.obj,i=n.k;if(r)return r[i]}function Y6(e,t,n){var r=W2(e,n);return r!==void 0?r:W2(t,n)}function K6(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]):K6(e[r],t[r],n):e[r]=t[r]);return e}function a0(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var OX={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function DX(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return OX[t]}):e}var q2=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,MX=[" ",",","?","!",";"];function jX(e,t,n){t=t||"",n=n||"";var r=MX.filter(function(l){return t.indexOf(l)<0&&n.indexOf(l)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(l){return l==="?"?"\\?":l}).join("|"),")")),a=!i.test(e);if(!a){var o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(a=!0)}return a}function X6(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 Y2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X6(Object(n),!0).forEach(function(r){Ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IX(e){var t=RX();return function(){var r=Ed(e),i;if(t){var a=Ed(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Hb(this,i)}}function RX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Q6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,a=0;a<r.length;++a){if(!i||typeof i[r[a]]=="string"&&a+1<r.length)return;if(i[r[a]]===void 0){for(var o=2,l=r.slice(a,a+o).join(n),c=i[l];c===void 0&&r.length>a+o;)o++,l=r.slice(a,a+o).join(n),c=i[l];if(c===void 0)return;if(c===null)return null;if(t.endsWith(l)){if(typeof c=="string")return c;if(l&&typeof c[l]=="string")return c[l]}var d=r.slice(a+o).join(n);return d?Q6(c,d,n):void 0}i=i[r[a]]}return i}}var NX=function(e){G2(n,e);var t=IX(n);function n(r){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Du(this,n),i=t.call(this),q2&&mp.call(pp(i)),i.data=r||{},i.options=a,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Mu(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var a=this.options.ns.indexOf(i);a>-1&&this.options.ns.splice(a,1)}},{key:"getResource",value:function(i,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,d=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,p=[i,a];o&&typeof o!="string"&&(p=p.concat(o)),o&&typeof o=="string"&&(p=p.concat(c?o.split(c):o)),i.indexOf(".")>-1&&(p=i.split("."));var g=W2(this.data,p);return g||!d||typeof o!="string"?g:Q6(this.data&&this.data[i]&&this.data[i][a],o,c)}},{key:"addResource",value:function(i,a,o,l){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},d=this.options.keySeparator;d===void 0&&(d=".");var p=[i,a];o&&(p=p.concat(d?o.split(d):o)),i.indexOf(".")>-1&&(p=i.split("."),l=a,a=p[1]),this.addNamespaces(a),q6(this.data,p,l),c.silent||this.emit("added",i,a,o,l)}},{key:"addResources",value:function(i,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var c in o)(typeof o[c]=="string"||Object.prototype.toString.apply(o[c])==="[object Array]")&&this.addResource(i,a,c,o[c],{silent:!0});l.silent||this.emit("added",i,a,o)}},{key:"addResourceBundle",value:function(i,a,o,l,c){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},p=[i,a];i.indexOf(".")>-1&&(p=i.split("."),l=o,o=a,a=p[1]),this.addNamespaces(a);var g=W2(this.data,p)||{};l?K6(g,o,c):g=Y2(Y2({},g),o),q6(this.data,p,g),d.silent||this.emit("added",i,a,o)}},{key:"removeResourceBundle",value:function(i,a){this.hasResourceBundle(i,a)&&delete this.data[i][a],this.removeNamespaces(a),this.emit("removed",i,a)}},{key:"hasResourceBundle",value:function(i,a){return this.getResource(i,a)!==void 0}},{key:"getResourceBundle",value:function(i,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Y2(Y2({},{}),this.getResource(i,a)):this.getResource(i,a)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var a=this.getDataByLanguage(i),o=a&&Object.keys(a)||[];return!!o.find(function(l){return a[l]&&Object.keys(a[l]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(mp),Z6={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,a){var o=this;return t.forEach(function(l){o.processors[l]&&(n=o.processors[l].process(n,r,i,a))}),n}};function J6(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 Bs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J6(Object(n),!0).forEach(function(r){Ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LX(e){var t=zX();return function(){var r=Ed(e),i;if(t){var a=Ed(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Hb(this,i)}}function zX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var $6={},eI=function(e){G2(n,e);var t=LX(n);function n(r){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Du(this,n),i=t.call(this),q2&&mp.call(pp(i)),PX(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,pp(i)),i.options=a,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=_d.create("translator"),i}return Mu(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var o=this.resolve(i,a);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(i,a){var o=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,c=a.ns||this.options.defaultNS||[],d=o&&i.indexOf(o)>-1,p=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!jX(i,o,l);if(d&&!p){var g=i.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:i,namespaces:c};var S=i.split(o);(o!==l||o===l&&this.options.ns.indexOf(S[0])>-1)&&(c=S.shift()),i=S.join(l)}return typeof c=="string"&&(c=[c]),{key:i,namespaces:c}}},{key:"translate",value:function(i,a,o){var l=this;if(Au(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),a||(a={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var c=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,d=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,p=this.extractFromKey(i[i.length-1],a),g=p.key,S=p.namespaces,w=S[S.length-1],C=a.lng||this.language,k=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(C&&C.toLowerCase()==="cimode"){if(k){var P=a.nsSeparator||this.options.nsSeparator;return c?{res:"".concat(w).concat(P).concat(g),usedKey:g,exactUsedKey:g,usedLng:C,usedNS:w}:"".concat(w).concat(P).concat(g)}return c?{res:g,usedKey:g,exactUsedKey:g,usedLng:C,usedNS:w}:g}var D=this.resolve(i,a),M=D&&D.res,R=D&&D.usedKey||g,L=D&&D.exactUsedKey||g,z=Object.prototype.toString.apply(M),U=["[object Number]","[object Function]","[object RegExp]"],V=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,Y=!this.i18nFormat||this.i18nFormat.handleAsObject,J=typeof M!="string"&&typeof M!="boolean"&&typeof M!="number";if(Y&&M&&J&&U.indexOf(z)<0&&!(typeof V=="string"&&z==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var $=this.options.returnedObjectHandler?this.options.returnedObjectHandler(R,M,Bs(Bs({},a),{},{ns:S})):"key '".concat(g," (").concat(this.language,")' returned an object instead of string.");return c?(D.res=$,D):$}if(d){var K=z==="[object Array]",fe=K?[]:{},X=K?L:R;for(var G in M)if(Object.prototype.hasOwnProperty.call(M,G)){var te="".concat(X).concat(d).concat(G);fe[G]=this.translate(te,Bs(Bs({},a),{joinArrays:!1,ns:S})),fe[G]===te&&(fe[G]=M[G])}M=fe}}else if(Y&&typeof V=="string"&&z==="[object Array]")M=M.join(V),M&&(M=this.extendTranslation(M,i,a,o));else{var re=!1,oe=!1,ie=a.count!==void 0&&typeof a.count!="string",le=n.hasDefaultValue(a),ee=ie?this.pluralResolver.getSuffix(C,a.count,a):"",de=a["defaultValue".concat(ee)]||a.defaultValue;!this.isValidLookup(M)&&le&&(re=!0,M=de),this.isValidLookup(M)||(oe=!0,M=g);var Fe=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Pe=Fe&&oe?void 0:M,Oe=le&&de!==M&&this.options.updateMissing;if(oe||re||Oe){if(this.logger.log(Oe?"updateKey":"missingKey",C,w,g,Oe?de:M),d){var Ie=this.resolve(g,Bs(Bs({},a),{},{keySeparator:!1}));Ie&&Ie.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var De=[],$e=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&$e&&$e[0])for(var it=0;it<$e.length;it++)De.push($e[it]);else this.options.saveMissingTo==="all"?De=this.languageUtils.toResolveHierarchy(a.lng||this.language):De.push(a.lng||this.language);var mt=function(qe,Ce,Nt){var Ae=le&&Nt!==M?Nt:Pe;l.options.missingKeyHandler?l.options.missingKeyHandler(qe,w,Ce,Ae,Oe,a):l.backendConnector&&l.backendConnector.saveMissing&&l.backendConnector.saveMissing(qe,w,Ce,Ae,Oe,a),l.emit("missingKey",qe,w,Ce,M)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ie?De.forEach(function(bt){l.pluralResolver.getSuffixes(bt,a).forEach(function(qe){mt([bt],g+qe,a["defaultValue".concat(qe)]||de)})}):mt(De,g,de))}M=this.extendTranslation(M,i,a,D,o),oe&&M===g&&this.options.appendNamespaceToMissingKey&&(M="".concat(w,":").concat(g)),(oe||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?M=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(w,":").concat(g):g,re?M:void 0):M=this.options.parseMissingKeyHandler(M))}return c?(D.res=M,D):M}},{key:"extendTranslation",value:function(i,a,o,l,c){var d=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Bs(Bs({},this.options.interpolation.defaultVariables),o),l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(Bs(Bs({},o),{interpolation:Bs(Bs({},this.options.interpolation),o.interpolation)}));var p=typeof i=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(p){var S=i.match(this.interpolator.nestingRegexp);g=S&&S.length}var w=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(w=Bs(Bs({},this.options.interpolation.defaultVariables),w)),i=this.interpolator.interpolate(i,w,o.lng||this.language,o),p){var C=i.match(this.interpolator.nestingRegexp),k=C&&C.length;g<k&&(o.nest=!1)}o.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var M=arguments.length,R=new Array(M),L=0;L<M;L++)R[L]=arguments[L];return c&&c[0]===R[0]&&!o.context?(d.logger.warn("It seems you are nesting recursively key: ".concat(R[0]," in key: ").concat(a[0])),null):d.translate.apply(d,R.concat([a]))},o)),o.interpolation&&this.interpolator.reset()}var P=o.postProcess||this.options.postProcess,D=typeof P=="string"?[P]:P;return i!=null&&D&&D.length&&o.applyPostProcessor!==!1&&(i=Z6.handle(D,i,a,this.options&&this.options.postProcessPassResolved?Bs({i18nResolved:l},o):o,this)),i}},{key:"resolve",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,c,d,p,g;return typeof i=="string"&&(i=[i]),i.forEach(function(S){if(!a.isValidLookup(l)){var w=a.extractFromKey(S,o),C=w.key;c=C;var k=w.namespaces;a.options.fallbackNS&&(k=k.concat(a.options.fallbackNS));var P=o.count!==void 0&&typeof o.count!="string",D=P&&!o.ordinal&&o.count===0&&a.pluralResolver.shouldUseIntlApi(),M=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",R=o.lngs?o.lngs:a.languageUtils.toResolveHierarchy(o.lng||a.language,o.fallbackLng);k.forEach(function(L){a.isValidLookup(l)||(g=L,!$6["".concat(R[0],"-").concat(L)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(g)&&($6["".concat(R[0],"-").concat(L)]=!0,a.logger.warn('key "'.concat(c,'" for languages "').concat(R.join(", "),`" won't get resolved as namespace "`).concat(g,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),R.forEach(function(z){if(!a.isValidLookup(l)){p=z;var U=[C];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(U,C,z,L,o);else{var V;P&&(V=a.pluralResolver.getSuffix(z,o.count,o));var Y="".concat(a.options.pluralSeparator,"zero");if(P&&(U.push(C+V),D&&U.push(C+Y)),M){var J="".concat(C).concat(a.options.contextSeparator).concat(o.context);U.push(J),P&&(U.push(J+V),D&&U.push(J+Y))}}for(var $;$=U.pop();)a.isValidLookup(l)||(d=$,l=a.getResource(z,L,$,o))}}))})}}),{res:l,usedKey:c,exactUsedKey:d,usedLng:p,usedNS:g}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,a,o){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,a,o,l):this.resourceStore.getResource(i,a,o,l)}}],[{key:"hasDefaultValue",value:function(i){var a="defaultValue";for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&a===o.substring(0,a.length)&&i[o]!==void 0)return!0;return!1}}]),n}(mp);function kk(e){return e.charAt(0).toUpperCase()+e.slice(1)}var tI=function(){function e(t){Du(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_d.create("languageUtils")}return Mu(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(a){return a.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=kk(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=kk(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=kk(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(a){if(!i){var o=r.formatLanguageCode(a);(!r.options.supportedLngs||r.isSupportedCode(o))&&(i=o)}}),!i&&this.options.supportedLngs&&n.forEach(function(a){if(!i){var o=r.getLanguagePartFromCode(a);if(r.isSupportedCode(o))return i=o;i=r.options.supportedLngs.find(function(l){if(l.indexOf(o)===0)return l})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,a=this.getFallbackCodes(r||this.options.fallbackLng||[],n),o=[],l=function(d){d&&(i.isSupportedCode(d)?o.push(d):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(d)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(n))):typeof n=="string"&&l(this.formatLanguageCode(n)),a.forEach(function(c){o.indexOf(c)<0&&l(i.formatLanguageCode(c))}),o}}]),e}(),BX=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],FX={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},UX=["v1","v2","v3"],nI={zero:0,one:1,two:2,few:3,many:4,other:5};function VX(){var e={};return BX.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:FX[t.fc]}})}),e}var HX=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Du(this,e),this.languageUtils=t,this.options=n,this.logger=_d.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=VX()}return Mu(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(a){return"".concat(r).concat(a)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(n,i);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort(function(o,l){return nI[o]-nI[l]}).map(function(o){return"".concat(r.options.prepend).concat(o)}):a.numbers.map(function(o){return r.getSuffix(n,o,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(n,i);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(r)):this.getSuffixRetroCompatible(a,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,a=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),o=n.numbers[a];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var l=function(){return i.options.prepend&&o.toString()?i.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?l():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!UX.includes(this.options.compatibilityJSON)}}]),e}();function rI(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 Pc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rI(Object(n),!0).forEach(function(r){Ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var GX=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Du(this,e),this.logger=_d.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Mu(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:DX,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?a0(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?a0(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?a0(r.nestingPrefix):r.nestingPrefixEscaped||a0("$t("),this.nestingSuffix=r.nestingSuffix?a0(r.nestingSuffix):r.nestingSuffixEscaped||a0(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,a){var o=this,l,c,d,p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function g(P){return P.replace(/\$/g,"$$$$")}var S=function(D){if(D.indexOf(o.formatSeparator)<0){var M=Y6(r,p,D);return o.alwaysFormat?o.format(M,void 0,i,Pc(Pc(Pc({},a),r),{},{interpolationkey:D})):M}var R=D.split(o.formatSeparator),L=R.shift().trim(),z=R.join(o.formatSeparator).trim();return o.format(Y6(r,p,L),z,i,Pc(Pc(Pc({},a),r),{},{interpolationkey:L}))};this.resetRegExp();var w=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,C=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,k=[{regex:this.regexpUnescape,safeValue:function(D){return g(D)}},{regex:this.regexp,safeValue:function(D){return o.escapeValue?g(o.escape(D)):g(D)}}];return k.forEach(function(P){for(d=0;l=P.regex.exec(n);){var D=l[1].trim();if(c=S(D),c===void 0)if(typeof w=="function"){var M=w(n,l,a);c=typeof M=="string"?M:""}else if(a&&Object.prototype.hasOwnProperty.call(a,D))c="";else if(C){c=l[0];continue}else o.logger.warn("missed to pass in variable ".concat(D," for interpolating ").concat(n)),c="";else typeof c!="string"&&!o.useRawValueToEscape&&(c=W6(c));var R=P.safeValue(c);if(n=n.replace(l[0],R),C?(P.regex.lastIndex+=c.length,P.regex.lastIndex-=l[0].length):P.regex.lastIndex=0,d++,d>=o.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,l,c;function d(w,C){var k=this.nestingOptionsSeparator;if(w.indexOf(k)<0)return w;var P=w.split(new RegExp("".concat(k,"[ ]*{"))),D="{".concat(P[1]);w=P[0],D=this.interpolate(D,c);var M=D.match(/'/g),R=D.match(/"/g);(M&&M.length%2===0&&!R||R.length%2!==0)&&(D=D.replace(/'/g,'"'));try{c=JSON.parse(D),C&&(c=Pc(Pc({},C),c))}catch(L){return this.logger.warn("failed parsing options string in nesting for key ".concat(w),L),"".concat(w).concat(k).concat(D)}return delete c.defaultValue,w}for(;o=this.nestingRegexp.exec(n);){var p=[];c=Pc({},a),c=c.replace&&typeof c.replace!="string"?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;var g=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var S=o[1].split(this.formatSeparator).map(function(w){return w.trim()});o[1]=S.shift(),p=S,g=!0}if(l=r(d.call(this,o[1].trim(),c),c),l&&o[0]===n&&typeof l!="string")return l;typeof l!="string"&&(l=W6(l)),l||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(n)),l=""),g&&(l=p.reduce(function(w,C){return i.format(w,C,a.lng,Pc(Pc({},a),{},{interpolationkey:o[1].trim()}))},l.trim())),n=n.replace(o[0],l),this.regexp.lastIndex=0}return n}}]),e}();function iI(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 qf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iI(Object(n),!0).forEach(function(r){Ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WX(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var a=i.split(";");a.forEach(function(o){if(o){var l=o.split(":"),c=_X(l),d=c[0],p=c.slice(1),g=p.join(":").trim().replace(/^'+|'+$/g,"");n[d.trim()]||(n[d.trim()]=g),g==="false"&&(n[d.trim()]=!1),g==="true"&&(n[d.trim()]=!0),isNaN(g)||(n[d.trim()]=parseInt(g,10))}})}}return{formatName:t,formatOptions:n}}function o0(e){var t={};return function(r,i,a){var o=i+JSON.stringify(a),l=t[o];return l||(l=e(i,a),t[o]=l),l(r)}}var qX=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Du(this,e),this.logger=_d.create("formatter"),this.options=t,this.formats={number:o0(function(n,r){var i=new Intl.NumberFormat(n,qf({},r));return function(a){return i.format(a)}}),currency:o0(function(n,r){var i=new Intl.NumberFormat(n,qf(qf({},r),{},{style:"currency"}));return function(a){return i.format(a)}}),datetime:o0(function(n,r){var i=new Intl.DateTimeFormat(n,qf({},r));return function(a){return i.format(a)}}),relativetime:o0(function(n,r){var i=new Intl.RelativeTimeFormat(n,qf({},r));return function(a){return i.format(a,r.range||"day")}}),list:o0(function(n,r){var i=new Intl.ListFormat(n,qf({},r));return function(a){return i.format(a)}})},this.init(t)}return Mu(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=o0(r)}},{key:"format",value:function(n,r,i){var a=this,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=r.split(this.formatSeparator),c=l.reduce(function(d,p){var g=WX(p),S=g.formatName,w=g.formatOptions;if(a.formats[S]){var C=d;try{var k=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},P=k.locale||k.lng||o.locale||o.lng||i;C=a.formats[S](d,P,qf(qf(qf({},w),o),k))}catch(D){a.logger.warn(D)}return C}else a.logger.warn("there was no format function for ".concat(S));return d},n);return c}}]),e}();function aI(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 oI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aI(Object(n),!0).forEach(function(r){Ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YX(e){var t=KX();return function(){var r=Ed(e),i;if(t){var a=Ed(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Hb(this,i)}}function KX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function XX(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var QX=function(e){G2(n,e);var t=YX(n);function n(r,i,a){var o,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Du(this,n),o=t.call(this),q2&&mp.call(pp(o)),o.backend=r,o.store=i,o.services=a,o.languageUtils=a.languageUtils,o.options=l,o.logger=_d.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=l.maxParallelReads||10,o.readingCalls=0,o.maxRetries=l.maxRetries>=0?l.maxRetries:5,o.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,l.backend,l),o}return Mu(n,[{key:"queueLoad",value:function(i,a,o,l){var c=this,d={},p={},g={},S={};return i.forEach(function(w){var C=!0;a.forEach(function(k){var P="".concat(w,"|").concat(k);!o.reload&&c.store.hasResourceBundle(w,k)?c.state[P]=2:c.state[P]<0||(c.state[P]===1?p[P]===void 0&&(p[P]=!0):(c.state[P]=1,C=!1,p[P]===void 0&&(p[P]=!0),d[P]===void 0&&(d[P]=!0),S[k]===void 0&&(S[k]=!0)))}),C||(g[w]=!0)}),(Object.keys(d).length||Object.keys(p).length)&&this.queue.push({pending:p,pendingCount:Object.keys(p).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(d),pending:Object.keys(p),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(S)}}},{key:"loaded",value:function(i,a,o){var l=i.split("|"),c=l[0],d=l[1];a&&this.emit("failedLoading",c,d,a),o&&this.store.addResourceBundle(c,d,o),this.state[i]=a?-1:2;var p={};this.queue.forEach(function(g){AX(g.loaded,[c],d),XX(g,i),a&&g.errors.push(a),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(function(S){p[S]||(p[S]={});var w=g.loaded[S];w.length&&w.forEach(function(C){p[S][C]===void 0&&(p[S][C]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(function(g){return!g.done})}},{key:"read",value:function(i,a,o){var l=this,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,p=arguments.length>5?arguments[5]:void 0;if(!i.length)return p(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:a,fcName:o,tried:c,wait:d,callback:p});return}this.readingCalls++;var g=function(k,P){if(l.readingCalls--,l.waitingReads.length>0){var D=l.waitingReads.shift();l.read(D.lng,D.ns,D.fcName,D.tried,D.wait,D.callback)}if(k&&P&&c<l.maxRetries){setTimeout(function(){l.read.call(l,i,a,o,c+1,d*2,p)},d);return}p(k,P)},S=this.backend[o].bind(this.backend);if(S.length===2){try{var w=S(i,a);w&&typeof w.then=="function"?w.then(function(C){return g(null,C)}).catch(g):g(null,w)}catch(C){g(C)}return}return S(i,a,g)}},{key:"prepareLoading",value:function(i,a){var o=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof a=="string"&&(a=[a]);var d=this.queueLoad(i,a,l,c);if(!d.toLoad.length)return d.pending.length||c(),null;d.toLoad.forEach(function(p){o.loadOne(p)})}},{key:"load",value:function(i,a,o){this.prepareLoading(i,a,{},o)}},{key:"reload",value:function(i,a,o){this.prepareLoading(i,a,{reload:!0},o)}},{key:"loadOne",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=i.split("|"),c=l[0],d=l[1];this.read(c,d,"read",void 0,void 0,function(p,g){p&&a.logger.warn("".concat(o,"loading namespace ").concat(d," for language ").concat(c," failed"),p),!p&&g&&a.logger.log("".concat(o,"loaded namespace ").concat(d," for language ").concat(c),g),a.loaded(i,p,g)})}},{key:"saveMissing",value:function(i,a,o,l,c){var d=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},p=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){var g=oI(oI({},d),{},{isUpdate:c}),S=this.backend.create.bind(this.backend);if(S.length<6)try{var w;S.length===5?w=S(i,a,o,l,g):w=S(i,a,o,l),w&&typeof w.then=="function"?w.then(function(C){return p(null,C)}).catch(p):p(null,w)}catch(C){p(C)}else S(i,a,o,l,p,g)}!i||!i[0]||this.store.addResource(i[0],a,o,l)}}}]),n}(mp);function sI(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(Au(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Au(t[2])==="object"||Au(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function lI(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function uI(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 Td(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uI(Object(n),!0).forEach(function(r){Ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZX(e){var t=JX();return function(){var r=Ed(e),i;if(t){var a=Ed(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Hb(this,i)}}function JX(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function K2(){}function $X(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var X2=function(e){G2(n,e);var t=ZX(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(Du(this,n),r=t.call(this),q2&&mp.call(pp(r)),r.options=lI(i),r.services={},r.logger=_d,r.modules={external:[]},$X(pp(r)),a&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,a),Hb(r,pp(r));setTimeout(function(){r.init(i,a)},0)}return r}return Mu(n,[{key:"init",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(o=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(typeof a.ns=="string"?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));var l=sI();this.options=Td(Td(Td({},l),this.options),lI(a)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Td(Td({},l.interpolation),this.options.interpolation)),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);function c(D){return D?typeof D=="function"?new D:D:null}if(!this.options.isClone){this.modules.logger?_d.init(c(this.modules.logger),this.options):_d.init(null,this.options);var d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=qX);var p=new tI(this.options);this.store=new NX(this.options.resources,this.options);var g=this.services;g.logger=_d,g.resourceStore=this.store,g.languageUtils=p,g.pluralResolver=new HX(p,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(g.formatter=c(d),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new GX(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new QX(c(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(D){for(var M=arguments.length,R=new Array(M>1?M-1:0),L=1;L<M;L++)R[L-1]=arguments[L];i.emit.apply(i,[D].concat(R))}),this.modules.languageDetector&&(g.languageDetector=c(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=c(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new eI(this.services,this.options),this.translator.on("*",function(D){for(var M=arguments.length,R=new Array(M>1?M-1:0),L=1;L<M;L++)R[L-1]=arguments[L];i.emit.apply(i,[D].concat(R))}),this.modules.external.forEach(function(D){D.init&&D.init(i)})}if(this.format=this.options.interpolation.format,o||(o=K2),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var S=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);S.length>0&&S[0]!=="dev"&&(this.options.lng=S[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var w=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];w.forEach(function(D){i[D]=function(){var M;return(M=i.store)[D].apply(M,arguments)}});var C=["addResource","addResources","addResourceBundle","removeResourceBundle"];C.forEach(function(D){i[D]=function(){var M;return(M=i.store)[D].apply(M,arguments),i}});var k=Gb(),P=function(){var M=function(L,z){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),k.resolve(z),o(L,z)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return M(null,i.t.bind(i));i.changeLanguage(i.options.lng,M)};return this.options.resources||!this.options.initImmediate?P():setTimeout(P,0),k}},{key:"loadResources",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:K2,l=o,c=typeof i=="string"?i:this.language;if(typeof i=="function"&&(l=i),!this.options.resources||this.options.partialBundledLanguages){if(c&&c.toLowerCase()==="cimode")return l();var d=[],p=function(w){if(w){var C=a.services.languageUtils.toResolveHierarchy(w);C.forEach(function(k){d.indexOf(k)<0&&d.push(k)})}};if(c)p(c);else{var g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.forEach(function(S){return p(S)})}this.options.preload&&this.options.preload.forEach(function(S){return p(S)}),this.services.backendConnector.load(d,this.options.ns,function(S){!S&&!a.resolvedLanguage&&a.language&&a.setResolvedLanguage(a.language),l(S)})}else l(null)}},{key:"reloadResources",value:function(i,a,o){var l=Gb();return i||(i=this.languages),a||(a=this.options.ns),o||(o=K2),this.services.backendConnector.reload(i,a,function(c){l.resolve(),o(c)}),l}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&Z6.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var a=0;a<this.languages.length;a++){var o=this.languages[a];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(i,a){var o=this;this.isLanguageChangingTo=i;var l=Gb();this.emit("languageChanging",i);var c=function(S){o.language=S,o.languages=o.services.languageUtils.toResolveHierarchy(S),o.resolvedLanguage=void 0,o.setResolvedLanguage(S)},d=function(S,w){w?(c(w),o.translator.changeLanguage(w),o.isLanguageChangingTo=void 0,o.emit("languageChanged",w),o.logger.log("languageChanged",w)):o.isLanguageChangingTo=void 0,l.resolve(function(){return o.t.apply(o,arguments)}),a&&a(S,function(){return o.t.apply(o,arguments)})},p=function(S){!i&&!S&&o.services.languageDetector&&(S=[]);var w=typeof S=="string"?S:o.services.languageUtils.getBestMatchFromCodes(S);w&&(o.language||c(w),o.translator.language||o.translator.changeLanguage(w),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage&&o.services.languageDetector.cacheUserLanguage(w)),o.loadResources(w,function(C){d(C,w)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?p(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(p):this.services.languageDetector.detect(p):p(i),l}},{key:"getFixedT",value:function(i,a,o){var l=this,c=function d(p,g){var S;if(Au(g)!=="object"){for(var w=arguments.length,C=new Array(w>2?w-2:0),k=2;k<w;k++)C[k-2]=arguments[k];S=l.options.overloadTranslationOptionHandler([p,g].concat(C))}else S=Td({},g);S.lng=S.lng||d.lng,S.lngs=S.lngs||d.lngs,S.ns=S.ns||d.ns,S.keyPrefix=S.keyPrefix||o||d.keyPrefix;var P=l.options.keySeparator||".",D;return S.keyPrefix&&Array.isArray(p)?D=p.map(function(M){return"".concat(S.keyPrefix).concat(P).concat(M)}):D=S.keyPrefix?"".concat(S.keyPrefix).concat(P).concat(p):p,l.t(D,S)};return typeof i=="string"?c.lng=i:c.lngs=i,c.ns=a,c.keyPrefix=o,c}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var l=this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;var p=function(w,C){var k=a.services.backendConnector.state["".concat(w,"|").concat(C)];return k===-1||k===2};if(o.precheck){var g=o.precheck(this,p);if(g!==void 0)return g}return!!(this.hasResourceBundle(l,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||p(l,i)&&(!c||p(d,i)))}},{key:"loadNamespaces",value:function(i,a){var o=this,l=Gb();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(c){o.options.ns.indexOf(c)<0&&o.options.ns.push(c)}),this.loadResources(function(c){l.resolve(),a&&a(c)}),l):(a&&a(),Promise.resolve())}},{key:"loadLanguages",value:function(i,a){var o=Gb();typeof i=="string"&&(i=[i]);var l=this.options.preload||[],c=i.filter(function(d){return l.indexOf(d)<0});return c.length?(this.options.preload=l.concat(c),this.loadResources(function(d){o.resolve(),a&&a(d)}),o):(a&&a(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new tI(sI());return a.indexOf(o.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:K2,l=Td(Td(Td({},this.options),a),{isClone:!0}),c=new n(l);(a.debug!==void 0||a.prefix!==void 0)&&(c.logger=c.logger.clone(a));var d=["store","services","language"];return d.forEach(function(p){c[p]=i[p]}),c.services=Td({},this.services),c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c.translator=new eI(c.services,c.options),c.translator.on("*",function(p){for(var g=arguments.length,S=new Array(g>1?g-1:0),w=1;w<g;w++)S[w-1]=arguments[w];c.emit.apply(c,[p].concat(S))}),c.init(l,o),c.translator.options=c.options,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(mp);Ou(X2,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new X2(e,t)});var Fn=X2.createInstance();Fn.createInstance=X2.createInstance,Fn.createInstance,Fn.dir,Fn.init,Fn.loadResources,Fn.reloadResources,Fn.use,Fn.changeLanguage,Fn.getFixedT,Fn.t,Fn.exists,Fn.setDefaultNamespace,Fn.hasLoadedNamespace,Fn.loadNamespaces,Fn.loadLanguages;var cI=[],eQ=cI.forEach,tQ=cI.slice;function nQ(e){return eQ.call(tQ.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}var dI=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,rQ=function(t,n,r){var i=r||{};i.path=i.path||"/";var a=encodeURIComponent(n),o="".concat(t,"=").concat(a);if(i.maxAge>0){var l=i.maxAge-0;if(Number.isNaN(l))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(l))}if(i.domain){if(!dI.test(i.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(i.domain)}if(i.path){if(!dI.test(i.path))throw new TypeError("option path is invalid");o+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(o+="; HttpOnly"),i.secure&&(o+="; Secure"),i.sameSite){var c=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(c){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},fI={create:function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+r*60*1e3)),i&&(a.domain=i),document.cookie=rQ(t,encodeURIComponent(n),a)},read:function(t){for(var n="".concat(t,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var a=r[i];a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(n)===0)return a.substring(n.length,a.length)}return null},remove:function(t){this.create(t,"",-1)}},iQ={name:"cookie",lookup:function(t){var n;if(t.lookupCookie&&typeof document<"u"){var r=fI.read(t.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupCookie&&typeof document<"u"&&fI.create(n.lookupCookie,t,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},aQ={name:"querystring",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),a=i.split("&"),o=0;o<a.length;o++){var l=a[o].indexOf("=");if(l>0){var c=a[o].substring(0,l);c===t.lookupQuerystring&&(n=a[o].substring(l+1))}}}return n}},Wb=null,hI=function(){if(Wb!==null)return Wb;try{Wb=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Wb=!1}return Wb},oQ={name:"localStorage",lookup:function(t){var n;if(t.lookupLocalStorage&&hI()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupLocalStorage&&hI()&&window.localStorage.setItem(n.lookupLocalStorage,t)}},qb=null,pI=function(){if(qb!==null)return qb;try{qb=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{qb=!1}return qb},sQ={name:"sessionStorage",lookup:function(t){var n;if(t.lookupSessionStorage&&pI()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(t,n){n.lookupSessionStorage&&pI()&&window.sessionStorage.setItem(n.lookupSessionStorage,t)}},lQ={name:"navigator",lookup:function(t){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},uQ={name:"htmlTag",lookup:function(t){var n,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},cQ={name:"path",lookup:function(t){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;n=r[t.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},dQ={name:"subdomain",lookup:function(t){var n=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function fQ(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var mI=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Du(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return Mu(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=nQ(r,this.options||{},fQ()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(iQ),this.addDetector(aQ),this.addDetector(oQ),this.addDetector(sQ),this.addDetector(lQ),this.addDetector(uQ),this.addDetector(cQ),this.addDetector(dQ)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(a){if(r.detectors[a]){var o=r.detectors[a].lookup(r.options);o&&typeof o=="string"&&(o=[o]),o&&(i=i.concat(o))}}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(a){i.detectors[a]&&i.detectors[a].cacheUserLanguage(n,i.options)}))}}]),e}();mI.type="languageDetector";function Pk(e){return Pk=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pk(e)}var vI=[],hQ=vI.forEach,pQ=vI.slice;function Ak(e){return hQ.call(pQ.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function gI(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Pk(XMLHttpRequest))==="object"}function mQ(e){return!!e&&typeof e.then=="function"}function vQ(e){return mQ(e)?e:Promise.resolve(e)}function gQ(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Yb={},yQ={get exports(){return Yb},set exports(e){Yb=e}},Kb={},bQ={get exports(){return Kb},set exports(e){Kb=e}},yI;function SQ(){return yI||(yI=1,function(e,t){var n=typeof self<"u"?self:zs,r=function(){function a(){this.fetch=!1,this.DOMException=n.DOMException}return a.prototype=n,new a}();(function(a){(function(o){var l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function c(G){return G&&DataView.prototype.isPrototypeOf(G)}if(l.arrayBuffer)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(G){return G&&d.indexOf(Object.prototype.toString.call(G))>-1};function g(G){if(typeof G!="string"&&(G=String(G)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(G))throw new TypeError("Invalid character in header field name");return G.toLowerCase()}function S(G){return typeof G!="string"&&(G=String(G)),G}function w(G){var te={next:function(){var re=G.shift();return{done:re===void 0,value:re}}};return l.iterable&&(te[Symbol.iterator]=function(){return te}),te}function C(G){this.map={},G instanceof C?G.forEach(function(te,re){this.append(re,te)},this):Array.isArray(G)?G.forEach(function(te){this.append(te[0],te[1])},this):G&&Object.getOwnPropertyNames(G).forEach(function(te){this.append(te,G[te])},this)}C.prototype.append=function(G,te){G=g(G),te=S(te);var re=this.map[G];this.map[G]=re?re+", "+te:te},C.prototype.delete=function(G){delete this.map[g(G)]},C.prototype.get=function(G){return G=g(G),this.has(G)?this.map[G]:null},C.prototype.has=function(G){return this.map.hasOwnProperty(g(G))},C.prototype.set=function(G,te){this.map[g(G)]=S(te)},C.prototype.forEach=function(G,te){for(var re in this.map)this.map.hasOwnProperty(re)&&G.call(te,this.map[re],re,this)},C.prototype.keys=function(){var G=[];return this.forEach(function(te,re){G.push(re)}),w(G)},C.prototype.values=function(){var G=[];return this.forEach(function(te){G.push(te)}),w(G)},C.prototype.entries=function(){var G=[];return this.forEach(function(te,re){G.push([re,te])}),w(G)},l.iterable&&(C.prototype[Symbol.iterator]=C.prototype.entries);function k(G){if(G.bodyUsed)return Promise.reject(new TypeError("Already read"));G.bodyUsed=!0}function P(G){return new Promise(function(te,re){G.onload=function(){te(G.result)},G.onerror=function(){re(G.error)}})}function D(G){var te=new FileReader,re=P(te);return te.readAsArrayBuffer(G),re}function M(G){var te=new FileReader,re=P(te);return te.readAsText(G),re}function R(G){for(var te=new Uint8Array(G),re=new Array(te.length),oe=0;oe<te.length;oe++)re[oe]=String.fromCharCode(te[oe]);return re.join("")}function L(G){if(G.slice)return G.slice(0);var te=new Uint8Array(G.byteLength);return te.set(new Uint8Array(G)),te.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(G){this._bodyInit=G,G?typeof G=="string"?this._bodyText=G:l.blob&&Blob.prototype.isPrototypeOf(G)?this._bodyBlob=G:l.formData&&FormData.prototype.isPrototypeOf(G)?this._bodyFormData=G:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(G)?this._bodyText=G.toString():l.arrayBuffer&&l.blob&&c(G)?(this._bodyArrayBuffer=L(G.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(G)||p(G))?this._bodyArrayBuffer=L(G):this._bodyText=G=Object.prototype.toString.call(G):this._bodyText="",this.headers.get("content-type")||(typeof G=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(G)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var G=k(this);if(G)return G;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?k(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(D)}),this.text=function(){var G=k(this);if(G)return G;if(this._bodyBlob)return M(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(R(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var U=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function V(G){var te=G.toUpperCase();return U.indexOf(te)>-1?te:G}function Y(G,te){te=te||{};var re=te.body;if(G instanceof Y){if(G.bodyUsed)throw new TypeError("Already read");this.url=G.url,this.credentials=G.credentials,te.headers||(this.headers=new C(G.headers)),this.method=G.method,this.mode=G.mode,this.signal=G.signal,!re&&G._bodyInit!=null&&(re=G._bodyInit,G.bodyUsed=!0)}else this.url=String(G);if(this.credentials=te.credentials||this.credentials||"same-origin",(te.headers||!this.headers)&&(this.headers=new C(te.headers)),this.method=V(te.method||this.method||"GET"),this.mode=te.mode||this.mode||null,this.signal=te.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&re)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(re)}Y.prototype.clone=function(){return new Y(this,{body:this._bodyInit})};function J(G){var te=new FormData;return G.trim().split("&").forEach(function(re){if(re){var oe=re.split("="),ie=oe.shift().replace(/\+/g," "),le=oe.join("=").replace(/\+/g," ");te.append(decodeURIComponent(ie),decodeURIComponent(le))}}),te}function $(G){var te=new C,re=G.replace(/\r?\n[\t ]+/g," ");return re.split(/\r?\n/).forEach(function(oe){var ie=oe.split(":"),le=ie.shift().trim();if(le){var ee=ie.join(":").trim();te.append(le,ee)}}),te}z.call(Y.prototype);function K(G,te){te||(te={}),this.type="default",this.status=te.status===void 0?200:te.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in te?te.statusText:"OK",this.headers=new C(te.headers),this.url=te.url||"",this._initBody(G)}z.call(K.prototype),K.prototype.clone=function(){return new K(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new C(this.headers),url:this.url})},K.error=function(){var G=new K(null,{status:0,statusText:""});return G.type="error",G};var fe=[301,302,303,307,308];K.redirect=function(G,te){if(fe.indexOf(te)===-1)throw new RangeError("Invalid status code");return new K(null,{status:te,headers:{location:G}})},o.DOMException=a.DOMException;try{new o.DOMException}catch{o.DOMException=function(te,re){this.message=te,this.name=re;var oe=Error(te);this.stack=oe.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function X(G,te){return new Promise(function(re,oe){var ie=new Y(G,te);if(ie.signal&&ie.signal.aborted)return oe(new o.DOMException("Aborted","AbortError"));var le=new XMLHttpRequest;function ee(){le.abort()}le.onload=function(){var de={status:le.status,statusText:le.statusText,headers:$(le.getAllResponseHeaders()||"")};de.url="responseURL"in le?le.responseURL:de.headers.get("X-Request-URL");var Fe="response"in le?le.response:le.responseText;re(new K(Fe,de))},le.onerror=function(){oe(new TypeError("Network request failed"))},le.ontimeout=function(){oe(new TypeError("Network request failed"))},le.onabort=function(){oe(new o.DOMException("Aborted","AbortError"))},le.open(ie.method,ie.url,!0),ie.credentials==="include"?le.withCredentials=!0:ie.credentials==="omit"&&(le.withCredentials=!1),"responseType"in le&&l.blob&&(le.responseType="blob"),ie.headers.forEach(function(de,Fe){le.setRequestHeader(Fe,de)}),ie.signal&&(ie.signal.addEventListener("abort",ee),le.onreadystatechange=function(){le.readyState===4&&ie.signal.removeEventListener("abort",ee)}),le.send(typeof ie._bodyInit>"u"?null:ie._bodyInit)})}return X.polyfill=!0,a.fetch||(a.fetch=X,a.Headers=C,a.Request=Y,a.Response=K),o.Headers=C,o.Request=Y,o.Response=K,o.fetch=X,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(bQ,Kb)),Kb}(function(e,t){var n;if(typeof fetch=="function"&&(typeof zs<"u"&&zs.fetch?n=zs.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof gQ<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||SQ();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(yQ,Yb);const bI=Yb,SI=pq({__proto__:null,default:bI},[Yb]);function Q2(e){return Q2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q2(e)}var Yf;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Yf=global.fetch:typeof window<"u"&&window.fetch?Yf=window.fetch:Yf=fetch);var Xb;gI()&&(typeof global<"u"&&global.XMLHttpRequest?Xb=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Xb=window.XMLHttpRequest));var Z2;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Z2=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Z2=window.ActiveXObject)),!Yf&&SI&&!Xb&&!Z2&&(Yf=bI||SI),typeof Yf!="function"&&(Yf=void 0);var Ok=function(t,n){if(n&&Q2(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},xI=function(t,n,r){Yf(t,n).then(function(i){if(!i.ok)return r(i.statusText||"Error",{status:i.status});i.text().then(function(a){r(null,{status:i.status,data:a})}).catch(r)}).catch(r)},wI=!1,xQ=function(t,n,r,i){t.queryStringParams&&(n=Ok(n,t.queryStringParams));var a=Ak({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);r&&(a["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,l=Ak({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:a},wI?{}:o);try{xI(n,l,i)}catch(c){if(!o||Object.keys(o).length===0||!c.message||c.message.indexOf("not implemented")<0)return i(c);try{Object.keys(o).forEach(function(d){delete l[d]}),xI(n,l,i),wI=!0}catch(d){i(d)}}},wQ=function(t,n,r,i){r&&Q2(r)==="object"&&(r=Ok("",r).slice(1)),t.queryStringParams&&(n=Ok(n,t.queryStringParams));try{var a;Xb?a=new Xb:a=new Z2("MSXML2.XMLHTTP.3.0"),a.open(r?"POST":"GET",n,1),t.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.withCredentials=!!t.withCredentials,r&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.overrideMimeType&&a.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var l in o)a.setRequestHeader(l,o[l]);a.onreadystatechange=function(){a.readyState>3&&i(a.status>=400?a.statusText:null,{status:a.status,data:a.responseText})},a.send(r)}catch(c){console&&console.log(c)}},CQ=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},Yf&&n.indexOf("file:")!==0)return xQ(t,n,r,i);if(gI()||typeof ActiveXObject=="function")return wQ(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Qb(e){return Qb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qb(e)}function EQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,EI(r.key),r)}}function _Q(e,t,n){return t&&CI(e.prototype,t),n&&CI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function TQ(e,t,n){return t=EI(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EI(e){var t=kQ(e,"string");return Qb(t)==="symbol"?t:String(t)}function kQ(e,t){if(Qb(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qb(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PQ=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return TQ({},r,i||"")},request:CQ,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},_I=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};EQ(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return _Q(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=Ak(i,this.options||{},PQ()),this.allOptions=a,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,a,o){var l=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,i)),c=vQ(c),c.then(function(d){if(!d)return o(null,{});var p=l.services.interpolator.interpolate(d,{lng:n.join("+"),ns:i.join("+")});l.loadUrl(p,o,r,a)})}},{key:"loadUrl",value:function(n,r,i,a){var o=this;this.options.request(this.options,n,void 0,function(l,c){if(c&&(c.status>=500&&c.status<600||!c.status))return r("failed loading "+n+"; status code: "+c.status,!0);if(c&&c.status>=400&&c.status<500)return r("failed loading "+n+"; status code: "+c.status,!1);if(!c&&l&&l.message&&l.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+l.message,!0);if(l)return r(l,!1);var d,p;try{typeof c.data=="string"?d=o.options.parse(c.data,i,a):d=c.data}catch{p="failed parsing "+n+" to json"}if(p)return r(p,!1);r(null,d)})}},{key:"create",value:function(n,r,i,a,o){var l=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,i,a),d=0,p=[],g=[];n.forEach(function(S){var w=l.options.addPath;typeof l.options.addPath=="function"&&(w=l.options.addPath(S,r));var C=l.services.interpolator.interpolate(w,{lng:S,ns:r});l.options.request(l.options,C,c,function(k,P){d+=1,p.push(k),g.push(P),d===n.length&&typeof o=="function"&&o(p,g)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,a=r.languageUtils,o=r.logger,l=i.language;if(!(l&&l.toLowerCase()==="cimode")){var c=[],d=function(g){var S=a.toResolveHierarchy(g);S.forEach(function(w){c.indexOf(w)<0&&c.push(w)})};d(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(p){return d(p)}),c.forEach(function(p){n.allOptions.ns.forEach(function(g){i.read(p,g,"read",null,null,function(S,w){S&&o.warn("loading namespace ".concat(g," for language ").concat(p," failed"),S),!S&&w&&o.log("loaded namespace ".concat(g," for language ").concat(p),w),i.loaded("".concat(p,"|").concat(g),S,w)})})})}}}]),e}();_I.type="backend";function AQ(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var TI={};function Dk(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&TI[t[0]]||(typeof t[0]=="string"&&(TI[t[0]]=new Date),AQ.apply(void 0,t))}function kI(e,t,n){e.loadNamespaces(t,function(){if(e.isInitialized)n();else{var r=function i(){setTimeout(function(){e.off("initialized",i)},0),n()};e.on("initialized",r)}})}function OQ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var o=function(c,d){var p=t.services.backendConnector.state["".concat(c,"|").concat(d)];return p===-1||p===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))}function DQ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return Dk("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{precheck:function(a,o){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!o(a.isLanguageChangingTo,e))return!1}}):OQ(e,t,n)}var MQ=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,jQ={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},IQ=function(t){return jQ[t]},RQ=function(t){return t.replace(MQ,IQ)};function PI(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 AI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PI(Object(n),!0).forEach(function(r){Ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Mk={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:RQ};function NQ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Mk=AI(AI({},Mk),e)}function LQ(){return Mk}var OI;function zQ(e){OI=e}function BQ(){return OI}var FQ={type:"3rdParty",init:function(t){NQ(t.options.react),zQ(t)}},UQ=A.createContext(),VQ=function(){function e(){Du(this,e),this.usedNamespaces={}}return Mu(e,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function HQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],c=!0,d=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,i=p}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw i}}return l}}function GQ(e,t){return B6(e)||HQ(e,t)||U6(e,t)||V6()}function DI(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 jk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DI(Object(n),!0).forEach(function(r){Ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var WQ=function(t,n){var r=A.useRef();return A.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function tt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=A.useContext(UQ)||{},i=r.i18n,a=r.defaultNS,o=n||i||BQ();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new VQ),!o){Dk("You will need to pass in an i18next instance by using initReactI18next");var l=function(J,$){return typeof $=="string"?$:$&&Au($)==="object"&&typeof $.defaultValue=="string"?$.defaultValue:Array.isArray(J)?J[J.length-1]:J},c=[l,{},!1];return c.t=l,c.i18n={},c.ready=!1,c}o.options.react&&o.options.react.wait!==void 0&&Dk("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=jk(jk(jk({},LQ()),o.options.react),t),p=d.useSuspense,g=d.keyPrefix,S=e||a||o.options&&o.options.defaultNS;S=typeof S=="string"?[S]:S||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(S);var w=(o.isInitialized||o.initializedStoreOnce)&&S.every(function(Y){return DQ(Y,o,d)});function C(){return o.getFixedT(null,d.nsMode==="fallback"?S:S[0],g)}var k=A.useState(C),P=GQ(k,2),D=P[0],M=P[1],R=S.join(),L=WQ(R),z=A.useRef(!0);A.useEffect(function(){var Y=d.bindI18n,J=d.bindI18nStore;z.current=!0,!w&&!p&&kI(o,S,function(){z.current&&M(C)}),w&&L&&L!==R&&z.current&&M(C);function $(){z.current&&M(C)}return Y&&o&&o.on(Y,$),J&&o&&o.store.on(J,$),function(){z.current=!1,Y&&o&&Y.split(" ").forEach(function(K){return o.off(K,$)}),J&&o&&J.split(" ").forEach(function(K){return o.store.off(K,$)})}},[o,R]);var U=A.useRef(!0);A.useEffect(function(){z.current&&!U.current&&M(C),U.current=!1},[o,g]);var V=[D,o,w];if(V.t=D,V.i18n=o,V.ready=w,w||!w&&!p)return V;throw new Promise(function(Y){kI(o,S,function(){Y()})})}Fn.use(_I).use(mI).use(FQ).init({fallbackLng:"en",debug:!1,backend:{loadPath:"/locales/{{lng}}.json"},interpolation:{escapeValue:!1},returnNull:!1});const qQ={isConnected:!1,isProcessing:!1,log:[],shouldShowLogViewer:!1,shouldDisplayInProgressType:"latents",shouldDisplayGuides:!0,isGFPGANAvailable:!0,isESRGANAvailable:!0,socketId:"",shouldConfirmOnDelete:!0,openAccordions:[0],currentStep:0,totalSteps:0,currentIteration:0,totalIterations:0,currentStatus:Fn.isInitialized?Fn.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}},MI=Qm({name:"system",initialState:qQ,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=Fn.t("common.statusError"),e.wasErrorSeen=!1},errorSeen:e=>{e.hasError=!1,e.wasErrorSeen=!0,e.currentStatus=e.isConnected?Fn.t("common.statusConnected"):Fn.t("common.statusDisconnected")},addLogEntry:(e,t)=>{const{timestamp:n,message:r,level:i}=t.payload,o={timestamp:n,message:r,level:i||"info"};e.log.push(o)},setShouldShowLogViewer:(e,t)=>{e.shouldShowLogViewer=t.payload},setIsConnected:(e,t)=>{e.isConnected=t.payload,e.isProcessing=!1,e.isCancelable=!0,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.hasError=!1},setSocketId:(e,t)=>{e.socketId=t.payload},setShouldConfirmOnDelete:(e,t)=>{e.shouldConfirmOnDelete=t.payload},setOpenAccordions:(e,t)=>{e.openAccordions=t.payload},setSystemConfig:(e,t)=>({...e,...t.payload}),setShouldDisplayGuides:(e,t)=>{e.shouldDisplayGuides=t.payload},processingCanceled:e=>{e.isProcessing=!1,e.isCancelable=!0,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.currentStatus=Fn.t("common.statusProcessingCanceled")},generationRequested:e=>{e.isProcessing=!0,e.isCancelable=!0,e.currentStep=0,e.totalSteps=0,e.currentIteration=0,e.totalIterations=0,e.currentStatusHasSteps=!1,e.currentStatus=Fn.t("common.statusPreparing")},setModelList:(e,t)=>{e.model_list=t.payload},setIsCancelable:(e,t)=>{e.isCancelable=t.payload},modelChangeRequested:e=>{e.currentStatus=Fn.t("common.statusLoadingModel"),e.isCancelable=!1,e.isProcessing=!0,e.currentStatusHasSteps=!1},modelConvertRequested:e=>{e.currentStatus=Fn.t("common.statusConvertingModel"),e.isCancelable=!1,e.isProcessing=!0,e.currentStatusHasSteps=!1},modelMergingRequested:e=>{e.currentStatus=Fn.t("common.statusMergingModels"),e.isCancelable=!1,e.isProcessing=!0,e.currentStatusHasSteps=!1},setSaveIntermediatesInterval:(e,t)=>{e.saveIntermediatesInterval=t.payload},setEnableImageDebugging:(e,t)=>{e.enableImageDebugging=t.payload},addToast:(e,t)=>{e.toastQueue.push(t.payload)},clearToastQueue:e=>{e.toastQueue=[]},setProcessingIndeterminateTask:(e,t)=>{e.isProcessing=!0,e.currentStatus=t.payload,e.currentStatusHasSteps=!1},setSearchFolder:(e,t)=>{e.searchFolder=t.payload},setFoundModels:(e,t)=>{e.foundModels=t.payload},setOpenModel:(e,t)=>{e.openModel=t.payload},setCancelType:(e,t)=>{e.cancelOptions.cancelType=t.payload},setCancelAfter:(e,t)=>{e.cancelOptions.cancelAfter=t.payload}}}),{setShouldDisplayInProgressType:YQ,setIsProcessing:Yl,addLogEntry:Do,setShouldShowLogViewer:Ik,setIsConnected:jI,setSocketId:UIe,setShouldConfirmOnDelete:II,setOpenAccordions:KQ,setSystemStatus:XQ,setCurrentStatus:ev,setSystemConfig:QQ,setShouldDisplayGuides:ZQ,processingCanceled:JQ,errorOccurred:RI,errorSeen:NI,setModelList:s0,setIsCancelable:vp,modelChangeRequested:$Q,modelConvertRequested:eZ,modelMergingRequested:tZ,setSaveIntermediatesInterval:nZ,setEnableImageDebugging:rZ,generationRequested:iZ,addToast:Kf,clearToastQueue:aZ,setProcessingIndeterminateTask:oZ,setSearchFolder:LI,setFoundModels:zI,setOpenModel:BI,setCancelType:FI,setCancelAfter:Rk}=MI.actions,sZ=MI.reducer,Nk=["txt2img","img2img","unifiedCanvas","nodes","postprocessing","training"],UI=Qm({name:"ui",initialState:{activeTab:0,currentTheme:"dark",parametersPanelScrollPosition:0,shouldPinParametersPanel:!0,shouldShowParametersPanel:!0,shouldShowImageDetails:!1,shouldUseCanvasBetaLayout:!1,shouldShowExistingModelsInSearch:!1,shouldUseSliders:!1,addNewModelUIOption:null,shouldPinGallery:!0,shouldShowGallery:!0},reducers:{setActiveTab:(e,t)=>{typeof t.payload=="number"?e.activeTab=t.payload:e.activeTab=Nk.indexOf(t.payload)},setCurrentTheme:(e,t)=>{e.currentTheme=t.payload},setParametersPanelScrollPosition:(e,t)=>{e.parametersPanelScrollPosition=t.payload},setShouldPinParametersPanel:(e,t)=>{e.shouldPinParametersPanel=t.payload,e.shouldShowParametersPanel=!0},setShouldShowParametersPanel:(e,t)=>{e.shouldShowParametersPanel=t.payload},setShouldShowImageDetails:(e,t)=>{e.shouldShowImageDetails=t.payload},setShouldUseCanvasBetaLayout:(e,t)=>{e.shouldUseCanvasBetaLayout=t.payload},setShouldShowExistingModelsInSearch:(e,t)=>{e.shouldShowExistingModelsInSearch=t.payload},setShouldUseSliders:(e,t)=>{e.shouldUseSliders=t.payload},setAddNewModelUIOption:(e,t)=>{e.addNewModelUIOption=t.payload},setShouldPinGallery:(e,t)=>{e.shouldPinGallery=t.payload},setShouldShowGallery:(e,t)=>{e.shouldShowGallery=t.payload},togglePinGalleryPanel:e=>{e.shouldPinGallery=!e.shouldPinGallery},togglePinParametersPanel:e=>{e.shouldPinParametersPanel=!e.shouldPinParametersPanel},toggleParametersPanel:e=>{e.shouldShowParametersPanel=!e.shouldShowParametersPanel},toggleGalleryPanel:e=>{e.shouldShowGallery=!e.shouldShowGallery},togglePanels:e=>{e.shouldShowGallery||e.shouldShowParametersPanel?(e.shouldShowGallery=!1,e.shouldShowParametersPanel=!1):(e.shouldShowGallery=!0,e.shouldShowParametersPanel=!0)}}}),{setActiveTab:ml,setCurrentTheme:lZ,setParametersPanelScrollPosition:GIe,setShouldPinParametersPanel:uZ,setShouldShowParametersPanel:J2,setShouldShowImageDetails:VI,setShouldUseCanvasBetaLayout:cZ,setShouldShowExistingModelsInSearch:dZ,setShouldUseSliders:fZ,setAddNewModelUIOption:tv,setShouldPinGallery:WIe,setShouldShowGallery:Lk,togglePanels:hZ,togglePinGalleryPanel:HI,togglePinParametersPanel:pZ,toggleParametersPanel:mZ,toggleGalleryPanel:vZ}=UI.actions,gZ=UI.reducer,kd=Object.create(null);kd.open="0",kd.close="1",kd.ping="2",kd.pong="3",kd.message="4",kd.upgrade="5",kd.noop="6";const $2=Object.create(null);Object.keys(kd).forEach(e=>{$2[kd[e]]=e});const yZ={type:"error",data:"parser error"},bZ=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",SZ=typeof ArrayBuffer=="function",xZ=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,GI=({type:e,data:t},n,r)=>bZ&&t instanceof Blob?n?r(t):WI(t,r):SZ&&(t instanceof ArrayBuffer||xZ(t))?n?r(t):WI(new Blob([t]),r):r(kd[e]+(t||"")),WI=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)},qI="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zb=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<qI.length;e++)Zb[qI.charCodeAt(e)]=e;const wZ=e=>{let t=e.length*.75,n=e.length,r,i=0,a,o,l,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const d=new ArrayBuffer(t),p=new Uint8Array(d);for(r=0;r<n;r+=4)a=Zb[e.charCodeAt(r)],o=Zb[e.charCodeAt(r+1)],l=Zb[e.charCodeAt(r+2)],c=Zb[e.charCodeAt(r+3)],p[i++]=a<<2|o>>4,p[i++]=(o&15)<<4|l>>2,p[i++]=(l&3)<<6|c&63;return d},CZ=typeof ArrayBuffer=="function",YI=(e,t)=>{if(typeof e!="string")return{type:"message",data:KI(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:EZ(e.substring(1),t)}:$2[n]?e.length>1?{type:$2[n],data:e.substring(1)}:{type:$2[n]}:yZ},EZ=(e,t)=>{if(CZ){const n=wZ(e);return KI(n,t)}else return{base64:!0,data:e}},KI=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},XI=String.fromCharCode(30),_Z=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((a,o)=>{GI(a,!1,l=>{r[o]=l,++i===n&&t(r.join(XI))})})},TZ=(e,t)=>{const n=e.split(XI),r=[];for(let i=0;i<n.length;i++){const a=YI(n[i],t);if(r.push(a),a.type==="error")break}return r},QI=4;function Xa(e){if(e)return kZ(e)}function kZ(e){for(var t in Xa.prototype)e[t]=Xa.prototype[t];return e}Xa.prototype.on=Xa.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Xa.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Xa.prototype.off=Xa.prototype.removeListener=Xa.prototype.removeAllListeners=Xa.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this},Xa.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},Xa.prototype.emitReserved=Xa.prototype.emit,Xa.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Xa.prototype.hasListeners=function(e){return!!this.listeners(e).length};const ju=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function ZI(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const PZ=ju.setTimeout,AZ=ju.clearTimeout;function ew(e,t){t.useNativeTimers?(e.setTimeoutFn=PZ.bind(ju),e.clearTimeoutFn=AZ.bind(ju)):(e.setTimeoutFn=ju.setTimeout.bind(ju),e.clearTimeoutFn=ju.clearTimeout.bind(ju))}const OZ=1.33;function DZ(e){return typeof e=="string"?MZ(e):Math.ceil((e.byteLength||e.size)*OZ)}function MZ(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}class jZ extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class JI extends Xa{constructor(t){super(),this.writable=!1,ew(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new jZ(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=YI(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}}const $I="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),zk=64,IZ={};let eR=0,tw=0,tR;function nR(e){let t="";do t=$I[e%zk]+t,e=Math.floor(e/zk);while(e>0);return t}function rR(){const e=nR(+new Date);return e!==tR?(eR=0,tR=e):e+"."+nR(eR++)}for(;tw<zk;tw++)IZ[$I[tw]]=tw;function iR(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function RZ(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let a=n[r].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}let aR=!1;try{aR=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const NZ=aR;function oR(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||NZ))return new XMLHttpRequest}catch{}if(!t)try{return new ju[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function LZ(){}const zZ=function(){return new oR({xdomain:!1}).responseType!=null}();class BZ extends JI{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port,this.xs=t.secure!==r}const n=t&&t.forceBase64;this.supportsBinary=zZ&&!n}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};TZ(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,_Z(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=rR()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const i=iR(t),a=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(a?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new Pd(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,a)=>{this.onError("xhr post error",i,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Pd extends Xa{constructor(t,n){super(),ew(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=ZI(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new oR(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=Pd.requestsCount++,Pd.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=LZ,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Pd.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Pd.requestsCount=0,Pd.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",sR);else if(typeof addEventListener=="function"){const e="onpagehide"in ju?"pagehide":"unload";addEventListener(e,sR,!1)}}function sR(){for(let e in Pd.requests)Pd.requests.hasOwnProperty(e)&&Pd.requests[e].abort()}const lR=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),nw=ju.WebSocket||ju.MozWebSocket,uR=!0,FZ="arraybuffer",cR=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class UZ extends JI{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=cR?{}:ZI(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=uR&&!cR?n?new nw(t,n):new nw(t):new nw(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType||FZ,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;GI(r,this.supportsBinary,a=>{const o={};try{uR&&this.ws.send(a)}catch{}i&&lR(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=rR()),this.supportsBinary||(t.b64=1);const i=iR(t),a=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(a?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}check(){return!!nw}}const VZ={websocket:UZ,polling:BZ},HZ=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,GZ=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Bk(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=HZ.exec(e||""),a={},o=14;for(;o--;)a[GZ[o]]=i[o]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=WZ(a,a.path),a.queryKey=qZ(a,a.query),a}function WZ(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function qZ(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,a){i&&(n[i]=a)}),n}let dR=class Db extends Xa{constructor(t,n={}){super(),this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Bk(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Bk(n.host).host),ew(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=RZ(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=QI,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new VZ[t](r)}open(){let t;if(this.opts.rememberUpgrade&&Db.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;Db.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",g=>{if(!r)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Db.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(p(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const S=new Error("probe error");S.transport=n.name,this.emitReserved("upgradeError",S)}}))};function a(){r||(r=!0,p(),n.close(),n=null)}const o=g=>{const S=new Error("probe error: "+g);S.transport=n.name,a(),this.emitReserved("upgradeError",S)};function l(){o("transport closed")}function c(){o("socket closed")}function d(g){n&&g.name!==n.name&&a()}const p=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",l),this.off("close",c),this.off("upgrading",d)};n.once("open",i),n.once("error",o),n.once("close",l),this.once("close",c),this.once("upgrading",d),n.open()}onOpen(){if(this.readyState="open",Db.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=DZ(i)),r>0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){Db.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;r<i;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}};dR.protocol=QI;function YZ(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Bk(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const a=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port+t,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}const KZ=typeof ArrayBuffer=="function",XZ=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,fR=Object.prototype.toString,QZ=typeof Blob=="function"||typeof Blob<"u"&&fR.call(Blob)==="[object BlobConstructor]",ZZ=typeof File=="function"||typeof File<"u"&&fR.call(File)==="[object FileConstructor]";function Fk(e){return KZ&&(e instanceof ArrayBuffer||XZ(e))||QZ&&e instanceof Blob||ZZ&&e instanceof File}function rw(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(rw(e[n]))return!0;return!1}if(Fk(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return rw(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&rw(e[n]))return!0;return!1}function JZ(e){const t=[],n=e.data,r=e;return r.data=Uk(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Uk(e,t){if(!e)return e;if(Fk(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Uk(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Uk(e[r],t));return n}return e}function $Z(e,t){return e.data=Vk(e.data,t),delete e.attachments,e}function Vk(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Vk(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Vk(e[n],t));return e}const eJ=5;var Sr;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Sr||(Sr={}));class tJ{constructor(t){this.replacer=t}encode(t){return(t.type===Sr.EVENT||t.type===Sr.ACK)&&rw(t)?this.encodeAsBinary({type:t.type===Sr.EVENT?Sr.BINARY_EVENT:Sr.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Sr.BINARY_EVENT||t.type===Sr.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=JZ(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}class Hk extends Xa{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Sr.BINARY_EVENT;r||n.type===Sr.BINARY_ACK?(n.type=r?Sr.EVENT:Sr.ACK,this.reconstructor=new nJ(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Fk(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Sr[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Sr.BINARY_EVENT||r.type===Sr.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const o=t.substring(a,n);if(o!=Number(o)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(o)}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(a,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const a=n+1;for(;++n;){const o=t.charAt(n);if(o==null||Number(o)!=o){--n;break}if(n===t.length)break}r.id=Number(t.substring(a,n+1))}if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(Hk.isPayloadValid(r.type,a))r.data=a;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case Sr.CONNECT:return typeof n=="object";case Sr.DISCONNECT:return n===void 0;case Sr.CONNECT_ERROR:return typeof n=="string"||typeof n=="object";case Sr.EVENT:case Sr.BINARY_EVENT:return Array.isArray(n)&&n.length>0;case Sr.ACK:case Sr.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class nJ{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=$Z(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const rJ=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Hk,Encoder:tJ,get PacketType(){return Sr},protocol:eJ},Symbol.toStringTag,{value:"Module"}));function Ac(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const iJ=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class hR extends Xa{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Ac(t,"open",this.onopen.bind(this)),Ac(t,"packet",this.onpacket.bind(this)),Ac(t,"error",this.onerror.bind(this)),Ac(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(iJ.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:Sr.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const o=this.ids++,l=n.pop();this._registerAckCallback(o,l),r.id=o}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===t&&this.sendBuffer.splice(o,1);n.call(this,new Error("operation has timed out"))},i);this.acks[t]=(...o)=>{this.io.clearTimeoutFn(a),n.apply(this,[null,...o])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,a)=>{n.push((o,l)=>r?o?a(o):i(l):i(o)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...a)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Sr.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Sr.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Sr.EVENT:case Sr.BINARY_EVENT:this.onevent(t);break;case Sr.ACK:case Sr.BINARY_ACK:this.onack(t);break;case Sr.DISCONNECT:this.ondisconnect();break;case Sr.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:Sr.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Sr.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function l0(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}l0.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},l0.prototype.reset=function(){this.attempts=0},l0.prototype.setMin=function(e){this.ms=e},l0.prototype.setMax=function(e){this.max=e},l0.prototype.setJitter=function(e){this.jitter=e};class Gk extends Xa{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,ew(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new l0({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||rJ;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new dR(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Ac(n,"open",function(){r.onopen(),t&&t()}),a=Ac(n,"error",o=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",o),t?t(o):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const o=this._timeout;o===0&&i();const l=this.setTimeoutFn(()=>{i(),n.close(),n.emit("error",new Error("timeout"))},o);this.opts.autoUnref&&l.unref(),this.subs.push(function(){clearTimeout(l)})}return this.subs.push(i),this.subs.push(a),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Ac(t,"ping",this.onping.bind(this)),Ac(t,"data",this.ondata.bind(this)),Ac(t,"error",this.onerror.bind(this)),Ac(t,"close",this.onclose.bind(this)),Ac(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){lR(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new hR(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Jb={};function iw(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=YZ(e,t.path||"/socket.io"),r=n.source,i=n.id,a=n.path,o=Jb[i]&&a in Jb[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let c;return l?c=new Gk(r,t):(Jb[i]||(Jb[i]=new Gk(r,t)),c=Jb[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(iw,{Manager:Gk,Socket:hR,io:iw,connect:iw});const aJ=["ddim","plms","k_lms","k_dpm_2","k_dpm_2_a","k_dpmpp_2","k_dpmpp_2_a","k_euler","k_euler_a","k_heun"],oJ=["ddim","plms","k_lms","dpmpp_2","k_dpm_2","k_dpm_2_a","k_dpmpp_2","k_euler","k_euler_a","k_heun"],sJ=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024,1088,1152,1216,1280,1344,1408,1472,1536,1600,1664,1728,1792,1856,1920,1984,2048],lJ=[64,128,192,256,320,384,448,512,576,640,704,768,832,896,960,1024,1088,1152,1216,1280,1344,1408,1472,1536,1600,1664,1728,1792,1856,1920,1984,2048],uJ=[{key:"2x",value:2},{key:"4x",value:4}],Wk=0,qk=4294967295,cJ=["gfpgan","codeformer"],dJ=[{key:"None",value:"none"},{key:"Fast",value:"latents"},{key:"Accurate",value:"full-res"}];var fJ=Math.PI/180;function hJ(){return typeof window<"u"&&({}.toString.call(window)==="[object Window]"||{}.toString.call(window)==="[object global]")}const u0=typeof global<"u"?global:typeof window<"u"?window:typeof WorkerGlobalScope<"u"?self:{},Kt={_global:u0,version:"8.4.2",isBrowser:hJ(),isUnminified:/param/.test(function(e){}.toString()),dblClickWindow:400,getAngle(e){return Kt.angleDeg?e*fJ:e},enableTrace:!1,pointerEventsEnabled:!0,autoDrawEnabled:!0,hitOnDragEnabled:!1,capturePointerEventsEnabled:!1,_mouseListenClick:!1,_touchListenClick:!1,_pointerListenClick:!1,_mouseInDblClickWindow:!1,_touchInDblClickWindow:!1,_pointerInDblClickWindow:!1,_mouseDblClickPointerId:null,_touchDblClickPointerId:null,_pointerDblClickPointerId:null,pixelRatio:typeof window<"u"&&window.devicePixelRatio||1,dragDistance:3,angleDeg:!0,showWarnings:!0,dragButtons:[0,1],isDragging(){return Kt.DD.isDragging},isDragReady(){return!!Kt.DD.node},releaseCanvasOnDestroy:!0,document:u0.document,_injectGlobal(e){u0.Konva=e}},sa=e=>{Kt[e.prototype.getClassName()]=e};Kt._injectGlobal(Kt);class Kl{constructor(t=[1,0,0,1,0,0]){this.dirty=!1,this.m=t&&t.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new Kl(this.m)}copyInto(t){t.m[0]=this.m[0],t.m[1]=this.m[1],t.m[2]=this.m[2],t.m[3]=this.m[3],t.m[4]=this.m[4],t.m[5]=this.m[5]}point(t){var n=this.m;return{x:n[0]*t.x+n[2]*t.y+n[4],y:n[1]*t.x+n[3]*t.y+n[5]}}translate(t,n){return this.m[4]+=this.m[0]*t+this.m[2]*n,this.m[5]+=this.m[1]*t+this.m[3]*n,this}scale(t,n){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=n,this.m[3]*=n,this}rotate(t){var n=Math.cos(t),r=Math.sin(t),i=this.m[0]*n+this.m[2]*r,a=this.m[1]*n+this.m[3]*r,o=this.m[0]*-r+this.m[2]*n,l=this.m[1]*-r+this.m[3]*n;return this.m[0]=i,this.m[1]=a,this.m[2]=o,this.m[3]=l,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(t,n){var r=this.m[0]+this.m[2]*n,i=this.m[1]+this.m[3]*n,a=this.m[2]+this.m[0]*t,o=this.m[3]+this.m[1]*t;return this.m[0]=r,this.m[1]=i,this.m[2]=a,this.m[3]=o,this}multiply(t){var n=this.m[0]*t.m[0]+this.m[2]*t.m[1],r=this.m[1]*t.m[0]+this.m[3]*t.m[1],i=this.m[0]*t.m[2]+this.m[2]*t.m[3],a=this.m[1]*t.m[2]+this.m[3]*t.m[3],o=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],l=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=a,this.m[4]=o,this.m[5]=l,this}invert(){var t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),n=this.m[3]*t,r=-this.m[1]*t,i=-this.m[2]*t,a=this.m[0]*t,o=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),l=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=a,this.m[4]=o,this.m[5]=l,this}getMatrix(){return this.m}decompose(){var t=this.m[0],n=this.m[1],r=this.m[2],i=this.m[3],a=this.m[4],o=this.m[5],l=t*i-n*r;let c={x:a,y:o,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(t!=0||n!=0){var d=Math.sqrt(t*t+n*n);c.rotation=n>0?Math.acos(t/d):-Math.acos(t/d),c.scaleX=d,c.scaleY=l/d,c.skewX=(t*r+n*i)/l,c.skewY=0}else if(r!=0||i!=0){var p=Math.sqrt(r*r+i*i);c.rotation=Math.PI/2-(i>0?Math.acos(-r/p):-Math.acos(r/p)),c.scaleX=l/p,c.scaleY=p,c.skewX=0,c.skewY=(t*r+n*i)/l}return c.rotation=_e._getRotation(c.rotation),c}}var pJ="[object Array]",mJ="[object Number]",vJ="[object String]",gJ="[object Boolean]",yJ=Math.PI/180,bJ=180/Math.PI,Yk="#",SJ="",xJ="0",wJ="Konva warning: ",pR="Konva error: ",CJ="rgb(",Kk={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},EJ=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,aw=[];const _J=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(e){setTimeout(e,60)},_e={_isElement(e){return!!(e&&e.nodeType==1)},_isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)},_isPlainObject(e){return!!e&&e.constructor===Object},_isArray(e){return Object.prototype.toString.call(e)===pJ},_isNumber(e){return Object.prototype.toString.call(e)===mJ&&!isNaN(e)&&isFinite(e)},_isString(e){return Object.prototype.toString.call(e)===vJ},_isBoolean(e){return Object.prototype.toString.call(e)===gJ},isObject(e){return e instanceof Object},isValidSelector(e){if(typeof e!="string")return!1;var t=e[0];return t==="#"||t==="."||t===t.toUpperCase()},_sign(e){return e===0||e>0?1:-1},requestAnimFrame(e){aw.push(e),aw.length===1&&_J(function(){const t=aw;aw=[],t.forEach(function(n){n()})})},createCanvasElement(){var e=document.createElement("canvas");try{e.style=e.style||{}}catch{}return e},createImageElement(){return document.createElement("img")},_isInDocument(e){for(;e=e.parentNode;)if(e==document)return!0;return!1},_urlToImage(e,t){var n=_e.createImageElement();n.onload=function(){t(n)},n.src=e},_rgbToHex(e,t,n){return((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)},_hexToRgb(e){e=e.replace(Yk,SJ);var t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:t&255}},getRandomColor(){for(var e=(Math.random()*16777215<<0).toString(16);e.length<6;)e=xJ+e;return Yk+e},getRGB(e){var t;return e in Kk?(t=Kk[e],{r:t[0],g:t[1],b:t[2]}):e[0]===Yk?this._hexToRgb(e.substring(1)):e.substr(0,4)===CJ?(t=EJ.exec(e.replace(/ /g,"")),{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}):{r:0,g:0,b:0}},colorToRGBA(e){return e=e||"black",_e._namedColorToRBA(e)||_e._hex3ColorToRGBA(e)||_e._hex4ColorToRGBA(e)||_e._hex6ColorToRGBA(e)||_e._hex8ColorToRGBA(e)||_e._rgbColorToRGBA(e)||_e._rgbaColorToRGBA(e)||_e._hslColorToRGBA(e)},_namedColorToRBA(e){var t=Kk[e.toLowerCase()];return t?{r:t[0],g:t[1],b:t[2],a:1}:null},_rgbColorToRGBA(e){if(e.indexOf("rgb(")===0){e=e.match(/rgb\(([^)]+)\)/)[1];var t=e.split(/ *, */).map(Number);return{r:t[0],g:t[1],b:t[2],a:1}}},_rgbaColorToRGBA(e){if(e.indexOf("rgba(")===0){e=e.match(/rgba\(([^)]+)\)/)[1];var t=e.split(/ *, */).map((n,r)=>n.slice(-1)==="%"?r===3?parseInt(n)/100:parseInt(n)/100*255:Number(n));return{r:t[0],g:t[1],b:t[2],a:t[3]}}},_hex8ColorToRGBA(e){if(e[0]==="#"&&e.length===9)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:parseInt(e.slice(7,9),16)/255}},_hex6ColorToRGBA(e){if(e[0]==="#"&&e.length===7)return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:1}},_hex4ColorToRGBA(e){if(e[0]==="#"&&e.length===5)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:parseInt(e[4]+e[4],16)/255}},_hex3ColorToRGBA(e){if(e[0]==="#"&&e.length===4)return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:1}},_hslColorToRGBA(e){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(e)){const[t,...n]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e),r=Number(n[0])/360,i=Number(n[1])/100,a=Number(n[2])/100;let o,l,c;if(i===0)return c=a*255,{r:Math.round(c),g:Math.round(c),b:Math.round(c),a:1};a<.5?o=a*(1+i):o=a+i-a*i;const d=2*a-o,p=[0,0,0];for(let g=0;g<3;g++)l=r+1/3*-(g-1),l<0&&l++,l>1&&l--,6*l<1?c=d+(o-d)*6*l:2*l<1?c=o:3*l<2?c=d+(o-d)*(2/3-l)*6:c=d,p[g]=c*255;return{r:Math.round(p[0]),g:Math.round(p[1]),b:Math.round(p[2]),a:1}}},haveIntersection(e,t){return!(t.x>e.x+e.width||t.x+t.width<e.x||t.y>e.y+e.height||t.y+t.height<e.y)},cloneObject(e){var t={};for(var n in e)this._isPlainObject(e[n])?t[n]=this.cloneObject(e[n]):this._isArray(e[n])?t[n]=this.cloneArray(e[n]):t[n]=e[n];return t},cloneArray(e){return e.slice(0)},degToRad(e){return e*yJ},radToDeg(e){return e*bJ},_degToRad(e){return _e.warn("Util._degToRad is removed. Please use public Util.degToRad instead."),_e.degToRad(e)},_radToDeg(e){return _e.warn("Util._radToDeg is removed. Please use public Util.radToDeg instead."),_e.radToDeg(e)},_getRotation(e){return Kt.angleDeg?_e.radToDeg(e):e},_capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)},throw(e){throw new Error(pR+e)},error(e){console.error(pR+e)},warn(e){Kt.showWarnings&&console.warn(wJ+e)},each(e,t){for(var n in e)t(n,e[n])},_inRange(e,t,n){return t<=e&&e<n},_getProjectionToSegment(e,t,n,r,i,a){var o,l,c,d=(e-n)*(e-n)+(t-r)*(t-r);if(d==0)o=e,l=t,c=(i-n)*(i-n)+(a-r)*(a-r);else{var p=((i-e)*(n-e)+(a-t)*(r-t))/d;p<0?(o=e,l=t,c=(e-i)*(e-i)+(t-a)*(t-a)):p>1?(o=n,l=r,c=(n-i)*(n-i)+(r-a)*(r-a)):(o=e+p*(n-e),l=t+p*(r-t),c=(o-i)*(o-i)+(l-a)*(l-a))}return[o,l,c]},_getProjectionToLine(e,t,n){var r=_e.cloneObject(e),i=Number.MAX_VALUE;return t.forEach(function(a,o){if(!(!n&&o===t.length-1)){var l=t[(o+1)%t.length],c=_e._getProjectionToSegment(a.x,a.y,l.x,l.y,e.x,e.y),d=c[0],p=c[1],g=c[2];g<i&&(r.x=d,r.y=p,i=g)}}),r},_prepareArrayForTween(e,t,n){var r,i=[],a=[];if(e.length>t.length){var o=t;t=e,e=o}for(r=0;r<e.length;r+=2)i.push({x:e[r],y:e[r+1]});for(r=0;r<t.length;r+=2)a.push({x:t[r],y:t[r+1]});var l=[];return a.forEach(function(c){var d=_e._getProjectionToLine(c,i,n);l.push(d.x),l.push(d.y)}),l},_prepareToStringify(e){var t;e.visitedByCircularReferenceRemoval=!0;for(var n in e)if(e.hasOwnProperty(n)&&e[n]&&typeof e[n]=="object"){if(t=Object.getOwnPropertyDescriptor(e,n),e[n].visitedByCircularReferenceRemoval||_e._isElement(e[n]))if(t.configurable)delete e[n];else return null;else if(_e._prepareToStringify(e[n])===null)if(t.configurable)delete e[n];else return null}return delete e.visitedByCircularReferenceRemoval,e},_assign(e,t){for(var n in t)e[n]=t[n];return e},_getFirstPointerId(e){return e.touches?e.changedTouches[0].identifier:e.pointerId||999},releaseCanvas(...e){Kt.releaseCanvasOnDestroy&&e.forEach(t=>{t.width=0,t.height=0})},drawRoundedRectPath(e,t,n,r){let i=0,a=0,o=0,l=0;typeof r=="number"?i=a=o=l=Math.min(r,t/2,n/2):(i=Math.min(r[0]||0,t/2,n/2),a=Math.min(r[1]||0,t/2,n/2),l=Math.min(r[2]||0,t/2,n/2),o=Math.min(r[3]||0,t/2,n/2)),e.moveTo(i,0),e.lineTo(t-a,0),e.arc(t-a,a,a,Math.PI*3/2,0,!1),e.lineTo(t,n-l),e.arc(t-l,n-l,l,0,Math.PI/2,!1),e.lineTo(o,n),e.arc(o,n-o,o,Math.PI/2,Math.PI,!1),e.lineTo(0,i),e.arc(i,i,i,Math.PI,Math.PI*3/2,!1)}};function gp(e){return _e._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||_e._isBoolean(e)?e:Object.prototype.toString.call(e)}function mR(e){return e>255?255:e<0?0:Math.round(e)}function Ct(){if(Kt.isUnminified)return function(e,t){return _e._isNumber(e)||_e.warn(gp(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}function Xk(e){if(Kt.isUnminified)return function(t,n){let r=_e._isNumber(t),i=_e._isArray(t)&&t.length==e;return!r&&!i&&_e.warn(gp(t)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array<number>('+e+")"),t}}function Qk(){if(Kt.isUnminified)return function(e,t){var n=_e._isNumber(e),r=e==="auto";return n||r||_e.warn(gp(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}function c0(){if(Kt.isUnminified)return function(e,t){return _e._isString(e)||_e.warn(gp(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}function vR(){if(Kt.isUnminified)return function(e,t){const n=_e._isString(e),r=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return n||r||_e.warn(gp(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}function TJ(){if(Kt.isUnminified)return function(e,t){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&e instanceof n||(_e._isArray(e)?e.forEach(function(r){_e._isNumber(r)||_e.warn('"'+t+'" attribute has non numeric element '+r+". Make sure that all elements are numbers.")}):_e.warn(gp(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}function Oc(){if(Kt.isUnminified)return function(e,t){var n=e===!0||e===!1;return n||_e.warn(gp(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}function kJ(e){if(Kt.isUnminified)return function(t,n){return t==null||_e.isObject(t)||_e.warn(gp(t)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+e),t}}var $b="get",e1="set";const he={addGetterSetter(e,t,n,r,i){he.addGetter(e,t,n),he.addSetter(e,t,r,i),he.addOverloadedGetterSetter(e,t)},addGetter(e,t,n){var r=$b+_e._capitalize(t);e.prototype[r]=e.prototype[r]||function(){var i=this.attrs[t];return i===void 0?n:i}},addSetter(e,t,n,r){var i=e1+_e._capitalize(t);e.prototype[i]||he.overWriteSetter(e,t,n,r)},overWriteSetter(e,t,n,r){var i=e1+_e._capitalize(t);e.prototype[i]=function(a){return n&&a!==void 0&&a!==null&&(a=n.call(this,a,t)),this._setAttr(t,a),r&&r.call(this),this}},addComponentsGetterSetter(e,t,n,r,i){var a=n.length,o=_e._capitalize,l=$b+o(t),c=e1+o(t),d,p;e.prototype[l]=function(){var S={};for(d=0;d<a;d++)p=n[d],S[p]=this.getAttr(t+o(p));return S};var g=kJ(n);e.prototype[c]=function(S){var w=this.attrs[t],C;r&&(S=r.call(this,S)),g&&g.call(this,S,t);for(C in S)S.hasOwnProperty(C)&&this._setAttr(t+o(C),S[C]);return S||n.forEach(k=>{this._setAttr(t+o(k),void 0)}),this._fireChangeEvent(t,w,S),i&&i.call(this),this},he.addOverloadedGetterSetter(e,t)},addOverloadedGetterSetter(e,t){var n=_e._capitalize(t),r=e1+n,i=$b+n;e.prototype[t]=function(){return arguments.length?(this[r](arguments[0]),this):this[i]()}},addDeprecatedGetterSetter(e,t,n,r){_e.error("Adding deprecated "+t);var i=$b+_e._capitalize(t),a=t+" property is deprecated and will be removed soon. Look at Konva change log for more information.";e.prototype[i]=function(){_e.error(a);var o=this.attrs[t];return o===void 0?n:o},he.addSetter(e,t,r,function(){_e.error(a)}),he.addOverloadedGetterSetter(e,t)},backCompat(e,t){_e.each(t,function(n,r){var i=e.prototype[r],a=$b+_e._capitalize(n),o=e1+_e._capitalize(n);function l(){i.apply(this,arguments),_e.error('"'+n+'" method is deprecated and will be removed soon. Use ""'+r+'" instead.')}e.prototype[n]=l,e.prototype[a]=l,e.prototype[o]=l})},afterSetFilter(){this._filterUpToDate=!1}};function PJ(e){var t=[],n=e.length,r=_e,i,a;for(i=0;i<n;i++)a=e[i],r._isNumber(a)?a=Math.round(a*1e3)/1e3:r._isString(a)||(a=a+""),t.push(a);return t}var gR=",",AJ="(",OJ=")",DJ="([",MJ="])",jJ=";",IJ="()",RJ="=",yR=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","ellipse","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],NJ=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation","imageSmoothingEnabled"];const LJ=100;let ow=class{constructor(t){this.canvas=t,Kt.enableTrace&&(this.traceArr=[],this._enableTrace())}fillShape(t){t.fillEnabled()&&this._fill(t)}_fill(t){}strokeShape(t){t.hasStroke()&&this._stroke(t)}_stroke(t){}fillStrokeShape(t){t.attrs.fillAfterStrokeEnabled?(this.strokeShape(t),this.fillShape(t)):(this.fillShape(t),this.strokeShape(t))}getTrace(t,n){var r=this.traceArr,i=r.length,a="",o,l,c,d;for(o=0;o<i;o++)l=r[o],c=l.method,c?(d=l.args,a+=c,t?a+=IJ:_e._isArray(d[0])?a+=DJ+d.join(gR)+MJ:(n&&(d=d.map(p=>typeof p=="number"?Math.floor(p):p)),a+=AJ+d.join(gR)+OJ)):(a+=l.property,t||(a+=RJ+l.val)),a+=jJ;return a}clearTrace(){this.traceArr=[]}_trace(t){var n=this.traceArr,r;n.push(t),r=n.length,r>=LJ&&n.shift()}reset(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){var n=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,n.getWidth()/n.pixelRatio,n.getHeight()/n.pixelRatio)}_applyLineCap(t){var n=t.getLineCap();n&&this.setAttr("lineCap",n)}_applyOpacity(t){var n=t.getAbsoluteOpacity();n!==1&&this.setAttr("globalAlpha",n)}_applyLineJoin(t){var n=t.attrs.lineJoin;n&&this.setAttr("lineJoin",n)}setAttr(t,n){this._context[t]=n}arc(t,n,r,i,a,o){this._context.arc(t,n,r,i,a,o)}arcTo(t,n,r,i,a){this._context.arcTo(t,n,r,i,a)}beginPath(){this._context.beginPath()}bezierCurveTo(t,n,r,i,a,o){this._context.bezierCurveTo(t,n,r,i,a,o)}clearRect(t,n,r,i){this._context.clearRect(t,n,r,i)}clip(){this._context.clip()}closePath(){this._context.closePath()}createImageData(t,n){var r=arguments;if(r.length===2)return this._context.createImageData(t,n);if(r.length===1)return this._context.createImageData(t)}createLinearGradient(t,n,r,i){return this._context.createLinearGradient(t,n,r,i)}createPattern(t,n){return this._context.createPattern(t,n)}createRadialGradient(t,n,r,i,a,o){return this._context.createRadialGradient(t,n,r,i,a,o)}drawImage(t,n,r,i,a,o,l,c,d){var p=arguments,g=this._context;p.length===3?g.drawImage(t,n,r):p.length===5?g.drawImage(t,n,r,i,a):p.length===9&&g.drawImage(t,n,r,i,a,o,l,c,d)}ellipse(t,n,r,i,a,o,l,c){this._context.ellipse(t,n,r,i,a,o,l,c)}isPointInPath(t,n,r,i){return r?this._context.isPointInPath(r,t,n,i):this._context.isPointInPath(t,n,i)}fill(t){t?this._context.fill(t):this._context.fill()}fillRect(t,n,r,i){this._context.fillRect(t,n,r,i)}strokeRect(t,n,r,i){this._context.strokeRect(t,n,r,i)}fillText(t,n,r,i){i?this._context.fillText(t,n,r,i):this._context.fillText(t,n,r)}measureText(t){return this._context.measureText(t)}getImageData(t,n,r,i){return this._context.getImageData(t,n,r,i)}lineTo(t,n){this._context.lineTo(t,n)}moveTo(t,n){this._context.moveTo(t,n)}rect(t,n,r,i){this._context.rect(t,n,r,i)}putImageData(t,n,r){this._context.putImageData(t,n,r)}quadraticCurveTo(t,n,r,i){this._context.quadraticCurveTo(t,n,r,i)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,n){this._context.scale(t,n)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,n,r,i,a,o){this._context.setTransform(t,n,r,i,a,o)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,n,r,i){this._context.strokeText(t,n,r,i)}transform(t,n,r,i,a,o){this._context.transform(t,n,r,i,a,o)}translate(t,n){this._context.translate(t,n)}_enableTrace(){var t=this,n=yR.length,r=this.setAttr,i,a,o=function(l){var c=t[l],d;t[l]=function(){return a=PJ(Array.prototype.slice.call(arguments,0)),d=c.apply(t,arguments),t._trace({method:l,args:a}),d}};for(i=0;i<n;i++)o(yR[i]);t.setAttr=function(){r.apply(t,arguments);var l=arguments[0],c=arguments[1];(l==="shadowOffsetX"||l==="shadowOffsetY"||l==="shadowBlur")&&(c=c/this.canvas.getPixelRatio()),t._trace({property:l,val:c})}}_applyGlobalCompositeOperation(t){const n=t.attrs.globalCompositeOperation;var r=!n||n==="source-over";r||this.setAttr("globalCompositeOperation",n)}};NJ.forEach(function(e){Object.defineProperty(ow.prototype,e,{get(){return this._context[e]},set(t){this._context[e]=t}})});class zJ extends ow{constructor(t){super(t),this._context=t._canvas.getContext("2d")}_fillColor(t){var n=t.fill();this.setAttr("fillStyle",n),t._fillFunc(this)}_fillPattern(t){this.setAttr("fillStyle",t._getFillPattern()),t._fillFunc(this)}_fillLinearGradient(t){var n=t._getLinearGradient();n&&(this.setAttr("fillStyle",n),t._fillFunc(this))}_fillRadialGradient(t){var n=t._getRadialGradient();n&&(this.setAttr("fillStyle",n),t._fillFunc(this))}_fill(t){var n=t.fill(),r=t.getFillPriority();if(n&&r==="color"){this._fillColor(t);return}var i=t.getFillPatternImage();if(i&&r==="pattern"){this._fillPattern(t);return}var a=t.getFillLinearGradientColorStops();if(a&&r==="linear-gradient"){this._fillLinearGradient(t);return}var o=t.getFillRadialGradientColorStops();if(o&&r==="radial-gradient"){this._fillRadialGradient(t);return}n?this._fillColor(t):i?this._fillPattern(t):a?this._fillLinearGradient(t):o&&this._fillRadialGradient(t)}_strokeLinearGradient(t){var n=t.getStrokeLinearGradientStartPoint(),r=t.getStrokeLinearGradientEndPoint(),i=t.getStrokeLinearGradientColorStops(),a=this.createLinearGradient(n.x,n.y,r.x,r.y);if(i){for(var o=0;o<i.length;o+=2)a.addColorStop(i[o],i[o+1]);this.setAttr("strokeStyle",a)}}_stroke(t){var n=t.dash(),r=t.getStrokeScaleEnabled();if(t.hasStroke()){if(!r){this.save();var i=this.getCanvas().getPixelRatio();this.setTransform(i,0,0,i,0,0)}this._applyLineCap(t),n&&t.dashEnabled()&&(this.setLineDash(n),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)");var a=t.getStrokeLinearGradientColorStops();a?this._strokeLinearGradient(t):this.setAttr("strokeStyle",t.stroke()),t._strokeFunc(this),r||this.restore()}}_applyShadow(t){var n,r,i,a=(n=t.getShadowRGBA())!==null&&n!==void 0?n:"black",o=(r=t.getShadowBlur())!==null&&r!==void 0?r:5,l=(i=t.getShadowOffset())!==null&&i!==void 0?i:{x:0,y:0},c=t.getAbsoluteScale(),d=this.canvas.getPixelRatio(),p=c.x*d,g=c.y*d;this.setAttr("shadowColor",a),this.setAttr("shadowBlur",o*Math.min(Math.abs(p),Math.abs(g))),this.setAttr("shadowOffsetX",l.x*p),this.setAttr("shadowOffsetY",l.y*g)}}class BJ extends ow{constructor(t){super(t),this._context=t._canvas.getContext("2d",{willReadFrequently:!0})}_fill(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()}strokeShape(t){t.hasHitStroke()&&this._stroke(t)}_stroke(t){if(t.hasHitStroke()){var n=t.getStrokeScaleEnabled();if(!n){this.save();var r=this.getCanvas().getPixelRatio();this.setTransform(r,0,0,r,0,0)}this._applyLineCap(t);var i=t.hitStrokeWidth(),a=i==="auto"?t.strokeWidth():i;this.setAttr("lineWidth",a),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),n||this.restore()}}}var sw;function FJ(){if(sw)return sw;var e=_e.createCanvasElement(),t=e.getContext("2d");return sw=function(){var n=Kt._global.devicePixelRatio||1,r=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return n/r}(),_e.releaseCanvas(e),sw}class lw{constructor(t){this.pixelRatio=1,this.width=0,this.height=0,this.isCache=!1;var n=t||{},r=n.pixelRatio||Kt.pixelRatio||FJ();this.pixelRatio=r,this._canvas=_e.createCanvasElement(),this._canvas.style.padding="0",this._canvas.style.margin="0",this._canvas.style.border="0",this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top="0",this._canvas.style.left="0"}getContext(){return this.context}getPixelRatio(){return this.pixelRatio}setPixelRatio(t){var n=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/n,this.getHeight()/n)}setWidth(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var n=this.pixelRatio,r=this.getContext()._context;r.scale(n,n)}setHeight(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var n=this.pixelRatio,r=this.getContext()._context;r.scale(n,n)}getWidth(){return this.width}getHeight(){return this.height}setSize(t,n){this.setWidth(t||0),this.setHeight(n||0)}toDataURL(t,n){try{return this._canvas.toDataURL(t,n)}catch{try{return this._canvas.toDataURL()}catch(i){return _e.error("Unable to get data URL. "+i.message+" For more info read https://konvajs.org/docs/posts/Tainted_Canvas.html."),""}}}}he.addGetterSetter(lw,"pixelRatio",void 0,Ct());class d0 extends lw{constructor(t={width:0,height:0}){super(t),this.context=new zJ(this),this.setSize(t.width,t.height)}}class Zk extends lw{constructor(t={width:0,height:0}){super(t),this.hitCanvas=!0,this.context=new BJ(this),this.setSize(t.width,t.height)}}const Ir={get isDragging(){var e=!1;return Ir._dragElements.forEach(t=>{t.dragStatus==="dragging"&&(e=!0)}),e},justDragged:!1,get node(){var e;return Ir._dragElements.forEach(t=>{e=t.node}),e},_dragElements:new Map,_drag(e){const t=[];Ir._dragElements.forEach((n,r)=>{const{node:i}=n,a=i.getStage();a.setPointersPositions(e),n.pointerId===void 0&&(n.pointerId=_e._getFirstPointerId(e));const o=a._changedPointerPositions.find(d=>d.id===n.pointerId);if(o){if(n.dragStatus!=="dragging"){var l=i.dragDistance(),c=Math.max(Math.abs(o.x-n.startPointerPos.x),Math.abs(o.y-n.startPointerPos.y));if(c<l||(i.startDrag({evt:e}),!i.isDragging()))return}i._setDragPosition(e,n),t.push(i)}}),t.forEach(n=>{n.fire("dragmove",{type:"dragmove",target:n,evt:e},!0)})},_endDragBefore(e){const t=[];Ir._dragElements.forEach(n=>{const{node:r}=n,i=r.getStage();if(e&&i.setPointersPositions(e),!i._changedPointerPositions.find(l=>l.id===n.pointerId))return;(n.dragStatus==="dragging"||n.dragStatus==="stopped")&&(Ir.justDragged=!0,Kt._mouseListenClick=!1,Kt._touchListenClick=!1,Kt._pointerListenClick=!1,n.dragStatus="stopped");const o=n.node.getLayer()||n.node instanceof Kt.Stage&&n.node;o&&t.indexOf(o)===-1&&t.push(o)}),t.forEach(n=>{n.draw()})},_endDragAfter(e){Ir._dragElements.forEach((t,n)=>{t.dragStatus==="stopped"&&t.node.fire("dragend",{type:"dragend",target:t.node,evt:e},!0),t.dragStatus!=="dragging"&&Ir._dragElements.delete(n)})}};Kt.isBrowser&&(window.addEventListener("mouseup",Ir._endDragBefore,!0),window.addEventListener("touchend",Ir._endDragBefore,!0),window.addEventListener("mousemove",Ir._drag),window.addEventListener("touchmove",Ir._drag),window.addEventListener("mouseup",Ir._endDragAfter,!1),window.addEventListener("touchend",Ir._endDragAfter,!1));var uw="absoluteOpacity",cw="allEventListeners",Xf="absoluteTransform",bR="absoluteScale",nv="canvas",UJ="Change",VJ="children",HJ="konva",Jk="listening",SR="mouseenter",xR="mouseleave",wR="set",CR="Shape",dw=" ",ER="stage",yp="transform",GJ="Stage",$k="visible",WJ=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(dw);let qJ=1,Tt=class bM{constructor(t){this._id=qJ++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===yp||t===Xf)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,n){var r=this._cache.get(t),i=t===yp||t===Xf,a=r===void 0||i&&r.dirty===!0;return a&&(r=n.call(this),this._cache.set(t,r)),r}_calculate(t,n,r){if(!this._attachedDepsListeners.get(t)){const i=n.map(a=>a+"Change.konva").join(dw);this.on(i,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,r)}_getCanvasCache(){return this._cache.get(nv)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===Xf&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(nv)){const{scene:t,filter:n,hit:r}=this._cache.get(nv);_e.releaseCanvas(t,n,r),this._cache.delete(nv)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){var n=t||{},r={};(n.x===void 0||n.y===void 0||n.width===void 0||n.height===void 0)&&(r=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}));var i=Math.ceil(n.width||r.width),a=Math.ceil(n.height||r.height),o=n.pixelRatio,l=n.x===void 0?Math.floor(r.x):n.x,c=n.y===void 0?Math.floor(r.y):n.y,d=n.offset||0,p=n.drawBorder||!1,g=n.hitCanvasPixelRatio||1;if(!i||!a){_e.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}i+=d*2+1,a+=d*2+1,l-=d,c-=d;var S=new d0({pixelRatio:o,width:i,height:a}),w=new d0({pixelRatio:o,width:0,height:0}),C=new Zk({pixelRatio:g,width:i,height:a}),k=S.getContext(),P=C.getContext();return C.isCache=!0,S.isCache=!0,this._cache.delete(nv),this._filterUpToDate=!1,n.imageSmoothingEnabled===!1&&(S.getContext()._context.imageSmoothingEnabled=!1,w.getContext()._context.imageSmoothingEnabled=!1),k.save(),P.save(),k.translate(-l,-c),P.translate(-l,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(uw),this._clearSelfAndDescendantCache(bR),this.drawScene(S,this),this.drawHit(C,this),this._isUnderCache=!1,k.restore(),P.restore(),p&&(k.save(),k.beginPath(),k.rect(0,0,i,a),k.closePath(),k.setAttr("strokeStyle","red"),k.setAttr("lineWidth",5),k.stroke(),k.restore()),this._cache.set(nv,{scene:S,filter:w,hit:C,x:l,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(nv)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,n){var r=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],i,a,o,l,c=this.getAbsoluteTransform(n);return r.forEach(function(d){var p=c.point(d);i===void 0&&(i=o=p.x,a=l=p.y),i=Math.min(i,p.x),a=Math.min(a,p.y),o=Math.max(o,p.x),l=Math.max(l,p.y)}),{x:i,y:a,width:o-i,height:l-a}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const n=this._getCanvasCache();t.translate(n.x,n.y);var r=this._getCachedSceneCanvas(),i=r.pixelRatio;t.drawImage(r._canvas,0,0,r.width/i,r.height/i),t.restore()}_drawCachedHitCanvas(t){var n=this._getCanvasCache(),r=n.hit;t.save(),t.translate(n.x,n.y),t.drawImage(r._canvas,0,0,r.width/r.pixelRatio,r.height/r.pixelRatio),t.restore()}_getCachedSceneCanvas(){var t=this.filters(),n=this._getCanvasCache(),r=n.scene,i=n.filter,a=i.getContext(),o,l,c,d;if(t){if(!this._filterUpToDate){var p=r.pixelRatio;i.setSize(r.width/r.pixelRatio,r.height/r.pixelRatio);try{for(o=t.length,a.clear(),a.drawImage(r._canvas,0,0,r.getWidth()/p,r.getHeight()/p),l=a.getImageData(0,0,i.getWidth(),i.getHeight()),c=0;c<o;c++){if(d=t[c],typeof d!="function"){_e.error("Filter should be type of function, but got "+typeof d+" instead. Please check correct filters");continue}d.call(this,l),a.putImageData(l,0,0)}}catch(g){_e.error("Unable to apply filter. "+g.message+" This post my help you https://konvajs.org/docs/posts/Tainted_Canvas.html.")}this._filterUpToDate=!0}return i}return r}on(t,n){if(this._cache&&this._cache.delete(cw),arguments.length===3)return this._delegate.apply(this,arguments);var r=t.split(dw),i=r.length,a,o,l,c,d;for(a=0;a<i;a++)o=r[a],l=o.split("."),c=l[0],d=l[1]||"",this.eventListeners[c]||(this.eventListeners[c]=[]),this.eventListeners[c].push({name:d,handler:n});return this}off(t,n){var r=(t||"").split(dw),i=r.length,a,o,l,c,d,p;if(this._cache&&this._cache.delete(cw),!t)for(o in this.eventListeners)this._off(o);for(a=0;a<i;a++)if(l=r[a],c=l.split("."),d=c[0],p=c[1],d)this.eventListeners[d]&&this._off(d,p,n);else for(o in this.eventListeners)this._off(o,p,n);return this}dispatchEvent(t){var n={target:this,type:t.type,evt:t};return this.fire(t.type,n),this}addEventListener(t,n){return this.on(t,function(r){n.call(this,r.evt)}),this}removeEventListener(t){return this.off(t),this}_delegate(t,n,r){var i=this;this.on(t,function(a){for(var o=a.target.findAncestors(n,!0,i),l=0;l<o.length;l++)a=_e.cloneObject(a),a.currentTarget=o[l],r.call(o[l],a)})}remove(){return this.isDragging()&&this.stopDrag(),Ir._dragElements.delete(this._id),this._remove(),this}_clearCaches(){this._clearSelfAndDescendantCache(Xf),this._clearSelfAndDescendantCache(uw),this._clearSelfAndDescendantCache(bR),this._clearSelfAndDescendantCache(ER),this._clearSelfAndDescendantCache($k),this._clearSelfAndDescendantCache(Jk)}_remove(){this._clearCaches();var t=this.getParent();t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),this.parent=null)}destroy(){return this.remove(),this.clearCache(),this}getAttr(t){var n="get"+_e._capitalize(t);return _e._isFunction(this[n])?this[n]():this.attrs[t]}getAncestors(){for(var t=this.getParent(),n=[];t;)n.push(t),t=t.getParent();return n}getAttrs(){return this.attrs||{}}setAttrs(t){return this._batchTransformChanges(()=>{var n,r;if(!t)return this;for(n in t)n!==VJ&&(r=wR+_e._capitalize(n),_e._isFunction(this[r])?this[r](t[n]):this._setAttr(n,t[n]))}),this}isListening(){return this._getCache(Jk,this._isListening)}_isListening(t){if(!this.listening())return!1;const r=this.getParent();return r&&r!==t&&this!==t?r._isListening(t):!0}isVisible(){return this._getCache($k,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const r=this.getParent();return r&&r!==t&&this!==t?r._isVisible(t):!0}shouldDrawHit(t,n=!1){if(t)return this._isVisible(t)&&this._isListening(t);var r=this.getLayer(),i=!1;Ir._dragElements.forEach(o=>{o.dragStatus==="dragging"&&(o.node.nodeType==="Stage"||o.node.getLayer()===r)&&(i=!0)});var a=!n&&!Kt.hitOnDragEnabled&&i;return this.isListening()&&this.isVisible()&&!a}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var t=this.getDepth(),n=this,r=0,i,a,o,l;function c(d){for(i=[],a=d.length,o=0;o<a;o++)l=d[o],r++,l.nodeType!==CR&&(i=i.concat(l.getChildren().slice())),l._id===n._id&&(o=a);i.length>0&&i[0].getDepth()<=t&&c(i)}return n.nodeType!==GJ&&c(n.getStage().getChildren()),r}getDepth(){for(var t=0,n=this.parent;n;)t++,n=n.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(yp),this._clearSelfAndDescendantCache(Xf)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){if(!this.getStage())return null;var t=this.getStage().getPointerPosition();if(!t)return null;var n=this.getAbsoluteTransform().copy();return n.invert(),n.point(t)}getAbsolutePosition(t){let n=!1,r=this.parent;for(;r;){if(r.isCached()){n=!0;break}r=r.parent}n&&!t&&(t=!0);var i=this.getAbsoluteTransform(t).getMatrix(),a=new Kl,o=this.offset();return a.m=i.slice(),a.translate(o.x,o.y),a.getTranslation()}setAbsolutePosition(t){var n=this._clearTransform();this.attrs.x=n.x,this.attrs.y=n.y,delete n.x,delete n.y,this._clearCache(yp);var r=this._getAbsoluteTransform().copy();return r.invert(),r.translate(t.x,t.y),t={x:this.attrs.x+r.getTranslation().x,y:this.attrs.y+r.getTranslation().y},this._setTransform(n),this.setPosition({x:t.x,y:t.y}),this._clearCache(yp),this._clearSelfAndDescendantCache(Xf),this}_setTransform(t){var n;for(n in t)this.attrs[n]=t[n]}_clearTransform(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){var n=t.x,r=t.y,i=this.x(),a=this.y();return n!==void 0&&(i+=n),r!==void 0&&(a+=r),this.setPosition({x:i,y:a}),this}_eachAncestorReverse(t,n){var r=[],i=this.getParent(),a,o;if(!(n&&n._id===this._id)){for(r.unshift(this);i&&(!n||i._id!==n._id);)r.unshift(i),i=i.parent;for(a=r.length,o=0;o<a;o++)t(r[o])}}rotate(t){return this.rotation(this.rotation()+t),this}moveToTop(){if(!this.parent)return _e.warn("Node has no parent. moveToTop function is ignored."),!1;var t=this.index,n=this.parent.getChildren().length;return t<n-1?(this.parent.children.splice(t,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0):!1}moveUp(){if(!this.parent)return _e.warn("Node has no parent. moveUp function is ignored."),!1;var t=this.index,n=this.parent.getChildren().length;return t<n-1?(this.parent.children.splice(t,1),this.parent.children.splice(t+1,0,this),this.parent._setChildrenIndices(),!0):!1}moveDown(){if(!this.parent)return _e.warn("Node has no parent. moveDown function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return _e.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return _e.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&_e.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(uw,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var t=this.opacity(),n=this.getParent();return n&&!n._isUnderCache&&(t*=n.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){var t={},n=this.getAttrs(),r,i,a,o,l;t.attrs={};for(r in n)i=n[r],l=_e.isObject(i)&&!_e._isPlainObject(i)&&!_e._isArray(i),!l&&(a=typeof this[r]=="function"&&this[r],delete n[r],o=a?a.call(this):null,n[r]=i,o!==i&&(t.attrs[r]=i));return t.className=this.getClassName(),_e._prepareToStringify(t)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,n,r){var i=[];n&&this._isMatch(t)&&i.push(this);for(var a=this.parent;a;){if(a===r)return i;a._isMatch(t)&&i.push(a),a=a.parent}return i}isAncestorOf(t){return!1}findAncestor(t,n,r){return this.findAncestors(t,n,r)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);var n=t.replace(/ /g,"").split(","),r=n.length,i,a;for(i=0;i<r;i++)if(a=n[i],_e.isValidSelector(a)||(_e.warn('Selector "'+a+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),_e.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),_e.warn("Konva is awesome, right?")),a.charAt(0)==="#"){if(this.id()===a.slice(1))return!0}else if(a.charAt(0)==="."){if(this.hasName(a.slice(1)))return!0}else if(this.className===a||this.nodeType===a)return!0;return!1}getLayer(){var t=this.getParent();return t?t.getLayer():null}getStage(){return this._getCache(ER,this._getStage)}_getStage(){var t=this.getParent();if(t)return t.getStage()}fire(t,n={},r){return n.target=n.target||this,r?this._fireAndBubble(t,n):this._fire(t,n),this}getAbsoluteTransform(t){return t?this._getAbsoluteTransform(t):this._getCache(Xf,this._getAbsoluteTransform)}_getAbsoluteTransform(t){var n;if(t)return n=new Kl,this._eachAncestorReverse(function(i){var a=i.transformsEnabled();a==="all"?n.multiply(i.getTransform()):a==="position"&&n.translate(i.x()-i.offsetX(),i.y()-i.offsetY())},t),n;n=this._cache.get(Xf)||new Kl,this.parent?this.parent.getAbsoluteTransform().copyInto(n):n.reset();var r=this.transformsEnabled();if(r==="all")n.multiply(this.getTransform());else if(r==="position"){const i=this.attrs.x||0,a=this.attrs.y||0,o=this.attrs.offsetX||0,l=this.attrs.offsetY||0;n.translate(i-o,a-l)}return n.dirty=!1,n}getAbsoluteScale(t){for(var n=this;n;)n._isUnderCache&&(t=n),n=n.getParent();const i=this.getAbsoluteTransform(t).decompose();return{x:i.scaleX,y:i.scaleY}}getAbsoluteRotation(){return this.getAbsoluteTransform().decompose().rotation}getTransform(){return this._getCache(yp,this._getTransform)}_getTransform(){var t,n,r=this._cache.get(yp)||new Kl;r.reset();var i=this.x(),a=this.y(),o=Kt.getAngle(this.rotation()),l=(t=this.attrs.scaleX)!==null&&t!==void 0?t:1,c=(n=this.attrs.scaleY)!==null&&n!==void 0?n:1,d=this.attrs.skewX||0,p=this.attrs.skewY||0,g=this.attrs.offsetX||0,S=this.attrs.offsetY||0;return(i!==0||a!==0)&&r.translate(i,a),o!==0&&r.rotate(o),(d!==0||p!==0)&&r.skew(d,p),(l!==1||c!==1)&&r.scale(l,c),(g!==0||S!==0)&&r.translate(-1*g,-1*S),r.dirty=!1,r}clone(t){var n=_e.cloneObject(this.attrs),r,i,a,o,l;for(r in t)n[r]=t[r];var c=new this.constructor(n);for(r in this.eventListeners)for(i=this.eventListeners[r],a=i.length,o=0;o<a;o++)l=i[o],l.name.indexOf(HJ)<0&&(c.eventListeners[r]||(c.eventListeners[r]=[]),c.eventListeners[r].push(l));return c}_toKonvaCanvas(t){t=t||{};var n=this.getClientRect(),r=this.getStage(),i=t.x!==void 0?t.x:Math.floor(n.x),a=t.y!==void 0?t.y:Math.floor(n.y),o=t.pixelRatio||1,l=new d0({width:t.width||Math.ceil(n.width)||(r?r.width():0),height:t.height||Math.ceil(n.height)||(r?r.height():0),pixelRatio:o}),c=l.getContext();return t.imageSmoothingEnabled===!1&&(c._context.imageSmoothingEnabled=!1),c.save(),(i||a)&&c.translate(-1*i,-1*a),this.drawScene(l),c.restore(),l}toCanvas(t){return this._toKonvaCanvas(t)._canvas}toDataURL(t){t=t||{};var n=t.mimeType||null,r=t.quality||null,i=this._toKonvaCanvas(t).toDataURL(n,r);return t.callback&&t.callback(i),i}toImage(t){return new Promise((n,r)=>{try{const i=t==null?void 0:t.callback;i&&delete t.callback,_e._urlToImage(this.toDataURL(t),function(a){n(a),i==null||i(a)})}catch(i){r(i)}})}toBlob(t){return new Promise((n,r)=>{try{const i=t==null?void 0:t.callback;i&&delete t.callback,this.toCanvas(t).toBlob(a=>{n(a),i==null||i(a)})}catch(i){r(i)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():Kt.dragDistance}_off(t,n,r){var i=this.eventListeners[t],a,o,l;for(a=0;a<i.length;a++)if(o=i[a].name,l=i[a].handler,(o!=="konva"||n==="konva")&&(!n||o===n)&&(!r||r===l)){if(i.splice(a,1),i.length===0){delete this.eventListeners[t];break}a--}}_fireChangeEvent(t,n,r){this._fire(t+UJ,{oldVal:n,newVal:r})}addName(t){if(!this.hasName(t)){var n=this.name(),r=n?n+" "+t:t;this.name(r)}return this}hasName(t){if(!t)return!1;const n=this.name();if(!n)return!1;var r=(n||"").split(/\s/g);return r.indexOf(t)!==-1}removeName(t){var n=(this.name()||"").split(/\s/g),r=n.indexOf(t);return r!==-1&&(n.splice(r,1),this.name(n.join(" "))),this}setAttr(t,n){var r=this[wR+_e._capitalize(t)];return _e._isFunction(r)?r.call(this,n):this._setAttr(t,n),this}_requestDraw(){if(Kt.autoDrawEnabled){const t=this.getLayer()||this.getStage();t==null||t.batchDraw()}}_setAttr(t,n){var r=this.attrs[t];r===n&&!_e.isObject(n)||(n==null?delete this.attrs[t]:this.attrs[t]=n,this._shouldFireChangeEvents&&this._fireChangeEvent(t,r,n),this._requestDraw())}_setComponentAttr(t,n,r){var i;r!==void 0&&(i=this.attrs[t],i||(this.attrs[t]=this.getAttr(t)),this.attrs[t][n]=r,this._fireChangeEvent(t,i,r))}_fireAndBubble(t,n,r){n&&this.nodeType===CR&&(n.target=this);var i=(t===SR||t===xR)&&(r&&(this===r||this.isAncestorOf&&this.isAncestorOf(r))||this.nodeType==="Stage"&&!r);if(!i){this._fire(t,n);var a=(t===SR||t===xR)&&r&&r.isAncestorOf&&r.isAncestorOf(this)&&!r.isAncestorOf(this.parent);(n&&!n.cancelBubble||!n)&&this.parent&&this.parent.isListening()&&!a&&(r&&r.parent?this._fireAndBubble.call(this.parent,t,n,r):this._fireAndBubble.call(this.parent,t,n))}}_getProtoListeners(t){let n=this._cache.get(cw);if(!n){n={};let i=Object.getPrototypeOf(this);for(;i;){if(!i.eventListeners){i=Object.getPrototypeOf(i);continue}for(var r in i.eventListeners){const a=i.eventListeners[r],o=n[r]||[];n[r]=a.concat(o)}i=Object.getPrototypeOf(i)}this._cache.set(cw,n)}return n[t]}_fire(t,n){n=n||{},n.currentTarget=this,n.type=t;const r=this._getProtoListeners(t);if(r)for(var i=0;i<r.length;i++)r[i].handler.call(this,n);const a=this.eventListeners[t];if(a)for(var i=0;i<a.length;i++)a[i].handler.call(this,n)}draw(){return this.drawScene(),this.drawHit(),this}_createDragElement(t){var n=t?t.pointerId:void 0,r=this.getStage(),i=this.getAbsolutePosition(),a=r._getPointerById(n)||r._changedPointerPositions[0]||i;Ir._dragElements.set(this._id,{node:this,startPointerPos:a,offset:{x:a.x-i.x,y:a.y-i.y},dragStatus:"ready",pointerId:n})}startDrag(t,n=!0){Ir._dragElements.has(this._id)||this._createDragElement(t);const r=Ir._dragElements.get(this._id);r.dragStatus="dragging",this.fire("dragstart",{type:"dragstart",target:this,evt:t&&t.evt},n)}_setDragPosition(t,n){const r=this.getStage()._getPointerById(n.pointerId);if(r){var i={x:r.x-n.offset.x,y:r.y-n.offset.y},a=this.dragBoundFunc();if(a!==void 0){const o=a.call(this,i,t);o?i=o:_e.warn("dragBoundFunc did not return any value. That is unexpected behavior. You must return new absolute position from dragBoundFunc.")}(!this._lastPos||this._lastPos.x!==i.x||this._lastPos.y!==i.y)&&(this.setAbsolutePosition(i),this._requestDraw()),this._lastPos=i}}stopDrag(t){const n=Ir._dragElements.get(this._id);n&&(n.dragStatus="stopped"),Ir._endDragBefore(t),Ir._endDragAfter(t)}setDraggable(t){this._setAttr("draggable",t),this._dragChange()}isDragging(){const t=Ir._dragElements.get(this._id);return t?t.dragStatus==="dragging":!1}_listenDrag(){this._dragCleanup(),this.on("mousedown.konva touchstart.konva",function(t){var n=t.evt.button!==void 0,r=!n||Kt.dragButtons.indexOf(t.evt.button)>=0;if(r&&!this.isDragging()){var i=!1;Ir._dragElements.forEach(a=>{this.isAncestorOf(a.node)&&(i=!0)}),i||this._createDragElement(t)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage();if(!t)return;const n=Ir._dragElements.get(this._id),r=n&&n.dragStatus==="dragging",i=n&&n.dragStatus==="ready";r?this.stopDrag():i&&Ir._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const n=this.getStage();if(!n)return!1;const r={x:-t.x,y:-t.y,width:n.width()+2*t.x,height:n.height()+2*t.y};return _e.haveIntersection(r,this.getClientRect())}static create(t,n){return _e._isString(t)&&(t=JSON.parse(t)),this._createNode(t,n)}static _createNode(t,n){var r=bM.prototype.getClassName.call(t),i=t.children,a,o,l;n&&(t.attrs.container=n),Kt[r]||(_e.warn('Can not find a node with class name "'+r+'". Fallback to "Shape".'),r="Shape");const c=Kt[r];if(a=new c(t.attrs),i)for(o=i.length,l=0;l<o;l++)a.add(bM._createNode(i[l]));return a}};Tt.prototype.nodeType="Node",Tt.prototype._attrsAffectingSize=[],Tt.prototype.eventListeners={},Tt.prototype.on.call(Tt.prototype,WJ,function(){if(this._batchingTransformChange){this._needClearTransformCache=!0;return}this._clearCache(yp),this._clearSelfAndDescendantCache(Xf)}),Tt.prototype.on.call(Tt.prototype,"visibleChange.konva",function(){this._clearSelfAndDescendantCache($k)}),Tt.prototype.on.call(Tt.prototype,"listeningChange.konva",function(){this._clearSelfAndDescendantCache(Jk)}),Tt.prototype.on.call(Tt.prototype,"opacityChange.konva",function(){this._clearSelfAndDescendantCache(uw)});const bi=he.addGetterSetter;bi(Tt,"zIndex"),bi(Tt,"absolutePosition"),bi(Tt,"position"),bi(Tt,"x",0,Ct()),bi(Tt,"y",0,Ct()),bi(Tt,"globalCompositeOperation","source-over",c0()),bi(Tt,"opacity",1,Ct()),bi(Tt,"name","",c0()),bi(Tt,"id","",c0()),bi(Tt,"rotation",0,Ct()),he.addComponentsGetterSetter(Tt,"scale",["x","y"]),bi(Tt,"scaleX",1,Ct()),bi(Tt,"scaleY",1,Ct()),he.addComponentsGetterSetter(Tt,"skew",["x","y"]),bi(Tt,"skewX",0,Ct()),bi(Tt,"skewY",0,Ct()),he.addComponentsGetterSetter(Tt,"offset",["x","y"]),bi(Tt,"offsetX",0,Ct()),bi(Tt,"offsetY",0,Ct()),bi(Tt,"dragDistance",null,Ct()),bi(Tt,"width",0,Ct()),bi(Tt,"height",0,Ct()),bi(Tt,"listening",!0,Oc()),bi(Tt,"preventDefault",!0,Oc()),bi(Tt,"filters",null,function(e){return this._filterUpToDate=!1,e}),bi(Tt,"visible",!0,Oc()),bi(Tt,"transformsEnabled","all",c0()),bi(Tt,"size"),bi(Tt,"dragBoundFunc"),bi(Tt,"draggable",!1,Oc()),he.backCompat(Tt,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"});let Xl=class extends Tt{constructor(){super(...arguments),this.children=[]}getChildren(t){if(!t)return this.children||[];const n=this.children||[];var r=[];return n.forEach(function(i){t(i)&&r.push(i)}),r}hasChildren(){return this.getChildren().length>0}removeChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(t=>{t.parent=null,t.index=0,t.destroy()}),this.children=[],this._requestDraw(),this}add(...t){if(t.length===0)return this;if(t.length>1){for(var n=0;n<t.length;n++)this.add(t[n]);return this}const r=t[0];return r.getParent()?(r.moveTo(this),this):(this._validateAdd(r),r.index=this.getChildren().length,r.parent=this,r._clearCaches(),this.getChildren().push(r),this._fire("add",{child:r}),this._requestDraw(),this)}destroy(){return this.hasChildren()&&this.destroyChildren(),super.destroy(),this}find(t){return this._generalFind(t,!1)}findOne(t){var n=this._generalFind(t,!0);return n.length>0?n[0]:void 0}_generalFind(t,n){var r=[];return this._descendants(i=>{const a=i._isMatch(t);return a&&r.push(i),!!(a&&n)}),r}_descendants(t){let n=!1;const r=this.getChildren();for(const i of r){if(n=t(i),n)return!0;if(i.hasChildren()&&(n=i._descendants(t),n))return!0}return!1}toObject(){var t=Tt.prototype.toObject.call(this);return t.children=[],this.getChildren().forEach(n=>{t.children.push(n.toObject())}),t}isAncestorOf(t){for(var n=t.getParent();n;){if(n._id===this._id)return!0;n=n.getParent()}return!1}clone(t){var n=Tt.prototype.clone.call(this,t);return this.getChildren().forEach(function(r){n.add(r.clone())}),n}getAllIntersections(t){var n=[];return this.find("Shape").forEach(function(r){r.isVisible()&&r.intersects(t)&&n.push(r)}),n}_clearSelfAndDescendantCache(t){var n;super._clearSelfAndDescendantCache(t),!this.isCached()&&((n=this.children)===null||n===void 0||n.forEach(function(r){r._clearSelfAndDescendantCache(t)}))}_setChildrenIndices(){var t;(t=this.children)===null||t===void 0||t.forEach(function(n,r){n.index=r}),this._requestDraw()}drawScene(t,n){var r=this.getLayer(),i=t||r&&r.getCanvas(),a=i&&i.getContext(),o=this._getCanvasCache(),l=o&&o.scene,c=i&&i.isCache;if(!this.isVisible()&&!c)return this;if(l){a.save();var d=this.getAbsoluteTransform(n).getMatrix();a.transform(d[0],d[1],d[2],d[3],d[4],d[5]),this._drawCachedSceneCanvas(a),a.restore()}else this._drawChildren("drawScene",i,n);return this}drawHit(t,n){if(!this.shouldDrawHit(n))return this;var r=this.getLayer(),i=t||r&&r.hitCanvas,a=i&&i.getContext(),o=this._getCanvasCache(),l=o&&o.hit;if(l){a.save();var c=this.getAbsoluteTransform(n).getMatrix();a.transform(c[0],c[1],c[2],c[3],c[4],c[5]),this._drawCachedHitCanvas(a),a.restore()}else this._drawChildren("drawHit",i,n);return this}_drawChildren(t,n,r){var i,a=n&&n.getContext(),o=this.clipWidth(),l=this.clipHeight(),c=this.clipFunc(),d=o&&l||c;const p=r===this;if(d){a.save();var g=this.getAbsoluteTransform(r),S=g.getMatrix();if(a.transform(S[0],S[1],S[2],S[3],S[4],S[5]),a.beginPath(),c)c.call(this,a,this);else{var w=this.clipX(),C=this.clipY();a.rect(w,C,o,l)}a.clip(),S=g.copy().invert().getMatrix(),a.transform(S[0],S[1],S[2],S[3],S[4],S[5])}var k=!p&&this.globalCompositeOperation()!=="source-over"&&t==="drawScene";k&&(a.save(),a._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(P){P[t](n,r)}),k&&a.restore(),d&&a.restore()}getClientRect(t){var n;t=t||{};var r=t.skipTransform,i=t.relativeTo,a,o,l,c,d={x:1/0,y:1/0,width:0,height:0},p=this;(n=this.children)===null||n===void 0||n.forEach(function(k){if(k.visible()){var P=k.getClientRect({relativeTo:p,skipShadow:t.skipShadow,skipStroke:t.skipStroke});P.width===0&&P.height===0||(a===void 0?(a=P.x,o=P.y,l=P.x+P.width,c=P.y+P.height):(a=Math.min(a,P.x),o=Math.min(o,P.y),l=Math.max(l,P.x+P.width),c=Math.max(c,P.y+P.height)))}});for(var g=this.find("Shape"),S=!1,w=0;w<g.length;w++){var C=g[w];if(C._isVisible(this)){S=!0;break}}return S&&a!==void 0?d={x:a,y:o,width:l-a,height:c-o}:d={x:0,y:0,width:0,height:0},r?d:this._transformedRect(d,i)}};he.addComponentsGetterSetter(Xl,"clip",["x","y","width","height"]),he.addGetterSetter(Xl,"clipX",void 0,Ct()),he.addGetterSetter(Xl,"clipY",void 0,Ct()),he.addGetterSetter(Xl,"clipWidth",void 0,Ct()),he.addGetterSetter(Xl,"clipHeight",void 0,Ct()),he.addGetterSetter(Xl,"clipFunc");const t1=new Map,_R=Kt._global.PointerEvent!==void 0;function e4(e){return t1.get(e)}function t4(e){return{evt:e,pointerId:e.pointerId}}function TR(e,t){return t1.get(e)===t}function kR(e,t){n1(e),t.getStage()&&(t1.set(e,t),_R&&t._fire("gotpointercapture",t4(new PointerEvent("gotpointercapture"))))}function n1(e,t){const n=t1.get(e);if(!n)return;const r=n.getStage();r&&r.content,t1.delete(e),_R&&n._fire("lostpointercapture",t4(new PointerEvent("lostpointercapture")))}var YJ="Stage",KJ="string",PR="px",XJ="mouseout",AR="mouseleave",OR="mouseover",DR="mouseenter",MR="mousemove",jR="mousedown",IR="mouseup",r1="pointermove",i1="pointerdown",f0="pointerup",a1="pointercancel",QJ="lostpointercapture",fw="pointerout",hw="pointerleave",pw="pointerover",mw="pointerenter",n4="contextmenu",RR="touchstart",NR="touchend",LR="touchmove",zR="touchcancel",r4="wheel",ZJ=5,JJ=[[DR,"_pointerenter"],[jR,"_pointerdown"],[MR,"_pointermove"],[IR,"_pointerup"],[AR,"_pointerleave"],[RR,"_pointerdown"],[LR,"_pointermove"],[NR,"_pointerup"],[zR,"_pointercancel"],[OR,"_pointerover"],[r4,"_wheel"],[n4,"_contextmenu"],[i1,"_pointerdown"],[r1,"_pointermove"],[f0,"_pointerup"],[a1,"_pointercancel"],[QJ,"_lostpointercapture"]];const i4={mouse:{[fw]:XJ,[hw]:AR,[pw]:OR,[mw]:DR,[r1]:MR,[i1]:jR,[f0]:IR,[a1]:"mousecancel",pointerclick:"click",pointerdblclick:"dblclick"},touch:{[fw]:"touchout",[hw]:"touchleave",[pw]:"touchover",[mw]:"touchenter",[r1]:LR,[i1]:RR,[f0]:NR,[a1]:zR,pointerclick:"tap",pointerdblclick:"dbltap"},pointer:{[fw]:fw,[hw]:hw,[pw]:pw,[mw]:mw,[r1]:r1,[i1]:i1,[f0]:f0,[a1]:a1,pointerclick:"pointerclick",pointerdblclick:"pointerdblclick"}},o1=e=>e.indexOf("pointer")>=0?"pointer":e.indexOf("touch")>=0?"touch":"mouse",h0=e=>{const t=o1(e);if(t==="pointer")return Kt.pointerEventsEnabled&&i4.pointer;if(t==="touch")return i4.touch;if(t==="mouse")return i4.mouse};function BR(e={}){return(e.clipFunc||e.clipWidth||e.clipHeight)&&_e.warn("Stage does not support clipping. Please use clip for Layers or Groups."),e}const $J="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);",vw=[];let gw=class extends Xl{constructor(t){super(BR(t)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),vw.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{BR(this.attrs)}),this._checkVisibility()}_validateAdd(t){const n=t.getType()==="Layer",r=t.getType()==="FastLayer";n||r||_e.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const t=this.visible()?"":"none";this.content.style.display=t}setContainer(t){if(typeof t===KJ){if(t.charAt(0)==="."){var n=t.slice(1);t=document.getElementsByClassName(n)[0]}else{var r;t.charAt(0)!=="#"?r=t:r=t.slice(1),t=document.getElementById(r)}if(!t)throw"Can not find container in document with id "+r}return this._setAttr("container",t),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),t.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var t=this.children,n=t.length,r;for(r=0;r<n;r++)t[r].clear();return this}clone(t){return t||(t={}),t.container=typeof document<"u"&&document.createElement("div"),Xl.prototype.clone.call(this,t)}destroy(){super.destroy();var t=this.content;t&&_e._isInDocument(t)&&this.container().removeChild(t);var n=vw.indexOf(this);return n>-1&&vw.splice(n,1),_e.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const t=this._pointerPositions[0]||this._changedPointerPositions[0];return t?{x:t.x,y:t.y}:(_e.warn($J),null)}_getPointerById(t){return this._pointerPositions.find(n=>n.id===t)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(t){t=t||{},t.x=t.x||0,t.y=t.y||0,t.width=t.width||this.width(),t.height=t.height||this.height();var n=new d0({width:t.width,height:t.height,pixelRatio:t.pixelRatio||1}),r=n.getContext()._context,i=this.children;return(t.x||t.y)&&r.translate(-1*t.x,-1*t.y),i.forEach(function(a){if(a.isVisible()){var o=a._toKonvaCanvas(t);r.drawImage(o._canvas,t.x,t.y,o.getWidth()/o.getPixelRatio(),o.getHeight()/o.getPixelRatio())}}),n}getIntersection(t){if(!t)return null;var n=this.children,r=n.length,i=r-1,a;for(a=i;a>=0;a--){const o=n[a].getIntersection(t);if(o)return o}return null}_resizeDOM(){var t=this.width(),n=this.height();this.content&&(this.content.style.width=t+PR,this.content.style.height=n+PR),this.bufferCanvas.setSize(t,n),this.bufferHitCanvas.setSize(t,n),this.children.forEach(r=>{r.setSize({width:t,height:n}),r.draw()})}add(t,...n){if(arguments.length>1){for(var r=0;r<arguments.length;r++)this.add(arguments[r]);return this}super.add(t);var i=this.children.length;return i>ZJ&&_e.warn("The stage has "+i+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),t.setSize({width:this.width(),height:this.height()}),t.draw(),Kt.isBrowser&&this.content.appendChild(t.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(t){return TR(t,this)}setPointerCapture(t){kR(t,this)}releaseCapture(t){n1(t)}getLayers(){return this.children}_bindContentEvents(){Kt.isBrowser&&JJ.forEach(([t,n])=>{this.content.addEventListener(t,r=>{this[n](r)},{passive:!1})})}_pointerenter(t){this.setPointersPositions(t);const n=h0(t.type);this._fire(n.pointerenter,{evt:t,target:this,currentTarget:this})}_pointerover(t){this.setPointersPositions(t);const n=h0(t.type);this._fire(n.pointerover,{evt:t,target:this,currentTarget:this})}_getTargetShape(t){let n=this[t+"targetShape"];return n&&!n.getStage()&&(n=null),n}_pointerleave(t){const n=h0(t.type),r=o1(t.type);if(n){this.setPointersPositions(t);var i=this._getTargetShape(r),a=!Ir.isDragging||Kt.hitOnDragEnabled;i&&a?(i._fireAndBubble(n.pointerout,{evt:t}),i._fireAndBubble(n.pointerleave,{evt:t}),this._fire(n.pointerleave,{evt:t,target:this,currentTarget:this}),this[r+"targetShape"]=null):a&&(this._fire(n.pointerleave,{evt:t,target:this,currentTarget:this}),this._fire(n.pointerout,{evt:t,target:this,currentTarget:this})),this.pointerPos=void 0,this._pointerPositions=[]}}_pointerdown(t){const n=h0(t.type),r=o1(t.type);if(n){this.setPointersPositions(t);var i=!1;this._changedPointerPositions.forEach(a=>{var o=this.getIntersection(a);if(Ir.justDragged=!1,Kt["_"+r+"ListenClick"]=!0,!(o&&o.isListening()))return;Kt.capturePointerEventsEnabled&&o.setPointerCapture(a.id),this[r+"ClickStartShape"]=o,o._fireAndBubble(n.pointerdown,{evt:t,pointerId:a.id}),i=!0;const c=t.type.indexOf("touch")>=0;o.preventDefault()&&t.cancelable&&c&&t.preventDefault()}),i||this._fire(n.pointerdown,{evt:t,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(t){const n=h0(t.type),r=o1(t.type);if(!n)return;Ir.isDragging&&Ir.node.preventDefault()&&t.cancelable&&t.preventDefault(),this.setPointersPositions(t);var i=!Ir.isDragging||Kt.hitOnDragEnabled;if(!i)return;var a={};let o=!1;var l=this._getTargetShape(r);this._changedPointerPositions.forEach(c=>{const d=e4(c.id)||this.getIntersection(c),p=c.id,g={evt:t,pointerId:p};var S=l!==d;if(S&&l&&(l._fireAndBubble(n.pointerout,Object.assign({},g),d),l._fireAndBubble(n.pointerleave,Object.assign({},g),d)),d){if(a[d._id])return;a[d._id]=!0}d&&d.isListening()?(o=!0,S&&(d._fireAndBubble(n.pointerover,Object.assign({},g),l),d._fireAndBubble(n.pointerenter,Object.assign({},g),l),this[r+"targetShape"]=d),d._fireAndBubble(n.pointermove,Object.assign({},g))):l&&(this._fire(n.pointerover,{evt:t,target:this,currentTarget:this,pointerId:p}),this[r+"targetShape"]=null)}),o||this._fire(n.pointermove,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(t){const n=h0(t.type),r=o1(t.type);if(!n)return;this.setPointersPositions(t);const i=this[r+"ClickStartShape"],a=this[r+"ClickEndShape"];var o={};let l=!1;this._changedPointerPositions.forEach(c=>{const d=e4(c.id)||this.getIntersection(c);if(d){if(d.releaseCapture(c.id),o[d._id])return;o[d._id]=!0}const p=c.id,g={evt:t,pointerId:p};let S=!1;Kt["_"+r+"InDblClickWindow"]?(S=!0,clearTimeout(this[r+"DblTimeout"])):Ir.justDragged||(Kt["_"+r+"InDblClickWindow"]=!0,clearTimeout(this[r+"DblTimeout"])),this[r+"DblTimeout"]=setTimeout(function(){Kt["_"+r+"InDblClickWindow"]=!1},Kt.dblClickWindow),d&&d.isListening()?(l=!0,this[r+"ClickEndShape"]=d,d._fireAndBubble(n.pointerup,Object.assign({},g)),Kt["_"+r+"ListenClick"]&&i&&i===d&&(d._fireAndBubble(n.pointerclick,Object.assign({},g)),S&&a&&a===d&&d._fireAndBubble(n.pointerdblclick,Object.assign({},g)))):(this[r+"ClickEndShape"]=null,Kt["_"+r+"ListenClick"]&&this._fire(n.pointerclick,{evt:t,target:this,currentTarget:this,pointerId:p}),S&&this._fire(n.pointerdblclick,{evt:t,target:this,currentTarget:this,pointerId:p}))}),l||this._fire(n.pointerup,{evt:t,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),Kt["_"+r+"ListenClick"]=!1,t.cancelable&&r!=="touch"&&t.preventDefault()}_contextmenu(t){this.setPointersPositions(t);var n=this.getIntersection(this.getPointerPosition());n&&n.isListening()?n._fireAndBubble(n4,{evt:t}):this._fire(n4,{evt:t,target:this,currentTarget:this})}_wheel(t){this.setPointersPositions(t);var n=this.getIntersection(this.getPointerPosition());n&&n.isListening()?n._fireAndBubble(r4,{evt:t}):this._fire(r4,{evt:t,target:this,currentTarget:this})}_pointercancel(t){this.setPointersPositions(t);const n=e4(t.pointerId)||this.getIntersection(this.getPointerPosition());n&&n._fireAndBubble(f0,t4(t)),n1(t.pointerId)}_lostpointercapture(t){n1(t.pointerId)}setPointersPositions(t){var n=this._getContentPosition(),r=null,i=null;t=t||window.event,t.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(t.touches,a=>{this._pointerPositions.push({id:a.identifier,x:(a.clientX-n.left)/n.scaleX,y:(a.clientY-n.top)/n.scaleY})}),Array.prototype.forEach.call(t.changedTouches||t.touches,a=>{this._changedPointerPositions.push({id:a.identifier,x:(a.clientX-n.left)/n.scaleX,y:(a.clientY-n.top)/n.scaleY})})):(r=(t.clientX-n.left)/n.scaleX,i=(t.clientY-n.top)/n.scaleY,this.pointerPos={x:r,y:i},this._pointerPositions=[{x:r,y:i,id:_e._getFirstPointerId(t)}],this._changedPointerPositions=[{x:r,y:i,id:_e._getFirstPointerId(t)}])}_setPointerPosition(t){_e.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(t)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var t=this.content.getBoundingClientRect();return{top:t.top,left:t.left,scaleX:t.width/this.content.clientWidth||1,scaleY:t.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new d0({width:this.width(),height:this.height()}),this.bufferHitCanvas=new Zk({pixelRatio:1,width:this.width(),height:this.height()}),!!Kt.isBrowser){var t=this.container();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}}cache(){return _e.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(t){t.batchDraw()}),this}};gw.prototype.nodeType=YJ,sa(gw),he.addGetterSetter(gw,"container");var FR="hasShadow",UR="shadowRGBA",VR="patternImage",HR="linearGradient",GR="radialGradient";let yw;function a4(){return yw||(yw=_e.createCanvasElement().getContext("2d"),yw)}const s1={};function e$(e){e.fill()}function t$(e){e.stroke()}function n$(e){e.fill()}function r$(e){e.stroke()}function i$(){this._clearCache(FR)}function a$(){this._clearCache(UR)}function o$(){this._clearCache(VR)}function s$(){this._clearCache(HR)}function l$(){this._clearCache(GR)}class gt extends Tt{constructor(t){super(t);let n;for(;n=_e.getRandomColor(),!(n&&!(n in s1)););this.colorKey=n,s1[n]=this}getContext(){return _e.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return _e.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(FR,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(VR,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var t=a4();const n=t.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(n&&n.setTransform){const r=new Kl;r.translate(this.fillPatternX(),this.fillPatternY()),r.rotate(Kt.getAngle(this.fillPatternRotation())),r.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),r.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const i=r.getMatrix(),a=typeof DOMMatrix>"u"?{a:i[0],b:i[1],c:i[2],d:i[3],e:i[4],f:i[5]}:new DOMMatrix(i);n.setTransform(a)}return n}}_getLinearGradient(){return this._getCache(HR,this.__getLinearGradient)}__getLinearGradient(){var t=this.fillLinearGradientColorStops();if(t){for(var n=a4(),r=this.fillLinearGradientStartPoint(),i=this.fillLinearGradientEndPoint(),a=n.createLinearGradient(r.x,r.y,i.x,i.y),o=0;o<t.length;o+=2)a.addColorStop(t[o],t[o+1]);return a}}_getRadialGradient(){return this._getCache(GR,this.__getRadialGradient)}__getRadialGradient(){var t=this.fillRadialGradientColorStops();if(t){for(var n=a4(),r=this.fillRadialGradientStartPoint(),i=this.fillRadialGradientEndPoint(),a=n.createRadialGradient(r.x,r.y,this.fillRadialGradientStartRadius(),i.x,i.y,this.fillRadialGradientEndRadius()),o=0;o<t.length;o+=2)a.addColorStop(t[o],t[o+1]);return a}}getShadowRGBA(){return this._getCache(UR,this._getShadowRGBA)}_getShadowRGBA(){if(this.hasShadow()){var t=_e.colorToRGBA(this.shadowColor());if(t)return"rgba("+t.r+","+t.g+","+t.b+","+t.a*(this.shadowOpacity()||1)+")"}}hasFill(){return this._calculate("hasFill",["fillEnabled","fill","fillPatternImage","fillLinearGradientColorStops","fillRadialGradientColorStops"],()=>this.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const t=this.hitStrokeWidth();return t==="auto"?this.hasStroke():this.strokeEnabled()&&!!t}intersects(t){var n=this.getStage(),r=n.bufferHitCanvas,i;return r.getContext().clear(),this.drawHit(r,null,!0),i=r.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data,i[3]>0}destroy(){return Tt.prototype.destroy.call(this),delete s1[this.colorKey],delete this.colorKey,this}_useBufferCanvas(t){var n;if(!this.getStage()||!((n=this.attrs.perfectDrawEnabled)!==null&&n!==void 0?n:!0))return!1;const i=t||this.hasFill(),a=this.hasStroke(),o=this.getAbsoluteOpacity()!==1;if(i&&a&&o)return!0;const l=this.hasShadow(),c=this.shadowForStrokeEnabled();return!!(i&&a&&l&&c)}setStrokeHitEnabled(t){_e.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),t?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var t=this.size();return{x:this._centroid?-t.width/2:0,y:this._centroid?-t.height/2:0,width:t.width,height:t.height}}getClientRect(t={}){const n=t.skipTransform,r=t.relativeTo,i=this.getSelfRect(),o=!t.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,l=i.width+o,c=i.height+o,d=!t.skipShadow&&this.hasShadow(),p=d?this.shadowOffsetX():0,g=d?this.shadowOffsetY():0,S=l+Math.abs(p),w=c+Math.abs(g),C=d&&this.shadowBlur()||0,k=S+C*2,P=w+C*2,D={width:k,height:P,x:-(o/2+C)+Math.min(p,0)+i.x,y:-(o/2+C)+Math.min(g,0)+i.y};return n?D:this._transformedRect(D,r)}drawScene(t,n){var r=this.getLayer(),i=t||r.getCanvas(),a=i.getContext(),o=this._getCanvasCache(),l=this.getSceneFunc(),c=this.hasShadow(),d,p,g,S=i.isCache,w=n===this;if(!this.isVisible()&&!w)return this;if(o){a.save();var C=this.getAbsoluteTransform(n).getMatrix();return a.transform(C[0],C[1],C[2],C[3],C[4],C[5]),this._drawCachedSceneCanvas(a),a.restore(),this}if(!l)return this;if(a.save(),this._useBufferCanvas()&&!S){d=this.getStage(),p=d.bufferCanvas,g=p.getContext(),g.clear(),g.save(),g._applyLineJoin(this);var k=this.getAbsoluteTransform(n).getMatrix();g.transform(k[0],k[1],k[2],k[3],k[4],k[5]),l.call(this,g,this),g.restore();var P=p.pixelRatio;c&&a._applyShadow(this),a._applyOpacity(this),a._applyGlobalCompositeOperation(this),a.drawImage(p._canvas,0,0,p.width/P,p.height/P)}else{if(a._applyLineJoin(this),!w){var k=this.getAbsoluteTransform(n).getMatrix();a.transform(k[0],k[1],k[2],k[3],k[4],k[5]),a._applyOpacity(this),a._applyGlobalCompositeOperation(this)}c&&a._applyShadow(this),l.call(this,a,this)}return a.restore(),this}drawHit(t,n,r=!1){if(!this.shouldDrawHit(n,r))return this;var i=this.getLayer(),a=t||i.hitCanvas,o=a&&a.getContext(),l=this.hitFunc()||this.sceneFunc(),c=this._getCanvasCache(),d=c&&c.hit;if(this.colorKey||_e.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),d){o.save();var p=this.getAbsoluteTransform(n).getMatrix();return o.transform(p[0],p[1],p[2],p[3],p[4],p[5]),this._drawCachedHitCanvas(o),o.restore(),this}if(!l)return this;if(o.save(),o._applyLineJoin(this),!(this===n)){var S=this.getAbsoluteTransform(n).getMatrix();o.transform(S[0],S[1],S[2],S[3],S[4],S[5])}return l.call(this,o,this),o.restore(),this}drawHitFromCache(t=0){var n=this._getCanvasCache(),r=this._getCachedSceneCanvas(),i=n.hit,a=i.getContext(),o=i.getWidth(),l=i.getHeight(),c,d,p,g,S,w;a.clear(),a.drawImage(r._canvas,0,0,o,l);try{for(c=a.getImageData(0,0,o,l),d=c.data,p=d.length,g=_e._hexToRgb(this.colorKey),S=0;S<p;S+=4)w=d[S+3],w>t?(d[S]=g.r,d[S+1]=g.g,d[S+2]=g.b,d[S+3]=255):d[S+3]=0;a.putImageData(c,0,0)}catch(C){_e.error("Unable to draw hit graph from cached scene canvas. "+C.message)}return this}hasPointerCapture(t){return TR(t,this)}setPointerCapture(t){kR(t,this)}releaseCapture(t){n1(t)}}gt.prototype._fillFunc=e$,gt.prototype._strokeFunc=t$,gt.prototype._fillFuncHit=n$,gt.prototype._strokeFuncHit=r$,gt.prototype._centroid=!1,gt.prototype.nodeType="Shape",sa(gt),gt.prototype.eventListeners={},gt.prototype.on.call(gt.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",i$),gt.prototype.on.call(gt.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",a$),gt.prototype.on.call(gt.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",o$),gt.prototype.on.call(gt.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",s$),gt.prototype.on.call(gt.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",l$),he.addGetterSetter(gt,"stroke",void 0,vR()),he.addGetterSetter(gt,"strokeWidth",2,Ct()),he.addGetterSetter(gt,"fillAfterStrokeEnabled",!1),he.addGetterSetter(gt,"hitStrokeWidth","auto",Qk()),he.addGetterSetter(gt,"strokeHitEnabled",!0,Oc()),he.addGetterSetter(gt,"perfectDrawEnabled",!0,Oc()),he.addGetterSetter(gt,"shadowForStrokeEnabled",!0,Oc()),he.addGetterSetter(gt,"lineJoin"),he.addGetterSetter(gt,"lineCap"),he.addGetterSetter(gt,"sceneFunc"),he.addGetterSetter(gt,"hitFunc"),he.addGetterSetter(gt,"dash"),he.addGetterSetter(gt,"dashOffset",0,Ct()),he.addGetterSetter(gt,"shadowColor",void 0,c0()),he.addGetterSetter(gt,"shadowBlur",0,Ct()),he.addGetterSetter(gt,"shadowOpacity",1,Ct()),he.addComponentsGetterSetter(gt,"shadowOffset",["x","y"]),he.addGetterSetter(gt,"shadowOffsetX",0,Ct()),he.addGetterSetter(gt,"shadowOffsetY",0,Ct()),he.addGetterSetter(gt,"fillPatternImage"),he.addGetterSetter(gt,"fill",void 0,vR()),he.addGetterSetter(gt,"fillPatternX",0,Ct()),he.addGetterSetter(gt,"fillPatternY",0,Ct()),he.addGetterSetter(gt,"fillLinearGradientColorStops"),he.addGetterSetter(gt,"strokeLinearGradientColorStops"),he.addGetterSetter(gt,"fillRadialGradientStartRadius",0),he.addGetterSetter(gt,"fillRadialGradientEndRadius",0),he.addGetterSetter(gt,"fillRadialGradientColorStops"),he.addGetterSetter(gt,"fillPatternRepeat","repeat"),he.addGetterSetter(gt,"fillEnabled",!0),he.addGetterSetter(gt,"strokeEnabled",!0),he.addGetterSetter(gt,"shadowEnabled",!0),he.addGetterSetter(gt,"dashEnabled",!0),he.addGetterSetter(gt,"strokeScaleEnabled",!0),he.addGetterSetter(gt,"fillPriority","color"),he.addComponentsGetterSetter(gt,"fillPatternOffset",["x","y"]),he.addGetterSetter(gt,"fillPatternOffsetX",0,Ct()),he.addGetterSetter(gt,"fillPatternOffsetY",0,Ct()),he.addComponentsGetterSetter(gt,"fillPatternScale",["x","y"]),he.addGetterSetter(gt,"fillPatternScaleX",1,Ct()),he.addGetterSetter(gt,"fillPatternScaleY",1,Ct()),he.addComponentsGetterSetter(gt,"fillLinearGradientStartPoint",["x","y"]),he.addComponentsGetterSetter(gt,"strokeLinearGradientStartPoint",["x","y"]),he.addGetterSetter(gt,"fillLinearGradientStartPointX",0),he.addGetterSetter(gt,"strokeLinearGradientStartPointX",0),he.addGetterSetter(gt,"fillLinearGradientStartPointY",0),he.addGetterSetter(gt,"strokeLinearGradientStartPointY",0),he.addComponentsGetterSetter(gt,"fillLinearGradientEndPoint",["x","y"]),he.addComponentsGetterSetter(gt,"strokeLinearGradientEndPoint",["x","y"]),he.addGetterSetter(gt,"fillLinearGradientEndPointX",0),he.addGetterSetter(gt,"strokeLinearGradientEndPointX",0),he.addGetterSetter(gt,"fillLinearGradientEndPointY",0),he.addGetterSetter(gt,"strokeLinearGradientEndPointY",0),he.addComponentsGetterSetter(gt,"fillRadialGradientStartPoint",["x","y"]),he.addGetterSetter(gt,"fillRadialGradientStartPointX",0),he.addGetterSetter(gt,"fillRadialGradientStartPointY",0),he.addComponentsGetterSetter(gt,"fillRadialGradientEndPoint",["x","y"]),he.addGetterSetter(gt,"fillRadialGradientEndPointX",0),he.addGetterSetter(gt,"fillRadialGradientEndPointY",0),he.addGetterSetter(gt,"fillPatternRotation",0),he.backCompat(gt,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"});var u$="#",c$="beforeDraw",d$="draw",WR=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],f$=WR.length;let rv=class extends Xl{constructor(t){super(t),this.canvas=new d0,this.hitCanvas=new Zk({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);var n=this.getStage();return n&&n.content&&(n.content.removeChild(this.getNativeCanvasElement()),t<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[t+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement())),this}moveToTop(){Tt.prototype.moveToTop.call(this);var t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.appendChild(this.getNativeCanvasElement())),!0}moveUp(){var t=Tt.prototype.moveUp.call(this);if(!t)return!1;var n=this.getStage();return!n||!n.content?!1:(n.content.removeChild(this.getNativeCanvasElement()),this.index<n.children.length-1?n.content.insertBefore(this.getNativeCanvasElement(),n.children[this.index+1].getCanvas()._canvas):n.content.appendChild(this.getNativeCanvasElement()),!0)}moveDown(){if(Tt.prototype.moveDown.call(this)){var t=this.getStage();if(t){var n=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),n[this.index+1].getCanvas()._canvas))}return!0}return!1}moveToBottom(){if(Tt.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var n=t.children;t.content&&(t.content.removeChild(this.getNativeCanvasElement()),t.content.insertBefore(this.getNativeCanvasElement(),n[1].getCanvas()._canvas))}return!0}return!1}getLayer(){return this}remove(){var t=this.getNativeCanvasElement();return Tt.prototype.remove.call(this),t&&t.parentNode&&_e._isInDocument(t)&&t.parentNode.removeChild(t),this}getStage(){return this.parent}setSize({width:t,height:n}){return this.canvas.setSize(t,n),this.hitCanvas.setSize(t,n),this._setSmoothEnabled(),this}_validateAdd(t){var n=t.getType();n!=="Group"&&n!=="Shape"&&_e.throw("You may only add groups and shapes to a layer.")}_toKonvaCanvas(t){return t=t||{},t.width=t.width||this.getWidth(),t.height=t.height||this.getHeight(),t.x=t.x!==void 0?t.x:this.x(),t.y=t.y!==void 0?t.y:this.y(),Tt.prototype._toKonvaCanvas.call(this,t)}_checkVisibility(){this.visible()?this.canvas._canvas.style.display="block":this.canvas._canvas.style.display="none"}_setSmoothEnabled(){this.getContext()._context.imageSmoothingEnabled=this.imageSmoothingEnabled()}getWidth(){if(this.parent)return this.parent.width()}setWidth(){_e.warn('Can not change width of layer. Use "stage.width(value)" function instead.')}getHeight(){if(this.parent)return this.parent.height()}setHeight(){_e.warn('Can not change height of layer. Use "stage.height(value)" function instead.')}batchDraw(){return this._waitingForDraw||(this._waitingForDraw=!0,_e.requestAnimFrame(()=>{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;for(var n=1,r=!1;;){for(let i=0;i<f$;i++){const a=WR[i],o=this._getIntersection({x:t.x+a.x*n,y:t.y+a.y*n}),l=o.shape;if(l)return l;if(r=!!o.antialiased,!o.antialiased)break}if(r)n+=1;else return null}}_getIntersection(t){const n=this.hitCanvas.pixelRatio,r=this.hitCanvas.context.getImageData(Math.round(t.x*n),Math.round(t.y*n),1,1).data,i=r[3];if(i===255){const a=_e._rgbToHex(r[0],r[1],r[2]),o=s1[u$+a];return o?{shape:o}:{antialiased:!0}}else if(i>0)return{antialiased:!0};return{}}drawScene(t,n){var r=this.getLayer(),i=t||r&&r.getCanvas();return this._fire(c$,{node:this}),this.clearBeforeDraw()&&i.getContext().clear(),Xl.prototype.drawScene.call(this,i,n),this._fire(d$,{node:this}),this}drawHit(t,n){var r=this.getLayer(),i=t||r&&r.hitCanvas;return r&&r.clearBeforeDraw()&&r.getHitCanvas().getContext().clear(),Xl.prototype.drawHit.call(this,i,n),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){_e.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return _e.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var t=this.parent,n=!!this.hitCanvas._canvas.parentNode;n?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}}destroy(){return _e.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};rv.prototype.nodeType="Layer",sa(rv),he.addGetterSetter(rv,"imageSmoothingEnabled",!0),he.addGetterSetter(rv,"clearBeforeDraw",!0),he.addGetterSetter(rv,"hitGraphEnabled",!0,Oc());class o4 extends rv{constructor(t){super(t),this.listening(!1),_e.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}o4.prototype.nodeType="FastLayer",sa(o4);let p0=class extends Xl{_validateAdd(t){var n=t.getType();n!=="Group"&&n!=="Shape"&&_e.throw("You may only add groups and shapes to groups.")}};p0.prototype.nodeType="Group",sa(p0);var s4=function(){return u0.performance&&u0.performance.now?function(){return u0.performance.now()}:function(){return new Date().getTime()}}();class Iu{constructor(t,n){this.id=Iu.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:s4(),frameRate:0},this.func=t,this.setLayers(n)}setLayers(t){var n=[];return t?t.length>0?n=t:n=[t]:n=[],this.layers=n,this}getLayers(){return this.layers}addLayer(t){var n=this.layers,r=n.length,i;for(i=0;i<r;i++)if(n[i]._id===t._id)return!1;return this.layers.push(t),!0}isRunning(){var t=Iu,n=t.animations,r=n.length,i;for(i=0;i<r;i++)if(n[i].id===this.id)return!0;return!1}start(){return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=s4(),Iu._addAnimation(this),this}stop(){return Iu._removeAnimation(this),this}_updateFrameObject(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}static _addAnimation(t){this.animations.push(t),this._handleAnimation()}static _removeAnimation(t){var n=t.id,r=this.animations,i=r.length,a;for(a=0;a<i;a++)if(r[a].id===n){this.animations.splice(a,1);break}}static _runFrames(){var t={},n=this.animations,r,i,a,o,l,c,d,p,g;for(o=0;o<n.length;o++)if(r=n[o],i=r.layers,a=r.func,r._updateFrameObject(s4()),c=i.length,a?g=a.call(r,r.frame)!==!1:g=!0,!!g)for(l=0;l<c;l++)d=i[l],d._id!==void 0&&(t[d._id]=d);for(p in t)t.hasOwnProperty(p)&&t[p].batchDraw()}static _animationLoop(){var t=Iu;t.animations.length?(t._runFrames(),_e.requestAnimFrame(t._animationLoop)):t.animRunning=!1}static _handleAnimation(){this.animRunning||(this.animRunning=!0,_e.requestAnimFrame(this._animationLoop))}}Iu.animations=[],Iu.animIdCounter=0,Iu.animRunning=!1;var h$={node:1,duration:1,easing:1,onFinish:1,yoyo:1},p$=1,qR=2,YR=3,m$=0,KR=["fill","stroke","shadowColor"];class v${constructor(t,n,r,i,a,o,l){this.prop=t,this.propFunc=n,this.begin=i,this._pos=i,this.duration=o,this._change=0,this.prevPos=0,this.yoyo=l,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=r,this._change=a-this.begin,this.pause()}fire(t){var n=this[t];n&&n()}setTime(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())}getTime(){return this._time}setPosition(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t}getPosition(t){return t===void 0&&(t=this._time),this.func(t,this.begin,this._change,this.duration)}play(){this.state=qR,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=YR,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var t=this.getTimer()-this._startTime;this.state===qR?this.setTime(t):this.state===YR&&this.setTime(this.duration-t)}pause(){this.state=p$,this.fire("onPause")}getTimer(){return new Date().getTime()}}class Ia{constructor(t){var n=this,r=t.node,i=r._id,a,o=t.easing||l1.Linear,l=!!t.yoyo,c;typeof t.duration>"u"?a=.3:t.duration===0?a=.001:a=t.duration,this.node=r,this._id=m$++;var d=r.getLayer()||(r instanceof Kt.Stage?r.getLayers():null);d||_e.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new Iu(function(){n.tween.onEnterFrame()},d),this.tween=new v$(c,function(p){n._tweenFunc(p)},o,0,1,a*1e3,l),this._addListeners(),Ia.attrs[i]||(Ia.attrs[i]={}),Ia.attrs[i][this._id]||(Ia.attrs[i][this._id]={}),Ia.tweens[i]||(Ia.tweens[i]={});for(c in t)h$[c]===void 0&&this._addAttr(c,t[c]);this.reset(),this.onFinish=t.onFinish,this.onReset=t.onReset,this.onUpdate=t.onUpdate}_addAttr(t,n){var r=this.node,i=r._id,a,o,l,c,d,p,g,S;if(l=Ia.tweens[i][t],l&&delete Ia.attrs[i][l][t],a=r.getAttr(t),_e._isArray(n))if(o=[],d=Math.max(n.length,a.length),t==="points"&&n.length!==a.length&&(n.length>a.length?(g=a,a=_e._prepareArrayForTween(a,n,r.closed())):(p=n,n=_e._prepareArrayForTween(n,a,r.closed()))),t.indexOf("fill")===0)for(c=0;c<d;c++)if(c%2===0)o.push(n[c]-a[c]);else{var w=_e.colorToRGBA(a[c]);S=_e.colorToRGBA(n[c]),a[c]=w,o.push({r:S.r-w.r,g:S.g-w.g,b:S.b-w.b,a:S.a-w.a})}else for(c=0;c<d;c++)o.push(n[c]-a[c]);else KR.indexOf(t)!==-1?(a=_e.colorToRGBA(a),S=_e.colorToRGBA(n),o={r:S.r-a.r,g:S.g-a.g,b:S.b-a.b,a:S.a-a.a}):o=n-a;Ia.attrs[i][this._id][t]={start:a,diff:o,end:n,trueEnd:p,trueStart:g},Ia.tweens[i][t]=this._id}_tweenFunc(t){var n=this.node,r=Ia.attrs[n._id][this._id],i,a,o,l,c,d,p,g;for(i in r){if(a=r[i],o=a.start,l=a.diff,g=a.end,_e._isArray(o))if(c=[],p=Math.max(o.length,g.length),i.indexOf("fill")===0)for(d=0;d<p;d++)d%2===0?c.push((o[d]||0)+l[d]*t):c.push("rgba("+Math.round(o[d].r+l[d].r*t)+","+Math.round(o[d].g+l[d].g*t)+","+Math.round(o[d].b+l[d].b*t)+","+(o[d].a+l[d].a*t)+")");else for(d=0;d<p;d++)c.push((o[d]||0)+l[d]*t);else KR.indexOf(i)!==-1?c="rgba("+Math.round(o.r+l.r*t)+","+Math.round(o.g+l.g*t)+","+Math.round(o.b+l.b*t)+","+(o.a+l.a*t)+")":c=o+l*t;n.setAttr(i,c)}}_addListeners(){this.tween.onPlay=()=>{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var t=this.node,n=Ia.attrs[t._id][this._id];n.points&&n.points.trueEnd&&t.setAttr("points",n.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var t=this.node,n=Ia.attrs[t._id][this._id];n.points&&n.points.trueStart&&t.points(n.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(t){return this.tween.seek(t*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var t=this.node._id,n=this._id,r=Ia.tweens[t],i;this.pause();for(i in r)delete Ia.tweens[t][i];delete Ia.attrs[t][n]}}Ia.attrs={},Ia.tweens={},Tt.prototype.to=function(e){var t=e.onFinish;e.node=this,e.onFinish=function(){this.destroy(),t&&t()};var n=new Ia(e);n.play()};const l1={BackEaseIn(e,t,n,r){var i=1.70158;return n*(e/=r)*e*((i+1)*e-i)+t},BackEaseOut(e,t,n,r){var i=1.70158;return n*((e=e/r-1)*e*((i+1)*e+i)+1)+t},BackEaseInOut(e,t,n,r){var i=1.70158;return(e/=r/2)<1?n/2*(e*e*(((i*=1.525)+1)*e-i))+t:n/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+t},ElasticEaseIn(e,t,n,r,i,a){var o=0;return e===0?t:(e/=r)===1?t+n:(a||(a=r*.3),!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),-(i*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/a))+t)},ElasticEaseOut(e,t,n,r,i,a){var o=0;return e===0?t:(e/=r)===1?t+n:(a||(a=r*.3),!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*e)*Math.sin((e*r-o)*(2*Math.PI)/a)+n+t)},ElasticEaseInOut(e,t,n,r,i,a){var o=0;return e===0?t:(e/=r/2)===2?t+n:(a||(a=r*(.3*1.5)),!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),e<1?-.5*(i*Math.pow(2,10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/a))+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-o)*(2*Math.PI)/a)*.5+n+t)},BounceEaseOut(e,t,n,r){return(e/=r)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t},BounceEaseIn(e,t,n,r){return n-l1.BounceEaseOut(r-e,0,n,r)+t},BounceEaseInOut(e,t,n,r){return e<r/2?l1.BounceEaseIn(e*2,0,n,r)*.5+t:l1.BounceEaseOut(e*2-r,0,n,r)*.5+n*.5+t},EaseIn(e,t,n,r){return n*(e/=r)*e+t},EaseOut(e,t,n,r){return-n*(e/=r)*(e-2)+t},EaseInOut(e,t,n,r){return(e/=r/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t},StrongEaseIn(e,t,n,r){return n*(e/=r)*e*e*e*e+t},StrongEaseOut(e,t,n,r){return n*((e=e/r-1)*e*e*e*e+1)+t},StrongEaseInOut(e,t,n,r){return(e/=r/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t},Linear(e,t,n,r){return n*e/r+t}},iv=_e._assign(Kt,{Util:_e,Transform:Kl,Node:Tt,Container:Xl,Stage:gw,stages:vw,Layer:rv,FastLayer:o4,Group:p0,DD:Ir,Shape:gt,shapes:s1,Animation:Iu,Tween:Ia,Easings:l1,Context:ow,Canvas:lw});class Qf extends gt{_sceneFunc(t){var n=Kt.getAngle(this.angle()),r=this.clockwise();t.beginPath(),t.arc(0,0,this.outerRadius(),0,n,r),t.arc(0,0,this.innerRadius(),n,0,!r),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}getSelfRect(){const t=this.innerRadius(),n=this.outerRadius(),r=this.clockwise(),i=Kt.getAngle(r?360-this.angle():this.angle()),a=Math.cos(Math.min(i,Math.PI)),o=1,l=Math.sin(Math.min(Math.max(Math.PI,i),3*Math.PI/2)),c=Math.sin(Math.min(i,Math.PI/2)),d=a*(a>0?t:n),p=o*n,g=l*(l>0?t:n),S=c*(c>0?n:t);return{x:d,y:r?-1*S:g,width:p-d,height:S-g}}}Qf.prototype._centroid=!0,Qf.prototype.className="Arc",Qf.prototype._attrsAffectingSize=["innerRadius","outerRadius"],sa(Qf),he.addGetterSetter(Qf,"innerRadius",0,Ct()),he.addGetterSetter(Qf,"outerRadius",0,Ct()),he.addGetterSetter(Qf,"angle",0,Ct()),he.addGetterSetter(Qf,"clockwise",!1,Oc());function l4(e,t,n,r,i,a,o){var l=Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2)),c=Math.sqrt(Math.pow(i-n,2)+Math.pow(a-r,2)),d=o*l/(l+c),p=o*c/(l+c),g=n-d*(i-e),S=r-d*(a-t),w=n+p*(i-e),C=r+p*(a-t);return[g,S,w,C]}function XR(e,t){var n=e.length,r=[],i,a;for(i=2;i<n-2;i+=2)a=l4(e[i-2],e[i-1],e[i],e[i+1],e[i+2],e[i+3],t),!isNaN(a[0])&&(r.push(a[0]),r.push(a[1]),r.push(e[i]),r.push(e[i+1]),r.push(a[2]),r.push(a[3]));return r}let Zf=class extends gt{constructor(t){super(t),this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")})}_sceneFunc(t){var n=this.points(),r=n.length,i=this.tension(),a=this.closed(),o=this.bezier(),l,c,d;if(r){if(t.beginPath(),t.moveTo(n[0],n[1]),i!==0&&r>4){for(l=this.getTensionPoints(),c=l.length,d=a?0:4,a||t.quadraticCurveTo(l[0],l[1],l[2],l[3]);d<c-2;)t.bezierCurveTo(l[d++],l[d++],l[d++],l[d++],l[d++],l[d++]);a||t.quadraticCurveTo(l[c-2],l[c-1],n[r-2],n[r-1])}else if(o)for(d=2;d<r;)t.bezierCurveTo(n[d++],n[d++],n[d++],n[d++],n[d++],n[d++]);else for(d=2;d<r;d+=2)t.lineTo(n[d],n[d+1]);a?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}}getTensionPoints(){return this._getCache("tensionPoints",this._getTensionPoints)}_getTensionPoints(){return this.closed()?this._getTensionPointsClosed():XR(this.points(),this.tension())}_getTensionPointsClosed(){var t=this.points(),n=t.length,r=this.tension(),i=l4(t[n-2],t[n-1],t[0],t[1],t[2],t[3],r),a=l4(t[n-4],t[n-3],t[n-2],t[n-1],t[0],t[1],r),o=XR(t,r),l=[i[2],i[3]].concat(o).concat([a[0],a[1],t[n-2],t[n-1],a[2],a[3],i[0],i[1],t[0],t[1]]);return l}getWidth(){return this.getSelfRect().width}getHeight(){return this.getSelfRect().height}getSelfRect(){var t=this.points();if(t.length<4)return{x:t[0]||0,y:t[1]||0,width:0,height:0};this.tension()!==0?t=[t[0],t[1],...this._getTensionPoints(),t[t.length-2],t[t.length-1]]:t=this.points();for(var n=t[0],r=t[0],i=t[1],a=t[1],o,l,c=0;c<t.length/2;c++)o=t[c*2],l=t[c*2+1],n=Math.min(n,o),r=Math.max(r,o),i=Math.min(i,l),a=Math.max(a,l);return{x:n,y:i,width:r-n,height:a-i}}};Zf.prototype.className="Line",Zf.prototype._attrsAffectingSize=["points","bezier","tension"],sa(Zf),he.addGetterSetter(Zf,"closed",!1),he.addGetterSetter(Zf,"bezier",!1),he.addGetterSetter(Zf,"tension",0,Ct()),he.addGetterSetter(Zf,"points",[],TJ());class ui extends gt{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this.dataArray=ui.parsePathData(this.data()),this.pathLength=0;for(var n=0;n<this.dataArray.length;++n)this.pathLength+=this.dataArray[n].pathLength;this.on("dataChange.konva",function(){this.dataArray=ui.parsePathData(this.data()),this.pathLength=0;for(var r=0;r<this.dataArray.length;++r)this.pathLength+=this.dataArray[r].pathLength})}_sceneFunc(t){var n=this.dataArray;t.beginPath();for(var r=!1,i=0;i<n.length;i++){var a=n[i].command,o=n[i].points;switch(a){case"L":t.lineTo(o[0],o[1]);break;case"M":t.moveTo(o[0],o[1]);break;case"C":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"Q":t.quadraticCurveTo(o[0],o[1],o[2],o[3]);break;case"A":var l=o[0],c=o[1],d=o[2],p=o[3],g=o[4],S=o[5],w=o[6],C=o[7],k=d>p?d:p,P=d>p?1:d/p,D=d>p?p/d:1;t.translate(l,c),t.rotate(w),t.scale(P,D),t.arc(0,0,k,g,g+S,1-C),t.scale(1/P,1/D),t.rotate(-w),t.translate(-l,-c);break;case"z":r=!0,t.closePath();break}}!r&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){var t=[];this.dataArray.forEach(function(d){if(d.command==="A"){var p=d.points[4],g=d.points[5],S=d.points[4]+g,w=Math.PI/180;if(Math.abs(p-S)<w&&(w=Math.abs(p-S)),g<0)for(let C=p-w;C>S;C-=w){const k=ui.getPointOnEllipticalArc(d.points[0],d.points[1],d.points[2],d.points[3],C,0);t.push(k.x,k.y)}else for(let C=p+w;C<S;C+=w){const k=ui.getPointOnEllipticalArc(d.points[0],d.points[1],d.points[2],d.points[3],C,0);t.push(k.x,k.y)}}else if(d.command==="C")for(let C=0;C<=1;C+=.01){const k=ui.getPointOnCubicBezier(C,d.start.x,d.start.y,d.points[0],d.points[1],d.points[2],d.points[3],d.points[4],d.points[5]);t.push(k.x,k.y)}else t=t.concat(d.points)});for(var n=t[0],r=t[0],i=t[1],a=t[1],o,l,c=0;c<t.length/2;c++)o=t[c*2],l=t[c*2+1],isNaN(o)||(n=Math.min(n,o),r=Math.max(r,o)),isNaN(l)||(i=Math.min(i,l),a=Math.max(a,l));return{x:n,y:i,width:r-n,height:a-i}}getLength(){return this.pathLength}getPointAtLength(t){var n,r=0,i=this.dataArray.length;if(!i)return null;for(;r<i&&t>this.dataArray[r].pathLength;)t-=this.dataArray[r].pathLength,++r;if(r===i)return n=this.dataArray[r-1].points.slice(-2),{x:n[0],y:n[1]};if(t<.01)return n=this.dataArray[r].points.slice(0,2),{x:n[0],y:n[1]};var a=this.dataArray[r],o=a.points;switch(a.command){case"L":return ui.getPointOnLine(t,a.start.x,a.start.y,o[0],o[1]);case"C":return ui.getPointOnCubicBezier(t/a.pathLength,a.start.x,a.start.y,o[0],o[1],o[2],o[3],o[4],o[5]);case"Q":return ui.getPointOnQuadraticBezier(t/a.pathLength,a.start.x,a.start.y,o[0],o[1],o[2],o[3]);case"A":var l=o[0],c=o[1],d=o[2],p=o[3],g=o[4],S=o[5],w=o[6];return g+=S*t/a.pathLength,ui.getPointOnEllipticalArc(l,c,d,p,g,w)}return null}static getLineLength(t,n,r,i){return Math.sqrt((r-t)*(r-t)+(i-n)*(i-n))}static getPointOnLine(t,n,r,i,a,o,l){o===void 0&&(o=n),l===void 0&&(l=r);var c=(a-r)/(i-n+1e-8),d=Math.sqrt(t*t/(1+c*c));i<n&&(d*=-1);var p=c*d,g;if(i===n)g={x:o,y:l+p};else if((l-r)/(o-n+1e-8)===c)g={x:o+d,y:l+p};else{var S,w,C=this.getLineLength(n,r,i,a),k=(o-n)*(i-n)+(l-r)*(a-r);k=k/(C*C),S=n+k*(i-n),w=r+k*(a-r);var P=this.getLineLength(o,l,S,w),D=Math.sqrt(t*t-P*P);d=Math.sqrt(D*D/(1+c*c)),i<n&&(d*=-1),p=c*d,g={x:S+d,y:w+p}}return g}static getPointOnCubicBezier(t,n,r,i,a,o,l,c,d){function p(P){return P*P*P}function g(P){return 3*P*P*(1-P)}function S(P){return 3*P*(1-P)*(1-P)}function w(P){return(1-P)*(1-P)*(1-P)}var C=c*p(t)+o*g(t)+i*S(t)+n*w(t),k=d*p(t)+l*g(t)+a*S(t)+r*w(t);return{x:C,y:k}}static getPointOnQuadraticBezier(t,n,r,i,a,o,l){function c(w){return w*w}function d(w){return 2*w*(1-w)}function p(w){return(1-w)*(1-w)}var g=o*c(t)+i*d(t)+n*p(t),S=l*c(t)+a*d(t)+r*p(t);return{x:g,y:S}}static getPointOnEllipticalArc(t,n,r,i,a,o){var l=Math.cos(o),c=Math.sin(o),d={x:r*Math.cos(a),y:i*Math.sin(a)};return{x:t+(d.x*l-d.y*c),y:n+(d.x*c+d.y*l)}}static parsePathData(t){if(!t)return[];var n=t,r=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];n=n.replace(new RegExp(" ","g"),",");for(var i=0;i<r.length;i++)n=n.replace(new RegExp(r[i],"g"),"|"+r[i]);var a=n.split("|"),o=[],l=[],c=0,d=0,p=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:e[-+]?\d+)?)/gi,g;for(i=1;i<a.length;i++){var S=a[i],w=S.charAt(0);for(S=S.slice(1),l.length=0;g=p.exec(S);)l.push(g[0]);for(var C=[],k=0,P=l.length;k<P;k++){if(l[k]==="00"){C.push(0,0);continue}var D=parseFloat(l[k]);isNaN(D)?C.push(0):C.push(D)}for(;C.length>0&&!isNaN(C[0]);){var M=null,R=[],L=c,z=d,U,V,Y,J,$,K,fe,X,G,te;switch(w){case"l":c+=C.shift(),d+=C.shift(),M="L",R.push(c,d);break;case"L":c=C.shift(),d=C.shift(),R.push(c,d);break;case"m":var re=C.shift(),oe=C.shift();if(c+=re,d+=oe,M="M",o.length>2&&o[o.length-1].command==="z"){for(var ie=o.length-2;ie>=0;ie--)if(o[ie].command==="M"){c=o[ie].points[0]+re,d=o[ie].points[1]+oe;break}}R.push(c,d),w="l";break;case"M":c=C.shift(),d=C.shift(),M="M",R.push(c,d),w="L";break;case"h":c+=C.shift(),M="L",R.push(c,d);break;case"H":c=C.shift(),M="L",R.push(c,d);break;case"v":d+=C.shift(),M="L",R.push(c,d);break;case"V":d=C.shift(),M="L",R.push(c,d);break;case"C":R.push(C.shift(),C.shift(),C.shift(),C.shift()),c=C.shift(),d=C.shift(),R.push(c,d);break;case"c":R.push(c+C.shift(),d+C.shift(),c+C.shift(),d+C.shift()),c+=C.shift(),d+=C.shift(),M="C",R.push(c,d);break;case"S":V=c,Y=d,U=o[o.length-1],U.command==="C"&&(V=c+(c-U.points[2]),Y=d+(d-U.points[3])),R.push(V,Y,C.shift(),C.shift()),c=C.shift(),d=C.shift(),M="C",R.push(c,d);break;case"s":V=c,Y=d,U=o[o.length-1],U.command==="C"&&(V=c+(c-U.points[2]),Y=d+(d-U.points[3])),R.push(V,Y,c+C.shift(),d+C.shift()),c+=C.shift(),d+=C.shift(),M="C",R.push(c,d);break;case"Q":R.push(C.shift(),C.shift()),c=C.shift(),d=C.shift(),R.push(c,d);break;case"q":R.push(c+C.shift(),d+C.shift()),c+=C.shift(),d+=C.shift(),M="Q",R.push(c,d);break;case"T":V=c,Y=d,U=o[o.length-1],U.command==="Q"&&(V=c+(c-U.points[0]),Y=d+(d-U.points[1])),c=C.shift(),d=C.shift(),M="Q",R.push(V,Y,c,d);break;case"t":V=c,Y=d,U=o[o.length-1],U.command==="Q"&&(V=c+(c-U.points[0]),Y=d+(d-U.points[1])),c+=C.shift(),d+=C.shift(),M="Q",R.push(V,Y,c,d);break;case"A":J=C.shift(),$=C.shift(),K=C.shift(),fe=C.shift(),X=C.shift(),G=c,te=d,c=C.shift(),d=C.shift(),M="A",R=this.convertEndpointToCenterParameterization(G,te,c,d,fe,X,J,$,K);break;case"a":J=C.shift(),$=C.shift(),K=C.shift(),fe=C.shift(),X=C.shift(),G=c,te=d,c+=C.shift(),d+=C.shift(),M="A",R=this.convertEndpointToCenterParameterization(G,te,c,d,fe,X,J,$,K);break}o.push({command:M||w,points:R,start:{x:L,y:z},pathLength:this.calcLength(L,z,M||w,R)})}(w==="z"||w==="Z")&&o.push({command:"z",points:[],start:void 0,pathLength:0})}return o}static calcLength(t,n,r,i){var a,o,l,c,d=ui;switch(r){case"L":return d.getLineLength(t,n,i[0],i[1]);case"C":for(a=0,o=d.getPointOnCubicBezier(0,t,n,i[0],i[1],i[2],i[3],i[4],i[5]),c=.01;c<=1;c+=.01)l=d.getPointOnCubicBezier(c,t,n,i[0],i[1],i[2],i[3],i[4],i[5]),a+=d.getLineLength(o.x,o.y,l.x,l.y),o=l;return a;case"Q":for(a=0,o=d.getPointOnQuadraticBezier(0,t,n,i[0],i[1],i[2],i[3]),c=.01;c<=1;c+=.01)l=d.getPointOnQuadraticBezier(c,t,n,i[0],i[1],i[2],i[3]),a+=d.getLineLength(o.x,o.y,l.x,l.y),o=l;return a;case"A":a=0;var p=i[4],g=i[5],S=i[4]+g,w=Math.PI/180;if(Math.abs(p-S)<w&&(w=Math.abs(p-S)),o=d.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],p,0),g<0)for(c=p-w;c>S;c-=w)l=d.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),a+=d.getLineLength(o.x,o.y,l.x,l.y),o=l;else for(c=p+w;c<S;c+=w)l=d.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),a+=d.getLineLength(o.x,o.y,l.x,l.y),o=l;return l=d.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],S,0),a+=d.getLineLength(o.x,o.y,l.x,l.y),a}return 0}static convertEndpointToCenterParameterization(t,n,r,i,a,o,l,c,d){var p=d*(Math.PI/180),g=Math.cos(p)*(t-r)/2+Math.sin(p)*(n-i)/2,S=-1*Math.sin(p)*(t-r)/2+Math.cos(p)*(n-i)/2,w=g*g/(l*l)+S*S/(c*c);w>1&&(l*=Math.sqrt(w),c*=Math.sqrt(w));var C=Math.sqrt((l*l*(c*c)-l*l*(S*S)-c*c*(g*g))/(l*l*(S*S)+c*c*(g*g)));a===o&&(C*=-1),isNaN(C)&&(C=0);var k=C*l*S/c,P=C*-c*g/l,D=(t+r)/2+Math.cos(p)*k-Math.sin(p)*P,M=(n+i)/2+Math.sin(p)*k+Math.cos(p)*P,R=function($){return Math.sqrt($[0]*$[0]+$[1]*$[1])},L=function($,K){return($[0]*K[0]+$[1]*K[1])/(R($)*R(K))},z=function($,K){return($[0]*K[1]<$[1]*K[0]?-1:1)*Math.acos(L($,K))},U=z([1,0],[(g-k)/l,(S-P)/c]),V=[(g-k)/l,(S-P)/c],Y=[(-1*g-k)/l,(-1*S-P)/c],J=z(V,Y);return L(V,Y)<=-1&&(J=Math.PI),L(V,Y)>=1&&(J=0),o===0&&J>0&&(J=J-2*Math.PI),o===1&&J<0&&(J=J+2*Math.PI),[D,M,l,c,U,J,p,o]}}ui.prototype.className="Path",ui.prototype._attrsAffectingSize=["data"],sa(ui),he.addGetterSetter(ui,"data");class av extends Zf{_sceneFunc(t){super._sceneFunc(t);var n=Math.PI*2,r=this.points(),i=r,a=this.tension()!==0&&r.length>4;a&&(i=this.getTensionPoints());var o=this.pointerLength(),l=r.length,c,d;if(a){const S=[i[i.length-4],i[i.length-3],i[i.length-2],i[i.length-1],r[l-2],r[l-1]],w=ui.calcLength(i[i.length-4],i[i.length-3],"C",S),C=ui.getPointOnQuadraticBezier(Math.min(1,1-o/w),S[0],S[1],S[2],S[3],S[4],S[5]);c=r[l-2]-C.x,d=r[l-1]-C.y}else c=r[l-2]-r[l-4],d=r[l-1]-r[l-3];var p=(Math.atan2(d,c)+n)%n,g=this.pointerWidth();this.pointerAtEnding()&&(t.save(),t.beginPath(),t.translate(r[l-2],r[l-1]),t.rotate(p),t.moveTo(0,0),t.lineTo(-o,g/2),t.lineTo(-o,-g/2),t.closePath(),t.restore(),this.__fillStroke(t)),this.pointerAtBeginning()&&(t.save(),t.beginPath(),t.translate(r[0],r[1]),a?(c=(i[0]+i[2])/2-r[0],d=(i[1]+i[3])/2-r[1]):(c=r[2]-r[0],d=r[3]-r[1]),t.rotate((Math.atan2(-d,-c)+n)%n),t.moveTo(0,0),t.lineTo(-o,g/2),t.lineTo(-o,-g/2),t.closePath(),t.restore(),this.__fillStroke(t))}__fillStroke(t){var n=this.dashEnabled();n&&(this.attrs.dashEnabled=!1,t.setLineDash([])),t.fillStrokeShape(this),n&&(this.attrs.dashEnabled=!0)}getSelfRect(){const t=super.getSelfRect(),n=this.pointerWidth()/2;return{x:t.x-n,y:t.y-n,width:t.width+n*2,height:t.height+n*2}}}av.prototype.className="Arrow",sa(av),he.addGetterSetter(av,"pointerLength",10,Ct()),he.addGetterSetter(av,"pointerWidth",10,Ct()),he.addGetterSetter(av,"pointerAtBeginning",!1),he.addGetterSetter(av,"pointerAtEnding",!0);let m0=class extends gt{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}};m0.prototype._centroid=!0,m0.prototype.className="Circle",m0.prototype._attrsAffectingSize=["radius"],sa(m0),he.addGetterSetter(m0,"radius",0,Ct());class bp extends gt{_sceneFunc(t){var n=this.radiusX(),r=this.radiusY();t.beginPath(),t.save(),n!==r&&t.scale(1,r/n),t.arc(0,0,n,0,Math.PI*2,!1),t.restore(),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(t){this.radiusX(t/2)}setHeight(t){this.radiusY(t/2)}}bp.prototype.className="Ellipse",bp.prototype._centroid=!0,bp.prototype._attrsAffectingSize=["radiusX","radiusY"],sa(bp),he.addComponentsGetterSetter(bp,"radius",["x","y"]),he.addGetterSetter(bp,"radiusX",0,Ct()),he.addGetterSetter(bp,"radiusY",0,Ct());let Ad=class fq extends gt{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(t){const n=this.getWidth(),r=this.getHeight(),i=this.cornerRadius(),a=this.attrs.image;let o;if(a){const l=this.attrs.cropWidth,c=this.attrs.cropHeight;l&&c?o=[a,this.cropX(),this.cropY(),l,c,0,0,n,r]:o=[a,0,0,n,r]}(this.hasFill()||this.hasStroke()||i)&&(t.beginPath(),i?_e.drawRoundedRectPath(t,n,r,i):t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)),a&&(i&&t.clip(),t.drawImage.apply(t,o))}_hitFunc(t){var n=this.width(),r=this.height(),i=this.cornerRadius();t.beginPath(),i?_e.drawRoundedRectPath(t,n,r,i):t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,n;return(t=this.attrs.width)!==null&&t!==void 0?t:(n=this.image())===null||n===void 0?void 0:n.width}getHeight(){var t,n;return(t=this.attrs.height)!==null&&t!==void 0?t:(n=this.image())===null||n===void 0?void 0:n.height}static fromURL(t,n,r=null){var i=_e.createImageElement();i.onload=function(){var a=new fq({image:i});n(a)},i.onerror=r,i.crossOrigin="Anonymous",i.src=t}};Ad.prototype.className="Image",sa(Ad),he.addGetterSetter(Ad,"cornerRadius",0,Xk(4)),he.addGetterSetter(Ad,"image"),he.addComponentsGetterSetter(Ad,"crop",["x","y","width","height"]),he.addGetterSetter(Ad,"cropX",0,Ct()),he.addGetterSetter(Ad,"cropY",0,Ct()),he.addGetterSetter(Ad,"cropWidth",0,Ct()),he.addGetterSetter(Ad,"cropHeight",0,Ct());var QR=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],g$="Change.konva",y$="none",u4="up",c4="right",d4="down",f4="left",b$=QR.length;class h4 extends p0{constructor(t){super(t),this.on("add.konva",function(n){this._addListeners(n.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(t){var n=this,r,i=function(){n._sync()};for(r=0;r<b$;r++)t.on(QR[r]+g$,i)}getWidth(){return this.getText().width()}getHeight(){return this.getText().height()}_sync(){var t=this.getText(),n=this.getTag(),r,i,a,o,l,c,d;if(t&&n){switch(r=t.width(),i=t.height(),a=n.pointerDirection(),o=n.pointerWidth(),d=n.pointerHeight(),l=0,c=0,a){case u4:l=r/2,c=-1*d;break;case c4:l=r+o,c=i/2;break;case d4:l=r/2,c=i+d;break;case f4:l=-1*o,c=i/2;break}n.setAttrs({x:-1*l,y:-1*c,width:r,height:i}),t.setAttrs({x:-1*l,y:-1*c})}}}h4.prototype.className="Label",sa(h4);class ov extends gt{_sceneFunc(t){var n=this.width(),r=this.height(),i=this.pointerDirection(),a=this.pointerWidth(),o=this.pointerHeight(),l=this.cornerRadius();let c=0,d=0,p=0,g=0;typeof l=="number"?c=d=p=g=Math.min(l,n/2,r/2):(c=Math.min(l[0]||0,n/2,r/2),d=Math.min(l[1]||0,n/2,r/2),g=Math.min(l[2]||0,n/2,r/2),p=Math.min(l[3]||0,n/2,r/2)),t.beginPath(),t.moveTo(c,0),i===u4&&(t.lineTo((n-a)/2,0),t.lineTo(n/2,-1*o),t.lineTo((n+a)/2,0)),t.lineTo(n-d,0),t.arc(n-d,d,d,Math.PI*3/2,0,!1),i===c4&&(t.lineTo(n,(r-o)/2),t.lineTo(n+a,r/2),t.lineTo(n,(r+o)/2)),t.lineTo(n,r-g),t.arc(n-g,r-g,g,0,Math.PI/2,!1),i===d4&&(t.lineTo((n+a)/2,r),t.lineTo(n/2,r+o),t.lineTo((n-a)/2,r)),t.lineTo(p,r),t.arc(p,r-p,p,Math.PI/2,Math.PI,!1),i===f4&&(t.lineTo(0,(r+o)/2),t.lineTo(-1*a,r/2),t.lineTo(0,(r-o)/2)),t.lineTo(0,c),t.arc(c,c,c,Math.PI,Math.PI*3/2,!1),t.closePath(),t.fillStrokeShape(this)}getSelfRect(){var t=0,n=0,r=this.pointerWidth(),i=this.pointerHeight(),a=this.pointerDirection(),o=this.width(),l=this.height();return a===u4?(n-=i,l+=i):a===d4?l+=i:a===f4?(t-=r*1.5,o+=r):a===c4&&(o+=r*1.5),{x:t,y:n,width:o,height:l}}}ov.prototype.className="Tag",sa(ov),he.addGetterSetter(ov,"pointerDirection",y$),he.addGetterSetter(ov,"pointerWidth",0,Ct()),he.addGetterSetter(ov,"pointerHeight",0,Ct()),he.addGetterSetter(ov,"cornerRadius",0,Xk(4));let u1=class extends gt{_sceneFunc(t){var n=this.cornerRadius(),r=this.width(),i=this.height();t.beginPath(),n?_e.drawRoundedRectPath(t,r,i,n):t.rect(0,0,r,i),t.closePath(),t.fillStrokeShape(this)}};u1.prototype.className="Rect",sa(u1),he.addGetterSetter(u1,"cornerRadius",0,Xk(4));class sv extends gt{_sceneFunc(t){const n=this._getPoints();t.beginPath(),t.moveTo(n[0].x,n[0].y);for(var r=1;r<n.length;r++)t.lineTo(n[r].x,n[r].y);t.closePath(),t.fillStrokeShape(this)}_getPoints(){const t=this.attrs.sides,n=this.attrs.radius||0,r=[];for(var i=0;i<t;i++)r.push({x:n*Math.sin(i*2*Math.PI/t),y:-1*n*Math.cos(i*2*Math.PI/t)});return r}getSelfRect(){const t=this._getPoints();var n=t[0].x,r=t[0].y,i=t[0].x,a=t[0].y;return t.forEach(o=>{n=Math.min(n,o.x),r=Math.max(r,o.x),i=Math.min(i,o.y),a=Math.max(a,o.y)}),{x:n,y:i,width:r-n,height:a-i}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}sv.prototype.className="RegularPolygon",sv.prototype._centroid=!0,sv.prototype._attrsAffectingSize=["radius"],sa(sv),he.addGetterSetter(sv,"radius",0,Ct()),he.addGetterSetter(sv,"sides",0,Ct());var ZR=Math.PI*2;class lv extends gt{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,ZR,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),ZR,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}lv.prototype.className="Ring",lv.prototype._centroid=!0,lv.prototype._attrsAffectingSize=["innerRadius","outerRadius"],sa(lv),he.addGetterSetter(lv,"innerRadius",0,Ct()),he.addGetterSetter(lv,"outerRadius",0,Ct());class Od extends gt{constructor(t){super(t),this._updated=!0,this.anim=new Iu(()=>{var n=this._updated;return this._updated=!1,n}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){var n=this.animation(),r=this.frameIndex(),i=r*4,a=this.animations()[n],o=this.frameOffsets(),l=a[i+0],c=a[i+1],d=a[i+2],p=a[i+3],g=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,d,p),t.closePath(),t.fillStrokeShape(this)),g)if(o){var S=o[n],w=r*2;t.drawImage(g,l,c,d,p,S[w+0],S[w+1],d,p)}else t.drawImage(g,l,c,d,p,0,0,d,p)}_hitFunc(t){var n=this.animation(),r=this.frameIndex(),i=r*4,a=this.animations()[n],o=this.frameOffsets(),l=a[i+2],c=a[i+3];if(t.beginPath(),o){var d=o[n],p=r*2;t.rect(d[p+0],d[p+1],l,c)}else t.rect(0,0,l,c);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var t=this.frameIndex(),n=this.animation(),r=this.animations(),i=r[n],a=i.length/4;t<a-1?this.frameIndex(t+1):this.frameIndex(0)}}Od.prototype.className="Sprite",sa(Od),he.addGetterSetter(Od,"animation"),he.addGetterSetter(Od,"animations"),he.addGetterSetter(Od,"frameOffsets"),he.addGetterSetter(Od,"image"),he.addGetterSetter(Od,"frameIndex",0,Ct()),he.addGetterSetter(Od,"frameRate",17,Ct()),he.backCompat(Od,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"});class Sp extends gt{_sceneFunc(t){var n=this.innerRadius(),r=this.outerRadius(),i=this.numPoints();t.beginPath(),t.moveTo(0,0-r);for(var a=1;a<i*2;a++){var o=a%2===0?r:n,l=o*Math.sin(a*Math.PI/i),c=-1*o*Math.cos(a*Math.PI/i);t.lineTo(l,c)}t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}Sp.prototype.className="Star",Sp.prototype._centroid=!0,Sp.prototype._attrsAffectingSize=["innerRadius","outerRadius"],sa(Sp),he.addGetterSetter(Sp,"numPoints",5,Ct()),he.addGetterSetter(Sp,"innerRadius",0,Ct()),he.addGetterSetter(Sp,"outerRadius",0,Ct());function JR(e){return Array.from(e)}var v0="auto",S$="center",c1="justify",x$="Change.konva",w$="2d",$R="-",eN="left",C$="text",E$="Text",_$="top",T$="bottom",tN="middle",nN="normal",k$="px ",bw=" ",P$="right",A$="word",O$="char",rN="none",p4="…",iN=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],D$=iN.length;function M$(e){return e.split(",").map(t=>{t=t.trim();const n=t.indexOf(" ")>=0,r=t.indexOf('"')>=0||t.indexOf("'")>=0;return n&&!r&&(t=`"${t}"`),t}).join(", ")}var Sw;function m4(){return Sw||(Sw=_e.createCanvasElement().getContext(w$),Sw)}function j$(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function I$(e){e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function R$(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}let la=class extends gt{constructor(t){super(R$(t)),this._partialTextX=0,this._partialTextY=0;for(var n=0;n<D$;n++)this.on(iN[n]+x$,this._setTextData);this._setTextData()}_sceneFunc(t){var n=this.textArr,r=n.length;if(this.text()){var i=this.padding(),a=this.fontSize(),o=this.lineHeight()*a,l=this.verticalAlign(),c=0,d=this.align(),p=this.getWidth(),g=this.letterSpacing(),S=this.fill(),w=this.textDecoration(),C=w.indexOf("underline")!==-1,k=w.indexOf("line-through")!==-1,P,D=0,D=o/2,M=0,R=0;for(t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",tN),t.setAttr("textAlign",eN),l===tN?c=(this.getHeight()-r*o-i*2)/2:l===T$&&(c=this.getHeight()-r*o-i*2),t.translate(i,c+i),P=0;P<r;P++){var M=0,R=0,L=n[P],z=L.text,U=L.width,V=L.lastInParagraph,Y,J,$;if(t.save(),d===P$?M+=p-U-i*2:d===S$&&(M+=(p-U-i*2)/2),C){t.save(),t.beginPath(),t.moveTo(M,D+R+Math.round(a/2)),Y=z.split(" ").length-1,J=Y===0,$=d===c1&&!V?p-i*2:U,t.lineTo(M+Math.round($),D+R+Math.round(a/2)),t.lineWidth=a/15;const re=this._getLinearGradient();t.strokeStyle=re||S,t.stroke(),t.restore()}if(k){t.save(),t.beginPath(),t.moveTo(M,D+R),Y=z.split(" ").length-1,J=Y===0,$=d===c1&&V&&!J?p-i*2:U,t.lineTo(M+Math.round($),D+R),t.lineWidth=a/15;const re=this._getLinearGradient();t.strokeStyle=re||S,t.stroke(),t.restore()}if(g!==0||d===c1){Y=z.split(" ").length-1;for(var K=JR(z),fe=0;fe<K.length;fe++){var X=K[fe];X===" "&&!V&&d===c1&&(M+=(p-i*2-U)/Y),this._partialTextX=M,this._partialTextY=D+R,this._partialText=X,t.fillStrokeShape(this),M+=this.measureSize(X).width+g}}else this._partialTextX=M,this._partialTextY=D+R,this._partialText=z,t.fillStrokeShape(this);t.restore(),r>1&&(D+=o)}}}_hitFunc(t){var n=this.getWidth(),r=this.getHeight();t.beginPath(),t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)}setText(t){var n=_e._isString(t)?t:t==null?"":t+"";return this._setAttr(C$,n),this}getWidth(){var t=this.attrs.width===v0||this.attrs.width===void 0;return t?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var t=this.attrs.height===v0||this.attrs.height===void 0;return t?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return _e.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(t){var n=m4(),r=this.fontSize(),i;return n.save(),n.font=this._getContextFont(),i=n.measureText(t),n.restore(),{width:i.width,height:r}}_getContextFont(){return this.fontStyle()+bw+this.fontVariant()+bw+(this.fontSize()+k$)+M$(this.fontFamily())}_addTextLine(t){this.align()===c1&&(t=t.trim());var r=this._getTextWidth(t);return this.textArr.push({text:t,width:r,lastInParagraph:!1})}_getTextWidth(t){var n=this.letterSpacing(),r=t.length;return m4().measureText(t).width+(r?n*(r-1):0)}_setTextData(){var t=this.text().split(`
|
||
`),n=+this.fontSize(),r=0,i=this.lineHeight()*n,a=this.attrs.width,o=this.attrs.height,l=a!==v0&&a!==void 0,c=o!==v0&&o!==void 0,d=this.padding(),p=a-d*2,g=o-d*2,S=0,w=this.wrap(),C=w!==rN,k=w!==O$&&C,P=this.ellipsis();this.textArr=[],m4().font=this._getContextFont();for(var D=P?this._getTextWidth(p4):0,M=0,R=t.length;M<R;++M){var L=t[M],z=this._getTextWidth(L);if(l&&z>p)for(;L.length>0;){for(var U=0,V=L.length,Y="",J=0;U<V;){var $=U+V>>>1,K=L.slice(0,$+1),fe=this._getTextWidth(K)+D;fe<=p?(U=$+1,Y=K,J=fe):V=$}if(Y){if(k){var X,G=L[Y.length],te=G===bw||G===$R;te&&J<=p?X=Y.length:X=Math.max(Y.lastIndexOf(bw),Y.lastIndexOf($R))+1,X>0&&(U=X,Y=Y.slice(0,U),J=this._getTextWidth(Y))}Y=Y.trimRight(),this._addTextLine(Y),r=Math.max(r,J),S+=i;var re=this._shouldHandleEllipsis(S);if(re){this._tryToAddEllipsisToLastLine();break}if(L=L.slice(U),L=L.trimLeft(),L.length>0&&(z=this._getTextWidth(L),z<=p)){this._addTextLine(L),S+=i,r=Math.max(r,z);break}}else break}else this._addTextLine(L),S+=i,r=Math.max(r,z),this._shouldHandleEllipsis(S)&&M<R-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),c&&S+i>g)break}this.textHeight=n,this.textWidth=r}_shouldHandleEllipsis(t){var n=+this.fontSize(),r=this.lineHeight()*n,i=this.attrs.height,a=i!==v0&&i!==void 0,o=this.padding(),l=i-o*2,c=this.wrap(),d=c!==rN;return!d||a&&t+r>l}_tryToAddEllipsisToLastLine(){var t=this.attrs.width,n=t!==v0&&t!==void 0,r=this.padding(),i=t-r*2,a=this.ellipsis(),o=this.textArr[this.textArr.length-1];if(!(!o||!a)){if(n){var l=this._getTextWidth(o.text+p4)<i;l||(o.text=o.text.slice(0,o.text.length-3))}this.textArr.splice(this.textArr.length-1,1),this._addTextLine(o.text+p4)}}getStrokeScaleEnabled(){return!0}};la.prototype._fillFunc=j$,la.prototype._strokeFunc=I$,la.prototype.className=E$,la.prototype._attrsAffectingSize=["text","fontSize","padding","wrap","lineHeight","letterSpacing"],sa(la),he.overWriteSetter(la,"width",Qk()),he.overWriteSetter(la,"height",Qk()),he.addGetterSetter(la,"fontFamily","Arial"),he.addGetterSetter(la,"fontSize",12,Ct()),he.addGetterSetter(la,"fontStyle",nN),he.addGetterSetter(la,"fontVariant",nN),he.addGetterSetter(la,"padding",0,Ct()),he.addGetterSetter(la,"align",eN),he.addGetterSetter(la,"verticalAlign",_$),he.addGetterSetter(la,"lineHeight",1,Ct()),he.addGetterSetter(la,"wrap",A$),he.addGetterSetter(la,"ellipsis",!1,Oc()),he.addGetterSetter(la,"letterSpacing",0,Ct()),he.addGetterSetter(la,"text","",c0()),he.addGetterSetter(la,"textDecoration","");var N$="",aN="normal";function oN(e){e.fillText(this.partialText,0,0)}function sN(e){e.strokeText(this.partialText,0,0)}class io extends gt{constructor(t){super(t),this.dummyCanvas=_e.createCanvasElement(),this.dataArray=[],this.dataArray=ui.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){this.dataArray=ui.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(),a=this.glyphInfo;n==="underline"&&t.beginPath();for(var o=0;o<a.length;o++){t.save();var l=a[o].p0;t.translate(l.x,l.y),t.rotate(a[o].rotation),this.partialText=a[o].text,t.fillStrokeShape(this),n==="underline"&&(o===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 a=n[i].p1;t.lineTo(a.x,a.y)}t.setAttr("lineWidth",this.fontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()}getTextWidth(){return this.textWidth}getTextHeight(){return _e.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}setText(t){return la.prototype.setText.call(this,t)}_getContextFont(){return la.prototype._getContextFont.call(this)}_getTextSize(t){var n=this.dummyCanvas,r=n.getContext("2d");r.save(),r.font=this._getContextFont();var i=r.measureText(t);return r.restore(),{width:i.width,height:parseInt(this.attrs.fontSize,10)}}_setTextData(){var t=this,n=this._getTextSize(this.attrs.text),r=this.letterSpacing(),i=this.align(),a=this.kerningFunc();this.textWidth=n.width,this.textHeight=n.height;var o=Math.max(this.textWidth+((this.attrs.text||"").length-1)*r,0);this.glyphInfo=[];for(var l=0,c=0;c<t.dataArray.length;c++)t.dataArray[c].pathLength>0&&(l+=t.dataArray[c].pathLength);var d=0;i==="center"&&(d=Math.max(0,l/2-o/2)),i==="right"&&(d=Math.max(0,l-o));for(var p=JR(this.text()),g=this.text().split(" ").length-1,S,w,C,k=-1,P=0,D=function(){P=0;for(var fe=t.dataArray,X=k+1;X<fe.length;X++){if(fe[X].pathLength>0)return k=X,fe[X];fe[X].command==="M"&&(S={x:fe[X].points[0],y:fe[X].points[1]})}return{}},M=function(fe){var X=t._getTextSize(fe).width+r;fe===" "&&i==="justify"&&(X+=(l-o)/g);var G=0,te=0;for(w=void 0;Math.abs(X-G)/X>.01&&te<20;){te++;for(var re=G;C===void 0;)C=D(),C&&re+C.pathLength<X&&(re+=C.pathLength,C=void 0);if(Object.keys(C).length===0||S===void 0)return;var oe=!1;switch(C.command){case"L":ui.getLineLength(S.x,S.y,C.points[0],C.points[1])>X?w=ui.getPointOnLine(X,S.x,S.y,C.points[0],C.points[1],S.x,S.y):C=void 0;break;case"A":var ie=C.points[4],le=C.points[5],ee=C.points[4]+le;P===0?P=ie+1e-8:X>G?P+=Math.PI/180*le/Math.abs(le):P-=Math.PI/360*le/Math.abs(le),(le<0&&P<ee||le>=0&&P>ee)&&(P=ee,oe=!0),w=ui.getPointOnEllipticalArc(C.points[0],C.points[1],C.points[2],C.points[3],P,C.points[6]);break;case"C":P===0?X>C.pathLength?P=1e-8:P=X/C.pathLength:X>G?P+=(X-G)/C.pathLength/2:P=Math.max(P-(G-X)/C.pathLength/2,0),P>1&&(P=1,oe=!0),w=ui.getPointOnCubicBezier(P,C.start.x,C.start.y,C.points[0],C.points[1],C.points[2],C.points[3],C.points[4],C.points[5]);break;case"Q":P===0?P=X/C.pathLength:X>G?P+=(X-G)/C.pathLength:P-=(G-X)/C.pathLength,P>1&&(P=1,oe=!0),w=ui.getPointOnQuadraticBezier(P,C.start.x,C.start.y,C.points[0],C.points[1],C.points[2],C.points[3]);break}w!==void 0&&(G=ui.getLineLength(S.x,S.y,w.x,w.y)),oe&&(oe=!1,C=void 0)}},R="C",L=t._getTextSize(R).width+r,z=d/L-1,U=0;U<z&&(M(R),!(S===void 0||w===void 0));U++)S=w;for(var V=0;V<p.length&&(M(p[V]),!(S===void 0||w===void 0));V++){var Y=ui.getLineLength(S.x,S.y,w.x,w.y),J=0;if(a)try{J=a(p[V-1],p[V])*this.fontSize()}catch{J=0}S.x+=J,w.x+=J,this.textWidth+=J;var $=ui.getPointOnLine(J+Y/2,S.x,S.y,w.x,w.y),K=Math.atan2(w.y-S.y,w.x-S.x);this.glyphInfo.push({transposeX:$.x,transposeY:$.y,text:p[V],rotation:K,p0:S,p1:w}),S=w}}getSelfRect(){if(!this.glyphInfo.length)return{x:0,y:0,width:0,height:0};var t=[];this.glyphInfo.forEach(function(p){t.push(p.p0.x),t.push(p.p0.y),t.push(p.p1.x),t.push(p.p1.y)});for(var n=t[0]||0,r=t[0]||0,i=t[1]||0,a=t[1]||0,o,l,c=0;c<t.length/2;c++)o=t[c*2],l=t[c*2+1],n=Math.min(n,o),r=Math.max(r,o),i=Math.min(i,l),a=Math.max(a,l);var d=this.fontSize();return{x:n-d/2,y:i-d/2,width:r-n+d,height:a-i+d}}destroy(){return _e.releaseCanvas(this.dummyCanvas),super.destroy()}}io.prototype._fillFunc=oN,io.prototype._strokeFunc=sN,io.prototype._fillFuncHit=oN,io.prototype._strokeFuncHit=sN,io.prototype.className="TextPath",io.prototype._attrsAffectingSize=["text","fontSize","data"],sa(io),he.addGetterSetter(io,"data"),he.addGetterSetter(io,"fontFamily","Arial"),he.addGetterSetter(io,"fontSize",12,Ct()),he.addGetterSetter(io,"fontStyle",aN),he.addGetterSetter(io,"align","left"),he.addGetterSetter(io,"letterSpacing",0,Ct()),he.addGetterSetter(io,"textBaseline","middle"),he.addGetterSetter(io,"fontVariant",aN),he.addGetterSetter(io,"text",N$),he.addGetterSetter(io,"textDecoration",null),he.addGetterSetter(io,"kerningFunc",null);var lN="tr-konva",L$=["resizeEnabledChange","rotateAnchorOffsetChange","rotateEnabledChange","enabledAnchorsChange","anchorSizeChange","borderEnabledChange","borderStrokeChange","borderStrokeWidthChange","borderDashChange","anchorStrokeChange","anchorStrokeWidthChange","anchorFillChange","anchorCornerRadiusChange","ignoreStrokeChange"].map(e=>e+`.${lN}`).join(" "),uN="nodesRect",z$=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],B$={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const F$="ontouchstart"in Kt._global;function U$(e,t){if(e==="rotater")return"crosshair";t+=_e.degToRad(B$[e]||0);var n=(_e.radToDeg(t)%360+360)%360;return _e._inRange(n,315+22.5,360)||_e._inRange(n,0,22.5)?"ns-resize":_e._inRange(n,45-22.5,45+22.5)?"nesw-resize":_e._inRange(n,90-22.5,90+22.5)?"ew-resize":_e._inRange(n,135-22.5,135+22.5)?"nwse-resize":_e._inRange(n,180-22.5,180+22.5)?"ns-resize":_e._inRange(n,225-22.5,225+22.5)?"nesw-resize":_e._inRange(n,270-22.5,270+22.5)?"ew-resize":_e._inRange(n,315-22.5,315+22.5)?"nwse-resize":(_e.error("Transformer has unknown angle for cursor detection: "+n),"pointer")}var xw=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"],cN=1e8;function V$(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function dN(e,t,n){const r=n.x+(e.x-n.x)*Math.cos(t)-(e.y-n.y)*Math.sin(t),i=n.y+(e.x-n.x)*Math.sin(t)+(e.y-n.y)*Math.cos(t);return Object.assign(Object.assign({},e),{rotation:e.rotation+t,x:r,y:i})}function H$(e,t){const n=V$(e);return dN(e,t,n)}function G$(e,t,n){let r=t;for(let i=0;i<e.length;i++){const a=Kt.getAngle(e[i]),o=Math.abs(a-t)%(Math.PI*2);Math.min(o,Math.PI*2-o)<n&&(r=a)}return r}let qr=class extends p0{constructor(t){super(t),this._transforming=!1,this._createElements(),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this.update=this.update.bind(this),this.on(L$,this.update),this.getNode()&&this.update()}attachTo(t){return this.setNode(t),this}setNode(t){return _e.warn("tr.setNode(shape), tr.node(shape) and tr.attachTo(shape) methods are deprecated. Please use tr.nodes(nodesArray) instead."),this.setNodes([t])}getNode(){return this._nodes&&this._nodes[0]}_getEventNamespace(){return lN+this._id}setNodes(t=[]){this._nodes&&this._nodes.length&&this.detach(),this._nodes=t,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(r=>{const i=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},a=r._attrsAffectingSize.map(o=>o+"Change."+this._getEventNamespace()).join(" ");r.on(a,i),r.on(z$.map(o=>o+`.${this._getEventNamespace()}`).join(" "),i),r.on(`absoluteTransformChange.${this._getEventNamespace()}`,i),this._proxyDrag(r)}),this._resetTransformCache();var n=!!this.findOne(".top-left");return n&&this.update(),this}_proxyDrag(t){let n;t.on(`dragstart.${this._getEventNamespace()}`,r=>{n=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(r,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,r=>{if(!n)return;const i=t.getAbsolutePosition(),a=i.x-n.x,o=i.y-n.y;this.nodes().forEach(l=>{if(l===t||l.isDragging())return;const c=l.getAbsolutePosition();l.setAbsolutePosition({x:c.x+a,y:c.y+o}),l.startDrag(r)}),n=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(uN),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(uN,this.__getNodeRect)}__getNodeShape(t,n=this.rotation(),r){var i=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),a=t.getAbsoluteScale(r),o=t.getAbsolutePosition(r),l=i.x*a.x-t.offsetX()*a.x,c=i.y*a.y-t.offsetY()*a.y;const d=(Kt.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),p={x:o.x+l*Math.cos(d)+c*Math.sin(-d),y:o.y+c*Math.cos(d)+l*Math.sin(d),width:i.width*a.x,height:i.height*a.y,rotation:d};return dN(p,-Kt.getAngle(n),{x:0,y:0})}__getNodeRect(){var t=this.getNode();if(!t)return{x:-cN,y:-cN,width:0,height:0,rotation:0};const n=[];this.nodes().map(d=>{const p=d.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var g=[{x:p.x,y:p.y},{x:p.x+p.width,y:p.y},{x:p.x+p.width,y:p.y+p.height},{x:p.x,y:p.y+p.height}],S=d.getAbsoluteTransform();g.forEach(function(w){var C=S.point(w);n.push(C)})});const r=new Kl;r.rotate(-Kt.getAngle(this.rotation()));var i,a,o,l;n.forEach(function(d){var p=r.point(d);i===void 0&&(i=o=p.x,a=l=p.y),i=Math.min(i,p.x),a=Math.min(a,p.y),o=Math.max(o,p.x),l=Math.max(l,p.y)}),r.invert();const c=r.point({x:i,y:a});return{x:c.x,y:c.y,width:o-i,height:l-a,rotation:Kt.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),xw.forEach(function(t){this._createAnchor(t)}.bind(this)),this._createAnchor("rotater")}_createAnchor(t){var n=new u1({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:F$?10:"auto"}),r=this;n.on("mousedown touchstart",function(i){r._handleMouseDown(i)}),n.on("dragstart",i=>{n.stopDrag(),i.cancelBubble=!0}),n.on("dragend",i=>{i.cancelBubble=!0}),n.on("mouseenter",()=>{var i=Kt.getAngle(this.rotation()),a=U$(t,i);n.getStage().content&&(n.getStage().content.style.cursor=a),this._cursorChange=!0}),n.on("mouseout",()=>{n.getStage().content&&(n.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(n)}_createBack(){var t=new gt({name:"back",width:0,height:0,draggable:!0,sceneFunc(n){var r=this.getParent(),i=r.padding();n.beginPath(),n.rect(-i,-i,this.width()+i*2,this.height()+i*2),n.moveTo(this.width()/2,-i),r.rotateEnabled()&&n.lineTo(this.width()/2,-r.rotateAnchorOffset()*_e._sign(this.height())-i),n.fillStrokeShape(this)},hitFunc:(n,r)=>{if(this.shouldOverdrawWholeArea()){var i=this.padding();n.beginPath(),n.rect(-i,-i,r.width()+i*2,r.height()+i*2),n.fillStrokeShape(r)}}});this.add(t),this._proxyDrag(t),t.on("dragstart",n=>{n.cancelBubble=!0}),t.on("dragmove",n=>{n.cancelBubble=!0}),t.on("dragend",n=>{n.cancelBubble=!0}),this.on("dragmove",n=>{this.update()})}_handleMouseDown(t){this._movingAnchorName=t.target.name().split(" ")[0];var n=this._getNodeRect(),r=n.width,i=n.height,a=Math.sqrt(Math.pow(r,2)+Math.pow(i,2));this.sin=Math.abs(i/a),this.cos=Math.abs(r/a),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var o=t.target.getAbsolutePosition(),l=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:l.x-o.x,y:l.y-o.y},this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(c=>{c._fire("transformstart",{evt:t.evt,target:c})})}_handleMouseMove(t){var n,r,i,a=this.findOne("."+this._movingAnchorName),o=a.getStage();o.setPointersPositions(t);const l=o.getPointerPosition();let c={x:l.x-this._anchorDragOffset.x,y:l.y-this._anchorDragOffset.y};const d=a.getAbsolutePosition();this.anchorDragBoundFunc()&&(c=this.anchorDragBoundFunc()(d,c,t)),a.setAbsolutePosition(c);const p=a.getAbsolutePosition();if(!(d.x===p.x&&d.y===p.y)){if(this._movingAnchorName==="rotater"){var g=this._getNodeRect();n=a.x()-g.width/2,r=-a.y()+g.height/2;let fe=Math.atan2(-r,n)+Math.PI/2;g.height<0&&(fe-=Math.PI);var S=Kt.getAngle(this.rotation());const X=S+fe,G=Kt.getAngle(this.rotationSnapTolerance()),re=G$(this.rotationSnaps(),X,G)-g.rotation,oe=H$(g,re);this._fitNodesInto(oe,t);return}var w=this.keepRatio()||t.shiftKey,M=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(w){var C=M?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(C.x-a.x(),2)+Math.pow(C.y-a.y(),2));var k=this.findOne(".top-left").x()>C.x?-1:1,P=this.findOne(".top-left").y()>C.y?-1:1;n=i*this.cos*k,r=i*this.sin*P,this.findOne(".top-left").x(C.x-n),this.findOne(".top-left").y(C.y-r)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(a.y());else if(this._movingAnchorName==="top-right"){if(w){var C=M?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(a.x()-C.x,2)+Math.pow(C.y-a.y(),2));var k=this.findOne(".top-right").x()<C.x?-1:1,P=this.findOne(".top-right").y()>C.y?-1:1;n=i*this.cos*k,r=i*this.sin*P,this.findOne(".top-right").x(C.x+n),this.findOne(".top-right").y(C.y-r)}var D=a.position();this.findOne(".top-left").y(D.y),this.findOne(".bottom-right").x(D.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(a.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(a.x());else if(this._movingAnchorName==="bottom-left"){if(w){var C=M?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(C.x-a.x(),2)+Math.pow(a.y()-C.y,2));var k=C.x<a.x()?-1:1,P=a.y()<C.y?-1:1;n=i*this.cos*k,r=i*this.sin*P,a.x(C.x-n),a.y(C.y+r)}D=a.position(),this.findOne(".top-left").x(D.x),this.findOne(".bottom-right").y(D.y)}else if(this._movingAnchorName==="bottom-center")this.findOne(".bottom-right").y(a.y());else if(this._movingAnchorName==="bottom-right"){if(w){var C=M?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-left").x(),y:this.findOne(".top-left").y()};i=Math.sqrt(Math.pow(a.x()-C.x,2)+Math.pow(a.y()-C.y,2));var k=this.findOne(".bottom-right").x()<C.x?-1:1,P=this.findOne(".bottom-right").y()<C.y?-1:1;n=i*this.cos*k,r=i*this.sin*P,this.findOne(".bottom-right").x(C.x+n),this.findOne(".bottom-right").y(C.y+r)}}else console.error(new Error("Wrong position argument of selection resizer: "+this._movingAnchorName));var M=this.centeredScaling()||t.altKey;if(M){var R=this.findOne(".top-left"),L=this.findOne(".bottom-right"),z=R.x(),U=R.y(),V=this.getWidth()-L.x(),Y=this.getHeight()-L.y();L.move({x:-z,y:-U}),R.move({x:V,y:Y})}var J=this.findOne(".top-left").getAbsolutePosition();n=J.x,r=J.y;var $=this.findOne(".bottom-right").x()-this.findOne(".top-left").x(),K=this.findOne(".bottom-right").y()-this.findOne(".top-left").y();this._fitNodesInto({x:n,y:r,width:$,height:K,rotation:Kt.getAngle(this.rotation())},t)}}_handleMouseUp(t){this._removeEvents(t)}getAbsoluteTransform(){return this.getTransform()}_removeEvents(t){if(this._transforming){this._transforming=!1,typeof window<"u"&&(window.removeEventListener("mousemove",this._handleMouseMove),window.removeEventListener("touchmove",this._handleMouseMove),window.removeEventListener("mouseup",this._handleMouseUp,!0),window.removeEventListener("touchend",this._handleMouseUp,!0));var n=this.getNode();this._fire("transformend",{evt:t,target:n}),n&&this._nodes.forEach(r=>{r._fire("transformend",{evt:t,target:r})}),this._movingAnchorName=null}}_fitNodesInto(t,n){var r=this._getNodeRect();const i=1;if(_e._inRange(t.width,-this.padding()*2-i,i)){this.update();return}if(_e._inRange(t.height,-this.padding()*2-i,i)){this.update();return}const a=this.flipEnabled();var o=new Kl;if(o.rotate(Kt.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const g=o.point({x:-this.padding()*2,y:0});if(t.x+=g.x,t.y+=g.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y,!a){this.update();return}}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const g=o.point({x:this.padding()*2,y:0});if(this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y,t.width+=this.padding()*2,!a){this.update();return}}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const g=o.point({x:0,y:-this.padding()*2});if(t.x+=g.x,t.y+=g.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y,t.height+=this.padding()*2,!a){this.update();return}}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const g=o.point({x:0,y:this.padding()*2});if(this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=g.x,this._anchorDragOffset.y-=g.y,t.height+=this.padding()*2,!a){this.update();return}}if(this.boundBoxFunc()){const g=this.boundBoxFunc()(r,t);g?t=g:_e.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const l=1e7,c=new Kl;c.translate(r.x,r.y),c.rotate(r.rotation),c.scale(r.width/l,r.height/l);const d=new Kl;d.translate(t.x,t.y),d.rotate(t.rotation),d.scale(t.width/l,t.height/l);const p=d.multiply(c.invert());this._nodes.forEach(g=>{var S;const w=g.getParent().getAbsoluteTransform(),C=g.getTransform().copy();C.translate(g.offsetX(),g.offsetY());const k=new Kl;k.multiply(w.copy().invert()).multiply(p).multiply(w).multiply(C);const P=k.decompose();g.setAttrs(P),this._fire("transform",{evt:n,target:g}),g._fire("transform",{evt:n,target:g}),(S=g.getLayer())===null||S===void 0||S.batchDraw()}),this.rotation(_e._getRotation(t.rotation)),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,n){this.findOne(t).setAttrs(n)}update(){var t,n=this._getNodeRect();this.rotation(_e._getRotation(n.rotation));var r=n.width,i=n.height,a=this.enabledAnchors(),o=this.resizeEnabled(),l=this.padding(),c=this.anchorSize();this.find("._anchor").forEach(d=>{d.setAttrs({width:c,height:c,offsetX:c/2,offsetY:c/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:c/2+l,offsetY:c/2+l,visible:o&&a.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:r/2,y:0,offsetY:c/2+l,visible:o&&a.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:r,y:0,offsetX:c/2-l,offsetY:c/2+l,visible:o&&a.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:c/2+l,visible:o&&a.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:r,y:i/2,offsetX:c/2-l,visible:o&&a.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:c/2+l,offsetY:c/2-l,visible:o&&a.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:r/2,y:i,offsetY:c/2-l,visible:o&&a.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:r,y:i,offsetX:c/2-l,offsetY:c/2-l,visible:o&&a.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:r/2,y:-this.rotateAnchorOffset()*_e._sign(i)-l,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:r,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),p0.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Tt.prototype.toObject.call(this)}clone(t){var n=Tt.prototype.clone.call(this,t);return n}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}};function W$(e){return e instanceof Array||_e.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){xw.indexOf(t)===-1&&_e.warn("Unknown anchor name: "+t+". Available names are: "+xw.join(", "))}),e||[]}qr.prototype.className="Transformer",sa(qr),he.addGetterSetter(qr,"enabledAnchors",xw,W$),he.addGetterSetter(qr,"flipEnabled",!0,Oc()),he.addGetterSetter(qr,"resizeEnabled",!0),he.addGetterSetter(qr,"anchorSize",10,Ct()),he.addGetterSetter(qr,"rotateEnabled",!0),he.addGetterSetter(qr,"rotationSnaps",[]),he.addGetterSetter(qr,"rotateAnchorOffset",50,Ct()),he.addGetterSetter(qr,"rotationSnapTolerance",5,Ct()),he.addGetterSetter(qr,"borderEnabled",!0),he.addGetterSetter(qr,"anchorStroke","rgb(0, 161, 255)"),he.addGetterSetter(qr,"anchorStrokeWidth",1,Ct()),he.addGetterSetter(qr,"anchorFill","white"),he.addGetterSetter(qr,"anchorCornerRadius",0,Ct()),he.addGetterSetter(qr,"borderStroke","rgb(0, 161, 255)"),he.addGetterSetter(qr,"borderStrokeWidth",1,Ct()),he.addGetterSetter(qr,"borderDash"),he.addGetterSetter(qr,"keepRatio",!0),he.addGetterSetter(qr,"centeredScaling",!1),he.addGetterSetter(qr,"ignoreStroke",!1),he.addGetterSetter(qr,"padding",0,Ct()),he.addGetterSetter(qr,"node"),he.addGetterSetter(qr,"nodes"),he.addGetterSetter(qr,"boundBoxFunc"),he.addGetterSetter(qr,"anchorDragBoundFunc"),he.addGetterSetter(qr,"shouldOverdrawWholeArea",!1),he.addGetterSetter(qr,"useSingleNodeRotation",!0),he.backCompat(qr,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});class Jf extends gt{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,Kt.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}Jf.prototype.className="Wedge",Jf.prototype._centroid=!0,Jf.prototype._attrsAffectingSize=["radius"],sa(Jf),he.addGetterSetter(Jf,"radius",0,Ct()),he.addGetterSetter(Jf,"angle",0,Ct()),he.addGetterSetter(Jf,"clockwise",!1),he.backCompat(Jf,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});function fN(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var q$=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],Y$=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function K$(e,t){var n=e.data,r=e.width,i=e.height,a,o,l,c,d,p,g,S,w,C,k,P,D,M,R,L,z,U,V,Y,J,$,K,fe,X=t+t+1,G=r-1,te=i-1,re=t+1,oe=re*(re+1)/2,ie=new fN,le=null,ee=ie,de=null,Fe=null,Pe=q$[t],Oe=Y$[t];for(l=1;l<X;l++)ee=ee.next=new fN,l===re&&(le=ee);for(ee.next=ie,g=p=0,o=0;o<i;o++){for(L=z=U=V=S=w=C=k=0,P=re*(Y=n[p]),D=re*(J=n[p+1]),M=re*($=n[p+2]),R=re*(K=n[p+3]),S+=oe*Y,w+=oe*J,C+=oe*$,k+=oe*K,ee=ie,l=0;l<re;l++)ee.r=Y,ee.g=J,ee.b=$,ee.a=K,ee=ee.next;for(l=1;l<re;l++)c=p+((G<l?G:l)<<2),S+=(ee.r=Y=n[c])*(fe=re-l),w+=(ee.g=J=n[c+1])*fe,C+=(ee.b=$=n[c+2])*fe,k+=(ee.a=K=n[c+3])*fe,L+=Y,z+=J,U+=$,V+=K,ee=ee.next;for(de=ie,Fe=le,a=0;a<r;a++)n[p+3]=K=k*Pe>>Oe,K!==0?(K=255/K,n[p]=(S*Pe>>Oe)*K,n[p+1]=(w*Pe>>Oe)*K,n[p+2]=(C*Pe>>Oe)*K):n[p]=n[p+1]=n[p+2]=0,S-=P,w-=D,C-=M,k-=R,P-=de.r,D-=de.g,M-=de.b,R-=de.a,c=g+((c=a+t+1)<G?c:G)<<2,L+=de.r=n[c],z+=de.g=n[c+1],U+=de.b=n[c+2],V+=de.a=n[c+3],S+=L,w+=z,C+=U,k+=V,de=de.next,P+=Y=Fe.r,D+=J=Fe.g,M+=$=Fe.b,R+=K=Fe.a,L-=Y,z-=J,U-=$,V-=K,Fe=Fe.next,p+=4;g+=r}for(a=0;a<r;a++){for(z=U=V=L=w=C=k=S=0,p=a<<2,P=re*(Y=n[p]),D=re*(J=n[p+1]),M=re*($=n[p+2]),R=re*(K=n[p+3]),S+=oe*Y,w+=oe*J,C+=oe*$,k+=oe*K,ee=ie,l=0;l<re;l++)ee.r=Y,ee.g=J,ee.b=$,ee.a=K,ee=ee.next;for(d=r,l=1;l<=t;l++)p=d+a<<2,S+=(ee.r=Y=n[p])*(fe=re-l),w+=(ee.g=J=n[p+1])*fe,C+=(ee.b=$=n[p+2])*fe,k+=(ee.a=K=n[p+3])*fe,L+=Y,z+=J,U+=$,V+=K,ee=ee.next,l<te&&(d+=r);for(p=a,de=ie,Fe=le,o=0;o<i;o++)c=p<<2,n[c+3]=K=k*Pe>>Oe,K>0?(K=255/K,n[c]=(S*Pe>>Oe)*K,n[c+1]=(w*Pe>>Oe)*K,n[c+2]=(C*Pe>>Oe)*K):n[c]=n[c+1]=n[c+2]=0,S-=P,w-=D,C-=M,k-=R,P-=de.r,D-=de.g,M-=de.b,R-=de.a,c=a+((c=o+re)<te?c:te)*r<<2,S+=L+=de.r=n[c],w+=z+=de.g=n[c+1],C+=U+=de.b=n[c+2],k+=V+=de.a=n[c+3],de=de.next,P+=Y=Fe.r,D+=J=Fe.g,M+=$=Fe.b,R+=K=Fe.a,L-=Y,z-=J,U-=$,V-=K,Fe=Fe.next,p+=r}}const X$=function(t){var n=Math.round(this.blurRadius());n>0&&K$(t,n)};he.addGetterSetter(Tt,"blurRadius",0,Ct(),he.afterSetFilter);const Q$=function(e){var t=this.brightness()*255,n=e.data,r=n.length,i;for(i=0;i<r;i+=4)n[i]+=t,n[i+1]+=t,n[i+2]+=t};he.addGetterSetter(Tt,"brightness",0,Ct(),he.afterSetFilter);const Z$=function(e){var t=Math.pow((this.contrast()+100)/100,2),n=e.data,r=n.length,i=150,a=150,o=150,l;for(l=0;l<r;l+=4)i=n[l],a=n[l+1],o=n[l+2],i/=255,i-=.5,i*=t,i+=.5,i*=255,a/=255,a-=.5,a*=t,a+=.5,a*=255,o/=255,o-=.5,o*=t,o+=.5,o*=255,i=i<0?0:i>255?255:i,a=a<0?0:a>255?255:a,o=o<0?0:o>255?255:o,n[l]=i,n[l+1]=a,n[l+2]=o};he.addGetterSetter(Tt,"contrast",0,Ct(),he.afterSetFilter);const J$=function(e){var t=this.embossStrength()*10,n=this.embossWhiteLevel()*255,r=this.embossDirection(),i=this.embossBlend(),a=0,o=0,l=e.data,c=e.width,d=e.height,p=c*4,g=d;switch(r){case"top-left":a=-1,o=-1;break;case"top":a=-1,o=0;break;case"top-right":a=-1,o=1;break;case"right":a=0,o=1;break;case"bottom-right":a=1,o=1;break;case"bottom":a=1,o=0;break;case"bottom-left":a=1,o=-1;break;case"left":a=0,o=-1;break;default:_e.error("Unknown emboss direction: "+r)}do{var S=(g-1)*p,w=a;g+w<1&&(w=0),g+w>d&&(w=0);var C=(g-1+w)*c*4,k=c;do{var P=S+(k-1)*4,D=o;k+D<1&&(D=0),k+D>c&&(D=0);var M=C+(k-1+D)*4,R=l[P]-l[M],L=l[P+1]-l[M+1],z=l[P+2]-l[M+2],U=R,V=U>0?U:-U,Y=L>0?L:-L,J=z>0?z:-z;if(Y>V&&(U=L),J>V&&(U=z),U*=t,i){var $=l[P]+U,K=l[P+1]+U,fe=l[P+2]+U;l[P]=$>255?255:$<0?0:$,l[P+1]=K>255?255:K<0?0:K,l[P+2]=fe>255?255:fe<0?0:fe}else{var X=n-U;X<0?X=0:X>255&&(X=255),l[P]=l[P+1]=l[P+2]=X}}while(--k)}while(--g)};he.addGetterSetter(Tt,"embossStrength",.5,Ct(),he.afterSetFilter),he.addGetterSetter(Tt,"embossWhiteLevel",.5,Ct(),he.afterSetFilter),he.addGetterSetter(Tt,"embossDirection","top-left",null,he.afterSetFilter),he.addGetterSetter(Tt,"embossBlend",!1,null,he.afterSetFilter);function v4(e,t,n,r,i){var a=n-t,o=i-r,l;return a===0?r+o/2:o===0?r:(l=(e-t)/a,l=o*l+r,l)}const $$=function(e){var t=e.data,n=t.length,r=t[0],i=r,a,o=t[1],l=o,c,d=t[2],p=d,g,S,w=this.enhance();if(w!==0){for(S=0;S<n;S+=4)a=t[S+0],a<r?r=a:a>i&&(i=a),c=t[S+1],c<o?o=c:c>l&&(l=c),g=t[S+2],g<d?d=g:g>p&&(p=g);i===r&&(i=255,r=0),l===o&&(l=255,o=0),p===d&&(p=255,d=0);var C,k,P,D,M,R,L,z,U;for(w>0?(k=i+w*(255-i),P=r-w*(r-0),M=l+w*(255-l),R=o-w*(o-0),z=p+w*(255-p),U=d-w*(d-0)):(C=(i+r)*.5,k=i+w*(i-C),P=r+w*(r-C),D=(l+o)*.5,M=l+w*(l-D),R=o+w*(o-D),L=(p+d)*.5,z=p+w*(p-L),U=d+w*(d-L)),S=0;S<n;S+=4)t[S+0]=v4(t[S+0],r,i,P,k),t[S+1]=v4(t[S+1],o,l,R,M),t[S+2]=v4(t[S+2],d,p,U,z)}};he.addGetterSetter(Tt,"enhance",0,Ct(),he.afterSetFilter);const eee=function(e){var t=e.data,n=t.length,r,i;for(r=0;r<n;r+=4)i=.34*t[r]+.5*t[r+1]+.16*t[r+2],t[r]=i,t[r+1]=i,t[r+2]=i};he.addGetterSetter(Tt,"hue",0,Ct(),he.afterSetFilter),he.addGetterSetter(Tt,"saturation",0,Ct(),he.afterSetFilter),he.addGetterSetter(Tt,"luminance",0,Ct(),he.afterSetFilter);const tee=function(e){var t=e.data,n=t.length,r=1,i=Math.pow(2,this.saturation()),a=Math.abs(this.hue()+360)%360,o=this.luminance()*127,l,c=r*i*Math.cos(a*Math.PI/180),d=r*i*Math.sin(a*Math.PI/180),p=.299*r+.701*c+.167*d,g=.587*r-.587*c+.33*d,S=.114*r-.114*c-.497*d,w=.299*r-.299*c-.328*d,C=.587*r+.413*c+.035*d,k=.114*r-.114*c+.293*d,P=.299*r-.3*c+1.25*d,D=.587*r-.586*c-1.05*d,M=.114*r+.886*c-.2*d,R,L,z,U;for(l=0;l<n;l+=4)R=t[l+0],L=t[l+1],z=t[l+2],U=t[l+3],t[l+0]=p*R+g*L+S*z+o,t[l+1]=w*R+C*L+k*z+o,t[l+2]=P*R+D*L+M*z+o,t[l+3]=U},nee=function(e){var t=e.data,n=t.length,r=Math.pow(2,this.value()),i=Math.pow(2,this.saturation()),a=Math.abs(this.hue()+360)%360,o,l=r*i*Math.cos(a*Math.PI/180),c=r*i*Math.sin(a*Math.PI/180),d=.299*r+.701*l+.167*c,p=.587*r-.587*l+.33*c,g=.114*r-.114*l-.497*c,S=.299*r-.299*l-.328*c,w=.587*r+.413*l+.035*c,C=.114*r-.114*l+.293*c,k=.299*r-.3*l+1.25*c,P=.587*r-.586*l-1.05*c,D=.114*r+.886*l-.2*c,M,R,L,z;for(o=0;o<n;o+=4)M=t[o+0],R=t[o+1],L=t[o+2],z=t[o+3],t[o+0]=d*M+p*R+g*L,t[o+1]=S*M+w*R+C*L,t[o+2]=k*M+P*R+D*L,t[o+3]=z};he.addGetterSetter(Tt,"hue",0,Ct(),he.afterSetFilter),he.addGetterSetter(Tt,"saturation",0,Ct(),he.afterSetFilter),he.addGetterSetter(Tt,"value",0,Ct(),he.afterSetFilter);const ree=function(e){var t=e.data,n=t.length,r;for(r=0;r<n;r+=4)t[r]=255-t[r],t[r+1]=255-t[r+1],t[r+2]=255-t[r+2]};var iee=function(e,t,n){var r=e.data,i=t.data,a=e.width,o=e.height,l=n.polarCenterX||a/2,c=n.polarCenterY||o/2,d,p,g,S=0,w=0,C=0,k=0,P,D=Math.sqrt(l*l+c*c);p=a-l,g=o-c,P=Math.sqrt(p*p+g*g),D=P>D?P:D;var M=o,R=a,L,z,U=360/R*Math.PI/180,V,Y;for(z=0;z<R;z+=1)for(V=Math.sin(z*U),Y=Math.cos(z*U),L=0;L<M;L+=1)p=Math.floor(l+D*L/M*Y),g=Math.floor(c+D*L/M*V),d=(g*a+p)*4,S=r[d+0],w=r[d+1],C=r[d+2],k=r[d+3],d=(z+L*a)*4,i[d+0]=S,i[d+1]=w,i[d+2]=C,i[d+3]=k},aee=function(e,t,n){var r=e.data,i=t.data,a=e.width,o=e.height,l=n.polarCenterX||a/2,c=n.polarCenterY||o/2,d,p,g,S,w,C=0,k=0,P=0,D=0,M,R=Math.sqrt(l*l+c*c);p=a-l,g=o-c,M=Math.sqrt(p*p+g*g),R=M>R?M:R;var L=o,z=a,U,V,Y=n.polarRotation||0,J,$;for(p=0;p<a;p+=1)for(g=0;g<o;g+=1)S=p-l,w=g-c,U=Math.sqrt(S*S+w*w)*L/R,V=(Math.atan2(w,S)*180/Math.PI+360+Y)%360,V=V*z/360,J=Math.floor(V),$=Math.floor(U),d=($*a+J)*4,C=r[d+0],k=r[d+1],P=r[d+2],D=r[d+3],d=(g*a+p)*4,i[d+0]=C,i[d+1]=k,i[d+2]=P,i[d+3]=D};const oee=function(e){var t=e.width,n=e.height,r,i,a,o,l,c,d,p,g,S,w=Math.round(this.kaleidoscopePower()),C=Math.round(this.kaleidoscopeAngle()),k=Math.floor(t*(C%360)/360);if(!(w<1)){var P=_e.createCanvasElement();P.width=t,P.height=n;var D=P.getContext("2d").getImageData(0,0,t,n);_e.releaseCanvas(P),iee(e,D,{polarCenterX:t/2,polarCenterY:n/2});for(var M=t/Math.pow(2,w);M<=8;)M=M*2,w-=1;M=Math.ceil(M);var R=M,L=0,z=R,U=1;for(k+M>t&&(L=R,z=0,U=-1),i=0;i<n;i+=1)for(r=L;r!==z;r+=U)a=Math.round(r+k)%t,g=(t*i+a)*4,l=D.data[g+0],c=D.data[g+1],d=D.data[g+2],p=D.data[g+3],S=(t*i+r)*4,D.data[S+0]=l,D.data[S+1]=c,D.data[S+2]=d,D.data[S+3]=p;for(i=0;i<n;i+=1)for(R=Math.floor(M),o=0;o<w;o+=1){for(r=0;r<R+1;r+=1)g=(t*i+r)*4,l=D.data[g+0],c=D.data[g+1],d=D.data[g+2],p=D.data[g+3],S=(t*i+R*2-r-1)*4,D.data[S+0]=l,D.data[S+1]=c,D.data[S+2]=d,D.data[S+3]=p;R*=2}aee(D,e,{polarRotation:0})}};he.addGetterSetter(Tt,"kaleidoscopePower",2,Ct(),he.afterSetFilter),he.addGetterSetter(Tt,"kaleidoscopeAngle",0,Ct(),he.afterSetFilter);function ww(e,t,n){var r=(n*e.width+t)*4,i=[];return i.push(e.data[r++],e.data[r++],e.data[r++],e.data[r++]),i}function d1(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2))}function see(e){for(var t=[0,0,0],n=0;n<e.length;n++)t[0]+=e[n][0],t[1]+=e[n][1],t[2]+=e[n][2];return t[0]/=e.length,t[1]/=e.length,t[2]/=e.length,t}function lee(e,t){var n=ww(e,0,0),r=ww(e,e.width-1,0),i=ww(e,0,e.height-1),a=ww(e,e.width-1,e.height-1),o=t||10;if(d1(n,r)<o&&d1(r,a)<o&&d1(a,i)<o&&d1(i,n)<o){for(var l=see([r,n,a,i]),c=[],d=0;d<e.width*e.height;d++){var p=d1(l,[e.data[d*4],e.data[d*4+1],e.data[d*4+2]]);c[d]=p<o?0:255}return c}}function uee(e,t){for(var n=0;n<e.width*e.height;n++)e.data[4*n+3]=t[n]}function cee(e,t,n){for(var r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],l=0;l<n;l++)for(var c=0;c<t;c++){for(var d=l*t+c,p=0,g=0;g<i;g++)for(var S=0;S<i;S++){var w=l+g-a,C=c+S-a;if(w>=0&&w<n&&C>=0&&C<t){var k=w*t+C,P=r[g*i+S];p+=e[k]*P}}o[d]=p===255*8?255:0}return o}function dee(e,t,n){for(var r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],l=0;l<n;l++)for(var c=0;c<t;c++){for(var d=l*t+c,p=0,g=0;g<i;g++)for(var S=0;S<i;S++){var w=l+g-a,C=c+S-a;if(w>=0&&w<n&&C>=0&&C<t){var k=w*t+C,P=r[g*i+S];p+=e[k]*P}}o[d]=p>=255*4?255:0}return o}function fee(e,t,n){for(var r=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],l=0;l<n;l++)for(var c=0;c<t;c++){for(var d=l*t+c,p=0,g=0;g<i;g++)for(var S=0;S<i;S++){var w=l+g-a,C=c+S-a;if(w>=0&&w<n&&C>=0&&C<t){var k=w*t+C,P=r[g*i+S];p+=e[k]*P}}o[d]=p}return o}const hee=function(e){var t=this.threshold(),n=lee(e,t);return n&&(n=cee(n,e.width,e.height),n=dee(n,e.width,e.height),n=fee(n,e.width,e.height),uee(e,n)),e};he.addGetterSetter(Tt,"threshold",0,Ct(),he.afterSetFilter);const pee=function(e){var t=this.noise()*255,n=e.data,r=n.length,i=t/2,a;for(a=0;a<r;a+=4)n[a+0]+=i-2*i*Math.random(),n[a+1]+=i-2*i*Math.random(),n[a+2]+=i-2*i*Math.random()};he.addGetterSetter(Tt,"noise",.2,Ct(),he.afterSetFilter);const mee=function(e){var t=Math.ceil(this.pixelSize()),n=e.width,r=e.height,i,a,o,l,c,d,p,g=Math.ceil(n/t),S=Math.ceil(r/t),w,C,k,P,D,M,R,L=e.data;if(t<=0){_e.error("pixelSize value can not be <= 0");return}for(D=0;D<g;D+=1)for(M=0;M<S;M+=1){for(l=0,c=0,d=0,p=0,w=D*t,C=w+t,k=M*t,P=k+t,R=0,i=w;i<C;i+=1)if(!(i>=n))for(a=k;a<P;a+=1)a>=r||(o=(n*a+i)*4,l+=L[o+0],c+=L[o+1],d+=L[o+2],p+=L[o+3],R+=1);for(l=l/R,c=c/R,d=d/R,p=p/R,i=w;i<C;i+=1)if(!(i>=n))for(a=k;a<P;a+=1)a>=r||(o=(n*a+i)*4,L[o+0]=l,L[o+1]=c,L[o+2]=d,L[o+3]=p)}};he.addGetterSetter(Tt,"pixelSize",8,Ct(),he.afterSetFilter);const vee=function(e){var t=Math.round(this.levels()*254)+1,n=e.data,r=n.length,i=255/t,a;for(a=0;a<r;a+=1)n[a]=Math.floor(n[a]/i)*i};he.addGetterSetter(Tt,"levels",.5,Ct(),he.afterSetFilter);const gee=function(e){var t=e.data,n=t.length,r=this.red(),i=this.green(),a=this.blue(),o,l;for(o=0;o<n;o+=4)l=(.34*t[o]+.5*t[o+1]+.16*t[o+2])/255,t[o]=l*r,t[o+1]=l*i,t[o+2]=l*a,t[o+3]=t[o+3]};he.addGetterSetter(Tt,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),he.addGetterSetter(Tt,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),he.addGetterSetter(Tt,"blue",0,mR,he.afterSetFilter);const yee=function(e){var t=e.data,n=t.length,r=this.red(),i=this.green(),a=this.blue(),o=this.alpha(),l,c;for(l=0;l<n;l+=4)c=1-o,t[l]=r*o+t[l]*c,t[l+1]=i*o+t[l+1]*c,t[l+2]=a*o+t[l+2]*c};he.addGetterSetter(Tt,"red",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),he.addGetterSetter(Tt,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),he.addGetterSetter(Tt,"blue",0,mR,he.afterSetFilter),he.addGetterSetter(Tt,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});const bee=function(e){var t=e.data,n=t.length,r,i,a,o;for(r=0;r<n;r+=4)i=t[r+0],a=t[r+1],o=t[r+2],t[r+0]=Math.min(255,i*.393+a*.769+o*.189),t[r+1]=Math.min(255,i*.349+a*.686+o*.168),t[r+2]=Math.min(255,i*.272+a*.534+o*.131)},See=function(e){var t=e.data,n=e.width,r=e.height,i=n*4,a=r;do{var o=(a-1)*i,l=n;do{var c=o+(l-1)*4,d=t[c],p=t[c+1],g=t[c+2];d>127&&(d=255-d),p>127&&(p=255-p),g>127&&(g=255-g),t[c]=d,t[c+1]=p,t[c+2]=g}while(--l)}while(--a)},xee=function(e){var t=this.threshold()*255,n=e.data,r=n.length,i;for(i=0;i<r;i+=1)n[i]=n[i]<t?0:255};he.addGetterSetter(Tt,"threshold",.5,Ct(),he.afterSetFilter);const g0=iv.Util._assign(iv,{Arc:Qf,Arrow:av,Circle:m0,Ellipse:bp,Image:Ad,Label:h4,Tag:ov,Line:Zf,Path:ui,Rect:u1,RegularPolygon:sv,Ring:lv,Sprite:Od,Star:Sp,Text:la,TextPath:io,Transformer:qr,Wedge:Jf,Filters:{Blur:X$,Brighten:Q$,Contrast:Z$,Emboss:J$,Enhance:$$,Grayscale:eee,HSL:tee,HSV:nee,Invert:ree,Kaleidoscope:oee,Mask:hee,Noise:pee,Pixelate:mee,Posterize:vee,RGB:gee,RGBA:yee,Sepia:bee,Solarize:See,Threshold:xee}}),wee=(e,t)=>{const{width:n,height:r}=t,i=document.createElement("div"),a=new g0.Stage({container:i,width:n,height:r}),o=new g0.Layer,l=new g0.Layer;o.add(new g0.Rect({...t,fill:"white"})),e.forEach(d=>l.add(new g0.Line({points:d.points,stroke:"black",strokeWidth:d.strokeWidth*2,tension:0,lineCap:"round",lineJoin:"round",shadowForStrokeEnabled:!1,globalCompositeOperation:d.tool==="brush"?"source-over":"destination-out"}))),a.add(o),a.add(l);const c=a.toDataURL({...t});return i.remove(),c};let hN=null,pN=null;const Cee=e=>{hN=e},Dc=()=>hN,Eee=e=>{pN=e},mN=()=>pN,_ee=e=>{const t=window.open("");t&&e.forEach(n=>{const r=new Image;r.src=n.base64,t.document.write(n.caption),t.document.write("</br>"),t.document.write(r.outerHTML),t.document.write("</br></br>")})},vN=(e,t)=>Math.floor(Math.random()*(t-e+1)+e),Tee=e=>{const t=Dc(),{generationMode:n,generationState:r,postprocessingState:i,canvasState:a,systemState:o}=e,{codeformerFidelity:l,facetoolStrength:c,facetoolType:d,hiresFix:p,hiresStrength:g,shouldRunESRGAN:S,shouldRunFacetool:w,upscalingLevel:C,upscalingStrength:k,upscalingDenoising:P}=i,{cfgScale:D,height:M,img2imgStrength:R,infillMethod:L,initialImage:z,iterations:U,perlin:V,prompt:Y,negativePrompt:J,sampler:$,seamBlur:K,seamless:fe,seamSize:X,seamSteps:G,seamStrength:te,seed:re,seedWeights:oe,shouldFitToWidthHeight:ie,shouldGenerateVariations:le,shouldRandomizeSeed:ee,steps:de,threshold:Fe,tileSize:Pe,variationAmount:Oe,width:Ie,shouldUseSymmetry:De,horizontalSymmetrySteps:$e,verticalSymmetrySteps:it}=r,{shouldDisplayInProgressType:mt,saveIntermediatesInterval:bt,enableImageDebugging:qe}=o,Ce={prompt:Y,iterations:U,steps:de,cfg_scale:D,threshold:Fe,perlin:V,height:M,width:Ie,sampler_name:$,seed:re,progress_images:mt==="full-res",progress_latents:mt==="latents",save_intermediates:bt,generation_mode:n,init_mask:""};let Nt=!1,Ae=!1;if(J!==""&&(Ce.prompt=`${Y} [${J}]`),Ce.seed=ee?vN(Wk,qk):re,De&&($e>0&&(Ce.h_symmetry_time_pct=Math.max(0,Math.min(1,$e/de))),it>0&&(Ce.v_symmetry_time_pct=Math.max(0,Math.min(1,it/de)))),n==="txt2img"&&(Ce.hires_fix=p,p&&(Ce.strength=g)),["txt2img","img2img"].includes(n)&&(Ce.seamless=fe,S&&(Nt={level:C,denoise_str:P,strength:k}),w&&(Ae={type:d,strength:c},d==="codeformer"&&(Ae.codeformer_fidelity=l))),n==="img2img"&&z&&(Ce.init_img=typeof z=="string"?z:z.url,Ce.strength=R,Ce.fit=ie),n==="unifiedCanvas"&&t){const{layerState:{objects:xt},boundingBoxCoordinates:ln,boundingBoxDimensions:Wt,stageScale:In,isMaskEnabled:ar,shouldPreserveMaskedArea:we,boundingBoxScaleMethod:at,scaledBoundingBoxDimensions:ot}=a,yt={...ln,...Wt},He=wee(ar?xt.filter(ck):[],yt);Ce.init_mask=He,Ce.fit=!1,Ce.strength=R,Ce.invert_mask=we,Ce.bounding_box=yt;const st=t.scale();t.scale({x:1/In,y:1/In});const Zt=t.getAbsolutePosition(),nn=t.toDataURL({x:yt.x+Zt.x,y:yt.y+Zt.y,width:yt.width,height:yt.height});qe&&_ee([{base64:He,caption:"mask sent as init_mask"},{base64:nn,caption:"image sent as init_img"}]),t.scale(st),Ce.init_img=nn,Ce.progress_images=!1,at!=="none"&&(Ce.inpaint_width=ot.width,Ce.inpaint_height=ot.height),Ce.seam_size=X,Ce.seam_blur=K,Ce.seam_strength=te,Ce.seam_steps=G,Ce.tile_size=Pe,Ce.infill_method=L,Ce.force_outpaint=!1}return le?(Ce.variation_amount=Oe,oe&&(Ce.with_variations=pX(oe))):Ce.variation_amount=0,qe&&(Ce.enable_image_debugging=qe),{generationParameters:Ce,esrganParameters:Nt,facetoolParameters:Ae}};var kee=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,Pee=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,Aee=/[^-+\dA-Z]/g;function Mo(e,t,n,r){if(arguments.length===1&&typeof e=="string"&&!/\d/.test(e)&&(t=e,e=void 0),e=e||e===0?e:new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");t=String(gN[t]||t||gN.default);var i=t.slice(0,4);(i==="UTC:"||i==="GMT:")&&(t=t.slice(4),n=!0,i==="GMT:"&&(r=!0));var a=function(){return n?"getUTC":"get"},o=function(){return e[a()+"Date"]()},l=function(){return e[a()+"Day"]()},c=function(){return e[a()+"Month"]()},d=function(){return e[a()+"FullYear"]()},p=function(){return e[a()+"Hours"]()},g=function(){return e[a()+"Minutes"]()},S=function(){return e[a()+"Seconds"]()},w=function(){return e[a()+"Milliseconds"]()},C=function(){return n?0:e.getTimezoneOffset()},k=function(){return Oee(e)},P=function(){return Dee(e)},D={d:function(){return o()},dd:function(){return Ql(o())},ddd:function(){return vl.dayNames[l()]},DDD:function(){return yN({y:d(),m:c(),d:o(),_:a(),dayName:vl.dayNames[l()],short:!0})},dddd:function(){return vl.dayNames[l()+7]},DDDD:function(){return yN({y:d(),m:c(),d:o(),_:a(),dayName:vl.dayNames[l()+7]})},m:function(){return c()+1},mm:function(){return Ql(c()+1)},mmm:function(){return vl.monthNames[c()]},mmmm:function(){return vl.monthNames[c()+12]},yy:function(){return String(d()).slice(2)},yyyy:function(){return Ql(d(),4)},h:function(){return p()%12||12},hh:function(){return Ql(p()%12||12)},H:function(){return p()},HH:function(){return Ql(p())},M:function(){return g()},MM:function(){return Ql(g())},s:function(){return S()},ss:function(){return Ql(S())},l:function(){return Ql(w(),3)},L:function(){return Ql(Math.floor(w()/10))},t:function(){return p()<12?vl.timeNames[0]:vl.timeNames[1]},tt:function(){return p()<12?vl.timeNames[2]:vl.timeNames[3]},T:function(){return p()<12?vl.timeNames[4]:vl.timeNames[5]},TT:function(){return p()<12?vl.timeNames[6]:vl.timeNames[7]},Z:function(){return r?"GMT":n?"UTC":Mee(e)},o:function(){return(C()>0?"-":"+")+Ql(Math.floor(Math.abs(C())/60)*100+Math.abs(C())%60,4)},p:function(){return(C()>0?"-":"+")+Ql(Math.floor(Math.abs(C())/60),2)+":"+Ql(Math.floor(Math.abs(C())%60),2)},S:function(){return["th","st","nd","rd"][o()%10>3?0:(o()%100-o()%10!=10)*o()%10]},W:function(){return k()},WW:function(){return Ql(k())},N:function(){return P()}};return t.replace(kee,function(M){return M in D?D[M]():M.slice(1,M.length-1)})}var gN={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},vl={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},Ql=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(n,"0")},yN=function(t){var n=t.y,r=t.m,i=t.d,a=t._,o=t.dayName,l=t.short,c=l===void 0?!1:l,d=new Date,p=new Date;p.setDate(p[a+"Date"]()-1);var g=new Date;g.setDate(g[a+"Date"]()+1);var S=function(){return d[a+"Date"]()},w=function(){return d[a+"Month"]()},C=function(){return d[a+"FullYear"]()},k=function(){return p[a+"Date"]()},P=function(){return p[a+"Month"]()},D=function(){return p[a+"FullYear"]()},M=function(){return g[a+"Date"]()},R=function(){return g[a+"Month"]()},L=function(){return g[a+"FullYear"]()};return C()===n&&w()===r&&S()===i?c?"Tdy":"Today":D()===n&&P()===r&&k()===i?c?"Ysd":"Yesterday":L()===n&&R()===r&&M()===i?c?"Tmw":"Tomorrow":o},Oee=function(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=new Date(n.getFullYear(),0,4);r.setDate(r.getDate()-(r.getDay()+6)%7+3);var i=n.getTimezoneOffset()-r.getTimezoneOffset();n.setHours(n.getHours()-i);var a=(n-r)/(864e5*7);return 1+Math.floor(a)},Dee=function(t){var n=t.getDay();return n===0&&(n=7),n},Mee=function(t){return(String(t).match(Pee)||[""]).pop().replace(Aee,"").replace(/GMT\+0000/g,"UTC")};const jee=(e,t)=>{const{dispatch:n,getState:r}=e;return{emitGenerateImage:i=>{n(Yl(!0));const a=r(),{generation:o,postprocessing:l,system:c,canvas:d}=a,p={generationMode:i,generationState:o,postprocessingState:l,canvasState:d,systemState:c};n(iZ());const{generationParameters:g,esrganParameters:S,facetoolParameters:w}=Tee(p);t.emit("generateImage",g,S,w),g.init_mask&&(g.init_mask=g.init_mask.substr(0,64).concat("...")),g.init_img&&(g.init_img=g.init_img.substr(0,64).concat("...")),n(Do({timestamp:Mo(new Date,"isoDateTime"),message:`Image generation requested: ${JSON.stringify({...g,...S,...w})}`}))},emitRunESRGAN:i=>{n(Yl(!0));const{postprocessing:{upscalingLevel:a,upscalingDenoising:o,upscalingStrength:l}}=r(),c={upscale:[a,o,l]};t.emit("runPostprocessing",i,{type:"esrgan",...c}),n(Do({timestamp:Mo(new Date,"isoDateTime"),message:`ESRGAN upscale requested: ${JSON.stringify({file:i.url,...c})}`}))},emitRunFacetool:i=>{n(Yl(!0));const{postprocessing:{facetoolType:a,facetoolStrength:o,codeformerFidelity:l}}=r(),c={facetool_strength:o};a==="codeformer"&&(c.codeformer_fidelity=l),t.emit("runPostprocessing",i,{type:a,...c}),n(Do({timestamp:Mo(new Date,"isoDateTime"),message:`Face restoration (${a}) requested: ${JSON.stringify({file:i.url,...c})}`}))},emitDeleteImage:i=>{const{url:a,uuid:o,category:l,thumbnail:c}=i;n(a6(i)),t.emit("deleteImage",a,c,o,l)},emitRequestImages:i=>{const a=r().gallery,{earliest_mtime:o}=a.categories[i];t.emit("requestImages",i,o)},emitRequestNewImages:i=>{const a=r().gallery,{latest_mtime:o}=a.categories[i];t.emit("requestLatestImages",i,o)},emitCancelProcessing:()=>{t.emit("cancel")},emitRequestSystemConfig:()=>{t.emit("requestSystemConfig")},emitSearchForModels:i=>{t.emit("searchForModels",i)},emitAddNewModel:i=>{t.emit("addNewModel",i)},emitDeleteModel:i=>{t.emit("deleteModel",i)},emitConvertToDiffusers:i=>{n(eZ()),t.emit("convertToDiffusers",i)},emitMergeDiffusersModels:i=>{n(tZ()),t.emit("mergeDiffusersModels",i)},emitRequestModelChange:i=>{n($Q()),t.emit("requestModelChange",i)},emitSaveStagingAreaImageToGallery:i=>{t.emit("requestSaveStagingAreaImageToGallery",i)},emitRequestEmptyTempFolder:()=>{t.emit("requestEmptyTempFolder")}}};let Cw;const Iee=new Uint8Array(16);function Ree(){if(!Cw&&(Cw=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Cw))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Cw(Iee)}const Go=[];for(let e=0;e<256;++e)Go.push((e+256).toString(16).slice(1));function Nee(e,t=0){return(Go[e[t+0]]+Go[e[t+1]]+Go[e[t+2]]+Go[e[t+3]]+"-"+Go[e[t+4]]+Go[e[t+5]]+"-"+Go[e[t+6]]+Go[e[t+7]]+"-"+Go[e[t+8]]+Go[e[t+9]]+"-"+Go[e[t+10]]+Go[e[t+11]]+Go[e[t+12]]+Go[e[t+13]]+Go[e[t+14]]+Go[e[t+15]]).toLowerCase()}const bN={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function y0(e,t,n){if(bN.randomUUID&&!t&&!e)return bN.randomUUID();e=e||{};const r=e.random||(e.rng||Ree)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return Nee(r)}const g4=Zi("socketio/generateImage"),Lee=Zi("socketio/runESRGAN"),zee=Zi("socketio/runFacetool"),Bee=Zi("socketio/deleteImage"),y4=Zi("socketio/requestImages"),SN=Zi("socketio/requestNewImages"),Fee=Zi("socketio/cancelProcessing"),Uee=Zi("socketio/requestSystemConfig"),xN=Zi("socketio/searchForModels"),f1=Zi("socketio/addNewModel"),Vee=Zi("socketio/deleteModel"),Hee=Zi("socketio/convertToDiffusers"),Gee=Zi("socketio/mergeDiffusersModels"),wN=Zi("socketio/requestModelChange"),Wee=Zi("socketio/saveStagingAreaImageToGallery"),qee=Zi("socketio/requestEmptyTempFolder"),Yee=e=>{const{dispatch:t,getState:n}=e;return{onConnect:()=>{try{t(jI(!0)),t(ev(Fn.t("common.statusConnected"))),t(Uee());const r=n().gallery;r.categories.result.latest_mtime?t(SN("result")):t(y4("result")),r.categories.user.latest_mtime?t(SN("user")):t(y4("user"))}catch(r){console.error(r)}},onDisconnect:()=>{try{t(jI(!1)),t(ev(Fn.t("common.statusDisconnected"))),t(Do({timestamp:Mo(new Date,"isoDateTime"),message:"Disconnected from server",level:"warning"}))}catch(r){console.error(r)}},onGenerationResult:r=>{try{const i=n(),{activeTab:a}=i.ui,{shouldLoopback:o}=i.postprocessing,{boundingBox:l,generationMode:c,...d}=r,p={uuid:y0(),...d};if(["txt2img","img2img"].includes(c)&&t(n0({category:"result",image:{...p,category:"result"}})),c==="unifiedCanvas"&&r.boundingBox){const{boundingBox:g}=r;t(BK({image:{...p,category:"temp"},boundingBox:g})),i.canvas.shouldAutoSave&&t(n0({image:{...p,category:"result"},category:"result"}))}if(o)switch(Nk[a]){case"img2img":{t(i0(p));break}}t(vk()),t(Do({timestamp:Mo(new Date,"isoDateTime"),message:`Image generated: ${r.url}`}))}catch(i){console.error(i)}},onIntermediateResult:r=>{try{t(sX({uuid:y0(),...r,category:"result"})),r.isBase64||t(Do({timestamp:Mo(new Date,"isoDateTime"),message:`Intermediate image generated: ${r.url}`}))}catch(i){console.error(i)}},onPostprocessingResult:r=>{try{t(n0({category:"result",image:{uuid:y0(),...r,category:"result"}})),t(Do({timestamp:Mo(new Date,"isoDateTime"),message:`Postprocessed: ${r.url}`}))}catch(i){console.error(i)}},onProgressUpdate:r=>{try{t(Yl(!0)),t(XQ(r))}catch(i){console.error(i)}},onError:r=>{const{message:i,additionalData:a}=r;try{t(Do({timestamp:Mo(new Date,"isoDateTime"),message:`Server error: ${i}`,level:"error"})),t(RI()),t(vk())}catch(o){console.error(o)}},onGalleryImages:r=>{const{images:i,areMoreImagesAvailable:a,category:o}=r,l=i.map(c=>({uuid:y0(),...c}));t(oX({images:l,areMoreImagesAvailable:a,category:o})),t(Do({timestamp:Mo(new Date,"isoDateTime"),message:`Loaded ${i.length} images`}))},onProcessingCanceled:()=>{t(JQ());const{intermediateImage:r}=n().gallery;r&&(r.isBase64||(t(n0({category:"result",image:r})),t(Do({timestamp:Mo(new Date,"isoDateTime"),message:`Intermediate image saved: ${r.url}`}))),t(vk())),t(Do({timestamp:Mo(new Date,"isoDateTime"),message:"Processing canceled",level:"warning"}))},onImageDeleted:r=>{const{url:i}=r;t(a6(r));const{generation:{initialImage:a,maskPath:o}}=n();(a===i||(a==null?void 0:a.url)===i)&&t(p6()),o===i&&t(y6("")),t(Do({timestamp:Mo(new Date,"isoDateTime"),message:`Image deleted: ${i}`}))},onSystemConfig:r=>{t(QQ(r)),r.infill_methods.includes("patchmatch")||t(v6(r.infill_methods[0]))},onFoundModels:r=>{const{search_folder:i,found_models:a}=r;t(LI(i)),t(zI(a))},onNewModelAdded:r=>{const{new_model_name:i,model_list:a,update:o}=r;t(s0(a)),t(Yl(!1)),t(ev(Fn.t("modelManager.modelAdded"))),t(Do({timestamp:Mo(new Date,"isoDateTime"),message:`Model Added: ${i}`,level:"info"})),t(Kf({title:o?`${Fn.t("modelManager.modelUpdated")}: ${i}`:`${Fn.t("modelManager.modelAdded")}: ${i}`,status:"success",duration:2500,isClosable:!0}))},onModelDeleted:r=>{const{deleted_model_name:i,model_list:a}=r;t(s0(a)),t(Yl(!1)),t(Do({timestamp:Mo(new Date,"isoDateTime"),message:`${Fn.t("modelManager.modelAdded")}: ${i}`,level:"info"})),t(Kf({title:`${Fn.t("modelManager.modelEntryDeleted")}: ${i}`,status:"success",duration:2500,isClosable:!0}))},onModelConverted:r=>{const{converted_model_name:i,model_list:a}=r;t(s0(a)),t(ev(Fn.t("common.statusModelConverted"))),t(Yl(!1)),t(vp(!0)),t(Do({timestamp:Mo(new Date,"isoDateTime"),message:`Model converted: ${i}`,level:"info"})),t(Kf({title:`${Fn.t("modelManager.modelConverted")}: ${i}`,status:"success",duration:2500,isClosable:!0}))},onModelsMerged:r=>{const{merged_models:i,merged_model_name:a,model_list:o}=r;t(s0(o)),t(ev(Fn.t("common.statusMergedModels"))),t(Yl(!1)),t(vp(!0)),t(Do({timestamp:Mo(new Date,"isoDateTime"),message:`Models merged: ${i}`,level:"info"})),t(Kf({title:`${Fn.t("modelManager.modelsMerged")}: ${a}`,status:"success",duration:2500,isClosable:!0}))},onModelChanged:r=>{const{model_name:i,model_list:a}=r;t(s0(a)),t(ev(Fn.t("common.statusModelChanged"))),t(Yl(!1)),t(vp(!0)),t(Do({timestamp:Mo(new Date,"isoDateTime"),message:`Model changed: ${i}`,level:"info"}))},onModelChangeFailed:r=>{const{model_name:i,model_list:a}=r;t(s0(a)),t(Yl(!1)),t(vp(!0)),t(RI()),t(Do({timestamp:Mo(new Date,"isoDateTime"),message:`Model change failed: ${i}`,level:"error"}))},onTempFolderEmptied:()=>{t(Kf({title:Fn.t("toast.tempFoldersEmptied"),status:"success",duration:2500,isClosable:!0}))}}},Kee=()=>{const{origin:e}=new URL(window.location.href),t=iw(e,{timeout:6e4,path:`${window.location.pathname}socket.io`});let n=!1;return i=>a=>o=>{const{onConnect:l,onDisconnect:c,onError:d,onPostprocessingResult:p,onGenerationResult:g,onIntermediateResult:S,onProgressUpdate:w,onGalleryImages:C,onProcessingCanceled:k,onImageDeleted:P,onSystemConfig:D,onModelChanged:M,onFoundModels:R,onNewModelAdded:L,onModelDeleted:z,onModelConverted:U,onModelsMerged:V,onModelChangeFailed:Y,onTempFolderEmptied:J}=Yee(i),{emitGenerateImage:$,emitRunESRGAN:K,emitRunFacetool:fe,emitDeleteImage:X,emitRequestImages:G,emitRequestNewImages:te,emitCancelProcessing:re,emitRequestSystemConfig:oe,emitSearchForModels:ie,emitAddNewModel:le,emitDeleteModel:ee,emitConvertToDiffusers:de,emitMergeDiffusersModels:Fe,emitRequestModelChange:Pe,emitSaveStagingAreaImageToGallery:Oe,emitRequestEmptyTempFolder:Ie}=jee(i,t);switch(n||(t.on("connect",()=>l()),t.on("disconnect",()=>c()),t.on("error",De=>d(De)),t.on("generationResult",De=>g(De)),t.on("postprocessingResult",De=>p(De)),t.on("intermediateResult",De=>S(De)),t.on("progressUpdate",De=>w(De)),t.on("galleryImages",De=>C(De)),t.on("processingCanceled",()=>{k()}),t.on("imageDeleted",De=>{P(De)}),t.on("systemConfig",De=>{D(De)}),t.on("foundModels",De=>{R(De)}),t.on("newModelAdded",De=>{L(De)}),t.on("modelDeleted",De=>{z(De)}),t.on("modelConverted",De=>{U(De)}),t.on("modelsMerged",De=>{V(De)}),t.on("modelChanged",De=>{M(De)}),t.on("modelChangeFailed",De=>{Y(De)}),t.on("tempFolderEmptied",()=>{J()}),n=!0),o.type){case"socketio/generateImage":{$(o.payload);break}case"socketio/runESRGAN":{K(o.payload);break}case"socketio/runFacetool":{fe(o.payload);break}case"socketio/deleteImage":{X(o.payload);break}case"socketio/requestImages":{G(o.payload);break}case"socketio/requestNewImages":{te(o.payload);break}case"socketio/cancelProcessing":{re();break}case"socketio/requestSystemConfig":{oe();break}case"socketio/searchForModels":{ie(o.payload);break}case"socketio/addNewModel":{le(o.payload);break}case"socketio/deleteModel":{ee(o.payload);break}case"socketio/convertToDiffusers":{de(o.payload);break}case"socketio/mergeDiffusersModels":{Fe(o.payload);break}case"socketio/requestModelChange":{Pe(o.payload);break}case"socketio/saveStagingAreaImageToGallery":{Oe(o.payload);break}case"socketio/requestEmptyTempFolder":{Ie();break}}a(o)}},Xee=["cursorPosition","isCanvasInitialized","doesCanvasNeedScaling"].map(e=>`canvas.${e}`),Qee=["currentIteration","currentStatus","currentStep","isCancelable","isConnected","isESRGANAvailable","isGFPGANAvailable","isProcessing","socketId","totalIterations","totalSteps","openModel","cancelOptions.cancelAfter"].map(e=>`system.${e}`),Zee=["categories","currentCategory","currentImage","currentImageUuid","shouldAutoSwitchToNewImages","intermediateImage"].map(e=>`gallery.${e}`),Jee=["isLightboxOpen"].map(e=>`lightbox.${e}`),CN=ij({generation:bX,postprocessing:CX,gallery:dX,system:sZ,canvas:aX,ui:gZ,lightbox:fX}),$ee=Ij.getPersistConfig({key:"root",storage:jj,rootReducer:CN,blacklist:[...Xee,...Qee,...Zee,...Jee],debounce:300}),ete=hK($ee,CN),EN=HY({reducer:ete,middleware:e=>e({immutableCheck:!1,serializableCheck:!1}).concat(Kee()),devTools:{actionsDenylist:["canvas/setCursorPosition","canvas/setStageCoordinates","canvas/setStageScale","canvas/setIsDrawing","canvas/setBoundingBoxCoordinates","canvas/setBoundingBoxDimensions","canvas/setIsDrawing","canvas/addPointToCurrentLine"]}}),_N=bK(EN),YIe="",KIe="",XIe="",QIe="",ZIe="",JIe="",$Ie="",eRe="",tRe="";function tte(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function nte(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var rte=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(nte(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
||
`+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!a}if(this.isSpeedy){var o=tte(i);try{o.insertRule(r,o.cssRules.length)}catch(l){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',l)}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),fs="-ms-",Ew="-moz-",zr="-webkit-",b4="comm",S4="rule",x4="decl",ite="@import",TN="@keyframes",ate=Math.abs,_w=String.fromCharCode,ote=Object.assign;function ste(e,t){return Wo(e,0)^45?(((t<<2^Wo(e,0))<<2^Wo(e,1))<<2^Wo(e,2))<<2^Wo(e,3):0}function kN(e){return e.trim()}function lte(e,t){return(e=t.exec(e))?e[0]:e}function Yr(e,t,n){return e.replace(t,n)}function w4(e,t){return e.indexOf(t)}function Wo(e,t){return e.charCodeAt(t)|0}function h1(e,t,n){return e.slice(t,n)}function Dd(e){return e.length}function C4(e){return e.length}function Tw(e,t){return t.push(e),e}function ute(e,t){return e.map(t).join("")}var kw=1,b0=1,PN=0,gl=0,Qa=0,S0="";function Pw(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:kw,column:b0,length:o,return:""}}function p1(e,t){return ote(Pw("",null,null,"",null,null,0),e,{length:-e.length},t)}function cte(){return Qa}function dte(){return Qa=gl>0?Wo(S0,--gl):0,b0--,Qa===10&&(b0=1,kw--),Qa}function Zl(){return Qa=gl<PN?Wo(S0,gl++):0,b0++,Qa===10&&(b0=1,kw++),Qa}function Md(){return Wo(S0,gl)}function Aw(){return gl}function m1(e,t){return h1(S0,e,t)}function v1(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function AN(e){return kw=b0=1,PN=Dd(S0=e),gl=0,[]}function ON(e){return S0="",e}function Ow(e){return kN(m1(gl-1,E4(e===91?e+2:e===40?e+1:e)))}function fte(e){for(;(Qa=Md())&&Qa<33;)Zl();return v1(e)>2||v1(Qa)>3?"":" "}function hte(e,t){for(;--t&&Zl()&&!(Qa<48||Qa>102||Qa>57&&Qa<65||Qa>70&&Qa<97););return m1(e,Aw()+(t<6&&Md()==32&&Zl()==32))}function E4(e){for(;Zl();)switch(Qa){case e:return gl;case 34:case 39:e!==34&&e!==39&&E4(Qa);break;case 40:e===41&&E4(e);break;case 92:Zl();break}return gl}function pte(e,t){for(;Zl()&&e+Qa!==47+10;)if(e+Qa===42+42&&Md()===47)break;return"/*"+m1(t,gl-1)+"*"+_w(e===47?e:Zl())}function mte(e){for(;!v1(Md());)Zl();return m1(e,gl)}function vte(e){return ON(Dw("",null,null,null,[""],e=AN(e),0,[0],e))}function Dw(e,t,n,r,i,a,o,l,c){for(var d=0,p=0,g=o,S=0,w=0,C=0,k=1,P=1,D=1,M=0,R="",L=i,z=a,U=r,V=R;P;)switch(C=M,M=Zl()){case 40:if(C!=108&&Wo(V,g-1)==58){w4(V+=Yr(Ow(M),"&","&\f"),"&\f")!=-1&&(D=-1);break}case 34:case 39:case 91:V+=Ow(M);break;case 9:case 10:case 13:case 32:V+=fte(C);break;case 92:V+=hte(Aw()-1,7);continue;case 47:switch(Md()){case 42:case 47:Tw(gte(pte(Zl(),Aw()),t,n),c);break;default:V+="/"}break;case 123*k:l[d++]=Dd(V)*D;case 125*k:case 59:case 0:switch(M){case 0:case 125:P=0;case 59+p:w>0&&Dd(V)-g&&Tw(w>32?MN(V+";",r,n,g-1):MN(Yr(V," ","")+";",r,n,g-2),c);break;case 59:V+=";";default:if(Tw(U=DN(V,t,n,d,p,i,l,R,L=[],z=[],g),a),M===123)if(p===0)Dw(V,t,U,U,L,a,g,l,z);else switch(S===99&&Wo(V,3)===110?100:S){case 100:case 109:case 115:Dw(e,U,U,r&&Tw(DN(e,U,U,0,0,i,l,R,i,L=[],g),z),i,z,g,l,r?L:z);break;default:Dw(V,U,U,U,[""],z,0,l,z)}}d=p=w=0,k=D=1,R=V="",g=o;break;case 58:g=1+Dd(V),w=C;default:if(k<1){if(M==123)--k;else if(M==125&&k++==0&&dte()==125)continue}switch(V+=_w(M),M*k){case 38:D=p>0?1:(V+="\f",-1);break;case 44:l[d++]=(Dd(V)-1)*D,D=1;break;case 64:Md()===45&&(V+=Ow(Zl())),S=Md(),p=g=Dd(R=V+=mte(Aw())),M++;break;case 45:C===45&&Dd(V)==2&&(k=0)}}return a}function DN(e,t,n,r,i,a,o,l,c,d,p){for(var g=i-1,S=i===0?a:[""],w=C4(S),C=0,k=0,P=0;C<r;++C)for(var D=0,M=h1(e,g+1,g=ate(k=o[C])),R=e;D<w;++D)(R=kN(k>0?S[D]+" "+M:Yr(M,/&\f/g,S[D])))&&(c[P++]=R);return Pw(e,t,n,i===0?S4:l,c,d,p)}function gte(e,t,n){return Pw(e,t,n,b4,_w(cte()),h1(e,2,-2),0)}function MN(e,t,n,r){return Pw(e,t,n,x4,h1(e,0,r),h1(e,r+1,-1),r)}function x0(e,t){for(var n="",r=C4(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function yte(e,t,n,r){switch(e.type){case ite:case x4:return e.return=e.return||e.value;case b4:return"";case TN:return e.return=e.value+"{"+x0(e.children,r)+"}";case S4:e.value=e.props.join(",")}return Dd(n=x0(e.children,r))?e.return=e.value+"{"+n+"}":""}function bte(e){var t=C4(e);return function(n,r,i,a){for(var o="",l=0;l<t;l++)o+=e[l](n,r,i,a)||"";return o}}function Ste(e){return function(t){t.root||(t=t.return)&&e(t)}}var jN=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var i=t(r);return n.set(r,i),i}};function IN(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var xte=function(t,n,r){for(var i=0,a=0;i=a,a=Md(),i===38&&a===12&&(n[r]=1),!v1(a);)Zl();return m1(t,gl)},wte=function(t,n){var r=-1,i=44;do switch(v1(i)){case 0:i===38&&Md()===12&&(n[r]=1),t[r]+=xte(gl-1,n,r);break;case 2:t[r]+=Ow(i);break;case 4:if(i===44){t[++r]=Md()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=_w(i)}while(i=Zl());return t},Cte=function(t,n){return ON(wte(AN(t),n))},RN=new WeakMap,Ete=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!RN.get(r))&&!i){RN.set(t,!0);for(var a=[],o=Cte(n,a),l=r.props,c=0,d=0;c<o.length;c++)for(var p=0;p<l.length;p++,d++)t.props[d]=a[c]?o[c].replace(/&\f/g,l[p]):l[p]+" "+o[c]}}},_te=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},Tte="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",kte=function(t){return t.type==="comm"&&t.children.indexOf(Tte)>-1},Pte=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var o=n.parent===i[0],l=o?i[0].children:i,c=l.length-1;c>=0;c--){var d=l[c];if(d.line<n.line)break;if(d.column<n.column){if(kte(d))return;break}}a.forEach(function(p){console.error('The pseudo class "'+p+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+p.split("-child")[0]+'-of-type".')})}}}},NN=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Ate=function(t,n){for(var r=t-1;r>=0;r--)if(!NN(n[r]))return!0;return!1},LN=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Ote=function(t,n,r){NN(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),LN(t)):Ate(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),LN(t)))};function zN(e,t){switch(ste(e,t)){case 5103:return zr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return zr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return zr+e+Ew+e+fs+e+e;case 6828:case 4268:return zr+e+fs+e+e;case 6165:return zr+e+fs+"flex-"+e+e;case 5187:return zr+e+Yr(e,/(\w+).+(:[^]+)/,zr+"box-$1$2"+fs+"flex-$1$2")+e;case 5443:return zr+e+fs+"flex-item-"+Yr(e,/flex-|-self/,"")+e;case 4675:return zr+e+fs+"flex-line-pack"+Yr(e,/align-content|flex-|-self/,"")+e;case 5548:return zr+e+fs+Yr(e,"shrink","negative")+e;case 5292:return zr+e+fs+Yr(e,"basis","preferred-size")+e;case 6060:return zr+"box-"+Yr(e,"-grow","")+zr+e+fs+Yr(e,"grow","positive")+e;case 4554:return zr+Yr(e,/([^-])(transform)/g,"$1"+zr+"$2")+e;case 6187:return Yr(Yr(Yr(e,/(zoom-|grab)/,zr+"$1"),/(image-set)/,zr+"$1"),e,"")+e;case 5495:case 3959:return Yr(e,/(image-set\([^]*)/,zr+"$1$`$1");case 4968:return Yr(Yr(e,/(.+:)(flex-)?(.*)/,zr+"box-pack:$3"+fs+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+zr+e+e;case 4095:case 3583:case 4068:case 2532:return Yr(e,/(.+)-inline(.+)/,zr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Dd(e)-1-t>6)switch(Wo(e,t+1)){case 109:if(Wo(e,t+4)!==45)break;case 102:return Yr(e,/(.+:)(.+)-([^]+)/,"$1"+zr+"$2-$3$1"+Ew+(Wo(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~w4(e,"stretch")?zN(Yr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Wo(e,t+1)!==115)break;case 6444:switch(Wo(e,Dd(e)-3-(~w4(e,"!important")&&10))){case 107:return Yr(e,":",":"+zr)+e;case 101:return Yr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+zr+(Wo(e,14)===45?"inline-":"")+"box$3$1"+zr+"$2$3$1"+fs+"$2box$3")+e}break;case 5936:switch(Wo(e,t+11)){case 114:return zr+e+fs+Yr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return zr+e+fs+Yr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return zr+e+fs+Yr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return zr+e+fs+e+e}return e}var Dte=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case x4:t.return=zN(t.value,t.length);break;case TN:return x0([p1(t,{value:Yr(t.value,"@","@"+zr)})],i);case S4:if(t.length)return ute(t.props,function(a){switch(lte(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return x0([p1(t,{props:[Yr(a,/:(read-\w+)/,":"+Ew+"$1")]})],i);case"::placeholder":return x0([p1(t,{props:[Yr(a,/:(plac\w+)/,":"+zr+"input-$1")]}),p1(t,{props:[Yr(a,/:(plac\w+)/,":"+Ew+"$1")]}),p1(t,{props:[Yr(a,/:(plac\w+)/,fs+"input-$1")]})],i)}return""})}},Mte=[Dte],jte=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
||
If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(k){var P=k.getAttribute("data-emotion");P.indexOf(" ")!==-1&&(document.head.appendChild(k),k.setAttribute("data-s",""))})}var i=t.stylisPlugins||Mte;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var a={},o,l=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(k){for(var P=k.getAttribute("data-emotion").split(" "),D=1;D<P.length;D++)a[P[D]]=!0;l.push(k)});var c,d=[Ete,_te];process.env.NODE_ENV!=="production"&&d.push(Pte({get compat(){return C.compat}}),Ote);{var p,g=[yte,process.env.NODE_ENV!=="production"?function(k){k.root||(k.return?p.insert(k.return):k.value&&k.type!==b4&&p.insert(k.value+"{}"))}:Ste(function(k){p.insert(k)})],S=bte(d.concat(i,g)),w=function(P){return x0(vte(P),S)};c=function(P,D,M,R){p=M,process.env.NODE_ENV!=="production"&&D.map!==void 0&&(p={insert:function(z){M.insert(z+D.map)}}),w(P?P+"{"+D.styles+"}":D.styles),R&&(C.inserted[D.name]=!0)}}var C={key:n,sheet:new rte({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return C.sheet.hydrate(l),C},Ite=!0;function _4(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Mw=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Ite===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},jw=function(t,n,r){Mw(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function Rte(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 Nte={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},BN=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
||
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
||
You can read more about this here:
|
||
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Lte="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",zte=/[A-Z]|^ms/g,FN=/_EMO_([^_]+?)_([^]*?)_EMO_/g,T4=function(t){return t.charCodeAt(1)===45},UN=function(t){return t!=null&&typeof t!="boolean"},k4=IN(function(e){return T4(e)?e:e.replace(zte,"-$&").toLowerCase()}),Iw=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(FN,function(r,i,a){return Mc={name:i,styles:a,next:Mc},i})}return Nte[t]!==1&&!T4(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var Bte=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Fte=["normal","none","initial","inherit","unset"],Ute=Iw,Vte=/^-ms-/,Hte=/-(.)/g,VN={};Iw=function(t,n){if(t==="content"&&(typeof n!="string"||Fte.indexOf(n)===-1&&!Bte.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=Ute(t,n);return r!==""&&!T4(t)&&t.indexOf("-")!==-1&&VN[t]===void 0&&(VN[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(Vte,"ms-").replace(Hte,function(i,a){return a.toUpperCase()})+"?")),r}}var HN="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function g1(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(HN);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Mc={name:n.name,styles:n.styles,next:Mc},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Mc={name:r.name,styles:r.styles,next:Mc},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return Gte(e,t,n)}case"function":{if(e!==void 0){var a=Mc,o=n(e);return Mc=a,g1(e,t,o)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var l=[],c=n.replace(FN,function(p,g,S){var w="animation"+l.length;return l.push("const "+w+" = keyframes`"+S.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+w+"}"});l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+c+"`"]).join(`
|
||
`)+`
|
||
|
||
You should wrap it with \`css\` like this:
|
||
|
||
`+("css`"+c+"`"))}break}if(t==null)return n;var d=t[n];return d!==void 0?d:n}function Gte(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=g1(e,t,n[i])+";";else for(var a in n){var o=n[a];if(typeof o!="object")t!=null&&t[o]!==void 0?r+=a+"{"+t[o]+"}":UN(o)&&(r+=k4(a)+":"+Iw(a,o)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(HN);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var l=0;l<o.length;l++)UN(o[l])&&(r+=k4(a)+":"+Iw(a,o[l])+";");else{var c=g1(e,t,o);switch(a){case"animation":case"animationName":{r+=k4(a)+":"+c+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(Lte),r+=a+"{"+c+"}"}}}}return r}var GN=/label:\s*([^\s;\n{]+)\s*(;|$)/g,WN;process.env.NODE_ENV!=="production"&&(WN=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Mc,w0=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,a="";Mc=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,a+=g1(r,n,o)):(process.env.NODE_ENV!=="production"&&o[0]===void 0&&console.error(BN),a+=o[0]);for(var l=1;l<t.length;l++)a+=g1(r,n,t[l]),i&&(process.env.NODE_ENV!=="production"&&o[l]===void 0&&console.error(BN),a+=o[l]);var c;process.env.NODE_ENV!=="production"&&(a=a.replace(WN,function(S){return c=S,""})),GN.lastIndex=0;for(var d="",p;(p=GN.exec(a))!==null;)d+="-"+p[1];var g=Rte(a)+d;return process.env.NODE_ENV!=="production"?{name:g,styles:a,map:c,next:Mc,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:g,styles:a,next:Mc}},Wte=function(t){return t()},qN=vt["useInsertionEffect"]?vt["useInsertionEffect"]:!1,P4=qN||Wte,YN=qN||A.useLayoutEffect,qte={}.hasOwnProperty,A4=A.createContext(typeof HTMLElement<"u"?jte({key:"css"}):null);process.env.NODE_ENV!=="production"&&(A4.displayName="EmotionCacheContext"),A4.Provider;var Rw=function(t){return A.forwardRef(function(n,r){var i=A.useContext(A4);return t(n,i,r)})},xp=A.createContext({});process.env.NODE_ENV!=="production"&&(xp.displayName="EmotionThemeContext");var Yte=function(t,n){if(typeof n=="function"){var r=n(t);if(process.env.NODE_ENV!=="production"&&(r==null||typeof r!="object"||Array.isArray(r)))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return r}if(process.env.NODE_ENV!=="production"&&(n==null||typeof n!="object"||Array.isArray(n)))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return qm({},t,n)},Kte=jN(function(e){return jN(function(t){return Yte(e,t)})}),Xte=function(t){var n=A.useContext(xp);return t.theme!==n&&(n=Kte(n)(t.theme)),A.createElement(xp.Provider,{value:n},t.children)},KN="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",XN="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Qte=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Mw(n,r,i),P4(function(){return jw(n,r,i)}),null},Zte=Rw(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[KN],a=[r],o="";typeof e.className=="string"?o=_4(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var l=w0(a,void 0,A.useContext(xp));if(process.env.NODE_ENV!=="production"&&l.name.indexOf("-")===-1){var c=e[XN];c&&(l=w0([l,"label:"+c+";"]))}o+=t.key+"-"+l.name;var d={};for(var p in e)qte.call(e,p)&&p!=="css"&&p!==KN&&(process.env.NODE_ENV==="production"||p!==XN)&&(d[p]=e[p]);return d.ref=n,d.className=o,A.createElement(A.Fragment,null,A.createElement(Qte,{cache:t,serialized:l,isStringTag:typeof i=="string"}),A.createElement(i,d))});process.env.NODE_ENV!=="production"&&(Zte.displayName="EmotionCssPropInternal");var Jte={name:"@emotion/react",version:"11.10.6",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":"./macro.js"},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.js","macro.d.ts","macro.js.flow"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.10.6","@emotion/cache":"^11.10.5","@emotion/serialize":"^1.1.1","@emotion/use-insertion-effect-with-fallbacks":"^1.0.0","@emotion/utils":"^1.2.0","@emotion/weak-memoize":"^0.3.0","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.10.6","@emotion/css-prettifier":"1.1.1","@emotion/server":"11.10.0","@emotion/styled":"11.10.6","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":"./macro.js"}}}},QN=!1,y1=Rw(function(e,t){process.env.NODE_ENV!=="production"&&!QN&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),QN=!0);var n=e.styles,r=w0([n],void 0,A.useContext(xp)),i=A.useRef();return YN(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",a),o.hydrate([c])),i.current=[o,l],function(){o.flush()}},[t]),YN(function(){var a=i.current,o=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&jw(t,r.next,!0),o.tags.length){var c=o.tags[o.tags.length-1].nextElementSibling;o.before=c,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});process.env.NODE_ENV!=="production"&&(y1.displayName="EmotionGlobal");function $te(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w0(t)}var wp=function(){var t=$te.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},ene=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var a=t[r];if(a!=null){var o=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))o=e(a);else{process.env.NODE_ENV!=="production"&&a.styles!==void 0&&a.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),o="";for(var l in a)a[l]&&l&&(o&&(o+=" "),o+=l)}break}default:o=a}o&&(i&&(i+=" "),i+=o)}}return i};function tne(e,t,n){var r=[],i=_4(e,r,n);return r.length<2?n:i+t(r)}var nne=function(t){var n=t.cache,r=t.serializedArr;return P4(function(){for(var i=0;i<r.length;i++)jw(n,r[i],!1)}),null},rne=Rw(function(e,t){var n=!1,r=[],i=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var d=arguments.length,p=new Array(d),g=0;g<d;g++)p[g]=arguments[g];var S=w0(p,t.registered);return r.push(S),Mw(t,S,!1),t.key+"-"+S.name},a=function(){if(n&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var d=arguments.length,p=new Array(d),g=0;g<d;g++)p[g]=arguments[g];return tne(t.registered,i,ene(p))},o={css:i,cx:a,theme:A.useContext(xp)},l=e.children(o);return n=!0,A.createElement(A.Fragment,null,A.createElement(nne,{cache:t,serializedArr:r}),l)});if(process.env.NODE_ENV!=="production"&&(rne.displayName="EmotionClassNames"),process.env.NODE_ENV!=="production"){var ZN=!0,ine=typeof jest<"u"||typeof vi<"u";if(ZN&&!ine){var JN=typeof globalThis<"u"?globalThis:ZN?window:global,$N="__EMOTION_REACT_"+Jte.version.split(".")[0]+"__";JN[$N]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),JN[$N]=!0}}var eL=`
|
||
: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;
|
||
}
|
||
}
|
||
`,ane=()=>v.jsx(y1,{styles:eL}),one=()=>v.jsx(y1,{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;
|
||
}
|
||
|
||
${eL}
|
||
`});function sne(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Kr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:a}=e,o=A.createContext(void 0);o.displayName=t;function l(){var c;const d=A.useContext(o);if(!d&&n){const p=new Error(a??sne(r,i));throw p.name="ContextError",(c=Error.captureStackTrace)==null||c.call(Error,p,l),p}return d}return[o.Provider,l,o]}var[lne,une]=Kr({strict:!1,name:"PortalManagerContext"});function tL(e){const{children:t,zIndex:n}=e;return v.jsx(lne,{value:{zIndex:n},children:t})}tL.displayName="PortalManager";var jd=Boolean(globalThis==null?void 0:globalThis.document)?A.useLayoutEffect:A.useEffect,[nL,cne]=Kr({strict:!1,name:"PortalContext"}),O4="chakra-portal",dne=".chakra-portal",fne=e=>v.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),hne=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=A.useState(null),a=A.useRef(null),[,o]=A.useState({});A.useEffect(()=>o({}),[]);const l=cne(),c=une();jd(()=>{if(!r)return;const p=r.ownerDocument,g=t?l??p.body:p.body;if(!g)return;a.current=p.createElement("div"),a.current.className=O4,g.appendChild(a.current),o({});const S=a.current;return()=>{g.contains(S)&&g.removeChild(S)}},[r]);const d=c!=null&&c.zIndex?v.jsx(fne,{zIndex:c==null?void 0:c.zIndex,children:n}):n;return a.current?v2.createPortal(v.jsx(nL,{value:a.current,children:d}),a.current):v.jsx("span",{ref:p=>{p&&i(p)}})},pne=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,a=i??(typeof window<"u"?document.body:void 0),o=A.useMemo(()=>{const c=i==null?void 0:i.ownerDocument.createElement("div");return c&&(c.className=O4),c},[i]),[,l]=A.useState({});return jd(()=>l({}),[]),jd(()=>{if(!(!o||!a))return a.appendChild(o),()=>{a.removeChild(o)}},[o,a]),a&&o?v2.createPortal(v.jsx(nL,{value:r?o:null,children:t}),o):null};function $f(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?v.jsx(pne,{containerRef:n,...r}):v.jsx(hne,{...r})}$f.className=O4,$f.selector=dne,$f.displayName="Portal";function Cp(){const e=A.useContext(xp);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var D4=A.createContext({});D4.displayName="ColorModeContext";function Nw(){const e=A.useContext(D4);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}var Lw={light:"chakra-ui-light",dark:"chakra-ui-dark"};function mne(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?Lw.dark:Lw.light),document.body.classList.remove(r?Lw.light:Lw.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(r){var i;return((i=n.query().matches)!=null?i:r==="dark")?"dark":"light"},addListener(r){const i=n.query(),a=o=>{r(o.matches?"dark":"light")};return typeof i.addListener=="function"?i.addListener(a):i.addEventListener("change",a),()=>{typeof i.removeListener=="function"?i.removeListener(a):i.removeEventListener("change",a)}},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 vne="chakra-ui-color-mode";function gne(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 yne=gne(vne),rL=()=>{};function iL(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}function aL(e){const{value:t,children:n,options:{useSystemColorMode:r,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:o=yne}=e,l=i==="dark"?"dark":"light",[c,d]=A.useState(()=>iL(o,l)),[p,g]=A.useState(()=>iL(o)),{getSystemTheme:S,setClassName:w,setDataset:C,addListener:k}=A.useMemo(()=>mne({preventTransition:a}),[a]),P=i==="system"&&!c?p:c,D=A.useCallback(L=>{const z=L==="system"?S():L;d(z),w(z==="dark"),C(z),o.set(z)},[o,S,w,C]);jd(()=>{i==="system"&&g(S())},[]),A.useEffect(()=>{const L=o.get();if(L){D(L);return}if(i==="system"){D("system");return}D(l)},[o,l,i,D]);const M=A.useCallback(()=>{D(P==="dark"?"light":"dark")},[P,D]);A.useEffect(()=>{if(r)return k(D)},[r,k,D]);const R=A.useMemo(()=>({colorMode:t??P,toggleColorMode:t?rL:M,setColorMode:t?rL:D,forced:t!==void 0}),[P,M,D,t]);return v.jsx(D4.Provider,{value:R,children:n})}aL.displayName="ColorModeProvider";function oL(){const e=Nw(),t=Cp();return{...e,theme:t}}function bne(e,t,n){var r,i;if(t==null)return t;const a=o=>{var l,c;return(c=(l=e.__breakpoints)==null?void 0:l.asArray)==null?void 0:c[o]};return(i=(r=a(t))!=null?r:a(n))!=null?i:n}function Sne(e,t,n){var r,i;if(t==null)return t;const a=o=>{var l,c;return(c=(l=e.__cssMap)==null?void 0:l[o])==null?void 0:c.value};return(i=(r=a(t))!=null?r:a(n))!=null?i:n}function sL(e,t,n){const r=Cp();return xne(e,t,n)(r)}function xne(e,t,n){const r=Array.isArray(t)?t:[t],i=Array.isArray(n)?n:[n];return a=>{const o=i.filter(Boolean),l=r.map((c,d)=>{var p,g;if(e==="breakpoints")return bne(a,c,(p=o[d])!=null?p:c);const S=`${e}.${c}`;return Sne(a,S,(g=o[d])!=null?g:c)});return Array.isArray(t)?l:l[0]}}var sn=(...e)=>e.filter(Boolean).join(" ");function wne(){return process.env.NODE_ENV!=="production"}function hs(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}var b1=e=>{const{condition:t,message:n}=e;t&&wne()&&console.warn(n)};function Ru(e,...t){return Cne(e)?e(...t):e}var Cne=e=>typeof e=="function",Jn=e=>e?"":void 0,eh=e=>e?!0:void 0;function Qt(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function zw(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var Bw={},Ene={get exports(){return Bw},set exports(e){Bw=e}};(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,a=16,o=9007199254740991,l="[object Arguments]",c="[object Array]",d="[object AsyncFunction]",p="[object Boolean]",g="[object Date]",S="[object Error]",w="[object Function]",C="[object GeneratorFunction]",k="[object Map]",P="[object Number]",D="[object Null]",M="[object Object]",R="[object Proxy]",L="[object RegExp]",z="[object Set]",U="[object String]",V="[object Undefined]",Y="[object WeakMap]",J="[object ArrayBuffer]",$="[object DataView]",K="[object Float32Array]",fe="[object Float64Array]",X="[object Int8Array]",G="[object Int16Array]",te="[object Int32Array]",re="[object Uint8Array]",oe="[object Uint8ClampedArray]",ie="[object Uint16Array]",le="[object Uint32Array]",ee=/[\\^$.*+?()[\]{}|]/g,de=/^\[object .+?Constructor\]$/,Fe=/^(?:0|[1-9]\d*)$/,Pe={};Pe[K]=Pe[fe]=Pe[X]=Pe[G]=Pe[te]=Pe[re]=Pe[oe]=Pe[ie]=Pe[le]=!0,Pe[l]=Pe[c]=Pe[J]=Pe[p]=Pe[$]=Pe[g]=Pe[S]=Pe[w]=Pe[k]=Pe[P]=Pe[M]=Pe[L]=Pe[z]=Pe[U]=Pe[Y]=!1;var Oe=typeof zs=="object"&&zs&&zs.Object===Object&&zs,Ie=typeof self=="object"&&self&&self.Object===Object&&self,De=Oe||Ie||Function("return this")(),$e=t&&!t.nodeType&&t,it=$e&&!0&&e&&!e.nodeType&&e,mt=it&&it.exports===$e,bt=mt&&Oe.process,qe=function(){try{var ae=it&&it.require&&it.require("util").types;return ae||bt&&bt.binding&&bt.binding("util")}catch{}}(),Ce=qe&&qe.isTypedArray;function Nt(ae,ve,Le){switch(Le.length){case 0:return ae.call(ve);case 1:return ae.call(ve,Le[0]);case 2:return ae.call(ve,Le[0],Le[1]);case 3:return ae.call(ve,Le[0],Le[1],Le[2])}return ae.apply(ve,Le)}function Ae(ae,ve){for(var Le=-1,zt=Array(ae);++Le<ae;)zt[Le]=ve(Le);return zt}function xt(ae){return function(ve){return ae(ve)}}function ln(ae,ve){return ae==null?void 0:ae[ve]}function Wt(ae,ve){return function(Le){return ae(ve(Le))}}var In=Array.prototype,ar=Function.prototype,we=Object.prototype,at=De["__core-js_shared__"],ot=ar.toString,yt=we.hasOwnProperty,He=function(){var ae=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||"");return ae?"Symbol(src)_1."+ae:""}(),st=we.toString,Zt=ot.call(Object),nn=RegExp("^"+ot.call(yt).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=mt?De.Buffer:void 0,rn=De.Symbol,Rn=De.Uint8Array,lt=Ze?Ze.allocUnsafe:void 0,Ge=Wt(Object.getPrototypeOf,Object),pt=Object.create,Bt=we.propertyIsEnumerable,jn=In.splice,Un=rn?rn.toStringTag:void 0,Mt=function(){try{var ae=_l(Object,"defineProperty");return ae({},"",{}),ae}catch{}}(),Lt=Ze?Ze.isBuffer:void 0,vr=Math.max,gr=Date.now,hn=_l(De,"Map"),ri=_l(Object,"create"),Ys=function(){function ae(){}return function(ve){if(!Zs(ve))return{};if(pt)return pt(ve);ae.prototype=ve;var Le=new ae;return ae.prototype=void 0,Le}}();function so(ae){var ve=-1,Le=ae==null?0:ae.length;for(this.clear();++ve<Le;){var zt=ae[ve];this.set(zt[0],zt[1])}}function qn(){this.__data__=ri?ri(null):{},this.size=0}function Io(ae){var ve=this.has(ae)&&delete this.__data__[ae];return this.size-=ve?1:0,ve}function lo(ae){var ve=this.__data__;if(ri){var Le=ve[ae];return Le===r?void 0:Le}return yt.call(ve,ae)?ve[ae]:void 0}function Xo(ae){var ve=this.__data__;return ri?ve[ae]!==void 0:yt.call(ve,ae)}function Na(ae,ve){var Le=this.__data__;return this.size+=this.has(ae)?0:1,Le[ae]=ri&&ve===void 0?r:ve,this}so.prototype.clear=qn,so.prototype.delete=Io,so.prototype.get=lo,so.prototype.has=Xo,so.prototype.set=Na;function Fi(ae){var ve=-1,Le=ae==null?0:ae.length;for(this.clear();++ve<Le;){var zt=ae[ve];this.set(zt[0],zt[1])}}function Qo(){this.__data__=[],this.size=0}function tu(ae){var ve=this.__data__,Le=fa(ve,ae);if(Le<0)return!1;var zt=ve.length-1;return Le==zt?ve.pop():jn.call(ve,Le,1),--this.size,!0}function Ku(ae){var ve=this.__data__,Le=fa(ve,ae);return Le<0?void 0:ve[Le][1]}function Wc(ae){return fa(this.__data__,ae)>-1}function nu(ae,ve){var Le=this.__data__,zt=fa(Le,ae);return zt<0?(++this.size,Le.push([ae,ve])):Le[zt][1]=ve,this}Fi.prototype.clear=Qo,Fi.prototype.delete=tu,Fi.prototype.get=Ku,Fi.prototype.has=Wc,Fi.prototype.set=nu;function di(ae){var ve=-1,Le=ae==null?0:ae.length;for(this.clear();++ve<Le;){var zt=ae[ve];this.set(zt[0],zt[1])}}function pe(){this.size=0,this.__data__={hash:new so,map:new(hn||Fi),string:new so}}function ft(ae){var ve=su(this,ae).delete(ae);return this.size-=ve?1:0,ve}function kt(ae){return su(this,ae).get(ae)}function an(ae){return su(this,ae).has(ae)}function er(ae,ve){var Le=su(this,ae),zt=Le.size;return Le.set(ae,ve),this.size+=Le.size==zt?0:1,this}di.prototype.clear=pe,di.prototype.delete=ft,di.prototype.get=kt,di.prototype.has=an,di.prototype.set=er;function Pn(ae){var ve=this.__data__=new Fi(ae);this.size=ve.size}function zn(){this.__data__=new Fi,this.size=0}function Nn(ae){var ve=this.__data__,Le=ve.delete(ae);return this.size=ve.size,Le}function Ei(ae){return this.__data__.get(ae)}function Dr(ae){return this.__data__.has(ae)}function Mr(ae,ve){var Le=this.__data__;if(Le instanceof Fi){var zt=Le.__data__;if(!hn||zt.length<n-1)return zt.push([ae,ve]),this.size=++Le.size,this;Le=this.__data__=new di(zt)}return Le.set(ae,ve),this.size=Le.size,this}Pn.prototype.clear=zn,Pn.prototype.delete=Nn,Pn.prototype.get=Ei,Pn.prototype.has=Dr,Pn.prototype.set=Mr;function fi(ae,ve){var Le=Xc(ae),zt=!Le&&Eh(ae),Yn=!Le&&!zt&&af(ae),jr=!Le&&!zt&&!Yn&&tm(ae),pn=Le||zt||Yn||jr,An=pn?Ae(ae.length,String):[],rr=An.length;for(var ta in ae)(ve||yt.call(ae,ta))&&!(pn&&(ta=="length"||Yn&&(ta=="offset"||ta=="parent")||jr&&(ta=="buffer"||ta=="byteLength"||ta=="byteOffset")||ef(ta,rr)))&&An.push(ta);return An}function uo(ae,ve,Le){(Le!==void 0&&!ho(ae[ve],Le)||Le===void 0&&!(ve in ae))&&qc(ae,ve,Le)}function ru(ae,ve,Le){var zt=ae[ve];(!(yt.call(ae,ve)&&ho(zt,Le))||Le===void 0&&!(ve in ae))&&qc(ae,ve,Le)}function fa(ae,ve){for(var Le=ae.length;Le--;)if(ho(ae[Le][0],ve))return Le;return-1}function qc(ae,ve,Le){ve=="__proto__"&&Mt?Mt(ae,ve,{configurable:!0,enumerable:!0,value:Le,writable:!0}):ae[ve]=Le}var Xu=Jd();function iu(ae){return ae==null?ae===void 0?V:D:Un&&Un in Object(ae)?$d(ae):Kc(ae)}function au(ae){return hi(ae)&&iu(ae)==l}function xh(ae){if(!Zs(ae)||ea(ae))return!1;var ve=of(ae)?nn:de;return ve.test(rf(ae))}function Zd(ae){return hi(ae)&&em(ae.length)&&!!Pe[iu(ae)]}function ou(ae){if(!Zs(ae))return ma(ae);var ve=fo(ae),Le=[];for(var zt in ae)zt=="constructor"&&(ve||!yt.call(ae,zt))||Le.push(zt);return Le}function Ks(ae,ve,Le,zt,Yn){ae!==ve&&Xu(ve,function(jr,pn){if(Yn||(Yn=new Pn),Zs(jr))Hn(ae,ve,pn,Le,Ks,zt,Yn);else{var An=zt?zt(tf(ae,pn),jr,pn+"",ae,ve,Yn):void 0;An===void 0&&(An=jr),uo(ae,pn,An)}},nm)}function Hn(ae,ve,Le,zt,Yn,jr,pn){var An=tf(ae,Le),rr=tf(ve,Le),ta=pn.get(rr);if(ta){uo(ae,Le,ta);return}var Ui=jr?jr(An,rr,Le+"",ae,ve,pn):void 0,kr=Ui===void 0;if(kr){var za=Xc(rr),bs=!za&&af(rr),Zo=!za&&!bs&&tm(rr);Ui=rr,za||bs||Zo?Xc(An)?Ui=An:Zu(An)?Ui=Qu(An):bs?(kr=!1,Ui=ha(rr,!0)):Zo?(kr=!1,Ui=Qs(rr,!0)):Ui=[]:_h(rr)||Eh(rr)?(Ui=An,Eh(An)?Ui=Th(An):(!Zs(An)||of(An))&&(Ui=co(rr))):kr=!1}kr&&(pn.set(rr,Ui),Yn(Ui,rr,zt,jr,pn),pn.delete(rr)),uo(ae,Le,Ui)}function _r(ae,ve){return nf(qv(ae,ve,rm),ae+"")}var Xs=Mt?function(ae,ve){return Mt(ae,"toString",{configurable:!0,enumerable:!1,value:nr(ve),writable:!0})}:rm;function ha(ae,ve){if(ve)return ae.slice();var Le=ae.length,zt=lt?lt(Le):new ae.constructor(Le);return ae.copy(zt),zt}function La(ae){var ve=new ae.constructor(ae.byteLength);return new Rn(ve).set(new Rn(ae)),ve}function Qs(ae,ve){var Le=ve?La(ae.buffer):ae.buffer;return new ae.constructor(Le,ae.byteOffset,ae.length)}function Qu(ae,ve){var Le=-1,zt=ae.length;for(ve||(ve=Array(zt));++Le<zt;)ve[Le]=ae[Le];return ve}function pa(ae,ve,Le,zt){var Yn=!Le;Le||(Le={});for(var jr=-1,pn=ve.length;++jr<pn;){var An=ve[jr],rr=zt?zt(Le[An],ae[An],An,Le,ae):void 0;rr===void 0&&(rr=ae[An]),Yn?qc(Le,An,rr):ru(Le,An,rr)}return Le}function El(ae){return _r(function(ve,Le){var zt=-1,Yn=Le.length,jr=Yn>1?Le[Yn-1]:void 0,pn=Yn>2?Le[2]:void 0;for(jr=ae.length>3&&typeof jr=="function"?(Yn--,jr):void 0,pn&&Yc(Le[0],Le[1],pn)&&(jr=Yn<3?void 0:jr,Yn=1),ve=Object(ve);++zt<Yn;){var An=Le[zt];An&&ae(ve,An,zt,jr)}return ve})}function Jd(ae){return function(ve,Le,zt){for(var Yn=-1,jr=Object(ve),pn=zt(ve),An=pn.length;An--;){var rr=pn[ae?An:++Yn];if(Le(jr[rr],rr,jr)===!1)break}return ve}}function su(ae,ve){var Le=ae.__data__;return wh(ve)?Le[typeof ve=="string"?"string":"hash"]:Le.map}function _l(ae,ve){var Le=ln(ae,ve);return xh(Le)?Le:void 0}function $d(ae){var ve=yt.call(ae,Un),Le=ae[Un];try{ae[Un]=void 0;var zt=!0}catch{}var Yn=st.call(ae);return zt&&(ve?ae[Un]=Le:delete ae[Un]),Yn}function co(ae){return typeof ae.constructor=="function"&&!fo(ae)?Ys(Ge(ae)):{}}function ef(ae,ve){var Le=typeof ae;return ve=ve??o,!!ve&&(Le=="number"||Le!="symbol"&&Fe.test(ae))&&ae>-1&&ae%1==0&&ae<ve}function Yc(ae,ve,Le){if(!Zs(Le))return!1;var zt=typeof ve;return(zt=="number"?tr(Le)&&ef(ve,Le.length):zt=="string"&&ve in Le)?ho(Le[ve],ae):!1}function wh(ae){var ve=typeof ae;return ve=="string"||ve=="number"||ve=="symbol"||ve=="boolean"?ae!=="__proto__":ae===null}function ea(ae){return!!He&&He in ae}function fo(ae){var ve=ae&&ae.constructor,Le=typeof ve=="function"&&ve.prototype||we;return ae===Le}function ma(ae){var ve=[];if(ae!=null)for(var Le in Object(ae))ve.push(Le);return ve}function Kc(ae){return st.call(ae)}function qv(ae,ve,Le){return ve=vr(ve===void 0?ae.length-1:ve,0),function(){for(var zt=arguments,Yn=-1,jr=vr(zt.length-ve,0),pn=Array(jr);++Yn<jr;)pn[Yn]=zt[ve+Yn];Yn=-1;for(var An=Array(ve+1);++Yn<ve;)An[Yn]=zt[Yn];return An[ve]=Le(pn),Nt(ae,this,An)}}function tf(ae,ve){if(!(ve==="constructor"&&typeof ae[ve]=="function")&&ve!="__proto__")return ae[ve]}var nf=Ch(Xs);function Ch(ae){var ve=0,Le=0;return function(){var zt=gr(),Yn=a-(zt-Le);if(Le=zt,Yn>0){if(++ve>=i)return arguments[0]}else ve=0;return ae.apply(void 0,arguments)}}function rf(ae){if(ae!=null){try{return ot.call(ae)}catch{}try{return ae+""}catch{}}return""}function ho(ae,ve){return ae===ve||ae!==ae&&ve!==ve}var Eh=au(function(){return arguments}())?au:function(ae){return hi(ae)&&yt.call(ae,"callee")&&!Bt.call(ae,"callee")},Xc=Array.isArray;function tr(ae){return ae!=null&&em(ae.length)&&!of(ae)}function Zu(ae){return hi(ae)&&tr(ae)}var af=Lt||im;function of(ae){if(!Zs(ae))return!1;var ve=iu(ae);return ve==w||ve==C||ve==d||ve==R}function em(ae){return typeof ae=="number"&&ae>-1&&ae%1==0&&ae<=o}function Zs(ae){var ve=typeof ae;return ae!=null&&(ve=="object"||ve=="function")}function hi(ae){return ae!=null&&typeof ae=="object"}function _h(ae){if(!hi(ae)||iu(ae)!=M)return!1;var ve=Ge(ae);if(ve===null)return!0;var Le=yt.call(ve,"constructor")&&ve.constructor;return typeof Le=="function"&&Le instanceof Le&&ot.call(Le)==Zt}var tm=Ce?xt(Ce):Zd;function Th(ae){return pa(ae,nm(ae))}function nm(ae){return tr(ae)?fi(ae,!0):ou(ae)}var Tr=El(function(ae,ve,Le,zt){Ks(ae,ve,Le,zt)});function nr(ae){return function(){return ae}}function rm(ae){return ae}function im(){return!1}e.exports=Tr})(Ene,Bw);const Nu=Bw;var _ne=e=>/!(important)?$/.test(e),lL=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,Tne=(e,t)=>n=>{const r=String(t),i=_ne(r),a=lL(r),o=e?`${e}.${a}`:a;let l=hs(n.__cssMap)&&o in n.__cssMap?n.__cssMap[o].varRef:t;return l=lL(l),i?`${l} !important`:l};function M4(e){const{scale:t,transform:n,compose:r}=e;return(a,o)=>{var l;const c=Tne(t,a)(o);let d=(l=n==null?void 0:n(c,o))!=null?l:c;return r&&(d=r(d,o)),d}}var Fw=(...e)=>t=>e.reduce((n,r)=>r(n),t);function jc(e,t){return n=>{const r={property:n,scale:e};return r.transform=M4({scale:e,transform:t}),r}}var kne=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function Pne(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:kne(t),transform:n?M4({scale:n,compose:r}):r}}var uL=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function Ane(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...uL].join(" ")}function One(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...uL].join(" ")}var Dne={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Mne={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function jne(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var Ine={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},j4={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Rne=new Set(Object.values(j4)),cL=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Nne=e=>e.trim();function Lne(e,t){if(e==null||cL.has(e))return e;const r=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=r==null?void 0:r[1],a=r==null?void 0:r[2];if(!i||!a)return e;const o=i.includes("-gradient")?i:`${i}-gradient`,[l,...c]=a.split(",").map(Nne).filter(Boolean);if((c==null?void 0:c.length)===0)return e;const d=l in j4?j4[l]:l;c.unshift(d);const p=c.map(g=>{if(Rne.has(g))return g;const S=g.indexOf(" "),[w,C]=S!==-1?[g.substr(0,S),g.substr(S+1)]:[g],k=dL(C)?C:C&&C.split(" "),P=`colors.${w}`,D=P in t.__cssMap?t.__cssMap[P].varRef:w;return k?[D,...Array.isArray(k)?k:[k]].join(" "):D});return`${o}(${p.join(", ")})`}var dL=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),zne=(e,t)=>Lne(e,t??{});function Bne(e){return/^var\(--.+\)$/.test(e)}var Fne=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},Id=e=>t=>`${e}(${t})`,Ar={filter(e){return e!=="auto"?e:Dne},backdropFilter(e){return e!=="auto"?e:Mne},ring(e){return jne(Ar.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?Ane():e==="auto-gpu"?One():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=Fne(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(Bne(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:zne,blur:Id("blur"),opacity:Id("opacity"),brightness:Id("brightness"),contrast:Id("contrast"),dropShadow:Id("drop-shadow"),grayscale:Id("grayscale"),hueRotate:Id("hue-rotate"),invert:Id("invert"),saturate:Id("saturate"),sepia:Id("sepia"),bgImage(e){return e==null||dL(e)||cL.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=Ine[e])!=null?t:{},i={flexDirection:e};return n&&(i[n]=1),r&&(i[r]=1),i}},xe={borderWidths:jc("borderWidths"),borderStyles:jc("borderStyles"),colors:jc("colors"),borders:jc("borders"),radii:jc("radii",Ar.px),space:jc("space",Fw(Ar.vh,Ar.px)),spaceT:jc("space",Fw(Ar.vh,Ar.px)),degreeT(e){return{property:e,transform:Ar.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:M4({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:jc("sizes",Fw(Ar.vh,Ar.px)),sizesT:jc("sizes",Fw(Ar.vh,Ar.fraction)),shadows:jc("shadows"),logical:Pne,blur:jc("blur",Ar.blur)},Uw={background:xe.colors("background"),backgroundColor:xe.colors("backgroundColor"),backgroundImage:xe.propT("backgroundImage",Ar.bgImage),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Ar.bgClip},bgSize:xe.prop("backgroundSize"),bgPosition:xe.prop("backgroundPosition"),bg:xe.colors("background"),bgColor:xe.colors("backgroundColor"),bgPos:xe.prop("backgroundPosition"),bgRepeat:xe.prop("backgroundRepeat"),bgAttachment:xe.prop("backgroundAttachment"),bgGradient:xe.propT("backgroundImage",Ar.gradient),bgClip:{transform:Ar.bgClip}};Object.assign(Uw,{bgImage:Uw.backgroundImage,bgImg:Uw.backgroundImage});var Br={border:xe.borders("border"),borderWidth:xe.borderWidths("borderWidth"),borderStyle:xe.borderStyles("borderStyle"),borderColor:xe.colors("borderColor"),borderRadius:xe.radii("borderRadius"),borderTop:xe.borders("borderTop"),borderBlockStart:xe.borders("borderBlockStart"),borderTopLeftRadius:xe.radii("borderTopLeftRadius"),borderStartStartRadius:xe.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:xe.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:xe.radii("borderTopRightRadius"),borderStartEndRadius:xe.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:xe.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:xe.borders("borderRight"),borderInlineEnd:xe.borders("borderInlineEnd"),borderBottom:xe.borders("borderBottom"),borderBlockEnd:xe.borders("borderBlockEnd"),borderBottomLeftRadius:xe.radii("borderBottomLeftRadius"),borderBottomRightRadius:xe.radii("borderBottomRightRadius"),borderLeft:xe.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:xe.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:xe.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:xe.borders(["borderLeft","borderRight"]),borderInline:xe.borders("borderInline"),borderY:xe.borders(["borderTop","borderBottom"]),borderBlock:xe.borders("borderBlock"),borderTopWidth:xe.borderWidths("borderTopWidth"),borderBlockStartWidth:xe.borderWidths("borderBlockStartWidth"),borderTopColor:xe.colors("borderTopColor"),borderBlockStartColor:xe.colors("borderBlockStartColor"),borderTopStyle:xe.borderStyles("borderTopStyle"),borderBlockStartStyle:xe.borderStyles("borderBlockStartStyle"),borderBottomWidth:xe.borderWidths("borderBottomWidth"),borderBlockEndWidth:xe.borderWidths("borderBlockEndWidth"),borderBottomColor:xe.colors("borderBottomColor"),borderBlockEndColor:xe.colors("borderBlockEndColor"),borderBottomStyle:xe.borderStyles("borderBottomStyle"),borderBlockEndStyle:xe.borderStyles("borderBlockEndStyle"),borderLeftWidth:xe.borderWidths("borderLeftWidth"),borderInlineStartWidth:xe.borderWidths("borderInlineStartWidth"),borderLeftColor:xe.colors("borderLeftColor"),borderInlineStartColor:xe.colors("borderInlineStartColor"),borderLeftStyle:xe.borderStyles("borderLeftStyle"),borderInlineStartStyle:xe.borderStyles("borderInlineStartStyle"),borderRightWidth:xe.borderWidths("borderRightWidth"),borderInlineEndWidth:xe.borderWidths("borderInlineEndWidth"),borderRightColor:xe.colors("borderRightColor"),borderInlineEndColor:xe.colors("borderInlineEndColor"),borderRightStyle:xe.borderStyles("borderRightStyle"),borderInlineEndStyle:xe.borderStyles("borderInlineEndStyle"),borderTopRadius:xe.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:xe.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:xe.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:xe.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Br,{rounded:Br.borderRadius,roundedTop:Br.borderTopRadius,roundedTopLeft:Br.borderTopLeftRadius,roundedTopRight:Br.borderTopRightRadius,roundedTopStart:Br.borderStartStartRadius,roundedTopEnd:Br.borderStartEndRadius,roundedBottom:Br.borderBottomRadius,roundedBottomLeft:Br.borderBottomLeftRadius,roundedBottomRight:Br.borderBottomRightRadius,roundedBottomStart:Br.borderEndStartRadius,roundedBottomEnd:Br.borderEndEndRadius,roundedLeft:Br.borderLeftRadius,roundedRight:Br.borderRightRadius,roundedStart:Br.borderInlineStartRadius,roundedEnd:Br.borderInlineEndRadius,borderStart:Br.borderInlineStart,borderEnd:Br.borderInlineEnd,borderTopStartRadius:Br.borderStartStartRadius,borderTopEndRadius:Br.borderStartEndRadius,borderBottomStartRadius:Br.borderEndStartRadius,borderBottomEndRadius:Br.borderEndEndRadius,borderStartRadius:Br.borderInlineStartRadius,borderEndRadius:Br.borderInlineEndRadius,borderStartWidth:Br.borderInlineStartWidth,borderEndWidth:Br.borderInlineEndWidth,borderStartColor:Br.borderInlineStartColor,borderEndColor:Br.borderInlineEndColor,borderStartStyle:Br.borderInlineStartStyle,borderEndStyle:Br.borderInlineEndStyle});var Une={color:xe.colors("color"),textColor:xe.colors("color"),fill:xe.colors("fill"),stroke:xe.colors("stroke")},I4={boxShadow:xe.shadows("boxShadow"),mixBlendMode:!0,blendMode:xe.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:xe.prop("backgroundBlendMode"),opacity:!0};Object.assign(I4,{shadow:I4.boxShadow});var Vne={filter:{transform:Ar.filter},blur:xe.blur("--chakra-blur"),brightness:xe.propT("--chakra-brightness",Ar.brightness),contrast:xe.propT("--chakra-contrast",Ar.contrast),hueRotate:xe.degreeT("--chakra-hue-rotate"),invert:xe.propT("--chakra-invert",Ar.invert),saturate:xe.propT("--chakra-saturate",Ar.saturate),dropShadow:xe.propT("--chakra-drop-shadow",Ar.dropShadow),backdropFilter:{transform:Ar.backdropFilter},backdropBlur:xe.blur("--chakra-backdrop-blur"),backdropBrightness:xe.propT("--chakra-backdrop-brightness",Ar.brightness),backdropContrast:xe.propT("--chakra-backdrop-contrast",Ar.contrast),backdropHueRotate:xe.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:xe.propT("--chakra-backdrop-invert",Ar.invert),backdropSaturate:xe.propT("--chakra-backdrop-saturate",Ar.saturate)},Vw={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Ar.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:xe.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:xe.space("gap"),rowGap:xe.space("rowGap"),columnGap:xe.space("columnGap")};Object.assign(Vw,{flexDir:Vw.flexDirection});var fL={gridGap:xe.space("gridGap"),gridColumnGap:xe.space("gridColumnGap"),gridRowGap:xe.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},Hne={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Ar.outline},outlineOffset:!0,outlineColor:xe.colors("outlineColor")},Lu={width:xe.sizesT("width"),inlineSize:xe.sizesT("inlineSize"),height:xe.sizes("height"),blockSize:xe.sizes("blockSize"),boxSize:xe.sizes(["width","height"]),minWidth:xe.sizes("minWidth"),minInlineSize:xe.sizes("minInlineSize"),minHeight:xe.sizes("minHeight"),minBlockSize:xe.sizes("minBlockSize"),maxWidth:xe.sizes("maxWidth"),maxInlineSize:xe.sizes("maxInlineSize"),maxHeight:xe.sizes("maxHeight"),maxBlockSize:xe.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minWQuery)!=null?i:`@media screen and (min-width: ${e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.maxWQuery)!=null?i:`@media screen and (max-width: ${e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:xe.propT("float",Ar.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(Lu,{w:Lu.width,h:Lu.height,minW:Lu.minWidth,maxW:Lu.maxWidth,minH:Lu.minHeight,maxH:Lu.maxHeight,overscroll:Lu.overscrollBehavior,overscrollX:Lu.overscrollBehaviorX,overscrollY:Lu.overscrollBehaviorY});var Gne={listStyleType:!0,listStylePosition:!0,listStylePos:xe.prop("listStylePosition"),listStyleImage:!0,listStyleImg:xe.prop("listStyleImage")};function Wne(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}var qne=e=>{const t=new WeakMap;return(r,i,a,o)=>{if(typeof r>"u")return e(r,i,a);t.has(r)||t.set(r,new Map);const l=t.get(r);if(l.has(i))return l.get(i);const c=e(r,i,a,o);return l.set(i,c),c}},Yne=qne(Wne),Kne={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},Xne={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},R4=(e,t,n)=>{const r={},i=Yne(e,t,{});for(const a in i)a in n&&n[a]!=null||(r[a]=i[a]);return r},Qne={srOnly:{transform(e){return e===!0?Kne:e==="focusable"?Xne:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>R4(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>R4(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>R4(t,e,n)}},S1={position:!0,pos:xe.prop("position"),zIndex:xe.prop("zIndex","zIndices"),inset:xe.spaceT("inset"),insetX:xe.spaceT(["left","right"]),insetInline:xe.spaceT("insetInline"),insetY:xe.spaceT(["top","bottom"]),insetBlock:xe.spaceT("insetBlock"),top:xe.spaceT("top"),insetBlockStart:xe.spaceT("insetBlockStart"),bottom:xe.spaceT("bottom"),insetBlockEnd:xe.spaceT("insetBlockEnd"),left:xe.spaceT("left"),insetInlineStart:xe.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:xe.spaceT("right"),insetInlineEnd:xe.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(S1,{insetStart:S1.insetInlineStart,insetEnd:S1.insetInlineEnd});var Zne={ring:{transform:Ar.ring},ringColor:xe.colors("--chakra-ring-color"),ringOffset:xe.prop("--chakra-ring-offset-width"),ringOffsetColor:xe.colors("--chakra-ring-offset-color"),ringInset:xe.prop("--chakra-ring-inset")},Ni={margin:xe.spaceT("margin"),marginTop:xe.spaceT("marginTop"),marginBlockStart:xe.spaceT("marginBlockStart"),marginRight:xe.spaceT("marginRight"),marginInlineEnd:xe.spaceT("marginInlineEnd"),marginBottom:xe.spaceT("marginBottom"),marginBlockEnd:xe.spaceT("marginBlockEnd"),marginLeft:xe.spaceT("marginLeft"),marginInlineStart:xe.spaceT("marginInlineStart"),marginX:xe.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:xe.spaceT("marginInline"),marginY:xe.spaceT(["marginTop","marginBottom"]),marginBlock:xe.spaceT("marginBlock"),padding:xe.space("padding"),paddingTop:xe.space("paddingTop"),paddingBlockStart:xe.space("paddingBlockStart"),paddingRight:xe.space("paddingRight"),paddingBottom:xe.space("paddingBottom"),paddingBlockEnd:xe.space("paddingBlockEnd"),paddingLeft:xe.space("paddingLeft"),paddingInlineStart:xe.space("paddingInlineStart"),paddingInlineEnd:xe.space("paddingInlineEnd"),paddingX:xe.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:xe.space("paddingInline"),paddingY:xe.space(["paddingTop","paddingBottom"]),paddingBlock:xe.space("paddingBlock")};Object.assign(Ni,{m:Ni.margin,mt:Ni.marginTop,mr:Ni.marginRight,me:Ni.marginInlineEnd,marginEnd:Ni.marginInlineEnd,mb:Ni.marginBottom,ml:Ni.marginLeft,ms:Ni.marginInlineStart,marginStart:Ni.marginInlineStart,mx:Ni.marginX,my:Ni.marginY,p:Ni.padding,pt:Ni.paddingTop,py:Ni.paddingY,px:Ni.paddingX,pb:Ni.paddingBottom,pl:Ni.paddingLeft,ps:Ni.paddingInlineStart,paddingStart:Ni.paddingInlineStart,pr:Ni.paddingRight,pe:Ni.paddingInlineEnd,paddingEnd:Ni.paddingInlineEnd});var Jne={textDecorationColor:xe.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:xe.shadows("textShadow")},$ne={clipPath:!0,transform:xe.propT("transform",Ar.transform),transformOrigin:!0,translateX:xe.spaceT("--chakra-translate-x"),translateY:xe.spaceT("--chakra-translate-y"),skewX:xe.degreeT("--chakra-skew-x"),skewY:xe.degreeT("--chakra-skew-y"),scaleX:xe.prop("--chakra-scale-x"),scaleY:xe.prop("--chakra-scale-y"),scale:xe.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:xe.degreeT("--chakra-rotate")},ere={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:xe.prop("transitionDuration","transition.duration"),transitionProperty:xe.prop("transitionProperty","transition.property"),transitionTimingFunction:xe.prop("transitionTimingFunction","transition.easing")},tre={fontFamily:xe.prop("fontFamily","fonts"),fontSize:xe.prop("fontSize","fontSizes",Ar.px),fontWeight:xe.prop("fontWeight","fontWeights"),lineHeight:xe.prop("lineHeight","lineHeights"),letterSpacing:xe.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},nre={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:xe.spaceT("scrollMargin"),scrollMarginTop:xe.spaceT("scrollMarginTop"),scrollMarginBottom:xe.spaceT("scrollMarginBottom"),scrollMarginLeft:xe.spaceT("scrollMarginLeft"),scrollMarginRight:xe.spaceT("scrollMarginRight"),scrollMarginX:xe.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:xe.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:xe.spaceT("scrollPadding"),scrollPaddingTop:xe.spaceT("scrollPaddingTop"),scrollPaddingBottom:xe.spaceT("scrollPaddingBottom"),scrollPaddingLeft:xe.spaceT("scrollPaddingLeft"),scrollPaddingRight:xe.spaceT("scrollPaddingRight"),scrollPaddingX:xe.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:xe.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function hL(e){return hs(e)&&e.reference?e.reference:String(e)}var Hw=(e,...t)=>t.map(hL).join(` ${e} `).replace(/calc/g,""),pL=(...e)=>`calc(${Hw("+",...e)})`,mL=(...e)=>`calc(${Hw("-",...e)})`,N4=(...e)=>`calc(${Hw("*",...e)})`,vL=(...e)=>`calc(${Hw("/",...e)})`,gL=e=>{const t=hL(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:N4(t,-1)},uv=Object.assign(e=>({add:(...t)=>uv(pL(e,...t)),subtract:(...t)=>uv(mL(e,...t)),multiply:(...t)=>uv(N4(e,...t)),divide:(...t)=>uv(vL(e,...t)),negate:()=>uv(gL(e)),toString:()=>e.toString()}),{add:pL,subtract:mL,multiply:N4,divide:vL,negate:gL});function rre(e,t="-"){return e.replace(/\s+/g,t)}function ire(e){const t=rre(e.toString());return ore(are(t))}function are(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function ore(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function sre(e,t=""){return[t,e].filter(Boolean).join("-")}function lre(e,t){return`var(${e}${t?`, ${t}`:""})`}function ure(e,t=""){return ire(`--${sre(e,t)}`)}function Rr(e,t,n){const r=ure(e,n);return{variable:r,reference:lre(r,t)}}function cre(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function dre(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function L4(e){if(e==null)return e;const{unitless:t}=dre(e);return t||typeof e=="number"?`${e}px`:e}var yL=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,z4=e=>Object.fromEntries(Object.entries(e).sort(yL));function bL(e){const t=z4(e);return Object.assign(Object.values(t),t)}function fre(e){const t=Object.keys(z4(e));return new Set(t)}function SL(e){var t;if(!e)return e;e=(t=L4(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function x1(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${L4(e)})`),t&&n.push("and",`(max-width: ${L4(t)})`),n.join(" ")}function hre(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=bL(e),r=Object.entries(e).sort(yL).map(([o,l],c,d)=>{var p;let[,g]=(p=d[c+1])!=null?p:[];return g=parseFloat(g)>0?SL(g):void 0,{_minW:SL(l),breakpoint:o,minW:l,maxW:g,maxWQuery:x1(null,g),minWQuery:x1(l),minMaxQuery:x1(l,g)}}),i=fre(e),a=Array.from(i.values());return{keys:i,normalized:n,isResponsive(o){const l=Object.keys(o);return l.length>0&&l.every(c=>i.has(c))},asObject:z4(e),asArray:bL(e),details:r,get(o){return r.find(l=>l.breakpoint===o)},media:[null,...n.map(o=>x1(o)).slice(1)],toArrayValue(o){if(!hs(o))throw new Error("toArrayValue: value must be an object");const l=a.map(c=>{var d;return(d=o[c])!=null?d:null});for(;cre(l)===null;)l.pop();return l},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((l,c,d)=>{const p=a[d];return p!=null&&c!=null&&(l[p]=c),l},{})}}}var qo={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Ep=e=>xL(t=>e(t,"&"),"[role=group]","[data-group]",".group"),th=e=>xL(t=>e(t,"~ &"),"[data-peer]",".peer"),xL=(e,...t)=>t.map(e).join(", "),Gw={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Ep(qo.hover),_peerHover:th(qo.hover),_groupFocus:Ep(qo.focus),_peerFocus:th(qo.focus),_groupFocusVisible:Ep(qo.focusVisible),_peerFocusVisible:th(qo.focusVisible),_groupActive:Ep(qo.active),_peerActive:th(qo.active),_groupDisabled:Ep(qo.disabled),_peerDisabled:th(qo.disabled),_groupInvalid:Ep(qo.invalid),_peerInvalid:th(qo.invalid),_groupChecked:Ep(qo.checked),_peerChecked:th(qo.checked),_groupFocusWithin:Ep(qo.focusWithin),_peerFocusWithin:th(qo.focusWithin),_peerPlaceholderShown:th(qo.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]"},pre=Object.keys(Gw);function wL(e,t){return Rr(String(e).replace(/\./g,"-"),void 0,t)}function mre(e,t){let n={};const r={};for(const[i,a]of Object.entries(e)){const{isSemantic:o,value:l}=a,{variable:c,reference:d}=wL(i,t==null?void 0:t.cssVarPrefix);if(!o){if(i.startsWith("space")){const S=i.split("."),[w,...C]=S,k=`${w}.-${C.join(".")}`,P=uv.negate(l),D=uv.negate(d);r[k]={value:P,var:c,varRef:D}}n[c]=l,r[i]={value:l,var:c,varRef:d};continue}const p=S=>{const C=[String(i).split(".")[0],S].join(".");if(!e[C])return S;const{reference:P}=wL(C,t==null?void 0:t.cssVarPrefix);return P},g=hs(l)?l:{default:l};n=Nu(n,Object.entries(g).reduce((S,[w,C])=>{var k,P;const D=p(C);if(w==="default")return S[c]=D,S;const M=(P=(k=Gw)==null?void 0:k[w])!=null?P:w;return S[M]={[c]:D},S},{})),r[i]={value:d,var:c,varRef:d}}return{cssVars:n,cssMap:r}}function vre(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function gre(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var yre=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function bre(e){return gre(e,yre)}function Sre(e){return e.semanticTokens}function xre(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}function wre({tokens:e,semanticTokens:t}){var n,r;const i=Object.entries((n=B4(e))!=null?n:{}).map(([o,l])=>[o,{isSemantic:!1,value:l}]),a=Object.entries((r=B4(t,1))!=null?r:{}).map(([o,l])=>[o,{isSemantic:!0,value:l}]);return Object.fromEntries([...i,...a])}function B4(e,t=1/0){return!hs(e)&&!Array.isArray(e)||!t?e:Object.entries(e).reduce((n,[r,i])=>(hs(i)||Array.isArray(i)?Object.entries(B4(i,t-1)).forEach(([a,o])=>{n[`${r}.${a}`]=o}):n[r]=i,n),{})}function Cre(e){var t;const n=xre(e),r=bre(n),i=Sre(n),a=wre({tokens:r,semanticTokens:i}),o=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:l,cssVars:c}=mre(a,{cssVarPrefix:o});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...c},__cssMap:l,__breakpoints:hre(n.breakpoints)}),n}var F4=Nu({},Uw,Br,Une,Vw,Lu,Vne,Zne,Hne,fL,Qne,S1,I4,Ni,nre,tre,Jne,$ne,Gne,ere),Ere=Object.assign({},Ni,Lu,Vw,fL,S1),CL=Object.keys(Ere),_re=[...Object.keys(F4),...pre],Tre={...F4,...Gw},kre=e=>e in Tre,Pre=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,a={};for(const o in e){let l=Ru(e[o],t);if(l==null)continue;if(l=hs(l)&&n(l)?r(l):l,!Array.isArray(l)){a[o]=l;continue}const c=l.slice(0,i.length).length;for(let d=0;d<c;d+=1){const p=i==null?void 0:i[d];if(!p){a[o]=l[d];continue}a[p]=a[p]||{},l[d]!=null&&(a[p][o]=l[d])}}return a};function Are(e){const t=[];let n="",r=!1;for(let i=0;i<e.length;i++){const a=e[i];a==="("?(r=!0,n+=a):a===")"?(r=!1,n+=a):a===","&&!r?(t.push(n),n=""):n+=a}return n=n.trim(),n&&t.push(n),t}function Ore(e){return/^var\(--.+\)$/.test(e)}var Dre=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!Ore(t),Mre=(e,t)=>{var n,r;if(t==null)return t;const i=c=>{var d,p;return(p=(d=e.__cssMap)==null?void 0:d[c])==null?void 0:p.varRef},a=c=>{var d;return(d=i(c))!=null?d:c},[o,l]=Are(t);return t=(r=(n=i(o))!=null?n:a(l))!=null?r:a(t),t};function jre(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(a,o=!1)=>{var l,c,d;const p=Ru(a,r),g=Pre(p)(r);let S={};for(let w in g){const C=g[w];let k=Ru(C,r);w in n&&(w=n[w]),Dre(w,k)&&(k=Mre(r,k));let P=t[w];if(P===!0&&(P={property:w}),hs(k)){S[w]=(l=S[w])!=null?l:{},S[w]=Nu({},S[w],i(k,!0));continue}let D=(d=(c=P==null?void 0:P.transform)==null?void 0:c.call(P,k,r,p))!=null?d:k;D=P!=null&&P.processResult?i(D,!0):D;const M=Ru(P==null?void 0:P.property,r);if(!o&&(P!=null&&P.static)){const R=Ru(P.static,r);S=Nu({},S,R)}if(M&&Array.isArray(M)){for(const R of M)S[R]=D;continue}if(M){M==="&"&&hs(D)?S=Nu({},S,D):S[M]=D;continue}if(hs(D)){S=Nu({},S,D);continue}S[w]=D}return S};return i}var EL=e=>t=>jre({theme:t,pseudos:Gw,configs:F4})(e);function nRe(e){return e}function rRe(e){return e}function fr(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Ire(e,t){if(Array.isArray(e))return e;if(hs(e))return t(e);if(e!=null)return[e]}function Rre(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function Nre(e){const t=e.__breakpoints;return function(r,i,a,o){var l,c;if(!t)return;const d={},p=Ire(a,t.toArrayValue);if(!p)return d;const g=p.length,S=g===1,w=!!r.parts;for(let C=0;C<g;C++){const k=t.details[C],P=t.details[Rre(p,C)],D=x1(k.minW,P==null?void 0:P._minW),M=Ru((l=r[i])==null?void 0:l[p[C]],o);if(M){if(w){(c=r.parts)==null||c.forEach(R=>{Nu(d,{[R]:S?M[R]:{[D]:M[R]}})});continue}if(!w){S?Nu(d,M):d[D]=M;continue}d[D]=M}}return d}}function Lre(e){return t=>{var n;const{variant:r,size:i,theme:a}=t,o=Nre(a);return Nu({},Ru((n=e.baseStyle)!=null?n:{},t),o(e,"sizes",i,t),o(e,"variants",r,t))}}function zre(e,t,n){var r,i,a;return(a=(i=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:i.varRef)!=null?a:n}function Si(e){return vre(e,["styleConfig","size","variant","colorScheme"])}var Bre=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function Fre(e){return hs(e)?Bre.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}var Ure={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},Vre=Ure,Hre={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},Gre=Hre,Wre={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},qre=Wre,Yre={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Kre=Yre,Xre={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},Qre=Xre,Zre={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},Jre={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},$re={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},eie={property:Zre,easing:Jre,duration:$re},tie=eie,nie={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},rie=nie,iie={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},aie=iie,oie={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},_L=oie,TL={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},sie={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},lie={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},uie={...TL,...sie,container:lie},kL=uie,cie={breakpoints:Gre,zIndices:Vre,radii:Kre,blur:rie,colors:qre,..._L,sizes:kL,shadows:Qre,space:TL,borders:aie,transition:tie};function Xr(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...p){r();for(const g of p)t[g]=c(g);return Xr(e,t)}function a(...p){for(const g of p)g in t||(t[g]=c(g));return Xr(e,t)}function o(){return Object.fromEntries(Object.entries(t).map(([g,S])=>[g,S.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([g,S])=>[g,S.className]))}function c(p){const w=`chakra-${(["container","root"].includes(p??"")?[e]:[e,p]).filter(Boolean).join("__")}`;return{className:w,selector:`.${w}`,toString:()=>p}}return{parts:i,toPart:c,extend:a,selectors:o,classnames:l,get keys(){return Object.keys(t)},__type:{}}}var die=Xr("accordion").parts("root","container","button","panel").extend("icon"),fie=Xr("alert").parts("title","description","container").extend("icon","spinner"),hie=Xr("avatar").parts("label","badge","container").extend("excessLabel","group"),pie=Xr("breadcrumb").parts("link","item","container").extend("separator");Xr("button").parts();var mie=Xr("checkbox").parts("control","icon","container").extend("label");Xr("progress").parts("track","filledTrack").extend("label");var vie=Xr("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),gie=Xr("editable").parts("preview","input","textarea"),yie=Xr("form").parts("container","requiredIndicator","helperText"),bie=Xr("formError").parts("text","icon"),Sie=Xr("input").parts("addon","field","element"),xie=Xr("list").parts("container","item","icon"),wie=Xr("menu").parts("button","list","item").extend("groupTitle","command","divider"),Cie=Xr("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Eie=Xr("numberinput").parts("root","field","stepperGroup","stepper");Xr("pininput").parts("field");var _ie=Xr("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),Tie=Xr("progress").parts("label","filledTrack","track"),kie=Xr("radio").parts("container","control","label"),Pie=Xr("select").parts("field","icon"),Aie=Xr("slider").parts("container","track","thumb","filledTrack","mark"),Oie=Xr("stat").parts("container","label","helpText","number","icon"),Die=Xr("switch").parts("container","track","thumb"),Mie=Xr("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),jie=Xr("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Iie=Xr("tag").parts("container","label","closeButton"),Rie=Xr("card").parts("container","header","body","footer");function cv(e,t,n){return Math.min(Math.max(e,n),t)}class Nie extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var w1=Nie;function U4(e){if(typeof e!="string")throw new w1(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=Gie.test(e)?Bie(e):e;const n=Fie.exec(t);if(n){const o=Array.from(n).slice(1);return[...o.slice(0,3).map(l=>parseInt(C1(l,2),16)),parseInt(C1(o[3]||"f",2),16)/255]}const r=Uie.exec(t);if(r){const o=Array.from(r).slice(1);return[...o.slice(0,3).map(l=>parseInt(l,16)),parseInt(o[3]||"ff",16)/255]}const i=Vie.exec(t);if(i){const o=Array.from(i).slice(1);return[...o.slice(0,3).map(l=>parseInt(l,10)),parseFloat(o[3]||"1")]}const a=Hie.exec(t);if(a){const[o,l,c,d]=Array.from(a).slice(1).map(parseFloat);if(cv(0,100,l)!==l)throw new w1(e);if(cv(0,100,c)!==c)throw new w1(e);return[...Wie(o,l,c),Number.isNaN(d)?1:d]}throw new w1(e)}function Lie(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0)%2341}const PL=e=>parseInt(e.replace(/_/g,""),36),zie="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=PL(t.substring(0,3)),r=PL(t.substring(3)).toString(16);let i="";for(let a=0;a<6-r.length;a++)i+="0";return e[n]=`${i}${r}`,e},{});function Bie(e){const t=e.toLowerCase().trim(),n=zie[Lie(t)];if(!n)throw new w1(e);return`#${n}`}const C1=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),Fie=new RegExp(`^#${C1("([a-f0-9])",3)}([a-f0-9])?$`,"i"),Uie=new RegExp(`^#${C1("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),Vie=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${C1(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),Hie=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,Gie=/^[a-z]+$/i,AL=e=>Math.round(e*255),Wie=(e,t,n)=>{let r=n/100;if(t===0)return[r,r,r].map(AL);const i=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*(t/100),o=a*(1-Math.abs(i%2-1));let l=0,c=0,d=0;i>=0&&i<1?(l=a,c=o):i>=1&&i<2?(l=o,c=a):i>=2&&i<3?(c=a,d=o):i>=3&&i<4?(c=o,d=a):i>=4&&i<5?(l=o,d=a):i>=5&&i<6&&(l=a,d=o);const p=r-a/2,g=l+p,S=c+p,w=d+p;return[g,S,w].map(AL)};function qie(e,t,n,r){return`rgba(${cv(0,255,e).toFixed()}, ${cv(0,255,t).toFixed()}, ${cv(0,255,n).toFixed()}, ${parseFloat(cv(0,1,r).toFixed(3))})`}function Yie(e,t){const[n,r,i,a]=U4(e);return qie(n,r,i,a-t)}function Kie(e){const[t,n,r,i]=U4(e);let a=o=>{const l=cv(0,255,o).toString(16);return l.length===1?`0${l}`:l};return`#${a(t)}${a(n)}${a(r)}${i<1?a(Math.round(i*255)):""}`}function Xie(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}var Qie=e=>Object.keys(e).length===0,Fs=(e,t,n)=>{const r=Xie(e,`colors.${t}`,t);try{return Kie(r),r}catch{return n??"#000000"}},Zie=e=>{const[t,n,r]=U4(e);return(t*299+n*587+r*114)/1e3},Jie=e=>t=>{const n=Fs(t,e);return Zie(n)<128?"dark":"light"},$ie=e=>t=>Jie(e)(t)==="dark",C0=(e,t)=>n=>{const r=Fs(n,e);return Yie(r,1-t)};function OL(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
|
||
45deg,
|
||
${t} 25%,
|
||
transparent 25%,
|
||
transparent 50%,
|
||
${t} 50%,
|
||
${t} 75%,
|
||
transparent 75%,
|
||
transparent
|
||
)`,backgroundSize:`${e} ${e}`}}var eae=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function tae(e){const t=eae();return!e||Qie(e)?t:e.string&&e.colors?rae(e.string,e.colors):e.string&&!e.colors?nae(e.string):e.colors&&!e.string?iae(e.colors):t}function nae(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 rae(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 iae(e){return e[Math.floor(Math.random()*e.length)]}function bn(e,t){return n=>n.colorMode==="dark"?t:e}function V4(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?t==="vertical"?n:r:{}}function DL(e){return hs(e)&&e.reference?e.reference:String(e)}var Ww=(e,...t)=>t.map(DL).join(` ${e} `).replace(/calc/g,""),ML=(...e)=>`calc(${Ww("+",...e)})`,jL=(...e)=>`calc(${Ww("-",...e)})`,H4=(...e)=>`calc(${Ww("*",...e)})`,IL=(...e)=>`calc(${Ww("/",...e)})`,RL=e=>{const t=DL(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:H4(t,-1)},nh=Object.assign(e=>({add:(...t)=>nh(ML(e,...t)),subtract:(...t)=>nh(jL(e,...t)),multiply:(...t)=>nh(H4(e,...t)),divide:(...t)=>nh(IL(e,...t)),negate:()=>nh(RL(e)),toString:()=>e.toString()}),{add:ML,subtract:jL,multiply:H4,divide:IL,negate:RL});function aae(e){return!Number.isInteger(parseFloat(e.toString()))}function oae(e,t="-"){return e.replace(/\s+/g,t)}function NL(e){const t=oae(e.toString());return t.includes("\\.")?e:aae(e)?t.replace(".","\\."):e}function sae(e,t=""){return[t,NL(e)].filter(Boolean).join("-")}function lae(e,t){return`var(${NL(e)}${t?`, ${t}`:""})`}function uae(e,t=""){return`--${sae(e,t)}`}function ao(e,t){const n=uae(e,t==null?void 0:t.prefix);return{variable:n,reference:lae(n,cae(t==null?void 0:t.fallback))}}function cae(e){return typeof e=="string"?e:e==null?void 0:e.reference}var{defineMultiStyleConfig:dae,definePartsStyle:qw}=fr(Die.keys),E1=ao("switch-track-width"),dv=ao("switch-track-height"),G4=ao("switch-track-diff"),fae=nh.subtract(E1,dv),W4=ao("switch-thumb-x"),_1=ao("switch-bg"),hae=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[E1.reference],height:[dv.reference],transitionProperty:"common",transitionDuration:"fast",[_1.variable]:"colors.gray.300",_dark:{[_1.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[_1.variable]:`colors.${t}.500`,_dark:{[_1.variable]:`colors.${t}.200`}},bg:_1.reference}},pae={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[dv.reference],height:[dv.reference],_checked:{transform:`translateX(${W4.reference})`}},mae=qw(e=>({container:{[G4.variable]:fae,[W4.variable]:G4.reference,_rtl:{[W4.variable]:nh(G4).negate().toString()}},track:hae(e),thumb:pae})),vae={sm:qw({container:{[E1.variable]:"1.375rem",[dv.variable]:"sizes.3"}}),md:qw({container:{[E1.variable]:"1.875rem",[dv.variable]:"sizes.4"}}),lg:qw({container:{[E1.variable]:"2.875rem",[dv.variable]:"sizes.6"}})},gae=dae({baseStyle:mae,sizes:vae,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:yae,definePartsStyle:E0}=fr(Mie.keys),bae=E0({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Yw={"&[data-is-numeric=true]":{textAlign:"end"}},Sae=E0(e=>{const{colorScheme:t}=e;return{th:{color:bn("gray.600","gray.400")(e),borderBottom:"1px",borderColor:bn(`${t}.100`,`${t}.700`)(e),...Yw},td:{borderBottom:"1px",borderColor:bn(`${t}.100`,`${t}.700`)(e),...Yw},caption:{color:bn("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),xae=E0(e=>{const{colorScheme:t}=e;return{th:{color:bn("gray.600","gray.400")(e),borderBottom:"1px",borderColor:bn(`${t}.100`,`${t}.700`)(e),...Yw},td:{borderBottom:"1px",borderColor:bn(`${t}.100`,`${t}.700`)(e),...Yw},caption:{color:bn("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:bn(`${t}.100`,`${t}.700`)(e)},td:{background:bn(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),wae={simple:Sae,striped:xae,unstyled:{}},Cae={sm:E0({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:E0({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:E0({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},Eae=yae({baseStyle:bae,variants:wae,sizes:Cae,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),yl=Rr("tabs-color"),Ic=Rr("tabs-bg"),Kw=Rr("tabs-border-color"),{defineMultiStyleConfig:_ae,definePartsStyle:Rd}=fr(jie.keys),Tae=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},kae=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Pae=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:n==="vertical"?"column":"row"}},Aae={p:4},Oae=Rd(e=>({root:Tae(e),tab:kae(e),tablist:Pae(e),tabpanel:Aae})),Dae={sm:Rd({tab:{py:1,px:4,fontSize:"sm"}}),md:Rd({tab:{fontSize:"md",py:2,px:4}}),lg:Rd({tab:{fontSize:"lg",py:3,px:4}})},Mae=Rd(e=>{const{colorScheme:t,orientation:n}=e,r=n==="vertical",i=n==="vertical"?"borderStart":"borderBottom",a=r?"marginStart":"marginBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[a]:"-2px",_selected:{[yl.variable]:`colors.${t}.600`,_dark:{[yl.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[Ic.variable]:"colors.gray.200",_dark:{[Ic.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:yl.reference,bg:Ic.reference}}}),jae=Rd(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[Kw.variable]:"transparent",_selected:{[yl.variable]:`colors.${t}.600`,[Kw.variable]:"colors.white",_dark:{[yl.variable]:`colors.${t}.300`,[Kw.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:Kw.reference},color:yl.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Iae=Rd(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[Ic.variable]:"colors.gray.50",_dark:{[Ic.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[Ic.variable]:"colors.white",[yl.variable]:`colors.${t}.600`,_dark:{[Ic.variable]:"colors.gray.800",[yl.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:yl.reference,bg:Ic.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Rae=Rd(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Fs(n,`${t}.700`),bg:Fs(n,`${t}.100`)}}}}),Nae=Rd(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[yl.variable]:"colors.gray.600",_dark:{[yl.variable]:"inherit"},_selected:{[yl.variable]:"colors.white",[Ic.variable]:`colors.${t}.600`,_dark:{[yl.variable]:"colors.gray.800",[Ic.variable]:`colors.${t}.300`}},color:yl.reference,bg:Ic.reference}}}),Lae=Rd({}),zae={line:Mae,enclosed:jae,"enclosed-colored":Iae,"soft-rounded":Rae,"solid-rounded":Nae,unstyled:Lae},Bae=_ae({baseStyle:Oae,sizes:Dae,variants:zae,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Fae={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold"},_0=Rr("badge-bg"),Nd=Rr("badge-color"),Uae=e=>{const{colorScheme:t,theme:n}=e,r=C0(`${t}.500`,.6)(n);return{[_0.variable]:`colors.${t}.500`,[Nd.variable]:"colors.white",_dark:{[_0.variable]:r,[Nd.variable]:"colors.whiteAlpha.800"},bg:_0.reference,color:Nd.reference}},Vae=e=>{const{colorScheme:t,theme:n}=e,r=C0(`${t}.200`,.16)(n);return{[_0.variable]:`colors.${t}.100`,[Nd.variable]:`colors.${t}.800`,_dark:{[_0.variable]:r,[Nd.variable]:`colors.${t}.200`},bg:_0.reference,color:Nd.reference}},Hae=e=>{const{colorScheme:t,theme:n}=e,r=C0(`${t}.200`,.8)(n);return{[Nd.variable]:`colors.${t}.500`,_dark:{[Nd.variable]:r},color:Nd.reference,boxShadow:`inset 0 0 0px 1px ${Nd.reference}`}},Gae={solid:Uae,subtle:Vae,outline:Hae},T1={baseStyle:Fae,variants:Gae,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Wae,definePartsStyle:fv}=fr(Iie.keys),qae={fontWeight:"medium",lineHeight:1.2,outline:0,borderRadius:"md",_focusVisible:{boxShadow:"outline"}},Yae={lineHeight:1.2,overflow:"visible"},Kae={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},Xae=fv({container:qae,label:Yae,closeButton:Kae}),Qae={sm:fv({container:{minH:"5",minW:"5",fontSize:"xs",px:"2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:fv({container:{minH:"6",minW:"6",fontSize:"sm",px:"2"}}),lg:fv({container:{minH:"8",minW:"8",fontSize:"md",px:"3"}})},Zae={subtle:fv(e=>{var t;return{container:(t=T1.variants)==null?void 0:t.subtle(e)}}),solid:fv(e=>{var t;return{container:(t=T1.variants)==null?void 0:t.solid(e)}}),outline:fv(e=>{var t;return{container:(t=T1.variants)==null?void 0:t.outline(e)}})},Jae=Wae({variants:Zae,baseStyle:Xae,sizes:Qae,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:rh,defineMultiStyleConfig:$ae}=fr(Sie.keys),eoe=rh({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),_p={lg:{fontSize:"lg",px:"4",h:"12",borderRadius:"md"},md:{fontSize:"md",px:"4",h:"10",borderRadius:"md"},sm:{fontSize:"sm",px:"3",h:"8",borderRadius:"sm"},xs:{fontSize:"xs",px:"2",h:"6",borderRadius:"sm"}},toe={lg:rh({field:_p.lg,addon:_p.lg}),md:rh({field:_p.md,addon:_p.md}),sm:rh({field:_p.sm,addon:_p.sm}),xs:rh({field:_p.xs,addon:_p.xs})};function q4(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||bn("blue.500","blue.300")(e),errorBorderColor:n||bn("red.500","red.300")(e)}}var noe=rh(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=q4(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:bn("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Fs(t,r),boxShadow:`0 0 0 1px ${Fs(t,r)}`},_focusVisible:{zIndex:1,borderColor:Fs(t,n),boxShadow:`0 0 0 1px ${Fs(t,n)}`}},addon:{border:"1px solid",borderColor:bn("inherit","whiteAlpha.50")(e),bg:bn("gray.100","whiteAlpha.300")(e)}}}),roe=rh(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=q4(e);return{field:{border:"2px solid",borderColor:"transparent",bg:bn("gray.100","whiteAlpha.50")(e),_hover:{bg:bn("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Fs(t,r)},_focusVisible:{bg:"transparent",borderColor:Fs(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:bn("gray.100","whiteAlpha.50")(e)}}}),ioe=rh(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=q4(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Fs(t,r),boxShadow:`0px 1px 0px 0px ${Fs(t,r)}`},_focusVisible:{borderColor:Fs(t,n),boxShadow:`0px 1px 0px 0px ${Fs(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),aoe=rh({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),ooe={outline:noe,filled:roe,flushed:ioe,unstyled:aoe},Fr=$ae({baseStyle:eoe,sizes:toe,variants:ooe,defaultProps:{size:"md",variant:"outline"}}),LL,soe={...(LL=Fr.baseStyle)==null?void 0:LL.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},zL,BL,loe={outline:e=>{var t,n;return(n=(t=Fr.variants)==null?void 0:t.outline(e).field)!=null?n:{}},flushed:e=>{var t,n;return(n=(t=Fr.variants)==null?void 0:t.flushed(e).field)!=null?n:{}},filled:e=>{var t,n;return(n=(t=Fr.variants)==null?void 0:t.filled(e).field)!=null?n:{}},unstyled:(BL=(zL=Fr.variants)==null?void 0:zL.unstyled.field)!=null?BL:{}},FL,UL,VL,HL,GL,WL,qL,YL,uoe={xs:(UL=(FL=Fr.sizes)==null?void 0:FL.xs.field)!=null?UL:{},sm:(HL=(VL=Fr.sizes)==null?void 0:VL.sm.field)!=null?HL:{},md:(WL=(GL=Fr.sizes)==null?void 0:GL.md.field)!=null?WL:{},lg:(YL=(qL=Fr.sizes)==null?void 0:qL.lg.field)!=null?YL:{}},coe={baseStyle:soe,sizes:uoe,variants:loe,defaultProps:{size:"md",variant:"outline"}},Xw=ao("tooltip-bg"),Y4=ao("tooltip-fg"),doe=ao("popper-arrow-bg"),foe={bg:Xw.reference,color:Y4.reference,[Xw.variable]:"colors.gray.700",[Y4.variable]:"colors.whiteAlpha.900",_dark:{[Xw.variable]:"colors.gray.300",[Y4.variable]:"colors.gray.900"},[doe.variable]:Xw.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},hoe={baseStyle:foe},{defineMultiStyleConfig:poe,definePartsStyle:k1}=fr(Tie.keys),moe=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:i}=e,a=bn(OL(),OL("1rem","rgba(0,0,0,0.1)"))(e),o=bn(`${t}.500`,`${t}.200`)(e),l=`linear-gradient(
|
||
to right,
|
||
transparent 0%,
|
||
${Fs(n,o)} 50%,
|
||
transparent 100%
|
||
)`;return{...!r&&i&&a,...r?{bgImage:l}:{bgColor:o}}},voe={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},goe=e=>({bg:bn("gray.100","whiteAlpha.300")(e)}),yoe=e=>({transitionProperty:"common",transitionDuration:"slow",...moe(e)}),boe=k1(e=>({label:voe,filledTrack:yoe(e),track:goe(e)})),Soe={xs:k1({track:{h:"1"}}),sm:k1({track:{h:"2"}}),md:k1({track:{h:"3"}}),lg:k1({track:{h:"4"}})},xoe=poe({sizes:Soe,baseStyle:boe,defaultProps:{size:"md",colorScheme:"blue"}}),woe=e=>typeof e=="function";function Us(e,...t){return woe(e)?e(...t):e}var{definePartsStyle:Qw,defineMultiStyleConfig:Coe}=fr(mie.keys),P1=Rr("checkbox-size"),Eoe=e=>{const{colorScheme:t}=e;return{w:P1.reference,h:P1.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:bn(`${t}.500`,`${t}.200`)(e),borderColor:bn(`${t}.500`,`${t}.200`)(e),color:bn("white","gray.900")(e),_hover:{bg:bn(`${t}.600`,`${t}.300`)(e),borderColor:bn(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:bn("gray.200","transparent")(e),bg:bn("gray.200","whiteAlpha.300")(e),color:bn("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:bn(`${t}.500`,`${t}.200`)(e),borderColor:bn(`${t}.500`,`${t}.200`)(e),color:bn("white","gray.900")(e)},_disabled:{bg:bn("gray.100","whiteAlpha.100")(e),borderColor:bn("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:bn("red.500","red.300")(e)}}},_oe={_disabled:{cursor:"not-allowed"}},Toe={userSelect:"none",_disabled:{opacity:.4}},koe={transitionProperty:"transform",transitionDuration:"normal"},Poe=Qw(e=>({icon:koe,container:_oe,control:Us(Eoe,e),label:Toe})),Aoe={sm:Qw({control:{[P1.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Qw({control:{[P1.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Qw({control:{[P1.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},Zw=Coe({baseStyle:Poe,sizes:Aoe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Ooe,definePartsStyle:Jw}=fr(kie.keys),Doe=e=>{var t;const n=(t=Us(Zw.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"}}}},Moe=Jw(e=>{var t,n,r,i;return{label:(n=(t=Zw).baseStyle)==null?void 0:n.call(t,e).label,container:(i=(r=Zw).baseStyle)==null?void 0:i.call(r,e).container,control:Doe(e)}}),joe={md:Jw({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Jw({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Jw({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},Ioe=Ooe({baseStyle:Moe,sizes:joe,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:Roe,definePartsStyle:Noe}=fr(Pie.keys),$w=Rr("select-bg"),KL,Loe={...(KL=Fr.baseStyle)==null?void 0:KL.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:$w.reference,[$w.variable]:"colors.white",_dark:{[$w.variable]:"colors.gray.700"},"> option, > optgroup":{bg:$w.reference}},zoe={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},Boe=Noe({field:Loe,icon:zoe}),eC={paddingInlineEnd:"8"},XL,QL,ZL,JL,$L,e8,t8,n8,Foe={lg:{...(XL=Fr.sizes)==null?void 0:XL.lg,field:{...(QL=Fr.sizes)==null?void 0:QL.lg.field,...eC}},md:{...(ZL=Fr.sizes)==null?void 0:ZL.md,field:{...(JL=Fr.sizes)==null?void 0:JL.md.field,...eC}},sm:{...($L=Fr.sizes)==null?void 0:$L.sm,field:{...(e8=Fr.sizes)==null?void 0:e8.sm.field,...eC}},xs:{...(t8=Fr.sizes)==null?void 0:t8.xs,field:{...(n8=Fr.sizes)==null?void 0:n8.xs.field,...eC},icon:{insetEnd:"1"}}},Uoe=Roe({baseStyle:Boe,sizes:Foe,variants:Fr.variants,defaultProps:Fr.defaultProps}),K4=Rr("skeleton-start-color"),X4=Rr("skeleton-end-color"),Voe={[K4.variable]:"colors.gray.100",[X4.variable]:"colors.gray.400",_dark:{[K4.variable]:"colors.gray.800",[X4.variable]:"colors.gray.600"},background:K4.reference,borderColor:X4.reference,opacity:.7,borderRadius:"sm"},Hoe={baseStyle:Voe},Q4=Rr("skip-link-bg"),Goe={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[Q4.variable]:"colors.white",_dark:{[Q4.variable]:"colors.gray.700"},bg:Q4.reference}},Woe={baseStyle:Goe},{defineMultiStyleConfig:qoe,definePartsStyle:tC}=fr(Aie.keys),A1=Rr("slider-thumb-size"),O1=Rr("slider-track-size"),Tp=Rr("slider-bg"),Yoe=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...V4({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},Koe=e=>({...V4({orientation:e.orientation,horizontal:{h:O1.reference},vertical:{w:O1.reference}}),overflow:"hidden",borderRadius:"sm",[Tp.variable]:"colors.gray.200",_dark:{[Tp.variable]:"colors.whiteAlpha.200"},_disabled:{[Tp.variable]:"colors.gray.300",_dark:{[Tp.variable]:"colors.whiteAlpha.300"}},bg:Tp.reference}),Xoe=e=>{const{orientation:t}=e;return{...V4({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:A1.reference,h:A1.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"}}},Qoe=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[Tp.variable]:`colors.${t}.500`,_dark:{[Tp.variable]:`colors.${t}.200`},bg:Tp.reference}},Zoe=tC(e=>({container:Yoe(e),track:Koe(e),thumb:Xoe(e),filledTrack:Qoe(e)})),Joe=tC({container:{[A1.variable]:"sizes.4",[O1.variable]:"sizes.1"}}),$oe=tC({container:{[A1.variable]:"sizes.3.5",[O1.variable]:"sizes.1"}}),ese=tC({container:{[A1.variable]:"sizes.2.5",[O1.variable]:"sizes.0.5"}}),tse={lg:Joe,md:$oe,sm:ese},nse=qoe({baseStyle:Zoe,sizes:tse,defaultProps:{size:"md",colorScheme:"blue"}}),hv=ao("spinner-size"),rse={width:[hv.reference],height:[hv.reference]},ise={xs:{[hv.variable]:"sizes.3"},sm:{[hv.variable]:"sizes.4"},md:{[hv.variable]:"sizes.6"},lg:{[hv.variable]:"sizes.8"},xl:{[hv.variable]:"sizes.12"}},ase={baseStyle:rse,sizes:ise,defaultProps:{size:"md"}},{defineMultiStyleConfig:ose,definePartsStyle:r8}=fr(Oie.keys),sse={fontWeight:"medium"},lse={opacity:.8,marginBottom:"2"},use={verticalAlign:"baseline",fontWeight:"semibold"},cse={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},dse=r8({container:{},label:sse,helpText:lse,number:use,icon:cse}),fse={md:r8({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},hse=ose({baseStyle:dse,sizes:fse,defaultProps:{size:"md"}}),Z4=Rr("kbd-bg"),pse={[Z4.variable]:"colors.gray.100",_dark:{[Z4.variable]:"colors.whiteAlpha.100"},bg:Z4.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},mse={baseStyle:pse},vse={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},gse={baseStyle:vse},{defineMultiStyleConfig:yse,definePartsStyle:bse}=fr(xie.keys),Sse={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},xse=bse({icon:Sse}),wse=yse({baseStyle:xse}),{defineMultiStyleConfig:Cse,definePartsStyle:Ese}=fr(wie.keys),Ld=Rr("menu-bg"),J4=Rr("menu-shadow"),_se={[Ld.variable]:"#fff",[J4.variable]:"shadows.sm",_dark:{[Ld.variable]:"colors.gray.700",[J4.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Ld.reference,boxShadow:J4.reference},Tse={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Ld.variable]:"colors.gray.100",_dark:{[Ld.variable]:"colors.whiteAlpha.100"}},_active:{[Ld.variable]:"colors.gray.200",_dark:{[Ld.variable]:"colors.whiteAlpha.200"}},_expanded:{[Ld.variable]:"colors.gray.100",_dark:{[Ld.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Ld.reference},kse={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},Pse={opacity:.6},Ase={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},Ose={transitionProperty:"common",transitionDuration:"normal"},Dse=Ese({button:Ose,list:_se,item:Tse,groupTitle:kse,command:Pse,divider:Ase}),Mse=Cse({baseStyle:Dse}),{defineMultiStyleConfig:jse,definePartsStyle:$4}=fr(Cie.keys),Ise={bg:"blackAlpha.600",zIndex:"modal"},Rse=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:n==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},Nse=e=>{const{scrollBehavior:t}=e;return{borderRadius:"md",bg:bn("white","gray.700")(e),color:"inherit",my:"16",zIndex:"modal",maxH:t==="inside"?"calc(100% - 7.5rem)":void 0,boxShadow:bn("lg","dark-lg")(e)}},Lse={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},zse={position:"absolute",top:"2",insetEnd:"3"},Bse=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},Fse={px:"6",py:"4"},Use=$4(e=>({overlay:Ise,dialogContainer:Us(Rse,e),dialog:Us(Nse,e),header:Lse,closeButton:zse,body:Us(Bse,e),footer:Fse}));function Rc(e){return $4(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var Vse={xs:Rc("xs"),sm:Rc("sm"),md:Rc("md"),lg:Rc("lg"),xl:Rc("xl"),"2xl":Rc("2xl"),"3xl":Rc("3xl"),"4xl":Rc("4xl"),"5xl":Rc("5xl"),"6xl":Rc("6xl"),full:Rc("full")},Hse=jse({baseStyle:Use,sizes:Vse,defaultProps:{size:"md"}}),{defineMultiStyleConfig:Gse,definePartsStyle:i8}=fr(Eie.keys),eP=ao("number-input-stepper-width"),a8=ao("number-input-input-padding"),Wse=nh(eP).add("0.5rem").toString(),tP=ao("number-input-bg"),nP=ao("number-input-color"),rP=ao("number-input-border-color"),qse={[eP.variable]:"sizes.6",[a8.variable]:Wse},Yse=e=>{var t,n;return(n=(t=Us(Fr.baseStyle,e))==null?void 0:t.field)!=null?n:{}},Kse={width:eP.reference},Xse={borderStart:"1px solid",borderStartColor:rP.reference,color:nP.reference,bg:tP.reference,[nP.variable]:"colors.chakra-body-text",[rP.variable]:"colors.chakra-border-color",_dark:{[nP.variable]:"colors.whiteAlpha.800",[rP.variable]:"colors.whiteAlpha.300"},_active:{[tP.variable]:"colors.gray.200",_dark:{[tP.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},Qse=i8(e=>{var t;return{root:qse,field:(t=Us(Yse,e))!=null?t:{},stepperGroup:Kse,stepper:Xse}});function nC(e){var t,n,r;const i=(t=Fr.sizes)==null?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},o=(r=(n=i.field)==null?void 0:n.fontSize)!=null?r:"md",l=_L.fontSizes[o];return i8({field:{...i.field,paddingInlineEnd:a8.reference,verticalAlign:"top"},stepper:{fontSize:nh(l).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var Zse={xs:nC("xs"),sm:nC("sm"),md:nC("md"),lg:nC("lg")},Jse=Gse({baseStyle:Qse,sizes:Zse,variants:Fr.variants,defaultProps:Fr.defaultProps}),o8,$se={...(o8=Fr.baseStyle)==null?void 0:o8.field,textAlign:"center"},ele={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},s8,l8,tle={outline:e=>{var t,n,r;return(r=(n=Us((t=Fr.variants)==null?void 0:t.outline,e))==null?void 0:n.field)!=null?r:{}},flushed:e=>{var t,n,r;return(r=(n=Us((t=Fr.variants)==null?void 0:t.flushed,e))==null?void 0:n.field)!=null?r:{}},filled:e=>{var t,n,r;return(r=(n=Us((t=Fr.variants)==null?void 0:t.filled,e))==null?void 0:n.field)!=null?r:{}},unstyled:(l8=(s8=Fr.variants)==null?void 0:s8.unstyled.field)!=null?l8:{}},nle={baseStyle:$se,sizes:ele,variants:tle,defaultProps:Fr.defaultProps},{defineMultiStyleConfig:rle,definePartsStyle:ile}=fr(_ie.keys),rC=ao("popper-bg"),ale=ao("popper-arrow-bg"),u8=ao("popper-arrow-shadow-color"),ole={zIndex:10},sle={[rC.variable]:"colors.white",bg:rC.reference,[ale.variable]:rC.reference,[u8.variable]:"colors.gray.200",_dark:{[rC.variable]:"colors.gray.700",[u8.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},lle={px:3,py:2,borderBottomWidth:"1px"},ule={px:3,py:2},cle={px:3,py:2,borderTopWidth:"1px"},dle={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},fle=ile({popper:ole,content:sle,header:lle,body:ule,footer:cle,closeButton:dle}),hle=rle({baseStyle:fle}),{definePartsStyle:iP,defineMultiStyleConfig:ple}=fr(vie.keys),aP=Rr("drawer-bg"),oP=Rr("drawer-box-shadow");function T0(e){return iP(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var mle={bg:"blackAlpha.600",zIndex:"overlay"},vle={display:"flex",zIndex:"modal",justifyContent:"center"},gle=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[aP.variable]:"colors.white",[oP.variable]:"shadows.lg",_dark:{[aP.variable]:"colors.gray.700",[oP.variable]:"shadows.dark-lg"},bg:aP.reference,boxShadow:oP.reference}},yle={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},ble={position:"absolute",top:"2",insetEnd:"3"},Sle={px:"6",py:"2",flex:"1",overflow:"auto"},xle={px:"6",py:"4"},wle=iP(e=>({overlay:mle,dialogContainer:vle,dialog:Us(gle,e),header:yle,closeButton:ble,body:Sle,footer:xle})),Cle={xs:T0("xs"),sm:T0("md"),md:T0("lg"),lg:T0("2xl"),xl:T0("4xl"),full:T0("full")},Ele=ple({baseStyle:wle,sizes:Cle,defaultProps:{size:"xs"}}),{definePartsStyle:_le,defineMultiStyleConfig:Tle}=fr(gie.keys),kle={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},Ple={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Ale={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Ole=_le({preview:kle,input:Ple,textarea:Ale}),Dle=Tle({baseStyle:Ole}),{definePartsStyle:Mle,defineMultiStyleConfig:jle}=fr(yie.keys),k0=Rr("form-control-color"),Ile={marginStart:"1",[k0.variable]:"colors.red.500",_dark:{[k0.variable]:"colors.red.300"},color:k0.reference},Rle={mt:"2",[k0.variable]:"colors.gray.600",_dark:{[k0.variable]:"colors.whiteAlpha.600"},color:k0.reference,lineHeight:"normal",fontSize:"sm"},Nle=Mle({container:{width:"100%",position:"relative"},requiredIndicator:Ile,helperText:Rle}),Lle=jle({baseStyle:Nle}),{definePartsStyle:zle,defineMultiStyleConfig:Ble}=fr(bie.keys),P0=Rr("form-error-color"),Fle={[P0.variable]:"colors.red.500",_dark:{[P0.variable]:"colors.red.300"},color:P0.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},Ule={marginEnd:"0.5em",[P0.variable]:"colors.red.500",_dark:{[P0.variable]:"colors.red.300"},color:P0.reference},Vle=zle({text:Fle,icon:Ule}),Hle=Ble({baseStyle:Vle}),Gle={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Wle={baseStyle:Gle},qle={fontFamily:"heading",fontWeight:"bold"},Yle={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},Kle={baseStyle:qle,sizes:Yle,defaultProps:{size:"xl"}},{defineMultiStyleConfig:Xle,definePartsStyle:Qle}=fr(pie.keys),Zle={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},Jle=Qle({link:Zle}),$le=Xle({baseStyle:Jle}),eue={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},c8=e=>{const{colorScheme:t,theme:n}=e;if(t==="gray")return{color:bn("inherit","whiteAlpha.900")(e),_hover:{bg:bn("gray.100","whiteAlpha.200")(e)},_active:{bg:bn("gray.200","whiteAlpha.300")(e)}};const r=C0(`${t}.200`,.12)(n),i=C0(`${t}.200`,.24)(n);return{color:bn(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:bn(`${t}.50`,r)(e)},_active:{bg:bn(`${t}.100`,i)(e)}}},tue=e=>{const{colorScheme:t}=e,n=bn("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Us(c8,e)}},nue={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},rue=e=>{var t;const{colorScheme:n}=e;if(n==="gray"){const c=bn("gray.100","whiteAlpha.200")(e);return{bg:c,_hover:{bg:bn("gray.200","whiteAlpha.300")(e),_disabled:{bg:c}},_active:{bg:bn("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:i="white",hoverBg:a=`${n}.600`,activeBg:o=`${n}.700`}=(t=nue[n])!=null?t:{},l=bn(r,`${n}.200`)(e);return{bg:l,color:bn(i,"gray.800")(e),_hover:{bg:bn(a,`${n}.300`)(e),_disabled:{bg:l}},_active:{bg:bn(o,`${n}.400`)(e)}}},iue=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:bn(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:bn(`${t}.700`,`${t}.500`)(e)}}},aue={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},oue={ghost:c8,outline:tue,solid:rue,link:iue,unstyled:aue},sue={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},lue={baseStyle:eue,variants:oue,sizes:sue,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:pv,defineMultiStyleConfig:uue}=fr(Rie.keys),iC=Rr("card-bg"),ih=Rr("card-padding"),d8=Rr("card-shadow"),aC=Rr("card-radius"),f8=Rr("card-border-width","0"),h8=Rr("card-border-color"),cue=pv({container:{[iC.variable]:"colors.chakra-body-bg",backgroundColor:iC.reference,boxShadow:d8.reference,borderRadius:aC.reference,color:"chakra-body-text",borderWidth:f8.reference,borderColor:h8.reference},body:{padding:ih.reference,flex:"1 1 0%"},header:{padding:ih.reference},footer:{padding:ih.reference}}),due={sm:pv({container:{[aC.variable]:"radii.base",[ih.variable]:"space.3"}}),md:pv({container:{[aC.variable]:"radii.md",[ih.variable]:"space.5"}}),lg:pv({container:{[aC.variable]:"radii.xl",[ih.variable]:"space.7"}})},fue={elevated:pv({container:{[d8.variable]:"shadows.base",_dark:{[iC.variable]:"colors.gray.700"}}}),outline:pv({container:{[f8.variable]:"1px",[h8.variable]:"colors.chakra-border-color"}}),filled:pv({container:{[iC.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[ih.variable]:0},header:{[ih.variable]:0},footer:{[ih.variable]:0}}},hue=uue({baseStyle:cue,variants:fue,sizes:due,defaultProps:{variant:"elevated",size:"md"}}),D1=ao("close-button-size"),M1=ao("close-button-bg"),pue={w:[D1.reference],h:[D1.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[M1.variable]:"colors.blackAlpha.100",_dark:{[M1.variable]:"colors.whiteAlpha.100"}},_active:{[M1.variable]:"colors.blackAlpha.200",_dark:{[M1.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:M1.reference},mue={lg:{[D1.variable]:"sizes.10",fontSize:"md"},md:{[D1.variable]:"sizes.8",fontSize:"xs"},sm:{[D1.variable]:"sizes.6",fontSize:"2xs"}},vue={baseStyle:pue,sizes:mue,defaultProps:{size:"md"}},{variants:gue,defaultProps:yue}=T1,bue={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm"},Sue={baseStyle:bue,variants:gue,defaultProps:yue},xue={w:"100%",mx:"auto",maxW:"prose",px:"4"},wue={baseStyle:xue},Cue={opacity:.6,borderColor:"inherit"},Eue={borderStyle:"solid"},_ue={borderStyle:"dashed"},Tue={solid:Eue,dashed:_ue},kue={baseStyle:Cue,variants:Tue,defaultProps:{variant:"solid"}},{definePartsStyle:Pue,defineMultiStyleConfig:Aue}=fr(die.keys),Oue={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},Due={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},Mue={pt:"2",px:"4",pb:"5"},jue={fontSize:"1.25em"},Iue=Pue({container:Oue,button:Due,panel:Mue,icon:jue}),Rue=Aue({baseStyle:Iue}),{definePartsStyle:j1,defineMultiStyleConfig:Nue}=fr(fie.keys),Jl=Rr("alert-fg"),ah=Rr("alert-bg"),Lue=j1({container:{bg:ah.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Jl.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Jl.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function sP(e){const{theme:t,colorScheme:n}=e,r=C0(`${n}.200`,.16)(t);return{light:`colors.${n}.100`,dark:r}}var zue=j1(e=>{const{colorScheme:t}=e,n=sP(e);return{container:{[Jl.variable]:`colors.${t}.500`,[ah.variable]:n.light,_dark:{[Jl.variable]:`colors.${t}.200`,[ah.variable]:n.dark}}}}),Bue=j1(e=>{const{colorScheme:t}=e,n=sP(e);return{container:{[Jl.variable]:`colors.${t}.500`,[ah.variable]:n.light,_dark:{[Jl.variable]:`colors.${t}.200`,[ah.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Jl.reference}}}),Fue=j1(e=>{const{colorScheme:t}=e,n=sP(e);return{container:{[Jl.variable]:`colors.${t}.500`,[ah.variable]:n.light,_dark:{[Jl.variable]:`colors.${t}.200`,[ah.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Jl.reference}}}),Uue=j1(e=>{const{colorScheme:t}=e;return{container:{[Jl.variable]:"colors.white",[ah.variable]:`colors.${t}.500`,_dark:{[Jl.variable]:"colors.gray.900",[ah.variable]:`colors.${t}.200`},color:Jl.reference}}}),Vue={subtle:zue,"left-accent":Bue,"top-accent":Fue,solid:Uue},Hue=Nue({baseStyle:Lue,variants:Vue,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:p8,defineMultiStyleConfig:Gue}=fr(hie.keys),A0=Rr("avatar-border-color"),lP=Rr("avatar-bg"),Wue={borderRadius:"full",border:"0.2em solid",[A0.variable]:"white",_dark:{[A0.variable]:"colors.gray.800"},borderColor:A0.reference},que={[lP.variable]:"colors.gray.200",_dark:{[lP.variable]:"colors.whiteAlpha.400"},bgColor:lP.reference},m8=Rr("avatar-background"),Yue=e=>{const{name:t,theme:n}=e,r=t?tae({string:t}):"colors.gray.400",i=$ie(r)(n);let a="white";return i||(a="gray.800"),{bg:m8.reference,"&:not([data-loaded])":{[m8.variable]:r},color:a,[A0.variable]:"colors.white",_dark:{[A0.variable]:"colors.gray.800"},borderColor:A0.reference,verticalAlign:"top"}},Kue=p8(e=>({badge:Us(Wue,e),excessLabel:Us(que,e),container:Us(Yue,e)}));function kp(e){const t=e!=="100%"?kL[e]:void 0;return p8({container:{width:e,height:e,fontSize:`calc(${t??e} / 2.5)`},excessLabel:{width:e,height:e},label:{fontSize:`calc(${t??e} / 2.5)`,lineHeight:e!=="100%"?t??e:void 0}})}var Xue={"2xs":kp(4),xs:kp(6),sm:kp(8),md:kp(12),lg:kp(16),xl:kp(24),"2xl":kp(32),full:kp("100%")},Que=Gue({baseStyle:Kue,sizes:Xue,defaultProps:{size:"md"}}),Zue={Accordion:Rue,Alert:Hue,Avatar:Que,Badge:T1,Breadcrumb:$le,Button:lue,Checkbox:Zw,CloseButton:vue,Code:Sue,Container:wue,Divider:kue,Drawer:Ele,Editable:Dle,Form:Lle,FormError:Hle,FormLabel:Wle,Heading:Kle,Input:Fr,Kbd:mse,Link:gse,List:wse,Menu:Mse,Modal:Hse,NumberInput:Jse,PinInput:nle,Popover:hle,Progress:xoe,Radio:Ioe,Select:Uoe,Skeleton:Hoe,SkipLink:Woe,Slider:nse,Spinner:ase,Stat:hse,Switch:gae,Table:Eae,Tabs:Bae,Tag:Jae,Textarea:coe,Tooltip:hoe,Card:hue},Jue={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},$ue={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color",wordWrap:"break-word"}}},ece="ltr",tce={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},v8={semanticTokens:Jue,direction:ece,...cie,components:Zue,styles:$ue,config:tce};function I1(e){return typeof e=="function"}function nce(...e){return t=>e.reduce((n,r)=>r(n),t)}var rce=e=>function(...n){let r=[...n],i=n[n.length-1];return Fre(i)&&r.length>1?r=r.slice(0,r.length-1):i=e,nce(...r.map(a=>o=>I1(a)?a(o):ace(o,a)))(i)},ice=rce(v8);function ace(...e){return Nu({},...e,g8)}function g8(e,t,n,r){if((I1(e)||I1(t))&&Object.prototype.hasOwnProperty.call(r,n))return(...i)=>{const a=I1(e)?e(...i):e,o=I1(t)?t(...i):t;return Nu({},a,o,g8)}}function oce(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function y8(e){var t;return oce(e)&&(t=e.ownerDocument)!=null?t:document}function sce(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var lce=sce();function uce(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function cce(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}var dce=e=>{const t=new WeakMap;return(r,i,a,o)=>{if(typeof r>"u")return e(r,i,a);t.has(r)||t.set(r,new Map);const l=t.get(r);if(l.has(i))return l.get(i);const c=e(r,i,a,o);return l.set(i,c),c}},b8=dce(cce);function S8(e,t){const n={};return Object.keys(e).forEach(r=>{const i=e[r];t(i,r,e)&&(n[r]=i)}),n}var x8=e=>S8(e,t=>t!=null);function fce(e){return typeof e=="function"}process.env.NODE_ENV,process.env.NODE_ENV;function oC(e,...t){return fce(e)?e(...t):e}function hce(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}const w8=1/60*1e3,pce=typeof performance<"u"?()=>performance.now():()=>Date.now(),C8=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(pce()),w8);function mce(e){let t=[],n=[],r=0,i=!1,a=!1;const o=new WeakSet,l={schedule:(c,d=!1,p=!1)=>{const g=p&&i,S=g?t:n;return d&&o.add(c),S.indexOf(c)===-1&&(S.push(c),g&&i&&(r=t.length)),c},cancel:c=>{const d=n.indexOf(c);d!==-1&&n.splice(d,1),o.delete(c)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let d=0;d<r;d++){const p=t[d];p(c),o.has(p)&&(l.schedule(p),e())}i=!1,a&&(a=!1,l.process(c))}};return l}const vce=40;let uP=!0,R1=!1,cP=!1;const O0={delta:0,timestamp:0},N1=["read","update","preRender","render","postRender"],sC=N1.reduce((e,t)=>(e[t]=mce(()=>R1=!0),e),{}),gce=N1.reduce((e,t)=>{const n=sC[t];return e[t]=(r,i=!1,a=!1)=>(R1||Sce(),n.schedule(r,i,a)),e},{}),yce=N1.reduce((e,t)=>(e[t]=sC[t].cancel,e),{});N1.reduce((e,t)=>(e[t]=()=>sC[t].process(O0),e),{});const bce=e=>sC[e].process(O0),E8=e=>{R1=!1,O0.delta=uP?w8:Math.max(Math.min(e-O0.timestamp,vce),1),O0.timestamp=e,cP=!0,N1.forEach(bce),cP=!1,R1&&(uP=!1,C8(E8))},Sce=()=>{R1=!0,uP=!0,cP||C8(E8)},_8=()=>O0;var xce=typeof Element<"u",wce=typeof Map=="function",Cce=typeof Set=="function",Ece=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function lC(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!lC(e[r],t[r]))return!1;return!0}var a;if(wce&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!lC(r.value[1],t.get(r.value[0])))return!1;return!0}if(Cce&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(Ece&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(xce&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!lC(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var _ce=function(t,n){try{return lC(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};function T8(e,t={}){var n;const{styleConfig:r,...i}=t,{theme:a,colorMode:o}=oL(),l=e?b8(a,`components.${e}`):void 0,c=r||l,d=Nu({theme:a,colorMode:o},(n=c==null?void 0:c.defaultProps)!=null?n:{},x8(uce(i,["children"]))),p=A.useRef({});if(c){const S=Lre(c)(d);_ce(p.current,S)||(p.current=S)}return p.current}function zu(e,t={}){return T8(e,t)}function Yo(e,t={}){return T8(e,t)}var Tce=new Set([..._re,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),kce=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Pce(e){return kce.has(e)||!Tce.has(e)}function Ace(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Oce(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}var Dce=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Mce=IN(function(e){return Dce.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),jce=Mce,Ice=function(t){return t!=="theme"},k8=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?jce:Ice},P8=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},A8=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
||
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
||
You can read more about this here:
|
||
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Rce=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Mw(n,r,i),P4(function(){return jw(n,r,i)}),null},Nce=function e(t,n){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
||
You may have forgotten to import it.`);var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var l=P8(t,n,r),c=l||k8(i),d=!c("as");return function(){var p=arguments,g=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&g.push("label:"+a+";"),p[0]==null||p[0].raw===void 0)g.push.apply(g,p);else{process.env.NODE_ENV!=="production"&&p[0][0]===void 0&&console.error(A8),g.push(p[0][0]);for(var S=p.length,w=1;w<S;w++)process.env.NODE_ENV!=="production"&&p[0][w]===void 0&&console.error(A8),g.push(p[w],p[0][w])}var C=Rw(function(k,P,D){var M=d&&k.as||i,R="",L=[],z=k;if(k.theme==null){z={};for(var U in k)z[U]=k[U];z.theme=A.useContext(xp)}typeof k.className=="string"?R=_4(P.registered,L,k.className):k.className!=null&&(R=k.className+" ");var V=w0(g.concat(L),P.registered,z);R+=P.key+"-"+V.name,o!==void 0&&(R+=" "+o);var Y=d&&l===void 0?k8(M):c,J={};for(var $ in k)d&&$==="as"||Y($)&&(J[$]=k[$]);return J.className=R,J.ref=D,A.createElement(A.Fragment,null,A.createElement(Rce,{cache:P,serialized:V,isStringTag:typeof M=="string"}),A.createElement(M,J))});return C.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=i,C.__emotion_styles=g,C.__emotion_forwardProp=l,Object.defineProperty(C,"toString",{value:function(){return o===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+o}}),C.withComponent=function(k,P){return e(k,qm({},n,P,{shouldForwardProp:P8(C,P,!0)})).apply(void 0,g)},C}},Lce=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],uC=Nce.bind();Lce.forEach(function(e){uC[e]=uC(e)});var O8,zce=(O8=uC.default)!=null?O8:uC,Bce=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:i,sx:a,...o}=t,l=S8(o,(g,S)=>kre(S)),c=oC(e,t),d=Oce({},i,c,x8(l),a),p=EL(d)(t.theme);return r?[p,r]:p};function dP(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=Pce);const i=Bce({baseStyle:n}),a=zce(e,r)(i);return A.forwardRef(function(c,d){const{colorMode:p,forced:g}=Nw();return A.createElement(a,{ref:d,"data-theme":g?p:void 0,...c})})}function Fce(){const e=new Map;return new Proxy(dP,{apply(t,n,r){return dP(...r)},get(t,n){return e.has(n)||e.set(n,dP(n)),e.get(n)}})}var dt=Fce();function Et(e){return A.forwardRef(e)}function Uce(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=A.createContext(void 0);i.displayName=r;function a(){var o;const l=A.useContext(i);if(!l&&t){const c=new Error(n);throw c.name="ContextError",(o=Error.captureStackTrace)==null||o.call(Error,c,a),c}return l}return[i.Provider,a,i]}function Vce(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=A.useMemo(()=>Cre(n),[n]);return v.jsxs(Xte,{theme:i,children:[v.jsx(Hce,{root:t}),r]})}function Hce({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return v.jsx(y1,{styles:n=>({[t]:n.__cssVars})})}Uce({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function Gce(){const{colorMode:e}=Nw();return v.jsx(y1,{styles:t=>{const n=b8(t,"styles.global"),r=oC(n,{theme:t,colorMode:e});return r?EL(r)(t):void 0}})}var D8=A.createContext({getDocument(){return document},getWindow(){return window}});D8.displayName="EnvironmentContext";function M8(e){const{children:t,environment:n,disabled:r}=e,i=A.useRef(null),a=A.useMemo(()=>n||{getDocument:()=>{var l,c;return(c=(l=i.current)==null?void 0:l.ownerDocument)!=null?c:document},getWindow:()=>{var l,c;return(c=(l=i.current)==null?void 0:l.ownerDocument.defaultView)!=null?c:window}},[n]),o=!r||!n;return v.jsxs(D8.Provider,{value:a,children:[t,o&&v.jsx("span",{id:"__chakra_env",hidden:!0,ref:i})]})}M8.displayName="EnvironmentProvider";var Wce=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetCSS:i=!0,theme:a={},environment:o,cssVarsRoot:l,disableEnvironment:c}=e,d=v.jsx(M8,{environment:o,disabled:c,children:t});return v.jsx(Vce,{theme:a,cssVarsRoot:l,children:v.jsxs(aL,{colorModeManager:n,options:a.config,children:[i?v.jsx(one,{}):v.jsx(ane,{}),v.jsx(Gce,{}),r?v.jsx(tL,{zIndex:r,children:d}):d]})})},qce=(e,t)=>e.find(n=>n.id===t);function j8(e,t){const n=I8(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function I8(e,t){for(const[n,r]of Object.entries(e))if(qce(r,t))return n}function Yce(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function Kce(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,a=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",o=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:5500,pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:a,left:o}}function Ra(e,t=[]){const n=A.useRef(e);return A.useEffect(()=>{n.current=e}),A.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function Xce(e,t){const n=Ra(e);A.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function oh(e,t){const n=A.useRef(!1),r=A.useRef(!1);A.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),A.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const R8=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),cC=A.createContext({});function Qce(){return A.useContext(cC).visualElement}const L1=A.createContext(null),dC=typeof document<"u",fC=dC?A.useLayoutEffect:A.useEffect,N8=A.createContext({strict:!1});function Zce(e,t,n,r){const i=Qce(),a=A.useContext(N8),o=A.useContext(L1),l=A.useContext(R8).reducedMotion,c=A.useRef();r=r||a.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:l}));const d=c.current;return A.useInsertionEffect(()=>{d&&d.update(n,o)}),fC(()=>{d&&d.render()}),A.useEffect(()=>{d&&d.updateFeatures()}),(window.HandoffAppearAnimations?fC:A.useEffect)(()=>{d&&d.animationState&&d.animationState.animateChanges()}),d}function D0(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Jce(e,t,n){return A.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):D0(n)&&(n.current=r))},[t])}function z1(e){return typeof e=="string"||Array.isArray(e)}function hC(e){return typeof e=="object"&&typeof e.start=="function"}const fP=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hP=["initial",...fP];function pC(e){return hC(e.animate)||hP.some(t=>z1(e[t]))}function L8(e){return Boolean(pC(e)||e.variants)}function $ce(e,t){if(pC(e)){const{initial:n,animate:r}=e;return{initial:n===!1||z1(n)?n:void 0,animate:z1(r)?r:void 0}}return e.inherit!==!1?t:{}}function ede(e){const{initial:t,animate:n}=$ce(e,A.useContext(cC));return A.useMemo(()=>({initial:t,animate:n}),[z8(t),z8(n)])}function z8(e){return Array.isArray(e)?e.join(" "):e}const B8={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},B1={};for(const e in B8)B1[e]={isEnabled:t=>B8[e].some(n=>!!t[n])};function tde(e){for(const t in e)B1[t]={...B1[t],...e[t]}}function pP(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const F1={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let nde=1;function rde(){return pP(()=>{if(F1.hasEverUpdated)return nde++})}const mP=A.createContext({}),F8=A.createContext({}),ide=Symbol.for("motionComponentSymbol");function ade({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&tde(e);function a(l,c){let d;const p={...A.useContext(R8),...l,layoutId:ode(l)},{isStatic:g}=p,S=ede(l),w=g?void 0:rde(),C=r(l,g);if(!g&&dC){S.visualElement=Zce(i,C,p,t);const k=A.useContext(F8),P=A.useContext(N8).strict;S.visualElement&&(d=S.visualElement.loadFeatures(p,P,e,w,k))}return vt.createElement(cC.Provider,{value:S},d&&S.visualElement?vt.createElement(d,{visualElement:S.visualElement,...p}):null,n(i,l,w,Jce(C,S.visualElement,c),C,g,S.visualElement))}const o=A.forwardRef(a);return o[ide]=i,o}function ode({layoutId:e}){const t=A.useContext(mP).id;return t&&e!==void 0?t+"-"+e:e}function sde(e){function t(r,i={}){return ade(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const lde=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function vP(e){return typeof e!="string"||e.includes("-")?!1:!!(lde.indexOf(e)>-1||/[A-Z]/.test(e))}const mC={};function ude(e){Object.assign(mC,e)}const vC=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],mv=new Set(vC);function U8(e,{layout:t,layoutId:n}){return mv.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!mC[e]||e==="opacity")}const bl=e=>Boolean(e&&e.getVelocity),cde={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dde=vC.length;function fde(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let a="";for(let o=0;o<dde;o++){const l=vC[o];if(e[l]!==void 0){const c=cde[l]||l;a+=`${c}(${e[l]}) `}}return t&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,r?"":a):n&&r&&(a="none"),a}const V8=e=>t=>typeof t=="string"&&t.startsWith(e),H8=V8("--"),gP=V8("var(--"),hde=(e,t)=>t&&typeof e=="number"?t.transform(e):e,M0=(e,t,n)=>Math.min(Math.max(n,e),t),vv={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},U1={...vv,transform:e=>M0(0,1,e)},gC={...vv,default:1},V1=e=>Math.round(e*1e5)/1e5,H1=/(-)?([\d]*\.?[\d])+/g,yP=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,pde=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function G1(e){return typeof e=="string"}const W1=e=>({test:t=>G1(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Pp=W1("deg"),zd=W1("%"),kn=W1("px"),mde=W1("vh"),vde=W1("vw"),G8={...zd,parse:e=>zd.parse(e)/100,transform:e=>zd.transform(e*100)},W8={...vv,transform:Math.round},q8={borderWidth:kn,borderTopWidth:kn,borderRightWidth:kn,borderBottomWidth:kn,borderLeftWidth:kn,borderRadius:kn,radius:kn,borderTopLeftRadius:kn,borderTopRightRadius:kn,borderBottomRightRadius:kn,borderBottomLeftRadius:kn,width:kn,maxWidth:kn,height:kn,maxHeight:kn,size:kn,top:kn,right:kn,bottom:kn,left:kn,padding:kn,paddingTop:kn,paddingRight:kn,paddingBottom:kn,paddingLeft:kn,margin:kn,marginTop:kn,marginRight:kn,marginBottom:kn,marginLeft:kn,rotate:Pp,rotateX:Pp,rotateY:Pp,rotateZ:Pp,scale:gC,scaleX:gC,scaleY:gC,scaleZ:gC,skew:Pp,skewX:Pp,skewY:Pp,distance:kn,translateX:kn,translateY:kn,translateZ:kn,x:kn,y:kn,z:kn,perspective:kn,transformPerspective:kn,opacity:U1,originX:G8,originY:G8,originZ:kn,zIndex:W8,fillOpacity:U1,strokeOpacity:U1,numOctaves:W8};function bP(e,t,n,r){const{style:i,vars:a,transform:o,transformOrigin:l}=e;let c=!1,d=!1,p=!0;for(const g in t){const S=t[g];if(H8(g)){a[g]=S;continue}const w=q8[g],C=hde(S,w);if(mv.has(g)){if(c=!0,o[g]=C,!p)continue;S!==(w.default||0)&&(p=!1)}else g.startsWith("origin")?(d=!0,l[g]=C):i[g]=C}if(t.transform||(c||r?i.transform=fde(e.transform,n,p,r):i.transform&&(i.transform="none")),d){const{originX:g="50%",originY:S="50%",originZ:w=0}=l;i.transformOrigin=`${g} ${S} ${w}`}}const SP=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Y8(e,t,n){for(const r in t)!bl(t[r])&&!U8(r,n)&&(e[r]=t[r])}function gde({transformTemplate:e},t,n){return A.useMemo(()=>{const r=SP();return bP(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function yde(e,t,n){const r=e.style||{},i={};return Y8(i,r,e),Object.assign(i,gde(e,t,n)),e.transformValues?e.transformValues(i):i}function bde(e,t,n){const r={},i=yde(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const Sde=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function yC(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Sde.has(e)}let K8=e=>!yC(e);function xde(e){e&&(K8=t=>t.startsWith("on")?!yC(t):e(t))}try{xde(require("@emotion/is-prop-valid").default)}catch{}function wde(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(K8(i)||n===!0&&yC(i)||!t&&!yC(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function X8(e,t,n){return typeof e=="string"?e:kn.transform(t+n*e)}function Cde(e,t,n){const r=X8(t,e.x,e.width),i=X8(n,e.y,e.height);return`${r} ${i}`}const Ede={offset:"stroke-dashoffset",array:"stroke-dasharray"},_de={offset:"strokeDashoffset",array:"strokeDasharray"};function Tde(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?Ede:_de;e[a.offset]=kn.transform(-r);const o=kn.transform(t),l=kn.transform(n);e[a.array]=`${o} ${l}`}function xP(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...c},d,p,g){if(bP(e,c,d,g),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:S,style:w,dimensions:C}=e;S.transform&&(C&&(w.transform=S.transform),delete S.transform),C&&(r!==void 0||i!==void 0||w.transform)&&(w.transformOrigin=Cde(C,r!==void 0?r:.5,i!==void 0?i:.5)),t!==void 0&&(S.x=t),n!==void 0&&(S.y=n),a!==void 0&&Tde(S,a,o,l,!1)}const Q8=()=>({...SP(),attrs:{}}),wP=e=>typeof e=="string"&&e.toLowerCase()==="svg";function kde(e,t,n,r){const i=A.useMemo(()=>{const a=Q8();return xP(a,t,{enableHardwareAcceleration:!1},wP(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Y8(a,e.style,e),i.style={...a,...i.style}}return i}function Pde(e=!1){return(n,r,i,a,{latestValues:o},l)=>{const d=(vP(n)?kde:bde)(r,o,l,n),g={...wde(r,typeof n=="string",e),...d,ref:a},{children:S}=r,w=A.useMemo(()=>bl(S)?S.get():S,[S]);return i&&(g["data-projection-id"]=i),A.createElement(n,{...g,children:w})}}const CP=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Z8(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const J8=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function $8(e,t,n,r){Z8(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(J8.has(i)?i:CP(i),t.attrs[i])}function EP(e,t){const{style:n}=e,r={};for(const i in n)(bl(n[i])||t.style&&bl(t.style[i])||U8(i,e))&&(r[i]=n[i]);return r}function e9(e,t){const n=EP(e,t);for(const r in e)if(bl(e[r])||bl(t[r])){const i=r==="x"||r==="y"?"attr"+r.toUpperCase():r;n[i]=e[r]}return n}function _P(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}const bC=e=>Array.isArray(e),Ade=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),Ode=e=>bC(e)?e[e.length-1]||0:e;function SC(e){const t=bl(e)?e.get():e;return Ade(t)?t.toValue():t}function Dde({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,a){const o={latestValues:Mde(r,i,a,e),renderState:t()};return n&&(o.mount=l=>n(r,l,o)),o}const t9=e=>(t,n)=>{const r=A.useContext(cC),i=A.useContext(L1),a=()=>Dde(e,t,r,i);return n?a():pP(a)};function Mde(e,t,n,r){const i={},a=r(e,{});for(const S in a)i[S]=SC(a[S]);let{initial:o,animate:l}=e;const c=pC(e),d=L8(e);t&&d&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let p=n?n.initial===!1:!1;p=p||o===!1;const g=p?l:o;return g&&typeof g!="boolean"&&!hC(g)&&(Array.isArray(g)?g:[g]).forEach(w=>{const C=_P(e,w);if(!C)return;const{transitionEnd:k,transition:P,...D}=C;for(const M in D){let R=D[M];if(Array.isArray(R)){const L=p?R.length-1:0;R=R[L]}R!==null&&(i[M]=R)}for(const M in k)i[M]=k[M]}),i}const jde={useVisualState:t9({scrapeMotionValuesFromProps:e9,createRenderState:Q8,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}xP(n,r,{enableHardwareAcceleration:!1},wP(t.tagName),e.transformTemplate),$8(t,n)}})},Ide={useVisualState:t9({scrapeMotionValuesFromProps:EP,createRenderState:SP})};function Rde(e,{forwardMotionProps:t=!1},n,r){return{...vP(e)?jde:Ide,preloadedFeatures:n,useRender:Pde(t),createVisualElement:r,Component:e}}function sh(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const n9=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function xC(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Nde=e=>t=>n9(t)&&e(t,xC(t));function lh(e,t,n,r){return sh(e,t,Nde(n),r)}const Lde=(e,t)=>n=>t(e(n)),Ap=(...e)=>e.reduce(Lde);function r9(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const i9=r9("dragHorizontal"),a9=r9("dragVertical");function o9(e){let t=!1;if(e==="y")t=a9();else if(e==="x")t=i9();else{const n=i9(),r=a9();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function s9(){const e=o9(!0);return e?(e(),!1):!0}let Op=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function l9(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(a,o)=>{if(a.type==="touch"||s9())return;const l=e.getProps();e.animationState&&l.whileHover&&e.animationState.setActive("whileHover",t),l[r]&&l[r](a,o)};return lh(e.current,n,i,{passive:!e.getProps()[r]})}class zde extends Op{mount(){this.unmount=Ap(l9(this.node,!0),l9(this.node,!1))}unmount(){}}class Bde extends Op{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ap(sh(this.node.current,"focus",()=>this.onFocus()),sh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const u9=(e,t)=>t?e===t?!0:u9(e,t.parentElement):!1,Bu=e=>e;function TP(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,xC(n))}class Fde extends Op{constructor(){super(...arguments),this.removeStartListeners=Bu,this.removeEndListeners=Bu,this.removeAccessibleListeners=Bu,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),a=lh(window,"pointerup",(l,c)=>{if(!this.checkPressEnd())return;const{onTap:d,onTapCancel:p}=this.node.getProps();u9(this.node.current,l.target)?d&&d(l,c):p&&p(l,c)},{passive:!(r.onTap||r.onPointerUp)}),o=lh(window,"pointercancel",(l,c)=>this.cancelPress(l,c),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ap(a,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=a=>{if(a.key!=="Enter"||this.isPressing)return;const o=l=>{l.key!=="Enter"||!this.checkPressEnd()||TP("up",this.node.getProps().onTap)};this.removeEndListeners(),this.removeEndListeners=sh(this.node.current,"keyup",o),TP("down",(l,c)=>{this.startPress(l,c)})},n=sh(this.node.current,"keydown",t),r=()=>{this.isPressing&&TP("cancel",(a,o)=>this.cancelPress(a,o))},i=sh(this.node.current,"blur",r);this.removeAccessibleListeners=Ap(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!s9()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=lh(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=sh(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ap(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const kP=new WeakMap,PP=new WeakMap,Ude=e=>{const t=kP.get(e.target);t&&t(e)},Vde=e=>{e.forEach(Ude)};function Hde({root:e,...t}){const n=e||document;PP.has(n)||PP.set(n,{});const r=PP.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Vde,{root:e,...t})),r[i]}function Gde(e,t,n){const r=Hde(t);return kP.set(e,n),r.observe(e),()=>{kP.delete(e),r.unobserve(e)}}const Wde={some:0,all:1};class qde extends Op{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame(()=>{this.hasEnteredView=!0;const{onViewportEnter:t}=this.node.getProps();t&&t(null),this.node.animationState&&this.node.animationState.setActive("whileInView",!0)})}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a,fallback:o=!0}=t;if(typeof IntersectionObserver>"u"){o&&this.viewportFallback();return}const l={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Wde[i]},c=d=>{const{isIntersecting:p}=d;if(this.isInView===p||(this.isInView=p,a&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:S}=this.node.getProps(),w=p?g:S;w&&w(d)};return Gde(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Yde(t,n))&&this.startObserver()}unmount(){}}function Yde({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Kde={inView:{Feature:qde},tap:{Feature:Fde},focus:{Feature:Bde},hover:{Feature:zde}};function c9(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Xde=e=>/^\-?\d*\.?\d+$/.test(e),Qde=e=>/^0[^.\s]+$/.test(e),uh={delta:0,timestamp:0},d9=1/60*1e3,Zde=typeof performance<"u"?()=>performance.now():()=>Date.now(),f9=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Zde()),d9);function Jde(e){let t=[],n=[],r=0,i=!1,a=!1;const o=new WeakSet,l={schedule:(c,d=!1,p=!1)=>{const g=p&&i,S=g?t:n;return d&&o.add(c),S.indexOf(c)===-1&&(S.push(c),g&&i&&(r=t.length)),c},cancel:c=>{const d=n.indexOf(c);d!==-1&&n.splice(d,1),o.delete(c)},process:c=>{if(i){a=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let d=0;d<r;d++){const p=t[d];p(c),o.has(p)&&(l.schedule(p),e())}i=!1,a&&(a=!1,l.process(c))}};return l}const $de=40;let AP=!0,q1=!1,OP=!1;const Y1=["read","update","preRender","render","postRender"],wC=Y1.reduce((e,t)=>(e[t]=Jde(()=>q1=!0),e),{}),ps=Y1.reduce((e,t)=>{const n=wC[t];return e[t]=(r,i=!1,a=!1)=>(q1||tfe(),n.schedule(r,i,a)),e},{}),Dp=Y1.reduce((e,t)=>(e[t]=wC[t].cancel,e),{}),DP=Y1.reduce((e,t)=>(e[t]=()=>wC[t].process(uh),e),{}),efe=e=>wC[e].process(uh),h9=e=>{q1=!1,uh.delta=AP?d9:Math.max(Math.min(e-uh.timestamp,$de),1),uh.timestamp=e,OP=!0,Y1.forEach(efe),OP=!1,q1&&(AP=!1,f9(h9))},tfe=()=>{q1=!0,AP=!0,OP||f9(h9)};function MP(e,t){e.indexOf(t)===-1&&e.push(t)}function jP(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class IP{constructor(){this.subscriptions=[]}add(t){return MP(this.subscriptions,t),()=>jP(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function RP(e,t){return t?e*(1e3/t):0}const nfe=e=>!isNaN(parseFloat(e));class rfe{constructor(t,n={}){this.version="9.1.7",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:a,timestamp:o}=uh;this.lastUpdated!==o&&(this.timeDelta=a,this.lastUpdated=o,ps.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>ps.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=nfe(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new IP);const r=this.events[t].add(n);return t==="change"?()=>{r(),ps.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?RP(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function j0(e,t){return new rfe(e,t)}const NP=(e,t)=>n=>Boolean(G1(n)&&pde.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),p9=(e,t,n)=>r=>{if(!G1(r))return r;const[i,a,o,l]=r.match(H1);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},ife=e=>M0(0,255,e),LP={...vv,transform:e=>Math.round(ife(e))},gv={test:NP("rgb","red"),parse:p9("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+LP.transform(e)+", "+LP.transform(t)+", "+LP.transform(n)+", "+V1(U1.transform(r))+")"};function afe(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const zP={test:NP("#"),parse:afe,transform:gv.transform},I0={test:NP("hsl","hue"),parse:p9("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+zd.transform(V1(t))+", "+zd.transform(V1(n))+", "+V1(U1.transform(r))+")"},Vs={test:e=>gv.test(e)||zP.test(e)||I0.test(e),parse:e=>gv.test(e)?gv.parse(e):I0.test(e)?I0.parse(e):zP.parse(e),transform:e=>G1(e)?e:e.hasOwnProperty("red")?gv.transform(e):I0.transform(e)},m9="${c}",v9="${n}";function ofe(e){var t,n;return isNaN(e)&&G1(e)&&(((t=e.match(H1))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(yP))===null||n===void 0?void 0:n.length)||0)>0}function CC(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0,r=0;const i=e.match(yP);i&&(n=i.length,e=e.replace(yP,m9),t.push(...i.map(Vs.parse)));const a=e.match(H1);return a&&(r=a.length,e=e.replace(H1,v9),t.push(...a.map(vv.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function g9(e){return CC(e).values}function y9(e){const{values:t,numColors:n,tokenised:r}=CC(e),i=t.length;return a=>{let o=r;for(let l=0;l<i;l++)o=o.replace(l<n?m9:v9,l<n?Vs.transform(a[l]):V1(a[l]));return o}}const sfe=e=>typeof e=="number"?0:e;function lfe(e){const t=g9(e);return y9(e)(t.map(sfe))}const Mp={test:ofe,parse:g9,createTransformer:y9,getAnimatableNone:lfe},ufe=new Set(["brightness","contrast","saturate","opacity"]);function cfe(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(H1)||[];if(!r)return e;const i=n.replace(r,"");let a=ufe.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const dfe=/([a-z-]*)\(.*?\)/g,BP={...Mp,getAnimatableNone:e=>{const t=e.match(dfe);return t?t.map(cfe).join(" "):e}},ffe={...q8,color:Vs,backgroundColor:Vs,outlineColor:Vs,fill:Vs,stroke:Vs,borderColor:Vs,borderTopColor:Vs,borderRightColor:Vs,borderBottomColor:Vs,borderLeftColor:Vs,filter:BP,WebkitFilter:BP},FP=e=>ffe[e];function UP(e,t){let n=FP(e);return n!==BP&&(n=Mp),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const b9=e=>t=>t.test(e),S9=[vv,kn,zd,Pp,vde,mde,{test:e=>e==="auto",parse:e=>e}],K1=e=>S9.find(b9(e)),hfe=[...S9,Vs,Mp],pfe=e=>hfe.find(b9(e));function mfe(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function vfe(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function EC(e,t,n){const r=e.getProps();return _P(r,t,n!==void 0?n:r.custom,mfe(e),vfe(e))}function gfe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,j0(n))}function yfe(e,t){const n=EC(e,t);let{transitionEnd:r={},transition:i={},...a}=n?e.makeTargetAnimatable(n,!1):{};a={...a,...r};for(const o in a){const l=Ode(a[o]);gfe(e,o,l)}}function bfe(e,t,n){var r,i;const a=Object.keys(t).filter(l=>!e.hasValue(l)),o=a.length;if(o)for(let l=0;l<o;l++){const c=a[l],d=t[c];let p=null;Array.isArray(d)&&(p=d[0]),p===null&&(p=(i=(r=n[c])!==null&&r!==void 0?r:e.readValue(c))!==null&&i!==void 0?i:t[c]),p!=null&&(typeof p=="string"&&(Xde(p)||Qde(p))?p=parseFloat(p):!pfe(p)&&Mp.test(d)&&(p=UP(c,d)),e.addValue(c,j0(p,{owner:e})),n[c]===void 0&&(n[c]=p),p!==null&&e.setBaseTarget(c,p))}}function Sfe(e,t){return t?(t[e]||t.default||t).from:void 0}function xfe(e,t,n){const r={};for(const i in e){const a=Sfe(i,t);if(a!==void 0)r[i]=a;else{const o=n.getValue(i);o&&(r[i]=o.get())}}return r}function _C(e){return Boolean(bl(e)&&e.add)}const wfe="data-"+CP("framerAppearId");let X1=Bu,Nc=Bu;process.env.NODE_ENV!=="production"&&(X1=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Nc=(e,t)=>{if(!e)throw new Error(t)});const TC=e=>e*1e3,Cfe={current:!1},VP=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,HP=e=>t=>1-e(1-t),GP=e=>e*e,Efe=HP(GP),WP=VP(GP),ua=(e,t,n)=>-n*e+n*t+e;function qP(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function _fe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=qP(c,l,e+1/3),a=qP(c,l,e),o=qP(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}const YP=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Tfe=[zP,gv,I0],kfe=e=>Tfe.find(t=>t.test(e));function x9(e){const t=kfe(e);Nc(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===I0&&(n=_fe(n)),n}const w9=(e,t)=>{const n=x9(e),r=x9(t),i={...n};return a=>(i.red=YP(n.red,r.red,a),i.green=YP(n.green,r.green,a),i.blue=YP(n.blue,r.blue,a),i.alpha=ua(n.alpha,r.alpha,a),gv.transform(i))};function C9(e,t){return typeof e=="number"?n=>ua(e,t,n):Vs.test(e)?w9(e,t):_9(e,t)}const E9=(e,t)=>{const n=[...e],r=n.length,i=e.map((a,o)=>C9(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}},Pfe=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=C9(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}},_9=(e,t)=>{const n=Mp.createTransformer(t),r=CC(e),i=CC(t);return r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Ap(E9(r.values,i.values),n):(X1(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),o=>`${o>0?t:e}`)},Q1=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},T9=(e,t)=>n=>ua(e,t,n);function Afe(e){return typeof e=="number"?T9:typeof e=="string"?Vs.test(e)?w9:_9:Array.isArray(e)?E9:typeof e=="object"?Pfe:T9}function Ofe(e,t,n){const r=[],i=n||Afe(e[0]),a=e.length-1;for(let o=0;o<a;o++){let l=i(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]:t;l=Ap(c,l)}r.push(l)}return r}function k9(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;Nc(a===t.length,"Both input and output ranges must be the same length"),Nc(!r||!Array.isArray(r)||r.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=Ofe(t,r,i),l=o.length,c=d=>{let p=0;if(l>1)for(;p<e.length-2&&!(d<e[p+1]);p++);const g=Q1(e[p],e[p+1],d);return o[p](g)};return n?d=>c(M0(e[0],e[a-1],d)):c}function Dfe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Q1(0,t,r);e.push(ua(n,1,i))}}function Mfe(e){const t=[0];return Dfe(t,e.length-1),t}function jfe(e,t){return e.map(n=>n*t)}const P9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ife=1e-7,Rfe=12;function Nfe(e,t,n,r,i){let a,o,l=0;do o=t+(n-t)/2,a=P9(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Ife&&++l<Rfe);return o}function A9(e,t,n,r){if(e===t&&n===r)return Bu;const i=a=>Nfe(a,0,1,e,n);return a=>a===0||a===1?a:P9(i(a),t,r)}const O9=e=>1-Math.sin(Math.acos(e)),KP=HP(O9),Lfe=VP(KP),D9=A9(.33,1.53,.69,.99),XP=HP(D9),zfe=VP(XP),M9={linear:Bu,easeIn:GP,easeInOut:WP,easeOut:Efe,circIn:O9,circInOut:Lfe,circOut:KP,backIn:XP,backInOut:zfe,backOut:D9,anticipate:e=>(e*=2)<1?.5*XP(e):.5*(2-Math.pow(2,-10*(e-1)))},j9=e=>{if(Array.isArray(e)){Nc(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return A9(t,n,r,i)}else if(typeof e=="string")return Nc(M9[e]!==void 0,`Invalid easing type '${e}'`),M9[e];return e},Bfe=e=>Array.isArray(e)&&typeof e[0]!="number";function Ffe(e,t){return e.map(()=>t||WP).splice(0,e.length-1)}function QP({keyframes:e,ease:t=WP,times:n,duration:r=300}){e=[...e];const i=Bfe(t)?t.map(j9):j9(t),a={done:!1,value:e[0]},o=jfe(n&&n.length===e.length?n:Mfe(e),r);function l(){return k9(o,e,{ease:Array.isArray(i)?i:Ffe(e,i)})}let c=l();return{next:d=>(a.value=c(d),a.done=d>=r,a),flipTarget:()=>{e.reverse(),c=l()}}}const ZP=.001,Ufe=.01,I9=10,Vfe=.05,Hfe=1;function Gfe({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,a;X1(e<=I9*1e3,"Spring duration must be 10 seconds or less");let o=1-t;o=M0(Vfe,Hfe,o),e=M0(Ufe,I9,e/1e3),o<1?(i=d=>{const p=d*o,g=p*e,S=p-n,w=JP(d,o),C=Math.exp(-g);return ZP-S/w*C},a=d=>{const g=d*o*e,S=g*n+n,w=Math.pow(o,2)*Math.pow(d,2)*e,C=Math.exp(-g),k=JP(Math.pow(d,2),o);return(-i(d)+ZP>0?-1:1)*((S-w)*C)/k}):(i=d=>{const p=Math.exp(-d*e),g=(d-n)*e+1;return-ZP+p*g},a=d=>{const p=Math.exp(-d*e),g=(n-d)*(e*e);return p*g});const l=5/e,c=qfe(i,a,l);if(e=e*1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:e}}}const Wfe=12;function qfe(e,t,n){let r=n;for(let i=1;i<Wfe;i++)r=r-e(r)/t(r);return r}function JP(e,t){return e*Math.sqrt(1-t*t)}const Yfe=["duration","bounce"],Kfe=["stiffness","damping","mass"];function R9(e,t){return t.some(n=>e[n]!==void 0)}function Xfe(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!R9(e,Kfe)&&R9(e,Yfe)){const n=Gfe(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}const Qfe=5;function N9({keyframes:e,restDelta:t,restSpeed:n,...r}){let i=e[0],a=e[e.length-1];const o={done:!1,value:i},{stiffness:l,damping:c,mass:d,velocity:p,duration:g,isResolvedFromDuration:S}=Xfe(r);let w=Zfe,C=p?-(p/1e3):0;const k=c/(2*Math.sqrt(l*d));function P(){const D=a-i,M=Math.sqrt(l/d)/1e3,R=Math.abs(D)<5;if(n||(n=R?.01:2),t||(t=R?.005:.5),k<1){const L=JP(M,k);w=z=>{const U=Math.exp(-k*M*z);return a-U*((C+k*M*D)/L*Math.sin(L*z)+D*Math.cos(L*z))}}else if(k===1)w=L=>a-Math.exp(-M*L)*(D+(C+M*D)*L);else{const L=M*Math.sqrt(k*k-1);w=z=>{const U=Math.exp(-k*M*z),V=Math.min(L*z,300);return a-U*((C+k*M*D)*Math.sinh(V)+L*D*Math.cosh(V))/L}}}return P(),{next:D=>{const M=w(D);if(S)o.done=D>=g;else{let R=C;if(D!==0)if(k<1){const U=Math.max(0,D-Qfe);R=RP(M-w(U),D-U)}else R=0;const L=Math.abs(R)<=n,z=Math.abs(a-M)<=t;o.done=L&&z}return o.value=o.done?a:M,o},flipTarget:()=>{C=-C,[i,a]=[a,i],P()}}}N9.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Zfe=e=>0;function Jfe({keyframes:e=[0],velocity:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:a}){const o=e[0],l={done:!1,value:o};let c=n*t;const d=o+c,p=a===void 0?d:a(d);return p!==d&&(c=p-o),{next:g=>{const S=-c*Math.exp(-g/r);return l.done=!(S>i||S<-i),l.value=l.done?p:p+S,l},flipTarget:()=>{}}}const $fe={decay:Jfe,keyframes:QP,tween:QP,spring:N9};function L9(e,t,n=0){return e-t-n}function ehe(e,t=0,n=0,r=!0){return r?L9(t+-e,t,n):t-(e-t)+n}function the(e,t,n,r){return r?e>=t+n:e<=-n}const nhe=e=>{const t=({delta:n})=>e(n);return{start:()=>ps.update(t,!0),stop:()=>Dp.update(t)}};function kC({duration:e,driver:t=nhe,elapsed:n=0,repeat:r=0,repeatType:i="loop",repeatDelay:a=0,keyframes:o,autoplay:l=!0,onPlay:c,onStop:d,onComplete:p,onRepeat:g,onUpdate:S,type:w="keyframes",...C}){const k=n;let P,D=0,M=e,R=!1,L=!0,z;const U=$fe[o.length>2?"keyframes":w]||QP,V=o[0],Y=o[o.length-1];let J={done:!1,value:V};const{needsInterpolation:$}=U;$&&$(V,Y)&&(z=k9([0,100],[V,Y],{clamp:!1}),o=[0,100]);const K=U({...C,duration:e,keyframes:o});function fe(){D++,i==="reverse"?(L=D%2===0,n=ehe(n,M,a,L)):(n=L9(n,M,a),i==="mirror"&&K.flipTarget()),R=!1,g&&g()}function X(){P&&P.stop(),p&&p()}function G(re){L||(re=-re),n+=re,R||(J=K.next(Math.max(0,n)),z&&(J.value=z(J.value)),R=L?J.done:n<=0),S&&S(J.value),R&&(D===0&&(M=M!==void 0?M:n),D<r?the(n,M,a,L)&&fe():X())}function te(){c&&c(),P=t(G),P.start()}return l&&te(),{stop:()=>{d&&d(),P&&P.stop()},set currentTime(re){n=k,G(re)},sample:re=>{n=k;const oe=e&&typeof e=="number"?Math.max(e*.5,50):50;let ie=0;for(G(0);ie<=re;){const le=re-ie;G(Math.min(le,oe)),ie+=oe}return J}}}function rhe(e){return!e||Array.isArray(e)||typeof e=="string"&&z9[e]}const Z1=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,z9={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Z1([0,.65,.55,1]),circOut:Z1([.55,0,1,.45]),backIn:Z1([.31,.01,.66,-.59]),backOut:Z1([.33,1.53,.69,.99])};function ihe(e){if(e)return Array.isArray(e)?Z1(e):z9[e]}function ahe(e,t,n,{delay:r=0,duration:i,repeat:a=0,repeatType:o="loop",ease:l,times:c}={}){return e.animate({[t]:n,offset:c},{delay:r,duration:i,easing:ihe(l),fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const B9={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},$P={},F9={};for(const e in B9)F9[e]=()=>($P[e]===void 0&&($P[e]=B9[e]()),$P[e]);function ohe(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const she=new Set(["opacity","clipPath","filter","transform"]),PC=10;function lhe(e,t,{onUpdate:n,onComplete:r,...i}){if(!(F9.waapi()&&she.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0))return!1;let{keyframes:o,duration:l=300,elapsed:c=0,ease:d}=i;if(i.type==="spring"||!rhe(i.ease)){if(i.repeat===1/0)return;const g=kC({...i,elapsed:0});let S={done:!1,value:o[0]};const w=[];let C=0;for(;!S.done&&C<2e4;)S=g.sample(C),w.push(S.value),C+=PC;o=w,l=C-PC,d="linear"}const p=ahe(e.owner.current,t,o,{...i,delay:-c,duration:l,ease:d});return p.onfinish=()=>{e.set(ohe(o,i)),ps.update(()=>p.cancel()),r&&r()},{get currentTime(){return p.currentTime||0},set currentTime(g){p.currentTime=g},stop:()=>{const{currentTime:g}=p;if(g){const S=kC({...i,autoplay:!1});e.setWithVelocity(S.sample(g-PC).value,S.sample(g).value,PC)}ps.update(()=>p.cancel())}}}function U9(e,t){const n=performance.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Dp.read(r),e(a-t))};return ps.read(r,!0),()=>Dp.read(r)}function uhe({keyframes:e,elapsed:t,onUpdate:n,onComplete:r}){const i=()=>{n&&n(e[e.length-1]),r&&r()};return t?{stop:U9(i,-t)}:i()}function che({keyframes:e,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:a=750,bounceStiffness:o=500,bounceDamping:l=10,restDelta:c=1,modifyTarget:d,driver:p,onUpdate:g,onComplete:S,onStop:w}){const C=e[0];let k;function P(L){return n!==void 0&&L<n||r!==void 0&&L>r}function D(L){return n===void 0?r:r===void 0||Math.abs(n-L)<Math.abs(r-L)?n:r}function M(L){k&&k.stop(),k=kC({keyframes:[0,1],velocity:0,...L,driver:p,onUpdate:z=>{g&&g(z),L.onUpdate&&L.onUpdate(z)},onComplete:S,onStop:w})}function R(L){M({type:"spring",stiffness:o,damping:l,restDelta:c,...L})}if(P(C))R({velocity:t,keyframes:[C,D(C)]});else{let L=i*t+C;typeof d<"u"&&(L=d(L));const z=D(L),U=z===n?-1:1;let V,Y;const J=$=>{V=Y,Y=$,t=RP($-V,uh.delta),(U===1&&$>z||U===-1&&$<z)&&R({keyframes:[$,z],velocity:t})};M({type:"decay",keyframes:[C,0],velocity:t,timeConstant:a,power:i,restDelta:c,modifyTarget:d,onUpdate:P(L)?J:void 0})}return{stop:()=>k&&k.stop()}}const dhe={type:"spring",stiffness:500,damping:25,restSpeed:10},fhe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),hhe={type:"keyframes",duration:.8},phe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},mhe=(e,{keyframes:t})=>t.length>2?hhe:mv.has(e)?e.startsWith("scale")?fhe(t[1]):dhe:phe,e5=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Mp.test(t)&&!t.startsWith("url("));function vhe({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:l,from:c,elapsed:d,...p}){return!!Object.keys(p).length}function V9(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function H9(e){return typeof e=="number"?0:UP("",e)}function G9(e,t){return e[t]||e.default||e}function ghe(e,t,n,r){const i=e5(t,n);let a=r.from!==void 0?r.from:e.get();return a==="none"&&i&&typeof n=="string"?a=UP(t,n):V9(a)&&typeof n=="string"?a=H9(n):!Array.isArray(n)&&V9(n)&&typeof a=="string"&&(n=H9(a)),Array.isArray(n)?(n[0]===null&&(n[0]=a),n):[a,n]}const t5=(e,t,n,r={})=>i=>{const a=G9(r,e)||{},o=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-TC(o);const c=ghe(t,e,n,a),d=c[0],p=c[c.length-1],g=e5(e,d),S=e5(e,p);X1(g===S,`You are trying to animate ${e} from "${d}" to "${p}". ${d} is not an animatable value - to enable this animation set ${d} to a value animatable to ${p} via the \`style\` property.`);let w={keyframes:c,velocity:t.getVelocity(),...a,elapsed:l,onUpdate:C=>{t.set(C),a.onUpdate&&a.onUpdate(C)},onComplete:()=>{i(),a.onComplete&&a.onComplete()}};if(!g||!S||Cfe.current||a.type===!1)return uhe(w);if(a.type==="inertia")return che(w);if(vhe(a)||(w={...w,...mhe(e,w)}),w.duration&&(w.duration=TC(w.duration)),w.repeatDelay&&(w.repeatDelay=TC(w.repeatDelay)),t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const C=lhe(t,e,w);if(C)return C}return kC(w)};function yhe(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>n5(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=n5(e,t,n);else{const i=typeof t=="function"?EC(e,t,n.custom):t;r=W9(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))}function n5(e,t,n={}){const r=EC(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>W9(e,r,n):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:g}=i;return bhe(e,t,d+c,p,g,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,d]=l==="beforeChildren"?[a,o]:[o,a];return c().then(d)}else return Promise.all([a(),o(n.delay)])}function W9(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...l}=e.makeTargetAnimatable(t);const c=e.getValue("willChange");r&&(a=r);const d=[],p=i&&e.animationState&&e.animationState.getState()[i];for(const g in l){const S=e.getValue(g),w=l[g];if(!S||w===void 0||p&&xhe(p,g))continue;const C={delay:n,elapsed:0,...a};if(window.HandoffAppearAnimations&&!S.hasAnimated){const P=e.getProps()[wfe];P&&(C.elapsed=window.HandoffAppearAnimations(P,g,S,ps))}let k=S.start(t5(g,S,w,e.shouldReduceMotion&&mv.has(g)?{type:!1}:C));_C(c)&&(c.add(g),k=k.then(()=>c.remove(g))),d.push(k)}return Promise.all(d).then(()=>{o&&yfe(e,o)})}function bhe(e,t,n=0,r=0,i=1,a){const o=[],l=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>l-d*r;return Array.from(e.variantChildren).sort(She).forEach((d,p)=>{d.notify("AnimationStart",t),o.push(n5(d,t,{...a,delay:n+c(p)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(o)}function She(e,t){return e.sortNodePosition(t)}function xhe({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const whe=[...fP].reverse(),Che=fP.length;function Ehe(e){return t=>Promise.all(t.map(({animation:n,options:r})=>yhe(e,n,r)))}function _he(e){let t=Ehe(e);const n=khe();let r=!0;const i=(c,d)=>{const p=EC(e,d);if(p){const{transition:g,transitionEnd:S,...w}=p;c={...c,...w,...S}}return c};function a(c){t=c(e)}function o(c,d){const p=e.getProps(),g=e.getVariantContext(!0)||{},S=[],w=new Set;let C={},k=1/0;for(let D=0;D<Che;D++){const M=whe[D],R=n[M],L=p[M]!==void 0?p[M]:g[M],z=z1(L),U=M===d?R.isActive:null;U===!1&&(k=D);let V=L===g[M]&&L!==p[M]&&z;if(V&&r&&e.manuallyAnimateOnMount&&(V=!1),R.protectedKeys={...C},!R.isActive&&U===null||!L&&!R.prevProp||hC(L)||typeof L=="boolean")continue;const Y=The(R.prevProp,L);let J=Y||M===d&&R.isActive&&!V&&z||D>k&&z;const $=Array.isArray(L)?L:[L];let K=$.reduce(i,{});U===!1&&(K={});const{prevResolvedValues:fe={}}=R,X={...fe,...K},G=te=>{J=!0,w.delete(te),R.needsAnimating[te]=!0};for(const te in X){const re=K[te],oe=fe[te];C.hasOwnProperty(te)||(re!==oe?bC(re)&&bC(oe)?!c9(re,oe)||Y?G(te):R.protectedKeys[te]=!0:re!==void 0?G(te):w.add(te):re!==void 0&&w.has(te)?G(te):R.protectedKeys[te]=!0)}R.prevProp=L,R.prevResolvedValues=K,R.isActive&&(C={...C,...K}),r&&e.blockInitialAnimation&&(J=!1),J&&!V&&S.push(...$.map(te=>({animation:te,options:{type:M,...c}})))}if(w.size){const D={};w.forEach(M=>{const R=e.getBaseTarget(M);R!==void 0&&(D[M]=R)}),S.push({animation:D})}let P=Boolean(S.length);return r&&p.initial===!1&&!e.manuallyAnimateOnMount&&(P=!1),r=!1,P?t(S):Promise.resolve()}function l(c,d,p){var g;if(n[c].isActive===d)return Promise.resolve();(g=e.variantChildren)===null||g===void 0||g.forEach(w=>{var C;return(C=w.animationState)===null||C===void 0?void 0:C.setActive(c,d)}),n[c].isActive=d;const S=o(p,c);for(const w in n)n[w].protectedKeys={};return S}return{animateChanges:o,setActive:l,setAnimateFunction:a,getState:()=>n}}function The(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!c9(t,e):!1}function yv(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function khe(){return{animate:yv(!0),whileInView:yv(),whileHover:yv(),whileTap:yv(),whileDrag:yv(),whileFocus:yv(),exit:yv()}}class Phe extends Op{constructor(t){super(t),t.animationState||(t.animationState=_he(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),hC(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Ahe=0;class Ohe extends Op{constructor(){super(...arguments),this.id=Ahe++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const Dhe={animation:{Feature:Phe},exit:{Feature:Ohe}},q9=(e,t)=>Math.abs(e-t);function Mhe(e,t){const n=q9(e.x,t.x),r=q9(e.y,t.y);return Math.sqrt(n**2+r**2)}class Y9{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=i5(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=Mhe(d.offset,{x:0,y:0})>=3;if(!p&&!g)return;const{point:S}=d,{timestamp:w}=uh;this.history.push({...S,timestamp:w});const{onStart:C,onMove:k}=this.handlers;p||(C&&C(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=r5(p,this.transformPagePoint),ps.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:g,onSessionEnd:S}=this.handlers,w=i5(d.type==="pointercancel"?this.lastMoveEventInfo:r5(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,w),S&&S(d,w)},!n9(t))return;this.handlers=n,this.transformPagePoint=r;const i=xC(t),a=r5(i,this.transformPagePoint),{point:o}=a,{timestamp:l}=uh;this.history=[{...o,timestamp:l}];const{onSessionStart:c}=n;c&&c(t,i5(a,this.history)),this.removeListeners=Ap(lh(window,"pointermove",this.handlePointerMove),lh(window,"pointerup",this.handlePointerUp),lh(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Dp.update(this.updatePoint)}}function r5(e,t){return t?{point:t(e.point)}:e}function K9(e,t){return{x:e.x-t.x,y:e.y-t.y}}function i5({point:e},t){return{point:e,delta:K9(e,X9(t)),offset:K9(e,jhe(t)),velocity:Ihe(t,.1)}}function jhe(e){return e[0]}function X9(e){return e[e.length-1]}function Ihe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=X9(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>TC(t)));)n--;if(!r)return{x:0,y:0};const a=(i.timestamp-r.timestamp)/1e3;if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function $l(e){return e.max-e.min}function a5(e,t=0,n=.01){return Math.abs(e-t)<=n}function Q9(e,t,n,r=.5){e.origin=r,e.originPoint=ua(t.min,t.max,e.origin),e.scale=$l(n)/$l(t),(a5(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=ua(n.min,n.max,e.origin)-e.originPoint,(a5(e.translate)||isNaN(e.translate))&&(e.translate=0)}function J1(e,t,n,r){Q9(e.x,t.x,n.x,r?r.originX:void 0),Q9(e.y,t.y,n.y,r?r.originY:void 0)}function Z9(e,t,n){e.min=n.min+t.min,e.max=e.min+$l(t)}function Rhe(e,t,n){Z9(e.x,t.x,n.x),Z9(e.y,t.y,n.y)}function J9(e,t,n){e.min=t.min-n.min,e.max=e.min+$l(t)}function $1(e,t,n){J9(e.x,t.x,n.x),J9(e.y,t.y,n.y)}function Nhe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ua(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ua(n,e,r.max):Math.min(e,n)),e}function $9(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Lhe(e,{top:t,left:n,bottom:r,right:i}){return{x:$9(e.x,n,i),y:$9(e.y,t,r)}}function ez(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function zhe(e,t){return{x:ez(e.x,t.x),y:ez(e.y,t.y)}}function Bhe(e,t){let n=.5;const r=$l(e),i=$l(t);return i>r?n=Q1(t.min,t.max-r,e.min):r>i&&(n=Q1(e.min,e.max-i,t.min)),M0(0,1,n)}function Fhe(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const o5=.35;function Uhe(e=o5){return e===!1?e=0:e===!0&&(e=o5),{x:tz(e,"left","right"),y:tz(e,"top","bottom")}}function tz(e,t,n){return{min:nz(e,t),max:nz(e,n)}}function nz(e,t){return typeof e=="number"?e:e[t]||0}const rz=()=>({translate:0,scale:1,origin:0,originPoint:0}),eS=()=>({x:rz(),y:rz()}),iz=()=>({min:0,max:0}),Za=()=>({x:iz(),y:iz()});function Bd(e){return[e("x"),e("y")]}function az({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Vhe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Hhe(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function s5(e){return e===void 0||e===1}function l5({scale:e,scaleX:t,scaleY:n}){return!s5(e)||!s5(t)||!s5(n)}function bv(e){return l5(e)||oz(e)||e.z||e.rotate||e.rotateX||e.rotateY}function oz(e){return sz(e.x)||sz(e.y)}function sz(e){return e&&e!=="0%"}function AC(e,t,n){const r=e-n,i=t*r;return n+i}function lz(e,t,n,r,i){return i!==void 0&&(e=AC(e,i,r)),AC(e,n,r)+t}function u5(e,t=0,n=1,r,i){e.min=lz(e.min,t,n,r,i),e.max=lz(e.max,t,n,r,i)}function uz(e,{x:t,y:n}){u5(e.x,t.translate,t.scale,t.originPoint),u5(e.y,n.translate,n.scale,n.originPoint)}function Ghe(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let l=0;l<i;l++){a=n[l],o=a.projectionDelta;const c=a.instance;c&&c.style&&c.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&R0(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,uz(e,o)),r&&bv(a.latestValues)&&R0(e,a.latestValues))}t.x=cz(t.x),t.y=cz(t.y)}function cz(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function jp(e,t){e.min=e.min+t,e.max=e.max+t}function dz(e,t,[n,r,i]){const a=t[i]!==void 0?t[i]:.5,o=ua(e.min,e.max,a);u5(e,t[n],t[r],o,t.scale)}const Whe=["x","scaleX","originX"],qhe=["y","scaleY","originY"];function R0(e,t){dz(e.x,t,Whe),dz(e.y,t,qhe)}function fz(e,t){return az(Hhe(e.getBoundingClientRect(),t))}function Yhe(e,t,n){const r=fz(e,n),{scroll:i}=t;return i&&(jp(r.x,i.offset.x),jp(r.y,i.offset.y)),r}const Khe=new WeakMap;class Xhe{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Za(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{this.stopAnimation(),n&&this.snapToCursor(xC(c,"page").point)},a=(c,d)=>{const{drag:p,dragPropagation:g,onDragStart:S}=this.getProps();if(p&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=o9(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Bd(C=>{let k=this.getAxisMotionValue(C).get()||0;if(zd.test(k)){const{projection:P}=this.visualElement;if(P&&P.layout){const D=P.layout.layoutBox[C];D&&(k=$l(D)*(parseFloat(k)/100))}}this.originPoint[C]=k}),S&&S(c,d);const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:S,onDrag:w}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:C}=d;if(g&&this.currentDirection===null){this.currentDirection=Qhe(C),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",d.point,C),this.updateAxis("y",d.point,C),this.visualElement.render(),w&&w(c,d)},l=(c,d)=>this.stop(c,d);this.panSession=new Y9(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:l},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&a(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!OC(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Nhe(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&D0(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Lhe(r.layoutBox,t):this.constraints=!1,this.elastic=Uhe(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Bd(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=Fhe(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!D0(t))return!1;const r=t.current;Nc(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Yhe(r,i.root,this.visualElement.getTransformPagePoint());let o=zhe(i.layout.layoutBox,a);if(n){const l=n(Vhe(o));this.hasMutatedConstraints=!!l,l&&(o=az(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=Bd(p=>{if(!OC(p,n,this.currentDirection))return;let g=c&&c[p]||{};o&&(g={min:0,max:0});const S=i?200:1e6,w=i?40:1e7,C={type:"inertia",velocity:r?t[p]:0,bounceStiffness:S,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...a,...g};return this.startAxisValueAnimation(p,C)});return Promise.all(d).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(t5(t,r,0,n))}stopAnimation(){Bd(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Bd(n=>{const{drag:r}=this.getProps();if(!OC(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[n];a.set(t[n]-ua(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!D0(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Bd(o=>{const l=this.getAxisMotionValue(o);if(l){const c=l.get();i[o]=Bhe({min:c,max:c},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Bd(o=>{if(!OC(o,t,null))return;const l=this.getAxisMotionValue(o),{min:c,max:d}=this.constraints[o];l.set(ua(c,d,i[o]))})}addListeners(){if(!this.visualElement.current)return;Khe.set(this.visualElement,this);const t=this.visualElement.current,n=lh(t,"pointerdown",c=>{const{drag:d,dragListener:p=!0}=this.getProps();d&&p&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();D0(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const o=sh(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Bd(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=c[p].translate,g.set(g.get()+c[p].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=o5,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:l}}}function OC(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Qhe(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Zhe extends Op{constructor(t){super(t),this.removeGroupControls=Bu,this.removeListeners=Bu,this.controls=new Xhe(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bu}unmount(){this.removeGroupControls(),this.removeListeners()}}class Jhe extends Op{constructor(){super(...arguments),this.removePointerDownListener=Bu}onPointerDown(t){this.session=new Y9(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:t,onStart:n,onMove:r,onEnd:(a,o)=>{delete this.session,i&&i(a,o)}}}mount(){this.removePointerDownListener=lh(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function hz(){const e=A.useContext(L1);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=A.useId();return A.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function $he(){return epe(A.useContext(L1))}function epe(e){return e===null?!0:e.isPresent}function pz(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const tS={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(kn.test(e))e=parseFloat(e);else return e;const n=pz(e,t.target.x),r=pz(e,t.target.y);return`${n}% ${r}%`}},mz=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function tpe(e){const t=mz.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}const npe=4;function c5(e,t,n=1){Nc(n<=npe,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=tpe(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);return a?a.trim():gP(i)?c5(i,t,n+1):i}function rpe(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const a=i.get();if(!gP(a))return;const o=c5(a,r);o&&i.set(o)});for(const i in t){const a=t[i];if(!gP(a))continue;const o=c5(a,r);o&&(t[i]=o,n&&n[i]===void 0&&(n[i]=a))}return{target:t,transitionEnd:n}}const vz="_$css",ipe={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=e.includes("var("),a=[];i&&(e=e.replace(mz,w=>(a.push(w),vz)));const o=Mp.parse(e);if(o.length>5)return r;const l=Mp.createTransformer(e),c=typeof o[0]!="number"?1:0,d=n.x.scale*t.x,p=n.y.scale*t.y;o[0+c]/=d,o[1+c]/=p;const g=ua(d,p,.5);typeof o[2+c]=="number"&&(o[2+c]/=g),typeof o[3+c]=="number"&&(o[3+c]/=g);let S=l(o);if(i){let w=0;S=S.replace(vz,()=>{const C=a[w];return w++,C})}return S}};class ape extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;ude(ope),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),F1.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||ps.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function gz(e){const[t,n]=hz(),r=A.useContext(mP);return A.createElement(ape,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(F8),isPresent:t,safeToRemove:n})}const ope={borderRadius:{...tS,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tS,borderTopRightRadius:tS,borderBottomLeftRadius:tS,borderBottomRightRadius:tS,boxShadow:ipe};function spe(e,t,n={}){const r=bl(e)?e:j0(e);return r.start(t5("",r,t,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const yz=["TopLeft","TopRight","BottomLeft","BottomRight"],lpe=yz.length,bz=e=>typeof e=="string"?parseFloat(e):e,Sz=e=>typeof e=="number"||kn.test(e);function upe(e,t,n,r,i,a){i?(e.opacity=ua(0,n.opacity!==void 0?n.opacity:1,cpe(r)),e.opacityExit=ua(t.opacity!==void 0?t.opacity:1,0,dpe(r))):a&&(e.opacity=ua(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<lpe;o++){const l=`border${yz[o]}Radius`;let c=xz(t,l),d=xz(n,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||Sz(c)===Sz(d)?(e[l]=Math.max(ua(bz(c),bz(d),r),0),(zd.test(d)||zd.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||n.rotate)&&(e.rotate=ua(t.rotate||0,n.rotate||0,r))}function xz(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const cpe=wz(0,.5,KP),dpe=wz(.5,.95,Bu);function wz(e,t,n){return r=>r<e?0:r>t?1:n(Q1(e,t,r))}function Cz(e,t){e.min=t.min,e.max=t.max}function Fu(e,t){Cz(e.x,t.x),Cz(e.y,t.y)}function Ez(e,t,n,r,i){return e-=t,e=AC(e,1/n,r),i!==void 0&&(e=AC(e,1/i,r)),e}function fpe(e,t=0,n=1,r=.5,i,a=e,o=e){if(zd.test(t)&&(t=parseFloat(t),t=ua(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=ua(a.min,a.max,r);e===a&&(l-=t),e.min=Ez(e.min,t,n,l,i),e.max=Ez(e.max,t,n,l,i)}function _z(e,t,[n,r,i],a,o){fpe(e,t[n],t[r],t[i],t.scale,a,o)}const hpe=["x","scaleX","originX"],ppe=["y","scaleY","originY"];function Tz(e,t,n,r){_z(e.x,t,hpe,n?n.x:void 0,r?r.x:void 0),_z(e.y,t,ppe,n?n.y:void 0,r?r.y:void 0)}function kz(e){return e.translate===0&&e.scale===1}function Pz(e){return kz(e.x)&&kz(e.y)}function d5(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Az(e){return $l(e.x)/$l(e.y)}class mpe{constructor(){this.members=[]}add(t){MP(this.members,t),t.scheduleRender()}remove(t){if(jP(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Oz(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y;if((i||a)&&(r=`translate3d(${i}px, ${a}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:c,rotateX:d,rotateY:p}=n;c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const vpe=(e,t)=>e.depth-t.depth;class gpe{constructor(){this.children=[],this.isDirty=!1}add(t){MP(this.children,t),this.isDirty=!0}remove(t){jP(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(vpe),this.isDirty=!1,this.children.forEach(t)}}function ype(e){window.MotionDebug&&window.MotionDebug.record(e)}const Dz=["","X","Y","Z"],Mz=1e3;let bpe=0;const Sv={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function jz({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o,l={},c=t==null?void 0:t()){this.id=bpe++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Sv.totalNodes=Sv.resolvedTargetDeltas=Sv.recalculatedProjection=0,this.nodes.forEach(wpe),this.nodes.forEach(Tpe),this.nodes.forEach(kpe),this.nodes.forEach(Cpe),ype(Sv)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=o,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0,o&&this.root.registerPotentialNode(o,this);for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new gpe)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new IP),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}registerPotentialNode(o,l){this.potentialNodes.set(o,l)}mount(o,l=!1){if(this.instance)return;this.isSVG=o instanceof SVGElement&&o.tagName!=="svg",this.instance=o;const{layoutId:c,layout:d,visualElement:p}=this.options;if(p&&!p.current&&p.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),l&&(d||c)&&(this.isLayoutDirty=!0),e){let g;const S=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=U9(S,250),F1.hasAnimatedSinceResize&&(F1.hasAnimatedSinceResize=!1,this.nodes.forEach(Rz))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&p&&(c||d)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:S,hasRelativeTargetChanged:w,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const k=this.options.transition||p.getDefaultTransition()||Mpe,{onLayoutAnimationStart:P,onLayoutAnimationComplete:D}=p.getProps(),M=!this.targetLayout||!d5(this.targetLayout,C)||w,R=!S&&w;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||R||S&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,R);const L={...G9(k,"layout"),onPlay:P,onComplete:D};(p.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L)}else!S&&this.animationProgress===0&&Rz(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=C})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Dp.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ppe),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Iz);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(jpe),this.potentialNodes.clear()),this.nodes.forEach(_pe),this.nodes.forEach(Spe),this.nodes.forEach(xpe),this.clearAllSnapshots(),DP.update(),DP.preRender(),DP.render())}clearAllSnapshots(){this.nodes.forEach(Epe),this.sharedNodes.forEach(Ape)}scheduleUpdateProjection(){ps.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){ps.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Za(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l&&(this.scroll={animationId:this.root.animationId,phase:o,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Pz(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,p=d!==this.prevTransformTemplateValue;o&&(l||bv(this.latestValues)||p)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),Ipe(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return Za();const l=o.measureViewportBox(),{scroll:c}=this.root;return c&&(jp(l.x,c.offset.x),jp(l.y,c.offset.y)),l}removeElementScroll(o){const l=Za();Fu(l,o);for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:p,options:g}=d;if(d!==this.root&&p&&g.layoutScroll){if(p.isRoot){Fu(l,o);const{scroll:S}=this.root;S&&(jp(l.x,-S.offset.x),jp(l.y,-S.offset.y))}jp(l.x,p.offset.x),jp(l.y,p.offset.y)}}return l}applyTransform(o,l=!1){const c=Za();Fu(c,o);for(let d=0;d<this.path.length;d++){const p=this.path[d];!l&&p.options.layoutScroll&&p.scroll&&p!==p.root&&R0(c,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),bv(p.latestValues)&&R0(c,p.latestValues)}return bv(this.latestValues)&&R0(c,this.latestValues),c}removeTransform(o){const l=Za();Fu(l,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!bv(d.latestValues))continue;l5(d.latestValues)&&d.updateSnapshot();const p=Za(),g=d.measurePageBox();Fu(p,g),Tz(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,p)}return bv(this.latestValues)&&Tz(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var o;const l=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty),!((Boolean(this.resumingFrom)||this!==l)&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:p,layoutId:g}=this.options;if(!(!this.layout||!(p||g))){if(!this.targetDelta&&!this.relativeTarget){const S=this.getClosestProjectingParent();S&&S.layout?(this.relativeParent=S,this.relativeTarget=Za(),this.relativeTargetOrigin=Za(),$1(this.relativeTargetOrigin,this.layout.layoutBox,S.layout.layoutBox),Fu(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Za(),this.targetWithTransforms=Za()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?Rhe(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Fu(this.target,this.layout.layoutBox),uz(this.target,this.targetDelta)):Fu(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const S=this.getClosestProjectingParent();S&&Boolean(S.resumingFrom)===Boolean(this.resumingFrom)&&!S.options.layoutScroll&&S.target?(this.relativeParent=S,this.relativeTarget=Za(),this.relativeTargetOrigin=Za(),$1(this.relativeTargetOrigin,this.target,S.target),Fu(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Sv.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||l5(this.parent.latestValues)||oz(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),c=Boolean(this.resumingFrom)||this!==l;let d=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),d)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;Fu(this.layoutCorrected,this.layout.layoutBox),Ghe(this.layoutCorrected,this.treeScale,this.path,c);const{target:S}=l;if(!S)return;this.projectionDelta||(this.projectionDelta=eS(),this.projectionDeltaWithTransform=eS());const w=this.treeScale.x,C=this.treeScale.y,k=this.projectionTransform;J1(this.projectionDelta,this.layoutCorrected,S,this.latestValues),this.projectionTransform=Oz(this.projectionDelta,this.treeScale),(this.projectionTransform!==k||this.treeScale.x!==w||this.treeScale.y!==C)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S)),Sv.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(o,l=!1){const c=this.snapshot,d=c?c.latestValues:{},p={...this.latestValues},g=eS();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const S=Za(),w=c?c.source:void 0,C=this.layout?this.layout.source:void 0,k=w!==C,P=this.getStack(),D=!P||P.members.length<=1,M=Boolean(k&&!D&&this.options.crossfade===!0&&!this.path.some(Dpe));this.animationProgress=0;let R;this.mixTargetDelta=L=>{const z=L/1e3;Nz(g.x,o.x,z),Nz(g.y,o.y,z),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&($1(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Ope(this.relativeTarget,this.relativeTargetOrigin,S,z),R&&d5(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=Za()),Fu(R,this.relativeTarget)),k&&(this.animationValues=p,upe(p,d,this.latestValues,z,M,D)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Dp.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ps.update(()=>{F1.hasAnimatedSinceResize=!0,this.currentAnimation=spe(0,Mz,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Mz),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:p}=o;if(!(!l||!c||!d)){if(this!==o&&this.layout&&d&&Bz(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||Za();const g=$l(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+g;const S=$l(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+S}Fu(l,c),R0(l,p),J1(this.projectionDeltaWithTransform,this.layoutCorrected,l,p)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new mpe),this.sharedNodes.get(o).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(l=!0),!l)return;const d={};for(let p=0;p<Dz.length;p++){const g="rotate"+Dz[p];c[g]&&(d[g]=c[g],o.setStaticValue(g,0))}o.render();for(const p in d)o.setStaticValue(p,d[p]);o.scheduleRender()}getProjectionStyles(o={}){var l,c;const d={};if(!this.instance||this.isSVG)return d;if(this.isVisible)d.visibility="";else return{visibility:"hidden"};const p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=SC(o.pointerEvents)||"",d.transform=p?p(this.latestValues,""):"none",d;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const k={};return this.options.layoutId&&(k.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,k.pointerEvents=SC(o.pointerEvents)||""),this.hasProjected&&!bv(this.latestValues)&&(k.transform=p?p({},""):"none",this.hasProjected=!1),k}const S=g.animationValues||g.latestValues;this.applyTransformsToTarget(),d.transform=Oz(this.projectionDeltaWithTransform,this.treeScale,S),p&&(d.transform=p(S,d.transform));const{x:w,y:C}=this.projectionDelta;d.transformOrigin=`${w.origin*100}% ${C.origin*100}% 0`,g.animationValues?d.opacity=g===this?(c=(l=S.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:S.opacityExit:d.opacity=g===this?S.opacity!==void 0?S.opacity:"":S.opacityExit!==void 0?S.opacityExit:0;for(const k in mC){if(S[k]===void 0)continue;const{correct:P,applyTo:D}=mC[k],M=d.transform==="none"?S[k]:P(S[k],g);if(D){const R=D.length;for(let L=0;L<R;L++)d[D[L]]=M}else d[k]=M}return this.options.layoutId&&(d.pointerEvents=g===this?SC(o.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Iz),this.root.sharedNodes.clear()}}}function Spe(e){e.updateLayout()}function xpe(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;a==="size"?Bd(g=>{const S=o?n.measuredBox[g]:n.layoutBox[g],w=$l(S);S.min=r[g].min,S.max=S.min+w}):Bz(a,n.layoutBox,r)&&Bd(g=>{const S=o?n.measuredBox[g]:n.layoutBox[g],w=$l(r[g]);S.max=S.min+w});const l=eS();J1(l,r,n.layoutBox);const c=eS();o?J1(c,e.applyTransform(i,!0),n.measuredBox):J1(c,r,n.layoutBox);const d=!Pz(l);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:S,layout:w}=g;if(S&&w){const C=Za();$1(C,n.layoutBox,S.layoutBox);const k=Za();$1(k,r,w.layoutBox),d5(C,k)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=k,e.relativeTargetOrigin=C,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function wpe(e){Sv.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Cpe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Epe(e){e.clearSnapshot()}function Iz(e){e.clearMeasurements()}function _pe(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Rz(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Tpe(e){e.resolveTargetDelta()}function kpe(e){e.calcProjection()}function Ppe(e){e.resetRotation()}function Ape(e){e.removeLeadSnapshot()}function Nz(e,t,n){e.translate=ua(t.translate,0,n),e.scale=ua(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Lz(e,t,n,r){e.min=ua(t.min,n.min,r),e.max=ua(t.max,n.max,r)}function Ope(e,t,n,r){Lz(e.x,t.x,n.x,r),Lz(e.y,t.y,n.y,r)}function Dpe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Mpe={duration:.45,ease:[.4,0,.1,1]};function jpe(e,t){let n=e.root;for(let a=e.path.length-1;a>=0;a--)if(Boolean(e.path[a].instance)){n=e.path[a];break}const i=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function zz(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Ipe(e){zz(e.x),zz(e.y)}function Bz(e,t,n){return e==="position"||e==="preserve-aspect"&&!a5(Az(t),Az(n),.2)}const Rpe=jz({attachResizeListener:(e,t)=>sh(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),f5={current:void 0},Fz=jz({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!f5.current){const e=new Rpe(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),f5.current=e}return f5.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),Npe={pan:{Feature:Jhe},drag:{Feature:Zhe,ProjectionNode:Fz,MeasureLayout:gz}},Lpe=new Set(["width","height","top","left","right","bottom","x","y"]),Uz=e=>Lpe.has(e),zpe=e=>Object.keys(e).some(Uz),DC=e=>e===vv||e===kn,Vz=(e,t)=>parseFloat(e.split(", ")[t]),Hz=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Vz(i[1],t);{const a=r.match(/^matrix\((.+)\)$/);return a?Vz(a[1],e):0}},Bpe=new Set(["x","y","z"]),Fpe=vC.filter(e=>!Bpe.has(e));function Upe(e){const t=[];return Fpe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const Gz={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Hz(4,13),y:Hz(5,14)},Vpe=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,a=getComputedStyle(i),{display:o}=a,l={};o==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(d=>{l[d]=Gz[d](r,a)}),t.render();const c=t.measureViewportBox();return n.forEach(d=>{const p=t.getValue(d);p&&p.jump(l[d]),e[d]=Gz[d](c,a)}),e},Hpe=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(Uz);let a=[],o=!1;const l=[];if(i.forEach(c=>{const d=e.getValue(c);if(!e.hasValue(c))return;let p=n[c],g=K1(p);const S=t[c];let w;if(bC(S)){const C=S.length,k=S[0]===null?1:0;p=S[k],g=K1(p);for(let P=k;P<C;P++)w?Nc(K1(S[P])===w,"All keyframes must be of the same type"):(w=K1(S[P]),Nc(w===g||DC(g)&&DC(w),"Keyframes must be of the same dimension as the current value"))}else w=K1(S);if(g!==w)if(DC(g)&&DC(w)){const C=d.get();typeof C=="string"&&d.set(parseFloat(C)),typeof S=="string"?t[c]=parseFloat(S):Array.isArray(S)&&w===kn&&(t[c]=S.map(parseFloat))}else g!=null&&g.transform&&(w!=null&&w.transform)&&(p===0||S===0)?p===0?d.set(w.transform(p)):t[c]=g.transform(S):(o||(a=Upe(e),o=!0),l.push(c),r[c]=r[c]!==void 0?r[c]:t[c],d.jump(S))}),l.length){const c=l.indexOf("height")>=0?window.pageYOffset:null,d=Vpe(t,e,l);return a.length&&a.forEach(([p,g])=>{e.getValue(p).set(g)}),e.render(),dC&&c!==null&&window.scrollTo({top:c}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Gpe(e,t,n,r){return zpe(t)?Hpe(e,t,n,r):{target:t,transitionEnd:r}}const Wpe=(e,t,n,r)=>{const i=rpe(e,t,r);return t=i.target,r=i.transitionEnd,Gpe(e,t,n,r)},h5={current:null},Wz={current:!1};function qpe(){if(Wz.current=!0,!!dC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>h5.current=e.matches;e.addListener(t),t()}else h5.current=!1}const qz=new Set;function p5(e,t,n){e||qz.has(t)||(console.warn(t),n&&console.warn(n),qz.add(t))}function Ype(e,t,n){const{willChange:r}=t;for(const i in t){const a=t[i],o=n[i];if(bl(a))e.addValue(i,a),_C(r)&&r.add(i),process.env.NODE_ENV==="development"&&p5(a.version==="9.1.7",`Attempting to mix Framer Motion versions ${a.version} with 9.1.7 may not work as expected.`);else if(bl(o))e.addValue(i,j0(a,{owner:e})),_C(r)&&r.remove(i);else if(o!==a)if(e.hasValue(i)){const l=e.getValue(i);!l.hasAnimated&&l.set(a)}else{const l=e.getStaticValue(i);e.addValue(i,j0(l!==void 0?l:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Yz=Object.keys(B1),Kpe=Yz.length,Kz=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Xpe=hP.length;class Qpe{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>ps.render(this.render,!1,!0);const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=pC(n),this.isVariantNode=L8(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(n,{});for(const g in p){const S=p[g];l[g]!==void 0&&bl(S)&&(S.set(l[g],!1),_C(d)&&d.add(g))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Wz.current||qpe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:h5.current,process.env.NODE_ENV!=="production"&&p5(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Dp.update(this.notifyUpdate),Dp.render(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=mv.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&ps.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),a()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,a,o){let l,c;if(process.env.NODE_ENV!=="production"&&i&&r){const d="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?X1(!1,d):Nc(!1,d)}for(let d=0;d<Kpe;d++){const p=Yz[d],{isEnabled:g,Feature:S,ProjectionNode:w,MeasureLayout:C}=B1[p];w&&(l=w),g(n)&&(!this.features[p]&&S&&(this.features[p]=new S(this)),C&&(c=C))}if(!this.projection&&l){this.projection=new l(a,this.latestValues,this.parent&&this.parent.projection);const{layoutId:d,layout:p,drag:g,dragConstraints:S,layoutScroll:w,layoutRoot:C}=n;this.projection.setOptions({layoutId:d,layout:p,alwaysMeasureLayout:Boolean(g)||S&&D0(S),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof p=="string"?p:"both",initialPromotionConfig:o,layoutScroll:w,layoutRoot:C})}return c}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update(this.props,this.prevProps):(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Za()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Kz.length;r++){const i=Kz[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a=t["on"+i];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Ype(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<Xpe;r++){const i=hP[r],a=this.props[i];(z1(a)||a===!1)&&(n[i]=a)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=j0(n,{owner:this}),this.addValue(t,r)),r}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=_P(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!bl(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new IP),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Xz extends Qpe{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},a){let o=xfe(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),o&&(o=i(o))),a){bfe(this,r,o);const l=Wpe(this,r,o,n);n=l.transitionEnd,r=l.target}return{transition:t,transitionEnd:n,...r}}}function Zpe(e){return window.getComputedStyle(e)}class Jpe extends Xz{readValueFromInstance(t,n){if(mv.has(n)){const r=FP(n);return r&&r.default||0}else{const r=Zpe(t),i=(H8(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return fz(t,n)}build(t,n,r,i){bP(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return EP(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;bl(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Z8(t,n,r,i)}}class $pe extends Xz{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(mv.has(n)){const r=FP(n);return r&&r.default||0}return n=J8.has(n)?n:CP(n),t.getAttribute(n)}measureInstanceViewportBox(){return Za()}scrapeMotionValuesFromProps(t,n){return e9(t,n)}build(t,n,r,i){xP(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){$8(t,n,r,i)}mount(t){this.isSVGTag=wP(t.tagName),super.mount(t)}}const eme=(e,t)=>vP(e)?new $pe(t,{enableHardwareAcceleration:!1}):new Jpe(t,{enableHardwareAcceleration:!0}),tme={...Dhe,...Kde,...Npe,...{layout:{ProjectionNode:Fz,MeasureLayout:gz}}},Uu=sde((e,t)=>Rde(e,t,tme,eme));function Qz(){const e=A.useRef(!1);return fC(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function nme(){const e=Qz(),[t,n]=A.useState(0),r=A.useCallback(()=>{e.current&&n(t+1)},[t]);return[A.useCallback(()=>ps.postRender(r),[r]),t]}class rme extends vt.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function ime({children:e,isPresent:t}){const n=A.useId(),r=A.useRef(null),i=A.useRef({width:0,height:0,top:0,left:0});return A.useInsertionEffect(()=>{const{width:a,height:o,top:l,left:c}=i.current;if(t||!r.current||!a||!o)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
|
||
[data-motion-pop-id="${n}"] {
|
||
position: absolute !important;
|
||
width: ${a}px !important;
|
||
height: ${o}px !important;
|
||
top: ${l}px !important;
|
||
left: ${c}px !important;
|
||
}
|
||
`),()=>{document.head.removeChild(d)}},[t]),vt.createElement(rme,{isPresent:t,childRef:r,sizeRef:i},vt.cloneElement(e,{ref:r}))}const m5=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o})=>{const l=pP(ame),c=A.useId(),d=A.useMemo(()=>({id:c,initial:t,isPresent:n,custom:i,onExitComplete:p=>{l.set(p,!0);for(const g of l.values())if(!g)return;r&&r()},register:p=>(l.set(p,!1),()=>l.delete(p))}),a?void 0:[n]);return A.useMemo(()=>{l.forEach((p,g)=>l.set(g,!1))},[n]),vt.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=vt.createElement(ime,{isPresent:n},e)),vt.createElement(L1.Provider,{value:d},e)};function ame(){return new Map}function ome(e){return A.useEffect(()=>()=>e(),[])}const N0=e=>e.key||"";function sme(e,t){e.forEach(n=>{const r=N0(n);t.set(r,n)})}function lme(e){const t=[];return A.Children.forEach(e,n=>{A.isValidElement(n)&&t.push(n)}),t}const ch=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:o="sync"})=>{i&&(o="wait",process.env.NODE_ENV!=="production"&&p5(!1,"Replace exitBeforeEnter with mode='wait'"));let[l]=nme();const c=A.useContext(mP).forceRender;c&&(l=c);const d=Qz(),p=lme(e);let g=p;const S=new Set,w=A.useRef(g),C=A.useRef(new Map).current,k=A.useRef(!0);if(fC(()=>{k.current=!1,sme(p,C),w.current=g}),ome(()=>{k.current=!0,C.clear(),S.clear()}),k.current)return vt.createElement(vt.Fragment,null,g.map(R=>vt.createElement(m5,{key:N0(R),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:a,mode:o},R)));g=[...g];const P=w.current.map(N0),D=p.map(N0),M=P.length;for(let R=0;R<M;R++){const L=P[R];D.indexOf(L)===-1&&S.add(L)}return o==="wait"&&S.size&&(g=[]),S.forEach(R=>{if(D.indexOf(R)!==-1)return;const L=C.get(R);if(!L)return;const z=P.indexOf(R),U=()=>{C.delete(R),S.delete(R);const V=w.current.findIndex(Y=>Y.key===R);if(w.current.splice(V,1),!S.size){if(w.current=p,d.current===!1)return;l(),r&&r()}};g.splice(z,0,vt.createElement(m5,{key:N0(L),isPresent:!1,onExitComplete:U,custom:t,presenceAffectsLayout:a,mode:o},L))}),g=g.map(R=>{const L=R.key;return S.has(L)?R:vt.createElement(m5,{key:N0(R),isPresent:!0,presenceAffectsLayout:a,mode:o},R)}),process.env.NODE_ENV!=="production"&&o==="wait"&&g.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),vt.createElement(vt.Fragment,null,S.size?g:g.map(R=>A.cloneElement(R)))};var ume={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Zz=A.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:a=!1,position:o="bottom",duration:l=5e3,containerStyle:c,motionVariants:d=ume,toastSpacing:p="0.5rem"}=e,[g,S]=A.useState(l),w=$he();oh(()=>{w||r==null||r()},[w]),oh(()=>{S(l)},[l]);const C=()=>S(null),k=()=>S(l),P=()=>{w&&i()};A.useEffect(()=>{w&&a&&i()},[w,a,i]),Xce(P,g);const D=A.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:p,...c}),[c,p]),M=A.useMemo(()=>Yce(o),[o]);return v.jsx(Uu.li,{layout:!0,className:"chakra-toast",variants:d,initial:"initial",animate:"animate",exit:"exit",onHoverStart:C,onHoverEnd:k,custom:{position:o},style:M,children:v.jsx(dt.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:D,children:Ru(n,{id:t,onClose:P})})})});Zz.displayName="ToastComponent";function cme(e,t){var n;const r=e??"bottom",a={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return(n=a==null?void 0:a[t])!=null?n:r}var Jz={path:v.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[v.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),v.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),v.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Pa=Et((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:a=!1,children:o,className:l,__css:c,...d}=e,p=sn("chakra-icon",l),g=zu("Icon",e),S={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...c,...g},w={ref:t,focusable:a,className:p,__css:S},C=r??Jz.viewBox;if(n&&typeof n!="string")return v.jsx(dt.svg,{as:n,...w,...d});const k=o??Jz.path;return v.jsx(dt.svg,{verticalAlign:"middle",viewBox:C,...w,...d,children:k})});Pa.displayName="Icon";function v5(e){const{viewBox:t="0 0 24 24",d:n,displayName:r,defaultProps:i={}}=e,a=A.Children.toArray(e.path),o=Et((l,c)=>v.jsx(Pa,{ref:c,viewBox:t,...i,...l,children:a.length?a:v.jsx("path",{fill:"currentColor",d:n})}));return o.displayName=r,o}function dme(e){return v.jsx(Pa,{viewBox:"0 0 24 24",...e,children:v.jsx("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 fme(e){return v.jsx(Pa,{viewBox:"0 0 24 24",...e,children:v.jsx("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 $z(e){return v.jsx(Pa,{viewBox:"0 0 24 24",...e,children:v.jsx("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 hme=wp({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),L0=Et((e,t)=>{const n=zu("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:a="0.45s",emptyColor:o="transparent",className:l,...c}=Si(e),d=sn("chakra-spinner",l),p={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:o,borderLeftColor:o,animation:`${hme} ${a} linear infinite`,...n};return v.jsx(dt.div,{ref:t,__css:p,className:d,...c,children:r&&v.jsx(dt.span,{srOnly:!0,children:r})})});L0.displayName="Spinner";var[pme,mme]=Kr({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[vme,g5]=Kr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),e7={info:{icon:fme,colorScheme:"blue"},warning:{icon:$z,colorScheme:"orange"},success:{icon:dme,colorScheme:"green"},error:{icon:$z,colorScheme:"red"},loading:{icon:L0,colorScheme:"blue"}};function gme(e){return e7[e].colorScheme}function yme(e){return e7[e].icon}var t7=Et(function(t,n){const i={display:"inline",...g5().description};return v.jsx(dt.div,{ref:n,...t,className:sn("chakra-alert__desc",t.className),__css:i})});t7.displayName="AlertDescription";function n7(e){const{status:t}=mme(),n=yme(t),r=g5(),i=t==="loading"?r.spinner:r.icon;return v.jsx(dt.span,{display:"inherit",...e,className:sn("chakra-alert__icon",e.className),__css:i,children:e.children||v.jsx(n,{h:"100%",w:"100%"})})}n7.displayName="AlertIcon";var r7=Et(function(t,n){const r=g5();return v.jsx(dt.div,{ref:n,...t,className:sn("chakra-alert__title",t.className),__css:r.title})});r7.displayName="AlertTitle";var i7=Et(function(t,n){var r;const{status:i="info",addRole:a=!0,...o}=Si(t),l=(r=t.colorScheme)!=null?r:gme(i),c=Yo("Alert",{...t,colorScheme:l}),d={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...c.container};return v.jsx(pme,{value:{status:i},children:v.jsx(vme,{value:c,children:v.jsx(dt.div,{role:a?"alert":void 0,ref:n,...o,className:sn("chakra-alert",t.className),__css:d})})})});i7.displayName="Alert";function bme(e){return v.jsx(Pa,{focusable:"false","aria-hidden":!0,...e,children:v.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var y5=Et(function(t,n){const r=zu("CloseButton",t),{children:i,isDisabled:a,__css:o,...l}=Si(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return v.jsx(dt.button,{type:"button","aria-label":"Close",ref:n,disabled:a,__css:{...c,...r,...o},...l,children:i||v.jsx(bme,{width:"1em",height:"1em"})})});y5.displayName="CloseButton";var Sme={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Fd=xme(Sme);function xme(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(a=>a())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,a)=>{r(o=>({...o,[a]:o[a].filter(l=>l.id!=i)}))},notify:(i,a)=>{const o=wme(i,a),{position:l,id:c}=o;return r(d=>{var p,g;const w=l.includes("top")?[o,...(p=d[l])!=null?p:[]]:[...(g=d[l])!=null?g:[],o];return{...d,[l]:w}}),c},update:(i,a)=>{i&&r(o=>{const l={...o},{position:c,index:d}=j8(l,i);return c&&d!==-1&&(l[c][d]={...l[c][d],...a,message:o7(a)}),l})},closeAll:({positions:i}={})=>{r(a=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,d)=>(c[d]=a[d].map(p=>({...p,requestClose:!0})),c),{...a}))},close:i=>{r(a=>{const o=I8(a,i);return o?{...a,[o]:a[o].map(l=>l.id==i?{...l,requestClose:!0}:l)}:a})},isActive:i=>Boolean(j8(Fd.getState(),i).position)}}var a7=0;function wme(e,t={}){var n,r;a7+=1;const i=(n=t.id)!=null?n:a7,a=(r=t.position)!=null?r:"bottom";return{id:i,message:e,position:a,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Fd.removeToast(String(i),a),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var Cme=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:a,onClose:o,description:l,icon:c}=e,d=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return v.jsxs(i7,{addRole:!1,status:t,variant:n,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",children:[v.jsx(n7,{children:c}),v.jsxs(dt.div,{flex:"1",maxWidth:"100%",children:[i&&v.jsx(r7,{id:d==null?void 0:d.title,children:i}),l&&v.jsx(t7,{id:d==null?void 0:d.description,display:"block",children:l})]}),a&&v.jsx(y5,{size:"sm",onClick:o,position:"absolute",insetEnd:1,top:1})]})};function o7(e={}){const{render:t,toastComponent:n=Cme}=e;return i=>typeof t=="function"?t({...i,...e}):v.jsx(n,{...i,...e})}function Eme(e,t){const n=i=>{var a;return{...t,...i,position:cme((a=i==null?void 0:i.position)!=null?a:t==null?void 0:t.position,e)}},r=i=>{const a=n(i),o=o7(a);return Fd.notify(o,a)};return r.update=(i,a)=>{Fd.update(i,n(a))},r.promise=(i,a)=>{const o=r({...a.loading,status:"loading",duration:null});i.then(l=>r.update(o,{status:"success",duration:5e3,...Ru(a.success,l)})).catch(l=>r.update(o,{status:"error",duration:5e3,...Ru(a.error,l)}))},r.closeAll=Fd.closeAll,r.close=Fd.close,r.isActive=Fd.isActive,r}var[_me,Tme]=Kr({name:"ToastOptionsContext",strict:!1}),kme=e=>{const t=A.useSyncExternalStore(Fd.subscribe,Fd.getState,Fd.getState),{motionVariants:n,component:r=Zz,portalProps:i}=e,o=Object.keys(t).map(l=>{const c=t[l];return v.jsx("ul",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${l}`,style:Kce(l),children:v.jsx(ch,{initial:!1,children:c.map(d=>v.jsx(r,{motionVariants:n,...d},d.id))})},l)});return v.jsx($f,{...i,children:o})};function nS(e){const{theme:t}=oL(),n=Tme();return A.useMemo(()=>Eme(t.direction,{...n,...e}),[e,t.direction,n])}var Pme=e=>function({children:n,theme:r=e,toastOptions:i,...a}){return v.jsxs(Wce,{theme:r,...a,children:[v.jsx(_me,{value:i==null?void 0:i.defaultOptions,children:n}),v.jsx(kme,{...i})]})},Ame=Pme(v8),Ome=Object.defineProperty,Dme=(e,t,n)=>t in e?Ome(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Aa=(e,t,n)=>(Dme(e,typeof t!="symbol"?t+"":t,n),n);function s7(e){return e.sort((t,n)=>{const r=t.compareDocumentPosition(n);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}var Mme=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function l7(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function u7(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var b5=typeof window<"u"?A.useLayoutEffect:A.useEffect,MC=e=>e,jme=class{constructor(){Aa(this,"descendants",new Map),Aa(this,"register",e=>{if(e!=null)return Mme(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),Aa(this,"unregister",e=>{this.descendants.delete(e);const t=s7(Array.from(this.descendants.keys()));this.assignIndex(t)}),Aa(this,"destroy",()=>{this.descendants.clear()}),Aa(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),Aa(this,"count",()=>this.descendants.size),Aa(this,"enabledCount",()=>this.enabledValues().length),Aa(this,"values",()=>Array.from(this.descendants.values()).sort((t,n)=>t.index-n.index)),Aa(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),Aa(this,"item",e=>{if(this.count()!==0)return this.values()[e]}),Aa(this,"enabledItem",e=>{if(this.enabledCount()!==0)return this.enabledValues()[e]}),Aa(this,"first",()=>this.item(0)),Aa(this,"firstEnabled",()=>this.enabledItem(0)),Aa(this,"last",()=>this.item(this.descendants.size-1)),Aa(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),Aa(this,"indexOf",e=>{var t,n;return e&&(n=(t=this.descendants.get(e))==null?void 0:t.index)!=null?n:-1}),Aa(this,"enabledIndexOf",e=>e==null?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),Aa(this,"next",(e,t=!0)=>{const n=l7(e,this.count(),t);return this.item(n)}),Aa(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=l7(r,this.enabledCount(),t);return this.enabledItem(i)}),Aa(this,"prev",(e,t=!0)=>{const n=u7(e,this.count()-1,t);return this.item(n)}),Aa(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=this.enabledIndexOf(n.node),i=u7(r,this.enabledCount()-1,t);return this.enabledItem(i)}),Aa(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Array.from(this.descendants.keys()).concat(e),r=s7(n);t!=null&&t.disabled&&(t.disabled=!!t.disabled);const i={node:e,index:-1,...t};this.descendants.set(e,i),this.assignIndex(r)})}};function Ime(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function ti(...e){return t=>{e.forEach(n=>{Ime(n,t)})}}function Rme(...e){return A.useMemo(()=>ti(...e),e)}function Nme(){const e=A.useRef(new jme);return b5(()=>()=>e.current.destroy()),e.current}var[Lme,c7]=Kr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function zme(e){const t=c7(),[n,r]=A.useState(-1),i=A.useRef(null);b5(()=>()=>{i.current&&t.unregister(i.current)},[]),b5(()=>{if(!i.current)return;const o=Number(i.current.dataset.index);n!=o&&!Number.isNaN(o)&&r(o)});const a=MC(e?t.register(e):t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(i.current),register:ti(a,i)}}function S5(){return[MC(Lme),()=>MC(c7()),()=>Nme(),i=>zme(i)]}var[Bme,jC]=Kr({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[Fme,x5]=Kr({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[Ume,lRe,Vme,Hme]=S5(),z0=Et(function(t,n){const{getButtonProps:r}=x5(),i=r(t,n),o={display:"flex",alignItems:"center",width:"100%",outline:0,...jC().button};return v.jsx(dt.button,{...i,className:sn("chakra-accordion__button",t.className),__css:o})});z0.displayName="AccordionButton";function w5(e){const{value:t,defaultValue:n,onChange:r,shouldUpdate:i=(S,w)=>S!==w}=e,a=Ra(r),o=Ra(i),[l,c]=A.useState(n),d=t!==void 0,p=d?t:l,g=Ra(S=>{const C=typeof S=="function"?S(p):S;o(p,C)&&(d||c(C),a(C))},[d,a,p,o]);return[p,g]}function Gme(e){const{onChange:t,defaultIndex:n,index:r,allowMultiple:i,allowToggle:a,...o}=e;Yme(e),Kme(e);const l=Vme(),[c,d]=A.useState(-1);A.useEffect(()=>()=>{d(-1)},[]);const[p,g]=w5({value:r,defaultValue(){return i?n??[]:n??-1},onChange:t});return{index:p,setIndex:g,htmlProps:o,getAccordionItemProps:w=>{let C=!1;return w!==null&&(C=Array.isArray(p)?p.includes(w):p===w),{isOpen:C,onChange:P=>{if(w!==null)if(i&&Array.isArray(p)){const D=P?p.concat(w):p.filter(M=>M!==w);g(D)}else P?g(w):a&&g(-1)}}},focusedIndex:c,setFocusedIndex:d,descendants:l}}var[Wme,C5]=Kr({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function qme(e){const{isDisabled:t,isFocusable:n,id:r,...i}=e,{getAccordionItemProps:a,setFocusedIndex:o}=C5(),l=A.useRef(null),c=A.useId(),d=r??c,p=`accordion-button-${d}`,g=`accordion-panel-${d}`;Xme(e);const{register:S,index:w,descendants:C}=Hme({disabled:t&&!n}),{isOpen:k,onChange:P}=a(w===-1?null:w);Qme({isOpen:k,isDisabled:t});const D=()=>{P==null||P(!0)},M=()=>{P==null||P(!1)},R=A.useCallback(()=>{P==null||P(!k),o(w)},[w,o,k,P]),L=A.useCallback(Y=>{const $={ArrowDown:()=>{const K=C.nextEnabled(w);K==null||K.node.focus()},ArrowUp:()=>{const K=C.prevEnabled(w);K==null||K.node.focus()},Home:()=>{const K=C.firstEnabled();K==null||K.node.focus()},End:()=>{const K=C.lastEnabled();K==null||K.node.focus()}}[Y.key];$&&(Y.preventDefault(),$(Y))},[C,w]),z=A.useCallback(()=>{o(w)},[o,w]),U=A.useCallback(function(J={},$=null){return{...J,type:"button",ref:ti(S,l,$),id:p,disabled:!!t,"aria-expanded":!!k,"aria-controls":g,onClick:Qt(J.onClick,R),onFocus:Qt(J.onFocus,z),onKeyDown:Qt(J.onKeyDown,L)}},[p,t,k,R,z,L,g,S]),V=A.useCallback(function(J={},$=null){return{...J,ref:$,role:"region",id:g,"aria-labelledby":p,hidden:!k}},[p,k,g]);return{isOpen:k,isDisabled:t,isFocusable:n,onOpen:D,onClose:M,getButtonProps:U,getPanelProps:V,htmlProps:i}}function Yme(e){const t=e.index||e.defaultIndex,n=t!=null&&!Array.isArray(t)&&e.allowMultiple;b1({condition:!!n,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function Kme(e){b1({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function Xme(e){b1({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.
|
||
`})}function Qme(e){b1({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}function B0(e){const{isOpen:t,isDisabled:n}=x5(),{reduceMotion:r}=C5(),i=sn("chakra-accordion__icon",e.className),a=jC(),o={opacity:n?.4:1,transform:t?"rotate(-180deg)":void 0,transition:r?void 0:"transform 0.2s",transformOrigin:"center",...a.icon};return v.jsx(Pa,{viewBox:"0 0 24 24","aria-hidden":!0,className:i,__css:o,...e,children:v.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}B0.displayName="AccordionIcon";var F0=Et(function(t,n){const{children:r,className:i}=t,{htmlProps:a,...o}=qme(t),c={...jC().container,overflowAnchor:"none"},d=A.useMemo(()=>o,[o]);return v.jsx(Fme,{value:d,children:v.jsx(dt.div,{ref:n,...a,className:sn("chakra-accordion__item",i),__css:c,children:typeof r=="function"?r({isExpanded:!!o.isOpen,isDisabled:!!o.isDisabled}):r})})});F0.displayName="AccordionItem";var xv={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},rS={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function E5(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return rS.slideRight;case"left":return rS.slideLeft;case"bottom":return rS.slideDown;case"top":return rS.slideUp;default:return rS.slideRight}}var wv={enter:{duration:.2,ease:xv.easeOut},exit:{duration:.1,ease:xv.easeIn}},Lc={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},Zme=e=>e!=null&&parseInt(e.toString(),10)>0,d7={exit:{height:{duration:.2,ease:xv.ease},opacity:{duration:.3,ease:xv.ease}},enter:{height:{duration:.3,ease:xv.ease},opacity:{duration:.4,ease:xv.ease}}},Jme={exit:({animateOpacity:e,startingHeight:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{...e&&{opacity:Zme(t)?1:0},height:t,transitionEnd:r==null?void 0:r.exit,transition:(a=n==null?void 0:n.exit)!=null?a:Lc.exit(d7.exit,i)}},enter:({animateOpacity:e,endingHeight:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{...e&&{opacity:1},height:t,transitionEnd:r==null?void 0:r.enter,transition:(a=n==null?void 0:n.enter)!=null?a:Lc.enter(d7.enter,i)}}},f7=A.forwardRef((e,t)=>{const{in:n,unmountOnExit:r,animateOpacity:i=!0,startingHeight:a=0,endingHeight:o="auto",style:l,className:c,transition:d,transitionEnd:p,...g}=e,[S,w]=A.useState(!1);A.useEffect(()=>{const M=setTimeout(()=>{w(!0)});return()=>clearTimeout(M)},[]),b1({condition:Boolean(a>0&&r),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const C=parseFloat(a.toString())>0,k={startingHeight:a,endingHeight:o,animateOpacity:i,transition:S?d:{enter:{duration:0}},transitionEnd:{enter:p==null?void 0:p.enter,exit:r?p==null?void 0:p.exit:{...p==null?void 0:p.exit,display:C?"block":"none"}}},P=r?n:!0,D=n||r?"enter":"exit";return v.jsx(ch,{initial:!1,custom:k,children:P&&v.jsx(Uu.div,{ref:t,...g,className:sn("chakra-collapse",c),style:{overflow:"hidden",display:"block",...l},custom:k,variants:Jme,initial:r?"exit":!1,animate:D,exit:"exit"})})});f7.displayName="Collapse";var $me={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:Lc.enter(wv.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:Lc.exit(wv.exit,n),transitionEnd:t==null?void 0:t.exit}}},h7={initial:"exit",animate:"enter",exit:"exit",variants:$me},eve=A.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:a,transition:o,transitionEnd:l,delay:c,...d}=t,p=i||r?"enter":"exit",g=r?i&&r:!0,S={transition:o,transitionEnd:l,delay:c};return v.jsx(ch,{custom:S,children:g&&v.jsx(Uu.div,{ref:n,className:sn("chakra-fade",a),custom:S,...h7,animate:p,...d})})});eve.displayName="Fade";var tve={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(a=n==null?void 0:n.exit)!=null?a:Lc.exit(wv.exit,i)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:Lc.enter(wv.enter,n),transitionEnd:e==null?void 0:e.enter}}},p7={initial:"exit",animate:"enter",exit:"exit",variants:tve},nve=A.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:a=!0,initialScale:o=.95,className:l,transition:c,transitionEnd:d,delay:p,...g}=t,S=r?i&&r:!0,w=i||r?"enter":"exit",C={initialScale:o,reverse:a,transition:c,transitionEnd:d,delay:p};return v.jsx(ch,{custom:C,children:S&&v.jsx(Uu.div,{ref:n,className:sn("chakra-offset-slide",l),...p7,animate:w,custom:C,...g})})});nve.displayName="ScaleFade";var rve={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>{var a;return{opacity:0,x:e,y:t,transition:(a=n==null?void 0:n.exit)!=null?a:Lc.exit(wv.exit,i),transitionEnd:r==null?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:(r=e==null?void 0:e.enter)!=null?r:Lc.enter(wv.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:a})=>{var o;const l={x:t,y:e};return{opacity:0,transition:(o=n==null?void 0:n.exit)!=null?o:Lc.exit(wv.exit,a),...i?{...l,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...l,...r==null?void 0:r.exit}}}}},_5={initial:"initial",animate:"enter",exit:"exit",variants:rve},ive=A.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:a=!0,className:o,offsetX:l=0,offsetY:c=8,transition:d,transitionEnd:p,delay:g,...S}=t,w=r?i&&r:!0,C=i||r?"enter":"exit",k={offsetX:l,offsetY:c,reverse:a,transition:d,transitionEnd:p,delay:g};return v.jsx(ch,{custom:k,children:w&&v.jsx(Uu.div,{ref:n,className:sn("chakra-offset-slide",o),custom:k,..._5,animate:C,...S})})});ive.displayName="SlideFade";var m7={exit:{duration:.15,ease:xv.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},ave={exit:({direction:e,transition:t,transitionEnd:n,delay:r})=>{var i;const{exit:a}=E5({direction:e});return{...a,transition:(i=t==null?void 0:t.exit)!=null?i:Lc.exit(m7.exit,r),transitionEnd:n==null?void 0:n.exit}},enter:({direction:e,transitionEnd:t,transition:n,delay:r})=>{var i;const{enter:a}=E5({direction:e});return{...a,transition:(i=n==null?void 0:n.enter)!=null?i:Lc.enter(m7.enter,r),transitionEnd:t==null?void 0:t.enter}}},v7=A.forwardRef(function(t,n){const{direction:r="right",style:i,unmountOnExit:a,in:o,className:l,transition:c,transitionEnd:d,delay:p,motionProps:g,...S}=t,w=E5({direction:r}),C=Object.assign({position:"fixed"},w.position,i),k=a?o&&a:!0,P=o||a?"enter":"exit",D={transitionEnd:d,transition:c,direction:r,delay:p};return v.jsx(ch,{custom:D,children:k&&v.jsx(Uu.div,{...S,ref:n,initial:"exit",className:sn("chakra-slide",l),animate:P,exit:"exit",custom:D,variants:ave,style:C,...g})})});v7.displayName="Slide";var U0=Et(function(t,n){const{className:r,motionProps:i,...a}=t,{reduceMotion:o}=C5(),{getPanelProps:l,isOpen:c}=x5(),d=l(a,n),p=sn("chakra-accordion__panel",r),g=jC();o||delete d.hidden;const S=v.jsx(dt.div,{...d,__css:g.panel,className:p});return o?S:v.jsx(f7,{in:c,...i,children:S})});U0.displayName="AccordionPanel";var T5=Et(function({children:t,reduceMotion:n,...r},i){const a=Yo("Accordion",r),o=Si(r),{htmlProps:l,descendants:c,...d}=Gme(o),p=A.useMemo(()=>({...d,reduceMotion:!!n}),[d,n]);return v.jsx(Ume,{value:c,children:v.jsx(Wme,{value:p,children:v.jsx(Bme,{value:a,children:v.jsx(dt.div,{ref:i,...l,className:sn("chakra-accordion",r.className),__css:a.root,children:t})})})})});T5.displayName="Accordion";var k5=Et(function(t,n){const{htmlWidth:r,htmlHeight:i,alt:a,...o}=t;return v.jsx("img",{width:r,height:i,ref:n,alt:a,...o})});k5.displayName="NativeImage";function ove(e){const{loading:t,src:n,srcSet:r,onLoad:i,onError:a,crossOrigin:o,sizes:l,ignoreFallback:c}=e,[d,p]=A.useState("pending");A.useEffect(()=>{p(n?"loading":"pending")},[n]);const g=A.useRef(),S=A.useCallback(()=>{if(!n)return;w();const C=new Image;C.src=n,o&&(C.crossOrigin=o),r&&(C.srcset=r),l&&(C.sizes=l),t&&(C.loading=t),C.onload=k=>{w(),p("loaded"),i==null||i(k)},C.onerror=k=>{w(),p("failed"),a==null||a(k)},g.current=C},[n,o,r,l,i,a,t]),w=()=>{g.current&&(g.current.onload=null,g.current.onerror=null,g.current=null)};return jd(()=>{if(!c)return d==="loading"&&S(),()=>{w()}},[d,S,c]),c?"loaded":d}var sve=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function lve(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var iS=Et(function(t,n){const{fallbackSrc:r,fallback:i,src:a,srcSet:o,align:l,fit:c,loading:d,ignoreFallback:p,crossOrigin:g,fallbackStrategy:S="beforeLoadOrError",referrerPolicy:w,...C}=t,k=r!==void 0||i!==void 0,P=d!=null||p||!k,D=ove({...t,ignoreFallback:P}),M=sve(D,S),R={ref:n,objectFit:c,objectPosition:l,...P?C:lve(C,["onError","onLoad"])};return M?i||v.jsx(dt.img,{as:k5,className:"chakra-image__placeholder",src:r,...R}):v.jsx(dt.img,{as:k5,src:a,srcSet:o,crossOrigin:g,loading:d,referrerPolicy:w,className:"chakra-image",...R})});iS.displayName="Image";function P5(e){return A.Children.toArray(e).filter(t=>A.isValidElement(t))}var[uve,cve]=Kr({strict:!1,name:"ButtonGroupContext"}),dve={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},fve={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},jo=Et(function(t,n){const{size:r,colorScheme:i,variant:a,className:o,spacing:l="0.5rem",isAttached:c,isDisabled:d,orientation:p="horizontal",...g}=t,S=sn("chakra-button__group",o),w=A.useMemo(()=>({size:r,colorScheme:i,variant:a,isDisabled:d}),[r,i,a,d]);let C={display:"inline-flex",...c?dve[p]:fve[p](l)};const k=p==="vertical";return v.jsx(uve,{value:w,children:v.jsx(dt.div,{ref:n,role:"group",__css:C,className:S,"data-attached":c?"":void 0,"data-orientation":p,flexDir:k?"column":void 0,...g})})});jo.displayName="ButtonGroup";function hve(e){const[t,n]=A.useState(!e);return{ref:A.useCallback(a=>{a&&n(a.tagName==="BUTTON")},[]),type:t?"button":void 0}}function A5(e){const{children:t,className:n,...r}=e,i=A.isValidElement(t)?A.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,a=sn("chakra-button__icon",n);return v.jsx(dt.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:a,children:i})}A5.displayName="ButtonIcon";function IC(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=v.jsx(L0,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:o,...l}=e,c=sn("chakra-button__spinner",a),d=n==="start"?"marginEnd":"marginStart",p=A.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[d]:t?r:0,fontSize:"1em",lineHeight:"normal",...o}),[o,t,d,r]);return v.jsx(dt.div,{className:c,...l,__css:p,children:i})}IC.displayName="ButtonSpinner";var Cv=Et((e,t)=>{const n=cve(),r=zu("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:a,isActive:o,children:l,leftIcon:c,rightIcon:d,loadingText:p,iconSpacing:g="0.5rem",type:S,spinner:w,spinnerPlacement:C="start",className:k,as:P,...D}=Si(e),M=A.useMemo(()=>{const U={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:U}}},[r,n]),{ref:R,type:L}=hve(P),z={rightIcon:d,leftIcon:c,iconSpacing:g,children:l};return v.jsxs(dt.button,{ref:Rme(t,R),as:P,type:S??L,"data-active":Jn(o),"data-loading":Jn(a),__css:M,className:sn("chakra-button",k),...D,disabled:i||a,children:[a&&C==="start"&&v.jsx(IC,{className:"chakra-button__spinner--start",label:p,placement:"start",spacing:g,children:w}),a?p||v.jsx(dt.span,{opacity:0,children:v.jsx(g7,{...z})}):v.jsx(g7,{...z}),a&&C==="end"&&v.jsx(IC,{className:"chakra-button__spinner--end",label:p,placement:"end",spacing:g,children:w})]})});Cv.displayName="Button";function g7(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return v.jsxs(v.Fragment,{children:[t&&v.jsx(A5,{marginEnd:i,children:t}),r,n&&v.jsx(A5,{marginStart:i,children:n})]})}var Ip=Et((e,t)=>{const{icon:n,children:r,isRound:i,"aria-label":a,...o}=e,l=n||r,c=A.isValidElement(l)?A.cloneElement(l,{"aria-hidden":!0,focusable:!1}):null;return v.jsx(Cv,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":a,...o,children:c})});Ip.displayName="IconButton";var[uRe,pve]=Kr({name:"CheckboxGroupContext",strict:!1});function mve(e){return v.jsx(dt.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:v.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function vve(e){return v.jsx(dt.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:v.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function gve(e){const{isIndeterminate:t,isChecked:n,...r}=e,i=t?vve:mve;return n||t?v.jsx(dt.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:v.jsx(i,{...r})}):null}var[yve,y7]=Kr({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[bve,Ev]=Kr({strict:!1,name:"FormControlContext"});function Sve(e){const{id:t,isRequired:n,isInvalid:r,isDisabled:i,isReadOnly:a,...o}=e,l=A.useId(),c=t||`field-${l}`,d=`${c}-label`,p=`${c}-feedback`,g=`${c}-helptext`,[S,w]=A.useState(!1),[C,k]=A.useState(!1),[P,D]=A.useState(!1),M=A.useCallback((V={},Y=null)=>({id:g,...V,ref:ti(Y,J=>{J&&k(!0)})}),[g]),R=A.useCallback((V={},Y=null)=>{var J,$;return{...V,ref:Y,"data-focus":Jn(P),"data-disabled":Jn(i),"data-invalid":Jn(r),"data-readonly":Jn(a),id:(J=V.id)!=null?J:d,htmlFor:($=V.htmlFor)!=null?$:c}},[c,i,P,r,a,d]),L=A.useCallback((V={},Y=null)=>({id:p,...V,ref:ti(Y,J=>{J&&w(!0)}),"aria-live":"polite"}),[p]),z=A.useCallback((V={},Y=null)=>({...V,...o,ref:Y,role:"group"}),[o]),U=A.useCallback((V={},Y=null)=>({...V,ref:Y,role:"presentation","aria-hidden":!0,children:V.children||"*"}),[]);return{isRequired:!!n,isInvalid:!!r,isReadOnly:!!a,isDisabled:!!i,isFocused:!!P,onFocus:()=>D(!0),onBlur:()=>D(!1),hasFeedbackText:S,setHasFeedbackText:w,hasHelpText:C,setHasHelpText:k,id:c,labelId:d,feedbackId:p,helpTextId:g,htmlProps:o,getHelpTextProps:M,getErrorMessageProps:L,getRootProps:z,getLabelProps:R,getRequiredIndicatorProps:U}}var Or=Et(function(t,n){const r=Yo("Form",t),i=Si(t),{getRootProps:a,htmlProps:o,...l}=Sve(i),c=sn("chakra-form-control",t.className);return v.jsx(bve,{value:l,children:v.jsx(yve,{value:r,children:v.jsx(dt.div,{...a({},n),className:c,__css:r.container})})})});Or.displayName="FormControl";var Hs=Et(function(t,n){const r=Ev(),i=y7(),a=sn("chakra-form__helper-text",t.className);return v.jsx(dt.div,{...r==null?void 0:r.getHelpTextProps(t,n),__css:i.helperText,className:a})});Hs.displayName="FormHelperText";var[xve,wve]=Kr({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),Gs=Et((e,t)=>{const n=Yo("FormError",e),r=Si(e),i=Ev();return i!=null&&i.isInvalid?v.jsx(xve,{value:n,children:v.jsx(dt.div,{...i==null?void 0:i.getErrorMessageProps(r,t),className:sn("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...n.text}})}):null});Gs.displayName="FormErrorMessage";var Cve=Et((e,t)=>{const n=wve(),r=Ev();if(!(r!=null&&r.isInvalid))return null;const i=sn("chakra-form__error-icon",e.className);return v.jsx(Pa,{ref:t,"aria-hidden":!0,...e,__css:n.icon,className:i,children:v.jsx("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"})})});Cve.displayName="FormErrorIcon";var Qr=Et(function(t,n){var r;const i=zu("FormLabel",t),a=Si(t),{className:o,children:l,requiredIndicator:c=v.jsx(b7,{}),optionalIndicator:d=null,...p}=a,g=Ev(),S=(r=g==null?void 0:g.getLabelProps(p,n))!=null?r:{ref:n,...p};return v.jsxs(dt.label,{...S,className:sn("chakra-form__label",a.className),__css:{display:"block",textAlign:"start",...i},children:[l,g!=null&&g.isRequired?c:d]})});Qr.displayName="FormLabel";var b7=Et(function(t,n){const r=Ev(),i=y7();if(!(r!=null&&r.isRequired))return null;const a=sn("chakra-form__required-indicator",t.className);return v.jsx(dt.span,{...r==null?void 0:r.getRequiredIndicatorProps(t,n),__css:i.requiredIndicator,className:a})});b7.displayName="RequiredIndicator";function O5(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:i,...a}=D5(e);return{...a,disabled:t,readOnly:r,required:i,"aria-invalid":eh(n),"aria-required":eh(i),"aria-readonly":eh(r)}}function D5(e){var t,n,r;const i=Ev(),{id:a,disabled:o,readOnly:l,required:c,isRequired:d,isInvalid:p,isReadOnly:g,isDisabled:S,onFocus:w,onBlur:C,...k}=e,P=e["aria-describedby"]?[e["aria-describedby"]]:[];return i!=null&&i.hasFeedbackText&&(i!=null&&i.isInvalid)&&P.push(i.feedbackId),i!=null&&i.hasHelpText&&P.push(i.helpTextId),{...k,"aria-describedby":P.join(" ")||void 0,id:a??(i==null?void 0:i.id),isDisabled:(t=o??S)!=null?t:i==null?void 0:i.isDisabled,isReadOnly:(n=l??g)!=null?n:i==null?void 0:i.isReadOnly,isRequired:(r=c??d)!=null?r:i==null?void 0:i.isRequired,isInvalid:p??(i==null?void 0:i.isInvalid),onFocus:Qt(i==null?void 0:i.onFocus,w),onBlur:Qt(i==null?void 0:i.onBlur,C)}}var M5={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},S7=dt("span",{baseStyle:M5});S7.displayName="VisuallyHidden";var Eve=dt("input",{baseStyle:M5});Eve.displayName="VisuallyHiddenInput";var x7=!1,aS=null,_v=!1,j5=!1,I5=new Set;function R5(e,t){I5.forEach(n=>n(e,t))}var _ve=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function Tve(e){return!(e.metaKey||!_ve&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function w7(e){_v=!0,Tve(e)&&(aS="keyboard",R5("keyboard",e))}function V0(e){if(aS="pointer",e.type==="mousedown"||e.type==="pointerdown"){_v=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let n=!1;try{n=t.matches(":focus-visible")}catch{}if(n)return;R5("pointer",e)}}function kve(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function Pve(e){kve(e)&&(_v=!0,aS="virtual")}function Ave(e){e.target===window||e.target===document||(!_v&&!j5&&(aS="virtual",R5("virtual",e)),_v=!1,j5=!1)}function Ove(){_v=!1,j5=!0}function C7(){return aS!=="pointer"}function Dve(){if(typeof window>"u"||x7)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...n){_v=!0,e.apply(this,n)},document.addEventListener("keydown",w7,!0),document.addEventListener("keyup",w7,!0),document.addEventListener("click",Pve,!0),window.addEventListener("focus",Ave,!0),window.addEventListener("blur",Ove,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",V0,!0),document.addEventListener("pointermove",V0,!0),document.addEventListener("pointerup",V0,!0)):(document.addEventListener("mousedown",V0,!0),document.addEventListener("mousemove",V0,!0),document.addEventListener("mouseup",V0,!0)),x7=!0}function E7(e){Dve(),e(C7());const t=()=>e(C7());return I5.add(t),()=>{I5.delete(t)}}function Mve(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function _7(e={}){const t=D5(e),{isDisabled:n,isReadOnly:r,isRequired:i,isInvalid:a,id:o,onBlur:l,onFocus:c,"aria-describedby":d}=t,{defaultChecked:p,isChecked:g,isFocusable:S,onChange:w,isIndeterminate:C,name:k,value:P,tabIndex:D=void 0,"aria-label":M,"aria-labelledby":R,"aria-invalid":L,...z}=e,U=Mve(z,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),V=Ra(w),Y=Ra(l),J=Ra(c),[$,K]=A.useState(!1),[fe,X]=A.useState(!1),[G,te]=A.useState(!1),[re,oe]=A.useState(!1);A.useEffect(()=>E7(K),[]);const ie=A.useRef(null),[le,ee]=A.useState(!0),[de,Fe]=A.useState(!!p),Pe=g!==void 0,Oe=Pe?g:de,Ie=A.useCallback(Ae=>{if(r||n){Ae.preventDefault();return}Pe||Fe(Oe?Ae.target.checked:C?!0:Ae.target.checked),V==null||V(Ae)},[r,n,Oe,Pe,C,V]);jd(()=>{ie.current&&(ie.current.indeterminate=Boolean(C))},[C]),oh(()=>{n&&X(!1)},[n,X]),jd(()=>{const Ae=ie.current;Ae!=null&&Ae.form&&(Ae.form.onreset=()=>{Fe(!!p)})},[]);const De=n&&!S,$e=A.useCallback(Ae=>{Ae.key===" "&&oe(!0)},[oe]),it=A.useCallback(Ae=>{Ae.key===" "&&oe(!1)},[oe]);jd(()=>{if(!ie.current)return;ie.current.checked!==Oe&&Fe(ie.current.checked)},[ie.current]);const mt=A.useCallback((Ae={},xt=null)=>{const ln=Wt=>{fe&&Wt.preventDefault(),oe(!0)};return{...Ae,ref:xt,"data-active":Jn(re),"data-hover":Jn(G),"data-checked":Jn(Oe),"data-focus":Jn(fe),"data-focus-visible":Jn(fe&&$),"data-indeterminate":Jn(C),"data-disabled":Jn(n),"data-invalid":Jn(a),"data-readonly":Jn(r),"aria-hidden":!0,onMouseDown:Qt(Ae.onMouseDown,ln),onMouseUp:Qt(Ae.onMouseUp,()=>oe(!1)),onMouseEnter:Qt(Ae.onMouseEnter,()=>te(!0)),onMouseLeave:Qt(Ae.onMouseLeave,()=>te(!1))}},[re,Oe,n,fe,$,G,C,a,r]),bt=A.useCallback((Ae={},xt=null)=>({...U,...Ae,ref:ti(xt,ln=>{ln&&ee(ln.tagName==="LABEL")}),onClick:Qt(Ae.onClick,()=>{var ln;le||((ln=ie.current)==null||ln.click(),requestAnimationFrame(()=>{var Wt;(Wt=ie.current)==null||Wt.focus()}))}),"data-disabled":Jn(n),"data-checked":Jn(Oe),"data-invalid":Jn(a)}),[U,n,Oe,a,le]),qe=A.useCallback((Ae={},xt=null)=>({...Ae,ref:ti(ie,xt),type:"checkbox",name:k,value:P,id:o,tabIndex:D,onChange:Qt(Ae.onChange,Ie),onBlur:Qt(Ae.onBlur,Y,()=>X(!1)),onFocus:Qt(Ae.onFocus,J,()=>X(!0)),onKeyDown:Qt(Ae.onKeyDown,$e),onKeyUp:Qt(Ae.onKeyUp,it),required:i,checked:Oe,disabled:De,readOnly:r,"aria-label":M,"aria-labelledby":R,"aria-invalid":L?Boolean(L):a,"aria-describedby":d,"aria-disabled":n,style:M5}),[k,P,o,Ie,Y,J,$e,it,i,Oe,De,r,M,R,L,a,d,n,D]),Ce=A.useCallback((Ae={},xt=null)=>({...Ae,ref:xt,onMouseDown:Qt(Ae.onMouseDown,T7),onTouchStart:Qt(Ae.onTouchStart,T7),"data-disabled":Jn(n),"data-checked":Jn(Oe),"data-invalid":Jn(a)}),[Oe,n,a]);return{state:{isInvalid:a,isFocused:fe,isChecked:Oe,isActive:re,isHovered:G,isIndeterminate:C,isDisabled:n,isReadOnly:r,isRequired:i},getRootProps:bt,getCheckboxProps:mt,getInputProps:qe,getLabelProps:Ce,htmlProps:U}}function T7(e){e.preventDefault(),e.stopPropagation()}var jve={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},Ive={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},Rve=wp({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),Nve=wp({from:{opacity:0},to:{opacity:1}}),Lve=wp({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),k7=Et(function(t,n){const r=pve(),i={...r,...t},a=Yo("Checkbox",i),o=Si(t),{spacing:l="0.5rem",className:c,children:d,iconColor:p,iconSize:g,icon:S=v.jsx(gve,{}),isChecked:w,isDisabled:C=r==null?void 0:r.isDisabled,onChange:k,inputProps:P,...D}=o;let M=w;r!=null&&r.value&&o.value&&(M=r.value.includes(o.value));let R=k;r!=null&&r.onChange&&o.value&&(R=zw(r.onChange,k));const{state:L,getInputProps:z,getCheckboxProps:U,getLabelProps:V,getRootProps:Y}=_7({...D,isDisabled:C,isChecked:M,onChange:R}),J=A.useMemo(()=>({animation:L.isIndeterminate?`${Nve} 20ms linear, ${Lve} 200ms linear`:`${Rve} 200ms linear`,fontSize:g,color:p,...a.icon}),[p,g,,L.isIndeterminate,a.icon]),$=A.cloneElement(S,{__css:J,isIndeterminate:L.isIndeterminate,isChecked:L.isChecked});return v.jsxs(dt.label,{__css:{...Ive,...a.container},className:sn("chakra-checkbox",c),...Y(),children:[v.jsx("input",{className:"chakra-checkbox__input",...z(P,n)}),v.jsx(dt.span,{__css:{...jve,...a.control},className:"chakra-checkbox__control",...U(),children:$}),d&&v.jsx(dt.span,{className:"chakra-checkbox__label",...V(),__css:{marginStart:l,...a.label},children:d})]})});k7.displayName="Checkbox";function zve(e){const t=parseFloat(e);return typeof t!="number"||Number.isNaN(t)?0:t}function N5(e,t){let n=zve(e);const r=10**(t??10);return n=Math.round(n*r)/r,t?n.toFixed(t):n.toString()}function L5(e){if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}function P7(e,t,n){return(e-t)*100/(n-t)}function Bve(e,t,n){return(n-t)*e+t}function A7(e,t,n){const r=Math.round((e-t)/n)*n+t,i=L5(n);return N5(r,i)}function RC(e,t,n){return e==null?e:(n<t&&console.warn("clamp: max cannot be less than min"),Math.min(Math.max(e,t),n))}function Fve(e={}){const{onChange:t,precision:n,defaultValue:r,value:i,step:a=1,min:o=Number.MIN_SAFE_INTEGER,max:l=Number.MAX_SAFE_INTEGER,keepWithinRange:c=!0}=e,d=Ra(t),[p,g]=A.useState(()=>{var $;return r==null?"":($=z5(r,a,n))!=null?$:""}),S=typeof i<"u",w=S?i:p,C=O7(Rp(w),a),k=n??C,P=A.useCallback($=>{$!==w&&(S||g($.toString()),d==null||d($.toString(),Rp($)))},[d,S,w]),D=A.useCallback($=>{let K=$;return c&&(K=RC(K,o,l)),N5(K,k)},[k,c,l,o]),M=A.useCallback(($=a)=>{let K;w===""?K=Rp($):K=Rp(w)+$,K=D(K),P(K)},[D,a,P,w]),R=A.useCallback(($=a)=>{let K;w===""?K=Rp(-$):K=Rp(w)-$,K=D(K),P(K)},[D,a,P,w]),L=A.useCallback(()=>{var $;let K;r==null?K="":K=($=z5(r,a,n))!=null?$:o,P(K)},[r,n,a,P,o]),z=A.useCallback($=>{var K;const fe=(K=z5($,a,k))!=null?K:o;P(fe)},[k,a,P,o]),U=Rp(w);return{isOutOfRange:U>l||U<o,isAtMax:U===l,isAtMin:U===o,precision:k,value:w,valueAsNumber:U,update:P,reset:L,increment:M,decrement:R,clamp:D,cast:z,setValue:g}}function Rp(e){return parseFloat(e.toString().replace(/[^\w.-]+/g,""))}function O7(e,t){return Math.max(L5(t),L5(e))}function z5(e,t,n){const r=Rp(e);if(Number.isNaN(r))return;const i=O7(r,t);return N5(r,n??i)}function Tv(e,t,n,r){const i=Ra(n);return A.useEffect(()=>{const a=typeof e=="function"?e():e??document;if(!(!n||!a))return a.addEventListener(t,i,r),()=>{a.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const a=typeof e=="function"?e():e??document;a==null||a.removeEventListener(t,i,r)}}function Uve(e){return"current"in e}var D7=()=>typeof window<"u";function Vve(){var e;const t=navigator.userAgentData;return(e=t==null?void 0:t.platform)!=null?e:navigator.platform}var Hve=e=>D7()&&e.test(navigator.vendor),Gve=e=>D7()&&e.test(Vve()),Wve=()=>Gve(/mac|iphone|ipad|ipod/i),qve=()=>Wve()&&Hve(/apple/i);function Yve(e){const{ref:t,elements:n,enabled:r}=e,i=()=>{var a,o;return(o=(a=t.current)==null?void 0:a.ownerDocument)!=null?o:document};Tv(i,"pointerdown",a=>{if(!qve()||!r)return;const o=a.target,c=(n??[t]).some(d=>{const p=Uve(d)?d.current:d;return(p==null?void 0:p.contains(o))||p===o});i().activeElement!==o&&c&&(a.preventDefault(),o.focus())})}var cn={},M7={get exports(){return cn},set exports(e){cn=e}};/*
|
||
object-assign
|
||
(c) Sindre Sorhus
|
||
@license MIT
|
||
*/var B5,j7;function Kve(){if(j7)return B5;j7=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},l=0;l<10;l++)o["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(o).map(function(p){return o[p]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(p){d[p]=p}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return B5=i()?Object.assign:function(a,o){for(var l,c=r(a),d,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var g in l)t.call(l,g)&&(c[g]=l[g]);if(e){d=e(l);for(var S=0;S<d.length;S++)n.call(l,d[S])&&(c[d[S]]=l[d[S]])}}return c},B5}var F5,I7;function U5(){if(I7)return F5;I7=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return F5=e,F5}var V5,R7;function N7(){return R7||(R7=1,V5=Function.call.bind(Object.prototype.hasOwnProperty)),V5}var H5,L7;function Xve(){if(L7)return H5;L7=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=U5(),n={},r=N7();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,l,c,d){if(process.env.NODE_ENV!=="production"){for(var p in a)if(r(a,p)){var g;try{if(typeof a[p]!="function"){var S=Error((c||"React class")+": "+l+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw S.name="Invariant Violation",S}g=a[p](o,p,c,l,null,t)}catch(C){g=C}if(g&&!(g instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var w=d?d():"";e("Failed "+l+" type: "+g.message+(w??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},H5=i,H5}var G5,z7;function Qve(){if(z7)return G5;z7=1;var e=Ib,t=Kve(),n=U5(),r=N7(),i=Xve(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function o(){return null}return G5=function(l,c){var d=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function g(ee){var de=ee&&(d&&ee[d]||ee[p]);if(typeof de=="function")return de}var S="<<anonymous>>",w={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:M(),arrayOf:R,element:L(),elementType:z(),instanceOf:U,node:$(),objectOf:Y,oneOf:V,oneOfType:J,shape:fe,exact:X};function C(ee,de){return ee===de?ee!==0||1/ee===1/de:ee!==ee&&de!==de}function k(ee,de){this.message=ee,this.data=de&&typeof de=="object"?de:{},this.stack=""}k.prototype=Error.prototype;function P(ee){if(process.env.NODE_ENV!=="production")var de={},Fe=0;function Pe(Ie,De,$e,it,mt,bt,qe){if(it=it||S,bt=bt||$e,qe!==n){if(c){var Ce=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Ce.name="Invariant Violation",Ce}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Nt=it+":"+$e;!de[Nt]&&Fe<3&&(a("You are manually calling a React.PropTypes validation function for the `"+bt+"` prop on `"+it+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),de[Nt]=!0,Fe++)}}return De[$e]==null?Ie?De[$e]===null?new k("The "+mt+" `"+bt+"` is marked as required "+("in `"+it+"`, but its value is `null`.")):new k("The "+mt+" `"+bt+"` is marked as required in "+("`"+it+"`, but its value is `undefined`.")):null:ee(De,$e,it,mt,bt)}var Oe=Pe.bind(null,!1);return Oe.isRequired=Pe.bind(null,!0),Oe}function D(ee){function de(Fe,Pe,Oe,Ie,De,$e){var it=Fe[Pe],mt=re(it);if(mt!==ee){var bt=oe(it);return new k("Invalid "+Ie+" `"+De+"` of type "+("`"+bt+"` supplied to `"+Oe+"`, expected ")+("`"+ee+"`."),{expectedType:ee})}return null}return P(de)}function M(){return P(o)}function R(ee){function de(Fe,Pe,Oe,Ie,De){if(typeof ee!="function")return new k("Property `"+De+"` of component `"+Oe+"` has invalid PropType notation inside arrayOf.");var $e=Fe[Pe];if(!Array.isArray($e)){var it=re($e);return new k("Invalid "+Ie+" `"+De+"` of type "+("`"+it+"` supplied to `"+Oe+"`, expected an array."))}for(var mt=0;mt<$e.length;mt++){var bt=ee($e,mt,Oe,Ie,De+"["+mt+"]",n);if(bt instanceof Error)return bt}return null}return P(de)}function L(){function ee(de,Fe,Pe,Oe,Ie){var De=de[Fe];if(!l(De)){var $e=re(De);return new k("Invalid "+Oe+" `"+Ie+"` of type "+("`"+$e+"` supplied to `"+Pe+"`, expected a single ReactElement."))}return null}return P(ee)}function z(){function ee(de,Fe,Pe,Oe,Ie){var De=de[Fe];if(!e.isValidElementType(De)){var $e=re(De);return new k("Invalid "+Oe+" `"+Ie+"` of type "+("`"+$e+"` supplied to `"+Pe+"`, expected a single ReactElement type."))}return null}return P(ee)}function U(ee){function de(Fe,Pe,Oe,Ie,De){if(!(Fe[Pe]instanceof ee)){var $e=ee.name||S,it=le(Fe[Pe]);return new k("Invalid "+Ie+" `"+De+"` of type "+("`"+it+"` supplied to `"+Oe+"`, expected ")+("instance of `"+$e+"`."))}return null}return P(de)}function V(ee){if(!Array.isArray(ee))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function de(Fe,Pe,Oe,Ie,De){for(var $e=Fe[Pe],it=0;it<ee.length;it++)if(C($e,ee[it]))return null;var mt=JSON.stringify(ee,function(qe,Ce){var Nt=oe(Ce);return Nt==="symbol"?String(Ce):Ce});return new k("Invalid "+Ie+" `"+De+"` of value `"+String($e)+"` "+("supplied to `"+Oe+"`, expected one of "+mt+"."))}return P(de)}function Y(ee){function de(Fe,Pe,Oe,Ie,De){if(typeof ee!="function")return new k("Property `"+De+"` of component `"+Oe+"` has invalid PropType notation inside objectOf.");var $e=Fe[Pe],it=re($e);if(it!=="object")return new k("Invalid "+Ie+" `"+De+"` of type "+("`"+it+"` supplied to `"+Oe+"`, expected an object."));for(var mt in $e)if(r($e,mt)){var bt=ee($e,mt,Oe,Ie,De+"."+mt,n);if(bt instanceof Error)return bt}return null}return P(de)}function J(ee){if(!Array.isArray(ee))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var de=0;de<ee.length;de++){var Fe=ee[de];if(typeof Fe!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ie(Fe)+" at index "+de+"."),o}function Pe(Oe,Ie,De,$e,it){for(var mt=[],bt=0;bt<ee.length;bt++){var qe=ee[bt],Ce=qe(Oe,Ie,De,$e,it,n);if(Ce==null)return null;Ce.data&&r(Ce.data,"expectedType")&&mt.push(Ce.data.expectedType)}var Nt=mt.length>0?", expected one of type ["+mt.join(", ")+"]":"";return new k("Invalid "+$e+" `"+it+"` supplied to "+("`"+De+"`"+Nt+"."))}return P(Pe)}function $(){function ee(de,Fe,Pe,Oe,Ie){return G(de[Fe])?null:new k("Invalid "+Oe+" `"+Ie+"` supplied to "+("`"+Pe+"`, expected a ReactNode."))}return P(ee)}function K(ee,de,Fe,Pe,Oe){return new k((ee||"React class")+": "+de+" type `"+Fe+"."+Pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Oe+"`.")}function fe(ee){function de(Fe,Pe,Oe,Ie,De){var $e=Fe[Pe],it=re($e);if(it!=="object")return new k("Invalid "+Ie+" `"+De+"` of type `"+it+"` "+("supplied to `"+Oe+"`, expected `object`."));for(var mt in ee){var bt=ee[mt];if(typeof bt!="function")return K(Oe,Ie,De,mt,oe(bt));var qe=bt($e,mt,Oe,Ie,De+"."+mt,n);if(qe)return qe}return null}return P(de)}function X(ee){function de(Fe,Pe,Oe,Ie,De){var $e=Fe[Pe],it=re($e);if(it!=="object")return new k("Invalid "+Ie+" `"+De+"` of type `"+it+"` "+("supplied to `"+Oe+"`, expected `object`."));var mt=t({},Fe[Pe],ee);for(var bt in mt){var qe=ee[bt];if(r(ee,bt)&&typeof qe!="function")return K(Oe,Ie,De,bt,oe(qe));if(!qe)return new k("Invalid "+Ie+" `"+De+"` key `"+bt+"` supplied to `"+Oe+"`.\nBad object: "+JSON.stringify(Fe[Pe],null," ")+`
|
||
Valid keys: `+JSON.stringify(Object.keys(ee),null," "));var Ce=qe($e,bt,Oe,Ie,De+"."+bt,n);if(Ce)return Ce}return null}return P(de)}function G(ee){switch(typeof ee){case"number":case"string":case"undefined":return!0;case"boolean":return!ee;case"object":if(Array.isArray(ee))return ee.every(G);if(ee===null||l(ee))return!0;var de=g(ee);if(de){var Fe=de.call(ee),Pe;if(de!==ee.entries){for(;!(Pe=Fe.next()).done;)if(!G(Pe.value))return!1}else for(;!(Pe=Fe.next()).done;){var Oe=Pe.value;if(Oe&&!G(Oe[1]))return!1}}else return!1;return!0;default:return!1}}function te(ee,de){return ee==="symbol"?!0:de?de["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&de instanceof Symbol:!1}function re(ee){var de=typeof ee;return Array.isArray(ee)?"array":ee instanceof RegExp?"object":te(de,ee)?"symbol":de}function oe(ee){if(typeof ee>"u"||ee===null)return""+ee;var de=re(ee);if(de==="object"){if(ee instanceof Date)return"date";if(ee instanceof RegExp)return"regexp"}return de}function ie(ee){var de=oe(ee);switch(de){case"array":case"object":return"an "+de;case"boolean":case"date":case"regexp":return"a "+de;default:return de}}function le(ee){return!ee.constructor||!ee.constructor.name?S:ee.constructor.name}return w.checkPropTypes=i,w.resetWarningCache=i.resetWarningCache,w.PropTypes=w,w},G5}var W5,B7;function Zve(){if(B7)return W5;B7=1;var e=U5();function t(){}function n(){}return n.resetWarningCache=t,W5=function(){function r(o,l,c,d,p,g){if(g!==e){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},W5}if(process.env.NODE_ENV!=="production"){var Jve=Ib,$ve=!0;M7.exports=Qve()(Jve.isElement,$ve)}else M7.exports=Zve()();var q5="data-focus-lock",F7="data-focus-lock-disabled",ege="data-no-focus-lock",tge="data-autofocus-inside",nge="data-no-autofocus";function rge(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ige(e,t){var n=A.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}function U7(e,t){return ige(t||null,function(n){return e.forEach(function(r){return rge(r,n)})})}var Y5={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};process.env.NODE_ENV!=="production"&&cn.node;var Ud=function(){return Ud=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Ud.apply(this,arguments)};function V7(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 H0(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(p){try{d(r.next(p))}catch(g){o(g)}}function c(p){try{d(r.throw(p))}catch(g){o(g)}}function d(p){p.done?a(p.value):i(p.value).then(l,c)}d((r=r.apply(e,t||[])).next())})}function G0(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(d){return function(p){return c([d,p])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(a=d[0]&2?i.return:d[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,d[1])).done)return a;switch(i=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){n.label=d[1];break}if(d[0]===6&&n.label<a[1]){n.label=a[1],a=d;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(d);break}a[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(p){d=[6,p],i=0}finally{r=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function H7(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(l){o={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function K5(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function G7(e){return e}function W7(e,t){t===void 0&&(t=G7);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var o=t(a,r);return n.push(o),function(){n=n.filter(function(l){return l!==o})}},assignSyncMedium:function(a){for(r=!0;n.length;){var o=n;n=[],o.forEach(a)}n={push:function(l){return a(l)},filter:function(){return n}}},assignMedium:function(a){r=!0;var o=[];if(n.length){var l=n;n=[],l.forEach(a),o=n}var c=function(){var p=o;o=[],p.forEach(a)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(p){o.push(p),d()},filter:function(p){return o=o.filter(p),n}}}};return i}function X5(e,t){return t===void 0&&(t=G7),W7(e,t)}function q7(e){e===void 0&&(e={});var t=W7(null);return t.options=Ud({async:!0,ssr:!1},e),t}var Y7=function(e){var t=e.sideCar,n=V7(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return vt.createElement(r,Ud({},n))};Y7.isSideCarExport=!0;function age(e,t){return e.useMedium(t),Y7}var K7=X5({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),X7=X5(),oge=X5(),sge=q7({async:!0}),lge=[],Q5=vt.forwardRef(function(t,n){var r,i=vt.useState(),a=i[0],o=i[1],l=vt.useRef(),c=vt.useRef(!1),d=vt.useRef(null),p=t.children,g=t.disabled,S=t.noFocusGuards,w=t.persistentFocus,C=t.crossFrame,k=t.autoFocus,P=t.allowTextSelection,D=t.group,M=t.className,R=t.whiteList,L=t.hasPositiveIndices,z=t.shards,U=z===void 0?lge:z,V=t.as,Y=V===void 0?"div":V,J=t.lockProps,$=J===void 0?{}:J,K=t.sideCar,fe=t.returnFocus,X=t.focusOptions,G=t.onActivation,te=t.onDeactivation,re=vt.useState({}),oe=re[0],ie=vt.useCallback(function(){d.current=d.current||document&&document.activeElement,l.current&&G&&G(l.current),c.current=!0},[G]),le=vt.useCallback(function(){c.current=!1,te&&te(l.current)},[te]);A.useEffect(function(){g||(d.current=null)},[]);var ee=vt.useCallback(function(it){var mt=d.current;if(mt&&mt.focus){var bt=typeof fe=="function"?fe(mt):fe;if(bt){var qe=typeof bt=="object"?bt:void 0;d.current=null,it?Promise.resolve().then(function(){return mt.focus(qe)}):mt.focus(qe)}}},[fe]),de=vt.useCallback(function(it){c.current&&K7.useMedium(it)},[]),Fe=X7.useMedium,Pe=vt.useCallback(function(it){l.current!==it&&(l.current=it,o(it))},[]);process.env.NODE_ENV!=="production"&&(typeof P<"u"&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),vt.useEffect(function(){!l.current&&typeof Y!="string"&&console.error("FocusLock: could not obtain ref to internal node")},[]));var Oe=qm((r={},r[F7]=g&&"disabled",r[q5]=D,r),$),Ie=S!==!0,De=Ie&&S!=="tail",$e=U7([n,Pe]);return vt.createElement(vt.Fragment,null,Ie&&[vt.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:g?-1:0,style:Y5}),L?vt.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:g?-1:1,style:Y5}):null],!g&&vt.createElement(K,{id:oe,sideCar:sge,observed:a,disabled:g,persistentFocus:w,crossFrame:C,autoFocus:k,whiteList:R,shards:U,onActivation:ie,onDeactivation:le,returnFocus:ee,focusOptions:X}),vt.createElement(Y,qm({ref:$e},Oe,{className:M,onBlur:Fe,onFocus:de}),p),De&&vt.createElement("div",{"data-focus-guard":!0,tabIndex:g?-1:0,style:Y5}))});Q5.propTypes=process.env.NODE_ENV!=="production"?{children:cn.node,disabled:cn.bool,returnFocus:cn.oneOfType([cn.bool,cn.object,cn.func]),focusOptions:cn.object,noFocusGuards:cn.bool,hasPositiveIndices:cn.bool,allowTextSelection:cn.bool,autoFocus:cn.bool,persistentFocus:cn.bool,crossFrame:cn.bool,group:cn.string,className:cn.string,whiteList:cn.func,shards:cn.arrayOf(cn.any),as:cn.oneOfType([cn.string,cn.func,cn.object]),lockProps:cn.object,onActivation:cn.func,onDeactivation:cn.func,sideCar:cn.any.isRequired}:{},Q5.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const Q7=Q5;function uge(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,H2(e,t)}function cge(e,t){if(process.env.NODE_ENV!=="production"){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.")}function n(r){return r.displayName||r.name||"Component"}return function(i){if(process.env.NODE_ENV!=="production"&&typeof i!="function")throw new Error("Expected WrappedComponent to be a React component.");var a=[],o;function l(){o=e(a.map(function(d){return d.props})),t(o)}var c=function(d){uge(p,d);function p(){return d.apply(this,arguments)||this}p.peek=function(){return o};var g=p.prototype;return g.componentDidMount=function(){a.push(this),l()},g.componentDidUpdate=function(){l()},g.componentWillUnmount=function(){var w=a.indexOf(this);a.splice(w,1),l()},g.render=function(){return A.createElement(i,this.props)},p}(A.PureComponent);return Ou(c,"displayName","SideEffect("+n(i)+")"),c}}var Vd=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},NC=function(e){return Array.isArray(e)?e:[e]},Z7=function(e){return Array.isArray(e)?e[0]:e},dge=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},J7=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},$7=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},fge=function(e,t){return!e||$7(e)||!dge(e)&&t(J7(e))},eB=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=fge(t,eB.bind(void 0,e));return e.set(t,r),r},hge=function(e,t){return e&&!$7(e)?vge(e)?t(J7(e)):!1:!0},tB=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=hge(t,tB.bind(void 0,e));return e.set(t,r),r},nB=function(e){return e.dataset},pge=function(e){return e.tagName==="BUTTON"},rB=function(e){return e.tagName==="INPUT"},iB=function(e){return rB(e)&&e.type==="radio"},mge=function(e){return!((rB(e)||pge(e))&&(e.type==="hidden"||e.disabled))},vge=function(e){var t=e.getAttribute(nge);return![!0,"true",""].includes(t)},Z5=function(e){var t;return Boolean(e&&((t=nB(e))===null||t===void 0?void 0:t.focusGuard))},LC=function(e){return!Z5(e)},gge=function(e){return Boolean(e)},yge=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},aB=function(e,t,n){return Vd(e).map(function(r,i){return{node:r,index:i,tabIndex:n&&r.tabIndex===-1?(r.dataset||{}).focusGuard?0:-1:r.tabIndex}}).filter(function(r){return!t||r.tabIndex>=0}).sort(yge)},bge=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],J5=bge.join(","),Sge="".concat(J5,", [data-focus-guard]"),oB=function(e,t){return Vd((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?Sge:J5)?[r]:[],oB(r))},[])},xge=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?zC([e.contentDocument.body],t):[e]},zC=function(e,t){return e.reduce(function(n,r){var i,a=oB(r,t),o=(i=[]).concat.apply(i,a.map(function(l){return xge(l,t)}));return n.concat(o,r.parentNode?Vd(r.parentNode.querySelectorAll(J5)).filter(function(l){return l===r}):[])},[])},wge=function(e){var t=e.querySelectorAll("[".concat(tge,"]"));return Vd(t).map(function(n){return zC([n])}).reduce(function(n,r){return n.concat(r)},[])},$5=function(e,t){return Vd(e).filter(function(n){return eB(t,n)}).filter(function(n){return mge(n)})},sB=function(e,t){return t===void 0&&(t=new Map),Vd(e).filter(function(n){return tB(t,n)})},e3=function(e,t,n){return aB($5(zC(e,n),t),!0,n)},lB=function(e,t){return aB($5(zC(e),t),!1)},Cge=function(e,t){return $5(wge(e),t)},W0=function(e,t){return e.shadowRoot?W0(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Vd(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?W0(i,t):!1}return W0(n,t)})},Ege=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var a=e[r].compareDocumentPosition(e[i]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(o,l){return!t.has(l)})},uB=function(e){return e.parentNode?uB(e.parentNode):e},t3=function(e){var t=NC(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(q5);return n.push.apply(n,i?Ege(Vd(uB(r).querySelectorAll("[".concat(q5,'="').concat(i,'"]:not([').concat(F7,'="disabled"])')))):[r]),n},[])},_ge=function(e){try{return e()}catch{return}},oS=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?oS(t.shadowRoot):t instanceof HTMLIFrameElement&&_ge(function(){return t.contentWindow.document})?oS(t.contentWindow.document):t}},Tge=function(e,t){return e===t},kge=function(e,t){return Boolean(Vd(e.querySelectorAll("iframe")).some(function(n){return Tge(n,t)}))},cB=function(e,t){return t===void 0&&(t=oS(Z7(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:t3(e).some(function(n){return W0(n,t)||kge(n,t)})},Pge=function(e){e===void 0&&(e=document);var t=oS(e);return t?Vd(e.querySelectorAll("[".concat(ege,"]"))).some(function(n){return W0(n,t)}):!1},Age=function(e,t){return t.filter(iB).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},n3=function(e,t){return iB(e)&&e.name?Age(e,t):e},Oge=function(e){var t=new Set;return e.forEach(function(n){return t.add(n3(n,e))}),e.filter(function(n){return t.has(n)})},dB=function(e){return e[0]&&e.length>1?n3(e[0],e):e[0]},fB=function(e,t){return e.length>1?e.indexOf(n3(e[t],e)):t},hB="NEW_FOCUS",Dge=function(e,t,n,r){var i=e.length,a=e[0],o=e[i-1],l=Z5(n);if(!(n&&e.indexOf(n)>=0)){var c=n!==void 0?t.indexOf(n):-1,d=r?t.indexOf(r):c,p=r?e.indexOf(r):-1,g=c-d,S=t.indexOf(a),w=t.indexOf(o),C=Oge(t),k=n!==void 0?C.indexOf(n):-1,P=k-(r?C.indexOf(r):c),D=fB(e,0),M=fB(e,i-1);if(c===-1||p===-1)return hB;if(!g&&p>=0)return p;if(c<=S&&l&&Math.abs(g)>1)return M;if(c>=w&&l&&Math.abs(g)>1)return D;if(g&&Math.abs(P)>1)return p;if(c<=S)return M;if(c>w)return D;if(g)return Math.abs(g)>1?p:(i+p+g)%i}},Mge=function(e){return function(t){var n,r=(n=nB(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},jge=function(e,t,n){var r=e.map(function(a){var o=a.node;return o}),i=sB(r.filter(Mge(n)));return i&&i.length?dB(i):dB(sB(t))},r3=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&r3(e.parentNode.host||e.parentNode,t),t},i3=function(e,t){for(var n=r3(e),r=r3(t),i=0;i<n.length;i+=1){var a=n[i];if(r.indexOf(a)>=0)return a}return!1},pB=function(e,t,n){var r=NC(e),i=NC(t),a=r[0],o=!1;return i.filter(Boolean).forEach(function(l){o=i3(o||l,l)||o,n.filter(Boolean).forEach(function(c){var d=i3(a,c);d&&(!o||W0(d,o)?o=d:o=i3(d,o))})}),o},Ige=function(e,t){return e.reduce(function(n,r){return n.concat(Cge(r,t))},[])},Rge=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(gge)},Nge=function(e,t){var n=oS(NC(e).length>0?document:Z7(e).ownerDocument),r=t3(e).filter(LC),i=pB(n||e,e,r),a=new Map,o=lB(r,a),l=e3(r,a).filter(function(w){var C=w.node;return LC(C)});if(!(!l[0]&&(l=o,!l[0]))){var c=lB([i],a).map(function(w){var C=w.node;return C}),d=Rge(c,l),p=d.map(function(w){var C=w.node;return C}),g=Dge(p,c,n,t);if(g===hB){var S=jge(o,p,Ige(r,a));if(S)return{node:S};console.warn("focus-lock: cannot find any node to move focus into");return}return g===void 0?g:d[g]}},Lge=function(e){var t=t3(e).filter(LC),n=pB(e,e,t),r=new Map,i=e3([n],r,!0),a=e3(t,r).filter(function(o){var l=o.node;return LC(l)}).map(function(o){var l=o.node;return l});return i.map(function(o){var l=o.node,c=o.index;return{node:l,index:c,lockItem:a.indexOf(l)>=0,guard:Z5(l)}})},zge=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},a3=0,o3=!1,mB=function(e,t,n){n===void 0&&(n={});var r=Nge(e,t);if(!o3&&r){if(a3>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),o3=!0,setTimeout(function(){o3=!1},1);return}a3++,zge(r.node,n.focusOptions),a3--}};function vB(e){var t=window,n=t.setImmediate;typeof n<"u"?n(e):setTimeout(e,1)}var Bge=function(){return document&&document.activeElement===document.body},Fge=function(){return Bge()||Pge()},q0=null,Y0=null,K0=null,sS=!1,Uge=function(){return!0},Vge=function(t){return(q0.whiteList||Uge)(t)},Hge=function(t,n){K0={observerNode:t,portaledElement:n}},Gge=function(t){return K0&&K0.portaledElement===t};function gB(e,t,n,r){var i=null,a=e;do{var o=r[a];if(o.guard)o.node.dataset.focusAutoGuard&&(i=o);else if(o.lockItem){if(a!==e)return;i=null}else break}while((a+=n)!==t);i&&(i.node.tabIndex=0)}var Wge=function(t){return t&&"current"in t?t.current:t},qge=function(t){return t?Boolean(sS):sS==="meanwhile"},Yge=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},Kge=function(t,n){return n.some(function(r){return Yge(t,r,r)})},BC=function(){var t=!1;if(q0){var n=q0,r=n.observed,i=n.persistentFocus,a=n.autoFocus,o=n.shards,l=n.crossFrame,c=n.focusOptions,d=r||K0&&K0.portaledElement,p=document&&document.activeElement;if(d){var g=[d].concat(o.map(Wge).filter(Boolean));if((!p||Vge(p))&&(i||qge(l)||!Fge()||!Y0&&a)&&(d&&!(cB(g)||p&&Kge(p,g)||Gge(p))&&(document&&!Y0&&p&&!a?(p.blur&&p.blur(),document.body.focus()):(t=mB(g,Y0,{focusOptions:c}),K0={})),sS=!1,Y0=document&&document.activeElement),document){var S=document&&document.activeElement,w=Lge(g),C=w.map(function(k){var P=k.node;return P}).indexOf(S);C>-1&&(w.filter(function(k){var P=k.guard,D=k.node;return P&&D.dataset.focusAutoGuard}).forEach(function(k){var P=k.node;return P.removeAttribute("tabIndex")}),gB(C,w.length,1,w),gB(C,-1,-1,w))}}}return t},yB=function(t){BC()&&t&&(t.stopPropagation(),t.preventDefault())},s3=function(){return vB(BC)},Xge=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||Hge(r,n)},Qge=function(){return null};process.env.NODE_ENV!=="production"&&cn.node.isRequired;var bB=function(){sS="just",setTimeout(function(){sS="meanwhile"},0)},Zge=function(){document.addEventListener("focusin",yB),document.addEventListener("focusout",s3),window.addEventListener("blur",bB)},Jge=function(){document.removeEventListener("focusin",yB),document.removeEventListener("focusout",s3),window.removeEventListener("blur",bB)};function $ge(e){return e.filter(function(t){var n=t.disabled;return!n})}function e0e(e){var t=e.slice(-1)[0];t&&!q0&&Zge();var n=q0,r=n&&t&&t.id===n.id;q0=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var a=i.id;return a===n.id}).length||n.returnFocus(!t)),t?(Y0=null,(!r||n.observed!==t.observed)&&t.onActivation(),BC(),vB(BC)):(Jge(),Y0=null)}K7.assignSyncMedium(Xge),X7.assignMedium(s3),oge.assignMedium(function(e){return e({moveFocusInside:mB,focusInside:cB})});const t0e=cge($ge,e0e)(Qge);var SB=vt.forwardRef(function(t,n){return vt.createElement(Q7,qm({sideCar:t0e,ref:n},t))}),xB=Q7.propTypes||{};xB.sideCar;var n0e=Mq(xB,["sideCar"]);SB.propTypes=process.env.NODE_ENV!=="production"?n0e:{};const wB=SB;function CB(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function EB(e){var t;if(!CB(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function r0e(e){var t,n;return(n=(t=_B(e))==null?void 0:t.defaultView)!=null?n:window}function _B(e){return CB(e)?e.ownerDocument:document}function i0e(e){return _B(e).activeElement}var TB=e=>e.hasAttribute("tabindex"),a0e=e=>TB(e)&&e.tabIndex===-1;function o0e(e){return Boolean(e.getAttribute("disabled"))===!0||Boolean(e.getAttribute("aria-disabled"))===!0}function kB(e){return e.parentElement&&kB(e.parentElement)?!0:e.hidden}function s0e(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function PB(e){if(!EB(e)||kB(e)||o0e(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():s0e(e)?!0:TB(e)}function l0e(e){return e?EB(e)&&PB(e)&&!a0e(e):!1}var u0e=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],c0e=u0e.join(),d0e=e=>e.offsetWidth>0&&e.offsetHeight>0;function AB(e){const t=Array.from(e.querySelectorAll(c0e));return t.unshift(e),t.filter(n=>PB(n)&&d0e(n))}var OB,f0e=(OB=wB.default)!=null?OB:wB,DB=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:a,isDisabled:o,autoFocus:l,persistentFocus:c,lockFocusAcrossFrames:d}=e,p=A.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&AB(r.current).length===0&&requestAnimationFrame(()=>{var C;(C=r.current)==null||C.focus()})},[t,r]),g=A.useCallback(()=>{var w;(w=n==null?void 0:n.current)==null||w.focus()},[n]),S=i&&!n;return v.jsx(f0e,{crossFrame:d,persistentFocus:c,autoFocus:l,disabled:o,onActivation:p,onDeactivation:g,returnFocus:S,children:a})};DB.displayName="FocusLock";var h0e=lce?A.useLayoutEffect:A.useEffect;function FC(e,t=[]){const n=A.useRef(e);return h0e(()=>{n.current=e}),A.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function p0e(e,t,n,r){const i=FC(t);return A.useEffect(()=>{var a;const o=(a=oC(n))!=null?a:document;if(t)return o.addEventListener(e,i,r),()=>{o.removeEventListener(e,i,r)}},[e,n,r,i,t]),()=>{var a;((a=oC(n))!=null?a:document).removeEventListener(e,i,r)}}function m0e(e){const{ref:t,handler:n,enabled:r=!0}=e,i=FC(n),o=A.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;A.useEffect(()=>{if(!r)return;const l=g=>{l3(g,t)&&(o.isPointerDown=!0)},c=g=>{if(o.ignoreEmulatedMouseEvents){o.ignoreEmulatedMouseEvents=!1;return}o.isPointerDown&&n&&l3(g,t)&&(o.isPointerDown=!1,i(g))},d=g=>{o.ignoreEmulatedMouseEvents=!0,n&&o.isPointerDown&&l3(g,t)&&(o.isPointerDown=!1,i(g))},p=y8(t.current);return p.addEventListener("mousedown",l,!0),p.addEventListener("mouseup",c,!0),p.addEventListener("touchstart",l,!0),p.addEventListener("touchend",d,!0),()=>{p.removeEventListener("mousedown",l,!0),p.removeEventListener("mouseup",c,!0),p.removeEventListener("touchstart",l,!0),p.removeEventListener("touchend",d,!0)}},[n,t,i,o,r])}function l3(e,t){var n;const r=e.target;return e.button>0||r&&!y8(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function v0e(e,t){const n=A.useId();return A.useMemo(()=>e||[t,n].filter(Boolean).join("-"),[e,t,n])}function g0e(e,t){const n=e!==void 0;return[n,n&&typeof e<"u"?e:t]}function Np(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,a=FC(n),o=FC(t),[l,c]=A.useState(e.defaultIsOpen||!1),[d,p]=g0e(r,l),g=v0e(i,"disclosure"),S=A.useCallback(()=>{d||c(!1),o==null||o()},[d,o]),w=A.useCallback(()=>{d||c(!0),a==null||a()},[d,a]),C=A.useCallback(()=>{(p?S:w)()},[p,w,S]);return{isOpen:!!p,onOpen:w,onClose:S,onToggle:C,isControlled:d,getButtonProps:(k={})=>({...k,"aria-expanded":p,"aria-controls":g,onClick:hce(k.onClick,C)}),getDisclosureProps:(k={})=>({...k,hidden:!p,id:g})}}var u3=Et(function(t,n){const{htmlSize:r,...i}=t,a=Yo("Input",i),o=Si(i),l=O5(o),c=sn("chakra-input",t.className);return v.jsx(dt.input,{size:r,...l,__css:a.field,ref:n,className:c})});u3.displayName="Input",u3.id="Input";var[y0e,MB]=Kr({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),c3=Et(function(t,n){const r=Yo("List",t),{children:i,styleType:a="none",stylePosition:o,spacing:l,...c}=Si(t),d=P5(i),g=l?{["& > *:not(style) ~ *:not(style)"]:{mt:l}}:{};return v.jsx(y0e,{value:r,children:v.jsx(dt.ul,{ref:n,listStyleType:a,listStylePosition:o,role:"list",__css:{...r.container,...g},...c,children:d})})});c3.displayName="List";var b0e=Et((e,t)=>{const{as:n,...r}=e;return v.jsx(c3,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...r})});b0e.displayName="OrderedList";var jB=Et(function(t,n){const{as:r,...i}=t;return v.jsx(c3,{ref:n,as:"ul",styleType:"initial",marginStart:"1em",...i})});jB.displayName="UnorderedList";var lS=Et(function(t,n){const r=MB();return v.jsx(dt.li,{ref:n,...t,__css:r.item})});lS.displayName="ListItem";var S0e=Et(function(t,n){const r=MB();return v.jsx(Pa,{ref:n,role:"presentation",...t,__css:r.icon})});S0e.displayName="ListIcon";var zc=Et(function(t,n){const{templateAreas:r,gap:i,rowGap:a,columnGap:o,column:l,row:c,autoFlow:d,autoRows:p,templateRows:g,autoColumns:S,templateColumns:w,...C}=t,k={display:"grid",gridTemplateAreas:r,gridGap:i,gridRowGap:a,gridColumnGap:o,gridAutoColumns:S,gridColumn:l,gridRow:c,gridAutoFlow:d,gridAutoRows:p,gridTemplateRows:g,gridTemplateColumns:w};return v.jsx(dt.div,{ref:n,__css:k,...C})});zc.displayName="Grid";function IB(e,t){return Array.isArray(e)?e.map(n=>n===null?null:t(n)):hs(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):e!=null?t(e):null}var UC=dt("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});UC.displayName="Spacer";var Gt=Et(function(t,n){const r=zu("Text",t),{className:i,align:a,decoration:o,casing:l,...c}=Si(t),d=Ace({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return v.jsx(dt.p,{ref:n,className:sn("chakra-text",t.className),...d,...c,__css:r})});Gt.displayName="Text";var RB=e=>v.jsx(dt.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});RB.displayName="StackItem";var d3="& > *:not(style) ~ *:not(style)";function x0e(e){const{spacing:t,direction:n}=e,r={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return{flexDirection:n,[d3]:IB(n,i=>r[i])}}function w0e(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":IB(n,i=>r[i])}}var f3=Et((e,t)=>{const{isInline:n,direction:r,align:i,justify:a,spacing:o="0.5rem",wrap:l,children:c,divider:d,className:p,shouldWrapChildren:g,...S}=e,w=n?"row":r??"column",C=A.useMemo(()=>x0e({direction:w,spacing:o}),[w,o]),k=A.useMemo(()=>w0e({spacing:o,direction:w}),[o,w]),P=!!d,D=!g&&!P,M=A.useMemo(()=>{const L=P5(c);return D?L:L.map((z,U)=>{const V=typeof z.key<"u"?z.key:U,Y=U+1===L.length,$=g?v.jsx(RB,{children:z},V):z;if(!P)return $;const K=A.cloneElement(d,{__css:k}),fe=Y?null:K;return v.jsxs(A.Fragment,{children:[$,fe]},V)})},[d,k,P,D,g,c]),R=sn("chakra-stack",p);return v.jsx(dt.div,{ref:t,display:"flex",alignItems:i,justifyContent:a,flexDirection:C.flexDirection,flexWrap:l,className:R,__css:P?{}:{[d3]:C[d3]},...S,children:M})});f3.displayName="Stack";var Mn=Et((e,t)=>v.jsx(f3,{align:"center",...e,direction:"column",ref:t}));Mn.displayName="VStack";var X0=Et((e,t)=>v.jsx(f3,{align:"center",...e,direction:"row",ref:t}));X0.displayName="HStack";var Vu=Et(function(t,n){const r=zu("Heading",t),{className:i,...a}=Si(t);return v.jsx(dt.h2,{ref:n,className:sn("chakra-heading",t.className),...a,__css:r})});Vu.displayName="Heading";var $n=dt("div");$n.displayName="Box";var NB=Et(function(t,n){const{size:r,centerContent:i=!0,...a}=t,o=i?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return v.jsx($n,{ref:n,boxSize:r,__css:{...o,flexShrink:0,flexGrow:0},...a})});NB.displayName="Square";var C0e=Et(function(t,n){const{size:r,...i}=t;return v.jsx(NB,{size:r,ref:n,borderRadius:"9999px",...i})});C0e.displayName="Circle";var kv=Et(function(t,n){const r=zu("Link",t),{className:i,isExternal:a,...o}=Si(t);return v.jsx(dt.a,{target:a?"_blank":void 0,rel:a?"noopener":void 0,ref:n,className:sn("chakra-link",i),...o,__css:r})});kv.displayName="Link";var LB=Et(function(t,n){const r=zu("Badge",t),{className:i,...a}=Si(t);return v.jsx(dt.span,{ref:n,className:sn("chakra-badge",t.className),...a,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...r}})});LB.displayName="Badge";var zB=dt("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});zB.displayName="Center";var E0e={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};Et(function(t,n){const{axis:r="both",...i}=t;return v.jsx(dt.div,{ref:n,__css:E0e[r],...i,position:"absolute"})});var BB=Et(function(t,n){const{borderLeftWidth:r,borderBottomWidth:i,borderTopWidth:a,borderRightWidth:o,borderWidth:l,borderStyle:c,borderColor:d,...p}=zu("Divider",t),{className:g,orientation:S="horizontal",__css:w,...C}=Si(t),k={vertical:{borderLeftWidth:r||o||l||"1px",height:"100%"},horizontal:{borderBottomWidth:i||a||l||"1px",width:"100%"}};return v.jsx(dt.hr,{ref:n,"aria-orientation":S,...C,__css:{...p,border:"0",borderColor:d,borderStyle:c,...k[S],...w},className:sn("chakra-divider",g)})});BB.displayName="Divider";var Re=Et(function(t,n){const{direction:r,align:i,justify:a,wrap:o,basis:l,grow:c,shrink:d,...p}=t,g={display:"flex",flexDirection:r,alignItems:i,justifyContent:a,flexWrap:o,flexBasis:l,flexGrow:c,flexShrink:d};return v.jsx(dt.div,{ref:n,__css:g,...p})});Re.displayName="Flex";function _0e(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function T0e(e={}){const{timeout:t=300,preventDefault:n=()=>!0}=e,[r,i]=A.useState([]),a=A.useRef(),o=()=>{a.current&&(clearTimeout(a.current),a.current=null)},l=()=>{o(),a.current=setTimeout(()=>{i([]),a.current=null},t)};A.useEffect(()=>o,[]);function c(d){return p=>{if(p.key==="Backspace"){const g=[...r];g.pop(),i(g);return}if(_0e(p)){const g=r.concat(p.key);n(p)&&(p.preventDefault(),p.stopPropagation()),i(g),d(g.join("")),l()}}}return c}function k0e(e,t,n,r){if(t==null)return r;if(!r)return e.find(o=>n(o).toLowerCase().startsWith(t.toLowerCase()));const i=e.filter(a=>n(a).toLowerCase().startsWith(t.toLowerCase()));if(i.length>0){let a;return i.includes(r)?(a=i.indexOf(r)+1,a===i.length&&(a=0),i[a]):(a=e.indexOf(i[0]),e[a])}return r}function P0e(){const e=A.useRef(new Map),t=e.current,n=A.useCallback((i,a,o,l)=>{e.current.set(o,{type:a,el:i,options:l}),i.addEventListener(a,o,l)},[]),r=A.useCallback((i,a,o,l)=>{i.removeEventListener(a,o,l),e.current.delete(o)},[]);return A.useEffect(()=>()=>{t.forEach((i,a)=>{r(i.el,i.type,a,i.options)})},[r,t]),{add:n,remove:r}}function h3(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return n!=="INPUT"&&n!=="TEXTAREA"&&r!==!0}function FB(e={}){const{ref:t,isDisabled:n,isFocusable:r,clickOnEnter:i=!0,clickOnSpace:a=!0,onMouseDown:o,onMouseUp:l,onClick:c,onKeyDown:d,onKeyUp:p,tabIndex:g,onMouseOver:S,onMouseLeave:w,...C}=e,[k,P]=A.useState(!0),[D,M]=A.useState(!1),R=P0e(),L=oe=>{oe&&oe.tagName!=="BUTTON"&&P(!1)},z=k?g:g||0,U=n&&!r,V=A.useCallback(oe=>{if(n){oe.stopPropagation(),oe.preventDefault();return}oe.currentTarget.focus(),c==null||c(oe)},[n,c]),Y=A.useCallback(oe=>{D&&h3(oe)&&(oe.preventDefault(),oe.stopPropagation(),M(!1),R.remove(document,"keyup",Y,!1))},[D,R]),J=A.useCallback(oe=>{if(d==null||d(oe),n||oe.defaultPrevented||oe.metaKey||!h3(oe.nativeEvent)||k)return;const ie=i&&oe.key==="Enter";a&&oe.key===" "&&(oe.preventDefault(),M(!0)),ie&&(oe.preventDefault(),oe.currentTarget.click()),R.add(document,"keyup",Y,!1)},[n,k,d,i,a,R,Y]),$=A.useCallback(oe=>{if(p==null||p(oe),n||oe.defaultPrevented||oe.metaKey||!h3(oe.nativeEvent)||k)return;a&&oe.key===" "&&(oe.preventDefault(),M(!1),oe.currentTarget.click())},[a,k,n,p]),K=A.useCallback(oe=>{oe.button===0&&(M(!1),R.remove(document,"mouseup",K,!1))},[R]),fe=A.useCallback(oe=>{if(oe.button!==0)return;if(n){oe.stopPropagation(),oe.preventDefault();return}k||M(!0),oe.currentTarget.focus({preventScroll:!0}),R.add(document,"mouseup",K,!1),o==null||o(oe)},[n,k,o,R,K]),X=A.useCallback(oe=>{oe.button===0&&(k||M(!1),l==null||l(oe))},[l,k]),G=A.useCallback(oe=>{if(n){oe.preventDefault();return}S==null||S(oe)},[n,S]),te=A.useCallback(oe=>{D&&(oe.preventDefault(),M(!1)),w==null||w(oe)},[D,w]),re=ti(t,L);return k?{...C,ref:re,type:"button","aria-disabled":U?void 0:n,disabled:U,onClick:V,onMouseDown:o,onMouseUp:l,onKeyUp:p,onKeyDown:d,onMouseOver:S,onMouseLeave:w}:{...C,ref:re,role:"button","data-active":Jn(D),"aria-disabled":n?"true":void 0,tabIndex:U?void 0:z,onClick:V,onMouseDown:fe,onMouseUp:X,onKeyUp:$,onKeyDown:J,onMouseOver:G,onMouseLeave:te}}function A0e(e){const t=e.current;if(!t)return!1;const n=i0e(t);return!n||t.contains(n)?!1:!!l0e(n)}function UB(e,t){const{shouldFocus:n,visible:r,focusRef:i}=t,a=n&&!r;oh(()=>{if(!a||A0e(e))return;const o=(i==null?void 0:i.current)||e.current;o&&requestAnimationFrame(()=>{o.focus()})},[a,e,i])}var O0e={preventScroll:!0,shouldFocus:!1};function D0e(e,t=O0e){const{focusRef:n,preventScroll:r,shouldFocus:i,visible:a}=t,o=M0e(e)?e.current:e,l=i&&a,c=A.useRef(l),d=A.useRef(a);jd(()=>{!d.current&&a&&(c.current=l),d.current=a},[a,l]);const p=A.useCallback(()=>{if(!(!a||!o||!c.current)&&(c.current=!1,!o.contains(document.activeElement)))if(n!=null&&n.current)requestAnimationFrame(()=>{var g;(g=n.current)==null||g.focus({preventScroll:r})});else{const g=AB(o);g.length>0&&requestAnimationFrame(()=>{g[0].focus({preventScroll:r})})}},[a,r,o,n]);oh(()=>{p()},[p]),Tv(o,"transitionend",p)}function M0e(e){return"current"in e}var Q0=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Ja={arrowShadowColor:Q0("--popper-arrow-shadow-color"),arrowSize:Q0("--popper-arrow-size","8px"),arrowSizeHalf:Q0("--popper-arrow-size-half"),arrowBg:Q0("--popper-arrow-bg"),transformOrigin:Q0("--popper-transform-origin"),arrowOffset:Q0("--popper-arrow-offset")};function j0e(e){if(e.includes("top"))return"1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 1px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 1px 0 var(--popper-arrow-shadow-color)"}var I0e={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},R0e=e=>I0e[e],VB={scroll:!0,resize:!0};function N0e(e){let t;return typeof e=="object"?t={enabled:!0,options:{...VB,...e}}:t={enabled:e,options:VB},t}var L0e={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},z0e={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{HB(e)},effect:({state:e})=>()=>{HB(e)}},HB=e=>{e.elements.popper.style.setProperty(Ja.transformOrigin.var,R0e(e.placement))},B0e={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{F0e(e)}},F0e=e=>{var t;if(!e.placement)return;const n=U0e(e.placement);if((t=e.elements)!=null&&t.arrow&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:Ja.arrowSize.varRef,height:Ja.arrowSize.varRef,zIndex:-1});const r={[Ja.arrowSizeHalf.var]:`calc(${Ja.arrowSize.varRef} / 2)`,[Ja.arrowOffset.var]:`calc(${Ja.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},U0e=e=>{if(e.startsWith("top"))return{property:"bottom",value:Ja.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Ja.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Ja.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Ja.arrowOffset.varRef}},V0e={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{GB(e)},effect:({state:e})=>()=>{GB(e)}},GB=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=j0e(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:Ja.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},H0e={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},G0e={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function W0e(e,t="ltr"){var n,r;const i=((n=H0e[e])==null?void 0:n[t])||e;return t==="ltr"?i:(r=G0e[e])!=null?r:i}var Sl="top",Hu="bottom",Gu="right",xl="left",VC="auto",uS=[Sl,Hu,Gu,xl],Z0="start",cS="end",q0e="clippingParents",WB="viewport",dS="popper",Y0e="reference",qB=uS.reduce(function(e,t){return e.concat([t+"-"+Z0,t+"-"+cS])},[]),YB=[].concat(uS,[VC]).reduce(function(e,t){return e.concat([t,t+"-"+Z0,t+"-"+cS])},[]),K0e="beforeRead",X0e="read",Q0e="afterRead",Z0e="beforeMain",J0e="main",$0e="afterMain",eye="beforeWrite",tye="write",nye="afterWrite",p3=[K0e,X0e,Q0e,Z0e,J0e,$0e,eye,tye,nye];function Hd(e){return e?(e.nodeName||"").toLowerCase():null}function Wu(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pv(e){var t=Wu(e).Element;return e instanceof t||e instanceof Element}function eu(e){var t=Wu(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function m3(e){if(typeof ShadowRoot>"u")return!1;var t=Wu(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function rye(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!eu(a)||!Hd(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var l=i[o];l===!1?a.removeAttribute(o):a.setAttribute(o,l===!0?"":l)}))})}function iye(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=o.reduce(function(c,d){return c[d]="",c},{});!eu(i)||!Hd(i)||(Object.assign(i.style,l),Object.keys(a).forEach(function(c){i.removeAttribute(c)}))})}}const aye={name:"applyStyles",enabled:!0,phase:"write",fn:rye,effect:iye,requires:["computeStyles"]};function Bc(e){return e.split("-")[0]}var Av=Math.max,HC=Math.min,J0=Math.round;function v3(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function KB(){return!/^((?!chrome|android).)*safari/i.test(v3())}function $0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&eu(e)&&(i=e.offsetWidth>0&&J0(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&J0(r.height)/e.offsetHeight||1);var o=Pv(e)?Wu(e):window,l=o.visualViewport,c=!KB()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/i,p=(r.top+(c&&l?l.offsetTop:0))/a,g=r.width/i,S=r.height/a;return{width:g,height:S,top:p,right:d+g,bottom:p+S,left:d,x:d,y:p}}function g3(e){var t=$0(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function XB(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&m3(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Fc(e){return Wu(e).getComputedStyle(e)}function oye(e){return["table","td","th"].indexOf(Hd(e))>=0}function Lp(e){return((Pv(e)?e.ownerDocument:e.document)||window.document).documentElement}function GC(e){return Hd(e)==="html"?e:e.assignedSlot||e.parentNode||(m3(e)?e.host:null)||Lp(e)}function QB(e){return!eu(e)||Fc(e).position==="fixed"?null:e.offsetParent}function sye(e){var t=/firefox/i.test(v3()),n=/Trident/i.test(v3());if(n&&eu(e)){var r=Fc(e);if(r.position==="fixed")return null}var i=GC(e);for(m3(i)&&(i=i.host);eu(i)&&["html","body"].indexOf(Hd(i))<0;){var a=Fc(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function fS(e){for(var t=Wu(e),n=QB(e);n&&oye(n)&&Fc(n).position==="static";)n=QB(n);return n&&(Hd(n)==="html"||Hd(n)==="body"&&Fc(n).position==="static")?t:n||sye(e)||t}function y3(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function hS(e,t,n){return Av(e,HC(t,n))}function lye(e,t,n){var r=hS(e,t,n);return r>n?n:r}function ZB(){return{top:0,right:0,bottom:0,left:0}}function JB(e){return Object.assign({},ZB(),e)}function $B(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var uye=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,JB(typeof t!="number"?t:$B(t,uS))};function cye(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,l=Bc(n.placement),c=y3(l),d=[xl,Gu].indexOf(l)>=0,p=d?"height":"width";if(!(!a||!o)){var g=uye(i.padding,n),S=g3(a),w=c==="y"?Sl:xl,C=c==="y"?Hu:Gu,k=n.rects.reference[p]+n.rects.reference[c]-o[c]-n.rects.popper[p],P=o[c]-n.rects.reference[c],D=fS(a),M=D?c==="y"?D.clientHeight||0:D.clientWidth||0:0,R=k/2-P/2,L=g[w],z=M-S[p]-g[C],U=M/2-S[p]/2+R,V=hS(L,U,z),Y=c;n.modifiersData[r]=(t={},t[Y]=V,t.centerOffset=V-U,t)}}function dye(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;if(i!=null&&!(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i))){if(process.env.NODE_ENV!=="production"&&(eu(i)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!XB(t.elements.popper,i)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=i}}const fye={name:"arrow",enabled:!0,phase:"main",fn:cye,effect:dye,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ey(e){return e.split("-")[1]}var hye={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pye(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:J0(t*i)/i||0,y:J0(n*i)/i||0}}function eF(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,p=e.roundOffsets,g=e.isFixed,S=o.x,w=S===void 0?0:S,C=o.y,k=C===void 0?0:C,P=typeof p=="function"?p({x:w,y:k}):{x:w,y:k};w=P.x,k=P.y;var D=o.hasOwnProperty("x"),M=o.hasOwnProperty("y"),R=xl,L=Sl,z=window;if(d){var U=fS(n),V="clientHeight",Y="clientWidth";if(U===Wu(n)&&(U=Lp(n),Fc(U).position!=="static"&&l==="absolute"&&(V="scrollHeight",Y="scrollWidth")),U=U,i===Sl||(i===xl||i===Gu)&&a===cS){L=Hu;var J=g&&U===z&&z.visualViewport?z.visualViewport.height:U[V];k-=J-r.height,k*=c?1:-1}if(i===xl||(i===Sl||i===Hu)&&a===cS){R=Gu;var $=g&&U===z&&z.visualViewport?z.visualViewport.width:U[Y];w-=$-r.width,w*=c?1:-1}}var K=Object.assign({position:l},d&&hye),fe=p===!0?pye({x:w,y:k}):{x:w,y:k};if(w=fe.x,k=fe.y,c){var X;return Object.assign({},K,(X={},X[L]=M?"0":"",X[R]=D?"0":"",X.transform=(z.devicePixelRatio||1)<=1?"translate("+w+"px, "+k+"px)":"translate3d("+w+"px, "+k+"px, 0)",X))}return Object.assign({},K,(t={},t[L]=M?k+"px":"",t[R]=D?w+"px":"",t.transform="",t))}function mye(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,l=n.roundOffsets,c=l===void 0?!0:l;if(process.env.NODE_ENV!=="production"){var d=Fc(t.elements.popper).transitionProperty||"";o&&["transform","top","right","bottom","left"].some(function(g){return d.indexOf(g)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
||
|
||
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
||
|
||
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var p={placement:Bc(t.placement),variation:ey(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,eF(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,eF(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const vye={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mye,data:{}};var WC={passive:!0};function gye(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,l=o===void 0?!0:o,c=Wu(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(p){p.addEventListener("scroll",n.update,WC)}),l&&c.addEventListener("resize",n.update,WC),function(){a&&d.forEach(function(p){p.removeEventListener("scroll",n.update,WC)}),l&&c.removeEventListener("resize",n.update,WC)}}const yye={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gye,data:{}};var bye={left:"right",right:"left",bottom:"top",top:"bottom"};function qC(e){return e.replace(/left|right|bottom|top/g,function(t){return bye[t]})}var Sye={start:"end",end:"start"};function tF(e){return e.replace(/start|end/g,function(t){return Sye[t]})}function b3(e){var t=Wu(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function S3(e){return $0(Lp(e)).left+b3(e).scrollLeft}function xye(e,t){var n=Wu(e),r=Lp(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,l=0,c=0;if(i){a=i.width,o=i.height;var d=KB();(d||!d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:l+S3(e),y:c}}function wye(e){var t,n=Lp(e),r=b3(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Av(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Av(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+S3(e),c=-r.scrollTop;return Fc(i||n).direction==="rtl"&&(l+=Av(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:l,y:c}}function x3(e){var t=Fc(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function nF(e){return["html","body","#document"].indexOf(Hd(e))>=0?e.ownerDocument.body:eu(e)&&x3(e)?e:nF(GC(e))}function pS(e,t){var n;t===void 0&&(t=[]);var r=nF(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Wu(r),o=i?[a].concat(a.visualViewport||[],x3(r)?r:[]):r,l=t.concat(o);return i?l:l.concat(pS(GC(o)))}function w3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Cye(e,t){var n=$0(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function rF(e,t,n){return t===WB?w3(xye(e,n)):Pv(t)?Cye(t,n):w3(wye(Lp(e)))}function Eye(e){var t=pS(GC(e)),n=["absolute","fixed"].indexOf(Fc(e).position)>=0,r=n&&eu(e)?fS(e):e;return Pv(r)?t.filter(function(i){return Pv(i)&&XB(i,r)&&Hd(i)!=="body"}):[]}function _ye(e,t,n,r){var i=t==="clippingParents"?Eye(e):[].concat(t),a=[].concat(i,[n]),o=a[0],l=a.reduce(function(c,d){var p=rF(e,d,r);return c.top=Av(p.top,c.top),c.right=HC(p.right,c.right),c.bottom=HC(p.bottom,c.bottom),c.left=Av(p.left,c.left),c},rF(e,o,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function iF(e){var t=e.reference,n=e.element,r=e.placement,i=r?Bc(r):null,a=r?ey(r):null,o=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case Sl:c={x:o,y:t.y-n.height};break;case Hu:c={x:o,y:t.y+t.height};break;case Gu:c={x:t.x+t.width,y:l};break;case xl:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=i?y3(i):null;if(d!=null){var p=d==="y"?"height":"width";switch(a){case Z0:c[d]=c[d]-(t[p]/2-n[p]/2);break;case cS:c[d]=c[d]+(t[p]/2-n[p]/2);break}}return c}function mS(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,l=n.boundary,c=l===void 0?q0e:l,d=n.rootBoundary,p=d===void 0?WB:d,g=n.elementContext,S=g===void 0?dS:g,w=n.altBoundary,C=w===void 0?!1:w,k=n.padding,P=k===void 0?0:k,D=JB(typeof P!="number"?P:$B(P,uS)),M=S===dS?Y0e:dS,R=e.rects.popper,L=e.elements[C?M:S],z=_ye(Pv(L)?L:L.contextElement||Lp(e.elements.popper),c,p,o),U=$0(e.elements.reference),V=iF({reference:U,element:R,strategy:"absolute",placement:i}),Y=w3(Object.assign({},R,V)),J=S===dS?Y:U,$={top:z.top-J.top+D.top,bottom:J.bottom-z.bottom+D.bottom,left:z.left-J.left+D.left,right:J.right-z.right+D.right},K=e.modifiersData.offset;if(S===dS&&K){var fe=K[i];Object.keys($).forEach(function(X){var G=[Gu,Hu].indexOf(X)>=0?1:-1,te=[Sl,Hu].indexOf(X)>=0?"y":"x";$[X]+=fe[te]*G})}return $}function Tye(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?YB:c,p=ey(r),g=p?l?qB:qB.filter(function(C){return ey(C)===p}):uS,S=g.filter(function(C){return d.indexOf(C)>=0});S.length===0&&(S=g,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var w=S.reduce(function(C,k){return C[k]=mS(e,{placement:k,boundary:i,rootBoundary:a,padding:o})[Bc(k)],C},{});return Object.keys(w).sort(function(C,k){return w[C]-w[k]})}function kye(e){if(Bc(e)===VC)return[];var t=qC(e);return[tF(e),t,tF(t)]}function Pye(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,l=o===void 0?!0:o,c=n.fallbackPlacements,d=n.padding,p=n.boundary,g=n.rootBoundary,S=n.altBoundary,w=n.flipVariations,C=w===void 0?!0:w,k=n.allowedAutoPlacements,P=t.options.placement,D=Bc(P),M=D===P,R=c||(M||!C?[qC(P)]:kye(P)),L=[P].concat(R).reduce(function(Oe,Ie){return Oe.concat(Bc(Ie)===VC?Tye(t,{placement:Ie,boundary:p,rootBoundary:g,padding:d,flipVariations:C,allowedAutoPlacements:k}):Ie)},[]),z=t.rects.reference,U=t.rects.popper,V=new Map,Y=!0,J=L[0],$=0;$<L.length;$++){var K=L[$],fe=Bc(K),X=ey(K)===Z0,G=[Sl,Hu].indexOf(fe)>=0,te=G?"width":"height",re=mS(t,{placement:K,boundary:p,rootBoundary:g,altBoundary:S,padding:d}),oe=G?X?Gu:xl:X?Hu:Sl;z[te]>U[te]&&(oe=qC(oe));var ie=qC(oe),le=[];if(a&&le.push(re[fe]<=0),l&&le.push(re[oe]<=0,re[ie]<=0),le.every(function(Oe){return Oe})){J=K,Y=!1;break}V.set(K,le)}if(Y)for(var ee=C?3:1,de=function(Ie){var De=L.find(function($e){var it=V.get($e);if(it)return it.slice(0,Ie).every(function(mt){return mt})});if(De)return J=De,"break"},Fe=ee;Fe>0;Fe--){var Pe=de(Fe);if(Pe==="break")break}t.placement!==J&&(t.modifiersData[r]._skip=!0,t.placement=J,t.reset=!0)}}const Aye={name:"flip",enabled:!0,phase:"main",fn:Pye,requiresIfExists:["offset"],data:{_skip:!1}};function aF(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function oF(e){return[Sl,Gu,Hu,xl].some(function(t){return e[t]>=0})}function Oye(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=mS(t,{elementContext:"reference"}),l=mS(t,{altBoundary:!0}),c=aF(o,r),d=aF(l,i,a),p=oF(c),g=oF(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const Dye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Oye};function Mye(e,t,n){var r=Bc(e),i=[xl,Sl].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],l=a[1];return o=o||0,l=(l||0)*i,[xl,Gu].indexOf(r)>=0?{x:l,y:o}:{x:o,y:l}}function jye(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=YB.reduce(function(p,g){return p[g]=Mye(g,t.rects,a),p},{}),l=o[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=o}const Iye={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jye};function Rye(e){var t=e.state,n=e.name;t.modifiersData[n]=iF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Nye={name:"popperOffsets",enabled:!0,phase:"read",fn:Rye,data:{}};function Lye(e){return e==="x"?"y":"x"}function zye(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,l=o===void 0?!1:o,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.padding,S=n.tether,w=S===void 0?!0:S,C=n.tetherOffset,k=C===void 0?0:C,P=mS(t,{boundary:c,rootBoundary:d,padding:g,altBoundary:p}),D=Bc(t.placement),M=ey(t.placement),R=!M,L=y3(D),z=Lye(L),U=t.modifiersData.popperOffsets,V=t.rects.reference,Y=t.rects.popper,J=typeof k=="function"?k(Object.assign({},t.rects,{placement:t.placement})):k,$=typeof J=="number"?{mainAxis:J,altAxis:J}:Object.assign({mainAxis:0,altAxis:0},J),K=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,fe={x:0,y:0};if(U){if(a){var X,G=L==="y"?Sl:xl,te=L==="y"?Hu:Gu,re=L==="y"?"height":"width",oe=U[L],ie=oe+P[G],le=oe-P[te],ee=w?-Y[re]/2:0,de=M===Z0?V[re]:Y[re],Fe=M===Z0?-Y[re]:-V[re],Pe=t.elements.arrow,Oe=w&&Pe?g3(Pe):{width:0,height:0},Ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ZB(),De=Ie[G],$e=Ie[te],it=hS(0,V[re],Oe[re]),mt=R?V[re]/2-ee-it-De-$.mainAxis:de-it-De-$.mainAxis,bt=R?-V[re]/2+ee+it+$e+$.mainAxis:Fe+it+$e+$.mainAxis,qe=t.elements.arrow&&fS(t.elements.arrow),Ce=qe?L==="y"?qe.clientTop||0:qe.clientLeft||0:0,Nt=(X=K==null?void 0:K[L])!=null?X:0,Ae=oe+mt-Nt-Ce,xt=oe+bt-Nt,ln=hS(w?HC(ie,Ae):ie,oe,w?Av(le,xt):le);U[L]=ln,fe[L]=ln-oe}if(l){var Wt,In=L==="x"?Sl:xl,ar=L==="x"?Hu:Gu,we=U[z],at=z==="y"?"height":"width",ot=we+P[In],yt=we-P[ar],He=[Sl,xl].indexOf(D)!==-1,st=(Wt=K==null?void 0:K[z])!=null?Wt:0,Zt=He?ot:we-V[at]-Y[at]-st+$.altAxis,nn=He?we+V[at]+Y[at]-st-$.altAxis:yt,Ze=w&&He?lye(Zt,we,nn):hS(w?Zt:ot,we,w?nn:yt);U[z]=Ze,fe[z]=Ze-we}t.modifiersData[r]=fe}}const Bye={name:"preventOverflow",enabled:!0,phase:"main",fn:zye,requiresIfExists:["offset"]};function Fye(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Uye(e){return e===Wu(e)||!eu(e)?b3(e):Fye(e)}function Vye(e){var t=e.getBoundingClientRect(),n=J0(t.width)/e.offsetWidth||1,r=J0(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Hye(e,t,n){n===void 0&&(n=!1);var r=eu(t),i=eu(t)&&Vye(t),a=Lp(t),o=$0(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Hd(t)!=="body"||x3(a))&&(l=Uye(t)),eu(t)?(c=$0(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=S3(a))),{x:o.left+l.scrollLeft-c.x,y:o.top+l.scrollTop-c.y,width:o.width,height:o.height}}function Gye(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function Wye(e){var t=Gye(e);return p3.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function qye(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function zp(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(i,a){return i.replace(/%s/,a)},e)}var Ov='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Yye='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',sF=["name","enabled","phase","fn","effect","requires","options"];function Kye(e){e.forEach(function(t){[].concat(Object.keys(t),sF).filter(function(n,r,i){return i.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(zp(Ov,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(zp(Ov,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":p3.indexOf(t.phase)<0&&console.error(zp(Ov,t.name,'"phase"',"either "+p3.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(zp(Ov,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(zp(Ov,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(zp(Ov,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(zp(Ov,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+sF.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(r){e.find(function(i){return i.name===r})==null&&console.error(zp(Yye,String(t.name),r,r))})})})}function Xye(e,t){var n=new Set;return e.filter(function(r){var i=t(r);if(!n.has(i))return n.add(i),!0})}function Qye(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var lF="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Zye="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",uF={placement:"bottom",modifiers:[],strategy:"absolute"};function cF(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Jye(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?uF:i;return function(l,c,d){d===void 0&&(d=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},uF,a),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},g=[],S=!1,w={state:p,setOptions:function(D){var M=typeof D=="function"?D(p.options):D;k(),p.options=Object.assign({},a,p.options,M),p.scrollParents={reference:Pv(l)?pS(l):l.contextElement?pS(l.contextElement):[],popper:pS(c)};var R=Wye(Qye([].concat(r,p.options.modifiers)));if(p.orderedModifiers=R.filter(function(K){return K.enabled}),process.env.NODE_ENV!=="production"){var L=Xye([].concat(R,p.options.modifiers),function(K){var fe=K.name;return fe});if(Kye(L),Bc(p.options.placement)===VC){var z=p.orderedModifiers.find(function(K){var fe=K.name;return fe==="flip"});z||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var U=Fc(c),V=U.marginTop,Y=U.marginRight,J=U.marginBottom,$=U.marginLeft;[V,Y,J,$].some(function(K){return parseFloat(K)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return C(),w.update()},forceUpdate:function(){if(!S){var D=p.elements,M=D.reference,R=D.popper;if(!cF(M,R)){process.env.NODE_ENV!=="production"&&console.error(lF);return}p.rects={reference:Hye(M,fS(R),p.options.strategy==="fixed"),popper:g3(R)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(K){return p.modifiersData[K.name]=Object.assign({},K.data)});for(var L=0,z=0;z<p.orderedModifiers.length;z++){if(process.env.NODE_ENV!=="production"&&(L+=1,L>100)){console.error(Zye);break}if(p.reset===!0){p.reset=!1,z=-1;continue}var U=p.orderedModifiers[z],V=U.fn,Y=U.options,J=Y===void 0?{}:Y,$=U.name;typeof V=="function"&&(p=V({state:p,options:J,name:$,instance:w})||p)}}},update:qye(function(){return new Promise(function(P){w.forceUpdate(),P(p)})}),destroy:function(){k(),S=!0}};if(!cF(l,c))return process.env.NODE_ENV!=="production"&&console.error(lF),w;w.setOptions(d).then(function(P){!S&&d.onFirstUpdate&&d.onFirstUpdate(P)});function C(){p.orderedModifiers.forEach(function(P){var D=P.name,M=P.options,R=M===void 0?{}:M,L=P.effect;if(typeof L=="function"){var z=L({state:p,name:D,instance:w,options:R}),U=function(){};g.push(z||U)}})}function k(){g.forEach(function(P){return P()}),g=[]}return w}}var $ye=[yye,Nye,vye,aye,Iye,Aye,Bye,fye,Dye],ebe=Jye({defaultModifiers:$ye});function C3(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:a=8,eventListeners:o=!0,offset:l,gutter:c=8,flip:d=!0,boundary:p="clippingParents",preventOverflow:g=!0,matchWidth:S,direction:w="ltr"}=e,C=A.useRef(null),k=A.useRef(null),P=A.useRef(null),D=W0e(r,w),M=A.useRef(()=>{}),R=A.useCallback(()=>{var $;!t||!C.current||!k.current||(($=M.current)==null||$.call(M),P.current=ebe(C.current,k.current,{placement:D,modifiers:[V0e,B0e,z0e,{...L0e,enabled:!!S},{name:"eventListeners",...N0e(o)},{name:"arrow",options:{padding:a}},{name:"offset",options:{offset:l??[0,c]}},{name:"flip",enabled:!!d,options:{padding:8}},{name:"preventOverflow",enabled:!!g,options:{boundary:p}},...n??[]],strategy:i}),P.current.forceUpdate(),M.current=P.current.destroy)},[D,t,n,S,o,a,l,c,d,g,p,i]);A.useEffect(()=>()=>{var $;!C.current&&!k.current&&(($=P.current)==null||$.destroy(),P.current=null)},[]);const L=A.useCallback($=>{C.current=$,R()},[R]),z=A.useCallback(($={},K=null)=>({...$,ref:ti(L,K)}),[L]),U=A.useCallback($=>{k.current=$,R()},[R]),V=A.useCallback(($={},K=null)=>({...$,ref:ti(U,K),style:{...$.style,position:i,minWidth:S?void 0:"max-content",inset:"0 auto auto 0"}}),[i,U,S]),Y=A.useCallback(($={},K=null)=>{const{size:fe,shadowColor:X,bg:G,style:te,...re}=$;return{...re,ref:K,"data-popper-arrow":"",style:tbe($)}},[]),J=A.useCallback(($={},K=null)=>({...$,ref:K,"data-popper-arrow-inner":""}),[]);return{update(){var $;($=P.current)==null||$.update()},forceUpdate(){var $;($=P.current)==null||$.forceUpdate()},transformOrigin:Ja.transformOrigin.varRef,referenceRef:L,popperRef:U,getPopperProps:V,getArrowProps:Y,getArrowInnerProps:J,getReferenceProps:z}}function tbe(e){const{size:t,shadowColor:n,bg:r,style:i}=e,a={...i,position:"absolute"};return t&&(a["--popper-arrow-size"]=t),n&&(a["--popper-arrow-shadow-color"]=n),r&&(a["--popper-arrow-bg"]=r),a}function E3(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,a=Ra(n),o=Ra(t),[l,c]=A.useState(e.defaultIsOpen||!1),d=r!==void 0?r:l,p=r!==void 0,g=A.useId(),S=i??`disclosure-${g}`,w=A.useCallback(()=>{p||c(!1),o==null||o()},[p,o]),C=A.useCallback(()=>{p||c(!0),a==null||a()},[p,a]),k=A.useCallback(()=>{d?w():C()},[d,C,w]);function P(M={}){return{...M,"aria-expanded":d,"aria-controls":S,onClick(R){var L;(L=M.onClick)==null||L.call(M,R),k()}}}function D(M={}){return{...M,hidden:!d,id:S}}return{isOpen:d,onOpen:C,onClose:w,onToggle:k,isControlled:p,getButtonProps:P,getDisclosureProps:D}}function nbe(e){const{ref:t,handler:n,enabled:r=!0}=e,i=Ra(n),o=A.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;A.useEffect(()=>{if(!r)return;const l=g=>{_3(g,t)&&(o.isPointerDown=!0)},c=g=>{if(o.ignoreEmulatedMouseEvents){o.ignoreEmulatedMouseEvents=!1;return}o.isPointerDown&&n&&_3(g,t)&&(o.isPointerDown=!1,i(g))},d=g=>{o.ignoreEmulatedMouseEvents=!0,n&&o.isPointerDown&&_3(g,t)&&(o.isPointerDown=!1,i(g))},p=dF(t.current);return p.addEventListener("mousedown",l,!0),p.addEventListener("mouseup",c,!0),p.addEventListener("touchstart",l,!0),p.addEventListener("touchend",d,!0),()=>{p.removeEventListener("mousedown",l,!0),p.removeEventListener("mouseup",c,!0),p.removeEventListener("touchstart",l,!0),p.removeEventListener("touchend",d,!0)}},[n,t,i,o,r])}function _3(e,t){var n;const r=e.target;return e.button>0||r&&!dF(r).contains(r)?!1:!((n=t.current)!=null&&n.contains(r))}function dF(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function fF(e){const{isOpen:t,ref:n}=e,[r,i]=A.useState(t),[a,o]=A.useState(!1);return A.useEffect(()=>{a||(i(t),o(!0))},[t,a,r]),Tv(()=>n.current,"animationend",()=>{i(t)}),{present:!(t?!1:!r),onComplete(){var c;const d=r0e(n.current),p=new d.CustomEvent("animationend",{bubbles:!0});(c=n.current)==null||c.dispatchEvent(p)}}}function T3(e){const{wasSelected:t,enabled:n,isSelected:r,mode:i="unmount"}=e;return!!(!n||r||i==="keepMounted"&&t)}var[rbe,ibe,abe,obe]=S5(),[sbe,vS]=Kr({strict:!1,name:"MenuContext"});function lbe(e,...t){const n=A.useId(),r=e||n;return A.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}function hF(e){var t;return(t=e==null?void 0:e.ownerDocument)!=null?t:document}function pF(e){return hF(e).activeElement===e}function ube(e={}){const{id:t,closeOnSelect:n=!0,closeOnBlur:r=!0,initialFocusRef:i,autoSelect:a=!0,isLazy:o,isOpen:l,defaultIsOpen:c,onClose:d,onOpen:p,placement:g="bottom-start",lazyBehavior:S="unmount",direction:w,computePositionOnMount:C=!1,...k}=e,P=A.useRef(null),D=A.useRef(null),M=abe(),R=A.useCallback(()=>{requestAnimationFrame(()=>{var Pe;(Pe=P.current)==null||Pe.focus({preventScroll:!1})})},[]),L=A.useCallback(()=>{const Pe=setTimeout(()=>{var Oe;if(i)(Oe=i.current)==null||Oe.focus();else{const Ie=M.firstEnabled();Ie&&X(Ie.index)}});ie.current.add(Pe)},[M,i]),z=A.useCallback(()=>{const Pe=setTimeout(()=>{const Oe=M.lastEnabled();Oe&&X(Oe.index)});ie.current.add(Pe)},[M]),U=A.useCallback(()=>{p==null||p(),a?L():R()},[a,L,R,p]),{isOpen:V,onOpen:Y,onClose:J,onToggle:$}=E3({isOpen:l,defaultIsOpen:c,onClose:d,onOpen:U});nbe({enabled:V&&r,ref:P,handler:Pe=>{var Oe;(Oe=D.current)!=null&&Oe.contains(Pe.target)||J()}});const K=C3({...k,enabled:V||C,placement:g,direction:w}),[fe,X]=A.useState(-1);oh(()=>{V||X(-1)},[V]),UB(P,{focusRef:D,visible:V,shouldFocus:!0});const G=fF({isOpen:V,ref:P}),[te,re]=lbe(t,"menu-button","menu-list"),oe=A.useCallback(()=>{Y(),R()},[Y,R]),ie=A.useRef(new Set([]));vbe(()=>{ie.current.forEach(Pe=>clearTimeout(Pe)),ie.current.clear()});const le=A.useCallback(()=>{Y(),L()},[L,Y]),ee=A.useCallback(()=>{Y(),z()},[Y,z]),de=A.useCallback(()=>{var Pe,Oe;const Ie=hF(P.current),De=(Pe=P.current)==null?void 0:Pe.contains(Ie.activeElement);if(!(V&&!De))return;const it=(Oe=M.item(fe))==null?void 0:Oe.node;it==null||it.focus()},[V,fe,M]),Fe=A.useRef(null);return{openAndFocusMenu:oe,openAndFocusFirstItem:le,openAndFocusLastItem:ee,onTransitionEnd:de,unstable__animationState:G,descendants:M,popper:K,buttonId:te,menuId:re,forceUpdate:K.forceUpdate,orientation:"vertical",isOpen:V,onToggle:$,onOpen:Y,onClose:J,menuRef:P,buttonRef:D,focusedIndex:fe,closeOnSelect:n,closeOnBlur:r,autoSelect:a,setFocusedIndex:X,isLazy:o,lazyBehavior:S,initialFocusRef:i,rafId:Fe}}function cbe(e={},t=null){const n=vS(),{onToggle:r,popper:i,openAndFocusFirstItem:a,openAndFocusLastItem:o}=n,l=A.useCallback(c=>{const d=c.key,g={Enter:a,ArrowDown:a,ArrowUp:o}[d];g&&(c.preventDefault(),c.stopPropagation(),g(c))},[a,o]);return{...e,ref:ti(n.buttonRef,t,i.referenceRef),id:n.buttonId,"data-active":Jn(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:Qt(e.onClick,r),onKeyDown:Qt(e.onKeyDown,l)}}function k3(e){var t;return pbe(e)&&!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function dbe(e={},t=null){const n=vS();if(!n)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");const{focusedIndex:r,setFocusedIndex:i,menuRef:a,isOpen:o,onClose:l,menuId:c,isLazy:d,lazyBehavior:p,unstable__animationState:g}=n,S=ibe(),w=T0e({preventDefault:D=>D.key!==" "&&k3(D.target)}),C=A.useCallback(D=>{const M=D.key,L={Tab:U=>U.preventDefault(),Escape:l,ArrowDown:()=>{const U=S.nextEnabled(r);U&&i(U.index)},ArrowUp:()=>{const U=S.prevEnabled(r);U&&i(U.index)}}[M];if(L){D.preventDefault(),L(D);return}const z=w(U=>{const V=k0e(S.values(),U,Y=>{var J,$;return($=(J=Y==null?void 0:Y.node)==null?void 0:J.textContent)!=null?$:""},S.item(r));if(V){const Y=S.indexOf(V.node);i(Y)}});k3(D.target)&&z(D)},[S,r,w,l,i]),k=A.useRef(!1);o&&(k.current=!0);const P=T3({wasSelected:k.current,enabled:d,mode:p,isSelected:g.present});return{...e,ref:ti(a,t),children:P?e.children:null,tabIndex:-1,role:"menu",id:c,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:Qt(e.onKeyDown,C)}}function fbe(e={}){const{popper:t,isOpen:n}=vS();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function hbe(e={},t=null){const{onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onClick:a,onFocus:o,isDisabled:l,isFocusable:c,closeOnSelect:d,type:p,...g}=e,S=vS(),{setFocusedIndex:w,focusedIndex:C,closeOnSelect:k,onClose:P,menuRef:D,isOpen:M,menuId:R,rafId:L}=S,z=A.useRef(null),U=`${R}-menuitem-${A.useId()}`,{index:V,register:Y}=obe({disabled:l&&!c}),J=A.useCallback(oe=>{n==null||n(oe),!l&&w(V)},[w,V,l,n]),$=A.useCallback(oe=>{r==null||r(oe),z.current&&!pF(z.current)&&J(oe)},[J,r]),K=A.useCallback(oe=>{i==null||i(oe),!l&&w(-1)},[w,l,i]),fe=A.useCallback(oe=>{a==null||a(oe),k3(oe.currentTarget)&&(d??k)&&P()},[P,a,k,d]),X=A.useCallback(oe=>{o==null||o(oe),w(V)},[w,o,V]),G=V===C,te=l&&!c;oh(()=>{M&&(G&&!te&&z.current?(L.current&&cancelAnimationFrame(L.current),L.current=requestAnimationFrame(()=>{var oe;(oe=z.current)==null||oe.focus(),L.current=null})):D.current&&!pF(D.current)&&D.current.focus())},[G,te,D,M]);const re=FB({onClick:fe,onFocus:X,onMouseEnter:J,onMouseMove:$,onMouseLeave:K,ref:ti(Y,z,t),isDisabled:l,isFocusable:c});return{...g,...re,type:p??re.type,id:U,role:"menuitem",tabIndex:G?0:-1}}function pbe(e){var t;if(!mbe(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function mbe(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function vbe(e,t=[]){return A.useEffect(()=>()=>e(),t)}var[gbe,YC]=Kr({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Menu />" `}),P3=e=>{const{children:t}=e,n=Yo("Menu",e),r=Si(e),{direction:i}=Cp(),{descendants:a,...o}=ube({...r,direction:i}),l=A.useMemo(()=>o,[o]),{isOpen:c,onClose:d,forceUpdate:p}=l;return v.jsx(rbe,{value:a,children:v.jsx(sbe,{value:l,children:v.jsx(gbe,{value:n,children:Ru(t,{isOpen:c,onClose:d,forceUpdate:p})})})})};P3.displayName="Menu";var mF=Et((e,t)=>{const n=YC();return v.jsx(dt.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});mF.displayName="MenuCommand";var ybe=Et((e,t)=>{const{type:n,...r}=e,i=YC(),a=r.as||n?n??void 0:"button",o=A.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...i.item}),[i.item]);return v.jsx(dt.button,{ref:t,type:a,...r,__css:o})}),vF=e=>{const{className:t,children:n,...r}=e,i=A.Children.only(n),a=A.isValidElement(i)?A.cloneElement(i,{focusable:"false","aria-hidden":!0,className:sn("chakra-menu__icon",i.props.className)}):null,o=sn("chakra-menu__icon-wrapper",t);return v.jsx(dt.span,{className:o,...r,__css:{flexShrink:0},children:a})};vF.displayName="MenuIcon";var Gd=Et((e,t)=>{const{icon:n,iconSpacing:r="0.75rem",command:i,commandSpacing:a="0.75rem",children:o,...l}=e,c=hbe(l,t),p=n||i?v.jsx("span",{style:{pointerEvents:"none",flex:1},children:o}):o;return v.jsxs(ybe,{...c,className:sn("chakra-menu__menuitem",c.className),children:[n&&v.jsx(vF,{fontSize:"0.8em",marginEnd:r,children:n}),p,i&&v.jsx(mF,{marginStart:a,children:i})]})});Gd.displayName="MenuItem";var bbe={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},Sbe=dt(Uu.div),A3=Et(function(t,n){var r,i;const{rootProps:a,motionProps:o,...l}=t,{isOpen:c,onTransitionEnd:d,unstable__animationState:p}=vS(),g=dbe(l,n),S=fbe(a),w=YC();return v.jsx(dt.div,{...S,__css:{zIndex:(i=t.zIndex)!=null?i:(r=w.list)==null?void 0:r.zIndex},children:v.jsx(Sbe,{variants:bbe,initial:!1,animate:c?"enter":"exit",__css:{outline:0,...w.list},...o,className:sn("chakra-menu__menu-list",g.className),...g,onUpdate:d,onAnimationComplete:zw(p.onComplete,g.onAnimationComplete)})})});A3.displayName="MenuList";var xbe=Et((e,t)=>{const n=YC();return v.jsx(dt.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),O3=Et((e,t)=>{const{children:n,as:r,...i}=e,a=cbe(i,t),o=r||xbe;return v.jsx(o,{...a,className:sn("chakra-menu__menu-button",e.className),children:v.jsx(dt.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});O3.displayName="MenuButton";var wbe={slideInBottom:{..._5,custom:{offsetY:16,reverse:!0}},slideInRight:{..._5,custom:{offsetX:16,reverse:!0}},scale:{...p7,custom:{initialScale:.95,reverse:!0}},none:{}},Cbe=dt(Uu.section),Ebe=e=>wbe[e||"none"],gF=A.forwardRef((e,t)=>{const{preset:n,motionProps:r=Ebe(n),...i}=e;return v.jsx(Cbe,{ref:t,...r,...i})});gF.displayName="ModalTransition";var _be=Object.defineProperty,Tbe=(e,t,n)=>t in e?_be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kbe=(e,t,n)=>(Tbe(e,typeof t!="symbol"?t+"":t,n),n),Pbe=class{constructor(){kbe(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},D3=new Pbe;function yF(e,t){const[n,r]=A.useState(0);return A.useEffect(()=>{const i=e.current;if(i){if(t){const a=D3.add(i);r(a)}return()=>{D3.remove(i),r(0)}}},[t,e]),n}var Abe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ty=new WeakMap,KC=new WeakMap,XC={},M3=0,bF=function(e){return e&&(e.host||bF(e.parentNode))},Obe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=bF(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return Boolean(n)})},Dbe=function(e,t,n,r){var i=Obe(t,Array.isArray(e)?e:[e]);XC[n]||(XC[n]=new WeakMap);var a=XC[n],o=[],l=new Set,c=new Set(i),d=function(g){!g||l.has(g)||(l.add(g),d(g.parentNode))};i.forEach(d);var p=function(g){!g||c.has(g)||Array.prototype.forEach.call(g.children,function(S){if(l.has(S))p(S);else{var w=S.getAttribute(r),C=w!==null&&w!=="false",k=(ty.get(S)||0)+1,P=(a.get(S)||0)+1;ty.set(S,k),a.set(S,P),o.push(S),k===1&&C&&KC.set(S,!0),P===1&&S.setAttribute(n,"true"),C||S.setAttribute(r,"true")}})};return p(t),l.clear(),M3++,function(){o.forEach(function(g){var S=ty.get(g)-1,w=a.get(g)-1;ty.set(g,S),a.set(g,w),S||(KC.has(g)||g.removeAttribute(r),KC.delete(g)),w||g.removeAttribute(n)}),M3--,M3||(ty=new WeakMap,ty=new WeakMap,KC=new WeakMap,XC={})}},Mbe=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||Abe(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),Dbe(r,i,n,"aria-hidden")):function(){return null}};function jbe(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:a=!0,useInert:o=!0,onOverlayClick:l,onEsc:c}=e,d=A.useRef(null),p=A.useRef(null),[g,S,w]=Rbe(r,"chakra-modal","chakra-modal--header","chakra-modal--body");Ibe(d,t&&o),yF(d,t);const C=A.useRef(null),k=A.useCallback(Y=>{C.current=Y.target},[]),P=A.useCallback(Y=>{Y.key==="Escape"&&(Y.stopPropagation(),a&&(n==null||n()),c==null||c())},[a,n,c]),[D,M]=A.useState(!1),[R,L]=A.useState(!1),z=A.useCallback((Y={},J=null)=>({role:"dialog",...Y,ref:ti(J,d),id:g,tabIndex:-1,"aria-modal":!0,"aria-labelledby":D?S:void 0,"aria-describedby":R?w:void 0,onClick:Qt(Y.onClick,$=>$.stopPropagation())}),[w,R,g,S,D]),U=A.useCallback(Y=>{Y.stopPropagation(),C.current===Y.target&&D3.isTopModal(d.current)&&(i&&(n==null||n()),l==null||l())},[n,i,l]),V=A.useCallback((Y={},J=null)=>({...Y,ref:ti(J,p),onClick:Qt(Y.onClick,U),onKeyDown:Qt(Y.onKeyDown,P),onMouseDown:Qt(Y.onMouseDown,k)}),[P,k,U]);return{isOpen:t,onClose:n,headerId:S,bodyId:w,setBodyMounted:L,setHeaderMounted:M,dialogRef:d,overlayRef:p,getDialogProps:z,getDialogContainerProps:V}}function Ibe(e,t){const n=e.current;A.useEffect(()=>{if(!(!e.current||!t))return Mbe(e.current)},[t,e,n])}function Rbe(e,...t){const n=A.useId(),r=e||n;return A.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}var[Nbe,ny]=Kr({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[Lbe,Dv]=Kr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Bp=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:i,trapFocus:a,initialFocusRef:o,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:d,allowPinchZoom:p,preserveScrollBarGap:g,motionPreset:S,lockFocusAcrossFrames:w,onCloseComplete:C}=t,k=Yo("Modal",t),D={...jbe(t),autoFocus:i,trapFocus:a,initialFocusRef:o,finalFocusRef:l,returnFocusOnClose:c,blockScrollOnMount:d,allowPinchZoom:p,preserveScrollBarGap:g,motionPreset:S,lockFocusAcrossFrames:w};return v.jsx(Lbe,{value:D,children:v.jsx(Nbe,{value:k,children:v.jsx(ch,{onExitComplete:C,children:D.isOpen&&v.jsx($f,{...n,children:r})})})})};Bp.displayName="Modal";var QC="right-scroll-bar-position",ZC="width-before-scroll-bar",zbe="with-scroll-bars-hidden",Bbe="--removed-body-scroll-bar-size",SF=q7(),j3=function(){},JC=vt.forwardRef(function(e,t){var n=vt.useRef(null),r=vt.useState({onScrollCapture:j3,onWheelCapture:j3,onTouchMoveCapture:j3}),i=r[0],a=r[1],o=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,p=e.enabled,g=e.shards,S=e.sideCar,w=e.noIsolation,C=e.inert,k=e.allowPinchZoom,P=e.as,D=P===void 0?"div":P,M=V7(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),R=S,L=U7([n,t]),z=Ud(Ud({},M),i);return vt.createElement(vt.Fragment,null,p&&vt.createElement(R,{sideCar:SF,removeScrollBar:d,shards:g,noIsolation:w,inert:C,setCallbacks:a,allowPinchZoom:!!k,lockRef:n}),o?vt.cloneElement(vt.Children.only(l),Ud(Ud({},z),{ref:L})):vt.createElement(D,Ud({},z,{className:c,ref:L}),l))});JC.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},JC.classNames={fullWidth:ZC,zeroRight:QC};var xF,Fbe=function(){if(xF)return xF;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ube(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Fbe();return t&&e.setAttribute("nonce",t),e}function Vbe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Hbe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Gbe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ube())&&(Vbe(t,n),Hbe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Wbe=function(){var e=Gbe();return function(t,n){vt.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},wF=function(){var e=Wbe(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},qbe={left:0,top:0,right:0,gap:0},I3=function(e){return parseInt(e||"",10)||0},Ybe=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[I3(n),I3(r),I3(i)]},Kbe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return qbe;var t=Ybe(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Xbe=wF(),Qbe=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
||
.`.concat(zbe,` {
|
||
overflow: hidden `).concat(r,`;
|
||
padding-right: `).concat(l,"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(a,`px;
|
||
padding-right: `).concat(o,`px;
|
||
margin-left:0;
|
||
margin-top:0;
|
||
margin-right: `).concat(l,"px ").concat(r,`;
|
||
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
|
||
}
|
||
|
||
.`).concat(QC,` {
|
||
right: `).concat(l,"px ").concat(r,`;
|
||
}
|
||
|
||
.`).concat(ZC,` {
|
||
margin-right: `).concat(l,"px ").concat(r,`;
|
||
}
|
||
|
||
.`).concat(QC," .").concat(QC,` {
|
||
right: 0 `).concat(r,`;
|
||
}
|
||
|
||
.`).concat(ZC," .").concat(ZC,` {
|
||
margin-right: 0 `).concat(r,`;
|
||
}
|
||
|
||
body {
|
||
`).concat(Bbe,": ").concat(l,`px;
|
||
}
|
||
`)},Zbe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,a=vt.useMemo(function(){return Kbe(i)},[i]);return vt.createElement(Xbe,{styles:Qbe(a,!t,i,n?"":"!important")})},R3=!1;if(typeof window<"u")try{var $C=Object.defineProperty({},"passive",{get:function(){return R3=!0,!0}});window.addEventListener("test",$C,$C),window.removeEventListener("test",$C,$C)}catch{R3=!1}var ry=R3?{passive:!1}:!1,Jbe=function(e){return e.tagName==="TEXTAREA"},CF=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Jbe(e)&&n[t]==="visible")},$be=function(e){return CF(e,"overflowY")},e1e=function(e){return CF(e,"overflowX")},EF=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=_F(e,n);if(r){var i=TF(e,n),a=i[1],o=i[2];if(a>o)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},t1e=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},n1e=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},_F=function(e,t){return e==="v"?$be(t):e1e(t)},TF=function(e,t){return e==="v"?t1e(t):n1e(t)},r1e=function(e,t){return e==="h"&&t==="rtl"?-1:1},i1e=function(e,t,n,r,i){var a=r1e(e,window.getComputedStyle(t).direction),o=a*r,l=n.target,c=t.contains(l),d=!1,p=o>0,g=0,S=0;do{var w=TF(e,l),C=w[0],k=w[1],P=w[2],D=k-P-a*C;(C||D)&&_F(e,l)&&(g+=D,S+=C),l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(p&&(i&&g===0||!i&&o>g)||!p&&(i&&S===0||!i&&-o>S))&&(d=!0),d},eE=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},kF=function(e){return[e.deltaX,e.deltaY]},PF=function(e){return e&&"current"in e?e.current:e},a1e=function(e,t){return e[0]===t[0]&&e[1]===t[1]},o1e=function(e){return`
|
||
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
`)},s1e=0,iy=[];function l1e(e){var t=vt.useRef([]),n=vt.useRef([0,0]),r=vt.useRef(),i=vt.useState(s1e++)[0],a=vt.useState(function(){return wF()})[0],o=vt.useRef(e);vt.useEffect(function(){o.current=e},[e]),vt.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var k=K5([e.lockRef.current],(e.shards||[]).map(PF),!0).filter(Boolean);return k.forEach(function(P){return P.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),k.forEach(function(P){return P.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=vt.useCallback(function(k,P){if("touches"in k&&k.touches.length===2)return!o.current.allowPinchZoom;var D=eE(k),M=n.current,R="deltaX"in k?k.deltaX:M[0]-D[0],L="deltaY"in k?k.deltaY:M[1]-D[1],z,U=k.target,V=Math.abs(R)>Math.abs(L)?"h":"v";if("touches"in k&&V==="h"&&U.type==="range")return!1;var Y=EF(V,U);if(!Y)return!0;if(Y?z=V:(z=V==="v"?"h":"v",Y=EF(V,U)),!Y)return!1;if(!r.current&&"changedTouches"in k&&(R||L)&&(r.current=z),!z)return!0;var J=r.current||z;return i1e(J,P,k,J==="h"?R:L,!0)},[]),c=vt.useCallback(function(k){var P=k;if(!(!iy.length||iy[iy.length-1]!==a)){var D="deltaY"in P?kF(P):eE(P),M=t.current.filter(function(z){return z.name===P.type&&z.target===P.target&&a1e(z.delta,D)})[0];if(M&&M.should){P.cancelable&&P.preventDefault();return}if(!M){var R=(o.current.shards||[]).map(PF).filter(Boolean).filter(function(z){return z.contains(P.target)}),L=R.length>0?l(P,R[0]):!o.current.noIsolation;L&&P.cancelable&&P.preventDefault()}}},[]),d=vt.useCallback(function(k,P,D,M){var R={name:k,delta:P,target:D,should:M};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(L){return L!==R})},1)},[]),p=vt.useCallback(function(k){n.current=eE(k),r.current=void 0},[]),g=vt.useCallback(function(k){d(k.type,kF(k),k.target,l(k,e.lockRef.current))},[]),S=vt.useCallback(function(k){d(k.type,eE(k),k.target,l(k,e.lockRef.current))},[]);vt.useEffect(function(){return iy.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:S}),document.addEventListener("wheel",c,ry),document.addEventListener("touchmove",c,ry),document.addEventListener("touchstart",p,ry),function(){iy=iy.filter(function(k){return k!==a}),document.removeEventListener("wheel",c,ry),document.removeEventListener("touchmove",c,ry),document.removeEventListener("touchstart",p,ry)}},[]);var w=e.removeScrollBar,C=e.inert;return vt.createElement(vt.Fragment,null,C?vt.createElement(a,{styles:o1e(i)}):null,w?vt.createElement(Zbe,{gapMode:"margin"}):null)}const u1e=age(SF,l1e);var AF=vt.forwardRef(function(e,t){return vt.createElement(JC,Ud({},e,{ref:t,sideCar:u1e}))});AF.classNames=JC.classNames;const c1e=AF;function d1e(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:a,allowPinchZoom:o,finalFocusRef:l,returnFocusOnClose:c,preserveScrollBarGap:d,lockFocusAcrossFrames:p,isOpen:g}=Dv(),[S,w]=hz();A.useEffect(()=>{!S&&w&&setTimeout(w)},[S,w]);const C=yF(r,g);return v.jsx(DB,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:l,restoreFocus:c,contentRef:r,lockFocusAcrossFrames:p,children:v.jsx(c1e,{removeScrollBar:!d,allowPinchZoom:o,enabled:C===1&&a,forwardProps:!0,children:e.children})})}var Fp=Et((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:a,...o}=e,{getDialogProps:l,getDialogContainerProps:c}=Dv(),d=l(o,t),p=c(i),g=sn("chakra-modal__content",n),S=ny(),w={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...S.dialog},C={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...S.dialogContainer},{motionPreset:k}=Dv();return v.jsx(d1e,{children:v.jsx(dt.div,{...p,className:"chakra-modal__content-container",tabIndex:-1,__css:C,children:v.jsx(gF,{preset:k,motionProps:a,className:g,...d,__css:w,children:r})})})});Fp.displayName="ModalContent";function OF(e){const{leastDestructiveRef:t,...n}=e;return v.jsx(Bp,{...n,initialFocusRef:t})}var DF=Et((e,t)=>v.jsx(Fp,{ref:t,role:"alertdialog",...e})),dh=Et((e,t)=>{const{className:n,...r}=e,i=sn("chakra-modal__footer",n),o={display:"flex",alignItems:"center",justifyContent:"flex-end",...ny().footer};return v.jsx(dt.footer,{ref:t,...r,__css:o,className:i})});dh.displayName="ModalFooter";var fh=Et((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:a}=Dv();A.useEffect(()=>(a(!0),()=>a(!1)),[a]);const o=sn("chakra-modal__header",n),c={flex:0,...ny().header};return v.jsx(dt.header,{ref:t,className:o,id:i,...r,__css:c})});fh.displayName="ModalHeader";var f1e=dt(Uu.div),hh=Et((e,t)=>{const{className:n,transition:r,motionProps:i,...a}=e,o=sn("chakra-modal__overlay",n),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...ny().overlay},{motionPreset:d}=Dv(),g=i||(d==="none"?{}:h7);return v.jsx(f1e,{...g,__css:c,ref:t,className:o,...a})});hh.displayName="ModalOverlay";var ph=Et((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:a}=Dv();A.useEffect(()=>(a(!0),()=>a(!1)),[a]);const o=sn("chakra-modal__body",n),l=ny();return v.jsx(dt.div,{ref:t,className:o,id:i,...r,__css:l.body})});ph.displayName="ModalBody";var ay=Et((e,t)=>{const{onClick:n,className:r,...i}=e,{onClose:a}=Dv(),o=sn("chakra-modal__close-btn",r),l=ny();return v.jsx(y5,{ref:t,__css:l.closeButton,className:o,onClick:Qt(n,c=>{c.stopPropagation(),a()}),...i})});ay.displayName="ModalCloseButton";var h1e=e=>v.jsx(Pa,{viewBox:"0 0 24 24",...e,children:v.jsx("path",{fill:"currentColor",d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z"})}),p1e=e=>v.jsx(Pa,{viewBox:"0 0 24 24",...e,children:v.jsx("path",{fill:"currentColor",d:"M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z"})});function MF(e,t,n,r){A.useEffect(()=>{var i;if(!e.current||!r)return;const a=(i=e.current.ownerDocument.defaultView)!=null?i:window,o=Array.isArray(t)?t:[t],l=new a.MutationObserver(c=>{for(const d of c)d.type==="attributes"&&d.attributeName&&o.includes(d.attributeName)&&n(d)});return l.observe(e.current,{attributes:!0,attributeFilter:o}),()=>l.disconnect()})}function m1e(e,t){const n=Ra(e);A.useEffect(()=>{let r=null;const i=()=>n();return t!==null&&(r=window.setInterval(i,t)),()=>{r&&window.clearInterval(r)}},[t,n])}var v1e=50,jF=300;function g1e(e,t){const[n,r]=A.useState(!1),[i,a]=A.useState(null),[o,l]=A.useState(!0),c=A.useRef(null),d=()=>clearTimeout(c.current);m1e(()=>{i==="increment"&&e(),i==="decrement"&&t()},n?v1e:null);const p=A.useCallback(()=>{o&&e(),c.current=setTimeout(()=>{l(!1),r(!0),a("increment")},jF)},[e,o]),g=A.useCallback(()=>{o&&t(),c.current=setTimeout(()=>{l(!1),r(!0),a("decrement")},jF)},[t,o]),S=A.useCallback(()=>{l(!0),r(!1),d()},[]);return A.useEffect(()=>()=>d(),[]),{up:p,down:g,stop:S,isSpinning:n}}var y1e=/^[Ee0-9+\-.]$/;function b1e(e){return y1e.test(e)}function S1e(e,t){if(e.key==null)return!0;const n=e.ctrlKey||e.altKey||e.metaKey;return!(e.key.length===1)||n?!0:t(e.key)}function x1e(e={}){const{focusInputOnChange:t=!0,clampValueOnBlur:n=!0,keepWithinRange:r=!0,min:i=Number.MIN_SAFE_INTEGER,max:a=Number.MAX_SAFE_INTEGER,step:o=1,isReadOnly:l,isDisabled:c,isRequired:d,isInvalid:p,pattern:g="[0-9]*(.[0-9]+)?",inputMode:S="decimal",allowMouseWheel:w,id:C,onChange:k,precision:P,name:D,"aria-describedby":M,"aria-label":R,"aria-labelledby":L,onFocus:z,onBlur:U,onInvalid:V,getAriaValueText:Y,isValidCharacter:J,format:$,parse:K,...fe}=e,X=Ra(z),G=Ra(U),te=Ra(V),re=Ra(J??b1e),oe=Ra(Y),ie=Fve(e),{update:le,increment:ee,decrement:de}=ie,[Fe,Pe]=A.useState(!1),Oe=!(l||c),Ie=A.useRef(null),De=A.useRef(null),$e=A.useRef(null),it=A.useRef(null),mt=A.useCallback(Ze=>Ze.split("").filter(re).join(""),[re]),bt=A.useCallback(Ze=>{var rn;return(rn=K==null?void 0:K(Ze))!=null?rn:Ze},[K]),qe=A.useCallback(Ze=>{var rn;return((rn=$==null?void 0:$(Ze))!=null?rn:Ze).toString()},[$]);oh(()=>{(ie.valueAsNumber>a||ie.valueAsNumber<i)&&(te==null||te("rangeOverflow",qe(ie.value),ie.valueAsNumber))},[ie.valueAsNumber,ie.value,qe,te]),jd(()=>{if(!Ie.current)return;if(Ie.current.value!=ie.value){const rn=bt(Ie.current.value);ie.setValue(mt(rn))}},[bt,mt]);const Ce=A.useCallback((Ze=o)=>{Oe&&ee(Ze)},[ee,Oe,o]),Nt=A.useCallback((Ze=o)=>{Oe&&de(Ze)},[de,Oe,o]),Ae=g1e(Ce,Nt);MF($e,"disabled",Ae.stop,Ae.isSpinning),MF(it,"disabled",Ae.stop,Ae.isSpinning);const xt=A.useCallback(Ze=>{if(Ze.nativeEvent.isComposing)return;const Rn=bt(Ze.currentTarget.value);le(mt(Rn)),De.current={start:Ze.currentTarget.selectionStart,end:Ze.currentTarget.selectionEnd}},[le,mt,bt]),ln=A.useCallback(Ze=>{var rn,Rn,lt;X==null||X(Ze),De.current&&(Ze.target.selectionStart=(Rn=De.current.start)!=null?Rn:(rn=Ze.currentTarget.value)==null?void 0:rn.length,Ze.currentTarget.selectionEnd=(lt=De.current.end)!=null?lt:Ze.currentTarget.selectionStart)},[X]),Wt=A.useCallback(Ze=>{if(Ze.nativeEvent.isComposing)return;S1e(Ze,re)||Ze.preventDefault();const rn=In(Ze)*o,Rn=Ze.key,Ge={ArrowUp:()=>Ce(rn),ArrowDown:()=>Nt(rn),Home:()=>le(i),End:()=>le(a)}[Rn];Ge&&(Ze.preventDefault(),Ge(Ze))},[re,o,Ce,Nt,le,i,a]),In=Ze=>{let rn=1;return(Ze.metaKey||Ze.ctrlKey)&&(rn=.1),Ze.shiftKey&&(rn=10),rn},ar=A.useMemo(()=>{const Ze=oe==null?void 0:oe(ie.value);if(Ze!=null)return Ze;const rn=ie.value.toString();return rn||void 0},[ie.value,oe]),we=A.useCallback(()=>{let Ze=ie.value;if(ie.value==="")return;/^[eE]/.test(ie.value.toString())?ie.setValue(""):(ie.valueAsNumber<i&&(Ze=i),ie.valueAsNumber>a&&(Ze=a),ie.cast(Ze))},[ie,a,i]),at=A.useCallback(()=>{Pe(!1),n&&we()},[n,Pe,we]),ot=A.useCallback(()=>{t&&requestAnimationFrame(()=>{var Ze;(Ze=Ie.current)==null||Ze.focus()})},[t]),yt=A.useCallback(Ze=>{Ze.preventDefault(),Ae.up(),ot()},[ot,Ae]),He=A.useCallback(Ze=>{Ze.preventDefault(),Ae.down(),ot()},[ot,Ae]);Tv(()=>Ie.current,"wheel",Ze=>{var rn,Rn;const Ge=((Rn=(rn=Ie.current)==null?void 0:rn.ownerDocument)!=null?Rn:document).activeElement===Ie.current;if(!w||!Ge)return;Ze.preventDefault();const pt=In(Ze)*o,Bt=Math.sign(Ze.deltaY);Bt===-1?Ce(pt):Bt===1&&Nt(pt)},{passive:!1});const st=A.useCallback((Ze={},rn=null)=>{const Rn=c||r&&ie.isAtMax;return{...Ze,ref:ti(rn,$e),role:"button",tabIndex:-1,onPointerDown:Qt(Ze.onPointerDown,lt=>{lt.button!==0||Rn||yt(lt)}),onPointerLeave:Qt(Ze.onPointerLeave,Ae.stop),onPointerUp:Qt(Ze.onPointerUp,Ae.stop),disabled:Rn,"aria-disabled":eh(Rn)}},[ie.isAtMax,r,yt,Ae.stop,c]),Zt=A.useCallback((Ze={},rn=null)=>{const Rn=c||r&&ie.isAtMin;return{...Ze,ref:ti(rn,it),role:"button",tabIndex:-1,onPointerDown:Qt(Ze.onPointerDown,lt=>{lt.button!==0||Rn||He(lt)}),onPointerLeave:Qt(Ze.onPointerLeave,Ae.stop),onPointerUp:Qt(Ze.onPointerUp,Ae.stop),disabled:Rn,"aria-disabled":eh(Rn)}},[ie.isAtMin,r,He,Ae.stop,c]),nn=A.useCallback((Ze={},rn=null)=>{var Rn,lt,Ge,pt;return{name:D,inputMode:S,type:"text",pattern:g,"aria-labelledby":L,"aria-label":R,"aria-describedby":M,id:C,disabled:c,...Ze,readOnly:(Rn=Ze.readOnly)!=null?Rn:l,"aria-readonly":(lt=Ze.readOnly)!=null?lt:l,"aria-required":(Ge=Ze.required)!=null?Ge:d,required:(pt=Ze.required)!=null?pt:d,ref:ti(Ie,rn),value:qe(ie.value),role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":Number.isNaN(ie.valueAsNumber)?void 0:ie.valueAsNumber,"aria-invalid":eh(p??ie.isOutOfRange),"aria-valuetext":ar,autoComplete:"off",autoCorrect:"off",onChange:Qt(Ze.onChange,xt),onKeyDown:Qt(Ze.onKeyDown,Wt),onFocus:Qt(Ze.onFocus,ln,()=>Pe(!0)),onBlur:Qt(Ze.onBlur,G,at)}},[D,S,g,L,R,qe,M,C,c,d,l,p,ie.value,ie.valueAsNumber,ie.isOutOfRange,i,a,ar,xt,Wt,ln,G,at]);return{value:qe(ie.value),valueAsNumber:ie.valueAsNumber,isFocused:Fe,isDisabled:c,isReadOnly:l,getIncrementButtonProps:st,getDecrementButtonProps:Zt,getInputProps:nn,htmlProps:fe}}var[w1e,tE]=Kr({name:"NumberInputStylesContext",errorMessage:`useNumberInputStyles returned is 'undefined'. Seems you forgot to wrap the components in "<NumberInput />" `}),[C1e,N3]=Kr({name:"NumberInputContext",errorMessage:"useNumberInputContext: `context` is undefined. Seems you forgot to wrap number-input's components within <NumberInput />"}),L3=Et(function(t,n){const r=Yo("NumberInput",t),i=Si(t),a=D5(i),{htmlProps:o,...l}=x1e(a),c=A.useMemo(()=>l,[l]);return v.jsx(C1e,{value:c,children:v.jsx(w1e,{value:r,children:v.jsx(dt.div,{...o,ref:n,className:sn("chakra-numberinput",t.className),__css:{position:"relative",zIndex:0,...r.root}})})})});L3.displayName="NumberInput";var z3=Et(function(t,n){const r=tE();return v.jsx(dt.div,{"aria-hidden":!0,ref:n,...t,__css:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",height:"calc(100% - 2px)",zIndex:1,...r.stepperGroup}})});z3.displayName="NumberInputStepper";var B3=Et(function(t,n){const{getInputProps:r}=N3(),i=r(t,n),a=tE();return v.jsx(dt.input,{...i,className:sn("chakra-numberinput__field",t.className),__css:{width:"100%",...a.field}})});B3.displayName="NumberInputField";var IF=dt("div",{baseStyle:{display:"flex",justifyContent:"center",alignItems:"center",flex:1,transitionProperty:"common",transitionDuration:"normal",userSelect:"none",cursor:"pointer",lineHeight:"normal"}}),F3=Et(function(t,n){var r;const i=tE(),{getDecrementButtonProps:a}=N3(),o=a(t,n);return v.jsx(IF,{...o,__css:i.stepper,children:(r=t.children)!=null?r:v.jsx(h1e,{})})});F3.displayName="NumberDecrementStepper";var U3=Et(function(t,n){var r;const{getIncrementButtonProps:i}=N3(),a=i(t,n),o=tE();return v.jsx(IF,{...a,__css:o.stepper,children:(r=t.children)!=null?r:v.jsx(p1e,{})})});U3.displayName="NumberIncrementStepper";var[E1e,gS]=Kr({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[_1e,V3]=Kr({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Popover />" `});function H3(e){const t=A.Children.only(e.children),{getTriggerProps:n}=gS();return A.cloneElement(t,n(t.props,t.ref))}H3.displayName="PopoverTrigger";var oy={click:"click",hover:"hover"};function T1e(e={}){const{closeOnBlur:t=!0,closeOnEsc:n=!0,initialFocusRef:r,id:i,returnFocusOnClose:a=!0,autoFocus:o=!0,arrowSize:l,arrowShadowColor:c,trigger:d=oy.click,openDelay:p=200,closeDelay:g=200,isLazy:S,lazyBehavior:w="unmount",computePositionOnMount:C,...k}=e,{isOpen:P,onClose:D,onOpen:M,onToggle:R}=E3(e),L=A.useRef(null),z=A.useRef(null),U=A.useRef(null),V=A.useRef(!1),Y=A.useRef(!1);P&&(Y.current=!0);const[J,$]=A.useState(!1),[K,fe]=A.useState(!1),X=A.useId(),G=i??X,[te,re,oe,ie]=["popover-trigger","popover-content","popover-header","popover-body"].map(xt=>`${xt}-${G}`),{referenceRef:le,getArrowProps:ee,getPopperProps:de,getArrowInnerProps:Fe,forceUpdate:Pe}=C3({...k,enabled:P||!!C}),Oe=fF({isOpen:P,ref:U});Yve({enabled:P,ref:z}),UB(U,{focusRef:z,visible:P,shouldFocus:a&&d===oy.click}),D0e(U,{focusRef:r,visible:P,shouldFocus:o&&d===oy.click});const Ie=T3({wasSelected:Y.current,enabled:S,mode:w,isSelected:Oe.present}),De=A.useCallback((xt={},ln=null)=>{const Wt={...xt,style:{...xt.style,transformOrigin:Ja.transformOrigin.varRef,[Ja.arrowSize.var]:l?`${l}px`:void 0,[Ja.arrowShadowColor.var]:c},ref:ti(U,ln),children:Ie?xt.children:null,id:re,tabIndex:-1,role:"dialog",onKeyDown:Qt(xt.onKeyDown,In=>{n&&In.key==="Escape"&&D()}),onBlur:Qt(xt.onBlur,In=>{const ar=RF(In),we=G3(U.current,ar),at=G3(z.current,ar);P&&t&&(!we&&!at)&&D()}),"aria-labelledby":J?oe:void 0,"aria-describedby":K?ie:void 0};return d===oy.hover&&(Wt.role="tooltip",Wt.onMouseEnter=Qt(xt.onMouseEnter,()=>{V.current=!0}),Wt.onMouseLeave=Qt(xt.onMouseLeave,In=>{In.nativeEvent.relatedTarget!==null&&(V.current=!1,setTimeout(()=>D(),g))})),Wt},[Ie,re,J,oe,K,ie,d,n,D,P,t,g,c,l]),$e=A.useCallback((xt={},ln=null)=>de({...xt,style:{visibility:P?"visible":"hidden",...xt.style}},ln),[P,de]),it=A.useCallback((xt,ln=null)=>({...xt,ref:ti(ln,L,le)}),[L,le]),mt=A.useRef(),bt=A.useRef(),qe=A.useCallback(xt=>{L.current==null&&le(xt)},[le]),Ce=A.useCallback((xt={},ln=null)=>{const Wt={...xt,ref:ti(z,ln,qe),id:te,"aria-haspopup":"dialog","aria-expanded":P,"aria-controls":re};return d===oy.click&&(Wt.onClick=Qt(xt.onClick,R)),d===oy.hover&&(Wt.onFocus=Qt(xt.onFocus,()=>{mt.current===void 0&&M()}),Wt.onBlur=Qt(xt.onBlur,In=>{const ar=RF(In),we=!G3(U.current,ar);P&&t&&we&&D()}),Wt.onKeyDown=Qt(xt.onKeyDown,In=>{In.key==="Escape"&&D()}),Wt.onMouseEnter=Qt(xt.onMouseEnter,()=>{V.current=!0,mt.current=window.setTimeout(()=>M(),p)}),Wt.onMouseLeave=Qt(xt.onMouseLeave,()=>{V.current=!1,mt.current&&(clearTimeout(mt.current),mt.current=void 0),bt.current=window.setTimeout(()=>{V.current===!1&&D()},g)})),Wt},[te,P,re,d,qe,R,M,t,D,p,g]);A.useEffect(()=>()=>{mt.current&&clearTimeout(mt.current),bt.current&&clearTimeout(bt.current)},[]);const Nt=A.useCallback((xt={},ln=null)=>({...xt,id:oe,ref:ti(ln,Wt=>{$(!!Wt)})}),[oe]),Ae=A.useCallback((xt={},ln=null)=>({...xt,id:ie,ref:ti(ln,Wt=>{fe(!!Wt)})}),[ie]);return{forceUpdate:Pe,isOpen:P,onAnimationComplete:Oe.onComplete,onClose:D,getAnchorProps:it,getArrowProps:ee,getArrowInnerProps:Fe,getPopoverPositionerProps:$e,getPopoverProps:De,getTriggerProps:Ce,getHeaderProps:Nt,getBodyProps:Ae}}function G3(e,t){return e===t||(e==null?void 0:e.contains(t))}function RF(e){var t;const n=e.currentTarget.ownerDocument.activeElement;return(t=e.relatedTarget)!=null?t:n}function W3(e){const t=Yo("Popover",e),{children:n,...r}=Si(e),i=Cp(),a=T1e({...r,direction:i.direction});return v.jsx(E1e,{value:a,children:v.jsx(_1e,{value:t,children:Ru(n,{isOpen:a.isOpen,onClose:a.onClose,forceUpdate:a.forceUpdate})})})}W3.displayName="Popover";function q3(e){var t;const{bg:n,bgColor:r,backgroundColor:i,shadow:a,boxShadow:o}=e,{getArrowProps:l,getArrowInnerProps:c}=gS(),d=V3(),p=(t=n??r)!=null?t:i,g=a??o;return v.jsx(dt.div,{...l(),className:"chakra-popover__arrow-positioner",children:v.jsx(dt.div,{className:sn("chakra-popover__arrow",e.className),...c(e),__css:{"--popper-arrow-bg":p?`colors.${p}, ${p}`:void 0,"--popper-arrow-shadow":g?`shadows.${g}, ${g}`:void 0,...d.arrow}})})}q3.displayName="PopoverArrow";var NF=Et(function(t,n){const{getBodyProps:r}=gS(),i=V3();return v.jsx(dt.div,{...r(t,n),className:sn("chakra-popover__body",t.className),__css:i.body})});NF.displayName="PopoverBody";function k1e(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}var P1e={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},A1e=dt(Uu.section),LF=Et(function(t,n){const{variants:r=P1e,...i}=t,{isOpen:a}=gS();return v.jsx(A1e,{ref:n,variants:k1e(r),initial:!1,animate:a?"enter":"exit",...i})});LF.displayName="PopoverTransition";var Y3=Et(function(t,n){const{rootProps:r,motionProps:i,...a}=t,{getPopoverProps:o,getPopoverPositionerProps:l,onAnimationComplete:c}=gS(),d=V3(),p={position:"relative",display:"flex",flexDirection:"column",...d.content};return v.jsx(dt.div,{...l(r),__css:d.popper,className:"chakra-popover__popper",children:v.jsx(LF,{...i,...o(a,n),onAnimationComplete:zw(c,a.onAnimationComplete),className:sn("chakra-popover__content",t.className),__css:p})})});Y3.displayName="PopoverContent";function O1e(e,t,n){return(e-t)*100/(n-t)}wp({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),wp({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});var D1e=wp({"0%":{left:"-40%"},"100%":{left:"100%"}}),M1e=wp({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function j1e(e){const{value:t=0,min:n,max:r,valueText:i,getValueText:a,isIndeterminate:o,role:l="progressbar"}=e,c=O1e(t,n,r);return{bind:{"data-indeterminate":o?"":void 0,"aria-valuemax":r,"aria-valuemin":n,"aria-valuenow":o?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof a=="function"?a(t,c):i})(),role:l},percent:c,value:t}}var[I1e,R1e]=Kr({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),N1e=Et((e,t)=>{const{min:n,max:r,value:i,isIndeterminate:a,role:o,...l}=e,c=j1e({value:i,min:n,max:r,isIndeterminate:a,role:o}),p={height:"100%",...R1e().filledTrack};return v.jsx(dt.div,{ref:t,style:{width:`${c.percent}%`,...l.style},...c.bind,...l,__css:p})}),zF=Et((e,t)=>{var n;const{value:r,min:i=0,max:a=100,hasStripe:o,isAnimated:l,children:c,borderRadius:d,isIndeterminate:p,"aria-label":g,"aria-labelledby":S,"aria-valuetext":w,title:C,role:k,...P}=Si(e),D=Yo("Progress",e),M=d??((n=D.track)==null?void 0:n.borderRadius),R={animation:`${M1e} 1s linear infinite`},U={...!p&&o&&l&&R,...p&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${D1e} 1s ease infinite normal none running`}},V={overflow:"hidden",position:"relative",...D.track};return v.jsx(dt.div,{ref:t,borderRadius:M,__css:V,...P,children:v.jsxs(I1e,{value:D,children:[v.jsx(N1e,{"aria-label":g,"aria-labelledby":S,"aria-valuetext":w,min:i,max:a,value:r,isIndeterminate:p,css:U,borderRadius:M,title:C,role:k}),c]})})});zF.displayName="Progress";function L1e(e){return e&&hs(e)&&hs(e.target)}function z1e(e={}){const{onChange:t,value:n,defaultValue:r,name:i,isDisabled:a,isFocusable:o,isNative:l,...c}=e,[d,p]=A.useState(r||""),g=typeof n<"u",S=g?n:d,w=A.useRef(null),C=A.useCallback(()=>{const z=w.current;if(!z)return;let U="input:not(:disabled):checked";const V=z.querySelector(U);if(V){V.focus();return}U="input:not(:disabled)";const Y=z.querySelector(U);Y==null||Y.focus()},[]),P=`radio-${A.useId()}`,D=i||P,M=A.useCallback(z=>{const U=L1e(z)?z.target.value:z;g||p(U),t==null||t(String(U))},[t,g]),R=A.useCallback((z={},U=null)=>({...z,ref:ti(U,w),role:"radiogroup"}),[]),L=A.useCallback((z={},U=null)=>({...z,ref:U,name:D,[l?"checked":"isChecked"]:S!=null?z.value===S:void 0,onChange(Y){M(Y)},"data-radiogroup":!0}),[l,D,M,S]);return{getRootProps:R,getRadioProps:L,name:D,ref:w,focus:C,setValue:p,value:S,onChange:M,isDisabled:a,isFocusable:o,htmlProps:c}}var[B1e,BF]=Kr({name:"RadioGroupContext",strict:!1}),yS=Et((e,t)=>{const{colorScheme:n,size:r,variant:i,children:a,className:o,isDisabled:l,isFocusable:c,...d}=e,{value:p,onChange:g,getRootProps:S,name:w,htmlProps:C}=z1e(d),k=A.useMemo(()=>({name:w,size:r,onChange:g,colorScheme:n,value:p,variant:i,isDisabled:l,isFocusable:c}),[w,r,g,n,p,i,l,c]);return v.jsx(B1e,{value:k,children:v.jsx(dt.div,{...S(C,t),className:sn("chakra-radio-group",o),children:a})})});yS.displayName="RadioGroup";var F1e={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function U1e(e={}){const{defaultChecked:t,isChecked:n,isFocusable:r,isDisabled:i,isReadOnly:a,isRequired:o,onChange:l,isInvalid:c,name:d,value:p,id:g,"data-radiogroup":S,"aria-describedby":w,...C}=e,k=`radio-${A.useId()}`,P=Ev(),M=!!BF()||!!S;let L=!!P&&!M?P.id:k;L=g??L;const z=i??(P==null?void 0:P.isDisabled),U=a??(P==null?void 0:P.isReadOnly),V=o??(P==null?void 0:P.isRequired),Y=c??(P==null?void 0:P.isInvalid),[J,$]=A.useState(!1),[K,fe]=A.useState(!1),[X,G]=A.useState(!1),[te,re]=A.useState(!1),[oe,ie]=A.useState(Boolean(t)),le=typeof n<"u",ee=le?n:oe;A.useEffect(()=>E7($),[]);const de=A.useCallback(qe=>{if(U||z){qe.preventDefault();return}le||ie(qe.target.checked),l==null||l(qe)},[le,z,U,l]),Fe=A.useCallback(qe=>{qe.key===" "&&re(!0)},[re]),Pe=A.useCallback(qe=>{qe.key===" "&&re(!1)},[re]),Oe=A.useCallback((qe={},Ce=null)=>({...qe,ref:Ce,"data-active":Jn(te),"data-hover":Jn(X),"data-disabled":Jn(z),"data-invalid":Jn(Y),"data-checked":Jn(ee),"data-focus":Jn(K),"data-focus-visible":Jn(K&&J),"data-readonly":Jn(U),"aria-hidden":!0,onMouseDown:Qt(qe.onMouseDown,()=>re(!0)),onMouseUp:Qt(qe.onMouseUp,()=>re(!1)),onMouseEnter:Qt(qe.onMouseEnter,()=>G(!0)),onMouseLeave:Qt(qe.onMouseLeave,()=>G(!1))}),[te,X,z,Y,ee,K,U,J]),{onFocus:Ie,onBlur:De}=P??{},$e=A.useCallback((qe={},Ce=null)=>{const Nt=z&&!r;return{...qe,id:L,ref:Ce,type:"radio",name:d,value:p,onChange:Qt(qe.onChange,de),onBlur:Qt(De,qe.onBlur,()=>fe(!1)),onFocus:Qt(Ie,qe.onFocus,()=>fe(!0)),onKeyDown:Qt(qe.onKeyDown,Fe),onKeyUp:Qt(qe.onKeyUp,Pe),checked:ee,disabled:Nt,readOnly:U,required:V,"aria-invalid":eh(Y),"aria-disabled":eh(Nt),"aria-required":eh(V),"data-readonly":Jn(U),"aria-describedby":w,style:F1e}},[z,r,L,d,p,de,De,Ie,Fe,Pe,ee,U,V,Y,w]);return{state:{isInvalid:Y,isFocused:K,isChecked:ee,isActive:te,isHovered:X,isDisabled:z,isReadOnly:U,isRequired:V},getCheckboxProps:Oe,getInputProps:$e,getLabelProps:(qe={},Ce=null)=>({...qe,ref:Ce,onMouseDown:Qt(qe.onMouseDown,FF),onTouchStart:Qt(qe.onTouchStart,FF),"data-disabled":Jn(z),"data-checked":Jn(ee),"data-invalid":Jn(Y)}),getRootProps:(qe,Ce=null)=>({...qe,ref:Ce,"data-disabled":Jn(z),"data-checked":Jn(ee),"data-invalid":Jn(Y)}),htmlProps:C}}function FF(e){e.preventDefault(),e.stopPropagation()}function V1e(e,t){const n={},r={};for(const[i,a]of Object.entries(e))t.includes(i)?n[i]=a:r[i]=a;return[n,r]}var Ws=Et((e,t)=>{var n;const r=BF(),{onChange:i,value:a}=e,o=Yo("Radio",{...r,...e}),l=Si(e),{spacing:c="0.5rem",children:d,isDisabled:p=r==null?void 0:r.isDisabled,isFocusable:g=r==null?void 0:r.isFocusable,inputProps:S,...w}=l;let C=e.isChecked;(r==null?void 0:r.value)!=null&&a!=null&&(C=r.value===a);let k=i;r!=null&&r.onChange&&a!=null&&(k=zw(r.onChange,i));const P=(n=e==null?void 0:e.name)!=null?n:r==null?void 0:r.name,{getInputProps:D,getCheckboxProps:M,getLabelProps:R,getRootProps:L,htmlProps:z}=U1e({...w,isChecked:C,isFocusable:g,isDisabled:p,onChange:k,name:P}),[U,V]=V1e(z,CL),Y=M(V),J=D(S,t),$=R(),K=Object.assign({},U,L()),fe={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...o.container},X={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...o.control},G={userSelect:"none",marginStart:c,...o.label};return v.jsxs(dt.label,{className:"chakra-radio",...K,__css:fe,children:[v.jsx("input",{className:"chakra-radio__input",...J}),v.jsx(dt.span,{className:"chakra-radio__control",...Y,__css:X}),d&&v.jsx(dt.span,{className:"chakra-radio__label",...$,__css:G,children:d})]})});Ws.displayName="Radio";var UF=Et(function(t,n){const{children:r,placeholder:i,className:a,...o}=t;return v.jsxs(dt.select,{...o,ref:n,className:sn("chakra-select",a),children:[i&&v.jsx("option",{value:"",children:i}),r]})});UF.displayName="SelectField";function H1e(e,t){const n={},r={};for(const[i,a]of Object.entries(e))t.includes(i)?n[i]=a:r[i]=a;return[n,r]}var VF=Et((e,t)=>{var n;const r=Yo("Select",e),{rootProps:i,placeholder:a,icon:o,color:l,height:c,h:d,minH:p,minHeight:g,iconColor:S,iconSize:w,...C}=Si(e),[k,P]=H1e(C,CL),D=O5(P),M={width:"100%",height:"fit-content",position:"relative",color:l},R={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(n=r.field)==null?void 0:n._focus}};return v.jsxs(dt.div,{className:"chakra-select__wrapper",__css:M,...k,...i,children:[v.jsx(UF,{ref:t,height:d??c,minH:p??g,placeholder:a,...D,__css:R,children:e.children}),v.jsx(HF,{"data-disabled":Jn(D.disabled),...(S||l)&&{color:S||l},__css:r.icon,...w&&{fontSize:w},children:o})]})});VF.displayName="Select";var G1e=e=>v.jsx("svg",{viewBox:"0 0 24 24",...e,children:v.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),W1e=dt("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),HF=e=>{const{children:t=v.jsx(G1e,{}),...n}=e,r=A.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return v.jsx(W1e,{...n,className:"chakra-select__icon-wrapper",children:A.isValidElement(t)?r:null})};HF.displayName="SelectIcon";var sy=e=>e?"":void 0,K3=e=>e?!0:void 0,bS=(...e)=>e.filter(Boolean).join(" ");function X3(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function nE(e){const{orientation:t,vertical:n,horizontal:r}=e;return t==="vertical"?n:r}var rE={width:0,height:0},iE=e=>e||rE;function q1e(e){const{orientation:t,thumbPercents:n,thumbRects:r,isReversed:i}=e,a=k=>{var P;const D=(P=r[k])!=null?P:rE;return{position:"absolute",userSelect:"none",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",touchAction:"none",...nE({orientation:t,vertical:{bottom:`calc(${n[k]}% - ${D.height/2}px)`},horizontal:{left:`calc(${n[k]}% - ${D.width/2}px)`}})}},o=t==="vertical"?r.reduce((k,P)=>iE(k).height>iE(P).height?k:P,rE):r.reduce((k,P)=>iE(k).width>iE(P).width?k:P,rE),l={position:"relative",touchAction:"none",WebkitTapHighlightColor:"rgba(0,0,0,0)",userSelect:"none",outline:0,...nE({orientation:t,vertical:o?{paddingLeft:o.width/2,paddingRight:o.width/2}:{},horizontal:o?{paddingTop:o.height/2,paddingBottom:o.height/2}:{}})},c={position:"absolute",...nE({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",height:"100%"},horizontal:{top:"50%",transform:"translateY(-50%)",width:"100%"}})},d=n.length===1,p=[0,i?100-n[0]:n[0]],g=d?p:n;let S=g[0];!d&&i&&(S=100-S);const w=Math.abs(g[g.length-1]-g[0]),C={...c,...nE({orientation:t,vertical:i?{height:`${w}%`,top:`${S}%`}:{height:`${w}%`,bottom:`${S}%`},horizontal:i?{width:`${w}%`,right:`${S}%`}:{width:`${w}%`,left:`${S}%`}})};return{trackStyle:c,innerTrackStyle:C,rootStyle:l,getThumbStyle:a}}function Y1e(e){const{isReversed:t,direction:n,orientation:r}=e;return n==="ltr"||r==="vertical"?t:!t}function K1e(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function X1e(e){const t=Z1e(e);return typeof t.PointerEvent<"u"&&e instanceof t.PointerEvent?e.pointerType==="mouse":e instanceof t.MouseEvent}function GF(e){return!!e.touches}function Q1e(e){return GF(e)&&e.touches.length>1}function Z1e(e){var t;return(t=e.view)!=null?t:window}function J1e(e,t="page"){const n=e.touches[0]||e.changedTouches[0];return{x:n[`${t}X`],y:n[`${t}Y`]}}function $1e(e,t="page"){return{x:e[`${t}X`],y:e[`${t}Y`]}}function WF(e,t="page"){return GF(e)?J1e(e,t):$1e(e,t)}function eSe(e){return t=>{const n=X1e(t);(!n||n&&t.button===0)&&e(t)}}function tSe(e,t=!1){function n(i){e(i,{point:WF(i)})}return t?eSe(n):n}function aE(e,t,n,r){return K1e(e,t,tSe(n,t==="pointerdown"),r)}var nSe=Object.defineProperty,rSe=(e,t,n)=>t in e?nSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Uc=(e,t,n)=>(rSe(e,typeof t!="symbol"?t+"":t,n),n),iSe=class{constructor(e,t,n){Uc(this,"history",[]),Uc(this,"startEvent",null),Uc(this,"lastEvent",null),Uc(this,"lastEventInfo",null),Uc(this,"handlers",{}),Uc(this,"removeListeners",()=>{}),Uc(this,"threshold",3),Uc(this,"win"),Uc(this,"updatePoint",()=>{if(!(this.lastEvent&&this.lastEventInfo))return;const l=Q3(this.lastEventInfo,this.history),c=this.startEvent!==null,d=lSe(l.offset,{x:0,y:0})>=this.threshold;if(!c&&!d)return;const{timestamp:p}=_8();this.history.push({...l.point,timestamp:p});const{onStart:g,onMove:S}=this.handlers;c||(g==null||g(this.lastEvent,l),this.startEvent=this.lastEvent),S==null||S(this.lastEvent,l)}),Uc(this,"onPointerMove",(l,c)=>{this.lastEvent=l,this.lastEventInfo=c,gce.update(this.updatePoint,!0)}),Uc(this,"onPointerUp",(l,c)=>{const d=Q3(c,this.history),{onEnd:p,onSessionEnd:g}=this.handlers;g==null||g(l,d),this.end(),!(!p||!this.startEvent)&&(p==null||p(l,d))});var r;if(this.win=(r=e.view)!=null?r:window,Q1e(e))return;this.handlers=t,n&&(this.threshold=n),e.stopPropagation(),e.preventDefault();const i={point:WF(e)},{timestamp:a}=_8();this.history=[{...i.point,timestamp:a}];const{onSessionStart:o}=t;o==null||o(e,Q3(i,this.history)),this.removeListeners=sSe(aE(this.win,"pointermove",this.onPointerMove),aE(this.win,"pointerup",this.onPointerUp),aE(this.win,"pointercancel",this.onPointerUp))}updateHandlers(e){this.handlers=e}end(){var e;(e=this.removeListeners)==null||e.call(this),yce.update(this.updatePoint)}};function qF(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Q3(e,t){return{point:e.point,delta:qF(e.point,t[t.length-1]),offset:qF(e.point,t[0]),velocity:oSe(t,.1)}}var aSe=e=>e*1e3;function oSe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=e[e.length-1];for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>aSe(t)));)n--;if(!r)return{x:0,y:0};const a=(i.timestamp-r.timestamp)/1e3;if(a===0)return{x:0,y:0};const o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function sSe(...e){return t=>e.reduce((n,r)=>r(n),t)}function Z3(e,t){return Math.abs(e-t)}function YF(e){return"x"in e&&"y"in e}function lSe(e,t){if(typeof e=="number"&&typeof t=="number")return Z3(e,t);if(YF(e)&&YF(t)){const n=Z3(e.x,t.x),r=Z3(e.y,t.y);return Math.sqrt(n**2+r**2)}return 0}function KF(e){const t=A.useRef(null);return t.current=e,t}function uSe(e,t){const{onPan:n,onPanStart:r,onPanEnd:i,onPanSessionStart:a,onPanSessionEnd:o,threshold:l}=t,c=Boolean(n||r||i||a||o),d=A.useRef(null),p=KF({onSessionStart:a,onSessionEnd:o,onStart:r,onMove:n,onEnd(g,S){d.current=null,i==null||i(g,S)}});A.useEffect(()=>{var g;(g=d.current)==null||g.updateHandlers(p.current)}),A.useEffect(()=>{const g=e.current;if(!g||!c)return;function S(w){d.current=new iSe(w,p.current,l)}return aE(g,"pointerdown",S)},[e,c,p,l]),A.useEffect(()=>()=>{var g;(g=d.current)==null||g.end(),d.current=null},[])}function cSe(e,t){var n;if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const r=(n=e.ownerDocument.defaultView)!=null?n:window,i=new r.ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const[o]=a;let l,c;if("borderBoxSize"in o){const d=o.borderBoxSize,p=Array.isArray(d)?d[0]:d;l=p.inlineSize,c=p.blockSize}else l=e.offsetWidth,c=e.offsetHeight;t({width:l,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}var dSe=Boolean(globalThis==null?void 0:globalThis.document)?A.useLayoutEffect:A.useEffect;function fSe(e,t){var n,r;if(!e||!e.parentElement)return;const i=(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window,a=new i.MutationObserver(()=>{t()});return a.observe(e.parentElement,{childList:!0}),()=>{a.disconnect()}}function hSe({getNodes:e,observeMutation:t=!0}){const[n,r]=A.useState([]),[i,a]=A.useState(0);return dSe(()=>{const o=e(),l=o.map((c,d)=>cSe(c,p=>{r(g=>[...g.slice(0,d),p,...g.slice(d+1)])}));if(t){const c=o[0];l.push(fSe(c,()=>{a(d=>d+1)}))}return()=>{l.forEach(c=>{c==null||c()})}},[i]),n}function pSe(e){return typeof e=="object"&&e!==null&&"current"in e}function mSe(e){const[t]=hSe({observeMutation:!1,getNodes(){return[pSe(e)?e.current:e]}});return t}function vSe(e){var t;const{min:n=0,max:r=100,onChange:i,value:a,defaultValue:o,isReversed:l,direction:c="ltr",orientation:d="horizontal",id:p,isDisabled:g,isReadOnly:S,onChangeStart:w,onChangeEnd:C,step:k=1,getAriaValueText:P,"aria-valuetext":D,"aria-label":M,"aria-labelledby":R,name:L,focusThumbOnChange:z=!0,...U}=e,V=Ra(w),Y=Ra(C),J=Ra(P),$=Y1e({isReversed:l,direction:c,orientation:d}),[K,fe]=w5({value:a,defaultValue:o??ySe(n,r),onChange:i}),[X,G]=A.useState(!1),[te,re]=A.useState(!1),oe=!(g||S),ie=(r-n)/10,le=k||(r-n)/100,ee=RC(K,n,r),de=r-ee+n,Pe=P7($?de:ee,n,r),Oe=d==="vertical",Ie=KF({min:n,max:r,step:k,isDisabled:g,value:ee,isInteractive:oe,isReversed:$,isVertical:Oe,eventSource:null,focusThumbOnChange:z,orientation:d}),De=A.useRef(null),$e=A.useRef(null),it=A.useRef(null),mt=A.useId(),bt=p??mt,[qe,Ce]=[`slider-thumb-${bt}`,`slider-track-${bt}`],Nt=A.useCallback(Ge=>{var pt,Bt;if(!De.current)return;const jn=Ie.current;jn.eventSource="pointer";const Un=De.current.getBoundingClientRect(),{clientX:Mt,clientY:Lt}=(Bt=(pt=Ge.touches)==null?void 0:pt[0])!=null?Bt:Ge,vr=Oe?Un.bottom-Lt:Mt-Un.left,gr=Oe?Un.height:Un.width;let hn=vr/gr;$&&(hn=1-hn);let ri=Bve(hn,jn.min,jn.max);return jn.step&&(ri=parseFloat(A7(ri,jn.min,jn.step))),ri=RC(ri,jn.min,jn.max),ri},[Oe,$,Ie]),Ae=A.useCallback(Ge=>{const pt=Ie.current;pt.isInteractive&&(Ge=parseFloat(A7(Ge,pt.min,le)),Ge=RC(Ge,pt.min,pt.max),fe(Ge))},[le,fe,Ie]),xt=A.useMemo(()=>({stepUp(Ge=le){const pt=$?ee-Ge:ee+Ge;Ae(pt)},stepDown(Ge=le){const pt=$?ee+Ge:ee-Ge;Ae(pt)},reset(){Ae(o||0)},stepTo(Ge){Ae(Ge)}}),[Ae,$,ee,le,o]),ln=A.useCallback(Ge=>{const pt=Ie.current,jn={ArrowRight:()=>xt.stepUp(),ArrowUp:()=>xt.stepUp(),ArrowLeft:()=>xt.stepDown(),ArrowDown:()=>xt.stepDown(),PageUp:()=>xt.stepUp(ie),PageDown:()=>xt.stepDown(ie),Home:()=>Ae(pt.min),End:()=>Ae(pt.max)}[Ge.key];jn&&(Ge.preventDefault(),Ge.stopPropagation(),jn(Ge),pt.eventSource="keyboard")},[xt,Ae,ie,Ie]),Wt=(t=J==null?void 0:J(ee))!=null?t:D,In=mSe($e),{getThumbStyle:ar,rootStyle:we,trackStyle:at,innerTrackStyle:ot}=A.useMemo(()=>{const Ge=Ie.current,pt=In??{width:0,height:0};return q1e({isReversed:$,orientation:Ge.orientation,thumbRects:[pt],thumbPercents:[Pe]})},[$,In,Pe,Ie]),yt=A.useCallback(()=>{Ie.current.focusThumbOnChange&&setTimeout(()=>{var pt;return(pt=$e.current)==null?void 0:pt.focus()})},[Ie]);oh(()=>{const Ge=Ie.current;yt(),Ge.eventSource==="keyboard"&&(Y==null||Y(Ge.value))},[ee,Y]);function He(Ge){const pt=Nt(Ge);pt!=null&&pt!==Ie.current.value&&fe(pt)}uSe(it,{onPanSessionStart(Ge){const pt=Ie.current;pt.isInteractive&&(G(!0),yt(),He(Ge),V==null||V(pt.value))},onPanSessionEnd(){const Ge=Ie.current;Ge.isInteractive&&(G(!1),Y==null||Y(Ge.value))},onPan(Ge){Ie.current.isInteractive&&He(Ge)}});const st=A.useCallback((Ge={},pt=null)=>({...Ge,...U,ref:ti(pt,it),tabIndex:-1,"aria-disabled":K3(g),"data-focused":sy(te),style:{...Ge.style,...we}}),[U,g,te,we]),Zt=A.useCallback((Ge={},pt=null)=>({...Ge,ref:ti(pt,De),id:Ce,"data-disabled":sy(g),style:{...Ge.style,...at}}),[g,Ce,at]),nn=A.useCallback((Ge={},pt=null)=>({...Ge,ref:pt,style:{...Ge.style,...ot}}),[ot]),Ze=A.useCallback((Ge={},pt=null)=>({...Ge,ref:ti(pt,$e),role:"slider",tabIndex:oe?0:void 0,id:qe,"data-active":sy(X),"aria-valuetext":Wt,"aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":ee,"aria-orientation":d,"aria-disabled":K3(g),"aria-readonly":K3(S),"aria-label":M,"aria-labelledby":M?void 0:R,style:{...Ge.style,...ar(0)},onKeyDown:X3(Ge.onKeyDown,ln),onFocus:X3(Ge.onFocus,()=>re(!0)),onBlur:X3(Ge.onBlur,()=>re(!1))}),[oe,qe,X,Wt,n,r,ee,d,g,S,M,R,ar,ln]),rn=A.useCallback((Ge,pt=null)=>{const Bt=!(Ge.value<n||Ge.value>r),jn=ee>=Ge.value,Un=P7(Ge.value,n,r),Mt={position:"absolute",pointerEvents:"none",...gSe({orientation:d,vertical:{bottom:$?`${100-Un}%`:`${Un}%`},horizontal:{left:$?`${100-Un}%`:`${Un}%`}})};return{...Ge,ref:pt,role:"presentation","aria-hidden":!0,"data-disabled":sy(g),"data-invalid":sy(!Bt),"data-highlighted":sy(jn),style:{...Ge.style,...Mt}}},[g,$,r,n,d,ee]),Rn=A.useCallback((Ge={},pt=null)=>({...Ge,ref:pt,type:"hidden",value:ee,name:L}),[L,ee]);return{state:{value:ee,isFocused:te,isDragging:X},actions:xt,getRootProps:st,getTrackProps:Zt,getInnerTrackProps:nn,getThumbProps:Ze,getMarkerProps:rn,getInputProps:Rn}}function gSe(e){const{orientation:t,vertical:n,horizontal:r}=e;return t==="vertical"?n:r}function ySe(e,t){return t<e?e:e+(t-e)/2}var[bSe,oE]=Kr({name:"SliderContext",hookName:"useSliderContext",providerName:"<Slider />"}),[SSe,sE]=Kr({name:"SliderStylesContext",hookName:"useSliderStyles",providerName:"<Slider />"}),XF=Et((e,t)=>{const n={orientation:"horizontal",...e},r=Yo("Slider",n),i=Si(n),{direction:a}=Cp();i.direction=a;const{getInputProps:o,getRootProps:l,...c}=vSe(i),d=l(),p=o({},t);return v.jsx(bSe,{value:c,children:v.jsx(SSe,{value:r,children:v.jsxs(dt.div,{...d,className:bS("chakra-slider",n.className),__css:r.container,children:[n.children,v.jsx("input",{...p})]})})})});XF.displayName="Slider";var QF=Et((e,t)=>{const{getThumbProps:n}=oE(),r=sE(),i=n(e,t);return v.jsx(dt.div,{...i,className:bS("chakra-slider__thumb",e.className),__css:r.thumb})});QF.displayName="SliderThumb";var ZF=Et((e,t)=>{const{getTrackProps:n}=oE(),r=sE(),i=n(e,t);return v.jsx(dt.div,{...i,className:bS("chakra-slider__track",e.className),__css:r.track})});ZF.displayName="SliderTrack";var JF=Et((e,t)=>{const{getInnerTrackProps:n}=oE(),r=sE(),i=n(e,t);return v.jsx(dt.div,{...i,className:bS("chakra-slider__filled-track",e.className),__css:r.filledTrack})});JF.displayName="SliderFilledTrack";var J3=Et((e,t)=>{const{getMarkerProps:n}=oE(),r=sE(),i=n(e,t);return v.jsx(dt.div,{...i,className:bS("chakra-slider__marker",e.className),__css:r.mark})});J3.displayName="SliderMark";var $F=Et(function(t,n){const r=Yo("Switch",t),{spacing:i="0.5rem",children:a,...o}=Si(t),{state:l,getInputProps:c,getCheckboxProps:d,getRootProps:p,getLabelProps:g}=_7(o),S=A.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...r.container}),[r.container]),w=A.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...r.track}),[r.track]),C=A.useMemo(()=>({userSelect:"none",marginStart:i,...r.label}),[i,r.label]);return v.jsxs(dt.label,{...p(),className:sn("chakra-switch",t.className),__css:S,children:[v.jsx("input",{className:"chakra-switch__input",...c({},n)}),v.jsx(dt.span,{...d(),className:"chakra-switch__track",__css:w,children:v.jsx(dt.span,{__css:r.thumb,className:"chakra-switch__thumb","data-checked":Jn(l.isChecked),"data-hover":Jn(l.isHovered)})}),a&&v.jsx(dt.span,{className:"chakra-switch__label",...g(),__css:C,children:a})]})});$F.displayName="Switch";var[xSe,wSe,CSe,ESe]=S5();function _Se(e){var t;const{defaultIndex:n,onChange:r,index:i,isManual:a,isLazy:o,lazyBehavior:l="unmount",orientation:c="horizontal",direction:d="ltr",...p}=e,[g,S]=A.useState(n??0),[w,C]=w5({defaultValue:n??0,value:i,onChange:r});A.useEffect(()=>{i!=null&&S(i)},[i]);const k=CSe(),P=A.useId();return{id:`tabs-${(t=e.id)!=null?t:P}`,selectedIndex:w,focusedIndex:g,setSelectedIndex:C,setFocusedIndex:S,isManual:a,isLazy:o,lazyBehavior:l,orientation:c,descendants:k,direction:d,htmlProps:p}}var[TSe,lE]=Kr({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"});function kSe(e){const{focusedIndex:t,orientation:n,direction:r}=lE(),i=wSe(),a=A.useCallback(o=>{const l=()=>{var M;const R=i.nextEnabled(t);R&&((M=R.node)==null||M.focus())},c=()=>{var M;const R=i.prevEnabled(t);R&&((M=R.node)==null||M.focus())},d=()=>{var M;const R=i.firstEnabled();R&&((M=R.node)==null||M.focus())},p=()=>{var M;const R=i.lastEnabled();R&&((M=R.node)==null||M.focus())},g=n==="horizontal",S=n==="vertical",w=o.key,C=r==="ltr"?"ArrowLeft":"ArrowRight",k=r==="ltr"?"ArrowRight":"ArrowLeft",D={[C]:()=>g&&c(),[k]:()=>g&&l(),ArrowDown:()=>S&&l(),ArrowUp:()=>S&&c(),Home:d,End:p}[w];D&&(o.preventDefault(),D(o))},[i,t,n,r]);return{...e,role:"tablist","aria-orientation":n,onKeyDown:Qt(e.onKeyDown,a)}}function PSe(e){const{isDisabled:t,isFocusable:n,...r}=e,{setSelectedIndex:i,isManual:a,id:o,setFocusedIndex:l,selectedIndex:c}=lE(),{index:d,register:p}=ESe({disabled:t&&!n}),g=d===c,S=()=>{i(d)},w=()=>{l(d),!a&&!(t&&n)&&i(d)},C=FB({...r,ref:ti(p,e.ref),isDisabled:t,isFocusable:n,onClick:Qt(e.onClick,S)}),k="button";return{...C,id:eU(o,d),role:"tab",tabIndex:g?0:-1,type:k,"aria-selected":g,"aria-controls":tU(o,d),onFocus:t?void 0:Qt(e.onFocus,w)}}var[ASe,OSe]=Kr({});function DSe(e){const t=lE(),{id:n,selectedIndex:r}=t,a=P5(e.children).map((o,l)=>A.createElement(ASe,{key:l,value:{isSelected:l===r,id:tU(n,l),tabId:eU(n,l),selectedIndex:r}},o));return{...e,children:a}}function MSe(e){const{children:t,...n}=e,{isLazy:r,lazyBehavior:i}=lE(),{isSelected:a,id:o,tabId:l}=OSe(),c=A.useRef(!1);a&&(c.current=!0);const d=T3({wasSelected:c.current,isSelected:a,enabled:r,mode:i});return{tabIndex:0,...n,children:d?t:null,role:"tabpanel","aria-labelledby":l,hidden:!a,id:o}}function eU(e,t){return`${e}--tab-${t}`}function tU(e,t){return`${e}--tabpanel-${t}`}var[jSe,uE]=Kr({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tabs />" `}),nU=Et(function(t,n){const r=Yo("Tabs",t),{children:i,className:a,...o}=Si(t),{htmlProps:l,descendants:c,...d}=_Se(o),p=A.useMemo(()=>d,[d]),{isFitted:g,...S}=l;return v.jsx(xSe,{value:c,children:v.jsx(TSe,{value:p,children:v.jsx(jSe,{value:r,children:v.jsx(dt.div,{className:sn("chakra-tabs",a),ref:n,...S,__css:r.root,children:i})})})})});nU.displayName="Tabs";var rU=Et(function(t,n){const r=kSe({...t,ref:n}),a={display:"flex",...uE().tablist};return v.jsx(dt.div,{...r,className:sn("chakra-tabs__tablist",t.className),__css:a})});rU.displayName="TabList";var iU=Et(function(t,n){const r=MSe({...t,ref:n}),i=uE();return v.jsx(dt.div,{outline:"0",...r,className:sn("chakra-tabs__tab-panel",t.className),__css:i.tabpanel})});iU.displayName="TabPanel";var aU=Et(function(t,n){const r=DSe(t),i=uE();return v.jsx(dt.div,{...r,width:"100%",ref:n,className:sn("chakra-tabs__tab-panels",t.className),__css:i.tabpanels})});aU.displayName="TabPanels";var oU=Et(function(t,n){const r=uE(),i=PSe({...t,ref:n}),a={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return v.jsx(dt.button,{...i,className:sn("chakra-tabs__tab",t.className),__css:a})});oU.displayName="Tab";function ISe(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}var RSe=["h","minH","height","minHeight"],$3=Et((e,t)=>{const n=zu("Textarea",e),{className:r,rows:i,...a}=Si(e),o=O5(a),l=i?ISe(n,RSe):n;return v.jsx(dt.textarea,{ref:t,rows:i,...o,className:sn("chakra-textarea",r),__css:l})});$3.displayName="Textarea";var NSe={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},cE=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},eA=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function LSe(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:a,closeOnPointerDown:o=i,closeOnEsc:l=!0,onOpen:c,onClose:d,placement:p,id:g,isOpen:S,defaultIsOpen:w,arrowSize:C=10,arrowShadowColor:k,arrowPadding:P,modifiers:D,isDisabled:M,gutter:R,offset:L,direction:z,...U}=e,{isOpen:V,onOpen:Y,onClose:J}=E3({isOpen:S,defaultIsOpen:w,onOpen:c,onClose:d}),{referenceRef:$,getPopperProps:K,getArrowInnerProps:fe,getArrowProps:X}=C3({enabled:V,placement:p,arrowPadding:P,modifiers:D,gutter:R,offset:L,direction:z}),G=A.useId(),re=`tooltip-${g??G}`,oe=A.useRef(null),ie=A.useRef(),le=A.useCallback(()=>{ie.current&&(clearTimeout(ie.current),ie.current=void 0)},[]),ee=A.useRef(),de=A.useCallback(()=>{ee.current&&(clearTimeout(ee.current),ee.current=void 0)},[]),Fe=A.useCallback(()=>{de(),J()},[J,de]),Pe=zSe(oe,Fe),Oe=A.useCallback(()=>{if(!M&&!ie.current){Pe();const Ce=eA(oe);ie.current=Ce.setTimeout(Y,t)}},[Pe,M,Y,t]),Ie=A.useCallback(()=>{le();const Ce=eA(oe);ee.current=Ce.setTimeout(Fe,n)},[n,Fe,le]),De=A.useCallback(()=>{V&&r&&Ie()},[r,Ie,V]),$e=A.useCallback(()=>{V&&o&&Ie()},[o,Ie,V]),it=A.useCallback(Ce=>{V&&Ce.key==="Escape"&&Ie()},[V,Ie]);Tv(()=>cE(oe),"keydown",l?it:void 0),Tv(()=>cE(oe),"scroll",()=>{V&&a&&Fe()}),A.useEffect(()=>{M&&(le(),V&&J())},[M,V,J,le]),A.useEffect(()=>()=>{le(),de()},[le,de]),Tv(()=>oe.current,"pointerleave",Ie);const mt=A.useCallback((Ce={},Nt=null)=>({...Ce,ref:ti(oe,Nt,$),onPointerEnter:Qt(Ce.onPointerEnter,xt=>{xt.pointerType!=="touch"&&Oe()}),onClick:Qt(Ce.onClick,De),onPointerDown:Qt(Ce.onPointerDown,$e),onFocus:Qt(Ce.onFocus,Oe),onBlur:Qt(Ce.onBlur,Ie),"aria-describedby":V?re:void 0}),[Oe,Ie,$e,V,re,De,$]),bt=A.useCallback((Ce={},Nt=null)=>K({...Ce,style:{...Ce.style,[Ja.arrowSize.var]:C?`${C}px`:void 0,[Ja.arrowShadowColor.var]:k}},Nt),[K,C,k]),qe=A.useCallback((Ce={},Nt=null)=>{const Ae={...Ce.style,position:"relative",transformOrigin:Ja.transformOrigin.varRef};return{ref:Nt,...U,...Ce,id:re,role:"tooltip",style:Ae}},[U,re]);return{isOpen:V,show:Oe,hide:Ie,getTriggerProps:mt,getTooltipProps:qe,getTooltipPositionerProps:bt,getArrowProps:X,getArrowInnerProps:fe}}var tA="chakra-ui:close-tooltip";function zSe(e,t){return A.useEffect(()=>{const n=cE(e);return n.addEventListener(tA,t),()=>n.removeEventListener(tA,t)},[t,e]),()=>{const n=cE(e),r=eA(e);n.dispatchEvent(new r.CustomEvent(tA))}}function BSe(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function FSe(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var USe=dt(Uu.div),oo=Et((e,t)=>{var n,r;const i=zu("Tooltip",e),a=Si(e),o=Cp(),{children:l,label:c,shouldWrapChildren:d,"aria-label":p,hasArrow:g,bg:S,portalProps:w,background:C,backgroundColor:k,bgColor:P,motionProps:D,...M}=a,R=(r=(n=C??k)!=null?n:S)!=null?r:P;if(R){i.bg=R;const K=zre(o,"colors",R);i[Ja.arrowBg.var]=K}const L=LSe({...M,direction:o.direction}),z=typeof l=="string"||d;let U;if(z)U=v.jsx(dt.span,{display:"inline-block",tabIndex:0,...L.getTriggerProps(),children:l});else{const K=A.Children.only(l);U=A.cloneElement(K,L.getTriggerProps(K.props,K.ref))}const V=!!p,Y=L.getTooltipProps({},t),J=V?BSe(Y,["role","id"]):Y,$=FSe(Y,["role","id"]);return c?v.jsxs(v.Fragment,{children:[U,v.jsx(ch,{children:L.isOpen&&v.jsx($f,{...w,children:v.jsx(dt.div,{...L.getTooltipPositionerProps(),__css:{zIndex:i.zIndex,pointerEvents:"none"},children:v.jsxs(USe,{variants:NSe,initial:"exit",animate:"enter",exit:"exit",...D,...J,__css:i,children:[c,V&&v.jsx(dt.span,{srOnly:!0,...$,children:p}),g&&v.jsx(dt.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:v.jsx(dt.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}})})]})})})})]}):v.jsx(v.Fragment,{children:l})});oo.displayName="Tooltip";const sU=e=>{const{t}=tt(),{showText:n=!1,text:r=t("common.loadingInvokeAI")}=e;return v.jsxs(Re,{width:"100vw",height:"100vh",alignItems:"center",justifyContent:"center",bg:"#121212",flexDirection:"column",rowGap:4,children:[v.jsx(L0,{color:"grey",w:"5rem",h:"5rem"}),n&&v.jsx(Gt,{color:"grey",fontWeight:"semibold",fontFamily:"'Inter', sans-serif",children:r})]})},VSe=A.lazy(()=>Promise.resolve().then(()=>tDe)),HSe=A.lazy(()=>Promise.resolve().then(()=>uje));function GSe(e){return v.jsx(A.StrictMode,{children:v.jsx(Gq,{store:EN,children:v.jsx(BM,{loading:v.jsx(sU,{}),persistor:_N,children:v.jsx(A.Suspense,{fallback:v.jsx(sU,{showText:!0}),children:v.jsx(HSe,{children:v.jsx(VSe,{children:e.children})})})})})})}const et=Yq,be=Dq,WSe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdMAAAHTCAYAAAB8/vKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFyWlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNy4xLWMwMDAgNzkuZWRhMmIzZiwgMjAyMS8xMS8xNC0xMjozMDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjEgKFdpbmRvd3MpIiB4bXA6Q3JlYXRlRGF0ZT0iMjAyMi0wOS0yMFQyMDo0NDoyNSsxMjowMCIgeG1wOk1vZGlmeURhdGU9IjIwMjItMDktMjBUMjM6NDM6MjgrMTI6MDAiIHhtcDpNZXRhZGF0YURhdGU9IjIwMjItMDktMjBUMjM6NDM6MjgrMTI6MDAiIGRjOmZvcm1hdD0iaW1hZ2UvcG5nIiBwaG90b3Nob3A6Q29sb3JNb2RlPSIzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjc0ZmY2YTc5LWE0MzktOTk0Yi1hYWEyLWQwODBiMTM5Mjg1MyIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjVhMjE5M2IzLTU1NjAtOGQ0Ny1iN2M1LWFmZGJjMDEzZDRkMiIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ4bXAuZGlkOjkwZmM0N2Y0LWYzODAtNTY0YS04MWUzLWJhYmExMmIwNjkyNyI+IDx4bXBNTTpIaXN0b3J5PiA8cmRmOlNlcT4gPHJkZjpsaSBzdEV2dDphY3Rpb249ImNyZWF0ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6OTBmYzQ3ZjQtZjM4MC01NjRhLTgxZTMtYmFiYTEyYjA2OTI3IiBzdEV2dDp3aGVuPSIyMDIyLTA5LTIwVDIwOjQ0OjI1KzEyOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjMuMSAoV2luZG93cykiLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjc0ZmY2YTc5LWE0MzktOTk0Yi1hYWEyLWQwODBiMTM5Mjg1MyIgc3RFdnQ6d2hlbj0iMjAyMi0wOS0yMFQyMzo0MzoyOCsxMjowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDIzLjEgKFdpbmRvd3MpIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDwvcmRmOlNlcT4gPC94bXBNTTpIaXN0b3J5PiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PvQowIwAAKYwSURBVHic7J13mCRV1YffW1Wd8/Tk2ciyyy45ZwmSBQQFAwbEAGb5EMyomAiKiGJAMSsCEiSIIDnnnBY27+zkPJ1DVd3vj5pFRGBnZ2anp2ru+zzDstBVdXq6+v7qnHuCkFKiUCgUCoVi4mi1NkChUCgUCrejxFShUCgUikmixFShUCgUikmixFShUCgUikmixFShUCgUikmixFShUCgUikmixFShUCgUiklibOoF9q3102GHQuFmQkACaAEagMaxPxNAHZAGUmOva8R5iG0EfGP/HpkCG4qAOfbvvUAVGAJyY3+OAANjf+8Z+299QOfY/8tPgQ0KhWfRjhx4y/+/STFVKBSEgGZgK2AhMBdHOFuAtrG/x4BArQzEsXEjsc04rgIUgC6gG9gw9tMNrAfWjv09NzVmKhTeRImpQvEfUsBiYDtg0djPwrE/U4BeO9O2GP6xnySw7Zu8JoMjrCvHfjqAF4GXcLxda4tbqVDMcJSYKmYjAWAOsAewFFgC7AQsAMK1M2vGEgd2GPt5LSWckPGzOMK6GngcWIXj7SoUswYlpgqvI4D5wN7AMmBXHBFtQCXgTZYgzgPIAuC41/z3IeBp4CngFeB+nHBxdXrNUyimDyWmCq8RxPGgDsTxOg/ECdV6MUQ7U6kDDhn72UgH8DCOyD4OPIYTPlYoPIHY1NQYlc2rmOEEgL2A/cb+3BtoqqlFivGQxRHXh4GHgEdQ4qqYwahsXoUXWQYcDuyD43k219YcxQSI4XyGh4/9PYcTDn4AuAsnRFypjWkKxeajxFThBuLAEcD+wJE4CUMKbxEFjhr7AadU51Ycr/WWsb8rFDMWFeZVzFQWAMcAb8fZe4vX1BpFLangeKx3AP8Enq+tOYrZyKbCvEpMFTOJHXAE9ChgX1TSkOKNeQG4EbgBJ5FJodjiKDFVzHR2AN6JU1qxR41tUbiPFTje6tU4SUwKxRZBialiJrIIRzxPwPFAFYqpYKPHejXwTG1NUXgNJaaKmUIMRzxPAN6Bapig2LI8BPwduA6nt7BCMSmUmCpqzSHAe4ETcYr5FYrpxASuB67A2WNVfYQVE0LVmSpqwVwc8fwITs9bhaJWGDj34onAOhxR/QuwvIY2KTyI8kwVU8mhOAL6XpxJJArFTOWfwF+Bq2ptiMIdbMozVftWiskSAU7DKVG4HfgQSkgVM59jgCtxsoG/iTMMQaGYMEpMFRNlGfBjnLFbv0aVtSjcyWLguzhj4/6A09tZodhslJgqNpe34TzRvwR8EdVUXuENDOAUnMb7/waOr6UxCvehxFQxXt6Ns8jcB7yvxrYoFFuSw4F/4GxdnIxaJxXjQN0kik1xMvAgcC3/mfChUMwG9gD+hLOv+gWcWbkKxRuixFTxZpwMPIuzmKguRYrZzCLgp/wnWUmVOCj+ByWmitfzWhHdsca2KBQzibk4yUovA+egRFXxGpSYKjaiRFShGB9p4Ns4ovpNIFRbcxQzASWminejRFShmAhpHE91Oc6eqhoZOItRYjp7OYr/JBYpEVUoJs58nD3VF3AiPIpZiBLT2cd+wL/GflRikUIxdSzFifA8iNNhSTGLUGI6e1iI0+HlARyvVKFQbBn2BW7CeWDdq8a2KKYJJabeRwe+gROCOqW2pigUs4qjgEdw2m221NgWxRZGiam3eQ+OiH4fCNfYFoVitnIa8CJweq0NUWw5lJh6k91wQkx/x9nHUSgUtSUFXAw8gdpm8SRKTL1FEPgR6gurUMxUNj7oXoka++YplJh6h+Nw6kXPqrUhCoVik7wPeA74XK0NUUwNSkzdz0Lg+rGfJTW1RKFQbA5x4BLgbmCfGtuimCRKTN3Np3G80eNqbYhCoZgwBwEPARcAoramKCaKElN3sgPObNFfArEa26JQKKaGLwNPAYfW2hDF5qPE1H18CXgGNVtUofAiOwO34zwoB2primJzUGLqHpYBdwA/RH1uCoXX+TTOQ/NBtTVDMV7UouwOPg08DRxSa0MUCsW0sRQnOemCWhui2DRKTGc2rTg9PlXIR6GYvXwZpy3hrrU2RPHmKDGduRyH442q6RMKhWIv4ElUS8IZixLTmcnPcepGG2tsh0KhmFlcjBOtaqqxHYrXocR0ZrEL8Bjw2VobolAoZizH4EStVEb/DEKJ6czhFOBxYI8a26FQKGY+LTi15ufW2hCFgxLT2qPjDO3+w9i/KxQKxXj5GnAXal5qzTFqbcAsZxlwOU54V+FBNM0GTTqPrWLjjwDNBp/lvEiXzn+XOI9T42koJwH7NX83x05g6WDqzr9vfI0EbIFtqWdnj3IwTuekk3EaPihqgBLT2vEe4I+ood2uRtMtRwA1AboNftP5Vmk4f5YDUPRDBahC1ZSUpEWhEKJzKIGUkr6MgWWDrsFIQZIvO//+Ztg2+A2oi4hXhbcxZmLoglS0SF08S0DT8RsCYQA+IGihhcrOwRZgAlUdTM0RWwtsc6PiK1xIM3Abjqd6fo1tmZUoMa0N5+Lc9AoXIJAIw3ZE05AQMMEnQdOhEIKCRrVkMpILsronRfewxkhBMlSq0j0Yo3skzFBOkClCriwZKZlUqjq5YhAJFMoCKR2HVVZxxG5TaDgiOUY4INEEhPwmAX+ZeFAnHtSIBQXJiKQpUaGtbpS6CDREdRrjsLBplHS8SMCnQ1iiRUsgTagKKI8JrQXS1JBSiaxLOA+nJeGHgWptTZldCCnlW77AvrV+mkyZFcSBvwDvrLUhijdGiNcIZ8CCoAmaAZkwdtFmKOPjxQ11dAzbdAwJVnQn6Bzy0ZWx6M/AaD5IsSScZawiQTPBN3Y+zfnRNYEQEkN34rS6Jv8T5RUgxKaFSyKxXxPmtWzhOJi2wLY1LCmdEK8twRJOGNg0wNAgAIEAJMJl6mMWTTGDefUmi1tGaU1ZzE3pbDcnQ2OqiB7UIVYCrQIlAWWfI/ZVDdsWypGduTwDvB94pcZ2eAbtyIG3/P9KTKeP7YBrgW1qbYhiDAmaYTvept+CsAnCByNhykWTVZ1Jnt0QZF0/PN+eYnU/dA5BfyZItSigbIGv6niphsDQwafb6LpEF45ozjRsCZYtMW0wLZ2qCVjS8UYrBvh0tLCgIVaitU6yIC3Yfk6WrVsqLG2WbDtniGjchkQF9DLkDajoYIJtqvy5GUYG+BBOXapikigxnRm8G/grEKq1IbOa14pn0IKIBaUQ9ojO+t4IT6wP80qHxhNrUqzqt1k/4CM36oeKCf4q+MEwwG9YGDoYM1AsJ8tGoa2YGtWqgKp0RNbwEYzZtKTKLGkS7L4wy5K2KrvNL7G4bRR/HIgUoSShaDieq0p4mimcCVxUayPcjhLT2nMW8KNaGzErkSA0ifDZTsg26ohndUTjlQ0JHlwd4Jk1EZ5YF2JNr2BoxA8lEwJV8AuCfonfsD0pmpuLZUsqlqBc1bArY4Lp8xNNVljQYLLrPIs9F2fZa2GZHRZkCKRMR1zzAkoGVMeyidWvslb8CvhMrY1wM0pMa8svcSa+KKaLjd6n34ZIFXQ/DPtZ2xHlnpVBHlsR48FVAdb06uSHfSDLEJb4/ZKAYePT1Wo/XixbUq5qlKoCioAdIJCwWdRksvvCCnssynPg0jzbL8gikiboJcj6oKKNZQ4rppnbgROAbK0NcSNKTGtDCGd/9KhaGzJb0HQbgjbEqlAJUOoL8cDKOPe+EOHuVyK81KEzPDAmniFJMCAJ+mx04STuKCaHACwpKZuCYllAUYAVIJK2WNpmcsCSIvsty3HosiyJ5hKEx7zWgk8J6/SyHDgWWF1rQ9yGEtPpZy5wC07CkWJLsdEDDZkQtaEUZLgzxK0vxbnr+Sj3LQ+zosuAvA2hKv4QhHxOyFaJ55ZHALaUFKuCUklAQQe/j/ktVfbausKhO+Q4dNssC7fKQrQEeZSwTh/9OFOpHq61IW5Cien0shNwK04BtWKqkaDp0ilXSZhQCtKzNs4tL8S55Zkoj670097lA6sKUYtoQOJXldQzAgFULKem1soLsAOkGi32W1Lm6J1zHLFjhoULsxB5nbCqqPuW5EScCJpiHCgxnT7eDtwMBGttiKeQgAAtYEKiCtJPtj3GTS/EuPmJOHc8H6GvVwNRQY/aRAI2PuV9zmiEcPZbCxVBJauB5SfVYLPvNmWO2zXHMbuM0rIgA4ESjPqgpKua1i3HF4BLam2EG1BiOj18EKf0RTFVbAzjxioQFtAT598vxLnxiTi3PhNhTbsBVDFiJtGARNecLkIKd/FGwtrQDIdsn+Nde4/yrp0y+NqyULVg1KdqWbcM3wK+V2sjZjpKTLc8p+MM7FVMltd6oSknkWjlK0muezTB1Y8meHKVH8omRE0SIbX/6TU2CmuuLDAzBmg+li6scvzuOd691zB7bD8KkbLTiqDoU97q1PJjnDI+xZugxHTL8mXgglob4XokaJp0vNAI0BfnH0/FufKBJLc+HSXTLyFSIRqV+JVjMisQwnFGM3kBWR/+pMaB2xf54N5Z3rv3IKF5WShZkPGrvdWp4684PX0Vb4AS0y3HhTidRRQTZWMoN1kBw6BnVZIrH0zxpwcSPPOKH+wqgYRJJPCfCWWK2cVGjSxWoTCqge1n8QKLE/fO8sG3DbPdtkNgVGDYh11VT1pTwBXAB2ptxExEiemWQQnpZJCg+S0nlGv6eeLZOv54Tz3XPhKlpwsIVYhHJT4DtQ+qeBUnDAwjeQEZH+G0zrG7Z/n424c5bLcRiOZhVMMu+TZ5LsVbchdwBM6gPsUYSkynnkuAz9XaCFciQQtWIWVDLsKtjye57M46bng0ipW10BIVEmFnNKgSUcWbsdFbzZWhPGqAz8eBO5T57OFDvGffAUjnIKMhCz7nPlIh4IlwP06FghLUMZSYTi1/A06qtRGu41URtWA0ytX3NnDpnXXc9WwAqiahVJWwXwmoYvMRwslJy41oIP3svI3J5w8b5sMH9ONrzUBWIHN+JaoTQwnqa1BiOnUoId1cXi+i9zVw8b/SPPScD7QK0ZRNQIVyFVOAEGBaMJrRoOJnyUKLTx46zKcO6yM8d9TxVJWoTgQlqGMoMZ0alJBuDnKsvKXO/F8RNSrEkzY+XYmoYup5dV81KyAfYNFWFp85YkxU2zIwKrAL/lqb6TaUoKLEdCpQQjpepEDzmVBfhUyEq+9p5OJblIgqph8hnN7Aw1kNcgG2WmjzxWMG+ewRfVCfhRENu+hTXur4mfWCqsR0cvwc+GytjZjxyLGpLfVlqIb41/1N/OiGeu55MgC+shJRRc14VVQzGhQD7LTE4sxjB/jwYb0Qy8OQgV3xgVA35zi4HzgEqNbakFqgxHTiqPKXTSGdzFuSZfD5eOTJNOdf18QND0ZAlImnTHy6avOnqD1CgG3D8KgGZT/77mzyjeMHeMeB3WAUYSCoOiqNj3uBg2ptRC1QYjoxlJBuCglatAoJm/UvNfLd65r4w51RZLFKtL5KwFAiqph5vJqoNKKD9HPcvgXOfk8Pu+86ACULORpQSUqb5mrgvbU2YrpRYrr5nAX8qNZGzFhe3RetwGCcC29s5vx/1DPYbxGsqxANCGwloooZjlNSI8kN+NDCBp89KsM3T+ilYeEgDKv91HEw61oPKjHdPD6HGkf0xmwM6aZLQJCb727mW1c28NSLBiRKpKPOa5SOKtyEJiBTgsqQn7Y2wbffM8CpR3dDJA8DfmxL9f19Cy5iFkXwlJiOn/cCV9XaiBmJBC3sdC5a9WI9Z/+tjavuCYNWJlVnoQkV0lW4FzEmloMZp5zmwF2rnPehbvbZtwdyEjvjV4L65nwHOKfWRkwHSkzHx4HAPbU2YsYhQdNsaKhALspF17VwztX1ZIdMovVVgj4V0lV4ByHAtCWjAwYEfHz+HRnO+0AHkdZR6Dewqyrr9034PE7lg6dRYrpplgFPAcFaGzKjkKDFqhCXPPJQC2f+sZWHnjYQyRLpCEpEFZ5FE5AtQXnQz5JFcP4H+3nXkZ1glpFDQWcrQ3mqr+e9OIlJnkWJ6VvTCLwANNTakBnDxprRxgrV/jjfunIOF1yfQFaqJOtNdBXSVcwCnNCvZHBYBzPAhw7J88OPdNCyaAj6dVWb+sbsAzxSayO2FEpM3xwf8DSwXa0NmTHY//FG772vjdN/18KzL2n468vEg8obVcw+NAHFqiTf76elRefHH+nlpGM7oFrBHg4qD/W/GQV2BtbV1owtgxLTN+dm4B21NmJGIEETEhrLkInyzcvn8f2rkyDL1NVZCOWNKmYxAsdTHRgVUAhw8hEFfvLxDurmDMGAgW3qSlT/wzpgJyBTYzumHCWmb4xqE7gRW6CFK1Bn8cwTrXz60jYeeVYnkC4TU96oQvEqr9am9vtZMEfnl6d1cdRhHZADO+MDrdYWzhjuAQ6utRFTzabEdDZ+/GeghNRBgpYuQsDPT/+0hD2/uoBHlktSrSWiSkgViv9CSgjognRLlXUDZd7x/Ra+8KPtsMsRtJYSmiq03shBwG9rbcR0M9s806OAf9XaiJqzMcmoqUr/+hSnXbKA6+8PoieKpFSmrkKxSTQB+bKkOBBkjx0sLvtcJzvt2g0DOnZZJSeN8VXgglobMVWoMO9/2Bp4ntleAmMLtEgVkja33zmHT/6qjbUdFvHGimpKr1BsBq9OpBkwCAYD/Py0Hj7+7g1QNrFH/LMz7ve/vAO4pdZGTAVKTB0CwIvAolobUlMkaHUlkCF+8OeFnP3XBOhl6lM2UgoVoVIoJoCmwVAW7GyQjx5Z5NefXY2vLovsCyDlrJ9EUwJ2AFbV2pDJovZMHa5iNgupBE3YaC1lBvvqOO7sZZz9+ziBaIn6lMRWQqpQTBjbhlQUog1F/vCvAHt9aSnLX2xBtJbRfBbIWa2mQeBWHIfG08wGMT0HOK7WRtQMKdACJrRUeOihuex51jbc+KBBvFklGSkUU4WUEDAEdW1lnl4l2esrC7jq+q0hDVqkDPasFtRFzIK+514X03cC3661ETXDFmjRMiQFv7tya/Y/ew5resukWyr4VO2oQjGlSAlIQX2jRbZa4v0XNPL1ny0Ff8DZXrFrbWFNOQ74Rq2N2JJ4ec90HvAyEKq1ITXBBq2+CJUIZ/xqMRf/I4weK5GKOmEphUKx5Xhttu+7D6zwl7NWEm7IIntn/T7qYcAdtTZiIszmPdObmY1CKkEg0VpKZAbqOPqby7j4mhDh9FjZixJShWKLY0sIBwSJlhLX3edjr7OWsuKlZkRLxSlLm71RoWvxaC90r4rppcD2tTZi2hmrHxXNFZa/2MxeX1rCvx4xSLSUCKlxaQrFtCIlGEKQbi3zwlrJ3l/eitvvnActFTT/rE1MigPX19qILYEXxfT9wCdrbcS0I4XzBW0uc9e989j3K1vxcrtFuqWMofZHFYqaIAEpBQ2NFsPFEod/t43fXrE11EunjefsTEzaFzi/1kZMNV4T04XAn2ptxLQjBVqoAmnJn65ezCHntDFSLNHQaKn6UYViBmDZUJ+S6IEip17cyHd+sQ2EfWiJ0mwV1K/gdKTzDF4T038A/lobMa3Ywkm9jxn88LdLOOWiJnR/kfqUxFL7owrFjMG2IRWBYKrIOX+Kcdq5y0CG0NKzVlCvwkP7p14S04txRv/MHmyBFi+DP8CXfrINX/ltgmCioBKNFIoZii0hEoBYU4nL/uXnnd/alkoujNZUnI2lMzHgilobMVV4RUyPBE6vtRHTii2cJ1oR4uTvL+PCq0NE6otEVCMGhWJGIyX4DUGytcxND+oc9o1lDPem0Bors1FQDwHOrLURU4EXxDSKh55uxoUt0BpKlHNh3vXtpfzlDh+xpjJBv0o0UijcgJSg43RMuu85jQO+vA0DnXVorUVm4Zf4QmDnWhsxWbwgpn8FkrU2YtqwcYQ0E+aos7fl+vsMki1l/IYSUoXCTUhASEG6ucILay3e9rWtWL28Ba2pwiwsRP17rQ2YLG7vgPRh4M+1NmLasEFrLFMYjnL0t7bhnqd1Ui1lNFTG7kzHsmws23L+tCxM08K2JdiWk+ppms5Mr0oV5HhifQL8PudPQ3dGl2gamq6h6zq6rmEYOpqmo2sCIWZlgotr0DTJQK9BQ9rP/d9bxzY7dGH3BphlrZIuAb5QayPeDC+PYGsFVgLhWhsyLdigNZfo35DmyG8v4qkVkGqqKCGdQdi2xLRMKhWTStV0BLJYAsuEYBAjFCQUChKJhknFIkRCQcLhENFomLpUgmrVpLW1kWgsjGlab3odTdOoVqt0d/VjWTajmSzFYol8oUgmm2c0X6SQL5LLFTBLJSiWnf52wQD4ffgNA5/fh2Ho6JoXglPeQNNgoF+jvs7PA99ZzzY7zkpBPQi4t9ZGvBFeFtN7gANrbcS0YIPWVKa/I81B31jES2ts6pqrCFVDWjNsW1KpVimXK1iVCuRLoGsYsSjpdIKmdIqGdJJ589uYN7eFuniEdF2SurokrW2NxGMRdCHw+3z4/D5CoQC2ZRONRQBjPBZQLBSwpaRcrlCtVqlWHREvlSv09g7Q3d3P0NAIo/kC7R29bGjvpqevn96BUQaHRyiPZh1POBxCBPwEA378Ph+6rgS2VihBpROnX0C11oa8Hq+K6aeAX9XaiGnBFmiNRfo76zj464t5cZ1NuqnqNMtWTBuWZVMqVyiXypAvABCur6OtpYG5LY0s3WYhW281h5bGehYvWUBDfYqg308yFcfvDyExqVZNTNOkUqliWhZSSmxbIqXEsmyE4NXw73iisoahgxBomoYmnFCupjl/9/t8+P0+DJ+BhoFllhkZyVAslxkcyrB6dTsdXb20d/Xx4gsrWd/ZQ0d3P9n+IUdgo2H8wQCBoB+fMR5xV0wVSlC5FPh0rY14PV4U0znAGsBXa0O2OBuzdjMR9v/SMp5YDukWJaRbGiEcz7NUrlAslCCbB79BfUsjC+e1ssN2i9lh20UsWTSfbbZZSDwaIV2fRNN8VKolisUylWoV25ZjAmqNSxy3JJqm4fMZ6GN/BoMBgoEgAIMDg+QKRVat3sArK9awYvUGnnpmOavXd9LV1ec8PIRDBCJhgkE/hq6pZLctzH8J6nfXO3uoPQFqfiNNHwcxw8K9XhTTu4CDa23EFscWaPUlylkna/fu5zTqmsqztTn2tGBZNoViiWomC1WLeEsDSxbNY49dt2PH7Raz047bsHB+K+m6JD5/kEKpQLFQenWf1LIsVyX6SCkdL9bvQ9d1QqEA0XAEpE3/wBA9fYM8+9zLPPnMyzzx1Iu8vGo9Ax09ICVaIkYkFMTnN2Zh4un08Kqgpvw8+oN1bLVdN3Z30Bs1GJumE2eoeLnWhmzEa2I6O7J3bYFWV6JaDHPEN5Zx91Mqa3dLIISgaprk8kXs0SzoOnMWzmH3nbdl7z13YO/dd2CbJQtobEij6TqZXI5SqUyl4oRr3SSc40VKiaZrBPx+/H4fiXgUDRgYHGHV6naefGY5Dz/+HI8+8Tyr1nRALg+JGLFoGJ9PCetUo2kw0Kez9Rydh85fTcOcQSfkOzsE9WfMoGY8XhLTBNCF17N3bYGWKIMMccJ3lnLdfQapViWkU4UQAsuyyRWKmCOjYPjYavF8Dth3F/bba2f22mMHtt5qHqFwlHwhS75QpFyuus7rnCo2iqvf5yMcChKPxalUimzo6OHJp5dz172Pcd9DT7P8lTWQLyCScUdYDYNNrS2K8bGxbGa7BTr3n7+KVPMgdl8ItFnx+90DeKLWRoC3xPRK4H21NmKLYgu0aBkCAT5y7jL+fKuPxMYRarW2zcUIHIepVK5QGBoB06J10TwO2GcXjjpsP/bZa0e2WjAX3fAxPDrqhHor5izanho/UkoMwyAUDJBMxtCEYH17F489/jx33/c4d93/BCuWrwLTIlCfIhwKogmhhHWSCCEZ7Pbzth0lt527nGAkjz0UnA2C+jywY62NAO+I6RHArbU2YosiBVqwAjGDL/90KT+6OkisUXU2mgxCCEzLYjSTg5EswYY63rbPzrzj0P047O17s2TJQnw+H4PDIxSLpbFEIaWg40VK+epeayqVQBeC1Wvauf+hp/nXv+/n9nseY6SjB2Jh4sm48lYni5AMdfo5Zj+Lm777MlDEzgZAeP53ehbw41ob4QUxFcBaYH6tDdliSNB8FjTY/Ox323D6ZQki6aLqtTtBhBCUK1VyA8NgWyxatjXHHL4/x77jIPbaYwei0QgjmazT1MCje5/TjSOsGuFwiHQqSbVa5amnX+Jftz3Ajf+6l2eeehEsi3BDHcGA/9VogWL8CMCUktHuIB89qszvv74cClXsot/rgloFFuBs89UML4jpOcC3a23ElkQIG9FS4arrFvH+HzUTSOSJBYWa/rIZiLF/FIplin2DEAlz8P67c+Jxh3DkYfux1VbzKVfKDA6NUq3OuHpwT7ExFJxKxYmEwnR39XD3/U9w1XW38e87H6I8NIqRThKPhhEqBLxZCAEVU5LtC/LtD+Y453OvwBDYFd3rZag3A8fU0gC3i+lCnJpSzyKkRLRUuP++eRxwThuaUaQupuaRjhdHRAXZXIFK/xDB+hTHHnUAH3rf0bz9wD2JRiMMjYySyxWwbVt5odOIlBIhBKFwkMZ0HeVymYcefoYrr72V6266m4H1nZCMkUrG1b7qZiAElCqS/HCIyz43yCc+uALZ40damtcF9Ujg37W6uNvF9BacX6A3GWsTuP6VJnb5ykKGc2Ua6iSWEtJN8t8iOkispZGTTjiCk95zFG/bb1cQgr7+IcqVqsfXF3cgpcTnM2ioT+H3+Xjm2eVcec2/ueoft7PuxZWQiFKXSihPdZxoAkYLUC0Fuf1bXRx6SDuy24/09t2+HtiKGk19dbOYejvpyBZo6SKF4QR7fmkZL66rUt9oK490E7yZiH785OPZc4+dKFcr9PcPq73QGcrGvdVUKkE0HGXNmnX85cqb+cPlN7L+pZWIVIJUMoZAieqm0DQYGBbEQkGeOHcdS7bvng01qN8Azq3Fhd0spqtxnkK8hxRokQroQY795jb882FdtQkcB0II8sUSpb5BYk31/yWixXKJ/v5hFcp1CRtDwMlkjEQsOSaq/+TXf7iW7lVrMerTJGIRkFIlKr0FG7skLZvr47ELlxOtG8Ue9HQNahknGalnui/sVjE9A7ioFhfe4rwmc/erP17GBVdGSbaW0FUt6ZsihKBSNcl296HFwnzghCP5/CdPYs89dlQi6nJeL6ovvfQKv/vzP/j95Tcy0tlDqKmecCiovNS3QGiSwS4fR+9j8c/vvQJWCTvv6QzfK4GTpvuibhTTONCNRzsdCZyEoyuuXcgHLmwiUlci6EeVwLwBQghsWzLcNwimxVHHHMSZn/swBx+0J+WqSX//kBJRjyClBAHpuhSxSJQnn3yOi395OZdfeyuyUCLR3IBh6EpU34D/lMyE+PpJWX7wf8thQMOuejrDd3fgyem8oBvF9JfMwPE7U4INWkuZ555oZbevLUBqBVIqc/cN0YRgOJPDGhxmhz124kv/9xHed8IR6D6D7p5+1WDBo2z0VBsb6wj6/dx62wNc8JM/cO8dD0E4RLo+9errFP9BCChWJIXhIH//ci/vOW6dk+HrXTV9CNhvOi/oNjHdGlg5nRecNmyBVlckP5xg1zOXsqLTpKHeVpm7r+PVkG5XD5HGer70+ZP5zKnvpaGhnu7ePkqlCprm2QVCMcbGWtWW5nqKhSJ/vvwmLvjpn2hfvopQcwORcBBbFWL/F5oGg1kwCPPUeevYfucuryckvRv4x3RdzG1ieiNw7HRecFqQoIVM8Pt59znb8I/7faRbK0hbicJGxFjXhcGBYSiVOe5dh3H2l09l9912ZmhkiEwmpzzRWYiUklA4RFN9A+vWree8H/+O3/zhWjAt6loaVCnN69A0GBjQ2HGBj8d++DKB2Cj2iGd7+K7BGdM2LWxKTGfSM8u+eFFIcRIEqLP40eXz+ce9QRJNFVBC+iqaJihXTAbXdtDWXM9vf/N9rrn8x+y441LWb9ighHQWI4SgWCiyrr2ddEOKX19yDjf9/afsvMu2DK3bQC5fRNNm0jJWW2wb6tIWz71i84mfLwRfAC1Y9Wrvxq2YQVuCM8kzfYBpjoFPB8IG0Vrm/vvmcMC35hAMl4gEVcIRjOVGaILB/mEolXjf+4/le9/8DIsXL6K7r49SsaxCuopX2dhYf25bM4MDw5x34W/58S8uh2qFupZG5aWOIYCKJcn2j3VI+tBKZ//Um6V3fcBcoLKlL+QWz/RIPCik2AKRKpPrinPKL1uBCtGQElIAoQkqpsXg2g5am9L8/rJz+dsfzqNtTgvr2jdQLikhVfw3Tna3zdr1HWg+nQvP/zK3XnsJO+2yHUPrOigUS8pLxXFCA4bAlyjxyT/W89xjbYj6So36Bm1xGoGv1toImDli+sNaGzDlSNBCVRBBPnbJVqxZb5NOWypzF9A0jZGRLNnuPo5/7zu4++bL+OhHTqR3YJjevkGEECqsq3hTNE1jdDRLe2cXRxy+P3f+8zd8/osfoziSYaB3AE3TvJvDOk5sCYkI2JUyp/yyjepQAi1eAW96p18GorU2YiaI6THADrU2YqoRwtkn/d2187j6niDxxuqs3ycVQoAQDHT2YAAXXfR1rv3bRcyZ1+p4o2WVqasYH0IIpC1Zu74TzdD52Y+/wVV/uZC2lkYG1nZg2nLWP5DZNtTVWTy9HM76/VyIaGiGWWuztgQRnJmnNWUm7Jm+CGy7pS8yrdgCrbHIqhdb2PErC6jKEskIs3qkmtAE5XKVXGc3O+61C7+46Gvsv+8e9Pb3UyiUlIgqJszGMpo5rS2sWLGaz37xXO64+W4CjWli0Qj2LA4HCQGlqiQ/EuSmr/dwzJHtzv6p975ueWAOMLKlLjDT90w/gteEVIIWqUI+ykd/3UYxVyUZnd1CqmkamUyOXHcfH/roe7jjxkvZd59dWL+hg2JRCalicgghME2Ltes3MG9BKzf+/Wd8/Zufo5zNM9A/NKv3UaWEkF+Av8Kpl7Uyui6JSJW9GO6NAN+ppQG1vsu+UePrTzlCSEhanHfFPB54ykeywZzV+6SapjHQM4BZqnDhRV/jL78/j0A4yPr2LoBZH4pTTA1COCVW3d395EtlfvDdL/L3v1xIOhlnYJbfa7YN6aSkp6fKp343DzQfmr9aa7O2BJ8GajaZpZZiehywuIbXn3psgWgs89QjLZx9dYJgndPAfjYixhr3D6zvpKW1kRuv/Clnnv4JevuHGBwcndXegmLLoWkauVyejq5u3nPCO7j9hkvZZc8dGVrXSXUWj+WTNsTqq1x5d4jr/tUGacuLffB9wOdqdfFarmg1dcmnnLHwrjUa5dO/a8WuVmdtGYwQgqppMryuk7323427b/4Nxxx9MO2dKqyr2PI4YV+Tde0b2GHHJdx2w6844f1Hk9nQPVY+Mzvvv4AhEKEyn/pTMyNrU14N954JxGpx4VqJ6bHATjW69hbBCe/anHfFPB571kdd/ewM72qaoFAsk9nQxYknHcst//glWy2ax9r1G7AtlWGpmB42lldt6OghGArytz/+kC997dMUB4YZGc3NysiILaEuIenvNfn07+aC5kN4L9wbxRHUaadWd5S39kptgagv89KTTXzvhgSBuhJiFla6aZrGaCZPsW+AM7/yKf76h/Mw/D46Onqc2r/Z9ytR1BhN0+gfGCZbKPDDc8/ikp+djVWpMjAwOxOT/hPujXD9rW0Ib4Z7Pwf4p/uitbib9gf2qsF1twwbmzMUw3z2D61UClVi4dkX3tV0jcGhEaq5PD++6OtceP6XyRWKDAwMz8pFSzFzcLLJ83T39vG5T3+Eq/5wPtFgiIGe/ll5bwYMAaESX/hrM9n2JCLuuXBvmhr07K3FnTQjWj9NFQIgZXPZDXO55wk/iVkY3tU0jYHeQXxC8KfLfsAXT/843X39ZDL5WblYKWYemiYolyts6OrkPSe8g39e/VMaGtMMdPQgZtk9aktIx202tFt89W9zIGQgdKvWZk01XwT06bzgdN9F2wJHT/M1txxSIJJlBlam+No1deixEsYsi2U6QjpAJBTiit+fz8kfOoGOri7VW1cx4xBCYJkW6zs6OeCAPbj9+l+xaJuFDK7vdPZYa23gdCIFkfoKv/x3jIceaEbUl73WoW0ecMJ0XnC6xfSL03y9LYowTND9fOlvcxjsM0nGZld4V9M0Brp6SadT3HzNJbz7+MPZ0NmJOYtLEBQzm41tCNe1d7HTTsv4599/xpLtFjO4vgs5iwRVAqGAAKvMmX9rhGwULey5UW1fms6LTaeYNgMfnsbrbVlsgaivcP+DjfzxrgjRdBU5i8K7rwppQ5rr/3YRBx6wJ+s7urAsSwmpYkYjBGhCsHZ9B4u2ns9tN17KnvvvytC6jlklqLYNybTFI8/6+c1NcyBpe+29744zJ3tamE4xPZUaZFhtKbRwFTkS5YtXNIIoE/R57DZ8C14rpDdc8RP232831m3oRKrm4goXoWkaHZ09tM1p5sa//4y93rbHrBNUXQj0WImvX1PHwMoUIum5ZKQvT9eFpktMfcAnp+laWxwhgaTNZf9s44nnAyRT1qzpvft6Id1vv91Yt6ELJKr0ReE6NE2jfUMPyboEN/z9p46gtnfBLNnvlxKSMRjstfjm1a3g93ktGek4YOF0XGi6xPREoG2arrVlkSDiFUbXpvj29XXoseKsaRm4Mdmovqme65WQKjyCrmt0dvZRV5/imr/+mKU7LGFwfdesyfKVNkTSFX5zV5SnHmtA1FW8low0LY7cdN0tn5+m62xxhJAQEpx7fRM9XZJkVM6KpCNN1xjoHyIYCvD3P17A/vvtoYRU4Rl0XWNDRw+NLfX844qLWbzdYgY7e2dNaVcoILBLVb5+dRNUgoiApzojfRQIbumLTMedsguwzzRcZ8sjBaKuwsvPNvDTf8cJpTw7uf6/0DSNwcERDF3j8st+wMEH7U17R6cSUoWn0DWNzs5eli5dxLV/vZCmlgYGuvvQde8Lqm1DPG3y78eD/OvuZkSdpzojNQLv29IXmY675DPTcI1pQRgm4Oe71zVTzlqEQ17LJP9fNE2QyeaR5SqX/eybvPv4o9jQ2YNt20pIFZ5D0zTWtXey7XaLufovFxJNxunvHUSbBYLq1wUYJb5+bRPWQBwR9pR3+qktfQEhNxGjtG+d1Hi4OLBh7E93IwVaQ5FHHprLPufMJRop4De8rSZCCEqlMvn+QS784Vc584xP0NHdhVlVdaSTxTB0DMNA0zQ0ITB8Oj7DQDd0dE1DAoau/1ePZ4nEsiwkIKXEMi2qVZOqaTp/t2wsy8I0zVmx9bClkGMRl/lz53D9DbdxwslfQug6qVQc2+PtzWwkI31B/vD5QU55/2pkt99LwbcdgBcmerB25MBb/n9joiceJyfhBSEFhM+EUohvX98AVacUxssZvBvHWOV7+jnjrFM584xT6O7tUUK6GUgpMQwdn8+H32cQCgUJBPwIDErFHKOZHMViiYppMTQ0wuDgCJlMnkKhiBCC0Ux2bAanhpQSXddIxmMIAYbhI5mMkU4nqa9PYegaoWCAeDRCNBoFoFwpO+evmlSrJqZp1vg34g6EcD679o5Ojj/uCH7+owE+89lzyAd8hENBNuWAuBldCLRQhe/dWMf73zZAMD6KzHumovHTwGe31Mm3tJh+fAuff3qwBSJd5d67WrjtySCxugK2hx7X3ggJjG7o5l0nHcsF3/8/BoZGKZUqqkXgJjB8BgG/j3A4RDgYxqyWGRwaoau7jxUr1tPV1Uvv0Ahr1nbQ3dXPaDbLUCZPNlegVCxTqVSoVqsgBLJcAcse25h23CURCABOQlgwECAUChCJhIhHQtQl4zQ11jN/fittzfW0NjewZMkC6uuS1KUShMIRypUSuXyBcrnqXEfxhgghsG2bzp5uPn3aB+jo6uXc7/4C35wmfIbhWUGVEpJxmzVrBb++rZHTP5pB5DyTGvJ+nK5IhS1x8i0Z5t0ReHaiB88kNL/TNvDgs5dxz3NQn7Y97ZVqmsZAezd77LMzN1/7c4LhoJr+8gZIKdE0jUDATyQSIhqOUizk6e4d4OWX17B8xVpeemUtK1euY21nD/39w5RzeSiVwTAgGABdx9A1dEN3Qr6a5jywSOdzeH33ANu2QToPO7bthHWd8K6NtEwoV6FSAb8PfyxKOp2kpSHNNosXsP22W7Fs8UK2334xLU31RGNxSpUi2WyeUqmiule9AbYtiUbD1CVjnHTKV7j6rzeSWtDm6aYOAhjNQ2PCz4sXrCTZOIKd9f/PvehSPgRcPpEDNxXm3ZJiejFw+kQPnjHYAq21yI03zee489tINBQ8XVeqaRoDfYM01ae486Zfs82yrWnf0D0rMhrHg5ROl6dQKEAqmcBnGPT3D/LSy2t49InnePyp5Tz/0kraO3opDg47j/qRML6AH7/fQNcNjGn4XVq2jWlaVKtVKhUT8gWwbHypBPPnNLHt0kXsuvNSdttpGTvvuA1trU3YAoaHRykWy0pYX4Nt29TVJamWKxxzwud49KGnqJ/X6un9UyEkg90BvvPhUb716ZXIHp9XvNO7gbdP5MBaiakfWI/Tj9fVaH4TND/7fm0ZDy+HdJ3t2eQOTRNkMnnMSoXr//YTjjn6INat71KhXRwR9ft91KUSBAMhenp6eOzx53nwsWe576GnWf7KWka7+0DX0aIRgkE/fp8PXRcz5n6RUlKpmpRKZax8AcpV/OkkS7eezz577sjbD9iDPffYgflzWzClZGholFKpXGuzZwSWZTNvbgvLX1rFoe/8JH2DI9Q31HlWUAUwWoD6mJ8Xzl9FunkYO+eZvdPFwKrNPahWYvpO4IaJHDijkAKtuchNN8/nnRe0kkh7t9uREFCpWmS7+rjggi/x5bM+SXtHB7YtZ20JzMYwbiQSJp1KUijkefTx57n9zke4/Z5HeOq5l7FHcxANE4qECQT96NrMEc+3QgD2mLjm8wXI5CASZumShRz8tt048tD92HevnalvqCeTyzA6mpv13qqUkgXz2rjmun/zng+fRSgaIRwJeXb/dKN3+r2PjHD2J1ciezyT2fst4Hube1CtxPQapnmW3JZAMywIGBz2rW254ylIp73rlSIEQ+s6ee+H3snlvz+PweEMxWJpVi6eGzNn03VJwqEwa9as57Y7H+b6m+/hvoefotg3CNEI0UQUv89Xa3OnBgHVqkk26wiriEXYa7ftOf7ogzjqsP3YccdtqJgm/f1DVGdpRreUTqekuW2tfOcHl3DO2ReTmNeC7tFcAgGM5ATzGwxe+OFKQolRbG9k9r4CLN3cg2ohpnU4taXhzT1wRjFWV3rnXfM49Lw2YvEiPo+GOzVNY6C7j2XLFnH7Db8mnorNyoSjjaUsjY1p/IaPRx97lmv+cTs33HIvK19YCbognE4RDPgZy6/1LJVqldxwBkplmhbM5egj9uOkE4/kwP13RzN0enoHZqWoSimd7OlohHeddAa33HAH6QVzkB4N9yIkQz0hLj51iNNPWeWlvdN9gYc354BaiOkngMs296CZhqZZENM57pxl3PigTn2jNyfDaMLpcIRlc8s1l3DQwXuxrr3Ls0/bb4Tjieo0NaUxhMY99z3G366+hWtvuouRjh5IxknGo+i67tmQ3huxsTwkmy9gDgzjSyU56rD9+MTJx3Pk4fuhGwbdPf2zTlRt26apMU1v7wAHH/UJ1m/opr6p3pP7pwIYygoWNft44YcrCEQy2EVPRGMuBs7YnAM2JaZbYsV8zxY45/QiBaRMnniynn89HSSaMj0ppABVy6IyOMI5XzuNt799PzZ09MwaId0ojE1Naea2NfHgA0/yoU98jSNP/Dy/+9XfKJSr1C2YQzoVR9O0WSWk8J/M5Xg0QnrhXHxBPzdeeyvvfP//ccIHz+TmW+6jsb6OOW1Ns+r3o2kavX2DLFwwlx+fdxbAq402vIYEkjGbVes0rnogBXHbKxNlTgQCU3nCqV41W4ADp/ic047QLJABfn5nGjNvenbwt6ZpjHb18o53H8YZnz+ZvoH+WbEgSimRUpJMxpk/t42XXlzFxz/zbQ4/4bNc8efrMfw+0gvnEo2Exl5fY4NnAFJKggE/6XmtRONRbrruNt75vtN59we/yD33PMbctiYaGupebXXodTRNo72jmxOOP4IzPvdhCj39SI8G/jUhwFfh0ruTyOEQWtATnbTmAAdN5QmnWkzfzxSrfS0Q8SprX45z3RMhgomqJ71STRMMDo7Q0NbMhd87A4Qgn/fm0/VrsW1JIBBgwbw55DI5vnr2j3n7sZ/k97/6G4bPT3p+G6FgYFYIwkTYWCKUntdKJB7ln9f+myNO/BynfPKbrF3dzoK5c4nFIp4Meb4e27YZHB7i7C9/gj0P3JOhrn5P5hlICYmExcMvBrj10XpIVr3SEmlKk2Sn+pM/dorPN+0IAL/O7++tIztoEwl64qb5H8qVKrJY4rxzvsCyZVvT3TvgyYVgI1JKJJLWlgYa0gl+94drePvRp3LBD35JoVwhvXAukZAS0fEipSTg95Ge34Y/GOBPv7mKg485jXMv+CU6sGB+G0ITnv59CiEYHc2RSCW44Dun4w8HyebynnwgNTQBVPn1PWkohtB0q9YmTQXHMIXO31Sunq3A3lN4vpogIlXyHTH++lAcI1r1ZIhPaIJsdz/vf//RfPTk4+nu7fdIp7A3xrZtwuEQC+bO5cUXV3LCB87kE588m5Wr26lbMIdEPDomtorNRUpJJBggvXAOg5kc3/jqjzji+M9w220PMK+tlUQi5mkvVdc1Ojp6OOjAvfnSF06m3DeE7cFFQ0qIJEz+9UyQ516og4Qn+jq3MIWh3qkU02OA0BSeb/qRAqI2f384xbp2jXjUe18KIQTDQxka57Xyra9+imKpQqlU8eTT9Ma90eaWBhLRMBf99PccfMxp3HjNLcSa6kk3pl99nWLibNwnrUvGSc1v47FHnubIEz7PWV/9IXbVZP68VhDe/T1LKRkYGuas0z/CXgftyXB3nyejPEGfoJqz+OP9CdB1rzyAT1modyo/8XdP4blqguY3YSTEHx9Igr+K8Ma+wH9RtSzsXJ5vfeU0li1bRP/AkCfbBUop8fkMFsyby7rVGzj+/Wdw5hk/IFsoUb9wDj5jdpW5TAcbs3/r57QQCAf58QWXcuhxn+Le+x5j/pw5hMNBT3qpQggymRzxZJzvffOz+EKhsezeWls2tUgJvmiVvz8WZWhdAhH1hHd6KKBPxYmmSkzrgf2m6Fy1QQJxk/ufSXPf8gCxuOW5sJ+maWS6+zjimIP5+EfeRW//W9dNuRXLtonHo7S1NPOXv13PwUd9gltvvJP4nBbqUnFsL2aUzSBs2yYaCZFaMJdnnnyBw4/7DOdf+BtSiTgNHu1nq+saGzp6OOzt+/Lpj59Ioacfz6kpEItIOjs1rnk0BRHbC4lIC3EaOEyaqRLTQ4HoFJ2rJjgjIw3+8lAcShZ+3fU3yX8hhCCXyxNJJfnWl09F0zUKBY+1C5ROtm5bayOG0Pj8Gd/n5I9+hd6hYccb1WdPLWStkVIigPq2ZjB0vvalC3jvh85idDjDwvltniyhkVIyksnwxc+fzNY7LmVwYNgpK/ESUoC/yhWPxGEk5ETz3M+RU3GSqRLTo6boPDVDxCp0r4lz/ZMR/PGK5xKPJFDqG+Izn3gP++6zK1093srelVKCBgvmtbJhfRfHvvd0fn7x7wjVpahvSGPbtuciDW7Atm0S8Sjxuc1c//d/8vZjTuXBh55mwdw5+HzeGrIthGB4OMP8+W18/cyPQ6lCxfSE2PwX0bjFvcuDPPRsPcQ98f7eMRUnmYrVNIjjmboXKSAsuenJJP19GtGQt54mhRAMDQyzeKelfP5TJzE8OuqpTgRSSgyfwfw5c7nr7kc4+OhTue+OB0jOn0s4FPBkWNFNSCnxGTrpreax4qXVHPbOT/GHP11DW0sz4XDIU5+Ppmn09PXzvhOP4MijDiDTO+iph1aAgC6QRZMrHosBhhcSkXYGtpnsSabiU94bpyzGtWh+E4bDXPloAnxVz3UwNy0LSmXO/NyHmTu3jZGRrGfCu7YtCQYDzGlp4Y9/voZj3vsFOtq7qV/Qhi68XefoJqQEaUvq5zRTMk0+durX+fb3LyGdjJNMxj0lqMViGZ/fx1e/+DGCsSj5QrHWJk0pUoIRrXLTUxFGNsQQEU8kIh082RNMhZi62ysFiJk8+VKK+5YHiMY8UYz8KpqmMdo7wEGH7ssHTzqanj7vdGmxbZtYLExzYz3n/ehSPnrqNyiZJg2tjdi2qhudidi2TTqdJFiX5LvfvJhPfeF7BHwG6foUlkcEVdM0unsGOOBtu/Phk46m2DeI8FjGfDwsWd+pcdOTSYhILyQiTXrfdCpW1UOm4Bw1QwBoBtc+FcMqWAQN198U/0WpXEH4/Xzxcx8iFA5SLJZqbdKUYNs2iUSMeDTCGV86n69/9UL8iSj1ae8syl7Ftm0i4RDRtiZ++6u/ctIpX0FYNi3NDViWNz4727bJF4p87rT30Ti/jcxozlPJvQIBmsk1j8ehEPRCR6S3AbHJnGCyYjoP2G2S56gpIlil2h/mpqcjiJC3psMITSPXN8h7jjuUww/Zl26PJB29KqSRMJ//4nlcfOFvCDfVE58lPWG9gNOO0E98bis3XnMrx7///xgdztDW1ugJQRVCMDA4wo47LOW0U95NdTjjqVIZCYSiJncvD7JmdRRirg/11jHJ8s7Jrqz7A+4ebheR3PlsghfWGcSj7v8Sv5ZisYg/FuFTHz8RoQmqFfdn3r1WSD97xg/4zS/+QrSthVAwoOpHXYaTmGSQmt/GXbfcw7vedzojQ6OeEVSAkUyGj334eOZts5DhoVHP5CoAhAOC7LDkpqfjEBBeCPVOat90smJ62CSPrykCQOrc+HQMqvZYM2dvIDRBoW+YD7znSPbfbzd6+9zf6eh/hfSvRNuaCPj9KtHIpUgp0YC6hfN45P7HOf59/8fQwDDNzfWuD9c7pTJZFi6cy6c/egJ2toCXCrSkBAyTm56OwWgYzef6h/WDJnPwZMXU1Y3tRbhCvifCnS+F0cPeamqfzxWIN9XzmVPfh2lZWJa79zRsWxKLRYiEgnz2jHOVkHoICQgpqVswh0fufYSTTvkqVrVKQ33K9R6qpgkGh0c4+YPvZNtdljEyOOIp7zQSs7h/RYDnV0TB/cmbO+PMOZ0QkxHT7YElkzi+9oTh3pfirOjQiYW9syALISgNjvKB9xzBbrtsS1//kKu/wFI65S/1dSm+9q2f8ptf/EkJqcfYKKjJ+XO4946H+ODHvo4mIV2XcP0+eCaTo7W1iY996DhkoeypvIygT1DJSv75bAwM3N7P3A/sOdGDJyOm+0/y+JoiAGydm59xQry6y0Ogr6VQLBGuT/LB976DcrXqasGRUmIYBi1NTZz/o8v4yY9/R6SlWQmpB5GArmkk5jRx0zU38/mzzicaCRGNhpEuViBN0xgaGeWEdx7CVsu2YnRk1DO5SFICPot/Px/FGgkj3N9e8ICJHjgZMXR3iDdUIdcd4Y4XvRXiFUJQHBzh+HccxO67bsfAgLvDSkII5rQ28efLr+Nr37wYf12CkBri7VmklBi6TmxOG3/49RV8+/u/pCFdjy/gc/VnPprJsWDhHE5+/9HY2QJ4oW/QGKGoyeNrgqxcF4Go68V0n4keOFEx1ZiEOzwjiMAjK2Ks6PRWiLdUqeKLRfjISceg6bqr90oty2b+3BbuvucRTv389xChAPFYVGXtehwpJX6fQbCpgR+ceymX/f4q2pobXf1QqAnBSCbLSe85inlLFjA6mq21SVNGyBAUMha3Ph8DXeDyB4WdmOC+6UTFdAlT0MuwVjgftcZtL3grxCuEID8wxOEH781+++5C34B790oty6a1pYE1azfw8c9+h0q5RLou6fr9M8X4kFISjYTQIiE+c+Z53H33I8yb2+LqDN+RkSyLt57Pu485GHMk462uSJrN7S9EnAYOmnsf4IEAsMdEDpyomO46iWNrjvBXqQxEuGd5CPymZ0K8pmWDYXDSCUcQDAVdW1cqbUkiEaVarvDxz36HtctXkW5uVEI6y7Btm7pUArNc5dQvfJf16zppaky79j4QAgrFMu894QiSrU0U8t7p2RuImjy2JkRHewTcPzR8QluYExXEKRmmWjOikhfXBnmm3Uc04s4v5hsxOjjCnrvvwOGH7kv/wLBr60oNn0E6leTb3/8l99xyL8l5rUiXLqCKyWHbNumWBla/uJLPfPFcDKERjYRdun8qGBwaYbedl3LkIftQ9FATh4hfMDBoc+8rMfDptTZnskxoC3OiYrr7BI+rOU5PScHdy+NUC7Z3hoALAZUK7333YTQ0pF3bg9e2JXNam7jiqpv5ySV/IdzcgO6BFoiKiSNtm8TcFm75x2388Ce/p6G+3rUhUtu2EbrOiccdiggFqLg4p+F/kIL7Xg6DJdy9awrbAcnNPWgiq1TL2MVcidAsKAS49+UwCO94O9lsjjmL5nHUYfszksm4sgevbds0NtaxYsUazjr7IvDphMMhl3ohiqnE0HUCDXV85/xf8+/b72Nua7Mr90+dnr2jHPi23dlnjx3JDo7U2qQpQwQqPLw6SKk/ighWam3OZGgAtt3cgyay4m4DRCdw3MwgUqWvK8yT60IYYXfuKb4eIQTVkSxHHbIPixfPZ3Q0V2uTNhspJaFQEL9hcNbZF9O1up36BvfujymmFiklsVgUq2Lyxa//mN6efupScVdmdpdKZerrU5x4/KFQrbo8+fU/xMKSlzp0nlwTgrDr39Sum3vARMR0lwkcM3Pwazy+NkTngE0s4PoPHICKaWLEIhx71AFIKV2ZUCWB5sYGfvvHa7npH7cRn9OshFTxX9i2TV1LAy898TzfveDXJGNRDMN9+3OaJhjJ5Djs4L1pWziXXK5Qa5OmBJ8msEqS+16JgxC4PNi72fumExHTSY2pqSXOhyt5YEUUqsIzXUiyQxn22m179t5zZwaH3NddxbYljQ11vPDiK3zrB79Ci4bxGUatzVLMQAQQbmnk0t9dzQ033c0cl06YGR3NsmTxAg45YA8qI1lPJCJJACF5cp0Pyj5nS829TEuYd9EEjpkRCMPEzoR5dI0fdO+EeKlUOPqIt9HQkKJUct9eRSDgw28YfOe8XzOwoZu6uqTaJ1W8IVJKwqEg2DbnXPAbBvqHiccjrrtfpJRomuCow/aDYADTI1EYI1zl8dUR+jrDEHZ1icxSoG1zDthcMW0Dtt7MY2YOEZP2ziDPrg8TcH/bKwDyhSLptiYOOXBPsvmC68phbNumtbmBq669lWuuvZVYq6onVbw1tm2Tam7gmYee4heXXkF9XV2tTdpshBAMjWR42z67stP2S8gMjdbapCkhGhC0D0ieaQ9BwH1JkK8hwmYOctncd7sENycfGRpPt4cYGrUI+1z9Qb9KaSTL/nvtxPbbbs3wSKbW5mwWUjrNGbq6+zjvx38AXSfgd/esecX0oCHwpZP87DdX8dTTL9LYUOc677RQKNHS0sAhB+yBLJU9EerVBFCVPLo6DtL1+6bbb86LN1dRNuvkMwmBAAmProp5oQ7KQQBCcPDbdicQ9GNb7lpMAOqSCS797dW89MTz1DWmXZmdqZh+nAexGMNdvVz40z/i9xnoLktGEkJQsUwOffveBBIxyqY3omUIyXPtGlRcv2+6WSWgs0dMdRPyQZ5t18HdH/Cr5PMlGlsb2X+fXcgXS65KPJJSkk4nef6FFfz699dgpJPeeMBRTBu2bRNtaeCqf9zOv29/iJbmetdtEQwPZ9h1p6XsutNScsPuiiy9GVqwynMbIgz1RCHo6n3TLSqmrm1uT8ikpzvMi51RjJCrP+BXKY9m2Wf3HdhmyULXTaEQQhAJh/jV766hb30XiUTUdWE6Re0JBgLYpTIX//JyivkSwWCg1iZtFuVyhYbGNAfutyuUK54I9UaDsKYPVvcBQVe/n4U4e6fjYnPENApstdnmzBT8Giv6DDqHbKJ+b+yXIgQHH7A7oVAAy0UhXikl9fUpnnjiBf76938RbEi5evizonbYtk28qZ477niIm26+x3WN8IUQVKsm++21C0YsQtUD7QUNTWCWJI+vTuHieSjgJNyOu3plc97pQmDuZpszAxAAUvD4miR2VeLCTnv/Q6FUpr65nr322JFiqeKqEK8QgnAgwO/+cj3Znn4i0XCtTVK4GL+hA5LL/vQPctmc67zTkdEsO+2wmB2WLSLrkVAvUvBsuwHS9Q2etoiYblbNzYxDwvIuwHb5RztGaTTLLjsuZemSBQyPuucLKCXUp5M89sTzXHXdbQTrlVeqmBy2lMQb0txz32PcdPO9NDbUuSqRrVgs0dzSwJ67bocsl2ttztSgV1neHcAajSB8rk6sGnd5zOaI6bIJGDIjED4TKxNhZW8QdPfvlwohwLLZfZdlRKMRbJeFhsKhAH++4iZGu/uUV6qYEvyGDpbFH/92E4V8Eb+LSqyEcCoN9tt7ZwgEsD2QO+APW6zoDtHe44eQu9an17F0vC+cFWJKyKK9x88rXSH8YVd/sABULQtfNMw+e+40NjnDPd52XSrGCy+t5rp/3o2/Lqm8UsWUYEtJtCHN3Q88yd33PkZDfcpVCW35Yokdt1/CvLkt5AvuHJ/4WsI+jd5Rk/WDOhiu3lcbd57Q5rzL+RMwZGZgaKwf1OkdNT3RrCGXybPN1vNZtngBmWy+1uaMG9uWxGNRrrvhDnrWdhCLjztRTqHYJAGfgZXLc+W1/0baNprunu96Jptjq4Vz2H7ZVlSz7pv69Ho0AZjwzLoUSM1VOR2voxkYV5hjvHebhkv3TIUApOZ8qObYh+xy7GKJHbdfTNvcZgqFYq3NGTfRaIiOzl6uveFORCSkvFLFlCKlJJhOcuudD/HMs8upS8ZrbdK4kbYkGPSz645jAUAPrFPYwimPwQbp2jc0j3Em3o5XTFuAORM2p5ZIAdis6sMzyUfoGrvuuBTDRU/eUkrqUgnuuPNhnn9+BYlUotYmKTxIJBxiuLuP6/95DxGXDZaXwB67bY8RCrlyEs7/oFms7NWhEHCa5riTION0JMe7GjcDrlz9hGZB2c+6AQ2E+/dLK6ZJNB5jx+2XuGrShKZrlItlbrzlXrAsdC/UJylmHFJKRCjEv25/kK6uPsLhYK1NGjfZXIGtF7axaGEbWQ/MONWCJmv6YvT3xiDoWjGFKfZMmydhSG0Jmgz3xljbF0Nz9wcKQD5bYKsFbWw1311fuLpUgudfXMndDz5JqC7uKo9B4S7idQmee3El9z34JCkXhXpzuQILFraxdMkC7Lx7vttvRsgH3SOSnqwJfldHBceVLzReMZ03CUNqix86R206hyHor7Uxk0eWyixeNJeWtkaKBXfUpDkzKAPcdvcjjPQMEA6Fam2SwsMYmgbFErfd9QhIp7bZLeiazjaL5uOFzjJ+XZArWLQPBt2erDIu/RvvJ+beTF5d0DOqM5q3COiu/kAddMG222w1FiZ1xyrh8/kYHspwxz2PgmEor1SxRZFSYiRi3PvgU6xZs4G4m7LGNcHOOy1F+P3urzcVgBS82JEEy9UZvVMqpgsmbkftEAKwNV7pqvNE8pEtJZrfz47bL0G46EkvlYrz3AsrePKZl4mk3BN2U7iXWDzC2tXrufv+x4lH3SOm1WqVeW1NNNYlKFYqtTZnUggA2xkW7qrwwP/SNJ4XjVdMGydhSG2xoH1Qd3pEukd/3pBCuUJzQx1zWhopld3xRZNSEvAZ3Pfgk+SHRggEPBBrV8x4hAQsmwceeQbLRR3CstkCC+a3sdVWcyln3b9vipR0ZyywXT1Dug7YZKu28YipANKTNqcGCClAt+geLYPl4o9yjEquwPx5rcyd10w+7476UsMwyGTyPPjos6Brbn9CVbgIPRLiiaeXs259J1GXtK2sVKqk0ykWzmuFqvsTJvFX2TAYozQUA79rW7m2jP28JeMR0yQuFVMMEzsXYsNQEHT3PJ2+KVWThfNaqatLUqm448ZMJKKsXLWeZ55fQTARq7U5illELB5hxer1PPv8CmIuEVOnTa9kwdwWMHTXP3v6/JK+UR+9Iz7wufbNBIH6Tb1oPGJaP54TzUgCJoP9MbqH3F8WIyVg6Mxrc6qU3BKyDvr9PPP8K/T3DRB22WgshbvRhYYsVXj8yRcQQrhCmKQEQ9dYumwR6M5oOTfj12EgazNUsMCotTWTYpPJHuMR0xTgzlVQEwwVbUYLNj691sZMDoEETWPJNgsxdPc8sUpp8/Bjz4HpgciAwlVIAF3jqedeYXQki88li0DVsmltSpOIRai6/Hvj0wX5ks1IAXB3NUXDpl4wHjF1ZecjAHwwWqwykLMJGK7+IKlYFrFomLmtjZguSagIBPz09A7y4surwa8SjxTTTyAe5YWXVrFy1Xri8WitzRkXpVKZ+nSS5sY0hZI7asnfDAEgBWt6U25PQmrd1AvGI6abVOQZi9DozwQxqxKXaymlcpX6VIJ4NEy56o790ngswtp1HaxcvYFwzB0LmcJbhAN++gaGWbW2g4BLZpwWCkXmzWtl7rwWbBcNsnhDBCCha9jv9El37zo8JZ6pK5OPBIAlWNeXZCxI6mrMQpHWOU3Mm99KwS2ZvLrOilXtjIxkCPrdvWGicCdCCDAtnn3+FaRLZv9alk0wGKA5nXJ99rvjmcJgDnBPK/E3IrmpF4x3z9R9jD0R9Wc1Z/Nk5n+H3hrTpLW5nmQyTqXihmQqgWXbPP/8K+CSsLTCo9g2q9ZuwLRsVyTuCSGQtqSpoQ5clB/xptgwXDBBSDcvw1Pimbozk3eM0aJ0GjbU2pDJous0JBNYloXmgu5HQoBt27R397v+6VrhbrRwkJWr2mlf3+WKKTJSSnRdo21O08aBzLU2adIM5aXba/03mTvk2QQkJ7wgGcxZbg8vOL1sNUE6nURzw6M1EA4HaV/fxcpV69FCM38BU3iXUChEd88A3b0DhF1yL2qaxpw5LWPlMS7HV2UwF6c6GgOfO/I93oBNJn2MR0zrpsCQmpEpuf+pTgAIwbz5bei67opG8aFQkO7eAXp6Bwi5ZAFTeJOAX2d4NEtXzwA+wx1791XTJB4NkYiEXF8eoxmS0bxOpqCDMfPXrjdhStoJurPG1DCxMlGGclHwuWGP8c2xpUT3+WhqTLumW4PPMOgdGGY4k8Pvc8cCpvAmUgqwbVasWIdpWk5S0gzHtCwioRDRSAjT5WJq6JAraoyWNHCvoz0lnqk7e8DpknLJR75sgObuOG/VskiEQwR9BlVz5j8YCCGwLYvVq9qRKvlIUWOc6VE2HV292NIda4FpmsRjEeKxKBXTtaFRwGnJna9ICmU5/tEqM48p8UzdOTNLl4wUBZmCwHDv0xAApmkRDgcJh4OumYBh2TY9Pf1gS1d4AgqPY0sGRzIArtgmqVRMUnUJkqk4tkv6cL8ZmoCKJTGtmf97fws2WaQ8HjF1x+r9egSYNli2cEtk9E0xTZNoNEI0GsF0gWcqpSOgg6MZsN3hCSg8jt9HT+8ggwPDrhgDWKlUSaXiJFNxcEUp3JtjaIJ82SZbkm5uKbjJElHPNm1Ag3zZ+dHdG1oAwDLt13imM1+cdF2jXK4wMJxxzR6vwtsYAT+DgyP09w8TDM58MXUQJCJh13+HhADbAqGZbg7zbpLxvDV39OB6PQJKVUmxKt2fXV6tkkzGSSXjrhi9Fgj46e8bYqB/CFzgBSi8j89nkMvlyeTyGK5ZECR+Q3d9kbwY++dgNgq2y9/MW+DdMC+OR+qJedSWRTAUIBwJuiKzz+czyGRyZDJ5fCqTVzEDMHSdQrFEsVhCd4mYCiGc5vwu90wBkNA5FPNGA503YTxi6k7HXBdkS5JcSWK4oGPQW6JpRIIBbJck8+i6TqFUolhyz8Kl8DaGrpErVShVTdd4pgKBz+cDl8xi3RSGPvMdgcng3akxAsqmxDSli/e8/0PERYO1dU2jWCxTLJZds3ApvI+0bfJumsIi8NT3x6974IngLRiPmLpWijQBCC90tsQ1M0wVihmLtOnu7HVFeZmUEk0I6utTYwuZi1exMQUZyuluH8P2lrgzhKuY0Ri6Tq5QJFsoYrg9lVrhKVzSs+FV3LCtMy4kDOZ0Vz8TbAq10rkBIUgmYq75YmlCYFo2lmW7pjG/Ynaguezhzg0NJsaLT4V5FbVESkAIAoEAwiXxEcdk4SRO1NoYheI1eEmcFDMLJaYuwVadhBSKyWHD0PAotnRHVrzCXSgxdQmapj4qhWJSCIiEQ2NCqjxUxdSiVugZjvO9l5TLZaRLFgDHZAlSuiQwrZgVCGfO7thXSqGYUpSYugEpGRnNuma/x5YSQ9fQdQ3bJTYrZgeWCzqIvRYvhaOrlnfeyxuhxFQx5ZiWRTQcIhYOYbqgMb9i9iBctuK55QF6kwhIRy3P1pjC+MTUtZ+mLfFML0gvdUJRKGqC0Ghta3JFi0shBLaUDAwMjy1kLl7FxhSkLmqBkC5WlLdmPGLav8Wt2BJICBgCwxC4eyatQ75UrrUJ48aybUKhAKFQQHVuUswchCAUCtXaivEjvdX5rKLCvLgzTmdJYkFBNCgwbZerqW2TL5XRNOGKsI9lWYSDQULBoCtatym8j2XbRIJ+Aj7dNfekRFKtVp1EPg/okGnN/IjAZBiPmLr2N2DZzo/rb0Rdp1QsU8iXMIyZ/3FUqybxeJR4PEK1atbaHIWCquns40fDIdd4e1JKMpmcN1KPBbTVZT3TK/2NGI+Yzvxp1G+EhKBPEPIJXPLdeXN8PkZGMgyPZPD7Z/6s9nK5QkNjHfUNdVCu1NochYJq1SQajRCLRlwjpiComJbr1UeO/TMdy4Hm8jfzFoxHTAe3uBVbAhsiAefH7QmluqFRKJQoFEroLugtalk2gYCfdCI2ljyhUNQWs1whnU7S0JCiVHLLA55kNF9wvWcqJWg6SNtw66bhuPBumFeCoYGuSbffixiGQTabJ5vNYxhGrc3ZJEIIpC1JJWLgAvFXzAIqVZqb0qTrU5RdEC3x+30MD2cYGc6Af+Z/598K05ZEAhqxoMDF2aDDm3rBeFa6zBQYMv1YgmRIEg9LXFan/T8Yuk6pVKZYKqO7pK2grmu0tTWBS5KmFB5HE6STccAdjRD8foPhoVFGhjNoLtjaeStsCX5dYOgz//f+Fmxyu3M8K3N2CgyZfixBIFglHDDBcocAvRmGoZMpFClXTXwu8EyllGi6zqJF8xAuqOlTeBspAU1jTmsTmku6NhiGQSabJ5PN4TfcLaaWDRG/IBwQbg7zFjb1gvHcWe4pcHwtpoEez1Efy4E58wXordA1QbVSobtnwDWl21XTpKk+RSoepaIyehU1RAgJmsaSJQswDN0VkRJD18kXi+TyRVdk8L8VpgXRkE0iaIN7o4SbdCrHI6ZDU2DItLPx65IMuUV+3hwpnX9saO/EtCxXhKmKxRItTfU0N9VTLJZqbY5iFlOuWKQSMVqb66ma7niw8xkGmVyR0XwRn8vF1DYFiYhFPGyBOfPXrjdhk07leMR0dAoMqQ1CkAzpru9ALIQAWzI4OOKaxvGFQol581tZvPV8bCWmihpSLBZpaa6npamegkvuRdu26ejoxv11fUDVRzqawZfIQtW1IevZ65luJBEW3igUtiz6R0bRdR3bBeUmUjozWOe1NHiga4bCzdiFEou3nse8+a0UCjNfTIUQWJZNZ0fvWFjK/d+fuogAfeavW2/BlGTzjkzejhowdg82xOyxAZu1NmiSGAZdPQOMjGTwuyJVXqJrGjvssA2oJCRFLdE0tl44F0PXXFEmJ6VEaILe/iGwLPc/i2qQChsghZuX4YFNvWA8Yto7BYZMOxJAlyxoHAHcP6TaCIfo6uilfX0X4Yg7mnWblsWSreeRTMYpVdyxV6XwFlJKMHR22mEbhKbhhqdqXdcolcr0DA67PqojYWz8Gm7fbhvZ1AvG8/Y2qcgzFmnTEC9h+ATmzP8OvSXBgI+B4VEyuQIBnzv2HTLZPAsXzGHxorkUsrlam6OYhRTKFRrrU2y9cA7lijs6o4bDIdrbu9jQ3o0WdseD85syFiFsTVXcPn6tb1Mv8HYCUhUSIR/1UY2yy9XUr+tkcwU2dPW5ZrZpuVyhuSnNdksXQWXmd51ReI9yJsf2227N4q3nO03jXUAwGGBgcISevkHCwUCtzZkUjmcq2appGDTpYi3d9CjS8YjpMG6tNbUldSGNRFij6vKkOIkA22bFK2vHymNqbdH4EEJjnz13BJen9yvchwCwbHbdcRsSyRhVlywCPl2jq3eQ0Wze9WUxVUsSCWokw7i5lSBAz6ZeMN4wrztDvWWDdEOWlrosdskNSTtvjhCAadHe6XymbkikAChVKuy8wzY0NNZTcNGAc4X7saSNCPrZY7ftnaQeFzyACgGmZfPy8tVjZTEuMPotqFhQH9OoC+vg7rSJkU29YLzZvO4sjzENtGiRuXUl8MJgWp/B2vYuhoZGXDGKDWB0NMfireez8w5LKI26szOlwp1kM3mWLJrPTjssIZvbZDe4GYGUIBCs29ANpnsiUG9GtSJoTFRpSlah6to3U2Ic09PGI6aScWy+zkSkkGDptCQCbq9xAsAfDbO+vYsN7T1E3JLRa5rE4xH222snj0xqV7gFK19k912WsWB+GzmXiKnf72NwcJi17V3gc3c0DYCKj7npLMG6LFTc4QC8Ad1jP2/JeJOVNxkvnrHoMC9tOY0bXK6n4YCfnv4hOrr7CAb8tTZnXAghKFdNDthvNyJ1SVeMv1K4HykAXWP/vXdGd0nCHkAsFmbd+k7WrNlAIBautTmTRwha4rrbk4+GmKJG9wAdk7OlNjjTImy2aR3yxIR3TQjsSoXnXliBdEEXpI0MD2fYcfsl7LbzUvLD7pzop3AX2UyehYvmc/Db9iCTy9fanHHj8/lo7+ylb2iUkN8dD8xvhgTQJPPqhdsjUuPqtTBeMV0/CUNqiyVpTlgkIjpld2eTOViSl15Zg2XbuCU5oVqtkqqLc+hBe4FpuqJRv8K9CCEwR7McuN+ubLXVXDIZ94gptuSZZ19GVipobv+eSEBItpszArrt5shg+3heNF4xHdfJZiQVaEtotKWg5IEIowgGWLl6A92dfYTC7qhBE0JQKJY5/OC9STbXUygWa22SwsOYtg2hIIe/fW9wmVNk2RavrF4PtnsHf26kYkmiYZ156ZIzIdy9TKmYunfPtGSQasqysNH95TEAkViYNes6WbO+k1jUPXsqQ8Oj7LDdYg7ebzeKQxnlnSq2GJmhUXbcbjEH7LcbwyPu2VaIRsOsW9vJyyvWoUXc891+M4pVaEkKmmMGVFwtpuOKzG6OmLqyE5K0dQhUWFBvg3RPIsKb4TcMcpksz72wAkNzT7NL27IJhAK886gDQdfHwtQKxdQihEAWi7zjsP1obW10xZSYjcSiYVat7WT1Wnc9KL8Zdslgq8YsDU1ZcLcjs2E8LxrvatyNS5OQEBLQ2LoRTyQhAWDZPPXcy5iWewRJCMHQ8CiHHrIPO+ywhNFhVz6bKWY4+UKRVEsjxx9zEPlC0VUREAE8/uQLmMUiuu6eB+U3xdZZ3GRBuIy0XCumJaBzPC8c7ydmA10TNqeGOOMAbXZeMAyG20P3DlooyHMvrKRzQw9hFzXCzuWKzGlr4oTjDkHmiwjNPQudYuYjhKA0OMKRh+zLzjstY8hFIV6hCUqlCk89t9z5Dx5Yp9AkixoBtDGnxpW0M8WeKcDqidkyAzBt5qctmhIGhap7vLk3IxqP8Mqq9SxfuY54LFJrc8aNpgky2RzvPu5QmhfOIeumLEvFjKdcNdGjEd5/whEITcN2UeQmHouyZm0HLyxfgy8WrbU5k8aWgIHjxAhXZ/L2AOMaN7Q5YvryxGyZARR15jVX2Ka1SKXg/n1Tn65TzRV4+LFn0V0yo3EjQ8NZtt92Ee8+5mAqQyPKO1VMCZoQ5PoHOXj/3Tj4wD3pHxh2VYg3Egry3AsraN/QTSQcrLU5k6ZQtWlKGMxPW2C656HmDVgz3hdujpiumIAhMwJZNdDjeRY3lcBybUurV5FSgq7xxNPLyeXyaC7q8AJQKJY5+aRjSbQ0kndJmzfFzKZiWqDrnPKBYwlHQlRcMrsUxr7PAh585Bkol91fXwpUCjpLWorMa65A0V3r0+sYtxO5OWLqzgSkjQhY1opnkpCCiRhPP/cyL69YRyoRr7U540YIGBgcYc/dd+B97z6c0sCw8k4Vk0ITgkz/IAcdsCfHHn0gff1DaC66p0KhIL09Azz21IuIgDtqxzeJ5WNZSxk9kUdWXZt8BJvhRG6OmK5lnBuxM42NA2r32GoEzSe8UA9NOBhgoGeARx9/jlDQ76o9CSklhXKZj3/4eGLNDco7VUyKiumMKjv1I+8iGotSctmov2QixhNPvcjzy1cTS7nnwfgtEZKd5plOT/Ra2zI5xp0rtDlimmMz4sczjorNkkaTtjqNXMUDagogJXff9wTFYhldd8+TuBCCgYFhdt99ez703ndQ6lfeqWJiaJpGpneAQw/dl2OPPojevkE0F9VfSynx+XQefvw5zGwen8u2bN4I05YYQcEei4ZxCkFcSwdbSEwBXtnM188cigbNLQW2a8thFt2/bwoQSMR4+InneWXFWhKJWK3N2SyklOQLRT798RNpWtDG6GjOVQkjiplBqVxGCwb4v898kFAk6DqvNBDw0983xAMPPwMBv7N/6nJyJdiqEacspuTq97MeGHfJweaK6Qub+foZg7QMiJTYaZ4Ftvuf/gAikSB9XX088PDTREJBV4V6hRAMDo6ww/ZL+NTHT8QcGnF7OEgxzWiaRq67n/e96zCOOGxfunsGXOWVAqRScZ569mWefPZloh4J8dolHzvOzVPXnIOSqx2XzapgmT1iipMxt9fWWdBdPVvvP0icUO/9T1AuVdBcFOrdyNDIKKd99ES23W0HhvoGXZU4oqgdQghGR7OkWps46/RTqFRNLNOqtVmbhZQSv25wx12PUB7NEjBcnajzH6Rgx3k2+KtOO1f38szmvHhzxXQFzt6pOzFtdplXpC6he6J5A0AwGeOBR5/lxeWrSCXd9WTrLIg5Wlsb+dqZHwXLouyikgZF7bCRVAdH+MJp72PXXbajr3/IddsE4XCQ7u5+7rzvcUQw4IkQry0Bn2CvRRkQEpe7LS9uzos3V0w7gVWbeczMIW8wr63ETvMLlHPeeAqMhEMMdvTw77seIRYJY7usX6KmaXT19PO+E47kxBOOJNvV57pQnWJ60TSN4Z5+dt53Vz77qZMYGBqqtUmbjZSSumSc+x9+imdfWEG8LlFrk6aEXNkZBr7zvCKUXe2w5NnM3goTWbVcm4QkTQMtXmCvrSrg3sbL/4WUEgJ+brntAfr7hwgG/bU2abMpl6tUTJNvf+2T1M9tYWhoxHVehmJ6cGbjlkDTOOcrp1HfkCKTybvufhFCYNuSW25/EEplV02AeivMgo89FuVpbCtAwfX7peNqcL+RiXyCD0/gmBmBE3IQ7L8kBz7pqoSdtyJWl+Cxp17kkceeI12XcN370jRBX/8Q22+3Dd/9xqexcwWqpllrsxQzEAkUuvv41Mffw3HHHkxHZ58rJ6wkEjFWrFzHnfc9jj8Z80SIVwBIwW4LqhBw/X7pS5t7wETuwucmcMzMoWKzx8IibfUa2bL7b2BwZpya2Tw33XIvQghc9pAOOF/Enr5+PnHKCRz7rsPJdPSocK/iv9A0jaHufrbdfQe+9ZVPMpLNYbos6QjAtiXJeJTb736EzrUbiHpgdilA1ZboQcEB22RAun6/9LHNPWAiq9XLuDkJKe+jsbXAbguKmAXvhHp9yRi33PkwK1euJ5Fw39QJIQTFYomKaXLh9/+P1kXzGOh3VwG+YsshhCCbzaH7DS4690yamhsYGs64Mvs7GAwwMDDMNdffAT6f61sEbSRbEGw7x2K3rYpQcP2bempzD5jIStXNZmY5zSSkrUO4zIFLCyC9s1DHYlE6Vrdzy+0PkIzHsV3YM1HTNPr6hliyZCsu/P4XoWpRcNmAZ8WWwbQsyv1DfPurn+SIww5gQ1fP2MQkdyGlpD6d4N77n+Dhx58jlk7W2qQpQ5b97LOoRLAhhyy5L3fjNfQzTWFegCcmeFzNkUiwJQcvy+ALa1Qs1z9BOUgJfj9/v+52+vsHCYXcOcZJ0wQdXb2c9L6jOePzH6bQ04/lwgcDxdQhNI3RDd0c9a7D+fIZH6N/YADpsqz1jWiahrQsrrnhDmSxjN8D7QNfRUgOWFrwQh3/C8DI5h40UTF9aILHzQxygu0Wlth5XpVc3n1Pt29GIp3ksSee57Y7HqKhPuW6MpmNmFWTweERvnP2ZzjoqAMZae9CuNALUUweTdMY7O5n0XaL+eVFX8eUNrl8wZXRCikl6XSSp555mVvvfJhQXcITiUcA+Yqkvk7jwG2yUHXfPvbreHoiB010hXoKF3cwlhUf/vo8By0rQsVwZcLOG2HoGpgmV1z7b0rFEj6/O/eEheY0c/AF/PzuF99m4bKtGexR9aezDU3TGBoexQj4uOxn32L+gjbXNbJ/LUJAMODnymtuZaS7j3AkVGuTpoxyzmCfxSXmzM9DztUlMTBBZ3Gid+UK3FxvCoDN4dtnwadhudSDez1SSiL1ddx29yM8+NDTNNbXufbJV9c1urr72WrhXH73i2/jDwQZHBpx7UKq2DyEEOTyRex8kV/++GscfPDetG/oduU+6UaSyTgrVqzj2pvuwkjGXRuqfkNsjUO2y0GohO3ukpgy8OhEDpzonWkDj0/w2JlBHvZekmVJm0W24BHXFAj6fVSzef50xT+xLQvdxXsyuq6xfkM3Bx+0N5dd8k1ksUwmm3NlBqdi/AghqFRNSr39fOPrn+LUj72Pzp4+1z4YglMOk4hFufoft9Gxup1E3H0Z929G0ZSE4zpHbJcFS+Ly9ORncUavbTaTecy7fxLH1hxZ9BNtyXPodgWsgs8zoV4pJaF0kuv/dQ9PPPUi9fVJVy9CUko6uno5+YPv5rzv/R+VoVGKxbIr98wUm0YIgWlZZDs6+egnT+I7Z3+G/sEBquWqqz/zRCLKmjUb+MPlN6FHw7hccP6LYs5gj61KLF6YB/e3aZ1wU6LJiOkDuHnfFECzOHpnb4V6AcKhIIWBES7/+78I+HyuXoSEEJimSXdvL1/90qmccebHyXf3UK5UXP2+FP+LACzbZrSjl2NPPJpLLvwquXyRXK7g6uHxtm1Tl0zwjxvvZN0ra4in3Nel7M0QAqjqHLFDDj1ZQFZcL6b3TfTAyYjpK2xmI+AZRwEO3DbDkjneCvVKKQmmE/zt6n/z5NMv0djg3r1TcAS1VCozMDTMed89ndM++xFynb1KUD2EAKQQjKzv4MBD9+Xy35+LLWBwaNT1++TxeJSurl5+f/lNiHAIzb1fxf+hVJX4Y4JjdsqCCVK4+s1VmEDno41M5i6VwCOTOL7myIKfSHOeQ7b1VqgXIBINk+kd4JeXXYWh667eOwWn/jSbzZMvlvjFT77OaZ/9kBJUj7BRSIfWdbD3gXtzxR/PR/f56B8YdmXf3ddi25J0KsmfL7+Rl55+iWQ64fY2e/9FPqvztiVldliSg6y71xic+aUT2i+FyYkpwO2TPL6mSABh8c5dnFCv6aFQr7Ql4cYUf7v6Vh548EmaGutcW3e6EU3TGB3NkskX+MVPvqEE1QMIIbCBobXt7P22Pbj+qoupq0/R0zPg6sxdcCJEqVSMtWs38Ks/XIsWC6PhnftUCMA0OHaXLCQK2FXXh3jvmczBk71bHwDcPc05Lzhkp1G2X2CSybn7y/t6QqEQlWyeS393DdKWrq07fS3/K6gfJtfZRbFUVlm+LkMIQdU0GV7fyduPOoh/XPVTknUJOl06CeaNSMbj/P4v19P+ylpSHmrSAFAoS2IpwbG7ZKAswd0hXoC7J3PwZO/YduDJSZ6jpsiSD19DgWN3ySOLBl5aj6VtE21Mc/UNd3DbnQ/R0lzvyp69r+e1gnrJRV/jrK9+lkLvAJls3vX7a7MFIQTlSoXMhi7eeeKRXH/lxSRScc8IqdODN8lzz7/Mb/54Hb5UHM9kHeGE5os5g4OXldhqUQ6yrm/UMAg8OJkTTMVde+cUnKNmSADb5IRds+hhnZLpnRsenI4rslLhop//lWKh5Nqeva/nVUHNFfjReV/i3PPPojKaY2Bw2PXhQa+jaRr5QpFcZy+f+PSHuOKPFyB1je6efk8IKTjvMRIO8fPfXEXf+k7iiaiXtHSsx7nBiXtkIFzCtly/X/oIkJ3MCabizr1jCs5RW7IGu207zAHLyuTcv4n+X9i2TaKpnnvueIjLr7iZ5sYGT3in4CxY2Wye7r5+vvalT/GHy35A0DDo7+pD04SHdqe8g6ZpDA6OUBoa4Vvf+z8u/dk3KVdNBge88xBk2zYtzfXcd/8T/OWKmwk1pr3V7QjIFATz22yO3W0E8sILId6bJ3uCqbh7HwG6puA8NcOuGJAq8P69RqHqw2ursKHrEAzw45//hQ0bOkkmY57Zu9E0QblUpqO7m1NOPpF//v1nzJnXwsC6TiwpVWLSDEEIp+fyQEcPQcPg95edy3fO/jyDIxlGRjKeCs+HQkEq5Srn/fj3lLI5ImHv9OAF57M0cz6O3TVPcm4WmXd9iBfgrsmeYCru4BJu906FhILg2N1GaGi0yRW9ITQbkVJSV59i5bMvc8mlV5BKJPBSHZAQArNqsr5jA28/eG/uvvkyDjh0f0bWb6BQLHtqoXYjTqKRxeCadpZsu4jbb7yUj37kRDq7eygUip76fGzbprmxgSuvuYV/33Iv8ea0ZyJBGylbEhEyOGnPLGB6odDnGaag1/xU3cW3TNF5aobM+mnZKsPxu+WpZPxe0hrAcbaDjXX88rdX89DDT9HqkWSkjQghwIZ17V3Mnd/KTX//KZ/7v49THBpmoN+ZNOKxj9QVaJrGaCZHZkMPx7/3GO7652Xst+8urNvQQbVqeipy4JTCxFm/voMLfvJHCAXw6e7PoH89uYzOgctK7LvTAGQ88f7+NRUnmSoxvQPITdG5aoKUgDD58L4ZCOreGRo+hpSSaDRCfniE7/7wMmzLJhwOeibcC4Bwwr6dXX2Y0uaSn5zNn/9wAU11KQbWdlC1bE8t3jMZIQQSGOjsAdPivB99hb//9UISqThr13cixl7jJYQQJONxLrrkz6x8djnp+pS3vl/gRPEqPk7aOwPJorNF5n5unYqTTJWYDjDJtOKaI4CMwdt2HuSAZWWyGd1znoxt28RbGvn3P+/md3/6B00N9bU2aYugaxqZTI7O7h4+/IHjufuW33LkOw8h09HN0HBG1aNuYTRNI5cvMrxuAzvvtj233fBLvnrWaQyPZujvH/JUWHcjlmUzd04zt9/1EL/63TWEmxs8VQqzkWxe0NZmc+Jew5DXvJB4tJYJzi99PVN5V183heeqCXbFgGSRU/YfgYrP7X0m3xCfrqNFI3z3gt+wfPlqGurd3xnpjRBCUK2arGvfwIJFc7n+yp/w4598g1g46HippuU5z6jWCCGQUjLQ0U25UOLMr3yKO264lAMP2JP1HR0UCiVPCqmUkng8SmYkwze/9wuqxSLhcMhzWioEVHM+3rtnjroFo0j3DwEHJ6pqTcWJpvLO/idOMpJ7ERJyGu/dZ5gF82wyOe8ttlJKUnVx+tq7+O75lxIK+gkG/d4LR+Es7kIIerr7Gc0V+OLpH+Puf/6Gd554FNneAQb7Bl99nWLibAzZDo1kGF7fyZ5778Kt117Ched/Gc1nsL69C6R3f89CCOrrUlz40z/x6D2PkWpp9FQ+wkZKVYkvqnHK20bBsryQeARw7VSdaCrFtItJzIKbKci8j8icLB/aN4OZ81bz+41IWxJraeDKK2/mD3++npamBq98Md4QTdMoFIqs27CB7bZbzLV/+zG//fX3WbxoHkPrOhjJZB3hrbWhLkQIQb5UZnBtB+l4lB+c/yX+ff0vOfzw/Wnv7GJ0NOtJb3QjlmUzZ04z99z7CD/62Z8JNNaheXDREALyowbH7Fpmx+2HYNQTXmk3k+zH+1qm+i6fMpWvFRKgYvGxA4eIpTXyJW/KTMDvQ4SCfO2cn7F8+SpamryV3ft6HLEUdHX30z84ysc/eiJ33XwZX/nGZ4iHQgyu3UBeDR0fN047wCqD6zuplMp85LT3cfc/f8PXv/IZLGDd+k6k7e06XykliUSU0eFRvvLtn1IplIhFI56M8pi2BOHjtAMGIVT0QscjcKKp5ak62VSL6XVMoXG1QmZ8LFya4d27FymN+jzVr3cjti1Jp5P0d/Zw1jd/AlISiYQ8uRC8Fk0TlMtl1rV3EI1HOf/7Z3LnjZfysU9/ALNaYXB9J8WSEtU3QwhBpVJlsL2LfCbHMSccwb+v+Tl//PX3WLhoHus2bCA7S3oka5pGOlXH93/4Wx679zHqWr3TXey1CAGjozr7bFvmiL0GYMTnhcQjmGLnb6rv+G7g3ik+57QjbR1Emc8dMogRMShVPXHj/A+2bZNobeJf193OTy75M431DbNCRDbupY6MZFi/oZOlyxbxu19+h9uu/QUnnXw8ZqXK4NoN5PLFsdfX2OAZgBCCUrnCYHsXuUyOY999ODde9VOuu/wiDjpoTzZ09tLfP+TJkpc3wrZt5s1p4drr/81Pfv4Xws0NeHWjwJISTD+ffvsIIlXELnmiHKaDKQzxAohNeSL2rZtdPvEJ4LKJGjRT0DQLYjrHnbOMGx/UqW+08GDSK5oQZLJ5sGxuueYSDjp4L9a1d3mmT+p4kFKi6zpNTWkMoXHPfY/xt6tv4dqb7mKkoweScZLxKLque95zfy1CCGzbJpsvYA4M40slOeqw/fjEycdz5OH7oRsG3T39nmu+sCls26apMU1v7wAHH/UJ1m/opt6j2yQCGMoKFrf4eOGHK/CFM9hFT+yXXgycsTkHaEcOvOX/3xJiWgdsAMKbe+CMQgq0hiJ33jWPQ89rIxYv4vNivBcnXDXQ3ceyZYu4/YZfE0/FGBgYnhWhutcipcQwdBob0/gNH48+9izX/ON2brjlXla+sBJ0QTidIhjwI8DTSVuVapXccAZKZZoWzOXoI/bjpBOP5MD9d0czdHp6B2adiIJzj0QiIeLRCO866QxuueEO0gvmID0opAAIyVBPiItPHeL0U1Yhe3xIb3zk+7KZCbO1EFOAa4ATJnLgTEIzLAgYHPatbbnjKUinbc/Vjr2KEAyt6+S9H3onf/v9eQwMZygWS7NusYSNnqpGui5JOBRmzZr13Hbnw1x/8z3c9/BTFPsGIRohmoji93niKR0EVKsm2WwBMjlELMJeu23P8UcfxFGH7ceOO25DxTTp7x+alSIKTg8GXdeY29bKd35wCeecfTGJeS2ejeIIYCQnmN9g8MIPVxJKjGLn/bU2ayp4BVi6uQdtSky3VPD7z3hATO2qgZYu8oVDBrjjiVZMu4ju0UVEIIm1NfH3v93Erjss5StfOo0NnV1Ylj3r9gyd8Kakr38ITRshkUrwqVPfz8kfPJZHH3+e2+98hNvveYSnnnuZ3GgOomFCkTCBoB9dE6544BKALSWVqkk+7wgokTBLlyzk4LftxpGH7se+e+1MfUM9mVyGDZ29WJb16n7z7EQyt62Za667hXPOvZRQYxrDy6F/IbFyfj56wgihtlFkj98rE7Uu3xIn3VKeqR9YDzRP5OCZhOY3QfOz79eW8fBySNd51zvVNGf/tFIsc/3ffsJxxx7M2vVdqv0ejrfq9/uoSyUIBkL09PTw2OPP8+Bjz3LfQ0+z/JW1jHb3wViHqWDQj9/nQ9dnjrjKMfEslcpY+QKUq/jTSZZuPZ999tyRtx+wB3vusQPz57ZgSsnQ0CilkuuT86cEy7KZN7eF5S+t4tB3fpK+wRHqG+o8uU8KjmaOFqA+5ueF81eRbh7GznnCKwVYDKza3INqFeYFZ4P39IkePGOwBVprkRtvms9x57eRaCh41juFsf3T/kGa0nXccdOlLF22Ne0butF1b4ayNhc5NiM1FAqQSibwGQb9/YO89PIaHn3iOR5/ajnPv7SS9o5eioPDTmwwEsYX8OP3G+i6gTENv0vLtjFNi2q1SqViQr4Alo0vlWD+nCa2XbqIXXdeym47LWPnHbehrbUJW8Dw8CjFYvlVL1ThJBzV1SWpliscc8LnePShp6if1+pZIQUQQjLYHeA7Hx7lW59e6aW90ruBt0/kwFqK6Y7AsxM9eCah+U3Q/Rx89jLueQ7q07YnM3s3omkaA+3d7LHPztx87c8JhoOzMiFpU0gp0TSNQMBPJBIiGo5SLOTp7h3g5ZfXsHzFWl56ZS0rV65jbWcP/f3DlHN5KJXBMCAYAF3H0DV0Q0fTtLEfAdL5HF4fVtu4gEtbYtk2ti2xLAvTssEyoVyFSgX8PvyxKOl0kpaGNNssXsD2227FssUL2X77xbQ01RONxSlVimSzeUqlihLQN8C2JdFomLpkjJNO+QpX//VGUgvaPBLtfGMEMJqHxoSfFy9YSbJxBDvrmRDvh5hgmLeWYgrwGLDHZE4wI7AFWkuRe++ax0HfnUMsWfBsZu+rCMHQ2g2866RjueqPFzCaK4wV43v8fU8Sw2cQ8PsIh0OEg2HMapnBoREGhkZYsWI9XV299A6NsGZtB91d/Yxmswxl8mRzBUrFMpVKhWq1CkIgyxWw7LFCVwlCIAIBAHRDJxjwEwj4icUiJCIhkvEYTU31zJ/fSltzPa3NDSxZsoD6uiR1qQShcIRypUQuX6BcrjrXUbwpUkp8fh9tzc1845yfcO53f0F8ThM+w/DuPik4GbzdQS4+bZjTP7oK2e0Zr3QImAsUJnJwrRKQNvI7vCCmmkQO+jhwr34O362e2x7XqW/wtncqgMTcFv5x5T/5ypwWLvrhl6hWq5TLFeW9vAVm1cSsmuTzRaQcxDB0fD4frS2NLNpqHoGAH4FBqZhjNJOjXK5QMS2GhkYYHBwhk8lTKBQRQjCayVI1TYTQXs0wTsZjICAYCJBIxEim4jQ0pPDpjrhGoxGi0SgA5UqZYrFEpWoyNJrFHByu8W/HPWyMOrQ1t/Cr31zOuT/4FaGmtOeFVAgYzmhstVDyycP7ICu9IqQAVzJBIR0PW9ozjePUnMYnc5IZwVjd6SMPzWWfc+YSjRTwG965y94IIQSlUpl8/yAX/vCrnHnGJ+jo7sKcpaURU4lh6BiG4YR1hcDw6fgMA93Q0TUNCRi6/l9ddSROSBec8KNpmpiWRbViIqUT9rUsC9M0Z0zSkxuRThCA+XPncP0Nt3HCyV9C6DqpVNzT+6QANpKRviB/+Pwgp7x/NbLb7yUx3QF4YaIH19ozzQB/x+mK5G6ERA772HvvPk7aL80Vd/lIN5tID3+3pJSEQgGqqSRnfeMi0vVJTvnwiWzo7FT7a5PENC1Mc0rGKCqmHMmctmbuf+AxPvzpb2HbNvUNKWzLw192QBMwNKyx0zaSDx/SB6PCS0L6CJMQ0vEwHRklv5yGa0wL0jSACt96dw+BmE6h6JU9+TfHtiXxWAQR8HHqF77Hddffwty2ZjRNU96PwnPYts2CeW289OJK3vPhs8iNZGhoSnteSAEqlgQzyLkn9KLXZ5AFjzQkcbh0S19gOsT0aTww5xRwvNMhP0t36uf0IzIUh/1emZ7wlti2TTqdxLRsPnjqN7j7nkeYN6cNBEpQFZ7Bsm3mtDXz8surOeFDZ9Hb3U99SyPWLBBSTYPMoMERe5R4x8E9yCHdS15pP3DVlr7IdNU6XDJN19niSCmgKPn68b00twpGcmJWdAiyLZv6hjpKxTLvPeUrPPDg4yyY26oEVeEJLMtm7pxmurv6OO59p7PyxZWk25o8v0e6kWJZogV9nPueXvCXkGVPeaV/Akpb+iLTJabXAJ3TdK0tiwCZ8ZNYOMx3jh/CyoacEUWzANu2qW+qZ6B3gONPOoMHH3xSCarC9ViWTVtbI0MDw7znQ2ey4sWVpOe3ebd5/esQGuQH/Zz29hy77tmPHPKD5qkv9C+m4yLTJaZV4NfTdK0tjhTAiMapx3Sy+w5lRoZ1Tw4QfyNs26a+tYnB/kGOU4KqcDm2bTNvbjMjQ6Mc997TeeyBJ6mb1zp7hFTASBbSTTrfe08XVKpIS6+1WVPJDcC66bjQdLa0uQyoTOP1tih2wYdI5rjopD6QAc8OEH8jXi+oDzz4JAvmtiE04ekaPIW3sMf2SDs7enjne7/Ao/c/Tt2CNsQsuoctKbGyQc49cYj6xcPIkYDX8kB+OF0Xmk4x7QH+Mo3X27JoEjng52379XHK2/PkBn2IWdRt77WCevwHvsi99z3G/Dmts26AtsJ9SOlMzFk4fw6rV63n8Hd+isceeIq6BXMQUnp6Tu1r0TQYGdTZe6cKpx3bASPa/7d333Fy1fX+x1/fc6bvbJ/dzWbTlkBCCF2agPRIF6QpIJeriAUFvcBVEFRUpIOiXvHaQJQryI8qTSxUIzUQlBRIQhKS7XVmd9op398fZzcEJMmG7M6Znfk8H499pJLzCdmd93zb51tqf/eXgIWFelihX/5vKvDzJpS2A+Dkuf6MddQ3BhhIURabkUZtCNTefo495Xzuvf9xpre0ECjxLjFi8tJaowzFrBlTWbx4KceddsHIGunUsgpShbfpCDPMjWd0QeUQbjpYamf9ri/kwwodpkuAhwv8zImjNHogTGKHfq4+pQ8nFcEusxAZ3ZQ0nMlw+mcu4fbf3cO0qVMJR8K4pdxvUUw6WmvMgMnMaS08/fSLLDjxi6xc/pa32aiMghQApRnuCXHekSn2P7AD3RMutU1Ha4F7CvlAPyYmr/HhmRNGA/QbnHvC2xyyV57BngDldrmKF6j1WFpz9rmXcdPNv6K5sYGqqoqyOVogipvrasLhENOntnD3PY9w3Klfoburl8S0KWWz2WiUoaA3aTB9hsk1Z6yDjF1qm47AmwUtaIsxP172nwWe9+G5E0OBmwlCNM3/fLqNUCxIKl1e073gnUOtr6shGK/goguv4uJLriMei5JI1EqgCl+5rktVVQXNTY385Jbf8IlPX8JQNkNiSkNZfm7mbA2ZCD/6VAeVMwbQyZLbdNQL3FLoh/o1hvq+T8+dGIZG94TZ6UOdfPOEQXJ9Ecps0gjwXrSqqyqINia48dqf8alPX4qdt5g2bQqu68rRGVFwruvSkKilMhbja9+4gfMvuBIzFCSRqCvLIFUGpHqCfPLQYU48aj26t6Q6HY36CT6cHJnoW2M251Vgt4n6wwtOgxGzcdwI+399R15YBokGhzL8ekUphWXbJN/uYN+D9+Y3P7+SuXNms3Z9G67jSoN8MeFGX9emtTQx0D/IF87/Hvfc+RDRKQ1UxCJluZ7vTe8qEpVh3rhpOTXN/bj9kVIblQ4DzUBqvP/gLd0a4+fq3jd9fPb4U+AOBzGrh7jlnDaMYJChTPlN98LIpcqBALWzWnj+2Zc59NjP8dDDTzCjZRrRaHm+kInC0VoTCASYNWM6/3ztDT56whe5586HqZreTKyMP/9ytkZnwvzs7A5qWvvR/SU3vQveDt5xD9Kx8DNM/wgs8/H548/Q6K4we+7XzpWnDpLti5RNq8H30lqjgMTMFtrbuvjYJ7/CjTf/kqaGOurrq8tyik1MPNd1iccrmDa1mbvveYQFJ3yBV154jbpZLSV/sffmvDO9m+GkY9ZDaU7vWsCP/Hq43/tOS2pnL4w0wh8wufT0tRy4p8VAd/nt7t2Y67okpiQIREJcfOHVnPWZS8mls8ycMRWgbF/cxPjS2tux29zcQEUkzGXfuonTzrqY3oEkiTL/XDMM6B1QTJkS5GfnrAXXws2XVCP7UbcA/X493O+X+d/gnT0tHSPTvVQMcevn1xONBxkYomx6974fbzdlnHhzI7+79W6O+NgXWPiPV5g5XaZ9xbbzpnVNWmdOZ+3qNj522gVc9b2fEK6sINFQnhuNRikFmbyGfIhfnNtG9ayBUp3eHQa+7WcBfocpwNf9LmDcjezu3X73Dn58Vh92MkLe0SXWXGTraFcTDgWpa53Ba68u4YjjP88PfnQrDfU1NDXVe4fmy3TkID4413Wprq5k2tQp/OH/Pcxhx57LXx55iuoZLcQrYmUdpOC90RjuDnPBccMcd9Q66CnJ6V2AG4ABPwsohjB9CPin30WMN60V9Jmcc/JaTj0kS7IrWGodRraa1hq0JtEyBRu48MKrOPmMC1m3to1ZM6YTDodklCrGZLQtYOvMFlzb4YKLvs8nzrqY9e1dJFqnEZBLFzAM6Osz2WMe3PCZt2HYxbUDfpc1EYbxwtRXxRCmAF/zu4BxN9rMQWf59fmr2G6mQW+vWdbrp6Nc16WmppLK5kbu/8MjHHrsudz6m/9HU6KWpkYZpYrNGx2NzmiZyp8ef5bDj/scP77p10Rrqkg0JbwzzX4X6TNDweAwGKEwt523nmDdIG4yVIrTu+DdDDPkdxHF8tL+GPB3v4sYd4ZG94eJT01y23ltQKhsj8u8l3Y1oYBJfes02jp7+cy53+CMT1/K+nXt3ihVevuK99BaYxgGrTOn4VoOF19yHUedfD6LX3mdulnTRo69lPe0Lni96nO2xhqM8L//2cOu+6xH94SK59V+fHVTJBtZi+l/b+mNTgFtgO4M8ZFD1nHdmQNkeyPYbnmvn47SeKGaaKgl3pjgrt/ez6HHnsuvbrubhrpqWqY2er9PRqllbXSmor6+huktzTz0yBMccfznuPHanxGORUi0TNnw+wRopUl1hfjUEVk+e9pa7xiMW7KvOJdTJPdk+9kB6f08CBxfyAcWhAYjakMoxElXzOW+Z4LUT82X8if4VvNG64renn7I5jjh4wu4/GvnsteHdqd/sJ+BgRRGOW+JLlNaa6KxKE2JBlavXsPVN/6Kn996D9gOdc0NKCVroxszDOjpMdh1VpAXrltGuHIQdyBSqvs1VgGzC/WwLXVAKrYw3R54s5APLBhXYdRlGO6vZs+LduSN9TYNCRdHZqXeRSlF3rJJtXUQb2zgwi+dyXnnnkZTUyPtnV1ks3kJ1TIw2sWoeUqCTDrD7Xf8kWtv/g1rl64o65aAm2Mo6B2CADEWXb2anXdvw+0MF9f84/g6CbivUA+bbGEK8FPgi4V+aEG4YDTneO2lqXzo0lloI01tJWXZv3dLDKUYSA5h9/Yxf6/duOS//pPTTj4SMxigvaMb23akx28J0lqjlKKxsY5IKMRjjz/LtT+4laf+shBiUeoTtRt+n3jH6HnS9ECEP/x3J6eesBrdEaKEF5QWAgcU8oGTMUyrgHYgVugHF4JCo5rz/P6eVs64oYmKuiyREHKjyvtQSuFqTX9nL9gORx93CBd9+SwOPWQfcpZNd3cfriuN80uB1hoU1NfVUlkR5+WXX+OHP72DO+55DJ3OUj2lgUDAlBB9HwqwtWawI8o3zxjiuxcsgR4D1zIp3SxlL+DlQj5wMoYpwH/hXe5aejQYQQcaXC65cR7X3hmnZmoWU6my386/KRumftu7MCpjnHHyUZz/+dPZZ+9dyeSydHf3S6hOUqMj0ZqaSqora1iyZDm/uv0+fn3Hgwys7yDalCAWjUiIboYyNL1tQY79sMND31sGTg53uGSPwQDcCZxe6IdO1jAFWAls59fDJ5RWGBV5MCMc/825PPQPk/pmy2v0IDZJKcVwJku2q5fKpgSnn3wk5/zHieyz924SqpPMaNOFmuoqqiurWbVqNb+98yH+99Z7aF/xFoFEPdWVFaDL8WbgsTMM6Ok2mDc9yAs3LCVeN4jbGy3VDUcAOWAW0FHoB0/mMD0S7/xpaXIVRn2GdH81+/z3PF5fbZFodGX9dAu8Tb+K1FCafHcvlc2N7wrVnJWnu7sf27YlVIuQ1hrTNKitrSYeq2DlytX87q5HuPWOB1mz5E1UbTW1NZUoZJfulhgG9PQrKqMRXrpqNXN2bi/1DUcAlwFX+fHgyRymAI8CR/lZwIRywWjKsWZ5E3t8vZX+oRwNdVp2+I7BpkL19FOP5iMH7AlK0dXdRy5vlfCy0eShtSYYDNCQqCUUDLJ48TLu+MMj3HXfn1m7bCVUxamrrZajLmNkKBhMg5WN8OdvtXHE4WvR7SW94QhgDd5spS+vkJM9TFvxzhKVLKW9DUnPPD2Dg65owQhkqJMdvmP27lDtI5Ko5fijD+JTnziWww7eh3i8gr6BQYaG0jIFXGCj66HRWITG+jpyuRwL//Eqd97zGPf+8W/0rG2D6ipqqysxpJfumCkF2bxmuD/KL77cy2fPfMPbuesYpbzhCLyB1Z/8evhkD1OAK/D5ap2JppSLas5z172z+eT1UwhXD1MZUcgxurEb6flAOpMj09ULFTEOPXAvTjnhcI5acADbbTeTXD5Hb98glmX5XW5JGz0jWltbRUU0RntbB0888xJ33fs4f/rrQnJ9gwTqa6iKx2QkupWUgrytSXVF+PaZQ1zx5eXQB26+pHfuAjwMHOdnAaUQpgpvM1Kr34VMmI12+P7oV3P5yi+qqajPEAkpOTLzASilyOUthnr6wXWYPW97jvvogRx/zCHsu/cuxOMVDCRTDA2lZW11nIyuhcZiUepra7Asi0WvLOGRx5/lwUee4tVFr4PjEGuoIxIOoUA2Fm2lDUdg2iN8+ugcv/7GUkhbuJmS3rkLYOFtOmrzs4hSCFOAw4G/+F3EhNIKI5KHygBfu3lHrr87QmVjjlBAAvWDUkphOw6DySEYSBFpqOMjH96dY444gAWH7cecOa0Eg0F6+wfIZLLSCGIreQFqEo2Gqa2txlSKlavW8szCV3jkT8/w5ydfYGBdB1TGqKqpIhgIyCh0WyhN3/oQxx3g8MfvLgMyuKmSvOj7vS4GbvS7iFIJU/DOFn3C7yImlKsw4jkIhzn7qnnc/liQ6uYcATmDuk1GR0HZXJ503wDYDlNnz+CgD+/B0QsO4MP77sp2s6ZjBoL0Dw6SzmSx8rbc7vM+Rqdwo9EwtTVVKGDN2jZeePGfPPH0i/ztmZd4Y+kKsB3CiVpi0QiGTOVuM6U0ve0hPrKr5vGrlhKpGMbtK9meuxv7J7Cr30VAaYVpNd4wvyQ7I23gKozqHOgoJ39nR+59OkDt1BwGEqjjQSmF47gMpTPYA4MQCLLdDjM5aP89OGDf3dl3713YfrsZRGNxhtMphtMZcjkLxynPUavWGsM0CAWDxKIRqiqrsKwsb61ez6JXlvLU31/mqb8vYunyVTCcRtVUURmPySh0HBmGpqczwPxZJs9cs4LaKb24XSV9lnRjewMv+V0ElFaYApwF3O53ERPOVRh1WaxMjCMvm8cTi0xqmyVQx5tSCsu2GRrO4A6mwDSZ1jqNvXbfif322YX99tqFuXNm0dhQj2GaJIeGyGZz5PN2ya61joZnOBQiFApSXRXHAHp6B1ixci0vv7qU5158jYUvvMaqt9bBcAaq416ABgOyEDrODAN6uky2n2ay8JqVNEzrLYezpKN+BHzF7yJGlVqYAvwZOMLvIiacqzASWXKpGEdfvhNPvGZQ15QD6ZI0YRzH9aZ4kymwHKqaG5gzewZ77zmfXefvwG67zqV15lTq62oIhiKks2ky6Sy2Y5PP25Nu9Dp62XYoFNyw9hmPVYB26e7po6Orl8WvLePlV5fx0qLXWbZiDT3rOkBrzOpKYrEIwUDA779GyRrtbpSoDfH891ez3fx23PZIuQTperzr1XJ+FzKqFMO0BXgLCPpdyIRzFUZDllyyggP/ex4vLUXaDhaAUuC6mmwuTyadhdQwhAIkmhtpnTGVXebvwC47zWbO7JnMndtKVbyC+kQNhhEkb2XJZHLkLQvX1ViWPbKxyd+/k2EYBIMBzJFvI5EwkXAEgN6eXobSWVasXMvSZSt58611vPLqUlauWU9bWxcMpyEWJVwRIxIJETAN2RQ3wTYEaV2IZ7+7hrm7tOF2hPH9E6lwDgGe8ruIjZVimAJ8AbjF7yIKwlUYjRm619dx6Dd24PXVLvVNEqiF5jgu2VyeXDbnhQsQS9TR0tzA9OZGdpzbyvbbTaO5McEOc2bRkKglEgpRU1tFKBRFY48Eq00+b2E7DlprXFejtcZxXJQC23ZwXT2m18xAwASlMAwDQymUUhiG9+NQMEgoFCQQDGAQwLFzDAwkyeRy9PYlWblyLevaOlnb1sXr/3qTNes7WNfWTaq7Fywb4jFCkTDhSEhGnwX2riD9zhrm7jpyL2mJHyTdyM8owms4SzVMAZ4EDva7iIIYaTvYva6eQy6bzZJVLnVTLJSWNVS/uK4mb1nkcnmcfB6Gs2AaBCrj1NdX01RfS0N9DTNmtjBjejN1VRXU19VQV1fD1JZGKuMxAiOhFwwFiUbDuI5LvLICGEt4uWTSaVytyeXyWJaFZdnkLZtsLk9nZw/t7d309Q3QnxpmXVsXb69tp6Orm86eQXr7B8gNpiBvQSyKCoeIhL11UtMoj3nEYiRBynq8ngJF11mllMN0KvAmpb67d5QLxpQs3W/Xc9S3Z7PoDahtysumpCLiunrD+mnessG2IZMFx4ZIhEA0QjQaoaIiRlVljMpYlIpYlHg8Rl1tNZZlM3VqI/HKGLbtbPI5hmFgWRbtbd04jstgMkUmk2U4nSGZGmZwOEN6OOM1pchmvRoMAyJhCAUJBQIEQ0ECAVOCs4hIkAJFOL07qpTDFMpld+8oF4zGHOn+OMd+ay5PviK7fCcLx3FxXMf71nGwbRfXdcF1wHG94FXKGynqsTRmVhAKet8GTO+V2DAwTAPTNDFNg0DAxDC8wCyfpbbJafT4S0N9iGe+t9pbIy2/IP0xcIHfRWxKqYcpwP3ACX4XUTAuGA05csmRXb4vG9S05LzLxSVRhZhUvJ7Smt7OIDvOVDz0zbXMntuJ2xWizIL0TWCO30VszpbCtBTmeD4FDPhdRMEY4HZHCFelefTKJZx4kM1Ae5i8PbZNK0KI4qAArTS9HSF2bjV55upVzJ7XjttZdkEKcJrfBWyrUgjTIeB0v4soKEN7gRpPc993lnHWERapzjDZvASqEJOBUuCg6VsX5qBdXZ6+bjmJlj7ctmg5HX8ZdTHwqt9FbKtSCFOAx4Cb/S6ioAyN2xsBneH2y5dy8akZhnuiDGe9i4OFEMVp9Bq1gbYwJx7k8OfvL6W2qd+b2i2VV+Sx+ytF0MR+PJTSP91XgcV+F1FQhsZNhiGf4/r/Ws61nx0kOxijf9jbjyKEKC6GguEcpDojnHtMnvu+s4RQPI3bGS2tV+OxSVFCs4ql9s/3cSDvdxEFZWjc4TCkbL722Te47cJOnHyUnn6FWWr/ukJMYoYB/cOQ7Y9yxdkpfv6NpaAz3gxTeTStf69PAN1+FzFeSu3l9i3gbL+LKDilvQuCexVnn/omf71iPTXRCN1dJkrp8tvKIESRMQ3o6Vc4uSi/+GoX3/7Scu9i72TZBum1wKN+FzGeSi1Mwbv39H/9LqLglMbNm9AR5rCD17Lw2lXsOMOktz2MrWVjkhB+UHh3kXZ3mdRGIzz+rfV89vQV0KNw06FyDdKFwCV+FzHeSjFMwevd+y+/iyg4Ba5joDtCzJvfwfPXv8Ex+9kMtkfIWFo2JglRQEqBrTW9bWF2blU8d90qFhy+FtpD3htfVZZBmgRO9LuIiVCqYQpwLJDxu4iCU6BRuO0RqhJ9PPy9pXz1lAzp3qhsTBKiQAwF6ZxmsD3CSQdZPH/DMubs1IFuD+E6RhkeI93gZEponXRjpfzSuhb4pN9F+MYAtycGOssPLlrCL7/ajWtF6elVso4qxAQyDOhJQWYgxqVnDHPPd5cSqxrCbY+gUeUcpJcDf/G7iIlSymEK8CDwHb+L8I2hcYfCMKA555MrePbKdWzXFKa3PYQl66hCjCulAKXp6TKpDEa48+tdXHXBMsjncPvK5lLvTXkA+L7fRUykUujNOxb3U079e99Lg2G40GTR+3Ytn7l5Fg8+GyJcl6MyAm5ZLt0IMX6UgpytGeoMs8dOLndcuI55u7VDVxDXCpTr+uiolcB8IOd3IduiHHrzjsUngFV+F+EbBa42cNvD1Df28cCVS7nyM0lyQxF6+hWGTPsK8YEZBvQPwVB3lE8fk+P565cxb347ui2Ma5XtRqNRWeAoJnmQjkW5hGkOOAJI+12IrxS4vVHIWVz2+WU8fsV6WhNhetpDWK5M+wqxNZQCjTetG9IxfnlhF7++fAnB2DBuR9mvj446CVjhdxGFUC5hCl5Dh5P9LsJ3hsZNB6AzwILD3+b5G5dz4oE2yc4YA8PS11eIsRjdrdvfFmHvuYrnrn+Lcz6xCgZd3MFweb2ybtollFhjhs0pt3/yx4AL/S7Cdwpc18BtC9PQ1Md9313KD7/Ug6Gj9HSbaGSUKsT78ZoweN2MMkMRzj8lzXPXLme33dqgLYSbK/v10VG/wutyVDbKZQPSe/0E+JLfRRQFV2HE8lDn8OpLU/niz1p4brFJuF42JwmxsQ2bjLpDzJpm8tPPtXH0gnUwBG4yWH5Dk017EjjU7yLG25Y2IJVrmAI8DBzjdxFFQYOhNDTmIBnnm3fM4Mq7a0DnqKtzUEqxhU8TIUrWhtHooIJ0mP84Ms0PzllH3bQ+6Ang2qasjb7jLWB3vE5HJUXCdNOCwCt4W7YFgAtGpQVVmqeebuErv2pm8RKDUCJHlYxSRRkyFGQszXB3iOZmkxvP7uT049eBlcftj0iIvtsgsAvwtt+FTAQJ081rxOvh2+B3IUVDg2G60JjH6q7iW3dO49r7q9F5i5qEjSmjVFEGvD0Dmt5+E+wwnzp8mOvOXkfz7D7oNnHzQVkbfTcXOAB4zu9CJoqE6ZbNAxYBEb8LKSr6nVHqcwubuei2qSx8JYCqyVJfIaNUUboMBaks5HpDzJkN15zZzcePWg92Dt0XQYOMSP/dScB9fhcxkSRMx+ZgvEVzsbHRzkkNeRiKc9O9zVxxd4JUn008YREJKglVUTKUAtvVDPYEIBzk/GOSXH3GOiqmDkJ3ANeS0egmnI+3qbOkSZiO3WnAXX4XUZQ0GDELal1WvJ7g8v9r4a4nY2DkqK1zMGTqV0xio8fAepMKhsMcvKfF1Z9q58P7d8CQxk2GZCS6ad8BrvC7iEKQMN06XwZ+7HcRRUmPNHSozwIRHn5iCt+6s4FFrwegOkt93Ps9kqliMjEUJLOQ7wvR0qL49qk9nHtsO1QMQ0/ZX5e2JTcBF/ldRKFImG69i4Hr/S6iaGmFEbQhkYfeKm54cArX3Jegt8shXG9RGZb1VFH8NpwZ7QlixAJ86egk3zy5k4bWXug3cDNBCdHN+x1wlt9FFJKE6QdzA2X0jusD0WDELah2WbO0gavua+IXf6lEpy3iCYtwQKZ+RfFRCmwHBgdM0CFO2D/N5ad2sNeePZB10INh7/NWgnRz7qIM74qWMP3gJFC3ZHTqtyYH4QDPvZjgmnubeODvFaByVNXaBE0JVeE/pcB1oX/QgFyI/Xe3uezEHo45uB0CGeiJ4LrSmH4M/gYc7ncRfpAw3TY3Axf4XUTR02CYGhJZsKI88kwT1z+Q4MmXwxDMUVXjEjSRUBUFpxS4WtOfNCATZrc5Dhcd38NZCzqhchj6AnJmdOyewbt9K+93IX6QMN12/wec7ncRk8KG9VQLkhXc/WQjP3y0noWvBSGQl1AVBbMhRFMGDIXZrtXlwuN6+dKRXZBIwYCsi26lZ4DDANvvQvwiYTo+JFC3hgYjbEOdDYNx7n66gR8+IqEqJp5S4LgwkPKOuczezuG8I/v5woIuYi1JGFS46ZDfZU42ZR+kIGE6niRQt5YGI2JBrfPvoWrkide6hAMSqmLbbdhYlDQgH2JOq8PnjxgJ0emDkDTQQyHZXLT1JEhHSJiOLwnUD+K9ofpUAz/7ax1/WxwGyyZaaxELSaiKrecdcYGhAQN0iN3n2py/oJ+zDuomODUJKSUh+sFJkG5EwnT8/RivuYPYWhtC1YWhCh57sYZf/LWOB56P46QcjOo81TFvh7AEq9iU0UwcykFuMADBIAfvkuNLH+3j1P17oH7IG4mmgxKiH5wE6XtImE4MOTazLTQYIQdqLbBDvLS4jtueTHDPc3E62oBonqq4JihTwGIjG9ZDhxUkg8TqTY7fK8U5h/Wz4EMDEB+GQQM3G/S71Mnub8CRSJC+i4TpxJFA3VYajIALNXkIBOhYUcOdf6/lN89W8+ryELgW4WqbirA3uJBcLT+jg8qMBelBA9wQO8xyOGW/FGd+pJ/5O/VBIA/9QVzL9LXWEvF74Ay/iyhGEqYT62vAtX4XMelpMAwNlXmoALqquG9RFXc+W8Njr8RJdmuoyBOv0N6GJb/rFRNOKbAcSA4rSAUJ1RgcvHOGM/dLcdp+vURnpCDrQDKEa0v/3HFSdi0Ct4aE6cT7CvBDv4soCSPrW0bY9qaA82HeXF7Dvc/XcPcLlby8IgQZByptqqMuAUNJsJYQbxpXM5RT2IMBMIPs2Gpx4l5DnLRvP3vvPAgVOUgCmaB0LBpfN+L1JRebIGFaGGfivasT42V0CrgyD1EDuiv4y+tV3PtcDX9aXMGqtQHQFoEqm3hYYxrStnAyGg3QdF6RTxnghGicolmw6xAf2yfJx3dNEpyW8oapg0FcW6ZyJ8C3gO/5XUSxkzAtnMOAh4GI34WUFA0ojRF2oMoGgqTWVvLHf1Xy2KJK/rQ4TlenASqPGXepCLsEZcRa1BTg6HcHaG2Dy/5zc5yw5xDH7TFAc2sSQjkYDELWlFHoxLkAuXZyTCRMC2s34DFgit+FlKTRHsARG6ptyIXpWFXNo/+q4tFX4zz/Zoi1bUFwLIg7xMOaUMDvogV4OWg5MJRTuMMKdJjaBocD5uQ4dvchjtw1SWtrCiqyMAykg7IWOvFOAe7xu4jJQsK08KYDjwLz/S6kpI1OA0dtiLuQjdC/PspjS6r42z/jPL00xhttARh2IWoRikI0KOushaLweuNmLEU2qyBtQihI61SLfXfIc8TOQxy+U4pZrSmIvydAxUTrBk4A/uF3IZOJhKk/onjv+I72u5ByYZguRFyo9DYuZbuiPPtmFU/9q4InllewdJ1JX3cQdB5iLpGwJhJ0MZWE63gYnbrN2YpMTkFGgROmot5hxxabg+ZkOGDeEEfMS1HdnIVoBoaUt5FIArSQlgLHAyv9LmSykTD110+BL/pdRFkZHbGGXKiwwAxBf4hV6+I8tSLCojcreOqNKKs6TYb7g6BzENOEQppwwCVoyrziWDmuJmcZZC0FGcANE652md1ks1drnr1nD3PwjsPsPCuFqrHBzEIqCDkD15EA9cGfgZOBlN+FTEYSpv67GLje7yLKkgZlaFTQhbADcQdyUax+g+VvV/P3lWFeXVXBS6ujrOpU9A2EIGtD2IKQIhLShALe1HC5c1xN3lHkLAM3ryETgGCIeE2eWQ02e85w2GeHFPu25thlVpJwrQ0VGRhWkA2ApbwAlf+VfrkFOM/vIiYzCdPicBLe0Zmo34WUNT0yHRzUEHGgwoFsFHfAZE1nBS+tibF8ncFLq2pZ0e2ypifI0GAI8jYELQhDIAChgEPApCRD1nE1tgt528CyFFga8gEIBIlUujTX5pjTpNirNcWcFosPzcyyQ8sgoSq88MyOBK0lo88ichFwk99FTHYSpsVjPt466ly/CxEjRqeEAxpCDsRsUEEYiJHL2KxYX8PityOs7oYl62p5oxPW90F3MoKVUZBzvJANaggogiYETBfT1JgKzCIMW1e/E5i2Y2LZgKPBUl5oBk2MmKKhMsvUOs2sesXO01Js35xnxymanab1Ea9yoToPZg6GA5A3wUbOgBafJN4tV4/4XUgpkDAtLlXAb4GP+V2IeH9KaVTABRNvajhigxGAVAyddulNBnn97TrW9bus61O80V7N+r4gbUmH7iQk0xHSWQV5IK/BsCE48ucZ3odpKJTSBEwXANPQG3oPmwqU2nIIazSO+86sqeN6G6kcV+G6Bo7W4DKSngpsBXYAAgaEIRyG6liORKVDU2WAGQmbHZoHmVrrML3WZP60JI21GcyICZVZMPKQVZALgoM38pSzn8XsVeCTwHKf6ygZEqbF6SrgUr+LEGOlvRGsiTeKDdveaNQwIR2FtIFl2fSngqzuqqV9wKB3SNOftWjvraR9IEbfkCKZgaGcZiBrk7dMhjIRQJPOG7iu1w1IW3hhtSUGEGJDo+JYWGMoiIZswqEcVRGTqohBZURRU6Fpqs7TUjdIXQU0xE0aq6C1aZD6qgzhoAkx7R1R0bY3Ss2ZYBvggLYNtJbUnETuwuuxa/ldSCmRMC1epwK3ATGf6xDbwDCdkVGnAtOFoA0BRoIXyIUhE/RGqjZYtiarHdLpMOt7q1FK0500ydmKgAkDac1wDszNLDc6LkSDUBdX3uhUQWOlTcBU1MYz1FWlCBsmoYBCBYAg3hpxNAeu64W1DVgjgakBh5EjKhKak9ylwDV+F1GKJEyL2zzgDmAPvwsRE8MwXDC0N5JUox8KDBeCI0NQU79zx5zJ2PJsJAA3/F575A9wTLBN7/sab6pXA66SDUGlrQP4D7zjL2ICbClMpdmav5YCewO/BP7T31LERHBdwwu0f2MgX35inPwZOBto97uQciZvVf3nAJ8e+RjLapkQQoy6GvgoEqS+kzAtHrfhjVJf9LkOIUTxaweOBL7hdyHCI2FaXF4B9gH+x+9ChBBF6yG8fRaP+12IeIeEaXH6MnAi0OVzHUKI4vJVvEb1nT7XId5DwrR4PYD37vMhvwsRQvjueeBDwM1+FyLen4RpcWvDexd6HpDzuRYhhD+uA/YDFvldiNg0CdPJ4Ra8Uepf/S5ECFEwrwOHAl/3uxCxZRKmk8dS4Ajga2zi5KIQomSMvoF+0uc6xBhJmE4+1wO7Izv5hChFr+KNRs9DeutOKhKmk9M/8c6YnQekfK5FCDE+rgP2REajk5KE6eR2C7Ab3s5fIcTk9CSwP97a6OabpYuiJWE6+b2Fdyb1ROANXysRQmyNJHA+3rTuP3yuRWwjCdPS8QDeKPUGvwsRQmzRXcCuwE/8LkSMDwnT0pIF/hvYC3jU51qEEP/ueeAY4JPAGp9rEeNIwrQ0vYz3BXsasMznWoQQ0I/XCnA/5I1uSZIwLW13AzsDlwNpn2sRolz9HJiPtAIsaRKmpc8Bvo8Xqrf5W4oQZeVRvJHo55H7RkuehGn5eAvvAvIDkWkmISbSQrye2sfgrZGKMiBhWn7+jvdFfgzeF70QYnwsA84GDkBueyo7Eqbl61G8L/qTgdd8rkWIyWw18BW8pZTb/S1F+EXCVNyLdz71bCRUhdgavXib+3YEfoS3P0GUKQlTMep2JFSFGIte4Dt4Ifp95K5hgYSp+HcSqkK8v9W8MxK9AujxsxhRXCRMxaZsHKqyUUmUs5V4a6KjI1EJUfFvJEzFltyOt1Hp48gdqqK8vIj3ZnIO3pqoTOeKTZIwFWN1P94dqgfhNekWolQ9jvfmcR+8N5Ouv+WIyUDCVGytZ/CadM8FbgQ6/S1HiHFh43UI+zDem8b7/SxGTD4SpuKDegO4GJiN1y7tRX/LEeIDeQO4DNger0PYc/6WIyYrCVOxrYbxGnnvAywAfgfkfa1IiC17CO9WpbnAVch1aGIbKa31Zn+D+1iiQKWIEjIdOAVv88ZuPtcixKjVwO+B3wJL/S1FTDbGUZvfxC1hKiba4XgjgFOAOp9rEeXHxlv//D3wANKlSHxAEqaiWFTi9QE+Ga/JviwxiIm0EPgDXrvMt32uRZQACVNRjGYDJ+AF6/4+1yJKx7/wRqF/AP7pbymi1EiYimK3C/AxvHDd2+daxOTzL+BBvCncF3yuRZQwCVMxmewCHAccjTdiNf0tRxQpCVBRcBKmYrKahResh+FtYqrytRrhpzzwLPAXvCMtMoUrCk7CVJSCKryuNAcCR+H1ShWlrQ14DG8j0aMjPxbCN1sK00CB6hBiWySBu0c+AOYBH8Vr/XYwMMWnusT4SQFPAf8A/gYsQpp/iElERqZisgsD++LdbLMvsB/Q5GtFYixSeMH5D7zR53N4b5qEKEoyMhWlLgc8PfIBEMHbyHQw3v2TBwOtyGYmv63DC85X8Po4v4CEpyghEqai1GTxXqxHG+8rYCbeiHUesAewJ9CMNI6YKH14obkIWI5309BbgOVnUUJMJAlTUeo0Xk/W1Rv9XAivf/DeeKPXOXg9hGcBsYJWN7llgfXAYrzbV5YDLwMrgbSPdQlRcBKmohzl8V7wV77n52uBHYD5eF2aZuNNEc8e+bVynSpO4t2q8ubIxxpgGbAE6EYuzxZCwlSIjfTjreW9txFAFG/H8HZ44Todb5q4GWgZ+XEl3maoySaPN4psA9rx+ti+DXQAq/CmZ9vwNgwJITZBwlSILcvghcpbm/j1KFCNF64NQOPIt9V4N+XU441soyO/Zox8Gxz5fsU41JjGuxHFBTpHvt89UnsfMAD0AIMjP98HdOFN0w7g3UsrhPiAJEyF2HaZkY+OTfx6GK/xRBgvVI2RbwN4U8dT8ILVxbsyLD7yc+83fWriheDgyH+v8NaF2/E2+Lh4QenijbRzeNO02W37KwohNmeL50yFEEIIsXlyNEAIIYTYRhKmQgghxDaSMBVCCCG2kYSpEEIIsY0kTIUQQohtJGEqhBBCbKP/D8/Q3MAstNOAAAAAAElFTkSuQmCC",nA=()=>{const e=be(t=>t.system.app_version);return v.jsxs(Re,{alignItems:"center",gap:3,ps:1,children:[v.jsx(iS,{src:WSe,alt:"invoke-ai-logo",w:"32px",h:"32px"}),v.jsxs(Gt,{fontSize:"xl",children:["invoke ",v.jsx("strong",{children:"ai"})]}),v.jsx(Gt,{sx:{fontWeight:300,marginTop:1},variant:"subtext",children:e})]})},qSe=Et((e,t)=>{const{children:n,tooltip:r="",tooltipProps:i,isChecked:a,...o}=e;return v.jsx(oo,{label:r,...i,children:v.jsx(Cv,{ref:t,"aria-checked":a,...o,children:n})})}),mr=A.memo(qSe),lU=Et((e,t)=>{const{role:n,tooltip:r="",tooltipProps:i,isChecked:a,...o}=e;return v.jsx(oo,{label:r,hasArrow:!0,...i,...i!=null&&i.placement?{placement:i.placement}:{placement:"top"},children:v.jsx(Ip,{ref:t,role:n,"aria-checked":a!==void 0?a:void 0,...o})})});lU.displayName="IAIIconButton";const _t=A.memo(lU),YSe=e=>{const{triggerComponent:t,children:n,hasArrow:r=!0,isLazy:i=!0,...a}=e;return v.jsxs(W3,{isLazy:i,...a,children:[v.jsx(H3,{children:t}),v.jsxs(Y3,{children:[r&&v.jsx(q3,{}),n]})]})},Vc=A.memo(YSe);var uU={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},cU=A.createContext&&A.createContext(uU),Up=globalThis&&globalThis.__assign||function(){return Up=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Up.apply(this,arguments)},KSe=globalThis&&globalThis.__rest||function(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 dU(e){return e&&e.map(function(t,n){return A.createElement(t.tag,Up({key:n},t.attr),dU(t.child))})}function Vt(e){return function(t){return A.createElement(XSe,Up({attr:Up({},e.attr)},t),dU(e.child))}}function XSe(e){var t=function(n){var r=e.attr,i=e.size,a=e.title,o=KSe(e,["attr","size","title"]),l=i||n.size||"1em",c;return n.className&&(c=n.className),e.className&&(c=(c?c+" ":"")+e.className),A.createElement("svg",Up({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,o,{className:c,style:Up(Up({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&A.createElement("title",null,a),e.children)};return cU!==void 0?A.createElement(cU.Consumer,null,function(n){return t(n)}):t(uU)}function QSe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"}}]})(e)}function ZSe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"}}]})(e)}function JSe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"}}]})(e)}function $Se(e){return Vt({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"}}]})(e)}function exe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"}}]})(e)}function txe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(e)}function nxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(e)}function fU(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"}}]})(e)}function rxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"}}]})(e)}function ixe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"}}]})(e)}function dE(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"}}]})(e)}function hU(e){return Vt({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"}}]})(e)}function ly(e){return Vt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"}}]})(e)}function pU(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M500 224h-30.364C455.724 130.325 381.675 56.276 288 42.364V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v30.364C130.325 56.276 56.276 130.325 42.364 224H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h30.364C56.276 381.675 130.325 455.724 224 469.636V500c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-30.364C381.675 455.724 455.724 381.675 469.636 288H500c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zM288 404.634V364c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40.634C165.826 392.232 119.783 346.243 107.366 288H148c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40.634C119.768 165.826 165.757 119.783 224 107.366V148c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40.634C346.174 119.768 392.217 165.757 404.634 224H364c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40.634C392.232 346.174 346.243 392.217 288 404.634zM288 256c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-17.673 14.327-32 32-32s32 14.327 32 32z"}}]})(e)}function axe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"}}]})(e)}function rA(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"}}]})(e)}function mU(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z"}}]})(e)}function oxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 344v112a23.94 23.94 0 0 1-24 24H312c-21.39 0-32.09-25.9-17-41l36.2-36.2L224 295.6 116.77 402.9 153 439c15.09 15.1 4.39 41-17 41H24a23.94 23.94 0 0 1-24-24V344c0-21.4 25.89-32.1 41-17l36.19 36.2L184.46 256 77.18 148.7 41 185c-15.1 15.1-41 4.4-41-17V56a23.94 23.94 0 0 1 24-24h112c21.39 0 32.09 25.9 17 41l-36.2 36.2L224 216.4l107.23-107.3L295 73c-15.09-15.1-4.39-41 17-41h112a23.94 23.94 0 0 1 24 24v112c0 21.4-25.89 32.1-41 17l-36.19-36.2L263.54 256l107.28 107.3L407 327.1c15.1-15.2 41-4.5 41 16.9z"}}]})(e)}function sxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"}}]})(e)}function vU(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M50.75 333.25c-12 12-18.75 28.28-18.75 45.26V424L0 480l32 32 56-32h45.49c16.97 0 33.25-6.74 45.25-18.74l126.64-126.62-128-128L50.75 333.25zM483.88 28.12c-37.47-37.5-98.28-37.5-135.75 0l-77.09 77.09-13.1-13.1c-9.44-9.44-24.65-9.31-33.94 0l-40.97 40.97c-9.37 9.37-9.37 24.57 0 33.94l161.94 161.94c9.44 9.44 24.65 9.31 33.94 0L419.88 288c9.37-9.37 9.37-24.57 0-33.94l-13.1-13.1 77.09-77.09c37.51-37.48 37.51-98.26.01-135.75z"}}]})(e)}function lxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"}}]})(e)}function uxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"}}]})(e)}function gU(e){return Vt({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M512 320s-64 92.65-64 128c0 35.35 28.66 64 64 64s64-28.65 64-64-64-128-64-128zm-9.37-102.94L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.76c-6.25-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.62l86.19 86.18-94.76 94.76c-37.49 37.48-37.49 98.26 0 135.75l117.19 117.19c18.74 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.87-28.12l221.57-221.57c12.5-12.5 12.5-32.75.01-45.25zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.6 58.6c12.49 12.49 32.75 12.49 45.24 0s12.49-32.75 0-45.24l-58.6-58.6 58.95-58.95 162.44 162.44-48.34 48.34z"}}]})(e)}function cxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM94.6 168.9l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.2 1 8.9 8.6 4.3 13.2l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L152 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.6-4.7-1.9-12.3 4.3-13.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm157.7-249.9l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L344 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.5-4.6-1.9-12.2 4.3-13.2l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.3.9 9 8.5 4.4 13.1z"}}]})(e)}function dxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"}}]})(e)}function fxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"}}]})(e)}function hxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M152.1 236.2c-3.5-12.1-7.8-33.2-7.8-33.2h-.5s-4.3 21.1-7.8 33.2l-11.1 37.5H163zM616 96H336v320h280c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm-24 120c0 6.6-5.4 12-12 12h-11.4c-6.9 23.6-21.7 47.4-42.7 69.9 8.4 6.4 17.1 12.5 26.1 18 5.5 3.4 7.3 10.5 4.1 16.2l-7.9 13.9c-3.4 5.9-10.9 7.8-16.7 4.3-12.6-7.8-24.5-16.1-35.4-24.9-10.9 8.7-22.7 17.1-35.4 24.9-5.8 3.5-13.3 1.6-16.7-4.3l-7.9-13.9c-3.2-5.6-1.4-12.8 4.2-16.2 9.3-5.7 18-11.7 26.1-18-7.9-8.4-14.9-17-21-25.7-4-5.7-2.2-13.6 3.7-17.1l6.5-3.9 7.3-4.3c5.4-3.2 12.4-1.7 16 3.4 5 7 10.8 14 17.4 20.9 13.5-14.2 23.8-28.9 30-43.2H412c-6.6 0-12-5.4-12-12v-16c0-6.6 5.4-12 12-12h64v-16c0-6.6 5.4-12 12-12h16c6.6 0 12 5.4 12 12v16h64c6.6 0 12 5.4 12 12zM0 120v272c0 13.3 10.7 24 24 24h280V96H24c-13.3 0-24 10.7-24 24zm58.9 216.1L116.4 167c1.7-4.9 6.2-8.1 11.4-8.1h32.5c5.1 0 9.7 3.3 11.4 8.1l57.5 169.1c2.6 7.8-3.1 15.9-11.4 15.9h-22.9a12 12 0 0 1-11.5-8.6l-9.4-31.9h-60.2l-9.1 31.8c-1.5 5.1-6.2 8.7-11.5 8.7H70.3c-8.2 0-14-8.1-11.4-15.9z"}}]})(e)}function yU(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"}}]})(e)}function pxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320.67 64c-442.6 0-357.57 384-158.46 384 39.9 0 77.47-20.69 101.42-55.86l25.73-37.79c15.66-22.99 46.97-22.99 62.63 0l25.73 37.79C401.66 427.31 439.23 448 479.13 448c189.86 0 290.63-384-158.46-384zM184 308.36c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05zm272 0c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05z"}}]})(e)}function mxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function bU(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"}}]})(e)}function vxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"}}]})(e)}function gxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"}}]})(e)}function SS(e){return Vt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function yxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z"}}]})(e)}function bxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M184.561 261.903c3.232 13.997-12.123 24.635-24.068 17.168l-40.736-25.455-50.867 81.402C55.606 356.273 70.96 384 96.012 384H148c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12H96.115c-75.334 0-121.302-83.048-81.408-146.88l50.822-81.388-40.725-25.448c-12.081-7.547-8.966-25.961 4.879-29.158l110.237-25.45c8.611-1.988 17.201 3.381 19.189 11.99l25.452 110.237zm98.561-182.915l41.289 66.076-40.74 25.457c-12.051 7.528-9 25.953 4.879 29.158l110.237 25.45c8.672 1.999 17.215-3.438 19.189-11.99l25.45-110.237c3.197-13.844-11.99-24.719-24.068-17.168l-40.687 25.424-41.263-66.082c-37.521-60.033-125.209-60.171-162.816 0l-17.963 28.766c-3.51 5.62-1.8 13.021 3.82 16.533l33.919 21.195c5.62 3.512 13.024 1.803 16.536-3.817l17.961-28.743c12.712-20.341 41.973-19.676 54.257-.022zM497.288 301.12l-27.515-44.065c-3.511-5.623-10.916-7.334-16.538-3.821l-33.861 21.159c-5.62 3.512-7.33 10.915-3.818 16.536l27.564 44.112c13.257 21.211-2.057 48.96-27.136 48.96H320V336.02c0-14.213-17.242-21.383-27.313-11.313l-80 79.981c-6.249 6.248-6.249 16.379 0 22.627l80 79.989C302.689 517.308 320 510.3 320 495.989V448h95.88c75.274 0 121.335-82.997 81.408-146.88z"}}]})(e)}function Sxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12z"}}]})(e)}function iA(e){return Vt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"}}]})(e)}function xxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"}}]})(e)}function wxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"}}]})(e)}function Cxe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"}}]})(e)}function SU(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M503.691 189.836L327.687 37.851C312.281 24.546 288 35.347 288 56.015v80.053C127.371 137.907 0 170.1 0 322.326c0 61.441 39.581 122.309 83.333 154.132 13.653 9.931 33.111-2.533 28.077-18.631C66.066 312.814 132.917 274.316 288 272.085V360c0 20.7 24.3 31.453 39.687 18.164l176.004-152c11.071-9.562 11.086-26.753 0-36.328z"}}]})(e)}function aA(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"}}]})(e)}function Exe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"}}]})(e)}function Mv(e){return Vt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"}}]})(e)}function _xe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"}}]})(e)}function fE(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"}}]})(e)}function Txe(e){return Vt({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"}}]})(e)}function oA(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"}}]})(e)}function xU(){const{t:e}=tt(),t=et(),n=be(o=>o.ui.currentTheme),r={dark:e("common.darkTheme"),light:e("common.lightTheme"),green:e("common.greenTheme"),ocean:e("common.oceanTheme")},i=o=>{t(lZ(o))},a=()=>{const o=[];return Object.keys(r).forEach(l=>{o.push(v.jsx(mr,{isChecked:n===l,leftIcon:n===l?v.jsx(dE,{}):void 0,size:"sm",onClick:()=>i(l),children:r[l]},l))}),o};return v.jsx(Vc,{trigger:"hover",triggerComponent:v.jsx(_t,{"aria-label":e("common.themeLabel"),size:"sm",variant:"link","data-variant":"link",fontSize:20,icon:v.jsx(vxe,{})}),children:v.jsx(Mn,{align:"stretch",children:a()})})}const sA=A.createContext(null);let wU;const lA=()=>({setOpenUploader:e=>{e&&(wU=e)},openUploader:wU}),ki=Ut(e=>e.ui,e=>Nk[e.activeTab],{memoizeOptions:{equalityCheck:Qe.isEqual}}),kxe=Ut(e=>e.ui,e=>e.activeTab,{memoizeOptions:{equalityCheck:Qe.isEqual}}),Wd=Ut(e=>e.ui,e=>e,{memoizeOptions:{equalityCheck:Qe.isEqual}}),CU=e=>async(t,n)=>{const{imageFile:r}=e,i=n(),a=ki(i),o=new FormData;o.append("file",r,r.name),o.append("data",JSON.stringify({kind:"init"}));const c=await(await fetch(`${window.location.origin}/upload`,{method:"POST",body:o})).json(),d={uuid:y0(),category:"user",...c};t(n0({image:d,category:"user"})),a==="unifiedCanvas"?t(O2(d)):a==="img2img"&&t(i0(d))};var Pxe=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function xS(e,t){var n=Axe(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Axe(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=Pxe.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var Oxe=[".DS_Store","Thumbs.db"];function Dxe(e){return H0(this,void 0,void 0,function(){return G0(this,function(t){return hE(e)&&Mxe(e.dataTransfer)?[2,Nxe(e.dataTransfer,e.type)]:jxe(e)?[2,Ixe(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Rxe(e)]:[2,[]]})})}function Mxe(e){return hE(e)}function jxe(e){return hE(e)&&hE(e.target)}function hE(e){return typeof e=="object"&&e!==null}function Ixe(e){return uA(e.target.files).map(function(t){return xS(t)})}function Rxe(e){return H0(this,void 0,void 0,function(){var t;return G0(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return xS(r)})]}})})}function Nxe(e,t){return H0(this,void 0,void 0,function(){var n,r;return G0(this,function(i){switch(i.label){case 0:return e.items?(n=uA(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Lxe))]):[3,2];case 1:return r=i.sent(),[2,EU(_U(r))];case 2:return[2,EU(uA(e.files).map(function(a){return xS(a)}))]}})})}function EU(e){return e.filter(function(t){return Oxe.indexOf(t.name)===-1})}function uA(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function Lxe(e){if(typeof e.webkitGetAsEntry!="function")return TU(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?kU(t):TU(e)}function _U(e){return e.reduce(function(t,n){return K5(K5([],H7(t),!1),H7(Array.isArray(n)?_U(n):[n]),!1)},[])}function TU(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=xS(t);return Promise.resolve(n)}function zxe(e){return H0(this,void 0,void 0,function(){return G0(this,function(t){return[2,e.isDirectory?kU(e):Bxe(e)]})})}function kU(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function a(){var o=this;t.readEntries(function(l){return H0(o,void 0,void 0,function(){var c,d,p;return G0(this,function(g){switch(g.label){case 0:if(l.length)return[3,5];g.label=1;case 1:return g.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return c=g.sent(),n(c),[3,4];case 3:return d=g.sent(),r(d),[3,4];case 4:return[3,6];case 5:p=Promise.all(l.map(zxe)),i.push(p),a(),g.label=6;case 6:return[2]}})})},function(l){r(l)})}a()})}function Bxe(e){return H0(this,void 0,void 0,function(){return G0(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var a=xS(i,e.fullPath);n(a)},function(i){r(i)})})]})})}var Fxe=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var l=o.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):i===l})}return!0};function PU(e){return Hxe(e)||Vxe(e)||MU(e)||Uxe()}function Uxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hxe(e){if(Array.isArray(e))return cA(e)}function AU(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 OU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AU(Object(n),!0).forEach(function(r){DU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AU(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wS(e,t){return qxe(e)||Wxe(e,t)||MU(e,t)||Gxe()}function Gxe(){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 MU(e,t){if(e){if(typeof e=="string")return cA(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 cA(e,t)}}function cA(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 Wxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(c){a=!0,l=c}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function qxe(e){if(Array.isArray(e))return e}var Yxe="file-invalid-type",Kxe="file-too-large",Xxe="file-too-small",Qxe="too-many-files",Zxe=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:Yxe,message:"File type must be ".concat(n)}},jU=function(t){return{code:Kxe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},IU=function(t){return{code:Xxe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Jxe={code:Qxe,message:"Too many files"};function RU(e,t){var n=e.type==="application/x-moz-file"||Fxe(e,t);return[n,n?null:Zxe(t)]}function NU(e,t,n){if(jv(e.size))if(jv(t)&&jv(n)){if(e.size>n)return[!1,jU(n)];if(e.size<t)return[!1,IU(t)]}else{if(jv(t)&&e.size<t)return[!1,IU(t)];if(jv(n)&&e.size>n)return[!1,jU(n)]}return[!0,null]}function jv(e){return e!=null}function $xe(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,l=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(c){var d=RU(c,n),p=wS(d,1),g=p[0],S=NU(c,r,i),w=wS(S,1),C=w[0],k=l?l(c):null;return g&&C&&!k})}function pE(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function mE(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 LU(e){e.preventDefault()}function e2e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function t2e(e){return e.indexOf("Edge/")!==-1}function n2e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return e2e(e)||t2e(e)}function qd(){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,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(function(l){return!pE(r)&&l&&l.apply(void 0,[r].concat(a)),pE(r)})}}function r2e(){return"showOpenFilePicker"in window}function i2e(e){if(jv(e)){var t=Object.entries(e).filter(function(n){var r=wS(n,2),i=r[0],a=r[1],o=!0;return zU(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.')),o=!1),(!Array.isArray(a)||!a.every(BU))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(n,r){var i=wS(r,2),a=i[0],o=i[1];return OU(OU({},n),{},DU({},a,o))},{});return[{description:"Files",accept:t}]}return e}function a2e(e){if(jv(e))return Object.entries(e).reduce(function(t,n){var r=wS(n,2),i=r[0],a=r[1];return[].concat(PU(t),[i],PU(a))},[]).filter(function(t){return zU(t)||BU(t)}).join(",")}function o2e(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function s2e(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function zU(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function BU(e){return/^.*\.[\w]+$/.test(e)}var l2e=["children"],u2e=["open"],c2e=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],d2e=["refKey","onChange","onClick"];function f2e(e){return m2e(e)||p2e(e)||FU(e)||h2e()}function h2e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function m2e(e){if(Array.isArray(e))return fA(e)}function dA(e,t){return y2e(e)||g2e(e,t)||FU(e,t)||v2e()}function v2e(){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 FU(e,t){if(e){if(typeof e=="string")return fA(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 fA(e,t)}}function fA(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 g2e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(c){a=!0,l=c}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function y2e(e){if(Array.isArray(e))return e}function UU(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 ca(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UU(Object(n),!0).forEach(function(r){hA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UU(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vE(e,t){if(e==null)return{};var n=b2e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b2e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var pA=A.forwardRef(function(e,t){var n=e.children,r=vE(e,l2e),i=HU(r),a=i.open,o=vE(i,u2e);return A.useImperativeHandle(t,function(){return{open:a}},[a]),A.createElement(A.Fragment,null,n(ca(ca({},o),{},{open:a})))});pA.displayName="Dropzone";var VU={disabled:!1,getFilesFromEvent:Dxe,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};pA.defaultProps=VU,pA.propTypes={children:cn.func,accept:cn.objectOf(cn.arrayOf(cn.string)),multiple:cn.bool,preventDropOnDocument:cn.bool,noClick:cn.bool,noKeyboard:cn.bool,noDrag:cn.bool,noDragEventsBubbling:cn.bool,minSize:cn.number,maxSize:cn.number,maxFiles:cn.number,disabled:cn.bool,getFilesFromEvent:cn.func,onFileDialogCancel:cn.func,onFileDialogOpen:cn.func,useFsAccessApi:cn.bool,autoFocus:cn.bool,onDragEnter:cn.func,onDragLeave:cn.func,onDragOver:cn.func,onDrop:cn.func,onDropAccepted:cn.func,onDropRejected:cn.func,onError:cn.func,validator:cn.func};var mA={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function HU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ca(ca({},VU),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,l=t.multiple,c=t.maxFiles,d=t.onDragEnter,p=t.onDragLeave,g=t.onDragOver,S=t.onDrop,w=t.onDropAccepted,C=t.onDropRejected,k=t.onFileDialogCancel,P=t.onFileDialogOpen,D=t.useFsAccessApi,M=t.autoFocus,R=t.preventDropOnDocument,L=t.noClick,z=t.noKeyboard,U=t.noDrag,V=t.noDragEventsBubbling,Y=t.onError,J=t.validator,$=A.useMemo(function(){return a2e(n)},[n]),K=A.useMemo(function(){return i2e(n)},[n]),fe=A.useMemo(function(){return typeof P=="function"?P:GU},[P]),X=A.useMemo(function(){return typeof k=="function"?k:GU},[k]),G=A.useRef(null),te=A.useRef(null),re=A.useReducer(S2e,mA),oe=dA(re,2),ie=oe[0],le=oe[1],ee=ie.isFocused,de=ie.isFileDialogActive,Fe=A.useRef(typeof window<"u"&&window.isSecureContext&&D&&r2e()),Pe=function(){!Fe.current&&de&&setTimeout(function(){if(te.current){var st=te.current.files;st.length||(le({type:"closeDialog"}),X())}},300)};A.useEffect(function(){return window.addEventListener("focus",Pe,!1),function(){window.removeEventListener("focus",Pe,!1)}},[te,de,X,Fe]);var Oe=A.useRef([]),Ie=function(st){G.current&&G.current.contains(st.target)||(st.preventDefault(),Oe.current=[])};A.useEffect(function(){return R&&(document.addEventListener("dragover",LU,!1),document.addEventListener("drop",Ie,!1)),function(){R&&(document.removeEventListener("dragover",LU),document.removeEventListener("drop",Ie))}},[G,R]),A.useEffect(function(){return!r&&M&&G.current&&G.current.focus(),function(){}},[G,M,r]);var De=A.useCallback(function(He){Y?Y(He):console.error(He)},[Y]),$e=A.useCallback(function(He){He.preventDefault(),He.persist(),we(He),Oe.current=[].concat(f2e(Oe.current),[He.target]),mE(He)&&Promise.resolve(i(He)).then(function(st){if(!(pE(He)&&!V)){var Zt=st.length,nn=Zt>0&&$xe({files:st,accept:$,minSize:o,maxSize:a,multiple:l,maxFiles:c,validator:J}),Ze=Zt>0&&!nn;le({isDragAccept:nn,isDragReject:Ze,isDragActive:!0,type:"setDraggedFiles"}),d&&d(He)}}).catch(function(st){return De(st)})},[i,d,De,V,$,o,a,l,c,J]),it=A.useCallback(function(He){He.preventDefault(),He.persist(),we(He);var st=mE(He);if(st&&He.dataTransfer)try{He.dataTransfer.dropEffect="copy"}catch{}return st&&g&&g(He),!1},[g,V]),mt=A.useCallback(function(He){He.preventDefault(),He.persist(),we(He);var st=Oe.current.filter(function(nn){return G.current&&G.current.contains(nn)}),Zt=st.indexOf(He.target);Zt!==-1&&st.splice(Zt,1),Oe.current=st,!(st.length>0)&&(le({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),mE(He)&&p&&p(He))},[G,p,V]),bt=A.useCallback(function(He,st){var Zt=[],nn=[];He.forEach(function(Ze){var rn=RU(Ze,$),Rn=dA(rn,2),lt=Rn[0],Ge=Rn[1],pt=NU(Ze,o,a),Bt=dA(pt,2),jn=Bt[0],Un=Bt[1],Mt=J?J(Ze):null;if(lt&&jn&&!Mt)Zt.push(Ze);else{var Lt=[Ge,Un];Mt&&(Lt=Lt.concat(Mt)),nn.push({file:Ze,errors:Lt.filter(function(vr){return vr})})}}),(!l&&Zt.length>1||l&&c>=1&&Zt.length>c)&&(Zt.forEach(function(Ze){nn.push({file:Ze,errors:[Jxe]})}),Zt.splice(0)),le({acceptedFiles:Zt,fileRejections:nn,type:"setFiles"}),S&&S(Zt,nn,st),nn.length>0&&C&&C(nn,st),Zt.length>0&&w&&w(Zt,st)},[le,l,$,o,a,c,S,w,C,J]),qe=A.useCallback(function(He){He.preventDefault(),He.persist(),we(He),Oe.current=[],mE(He)&&Promise.resolve(i(He)).then(function(st){pE(He)&&!V||bt(st,He)}).catch(function(st){return De(st)}),le({type:"reset"})},[i,bt,De,V]),Ce=A.useCallback(function(){if(Fe.current){le({type:"openDialog"}),fe();var He={multiple:l,types:K};window.showOpenFilePicker(He).then(function(st){return i(st)}).then(function(st){bt(st,null),le({type:"closeDialog"})}).catch(function(st){o2e(st)?(X(st),le({type:"closeDialog"})):s2e(st)?(Fe.current=!1,te.current?(te.current.value=null,te.current.click()):De(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):De(st)});return}te.current&&(le({type:"openDialog"}),fe(),te.current.value=null,te.current.click())},[le,fe,X,D,bt,De,K,l]),Nt=A.useCallback(function(He){!G.current||!G.current.isEqualNode(He.target)||(He.key===" "||He.key==="Enter"||He.keyCode===32||He.keyCode===13)&&(He.preventDefault(),Ce())},[G,Ce]),Ae=A.useCallback(function(){le({type:"focus"})},[]),xt=A.useCallback(function(){le({type:"blur"})},[]),ln=A.useCallback(function(){L||(n2e()?setTimeout(Ce,0):Ce())},[L,Ce]),Wt=function(st){return r?null:st},In=function(st){return z?null:Wt(st)},ar=function(st){return U?null:Wt(st)},we=function(st){V&&st.stopPropagation()},at=A.useMemo(function(){return function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},st=He.refKey,Zt=st===void 0?"ref":st,nn=He.role,Ze=He.onKeyDown,rn=He.onFocus,Rn=He.onBlur,lt=He.onClick,Ge=He.onDragEnter,pt=He.onDragOver,Bt=He.onDragLeave,jn=He.onDrop,Un=vE(He,c2e);return ca(ca(hA({onKeyDown:In(qd(Ze,Nt)),onFocus:In(qd(rn,Ae)),onBlur:In(qd(Rn,xt)),onClick:Wt(qd(lt,ln)),onDragEnter:ar(qd(Ge,$e)),onDragOver:ar(qd(pt,it)),onDragLeave:ar(qd(Bt,mt)),onDrop:ar(qd(jn,qe)),role:typeof nn=="string"&&nn!==""?nn:"presentation"},Zt,G),!r&&!z?{tabIndex:0}:{}),Un)}},[G,Nt,Ae,xt,ln,$e,it,mt,qe,z,U,r]),ot=A.useCallback(function(He){He.stopPropagation()},[]),yt=A.useMemo(function(){return function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},st=He.refKey,Zt=st===void 0?"ref":st,nn=He.onChange,Ze=He.onClick,rn=vE(He,d2e),Rn=hA({accept:$,multiple:l,type:"file",style:{display:"none"},onChange:Wt(qd(nn,qe)),onClick:Wt(qd(Ze,ot)),tabIndex:-1},Zt,te);return ca(ca({},Rn),rn)}},[te,n,l,qe,r]);return ca(ca({},ie),{},{isFocused:ee&&!r,getRootProps:at,getInputProps:yt,rootRef:G,inputRef:te,open:Wt(Ce)})}function S2e(e,t){switch(t.type){case"focus":return ca(ca({},e),{},{isFocused:!0});case"blur":return ca(ca({},e),{},{isFocused:!1});case"openDialog":return ca(ca({},mA),{},{isFileDialogActive:!0});case"closeDialog":return ca(ca({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ca(ca({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ca(ca({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ca({},mA);default:return e}}function GU(){}function vA(){return vA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vA.apply(this,arguments)}var WU=["shift","alt","meta","mod","ctrl"],x2e={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Vp(e){return(x2e[e]||e).trim().toLowerCase().replace("key","").replace("digit","").replace("numpad","").replace("arrow","")}function w2e(e){return WU.includes(e)}function gA(e,t){return t===void 0&&(t=","),typeof e=="string"?e.split(t):e}function yA(e,t){t===void 0&&(t="+");var n=e.toLocaleLowerCase().split(t).map(function(a){return Vp(a)}),r={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod")},i=n.filter(function(a){return!WU.includes(a)});return vA({},r,{keys:i})}var Hp=new Set;function C2e(e,t){t===void 0&&(t=",");var n=Array.isArray(e)?e:e.split(t);return n.every(function(r){return Hp.has(r.trim().toLowerCase())})}function qU(e){var t=Array.isArray(e)?e:[e];Hp.has("meta")&&Hp.forEach(function(n){return!w2e(n)&&Hp.delete(n.toLowerCase())}),t.forEach(function(n){return Hp.add(n.toLowerCase())})}function YU(e){var t=Array.isArray(e)?e:[e];e==="meta"?Hp.clear():t.forEach(function(n){return Hp.delete(n.toLowerCase())})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&qU([Vp(e.key),Vp(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&YU([Vp(e.key),Vp(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){Hp.clear()})})();function E2e(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function _2e(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function T2e(e){return KU(e,["input","textarea","select"])}function KU(e,t){var n=e.target;t===void 0&&(t=!1);var r=n&&n.tagName;return t instanceof Array?Boolean(r&&t&&t.some(function(i){return i.toLowerCase()===r.toLowerCase()})):Boolean(r&&t&&t===!0)}function k2e(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var P2e=function(t,n,r){r===void 0&&(r=!1);var i=n.alt,a=n.meta,o=n.mod,l=n.shift,c=n.ctrl,d=n.keys,p=t.key,g=t.code,S=t.ctrlKey,w=t.metaKey,C=t.shiftKey,k=t.altKey,P=Vp(g),D=p.toLowerCase();if(!r){if(i===!k&&D!=="alt"||l===!C&&D!=="shift")return!1;if(o){if(!w&&!S)return!1}else if(a===!w&&D!=="meta"||c===!S&&D!=="ctrl")return!1}return d&&d.length===1&&(d.includes(D)||d.includes(P))?!0:d?C2e(d):!d},A2e=A.createContext(void 0),O2e=function(){return A.useContext(A2e)};function XU(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&XU(e[r],t[r])},!0):e===t}var D2e=A.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),M2e=function(){return A.useContext(D2e)};function j2e(e){var t=A.useRef(void 0);return XU(t.current,e)||(t.current=e),t.current}var QU=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},I2e=typeof window<"u"?A.useLayoutEffect:A.useEffect;function At(e,t,n,r){var i=A.useRef(null),a=A.useRef(!1),o=n instanceof Array?r instanceof Array?void 0:r:n,l=n instanceof Array?n:r instanceof Array?r:void 0,c=A.useCallback(t,l??[]),d=A.useRef(c);l?d.current=c:d.current=t;var p=j2e(o),g=M2e(),S=g.enabledScopes,w=O2e();return I2e(function(){if(!((p==null?void 0:p.enabled)===!1||!k2e(S,p==null?void 0:p.scopes))){var C=function(M,R){var L;if(R===void 0&&(R=!1),!(T2e(M)&&!KU(M,p==null?void 0:p.enableOnFormTags))){if(i.current!==null&&document.activeElement!==i.current&&!i.current.contains(document.activeElement)){QU(M);return}(L=M.target)!=null&&L.isContentEditable&&!(p!=null&&p.enableOnContentEditable)||gA(e,p==null?void 0:p.splitKey).forEach(function(z){var U,V=yA(z,p==null?void 0:p.combinationKey);if(P2e(M,V,p==null?void 0:p.ignoreModifiers)||(U=V.keys)!=null&&U.includes("*")){if(R&&a.current)return;if(E2e(M,V,p==null?void 0:p.preventDefault),!_2e(M,V,p==null?void 0:p.enabled)){QU(M);return}d.current(M,V),R||(a.current=!0)}})}},k=function(M){M.key!==void 0&&(qU(Vp(M.code)),((p==null?void 0:p.keydown)===void 0&&(p==null?void 0:p.keyup)!==!0||p!=null&&p.keydown)&&C(M))},P=function(M){M.key!==void 0&&(YU(Vp(M.code)),a.current=!1,p!=null&&p.keyup&&C(M,!0))};return(i.current||(o==null?void 0:o.document)||document).addEventListener("keyup",P),(i.current||(o==null?void 0:o.document)||document).addEventListener("keydown",k),w&&gA(e,p==null?void 0:p.splitKey).forEach(function(D){return w.addHotkey(yA(D,p==null?void 0:p.combinationKey))}),function(){(i.current||(o==null?void 0:o.document)||document).removeEventListener("keyup",P),(i.current||(o==null?void 0:o.document)||document).removeEventListener("keydown",k),w&&gA(e,p==null?void 0:p.splitKey).forEach(function(D){return w.removeHotkey(yA(D,p==null?void 0:p.combinationKey))})}}},[e,p,S]),i}const R2e=e=>{const{isDragAccept:t,isDragReject:n,overlaySecondaryText:r,setIsHandlingUpload:i}=e;return At("esc",()=>{i(!1)}),v.jsx($n,{sx:{position:"absolute",top:0,insetInlineStart:0,width:"100vw",height:"100vh",zIndex:999,backdropFilter:"blur(20px)"},children:v.jsx(Re,{sx:{opacity:.4,width:"100%",height:"100%",flexDirection:"column",rowGap:4,alignItems:"center",justifyContent:"center",bg:"base.900",boxShadow:`inset 0 0 20rem 1rem var(--invokeai-colors-${t?"accent":"error"}-500)`},children:t?v.jsxs(Vu,{size:"lg",children:["Upload Image",r]}):v.jsxs(v.Fragment,{children:[v.jsx(Vu,{size:"lg",children:"Invalid Upload"}),v.jsx(Vu,{size:"md",children:"Must be single JPEG or PNG image"})]})})})},N2e=e=>{const{children:t}=e,n=et(),r=be(ki),i=nS({}),{t:a}=tt(),[o,l]=A.useState(!1),{setOpenUploader:c}=lA(),d=A.useCallback(R=>{l(!0);const L=R.errors.reduce((z,U)=>`${z}
|
||
${U.message}`,"");i({title:a("toast.uploadFailed"),description:L,status:"error",isClosable:!0})},[a,i]),p=A.useCallback(async R=>{n(CU({imageFile:R}))},[n]),g=A.useCallback((R,L)=>{L.forEach(z=>{d(z)}),R.forEach(z=>{p(z)})},[p,d]),{getRootProps:S,getInputProps:w,isDragAccept:C,isDragReject:k,isDragActive:P,open:D}=HU({accept:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg",".png"]},noClick:!0,onDrop:g,onDragOver:()=>l(!0),maxFiles:1});c(D),A.useEffect(()=>{const R=L=>{var Y;const z=(Y=L.clipboardData)==null?void 0:Y.items;if(!z)return;const U=[];for(const J of z)J.kind==="file"&&["image/png","image/jpg"].includes(J.type)&&U.push(J);if(!U.length)return;if(L.stopImmediatePropagation(),U.length>1){i({description:a("toast.uploadFailedMultipleImagesDesc"),status:"error",isClosable:!0});return}const V=U[0].getAsFile();if(!V){i({description:a("toast.uploadFailedUnableToLoadDesc"),status:"error",isClosable:!0});return}n(CU({imageFile:V}))};return document.addEventListener("paste",R),()=>{document.removeEventListener("paste",R)}},[a,n,i,r]);const M=["img2img","unifiedCanvas"].includes(r)?` to ${String(a(`common.${r}`))}`:"";return v.jsx(sA.Provider,{value:D,children:v.jsxs($n,{...S({style:{}}),onKeyDown:R=>{R.key},children:[v.jsx("input",{...w()}),t,P&&o&&v.jsx(R2e,{isDragAccept:C,isDragReject:k,overlaySecondaryText:M,setIsHandlingUpload:l})]})})},L2e=A.memo(N2e);var z2e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),$a=globalThis&&globalThis.__assign||function(){return $a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$a.apply(this,arguments)},ZU={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},JU={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},gE={width:"20px",height:"20px",position:"absolute"},B2e={top:$a($a({},ZU),{top:"-5px"}),right:$a($a({},JU),{left:void 0,right:"-5px"}),bottom:$a($a({},ZU),{top:void 0,bottom:"-5px"}),left:$a($a({},JU),{left:"-5px"}),topRight:$a($a({},gE),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:$a($a({},gE),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:$a($a({},gE),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:$a($a({},gE),{left:"-10px",top:"-10px",cursor:"nw-resize"})},F2e=function(e){z2e(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.onMouseDown=function(r){n.props.onResizeStart(r,n.props.direction)},n.onTouchStart=function(r){n.props.onResizeStart(r,n.props.direction)},n}return t.prototype.render=function(){return vt.createElement("div",{className:this.props.className||"",style:$a($a({position:"absolute",userSelect:"none"},B2e[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(vt.PureComponent),U2e=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yd=globalThis&&globalThis.__assign||function(){return Yd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Yd.apply(this,arguments)},V2e={width:"auto",height:"auto"},yE=function(e,t,n){return Math.max(Math.min(e,n),t)},$U=function(e,t){return Math.round(e/t)*t},uy=function(e,t){return new RegExp(e,"i").test(t)},bE=function(e){return Boolean(e.touches&&e.touches.length)},H2e=function(e){return Boolean((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},eV=function(e,t,n){n===void 0&&(n=0);var r=t.reduce(function(a,o,l){return Math.abs(o-e)<Math.abs(t[a]-e)?l:a},0),i=Math.abs(t[r]-e);return n===0||i<n?t[r]:e},bA=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},SE=function(e,t,n,r){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return n*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return r*i}}return e},G2e=function(e,t,n,r,i,a,o){return r=SE(r,e.width,t,n),i=SE(i,e.height,t,n),a=SE(a,e.width,t,n),o=SE(o,e.height,t,n),{maxWidth:typeof r>"u"?void 0:Number(r),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof o>"u"?void 0:Number(o)}},W2e=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],tV="__resizable_base__",nV=function(e){U2e(t,e);function t(n){var r=e.call(this,n)||this;return r.ratio=1,r.resizable=null,r.parentLeft=0,r.parentTop=0,r.resizableLeft=0,r.resizableRight=0,r.resizableTop=0,r.resizableBottom=0,r.targetLeft=0,r.targetTop=0,r.appendBase=function(){if(!r.resizable||!r.window)return null;var i=r.parentNode;if(!i)return null;var a=r.window.document.createElement("div");return a.style.width="100%",a.style.height="100%",a.style.position="absolute",a.style.transform="scale(0, 0)",a.style.left="0",a.style.flex="0 0 100%",a.classList?a.classList.add(tV):a.className+=tV,i.appendChild(a),a},r.removeBase=function(i){var a=r.parentNode;a&&a.removeChild(i)},r.ref=function(i){i&&(r.resizable=i)},r.state={isResizing:!1,width:typeof(r.propsSize&&r.propsSize.width)>"u"?"auto":r.propsSize&&r.propsSize.width,height:typeof(r.propsSize&&r.propsSize.height)>"u"?"auto":r.propsSize&&r.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},r.onResizeStart=r.onResizeStart.bind(r),r.onMouseMove=r.onMouseMove.bind(r),r.onMouseUp=r.onMouseUp.bind(r),r}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||V2e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var n=0,r=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,a=this.resizable.offsetHeight,o=this.resizable.style.position;o!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,r=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,this.resizable.style.position=o}return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var n=this,r=this.props.size,i=function(l){if(typeof n.state[l]>"u"||n.state[l]==="auto")return"auto";if(n.propsSize&&n.propsSize[l]&&n.propsSize[l].toString().endsWith("%")){if(n.state[l].toString().endsWith("%"))return n.state[l].toString();var c=n.getParentSize(),d=Number(n.state[l].toString().replace("px","")),p=d/c[l]*100;return p+"%"}return bA(n.state[l])},a=r&&typeof r.width<"u"&&!this.state.isResizing?bA(r.width):i("width"),o=r&&typeof r.height<"u"&&!this.state.isResizing?bA(r.height):i("height");return{width:a,height:o}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var r=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(r=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var a={width:n.offsetWidth,height:n.offsetHeight};return r&&(this.parentNode.style.flexWrap=i),this.removeBase(n),a},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(n,r){var i=this.propsSize&&this.propsSize[r];return this.state[r]==="auto"&&this.state.original[r]===n&&(typeof i>"u"||i==="auto")?"auto":n},t.prototype.calculateNewMaxFromBoundary=function(n,r){var i=this.props.boundsByDirection,a=this.state.direction,o=i&&uy("left",a),l=i&&uy("top",a),c,d;if(this.props.bounds==="parent"){var p=this.parentNode;p&&(c=o?this.resizableRight-this.parentLeft:p.offsetWidth+(this.parentLeft-this.resizableLeft),d=l?this.resizableBottom-this.parentTop:p.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(c=o?this.resizableRight:this.window.innerWidth-this.resizableLeft,d=l?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(c=o?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),d=l?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return c&&Number.isFinite(c)&&(n=n&&n<c?n:c),d&&Number.isFinite(d)&&(r=r&&r<d?r:d),{maxWidth:n,maxHeight:r}},t.prototype.calculateNewSizeFromDirection=function(n,r){var i=this.props.scale||1,a=this.props.resizeRatio||1,o=this.state,l=o.direction,c=o.original,d=this.props,p=d.lockAspectRatio,g=d.lockAspectRatioExtraHeight,S=d.lockAspectRatioExtraWidth,w=c.width,C=c.height,k=g||0,P=S||0;return uy("right",l)&&(w=c.width+(n-c.x)*a/i,p&&(C=(w-P)/this.ratio+k)),uy("left",l)&&(w=c.width-(n-c.x)*a/i,p&&(C=(w-P)/this.ratio+k)),uy("bottom",l)&&(C=c.height+(r-c.y)*a/i,p&&(w=(C-k)*this.ratio+P)),uy("top",l)&&(C=c.height-(r-c.y)*a/i,p&&(w=(C-k)*this.ratio+P)),{newWidth:w,newHeight:C}},t.prototype.calculateNewSizeFromAspectRatio=function(n,r,i,a){var o=this.props,l=o.lockAspectRatio,c=o.lockAspectRatioExtraHeight,d=o.lockAspectRatioExtraWidth,p=typeof a.width>"u"?10:a.width,g=typeof i.width>"u"||i.width<0?n:i.width,S=typeof a.height>"u"?10:a.height,w=typeof i.height>"u"||i.height<0?r:i.height,C=c||0,k=d||0;if(l){var P=(S-C)*this.ratio+k,D=(w-C)*this.ratio+k,M=(p-k)/this.ratio+C,R=(g-k)/this.ratio+C,L=Math.max(p,P),z=Math.min(g,D),U=Math.max(S,M),V=Math.min(w,R);n=yE(n,L,z),r=yE(r,U,V)}else n=yE(n,p,g),r=yE(r,S,w);return{newWidth:n,newHeight:r}},t.prototype.setBoundingClientRect=function(){if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var r=n.getBoundingClientRect();this.parentLeft=r.left,this.parentTop=r.top}}if(this.props.bounds&&typeof this.props.bounds!="string"){var i=this.props.bounds.getBoundingClientRect();this.targetLeft=i.left,this.targetTop=i.top}if(this.resizable){var a=this.resizable.getBoundingClientRect(),o=a.left,l=a.top,c=a.right,d=a.bottom;this.resizableLeft=o,this.resizableRight=c,this.resizableTop=l,this.resizableBottom=d}},t.prototype.onResizeStart=function(n,r){if(!(!this.resizable||!this.window)){var i=0,a=0;if(n.nativeEvent&&H2e(n.nativeEvent)?(i=n.nativeEvent.clientX,a=n.nativeEvent.clientY):n.nativeEvent&&bE(n.nativeEvent)&&(i=n.nativeEvent.touches[0].clientX,a=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var o=this.props.onResizeStart(n,r,this.resizable);if(o===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var l,c=this.window.getComputedStyle(this.resizable);if(c.flexBasis!=="auto"){var d=this.parentNode;if(d){var p=this.window.getComputedStyle(d).flexDirection;this.flexDir=p.startsWith("row")?"row":"column",l=c.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var g={original:{x:i,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Yd(Yd({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:r,flexBasis:l};this.setState(g)}},t.prototype.onMouseMove=function(n){var r=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&bE(n))try{n.preventDefault(),n.stopPropagation()}catch{}var i=this.props,a=i.maxWidth,o=i.maxHeight,l=i.minWidth,c=i.minHeight,d=bE(n)?n.touches[0].clientX:n.clientX,p=bE(n)?n.touches[0].clientY:n.clientY,g=this.state,S=g.direction,w=g.original,C=g.width,k=g.height,P=this.getParentSize(),D=G2e(P,this.window.innerWidth,this.window.innerHeight,a,o,l,c);a=D.maxWidth,o=D.maxHeight,l=D.minWidth,c=D.minHeight;var M=this.calculateNewSizeFromDirection(d,p),R=M.newHeight,L=M.newWidth,z=this.calculateNewMaxFromBoundary(a,o);this.props.snap&&this.props.snap.x&&(L=eV(L,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(R=eV(R,this.props.snap.y,this.props.snapGap));var U=this.calculateNewSizeFromAspectRatio(L,R,{width:z.maxWidth,height:z.maxHeight},{width:l,height:c});if(L=U.newWidth,R=U.newHeight,this.props.grid){var V=$U(L,this.props.grid[0]),Y=$U(R,this.props.grid[1]),J=this.props.snapGap||0;L=J===0||Math.abs(V-L)<=J?V:L,R=J===0||Math.abs(Y-R)<=J?Y:R}var $={width:L-w.width,height:R-w.height};if(C&&typeof C=="string"){if(C.endsWith("%")){var K=L/P.width*100;L=K+"%"}else if(C.endsWith("vw")){var fe=L/this.window.innerWidth*100;L=fe+"vw"}else if(C.endsWith("vh")){var X=L/this.window.innerHeight*100;L=X+"vh"}}if(k&&typeof k=="string"){if(k.endsWith("%")){var K=R/P.height*100;R=K+"%"}else if(k.endsWith("vw")){var fe=R/this.window.innerWidth*100;R=fe+"vw"}else if(k.endsWith("vh")){var X=R/this.window.innerHeight*100;R=X+"vh"}}var G={width:this.createSizeForCssProperty(L,"width"),height:this.createSizeForCssProperty(R,"height")};this.flexDir==="row"?G.flexBasis=G.width:this.flexDir==="column"&&(G.flexBasis=G.height),v2.flushSync(function(){r.setState(G)}),this.props.onResize&&this.props.onResize(n,S,this.resizable,$)}},t.prototype.onMouseUp=function(n){var r=this.state,i=r.isResizing,a=r.direction,o=r.original;if(!(!i||!this.resizable)){var l={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(n,a,this.resizable,l),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Yd(Yd({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(n){this.setState({width:n.width,height:n.height})},t.prototype.renderResizer=function(){var n=this,r=this.props,i=r.enable,a=r.handleStyles,o=r.handleClasses,l=r.handleWrapperStyle,c=r.handleWrapperClass,d=r.handleComponent;if(!i)return null;var p=Object.keys(i).map(function(g){return i[g]!==!1?vt.createElement(F2e,{key:g,direction:g,onResizeStart:n.onResizeStart,replaceStyles:a&&a[g],className:o&&o[g]},d&&d[g]?d[g]:null):null});return vt.createElement("div",{className:c,style:l},p)},t.prototype.render=function(){var n=this,r=Object.keys(this.props).reduce(function(o,l){return W2e.indexOf(l)!==-1||(o[l]=n.props[l]),o},{}),i=Yd(Yd(Yd({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return vt.createElement(a,Yd({ref:this.ref,style:i,className:this.props.className},r),this.state.isResizing&&vt.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(vt.PureComponent);const Li=e=>e.system,q2e=e=>e.system.toastQueue,rV=Ut(Li,e=>{const{model_list:t}=e,n=Qe.reduce(t,(r,i,a)=>(i.status==="active"&&(r=a),r),"");return{...t[n],name:n}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),Y2e=Ut(Li,e=>{const{model_list:t}=e;return Qe.pickBy(t,(r,i)=>{if(r.format==="diffusers")return{name:i,...r}})},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),K2e=Ut(Li,e=>e.log,{memoizeOptions:{resultEqualityCheck:(e,t)=>e.length===t.length}}),X2e=Ut(Li,e=>({shouldShowLogViewer:e.shouldShowLogViewer,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),Q2e=()=>{const e=et(),{t}=tt(),n=be(K2e),{shouldShowLogViewer:r,hasError:i,wasErrorSeen:a}=be(X2e),[o,l]=A.useState(!0),c=A.useRef(null);A.useLayoutEffect(()=>{c.current!==null&&o&&(c.current.scrollTop=c.current.scrollHeight)},[o,n,r]);const d=()=>{e(NI()),e(Ik(!r))};At("`",()=>{e(Ik(!r))},[r]),At("esc",()=>{e(Ik(!1))});const p=()=>{c.current&&o&&c.current.scrollTop<c.current.scrollHeight-c.current.clientHeight&&l(!1)};return v.jsxs(v.Fragment,{children:[r&&v.jsx(nV,{defaultSize:{width:"100%",height:200},style:{display:"flex",position:"fixed",insetInlineStart:0,bottom:0,zIndex:9999},maxHeight:"90vh",children:v.jsx(Re,{sx:{flexDirection:"column",width:"100vw",overflow:"auto",direction:"column",fontFamily:"monospace",pt:0,pr:4,pb:4,pl:12,borderTopWidth:5,bg:"base.850",borderColor:"base.700"},ref:c,onScroll:p,children:n.map((g,S)=>{const{timestamp:w,message:C,level:k}=g,P=k==="info"?"base":k;return v.jsxs(Re,{sx:{gap:2,color:`${P}.300`},children:[v.jsxs(Gt,{fontWeight:"600",children:[w,":"]}),v.jsx(Gt,{wordBreak:"break-all",children:C})]},S)})})}),r&&v.jsx(oo,{hasArrow:!0,label:o?"Autoscroll On":"Autoscroll Off",children:v.jsx(_t,{size:"sm","aria-label":t("accessibility.toggleAutoscroll"),icon:v.jsx(JSe,{}),onClick:()=>l(!o),isChecked:o,sx:{position:"fixed",insetInlineStart:2,bottom:12,zIndex:"10000"}})}),v.jsx(oo,{hasArrow:!0,label:r?"Hide Console":"Show Console",children:v.jsx(_t,{size:"sm","aria-label":t("accessibility.toggleLogViewer"),icon:r?v.jsx(mxe,{}):v.jsx(hU,{}),onClick:d,sx:{position:"fixed",insetInlineStart:2,bottom:2,zIndex:"10000"},colorScheme:i||!a?"error":"base"})})]})},Z2e="0px",iV="calc(70px + 1rem)",xE=1.5,J2e=`calc(100vw - ${Z2e})`,$2e=`calc(100vh - ${xE*4}px)`,ewe=`calc(100vh - ${iV})`,twe=`calc(100vh - (${iV} + 4.4rem))`,aV=384,nwe=Ut(Li,e=>({isProcessing:e.isProcessing,currentStep:e.currentStep,totalSteps:e.totalSteps,currentStatusHasSteps:e.currentStatusHasSteps}),{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),rwe=()=>{const{t:e}=tt(),{isProcessing:t,currentStep:n,totalSteps:r,currentStatusHasSteps:i}=be(nwe),a=n?Math.round(n*100/r):0;return v.jsx(zF,{value:a,"aria-label":e("accessibility.invokeProgressBar"),isIndeterminate:t&&!i,height:xE,zIndex:99})};function iwe(e){const{title:t,hotkey:n,description:r}=e;return v.jsxs(zc,{sx:{gridTemplateColumns:"auto max-content",justifyContent:"space-between",alignItems:"center"},children:[v.jsxs(zc,{children:[v.jsx(Gt,{fontWeight:600,children:t}),r&&v.jsx(Gt,{sx:{fontSize:"sm"},variant:"subtext",children:r})]}),v.jsx($n,{sx:{fontSize:"sm",fontWeight:600,px:2,py:1},children:n})]})}function awe({children:e}){const{isOpen:t,onOpen:n,onClose:r}=Np(),{t:i}=tt(),a=[{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.toggleOptions.title"),desc:i("hotkeys.toggleOptions.desc"),hotkey:"O"},{title:i("hotkeys.pinOptions.title"),desc:i("hotkeys.pinOptions.desc"),hotkey:"Shift+O"},{title:i("hotkeys.toggleViewer.title"),desc:i("hotkeys.toggleViewer.desc"),hotkey:"Z"},{title:i("hotkeys.toggleGallery.title"),desc:i("hotkeys.toggleGallery.desc"),hotkey:"G"},{title:i("hotkeys.maximizeWorkSpace.title"),desc:i("hotkeys.maximizeWorkSpace.desc"),hotkey:"F"},{title:i("hotkeys.changeTabs.title"),desc:i("hotkeys.changeTabs.desc"),hotkey:"1-5"},{title:i("hotkeys.consoleToggle.title"),desc:i("hotkeys.consoleToggle.desc"),hotkey:"`"}],o=[{title:i("hotkeys.setPrompt.title"),desc:i("hotkeys.setPrompt.desc"),hotkey:"P"},{title:i("hotkeys.setSeed.title"),desc:i("hotkeys.setSeed.desc"),hotkey:"S"},{title:i("hotkeys.setParameters.title"),desc:i("hotkeys.setParameters.desc"),hotkey:"A"},{title:i("hotkeys.restoreFaces.title"),desc:i("hotkeys.restoreFaces.desc"),hotkey:"Shift+R"},{title:i("hotkeys.upscale.title"),desc:i("hotkeys.upscale.desc"),hotkey:"Shift+U"},{title:i("hotkeys.showInfo.title"),desc:i("hotkeys.showInfo.desc"),hotkey:"I"},{title:i("hotkeys.sendToImageToImage.title"),desc:i("hotkeys.sendToImageToImage.desc"),hotkey:"Shift+I"},{title:i("hotkeys.deleteImage.title"),desc:i("hotkeys.deleteImage.desc"),hotkey:"Del"},{title:i("hotkeys.closePanels.title"),desc:i("hotkeys.closePanels.desc"),hotkey:"Esc"}],l=[{title:i("hotkeys.previousImage.title"),desc:i("hotkeys.previousImage.desc"),hotkey:"Arrow Left"},{title:i("hotkeys.nextImage.title"),desc:i("hotkeys.nextImage.desc"),hotkey:"Arrow Right"},{title:i("hotkeys.toggleGalleryPin.title"),desc:i("hotkeys.toggleGalleryPin.desc"),hotkey:"Shift+G"},{title:i("hotkeys.increaseGalleryThumbSize.title"),desc:i("hotkeys.increaseGalleryThumbSize.desc"),hotkey:"Shift+Up"},{title:i("hotkeys.decreaseGalleryThumbSize.title"),desc:i("hotkeys.decreaseGalleryThumbSize.desc"),hotkey:"Shift+Down"}],c=[{title:i("hotkeys.selectBrush.title"),desc:i("hotkeys.selectBrush.desc"),hotkey:"B"},{title:i("hotkeys.selectEraser.title"),desc:i("hotkeys.selectEraser.desc"),hotkey:"E"},{title:i("hotkeys.decreaseBrushSize.title"),desc:i("hotkeys.decreaseBrushSize.desc"),hotkey:"["},{title:i("hotkeys.increaseBrushSize.title"),desc:i("hotkeys.increaseBrushSize.desc"),hotkey:"]"},{title:i("hotkeys.decreaseBrushOpacity.title"),desc:i("hotkeys.decreaseBrushOpacity.desc"),hotkey:"Shift + ["},{title:i("hotkeys.increaseBrushOpacity.title"),desc:i("hotkeys.increaseBrushOpacity.desc"),hotkey:"Shift + ]"},{title:i("hotkeys.moveTool.title"),desc:i("hotkeys.moveTool.desc"),hotkey:"V"},{title:i("hotkeys.fillBoundingBox.title"),desc:i("hotkeys.fillBoundingBox.desc"),hotkey:"Shift + F"},{title:i("hotkeys.eraseBoundingBox.title"),desc:i("hotkeys.eraseBoundingBox.desc"),hotkey:"Delete / Backspace"},{title:i("hotkeys.colorPicker.title"),desc:i("hotkeys.colorPicker.desc"),hotkey:"C"},{title:i("hotkeys.toggleSnap.title"),desc:i("hotkeys.toggleSnap.desc"),hotkey:"N"},{title:i("hotkeys.quickToggleMove.title"),desc:i("hotkeys.quickToggleMove.desc"),hotkey:"Hold Space"},{title:i("hotkeys.toggleLayer.title"),desc:i("hotkeys.toggleLayer.desc"),hotkey:"Q"},{title:i("hotkeys.clearMask.title"),desc:i("hotkeys.clearMask.desc"),hotkey:"Shift+C"},{title:i("hotkeys.hideMask.title"),desc:i("hotkeys.hideMask.desc"),hotkey:"H"},{title:i("hotkeys.showHideBoundingBox.title"),desc:i("hotkeys.showHideBoundingBox.desc"),hotkey:"Shift+H"},{title:i("hotkeys.mergeVisible.title"),desc:i("hotkeys.mergeVisible.desc"),hotkey:"Shift+M"},{title:i("hotkeys.saveToGallery.title"),desc:i("hotkeys.saveToGallery.desc"),hotkey:"Shift+S"},{title:i("hotkeys.copyToClipboard.title"),desc:i("hotkeys.copyToClipboard.desc"),hotkey:"Ctrl+C"},{title:i("hotkeys.downloadImage.title"),desc:i("hotkeys.downloadImage.desc"),hotkey:"Shift+D"},{title:i("hotkeys.undoStroke.title"),desc:i("hotkeys.undoStroke.desc"),hotkey:"Ctrl+Z"},{title:i("hotkeys.redoStroke.title"),desc:i("hotkeys.redoStroke.desc"),hotkey:"Ctrl+Shift+Z, Ctrl+Y"},{title:i("hotkeys.resetView.title"),desc:i("hotkeys.resetView.desc"),hotkey:"R"},{title:i("hotkeys.previousStagingImage.title"),desc:i("hotkeys.previousStagingImage.desc"),hotkey:"Arrow Left"},{title:i("hotkeys.nextStagingImage.title"),desc:i("hotkeys.nextStagingImage.desc"),hotkey:"Arrow Right"},{title:i("hotkeys.acceptStagingImage.title"),desc:i("hotkeys.acceptStagingImage.desc"),hotkey:"Enter"}],d=p=>v.jsx(Re,{flexDir:"column",gap:4,children:p.map((g,S)=>v.jsxs(Re,{flexDir:"column",px:2,gap:4,children:[v.jsx(iwe,{title:g.title,description:g.desc,hotkey:g.hotkey}),S<p.length-1&&v.jsx(BB,{})]},S))});return v.jsxs(v.Fragment,{children:[A.cloneElement(e,{onClick:n}),v.jsxs(Bp,{isOpen:t,onClose:r,children:[v.jsx(hh,{}),v.jsxs(Fp,{children:[v.jsx(fh,{children:i("hotkeys.keyboardShortcuts")}),v.jsx(ay,{}),v.jsx(ph,{children:v.jsx(T5,{allowMultiple:!0,children:v.jsxs(Re,{flexDir:"column",gap:2,children:[v.jsxs(F0,{children:[v.jsx(z0,{children:v.jsxs(Re,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[v.jsx("h2",{children:i("hotkeys.appHotkeys")}),v.jsx(B0,{})]})}),v.jsx(U0,{children:d(a)})]}),v.jsxs(F0,{children:[v.jsx(z0,{children:v.jsxs(Re,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[v.jsx("h2",{children:i("hotkeys.generalHotkeys")}),v.jsx(B0,{})]})}),v.jsx(U0,{children:d(o)})]}),v.jsxs(F0,{children:[v.jsx(z0,{children:v.jsxs(Re,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[v.jsx("h2",{children:i("hotkeys.galleryHotkeys")}),v.jsx(B0,{})]})}),v.jsx(U0,{children:d(l)})]}),v.jsxs(F0,{children:[v.jsx(z0,{children:v.jsxs(Re,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[v.jsx("h2",{children:i("hotkeys.unifiedCanvasHotkeys")}),v.jsx(B0,{})]})}),v.jsx(U0,{children:d(c)})]})]})})}),v.jsx(dh,{})]})]})]})}const owe=e=>{const{label:t="",isDisabled:n=!1,isInvalid:r,formControlProps:i,...a}=e;return v.jsxs(Or,{isInvalid:r,isDisabled:n,...i,children:[t!==""&&v.jsx(Qr,{children:t}),v.jsx(u3,{...a})]})},xi=A.memo(owe),oV=/^-?(0\.)?\.?$/,swe=e=>{const{label:t,isDisabled:n=!1,showStepper:r=!0,isInvalid:i,value:a,onChange:o,min:l,max:c,isInteger:d=!0,formControlProps:p,formLabelProps:g,numberInputFieldProps:S,numberInputStepperProps:w,tooltipProps:C,...k}=e,[P,D]=A.useState(String(a));A.useEffect(()=>{!P.match(oV)&&a!==Number(P)&&D(String(a))},[a,P]);const M=L=>{D(L),L.match(oV)||o(d?Math.floor(Number(L)):Number(L))},R=L=>{const z=Qe.clamp(d?Math.floor(Number(L.target.value)):Number(L.target.value),l,c);D(String(z)),o(z)};return v.jsx(oo,{...C,children:v.jsxs(Or,{isDisabled:n,isInvalid:i,...p,children:[t&&v.jsx(Qr,{...g,children:t}),v.jsxs(L3,{value:P,min:l,max:c,keepWithinRange:!0,clampValueOnBlur:!1,onChange:M,onBlur:R,...k,children:[v.jsx(B3,{...S}),r&&v.jsxs(z3,{children:[v.jsx(U3,{...w}),v.jsx(F3,{...w})]})]})]})})},mh=A.memo(swe);var sV=Array.isArray,lV=Object.keys,lwe=Object.prototype.hasOwnProperty,uwe=typeof Element<"u";function SA(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=sV(e),r=sV(t),i,a,o;if(n&&r){if(a=e.length,a!=t.length)return!1;for(i=a;i--!==0;)if(!SA(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var l=e instanceof Date,c=t instanceof Date;if(l!=c)return!1;if(l&&c)return e.getTime()==t.getTime();var d=e instanceof RegExp,p=t instanceof RegExp;if(d!=p)return!1;if(d&&p)return e.toString()==t.toString();var g=lV(e);if(a=g.length,a!==lV(t).length)return!1;for(i=a;i--!==0;)if(!lwe.call(t,g[i]))return!1;if(uwe&&e instanceof Element&&t instanceof Element)return e===t;for(i=a;i--!==0;)if(o=g[i],!(o==="_owner"&&e.$$typeof)&&!SA(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var Gp=function(t,n){try{return SA(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}},cwe=function(t){return dwe(t)&&!fwe(t)};function dwe(e){return!!e&&typeof e=="object"}function fwe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||mwe(e)}var hwe=typeof Symbol=="function"&&Symbol.for,pwe=hwe?Symbol.for("react.element"):60103;function mwe(e){return e.$$typeof===pwe}function vwe(e){return Array.isArray(e)?[]:{}}function wE(e,t){return t.clone!==!1&&t.isMergeableObject(e)?CS(vwe(e),e,t):e}function gwe(e,t,n){return e.concat(t).map(function(r){return wE(r,n)})}function ywe(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){r[i]=wE(e[i],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=wE(t[i],n):r[i]=CS(e[i],t[i],n)}),r}function CS(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||gwe,n.isMergeableObject=n.isMergeableObject||cwe;var r=Array.isArray(t),i=Array.isArray(e),a=r===i;return a?r?n.arrayMerge(e,t,n):ywe(e,t,n):wE(t,n)}CS.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return CS(r,i,n)},{})};var xA=CS,bwe=typeof global=="object"&&global&&global.Object===Object&&global;const uV=bwe;var Swe=typeof self=="object"&&self&&self.Object===Object&&self,xwe=uV||Swe||Function("return this")();const Kd=xwe;var wwe=Kd.Symbol;const Wp=wwe;var cV=Object.prototype,Cwe=cV.hasOwnProperty,Ewe=cV.toString,ES=Wp?Wp.toStringTag:void 0;function _we(e){var t=Cwe.call(e,ES),n=e[ES];try{e[ES]=void 0;var r=!0}catch{}var i=Ewe.call(e);return r&&(t?e[ES]=n:delete e[ES]),i}var Twe=Object.prototype,kwe=Twe.toString;function Pwe(e){return kwe.call(e)}var Awe="[object Null]",Owe="[object Undefined]",dV=Wp?Wp.toStringTag:void 0;function Iv(e){return e==null?e===void 0?Owe:Awe:dV&&dV in Object(e)?_we(e):Pwe(e)}function fV(e,t){return function(n){return e(t(n))}}var Dwe=fV(Object.getPrototypeOf,Object);const wA=Dwe;function Rv(e){return e!=null&&typeof e=="object"}var Mwe="[object Object]",jwe=Function.prototype,Iwe=Object.prototype,hV=jwe.toString,Rwe=Iwe.hasOwnProperty,Nwe=hV.call(Object);function pV(e){if(!Rv(e)||Iv(e)!=Mwe)return!1;var t=wA(e);if(t===null)return!0;var n=Rwe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&hV.call(n)==Nwe}function Lwe(){this.__data__=[],this.size=0}function mV(e,t){return e===t||e!==e&&t!==t}function CE(e,t){for(var n=e.length;n--;)if(mV(e[n][0],t))return n;return-1}var zwe=Array.prototype,Bwe=zwe.splice;function Fwe(e){var t=this.__data__,n=CE(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Bwe.call(t,n,1),--this.size,!0}function Uwe(e){var t=this.__data__,n=CE(t,e);return n<0?void 0:t[n][1]}function Vwe(e){return CE(this.__data__,e)>-1}function Hwe(e,t){var n=this.__data__,r=CE(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function vh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vh.prototype.clear=Lwe,vh.prototype.delete=Fwe,vh.prototype.get=Uwe,vh.prototype.has=Vwe,vh.prototype.set=Hwe;function Gwe(){this.__data__=new vh,this.size=0}function Wwe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function qwe(e){return this.__data__.get(e)}function Ywe(e){return this.__data__.has(e)}function _S(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Kwe="[object AsyncFunction]",Xwe="[object Function]",Qwe="[object GeneratorFunction]",Zwe="[object Proxy]";function vV(e){if(!_S(e))return!1;var t=Iv(e);return t==Xwe||t==Qwe||t==Kwe||t==Zwe}var Jwe=Kd["__core-js_shared__"];const CA=Jwe;var gV=function(){var e=/[^.]+$/.exec(CA&&CA.keys&&CA.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function $we(e){return!!gV&&gV in e}var eCe=Function.prototype,tCe=eCe.toString;function Nv(e){if(e!=null){try{return tCe.call(e)}catch{}try{return e+""}catch{}}return""}var nCe=/[\\^$.*+?()[\]{}|]/g,rCe=/^\[object .+?Constructor\]$/,iCe=Function.prototype,aCe=Object.prototype,oCe=iCe.toString,sCe=aCe.hasOwnProperty,lCe=RegExp("^"+oCe.call(sCe).replace(nCe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uCe(e){if(!_S(e)||$we(e))return!1;var t=vV(e)?lCe:rCe;return t.test(Nv(e))}function cCe(e,t){return e==null?void 0:e[t]}function Lv(e,t){var n=cCe(e,t);return uCe(n)?n:void 0}var dCe=Lv(Kd,"Map");const TS=dCe;var fCe=Lv(Object,"create");const kS=fCe;function hCe(){this.__data__=kS?kS(null):{},this.size=0}function pCe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mCe="__lodash_hash_undefined__",vCe=Object.prototype,gCe=vCe.hasOwnProperty;function yCe(e){var t=this.__data__;if(kS){var n=t[e];return n===mCe?void 0:n}return gCe.call(t,e)?t[e]:void 0}var bCe=Object.prototype,SCe=bCe.hasOwnProperty;function xCe(e){var t=this.__data__;return kS?t[e]!==void 0:SCe.call(t,e)}var wCe="__lodash_hash_undefined__";function CCe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kS&&t===void 0?wCe:t,this}function zv(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zv.prototype.clear=hCe,zv.prototype.delete=pCe,zv.prototype.get=yCe,zv.prototype.has=xCe,zv.prototype.set=CCe;function ECe(){this.size=0,this.__data__={hash:new zv,map:new(TS||vh),string:new zv}}function _Ce(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function EE(e,t){var n=e.__data__;return _Ce(t)?n[typeof t=="string"?"string":"hash"]:n.map}function TCe(e){var t=EE(this,e).delete(e);return this.size-=t?1:0,t}function kCe(e){return EE(this,e).get(e)}function PCe(e){return EE(this,e).has(e)}function ACe(e,t){var n=EE(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function qp(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qp.prototype.clear=ECe,qp.prototype.delete=TCe,qp.prototype.get=kCe,qp.prototype.has=PCe,qp.prototype.set=ACe;var OCe=200;function DCe(e,t){var n=this.__data__;if(n instanceof vh){var r=n.__data__;if(!TS||r.length<OCe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qp(r)}return n.set(e,t),this.size=n.size,this}function cy(e){var t=this.__data__=new vh(e);this.size=t.size}cy.prototype.clear=Gwe,cy.prototype.delete=Wwe,cy.prototype.get=qwe,cy.prototype.has=Ywe,cy.prototype.set=DCe;function MCe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var jCe=function(){try{var e=Lv(Object,"defineProperty");return e({},"",{}),e}catch{}}();const yV=jCe;function bV(e,t,n){t=="__proto__"&&yV?yV(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var ICe=Object.prototype,RCe=ICe.hasOwnProperty;function SV(e,t,n){var r=e[t];(!(RCe.call(e,t)&&mV(r,n))||n===void 0&&!(t in e))&&bV(e,t,n)}function _E(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var l=t[a],c=r?r(n[l],e[l],l,n,e):void 0;c===void 0&&(c=e[l]),i?bV(n,l,c):SV(n,l,c)}return n}function NCe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var LCe="[object Arguments]";function xV(e){return Rv(e)&&Iv(e)==LCe}var wV=Object.prototype,zCe=wV.hasOwnProperty,BCe=wV.propertyIsEnumerable,FCe=xV(function(){return arguments}())?xV:function(e){return Rv(e)&&zCe.call(e,"callee")&&!BCe.call(e,"callee")};const UCe=FCe;var VCe=Array.isArray;const PS=VCe;function HCe(){return!1}var CV=typeof ka=="object"&&ka&&!ka.nodeType&&ka,EV=CV&&typeof module=="object"&&module&&!module.nodeType&&module,GCe=EV&&EV.exports===CV,_V=GCe?Kd.Buffer:void 0,WCe=_V?_V.isBuffer:void 0,qCe=WCe||HCe;const TV=qCe;var YCe=9007199254740991,KCe=/^(?:0|[1-9]\d*)$/;function XCe(e,t){var n=typeof e;return t=t??YCe,!!t&&(n=="number"||n!="symbol"&&KCe.test(e))&&e>-1&&e%1==0&&e<t}var QCe=9007199254740991;function kV(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=QCe}var ZCe="[object Arguments]",JCe="[object Array]",$Ce="[object Boolean]",eEe="[object Date]",tEe="[object Error]",nEe="[object Function]",rEe="[object Map]",iEe="[object Number]",aEe="[object Object]",oEe="[object RegExp]",sEe="[object Set]",lEe="[object String]",uEe="[object WeakMap]",cEe="[object ArrayBuffer]",dEe="[object DataView]",fEe="[object Float32Array]",hEe="[object Float64Array]",pEe="[object Int8Array]",mEe="[object Int16Array]",vEe="[object Int32Array]",gEe="[object Uint8Array]",yEe="[object Uint8ClampedArray]",bEe="[object Uint16Array]",SEe="[object Uint32Array]",zi={};zi[fEe]=zi[hEe]=zi[pEe]=zi[mEe]=zi[vEe]=zi[gEe]=zi[yEe]=zi[bEe]=zi[SEe]=!0,zi[ZCe]=zi[JCe]=zi[cEe]=zi[$Ce]=zi[dEe]=zi[eEe]=zi[tEe]=zi[nEe]=zi[rEe]=zi[iEe]=zi[aEe]=zi[oEe]=zi[sEe]=zi[lEe]=zi[uEe]=!1;function xEe(e){return Rv(e)&&kV(e.length)&&!!zi[Iv(e)]}function EA(e){return function(t){return e(t)}}var PV=typeof ka=="object"&&ka&&!ka.nodeType&&ka,AS=PV&&typeof module=="object"&&module&&!module.nodeType&&module,wEe=AS&&AS.exports===PV,_A=wEe&&uV.process,CEe=function(){try{var e=AS&&AS.require&&AS.require("util").types;return e||_A&&_A.binding&&_A.binding("util")}catch{}}();const dy=CEe;var AV=dy&&dy.isTypedArray,EEe=AV?EA(AV):xEe;const _Ee=EEe;var TEe=Object.prototype,kEe=TEe.hasOwnProperty;function OV(e,t){var n=PS(e),r=!n&&UCe(e),i=!n&&!r&&TV(e),a=!n&&!r&&!i&&_Ee(e),o=n||r||i||a,l=o?NCe(e.length,String):[],c=l.length;for(var d in e)(t||kEe.call(e,d))&&!(o&&(d=="length"||i&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||XCe(d,c)))&&l.push(d);return l}var PEe=Object.prototype;function TA(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||PEe;return e===n}var AEe=fV(Object.keys,Object);const OEe=AEe;var DEe=Object.prototype,MEe=DEe.hasOwnProperty;function jEe(e){if(!TA(e))return OEe(e);var t=[];for(var n in Object(e))MEe.call(e,n)&&n!="constructor"&&t.push(n);return t}function DV(e){return e!=null&&kV(e.length)&&!vV(e)}function kA(e){return DV(e)?OV(e):jEe(e)}function IEe(e,t){return e&&_E(t,kA(t),e)}function REe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var NEe=Object.prototype,LEe=NEe.hasOwnProperty;function zEe(e){if(!_S(e))return REe(e);var t=TA(e),n=[];for(var r in e)r=="constructor"&&(t||!LEe.call(e,r))||n.push(r);return n}function PA(e){return DV(e)?OV(e,!0):zEe(e)}function BEe(e,t){return e&&_E(t,PA(t),e)}var MV=typeof ka=="object"&&ka&&!ka.nodeType&&ka,jV=MV&&typeof module=="object"&&module&&!module.nodeType&&module,FEe=jV&&jV.exports===MV,IV=FEe?Kd.Buffer:void 0,RV=IV?IV.allocUnsafe:void 0;function UEe(e,t){if(t)return e.slice();var n=e.length,r=RV?RV(n):new e.constructor(n);return e.copy(r),r}function NV(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function VEe(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function LV(){return[]}var HEe=Object.prototype,GEe=HEe.propertyIsEnumerable,zV=Object.getOwnPropertySymbols,WEe=zV?function(e){return e==null?[]:(e=Object(e),VEe(zV(e),function(t){return GEe.call(e,t)}))}:LV;const AA=WEe;function qEe(e,t){return _E(e,AA(e),t)}function BV(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var YEe=Object.getOwnPropertySymbols,KEe=YEe?function(e){for(var t=[];e;)BV(t,AA(e)),e=wA(e);return t}:LV;const FV=KEe;function XEe(e,t){return _E(e,FV(e),t)}function UV(e,t,n){var r=t(e);return PS(e)?r:BV(r,n(e))}function QEe(e){return UV(e,kA,AA)}function ZEe(e){return UV(e,PA,FV)}var JEe=Lv(Kd,"DataView");const OA=JEe;var $Ee=Lv(Kd,"Promise");const DA=$Ee;var e_e=Lv(Kd,"Set");const MA=e_e;var t_e=Lv(Kd,"WeakMap");const jA=t_e;var VV="[object Map]",n_e="[object Object]",HV="[object Promise]",GV="[object Set]",WV="[object WeakMap]",qV="[object DataView]",r_e=Nv(OA),i_e=Nv(TS),a_e=Nv(DA),o_e=Nv(MA),s_e=Nv(jA),Bv=Iv;(OA&&Bv(new OA(new ArrayBuffer(1)))!=qV||TS&&Bv(new TS)!=VV||DA&&Bv(DA.resolve())!=HV||MA&&Bv(new MA)!=GV||jA&&Bv(new jA)!=WV)&&(Bv=function(e){var t=Iv(e),n=t==n_e?e.constructor:void 0,r=n?Nv(n):"";if(r)switch(r){case r_e:return qV;case i_e:return VV;case a_e:return HV;case o_e:return GV;case s_e:return WV}return t});const IA=Bv;var l_e=Object.prototype,u_e=l_e.hasOwnProperty;function c_e(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&u_e.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var d_e=Kd.Uint8Array;const YV=d_e;function RA(e){var t=new e.constructor(e.byteLength);return new YV(t).set(new YV(e)),t}function f_e(e,t){var n=t?RA(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var h_e=/\w*$/;function p_e(e){var t=new e.constructor(e.source,h_e.exec(e));return t.lastIndex=e.lastIndex,t}var KV=Wp?Wp.prototype:void 0,XV=KV?KV.valueOf:void 0;function m_e(e){return XV?Object(XV.call(e)):{}}function v_e(e,t){var n=t?RA(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var g_e="[object Boolean]",y_e="[object Date]",b_e="[object Map]",S_e="[object Number]",x_e="[object RegExp]",w_e="[object Set]",C_e="[object String]",E_e="[object Symbol]",__e="[object ArrayBuffer]",T_e="[object DataView]",k_e="[object Float32Array]",P_e="[object Float64Array]",A_e="[object Int8Array]",O_e="[object Int16Array]",D_e="[object Int32Array]",M_e="[object Uint8Array]",j_e="[object Uint8ClampedArray]",I_e="[object Uint16Array]",R_e="[object Uint32Array]";function N_e(e,t,n){var r=e.constructor;switch(t){case __e:return RA(e);case g_e:case y_e:return new r(+e);case T_e:return f_e(e,n);case k_e:case P_e:case A_e:case O_e:case D_e:case M_e:case j_e:case I_e:case R_e:return v_e(e,n);case b_e:return new r;case S_e:case C_e:return new r(e);case x_e:return p_e(e);case w_e:return new r;case E_e:return m_e(e)}}var QV=Object.create,L_e=function(){function e(){}return function(t){if(!_S(t))return{};if(QV)return QV(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const z_e=L_e;function B_e(e){return typeof e.constructor=="function"&&!TA(e)?z_e(wA(e)):{}}var F_e="[object Map]";function U_e(e){return Rv(e)&&IA(e)==F_e}var ZV=dy&&dy.isMap,V_e=ZV?EA(ZV):U_e;const H_e=V_e;var G_e="[object Set]";function W_e(e){return Rv(e)&&IA(e)==G_e}var JV=dy&&dy.isSet,q_e=JV?EA(JV):W_e;const Y_e=q_e;var K_e=1,X_e=2,Q_e=4,$V="[object Arguments]",Z_e="[object Array]",J_e="[object Boolean]",$_e="[object Date]",eTe="[object Error]",eH="[object Function]",tTe="[object GeneratorFunction]",nTe="[object Map]",rTe="[object Number]",tH="[object Object]",iTe="[object RegExp]",aTe="[object Set]",oTe="[object String]",sTe="[object Symbol]",lTe="[object WeakMap]",uTe="[object ArrayBuffer]",cTe="[object DataView]",dTe="[object Float32Array]",fTe="[object Float64Array]",hTe="[object Int8Array]",pTe="[object Int16Array]",mTe="[object Int32Array]",vTe="[object Uint8Array]",gTe="[object Uint8ClampedArray]",yTe="[object Uint16Array]",bTe="[object Uint32Array]",Pi={};Pi[$V]=Pi[Z_e]=Pi[uTe]=Pi[cTe]=Pi[J_e]=Pi[$_e]=Pi[dTe]=Pi[fTe]=Pi[hTe]=Pi[pTe]=Pi[mTe]=Pi[nTe]=Pi[rTe]=Pi[tH]=Pi[iTe]=Pi[aTe]=Pi[oTe]=Pi[sTe]=Pi[vTe]=Pi[gTe]=Pi[yTe]=Pi[bTe]=!0,Pi[eTe]=Pi[eH]=Pi[lTe]=!1;function OS(e,t,n,r,i,a){var o,l=t&K_e,c=t&X_e,d=t&Q_e;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!_S(e))return e;var p=PS(e);if(p){if(o=c_e(e),!l)return NV(e,o)}else{var g=IA(e),S=g==eH||g==tTe;if(TV(e))return UEe(e,l);if(g==tH||g==$V||S&&!i){if(o=c||S?{}:B_e(e),!l)return c?XEe(e,BEe(o,e)):qEe(e,IEe(o,e))}else{if(!Pi[g])return i?e:{};o=N_e(e,g,l)}}a||(a=new cy);var w=a.get(e);if(w)return w;a.set(e,o),Y_e(e)?e.forEach(function(P){o.add(OS(P,t,n,P,e,a))}):H_e(e)&&e.forEach(function(P,D){o.set(D,OS(P,t,n,D,e,a))});var C=d?c?ZEe:QEe:c?PA:kA,k=p?void 0:C(e);return MCe(k||e,function(P,D){k&&(D=P,P=e[D]),SV(o,D,OS(P,t,n,D,e,a))}),o}var STe=4;function nH(e){return OS(e,STe)}function rH(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var xTe="[object Symbol]";function NA(e){return typeof e=="symbol"||Rv(e)&&Iv(e)==xTe}var wTe="Expected a function";function LA(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wTe);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(LA.Cache||qp),n}LA.Cache=qp;var CTe=500;function ETe(e){var t=LA(e,function(r){return n.size===CTe&&n.clear(),r}),n=t.cache;return t}var _Te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,TTe=/\\(\\)?/g,kTe=ETe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(_Te,function(n,r,i,a){t.push(i?a.replace(TTe,"$1"):r||n)}),t});const PTe=kTe;var ATe=1/0;function OTe(e){if(typeof e=="string"||NA(e))return e;var t=e+"";return t=="0"&&1/e==-ATe?"-0":t}var DTe=1/0,iH=Wp?Wp.prototype:void 0,aH=iH?iH.toString:void 0;function oH(e){if(typeof e=="string")return e;if(PS(e))return rH(e,oH)+"";if(NA(e))return aH?aH.call(e):"";var t=e+"";return t=="0"&&1/e==-DTe?"-0":t}function MTe(e){return e==null?"":oH(e)}function sH(e){return PS(e)?rH(e,OTe):NA(e)?[e]:NV(PTe(MTe(e)))}var jTe=process.env.NODE_ENV==="production";function ms(e,t){if(!jTe){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var ITe=1,RTe=4;function NTe(e){return OS(e,ITe|RTe)}function wi(){return wi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wi.apply(this,arguments)}function LTe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Fv(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function lH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var uH=function(t){return Array.isArray(t)&&t.length===0},vs=function(t){return typeof t=="function"},TE=function(t){return t!==null&&typeof t=="object"},zTe=function(t){return String(Math.floor(Number(t)))===t},zA=function(t){return Object.prototype.toString.call(t)==="[object String]"},BA=function(t){return A.Children.count(t)===0},FA=function(t){return TE(t)&&vs(t.then)};function BTe(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 Ko(e,t,n,r){r===void 0&&(r=0);for(var i=sH(t);e&&r<i.length;)e=e[i[r++]];return e===void 0?n:e}function Xd(e,t,n){for(var r=nH(e),i=r,a=0,o=sH(t);a<o.length-1;a++){var l=o[a],c=Ko(e,o.slice(0,a+1));if(c&&(TE(c)||Array.isArray(c)))i=i[l]=nH(c);else{var d=o[a+1];i=i[l]=zTe(d)&&Number(d)>=0?[]:{}}}return(a===0?e:i)[o[a]]===n?e:(n===void 0?delete i[o[a]]:i[o[a]]=n,a===0&&n===void 0&&delete r[o[a]],r)}function cH(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,a=Object.keys(e);i<a.length;i++){var o=a[i],l=e[o];TE(l)?n.get(l)||(n.set(l,!0),r[o]=Array.isArray(l)?[]:{},cH(l,t,n,r[o])):r[o]=t}return r}var kE=A.createContext(void 0);kE.displayName="FormikContext";var FTe=kE.Provider;kE.Consumer;function dH(){var e=A.useContext(kE);return e||(process.env.NODE_ENV!=="production"?ms(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):ms(!1)),e}function UTe(e,t){switch(t.type){case"SET_VALUES":return wi({},e,{values:t.payload});case"SET_TOUCHED":return wi({},e,{touched:t.payload});case"SET_ERRORS":return Gp(e.errors,t.payload)?e:wi({},e,{errors:t.payload});case"SET_STATUS":return wi({},e,{status:t.payload});case"SET_ISSUBMITTING":return wi({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return wi({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return wi({},e,{values:Xd(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return wi({},e,{touched:Xd(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return wi({},e,{errors:Xd(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return wi({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return wi({},e,{touched:cH(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return wi({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return wi({},e,{isSubmitting:!1});default:return e}}var Uv={},PE={};function VTe(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,i=r===void 0?!0:r,a=e.validateOnMount,o=a===void 0?!1:a,l=e.isInitialValid,c=e.enableReinitialize,d=c===void 0?!1:c,p=e.onSubmit,g=Fv(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),S=wi({validateOnChange:n,validateOnBlur:i,validateOnMount:o,onSubmit:p},g),w=A.useRef(S.initialValues),C=A.useRef(S.initialErrors||Uv),k=A.useRef(S.initialTouched||PE),P=A.useRef(S.initialStatus),D=A.useRef(!1),M=A.useRef({});process.env.NODE_ENV!=="production"&&A.useEffect(function(){typeof l>"u"||(process.env.NODE_ENV!=="production"?ms(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):ms(!1))},[]),A.useEffect(function(){return D.current=!0,function(){D.current=!1}},[]);var R=A.useReducer(UTe,{values:S.initialValues,errors:S.initialErrors||Uv,touched:S.initialTouched||PE,status:S.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),L=R[0],z=R[1],U=A.useCallback(function(we,at){return new Promise(function(ot,yt){var He=S.validate(we,at);He==null?ot(Uv):FA(He)?He.then(function(st){ot(st||Uv)},function(st){process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",st),yt(st)}):ot(He)})},[S.validate]),V=A.useCallback(function(we,at){var ot=S.validationSchema,yt=vs(ot)?ot(at):ot,He=at&&yt.validateAt?yt.validateAt(at,we):GTe(we,yt);return new Promise(function(st,Zt){He.then(function(){st(Uv)},function(nn){nn.name==="ValidationError"?st(HTe(nn)):(process.env.NODE_ENV!=="production"&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",nn),Zt(nn))})})},[S.validationSchema]),Y=A.useCallback(function(we,at){return new Promise(function(ot){return ot(M.current[we].validate(at))})},[]),J=A.useCallback(function(we){var at=Object.keys(M.current).filter(function(yt){return vs(M.current[yt].validate)}),ot=at.length>0?at.map(function(yt){return Y(yt,Ko(we,yt))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ot).then(function(yt){return yt.reduce(function(He,st,Zt){return st==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||st&&(He=Xd(He,at[Zt],st)),He},{})})},[Y]),$=A.useCallback(function(we){return Promise.all([J(we),S.validationSchema?V(we):{},S.validate?U(we):{}]).then(function(at){var ot=at[0],yt=at[1],He=at[2],st=xA.all([ot,yt,He],{arrayMerge:WTe});return st})},[S.validate,S.validationSchema,J,U,V]),K=qu(function(we){return we===void 0&&(we=L.values),z({type:"SET_ISVALIDATING",payload:!0}),$(we).then(function(at){return D.current&&(z({type:"SET_ISVALIDATING",payload:!1}),z({type:"SET_ERRORS",payload:at})),at})});A.useEffect(function(){o&&D.current===!0&&Gp(w.current,S.initialValues)&&K(w.current)},[o,K]);var fe=A.useCallback(function(we){var at=we&&we.values?we.values:w.current,ot=we&&we.errors?we.errors:C.current?C.current:S.initialErrors||{},yt=we&&we.touched?we.touched:k.current?k.current:S.initialTouched||{},He=we&&we.status?we.status:P.current?P.current:S.initialStatus;w.current=at,C.current=ot,k.current=yt,P.current=He;var st=function(){z({type:"RESET_FORM",payload:{isSubmitting:!!we&&!!we.isSubmitting,errors:ot,touched:yt,status:He,values:at,isValidating:!!we&&!!we.isValidating,submitCount:we&&we.submitCount&&typeof we.submitCount=="number"?we.submitCount:0}})};if(S.onReset){var Zt=S.onReset(L.values,qe);FA(Zt)?Zt.then(st):st()}else st()},[S.initialErrors,S.initialStatus,S.initialTouched]);A.useEffect(function(){D.current===!0&&!Gp(w.current,S.initialValues)&&(d&&(w.current=S.initialValues,fe()),o&&K(w.current))},[d,S.initialValues,fe,o,K]),A.useEffect(function(){d&&D.current===!0&&!Gp(C.current,S.initialErrors)&&(C.current=S.initialErrors||Uv,z({type:"SET_ERRORS",payload:S.initialErrors||Uv}))},[d,S.initialErrors]),A.useEffect(function(){d&&D.current===!0&&!Gp(k.current,S.initialTouched)&&(k.current=S.initialTouched||PE,z({type:"SET_TOUCHED",payload:S.initialTouched||PE}))},[d,S.initialTouched]),A.useEffect(function(){d&&D.current===!0&&!Gp(P.current,S.initialStatus)&&(P.current=S.initialStatus,z({type:"SET_STATUS",payload:S.initialStatus}))},[d,S.initialStatus,S.initialTouched]);var X=qu(function(we){if(M.current[we]&&vs(M.current[we].validate)){var at=Ko(L.values,we),ot=M.current[we].validate(at);return FA(ot)?(z({type:"SET_ISVALIDATING",payload:!0}),ot.then(function(yt){return yt}).then(function(yt){z({type:"SET_FIELD_ERROR",payload:{field:we,value:yt}}),z({type:"SET_ISVALIDATING",payload:!1})})):(z({type:"SET_FIELD_ERROR",payload:{field:we,value:ot}}),Promise.resolve(ot))}else if(S.validationSchema)return z({type:"SET_ISVALIDATING",payload:!0}),V(L.values,we).then(function(yt){return yt}).then(function(yt){z({type:"SET_FIELD_ERROR",payload:{field:we,value:yt[we]}}),z({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),G=A.useCallback(function(we,at){var ot=at.validate;M.current[we]={validate:ot}},[]),te=A.useCallback(function(we){delete M.current[we]},[]),re=qu(function(we,at){z({type:"SET_TOUCHED",payload:we});var ot=at===void 0?i:at;return ot?K(L.values):Promise.resolve()}),oe=A.useCallback(function(we){z({type:"SET_ERRORS",payload:we})},[]),ie=qu(function(we,at){var ot=vs(we)?we(L.values):we;z({type:"SET_VALUES",payload:ot});var yt=at===void 0?n:at;return yt?K(ot):Promise.resolve()}),le=A.useCallback(function(we,at){z({type:"SET_FIELD_ERROR",payload:{field:we,value:at}})},[]),ee=qu(function(we,at,ot){z({type:"SET_FIELD_VALUE",payload:{field:we,value:at}});var yt=ot===void 0?n:ot;return yt?K(Xd(L.values,we,at)):Promise.resolve()}),de=A.useCallback(function(we,at){var ot=at,yt=we,He;if(!zA(we)){we.persist&&we.persist();var st=we.target?we.target:we.currentTarget,Zt=st.type,nn=st.name,Ze=st.id,rn=st.value,Rn=st.checked,lt=st.outerHTML,Ge=st.options,pt=st.multiple;ot=at||nn||Ze,!ot&&process.env.NODE_ENV!=="production"&&fH({htmlContent:lt,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),yt=/number|range/.test(Zt)?(He=parseFloat(rn),isNaN(He)?"":He):/checkbox/.test(Zt)?YTe(Ko(L.values,ot),Rn,rn):Ge&&pt?qTe(Ge):rn}ot&&ee(ot,yt)},[ee,L.values]),Fe=qu(function(we){if(zA(we))return function(at){return de(at,we)};de(we)}),Pe=qu(function(we,at,ot){at===void 0&&(at=!0),z({type:"SET_FIELD_TOUCHED",payload:{field:we,value:at}});var yt=ot===void 0?i:ot;return yt?K(L.values):Promise.resolve()}),Oe=A.useCallback(function(we,at){we.persist&&we.persist();var ot=we.target,yt=ot.name,He=ot.id,st=ot.outerHTML,Zt=at||yt||He;!Zt&&process.env.NODE_ENV!=="production"&&fH({htmlContent:st,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Pe(Zt,!0)},[Pe]),Ie=qu(function(we){if(zA(we))return function(at){return Oe(at,we)};Oe(we)}),De=A.useCallback(function(we){vs(we)?z({type:"SET_FORMIK_STATE",payload:we}):z({type:"SET_FORMIK_STATE",payload:function(){return we}})},[]),$e=A.useCallback(function(we){z({type:"SET_STATUS",payload:we})},[]),it=A.useCallback(function(we){z({type:"SET_ISSUBMITTING",payload:we})},[]),mt=qu(function(){return z({type:"SUBMIT_ATTEMPT"}),K().then(function(we){var at=we instanceof Error,ot=!at&&Object.keys(we).length===0;if(ot){var yt;try{if(yt=Ce(),yt===void 0)return}catch(He){throw He}return Promise.resolve(yt).then(function(He){return D.current&&z({type:"SUBMIT_SUCCESS"}),He}).catch(function(He){if(D.current)throw z({type:"SUBMIT_FAILURE"}),He})}else if(D.current&&(z({type:"SUBMIT_FAILURE"}),at))throw we})}),bt=qu(function(we){if(we&&we.preventDefault&&vs(we.preventDefault)&&we.preventDefault(),we&&we.stopPropagation&&vs(we.stopPropagation)&&we.stopPropagation(),process.env.NODE_ENV!=="production"&&typeof document<"u"){var at=BTe();at!==null&&at instanceof HTMLButtonElement&&(at.attributes&&at.attributes.getNamedItem("type")||(process.env.NODE_ENV!=="production"?ms(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):ms(!1)))}mt().catch(function(ot){console.warn("Warning: An unhandled error was caught from submitForm()",ot)})}),qe={resetForm:fe,validateForm:K,validateField:X,setErrors:oe,setFieldError:le,setFieldTouched:Pe,setFieldValue:ee,setStatus:$e,setSubmitting:it,setTouched:re,setValues:ie,setFormikState:De,submitForm:mt},Ce=qu(function(){return p(L.values,qe)}),Nt=qu(function(we){we&&we.preventDefault&&vs(we.preventDefault)&&we.preventDefault(),we&&we.stopPropagation&&vs(we.stopPropagation)&&we.stopPropagation(),fe()}),Ae=A.useCallback(function(we){return{value:Ko(L.values,we),error:Ko(L.errors,we),touched:!!Ko(L.touched,we),initialValue:Ko(w.current,we),initialTouched:!!Ko(k.current,we),initialError:Ko(C.current,we)}},[L.errors,L.touched,L.values]),xt=A.useCallback(function(we){return{setValue:function(ot,yt){return ee(we,ot,yt)},setTouched:function(ot,yt){return Pe(we,ot,yt)},setError:function(ot){return le(we,ot)}}},[ee,Pe,le]),ln=A.useCallback(function(we){var at=TE(we),ot=at?we.name:we,yt=Ko(L.values,ot),He={name:ot,value:yt,onChange:Fe,onBlur:Ie};if(at){var st=we.type,Zt=we.value,nn=we.as,Ze=we.multiple;st==="checkbox"?Zt===void 0?He.checked=!!yt:(He.checked=!!(Array.isArray(yt)&&~yt.indexOf(Zt)),He.value=Zt):st==="radio"?(He.checked=yt===Zt,He.value=Zt):nn==="select"&&Ze&&(He.value=He.value||[],He.multiple=!0)}return He},[Ie,Fe,L.values]),Wt=A.useMemo(function(){return!Gp(w.current,L.values)},[w.current,L.values]),In=A.useMemo(function(){return typeof l<"u"?Wt?L.errors&&Object.keys(L.errors).length===0:l!==!1&&vs(l)?l(S):l:L.errors&&Object.keys(L.errors).length===0},[l,Wt,L.errors,S]),ar=wi({},L,{initialValues:w.current,initialErrors:C.current,initialTouched:k.current,initialStatus:P.current,handleBlur:Ie,handleChange:Fe,handleReset:Nt,handleSubmit:bt,resetForm:fe,setErrors:oe,setFormikState:De,setFieldTouched:Pe,setFieldValue:ee,setFieldError:le,setStatus:$e,setSubmitting:it,setTouched:re,setValues:ie,submitForm:mt,validateForm:K,validateField:X,isValid:In,dirty:Wt,unregisterField:te,registerField:G,getFieldProps:ln,getFieldMeta:Ae,getFieldHelpers:xt,validateOnBlur:i,validateOnChange:n,validateOnMount:o});return ar}function DS(e){var t=VTe(e),n=e.component,r=e.children,i=e.render,a=e.innerRef;return A.useImperativeHandle(a,function(){return t}),process.env.NODE_ENV!=="production"&&A.useEffect(function(){e.render&&(process.env.NODE_ENV!=="production"?ms(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):ms(!1))},[]),A.createElement(FTe,{value:t},n?A.createElement(n,t):i?i(t):r?vs(r)?r(t):BA(r)?null:A.Children.only(r):null)}function fH(e){var t=e.htmlContent,n=e.documentationAnchorLink,r=e.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+t+`
|
||
Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#`+n+`
|
||
`)}function HTe(e){var t={};if(e.inner){if(e.inner.length===0)return Xd(t,e.path,e.message);for(var i=e.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var a;if(n){if(r>=i.length)break;a=i[r++]}else{if(r=i.next(),r.done)break;a=r.value}var o=a;Ko(t,o.path)||(t=Xd(t,o.path,o.message))}}return t}function GTe(e,t,n,r){n===void 0&&(n=!1),r===void 0&&(r={});var i=UA(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:r})}function UA(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(i){return Array.isArray(i)===!0||pV(i)?UA(i):i!==""?i:void 0}):pV(e[r])?t[r]=UA(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function WTe(e,t,n){var r=e.slice();return t.forEach(function(a,o){if(typeof r[o]>"u"){var l=n.clone!==!1,c=l&&n.isMergeableObject(a);r[o]=c?xA(Array.isArray(a)?[]:{},a,n):a}else n.isMergeableObject(a)?r[o]=xA(e[o],a,n):e.indexOf(a)===-1&&r.push(a)}),r}function qTe(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function YTe(e,t,n){if(typeof e=="boolean")return Boolean(t);var r=[],i=!1,a=-1;if(Array.isArray(e))r=e,a=e.indexOf(n),i=a>=0;else if(!n||n=="true"||n=="false")return Boolean(t);return t&&n&&!i?r.concat(n):i?r.slice(0,a).concat(r.slice(a+1)):r}var KTe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?A.useLayoutEffect:A.useEffect;function qu(e){var t=A.useRef(e);return KTe(function(){t.current=e}),A.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current.apply(void 0,r)},[])}function Bi(e){var t=e.validate,n=e.name,r=e.render,i=e.children,a=e.as,o=e.component,l=Fv(e,["validate","name","render","children","as","component"]),c=dH(),d=Fv(c,["validate","validationSchema"]);process.env.NODE_ENV!=="production"&&A.useEffect(function(){r&&(process.env.NODE_ENV!=="production"?ms(!1,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+n+'" render={({field, form}) => ...} /> with <Field name="'+n+'">{({field, form, meta}) => ...}</Field>'):ms(!1)),a&&i&&vs(i)&&(process.env.NODE_ENV!=="production"?ms(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):ms(!1)),o&&i&&vs(i)&&(process.env.NODE_ENV!=="production"?ms(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):ms(!1)),r&&i&&!BA(i)&&(process.env.NODE_ENV!=="production"?ms(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):ms(!1))},[]);var p=d.registerField,g=d.unregisterField;A.useEffect(function(){return p(n,{validate:t}),function(){g(n)}},[p,g,n,t]);var S=d.getFieldProps(wi({name:n},l)),w=d.getFieldMeta(n),C={field:S,form:d};if(r)return r(wi({},C,{meta:w}));if(vs(i))return i(wi({},C,{meta:w}));if(o){if(typeof o=="string"){var k=l.innerRef,P=Fv(l,["innerRef"]);return A.createElement(o,wi({ref:k},S,P),i)}return A.createElement(o,wi({field:S,form:d},l),i)}var D=a||"input";if(typeof D=="string"){var M=l.innerRef,R=Fv(l,["innerRef"]);return A.createElement(D,wi({ref:M},S,R),i)}return A.createElement(D,wi({},S,l),i)}var XTe=A.forwardRef(function(e,t){var n=e.action,r=Fv(e,["action"]),i=n??"#",a=dH(),o=a.handleReset,l=a.handleSubmit;return A.createElement("form",Object.assign({onSubmit:l,ref:t,onReset:o,action:i},r))});XTe.displayName="Form";var QTe=function(t,n,r){var i=fy(t),a=i[n];return i.splice(n,1),i.splice(r,0,a),i},ZTe=function(t,n,r){var i=fy(t),a=i[n];return i[n]=i[r],i[r]=a,i},VA=function(t,n,r){var i=fy(t);return i.splice(n,0,r),i},JTe=function(t,n,r){var i=fy(t);return i[n]=r,i},fy=function(t){if(t){if(Array.isArray(t))return[].concat(t);var n=Object.keys(t).map(function(r){return parseInt(r)}).reduce(function(r,i){return i>r?i:r},0);return Array.from(wi({},t,{length:n+1}))}else return[]},$Te=function(e){LTe(t,e);function t(r){var i;return i=e.call(this,r)||this,i.updateArrayField=function(a,o,l){var c=i.props,d=c.name,p=c.formik.setFormikState;p(function(g){var S=typeof l=="function"?l:a,w=typeof o=="function"?o:a,C=Xd(g.values,d,a(Ko(g.values,d))),k=l?S(Ko(g.errors,d)):void 0,P=o?w(Ko(g.touched,d)):void 0;return uH(k)&&(k=void 0),uH(P)&&(P=void 0),wi({},g,{values:C,errors:l?Xd(g.errors,d,k):g.errors,touched:o?Xd(g.touched,d,P):g.touched})})},i.push=function(a){return i.updateArrayField(function(o){return[].concat(fy(o),[NTe(a)])},!1,!1)},i.handlePush=function(a){return function(){return i.push(a)}},i.swap=function(a,o){return i.updateArrayField(function(l){return ZTe(l,a,o)},!0,!0)},i.handleSwap=function(a,o){return function(){return i.swap(a,o)}},i.move=function(a,o){return i.updateArrayField(function(l){return QTe(l,a,o)},!0,!0)},i.handleMove=function(a,o){return function(){return i.move(a,o)}},i.insert=function(a,o){return i.updateArrayField(function(l){return VA(l,a,o)},function(l){return VA(l,a,null)},function(l){return VA(l,a,null)})},i.handleInsert=function(a,o){return function(){return i.insert(a,o)}},i.replace=function(a,o){return i.updateArrayField(function(l){return JTe(l,a,o)},!1,!1)},i.handleReplace=function(a,o){return function(){return i.replace(a,o)}},i.unshift=function(a){var o=-1;return i.updateArrayField(function(l){var c=l?[a].concat(l):[a];return o<0&&(o=c.length),c},function(l){var c=l?[null].concat(l):[null];return o<0&&(o=c.length),c},function(l){var c=l?[null].concat(l):[null];return o<0&&(o=c.length),c}),o},i.handleUnshift=function(a){return function(){return i.unshift(a)}},i.handleRemove=function(a){return function(){return i.remove(a)}},i.handlePop=function(){return function(){return i.pop()}},i.remove=i.remove.bind(lH(i)),i.pop=i.pop.bind(lH(i)),i}var n=t.prototype;return n.componentDidUpdate=function(i){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Gp(Ko(i.formik.values,i.name),Ko(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(i){var a;return this.updateArrayField(function(o){var l=o?fy(o):[];return a||(a=l[i]),vs(l.splice)&&l.splice(i,1),l},!0,!0),a},n.pop=function(){var i;return this.updateArrayField(function(a){var o=a;return i||(i=o&&o.pop&&o.pop()),o},!0,!0),i},n.render=function(){var i={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},a=this.props,o=a.component,l=a.render,c=a.children,d=a.name,p=a.formik,g=Fv(p,["validate","validationSchema"]),S=wi({},i,{form:g,name:d});return o?A.createElement(o,S):l?l(S):c?typeof c=="function"?c(S):BA(c)?null:A.Children.only(c):null},t}(A.Component);$Te.defaultProps={validateOnChange:!0};const eke=Et((e,t)=>{const{acceptButtonText:n="Accept",acceptCallback:r,cancelButtonText:i="Cancel",cancelCallback:a,children:o,title:l,triggerComponent:c}=e,{isOpen:d,onOpen:p,onClose:g}=Np(),S=A.useRef(null),w=()=>{r(),g()},C=()=>{a&&a(),g()};return v.jsxs(v.Fragment,{children:[A.cloneElement(c,{onClick:p,ref:t}),v.jsx(OF,{isOpen:d,leastDestructiveRef:S,onClose:g,children:v.jsx(hh,{children:v.jsxs(DF,{children:[v.jsx(fh,{fontSize:"lg",fontWeight:"bold",children:l}),v.jsx(ph,{children:o}),v.jsxs(dh,{children:[v.jsx(mr,{ref:S,onClick:C,children:i}),v.jsx(mr,{colorScheme:"error",onClick:w,ml:3,children:n})]})]})})})]})}),AE=A.memo(eke);function tke(e){const{model:t}=e,r=be(C=>C.system.model_list)[t],i=et(),{t:a}=tt(),o=be(C=>C.system.isProcessing),l=be(C=>C.system.isConnected),[c,d]=A.useState("same"),[p,g]=A.useState("");A.useEffect(()=>{d("same")},[t]);const S=()=>{d("same")},w=()=>{i(Hee({model_name:t,save_location:c,custom_location:c==="custom"&&p!==""?p:null}))};return v.jsxs(AE,{title:`${a("modelManager.convert")} ${t}`,acceptCallback:w,cancelCallback:S,acceptButtonText:`${a("modelManager.convert")}`,triggerComponent:v.jsxs(mr,{size:"sm","aria-label":a("modelManager.convertToDiffusers"),isDisabled:r.status==="active"||o||!l,className:" modal-close-btn",marginInlineEnd:8,children:["🧨 ",a("modelManager.convertToDiffusers")]}),motionPreset:"slideInBottom",children:[v.jsxs(Re,{flexDirection:"column",rowGap:4,children:[v.jsx(Gt,{children:a("modelManager.convertToDiffusersHelpText1")}),v.jsxs(jB,{children:[v.jsx(lS,{children:a("modelManager.convertToDiffusersHelpText2")}),v.jsx(lS,{children:a("modelManager.convertToDiffusersHelpText3")}),v.jsx(lS,{children:a("modelManager.convertToDiffusersHelpText4")}),v.jsx(lS,{children:a("modelManager.convertToDiffusersHelpText5")})]}),v.jsx(Gt,{children:a("modelManager.convertToDiffusersHelpText6")})]}),v.jsxs(Re,{flexDir:"column",gap:4,children:[v.jsxs(Re,{marginTop:4,flexDir:"column",gap:2,children:[v.jsx(Gt,{fontWeight:"600",children:a("modelManager.convertToDiffusersSaveLocation")}),v.jsx(yS,{value:c,onChange:C=>d(C),children:v.jsxs(Re,{gap:4,children:[v.jsx(Ws,{value:"same",children:v.jsx(oo,{label:"Save converted model in the same folder",children:a("modelManager.sameFolder")})}),v.jsx(Ws,{value:"root",children:v.jsx(oo,{label:"Save converted model in the InvokeAI root folder",children:a("modelManager.invokeRoot")})}),v.jsx(Ws,{value:"custom",children:v.jsx(oo,{label:"Save converted model in a custom folder",children:a("modelManager.custom")})})]})})]}),c==="custom"&&v.jsxs(Re,{flexDirection:"column",rowGap:2,children:[v.jsx(Gt,{fontWeight:"500",fontSize:"sm",variant:"subtext",children:a("modelManager.customSaveLocation")}),v.jsx(xi,{value:p,onChange:C=>{C.target.value!==""&&g(C.target.value)},width:"full"})]})]})]})}function Hc(e){const{children:t,...n}=e;return v.jsx(Hs,{margin:0,color:"base.400",...n,children:t})}function Gc(e){const{children:t,...n}=e;return v.jsx(Gs,{color:"error.400",...n,children:t})}const nke=Ut([Li],e=>{const{openModel:t,model_list:n}=e;return{model_list:n,openModel:t}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),hH=64,pH=2048;function rke(){const{openModel:e,model_list:t}=be(nke),n=be(c=>c.system.isProcessing),r=et(),{t:i}=tt(),[a,o]=A.useState({name:"",description:"",config:"configs/stable-diffusion/v1-inference.yaml",weights:"",vae:"",width:512,height:512,default:!1,format:"ckpt"});A.useEffect(()=>{var c,d,p,g,S,w,C;if(e){const k=Qe.pickBy(t,(P,D)=>Qe.isEqual(D,e));o({name:e,description:(c=k[e])==null?void 0:c.description,config:(d=k[e])==null?void 0:d.config,weights:(p=k[e])==null?void 0:p.weights,vae:(g=k[e])==null?void 0:g.vae,width:(S=k[e])==null?void 0:S.width,height:(w=k[e])==null?void 0:w.height,default:(C=k[e])==null?void 0:C.default,format:"ckpt"})}},[t,e]);const l=c=>{r(f1({...c,width:Number(c.width),height:Number(c.height)}))};return e?v.jsxs(Re,{flexDirection:"column",rowGap:4,width:"100%",children:[v.jsxs(Re,{alignItems:"center",gap:4,justifyContent:"space-between",children:[v.jsx(Gt,{fontSize:"lg",fontWeight:"bold",children:e}),v.jsx(tke,{model:e})]}),v.jsx(Re,{flexDirection:"column",maxHeight:window.innerHeight-270,overflowY:"scroll",paddingInlineEnd:8,children:v.jsx(DS,{enableReinitialize:!0,initialValues:a,onSubmit:l,children:({handleSubmit:c,errors:d,touched:p})=>v.jsx("form",{onSubmit:c,children:v.jsxs(Mn,{rowGap:2,alignItems:"start",children:[v.jsxs(Or,{isInvalid:!!d.description&&p.description,isRequired:!0,children:[v.jsx(Qr,{htmlFor:"description",fontSize:"sm",children:i("modelManager.description")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"description",name:"description",type:"text",width:"full"}),d.description&&p.description?v.jsx(Gc,{children:d.description}):v.jsx(Hc,{children:i("modelManager.descriptionValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!d.config&&p.config,isRequired:!0,children:[v.jsx(Qr,{htmlFor:"config",fontSize:"sm",children:i("modelManager.config")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"config",name:"config",type:"text",width:"full"}),d.config&&p.config?v.jsx(Gc,{children:d.config}):v.jsx(Hc,{children:i("modelManager.configValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!d.weights&&p.weights,isRequired:!0,children:[v.jsx(Qr,{htmlFor:"config",fontSize:"sm",children:i("modelManager.modelLocation")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"weights",name:"weights",type:"text",width:"full"}),d.weights&&p.weights?v.jsx(Gc,{children:d.weights}):v.jsx(Hc,{children:i("modelManager.modelLocationValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!d.vae&&p.vae,children:[v.jsx(Qr,{htmlFor:"vae",fontSize:"sm",children:i("modelManager.vaeLocation")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"vae",name:"vae",type:"text",width:"full"}),d.vae&&p.vae?v.jsx(Gc,{children:d.vae}):v.jsx(Hc,{children:i("modelManager.vaeLocationValidationMsg")})]})]}),v.jsxs(X0,{width:"100%",children:[v.jsxs(Or,{isInvalid:!!d.width&&p.width,children:[v.jsx(Qr,{htmlFor:"width",fontSize:"sm",children:i("modelManager.width")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{id:"width",name:"width",children:({field:g,form:S})=>v.jsx(mh,{id:"width",name:"width",min:hH,max:pH,step:64,value:S.values.width,onChange:w=>S.setFieldValue(g.name,Number(w))})}),d.width&&p.width?v.jsx(Gc,{children:d.width}):v.jsx(Hc,{children:i("modelManager.widthValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!d.height&&p.height,children:[v.jsx(Qr,{htmlFor:"height",fontSize:"sm",children:i("modelManager.height")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{id:"height",name:"height",children:({field:g,form:S})=>v.jsx(mh,{id:"height",name:"height",min:hH,max:pH,step:64,value:S.values.height,onChange:w=>S.setFieldValue(g.name,Number(w))})}),d.height&&p.height?v.jsx(Gc,{children:d.height}):v.jsx(Hc,{children:i("modelManager.heightValidationMsg")})]})]})]}),v.jsx(mr,{type:"submit",className:"modal-close-btn",isLoading:n,children:i("modelManager.updateModel")})]})})})})]}):v.jsx(Re,{sx:{width:"100%",justifyContent:"center",alignItems:"center",borderRadius:"base",bg:"base.900"},children:v.jsx(Gt,{fontWeight:500,children:"Pick A Model To Edit"})})}const ike=Ut([Li],e=>{const{openModel:t,model_list:n}=e;return{model_list:n,openModel:t}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}});function ake(){const{openModel:e,model_list:t}=be(ike),n=be(c=>c.system.isProcessing),r=et(),{t:i}=tt(),[a,o]=A.useState({name:"",description:"",repo_id:"",path:"",vae:{repo_id:"",path:""},default:!1,format:"diffusers"});A.useEffect(()=>{var c,d,p,g,S,w,C,k,P,D,M,R,L,z,U,V;if(e){const Y=Qe.pickBy(t,(J,$)=>Qe.isEqual($,e));o({name:e,description:(c=Y[e])==null?void 0:c.description,path:(d=Y[e])!=null&&d.path&&((p=Y[e])==null?void 0:p.path)!=="None"?(g=Y[e])==null?void 0:g.path:"",repo_id:(S=Y[e])!=null&&S.repo_id&&((w=Y[e])==null?void 0:w.repo_id)!=="None"?(C=Y[e])==null?void 0:C.repo_id:"",vae:{repo_id:(P=(k=Y[e])==null?void 0:k.vae)!=null&&P.repo_id?(M=(D=Y[e])==null?void 0:D.vae)==null?void 0:M.repo_id:"",path:(L=(R=Y[e])==null?void 0:R.vae)!=null&&L.path?(U=(z=Y[e])==null?void 0:z.vae)==null?void 0:U.path:""},default:(V=Y[e])==null?void 0:V.default,format:"diffusers"})}},[t,e]);const l=c=>{const d=c;c.path===""&&delete d.path,c.repo_id===""&&delete d.repo_id,c.vae.path===""&&delete d.vae.path,c.vae.repo_id===""&&delete d.vae.repo_id,r(f1(c))};return e?v.jsxs(Re,{flexDirection:"column",rowGap:4,width:"100%",children:[v.jsx(Re,{alignItems:"center",children:v.jsx(Gt,{fontSize:"lg",fontWeight:"bold",children:e})}),v.jsx(Re,{flexDirection:"column",overflowY:"scroll",paddingInlineEnd:8,children:v.jsx(DS,{enableReinitialize:!0,initialValues:a,onSubmit:l,children:({handleSubmit:c,errors:d,touched:p})=>{var g,S,w,C,k,P,D,M,R,L;return v.jsx("form",{onSubmit:c,children:v.jsxs(Mn,{rowGap:2,alignItems:"start",children:[v.jsxs(Or,{isInvalid:!!d.description&&p.description,isRequired:!0,children:[v.jsx(Qr,{htmlFor:"description",fontSize:"sm",children:i("modelManager.description")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"description",name:"description",type:"text",width:"full"}),d.description&&p.description?v.jsx(Gc,{children:d.description}):v.jsx(Hc,{children:i("modelManager.descriptionValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!d.path&&p.path,isRequired:!0,children:[v.jsx(Qr,{htmlFor:"path",fontSize:"sm",children:i("modelManager.modelLocation")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"path",name:"path",type:"text",width:"full"}),d.path&&p.path?v.jsx(Gc,{children:d.path}):v.jsx(Hc,{children:i("modelManager.modelLocationValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!d.repo_id&&p.repo_id,children:[v.jsx(Qr,{htmlFor:"repo_id",fontSize:"sm",children:i("modelManager.repo_id")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"repo_id",name:"repo_id",type:"text",width:"full"}),d.repo_id&&p.repo_id?v.jsx(Gc,{children:d.repo_id}):v.jsx(Hc,{children:i("modelManager.repoIDValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!((g=d.vae)!=null&&g.path)&&((S=p.vae)==null?void 0:S.path),children:[v.jsx(Qr,{htmlFor:"vae.path",fontSize:"sm",children:i("modelManager.vaeLocation")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"vae.path",name:"vae.path",type:"text",width:"full"}),(w=d.vae)!=null&&w.path&&((C=p.vae)!=null&&C.path)?v.jsx(Gc,{children:(k=d.vae)==null?void 0:k.path}):v.jsx(Hc,{children:i("modelManager.vaeLocationValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!((P=d.vae)!=null&&P.repo_id)&&((D=p.vae)==null?void 0:D.repo_id),children:[v.jsx(Qr,{htmlFor:"vae.repo_id",fontSize:"sm",children:i("modelManager.vaeRepoID")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"vae.repo_id",name:"vae.repo_id",type:"text",width:"full"}),(M=d.vae)!=null&&M.repo_id&&((R=p.vae)!=null&&R.repo_id)?v.jsx(Gc,{children:(L=d.vae)==null?void 0:L.repo_id}):v.jsx(Hc,{children:i("modelManager.vaeRepoIDValidationMsg")})]})]}),v.jsx(mr,{type:"submit",className:"modal-close-btn",isLoading:n,children:i("modelManager.updateModel")})]})})}})})]}):v.jsx(Re,{sx:{width:"100%",justifyContent:"center",alignItems:"center",borderRadius:"base",bg:"base.900"},children:v.jsx(Gt,{fontWeight:"500",children:"Pick A Model To Edit"})})}const oke=e=>{const{label:t,...n}=e;return v.jsx(k7,{colorScheme:"accent",...n,children:t})},Ci=A.memo(oke);function mH(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M21 11H6.414l5.293-5.293-1.414-1.414L2.586 12l7.707 7.707 1.414-1.414L6.414 13H21z"}}]})(e)}function ske(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19.002 3h-14c-1.103 0-2 .897-2 2v4h2V5h14v14h-14v-4h-2v4c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2V5c0-1.103-.898-2-2-2z"}},{tag:"path",attr:{d:"m11 16 5-4-5-4v3.001H3v2h8z"}}]})(e)}function HA(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 16c1.671 0 3-1.331 3-3s-1.329-3-3-3-3 1.331-3 3 1.329 3 3 3z"}},{tag:"path",attr:{d:"M20.817 11.186a8.94 8.94 0 0 0-1.355-3.219 9.053 9.053 0 0 0-2.43-2.43 8.95 8.95 0 0 0-3.219-1.355 9.028 9.028 0 0 0-1.838-.18V2L8 5l3.975 3V6.002c.484-.002.968.044 1.435.14a6.961 6.961 0 0 1 2.502 1.053 7.005 7.005 0 0 1 1.892 1.892A6.967 6.967 0 0 1 19 13a7.032 7.032 0 0 1-.55 2.725 7.11 7.11 0 0 1-.644 1.188 7.2 7.2 0 0 1-.858 1.039 7.028 7.028 0 0 1-3.536 1.907 7.13 7.13 0 0 1-2.822 0 6.961 6.961 0 0 1-2.503-1.054 7.002 7.002 0 0 1-1.89-1.89A6.996 6.996 0 0 1 5 13H3a9.02 9.02 0 0 0 1.539 5.034 9.096 9.096 0 0 0 2.428 2.428A8.95 8.95 0 0 0 12 22a9.09 9.09 0 0 0 1.814-.183 9.014 9.014 0 0 0 3.218-1.355 8.886 8.886 0 0 0 1.331-1.099 9.228 9.228 0 0 0 1.1-1.332A8.952 8.952 0 0 0 21 13a9.09 9.09 0 0 0-.183-1.814z"}}]})(e)}function lke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6.758 8.758 5.344 7.344a8.048 8.048 0 0 0-1.841 2.859l1.873.701a6.048 6.048 0 0 1 1.382-2.146zM19 12.999a7.935 7.935 0 0 0-2.344-5.655A7.917 7.917 0 0 0 12 5.069V2L7 6l5 4V7.089a5.944 5.944 0 0 1 3.242 1.669A5.956 5.956 0 0 1 17 13v.002c0 .33-.033.655-.086.977-.007.043-.011.088-.019.131a6.053 6.053 0 0 1-1.138 2.536c-.16.209-.331.412-.516.597a5.954 5.954 0 0 1-.728.613 5.906 5.906 0 0 1-2.277 1.015c-.142.03-.285.05-.43.069-.062.009-.122.021-.184.027a6.104 6.104 0 0 1-1.898-.103L9.3 20.819a8.087 8.087 0 0 0 2.534.136c.069-.007.138-.021.207-.03.205-.026.409-.056.61-.098l.053-.009-.001-.005a7.877 7.877 0 0 0 2.136-.795l.001.001.028-.019a7.906 7.906 0 0 0 1.01-.67c.27-.209.532-.43.777-.675.248-.247.47-.513.681-.785.021-.028.049-.053.07-.081l-.006-.004a7.899 7.899 0 0 0 1.093-1.997l.008.003c.029-.078.05-.158.076-.237.037-.11.075-.221.107-.333.04-.14.073-.281.105-.423.022-.099.048-.195.066-.295.032-.171.056-.344.076-.516.01-.076.023-.15.03-.227.023-.249.037-.5.037-.753.002-.002.002-.004.002-.008zM6.197 16.597l-1.6 1.201a8.045 8.045 0 0 0 2.569 2.225l.961-1.754a6.018 6.018 0 0 1-1.93-1.672zM5 13c0-.145.005-.287.015-.429l-1.994-.143a7.977 7.977 0 0 0 .483 3.372l1.873-.701A5.975 5.975 0 0 1 5 13z"}}]})(e)}function uke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16.242 17.242a6.04 6.04 0 0 1-1.37 1.027l.961 1.754a8.068 8.068 0 0 0 2.569-2.225l-1.6-1.201a5.938 5.938 0 0 1-.56.645zm1.743-4.671a5.975 5.975 0 0 1-.362 2.528l1.873.701a7.977 7.977 0 0 0 .483-3.371l-1.994.142zm1.512-2.368a8.048 8.048 0 0 0-1.841-2.859l-1.414 1.414a6.071 6.071 0 0 1 1.382 2.146l1.873-.701zm-8.128 8.763c-.047-.005-.094-.015-.141-.021a6.701 6.701 0 0 1-.468-.075 5.923 5.923 0 0 1-2.421-1.122 5.954 5.954 0 0 1-.583-.506 6.138 6.138 0 0 1-.516-.597 5.91 5.91 0 0 1-.891-1.634 6.086 6.086 0 0 1-.247-.902c-.008-.043-.012-.088-.019-.131A6.332 6.332 0 0 1 6 13.002V13c0-1.603.624-3.109 1.758-4.242A5.944 5.944 0 0 1 11 7.089V10l5-4-5-4v3.069a7.917 7.917 0 0 0-4.656 2.275A7.936 7.936 0 0 0 4 12.999v.009c0 .253.014.504.037.753.007.076.021.15.03.227.021.172.044.345.076.516.019.1.044.196.066.295.032.142.065.283.105.423.032.112.07.223.107.333.026.079.047.159.076.237l.008-.003A7.948 7.948 0 0 0 5.6 17.785l-.007.005c.021.028.049.053.07.081.211.272.433.538.681.785a8.236 8.236 0 0 0 .966.816c.265.192.537.372.821.529l.028.019.001-.001a7.877 7.877 0 0 0 2.136.795l-.001.005.053.009c.201.042.405.071.61.098.069.009.138.023.207.03a8.038 8.038 0 0 0 2.532-.137l-.424-1.955a6.11 6.11 0 0 1-1.904.102z"}}]})(e)}function cke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11 6H9v3H6v2h3v3h2v-3h3V9h-3z"}},{tag:"path",attr:{d:"M10 2c-4.411 0-8 3.589-8 8s3.589 8 8 8a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8zm0 14c-3.309 0-6-2.691-6-6s2.691-6 6-6 6 2.691 6 6-2.691 6-6 6z"}}]})(e)}function dke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6 9h8v2H6z"}},{tag:"path",attr:{d:"M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"}}]})(e)}const vH=Ut([Li],e=>{const{model_list:t}=e,n=[];return Qe.forEach(t,r=>{n.push(r.weights)}),n});function gH({model:e,modelsToAdd:t,setModelsToAdd:n}){const{t:r}=tt(),i=be(vH),a=o=>{t.includes(o.target.value)?n(Qe.remove(t,l=>l!==o.target.value)):n([...t,o.target.value])};return v.jsx(Mn,{children:v.jsxs(Re,{flexDirection:"column",gap:2,backgroundColor:t.includes(e.name)?"accent.650":"base.800",paddingX:4,paddingY:2,borderRadius:4,children:[v.jsxs(Re,{gap:4,children:[v.jsx(Ci,{value:e.name,label:v.jsx(Gt,{fontWeight:500,children:e.name}),isChecked:t.includes(e.name),isDisabled:i.includes(e.location),onChange:a}),i.includes(e.location)&&v.jsx(LB,{colorScheme:"accent",children:r("modelManager.modelExists")})]}),v.jsx(Gt,{fontStyle:"italic",variant:"subtext",children:e.location})]})})}function fke(){const e=et(),{t}=tt(),n=be(R=>R.system.searchFolder),r=be(R=>R.system.foundModels),i=be(vH),a=be(R=>R.ui.shouldShowExistingModelsInSearch),o=be(R=>R.system.isProcessing),[l,c]=A.useState([]),[d,p]=A.useState("v1"),[g,S]=A.useState(""),w=()=>{e(LI(null)),e(zI(null)),c([])},C=R=>{e(xN(R.checkpointFolder))},k=()=>{c([]),r&&r.forEach(R=>{i.includes(R.location)||c(L=>[...L,R.name])})},P=()=>{c([])},D=()=>{const R=r==null?void 0:r.filter(z=>l.includes(z.name)),L={v1:"configs/stable-diffusion/v1-inference.yaml",v2_base:"configs/stable-diffusion/v2-inference-v.yaml",v2_768:"configs/stable-diffusion/v2-inference-v.yaml",inpainting:"configs/stable-diffusion/v1-inpainting-inference.yaml",custom:g};R==null||R.forEach(z=>{const U={name:z.name,description:"",config:L[d],weights:z.location,vae:"",width:512,height:512,default:!1,format:"ckpt"};e(f1(U))}),c([])},M=()=>{const R=[],L=[];return r&&r.forEach((z,U)=>{i.includes(z.location)?L.push(v.jsx(gH,{model:z,modelsToAdd:l,setModelsToAdd:c},U)):R.push(v.jsx(gH,{model:z,modelsToAdd:l,setModelsToAdd:c},U))}),v.jsxs(v.Fragment,{children:[R,a&&L]})};return v.jsxs(v.Fragment,{children:[n?v.jsxs(Re,{sx:{padding:4,gap:2,position:"relative",borderRadius:"base",alignItems:"center",w:"full",bg:"base.900"},children:[v.jsxs(Re,{sx:{flexDir:"column",gap:2},children:[v.jsx(Gt,{sx:{fontWeight:500,fontSize:"sm"},variant:"subtext",children:t("modelManager.checkpointFolder")}),v.jsx(Gt,{sx:{fontWeight:500,fontSize:"sm"},children:n})]}),v.jsx(UC,{}),v.jsx(_t,{"aria-label":t("modelManager.scanAgain"),tooltip:t("modelManager.scanAgain"),icon:v.jsx(HA,{}),fontSize:18,disabled:o,onClick:()=>e(xN(n))}),v.jsx(_t,{"aria-label":t("modelManager.clearCheckpointFolder"),icon:v.jsx(SS,{style:{transform:"rotate(45deg)"}}),onClick:w})]}):v.jsx(DS,{initialValues:{checkpointFolder:""},onSubmit:R=>{C(R)},children:({handleSubmit:R})=>v.jsx("form",{onSubmit:R,children:v.jsxs(X0,{columnGap:2,alignItems:"flex-end",width:"100%",children:[v.jsx(Or,{isRequired:!0,width:"lg",children:v.jsx(Bi,{as:xi,id:"checkpointFolder",name:"checkpointFolder",type:"text",size:"md",label:t("modelManager.checkpointFolder")})}),v.jsx(mr,{leftIcon:v.jsx(xxe,{}),"aria-label":t("modelManager.findModels"),tooltip:t("modelManager.findModels"),type:"submit",disabled:o,paddingX:10,children:t("modelManager.findModels")})]})})}),r&&v.jsxs(Re,{flexDirection:"column",rowGap:4,width:"full",children:[v.jsxs(Re,{justifyContent:"space-between",alignItems:"center",children:[v.jsxs("p",{children:[t("modelManager.modelsFound"),": ",r.length]}),v.jsxs("p",{children:[t("modelManager.selected"),": ",l.length]})]}),v.jsxs(Re,{columnGap:2,justifyContent:"space-between",children:[v.jsxs(Re,{columnGap:2,children:[v.jsx(mr,{isDisabled:l.length===r.length,onClick:k,children:t("modelManager.selectAll")}),v.jsx(mr,{isDisabled:l.length===0,onClick:P,children:t("modelManager.deselectAll")}),v.jsx(Ci,{label:t("modelManager.showExisting"),isChecked:a,onChange:()=>e(dZ(!a))})]}),v.jsx(mr,{isDisabled:l.length===0,onClick:D,colorScheme:"accent",children:t("modelManager.addSelected")})]}),v.jsxs(Re,{sx:{flexDirection:"column",padding:4,rowGap:4,borderRadius:"base",width:"full",bg:"base.900"},children:[v.jsxs(Re,{gap:4,children:[v.jsx(Gt,{fontWeight:500,variant:"subtext",children:t("modelManager.pickModelType")}),v.jsx(yS,{value:d,onChange:R=>p(R),defaultValue:"v1",name:"model_type",children:v.jsxs(Re,{gap:4,children:[v.jsx(Ws,{value:"v1",children:v.jsx(Gt,{fontSize:"sm",children:t("modelManager.v1")})}),v.jsx(Ws,{value:"v2_base",children:v.jsx(Gt,{fontSize:"sm",children:t("modelManager.v2_base")})}),v.jsx(Ws,{value:"v2_768",children:v.jsx(Gt,{fontSize:"sm",children:t("modelManager.v2_768")})}),v.jsx(Ws,{value:"inpainting",children:v.jsx(Gt,{fontSize:"sm",children:t("modelManager.inpainting")})}),v.jsx(Ws,{value:"custom",children:v.jsx(Gt,{fontSize:"sm",children:t("modelManager.customConfig")})})]})})]}),d==="custom"&&v.jsxs(Re,{flexDirection:"column",rowGap:2,children:[v.jsx(Gt,{fontWeight:"500",fontSize:"sm",variant:"subtext",children:t("modelManager.pathToCustomConfig")}),v.jsx(xi,{value:g,onChange:R=>{R.target.value!==""&&S(R.target.value)},width:"full"})]})]}),v.jsx(Re,{flexDirection:"column",maxHeight:72,overflowY:"scroll",borderRadius:"sm",paddingInlineEnd:4,gap:2,children:r.length>0?M():v.jsx(Gt,{fontWeight:"500",padding:2,borderRadius:"sm",textAlign:"center",variant:"subtext",children:t("modelManager.noModelsFound")})})]})]})}const yH=64,bH=2048;function hke(){const e=et(),{t}=tt(),n=be(d=>d.system.isProcessing);function r(d){return/\s/.test(d)}function i(d){let p;return r(d)&&(p=t("modelManager.cannotUseSpaces")),p}const a={name:"",description:"",config:"configs/stable-diffusion/v1-inference.yaml",weights:"",vae:"",width:512,height:512,format:"ckpt",default:!1},o=d=>{e(f1(d)),e(tv(null))},[l,c]=A.useState(!1);return v.jsxs(Mn,{gap:2,alignItems:"flex-start",children:[v.jsx(_t,{"aria-label":t("common.back"),tooltip:t("common.back"),onClick:()=>e(tv(null)),width:"max-content",position:"absolute",zIndex:1,size:"sm",insetInlineEnd:12,top:3,icon:v.jsx(mH,{})}),v.jsx(fke,{}),v.jsx(Ci,{label:t("modelManager.addManually"),isChecked:l,onChange:()=>c(!l)}),l&&v.jsx(DS,{initialValues:a,onSubmit:o,children:({handleSubmit:d,errors:p,touched:g})=>v.jsx("form",{onSubmit:d,children:v.jsxs(Mn,{rowGap:2,children:[v.jsx(Gt,{fontSize:20,fontWeight:"bold",alignSelf:"start",children:t("modelManager.manual")}),v.jsxs(Or,{isInvalid:!!p.name&&g.name,isRequired:!0,children:[v.jsx(Qr,{htmlFor:"name",fontSize:"sm",children:t("modelManager.name")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"name",name:"name",type:"text",validate:i,width:"2xl"}),p.name&&g.name?v.jsx(Gs,{children:p.name}):v.jsx(Hs,{margin:0,children:t("modelManager.nameValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!p.description&&g.description,isRequired:!0,children:[v.jsx(Qr,{htmlFor:"description",fontSize:"sm",children:t("modelManager.description")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"description",name:"description",type:"text",width:"2xl"}),p.description&&g.description?v.jsx(Gs,{children:p.description}):v.jsx(Hs,{margin:0,children:t("modelManager.descriptionValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!p.config&&g.config,isRequired:!0,children:[v.jsx(Qr,{htmlFor:"config",fontSize:"sm",children:t("modelManager.config")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"config",name:"config",type:"text",width:"2xl"}),p.config&&g.config?v.jsx(Gs,{children:p.config}):v.jsx(Hs,{margin:0,children:t("modelManager.configValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!p.weights&&g.weights,isRequired:!0,children:[v.jsx(Qr,{htmlFor:"config",fontSize:"sm",children:t("modelManager.modelLocation")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"weights",name:"weights",type:"text",width:"2xl"}),p.weights&&g.weights?v.jsx(Gs,{children:p.weights}):v.jsx(Hs,{margin:0,children:t("modelManager.modelLocationValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!p.vae&&g.vae,children:[v.jsx(Qr,{htmlFor:"vae",fontSize:"sm",children:t("modelManager.vaeLocation")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"vae",name:"vae",type:"text",width:"2xl"}),p.vae&&g.vae?v.jsx(Gs,{children:p.vae}):v.jsx(Hs,{margin:0,children:t("modelManager.vaeLocationValidationMsg")})]})]}),v.jsxs(X0,{width:"100%",children:[v.jsxs(Or,{isInvalid:!!p.width&&g.width,children:[v.jsx(Qr,{htmlFor:"width",fontSize:"sm",children:t("modelManager.width")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{id:"width",name:"width",children:({field:S,form:w})=>v.jsx(mh,{id:"width",name:"width",min:yH,max:bH,step:64,width:"90%",value:w.values.width,onChange:C=>w.setFieldValue(S.name,Number(C))})}),p.width&&g.width?v.jsx(Gs,{children:p.width}):v.jsx(Hs,{margin:0,children:t("modelManager.widthValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!p.height&&g.height,children:[v.jsx(Qr,{htmlFor:"height",fontSize:"sm",children:t("modelManager.height")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{id:"height",name:"height",children:({field:S,form:w})=>v.jsx(mh,{id:"height",name:"height",min:yH,max:bH,width:"90%",step:64,value:w.values.height,onChange:C=>w.setFieldValue(S.name,Number(C))})}),p.height&&g.height?v.jsx(Gs,{children:p.height}):v.jsx(Hs,{margin:0,children:t("modelManager.heightValidationMsg")})]})]})]}),v.jsx(mr,{type:"submit",className:"modal-close-btn",isLoading:n,children:t("modelManager.addModel")})]})})})]})}function OE({children:e}){return v.jsx(Re,{sx:{flexDirection:"column",padding:4,rowGap:4,borderRadius:"base",width:"full",bg:"base.900"},children:e})}function pke(){const e=et(),{t}=tt(),n=be(l=>l.system.isProcessing);function r(l){return/\s/.test(l)}function i(l){let c;return r(l)&&(c=t("modelManager.cannotUseSpaces")),c}const a={name:"",description:"",repo_id:"",path:"",format:"diffusers",default:!1,vae:{repo_id:"",path:""}},o=l=>{const c=l;l.path===""&&delete c.path,l.repo_id===""&&delete c.repo_id,l.vae.path===""&&delete c.vae.path,l.vae.repo_id===""&&delete c.vae.repo_id,e(f1(c)),e(tv(null))};return v.jsxs(Re,{children:[v.jsx(_t,{"aria-label":t("common.back"),tooltip:t("common.back"),onClick:()=>e(tv(null)),width:"max-content",position:"absolute",zIndex:1,size:"sm",insetInlineEnd:12,top:3,icon:v.jsx(mH,{})}),v.jsx(DS,{initialValues:a,onSubmit:o,children:({handleSubmit:l,errors:c,touched:d})=>{var p,g,S,w,C,k,P,D,M,R;return v.jsx("form",{onSubmit:l,children:v.jsxs(Mn,{rowGap:2,children:[v.jsx(OE,{children:v.jsxs(Or,{isInvalid:!!c.name&&d.name,isRequired:!0,children:[v.jsx(Qr,{htmlFor:"name",fontSize:"sm",children:t("modelManager.name")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"name",name:"name",type:"text",validate:i,width:"2xl",isRequired:!0}),c.name&&d.name?v.jsx(Gs,{children:c.name}):v.jsx(Hs,{margin:0,children:t("modelManager.nameValidationMsg")})]})]})}),v.jsx(OE,{children:v.jsxs(Or,{isInvalid:!!c.description&&d.description,isRequired:!0,children:[v.jsx(Qr,{htmlFor:"description",fontSize:"sm",children:t("modelManager.description")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"description",name:"description",type:"text",width:"2xl",isRequired:!0}),c.description&&d.description?v.jsx(Gs,{children:c.description}):v.jsx(Hs,{margin:0,children:t("modelManager.descriptionValidationMsg")})]})]})}),v.jsxs(OE,{children:[v.jsx(Gt,{fontWeight:"bold",fontSize:"sm",children:t("modelManager.formMessageDiffusersModelLocation")}),v.jsx(Gt,{sx:{fontSize:"sm",fontStyle:"italic"},variant:"subtext",children:t("modelManager.formMessageDiffusersModelLocationDesc")}),v.jsxs(Or,{isInvalid:!!c.path&&d.path,children:[v.jsx(Qr,{htmlFor:"path",fontSize:"sm",children:t("modelManager.modelLocation")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"path",name:"path",type:"text",width:"2xl"}),c.path&&d.path?v.jsx(Gs,{children:c.path}):v.jsx(Hs,{margin:0,children:t("modelManager.modelLocationValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!c.repo_id&&d.repo_id,children:[v.jsx(Qr,{htmlFor:"repo_id",fontSize:"sm",children:t("modelManager.repo_id")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"repo_id",name:"repo_id",type:"text",width:"2xl"}),c.repo_id&&d.repo_id?v.jsx(Gs,{children:c.repo_id}):v.jsx(Hs,{margin:0,children:t("modelManager.repoIDValidationMsg")})]})]})]}),v.jsxs(OE,{children:[v.jsx(Gt,{fontWeight:"bold",children:t("modelManager.formMessageDiffusersVAELocation")}),v.jsx(Gt,{sx:{fontSize:"sm",fontStyle:"italic"},variant:"subtext",children:t("modelManager.formMessageDiffusersVAELocationDesc")}),v.jsxs(Or,{isInvalid:!!((p=c.vae)!=null&&p.path)&&((g=d.vae)==null?void 0:g.path),children:[v.jsx(Qr,{htmlFor:"vae.path",fontSize:"sm",children:t("modelManager.vaeLocation")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"vae.path",name:"vae.path",type:"text",width:"2xl"}),(S=c.vae)!=null&&S.path&&((w=d.vae)!=null&&w.path)?v.jsx(Gs,{children:(C=c.vae)==null?void 0:C.path}):v.jsx(Hs,{margin:0,children:t("modelManager.vaeLocationValidationMsg")})]})]}),v.jsxs(Or,{isInvalid:!!((k=c.vae)!=null&&k.repo_id)&&((P=d.vae)==null?void 0:P.repo_id),children:[v.jsx(Qr,{htmlFor:"vae.repo_id",fontSize:"sm",children:t("modelManager.vaeRepoID")}),v.jsxs(Mn,{alignItems:"start",children:[v.jsx(Bi,{as:xi,id:"vae.repo_id",name:"vae.repo_id",type:"text",width:"2xl"}),(D=c.vae)!=null&&D.repo_id&&((M=d.vae)!=null&&M.repo_id)?v.jsx(Gs,{children:(R=c.vae)==null?void 0:R.repo_id}):v.jsx(Hs,{margin:0,children:t("modelManager.vaeRepoIDValidationMsg")})]})]})]}),v.jsx(mr,{type:"submit",isLoading:n,children:t("modelManager.addModel")})]})})}})]})}function SH({text:e,onClick:t}){return v.jsx(Re,{position:"relative",width:"50%",height:40,justifyContent:"center",alignItems:"center",onClick:t,as:Cv,children:v.jsx(Gt,{fontWeight:"bold",children:e})})}function mke(){const{isOpen:e,onOpen:t,onClose:n}=Np(),r=be(l=>l.ui.addNewModelUIOption),i=et(),{t:a}=tt(),o=()=>{n(),i(tv(null))};return v.jsxs(v.Fragment,{children:[v.jsx(mr,{"aria-label":a("modelManager.addNewModel"),tooltip:a("modelManager.addNewModel"),onClick:t,size:"sm",children:v.jsxs(Re,{columnGap:2,alignItems:"center",children:[v.jsx(SS,{}),a("modelManager.addNew")]})}),v.jsxs(Bp,{isOpen:e,onClose:o,size:"3xl",closeOnOverlayClick:!1,children:[v.jsx(hh,{}),v.jsxs(Fp,{margin:"auto",paddingInlineEnd:4,children:[v.jsx(fh,{children:a("modelManager.addNewModel")}),v.jsx(ay,{}),v.jsxs(ph,{children:[r==null&&v.jsxs(Re,{columnGap:4,children:[v.jsx(SH,{text:a("modelManager.addCheckpointModel"),onClick:()=>i(tv("ckpt"))}),v.jsx(SH,{text:a("modelManager.addDiffuserModel"),onClick:()=>i(tv("diffusers"))})]}),r=="ckpt"&&v.jsx(hke,{}),r=="diffusers"&&v.jsx(pke,{})]}),v.jsx(dh,{})]})]})]})}var vke=v5({displayName:"EditIcon",path:v.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[v.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),v.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),xH=v5({displayName:"ExternalLinkIcon",path:v.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"2",children:[v.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),v.jsx("path",{d:"M15 3h6v6"}),v.jsx("path",{d:"M10 14L21 3"})]})}),gke=v5({displayName:"DeleteIcon",path:v.jsx("g",{fill:"currentColor",children:v.jsx("path",{d:"M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z"})})});function DE(e){const{isProcessing:t,isConnected:n}=be(w=>w.system),r=be(w=>w.system.openModel),{t:i}=tt(),a=et(),{name:o,status:l,description:c}=e,d=()=>{a(wN(o))},p=()=>{a(BI(o))},g=()=>{a(Vee(o)),a(BI(null))},S=()=>{switch(l){case"active":return"ok.500";case"cached":return"warning.500";case"not loaded":return"inherit"}};return v.jsxs(Re,{alignItems:"center",p:2,borderRadius:"base",sx:o===r?{bg:"accent.750",_hover:{bg:"accent.750"}}:{_hover:{bg:"base.750"}},children:[v.jsx($n,{onClick:p,cursor:"pointer",children:v.jsx(oo,{label:c,hasArrow:!0,placement:"bottom",children:v.jsx(Gt,{fontWeight:"600",children:o})})}),v.jsx(UC,{onClick:p,cursor:"pointer"}),v.jsxs(Re,{gap:2,alignItems:"center",children:[v.jsx(Gt,{color:S(),children:l}),v.jsx(Cv,{size:"sm",onClick:d,isDisabled:l==="active"||t||!n,children:i("modelManager.load")}),v.jsx(_t,{icon:v.jsx(vke,{}),size:"sm",onClick:p,"aria-label":i("accessibility.modifyConfig"),isDisabled:l==="active"||t||!n}),v.jsx(AE,{title:i("modelManager.deleteModel"),acceptCallback:g,acceptButtonText:i("modelManager.delete"),triggerComponent:v.jsx(_t,{icon:v.jsx(gke,{}),size:"sm","aria-label":i("modelManager.deleteConfig"),isDisabled:l==="active"||t||!n,colorScheme:"error"}),children:v.jsxs(Re,{rowGap:4,flexDirection:"column",children:[v.jsx("p",{style:{fontWeight:"bold"},children:i("modelManager.deleteMsg1")}),v.jsx("p",{children:i("modelManager.deleteMsg2")})]})})]})]})}function wH(e){const{children:t,value:n}=e,[r,i]=sL("colors",["base.800","base.200"]);return v.jsx("option",{value:n,style:{background:r,color:i},children:t})}const yke=e=>{const{label:t,isDisabled:n,validValues:r,tooltip:i,tooltipProps:a,...o}=e;return v.jsxs(Or,{isDisabled:n,onClick:l=>{l.stopPropagation(),l.nativeEvent.stopImmediatePropagation(),l.nativeEvent.stopPropagation(),l.nativeEvent.cancelBubble=!0},children:[t&&v.jsx(Qr,{children:t}),v.jsx(oo,{label:i,...a,children:v.jsx(VF,{...o,children:r.map(l=>typeof l=="string"||typeof l=="number"?v.jsx(wH,{value:l,children:l},l):v.jsx(wH,{value:l.value,children:l.key},l.value))})})]})},wl=A.memo(yke),bke=e=>{const[t,n]=A.useState(!1),{label:r,value:i,min:a=1,max:o=100,step:l=1,onChange:c,tooltipSuffix:d="",withSliderMarks:p=!1,withInput:g=!1,isInteger:S=!1,inputWidth:w=16,inputReadOnly:C=!1,withReset:k=!1,hideTooltip:P=!1,isCompact:D=!1,handleReset:M,isResetDisabled:R,isSliderDisabled:L,isInputDisabled:z,sliderFormControlProps:U,sliderFormLabelProps:V,sliderMarkProps:Y,sliderTrackProps:J,sliderThumbProps:$,sliderNumberInputProps:K,sliderNumberInputFieldProps:fe,sliderNumberInputStepperProps:X,sliderTooltipProps:G,sliderIAIIconButtonProps:te,...re}=e,{t:oe}=tt(),[ie,le]=A.useState(String(i));A.useEffect(()=>{le(i)},[i]);const ee=A.useMemo(()=>K!=null&&K.max?K.max:o,[o,K==null?void 0:K.max]),de=Ie=>{c(Ie)},Fe=Ie=>{Ie.target.value===""&&(Ie.target.value=String(a));const De=Qe.clamp(S?Math.floor(Number(Ie.target.value)):Number(ie),a,ee);c(De)},Pe=Ie=>{le(Ie)},Oe=()=>{M&&M()};return v.jsxs(Or,{sx:D?{display:"flex",flexDirection:"row",alignItems:"center",columnGap:4,margin:0,padding:0}:{},...U,children:[v.jsx(Qr,{...V,mb:-1,children:r}),v.jsxs(X0,{w:"100%",gap:2,alignItems:"center",children:[v.jsxs(XF,{"aria-label":r,value:i,min:a,max:o,step:l,onChange:de,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),focusThumbOnChange:!1,isDisabled:L,...re,children:[p&&v.jsxs(v.Fragment,{children:[v.jsx(J3,{value:a,sx:{insetInlineStart:"0 !important",insetInlineEnd:"unset !important"},...Y,children:a}),v.jsx(J3,{value:o,sx:{insetInlineStart:"unset !important",insetInlineEnd:"0 !important"},...Y,children:o})]}),v.jsx(ZF,{...J,children:v.jsx(JF,{})}),v.jsx(oo,{hasArrow:!0,placement:"top",isOpen:t,label:`${i}${d}`,hidden:P,...G,children:v.jsx(QF,{...$})})]}),g&&v.jsxs(L3,{min:a,max:ee,step:l,value:ie,onChange:Pe,onBlur:Fe,isDisabled:z,...K,children:[v.jsx(B3,{readOnly:C,minWidth:w,...fe}),v.jsxs(z3,{...X,children:[v.jsx(U3,{onClick:()=>c(Number(ie))}),v.jsx(F3,{onClick:()=>c(Number(ie))})]})]}),k&&v.jsx(_t,{size:"sm","aria-label":oe("accessibility.reset"),tooltip:"Reset",icon:v.jsx(HA,{}),onClick:Oe,isDisabled:R,...te})]})]})},ni=A.memo(bke);function Ske(){const e=et(),{isOpen:t,onOpen:n,onClose:r}=Np(),i=be(Y2e),{t:a}=tt(),[o,l]=A.useState(Object.keys(i)[0]),[c,d]=A.useState(Object.keys(i)[1]),[p,g]=A.useState("none"),[S,w]=A.useState(""),[C,k]=A.useState(.5),[P,D]=A.useState("weighted_sum"),[M,R]=A.useState("root"),[L,z]=A.useState(""),[U,V]=A.useState(!1),Y=Object.keys(i).filter(X=>X!==c&&X!==p),J=Object.keys(i).filter(X=>X!==o&&X!==p),$=[{key:a("modelManager.none"),value:"none"},...Object.keys(i).filter(X=>X!==o&&X!==c).map(X=>({key:X,value:X}))],K=be(X=>X.system.isProcessing),fe=()=>{let X=[o,c,p];X=X.filter(te=>te!=="none");const G={models_to_merge:X,merged_model_name:S!==""?S:X.join("-"),alpha:C,interp:P,model_merge_save_path:M==="root"?null:L,force:U};e(Gee(G))};return v.jsxs(v.Fragment,{children:[v.jsx(mr,{onClick:n,size:"sm",children:v.jsx(Re,{columnGap:2,alignItems:"center",children:a("modelManager.mergeModels")})}),v.jsxs(Bp,{isOpen:t,onClose:r,size:"4xl",closeOnOverlayClick:!1,children:[v.jsx(hh,{}),v.jsxs(Fp,{fontFamily:"Inter",margin:"auto",paddingInlineEnd:4,children:[v.jsx(fh,{children:a("modelManager.mergeModels")}),v.jsx(ay,{}),v.jsx(ph,{children:v.jsxs(Re,{flexDirection:"column",rowGap:4,children:[v.jsxs(Re,{sx:{flexDirection:"column",marginBottom:4,padding:4,borderRadius:"base",rowGap:1,bg:"base.900"},children:[v.jsx(Gt,{children:a("modelManager.modelMergeHeaderHelp1")}),v.jsx(Gt,{fontSize:"sm",variant:"subtext",children:a("modelManager.modelMergeHeaderHelp2")})]}),v.jsxs(Re,{columnGap:4,children:[v.jsx(wl,{label:a("modelManager.modelOne"),validValues:Y,onChange:X=>l(X.target.value)}),v.jsx(wl,{label:a("modelManager.modelTwo"),validValues:J,onChange:X=>d(X.target.value)}),v.jsx(wl,{label:a("modelManager.modelThree"),validValues:$,onChange:X=>{X.target.value!=="none"?(g(X.target.value),D("add_difference")):(g("none"),D("weighted_sum"))}})]}),v.jsx(xi,{label:a("modelManager.mergedModelName"),value:S,onChange:X=>w(X.target.value)}),v.jsxs(Re,{sx:{flexDirection:"column",padding:4,borderRadius:"base",gap:4,bg:"base.900"},children:[v.jsx(ni,{label:a("modelManager.alpha"),min:.01,max:.99,step:.01,value:C,onChange:X=>k(X),withInput:!0,withReset:!0,handleReset:()=>k(.5),withSliderMarks:!0}),v.jsx(Gt,{variant:"subtext",fontSize:"sm",children:a("modelManager.modelMergeAlphaHelp")})]}),v.jsxs(Re,{sx:{padding:4,borderRadius:"base",gap:4,bg:"base.900"},children:[v.jsx(Gt,{fontWeight:500,fontSize:"sm",variant:"subtext",children:a("modelManager.interpolationType")}),v.jsx(yS,{value:P,onChange:X=>D(X),children:v.jsx(Re,{columnGap:4,children:p==="none"?v.jsxs(v.Fragment,{children:[v.jsx(Ws,{value:"weighted_sum",children:v.jsx(Gt,{fontSize:"sm",children:a("modelManager.weightedSum")})}),v.jsx(Ws,{value:"sigmoid",children:v.jsx(Gt,{fontSize:"sm",children:a("modelManager.sigmoid")})}),v.jsx(Ws,{value:"inv_sigmoid",children:v.jsx(Gt,{fontSize:"sm",children:a("modelManager.inverseSigmoid")})})]}):v.jsx(Ws,{value:"add_difference",children:v.jsx(oo,{label:a("modelManager.modelMergeInterpAddDifferenceHelp"),children:v.jsx(Gt,{fontSize:"sm",children:a("modelManager.addDifference")})})})})})]}),v.jsxs(Re,{sx:{flexDirection:"column",padding:4,borderRadius:"base",gap:4,bg:"base.900"},children:[v.jsxs(Re,{columnGap:4,children:[v.jsx(Gt,{fontWeight:"500",fontSize:"sm",variant:"subtext",children:a("modelManager.mergedModelSaveLocation")}),v.jsx(yS,{value:M,onChange:X=>R(X),children:v.jsxs(Re,{columnGap:4,children:[v.jsx(Ws,{value:"root",children:v.jsx(Gt,{fontSize:"sm",children:a("modelManager.invokeAIFolder")})}),v.jsx(Ws,{value:"custom",children:v.jsx(Gt,{fontSize:"sm",children:a("modelManager.custom")})})]})})]}),M==="custom"&&v.jsx(xi,{label:a("modelManager.mergedModelCustomSaveLocation"),value:L,onChange:X=>z(X.target.value)})]}),v.jsx(Ci,{label:a("modelManager.ignoreMismatch"),isChecked:U,onChange:X=>V(X.target.checked),fontWeight:"500"}),v.jsx(mr,{onClick:fe,isLoading:K,isDisabled:M==="custom"&&L==="",children:a("modelManager.merge")})]})}),v.jsx(dh,{})]})]})]})}const xke=Ut(Li,e=>Qe.map(e.model_list,(n,r)=>({name:r,...n})),{memoizeOptions:{resultEqualityCheck:Qe.isEqual}});function GA({label:e,isActive:t,onClick:n}){return v.jsx(mr,{onClick:n,isActive:t,sx:{_active:{bg:"accent.750"}},size:"sm",children:e})}const wke=()=>{const e=be(xke),[t,n]=A.useState(!1);A.useEffect(()=>{const S=setTimeout(()=>{n(!0)},200);return()=>clearTimeout(S)},[]);const[r,i]=A.useState(""),[a,o]=A.useState("all"),[l,c]=A.useTransition(),{t:d}=tt(),p=S=>{c(()=>{i(S.target.value)})},g=A.useMemo(()=>{const S=[],w=[],C=[],k=[];return e.forEach((P,D)=>{P.name.toLowerCase().includes(r.toLowerCase())&&(C.push(v.jsx(DE,{name:P.name,status:P.status,description:P.description},D)),P.format===a&&k.push(v.jsx(DE,{name:P.name,status:P.status,description:P.description},D))),P.format!=="diffusers"?S.push(v.jsx(DE,{name:P.name,status:P.status,description:P.description},D)):w.push(v.jsx(DE,{name:P.name,status:P.status,description:P.description},D))}),r!==""?a==="all"?v.jsx($n,{marginTop:4,children:C}):v.jsx($n,{marginTop:4,children:k}):v.jsxs(Re,{flexDirection:"column",rowGap:6,children:[a==="all"&&v.jsxs(v.Fragment,{children:[v.jsxs($n,{children:[v.jsx(Gt,{sx:{fontWeight:"500",py:2,px:4,my:4,mx:0,borderRadius:"base",width:"max-content",fontSize:"sm",bg:"base.750"},children:d("modelManager.checkpointModels")}),S]}),v.jsxs($n,{children:[v.jsx(Gt,{sx:{fontWeight:"500",py:2,px:4,mb:4,borderRadius:"base",width:"max-content",fontSize:"sm",bg:"base.750"},children:d("modelManager.diffusersModels")}),w]})]}),a==="ckpt"&&v.jsx(Re,{flexDirection:"column",marginTop:4,children:S}),a==="diffusers"&&v.jsx(Re,{flexDirection:"column",marginTop:4,children:w})]})},[e,r,d,a]);return v.jsxs(Re,{flexDirection:"column",rowGap:4,width:"50%",minWidth:"50%",children:[v.jsxs(Re,{justifyContent:"space-between",alignItems:"center",gap:2,children:[v.jsx(Vu,{size:"md",children:d("modelManager.availableModels")}),v.jsx(UC,{}),v.jsx(mke,{}),v.jsx(Ske,{})]}),v.jsx(xi,{onChange:p,label:d("modelManager.search")}),v.jsxs(Re,{flexDirection:"column",gap:1,maxHeight:window.innerHeight-240,overflow:"scroll",paddingInlineEnd:4,children:[v.jsxs(Re,{columnGap:2,children:[v.jsx(GA,{label:d("modelManager.allModels"),onClick:()=>o("all"),isActive:a==="all"}),v.jsx(GA,{label:d("modelManager.checkpointModels"),onClick:()=>o("ckpt"),isActive:a==="ckpt"}),v.jsx(GA,{label:d("modelManager.diffusersModels"),onClick:()=>o("diffusers"),isActive:a==="diffusers"})]}),t?g:v.jsx(Re,{width:"100%",minHeight:96,justifyContent:"center",alignItems:"center",children:v.jsx(L0,{})})]})]})};function Cke({children:e}){const{isOpen:t,onOpen:n,onClose:r}=Np(),i=be(l=>l.system.model_list),a=be(l=>l.system.openModel),{t:o}=tt();return v.jsxs(v.Fragment,{children:[A.cloneElement(e,{onClick:n}),v.jsxs(Bp,{isOpen:t,onClose:r,size:"full",children:[v.jsx(hh,{}),v.jsxs(Fp,{children:[v.jsx(ay,{}),v.jsx(fh,{children:o("modelManager.modelManager")}),v.jsx(ph,{children:v.jsxs(Re,{width:"100%",columnGap:8,children:[v.jsx(wke,{}),a&&i[a].format==="diffusers"?v.jsx(ake,{}):v.jsx(rke,{})]})}),v.jsx(dh,{})]})]})]})}const Eke=Ut([Li],e=>{const{isProcessing:t,model_list:n}=e;return{models:Qe.map(n,(i,a)=>a),isProcessing:t}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),_ke=()=>{const e=et(),{t}=tt(),{models:n,isProcessing:r}=be(Eke),i=be(rV),a=o=>{e(wN(o.target.value))};return v.jsx(Re,{style:{paddingInlineStart:1.5},children:v.jsx(wl,{style:{fontSize:"sm"},"aria-label":t("accessibility.modelSelect"),tooltip:i.description,isDisabled:r,value:i.name,validValues:n,onChange:a})})},Tke=e=>{const{label:t,isDisabled:n=!1,width:r="auto",formControlProps:i,formLabelProps:a,...o}=e;return v.jsxs(Or,{isDisabled:n,width:r,display:"flex",gap:4,alignItems:"center",justifyContent:"space-between",...i,children:[v.jsx(Qr,{my:1,...a,children:t}),v.jsx($F,{...o})]})},Cl=A.memo(Tke),kke=Ut([Li,Wd],(e,t)=>{const{shouldDisplayInProgressType:n,shouldConfirmOnDelete:r,shouldDisplayGuides:i,model_list:a,saveIntermediatesInterval:o,enableImageDebugging:l}=e,{shouldUseCanvasBetaLayout:c,shouldUseSliders:d}=t;return{shouldDisplayInProgressType:n,shouldConfirmOnDelete:r,shouldDisplayGuides:i,models:Qe.map(a,(p,g)=>g),saveIntermediatesInterval:o,enableImageDebugging:l,shouldUseCanvasBetaLayout:c,shouldUseSliders:d}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),WA={flexDirection:"column",gap:2,p:4,bg:"base.900"},Pke=({children:e})=>{const t=et(),{t:n}=tt(),r=be(R=>R.generation.steps),{isOpen:i,onOpen:a,onClose:o}=Np(),{isOpen:l,onOpen:c,onClose:d}=Np(),{shouldDisplayInProgressType:p,shouldConfirmOnDelete:g,shouldDisplayGuides:S,saveIntermediatesInterval:w,enableImageDebugging:C,shouldUseCanvasBetaLayout:k,shouldUseSliders:P}=be(kke),D=()=>{_N.purge().then(()=>{o(),c()})},M=R=>{R>r&&(R=r),R<1&&(R=1),t(nZ(R))};return v.jsxs(v.Fragment,{children:[A.cloneElement(e,{onClick:a}),v.jsxs(Bp,{isOpen:i,onClose:o,size:"xl",children:[v.jsx(hh,{}),v.jsxs(Fp,{paddingInlineEnd:4,children:[v.jsx(fh,{children:n("common.settingsLabel")}),v.jsx(ay,{}),v.jsx(ph,{children:v.jsxs(zc,{gap:4,children:[v.jsxs(Re,{sx:WA,children:[v.jsx(wl,{label:n("settings.displayInProgress"),validValues:dJ,value:p,onChange:R=>t(YQ(R.target.value))}),p==="full-res"&&v.jsx(mh,{label:n("settings.saveSteps"),min:1,max:r,step:1,onChange:M,value:w,width:"auto",textAlign:"center"}),v.jsx(Cl,{label:n("settings.confirmOnDelete"),isChecked:g,onChange:R=>t(II(R.target.checked))}),v.jsx(Cl,{label:n("settings.displayHelpIcons"),isChecked:S,onChange:R=>t(ZQ(R.target.checked))}),v.jsx(Cl,{label:n("settings.useCanvasBeta"),isChecked:k,onChange:R=>t(cZ(R.target.checked))}),v.jsx(Cl,{label:n("settings.useSlidersForAll"),isChecked:P,onChange:R=>t(fZ(R.target.checked))})]}),v.jsxs(Re,{sx:WA,children:[v.jsx(Vu,{size:"sm",style:{fontWeight:"bold"},children:"Developer"}),v.jsx(Cl,{label:n("settings.enableImageDebugging"),isChecked:C,onChange:R=>t(rZ(R.target.checked))})]}),v.jsxs(Re,{sx:WA,children:[v.jsx(Vu,{size:"sm",children:n("settings.resetWebUI")}),v.jsx(mr,{colorScheme:"error",onClick:D,children:n("settings.resetWebUI")}),v.jsx(Gt,{children:n("settings.resetWebUIDesc1")}),v.jsx(Gt,{children:n("settings.resetWebUIDesc2")})]})]})}),v.jsx(dh,{children:v.jsx(mr,{onClick:o,children:n("common.close")})})]})]}),v.jsxs(Bp,{closeOnOverlayClick:!1,isOpen:l,onClose:d,isCentered:!0,children:[v.jsx(hh,{backdropFilter:"blur(40px)"}),v.jsxs(Fp,{children:[v.jsx(fh,{}),v.jsx(ph,{children:v.jsx(Re,{justifyContent:"center",children:v.jsx(Gt,{fontSize:"lg",children:v.jsx(Gt,{children:n("settings.resetComplete")})})})}),v.jsx(dh,{})]})]})]})},Ake=Ut(Li,e=>({isConnected:e.isConnected,isProcessing:e.isProcessing,currentIteration:e.currentIteration,totalIterations:e.totalIterations,currentStatus:e.currentStatus,hasError:e.hasError,wasErrorSeen:e.wasErrorSeen}),{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),Oke=()=>{const{isConnected:e,isProcessing:t,currentIteration:n,totalIterations:r,currentStatus:i,hasError:a,wasErrorSeen:o}=be(Ake),l=et(),{t:c}=tt();let d;e&&!a?d="ok":d="error";let p=i;t&&(d="working"),p&&t&&r>1&&(p=`${c(p)} (${n}/${r})`);const g=a&&!o?"Click to clear, check logs for details":void 0,S=a&&!o?"pointer":"initial",w=()=>{(a||!o)&&l(NI())};return v.jsx(oo,{label:g,children:v.jsx(Gt,{cursor:S,onClick:w,sx:{fontSize:"xs",fontWeight:"600",color:`${d}.400`},children:c(p)})})};function Dke(){const{t:e,i18n:t}=tt(),n={ar:e("common.langArabic",{lng:"ar"}),nl:e("common.langDutch",{lng:"nl"}),en:e("common.langEnglish",{lng:"en"}),fr:e("common.langFrench",{lng:"fr"}),de:e("common.langGerman",{lng:"de"}),he:e("common.langHebrew",{lng:"he"}),it:e("common.langItalian",{lng:"it"}),ja:e("common.langJapanese",{lng:"ja"}),ko:e("common.langKorean",{lng:"ko"}),pl:e("common.langPolish",{lng:"pl"}),pt_BR:e("common.langBrPortuguese",{lng:"pt_BR"}),pt:e("common.langPortuguese",{lng:"pt"}),ru:e("common.langRussian",{lng:"ru"}),zh_CN:e("common.langSimplifiedChinese",{lng:"zh_CN"}),es:e("common.langSpanish",{lng:"es"}),uk:e("common.langUkranian",{lng:"ua"})},r=()=>{const i=[];return Object.keys(n).forEach(a=>{i.push(v.jsx(mr,{isChecked:localStorage.getItem("i18nextLng")===a,leftIcon:localStorage.getItem("i18nextLng")===a?v.jsx(dE,{}):void 0,onClick:()=>t.changeLanguage(a),"aria-label":n[a],size:"sm",minWidth:"200px",children:n[a]},a))}),i};return v.jsx(Vc,{trigger:"hover",triggerComponent:v.jsx(_t,{"aria-label":e("common.languagePickerLabel"),tooltip:e("common.languagePickerLabel"),icon:v.jsx(hxe,{}),size:"sm",variant:"link","data-variant":"link",fontSize:26}),children:v.jsx(Mn,{children:r()})})}function Mke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.5 9c-.42 0-.83.04-1.24.11L1.01 3 1 10l9 2-9 2 .01 7 8.07-3.46C9.59 21.19 12.71 24 16.5 24c4.14 0 7.5-3.36 7.5-7.5S20.64 9 16.5 9zm0 13c-3.03 0-5.5-2.47-5.5-5.5s2.47-5.5 5.5-5.5 5.5 2.47 5.5 5.5-2.47 5.5-5.5 5.5z"}},{tag:"path",attr:{d:"M18.27 14.03l-1.77 1.76-1.77-1.76-.7.7 1.76 1.77-1.76 1.77.7.7 1.77-1.76 1.77 1.76.7-.7-1.76-1.77 1.76-1.77z"}}]})(e)}function jke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}}]})(e)}function Ike(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}}]})(e)}function Rke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}}]})(e)}function Nke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 16l-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5h-4z"}}]})(e)}function Lke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 2v11h3v9l7-12h-4l4-8z"}}]})(e)}function CH(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v2zm4 8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2z"}}]})(e)}function zke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6h-4V4h4v4z"}}]})(e)}function Bke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.02 10v9H5V5h9V3H5.02c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zM17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7l2.06.94zm-3.75.75L12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75L16 12z"}}]})(e)}function qA(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}}]})(e)}function Fke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})(e)}function Uke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 10l5 5 5-5z"}}]})(e)}function Vke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 14l5-5 5 5z"}}]})(e)}function Hke(e){return Vt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}}]})(e)}const EH=()=>{const{t:e}=tt();return v.jsxs(zc,{gridTemplateColumns:"auto max-content",children:[v.jsx(nA,{}),v.jsxs(Re,{alignItems:"center",gap:2,children:[v.jsx(Oke,{}),v.jsx(_ke,{}),v.jsx(Cke,{children:v.jsx(_t,{"aria-label":e("modelManager.modelManager"),tooltip:e("modelManager.modelManager"),size:"sm",variant:"link","data-variant":"link",fontSize:20,icon:v.jsx(axe,{})})}),v.jsx(awe,{children:v.jsx(_t,{"aria-label":e("common.hotkeysLabel"),tooltip:e("common.hotkeysLabel"),size:"sm",variant:"link","data-variant":"link",fontSize:20,icon:v.jsx(fxe,{})})}),v.jsx(xU,{}),v.jsx(Dke,{}),v.jsx(kv,{isExternal:!0,href:"http://github.com/invoke-ai/InvokeAI/issues",marginBottom:"-0.25rem",children:v.jsx(_t,{"aria-label":e("common.reportBugLabel"),tooltip:e("common.reportBugLabel"),variant:"link","data-variant":"link",fontSize:20,size:"sm",icon:v.jsx(ixe,{})})}),v.jsx(kv,{isExternal:!0,href:"http://github.com/invoke-ai/InvokeAI",marginBottom:"-0.25rem",children:v.jsx(_t,{"aria-label":e("common.githubLabel"),tooltip:e("common.githubLabel"),variant:"link","data-variant":"link",fontSize:20,size:"sm",icon:v.jsx(ZSe,{})})}),v.jsx(kv,{isExternal:!0,href:"https://discord.gg/ZmtBAhwWhy",marginBottom:"-0.25rem",children:v.jsx(_t,{"aria-label":e("common.discordLabel"),tooltip:e("common.discordLabel"),variant:"link","data-variant":"link",fontSize:20,size:"sm",icon:v.jsx(QSe,{})})}),v.jsx(Pke,{children:v.jsx(_t,{"aria-label":e("common.settingsLabel"),tooltip:e("common.settingsLabel"),variant:"link","data-variant":"link",fontSize:22,size:"sm",icon:v.jsx(Ike,{})})})]})]})};EH.displayName="SiteHeader";const YA=e=>{const{children:t}=e;return v.jsx(Re,{sx:{width:"100%",height:"100%",bg:"base.850"},children:t})};function Gke(){const{t:e}=tt();return v.jsx(YA,{children:v.jsxs(Re,{sx:{flexDirection:"column",alignItems:"center",justifyContent:"center",w:"100%",h:"100%",gap:4,textAlign:"center"},children:[v.jsx(Vu,{children:e("common.nodes")}),v.jsx(Mn,{maxW:"50rem",gap:4,children:v.jsx(Gt,{children:e("common.nodesDesc")})})]})})}const Wke=()=>{const{t:e}=tt();return v.jsx(YA,{children:v.jsxs(Re,{sx:{flexDirection:"column",alignItems:"center",justifyContent:"center",w:"100%",h:"100%",gap:4,textAlign:"center"},children:[v.jsx(Vu,{children:e("common.postProcessing")}),v.jsxs(Mn,{maxW:"50rem",gap:4,children:[v.jsx(Gt,{children:e("common.postProcessDesc1")}),v.jsx(Gt,{children:e("common.postProcessDesc2")}),v.jsx(Gt,{children:e("common.postProcessDesc3")})]})]})})};function qke(){const{t:e}=tt();return v.jsx(YA,{children:v.jsxs(Re,{sx:{flexDirection:"column",alignItems:"center",justifyContent:"center",w:"100%",h:"100%",gap:4,textAlign:"center"},children:[v.jsx(Vu,{children:e("common.training")}),v.jsxs(Mn,{maxW:"50rem",gap:4,children:[v.jsx(Gt,{children:e("common.trainingDesc1")}),v.jsx(Gt,{children:e("common.trainingDesc2")})]})]})})}const MS=Ut(e=>e.lightbox,e=>e,{memoizeOptions:{equalityCheck:Qe.isEqual}}),gh=e=>e.gallery,Yke=Ut([gh,Wd,MS,ki],(e,t,n,r)=>{const{categories:i,currentCategory:a,currentImageUuid:o,galleryImageMinimumWidth:l,galleryImageObjectFit:c,shouldAutoSwitchToNewImages:d,galleryWidth:p,shouldUseSingleGalleryColumn:g}=e,{shouldPinGallery:S}=t,{isLightboxOpen:w}=n;return{currentImageUuid:o,shouldPinGallery:S,galleryImageMinimumWidth:l,galleryImageObjectFit:c,galleryGridTemplateColumns:g?"auto":`repeat(auto-fill, minmax(${l}px, auto))`,shouldAutoSwitchToNewImages:d,currentCategory:a,images:i[a].images,areMoreImagesAvailable:i[a].areMoreImagesAvailable,galleryWidth:p,shouldEnableResize:!(w||r==="unifiedCanvas"&&S),shouldUseSingleGalleryColumn:g}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),Kke=Ut([gh,Li,MS,ki],(e,t,n,r)=>({mayDeleteImage:t.isConnected&&!t.isProcessing,galleryImageObjectFit:e.galleryImageObjectFit,galleryImageMinimumWidth:e.galleryImageMinimumWidth,shouldUseSingleGalleryColumn:e.shouldUseSingleGalleryColumn,activeTabName:r,isLightboxOpen:n.isLightboxOpen}),{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),Xke=Ut(gh,e=>({resultImages:e.categories.result.images,userImages:e.categories.user.images})),Qke=()=>{const{resultImages:e,userImages:t}=be(Xke);return n=>{const r=e.find(a=>a.uuid===n);if(r)return r;const i=t.find(a=>a.uuid===n);if(i)return i}},Zke=({direction:e,langDirection:t})=>({top:e==="bottom",right:t!=="rtl"&&e==="left"||t==="rtl"&&e==="right",bottom:e==="top",left:t!=="rtl"&&e==="right"||t==="rtl"&&e==="left"}),Jke=({direction:e,minWidth:t,maxWidth:n,minHeight:r,maxHeight:i})=>{const a=t??(["left","right"].includes(e)?10:void 0),o=n??(["left","right"].includes(e)?"95vw":void 0),l=r??(["top","bottom"].includes(e)?10:void 0),c=i??(["top","bottom"].includes(e)?"95vh":void 0);return{...a?{minWidth:a}:{},...o?{maxWidth:o}:{},...l?{minHeight:l}:{},...c?{maxHeight:c}:{}}},yh="0.75rem",ME="1rem",$ke="2px",e4e="5px",t4e=({isPinned:e,isResizable:t,direction:n})=>{if(!t)return{containerStyles:{},handleStyles:{}};const r=e?$ke:e4e,i=`calc((2 * ${yh} + ${r}) / -2)`;return n==="top"?{containerStyles:{borderBottomWidth:r,paddingBottom:ME},handleStyles:{top:{paddingTop:yh,paddingBottom:yh,bottom:i}}}:n==="left"?{containerStyles:{borderInlineEndWidth:r,paddingInlineEnd:ME},handleStyles:{right:{paddingInlineStart:yh,paddingInlineEnd:yh,insetInlineEnd:i}}}:n==="bottom"?{containerStyles:{borderTopWidth:r,paddingTop:ME},handleStyles:{bottom:{paddingTop:yh,paddingBottom:yh,top:i}}}:n==="right"?{containerStyles:{borderInlineStartWidth:r,paddingInlineStart:ME},handleStyles:{left:{paddingInlineStart:yh,paddingInlineEnd:yh,insetInlineStart:i}}}:{containerStyles:{},handleStyles:{}}},n4e=(e,t)=>["top","bottom"].includes(e)?e:e==="left"?t==="rtl"?"right":"left":e==="right"?t==="rtl"?"left":"right":"left",Yp=(e,t)=>{if(e)return t?e+t:e},r4e=dt(nV,{shouldForwardProp:e=>!["sx"].includes(e)}),_H=({direction:e="left",isResizable:t,isPinned:n,isOpen:r,onClose:i,children:a,initialWidth:o,minWidth:l,maxWidth:c,initialHeight:d,minHeight:p,maxHeight:g,onResizeStart:S,onResizeStop:w,onResize:C,sx:k={}})=>{const P=Cp().direction,D=A.useRef(null),M=A.useMemo(()=>o??l??(["left","right"].includes(e)?500:"100%"),[o,l,e]),R=A.useMemo(()=>d??p??(["top","bottom"].includes(e)?500:"100%"),[d,p,e]),[L,z]=A.useState(M),[U,V]=A.useState(R);m0e({ref:D,handler:()=>{n||i()}});const Y=A.useMemo(()=>t?Zke({direction:e,langDirection:P}):{},[t,P,e]),J=A.useMemo(()=>Jke({direction:e,minWidth:t?Yp(l,18):Yp(l),maxWidth:t?Yp(c,18):Yp(c),minHeight:t?Yp(p,18):Yp(p),maxHeight:t?Yp(g,18):Yp(g)}),[l,c,p,g,e,t]),{containerStyles:$,handleStyles:K}=A.useMemo(()=>t4e({isPinned:n,isResizable:t,direction:e}),[n,t,e]),fe=A.useMemo(()=>n4e(e,P),[e,P]);return A.useEffect(()=>{["left","right"].includes(e)&&V(n?"100%":"100vh"),["top","bottom"].includes(e)&&z(n?"100%":"100vw")},[n,e]),v.jsx(v7,{direction:fe,in:r,unmountOnExit:n,motionProps:{initial:n},...n?{style:{position:void 0,left:void 0,right:void 0,top:void 0,bottom:void 0,width:void 0}}:{style:{zIndex:99,width:"full"}},children:v.jsx($n,{ref:D,sx:{width:"full",height:"full"},children:v.jsx(r4e,{size:{width:t?L:M,height:t?U:R},enable:Y,handleStyles:K,...J,sx:{borderColor:"base.800",p:n?0:4,bg:"base.900",height:"full",boxShadow:n?"":"0 0 4rem 0 rgba(0, 0, 0, 0.8)",...$,...k},onResizeStart:(X,G,te)=>{S&&S(X,G,te)},onResize:(X,G,te,re)=>{C&&C(X,G,te,re)},onResizeStop:(X,G,te,re)=>{["left","right"].includes(G)&&z(Number(L)+re.width),["top","bottom"].includes(G)&&V(Number(U)+re.height),w&&w(X,G,te,re)},children:a})})})},TH={position:"absolute",width:"full",height:24,left:0,pointerEvents:"none",transition:"opacity 0.2s ease-in-out"},kH=({children:e})=>{const t=A.useRef(null),n=A.useRef(null),r=A.useRef(null),i=Qe.throttle(()=>{if(!t.current||!n.current||!r.current)return;const{scrollTop:a,scrollHeight:o,offsetHeight:l}=t.current;a>0?n.current.style.opacity="1":n.current.style.opacity="0",a>=o-l?r.current.style.opacity="0":r.current.style.opacity="1"},33,{leading:!0});return A.useEffect(()=>{i()},[i]),v.jsxs($n,{position:"relative",w:"full",h:"full",children:[v.jsx($n,{ref:t,position:"absolute",w:"full",h:"full",overflowY:"scroll",onScroll:i,children:e}),v.jsx($n,{ref:r,sx:{...TH,bottom:0,boxShadow:"inset 0 -3.5rem 2rem -2rem var(--invokeai-colors-base-900)"}}),v.jsx($n,{ref:n,sx:{...TH,top:0,boxShadow:"inset 0 3.5rem 2rem -2rem var(--invokeai-colors-base-900)"}})]})},i4e=Qe.debounce(e=>{e(Wj(!0))},300),gs=()=>(e,t)=>{ki(t())==="unifiedCanvas"&&i4e(e)};function PH(e){return Vt({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a5.927 5.927 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707-.195-.195.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a5.922 5.922 0 0 1 1.013.16l3.134-3.133a2.772 2.772 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146z"}}]})(e)}function AH(e){return Vt({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a5.927 5.927 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707-.195-.195.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a5.922 5.922 0 0 1 1.013.16l3.134-3.133a2.772 2.772 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146zm.122 2.112v-.002.002zm0-.002v.002a.5.5 0 0 1-.122.51L6.293 6.878a.5.5 0 0 1-.511.12H5.78l-.014-.004a4.507 4.507 0 0 0-.288-.076 4.922 4.922 0 0 0-.765-.116c-.422-.028-.836.008-1.175.15l5.51 5.509c.141-.34.177-.753.149-1.175a4.924 4.924 0 0 0-.192-1.054l-.004-.013v-.001a.5.5 0 0 1 .12-.512l3.536-3.535a.5.5 0 0 1 .532-.115l.096.022c.087.017.208.034.344.034.114 0 .23-.011.343-.04L9.927 2.028c-.029.113-.04.23-.04.343a1.779 1.779 0 0 0 .062.46z"}}]})(e)}const OH=e=>{const{sx:t}=e,n=et(),r=be(o=>o.ui.shouldPinParametersPanel),{t:i}=tt(),a=()=>{n(uZ(!r)),n(gs())};return v.jsx(oo,{label:i("common.pinOptionsPanel"),children:v.jsx(_t,{...e,"aria-label":i("common.pinOptionsPanel"),onClick:a,icon:r?v.jsx(PH,{}):v.jsx(AH,{}),variant:"ghost",size:"sm",sx:{color:"base.700",_hover:{color:"base.550"},_active:{color:"base.500"},...t}})})},a4e=Ut([Wd,ki,MS],(e,t,n)=>{const{shouldPinParametersPanel:r,shouldShowParametersPanel:i}=e,{isLightboxOpen:a}=n;return{shouldPinParametersPanel:r,shouldShowParametersPanel:i,isResizable:t!=="unifiedCanvas",isLightboxOpen:a}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),o4e=({children:e})=>{const t=et(),{shouldPinParametersPanel:n,shouldShowParametersPanel:r,isResizable:i,isLightboxOpen:a}=be(a4e),o=()=>{t(J2(!1))};return At("o",()=>{t(mZ()),n&&t(gs())},{enabled:()=>!a},[n,a]),At("esc",()=>{t(J2(!1))},{enabled:()=>!n,preventDefault:!0},[n]),At("shift+o",()=>{t(pZ()),t(gs())},[]),v.jsx(_H,{direction:"left",isResizable:i||!n,isOpen:r,onClose:o,isPinned:n||a,sx:{borderColor:"base.700",p:n?0:4,bg:"base.900"},initialWidth:aV,minWidth:aV,children:v.jsxs(Re,{flexDir:"column",position:"relative",h:"full",w:"full",children:[!n&&v.jsxs(Re,{paddingTop:1.5,paddingBottom:4,justifyContent:"space-between",alignItems:"center",children:[v.jsx(nA,{}),v.jsx(OH,{})]}),v.jsx(kH,{children:e}),n&&v.jsx(OH,{sx:{position:"absolute",top:0,insetInlineEnd:0}})]})})},s4e=A.memo(o4e),l4e=Ut([Wd,ki],(e,t)=>{const{shouldPinParametersPanel:n}=e;return{shouldPinParametersPanel:n,activeTabName:t}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),KA=e=>{const{parametersPanelContent:t,children:n,...r}=e,i=et(),{activeTabName:a}=be(l4e),o=Qke(),l=c=>{const d=c.dataTransfer.getData("invokeai/imageUuid"),p=o(d);p&&(a==="img2img"?i(i0(p)):a==="unifiedCanvas"&&i(O2(p)))};return v.jsxs(Re,{...r,pos:"relative",w:"full",h:ewe,gap:4,children:[v.jsx(s4e,{children:t}),v.jsx($n,{pos:"relative",w:"100%",h:"100%",onDrop:l,children:n})]})},u4e=e=>{const{styleClass:t}=e,n=A.useContext(sA),r=()=>{n&&n()};return v.jsx(Re,{sx:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center"},className:t,children:v.jsxs(Re,{onClick:r,sx:{display:"flex",flexDirection:"column",rowGap:8,p:8,borderRadius:"base",alignItems:"center",justifyContent:"center",textAlign:"center",cursor:"pointer",color:"base.600",bg:"base.800",_hover:{bg:"base.700"}},children:[v.jsx(Pa,{as:fE,boxSize:24}),v.jsx(Vu,{size:"md",children:"Click or Drag and Drop"})]})})};function c4e(){const e=be(i=>i.postprocessing.facetoolType),t=et(),{t:n}=tt(),r=i=>t(V2(i.target.value));return v.jsx(wl,{label:n("parameters.type"),validValues:cJ.concat(),value:e,onChange:r})}function d4e(){const e=be(i=>i.system.isGFPGANAvailable),t=be(i=>i.postprocessing.facetoolStrength),{t:n}=tt(),r=et();return v.jsx(ni,{isSliderDisabled:!e,isInputDisabled:!e,isResetDisabled:!e,label:n("parameters.strength"),step:.05,min:0,max:1,onChange:i=>r(U2(i)),handleReset:()=>r(U2(.75)),value:t,withReset:!0,withSliderMarks:!0,withInput:!0})}function f4e(){const e=be(i=>i.system.isGFPGANAvailable),t=be(i=>i.postprocessing.codeformerFidelity),{t:n}=tt(),r=et();return v.jsx(ni,{isSliderDisabled:!e,isInputDisabled:!e,isResetDisabled:!e,label:n("parameters.codeformerFidelity"),step:.05,min:0,max:1,onChange:i=>r(Ck(i)),handleReset:()=>r(Ck(1)),value:t,withReset:!0,withSliderMarks:!0,withInput:!0})}const XA=()=>{const e=be(t=>t.postprocessing.facetoolType);return v.jsxs(Mn,{gap:2,alignItems:"stretch",children:[v.jsx(c4e,{}),v.jsx(d4e,{}),e==="codeformer"&&v.jsx(f4e,{})]})};function h4e(){const e=be(i=>i.system.isESRGANAvailable),t=be(i=>i.postprocessing.upscalingDenoising),{t:n}=tt(),r=et();return v.jsx(ni,{label:n("parameters.denoisingStrength"),value:t,min:0,max:1,step:.01,onChange:i=>{r(Ek(i))},handleReset:()=>r(Ek(.75)),withSliderMarks:!0,withInput:!0,withReset:!0,isSliderDisabled:!e,isInputDisabled:!e,isResetDisabled:!e})}function p4e(){const e=be(i=>i.system.isESRGANAvailable),t=be(i=>i.postprocessing.upscalingStrength),{t:n}=tt(),r=et();return v.jsx(ni,{label:`${n("parameters.upscale")} ${n("parameters.strength")}`,value:t,min:0,max:1,step:.05,onChange:i=>r(_k(i)),handleReset:()=>r(_k(.75)),withSliderMarks:!0,withInput:!0,withReset:!0,isSliderDisabled:!e,isInputDisabled:!e,isResetDisabled:!e})}function m4e(){const e=be(a=>a.system.isESRGANAvailable),t=be(a=>a.postprocessing.upscalingLevel),{t:n}=tt(),r=et(),i=a=>r(L6(Number(a.target.value)));return v.jsx(wl,{isDisabled:!e,label:n("parameters.scale"),value:t,onChange:i,validValues:uJ})}const QA=()=>v.jsxs(Mn,{gap:2,alignItems:"stretch",children:[v.jsx(m4e,{}),v.jsx(h4e,{}),v.jsx(p4e,{})]}),ZA=e=>e.postprocessing,v4e=Ut(Li,e=>{const{shouldConfirmOnDelete:t,isConnected:n,isProcessing:r}=e;return{shouldConfirmOnDelete:t,isConnected:n,isProcessing:r}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),jE=Et(({image:e,children:t},n)=>{const{isOpen:r,onOpen:i,onClose:a}=Np(),o=et(),{shouldConfirmOnDelete:l,isConnected:c,isProcessing:d}=be(v4e),p=A.useRef(null),g=C=>{C.stopPropagation(),l?i():S()},S=()=>{c&&!d&&e&&o(Bee(e)),a()};At("delete",()=>{l?i():S()},[e,l,c,d]);const w=C=>o(II(!C.target.checked));return v.jsxs(v.Fragment,{children:[A.cloneElement(t,{onClick:e?g:void 0,ref:n}),v.jsx(OF,{isOpen:r,leastDestructiveRef:p,onClose:a,children:v.jsx(hh,{children:v.jsxs(DF,{children:[v.jsx(fh,{fontSize:"lg",fontWeight:"bold",children:"Delete image"}),v.jsx(ph,{children:v.jsxs(Re,{direction:"column",gap:5,children:[v.jsx(Gt,{children:"Are you sure? Deleted images will be sent to the Bin. You can restore from there if you wish to."}),v.jsx(Cl,{label:"Don't ask me again",isChecked:!l,onChange:w})]})}),v.jsxs(dh,{children:[v.jsx(mr,{ref:p,onClick:a,children:"Cancel"}),v.jsx(mr,{colorScheme:"error",onClick:S,ml:3,children:"Delete"})]})]})})})]})});jE.displayName="DeleteImageModal";const JA=()=>{const e=et();return t=>{const n=typeof t=="string"?t:r0(t),[r,i]=c6(n);e(b6(r)),e(S6(i))}},g4e=Ut([Li,gh,ZA,Wd,MS,ki],(e,t,n,r,i,a)=>{const{isProcessing:o,isConnected:l,isGFPGANAvailable:c,isESRGANAvailable:d}=e,{upscalingLevel:p,facetoolStrength:g}=n,{isLightboxOpen:S}=i,{shouldShowImageDetails:w}=r,{intermediateImage:C,currentImage:k}=t;return{isProcessing:o,isConnected:l,isGFPGANAvailable:c,isESRGANAvailable:d,upscalingLevel:p,facetoolStrength:g,shouldDisableToolbarButtons:Boolean(C)||!k,currentImage:k,shouldShowImageDetails:w,activeTabName:a,isLightboxOpen:S}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),DH=e=>{var K,fe,X,G,te,re,oe,ie;const t=et(),{isProcessing:n,isConnected:r,isGFPGANAvailable:i,isESRGANAvailable:a,upscalingLevel:o,facetoolStrength:l,shouldDisableToolbarButtons:c,shouldShowImageDetails:d,currentImage:p,isLightboxOpen:g,activeTabName:S}=be(g4e),w=nS(),{t:C}=tt(),k=JA(),P=()=>{p&&(g&&t($m(!1)),t(i0(p)),t(ml("img2img")))},D=async()=>{if(!p)return;const le=await fetch(p.url).then(de=>de.blob()),ee=[new ClipboardItem({[le.type]:le})];await navigator.clipboard.write(ee),w({title:C("toast.imageCopied"),status:"success",duration:2500,isClosable:!0})},M=()=>{navigator.clipboard.writeText(p?window.location.toString()+p.url:"").then(()=>{w({title:C("toast.imageLinkCopied"),status:"success",duration:2500,isClosable:!0})})};At("shift+i",()=>{p?(P(),w({title:C("toast.sentToImageToImage"),status:"success",duration:2500,isClosable:!0})):w({title:C("toast.imageNotLoaded"),description:C("toast.imageNotLoadedDesc"),status:"error",duration:2500,isClosable:!0})},[p]);const R=()=>{var le,ee;p&&(p.metadata&&t(m6(p.metadata)),((le=p.metadata)==null?void 0:le.image.type)==="img2img"?t(ml("img2img")):((ee=p.metadata)==null?void 0:ee.image.type)==="txt2img"&&t(ml("txt2img")))};At("a",()=>{var le,ee;["txt2img","img2img"].includes((ee=(le=p==null?void 0:p.metadata)==null?void 0:le.image)==null?void 0:ee.type)?(R(),w({title:C("toast.parametersSet"),status:"success",duration:2500,isClosable:!0})):w({title:C("toast.parametersNotSet"),description:C("toast.parametersNotSetDesc"),status:"error",duration:2500,isClosable:!0})},[p]);const L=()=>{p!=null&&p.metadata&&t(Vb(p.metadata.image.seed))};At("s",()=>{var le,ee;(ee=(le=p==null?void 0:p.metadata)==null?void 0:le.image)!=null&&ee.seed?(L(),w({title:C("toast.seedSet"),status:"success",duration:2500,isClosable:!0})):w({title:C("toast.seedNotSet"),description:C("toast.seedNotSetDesc"),status:"error",duration:2500,isClosable:!0})},[p]);const z=A.useCallback(()=>{var le,ee,de,Fe;(ee=(le=p==null?void 0:p.metadata)==null?void 0:le.image)!=null&&ee.prompt&&k((Fe=(de=p==null?void 0:p.metadata)==null?void 0:de.image)==null?void 0:Fe.prompt)},[(fe=(K=p==null?void 0:p.metadata)==null?void 0:K.image)==null?void 0:fe.prompt,k]);At("p",()=>{var le,ee;(ee=(le=p==null?void 0:p.metadata)==null?void 0:le.image)!=null&&ee.prompt?(z(),w({title:C("toast.promptSet"),status:"success",duration:2500,isClosable:!0})):w({title:C("toast.promptNotSet"),description:C("toast.promptNotSetDesc"),status:"error",duration:2500,isClosable:!0})},[p]);const U=()=>{p&&t(Lee(p))};At("Shift+U",()=>{a&&!c&&r&&!n&&o?U():w({title:C("toast.upscalingFailed"),status:"error",duration:2500,isClosable:!0})},[p,a,c,r,n,o]);const V=()=>{p&&t(zee(p))};At("Shift+R",()=>{i&&!c&&r&&!n&&l?V():w({title:C("toast.faceRestoreFailed"),status:"error",duration:2500,isClosable:!0})},[p,i,c,r,n,l]);const Y=()=>t(VI(!d)),J=()=>{p&&(g&&t($m(!1)),t(O2(p)),t(gs()),S!=="unifiedCanvas"&&t(ml("unifiedCanvas")),w({title:C("toast.sentToUnifiedCanvas"),status:"success",duration:2500,isClosable:!0}))};At("i",()=>{p?Y():w({title:C("toast.metadataLoadFailed"),status:"error",duration:2500,isClosable:!0})},[p,d]);const $=()=>{t($m(!g))};return v.jsxs(Re,{sx:{justifyContent:"center",alignItems:"center",columnGap:"0.5em"},...e,children:[v.jsxs(jo,{isAttached:!0,children:[v.jsx(Vc,{trigger:"hover",triggerComponent:v.jsx(_t,{"aria-label":`${C("parameters.sendTo")}...`,icon:v.jsx(Cxe,{})}),children:v.jsxs(Re,{sx:{flexDirection:"column",rowGap:2},children:[v.jsx(mr,{size:"sm",onClick:P,leftIcon:v.jsx(SU,{}),children:C("parameters.sendToImg2Img")}),v.jsx(mr,{size:"sm",onClick:J,leftIcon:v.jsx(SU,{}),children:C("parameters.sendToUnifiedCanvas")}),v.jsx(mr,{size:"sm",onClick:D,leftIcon:v.jsx(ly,{}),children:C("parameters.copyImage")}),v.jsx(mr,{size:"sm",onClick:M,leftIcon:v.jsx(ly,{}),children:C("parameters.copyImageToLink")}),v.jsx(kv,{download:!0,href:p==null?void 0:p.url,children:v.jsx(mr,{leftIcon:v.jsx(rA,{}),size:"sm",w:"100%",children:C("parameters.downloadImage")})})]})}),v.jsx(_t,{icon:v.jsx(sxe,{}),tooltip:g?`${C("parameters.closeViewer")} (Z)`:`${C("parameters.openInViewer")} (Z)`,"aria-label":g?`${C("parameters.closeViewer")} (Z)`:`${C("parameters.openInViewer")} (Z)`,isChecked:g,onClick:$})]}),v.jsxs(jo,{isAttached:!0,children:[v.jsx(_t,{icon:v.jsx(yxe,{}),tooltip:`${C("parameters.usePrompt")} (P)`,"aria-label":`${C("parameters.usePrompt")} (P)`,isDisabled:!((G=(X=p==null?void 0:p.metadata)==null?void 0:X.image)!=null&&G.prompt),onClick:z}),v.jsx(_t,{icon:v.jsx(wxe,{}),tooltip:`${C("parameters.useSeed")} (S)`,"aria-label":`${C("parameters.useSeed")} (S)`,isDisabled:!((re=(te=p==null?void 0:p.metadata)==null?void 0:te.image)!=null&&re.seed),onClick:L}),v.jsx(_t,{icon:v.jsx(rxe,{}),tooltip:`${C("parameters.useAll")} (A)`,"aria-label":`${C("parameters.useAll")} (A)`,isDisabled:!["txt2img","img2img"].includes((ie=(oe=p==null?void 0:p.metadata)==null?void 0:oe.image)==null?void 0:ie.type),onClick:R})]}),v.jsxs(jo,{isAttached:!0,children:[v.jsx(Vc,{trigger:"hover",triggerComponent:v.jsx(_t,{icon:v.jsx(cxe,{}),"aria-label":C("parameters.restoreFaces")}),children:v.jsxs(Re,{sx:{flexDirection:"column",rowGap:4},children:[v.jsx(XA,{}),v.jsx(mr,{isDisabled:!i||!p||!(r&&!n)||!l,onClick:V,children:C("parameters.restoreFaces")})]})}),v.jsx(Vc,{trigger:"hover",triggerComponent:v.jsx(_t,{icon:v.jsx(oxe,{}),"aria-label":C("parameters.upscale")}),children:v.jsxs(Re,{sx:{flexDirection:"column",gap:4},children:[v.jsx(QA,{}),v.jsx(mr,{isDisabled:!a||!p||!(r&&!n)||!o,onClick:U,children:C("parameters.upscaleImage")})]})})]}),v.jsx(jo,{isAttached:!0,children:v.jsx(_t,{icon:v.jsx(hU,{}),tooltip:`${C("parameters.info")} (I)`,"aria-label":`${C("parameters.info")} (I)`,isChecked:d,onClick:Y})}),v.jsx(jE,{image:p,children:v.jsx(_t,{icon:v.jsx(Mv,{}),tooltip:`${C("parameters.deleteImage")} (Del)`,"aria-label":`${C("parameters.deleteImage")} (Del)`,isDisabled:!p||!r||n,colorScheme:"error"})})]})};function y4e(e){return Vt({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M245.09 327.74v-37.32c57.07 0 84.51 13.47 108.58 38.68 5.4 5.65 15 1.32 14.29-6.43-5.45-61.45-34.14-117.09-122.87-117.09v-37.32a8.32 8.32 0 00-14.05-6L146.58 242a8.2 8.2 0 000 11.94L231 333.71a8.32 8.32 0 0014.09-5.97z"}},{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M256 64C150 64 64 150 64 256s86 192 192 192 192-86 192-192S362 64 256 64z"}}]})(e)}const Ai=({label:e,value:t,onClick:n,isLink:r,labelPosition:i,withCopy:a=!1})=>{const{t:o}=tt();return v.jsxs(Re,{gap:2,children:[n&&v.jsx(oo,{label:`Recall ${e}`,children:v.jsx(Ip,{"aria-label":o("accessibility.useThisParameter"),icon:v.jsx(y4e,{}),size:"xs",variant:"ghost",fontSize:20,onClick:n})}),a&&v.jsx(oo,{label:`Copy ${e}`,children:v.jsx(Ip,{"aria-label":`Copy ${e}`,icon:v.jsx(ly,{}),size:"xs",variant:"ghost",fontSize:14,onClick:()=>navigator.clipboard.writeText(t.toString())})}),v.jsxs(Re,{direction:i?"column":"row",children:[v.jsxs(Gt,{fontWeight:"semibold",whiteSpace:"pre-wrap",pr:2,children:[e,":"]}),r?v.jsxs(kv,{href:t.toString(),isExternal:!0,wordBreak:"break-all",children:[t.toString()," ",v.jsx(xH,{mx:"2px"})]}):v.jsx(Gt,{overflowY:"scroll",wordBreak:"break-all",children:t.toString()})]})]})},b4e=(e,t)=>e.image.uuid===t.image.uuid,$A=A.memo(({image:e})=>{var $,K;const t=et(),n=JA();At("esc",()=>{t(VI(!1))});const r=(($=e==null?void 0:e.metadata)==null?void 0:$.image)||{},i=e==null?void 0:e.dreamPrompt,{cfg_scale:a,fit:o,height:l,hires_fix:c,init_image_path:d,mask_image_path:p,orig_path:g,perlin:S,postprocessing:w,prompt:C,sampler:k,seamless:P,seed:D,steps:M,strength:R,threshold:L,type:z,variations:U,width:V}=r,{t:Y}=tt(),J=JSON.stringify(e.metadata,null,2);return v.jsxs(Re,{sx:{padding:4,gap:1,flexDirection:"column",width:"full",height:"full",backdropFilter:"blur(20px)",bg:"whiteAlpha.600",_dark:{bg:"blackAlpha.600"}},children:[v.jsxs(Re,{gap:2,children:[v.jsx(Gt,{fontWeight:"semibold",children:"File:"}),v.jsxs(kv,{href:e.url,isExternal:!0,maxW:"calc(100% - 3rem)",children:[e.url.length>64?e.url.substring(0,64).concat("..."):e.url,v.jsx(xH,{mx:"2px"})]})]}),Object.keys(r).length>0?v.jsxs(v.Fragment,{children:[z&&v.jsx(Ai,{label:"Generation type",value:z}),((K=e.metadata)==null?void 0:K.model_weights)&&v.jsx(Ai,{label:"Model",value:e.metadata.model_weights}),["esrgan","gfpgan"].includes(z)&&v.jsx(Ai,{label:"Original image",value:g}),C&&v.jsx(Ai,{label:"Prompt",labelPosition:"top",value:typeof C=="string"?C:r0(C),onClick:()=>n(C)}),D!==void 0&&v.jsx(Ai,{label:"Seed",value:D,onClick:()=>t(Vb(D))}),L!==void 0&&v.jsx(Ai,{label:"Noise Threshold",value:L,onClick:()=>t(wk(L))}),S!==void 0&&v.jsx(Ai,{label:"Perlin Noise",value:S,onClick:()=>t(Sk(S))}),k&&v.jsx(Ai,{label:"Sampler",value:k,onClick:()=>t(x6(k))}),M&&v.jsx(Ai,{label:"Steps",value:M,onClick:()=>t(xk(M))}),a!==void 0&&v.jsx(Ai,{label:"CFG scale",value:a,onClick:()=>t(yk(a))}),U&&U.length>0&&v.jsx(Ai,{label:"Seed-weight pairs",value:z2(U),onClick:()=>t(k6(z2(U)))}),P&&v.jsx(Ai,{label:"Seamless",value:P,onClick:()=>t(C6(P))}),c&&v.jsx(Ai,{label:"High Resolution Optimization",value:c,onClick:()=>t(R6(c))}),V&&v.jsx(Ai,{label:"Width",value:V,onClick:()=>t(F2(V))}),l&&v.jsx(Ai,{label:"Height",value:l,onClick:()=>t(B2(l))}),d&&v.jsx(Ai,{label:"Initial image",value:d,isLink:!0,onClick:()=>t(i0(d))}),p&&v.jsx(Ai,{label:"Mask image",value:p,isLink:!0,onClick:()=>t(y6(p))}),z==="img2img"&&R&&v.jsx(Ai,{label:"Image to image strength",value:R,onClick:()=>t(bk(R))}),o&&v.jsx(Ai,{label:"Image to image fit",value:o,onClick:()=>t(P6(o))}),w&&w.length>0&&v.jsxs(v.Fragment,{children:[v.jsx(Vu,{size:"sm",children:"Postprocessing"}),w.map((fe,X)=>{if(fe.type==="esrgan"){const{scale:G,strength:te,denoise_str:re}=fe;return v.jsxs(Re,{pl:8,gap:1,direction:"column",children:[v.jsx(Gt,{size:"md",children:`${X+1}: Upscale (ESRGAN)`}),v.jsx(Ai,{label:"Scale",value:G,onClick:()=>t(L6(G))}),v.jsx(Ai,{label:"Strength",value:te,onClick:()=>t(_k(te))}),re!==void 0&&v.jsx(Ai,{label:"Denoising strength",value:re,onClick:()=>t(Ek(re))})]},X)}else if(fe.type==="gfpgan"){const{strength:G}=fe;return v.jsxs(Re,{pl:8,gap:1,direction:"column",children:[v.jsx(Gt,{size:"md",children:`${X+1}: Face restoration (GFPGAN)`}),v.jsx(Ai,{label:"Strength",value:G,onClick:()=>{t(U2(G)),t(V2("gfpgan"))}})]},X)}else if(fe.type==="codeformer"){const{strength:G,fidelity:te}=fe;return v.jsxs(Re,{pl:8,gap:1,direction:"column",children:[v.jsx(Gt,{size:"md",children:`${X+1}: Face restoration (Codeformer)`}),v.jsx(Ai,{label:"Strength",value:G,onClick:()=>{t(U2(G)),t(V2("codeformer"))}}),te&&v.jsx(Ai,{label:"Fidelity",value:te,onClick:()=>{t(Ck(te)),t(V2("codeformer"))}})]},X)}})]}),i&&v.jsx(Ai,{withCopy:!0,label:"Dream Prompt",value:i}),v.jsxs(Re,{gap:2,direction:"column",children:[v.jsxs(Re,{gap:2,children:[v.jsx(oo,{label:"Copy metadata JSON",children:v.jsx(Ip,{"aria-label":Y("accessibility.copyMetadataJson"),icon:v.jsx(ly,{}),size:"xs",variant:"ghost",fontSize:14,onClick:()=>navigator.clipboard.writeText(J)})}),v.jsx(Gt,{fontWeight:"semibold",children:"Metadata JSON:"})]}),v.jsx($n,{sx:{mt:0,mr:2,mb:4,ml:2,padding:4,borderRadius:"base",overflowX:"scroll",wordBreak:"break-all",bg:"whiteAlpha.500",_dark:{bg:"blackAlpha.500"}},children:v.jsx("pre",{children:J})})]})]}):v.jsx(zB,{width:"100%",pt:10,children:v.jsx(Gt,{fontSize:"lg",fontWeight:"semibold",children:"No metadata available"})})]})},b4e);$A.displayName="ImageMetadataViewer";const MH={height:"100%",width:"15%",alignItems:"center",pointerEvents:"auto"},jH={color:"base.100"},S4e=Ut(gh,e=>{const{currentImage:t}=e,n=e.categories[t?t.category:"result"].images,r=n.findIndex(a=>{var o;return a.uuid===((o=e==null?void 0:e.currentImage)==null?void 0:o.uuid)}),i=n.length;return{isOnFirstImage:r===0,isOnLastImage:!isNaN(r)&&r===i-1}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),IH=()=>{const e=et(),{t}=tt(),{isOnFirstImage:n,isOnLastImage:r}=be(S4e),[i,a]=A.useState(!1),o=()=>{a(!0)},l=()=>{a(!1)},c=()=>{e(l6())},d=()=>{e(s6())};return v.jsxs(Re,{sx:{justifyContent:"space-between",zIndex:1,height:"100%",width:"100%",pointerEvents:"none"},children:[v.jsx(zc,{sx:{...MH,justifyContent:"flex-start"},onMouseOver:o,onMouseOut:l,children:i&&!n&&v.jsx(Ip,{"aria-label":t("accessibility.previousImage"),icon:v.jsx($Se,{size:64}),variant:"unstyled",onClick:c,boxSize:16,sx:jH})}),v.jsx(zc,{sx:{...MH,justifyContent:"flex-end"},onMouseOver:o,onMouseOut:l,children:i&&!r&&v.jsx(Ip,{"aria-label":t("accessibility.nextImage"),icon:v.jsx(exe,{size:64}),variant:"unstyled",onClick:d,boxSize:16,sx:jH})})]})},x4e=Ut([gh,Wd],(e,t)=>{const{currentImage:n,intermediateImage:r}=e,{shouldShowImageDetails:i}=t;return{imageToDisplay:r||n,isIntermediate:Boolean(r),shouldShowImageDetails:i}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}});function w4e(){const{shouldShowImageDetails:e,imageToDisplay:t,isIntermediate:n}=be(x4e);return v.jsxs(Re,{sx:{position:"relative",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},children:[t&&v.jsx(iS,{src:t.url,width:t.width,height:t.height,sx:{objectFit:"contain",maxWidth:"100%",maxHeight:"100%",height:"auto",position:"absolute",imageRendering:n?"pixelated":"initial",borderRadius:"base"}}),!e&&v.jsx(IH,{}),e&&t&&v.jsx($n,{sx:{position:"absolute",top:"0",width:"100%",height:"100%",borderRadius:"base",overflow:"scroll",maxHeight:twe},children:v.jsx($A,{image:t})})]})}const C4e=Ut([gh],e=>{const{currentImage:t,intermediateImage:n}=e;return{hasAnImageToDisplay:t||n}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),RH=()=>{const{hasAnImageToDisplay:e}=be(C4e);return v.jsx(Re,{sx:{flexDirection:"column",height:"100%",width:"100%",rowGap:4,borderRadius:"base"},children:e?v.jsxs(v.Fragment,{children:[v.jsx(DH,{}),v.jsx(w4e,{})]}):v.jsx(Re,{sx:{alignItems:"center",justifyContent:"center",width:"100%",height:"100%"},children:v.jsx(Pa,{as:Fke,sx:{boxSize:24,color:"base.500"}})})})},E4e=()=>{const{t:e}=tt(),t=A.useContext(sA);return v.jsx(_t,{"aria-label":e("accessibility.uploadImage"),tooltip:"Upload Image",icon:v.jsx(fE,{}),onClick:t||void 0})};function _4e(){const e=be(a=>a.generation.initialImage),{t}=tt(),n=et(),r=nS(),i=()=>{r({title:t("toast.parametersFailed"),description:t("toast.parametersFailedDesc"),status:"error",isClosable:!0}),n(p6())};return v.jsxs(v.Fragment,{children:[v.jsxs(Re,{sx:{alignItems:"center",justifyContent:"center",w:"100%",gap:4},children:[v.jsx(Gt,{sx:{fontSize:"lg"},variant:"subtext",children:t("parameters.initialImage")}),v.jsx(E4e,{})]}),e&&v.jsx(Re,{sx:{position:"relative",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},children:v.jsx(iS,{sx:{fit:"contain",maxWidth:"100%",maxHeight:"100%",borderRadius:"base",objectFit:"contain",position:"absolute"},src:typeof e=="string"?e:e.url,onError:i})})]})}const NH={flexDirection:"column",height:"100%",width:"100%",gap:4,padding:4},T4e=()=>{const t=be(n=>n.generation.initialImage)?v.jsx(Re,{flexDirection:"column",gap:4,w:"100%",h:"100%",children:v.jsx(_4e,{})}):v.jsx(u4e,{});return v.jsxs(zc,{sx:{w:"100%",h:"100%",gridTemplateColumns:"1fr 1fr",borderRadius:"base",bg:"base.850"},children:[v.jsx(Re,{sx:{...NH,paddingInlineEnd:2},children:t}),v.jsx(Re,{sx:{...NH,paddingInlineStart:2},children:v.jsx(RH,{})})]})};var ys=(e=>(e[e.PROMPT=0]="PROMPT",e[e.GALLERY=1]="GALLERY",e[e.OTHER=2]="OTHER",e[e.SEED=3]="SEED",e[e.VARIATIONS=4]="VARIATIONS",e[e.UPSCALE=5]="UPSCALE",e[e.FACE_CORRECTION=6]="FACE_CORRECTION",e[e.IMAGE_TO_IMAGE=7]="IMAGE_TO_IMAGE",e[e.BOUNDING_BOX=8]="BOUNDING_BOX",e[e.SEAM_CORRECTION=9]="SEAM_CORRECTION",e[e.INFILL_AND_SCALING=10]="INFILL_AND_SCALING",e))(ys||{});const k4e=()=>{const{t:e}=tt();return A.useMemo(()=>({[0]:{text:e("tooltip.feature.prompt"),href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[1]:{text:e("tooltip.feature.gallery"),href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[2]:{text:e("tooltip.feature.other"),href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[3]:{text:e("tooltip.feature.seed"),href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[4]:{text:e("tooltip.feature.variations"),href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[5]:{text:e("tooltip.feature.upscale"),href:"link/to/docs/feature1.html",guideImage:"asset/path.gif"},[6]:{text:e("tooltip.feature.faceCorrection"),href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[7]:{text:e("tooltip.feature.imageToImage"),href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[8]:{text:e("tooltip.feature.boundingBox"),href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[9]:{text:e("tooltip.feature.seamCorrection"),href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"},[10]:{text:e("tooltip.feature.infillAndScaling"),href:"link/to/docs/feature3.html",guideImage:"asset/path.gif"}}),[e])},P4e=e=>k4e()[e];function LH(){const e=be(i=>i.system.isGFPGANAvailable),t=be(i=>i.postprocessing.shouldRunFacetool),n=et(),r=i=>n(wX(i.target.checked));return v.jsx(Cl,{isDisabled:!e,isChecked:t,onChange:r})}const zH=()=>{const e=et(),t=be(i=>i.generation.seamless),n=i=>e(C6(i.target.checked)),{t:r}=tt();return v.jsx(Cl,{label:r("parameters.seamlessTiling"),fontSize:"md",isChecked:t,onChange:n})},A4e=()=>v.jsx(Mn,{gap:2,alignItems:"stretch",children:v.jsx(zH,{})});function eO(){const e=be(a=>a.generation.horizontalSymmetrySteps),t=be(a=>a.generation.verticalSymmetrySteps),n=be(a=>a.generation.steps),r=et(),{t:i}=tt();return v.jsxs(Mn,{gap:2,alignItems:"stretch",children:[v.jsx(ni,{label:i("parameters.hSymmetryStep"),value:e,onChange:a=>r(D6(a)),min:0,max:n,step:1,withInput:!0,withSliderMarks:!0,withReset:!0,handleReset:()=>r(D6(0))}),v.jsx(ni,{label:i("parameters.vSymmetryStep"),value:t,onChange:a=>r(M6(a)),min:0,max:n,step:1,withInput:!0,withSliderMarks:!0,withReset:!0,handleReset:()=>r(M6(0))})]})}function tO(){const e=be(n=>n.generation.shouldUseSymmetry),t=et();return v.jsx(Cl,{isChecked:e,onChange:n=>t(yX(n.target.checked))})}function O4e(){const e=et(),t=be(r=>r.generation.perlin),{t:n}=tt();return v.jsx(ni,{label:n("parameters.perlinNoise"),min:0,max:1,step:.05,onChange:r=>e(Sk(r)),handleReset:()=>e(Sk(0)),value:t,withInput:!0,withReset:!0,withSliderMarks:!0})}function D4e(){const e=et(),{t}=tt(),n=be(i=>i.generation.shouldRandomizeSeed),r=i=>e(gX(i.target.checked));return v.jsx(Cl,{label:t("parameters.randomizeSeed"),isChecked:n,onChange:r})}function M4e(){const e=et(),t=be(i=>i.generation.shouldRandomizeSeed),{t:n}=tt(),r=()=>e(Vb(vN(Wk,qk)));return v.jsx(Cv,{size:"sm",isDisabled:t,onClick:r,padding:"0 1.5rem",children:v.jsx("p",{children:n("parameters.shuffle")})})}function j4e(){const e=be(o=>o.generation.seed),t=be(o=>o.generation.shouldRandomizeSeed),n=be(o=>o.generation.shouldGenerateVariations),{t:r}=tt(),i=et(),a=o=>i(Vb(o));return v.jsxs(X0,{gap:2,children:[v.jsx(mh,{label:r("parameters.seed"),step:1,precision:0,flexGrow:1,min:Wk,max:qk,isDisabled:t,isInvalid:e<0&&n,onChange:a,value:e,formControlProps:{display:"flex",alignItems:"center",gap:3}}),v.jsx(M4e,{})]})}function I4e(){const e=et(),t=be(r=>r.generation.threshold),{t:n}=tt();return v.jsx(ni,{label:n("parameters.noiseThreshold"),min:0,max:20,step:.1,onChange:r=>e(wk(r)),handleReset:()=>e(wk(0)),value:t,withInput:!0,withReset:!0,withSliderMarks:!0})}const nO=()=>v.jsxs(Mn,{gap:2,alignItems:"stretch",children:[v.jsx(D4e,{}),v.jsx(j4e,{}),v.jsx(I4e,{}),v.jsx(O4e,{})]});function BH(){const e=be(i=>i.system.isESRGANAvailable),t=be(i=>i.postprocessing.shouldRunESRGAN),n=et(),r=i=>n(xX(i.target.checked));return v.jsx(Cl,{isDisabled:!e,isChecked:t,onChange:r})}function rO(){const e=be(r=>r.generation.shouldGenerateVariations),t=et(),n=r=>t(vX(r.target.checked));return v.jsx(Cl,{isChecked:e,width:"auto",onChange:n})}function R4e(){const e=be(a=>a.generation.seedWeights),t=be(a=>a.generation.shouldGenerateVariations),{t:n}=tt(),r=et(),i=a=>r(k6(a.target.value));return v.jsx(xi,{label:n("parameters.seedWeights"),value:e,isInvalid:t&&!(gk(e)||e===""),isDisabled:!t,onChange:i})}function N4e(){const e=be(i=>i.generation.variationAmount),t=be(i=>i.generation.shouldGenerateVariations),{t:n}=tt(),r=et();return v.jsx(ni,{label:n("parameters.variationAmount"),value:e,step:.01,min:0,max:1,isSliderDisabled:!t,isInputDisabled:!t,isResetDisabled:!t,onChange:i=>r(O6(i)),handleReset:()=>r(O6(.1)),withInput:!0,withReset:!0,withSliderMarks:!0})}const iO=()=>v.jsxs(Mn,{gap:2,alignItems:"stretch",children:[v.jsx(N4e,{}),v.jsx(R4e,{})]});function FH(){const e=et(),t=be(a=>a.generation.cfgScale),n=be(a=>a.ui.shouldUseSliders),{t:r}=tt(),i=a=>e(yk(a));return n?v.jsx(ni,{label:r("parameters.cfgScale"),step:.5,min:1.01,max:30,onChange:i,handleReset:()=>e(yk(7.5)),value:t,sliderNumberInputProps:{max:200},withInput:!0,withReset:!0,withSliderMarks:!0}):v.jsx(mh,{label:r("parameters.cfgScale"),step:.5,min:1.01,max:200,onChange:i,value:t,isInteger:!1,numberInputFieldProps:{textAlign:"center"}})}function UH(){const e=be(a=>a.generation.height),t=be(a=>a.ui.shouldUseSliders),n=be(ki),r=et(),{t:i}=tt();return t?v.jsx(ni,{isSliderDisabled:n==="unifiedCanvas",isInputDisabled:n==="unifiedCanvas",isResetDisabled:n==="unifiedCanvas",label:i("parameters.height"),value:e,min:64,step:64,max:2048,onChange:a=>r(B2(a)),handleReset:()=>r(B2(512)),withInput:!0,withReset:!0,withSliderMarks:!0,sliderNumberInputProps:{max:15360}}):v.jsx(wl,{isDisabled:n==="unifiedCanvas",label:i("parameters.height"),value:e,flexGrow:1,onChange:a=>r(B2(Number(a.target.value))),validValues:lJ})}function VH(){const e=be(a=>a.generation.iterations),t=be(a=>a.ui.shouldUseSliders),n=et(),{t:r}=tt(),i=a=>n(g6(a));return t?v.jsx(ni,{label:r("parameters.images"),step:1,min:1,max:16,onChange:i,handleReset:()=>n(g6(1)),value:e,withInput:!0,withReset:!0,withSliderMarks:!0,sliderNumberInputProps:{max:9999}}):v.jsx(mh,{label:r("parameters.images"),step:1,min:1,max:9999,onChange:i,value:e,numberInputFieldProps:{textAlign:"center"}})}function HH(){const e=be(a=>a.generation.sampler),t=be(rV),n=et(),{t:r}=tt(),i=a=>n(x6(a.target.value));return v.jsx(wl,{label:r("parameters.sampler"),value:e,onChange:i,validValues:t.format==="diffusers"?oJ:aJ,minWidth:36})}function GH(){const e=et(),t=be(o=>o.generation.steps),n=be(o=>o.ui.shouldUseSliders),{t:r}=tt(),i=o=>{e(xk(o))},a=()=>{e(h6())};return n?v.jsx(ni,{label:r("parameters.steps"),min:1,step:1,onChange:i,handleReset:()=>e(xk(20)),value:t,withInput:!0,withReset:!0,withSliderMarks:!0,sliderNumberInputProps:{max:9999}}):v.jsx(mh,{label:r("parameters.steps"),min:1,max:9999,step:1,onChange:i,value:t,numberInputFieldProps:{textAlign:"center"},onBlur:a})}function WH(){const e=be(a=>a.generation.width),t=be(a=>a.ui.shouldUseSliders),n=be(ki),{t:r}=tt(),i=et();return t?v.jsx(ni,{isSliderDisabled:n==="unifiedCanvas",isInputDisabled:n==="unifiedCanvas",isResetDisabled:n==="unifiedCanvas",label:r("parameters.width"),value:e,min:64,step:64,max:2048,onChange:a=>i(F2(a)),handleReset:()=>i(F2(512)),withInput:!0,withReset:!0,withSliderMarks:!0,inputReadOnly:!0,sliderNumberInputProps:{max:15360}}):v.jsx(wl,{isDisabled:n==="unifiedCanvas",label:r("parameters.width"),value:e,flexGrow:1,onChange:a=>i(F2(Number(a.target.value))),validValues:sJ})}function aO(){return be(t=>t.ui.shouldUseSliders)?v.jsxs(Mn,{gap:2,children:[v.jsx(VH,{}),v.jsx(GH,{}),v.jsx(FH,{}),v.jsx(WH,{}),v.jsx(UH,{}),v.jsx(HH,{})]}):v.jsxs(Re,{rowGap:2,flexDirection:"column",children:[v.jsxs(Re,{columnGap:1,children:[v.jsx(VH,{}),v.jsx(GH,{}),v.jsx(FH,{})]}),v.jsxs(Re,{columnGap:1,children:[v.jsx(WH,{}),v.jsx(UH,{}),v.jsx(HH,{})]})]})}const L4e=Ut(Li,e=>e.shouldDisplayGuides),z4e=({children:e,feature:t})=>{const n=be(L4e),{text:r}=P4e(t);return n?v.jsxs(W3,{trigger:"hover",isLazy:!0,children:[v.jsx(H3,{children:v.jsx($n,{children:e})}),v.jsxs(Y3,{maxWidth:"400px",onClick:i=>i.preventDefault(),cursor:"initial",children:[v.jsx(q3,{}),v.jsx(NF,{children:r})]})]}):null},B4e=A.memo(z4e),F4e=Et(({feature:e,icon:t=jke},n)=>v.jsx(B4e,{feature:e,children:v.jsx($n,{ref:n,children:v.jsx(Pa,{marginBottom:"-.15rem",as:t})})})),U4e=A.memo(F4e);function V4e(e){const{header:t,feature:n,content:r,additionalHeaderComponents:i}=e;return v.jsxs(F0,{children:[v.jsx(z0,{children:v.jsxs(Re,{width:"100%",gap:2,align:"center",children:[v.jsx($n,{flexGrow:1,textAlign:"start",children:t}),i,n&&v.jsx(U4e,{feature:n}),v.jsx(B0,{})]})}),v.jsx(U0,{children:r})]})}const oO=e=>{const{accordionInfo:t}=e,n=be(o=>o.system.openAccordions),r=et(),i=o=>r(KQ(o)),a=()=>{const o=[];return t&&Object.keys(t).forEach(l=>{const{header:c,feature:d,content:p,additionalHeaderComponents:g}=t[l];o.push(v.jsx(V4e,{header:c,feature:d,content:p,additionalHeaderComponents:g},l))}),o};return v.jsx(T5,{defaultIndex:n,allowMultiple:!0,reduceMotion:!0,onChange:i,sx:{display:"flex",flexDirection:"column",gap:2},children:a()})},H4e=e=>{const{menuType:t="icon",iconTooltip:n,buttonText:r,isLazy:i=!0,menuItems:a,menuProps:o,menuButtonProps:l,menuListProps:c,menuItemProps:d}=e,p=()=>{const g=[];return a.forEach((S,w)=>{g.push(v.jsx(Gd,{onClick:S.onClick,fontSize:"sm",...d,children:S.item},w))}),g};return v.jsx(P3,{...o,isLazy:i,children:({isOpen:g})=>v.jsxs(v.Fragment,{children:[v.jsx(O3,{as:t==="icon"?Ip:Cv,tooltip:n,"aria-label":n,icon:g?v.jsx(Vke,{}):v.jsx(Uke,{}),paddingX:0,paddingY:t==="regular"?2:0,...l,children:t==="regular"&&r}),v.jsx(A3,{zIndex:15,padding:0,...c,children:p()})]})})},G4e=A.memo(H4e),W4e=Ut(Li,e=>({isProcessing:e.isProcessing,isConnected:e.isConnected,isCancelable:e.isCancelable,currentIteration:e.currentIteration,totalIterations:e.totalIterations,cancelType:e.cancelOptions.cancelType,cancelAfter:e.cancelOptions.cancelAfter}),{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),q4e=e=>{const t=et(),{btnGroupWidth:n="auto",...r}=e,{isProcessing:i,isConnected:a,isCancelable:o,currentIteration:l,totalIterations:c,cancelType:d,cancelAfter:p}=be(W4e),g=A.useCallback(()=>{t(Fee()),t(Rk(null))},[t]),{t:S}=tt(),w=p!==null;At("shift+x",()=>{(a||i)&&o&&g()},[a,i,o]),A.useEffect(()=>{p!==null&&p<l&&g()},[p,l,g]);const C=[{item:S("parameters.cancel.immediate"),onClick:()=>t(FI("immediate"))},{item:S("parameters.cancel.schedule"),onClick:()=>t(FI("scheduled"))}];return v.jsxs(jo,{isAttached:!0,width:n,children:[d==="immediate"?v.jsx(_t,{icon:v.jsx(Hke,{}),tooltip:S("parameters.cancel.immediate"),"aria-label":S("parameters.cancel.immediate"),isDisabled:!a||!i||!o,onClick:g,colorScheme:"error",...r}):v.jsx(_t,{icon:w?v.jsx(IC,{}):v.jsx(Mke,{}),tooltip:S(w?"parameters.cancel.isScheduled":"parameters.cancel.schedule"),"aria-label":S(w?"parameters.cancel.isScheduled":"parameters.cancel.schedule"),isDisabled:!a||!i||!o||l===c,onClick:()=>{t(Rk(w?null:l))},colorScheme:"error",...r}),v.jsx(G4e,{menuItems:C,iconTooltip:S("parameters.cancel.setType"),menuButtonProps:{colorScheme:"error",minWidth:5}})]})},sO=A.memo(q4e),xr=e=>e.canvas,da=Ut([xr,ki,Li],(e,t,n)=>e.layerState.stagingArea.images.length>0||t==="unifiedCanvas"&&n.isProcessing),qH=e=>e.canvas.layerState.objects.find(P2),lO=e=>e.generation;Ut(lO,({shouldRandomizeSeed:e,shouldGenerateVariations:t})=>e||t,{memoizeOptions:{resultEqualityCheck:Qe.isEqual}});const YH=Ut([lO,Li,qH,ki],(e,t,n,r)=>{const{prompt:i,shouldGenerateVariations:a,seedWeights:o,initialImage:l,seed:c}=e,{isProcessing:d,isConnected:p}=t;let g=!0;const S=[];return(!i||Boolean(i.match(/^[\s\r\n]+$/)))&&(g=!1,S.push("Missing prompt")),r==="img2img"&&!l&&(g=!1,S.push("No initial image selected")),d&&(g=!1,S.push("System Busy")),p||(g=!1,S.push("System Disconnected")),a&&(!(gk(o)||o==="")||c===-1)&&(g=!1,S.push("Seed-Weights badly formatted.")),{isReady:g,reasonsWhyNotReady:S}},{memoizeOptions:{equalityCheck:Qe.isEqual,resultEqualityCheck:Qe.isEqual}});function uO(e){const{iconButton:t=!1,...n}=e,r=et(),{isReady:i}=be(YH),a=be(ki),o=()=>{r(g4(a))},{t:l}=tt();return At(["ctrl+enter","meta+enter"],()=>{r(h6()),r(g4(a))},{enabled:()=>i,preventDefault:!0,enableOnFormTags:["input","textarea","select"]},[i,a]),v.jsx($n,{style:{flexGrow:4},children:t?v.jsx(_t,{"aria-label":l("parameters.invoke"),type:"submit",icon:v.jsx(gxe,{}),isDisabled:!i,onClick:o,flexGrow:1,w:"100%",tooltip:l("parameters.invoke"),tooltipProps:{placement:"bottom"},colorScheme:"accent",...n}):v.jsx(mr,{"aria-label":l("parameters.invoke"),type:"submit",isDisabled:!i,onClick:o,flexGrow:1,w:"100%",colorScheme:"accent",fontWeight:700,...n,children:"Invoke"})})}const Y4e=Ut(ZA,({shouldLoopback:e})=>e),K4e=()=>{const e=et(),t=be(Y4e),{t:n}=tt();return v.jsx(_t,{"aria-label":n("parameters.toggleLoopback"),tooltip:n("parameters.toggleLoopback"),isChecked:t,icon:v.jsx(bxe,{}),onClick:()=>{e(SX(!t))}})},cO=()=>{const e=be(ki);return v.jsxs(Re,{gap:2,children:[v.jsx(uO,{}),e==="img2img"&&v.jsx(K4e,{}),v.jsx(sO,{})]})},dO=()=>{const e=be(r=>r.generation.negativePrompt),t=et(),{t:n}=tt();return v.jsx(Or,{children:v.jsx($3,{id:"negativePrompt",name:"negativePrompt",value:e,onChange:r=>t(S6(r.target.value)),placeholder:n("parameters.negativePrompts"),_focusVisible:{borderColor:"error.600"},fontSize:"sm"})})},X4e=Ut([e=>e.generation,ki],(e,t)=>({prompt:e.prompt,activeTabName:t}),{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),fO=()=>{const e=et(),{prompt:t,activeTabName:n}=be(X4e),{isReady:r}=be(YH),i=A.useRef(null),{t:a}=tt(),o=c=>{e(b6(c.target.value))};At("alt+a",()=>{var c;(c=i.current)==null||c.focus()},[]);const l=c=>{c.key==="Enter"&&c.shiftKey===!1&&r&&(c.preventDefault(),e(g4(n)))};return v.jsx($n,{children:v.jsx(Or,{isInvalid:t.length===0||Boolean(t.match(/^[\s\r\n]+$/)),children:v.jsx($3,{id:"prompt",name:"prompt",placeholder:a("parameters.promptPlaceholder"),value:t,onChange:o,onKeyDown:l,resize:"vertical",ref:i,minH:40})})})};function Q4e(){const e=et(),t=be(i=>i.generation.shouldFitToWidthHeight),n=i=>e(P6(i.target.checked)),{t:r}=tt();return v.jsx(Cl,{label:r("parameters.imageFit"),isChecked:t,onChange:n})}function KH(e){const{t}=tt(),{label:n=`${t("parameters.strength")}`}=e,r=be(l=>l.generation.img2imgStrength),i=et(),a=l=>i(bk(l)),o=()=>{i(bk(.75))};return v.jsx(ni,{label:n,step:.01,min:.01,max:1,onChange:a,value:r,isInteger:!1,withInput:!0,withSliderMarks:!0,inputWidth:22,withReset:!0,handleReset:o})}function Z4e(){const{t:e}=tt();return v.jsxs(Mn,{gap:2,alignItems:"stretch",children:[v.jsx(KH,{label:e("parameters.img2imgStrength")}),v.jsx(Q4e,{})]})}const J4e=()=>{const{t:e}=tt(),t={general:{header:`${e("parameters.general")}`,feature:void 0,content:v.jsx(aO,{})},imageToImage:{header:`${e("parameters.imageToImage")}`,feature:void 0,content:v.jsx(Z4e,{})},seed:{header:`${e("parameters.seed")}`,feature:ys.SEED,content:v.jsx(nO,{})},variations:{header:`${e("parameters.variations")}`,feature:ys.VARIATIONS,content:v.jsx(iO,{}),additionalHeaderComponents:v.jsx(rO,{})},face_restore:{header:`${e("parameters.faceRestoration")}`,feature:ys.FACE_CORRECTION,content:v.jsx(XA,{}),additionalHeaderComponents:v.jsx(LH,{})},upscale:{header:`${e("parameters.upscaling")}`,feature:ys.UPSCALE,content:v.jsx(QA,{}),additionalHeaderComponents:v.jsx(BH,{})},symmetry:{header:`${e("parameters.symmetry")}`,content:v.jsx(eO,{}),additionalHeaderComponents:v.jsx(tO,{})},other:{header:`${e("parameters.otherOptions")}`,feature:ys.OTHER,content:v.jsx(A4e,{})}};return v.jsxs(Re,{flexDir:"column",gap:2,position:"relative",children:[v.jsx(fO,{}),v.jsx(dO,{}),v.jsx(cO,{}),v.jsx(oO,{accordionInfo:t})]})},$4e=A.memo(J4e);function ePe(){return v.jsx(KA,{parametersPanelContent:v.jsx($4e,{}),children:v.jsx(T4e,{})})}const tPe=()=>v.jsx($n,{sx:{width:"100%",height:"100%",borderRadius:"base",bg:"base.850"},children:v.jsx(Re,{sx:{p:4,width:"100%",height:"100%"},children:v.jsx(RH,{})})}),nPe=Ut([ZA],({hiresFix:e,hiresStrength:t})=>({hiresFix:e,hiresStrength:t}),{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),rPe=()=>{const{hiresFix:e,hiresStrength:t}=be(nPe),n=et(),{t:r}=tt(),i=o=>{n(N6(o))},a=()=>{n(N6(.75))};return v.jsx(ni,{label:r("parameters.hiresStrength"),step:.01,min:.01,max:.99,onChange:i,value:t,isInteger:!1,withInput:!0,withSliderMarks:!0,withReset:!0,handleReset:a,isSliderDisabled:!e,isInputDisabled:!e,isResetDisabled:!e})},iPe=()=>{const e=et(),t=be(i=>i.postprocessing.hiresFix),{t:n}=tt(),r=i=>e(R6(i.target.checked));return v.jsx(Cl,{label:n("parameters.hiresOptim"),fontSize:"md",isChecked:t,onChange:r})},aPe=()=>v.jsxs(Mn,{gap:2,alignItems:"stretch",children:[v.jsx(zH,{}),v.jsx(iPe,{}),v.jsx(rPe,{})]}),oPe=()=>{const{t:e}=tt(),t={general:{header:`${e("parameters.general")}`,feature:void 0,content:v.jsx(aO,{})},seed:{header:`${e("parameters.seed")}`,feature:ys.SEED,content:v.jsx(nO,{})},variations:{header:`${e("parameters.variations")}`,feature:ys.VARIATIONS,content:v.jsx(iO,{}),additionalHeaderComponents:v.jsx(rO,{})},face_restore:{header:`${e("parameters.faceRestoration")}`,feature:ys.FACE_CORRECTION,content:v.jsx(XA,{}),additionalHeaderComponents:v.jsx(LH,{})},upscale:{header:`${e("parameters.upscaling")}`,feature:ys.UPSCALE,content:v.jsx(QA,{}),additionalHeaderComponents:v.jsx(BH,{})},symmetry:{header:`${e("parameters.symmetry")}`,content:v.jsx(eO,{}),additionalHeaderComponents:v.jsx(tO,{})},other:{header:`${e("parameters.otherOptions")}`,feature:ys.OTHER,content:v.jsx(aPe,{})}};return v.jsxs(Re,{flexDir:"column",gap:2,children:[v.jsx(fO,{}),v.jsx(dO,{}),v.jsx(cO,{}),v.jsx(oO,{accordionInfo:t})]})},sPe=A.memo(oPe);function lPe(){return v.jsx(KA,{parametersPanelContent:v.jsx(sPe,{}),children:v.jsx(tPe,{})})}var hO={},uPe={get exports(){return hO},set exports(e){hO=e}},Vv={},cPe={get exports(){return Vv},set exports(e){Vv=e}},pO={};/**
|
||
* @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.
|
||
*/var XH;function dPe(){return XH||(XH=1,function(e){function t(ie,le){var ee=ie.length;ie.push(le);e:for(;0<ee;){var de=ee-1>>>1,Fe=ie[de];if(0<i(Fe,le))ie[de]=le,ie[ee]=Fe,ee=de;else break e}}function n(ie){return ie.length===0?null:ie[0]}function r(ie){if(ie.length===0)return null;var le=ie[0],ee=ie.pop();if(ee!==le){ie[0]=ee;e:for(var de=0,Fe=ie.length,Pe=Fe>>>1;de<Pe;){var Oe=2*(de+1)-1,Ie=ie[Oe],De=Oe+1,$e=ie[De];if(0>i(Ie,ee))De<Fe&&0>i($e,Ie)?(ie[de]=$e,ie[De]=ee,de=De):(ie[de]=Ie,ie[Oe]=ee,de=Oe);else if(De<Fe&&0>i($e,ee))ie[de]=$e,ie[De]=ee,de=De;else break e}}return le}function i(ie,le){var ee=ie.sortIndex-le.sortIndex;return ee!==0?ee:ie.id-le.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],d=[],p=1,g=null,S=3,w=!1,C=!1,k=!1,P=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(ie){for(var le=n(d);le!==null;){if(le.callback===null)r(d);else if(le.startTime<=ie)r(d),le.sortIndex=le.expirationTime,t(c,le);else break;le=n(d)}}function L(ie){if(k=!1,R(ie),!C)if(n(c)!==null)C=!0,re(z);else{var le=n(d);le!==null&&oe(L,le.startTime-ie)}}function z(ie,le){C=!1,k&&(k=!1,D(Y),Y=-1),w=!0;var ee=S;try{for(R(le),g=n(c);g!==null&&(!(g.expirationTime>le)||ie&&!K());){var de=g.callback;if(typeof de=="function"){g.callback=null,S=g.priorityLevel;var Fe=de(g.expirationTime<=le);le=e.unstable_now(),typeof Fe=="function"?g.callback=Fe:g===n(c)&&r(c),R(le)}else r(c);g=n(c)}if(g!==null)var Pe=!0;else{var Oe=n(d);Oe!==null&&oe(L,Oe.startTime-le),Pe=!1}return Pe}finally{g=null,S=ee,w=!1}}var U=!1,V=null,Y=-1,J=5,$=-1;function K(){return!(e.unstable_now()-$<J)}function fe(){if(V!==null){var ie=e.unstable_now();$=ie;var le=!0;try{le=V(!0,ie)}finally{le?X():(U=!1,V=null)}}else U=!1}var X;if(typeof M=="function")X=function(){M(fe)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,te=G.port2;G.port1.onmessage=fe,X=function(){te.postMessage(null)}}else X=function(){P(fe,0)};function re(ie){V=ie,U||(U=!0,X())}function oe(ie,le){Y=P(function(){ie(e.unstable_now())},le)}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(ie){ie.callback=null},e.unstable_continueExecution=function(){C||w||(C=!0,re(z))},e.unstable_forceFrameRate=function(ie){0>ie||125<ie?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<ie?Math.floor(1e3/ie):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(ie){switch(S){case 1:case 2:case 3:var le=3;break;default:le=S}var ee=S;S=le;try{return ie()}finally{S=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ie,le){switch(ie){case 1:case 2:case 3:case 4:case 5:break;default:ie=3}var ee=S;S=ie;try{return le()}finally{S=ee}},e.unstable_scheduleCallback=function(ie,le,ee){var de=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?de+ee:de):ee=de,ie){case 1:var Fe=-1;break;case 2:Fe=250;break;case 5:Fe=1073741823;break;case 4:Fe=1e4;break;default:Fe=5e3}return Fe=ee+Fe,ie={id:p++,callback:le,priorityLevel:ie,startTime:ee,expirationTime:Fe,sortIndex:-1},ee>de?(ie.sortIndex=ee,t(d,ie),n(c)===null&&ie===n(d)&&(k?(D(Y),Y=-1):k=!0,oe(L,ee-de))):(ie.sortIndex=Fe,t(c,ie),C||w||(C=!0,re(z))),ie},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(ie){var le=S;return function(){var ee=S;S=le;try{return ie.apply(this,arguments)}finally{S=ee}}}}(pO)),pO}var mO={};/**
|
||
* @license React
|
||
* scheduler.development.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 QH;function fPe(){return QH||(QH=1,function(e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=!1,n=!1,r=5;function i(lt,Ge){var pt=lt.length;lt.push(Ge),l(lt,Ge,pt)}function a(lt){return lt.length===0?null:lt[0]}function o(lt){if(lt.length===0)return null;var Ge=lt[0],pt=lt.pop();return pt!==Ge&&(lt[0]=pt,c(lt,pt,0)),Ge}function l(lt,Ge,pt){for(var Bt=pt;Bt>0;){var jn=Bt-1>>>1,Un=lt[jn];if(d(Un,Ge)>0)lt[jn]=Ge,lt[Bt]=Un,Bt=jn;else return}}function c(lt,Ge,pt){for(var Bt=pt,jn=lt.length,Un=jn>>>1;Bt<Un;){var Mt=(Bt+1)*2-1,Lt=lt[Mt],vr=Mt+1,gr=lt[vr];if(d(Lt,Ge)<0)vr<jn&&d(gr,Lt)<0?(lt[Bt]=gr,lt[vr]=Ge,Bt=vr):(lt[Bt]=Lt,lt[Mt]=Ge,Bt=Mt);else if(vr<jn&&d(gr,Ge)<0)lt[Bt]=gr,lt[vr]=Ge,Bt=vr;else return}}function d(lt,Ge){var pt=lt.sortIndex-Ge.sortIndex;return pt!==0?pt:lt.id-Ge.id}var p=1,g=2,S=3,w=4,C=5;function k(lt,Ge){}var P=typeof performance=="object"&&typeof performance.now=="function";if(P){var D=performance;e.unstable_now=function(){return D.now()}}else{var M=Date,R=M.now();e.unstable_now=function(){return M.now()-R}}var L=1073741823,z=-1,U=250,V=5e3,Y=1e4,J=L,$=[],K=[],fe=1,X=null,G=S,te=!1,re=!1,oe=!1,ie=typeof setTimeout=="function"?setTimeout:null,le=typeof clearTimeout=="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function de(lt){for(var Ge=a(K);Ge!==null;){if(Ge.callback===null)o(K);else if(Ge.startTime<=lt)o(K),Ge.sortIndex=Ge.expirationTime,i($,Ge);else return;Ge=a(K)}}function Fe(lt){if(oe=!1,de(lt),!re)if(a($)!==null)re=!0,Zt(Pe);else{var Ge=a(K);Ge!==null&&nn(Fe,Ge.startTime-lt)}}function Pe(lt,Ge){re=!1,oe&&(oe=!1,Ze()),te=!0;var pt=G;try{var Bt;if(!n)return Oe(lt,Ge)}finally{X=null,G=pt,te=!1}}function Oe(lt,Ge){var pt=Ge;for(de(pt),X=a($);X!==null&&!t&&!(X.expirationTime>pt&&(!lt||ar()));){var Bt=X.callback;if(typeof Bt=="function"){X.callback=null,G=X.priorityLevel;var jn=X.expirationTime<=pt,Un=Bt(jn);pt=e.unstable_now(),typeof Un=="function"?X.callback=Un:X===a($)&&o($),de(pt)}else o($);X=a($)}if(X!==null)return!0;var Mt=a(K);return Mt!==null&&nn(Fe,Mt.startTime-pt),!1}function Ie(lt,Ge){switch(lt){case p:case g:case S:case w:case C:break;default:lt=S}var pt=G;G=lt;try{return Ge()}finally{G=pt}}function De(lt){var Ge;switch(G){case p:case g:case S:Ge=S;break;default:Ge=G;break}var pt=G;G=Ge;try{return lt()}finally{G=pt}}function $e(lt){var Ge=G;return function(){var pt=G;G=Ge;try{return lt.apply(this,arguments)}finally{G=pt}}}function it(lt,Ge,pt){var Bt=e.unstable_now(),jn;if(typeof pt=="object"&&pt!==null){var Un=pt.delay;typeof Un=="number"&&Un>0?jn=Bt+Un:jn=Bt}else jn=Bt;var Mt;switch(lt){case p:Mt=z;break;case g:Mt=U;break;case C:Mt=J;break;case w:Mt=Y;break;case S:default:Mt=V;break}var Lt=jn+Mt,vr={id:fe++,callback:Ge,priorityLevel:lt,startTime:jn,expirationTime:Lt,sortIndex:-1};return jn>Bt?(vr.sortIndex=jn,i(K,vr),a($)===null&&vr===a(K)&&(oe?Ze():oe=!0,nn(Fe,jn-Bt))):(vr.sortIndex=Lt,i($,vr),!re&&!te&&(re=!0,Zt(Pe))),vr}function mt(){}function bt(){!re&&!te&&(re=!0,Zt(Pe))}function qe(){return a($)}function Ce(lt){lt.callback=null}function Nt(){return G}var Ae=!1,xt=null,ln=-1,Wt=r,In=-1;function ar(){var lt=e.unstable_now()-In;return!(lt<Wt)}function we(){}function at(lt){if(lt<0||lt>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}lt>0?Wt=Math.floor(1e3/lt):Wt=r}var ot=function(){if(xt!==null){var lt=e.unstable_now();In=lt;var Ge=!0,pt=!0;try{pt=xt(Ge,lt)}finally{pt?yt():(Ae=!1,xt=null)}}else Ae=!1},yt;if(typeof ee=="function")yt=function(){ee(ot)};else if(typeof MessageChannel<"u"){var He=new MessageChannel,st=He.port2;He.port1.onmessage=ot,yt=function(){st.postMessage(null)}}else yt=function(){ie(ot,0)};function Zt(lt){xt=lt,Ae||(Ae=!0,yt())}function nn(lt,Ge){ln=ie(function(){lt(e.unstable_now())},Ge)}function Ze(){le(ln),ln=-1}var rn=we,Rn=null;e.unstable_IdlePriority=C,e.unstable_ImmediatePriority=p,e.unstable_LowPriority=w,e.unstable_NormalPriority=S,e.unstable_Profiling=Rn,e.unstable_UserBlockingPriority=g,e.unstable_cancelCallback=Ce,e.unstable_continueExecution=bt,e.unstable_forceFrameRate=at,e.unstable_getCurrentPriorityLevel=Nt,e.unstable_getFirstCallbackNode=qe,e.unstable_next=De,e.unstable_pauseExecution=mt,e.unstable_requestPaint=rn,e.unstable_runWithPriority=Ie,e.unstable_scheduleCallback=it,e.unstable_shouldYield=ar,e.unstable_wrapCallback=$e,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(mO)),mO}(function(e){process.env.NODE_ENV==="production"?e.exports=dPe():e.exports=fPe()})(cPe);/**
|
||
* @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 vO,ZH;function hPe(){return ZH||(ZH=1,vO=function(t){var n={},r=A,i=Vv,a=Object.assign;function o(h){for(var m="https://reactjs.org/docs/error-decoder.html?invariant="+h,E=1;E<arguments.length;E++)m+="&args[]="+encodeURIComponent(arguments[E]);return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,c=Symbol.for("react.element"),d=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),C=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),z=Symbol.iterator;function U(h){return h===null||typeof h!="object"?null:(h=z&&h[z]||h["@@iterator"],typeof h=="function"?h:null)}function V(h){if(h==null)return null;if(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case p:return"Fragment";case d:return"Portal";case S:return"Profiler";case g:return"StrictMode";case P:return"Suspense";case D:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case C:return(h.displayName||"Context")+".Consumer";case w:return(h._context.displayName||"Context")+".Provider";case k:var m=h.render;return h=h.displayName,h||(h=m.displayName||m.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case M:return m=h.displayName||null,m!==null?m:V(h.type)||"Memo";case R:m=h._payload,h=h._init;try{return V(h(m))}catch{}}return null}function Y(h){var m=h.type;switch(h.tag){case 24:return"Cache";case 9:return(m.displayName||"Context")+".Consumer";case 10:return(m._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return h=m.render,h=h.displayName||h.name||"",m.displayName||(h!==""?"ForwardRef("+h+")":"ForwardRef");case 7:return"Fragment";case 5:return m;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(m);case 8:return m===g?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m}return null}function J(h){var m=h,E=h;if(h.alternate)for(;m.return;)m=m.return;else{h=m;do m=h,m.flags&4098&&(E=m.return),h=m.return;while(h)}return m.tag===3?E:null}function $(h){if(J(h)!==h)throw Error(o(188))}function K(h){var m=h.alternate;if(!m){if(m=J(h),m===null)throw Error(o(188));return m!==h?null:h}for(var E=h,O=m;;){var j=E.return;if(j===null)break;var B=j.alternate;if(B===null){if(O=j.return,O!==null){E=O;continue}break}if(j.child===B.child){for(B=j.child;B;){if(B===E)return $(j),h;if(B===O)return $(j),m;B=B.sibling}throw Error(o(188))}if(E.return!==O.return)E=j,O=B;else{for(var ne=!1,ye=j.child;ye;){if(ye===E){ne=!0,E=j,O=B;break}if(ye===O){ne=!0,O=j,E=B;break}ye=ye.sibling}if(!ne){for(ye=B.child;ye;){if(ye===E){ne=!0,E=B,O=j;break}if(ye===O){ne=!0,O=B,E=j;break}ye=ye.sibling}if(!ne)throw Error(o(189))}}if(E.alternate!==O)throw Error(o(190))}if(E.tag!==3)throw Error(o(188));return E.stateNode.current===E?h:m}function fe(h){return h=K(h),h!==null?X(h):null}function X(h){if(h.tag===5||h.tag===6)return h;for(h=h.child;h!==null;){var m=X(h);if(m!==null)return m;h=h.sibling}return null}function G(h){if(h.tag===5||h.tag===6)return h;for(h=h.child;h!==null;){if(h.tag!==4){var m=G(h);if(m!==null)return m}h=h.sibling}return null}var te=Array.isArray,re=t.getPublicInstance,oe=t.getRootHostContext,ie=t.getChildHostContext,le=t.prepareForCommit,ee=t.resetAfterCommit,de=t.createInstance,Fe=t.appendInitialChild,Pe=t.finalizeInitialChildren,Oe=t.prepareUpdate,Ie=t.shouldSetTextContent,De=t.createTextInstance,$e=t.scheduleTimeout,it=t.cancelTimeout,mt=t.noTimeout,bt=t.isPrimaryRenderer,qe=t.supportsMutation,Ce=t.supportsPersistence,Nt=t.supportsHydration,Ae=t.getInstanceFromNode,xt=t.preparePortalMount,ln=t.getCurrentEventPriority,Wt=t.detachDeletedInstance,In=t.supportsMicrotasks,ar=t.scheduleMicrotask,we=t.supportsTestSelectors,at=t.findFiberRoot,ot=t.getBoundingRect,yt=t.getTextContent,He=t.isHiddenSubtree,st=t.matchAccessibilityRole,Zt=t.setFocusIfFocusable,nn=t.setupIntersectionObserver,Ze=t.appendChild,rn=t.appendChildToContainer,Rn=t.commitTextUpdate,lt=t.commitMount,Ge=t.commitUpdate,pt=t.insertBefore,Bt=t.insertInContainerBefore,jn=t.removeChild,Un=t.removeChildFromContainer,Mt=t.resetTextContent,Lt=t.hideInstance,vr=t.hideTextInstance,gr=t.unhideInstance,hn=t.unhideTextInstance,ri=t.clearContainer,Ys=t.cloneInstance,so=t.createContainerChildSet,qn=t.appendChildToContainerChildSet,Io=t.finalizeContainerChildren,lo=t.replaceContainerChildren,Xo=t.cloneHiddenInstance,Na=t.cloneHiddenTextInstance,Fi=t.canHydrateInstance,Qo=t.canHydrateTextInstance,tu=t.canHydrateSuspenseInstance,Ku=t.isSuspenseInstancePending,Wc=t.isSuspenseInstanceFallback,nu=t.getSuspenseInstanceFallbackErrorDetails,di=t.registerSuspenseInstanceRetry,pe=t.getNextHydratableSibling,ft=t.getFirstHydratableChild,kt=t.getFirstHydratableChildWithinContainer,an=t.getFirstHydratableChildWithinSuspenseInstance,er=t.hydrateInstance,Pn=t.hydrateTextInstance,zn=t.hydrateSuspenseInstance,Nn=t.getNextHydratableInstanceAfterSuspenseInstance,Ei=t.commitHydratedContainer,Dr=t.commitHydratedSuspenseInstance,Mr=t.clearSuspenseBoundary,fi=t.clearSuspenseBoundaryFromContainer,uo=t.shouldDeleteUnhydratedTailInstances,ru=t.didNotMatchHydratedContainerTextInstance,fa=t.didNotMatchHydratedTextInstance,qc;function Xu(h){if(qc===void 0)try{throw Error()}catch(E){var m=E.stack.trim().match(/\n( *(at )?)/);qc=m&&m[1]||""}return`
|
||
`+qc+h}var iu=!1;function au(h,m){if(!h||iu)return"";iu=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(m)if(m=function(){throw Error()},Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(St){var O=St}Reflect.construct(h,[],m)}else{try{m.call()}catch(St){O=St}h.call(m.prototype)}else{try{throw Error()}catch(St){O=St}h()}}catch(St){if(St&&O&&typeof St.stack=="string"){for(var j=St.stack.split(`
|
||
`),B=O.stack.split(`
|
||
`),ne=j.length-1,ye=B.length-1;1<=ne&&0<=ye&&j[ne]!==B[ye];)ye--;for(;1<=ne&&0<=ye;ne--,ye--)if(j[ne]!==B[ye]){if(ne!==1||ye!==1)do if(ne--,ye--,0>ye||j[ne]!==B[ye]){var Ne=`
|
||
`+j[ne].replace(" at new "," at ");return h.displayName&&Ne.includes("<anonymous>")&&(Ne=Ne.replace("<anonymous>",h.displayName)),Ne}while(1<=ne&&0<=ye);break}}}finally{iu=!1,Error.prepareStackTrace=E}return(h=h?h.displayName||h.name:"")?Xu(h):""}var xh=Object.prototype.hasOwnProperty,Zd=[],ou=-1;function Ks(h){return{current:h}}function Hn(h){0>ou||(h.current=Zd[ou],Zd[ou]=null,ou--)}function _r(h,m){ou++,Zd[ou]=h.current,h.current=m}var Xs={},ha=Ks(Xs),La=Ks(!1),Qs=Xs;function Qu(h,m){var E=h.type.contextTypes;if(!E)return Xs;var O=h.stateNode;if(O&&O.__reactInternalMemoizedUnmaskedChildContext===m)return O.__reactInternalMemoizedMaskedChildContext;var j={},B;for(B in E)j[B]=m[B];return O&&(h=h.stateNode,h.__reactInternalMemoizedUnmaskedChildContext=m,h.__reactInternalMemoizedMaskedChildContext=j),j}function pa(h){return h=h.childContextTypes,h!=null}function El(){Hn(La),Hn(ha)}function Jd(h,m,E){if(ha.current!==Xs)throw Error(o(168));_r(ha,m),_r(La,E)}function su(h,m,E){var O=h.stateNode;if(m=m.childContextTypes,typeof O.getChildContext!="function")return E;O=O.getChildContext();for(var j in O)if(!(j in m))throw Error(o(108,Y(h)||"Unknown",j));return a({},E,O)}function _l(h){return h=(h=h.stateNode)&&h.__reactInternalMemoizedMergedChildContext||Xs,Qs=ha.current,_r(ha,h),_r(La,La.current),!0}function $d(h,m,E){var O=h.stateNode;if(!O)throw Error(o(169));E?(h=su(h,m,Qs),O.__reactInternalMemoizedMergedChildContext=h,Hn(La),Hn(ha),_r(ha,h)):Hn(La),_r(La,E)}var co=Math.clz32?Math.clz32:wh,ef=Math.log,Yc=Math.LN2;function wh(h){return h>>>=0,h===0?32:31-(ef(h)/Yc|0)|0}var ea=64,fo=4194304;function ma(h){switch(h&-h){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 h&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return h&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return h}}function Kc(h,m){var E=h.pendingLanes;if(E===0)return 0;var O=0,j=h.suspendedLanes,B=h.pingedLanes,ne=E&268435455;if(ne!==0){var ye=ne&~j;ye!==0?O=ma(ye):(B&=ne,B!==0&&(O=ma(B)))}else ne=E&~j,ne!==0?O=ma(ne):B!==0&&(O=ma(B));if(O===0)return 0;if(m!==0&&m!==O&&!(m&j)&&(j=O&-O,B=m&-m,j>=B||j===16&&(B&4194240)!==0))return m;if(O&4&&(O|=E&16),m=h.entangledLanes,m!==0)for(h=h.entanglements,m&=O;0<m;)E=31-co(m),j=1<<E,O|=h[E],m&=~j;return O}function qv(h,m){switch(h){case 1:case 2:case 4:return m+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 m+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 tf(h,m){for(var E=h.suspendedLanes,O=h.pingedLanes,j=h.expirationTimes,B=h.pendingLanes;0<B;){var ne=31-co(B),ye=1<<ne,Ne=j[ne];Ne===-1?(!(ye&E)||ye&O)&&(j[ne]=qv(ye,m)):Ne<=m&&(h.expiredLanes|=ye),B&=~ye}}function nf(h){return h=h.pendingLanes&-1073741825,h!==0?h:h&1073741824?1073741824:0}function Ch(){var h=ea;return ea<<=1,!(ea&4194240)&&(ea=64),h}function rf(h){for(var m=[],E=0;31>E;E++)m.push(h);return m}function ho(h,m,E){h.pendingLanes|=m,m!==536870912&&(h.suspendedLanes=0,h.pingedLanes=0),h=h.eventTimes,m=31-co(m),h[m]=E}function Eh(h,m){var E=h.pendingLanes&~m;h.pendingLanes=m,h.suspendedLanes=0,h.pingedLanes=0,h.expiredLanes&=m,h.mutableReadLanes&=m,h.entangledLanes&=m,m=h.entanglements;var O=h.eventTimes;for(h=h.expirationTimes;0<E;){var j=31-co(E),B=1<<j;m[j]=0,O[j]=-1,h[j]=-1,E&=~B}}function Xc(h,m){var E=h.entangledLanes|=m;for(h=h.entanglements;E;){var O=31-co(E),j=1<<O;j&m|h[O]&m&&(h[O]|=m),E&=~j}}var tr=0;function Zu(h){return h&=-h,1<h?4<h?h&268435455?16:536870912:4:1}var af=i.unstable_scheduleCallback,of=i.unstable_cancelCallback,em=i.unstable_shouldYield,Zs=i.unstable_requestPaint,hi=i.unstable_now,_h=i.unstable_ImmediatePriority,tm=i.unstable_UserBlockingPriority,Th=i.unstable_NormalPriority,nm=i.unstable_IdlePriority,Tr=null,nr=null;function rm(h){if(nr&&typeof nr.onCommitFiberRoot=="function")try{nr.onCommitFiberRoot(Tr,h,void 0,(h.current.flags&128)===128)}catch{}}function im(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var ae=typeof Object.is=="function"?Object.is:im,ve=null,Le=!1,zt=!1;function Yn(h){ve===null?ve=[h]:ve.push(h)}function jr(h){Le=!0,Yn(h)}function pn(){if(!zt&&ve!==null){zt=!0;var h=0,m=tr;try{var E=ve;for(tr=1;h<E.length;h++){var O=E[h];do O=O(!0);while(O!==null)}ve=null,Le=!1}catch(j){throw ve!==null&&(ve=ve.slice(h+1)),af(_h,pn),j}finally{tr=m,zt=!1}}return null}var An=[],rr=0,ta=null,Ui=0,kr=[],za=0,bs=null,Zo=1,Js="";function Tl(h,m){An[rr++]=Ui,An[rr++]=ta,ta=h,Ui=m}function Yv(h,m,E){kr[za++]=Zo,kr[za++]=Js,kr[za++]=bs,bs=h;var O=Zo;h=Js;var j=32-co(O)-1;O&=~(1<<j),E+=1;var B=32-co(m)+j;if(30<B){var ne=j-j%5;B=(O&(1<<ne)-1).toString(32),O>>=ne,j-=ne,Zo=1<<32-co(m)+j|E<<j|O,Js=B+h}else Zo=1<<B|E<<j|O,Js=h}function po(h){h.return!==null&&(Tl(h,1),Yv(h,1,0))}function sf(h){for(;h===ta;)ta=An[--rr],An[rr]=null,Ui=An[--rr],An[rr]=null;for(;h===bs;)bs=kr[--za],kr[za]=null,Js=kr[--za],kr[za]=null,Zo=kr[--za],kr[za]=null}var pi=null,Ss=null,ii=!1,xs=!1,Ro=null;function am(h,m){var E=Os(5,null,null,0);E.elementType="DELETED",E.stateNode=m,E.return=h,m=h.deletions,m===null?(h.deletions=[E],h.flags|=16):m.push(E)}function ai(h,m){switch(h.tag){case 5:return m=Fi(m,h.type,h.pendingProps),m!==null?(h.stateNode=m,pi=h,Ss=ft(m),!0):!1;case 6:return m=Qo(m,h.pendingProps),m!==null?(h.stateNode=m,pi=h,Ss=null,!0):!1;case 13:if(m=tu(m),m!==null){var E=bs!==null?{id:Zo,overflow:Js}:null;return h.memoizedState={dehydrated:m,treeContext:E,retryLane:1073741824},E=Os(18,null,null,0),E.stateNode=m,E.return=h,h.child=E,pi=h,Ss=null,!0}return!1;default:return!1}}function kl(h){return(h.mode&1)!==0&&(h.flags&128)===0}function kh(h){if(ii){var m=Ss;if(m){var E=m;if(!ai(h,m)){if(kl(h))throw Error(o(418));m=pe(E);var O=pi;m&&ai(h,m)?am(O,E):(h.flags=h.flags&-4097|2,ii=!1,pi=h)}}else{if(kl(h))throw Error(o(418));h.flags=h.flags&-4097|2,ii=!1,pi=h}}}function gy(h){for(h=h.return;h!==null&&h.tag!==5&&h.tag!==3&&h.tag!==13;)h=h.return;pi=h}function lf(h){if(!Nt||h!==pi)return!1;if(!ii)return gy(h),ii=!0,!1;if(h.tag!==3&&(h.tag!==5||uo(h.type)&&!Ie(h.type,h.memoizedProps))){var m=Ss;if(m){if(kl(h))throw yy(),Error(o(418));for(;m;)am(h,m),m=pe(m)}}if(gy(h),h.tag===13){if(!Nt)throw Error(o(316));if(h=h.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(o(317));Ss=Nn(h)}else Ss=pi?pe(h.stateNode):null;return!0}function yy(){for(var h=Ss;h;)h=pe(h)}function uf(){Nt&&(Ss=pi=null,xs=ii=!1)}function Kv(h){Ro===null?Ro=[h]:Ro.push(h)}var by=l.ReactCurrentBatchConfig;function Qc(h,m){if(ae(h,m))return!0;if(typeof h!="object"||h===null||typeof m!="object"||m===null)return!1;var E=Object.keys(h),O=Object.keys(m);if(E.length!==O.length)return!1;for(O=0;O<E.length;O++){var j=E[O];if(!xh.call(m,j)||!ae(h[j],m[j]))return!1}return!0}function cf(h){switch(h.tag){case 5:return Xu(h.type);case 16:return Xu("Lazy");case 13:return Xu("Suspense");case 19:return Xu("SuspenseList");case 0:case 2:case 15:return h=au(h.type,!1),h;case 11:return h=au(h.type.render,!1),h;case 1:return h=au(h.type,!0),h;default:return""}}function $s(h,m){if(h&&h.defaultProps){m=a({},m),h=h.defaultProps;for(var E in h)m[E]===void 0&&(m[E]=h[E]);return m}return m}var Ph=Ks(null),Ah=null,Ju=null,Oh=null;function om(){Oh=Ju=Ah=null}function Sy(h,m,E){bt?(_r(Ph,m._currentValue),m._currentValue=E):(_r(Ph,m._currentValue2),m._currentValue2=E)}function Dh(h){var m=Ph.current;Hn(Ph),bt?h._currentValue=m:h._currentValue2=m}function Mh(h,m,E){for(;h!==null;){var O=h.alternate;if((h.childLanes&m)!==m?(h.childLanes|=m,O!==null&&(O.childLanes|=m)):O!==null&&(O.childLanes&m)!==m&&(O.childLanes|=m),h===E)break;h=h.return}}function df(h,m){Ah=h,Oh=Ju=null,h=h.dependencies,h!==null&&h.firstContext!==null&&(h.lanes&m&&(Fa=!0),h.firstContext=null)}function Ba(h){var m=bt?h._currentValue:h._currentValue2;if(Oh!==h)if(h={context:h,memoizedValue:m,next:null},Ju===null){if(Ah===null)throw Error(o(308));Ju=h,Ah.dependencies={lanes:0,firstContext:h}}else Ju=Ju.next=h;return m}var na=null;function ff(h){na===null?na=[h]:na.push(h)}function Zc(h,m,E,O){var j=m.interleaved;return j===null?(E.next=E,ff(m)):(E.next=j.next,j.next=E),m.interleaved=E,ws(h,O)}function ws(h,m){h.lanes|=m;var E=h.alternate;for(E!==null&&(E.lanes|=m),E=h,h=h.return;h!==null;)h.childLanes|=m,E=h.alternate,E!==null&&(E.childLanes|=m),E=h,h=h.return;return E.tag===3?E.stateNode:null}var Pl=!1;function sm(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xv(h,m){h=h.updateQueue,m.updateQueue===h&&(m.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,effects:h.effects})}function Al(h,m){return{eventTime:h,lane:m,tag:0,payload:null,callback:null,next:null}}function $u(h,m,E){var O=h.updateQueue;if(O===null)return null;if(O=O.shared,Xn&2){var j=O.pending;return j===null?m.next=m:(m.next=j.next,j.next=m),O.pending=m,ws(h,E)}return j=O.interleaved,j===null?(m.next=m,ff(O)):(m.next=j.next,j.next=m),O.interleaved=m,ws(h,E)}function lm(h,m,E){if(m=m.updateQueue,m!==null&&(m=m.shared,(E&4194240)!==0)){var O=m.lanes;O&=h.pendingLanes,E|=O,m.lanes=E,Xc(h,E)}}function lu(h,m){var E=h.updateQueue,O=h.alternate;if(O!==null&&(O=O.updateQueue,E===O)){var j=null,B=null;if(E=E.firstBaseUpdate,E!==null){do{var ne={eventTime:E.eventTime,lane:E.lane,tag:E.tag,payload:E.payload,callback:E.callback,next:null};B===null?j=B=ne:B=B.next=ne,E=E.next}while(E!==null);B===null?j=B=m:B=B.next=m}else j=B=m;E={baseState:O.baseState,firstBaseUpdate:j,lastBaseUpdate:B,shared:O.shared,effects:O.effects},h.updateQueue=E;return}h=E.lastBaseUpdate,h===null?E.firstBaseUpdate=m:h.next=m,E.lastBaseUpdate=m}function hf(h,m,E,O){var j=h.updateQueue;Pl=!1;var B=j.firstBaseUpdate,ne=j.lastBaseUpdate,ye=j.shared.pending;if(ye!==null){j.shared.pending=null;var Ne=ye,St=Ne.next;Ne.next=null,ne===null?B=St:ne.next=St,ne=Ne;var Yt=h.alternate;Yt!==null&&(Yt=Yt.updateQueue,ye=Yt.lastBaseUpdate,ye!==ne&&(ye===null?Yt.firstBaseUpdate=St:ye.next=St,Yt.lastBaseUpdate=Ne))}if(B!==null){var un=j.baseState;ne=0,Yt=St=Ne=null,ye=B;do{var Dt=ye.lane,si=ye.eventTime;if((O&Dt)===Dt){Yt!==null&&(Yt=Yt.next={eventTime:si,lane:0,tag:ye.tag,payload:ye.payload,callback:ye.callback,next:null});e:{var Ur=h,or=ye;switch(Dt=m,si=E,or.tag){case 1:if(Ur=or.payload,typeof Ur=="function"){un=Ur.call(si,un,Dt);break e}un=Ur;break e;case 3:Ur.flags=Ur.flags&-65537|128;case 0:if(Ur=or.payload,Dt=typeof Ur=="function"?Ur.call(si,un,Dt):Ur,Dt==null)break e;un=a({},un,Dt);break e;case 2:Pl=!0}}ye.callback!==null&&ye.lane!==0&&(h.flags|=64,Dt=j.effects,Dt===null?j.effects=[ye]:Dt.push(ye))}else si={eventTime:si,lane:Dt,tag:ye.tag,payload:ye.payload,callback:ye.callback,next:null},Yt===null?(St=Yt=si,Ne=un):Yt=Yt.next=si,ne|=Dt;if(ye=ye.next,ye===null){if(ye=j.shared.pending,ye===null)break;Dt=ye,ye=Dt.next,Dt.next=null,j.lastBaseUpdate=Dt,j.shared.pending=null}}while(1);if(Yt===null&&(Ne=un),j.baseState=Ne,j.firstBaseUpdate=St,j.lastBaseUpdate=Yt,m=j.shared.interleaved,m!==null){j=m;do ne|=j.lane,j=j.next;while(j!==m)}else B===null&&(j.shared.lanes=0);mc|=ne,h.lanes=ne,h.memoizedState=un}}function uu(h,m,E){if(h=m.effects,m.effects=null,h!==null)for(m=0;m<h.length;m++){var O=h[m],j=O.callback;if(j!==null){if(O.callback=null,O=E,typeof j!="function")throw Error(o(191,j));j.call(O)}}}var pf=new r.Component().refs;function Jc(h,m,E,O){m=h.memoizedState,E=E(O,m),E=E==null?m:a({},m,E),h.memoizedState=E,h.lanes===0&&(h.updateQueue.baseState=E)}var el={isMounted:function(h){return(h=h._reactInternals)?J(h)===h:!1},enqueueSetState:function(h,m,E){h=h._reactInternals;var O=Ha(),j=Nr(h),B=Al(O,j);B.payload=m,E!=null&&(B.callback=E),m=$u(h,B,j),m!==null&&(ts(m,h,j,O),lm(m,h,j))},enqueueReplaceState:function(h,m,E){h=h._reactInternals;var O=Ha(),j=Nr(h),B=Al(O,j);B.tag=1,B.payload=m,E!=null&&(B.callback=E),m=$u(h,B,j),m!==null&&(ts(m,h,j,O),lm(m,h,j))},enqueueForceUpdate:function(h,m){h=h._reactInternals;var E=Ha(),O=Nr(h),j=Al(E,O);j.tag=2,m!=null&&(j.callback=m),m=$u(h,j,O),m!==null&&(ts(m,h,O,E),lm(m,h,O))}};function $c(h,m,E,O,j,B,ne){return h=h.stateNode,typeof h.shouldComponentUpdate=="function"?h.shouldComponentUpdate(O,B,ne):m.prototype&&m.prototype.isPureReactComponent?!Qc(E,O)||!Qc(j,B):!0}function xy(h,m,E){var O=!1,j=Xs,B=m.contextType;return typeof B=="object"&&B!==null?B=Ba(B):(j=pa(m)?Qs:ha.current,O=m.contextTypes,B=(O=O!=null)?Qu(h,j):Xs),m=new m(E,B),h.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=el,h.stateNode=m,m._reactInternals=h,O&&(h=h.stateNode,h.__reactInternalMemoizedUnmaskedChildContext=j,h.__reactInternalMemoizedMaskedChildContext=B),m}function um(h,m,E,O){h=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(E,O),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(E,O),m.state!==h&&el.enqueueReplaceState(m,m.state,null)}function Qv(h,m,E,O){var j=h.stateNode;j.props=E,j.state=h.memoizedState,j.refs=pf,sm(h);var B=m.contextType;typeof B=="object"&&B!==null?j.context=Ba(B):(B=pa(m)?Qs:ha.current,j.context=Qu(h,B)),j.state=h.memoizedState,B=m.getDerivedStateFromProps,typeof B=="function"&&(Jc(h,m,B,E),j.state=h.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof j.getSnapshotBeforeUpdate=="function"||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(m=j.state,typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount(),m!==j.state&&el.enqueueReplaceState(j,j.state,null),hf(h,E,j,O),j.state=h.memoizedState),typeof j.componentDidMount=="function"&&(h.flags|=4194308)}function Cs(h,m,E){if(h=E.ref,h!==null&&typeof h!="function"&&typeof h!="object"){if(E._owner){if(E=E._owner,E){if(E.tag!==1)throw Error(o(309));var O=E.stateNode}if(!O)throw Error(o(147,h));var j=O,B=""+h;return m!==null&&m.ref!==null&&typeof m.ref=="function"&&m.ref._stringRef===B?m.ref:(m=function(ne){var ye=j.refs;ye===pf&&(ye=j.refs={}),ne===null?delete ye[B]:ye[B]=ne},m._stringRef=B,m)}if(typeof h!="string")throw Error(o(284));if(!E._owner)throw Error(o(290,h))}return h}function mo(h,m){throw h=Object.prototype.toString.call(m),Error(o(31,h==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":h))}function cm(h){var m=h._init;return m(h._payload)}function Zv(h){function m(Be,Se){if(h){var Ue=Be.deletions;Ue===null?(Be.deletions=[Se],Be.flags|=16):Ue.push(Se)}}function E(Be,Se){if(!h)return null;for(;Se!==null;)m(Be,Se),Se=Se.sibling;return null}function O(Be,Se){for(Be=new Map;Se!==null;)Se.key!==null?Be.set(Se.key,Se):Be.set(Se.index,Se),Se=Se.sibling;return Be}function j(Be,Se){return Be=Co(Be,Se),Be.index=0,Be.sibling=null,Be}function B(Be,Se,Ue){return Be.index=Ue,h?(Ue=Be.alternate,Ue!==null?(Ue=Ue.index,Ue<Se?(Be.flags|=2,Se):Ue):(Be.flags|=2,Se)):(Be.flags|=1048576,Se)}function ne(Be){return h&&Be.alternate===null&&(Be.flags|=2),Be}function ye(Be,Se,Ue,jt){return Se===null||Se.tag!==6?(Se=Df(Ue,Be.mode,jt),Se.return=Be,Se):(Se=j(Se,Ue),Se.return=Be,Se)}function Ne(Be,Se,Ue,jt){var rt=Ue.type;return rt===p?Yt(Be,Se,Ue.props.children,jt,Ue.key):Se!==null&&(Se.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===R&&cm(rt)===Se.type)?(jt=j(Se,Ue.props),jt.ref=Cs(Be,Se,Ue),jt.return=Be,jt):(jt=Af(Ue.type,Ue.key,Ue.props,null,Be.mode,jt),jt.ref=Cs(Be,Se,Ue),jt.return=Be,jt)}function St(Be,Se,Ue,jt){return Se===null||Se.tag!==4||Se.stateNode.containerInfo!==Ue.containerInfo||Se.stateNode.implementation!==Ue.implementation?(Se=zl(Ue,Be.mode,jt),Se.return=Be,Se):(Se=j(Se,Ue.children||[]),Se.return=Be,Se)}function Yt(Be,Se,Ue,jt,rt){return Se===null||Se.tag!==7?(Se=Su(Ue,Be.mode,jt,rt),Se.return=Be,Se):(Se=j(Se,Ue),Se.return=Be,Se)}function un(Be,Se,Ue){if(typeof Se=="string"&&Se!==""||typeof Se=="number")return Se=Df(""+Se,Be.mode,Ue),Se.return=Be,Se;if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case c:return Ue=Af(Se.type,Se.key,Se.props,null,Be.mode,Ue),Ue.ref=Cs(Be,null,Se),Ue.return=Be,Ue;case d:return Se=zl(Se,Be.mode,Ue),Se.return=Be,Se;case R:var jt=Se._init;return un(Be,jt(Se._payload),Ue)}if(te(Se)||U(Se))return Se=Su(Se,Be.mode,Ue,null),Se.return=Be,Se;mo(Be,Se)}return null}function Dt(Be,Se,Ue,jt){var rt=Se!==null?Se.key:null;if(typeof Ue=="string"&&Ue!==""||typeof Ue=="number")return rt!==null?null:ye(Be,Se,""+Ue,jt);if(typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case c:return Ue.key===rt?Ne(Be,Se,Ue,jt):null;case d:return Ue.key===rt?St(Be,Se,Ue,jt):null;case R:return rt=Ue._init,Dt(Be,Se,rt(Ue._payload),jt)}if(te(Ue)||U(Ue))return rt!==null?null:Yt(Be,Se,Ue,jt,null);mo(Be,Ue)}return null}function si(Be,Se,Ue,jt,rt){if(typeof jt=="string"&&jt!==""||typeof jt=="number")return Be=Be.get(Ue)||null,ye(Se,Be,""+jt,rt);if(typeof jt=="object"&&jt!==null){switch(jt.$$typeof){case c:return Be=Be.get(jt.key===null?Ue:jt.key)||null,Ne(Se,Be,jt,rt);case d:return Be=Be.get(jt.key===null?Ue:jt.key)||null,St(Se,Be,jt,rt);case R:var Cn=jt._init;return si(Be,Se,Ue,Cn(jt._payload),rt)}if(te(jt)||U(jt))return Be=Be.get(Ue)||null,Yt(Se,Be,jt,rt,null);mo(Se,jt)}return null}function Ur(Be,Se,Ue,jt){for(var rt=null,Cn=null,Sn=Se,Ln=Se=0,ji=null;Sn!==null&&Ln<Ue.length;Ln++){Sn.index>Ln?(ji=Sn,Sn=null):ji=Sn.sibling;var Qn=Dt(Be,Sn,Ue[Ln],jt);if(Qn===null){Sn===null&&(Sn=ji);break}h&&Sn&&Qn.alternate===null&&m(Be,Sn),Se=B(Qn,Se,Ln),Cn===null?rt=Qn:Cn.sibling=Qn,Cn=Qn,Sn=ji}if(Ln===Ue.length)return E(Be,Sn),ii&&Tl(Be,Ln),rt;if(Sn===null){for(;Ln<Ue.length;Ln++)Sn=un(Be,Ue[Ln],jt),Sn!==null&&(Se=B(Sn,Se,Ln),Cn===null?rt=Sn:Cn.sibling=Sn,Cn=Sn);return ii&&Tl(Be,Ln),rt}for(Sn=O(Be,Sn);Ln<Ue.length;Ln++)ji=si(Sn,Be,Ln,Ue[Ln],jt),ji!==null&&(h&&ji.alternate!==null&&Sn.delete(ji.key===null?Ln:ji.key),Se=B(ji,Se,Ln),Cn===null?rt=ji:Cn.sibling=ji,Cn=ji);return h&&Sn.forEach(function(rs){return m(Be,rs)}),ii&&Tl(Be,Ln),rt}function or(Be,Se,Ue,jt){var rt=U(Ue);if(typeof rt!="function")throw Error(o(150));if(Ue=rt.call(Ue),Ue==null)throw Error(o(151));for(var Cn=rt=null,Sn=Se,Ln=Se=0,ji=null,Qn=Ue.next();Sn!==null&&!Qn.done;Ln++,Qn=Ue.next()){Sn.index>Ln?(ji=Sn,Sn=null):ji=Sn.sibling;var rs=Dt(Be,Sn,Qn.value,jt);if(rs===null){Sn===null&&(Sn=ji);break}h&&Sn&&rs.alternate===null&&m(Be,Sn),Se=B(rs,Se,Ln),Cn===null?rt=rs:Cn.sibling=rs,Cn=rs,Sn=ji}if(Qn.done)return E(Be,Sn),ii&&Tl(Be,Ln),rt;if(Sn===null){for(;!Qn.done;Ln++,Qn=Ue.next())Qn=un(Be,Qn.value,jt),Qn!==null&&(Se=B(Qn,Se,Ln),Cn===null?rt=Qn:Cn.sibling=Qn,Cn=Qn);return ii&&Tl(Be,Ln),rt}for(Sn=O(Be,Sn);!Qn.done;Ln++,Qn=Ue.next())Qn=si(Sn,Be,Ln,Qn.value,jt),Qn!==null&&(h&&Qn.alternate!==null&&Sn.delete(Qn.key===null?Ln:Qn.key),Se=B(Qn,Se,Ln),Cn===null?rt=Qn:Cn.sibling=Qn,Cn=Qn);return h&&Sn.forEach(function(Ii){return m(Be,Ii)}),ii&&Tl(Be,Ln),rt}function Cr(Be,Se,Ue,jt){if(typeof Ue=="object"&&Ue!==null&&Ue.type===p&&Ue.key===null&&(Ue=Ue.props.children),typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case c:e:{for(var rt=Ue.key,Cn=Se;Cn!==null;){if(Cn.key===rt){if(rt=Ue.type,rt===p){if(Cn.tag===7){E(Be,Cn.sibling),Se=j(Cn,Ue.props.children),Se.return=Be,Be=Se;break e}}else if(Cn.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===R&&cm(rt)===Cn.type){E(Be,Cn.sibling),Se=j(Cn,Ue.props),Se.ref=Cs(Be,Cn,Ue),Se.return=Be,Be=Se;break e}E(Be,Cn);break}else m(Be,Cn);Cn=Cn.sibling}Ue.type===p?(Se=Su(Ue.props.children,Be.mode,jt,Ue.key),Se.return=Be,Be=Se):(jt=Af(Ue.type,Ue.key,Ue.props,null,Be.mode,jt),jt.ref=Cs(Be,Se,Ue),jt.return=Be,Be=jt)}return ne(Be);case d:e:{for(Cn=Ue.key;Se!==null;){if(Se.key===Cn)if(Se.tag===4&&Se.stateNode.containerInfo===Ue.containerInfo&&Se.stateNode.implementation===Ue.implementation){E(Be,Se.sibling),Se=j(Se,Ue.children||[]),Se.return=Be,Be=Se;break e}else{E(Be,Se);break}else m(Be,Se);Se=Se.sibling}Se=zl(Ue,Be.mode,jt),Se.return=Be,Be=Se}return ne(Be);case R:return Cn=Ue._init,Cr(Be,Se,Cn(Ue._payload),jt)}if(te(Ue))return Ur(Be,Se,Ue,jt);if(U(Ue))return or(Be,Se,Ue,jt);mo(Be,Ue)}return typeof Ue=="string"&&Ue!==""||typeof Ue=="number"?(Ue=""+Ue,Se!==null&&Se.tag===6?(E(Be,Se.sibling),Se=j(Se,Ue),Se.return=Be,Be=Se):(E(Be,Se),Se=Df(Ue,Be.mode,jt),Se.return=Be,Be=Se),ne(Be)):E(Be,Se)}return Cr}var cu=Zv(!0),Es=Zv(!1),ed={},vo=Ks(ed),Oa=Ks(ed),ge=Ks(ed);function ze(h){if(h===ed)throw Error(o(174));return h}function Te(h,m){_r(ge,m),_r(Oa,h),_r(vo,ed),h=oe(m),Hn(vo),_r(vo,h)}function It(){Hn(vo),Hn(Oa),Hn(ge)}function tn(h){var m=ze(ge.current),E=ze(vo.current);m=ie(E,h.type,m),E!==m&&(_r(Oa,h),_r(vo,m))}function Bn(h){Oa.current===h&&(Hn(vo),Hn(Oa))}var gn=Ks(0);function yr(h){for(var m=h;m!==null;){if(m.tag===13){var E=m.memoizedState;if(E!==null&&(E=E.dehydrated,E===null||Ku(E)||Wc(E)))return m}else if(m.tag===19&&m.memoizedProps.revealOrder!==void 0){if(m.flags&128)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===h)break;for(;m.sibling===null;){if(m.return===null||m.return===h)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}var Ol=[];function dm(){for(var h=0;h<Ol.length;h++){var m=Ol[h];bt?m._workInProgressVersionPrimary=null:m._workInProgressVersionSecondary=null}Ol.length=0}var ra=l.ReactCurrentDispatcher,du=l.ReactCurrentBatchConfig,eo=0,wr=null,mi=null,Oi=null,hr=!1,ec=!1,td=0,fm=0;function Vi(){throw Error(o(321))}function hm(h,m){if(m===null)return!1;for(var E=0;E<m.length&&E<h.length;E++)if(!ae(h[E],m[E]))return!1;return!0}function mn(h,m,E,O,j,B){if(eo=B,wr=m,m.memoizedState=null,m.updateQueue=null,m.lanes=0,ra.current=h===null||h.memoizedState===null?$v:eg,h=E(O,j),ec){B=0;do{if(ec=!1,td=0,25<=B)throw Error(o(301));B+=1,Oi=mi=null,m.updateQueue=null,ra.current=tg,h=E(O,j)}while(ec)}if(ra.current=Lo,m=mi!==null&&mi.next!==null,eo=0,Oi=mi=wr=null,hr=!1,m)throw Error(o(300));return h}function Vn(){var h=td!==0;return td=0,h}function En(){var h={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oi===null?wr.memoizedState=Oi=h:Oi=Oi.next=h,Oi}function cr(){if(mi===null){var h=wr.alternate;h=h!==null?h.memoizedState:null}else h=mi.next;var m=Oi===null?wr.memoizedState:Oi.next;if(m!==null)Oi=m,mi=h;else{if(h===null)throw Error(o(310));mi=h,h={memoizedState:mi.memoizedState,baseState:mi.baseState,baseQueue:mi.baseQueue,queue:mi.queue,next:null},Oi===null?wr.memoizedState=Oi=h:Oi=Oi.next=h}return Oi}function go(h,m){return typeof m=="function"?m(h):m}function nd(h){var m=cr(),E=m.queue;if(E===null)throw Error(o(311));E.lastRenderedReducer=h;var O=mi,j=O.baseQueue,B=E.pending;if(B!==null){if(j!==null){var ne=j.next;j.next=B.next,B.next=ne}O.baseQueue=j=B,E.pending=null}if(j!==null){B=j.next,O=O.baseState;var ye=ne=null,Ne=null,St=B;do{var Yt=St.lane;if((eo&Yt)===Yt)Ne!==null&&(Ne=Ne.next={lane:0,action:St.action,hasEagerState:St.hasEagerState,eagerState:St.eagerState,next:null}),O=St.hasEagerState?St.eagerState:h(O,St.action);else{var un={lane:Yt,action:St.action,hasEagerState:St.hasEagerState,eagerState:St.eagerState,next:null};Ne===null?(ye=Ne=un,ne=O):Ne=Ne.next=un,wr.lanes|=Yt,mc|=Yt}St=St.next}while(St!==null&&St!==B);Ne===null?ne=O:Ne.next=ye,ae(O,m.memoizedState)||(Fa=!0),m.memoizedState=O,m.baseState=ne,m.baseQueue=Ne,E.lastRenderedState=O}if(h=E.interleaved,h!==null){j=h;do B=j.lane,wr.lanes|=B,mc|=B,j=j.next;while(j!==h)}else j===null&&(E.lanes=0);return[m.memoizedState,E.dispatch]}function pm(h){var m=cr(),E=m.queue;if(E===null)throw Error(o(311));E.lastRenderedReducer=h;var O=E.dispatch,j=E.pending,B=m.memoizedState;if(j!==null){E.pending=null;var ne=j=j.next;do B=h(B,ne.action),ne=ne.next;while(ne!==j);ae(B,m.memoizedState)||(Fa=!0),m.memoizedState=B,m.baseQueue===null&&(m.baseState=B),E.lastRenderedState=B}return[B,O]}function Jv(){}function jh(h,m){var E=wr,O=cr(),j=m(),B=!ae(O.memoizedState,j);if(B&&(O.memoizedState=j,Fa=!0),O=O.queue,vf(oi.bind(null,E,O,h),[h]),O.getSnapshot!==m||B||Oi!==null&&Oi.memoizedState.tag&1){if(E.flags|=2048,tl(9,nt.bind(null,E,O,j,m),void 0,null),Da===null)throw Error(o(349));eo&30||Ih(E,m,j)}return j}function Ih(h,m,E){h.flags|=16384,h={getSnapshot:m,value:E},m=wr.updateQueue,m===null?(m={lastEffect:null,stores:null},wr.updateQueue=m,m.stores=[h]):(E=m.stores,E===null?m.stores=[h]:E.push(h))}function nt(h,m,E,O){m.value=E,m.getSnapshot=O,dn(m)&&rd(h)}function oi(h,m,E){return E(function(){dn(m)&&rd(h)})}function dn(h){var m=h.getSnapshot;h=h.value;try{var E=m();return!ae(h,E)}catch{return!0}}function rd(h){var m=ws(h,1);m!==null&&ts(m,h,1,-1)}function Dl(h){var m=En();return typeof h=="function"&&(h=h()),m.memoizedState=m.baseState=h,h={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:go,lastRenderedState:h},m.queue=h,h=h.dispatch=nc.bind(null,wr,h),[m.memoizedState,h]}function tl(h,m,E,O){return h={tag:h,create:m,destroy:E,deps:O,next:null},m=wr.updateQueue,m===null?(m={lastEffect:null,stores:null},wr.updateQueue=m,m.lastEffect=h.next=h):(E=m.lastEffect,E===null?m.lastEffect=h.next=h:(O=E.next,E.next=h,h.next=O,m.lastEffect=h)),h}function No(){return cr().memoizedState}function nl(h,m,E,O){var j=En();wr.flags|=h,j.memoizedState=tl(1|m,E,void 0,O===void 0?null:O)}function rl(h,m,E,O){var j=cr();O=O===void 0?null:O;var B=void 0;if(mi!==null){var ne=mi.memoizedState;if(B=ne.destroy,O!==null&&hm(O,ne.deps)){j.memoizedState=tl(m,E,B,O);return}}wr.flags|=h,j.memoizedState=tl(1|m,E,B,O)}function mf(h,m){return nl(8390656,8,h,m)}function vf(h,m){return rl(2048,8,h,m)}function mm(h,m){return rl(4,2,h,m)}function vm(h,m){return rl(4,4,h,m)}function Di(h,m){if(typeof m=="function")return h=h(),m(h),function(){m(null)};if(m!=null)return h=h(),m.current=h,function(){m.current=null}}function va(h,m,E){return E=E!=null?E.concat([h]):null,rl(4,4,Di.bind(null,m,h),E)}function Rh(){}function gm(h,m){var E=cr();m=m===void 0?null:m;var O=E.memoizedState;return O!==null&&m!==null&&hm(m,O[1])?O[0]:(E.memoizedState=[h,m],h)}function Nh(h,m){var E=cr();m=m===void 0?null:m;var O=E.memoizedState;return O!==null&&m!==null&&hm(m,O[1])?O[0]:(h=h(),E.memoizedState=[h,m],h)}function ym(h,m,E){return eo&21?(ae(E,m)||(E=Ch(),wr.lanes|=E,mc|=E,h.baseState=!0),m):(h.baseState&&(h.baseState=!1,Fa=!0),h.memoizedState=E)}function Lh(h,m){var E=tr;tr=E!==0&&4>E?E:4,h(!0);var O=du.transition;du.transition={};try{h(!1),m()}finally{tr=E,du.transition=O}}function tc(){return cr().memoizedState}function zh(h,m,E){var O=Nr(h);if(E={lane:O,action:E,hasEagerState:!1,eagerState:null,next:null},rc(h))ic(m,E);else if(E=Zc(h,m,E,O),E!==null){var j=Ha();ts(E,h,O,j),ac(E,m,O)}}function nc(h,m,E){var O=Nr(h),j={lane:O,action:E,hasEagerState:!1,eagerState:null,next:null};if(rc(h))ic(m,j);else{var B=h.alternate;if(h.lanes===0&&(B===null||B.lanes===0)&&(B=m.lastRenderedReducer,B!==null))try{var ne=m.lastRenderedState,ye=B(ne,E);if(j.hasEagerState=!0,j.eagerState=ye,ae(ye,ne)){var Ne=m.interleaved;Ne===null?(j.next=j,ff(m)):(j.next=Ne.next,Ne.next=j),m.interleaved=j;return}}catch{}finally{}E=Zc(h,m,j,O),E!==null&&(j=Ha(),ts(E,h,O,j),ac(E,m,O))}}function rc(h){var m=h.alternate;return h===wr||m!==null&&m===wr}function ic(h,m){ec=hr=!0;var E=h.pending;E===null?m.next=m:(m.next=E.next,E.next=m),h.pending=m}function ac(h,m,E){if(E&4194240){var O=m.lanes;O&=h.pendingLanes,E|=O,m.lanes=E,Xc(h,E)}}var Lo={readContext:Ba,useCallback:Vi,useContext:Vi,useEffect:Vi,useImperativeHandle:Vi,useInsertionEffect:Vi,useLayoutEffect:Vi,useMemo:Vi,useReducer:Vi,useRef:Vi,useState:Vi,useDebugValue:Vi,useDeferredValue:Vi,useTransition:Vi,useMutableSource:Vi,useSyncExternalStore:Vi,useId:Vi,unstable_isNewReconciler:!1},$v={readContext:Ba,useCallback:function(h,m){return En().memoizedState=[h,m===void 0?null:m],h},useContext:Ba,useEffect:mf,useImperativeHandle:function(h,m,E){return E=E!=null?E.concat([h]):null,nl(4194308,4,Di.bind(null,m,h),E)},useLayoutEffect:function(h,m){return nl(4194308,4,h,m)},useInsertionEffect:function(h,m){return nl(4,2,h,m)},useMemo:function(h,m){var E=En();return m=m===void 0?null:m,h=h(),E.memoizedState=[h,m],h},useReducer:function(h,m,E){var O=En();return m=E!==void 0?E(m):m,O.memoizedState=O.baseState=m,h={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:m},O.queue=h,h=h.dispatch=zh.bind(null,wr,h),[O.memoizedState,h]},useRef:function(h){var m=En();return h={current:h},m.memoizedState=h},useState:Dl,useDebugValue:Rh,useDeferredValue:function(h){return En().memoizedState=h},useTransition:function(){var h=Dl(!1),m=h[0];return h=Lh.bind(null,h[1]),En().memoizedState=h,[m,h]},useMutableSource:function(){},useSyncExternalStore:function(h,m,E){var O=wr,j=En();if(ii){if(E===void 0)throw Error(o(407));E=E()}else{if(E=m(),Da===null)throw Error(o(349));eo&30||Ih(O,m,E)}j.memoizedState=E;var B={value:E,getSnapshot:m};return j.queue=B,mf(oi.bind(null,O,B,h),[h]),O.flags|=2048,tl(9,nt.bind(null,O,B,E,m),void 0,null),E},useId:function(){var h=En(),m=Da.identifierPrefix;if(ii){var E=Js,O=Zo;E=(O&~(1<<32-co(O)-1)).toString(32)+E,m=":"+m+"R"+E,E=td++,0<E&&(m+="H"+E.toString(32)),m+=":"}else E=fm++,m=":"+m+"r"+E.toString(32)+":";return h.memoizedState=m},unstable_isNewReconciler:!1},eg={readContext:Ba,useCallback:gm,useContext:Ba,useEffect:vf,useImperativeHandle:va,useInsertionEffect:mm,useLayoutEffect:vm,useMemo:Nh,useReducer:nd,useRef:No,useState:function(){return nd(go)},useDebugValue:Rh,useDeferredValue:function(h){var m=cr();return ym(m,mi.memoizedState,h)},useTransition:function(){var h=nd(go)[0],m=cr().memoizedState;return[h,m]},useMutableSource:Jv,useSyncExternalStore:jh,useId:tc,unstable_isNewReconciler:!1},tg={readContext:Ba,useCallback:gm,useContext:Ba,useEffect:vf,useImperativeHandle:va,useInsertionEffect:mm,useLayoutEffect:vm,useMemo:Nh,useReducer:pm,useRef:No,useState:function(){return pm(go)},useDebugValue:Rh,useDeferredValue:function(h){var m=cr();return mi===null?m.memoizedState=h:ym(m,mi.memoizedState,h)},useTransition:function(){var h=pm(go)[0],m=cr().memoizedState;return[h,m]},useMutableSource:Jv,useSyncExternalStore:jh,useId:tc,unstable_isNewReconciler:!1};function oc(h,m){try{var E="",O=m;do E+=cf(O),O=O.return;while(O);var j=E}catch(B){j=`
|
||
Error generating stack: `+B.message+`
|
||
`+B.stack}return{value:h,source:m,stack:j,digest:null}}function bm(h,m,E){return{value:h,source:null,stack:E??null,digest:m??null}}function Ml(h,m){try{console.error(m.value)}catch(E){setTimeout(function(){throw E})}}var gf=typeof WeakMap=="function"?WeakMap:Map;function id(h,m,E){E=Al(-1,E),E.tag=3,E.payload={element:null};var O=m.value;return E.callback=function(){Kh||(Kh=!0,Xh=O),Ml(h,m)},E}function q(h,m,E){E=Al(-1,E),E.tag=3;var O=h.type.getDerivedStateFromError;if(typeof O=="function"){var j=m.value;E.payload=function(){return O(j)},E.callback=function(){Ml(h,m)}}var B=h.stateNode;return B!==null&&typeof B.componentDidCatch=="function"&&(E.callback=function(){Ml(h,m),typeof O!="function"&&(jl===null?jl=new Set([this]):jl.add(this));var ne=m.stack;this.componentDidCatch(m.value,{componentStack:ne!==null?ne:""})}),E}function ga(h,m,E){var O=h.pingCache;if(O===null){O=h.pingCache=new gf;var j=new Set;O.set(m,j)}else j=O.get(m),j===void 0&&(j=new Set,O.set(m,j));j.has(E)||(j.add(E),h=As.bind(null,h,m,E),m.then(h,h))}function Bh(h){do{var m;if((m=h.tag===13)&&(m=h.memoizedState,m=m!==null?m.dehydrated!==null:!0),m)return h;h=h.return}while(h!==null);return null}function Kn(h,m,E,O,j){return h.mode&1?(h.flags|=65536,h.lanes=j,h):(h===m?h.flags|=65536:(h.flags|=128,E.flags|=131072,E.flags&=-52805,E.tag===1&&(E.alternate===null?E.tag=17:(m=Al(-1,1),m.tag=2,$u(E,m,1))),E.lanes|=1),h)}var Gn=l.ReactCurrentOwner,Fa=!1;function ya(h,m,E,O){m.child=h===null?Es(m,null,E,O):cu(m,h.child,E,O)}function Fh(h,m,E,O,j){E=E.render;var B=m.ref;return df(m,j),O=mn(h,m,E,O,B,j),E=Vn(),h!==null&&!Fa?(m.updateQueue=h.updateQueue,m.flags&=-2053,h.lanes&=~j,Hi(h,m,j)):(ii&&E&&po(m),m.flags|=1,ya(h,m,O,j),m.child)}function sc(h,m,E,O,j){if(h===null){var B=E.type;return typeof B=="function"&&!Am(B)&&B.defaultProps===void 0&&E.compare===null&&E.defaultProps===void 0?(m.tag=15,m.type=B,wy(h,m,B,O,j)):(h=Af(E.type,null,O,m,m.mode,j),h.ref=m.ref,h.return=m,m.child=h)}if(B=h.child,!(h.lanes&j)){var ne=B.memoizedProps;if(E=E.compare,E=E!==null?E:Qc,E(ne,O)&&h.ref===m.ref)return Hi(h,m,j)}return m.flags|=1,h=Co(B,O),h.ref=m.ref,h.return=m,m.child=h}function wy(h,m,E,O,j){if(h!==null){var B=h.memoizedProps;if(Qc(B,O)&&h.ref===m.ref)if(Fa=!1,m.pendingProps=O=B,(h.lanes&j)!==0)h.flags&131072&&(Fa=!0);else return m.lanes=h.lanes,Hi(h,m,j)}return Uh(h,m,E,O,j)}function Cy(h,m,E){var O=m.pendingProps,j=O.children,B=h!==null?h.memoizedState:null;if(O.mode==="hidden")if(!(m.mode&1))m.memoizedState={baseLanes:0,cachePool:null,transitions:null},_r(pc,es),es|=E;else{if(!(E&1073741824))return h=B!==null?B.baseLanes|E:E,m.lanes=m.childLanes=1073741824,m.memoizedState={baseLanes:h,cachePool:null,transitions:null},m.updateQueue=null,_r(pc,es),es|=h,null;m.memoizedState={baseLanes:0,cachePool:null,transitions:null},O=B!==null?B.baseLanes:E,_r(pc,es),es|=O}else B!==null?(O=B.baseLanes|E,m.memoizedState=null):O=E,_r(pc,es),es|=O;return ya(h,m,j,E),m.child}function Ey(h,m){var E=m.ref;(h===null&&E!==null||h!==null&&h.ref!==E)&&(m.flags|=512,m.flags|=2097152)}function Uh(h,m,E,O,j){var B=pa(E)?Qs:ha.current;return B=Qu(m,B),df(m,j),E=mn(h,m,E,O,B,j),O=Vn(),h!==null&&!Fa?(m.updateQueue=h.updateQueue,m.flags&=-2053,h.lanes&=~j,Hi(h,m,j)):(ii&&O&&po(m),m.flags|=1,ya(h,m,E,j),m.child)}function _y(h,m,E,O,j){if(pa(E)){var B=!0;_l(m)}else B=!1;if(df(m,j),m.stateNode===null)Ts(h,m),xy(m,E,O),Qv(m,E,O,j),O=!0;else if(h===null){var ne=m.stateNode,ye=m.memoizedProps;ne.props=ye;var Ne=ne.context,St=E.contextType;typeof St=="object"&&St!==null?St=Ba(St):(St=pa(E)?Qs:ha.current,St=Qu(m,St));var Yt=E.getDerivedStateFromProps,un=typeof Yt=="function"||typeof ne.getSnapshotBeforeUpdate=="function";un||typeof ne.UNSAFE_componentWillReceiveProps!="function"&&typeof ne.componentWillReceiveProps!="function"||(ye!==O||Ne!==St)&&um(m,ne,O,St),Pl=!1;var Dt=m.memoizedState;ne.state=Dt,hf(m,O,ne,j),Ne=m.memoizedState,ye!==O||Dt!==Ne||La.current||Pl?(typeof Yt=="function"&&(Jc(m,E,Yt,O),Ne=m.memoizedState),(ye=Pl||$c(m,E,ye,O,Dt,Ne,St))?(un||typeof ne.UNSAFE_componentWillMount!="function"&&typeof ne.componentWillMount!="function"||(typeof ne.componentWillMount=="function"&&ne.componentWillMount(),typeof ne.UNSAFE_componentWillMount=="function"&&ne.UNSAFE_componentWillMount()),typeof ne.componentDidMount=="function"&&(m.flags|=4194308)):(typeof ne.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=O,m.memoizedState=Ne),ne.props=O,ne.state=Ne,ne.context=St,O=ye):(typeof ne.componentDidMount=="function"&&(m.flags|=4194308),O=!1)}else{ne=m.stateNode,Xv(h,m),ye=m.memoizedProps,St=m.type===m.elementType?ye:$s(m.type,ye),ne.props=St,un=m.pendingProps,Dt=ne.context,Ne=E.contextType,typeof Ne=="object"&&Ne!==null?Ne=Ba(Ne):(Ne=pa(E)?Qs:ha.current,Ne=Qu(m,Ne));var si=E.getDerivedStateFromProps;(Yt=typeof si=="function"||typeof ne.getSnapshotBeforeUpdate=="function")||typeof ne.UNSAFE_componentWillReceiveProps!="function"&&typeof ne.componentWillReceiveProps!="function"||(ye!==un||Dt!==Ne)&&um(m,ne,O,Ne),Pl=!1,Dt=m.memoizedState,ne.state=Dt,hf(m,O,ne,j);var Ur=m.memoizedState;ye!==un||Dt!==Ur||La.current||Pl?(typeof si=="function"&&(Jc(m,E,si,O),Ur=m.memoizedState),(St=Pl||$c(m,E,St,O,Dt,Ur,Ne)||!1)?(Yt||typeof ne.UNSAFE_componentWillUpdate!="function"&&typeof ne.componentWillUpdate!="function"||(typeof ne.componentWillUpdate=="function"&&ne.componentWillUpdate(O,Ur,Ne),typeof ne.UNSAFE_componentWillUpdate=="function"&&ne.UNSAFE_componentWillUpdate(O,Ur,Ne)),typeof ne.componentDidUpdate=="function"&&(m.flags|=4),typeof ne.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof ne.componentDidUpdate!="function"||ye===h.memoizedProps&&Dt===h.memoizedState||(m.flags|=4),typeof ne.getSnapshotBeforeUpdate!="function"||ye===h.memoizedProps&&Dt===h.memoizedState||(m.flags|=1024),m.memoizedProps=O,m.memoizedState=Ur),ne.props=O,ne.state=Ur,ne.context=Ne,O=St):(typeof ne.componentDidUpdate!="function"||ye===h.memoizedProps&&Dt===h.memoizedState||(m.flags|=4),typeof ne.getSnapshotBeforeUpdate!="function"||ye===h.memoizedProps&&Dt===h.memoizedState||(m.flags|=1024),O=!1)}return Jo(h,m,E,O,B,j)}function Jo(h,m,E,O,j,B){Ey(h,m);var ne=(m.flags&128)!==0;if(!O&&!ne)return j&&$d(m,E,!1),Hi(h,m,B);O=m.stateNode,Gn.current=m;var ye=ne&&typeof E.getDerivedStateFromError!="function"?null:O.render();return m.flags|=1,h!==null&&ne?(m.child=cu(m,h.child,null,B),m.child=cu(m,null,ye,B)):ya(h,m,ye,B),m.memoizedState=O.state,j&&$d(m,E,!0),m.child}function ng(h){var m=h.stateNode;m.pendingContext?Jd(h,m.pendingContext,m.pendingContext!==m.context):m.context&&Jd(h,m.context,!1),Te(h,m.containerInfo)}function Ty(h,m,E,O,j){return uf(),Kv(j),m.flags|=256,ya(h,m,E,O),m.child}var rg={dehydrated:null,treeContext:null,retryLane:0};function yf(h){return{baseLanes:h,cachePool:null,transitions:null}}function ky(h,m,E){var O=m.pendingProps,j=gn.current,B=!1,ne=(m.flags&128)!==0,ye;if((ye=ne)||(ye=h!==null&&h.memoizedState===null?!1:(j&2)!==0),ye?(B=!0,m.flags&=-129):(h===null||h.memoizedState!==null)&&(j|=1),_r(gn,j&1),h===null)return kh(m),h=m.memoizedState,h!==null&&(h=h.dehydrated,h!==null)?(m.mode&1?Wc(h)?m.lanes=8:m.lanes=1073741824:m.lanes=1,null):(ne=O.children,h=O.fallback,B?(O=m.mode,B=m.child,ne={mode:"hidden",children:ne},!(O&1)&&B!==null?(B.childLanes=0,B.pendingProps=ne):B=Of(ne,O,0,null),h=Su(h,O,E,null),B.return=m,h.return=m,B.sibling=h,m.child=B,m.child.memoizedState=yf(E),m.memoizedState=rg,h):_s(m,ne));if(j=h.memoizedState,j!==null&&(ye=j.dehydrated,ye!==null))return BS(h,m,ne,O,ye,j,E);if(B){B=O.fallback,ne=m.mode,j=h.child,ye=j.sibling;var Ne={mode:"hidden",children:O.children};return!(ne&1)&&m.child!==j?(O=m.child,O.childLanes=0,O.pendingProps=Ne,m.deletions=null):(O=Co(j,Ne),O.subtreeFlags=j.subtreeFlags&14680064),ye!==null?B=Co(ye,B):(B=Su(B,ne,E,null),B.flags|=2),B.return=m,O.return=m,O.sibling=B,m.child=O,O=B,B=m.child,ne=h.child.memoizedState,ne=ne===null?yf(E):{baseLanes:ne.baseLanes|E,cachePool:null,transitions:ne.transitions},B.memoizedState=ne,B.childLanes=h.childLanes&~E,m.memoizedState=rg,O}return B=h.child,h=B.sibling,O=Co(B,{mode:"visible",children:O.children}),!(m.mode&1)&&(O.lanes=E),O.return=m,O.sibling=null,h!==null&&(E=m.deletions,E===null?(m.deletions=[h],m.flags|=16):E.push(h)),m.child=O,m.memoizedState=null,O}function _s(h,m){return m=Of({mode:"visible",children:m},h.mode,0,null),m.return=h,h.child=m}function Vh(h,m,E,O){return O!==null&&Kv(O),cu(m,h.child,null,E),h=_s(m,m.pendingProps.children),h.flags|=2,m.memoizedState=null,h}function BS(h,m,E,O,j,B,ne){if(E)return m.flags&256?(m.flags&=-257,O=bm(Error(o(422))),Vh(h,m,ne,O)):m.memoizedState!==null?(m.child=h.child,m.flags|=128,null):(B=O.fallback,j=m.mode,O=Of({mode:"visible",children:O.children},j,0,null),B=Su(B,j,ne,null),B.flags|=2,O.return=m,B.return=m,O.sibling=B,m.child=O,m.mode&1&&cu(m,h.child,null,ne),m.child.memoizedState=yf(ne),m.memoizedState=rg,B);if(!(m.mode&1))return Vh(h,m,ne,null);if(Wc(j))return O=nu(j).digest,B=Error(o(419)),O=bm(B,O,void 0),Vh(h,m,ne,O);if(E=(ne&h.childLanes)!==0,Fa||E){if(O=Da,O!==null){switch(ne&-ne){case 4:j=2;break;case 16:j=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:j=32;break;case 536870912:j=268435456;break;default:j=0}j=j&(O.suspendedLanes|ne)?0:j,j!==0&&j!==B.retryLane&&(B.retryLane=j,ws(h,j),ts(O,h,j,-1))}return sl(),O=bm(Error(o(421))),Vh(h,m,ne,O)}return Ku(j)?(m.flags|=128,m.child=h.child,m=yc.bind(null,h),di(j,m),null):(h=B.treeContext,Nt&&(Ss=an(j),pi=m,ii=!0,Ro=null,xs=!1,h!==null&&(kr[za++]=Zo,kr[za++]=Js,kr[za++]=bs,Zo=h.id,Js=h.overflow,bs=m)),m=_s(m,O.children),m.flags|=4096,m)}function lc(h,m,E){h.lanes|=m;var O=h.alternate;O!==null&&(O.lanes|=m),Mh(h.return,m,E)}function ad(h,m,E,O,j){var B=h.memoizedState;B===null?h.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:O,tail:E,tailMode:j}:(B.isBackwards=m,B.rendering=null,B.renderingStartTime=0,B.last=O,B.tail=E,B.tailMode=j)}function uc(h,m,E){var O=m.pendingProps,j=O.revealOrder,B=O.tail;if(ya(h,m,O.children,E),O=gn.current,O&2)O=O&1|2,m.flags|=128;else{if(h!==null&&h.flags&128)e:for(h=m.child;h!==null;){if(h.tag===13)h.memoizedState!==null&&lc(h,E,m);else if(h.tag===19)lc(h,E,m);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===m)break e;for(;h.sibling===null;){if(h.return===null||h.return===m)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}O&=1}if(_r(gn,O),!(m.mode&1))m.memoizedState=null;else switch(j){case"forwards":for(E=m.child,j=null;E!==null;)h=E.alternate,h!==null&&yr(h)===null&&(j=E),E=E.sibling;E=j,E===null?(j=m.child,m.child=null):(j=E.sibling,E.sibling=null),ad(m,!1,j,E,B);break;case"backwards":for(E=null,j=m.child,m.child=null;j!==null;){if(h=j.alternate,h!==null&&yr(h)===null){m.child=j;break}h=j.sibling,j.sibling=E,E=j,j=h}ad(m,!0,E,null,B);break;case"together":ad(m,!1,null,null,void 0);break;default:m.memoizedState=null}return m.child}function Ts(h,m){!(m.mode&1)&&h!==null&&(h.alternate=null,m.alternate=null,m.flags|=2)}function Hi(h,m,E){if(h!==null&&(m.dependencies=h.dependencies),mc|=m.lanes,!(E&m.childLanes))return null;if(h!==null&&m.child!==h.child)throw Error(o(153));if(m.child!==null){for(h=m.child,E=Co(h,h.pendingProps),m.child=E,E.return=m;h.sibling!==null;)h=h.sibling,E=E.sibling=Co(h,h.pendingProps),E.return=m;E.sibling=null}return m.child}function bf(h,m,E){switch(m.tag){case 3:ng(m),uf();break;case 5:tn(m);break;case 1:pa(m.type)&&_l(m);break;case 4:Te(m,m.stateNode.containerInfo);break;case 10:Sy(m,m.type._context,m.memoizedProps.value);break;case 13:var O=m.memoizedState;if(O!==null)return O.dehydrated!==null?(_r(gn,gn.current&1),m.flags|=128,null):E&m.child.childLanes?ky(h,m,E):(_r(gn,gn.current&1),h=Hi(h,m,E),h!==null?h.sibling:null);_r(gn,gn.current&1);break;case 19:if(O=(E&m.childLanes)!==0,h.flags&128){if(O)return uc(h,m,E);m.flags|=128}var j=m.memoizedState;if(j!==null&&(j.rendering=null,j.tail=null,j.lastEffect=null),_r(gn,gn.current),O)break;return null;case 22:case 23:return m.lanes=0,Cy(h,m,E)}return Hi(h,m,E)}function Xt(h){h.flags|=4}function Hh(h,m){if(h!==null&&h.child===m.child)return!0;if(m.flags&16)return!1;for(h=m.child;h!==null;){if(h.flags&12854||h.subtreeFlags&12854)return!1;h=h.sibling}return!0}var Sf,Sm,xm,xf;if(qe)Sf=function(h,m){for(var E=m.child;E!==null;){if(E.tag===5||E.tag===6)Fe(h,E.stateNode);else if(E.tag!==4&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===m)break;for(;E.sibling===null;){if(E.return===null||E.return===m)return;E=E.return}E.sibling.return=E.return,E=E.sibling}},Sm=function(){},xm=function(h,m,E,O,j){if(h=h.memoizedProps,h!==O){var B=m.stateNode,ne=ze(vo.current);E=Oe(B,E,h,O,j,ne),(m.updateQueue=E)&&Xt(m)}},xf=function(h,m,E,O){E!==O&&Xt(m)};else if(Ce){Sf=function(h,m,E,O){for(var j=m.child;j!==null;){if(j.tag===5){var B=j.stateNode;E&&O&&(B=Xo(B,j.type,j.memoizedProps,j)),Fe(h,B)}else if(j.tag===6)B=j.stateNode,E&&O&&(B=Na(B,j.memoizedProps,j)),Fe(h,B);else if(j.tag!==4){if(j.tag===22&&j.memoizedState!==null)B=j.child,B!==null&&(B.return=j),Sf(h,j,!0,!0);else if(j.child!==null){j.child.return=j,j=j.child;continue}}if(j===m)break;for(;j.sibling===null;){if(j.return===null||j.return===m)return;j=j.return}j.sibling.return=j.return,j=j.sibling}};var od=function(h,m,E,O){for(var j=m.child;j!==null;){if(j.tag===5){var B=j.stateNode;E&&O&&(B=Xo(B,j.type,j.memoizedProps,j)),qn(h,B)}else if(j.tag===6)B=j.stateNode,E&&O&&(B=Na(B,j.memoizedProps,j)),qn(h,B);else if(j.tag!==4){if(j.tag===22&&j.memoizedState!==null)B=j.child,B!==null&&(B.return=j),od(h,j,!0,!0);else if(j.child!==null){j.child.return=j,j=j.child;continue}}if(j===m)break;for(;j.sibling===null;){if(j.return===null||j.return===m)return;j=j.return}j.sibling.return=j.return,j=j.sibling}};Sm=function(h,m){var E=m.stateNode;if(!Hh(h,m)){h=E.containerInfo;var O=so(h);od(O,m,!1,!1),E.pendingChildren=O,Xt(m),Io(h,O)}},xm=function(h,m,E,O,j){var B=h.stateNode,ne=h.memoizedProps;if((h=Hh(h,m))&&ne===O)m.stateNode=B;else{var ye=m.stateNode,Ne=ze(vo.current),St=null;ne!==O&&(St=Oe(ye,E,ne,O,j,Ne)),h&&St===null?m.stateNode=B:(B=Ys(B,St,E,ne,O,m,h,ye),Pe(B,E,O,j,Ne)&&Xt(m),m.stateNode=B,h?Xt(m):Sf(B,m,!1,!1))}},xf=function(h,m,E,O){E!==O?(h=ze(ge.current),E=ze(vo.current),m.stateNode=De(O,h,E,m),Xt(m)):m.stateNode=h.stateNode}}else Sm=function(){},xm=function(){},xf=function(){};function wf(h,m){if(!ii)switch(h.tailMode){case"hidden":m=h.tail;for(var E=null;m!==null;)m.alternate!==null&&(E=m),m=m.sibling;E===null?h.tail=null:E.sibling=null;break;case"collapsed":E=h.tail;for(var O=null;E!==null;)E.alternate!==null&&(O=E),E=E.sibling;O===null?m||h.tail===null?h.tail=null:h.tail.sibling=null:O.sibling=null}}function Ua(h){var m=h.alternate!==null&&h.alternate.child===h.child,E=0,O=0;if(m)for(var j=h.child;j!==null;)E|=j.lanes|j.childLanes,O|=j.subtreeFlags&14680064,O|=j.flags&14680064,j.return=h,j=j.sibling;else for(j=h.child;j!==null;)E|=j.lanes|j.childLanes,O|=j.subtreeFlags,O|=j.flags,j.return=h,j=j.sibling;return h.subtreeFlags|=O,h.childLanes=E,m}function FS(h,m,E){var O=m.pendingProps;switch(sf(m),m.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ua(m),null;case 1:return pa(m.type)&&El(),Ua(m),null;case 3:return E=m.stateNode,It(),Hn(La),Hn(ha),dm(),E.pendingContext&&(E.context=E.pendingContext,E.pendingContext=null),(h===null||h.child===null)&&(lf(m)?Xt(m):h===null||h.memoizedState.isDehydrated&&!(m.flags&256)||(m.flags|=1024,Ro!==null&&(fd(Ro),Ro=null))),Sm(h,m),Ua(m),null;case 5:Bn(m),E=ze(ge.current);var j=m.type;if(h!==null&&m.stateNode!=null)xm(h,m,j,O,E),h.ref!==m.ref&&(m.flags|=512,m.flags|=2097152);else{if(!O){if(m.stateNode===null)throw Error(o(166));return Ua(m),null}if(h=ze(vo.current),lf(m)){if(!Nt)throw Error(o(175));h=er(m.stateNode,m.type,m.memoizedProps,E,h,m,!xs),m.updateQueue=h,h!==null&&Xt(m)}else{var B=de(j,O,E,h,m);Sf(B,m,!1,!1),m.stateNode=B,Pe(B,j,O,E,h)&&Xt(m)}m.ref!==null&&(m.flags|=512,m.flags|=2097152)}return Ua(m),null;case 6:if(h&&m.stateNode!=null)xf(h,m,h.memoizedProps,O);else{if(typeof O!="string"&&m.stateNode===null)throw Error(o(166));if(h=ze(ge.current),E=ze(vo.current),lf(m)){if(!Nt)throw Error(o(176));if(h=m.stateNode,E=m.memoizedProps,(O=Pn(h,E,m,!xs))&&(j=pi,j!==null))switch(j.tag){case 3:ru(j.stateNode.containerInfo,h,E,(j.mode&1)!==0);break;case 5:fa(j.type,j.memoizedProps,j.stateNode,h,E,(j.mode&1)!==0)}O&&Xt(m)}else m.stateNode=De(O,h,E,m)}return Ua(m),null;case 13:if(Hn(gn),O=m.memoizedState,h===null||h.memoizedState!==null&&h.memoizedState.dehydrated!==null){if(ii&&Ss!==null&&m.mode&1&&!(m.flags&128))yy(),uf(),m.flags|=98560,j=!1;else if(j=lf(m),O!==null&&O.dehydrated!==null){if(h===null){if(!j)throw Error(o(318));if(!Nt)throw Error(o(344));if(j=m.memoizedState,j=j!==null?j.dehydrated:null,!j)throw Error(o(317));zn(j,m)}else uf(),!(m.flags&128)&&(m.memoizedState=null),m.flags|=4;Ua(m),j=!1}else Ro!==null&&(fd(Ro),Ro=null),j=!0;if(!j)return m.flags&65536?m:null}return m.flags&128?(m.lanes=E,m):(E=O!==null,E!==(h!==null&&h.memoizedState!==null)&&E&&(m.child.flags|=8192,m.mode&1&&(h===null||gn.current&1?Xi===0&&(Xi=3):sl())),m.updateQueue!==null&&(m.flags|=4),Ua(m),null);case 4:return It(),Sm(h,m),h===null&&xt(m.stateNode.containerInfo),Ua(m),null;case 10:return Dh(m.type._context),Ua(m),null;case 17:return pa(m.type)&&El(),Ua(m),null;case 19:if(Hn(gn),j=m.memoizedState,j===null)return Ua(m),null;if(O=(m.flags&128)!==0,B=j.rendering,B===null)if(O)wf(j,!1);else{if(Xi!==0||h!==null&&h.flags&128)for(h=m.child;h!==null;){if(B=yr(h),B!==null){for(m.flags|=128,wf(j,!1),h=B.updateQueue,h!==null&&(m.updateQueue=h,m.flags|=4),m.subtreeFlags=0,h=E,E=m.child;E!==null;)O=E,j=h,O.flags&=14680066,B=O.alternate,B===null?(O.childLanes=0,O.lanes=j,O.child=null,O.subtreeFlags=0,O.memoizedProps=null,O.memoizedState=null,O.updateQueue=null,O.dependencies=null,O.stateNode=null):(O.childLanes=B.childLanes,O.lanes=B.lanes,O.child=B.child,O.subtreeFlags=0,O.deletions=null,O.memoizedProps=B.memoizedProps,O.memoizedState=B.memoizedState,O.updateQueue=B.updateQueue,O.type=B.type,j=B.dependencies,O.dependencies=j===null?null:{lanes:j.lanes,firstContext:j.firstContext}),E=E.sibling;return _r(gn,gn.current&1|2),m.child}h=h.sibling}j.tail!==null&&hi()>Yh&&(m.flags|=128,O=!0,wf(j,!1),m.lanes=4194304)}else{if(!O)if(h=yr(B),h!==null){if(m.flags|=128,O=!0,h=h.updateQueue,h!==null&&(m.updateQueue=h,m.flags|=4),wf(j,!0),j.tail===null&&j.tailMode==="hidden"&&!B.alternate&&!ii)return Ua(m),null}else 2*hi()-j.renderingStartTime>Yh&&E!==1073741824&&(m.flags|=128,O=!0,wf(j,!1),m.lanes=4194304);j.isBackwards?(B.sibling=m.child,m.child=B):(h=j.last,h!==null?h.sibling=B:m.child=B,j.last=B)}return j.tail!==null?(m=j.tail,j.rendering=m,j.tail=m.sibling,j.renderingStartTime=hi(),m.sibling=null,h=gn.current,_r(gn,O?h&1|2:h&1),m):(Ua(m),null);case 22:case 23:return Fo(),E=m.memoizedState!==null,h!==null&&h.memoizedState!==null!==E&&(m.flags|=8192),E&&m.mode&1?es&1073741824&&(Ua(m),qe&&m.subtreeFlags&6&&(m.flags|=8192)):Ua(m),null;case 24:return null;case 25:return null}throw Error(o(156,m.tag))}function Gh(h,m){switch(sf(m),m.tag){case 1:return pa(m.type)&&El(),h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 3:return It(),Hn(La),Hn(ha),dm(),h=m.flags,h&65536&&!(h&128)?(m.flags=h&-65537|128,m):null;case 5:return Bn(m),null;case 13:if(Hn(gn),h=m.memoizedState,h!==null&&h.dehydrated!==null){if(m.alternate===null)throw Error(o(340));uf()}return h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 19:return Hn(gn),null;case 4:return It(),null;case 10:return Dh(m.type._context),null;case 22:case 23:return Fo(),null;case 24:return null;default:return null}}var cc=!1,ia=!1,Py=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function yo(h,m){var E=h.ref;if(E!==null)if(typeof E=="function")try{E(null)}catch(O){sr(h,m,O)}else E.current=null}function bo(h,m,E){try{E()}catch(O){sr(h,m,O)}}var dc=!1;function fu(h,m){for(le(h.containerInfo),Ht=m;Ht!==null;)if(h=Ht,m=h.child,(h.subtreeFlags&1028)!==0&&m!==null)m.return=h,Ht=m;else for(;Ht!==null;){h=Ht;try{var E=h.alternate;if(h.flags&1024)switch(h.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var O=E.memoizedProps,j=E.memoizedState,B=h.stateNode,ne=B.getSnapshotBeforeUpdate(h.elementType===h.type?O:$s(h.type,O),j);B.__reactInternalSnapshotBeforeUpdate=ne}break;case 3:qe&&ri(h.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(ye){sr(h,h.return,ye)}if(m=h.sibling,m!==null){m.return=h.return,Ht=m;break}Ht=h.return}return E=dc,dc=!1,E}function aa(h,m,E){var O=m.updateQueue;if(O=O!==null?O.lastEffect:null,O!==null){var j=O=O.next;do{if((j.tag&h)===h){var B=j.destroy;j.destroy=void 0,B!==void 0&&bo(m,E,B)}j=j.next}while(j!==O)}}function zo(h,m){if(m=m.updateQueue,m=m!==null?m.lastEffect:null,m!==null){var E=m=m.next;do{if((E.tag&h)===h){var O=E.create;E.destroy=O()}E=E.next}while(E!==m)}}function Gi(h){var m=h.ref;if(m!==null){var E=h.stateNode;switch(h.tag){case 5:h=re(E);break;default:h=E}typeof m=="function"?m(h):m.current=h}}function ig(h){var m=h.alternate;m!==null&&(h.alternate=null,ig(m)),h.child=null,h.deletions=null,h.sibling=null,h.tag===5&&(m=h.stateNode,m!==null&&Wt(m)),h.stateNode=null,h.return=null,h.dependencies=null,h.memoizedProps=null,h.memoizedState=null,h.pendingProps=null,h.stateNode=null,h.updateQueue=null}function Cf(h){return h.tag===5||h.tag===3||h.tag===4}function hu(h){e:for(;;){for(;h.sibling===null;){if(h.return===null||Cf(h.return))return null;h=h.return}for(h.sibling.return=h.return,h=h.sibling;h.tag!==5&&h.tag!==6&&h.tag!==18;){if(h.flags&2||h.child===null||h.tag===4)continue e;h.child.return=h,h=h.child}if(!(h.flags&2))return h.stateNode}}function Wh(h,m,E){var O=h.tag;if(O===5||O===6)h=h.stateNode,m?Bt(E,h,m):rn(E,h);else if(O!==4&&(h=h.child,h!==null))for(Wh(h,m,E),h=h.sibling;h!==null;)Wh(h,m,E),h=h.sibling}function wm(h,m,E){var O=h.tag;if(O===5||O===6)h=h.stateNode,m?pt(E,h,m):Ze(E,h);else if(O!==4&&(h=h.child,h!==null))for(wm(h,m,E),h=h.sibling;h!==null;)wm(h,m,E),h=h.sibling}var Wi=null,il=!1;function al(h,m,E){for(E=E.child;E!==null;)ba(h,m,E),E=E.sibling}function ba(h,m,E){if(nr&&typeof nr.onCommitFiberUnmount=="function")try{nr.onCommitFiberUnmount(Tr,E)}catch{}switch(E.tag){case 5:ia||yo(E,m);case 6:if(qe){var O=Wi,j=il;Wi=null,al(h,m,E),Wi=O,il=j,Wi!==null&&(il?Un(Wi,E.stateNode):jn(Wi,E.stateNode))}else al(h,m,E);break;case 18:qe&&Wi!==null&&(il?fi(Wi,E.stateNode):Mr(Wi,E.stateNode));break;case 4:qe?(O=Wi,j=il,Wi=E.stateNode.containerInfo,il=!0,al(h,m,E),Wi=O,il=j):(Ce&&(O=E.stateNode.containerInfo,j=so(O),lo(O,j)),al(h,m,E));break;case 0:case 11:case 14:case 15:if(!ia&&(O=E.updateQueue,O!==null&&(O=O.lastEffect,O!==null))){j=O=O.next;do{var B=j,ne=B.destroy;B=B.tag,ne!==void 0&&(B&2||B&4)&&bo(E,m,ne),j=j.next}while(j!==O)}al(h,m,E);break;case 1:if(!ia&&(yo(E,m),O=E.stateNode,typeof O.componentWillUnmount=="function"))try{O.props=E.memoizedProps,O.state=E.memoizedState,O.componentWillUnmount()}catch(ye){sr(E,m,ye)}al(h,m,E);break;case 21:al(h,m,E);break;case 22:E.mode&1?(ia=(O=ia)||E.memoizedState!==null,al(h,m,E),ia=O):al(h,m,E);break;default:al(h,m,E)}}function qi(h){var m=h.updateQueue;if(m!==null){h.updateQueue=null;var E=h.stateNode;E===null&&(E=h.stateNode=new Py),m.forEach(function(O){var j=Ay.bind(null,h,O);E.has(O)||(E.add(O),O.then(j,j))})}}function So(h,m){var E=m.deletions;if(E!==null)for(var O=0;O<E.length;O++){var j=E[O];try{var B=h,ne=m;if(qe){var ye=ne;e:for(;ye!==null;){switch(ye.tag){case 5:Wi=ye.stateNode,il=!1;break e;case 3:Wi=ye.stateNode.containerInfo,il=!0;break e;case 4:Wi=ye.stateNode.containerInfo,il=!0;break e}ye=ye.return}if(Wi===null)throw Error(o(160));ba(B,ne,j),Wi=null,il=!1}else ba(B,ne,j);var Ne=j.alternate;Ne!==null&&(Ne.return=null),j.return=null}catch(St){sr(j,m,St)}}if(m.subtreeFlags&12854)for(m=m.child;m!==null;)ks(m,h),m=m.sibling}function ks(h,m){var E=h.alternate,O=h.flags;switch(h.tag){case 0:case 11:case 14:case 15:if(So(m,h),Va(h),O&4){try{aa(3,h,h.return),zo(3,h)}catch(Dt){sr(h,h.return,Dt)}try{aa(5,h,h.return)}catch(Dt){sr(h,h.return,Dt)}}break;case 1:So(m,h),Va(h),O&512&&E!==null&&yo(E,E.return);break;case 5:if(So(m,h),Va(h),O&512&&E!==null&&yo(E,E.return),qe){if(h.flags&32){var j=h.stateNode;try{Mt(j)}catch(Dt){sr(h,h.return,Dt)}}if(O&4&&(j=h.stateNode,j!=null)){var B=h.memoizedProps;if(E=E!==null?E.memoizedProps:B,O=h.type,m=h.updateQueue,h.updateQueue=null,m!==null)try{Ge(j,m,O,E,B,h)}catch(Dt){sr(h,h.return,Dt)}}}break;case 6:if(So(m,h),Va(h),O&4&&qe){if(h.stateNode===null)throw Error(o(162));j=h.stateNode,B=h.memoizedProps,E=E!==null?E.memoizedProps:B;try{Rn(j,E,B)}catch(Dt){sr(h,h.return,Dt)}}break;case 3:if(So(m,h),Va(h),O&4){if(qe&&Nt&&E!==null&&E.memoizedState.isDehydrated)try{Ei(m.containerInfo)}catch(Dt){sr(h,h.return,Dt)}if(Ce){j=m.containerInfo,B=m.pendingChildren;try{lo(j,B)}catch(Dt){sr(h,h.return,Dt)}}}break;case 4:if(So(m,h),Va(h),O&4&&Ce){B=h.stateNode,j=B.containerInfo,B=B.pendingChildren;try{lo(j,B)}catch(Dt){sr(h,h.return,Dt)}}break;case 13:So(m,h),Va(h),j=h.child,j.flags&8192&&(B=j.memoizedState!==null,j.stateNode.isHidden=B,!B||j.alternate!==null&&j.alternate.memoizedState!==null||(ug=hi())),O&4&&qi(h);break;case 22:var ne=E!==null&&E.memoizedState!==null;if(h.mode&1?(ia=(E=ia)||ne,So(m,h),ia=E):So(m,h),Va(h),O&8192){if(E=h.memoizedState!==null,(h.stateNode.isHidden=E)&&!ne&&h.mode&1)for(Ht=h,O=h.child;O!==null;){for(m=Ht=O;Ht!==null;){ne=Ht;var ye=ne.child;switch(ne.tag){case 0:case 11:case 14:case 15:aa(4,ne,ne.return);break;case 1:yo(ne,ne.return);var Ne=ne.stateNode;if(typeof Ne.componentWillUnmount=="function"){var St=ne,Yt=ne.return;try{var un=St;Ne.props=un.memoizedProps,Ne.state=un.memoizedState,Ne.componentWillUnmount()}catch(Dt){sr(St,Yt,Dt)}}break;case 5:yo(ne,ne.return);break;case 22:if(ne.memoizedState!==null){Yi(m);continue}}ye!==null?(ye.return=ne,Ht=ye):Yi(m)}O=O.sibling}if(qe){e:if(O=null,qe)for(m=h;;){if(m.tag===5){if(O===null){O=m;try{j=m.stateNode,E?Lt(j):gr(m.stateNode,m.memoizedProps)}catch(Dt){sr(h,h.return,Dt)}}}else if(m.tag===6){if(O===null)try{B=m.stateNode,E?vr(B):hn(B,m.memoizedProps)}catch(Dt){sr(h,h.return,Dt)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===h)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===h)break e;for(;m.sibling===null;){if(m.return===null||m.return===h)break e;O===m&&(O=null),m=m.return}O===m&&(O=null),m.sibling.return=m.return,m=m.sibling}}}break;case 19:So(m,h),Va(h),O&4&&qi(h);break;case 21:break;default:So(m,h),Va(h)}}function Va(h){var m=h.flags;if(m&2){try{if(qe){e:{for(var E=h.return;E!==null;){if(Cf(E)){var O=E;break e}E=E.return}throw Error(o(160))}switch(O.tag){case 5:var j=O.stateNode;O.flags&32&&(Mt(j),O.flags&=-33);var B=hu(h);wm(h,B,j);break;case 3:case 4:var ne=O.stateNode.containerInfo,ye=hu(h);Wh(h,ye,ne);break;default:throw Error(o(161))}}}catch(Ne){sr(h,h.return,Ne)}h.flags&=-3}m&4096&&(h.flags&=-4097)}function qh(h,m,E){Ht=h,fc(h)}function fc(h,m,E){for(var O=(h.mode&1)!==0;Ht!==null;){var j=Ht,B=j.child;if(j.tag===22&&O){var ne=j.memoizedState!==null||cc;if(!ne){var ye=j.alternate,Ne=ye!==null&&ye.memoizedState!==null||ia;ye=cc;var St=ia;if(cc=ne,(ia=Ne)&&!St)for(Ht=j;Ht!==null;)ne=Ht,Ne=ne.child,ne.tag===22&&ne.memoizedState!==null?Sa(j):Ne!==null?(Ne.return=ne,Ht=Ne):Sa(j);for(;B!==null;)Ht=B,fc(B),B=B.sibling;Ht=j,cc=ye,ia=St}ag(h)}else j.subtreeFlags&8772&&B!==null?(B.return=j,Ht=B):ag(h)}}function ag(h){for(;Ht!==null;){var m=Ht;if(m.flags&8772){var E=m.alternate;try{if(m.flags&8772)switch(m.tag){case 0:case 11:case 15:ia||zo(5,m);break;case 1:var O=m.stateNode;if(m.flags&4&&!ia)if(E===null)O.componentDidMount();else{var j=m.elementType===m.type?E.memoizedProps:$s(m.type,E.memoizedProps);O.componentDidUpdate(j,E.memoizedState,O.__reactInternalSnapshotBeforeUpdate)}var B=m.updateQueue;B!==null&&uu(m,B,O);break;case 3:var ne=m.updateQueue;if(ne!==null){if(E=null,m.child!==null)switch(m.child.tag){case 5:E=re(m.child.stateNode);break;case 1:E=m.child.stateNode}uu(m,ne,E)}break;case 5:var ye=m.stateNode;E===null&&m.flags&4&<(ye,m.type,m.memoizedProps,m);break;case 6:break;case 4:break;case 12:break;case 13:if(Nt&&m.memoizedState===null){var Ne=m.alternate;if(Ne!==null){var St=Ne.memoizedState;if(St!==null){var Yt=St.dehydrated;Yt!==null&&Dr(Yt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}ia||m.flags&512&&Gi(m)}catch(un){sr(m,m.return,un)}}if(m===h){Ht=null;break}if(E=m.sibling,E!==null){E.return=m.return,Ht=E;break}Ht=m.return}}function Yi(h){for(;Ht!==null;){var m=Ht;if(m===h){Ht=null;break}var E=m.sibling;if(E!==null){E.return=m.return,Ht=E;break}Ht=m.return}}function Sa(h){for(;Ht!==null;){var m=Ht;try{switch(m.tag){case 0:case 11:case 15:var E=m.return;try{zo(4,m)}catch(Ne){sr(m,E,Ne)}break;case 1:var O=m.stateNode;if(typeof O.componentDidMount=="function"){var j=m.return;try{O.componentDidMount()}catch(Ne){sr(m,j,Ne)}}var B=m.return;try{Gi(m)}catch(Ne){sr(m,B,Ne)}break;case 5:var ne=m.return;try{Gi(m)}catch(Ne){sr(m,ne,Ne)}}}catch(Ne){sr(m,m.return,Ne)}if(m===h){Ht=null;break}var ye=m.sibling;if(ye!==null){ye.return=m.return,Ht=ye;break}Ht=m.return}}var Ot=0,$o=1,Bo=2,Ef=3,Cm=4;if(typeof Symbol=="function"&&Symbol.for){var pu=Symbol.for;Ot=pu("selector.component"),$o=pu("selector.has_pseudo_class"),Bo=pu("selector.role"),Ef=pu("selector.test_id"),Cm=pu("selector.text")}function Em(h){var m=Ae(h);if(m!=null){if(typeof m.memoizedProps["data-testname"]!="string")throw Error(o(364));return m}if(h=at(h),h===null)throw Error(o(362));return h.stateNode.current}function og(h,m){switch(m.$$typeof){case Ot:if(h.type===m.value)return!0;break;case $o:e:{m=m.value,h=[h,0];for(var E=0;E<h.length;){var O=h[E++],j=h[E++],B=m[j];if(O.tag!==5||!He(O)){for(;B!=null&&og(O,B);)j++,B=m[j];if(j===m.length){m=!0;break e}else for(O=O.child;O!==null;)h.push(O,j),O=O.sibling}}m=!1}return m;case Bo:if(h.tag===5&&st(h.stateNode,m.value))return!0;break;case Cm:if((h.tag===5||h.tag===6)&&(h=yt(h),h!==null&&0<=h.indexOf(m.value)))return!0;break;case Ef:if(h.tag===5&&(h=h.memoizedProps["data-testname"],typeof h=="string"&&h.toLowerCase()===m.value.toLowerCase()))return!0;break;default:throw Error(o(365))}return!1}function oa(h){switch(h.$$typeof){case Ot:return"<"+(V(h.value)||"Unknown")+">";case $o:return":has("+(oa(h)||"")+")";case Bo:return'[role="'+h.value+'"]';case Cm:return'"'+h.value+'"';case Ef:return'[data-testname="'+h.value+'"]';default:throw Error(o(365))}}function _f(h,m){var E=[];h=[h,0];for(var O=0;O<h.length;){var j=h[O++],B=h[O++],ne=m[B];if(j.tag!==5||!He(j)){for(;ne!=null&&og(j,ne);)B++,ne=m[B];if(B===m.length)E.push(j);else for(j=j.child;j!==null;)h.push(j,B),j=j.sibling}}return E}function sg(h,m){if(!we)throw Error(o(363));h=Em(h),h=_f(h,m),m=[],h=Array.from(h);for(var E=0;E<h.length;){var O=h[E++];if(O.tag===5)He(O)||m.push(O.stateNode);else for(O=O.child;O!==null;)h.push(O),O=O.sibling}return m}var US=Math.ceil,sd=l.ReactCurrentDispatcher,hc=l.ReactCurrentOwner,Jr=l.ReactCurrentBatchConfig,Xn=0,Da=null,Ki=null,xa=0,es=0,pc=Ks(0),Xi=0,ld=null,mc=0,ud=0,lg=0,Tf=null,xo=null,ug=0,Yh=1/0,mu=null;function vu(){Yh=hi()+500}var Kh=!1,Xh=null,jl=null,kf=!1,en=null,Ps=0,cd=0,gu=null,Pf=-1,_m=0;function Ha(){return Xn&6?hi():Pf!==-1?Pf:Pf=hi()}function Nr(h){return h.mode&1?Xn&2&&xa!==0?xa&-xa:by.transition!==null?(_m===0&&(_m=Ch()),_m):(h=tr,h!==0?h:ln()):1}function ts(h,m,E,O){if(50<cd)throw cd=0,gu=null,Error(o(185));ho(h,E,O),(!(Xn&2)||h!==Da)&&(h===Da&&(!(Xn&2)&&(ud|=E),Xi===4&&$r(h,xa)),Mi(h,O),E===1&&Xn===0&&!(m.mode&1)&&(vu(),Le&&pn()))}function Mi(h,m){var E=h.callbackNode;tf(h,m);var O=Kc(h,h===Da?xa:0);if(O===0)E!==null&&of(E),h.callbackNode=null,h.callbackPriority=0;else if(m=O&-O,h.callbackPriority!==m){if(E!=null&&of(E),m===1)h.tag===0?jr(Il.bind(null,h)):Yn(Il.bind(null,h)),In?ar(function(){!(Xn&6)&&pn()}):af(_h,pn),E=null;else{switch(Zu(O)){case 1:E=_h;break;case 4:E=tm;break;case 16:E=Th;break;case 536870912:E=nm;break;default:E=Th}E=wo(E,yu.bind(null,h))}h.callbackPriority=m,h.callbackNode=E}}function yu(h,m){if(Pf=-1,_m=0,Xn&6)throw Error(o(327));var E=h.callbackNode;if(ns()&&h.callbackNode!==E)return null;var O=Kc(h,h===Da?xa:0);if(O===0)return null;if(O&30||O&h.expiredLanes||m)m=hd(h,O);else{m=O;var j=Xn;Xn|=2;var B=cg();(Da!==h||xa!==m)&&(mu=null,vu(),vc(h,m));do try{km();break}catch(ye){Tm(h,ye)}while(1);om(),sd.current=B,Xn=j,Ki!==null?m=0:(Da=null,xa=0,m=Xi)}if(m!==0){if(m===2&&(j=nf(h),j!==0&&(O=j,m=dd(h,j))),m===1)throw E=ld,vc(h,0),$r(h,O),Mi(h,hi()),E;if(m===6)$r(h,O);else{if(j=h.current.alternate,!(O&30)&&!gi(j)&&(m=hd(h,O),m===2&&(B=nf(h),B!==0&&(O=B,m=dd(h,B))),m===1))throw E=ld,vc(h,0),$r(h,O),Mi(h,hi()),E;switch(h.finishedWork=j,h.finishedLanes=O,m){case 0:case 1:throw Error(o(345));case 2:gc(h,xo,mu);break;case 3:if($r(h,O),(O&130023424)===O&&(m=ug+500-hi(),10<m)){if(Kc(h,0)!==0)break;if(j=h.suspendedLanes,(j&O)!==O){Ha(),h.pingedLanes|=h.suspendedLanes&j;break}h.timeoutHandle=$e(gc.bind(null,h,xo,mu),m);break}gc(h,xo,mu);break;case 4:if($r(h,O),(O&4194240)===O)break;for(m=h.eventTimes,j=-1;0<O;){var ne=31-co(O);B=1<<ne,ne=m[ne],ne>j&&(j=ne),O&=~B}if(O=j,O=hi()-O,O=(120>O?120:480>O?480:1080>O?1080:1920>O?1920:3e3>O?3e3:4320>O?4320:1960*US(O/1960))-O,10<O){h.timeoutHandle=$e(gc.bind(null,h,xo,mu),O);break}gc(h,xo,mu);break;case 5:gc(h,xo,mu);break;default:throw Error(o(329))}}}return Mi(h,hi()),h.callbackNode===E?yu.bind(null,h):null}function dd(h,m){var E=Tf;return h.current.memoizedState.isDehydrated&&(vc(h,m).flags|=256),h=hd(h,m),h!==2&&(m=xo,xo=E,m!==null&&fd(m)),h}function fd(h){xo===null?xo=h:xo.push.apply(xo,h)}function gi(h){for(var m=h;;){if(m.flags&16384){var E=m.updateQueue;if(E!==null&&(E=E.stores,E!==null))for(var O=0;O<E.length;O++){var j=E[O],B=j.getSnapshot;j=j.value;try{if(!ae(B(),j))return!1}catch{return!1}}}if(E=m.child,m.subtreeFlags&16384&&E!==null)E.return=m,m=E;else{if(m===h)break;for(;m.sibling===null;){if(m.return===null||m.return===h)return!0;m=m.return}m.sibling.return=m.return,m=m.sibling}}return!0}function $r(h,m){for(m&=~lg,m&=~ud,h.suspendedLanes|=m,h.pingedLanes&=~m,h=h.expirationTimes;0<m;){var E=31-co(m),O=1<<E;h[E]=-1,m&=~O}}function Il(h){if(Xn&6)throw Error(o(327));ns();var m=Kc(h,0);if(!(m&1))return Mi(h,hi()),null;var E=hd(h,m);if(h.tag!==0&&E===2){var O=nf(h);O!==0&&(m=O,E=dd(h,O))}if(E===1)throw E=ld,vc(h,0),$r(h,m),Mi(h,hi()),E;if(E===6)throw Error(o(345));return h.finishedWork=h.current.alternate,h.finishedLanes=m,gc(h,xo,mu),Mi(h,hi()),null}function ol(h){en!==null&&en.tag===0&&!(Xn&6)&&ns();var m=Xn;Xn|=1;var E=Jr.transition,O=tr;try{if(Jr.transition=null,tr=1,h)return h()}finally{tr=O,Jr.transition=E,Xn=m,!(Xn&6)&&pn()}}function Fo(){es=pc.current,Hn(pc)}function vc(h,m){h.finishedWork=null,h.finishedLanes=0;var E=h.timeoutHandle;if(E!==mt&&(h.timeoutHandle=mt,it(E)),Ki!==null)for(E=Ki.return;E!==null;){var O=E;switch(sf(O),O.tag){case 1:O=O.type.childContextTypes,O!=null&&El();break;case 3:It(),Hn(La),Hn(ha),dm();break;case 5:Bn(O);break;case 4:It();break;case 13:Hn(gn);break;case 19:Hn(gn);break;case 10:Dh(O.type._context);break;case 22:case 23:Fo()}E=E.return}if(Da=h,Ki=h=Co(h.current,null),xa=es=m,Xi=0,ld=null,lg=ud=mc=0,xo=Tf=null,na!==null){for(m=0;m<na.length;m++)if(E=na[m],O=E.interleaved,O!==null){E.interleaved=null;var j=O.next,B=E.pending;if(B!==null){var ne=B.next;B.next=j,O.next=ne}E.pending=O}na=null}return h}function Tm(h,m){do{var E=Ki;try{if(om(),ra.current=Lo,hr){for(var O=wr.memoizedState;O!==null;){var j=O.queue;j!==null&&(j.pending=null),O=O.next}hr=!1}if(eo=0,Oi=mi=wr=null,ec=!1,td=0,hc.current=null,E===null||E.return===null){Xi=1,ld=m,Ki=null;break}e:{var B=h,ne=E.return,ye=E,Ne=m;if(m=xa,ye.flags|=32768,Ne!==null&&typeof Ne=="object"&&typeof Ne.then=="function"){var St=Ne,Yt=ye,un=Yt.tag;if(!(Yt.mode&1)&&(un===0||un===11||un===15)){var Dt=Yt.alternate;Dt?(Yt.updateQueue=Dt.updateQueue,Yt.memoizedState=Dt.memoizedState,Yt.lanes=Dt.lanes):(Yt.updateQueue=null,Yt.memoizedState=null)}var si=Bh(ne);if(si!==null){si.flags&=-257,Kn(si,ne,ye,B,m),si.mode&1&&ga(B,St,m),m=si,Ne=St;var Ur=m.updateQueue;if(Ur===null){var or=new Set;or.add(Ne),m.updateQueue=or}else Ur.add(Ne);break e}else{if(!(m&1)){ga(B,St,m),sl();break e}Ne=Error(o(426))}}else if(ii&&ye.mode&1){var Cr=Bh(ne);if(Cr!==null){!(Cr.flags&65536)&&(Cr.flags|=256),Kn(Cr,ne,ye,B,m),Kv(oc(Ne,ye));break e}}B=Ne=oc(Ne,ye),Xi!==4&&(Xi=2),Tf===null?Tf=[B]:Tf.push(B),B=ne;do{switch(B.tag){case 3:B.flags|=65536,m&=-m,B.lanes|=m;var Be=id(B,Ne,m);lu(B,Be);break e;case 1:ye=Ne;var Se=B.type,Ue=B.stateNode;if(!(B.flags&128)&&(typeof Se.getDerivedStateFromError=="function"||Ue!==null&&typeof Ue.componentDidCatch=="function"&&(jl===null||!jl.has(Ue)))){B.flags|=65536,m&=-m,B.lanes|=m;var jt=q(B,ye,m);lu(B,jt);break e}}B=B.return}while(B!==null)}Qh(E)}catch(rt){m=rt,Ki===E&&E!==null&&(Ki=E=E.return);continue}break}while(1)}function cg(){var h=sd.current;return sd.current=Lo,h===null?Lo:h}function sl(){(Xi===0||Xi===3||Xi===2)&&(Xi=4),Da===null||!(mc&268435455)&&!(ud&268435455)||$r(Da,xa)}function hd(h,m){var E=Xn;Xn|=2;var O=cg();(Da!==h||xa!==m)&&(mu=null,vc(h,m));do try{Rl();break}catch(j){Tm(h,j)}while(1);if(om(),Xn=E,sd.current=O,Ki!==null)throw Error(o(261));return Da=null,xa=0,Xi}function Rl(){for(;Ki!==null;)bu(Ki)}function km(){for(;Ki!==null&&!em();)bu(Ki)}function bu(h){var m=Pm(h.alternate,h,es);h.memoizedProps=h.pendingProps,m===null?Qh(h):Ki=m,hc.current=null}function Qh(h){var m=h;do{var E=m.alternate;if(h=m.return,m.flags&32768){if(E=Gh(E,m),E!==null){E.flags&=32767,Ki=E;return}if(h!==null)h.flags|=32768,h.subtreeFlags=0,h.deletions=null;else{Xi=6,Ki=null;return}}else if(E=FS(E,m,es),E!==null){Ki=E;return}if(m=m.sibling,m!==null){Ki=m;return}Ki=m=h}while(m!==null);Xi===0&&(Xi=5)}function gc(h,m,E){var O=tr,j=Jr.transition;try{Jr.transition=null,tr=1,dg(h,m,E,O)}finally{Jr.transition=j,tr=O}return null}function dg(h,m,E,O){do ns();while(en!==null);if(Xn&6)throw Error(o(327));E=h.finishedWork;var j=h.finishedLanes;if(E===null)return null;if(h.finishedWork=null,h.finishedLanes=0,E===h.current)throw Error(o(177));h.callbackNode=null,h.callbackPriority=0;var B=E.lanes|E.childLanes;if(Eh(h,B),h===Da&&(Ki=Da=null,xa=0),!(E.subtreeFlags&2064)&&!(E.flags&2064)||kf||(kf=!0,wo(Th,function(){return ns(),null})),B=(E.flags&15990)!==0,E.subtreeFlags&15990||B){B=Jr.transition,Jr.transition=null;var ne=tr;tr=1;var ye=Xn;Xn|=4,hc.current=null,fu(h,E),ks(E,h),ee(h.containerInfo),h.current=E,qh(E),Zs(),Xn=ye,tr=ne,Jr.transition=B}else h.current=E;if(kf&&(kf=!1,en=h,Ps=j),B=h.pendingLanes,B===0&&(jl=null),rm(E.stateNode),Mi(h,hi()),m!==null)for(O=h.onRecoverableError,E=0;E<m.length;E++)j=m[E],O(j.value,{componentStack:j.stack,digest:j.digest});if(Kh)throw Kh=!1,h=Xh,Xh=null,h;return Ps&1&&h.tag!==0&&ns(),B=h.pendingLanes,B&1?h===gu?cd++:(cd=0,gu=h):cd=0,pn(),null}function ns(){if(en!==null){var h=Zu(Ps),m=Jr.transition,E=tr;try{if(Jr.transition=null,tr=16>h?16:h,en===null)var O=!1;else{if(h=en,en=null,Ps=0,Xn&6)throw Error(o(331));var j=Xn;for(Xn|=4,Ht=h.current;Ht!==null;){var B=Ht,ne=B.child;if(Ht.flags&16){var ye=B.deletions;if(ye!==null){for(var Ne=0;Ne<ye.length;Ne++){var St=ye[Ne];for(Ht=St;Ht!==null;){var Yt=Ht;switch(Yt.tag){case 0:case 11:case 15:aa(8,Yt,B)}var un=Yt.child;if(un!==null)un.return=Yt,Ht=un;else for(;Ht!==null;){Yt=Ht;var Dt=Yt.sibling,si=Yt.return;if(ig(Yt),Yt===St){Ht=null;break}if(Dt!==null){Dt.return=si,Ht=Dt;break}Ht=si}}}var Ur=B.alternate;if(Ur!==null){var or=Ur.child;if(or!==null){Ur.child=null;do{var Cr=or.sibling;or.sibling=null,or=Cr}while(or!==null)}}Ht=B}}if(B.subtreeFlags&2064&&ne!==null)ne.return=B,Ht=ne;else e:for(;Ht!==null;){if(B=Ht,B.flags&2048)switch(B.tag){case 0:case 11:case 15:aa(9,B,B.return)}var Be=B.sibling;if(Be!==null){Be.return=B.return,Ht=Be;break e}Ht=B.return}}var Se=h.current;for(Ht=Se;Ht!==null;){ne=Ht;var Ue=ne.child;if(ne.subtreeFlags&2064&&Ue!==null)Ue.return=ne,Ht=Ue;else e:for(ne=Se;Ht!==null;){if(ye=Ht,ye.flags&2048)try{switch(ye.tag){case 0:case 11:case 15:zo(9,ye)}}catch(rt){sr(ye,ye.return,rt)}if(ye===ne){Ht=null;break e}var jt=ye.sibling;if(jt!==null){jt.return=ye.return,Ht=jt;break e}Ht=ye.return}}if(Xn=j,pn(),nr&&typeof nr.onPostCommitFiberRoot=="function")try{nr.onPostCommitFiberRoot(Tr,h)}catch{}O=!0}return O}finally{tr=E,Jr.transition=m}}return!1}function Ma(h,m,E){m=oc(E,m),m=id(h,m,1),h=$u(h,m,1),m=Ha(),h!==null&&(ho(h,1,m),Mi(h,m))}function sr(h,m,E){if(h.tag===3)Ma(h,h,E);else for(;m!==null;){if(m.tag===3){Ma(m,h,E);break}else if(m.tag===1){var O=m.stateNode;if(typeof m.type.getDerivedStateFromError=="function"||typeof O.componentDidCatch=="function"&&(jl===null||!jl.has(O))){h=oc(E,h),h=q(m,h,1),m=$u(m,h,1),h=Ha(),m!==null&&(ho(m,1,h),Mi(m,h));break}}m=m.return}}function As(h,m,E){var O=h.pingCache;O!==null&&O.delete(m),m=Ha(),h.pingedLanes|=h.suspendedLanes&E,Da===h&&(xa&E)===E&&(Xi===4||Xi===3&&(xa&130023424)===xa&&500>hi()-ug?vc(h,0):lg|=E),Mi(h,m)}function Nl(h,m){m===0&&(h.mode&1?(m=fo,fo<<=1,!(fo&130023424)&&(fo=4194304)):m=1);var E=Ha();h=ws(h,m),h!==null&&(ho(h,m,E),Mi(h,E))}function yc(h){var m=h.memoizedState,E=0;m!==null&&(E=m.retryLane),Nl(h,E)}function Ay(h,m){var E=0;switch(h.tag){case 13:var O=h.stateNode,j=h.memoizedState;j!==null&&(E=j.retryLane);break;case 19:O=h.stateNode;break;default:throw Error(o(314))}O!==null&&O.delete(m),Nl(h,E)}var Pm;Pm=function(h,m,E){if(h!==null)if(h.memoizedProps!==m.pendingProps||La.current)Fa=!0;else{if(!(h.lanes&E)&&!(m.flags&128))return Fa=!1,bf(h,m,E);Fa=!!(h.flags&131072)}else Fa=!1,ii&&m.flags&1048576&&Yv(m,Ui,m.index);switch(m.lanes=0,m.tag){case 2:var O=m.type;Ts(h,m),h=m.pendingProps;var j=Qu(m,ha.current);df(m,E),j=mn(null,m,O,h,j,E);var B=Vn();return m.flags|=1,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0?(m.tag=1,m.memoizedState=null,m.updateQueue=null,pa(O)?(B=!0,_l(m)):B=!1,m.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,sm(m),j.updater=el,m.stateNode=j,j._reactInternals=m,Qv(m,O,h,E),m=Jo(null,m,O,!0,B,E)):(m.tag=0,ii&&B&&po(m),ya(null,m,j,E),m=m.child),m;case 16:O=m.elementType;e:{switch(Ts(h,m),h=m.pendingProps,j=O._init,O=j(O._payload),m.type=O,j=m.tag=Zh(O),h=$s(O,h),j){case 0:m=Uh(null,m,O,h,E);break e;case 1:m=_y(null,m,O,h,E);break e;case 11:m=Fh(null,m,O,h,E);break e;case 14:m=sc(null,m,O,$s(O.type,h),E);break e}throw Error(o(306,O,""))}return m;case 0:return O=m.type,j=m.pendingProps,j=m.elementType===O?j:$s(O,j),Uh(h,m,O,j,E);case 1:return O=m.type,j=m.pendingProps,j=m.elementType===O?j:$s(O,j),_y(h,m,O,j,E);case 3:e:{if(ng(m),h===null)throw Error(o(387));O=m.pendingProps,B=m.memoizedState,j=B.element,Xv(h,m),hf(m,O,null,E);var ne=m.memoizedState;if(O=ne.element,Nt&&B.isDehydrated)if(B={element:O,isDehydrated:!1,cache:ne.cache,pendingSuspenseBoundaries:ne.pendingSuspenseBoundaries,transitions:ne.transitions},m.updateQueue.baseState=B,m.memoizedState=B,m.flags&256){j=oc(Error(o(423)),m),m=Ty(h,m,O,E,j);break e}else if(O!==j){j=oc(Error(o(424)),m),m=Ty(h,m,O,E,j);break e}else for(Nt&&(Ss=kt(m.stateNode.containerInfo),pi=m,ii=!0,Ro=null,xs=!1),E=Es(m,null,O,E),m.child=E;E;)E.flags=E.flags&-3|4096,E=E.sibling;else{if(uf(),O===j){m=Hi(h,m,E);break e}ya(h,m,O,E)}m=m.child}return m;case 5:return tn(m),h===null&&kh(m),O=m.type,j=m.pendingProps,B=h!==null?h.memoizedProps:null,ne=j.children,Ie(O,j)?ne=null:B!==null&&Ie(O,B)&&(m.flags|=32),Ey(h,m),ya(h,m,ne,E),m.child;case 6:return h===null&&kh(m),null;case 13:return ky(h,m,E);case 4:return Te(m,m.stateNode.containerInfo),O=m.pendingProps,h===null?m.child=cu(m,null,O,E):ya(h,m,O,E),m.child;case 11:return O=m.type,j=m.pendingProps,j=m.elementType===O?j:$s(O,j),Fh(h,m,O,j,E);case 7:return ya(h,m,m.pendingProps,E),m.child;case 8:return ya(h,m,m.pendingProps.children,E),m.child;case 12:return ya(h,m,m.pendingProps.children,E),m.child;case 10:e:{if(O=m.type._context,j=m.pendingProps,B=m.memoizedProps,ne=j.value,Sy(m,O,ne),B!==null)if(ae(B.value,ne)){if(B.children===j.children&&!La.current){m=Hi(h,m,E);break e}}else for(B=m.child,B!==null&&(B.return=m);B!==null;){var ye=B.dependencies;if(ye!==null){ne=B.child;for(var Ne=ye.firstContext;Ne!==null;){if(Ne.context===O){if(B.tag===1){Ne=Al(-1,E&-E),Ne.tag=2;var St=B.updateQueue;if(St!==null){St=St.shared;var Yt=St.pending;Yt===null?Ne.next=Ne:(Ne.next=Yt.next,Yt.next=Ne),St.pending=Ne}}B.lanes|=E,Ne=B.alternate,Ne!==null&&(Ne.lanes|=E),Mh(B.return,E,m),ye.lanes|=E;break}Ne=Ne.next}}else if(B.tag===10)ne=B.type===m.type?null:B.child;else if(B.tag===18){if(ne=B.return,ne===null)throw Error(o(341));ne.lanes|=E,ye=ne.alternate,ye!==null&&(ye.lanes|=E),Mh(ne,E,m),ne=B.sibling}else ne=B.child;if(ne!==null)ne.return=B;else for(ne=B;ne!==null;){if(ne===m){ne=null;break}if(B=ne.sibling,B!==null){B.return=ne.return,ne=B;break}ne=ne.return}B=ne}ya(h,m,j.children,E),m=m.child}return m;case 9:return j=m.type,O=m.pendingProps.children,df(m,E),j=Ba(j),O=O(j),m.flags|=1,ya(h,m,O,E),m.child;case 14:return O=m.type,j=$s(O,m.pendingProps),j=$s(O.type,j),sc(h,m,O,j,E);case 15:return wy(h,m,m.type,m.pendingProps,E);case 17:return O=m.type,j=m.pendingProps,j=m.elementType===O?j:$s(O,j),Ts(h,m),m.tag=1,pa(O)?(h=!0,_l(m)):h=!1,df(m,E),xy(m,O,j),Qv(m,O,j,E),Jo(null,m,O,!0,h,E);case 19:return uc(h,m,E);case 22:return Cy(h,m,E)}throw Error(o(156,m.tag))};function wo(h,m){return af(h,m)}function Ll(h,m,E,O){this.tag=h,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=O,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Os(h,m,E,O){return new Ll(h,m,E,O)}function Am(h){return h=h.prototype,!(!h||!h.isReactComponent)}function Zh(h){if(typeof h=="function")return Am(h)?1:0;if(h!=null){if(h=h.$$typeof,h===k)return 11;if(h===M)return 14}return 2}function Co(h,m){var E=h.alternate;return E===null?(E=Os(h.tag,m,h.key,h.mode),E.elementType=h.elementType,E.type=h.type,E.stateNode=h.stateNode,E.alternate=h,h.alternate=E):(E.pendingProps=m,E.type=h.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=h.flags&14680064,E.childLanes=h.childLanes,E.lanes=h.lanes,E.child=h.child,E.memoizedProps=h.memoizedProps,E.memoizedState=h.memoizedState,E.updateQueue=h.updateQueue,m=h.dependencies,E.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},E.sibling=h.sibling,E.index=h.index,E.ref=h.ref,E}function Af(h,m,E,O,j,B){var ne=2;if(O=h,typeof h=="function")Am(h)&&(ne=1);else if(typeof h=="string")ne=5;else e:switch(h){case p:return Su(E.children,j,B,m);case g:ne=8,j|=8;break;case S:return h=Os(12,E,m,j|2),h.elementType=S,h.lanes=B,h;case P:return h=Os(13,E,m,j),h.elementType=P,h.lanes=B,h;case D:return h=Os(19,E,m,j),h.elementType=D,h.lanes=B,h;case L:return Of(E,j,B,m);default:if(typeof h=="object"&&h!==null)switch(h.$$typeof){case w:ne=10;break e;case C:ne=9;break e;case k:ne=11;break e;case M:ne=14;break e;case R:ne=16,O=null;break e}throw Error(o(130,h==null?h:typeof h,""))}return m=Os(ne,E,m,j),m.elementType=h,m.type=O,m.lanes=B,m}function Su(h,m,E,O){return h=Os(7,h,O,m),h.lanes=E,h}function Of(h,m,E,O){return h=Os(22,h,O,m),h.elementType=L,h.lanes=E,h.stateNode={isHidden:!1},h}function Df(h,m,E){return h=Os(6,h,null,m),h.lanes=E,h}function zl(h,m,E){return m=Os(4,h.children!==null?h.children:[],h.key,m),m.lanes=E,m.stateNode={containerInfo:h.containerInfo,pendingChildren:null,implementation:h.implementation},m}function Jh(h,m,E,O,j){this.tag=m,this.containerInfo=h,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=mt,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rf(0),this.expirationTimes=rf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rf(0),this.identifierPrefix=O,this.onRecoverableError=j,Nt&&(this.mutableSourceEagerHydrationData=null)}function Oy(h,m,E,O,j,B,ne,ye,Ne){return h=new Jh(h,m,E,ye,Ne),m===1?(m=1,B===!0&&(m|=8)):m=0,B=Os(3,null,null,m),h.current=B,B.stateNode=h,B.memoizedState={element:O,isDehydrated:E,cache:null,transitions:null,pendingSuspenseBoundaries:null},sm(B),h}function fg(h){if(!h)return Xs;h=h._reactInternals;e:{if(J(h)!==h||h.tag!==1)throw Error(o(170));var m=h;do{switch(m.tag){case 3:m=m.stateNode.context;break e;case 1:if(pa(m.type)){m=m.stateNode.__reactInternalMemoizedMergedChildContext;break e}}m=m.return}while(m!==null);throw Error(o(171))}if(h.tag===1){var E=h.type;if(pa(E))return su(h,E,m)}return m}function hg(h){var m=h._reactInternals;if(m===void 0)throw typeof h.render=="function"?Error(o(188)):(h=Object.keys(h).join(","),Error(o(268,h)));return h=fe(m),h===null?null:h.stateNode}function Mf(h,m){if(h=h.memoizedState,h!==null&&h.dehydrated!==null){var E=h.retryLane;h.retryLane=E!==0&&E<m?E:m}}function bc(h,m){Mf(h,m),(h=h.alternate)&&Mf(h,m)}function Om(h){return h=fe(h),h===null?null:h.stateNode}function Dm(){return null}return n.attemptContinuousHydration=function(h){if(h.tag===13){var m=ws(h,134217728);if(m!==null){var E=Ha();ts(m,h,134217728,E)}bc(h,134217728)}},n.attemptDiscreteHydration=function(h){if(h.tag===13){var m=ws(h,1);if(m!==null){var E=Ha();ts(m,h,1,E)}bc(h,1)}},n.attemptHydrationAtCurrentPriority=function(h){if(h.tag===13){var m=Nr(h),E=ws(h,m);if(E!==null){var O=Ha();ts(E,h,m,O)}bc(h,m)}},n.attemptSynchronousHydration=function(h){switch(h.tag){case 3:var m=h.stateNode;if(m.current.memoizedState.isDehydrated){var E=ma(m.pendingLanes);E!==0&&(Xc(m,E|1),Mi(m,hi()),!(Xn&6)&&(vu(),pn()))}break;case 13:ol(function(){var O=ws(h,1);if(O!==null){var j=Ha();ts(O,h,1,j)}}),bc(h,1)}},n.batchedUpdates=function(h,m){var E=Xn;Xn|=1;try{return h(m)}finally{Xn=E,Xn===0&&(vu(),Le&&pn())}},n.createComponentSelector=function(h){return{$$typeof:Ot,value:h}},n.createContainer=function(h,m,E,O,j,B,ne){return Oy(h,m,!1,null,E,O,j,B,ne)},n.createHasPseudoClassSelector=function(h){return{$$typeof:$o,value:h}},n.createHydrationContainer=function(h,m,E,O,j,B,ne,ye,Ne){return h=Oy(E,O,!0,h,j,B,ne,ye,Ne),h.context=fg(null),E=h.current,O=Ha(),j=Nr(E),B=Al(O,j),B.callback=m??null,$u(E,B,j),h.current.lanes=j,ho(h,j,O),Mi(h,O),h},n.createPortal=function(h,m,E){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:O==null?null:""+O,children:h,containerInfo:m,implementation:E}},n.createRoleSelector=function(h){return{$$typeof:Bo,value:h}},n.createTestNameSelector=function(h){return{$$typeof:Ef,value:h}},n.createTextSelector=function(h){return{$$typeof:Cm,value:h}},n.deferredUpdates=function(h){var m=tr,E=Jr.transition;try{return Jr.transition=null,tr=16,h()}finally{tr=m,Jr.transition=E}},n.discreteUpdates=function(h,m,E,O,j){var B=tr,ne=Jr.transition;try{return Jr.transition=null,tr=1,h(m,E,O,j)}finally{tr=B,Jr.transition=ne,Xn===0&&vu()}},n.findAllNodes=sg,n.findBoundingRects=function(h,m){if(!we)throw Error(o(363));m=sg(h,m),h=[];for(var E=0;E<m.length;E++)h.push(ot(m[E]));for(m=h.length-1;0<m;m--){E=h[m];for(var O=E.x,j=O+E.width,B=E.y,ne=B+E.height,ye=m-1;0<=ye;ye--)if(m!==ye){var Ne=h[ye],St=Ne.x,Yt=St+Ne.width,un=Ne.y,Dt=un+Ne.height;if(O>=St&&B>=un&&j<=Yt&&ne<=Dt){h.splice(m,1);break}else if(O!==St||E.width!==Ne.width||Dt<B||un>ne){if(!(B!==un||E.height!==Ne.height||Yt<O||St>j)){St>O&&(Ne.width+=St-O,Ne.x=O),Yt<j&&(Ne.width=j-St),h.splice(m,1);break}}else{un>B&&(Ne.height+=un-B,Ne.y=B),Dt<ne&&(Ne.height=ne-un),h.splice(m,1);break}}}return h},n.findHostInstance=hg,n.findHostInstanceWithNoPortals=function(h){return h=K(h),h=h!==null?G(h):null,h===null?null:h.stateNode},n.findHostInstanceWithWarning=function(h){return hg(h)},n.flushControlled=function(h){var m=Xn;Xn|=1;var E=Jr.transition,O=tr;try{Jr.transition=null,tr=1,h()}finally{tr=O,Jr.transition=E,Xn=m,Xn===0&&(vu(),pn())}},n.flushPassiveEffects=ns,n.flushSync=ol,n.focusWithin=function(h,m){if(!we)throw Error(o(363));for(h=Em(h),m=_f(h,m),m=Array.from(m),h=0;h<m.length;){var E=m[h++];if(!He(E)){if(E.tag===5&&Zt(E.stateNode))return!0;for(E=E.child;E!==null;)m.push(E),E=E.sibling}}return!1},n.getCurrentUpdatePriority=function(){return tr},n.getFindAllNodesFailureDescription=function(h,m){if(!we)throw Error(o(363));var E=0,O=[];h=[Em(h),0];for(var j=0;j<h.length;){var B=h[j++],ne=h[j++],ye=m[ne];if((B.tag!==5||!He(B))&&(og(B,ye)&&(O.push(oa(ye)),ne++,ne>E&&(E=ne)),ne<m.length))for(B=B.child;B!==null;)h.push(B,ne),B=B.sibling}if(E<m.length){for(h=[];E<m.length;E++)h.push(oa(m[E]));return`findAllNodes was able to match part of the selector:
|
||
`+(O.join(" > ")+`
|
||
|
||
No matching component was found for:
|
||
`)+h.join(" > ")}return null},n.getPublicRootInstance=function(h){if(h=h.current,!h.child)return null;switch(h.child.tag){case 5:return re(h.child.stateNode);default:return h.child.stateNode}},n.injectIntoDevTools=function(h){if(h={bundleType:h.bundleType,version:h.version,rendererPackageName:h.rendererPackageName,rendererConfig:h.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:Om,findFiberByHostInstance:h.findFiberByHostInstance||Dm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")h=!1;else{var m=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(m.isDisabled||!m.supportsFiber)h=!0;else{try{Tr=m.inject(h),nr=m}catch{}h=!!m.checkDCE}}return h},n.isAlreadyRendering=function(){return!1},n.observeVisibleRects=function(h,m,E,O){if(!we)throw Error(o(363));h=sg(h,m);var j=nn(h,E,O).disconnect;return{disconnect:function(){j()}}},n.registerMutableSourceForHydration=function(h,m){var E=m._getVersion;E=E(m._source),h.mutableSourceEagerHydrationData==null?h.mutableSourceEagerHydrationData=[m,E]:h.mutableSourceEagerHydrationData.push(m,E)},n.runWithPriority=function(h,m){var E=tr;try{return tr=h,m()}finally{tr=E}},n.shouldError=function(){return null},n.shouldSuspend=function(){return!1},n.updateContainer=function(h,m,E,O){var j=m.current,B=Ha(),ne=Nr(j);return E=fg(E),m.context===null?m.context=E:m.pendingContext=E,m=Al(B,ne),m.payload={element:h},O=O===void 0?null:O,O!==null&&(m.callback=O),h=$u(j,m,ne),h!==null&&(ts(h,j,ne,B),lm(h,j,ne)),ne},n}),vO}var IE={},pPe={get exports(){return IE},set exports(e){IE=e}};/**
|
||
* @license React
|
||
* react-reconciler.development.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 JH;function mPe(){return JH||(JH=1,process.env.NODE_ENV!=="production"&&(pPe.exports=function(t){var n={},r=A,i=Vv,a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,o=!1;function l(s){o=s}function c(s){if(!o){for(var u=arguments.length,b=new Array(u>1?u-1:0),x=1;x<u;x++)b[x-1]=arguments[x];p("warn",s,b)}}function d(s){if(!o){for(var u=arguments.length,b=new Array(u>1?u-1:0),x=1;x<u;x++)b[x-1]=arguments[x];p("error",s,b)}}function p(s,u,b){{var x=a.ReactDebugCurrentFrame,_=x.getStackAddendum();_!==""&&(u+="%s",b=b.concat([_]));var I=b.map(function(F){return String(F)});I.unshift("Warning: "+u),Function.prototype.apply.call(console[s],console,I)}}var g=Object.assign;function S(s){return s._reactInternals}function w(s,u){s._reactInternals=u}var C=!1,k=!1,P=!1,D=!1,M=!1,R=!0,L=!0,z=!0,U=0,V=1,Y=2,J=3,$=4,K=5,fe=6,X=7,G=8,te=9,re=10,oe=11,ie=12,le=13,ee=14,de=15,Fe=16,Pe=17,Oe=18,Ie=19,De=21,$e=22,it=23,mt=24,bt=25,qe=Symbol.for("react.element"),Ce=Symbol.for("react.portal"),Nt=Symbol.for("react.fragment"),Ae=Symbol.for("react.strict_mode"),xt=Symbol.for("react.profiler"),ln=Symbol.for("react.provider"),Wt=Symbol.for("react.context"),In=Symbol.for("react.forward_ref"),ar=Symbol.for("react.suspense"),we=Symbol.for("react.suspense_list"),at=Symbol.for("react.memo"),ot=Symbol.for("react.lazy"),yt=Symbol.for("react.scope"),He=Symbol.for("react.debug_trace_mode"),st=Symbol.for("react.offscreen"),Zt=Symbol.for("react.legacy_hidden"),nn=Symbol.for("react.cache"),Ze=Symbol.for("react.tracing_marker"),rn=Symbol.iterator,Rn="@@iterator";function lt(s){if(s===null||typeof s!="object")return null;var u=rn&&s[rn]||s[Rn];return typeof u=="function"?u:null}function Ge(s,u,b){var x=s.displayName;if(x)return x;var _=u.displayName||u.name||"";return _!==""?b+"("+_+")":b}function pt(s){return s.displayName||"Context"}function Bt(s){if(s==null)return null;if(typeof s.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case Nt:return"Fragment";case Ce:return"Portal";case xt:return"Profiler";case Ae:return"StrictMode";case ar:return"Suspense";case we:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case Wt:var u=s;return pt(u)+".Consumer";case ln:var b=s;return pt(b._context)+".Provider";case In:return Ge(s,s.render,"ForwardRef");case at:var x=s.displayName||null;return x!==null?x:Bt(s.type)||"Memo";case ot:{var _=s,I=_._payload,F=_._init;try{return Bt(F(I))}catch{return null}}}return null}function jn(s,u,b){var x=u.displayName||u.name||"";return s.displayName||(x!==""?b+"("+x+")":b)}function Un(s){return s.displayName||"Context"}function Mt(s){var u=s.tag,b=s.type;switch(u){case mt:return"Cache";case te:var x=b;return Un(x)+".Consumer";case re:var _=b;return Un(_._context)+".Provider";case Oe:return"DehydratedFragment";case oe:return jn(b,b.render,"ForwardRef");case X:return"Fragment";case K:return b;case $:return"Portal";case J:return"Root";case fe:return"Text";case Fe:return Bt(b);case G:return b===Ae?"StrictMode":"Mode";case $e:return"Offscreen";case ie:return"Profiler";case De:return"Scope";case le:return"Suspense";case Ie:return"SuspenseList";case bt:return"TracingMarker";case V:case U:case Pe:case Y:case ee:case de:if(typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;break}return null}var Lt=0,vr=1,gr=2,hn=4,ri=16,Ys=32,so=64,qn=128,Io=256,lo=512,Xo=1024,Na=2048,Fi=4096,Qo=8192,tu=16384,Ku=Na|hn|so|lo|Xo|tu,Wc=32767,nu=32768,di=65536,pe=131072,ft=1048576,kt=2097152,an=4194304,er=8388608,Pn=16777216,zn=33554432,Nn=hn|Xo|0,Ei=gr|hn|ri|Ys|lo|Fi|Qo,Dr=hn|so|lo|Qo,Mr=Na|ri,fi=an|er|kt,uo=a.ReactCurrentOwner;function ru(s){var u=s,b=s;if(s.alternate)for(;u.return;)u=u.return;else{var x=u;do u=x,(u.flags&(gr|Fi))!==Lt&&(b=u.return),x=u.return;while(x)}return u.tag===J?b:null}function fa(s){return ru(s)===s}function qc(s){{var u=uo.current;if(u!==null&&u.tag===V){var b=u,x=b.stateNode;x._warnedAboutRefsInRender||d("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Mt(b)||"A component"),x._warnedAboutRefsInRender=!0}}var _=S(s);return _?ru(_)===_:!1}function Xu(s){if(ru(s)!==s)throw new Error("Unable to find node on an unmounted component.")}function iu(s){var u=s.alternate;if(!u){var b=ru(s);if(b===null)throw new Error("Unable to find node on an unmounted component.");return b!==s?null:s}for(var x=s,_=u;;){var I=x.return;if(I===null)break;var F=I.alternate;if(F===null){var W=I.return;if(W!==null){x=_=W;continue}break}if(I.child===F.child){for(var Q=I.child;Q;){if(Q===x)return Xu(I),s;if(Q===_)return Xu(I),u;Q=Q.sibling}throw new Error("Unable to find node on an unmounted component.")}if(x.return!==_.return)x=I,_=F;else{for(var ue=!1,me=I.child;me;){if(me===x){ue=!0,x=I,_=F;break}if(me===_){ue=!0,_=I,x=F;break}me=me.sibling}if(!ue){for(me=F.child;me;){if(me===x){ue=!0,x=F,_=I;break}if(me===_){ue=!0,_=F,x=I;break}me=me.sibling}if(!ue)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(x.alternate!==_)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(x.tag!==J)throw new Error("Unable to find node on an unmounted component.");return x.stateNode.current===x?s:u}function au(s){var u=iu(s);return u!==null?xh(u):null}function xh(s){if(s.tag===K||s.tag===fe)return s;for(var u=s.child;u!==null;){var b=xh(u);if(b!==null)return b;u=u.sibling}return null}function Zd(s){var u=iu(s);return u!==null?ou(u):null}function ou(s){if(s.tag===K||s.tag===fe)return s;for(var u=s.child;u!==null;){if(u.tag!==$){var b=ou(u);if(b!==null)return b}u=u.sibling}return null}var Ks=Array.isArray;function Hn(s){return Ks(s)}var _r=t.getPublicInstance,Xs=t.getRootHostContext,ha=t.getChildHostContext,La=t.prepareForCommit,Qs=t.resetAfterCommit,Qu=t.createInstance,pa=t.appendInitialChild,El=t.finalizeInitialChildren,Jd=t.prepareUpdate,su=t.shouldSetTextContent,_l=t.createTextInstance,$d=t.scheduleTimeout,co=t.cancelTimeout,ef=t.noTimeout,Yc=t.isPrimaryRenderer,wh=t.warnsIfNotActing,ea=t.supportsMutation,fo=t.supportsPersistence,ma=t.supportsHydration,Kc=t.getInstanceFromNode;t.beforeActiveInstanceBlur,t.afterActiveInstanceBlur;var qv=t.preparePortalMount;t.prepareScopeUpdate,t.getInstanceFromScope;var tf=t.getCurrentEventPriority,nf=t.detachDeletedInstance,Ch=t.supportsMicrotasks,rf=t.scheduleMicrotask,ho=t.supportsTestSelectors,Eh=t.findFiberRoot,Xc=t.getBoundingRect,tr=t.getTextContent,Zu=t.isHiddenSubtree,af=t.matchAccessibilityRole,of=t.setFocusIfFocusable,em=t.setupIntersectionObserver,Zs=t.appendChild,hi=t.appendChildToContainer,_h=t.commitTextUpdate,tm=t.commitMount,Th=t.commitUpdate,nm=t.insertBefore,Tr=t.insertInContainerBefore,nr=t.removeChild,rm=t.removeChildFromContainer,im=t.resetTextContent,ae=t.hideInstance,ve=t.hideTextInstance,Le=t.unhideInstance,zt=t.unhideTextInstance,Yn=t.clearContainer,jr=t.cloneInstance,pn=t.createContainerChildSet,An=t.appendChildToContainerChildSet,rr=t.finalizeContainerChildren,ta=t.replaceContainerChildren,Ui=t.cloneHiddenInstance,kr=t.cloneHiddenTextInstance,za=t.canHydrateInstance,bs=t.canHydrateTextInstance,Zo=t.canHydrateSuspenseInstance,Js=t.isSuspenseInstancePending,Tl=t.isSuspenseInstanceFallback,Yv=t.getSuspenseInstanceFallbackErrorDetails,po=t.registerSuspenseInstanceRetry,sf=t.getNextHydratableSibling,pi=t.getFirstHydratableChild,Ss=t.getFirstHydratableChildWithinContainer,ii=t.getFirstHydratableChildWithinSuspenseInstance,xs=t.hydrateInstance,Ro=t.hydrateTextInstance,am=t.hydrateSuspenseInstance,ai=t.getNextHydratableInstanceAfterSuspenseInstance,kl=t.commitHydratedContainer,kh=t.commitHydratedSuspenseInstance,gy=t.clearSuspenseBoundary,lf=t.clearSuspenseBoundaryFromContainer,yy=t.shouldDeleteUnhydratedTailInstances,uf=t.didNotMatchHydratedContainerTextInstance,Kv=t.didNotMatchHydratedTextInstance,by=t.didNotHydrateInstanceWithinContainer,Qc=t.didNotHydrateInstanceWithinSuspenseInstance,cf=t.didNotHydrateInstance,$s=t.didNotFindHydratableInstanceWithinContainer,Ph=t.didNotFindHydratableTextInstanceWithinContainer,Ah=t.didNotFindHydratableSuspenseInstanceWithinContainer,Ju=t.didNotFindHydratableInstanceWithinSuspenseInstance,Oh=t.didNotFindHydratableTextInstanceWithinSuspenseInstance,om=t.didNotFindHydratableSuspenseInstanceWithinSuspenseInstance,Sy=t.didNotFindHydratableInstance,Dh=t.didNotFindHydratableTextInstance,Mh=t.didNotFindHydratableSuspenseInstance,df=t.errorHydratingContainer,Ba=0,na,ff,Zc,ws,Pl,sm,Xv;function Al(){}Al.__reactDisabledLog=!0;function $u(){{if(Ba===0){na=console.log,ff=console.info,Zc=console.warn,ws=console.error,Pl=console.group,sm=console.groupCollapsed,Xv=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Al,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Ba++}}function lm(){{if(Ba--,Ba===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:g({},s,{value:na}),info:g({},s,{value:ff}),warn:g({},s,{value:Zc}),error:g({},s,{value:ws}),group:g({},s,{value:Pl}),groupCollapsed:g({},s,{value:sm}),groupEnd:g({},s,{value:Xv})})}Ba<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var lu=a.ReactCurrentDispatcher,hf;function uu(s,u,b){{if(hf===void 0)try{throw Error()}catch(_){var x=_.stack.trim().match(/\n( *(at )?)/);hf=x&&x[1]||""}return`
|
||
`+hf+s}}var pf=!1,Jc;{var el=typeof WeakMap=="function"?WeakMap:Map;Jc=new el}function $c(s,u){if(!s||pf)return"";{var b=Jc.get(s);if(b!==void 0)return b}var x;pf=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=lu.current,lu.current=null,$u();try{if(u){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(ct){x=ct}Reflect.construct(s,[],F)}else{try{F.call()}catch(ct){x=ct}s.call(F.prototype)}}else{try{throw Error()}catch(ct){x=ct}s()}}catch(ct){if(ct&&x&&typeof ct.stack=="string"){for(var W=ct.stack.split(`
|
||
`),Q=x.stack.split(`
|
||
`),ue=W.length-1,me=Q.length-1;ue>=1&&me>=0&&W[ue]!==Q[me];)me--;for(;ue>=1&&me>=0;ue--,me--)if(W[ue]!==Q[me]){if(ue!==1||me!==1)do if(ue--,me--,me<0||W[ue]!==Q[me]){var ke=`
|
||
`+W[ue].replace(" at new "," at ");return s.displayName&&ke.includes("<anonymous>")&&(ke=ke.replace("<anonymous>",s.displayName)),typeof s=="function"&&Jc.set(s,ke),ke}while(ue>=1&&me>=0);break}}}finally{pf=!1,lu.current=I,lm(),Error.prepareStackTrace=_}var Ve=s?s.displayName||s.name:"",Xe=Ve?uu(Ve):"";return typeof s=="function"&&Jc.set(s,Xe),Xe}function xy(s,u,b){return $c(s,!0)}function um(s,u,b){return $c(s,!1)}function Qv(s){var u=s.prototype;return!!(u&&u.isReactComponent)}function Cs(s,u,b){if(s==null)return"";if(typeof s=="function")return $c(s,Qv(s));if(typeof s=="string")return uu(s);switch(s){case ar:return uu("Suspense");case we:return uu("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case In:return um(s.render);case at:return Cs(s.type,u,b);case ot:{var x=s,_=x._payload,I=x._init;try{return Cs(I(_),u,b)}catch{}}}return""}var mo=Object.prototype.hasOwnProperty,cm={},Zv=a.ReactDebugCurrentFrame;function cu(s){if(s){var u=s._owner,b=Cs(s.type,s._source,u?u.type:null);Zv.setExtraStackFrame(b)}else Zv.setExtraStackFrame(null)}function Es(s,u,b,x,_){{var I=Function.call.bind(mo);for(var F in s)if(I(s,F)){var W=void 0;try{if(typeof s[F]!="function"){var Q=Error((x||"React class")+": "+b+" type `"+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[F]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Q.name="Invariant Violation",Q}W=s[F](u,F,x,b,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ue){W=ue}W&&!(W instanceof Error)&&(cu(_),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",b,F,typeof W),cu(null)),W instanceof Error&&!(W.message in cm)&&(cm[W.message]=!0,cu(_),d("Failed %s type: %s",b,W.message),cu(null))}}}var ed=[],vo;vo=[];var Oa=-1;function ge(s){return{current:s}}function ze(s,u){if(Oa<0){d("Unexpected pop.");return}u!==vo[Oa]&&d("Unexpected Fiber popped."),s.current=ed[Oa],ed[Oa]=null,vo[Oa]=null,Oa--}function Te(s,u,b){Oa++,ed[Oa]=s.current,vo[Oa]=b,s.current=u}var It;It={};var tn={};Object.freeze(tn);var Bn=ge(tn),gn=ge(!1),yr=tn;function Ol(s,u,b){return b&&eo(u)?yr:Bn.current}function dm(s,u,b){{var x=s.stateNode;x.__reactInternalMemoizedUnmaskedChildContext=u,x.__reactInternalMemoizedMaskedChildContext=b}}function ra(s,u){{var b=s.type,x=b.contextTypes;if(!x)return tn;var _=s.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===u)return _.__reactInternalMemoizedMaskedChildContext;var I={};for(var F in x)I[F]=u[F];{var W=Mt(s)||"Unknown";Es(x,I,"context",W)}return _&&dm(s,u,I),I}}function du(){return gn.current}function eo(s){{var u=s.childContextTypes;return u!=null}}function wr(s){ze(gn,s),ze(Bn,s)}function mi(s){ze(gn,s),ze(Bn,s)}function Oi(s,u,b){{if(Bn.current!==tn)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Te(Bn,u,s),Te(gn,b,s)}}function hr(s,u,b){{var x=s.stateNode,_=u.childContextTypes;if(typeof x.getChildContext!="function"){{var I=Mt(s)||"Unknown";It[I]||(It[I]=!0,d("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",I,I))}return b}var F=x.getChildContext();for(var W in F)if(!(W in _))throw new Error((Mt(s)||"Unknown")+'.getChildContext(): key "'+W+'" is not defined in childContextTypes.');{var Q=Mt(s)||"Unknown";Es(_,F,"child context",Q)}return g({},b,F)}}function ec(s){{var u=s.stateNode,b=u&&u.__reactInternalMemoizedMergedChildContext||tn;return yr=Bn.current,Te(Bn,b,s),Te(gn,gn.current,s),!0}}function td(s,u,b){{var x=s.stateNode;if(!x)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(b){var _=hr(s,u,yr);x.__reactInternalMemoizedMergedChildContext=_,ze(gn,s),ze(Bn,s),Te(Bn,_,s),Te(gn,b,s)}else ze(gn,s),Te(gn,b,s)}}function fm(s){{if(!fa(s)||s.tag!==V)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var u=s;do{switch(u.tag){case J:return u.stateNode.context;case V:{var b=u.type;if(eo(b))return u.stateNode.__reactInternalMemoizedMergedChildContext;break}}u=u.return}while(u!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var Vi=0,hm=1,mn=0,Vn=1,En=2,cr=8,go=16,nd=Math.clz32?Math.clz32:jh,pm=Math.log,Jv=Math.LN2;function jh(s){var u=s>>>0;return u===0?32:31-(pm(u)/Jv|0)|0}var Ih=31,nt=0,oi=0,dn=1,rd=2,Dl=4,tl=8,No=16,nl=32,rl=4194240,mf=64,vf=128,mm=256,vm=512,Di=1024,va=2048,Rh=4096,gm=8192,Nh=16384,ym=32768,Lh=65536,tc=131072,zh=262144,nc=524288,rc=1048576,ic=2097152,ac=130023424,Lo=4194304,$v=8388608,eg=16777216,tg=33554432,oc=67108864,bm=Lo,Ml=134217728,gf=268435455,id=268435456,q=536870912,ga=1073741824;function Bh(s){{if(s&dn)return"Sync";if(s&rd)return"InputContinuousHydration";if(s&Dl)return"InputContinuous";if(s&tl)return"DefaultHydration";if(s&No)return"Default";if(s&nl)return"TransitionHydration";if(s&rl)return"Transition";if(s&ac)return"Retry";if(s&Ml)return"SelectiveHydration";if(s&id)return"IdleHydration";if(s&q)return"Idle";if(s&ga)return"Offscreen"}}var Kn=-1,Gn=mf,Fa=Lo;function ya(s){switch(lc(s)){case dn:return dn;case rd:return rd;case Dl:return Dl;case tl:return tl;case No:return No;case nl:return nl;case mf:case vf:case mm:case vm:case Di:case va:case Rh:case gm:case Nh:case ym:case Lh:case tc:case zh:case nc:case rc:case ic:return s&rl;case Lo:case $v:case eg:case tg:case oc:return s∾case Ml:return Ml;case id:return id;case q:return q;case ga:return ga;default:return d("Should have found matching lanes. This is a bug in React."),s}}function Fh(s,u){var b=s.pendingLanes;if(b===nt)return nt;var x=nt,_=s.suspendedLanes,I=s.pingedLanes,F=b&gf;if(F!==nt){var W=F&~_;if(W!==nt)x=ya(W);else{var Q=F&I;Q!==nt&&(x=ya(Q))}}else{var ue=b&~_;ue!==nt?x=ya(ue):I!==nt&&(x=ya(I))}if(x===nt)return nt;if(u!==nt&&u!==x&&(u&_)===nt){var me=lc(x),ke=lc(u);if(me>=ke||me===No&&(ke&rl)!==nt)return u}(x&Dl)!==nt&&(x|=b&No);var Ve=s.entangledLanes;if(Ve!==nt)for(var Xe=s.entanglements,ct=x&Ve;ct>0;){var ut=uc(ct),on=1<<ut;x|=Xe[ut],ct&=~on}return x}function sc(s,u){for(var b=s.eventTimes,x=Kn;u>0;){var _=uc(u),I=1<<_,F=b[_];F>x&&(x=F),u&=~I}return x}function wy(s,u){switch(s){case dn:case rd:case Dl:return u+250;case tl:case No:case nl:case mf:case vf:case mm:case vm:case Di:case va:case Rh:case gm:case Nh:case ym:case Lh:case tc:case zh:case nc:case rc:case ic:return u+5e3;case Lo:case $v:case eg:case tg:case oc:return Kn;case Ml:case id:case q:case ga:return Kn;default:return d("Should have found matching lanes. This is a bug in React."),Kn}}function Cy(s,u){for(var b=s.pendingLanes,x=s.suspendedLanes,_=s.pingedLanes,I=s.expirationTimes,F=b;F>0;){var W=uc(F),Q=1<<W,ue=I[W];ue===Kn?((Q&x)===nt||(Q&_)!==nt)&&(I[W]=wy(Q,u)):ue<=u&&(s.expiredLanes|=Q),F&=~Q}}function Ey(s){return ya(s.pendingLanes)}function Uh(s){var u=s.pendingLanes&~ga;return u!==nt?u:u&ga?ga:nt}function _y(s){return(s&dn)!==nt}function Jo(s){return(s&gf)!==nt}function ng(s){return(s&ac)===s}function Ty(s){var u=dn|Dl|No;return(s&u)===nt}function rg(s){return(s&rl)===s}function yf(s,u){var b=rd|Dl|tl|No;return(u&b)!==nt}function ky(s,u){return(u&s.expiredLanes)!==nt}function _s(s){return(s&rl)!==nt}function Vh(){var s=Gn;return Gn<<=1,(Gn&rl)===nt&&(Gn=mf),s}function BS(){var s=Fa;return Fa<<=1,(Fa&ac)===nt&&(Fa=Lo),s}function lc(s){return s&-s}function ad(s){return lc(s)}function uc(s){return 31-nd(s)}function Ts(s){return uc(s)}function Hi(s,u){return(s&u)!==nt}function bf(s,u){return(s&u)===u}function Xt(s,u){return s|u}function Hh(s,u){return s&~u}function Sf(s,u){return s&u}function Sm(s){return s}function xm(s,u){return s!==oi&&s<u?s:u}function xf(s){for(var u=[],b=0;b<Ih;b++)u.push(s);return u}function od(s,u,b){s.pendingLanes|=u,u!==q&&(s.suspendedLanes=nt,s.pingedLanes=nt);var x=s.eventTimes,_=Ts(u);x[_]=b}function wf(s,u){s.suspendedLanes|=u,s.pingedLanes&=~u;for(var b=s.expirationTimes,x=u;x>0;){var _=uc(x),I=1<<_;b[_]=Kn,x&=~I}}function Ua(s,u,b){s.pingedLanes|=s.suspendedLanes&u}function FS(s,u){var b=s.pendingLanes&~u;s.pendingLanes=u,s.suspendedLanes=nt,s.pingedLanes=nt,s.expiredLanes&=u,s.mutableReadLanes&=u,s.entangledLanes&=u;for(var x=s.entanglements,_=s.eventTimes,I=s.expirationTimes,F=b;F>0;){var W=uc(F),Q=1<<W;x[W]=nt,_[W]=Kn,I[W]=Kn,F&=~Q}}function Gh(s,u){for(var b=s.entangledLanes|=u,x=s.entanglements,_=b;_;){var I=uc(_),F=1<<I;F&u|x[I]&u&&(x[I]|=u),_&=~F}}function cc(s,u){var b=lc(u),x;switch(b){case Dl:x=rd;break;case No:x=tl;break;case mf:case vf:case mm:case vm:case Di:case va:case Rh:case gm:case Nh:case ym:case Lh:case tc:case zh:case nc:case rc:case ic:case Lo:case $v:case eg:case tg:case oc:x=nl;break;case q:x=id;break;default:x=oi;break}return(x&(s.suspendedLanes|u))!==oi?oi:x}function ia(s,u,b){if(Bo)for(var x=s.pendingUpdatersLaneMap;b>0;){var _=Ts(b),I=1<<_,F=x[_];F.add(u),b&=~I}}function Py(s,u){if(Bo)for(var b=s.pendingUpdatersLaneMap,x=s.memoizedUpdaters;u>0;){var _=Ts(u),I=1<<_,F=b[_];F.size>0&&(F.forEach(function(W){var Q=W.alternate;(Q===null||!x.has(Q))&&x.add(W)}),F.clear()),u&=~I}}function Ht(s,u){return null}var yo=dn,bo=Dl,dc=No,fu=q,aa=oi;function zo(){return aa}function Gi(s){aa=s}function ig(s,u){var b=aa;try{return aa=s,u()}finally{aa=b}}function Cf(s,u){return s!==0&&s<u?s:u}function hu(s,u){return s===0||s>u?s:u}function Wh(s,u){return s!==0&&s<u}function wm(s){var u=lc(s);return Wh(yo,u)?Wh(bo,u)?Jo(u)?dc:fu:bo:yo}var Wi=i.unstable_scheduleCallback,il=i.unstable_cancelCallback,al=i.unstable_shouldYield,ba=i.unstable_requestPaint,qi=i.unstable_now,So=i.unstable_ImmediatePriority,ks=i.unstable_UserBlockingPriority,Va=i.unstable_NormalPriority,qh=i.unstable_IdlePriority,fc=i.unstable_yieldValue,ag=i.unstable_setDisableYieldValue,Yi=null,Sa=null,Ot=null,$o=!1,Bo=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Ef(s){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(u.isDisabled)return!0;if(!u.supportsFiber)return d("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{R&&(s=g({},s,{getLaneLabelMap:sg,injectProfilingHooks:_f})),Yi=u.inject(s),Sa=u}catch(b){d("React instrumentation encountered an error: %s.",b)}return!!u.checkDCE}function Cm(s,u){if(Sa&&typeof Sa.onScheduleFiberRoot=="function")try{Sa.onScheduleFiberRoot(Yi,s,u)}catch(b){$o||($o=!0,d("React instrumentation encountered an error: %s",b))}}function pu(s,u){if(Sa&&typeof Sa.onCommitFiberRoot=="function")try{var b=(s.current.flags&qn)===qn;if(L){var x;switch(u){case yo:x=So;break;case bo:x=ks;break;case dc:x=Va;break;case fu:x=qh;break;default:x=Va;break}Sa.onCommitFiberRoot(Yi,s,x,b)}}catch(_){$o||($o=!0,d("React instrumentation encountered an error: %s",_))}}function Em(s){if(Sa&&typeof Sa.onPostCommitFiberRoot=="function")try{Sa.onPostCommitFiberRoot(Yi,s)}catch(u){$o||($o=!0,d("React instrumentation encountered an error: %s",u))}}function og(s){if(Sa&&typeof Sa.onCommitFiberUnmount=="function")try{Sa.onCommitFiberUnmount(Yi,s)}catch(u){$o||($o=!0,d("React instrumentation encountered an error: %s",u))}}function oa(s){if(typeof fc=="function"&&(ag(s),l(s)),Sa&&typeof Sa.setStrictMode=="function")try{Sa.setStrictMode(Yi,s)}catch(u){$o||($o=!0,d("React instrumentation encountered an error: %s",u))}}function _f(s){Ot=s}function sg(){{for(var s=new Map,u=1,b=0;b<Ih;b++){var x=Bh(u);s.set(u,x),u*=2}return s}}function US(s){Ot!==null&&typeof Ot.markCommitStarted=="function"&&Ot.markCommitStarted(s)}function sd(){Ot!==null&&typeof Ot.markCommitStopped=="function"&&Ot.markCommitStopped()}function hc(s){Ot!==null&&typeof Ot.markComponentRenderStarted=="function"&&Ot.markComponentRenderStarted(s)}function Jr(){Ot!==null&&typeof Ot.markComponentRenderStopped=="function"&&Ot.markComponentRenderStopped()}function Xn(s){Ot!==null&&typeof Ot.markComponentPassiveEffectMountStarted=="function"&&Ot.markComponentPassiveEffectMountStarted(s)}function Da(){Ot!==null&&typeof Ot.markComponentPassiveEffectMountStopped=="function"&&Ot.markComponentPassiveEffectMountStopped()}function Ki(s){Ot!==null&&typeof Ot.markComponentPassiveEffectUnmountStarted=="function"&&Ot.markComponentPassiveEffectUnmountStarted(s)}function xa(){Ot!==null&&typeof Ot.markComponentPassiveEffectUnmountStopped=="function"&&Ot.markComponentPassiveEffectUnmountStopped()}function es(s){Ot!==null&&typeof Ot.markComponentLayoutEffectMountStarted=="function"&&Ot.markComponentLayoutEffectMountStarted(s)}function pc(){Ot!==null&&typeof Ot.markComponentLayoutEffectMountStopped=="function"&&Ot.markComponentLayoutEffectMountStopped()}function Xi(s){Ot!==null&&typeof Ot.markComponentLayoutEffectUnmountStarted=="function"&&Ot.markComponentLayoutEffectUnmountStarted(s)}function ld(){Ot!==null&&typeof Ot.markComponentLayoutEffectUnmountStopped=="function"&&Ot.markComponentLayoutEffectUnmountStopped()}function mc(s,u,b){Ot!==null&&typeof Ot.markComponentErrored=="function"&&Ot.markComponentErrored(s,u,b)}function ud(s,u,b){Ot!==null&&typeof Ot.markComponentSuspended=="function"&&Ot.markComponentSuspended(s,u,b)}function lg(s){Ot!==null&&typeof Ot.markLayoutEffectsStarted=="function"&&Ot.markLayoutEffectsStarted(s)}function Tf(){Ot!==null&&typeof Ot.markLayoutEffectsStopped=="function"&&Ot.markLayoutEffectsStopped()}function xo(s){Ot!==null&&typeof Ot.markPassiveEffectsStarted=="function"&&Ot.markPassiveEffectsStarted(s)}function ug(){Ot!==null&&typeof Ot.markPassiveEffectsStopped=="function"&&Ot.markPassiveEffectsStopped()}function Yh(s){Ot!==null&&typeof Ot.markRenderStarted=="function"&&Ot.markRenderStarted(s)}function mu(){Ot!==null&&typeof Ot.markRenderYielded=="function"&&Ot.markRenderYielded()}function vu(){Ot!==null&&typeof Ot.markRenderStopped=="function"&&Ot.markRenderStopped()}function Kh(s){Ot!==null&&typeof Ot.markRenderScheduled=="function"&&Ot.markRenderScheduled(s)}function Xh(s,u){Ot!==null&&typeof Ot.markForceUpdateScheduled=="function"&&Ot.markForceUpdateScheduled(s,u)}function jl(s,u){Ot!==null&&typeof Ot.markStateUpdateScheduled=="function"&&Ot.markStateUpdateScheduled(s,u)}function kf(s,u){return s===u&&(s!==0||1/s===1/u)||s!==s&&u!==u}var en=typeof Object.is=="function"?Object.is:kf,Ps=null,cd=!1,gu=!1;function Pf(s){Ps===null?Ps=[s]:Ps.push(s)}function _m(s){cd=!0,Pf(s)}function Ha(){cd&&Nr()}function Nr(){if(!gu&&Ps!==null){gu=!0;var s=0,u=zo();try{var b=!0,x=Ps;for(Gi(yo);s<x.length;s++){var _=x[s];do _=_(b);while(_!==null)}Ps=null,cd=!1}catch(I){throw Ps!==null&&(Ps=Ps.slice(s+1)),Wi(So,Nr),I}finally{Gi(u),gu=!1}}return null}function ts(s){var u=s.current.memoizedState;return u.isDehydrated}var Mi=[],yu=0,dd=null,fd=0,gi=[],$r=0,Il=null,ol=1,Fo="";function vc(s){return ns(),(s.flags&ft)!==Lt}function Tm(s){return ns(),fd}function cg(){var s=Fo,u=ol,b=u&~bu(u);return b.toString(32)+s}function sl(s,u){ns(),Mi[yu++]=fd,Mi[yu++]=dd,dd=s,fd=u}function hd(s,u,b){ns(),gi[$r++]=ol,gi[$r++]=Fo,gi[$r++]=Il,Il=s;var x=ol,_=Fo,I=km(x)-1,F=x&~(1<<I),W=b+1,Q=km(u)+I;if(Q>30){var ue=I-I%5,me=(1<<ue)-1,ke=(F&me).toString(32),Ve=F>>ue,Xe=I-ue,ct=km(u)+Xe,ut=W<<Xe,on=ut|Ve,Tn=ke+_;ol=1<<ct|on,Fo=Tn}else{var vn=W<<I,ei=vn|F,br=_;ol=1<<Q|ei,Fo=br}}function Rl(s){ns();var u=s.return;if(u!==null){var b=1,x=0;sl(s,b),hd(s,b,x)}}function km(s){return 32-nd(s)}function bu(s){return 1<<km(s)-1}function Qh(s){for(;s===dd;)dd=Mi[--yu],Mi[yu]=null,fd=Mi[--yu],Mi[yu]=null;for(;s===Il;)Il=gi[--$r],gi[$r]=null,Fo=gi[--$r],gi[$r]=null,ol=gi[--$r],gi[$r]=null}function gc(){return ns(),Il!==null?{id:ol,overflow:Fo}:null}function dg(s,u){ns(),gi[$r++]=ol,gi[$r++]=Fo,gi[$r++]=Il,ol=u.id,Fo=u.overflow,Il=s}function ns(){E()||d("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Ma=null,sr=null,As=!1,Nl=!1,yc=null;function Ay(){As&&d("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Pm(){Nl=!0}function wo(){return Nl}function Ll(s){if(!ma)return!1;var u=s.stateNode.containerInfo;return sr=Ss(u),Ma=s,As=!0,yc=null,Nl=!1,!0}function Os(s,u,b){return ma?(sr=ii(u),Ma=s,As=!0,yc=null,Nl=!1,b!==null&&dg(s,b),!0):!1}function Am(s,u){switch(s.tag){case J:{by(s.stateNode.containerInfo,u);break}case K:{var b=(s.mode&Vn)!==mn;cf(s.type,s.memoizedProps,s.stateNode,u,b);break}case le:{var x=s.memoizedState;x.dehydrated!==null&&Qc(x.dehydrated,u);break}}}function Zh(s,u){Am(s,u);var b=Q6e();b.stateNode=u,b.return=s;var x=s.deletions;x===null?(s.deletions=[b],s.flags|=ri):x.push(b)}function Co(s,u){{if(Nl)return;switch(s.tag){case J:{var b=s.stateNode.containerInfo;switch(u.tag){case K:var x=u.type,_=u.pendingProps;$s(b,x,_);break;case fe:var I=u.pendingProps;Ph(b,I);break;case le:Ah(b);break}break}case K:{var F=s.type,W=s.memoizedProps,Q=s.stateNode;switch(u.tag){case K:{var ue=u.type,me=u.pendingProps,ke=(s.mode&Vn)!==mn;Sy(F,W,Q,ue,me,ke);break}case fe:{var Ve=u.pendingProps,Xe=(s.mode&Vn)!==mn;Dh(F,W,Q,Ve,Xe);break}case le:{Mh(F,W,Q);break}}break}case le:{var ct=s.memoizedState,ut=ct.dehydrated;if(ut!==null)switch(u.tag){case K:var on=u.type,Tn=u.pendingProps;Ju(ut,on,Tn);break;case fe:var vn=u.pendingProps;Oh(ut,vn);break;case le:om(ut);break}break}default:return}}}function Af(s,u){u.flags=u.flags&~Fi|gr,Co(s,u)}function Su(s,u){switch(s.tag){case K:{var b=s.type,x=s.pendingProps,_=za(u,b,x);return _!==null?(s.stateNode=_,Ma=s,sr=pi(_),!0):!1}case fe:{var I=s.pendingProps,F=bs(u,I);return F!==null?(s.stateNode=F,Ma=s,sr=null,!0):!1}case le:{var W=Zo(u);if(W!==null){var Q={dehydrated:W,treeContext:gc(),retryLane:ga};s.memoizedState=Q;var ue=Z6e(W);return ue.return=s,s.child=ue,Ma=s,sr=null,!0}return!1}default:return!1}}function Of(s){return(s.mode&Vn)!==mn&&(s.flags&qn)===Lt}function Df(s){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function zl(s){if(As){var u=sr;if(!u){Of(s)&&(Co(Ma,s),Df()),Af(Ma,s),As=!1,Ma=s;return}var b=u;if(!Su(s,u)){Of(s)&&(Co(Ma,s),Df()),u=sf(b);var x=Ma;if(!u||!Su(s,u)){Af(Ma,s),As=!1,Ma=s;return}Zh(x,b)}}}function Jh(s,u,b){if(!ma)throw new Error("Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var x=s.stateNode,_=!Nl,I=xs(x,s.type,s.memoizedProps,u,b,s,_);return s.updateQueue=I,I!==null}function Oy(s){if(!ma)throw new Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var u=s.stateNode,b=s.memoizedProps,x=!Nl,_=Ro(u,b,s,x);if(_){var I=Ma;if(I!==null)switch(I.tag){case J:{var F=I.stateNode.containerInfo,W=(I.mode&Vn)!==mn;uf(F,u,b,W);break}case K:{var Q=I.type,ue=I.memoizedProps,me=I.stateNode,ke=(I.mode&Vn)!==mn;Kv(Q,ue,me,u,b,ke);break}}}return _}function fg(s){if(!ma)throw new Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var u=s.memoizedState,b=u!==null?u.dehydrated:null;if(!b)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");am(b,s)}function hg(s){if(!ma)throw new Error("Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");var u=s.memoizedState,b=u!==null?u.dehydrated:null;if(!b)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return ai(b)}function Mf(s){for(var u=s.return;u!==null&&u.tag!==K&&u.tag!==J&&u.tag!==le;)u=u.return;Ma=u}function bc(s){if(!ma||s!==Ma)return!1;if(!As)return Mf(s),As=!0,!1;if(s.tag!==J&&(s.tag!==K||yy(s.type)&&!su(s.type,s.memoizedProps))){var u=sr;if(u)if(Of(s))Dm(s),Df();else for(;u;)Zh(s,u),u=sf(u)}return Mf(s),s.tag===le?sr=hg(s):sr=Ma?sf(s.stateNode):null,!0}function Om(){return As&&sr!==null}function Dm(s){for(var u=sr;u;)Am(s,u),u=sf(u)}function h(){ma&&(Ma=null,sr=null,As=!1,Nl=!1)}function m(){yc!==null&&(CW(yc),yc=null)}function E(){return As}function O(s){yc===null?yc=[s]:yc.push(s)}var j=a.ReactCurrentBatchConfig,B=null;function ne(){return j.transition}function ye(s,u){if(en(s,u))return!0;if(typeof s!="object"||s===null||typeof u!="object"||u===null)return!1;var b=Object.keys(s),x=Object.keys(u);if(b.length!==x.length)return!1;for(var _=0;_<b.length;_++){var I=b[_];if(!mo.call(u,I)||!en(s[I],u[I]))return!1}return!0}function Ne(s){switch(s._debugOwner&&s._debugOwner.type,s._debugSource,s.tag){case K:return uu(s.type);case Fe:return uu("Lazy");case le:return uu("Suspense");case Ie:return uu("SuspenseList");case U:case Y:case de:return um(s.type);case oe:return um(s.type.render);case V:return xy(s.type);default:return""}}function St(s){try{var u="",b=s;do u+=Ne(b),b=b.return;while(b);return u}catch(x){return`
|
||
Error generating stack: `+x.message+`
|
||
`+x.stack}}var Yt=a.ReactDebugCurrentFrame,un=null,Dt=!1;function si(){{if(un===null)return null;var s=un._debugOwner;if(s!==null&&typeof s<"u")return Mt(s)}return null}function Ur(){return un===null?"":St(un)}function or(){Yt.getCurrentStack=null,un=null,Dt=!1}function Cr(s){Yt.getCurrentStack=s===null?null:Ur,un=s,Dt=!1}function Be(){return un}function Se(s){Dt=s}var Ue={recordUnsafeLifecycleWarnings:function(s,u){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(s,u){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var jt=function(s){for(var u=null,b=s;b!==null;)b.mode&cr&&(u=b),b=b.return;return u},rt=function(s){var u=[];return s.forEach(function(b){u.push(b)}),u.sort().join(", ")},Cn=[],Sn=[],Ln=[],ji=[],Qn=[],rs=[],Ii=new Set;Ue.recordUnsafeLifecycleWarnings=function(s,u){Ii.has(s.type)||(typeof u.componentWillMount=="function"&&u.componentWillMount.__suppressDeprecationWarning!==!0&&Cn.push(s),s.mode&cr&&typeof u.UNSAFE_componentWillMount=="function"&&Sn.push(s),typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Ln.push(s),s.mode&cr&&typeof u.UNSAFE_componentWillReceiveProps=="function"&&ji.push(s),typeof u.componentWillUpdate=="function"&&u.componentWillUpdate.__suppressDeprecationWarning!==!0&&Qn.push(s),s.mode&cr&&typeof u.UNSAFE_componentWillUpdate=="function"&&rs.push(s))},Ue.flushPendingUnsafeLifecycleWarnings=function(){var s=new Set;Cn.length>0&&(Cn.forEach(function(Ve){s.add(Mt(Ve)||"Component"),Ii.add(Ve.type)}),Cn=[]);var u=new Set;Sn.length>0&&(Sn.forEach(function(Ve){u.add(Mt(Ve)||"Component"),Ii.add(Ve.type)}),Sn=[]);var b=new Set;Ln.length>0&&(Ln.forEach(function(Ve){b.add(Mt(Ve)||"Component"),Ii.add(Ve.type)}),Ln=[]);var x=new Set;ji.length>0&&(ji.forEach(function(Ve){x.add(Mt(Ve)||"Component"),Ii.add(Ve.type)}),ji=[]);var _=new Set;Qn.length>0&&(Qn.forEach(function(Ve){_.add(Mt(Ve)||"Component"),Ii.add(Ve.type)}),Qn=[]);var I=new Set;if(rs.length>0&&(rs.forEach(function(Ve){I.add(Mt(Ve)||"Component"),Ii.add(Ve.type)}),rs=[]),u.size>0){var F=rt(u);d(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
||
|
||
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
||
|
||
Please update the following components: %s`,F)}if(x.size>0){var W=rt(x);d(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
||
|
||
* Move data fetching code or side effects to componentDidUpdate.
|
||
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
||
|
||
Please update the following components: %s`,W)}if(I.size>0){var Q=rt(I);d(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
||
|
||
* Move data fetching code or side effects to componentDidUpdate.
|
||
|
||
Please update the following components: %s`,Q)}if(s.size>0){var ue=rt(s);c(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
||
|
||
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
||
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
||
|
||
Please update the following components: %s`,ue)}if(b.size>0){var me=rt(b);c(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
||
|
||
* Move data fetching code or side effects to componentDidUpdate.
|
||
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
||
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
||
|
||
Please update the following components: %s`,me)}if(_.size>0){var ke=rt(_);c(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
||
|
||
* Move data fetching code or side effects to componentDidUpdate.
|
||
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
||
|
||
Please update the following components: %s`,ke)}};var Dy=new Map,KE=new Set;Ue.recordLegacyContextWarning=function(s,u){var b=jt(s);if(b===null){d("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!KE.has(s.type)){var x=Dy.get(b);(s.type.contextTypes!=null||s.type.childContextTypes!=null||u!==null&&typeof u.getChildContext=="function")&&(x===void 0&&(x=[],Dy.set(b,x)),x.push(s))}},Ue.flushLegacyContextWarning=function(){Dy.forEach(function(s,u){if(s.length!==0){var b=s[0],x=new Set;s.forEach(function(I){x.add(Mt(I)||"Component"),KE.add(I.type)});var _=rt(x);try{Cr(b),d(`Legacy context API has been detected within a strict-mode tree.
|
||
|
||
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
||
|
||
Please update the following components: %s
|
||
|
||
Learn more about this warning here: https://reactjs.org/link/legacy-context`,_)}finally{or()}}})},Ue.discardPendingWarnings=function(){Cn=[],Sn=[],Ln=[],ji=[],Qn=[],rs=[],Dy=new Map}}function VS(s){{var u=typeof Symbol=="function"&&Symbol.toStringTag,b=u&&s[Symbol.toStringTag]||s.constructor.name||"Object";return b}}function XE(s){try{return My(s),!1}catch{return!0}}function My(s){return""+s}function NO(s){if(XE(s))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",VS(s)),My(s)}function LO(s,u){if(XE(s))return d("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",u,VS(s)),My(s)}function xu(s,u){if(s&&s.defaultProps){var b=g({},u),x=s.defaultProps;for(var _ in x)b[_]===void 0&&(b[_]=x[_]);return b}return u}var Bl=ge(null),Ga;Ga={};var Mm=null,jm=null,pg=null,jy=!1;function Iy(){Mm=null,jm=null,pg=null,jy=!1}function Im(){jy=!0}function HS(){jy=!1}function GS(s,u,b){Yc?(Te(Bl,u._currentValue,s),u._currentValue=b,u._currentRenderer!==void 0&&u._currentRenderer!==null&&u._currentRenderer!==Ga&&d("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),u._currentRenderer=Ga):(Te(Bl,u._currentValue2,s),u._currentValue2=b,u._currentRenderer2!==void 0&&u._currentRenderer2!==null&&u._currentRenderer2!==Ga&&d("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),u._currentRenderer2=Ga)}function WS(s,u){var b=Bl.current;ze(Bl,u),Yc?s._currentValue=b:s._currentValue2=b}function qS(s,u,b){for(var x=s;x!==null;){var _=x.alternate;if(bf(x.childLanes,u)?_!==null&&!bf(_.childLanes,u)&&(_.childLanes=Xt(_.childLanes,u)):(x.childLanes=Xt(x.childLanes,u),_!==null&&(_.childLanes=Xt(_.childLanes,u))),x===b)break;x=x.return}x!==b&&d("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function zO(s,u,b){BO(s,u,b)}function BO(s,u,b){var x=s.child;for(x!==null&&(x.return=s);x!==null;){var _=void 0,I=x.dependencies;if(I!==null){_=x.child;for(var F=I.firstContext;F!==null;){if(F.context===u){if(x.tag===V){var W=ad(b),Q=pd(Kn,W);Q.tag=Ny;var ue=x.updateQueue;if(ue!==null){var me=ue.shared,ke=me.pending;ke===null?Q.next=Q:(Q.next=ke.next,ke.next=Q),me.pending=Q}}x.lanes=Xt(x.lanes,b);var Ve=x.alternate;Ve!==null&&(Ve.lanes=Xt(Ve.lanes,b)),qS(x.return,b,s),I.lanes=Xt(I.lanes,b);break}F=F.next}}else if(x.tag===re)_=x.type===s.type?null:x.child;else if(x.tag===Oe){var Xe=x.return;if(Xe===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");Xe.lanes=Xt(Xe.lanes,b);var ct=Xe.alternate;ct!==null&&(ct.lanes=Xt(ct.lanes,b)),qS(Xe,b,s),_=x.sibling}else _=x.child;if(_!==null)_.return=x;else for(_=x;_!==null;){if(_===s){_=null;break}var ut=_.sibling;if(ut!==null){ut.return=_.return,_=ut;break}_=_.return}x=_}}function $h(s,u){Mm=s,jm=null,pg=null;var b=s.dependencies;if(b!==null){var x=b.firstContext;x!==null&&(Hi(b.lanes,u)&&Lg(),b.firstContext=null)}}function wa(s){jy&&d("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var u=Yc?s._currentValue:s._currentValue2;if(pg!==s){var b={context:s,memoizedValue:u,next:null};if(jm===null){if(Mm===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");jm=b,Mm.dependencies={lanes:nt,firstContext:b}}else jm=jm.next=b}return u}var ep=null;function mg(s){ep===null?ep=[s]:ep.push(s)}function QE(){if(ep!==null){for(var s=0;s<ep.length;s++){var u=ep[s],b=u.interleaved;if(b!==null){u.interleaved=null;var x=b.next,_=u.pending;if(_!==null){var I=_.next;_.next=x,b.next=I}u.pending=b}}ep=null}}function Rm(s,u,b,x){var _=u.interleaved;return _===null?(b.next=b,mg(u)):(b.next=_.next,_.next=b),u.interleaved=b,vg(s,x)}function YS(s,u,b,x){var _=u.interleaved;_===null?(b.next=b,mg(u)):(b.next=_.next,_.next=b),u.interleaved=b}function ZE(s,u,b,x){var _=u.interleaved;return _===null?(b.next=b,mg(u)):(b.next=_.next,_.next=b),u.interleaved=b,vg(s,x)}function Uo(s,u){return vg(s,u)}var Ry=vg;function vg(s,u){s.lanes=Xt(s.lanes,u);var b=s.alternate;b!==null&&(b.lanes=Xt(b.lanes,u)),b===null&&(s.flags&(gr|Fi))!==Lt&&IW(s);for(var x=s,_=s.return;_!==null;)_.childLanes=Xt(_.childLanes,u),b=_.alternate,b!==null?b.childLanes=Xt(b.childLanes,u):(_.flags&(gr|Fi))!==Lt&&IW(s),x=_,_=_.return;if(x.tag===J){var I=x.stateNode;return I}else return null}var wu=0,jf=1,Ny=2,Ly=3,zy=!1,KS,By;KS=!1,By=null;function XS(s){var u={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:nt},effects:null};s.updateQueue=u}function JE(s,u){var b=u.updateQueue,x=s.updateQueue;if(b===x){var _={baseState:x.baseState,firstBaseUpdate:x.firstBaseUpdate,lastBaseUpdate:x.lastBaseUpdate,shared:x.shared,effects:x.effects};u.updateQueue=_}}function pd(s,u){var b={eventTime:s,lane:u,tag:wu,payload:null,callback:null,next:null};return b}function If(s,u,b){var x=s.updateQueue;if(x===null)return null;var _=x.shared;if(By===_&&!KS&&(d("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),KS=!0),i6e()){var I=_.pending;return I===null?u.next=u:(u.next=I.next,I.next=u),_.pending=u,Ry(s,b)}else return ZE(s,_,u,b)}function Fy(s,u,b){var x=u.updateQueue;if(x!==null){var _=x.shared;if(_s(b)){var I=_.lanes;I=Sf(I,s.pendingLanes);var F=Xt(I,b);_.lanes=F,Gh(s,F)}}}function QS(s,u){var b=s.updateQueue,x=s.alternate;if(x!==null){var _=x.updateQueue;if(b===_){var I=null,F=null,W=b.firstBaseUpdate;if(W!==null){var Q=W;do{var ue={eventTime:Q.eventTime,lane:Q.lane,tag:Q.tag,payload:Q.payload,callback:Q.callback,next:null};F===null?I=F=ue:(F.next=ue,F=ue),Q=Q.next}while(Q!==null);F===null?I=F=u:(F.next=u,F=u)}else I=F=u;b={baseState:_.baseState,firstBaseUpdate:I,lastBaseUpdate:F,shared:_.shared,effects:_.effects},s.updateQueue=b;return}}var me=b.lastBaseUpdate;me===null?b.firstBaseUpdate=u:me.next=u,b.lastBaseUpdate=u}function FO(s,u,b,x,_,I){switch(b.tag){case jf:{var F=b.payload;if(typeof F=="function"){Im();var W=F.call(I,x,_);{if(s.mode&cr){oa(!0);try{F.call(I,x,_)}finally{oa(!1)}}HS()}return W}return F}case Ly:s.flags=s.flags&~di|qn;case wu:{var Q=b.payload,ue;if(typeof Q=="function"){Im(),ue=Q.call(I,x,_);{if(s.mode&cr){oa(!0);try{Q.call(I,x,_)}finally{oa(!1)}}HS()}}else ue=Q;return ue==null?x:g({},x,ue)}case Ny:return zy=!0,x}return x}function Uy(s,u,b,x){var _=s.updateQueue;zy=!1,By=_.shared;var I=_.firstBaseUpdate,F=_.lastBaseUpdate,W=_.shared.pending;if(W!==null){_.shared.pending=null;var Q=W,ue=Q.next;Q.next=null,F===null?I=ue:F.next=ue,F=Q;var me=s.alternate;if(me!==null){var ke=me.updateQueue,Ve=ke.lastBaseUpdate;Ve!==F&&(Ve===null?ke.firstBaseUpdate=ue:Ve.next=ue,ke.lastBaseUpdate=Q)}}if(I!==null){var Xe=_.baseState,ct=nt,ut=null,on=null,Tn=null,vn=I;do{var ei=vn.lane,br=vn.eventTime;if(bf(x,ei)){if(Tn!==null){var Ke={eventTime:br,lane:oi,tag:vn.tag,payload:vn.payload,callback:vn.callback,next:null};Tn=Tn.next=Ke}Xe=FO(s,_,vn,Xe,u,b);var Me=vn.callback;if(Me!==null&&vn.lane!==oi){s.flags|=so;var wt=_.effects;wt===null?_.effects=[vn]:wt.push(vn)}}else{var je={eventTime:br,lane:ei,tag:vn.tag,payload:vn.payload,callback:vn.callback,next:null};Tn===null?(on=Tn=je,ut=Xe):Tn=Tn.next=je,ct=Xt(ct,ei)}if(vn=vn.next,vn===null){if(W=_.shared.pending,W===null)break;var $t=W,qt=$t.next;$t.next=null,vn=qt,_.lastBaseUpdate=$t,_.shared.pending=null}}while(!0);Tn===null&&(ut=Xe),_.baseState=ut,_.firstBaseUpdate=on,_.lastBaseUpdate=Tn;var pr=_.shared.interleaved;if(pr!==null){var Dn=pr;do ct=Xt(ct,Dn.lane),Dn=Dn.next;while(Dn!==pr)}else I===null&&(_.shared.lanes=nt);f2(ct),s.lanes=ct,s.memoizedState=Xe}By=null}function $E(s,u){if(typeof s!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+s));s.call(u)}function ZS(){zy=!1}function gg(){return zy}function e_(s,u,b){var x=u.effects;if(u.effects=null,x!==null)for(var _=0;_<x.length;_++){var I=x[_],F=I.callback;F!==null&&(I.callback=null,$E(F,b))}}var JS={},t_=new r.Component().refs,Vy,$S,ex,tx,nx,n_,Hy,Ds,rx,ix;{Vy=new Set,$S=new Set,ex=new Set,tx=new Set,Ds=new Set,nx=new Set,rx=new Set,ix=new Set;var r_=new Set;Hy=function(s,u){if(!(s===null||typeof s=="function")){var b=u+"_"+s;r_.has(b)||(r_.add(b),d("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",u,s))}},n_=function(s,u){if(u===void 0){var b=Bt(s)||"Component";nx.has(b)||(nx.add(b),d("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",b))}},Object.defineProperty(JS,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(JS)}function Gy(s,u,b,x){var _=s.memoizedState,I=b(x,_);{if(s.mode&cr){oa(!0);try{I=b(x,_)}finally{oa(!1)}}n_(u,I)}var F=I==null?_:g({},_,I);if(s.memoizedState=F,s.lanes===nt){var W=s.updateQueue;W.baseState=F}}var ax={isMounted:qc,enqueueSetState:function(s,u,b){var x=S(s),_=Rs(),I=Hm(x),F=pd(_,I);F.payload=u,b!=null&&(Hy(b,"setState"),F.callback=b);var W=If(x,F,I);W!==null&&(ro(W,x,I,_),Fy(W,x,I)),jl(x,I)},enqueueReplaceState:function(s,u,b){var x=S(s),_=Rs(),I=Hm(x),F=pd(_,I);F.tag=jf,F.payload=u,b!=null&&(Hy(b,"replaceState"),F.callback=b);var W=If(x,F,I);W!==null&&(ro(W,x,I,_),Fy(W,x,I)),jl(x,I)},enqueueForceUpdate:function(s,u){var b=S(s),x=Rs(),_=Hm(b),I=pd(x,_);I.tag=Ny,u!=null&&(Hy(u,"forceUpdate"),I.callback=u);var F=If(b,I,_);F!==null&&(ro(F,b,_,x),Fy(F,b,_)),Xh(b,_)}};function i_(s,u,b,x,_,I,F){var W=s.stateNode;if(typeof W.shouldComponentUpdate=="function"){var Q=W.shouldComponentUpdate(x,I,F);{if(s.mode&cr){oa(!0);try{Q=W.shouldComponentUpdate(x,I,F)}finally{oa(!1)}}Q===void 0&&d("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Bt(u)||"Component")}return Q}return u.prototype&&u.prototype.isPureReactComponent?!ye(b,x)||!ye(_,I):!0}function UO(s,u,b){var x=s.stateNode;{var _=Bt(u)||"Component",I=x.render;I||(u.prototype&&typeof u.prototype.render=="function"?d("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",_):d("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",_)),x.getInitialState&&!x.getInitialState.isReactClassApproved&&!x.state&&d("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",_),x.getDefaultProps&&!x.getDefaultProps.isReactClassApproved&&d("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",_),x.propTypes&&d("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",_),x.contextType&&d("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",_),x.contextTypes&&d("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",_),u.contextType&&u.contextTypes&&!rx.has(u)&&(rx.add(u),d("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",_)),typeof x.componentShouldUpdate=="function"&&d("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",_),u.prototype&&u.prototype.isPureReactComponent&&typeof x.shouldComponentUpdate<"u"&&d("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Bt(u)||"A pure component"),typeof x.componentDidUnmount=="function"&&d("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",_),typeof x.componentDidReceiveProps=="function"&&d("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",_),typeof x.componentWillRecieveProps=="function"&&d("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",_),typeof x.UNSAFE_componentWillRecieveProps=="function"&&d("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",_);var F=x.props!==b;x.props!==void 0&&F&&d("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",_,_),x.defaultProps&&d("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",_,_),typeof x.getSnapshotBeforeUpdate=="function"&&typeof x.componentDidUpdate!="function"&&!ex.has(u)&&(ex.add(u),d("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Bt(u))),typeof x.getDerivedStateFromProps=="function"&&d("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",_),typeof x.getDerivedStateFromError=="function"&&d("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",_),typeof u.getSnapshotBeforeUpdate=="function"&&d("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",_);var W=x.state;W&&(typeof W!="object"||Hn(W))&&d("%s.state: must be set to an object or null",_),typeof x.getChildContext=="function"&&typeof u.childContextTypes!="object"&&d("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",_)}}function a_(s,u){u.updater=ax,s.stateNode=u,w(u,s),u._reactInternalInstance=JS}function Wy(s,u,b){var x=!1,_=tn,I=tn,F=u.contextType;if("contextType"in u){var W=F===null||F!==void 0&&F.$$typeof===Wt&&F._context===void 0;if(!W&&!ix.has(u)){ix.add(u);var Q="";F===void 0?Q=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof F!="object"?Q=" However, it is set to a "+typeof F+".":F.$$typeof===ln?Q=" Did you accidentally pass the Context.Provider instead?":F._context!==void 0?Q=" Did you accidentally pass the Context.Consumer instead?":Q=" However, it is set to an object with keys {"+Object.keys(F).join(", ")+"}.",d("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Bt(u)||"Component",Q)}}if(typeof F=="object"&&F!==null)I=wa(F);else{_=Ol(s,u,!0);var ue=u.contextTypes;x=ue!=null,I=x?ra(s,_):tn}var me=new u(b,I);if(s.mode&cr){oa(!0);try{me=new u(b,I)}finally{oa(!1)}}var ke=s.memoizedState=me.state!==null&&me.state!==void 0?me.state:null;a_(s,me);{if(typeof u.getDerivedStateFromProps=="function"&&ke===null){var Ve=Bt(u)||"Component";$S.has(Ve)||($S.add(Ve),d("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",Ve,me.state===null?"null":"undefined",Ve))}if(typeof u.getDerivedStateFromProps=="function"||typeof me.getSnapshotBeforeUpdate=="function"){var Xe=null,ct=null,ut=null;if(typeof me.componentWillMount=="function"&&me.componentWillMount.__suppressDeprecationWarning!==!0?Xe="componentWillMount":typeof me.UNSAFE_componentWillMount=="function"&&(Xe="UNSAFE_componentWillMount"),typeof me.componentWillReceiveProps=="function"&&me.componentWillReceiveProps.__suppressDeprecationWarning!==!0?ct="componentWillReceiveProps":typeof me.UNSAFE_componentWillReceiveProps=="function"&&(ct="UNSAFE_componentWillReceiveProps"),typeof me.componentWillUpdate=="function"&&me.componentWillUpdate.__suppressDeprecationWarning!==!0?ut="componentWillUpdate":typeof me.UNSAFE_componentWillUpdate=="function"&&(ut="UNSAFE_componentWillUpdate"),Xe!==null||ct!==null||ut!==null){var on=Bt(u)||"Component",Tn=typeof u.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";tx.has(on)||(tx.add(on),d(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
||
|
||
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
||
|
||
The above lifecycles should be removed. Learn more about this warning here:
|
||
https://reactjs.org/link/unsafe-component-lifecycles`,on,Tn,Xe!==null?`
|
||
`+Xe:"",ct!==null?`
|
||
`+ct:"",ut!==null?`
|
||
`+ut:""))}}}return x&&dm(s,_,I),me}function VO(s,u){var b=u.state;typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),b!==u.state&&(d("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Mt(s)||"Component"),ax.enqueueReplaceState(u,u.state,null))}function o_(s,u,b,x){var _=u.state;if(typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(b,x),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(b,x),u.state!==_){{var I=Mt(s)||"Component";Vy.has(I)||(Vy.add(I),d("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",I))}ax.enqueueReplaceState(u,u.state,null)}}function ox(s,u,b,x){UO(s,u,b);var _=s.stateNode;_.props=b,_.state=s.memoizedState,_.refs=t_,XS(s);var I=u.contextType;if(typeof I=="object"&&I!==null)_.context=wa(I);else{var F=Ol(s,u,!0);_.context=ra(s,F)}{if(_.state===b){var W=Bt(u)||"Component";Ds.has(W)||(Ds.add(W),d("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",W))}s.mode&cr&&Ue.recordLegacyContextWarning(s,_),Ue.recordUnsafeLifecycleWarnings(s,_)}_.state=s.memoizedState;var Q=u.getDerivedStateFromProps;if(typeof Q=="function"&&(Gy(s,u,Q,b),_.state=s.memoizedState),typeof u.getDerivedStateFromProps!="function"&&typeof _.getSnapshotBeforeUpdate!="function"&&(typeof _.UNSAFE_componentWillMount=="function"||typeof _.componentWillMount=="function")&&(VO(s,_),Uy(s,b,_,x),_.state=s.memoizedState),typeof _.componentDidMount=="function"){var ue=hn;ue|=an,(s.mode&go)!==mn&&(ue|=Pn),s.flags|=ue}}function HO(s,u,b,x){var _=s.stateNode,I=s.memoizedProps;_.props=I;var F=_.context,W=u.contextType,Q=tn;if(typeof W=="object"&&W!==null)Q=wa(W);else{var ue=Ol(s,u,!0);Q=ra(s,ue)}var me=u.getDerivedStateFromProps,ke=typeof me=="function"||typeof _.getSnapshotBeforeUpdate=="function";!ke&&(typeof _.UNSAFE_componentWillReceiveProps=="function"||typeof _.componentWillReceiveProps=="function")&&(I!==b||F!==Q)&&o_(s,_,b,Q),ZS();var Ve=s.memoizedState,Xe=_.state=Ve;if(Uy(s,b,_,x),Xe=s.memoizedState,I===b&&Ve===Xe&&!du()&&!gg()){if(typeof _.componentDidMount=="function"){var ct=hn;ct|=an,(s.mode&go)!==mn&&(ct|=Pn),s.flags|=ct}return!1}typeof me=="function"&&(Gy(s,u,me,b),Xe=s.memoizedState);var ut=gg()||i_(s,u,I,b,Ve,Xe,Q);if(ut){if(!ke&&(typeof _.UNSAFE_componentWillMount=="function"||typeof _.componentWillMount=="function")&&(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"){var on=hn;on|=an,(s.mode&go)!==mn&&(on|=Pn),s.flags|=on}}else{if(typeof _.componentDidMount=="function"){var Tn=hn;Tn|=an,(s.mode&go)!==mn&&(Tn|=Pn),s.flags|=Tn}s.memoizedProps=b,s.memoizedState=Xe}return _.props=b,_.state=Xe,_.context=Q,ut}function GO(s,u,b,x,_){var I=u.stateNode;JE(s,u);var F=u.memoizedProps,W=u.type===u.elementType?F:xu(u.type,F);I.props=W;var Q=u.pendingProps,ue=I.context,me=b.contextType,ke=tn;if(typeof me=="object"&&me!==null)ke=wa(me);else{var Ve=Ol(u,b,!0);ke=ra(u,Ve)}var Xe=b.getDerivedStateFromProps,ct=typeof Xe=="function"||typeof I.getSnapshotBeforeUpdate=="function";!ct&&(typeof I.UNSAFE_componentWillReceiveProps=="function"||typeof I.componentWillReceiveProps=="function")&&(F!==Q||ue!==ke)&&o_(u,I,x,ke),ZS();var ut=u.memoizedState,on=I.state=ut;if(Uy(u,x,I,_),on=u.memoizedState,F===Q&&ut===on&&!du()&&!gg()&&!k)return typeof I.componentDidUpdate=="function"&&(F!==s.memoizedProps||ut!==s.memoizedState)&&(u.flags|=hn),typeof I.getSnapshotBeforeUpdate=="function"&&(F!==s.memoizedProps||ut!==s.memoizedState)&&(u.flags|=Xo),!1;typeof Xe=="function"&&(Gy(u,b,Xe,x),on=u.memoizedState);var Tn=gg()||i_(u,b,W,x,ut,on,ke)||k;return Tn?(!ct&&(typeof I.UNSAFE_componentWillUpdate=="function"||typeof I.componentWillUpdate=="function")&&(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(x,on,ke),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(x,on,ke)),typeof I.componentDidUpdate=="function"&&(u.flags|=hn),typeof I.getSnapshotBeforeUpdate=="function"&&(u.flags|=Xo)):(typeof I.componentDidUpdate=="function"&&(F!==s.memoizedProps||ut!==s.memoizedState)&&(u.flags|=hn),typeof I.getSnapshotBeforeUpdate=="function"&&(F!==s.memoizedProps||ut!==s.memoizedState)&&(u.flags|=Xo),u.memoizedProps=x,u.memoizedState=on),I.props=x,I.state=on,I.context=ke,Tn}var sx,lx,ux,cx,dx,s_=function(s,u){};sx=!1,lx=!1,ux={},cx={},dx={},s_=function(s,u){if(!(s===null||typeof s!="object")&&!(!s._store||s._store.validated||s.key!=null)){if(typeof s._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");s._store.validated=!0;var b=Mt(u)||"Component";cx[b]||(cx[b]=!0,d('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function yg(s,u,b){var x=b.ref;if(x!==null&&typeof x!="function"&&typeof x!="object"){if((s.mode&cr||M)&&!(b._owner&&b._self&&b._owner.stateNode!==b._self)){var _=Mt(s)||"Component";ux[_]||(d('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',x),ux[_]=!0)}if(b._owner){var I=b._owner,F;if(I){var W=I;if(W.tag!==V)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");F=W.stateNode}if(!F)throw new Error("Missing owner for string ref "+x+". This error is likely caused by a bug in React. Please file an issue.");var Q=F;LO(x,"ref");var ue=""+x;if(u!==null&&u.ref!==null&&typeof u.ref=="function"&&u.ref._stringRef===ue)return u.ref;var me=function(ke){var Ve=Q.refs;Ve===t_&&(Ve=Q.refs={}),ke===null?delete Ve[ue]:Ve[ue]=ke};return me._stringRef=ue,me}else{if(typeof x!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!b._owner)throw new Error("Element ref was specified as a string ("+x+`) but no owner was set. This could happen for one of the following reasons:
|
||
1. You may be adding a ref to a function component
|
||
2. You may be adding a ref to a component that was not created inside a component's render method
|
||
3. You have multiple copies of React loaded
|
||
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return x}function qy(s,u){var b=Object.prototype.toString.call(u);throw new Error("Objects are not valid as a React child (found: "+(b==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.")}function Yy(s){{var u=Mt(s)||"Component";if(dx[u])return;dx[u]=!0,d("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function l_(s){var u=s._payload,b=s._init;return b(u)}function u_(s){function u(je,Ke){if(s){var Me=je.deletions;Me===null?(je.deletions=[Ke],je.flags|=ri):Me.push(Ke)}}function b(je,Ke){if(!s)return null;for(var Me=Ke;Me!==null;)u(je,Me),Me=Me.sibling;return null}function x(je,Ke){for(var Me=new Map,wt=Ke;wt!==null;)wt.key!==null?Me.set(wt.key,wt):Me.set(wt.index,wt),wt=wt.sibling;return Me}function _(je,Ke){var Me=Yg(je,Ke);return Me.index=0,Me.sibling=null,Me}function I(je,Ke,Me){if(je.index=Me,!s)return je.flags|=ft,Ke;var wt=je.alternate;if(wt!==null){var $t=wt.index;return $t<Ke?(je.flags|=gr,Ke):$t}else return je.flags|=gr,Ke}function F(je){return s&&je.alternate===null&&(je.flags|=gr),je}function W(je,Ke,Me,wt){if(Ke===null||Ke.tag!==fe){var $t=pM(Me,je.mode,wt);return $t.return=je,$t}else{var qt=_(Ke,Me);return qt.return=je,qt}}function Q(je,Ke,Me,wt){var $t=Me.type;if($t===Nt)return me(je,Ke,Me.props.children,wt,Me.key);if(Ke!==null&&(Ke.elementType===$t||zW(Ke,Me)||typeof $t=="object"&&$t!==null&&$t.$$typeof===ot&&l_($t)===Ke.type)){var qt=_(Ke,Me.props);return qt.ref=yg(je,Ke,Me),qt.return=je,qt._debugSource=Me._source,qt._debugOwner=Me._owner,qt}var pr=hM(Me,je.mode,wt);return pr.ref=yg(je,Ke,Me),pr.return=je,pr}function ue(je,Ke,Me,wt){if(Ke===null||Ke.tag!==$||Ke.stateNode.containerInfo!==Me.containerInfo||Ke.stateNode.implementation!==Me.implementation){var $t=mM(Me,je.mode,wt);return $t.return=je,$t}else{var qt=_(Ke,Me.children||[]);return qt.return=je,qt}}function me(je,Ke,Me,wt,$t){if(Ke===null||Ke.tag!==X){var qt=Wm(Me,je.mode,wt,$t);return qt.return=je,qt}else{var pr=_(Ke,Me);return pr.return=je,pr}}function ke(je,Ke,Me){if(typeof Ke=="string"&&Ke!==""||typeof Ke=="number"){var wt=pM(""+Ke,je.mode,Me);return wt.return=je,wt}if(typeof Ke=="object"&&Ke!==null){switch(Ke.$$typeof){case qe:{var $t=hM(Ke,je.mode,Me);return $t.ref=yg(je,null,Ke),$t.return=je,$t}case Ce:{var qt=mM(Ke,je.mode,Me);return qt.return=je,qt}case ot:{var pr=Ke._payload,Dn=Ke._init;return ke(je,Dn(pr),Me)}}if(Hn(Ke)||lt(Ke)){var Pr=Wm(Ke,je.mode,Me,null);return Pr.return=je,Pr}qy(je,Ke)}return typeof Ke=="function"&&Yy(je),null}function Ve(je,Ke,Me,wt){var $t=Ke!==null?Ke.key:null;if(typeof Me=="string"&&Me!==""||typeof Me=="number")return $t!==null?null:W(je,Ke,""+Me,wt);if(typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case qe:return Me.key===$t?Q(je,Ke,Me,wt):null;case Ce:return Me.key===$t?ue(je,Ke,Me,wt):null;case ot:{var qt=Me._payload,pr=Me._init;return Ve(je,Ke,pr(qt),wt)}}if(Hn(Me)||lt(Me))return $t!==null?null:me(je,Ke,Me,wt,null);qy(je,Me)}return typeof Me=="function"&&Yy(je),null}function Xe(je,Ke,Me,wt,$t){if(typeof wt=="string"&&wt!==""||typeof wt=="number"){var qt=je.get(Me)||null;return W(Ke,qt,""+wt,$t)}if(typeof wt=="object"&&wt!==null){switch(wt.$$typeof){case qe:{var pr=je.get(wt.key===null?Me:wt.key)||null;return Q(Ke,pr,wt,$t)}case Ce:{var Dn=je.get(wt.key===null?Me:wt.key)||null;return ue(Ke,Dn,wt,$t)}case ot:var Pr=wt._payload,ur=wt._init;return Xe(je,Ke,Me,ur(Pr),$t)}if(Hn(wt)||lt(wt)){var Ti=je.get(Me)||null;return me(Ke,Ti,wt,$t,null)}qy(Ke,wt)}return typeof wt=="function"&&Yy(Ke),null}function ct(je,Ke,Me){{if(typeof je!="object"||je===null)return Ke;switch(je.$$typeof){case qe:case Ce:s_(je,Me);var wt=je.key;if(typeof wt!="string")break;if(Ke===null){Ke=new Set,Ke.add(wt);break}if(!Ke.has(wt)){Ke.add(wt);break}d("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",wt);break;case ot:var $t=je._payload,qt=je._init;ct(qt($t),Ke,Me);break}}return Ke}function ut(je,Ke,Me,wt){for(var $t=null,qt=0;qt<Me.length;qt++){var pr=Me[qt];$t=ct(pr,$t,je)}for(var Dn=null,Pr=null,ur=Ke,Ti=0,yn=0,ja=null;ur!==null&&yn<Me.length;yn++){ur.index>yn?(ja=ur,ur=null):ja=ur.sibling;var Ns=Ve(je,ur,Me[yn],wt);if(Ns===null){ur===null&&(ur=ja);break}s&&ur&&Ns.alternate===null&&u(je,ur),Ti=I(Ns,Ti,yn),Pr===null?Dn=Ns:Pr.sibling=Ns,Pr=Ns,ur=ja}if(yn===Me.length){if(b(je,ur),E()){var cs=yn;sl(je,cs)}return Dn}if(ur===null){for(;yn<Me.length;yn++){var Pu=ke(je,Me[yn],wt);Pu!==null&&(Ti=I(Pu,Ti,yn),Pr===null?Dn=Pu:Pr.sibling=Pu,Pr=Pu)}if(E()){var hl=yn;sl(je,hl)}return Dn}for(var pl=x(je,ur);yn<Me.length;yn++){var Ls=Xe(pl,je,yn,Me[yn],wt);Ls!==null&&(s&&Ls.alternate!==null&&pl.delete(Ls.key===null?yn:Ls.key),Ti=I(Ls,Ti,yn),Pr===null?Dn=Ls:Pr.sibling=Ls,Pr=Ls)}if(s&&pl.forEach(function(Ob){return u(je,Ob)}),E()){var lp=yn;sl(je,lp)}return Dn}function on(je,Ke,Me,wt){var $t=lt(Me);if(typeof $t!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&Me[Symbol.toStringTag]==="Generator"&&(lx||d("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),lx=!0),Me.entries===$t&&(sx||d("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),sx=!0);var qt=$t.call(Me);if(qt)for(var pr=null,Dn=qt.next();!Dn.done;Dn=qt.next()){var Pr=Dn.value;pr=ct(Pr,pr,je)}}var ur=$t.call(Me);if(ur==null)throw new Error("An iterable object provided no iterator.");for(var Ti=null,yn=null,ja=Ke,Ns=0,cs=0,Pu=null,hl=ur.next();ja!==null&&!hl.done;cs++,hl=ur.next()){ja.index>cs?(Pu=ja,ja=null):Pu=ja.sibling;var pl=Ve(je,ja,hl.value,wt);if(pl===null){ja===null&&(ja=Pu);break}s&&ja&&pl.alternate===null&&u(je,ja),Ns=I(pl,Ns,cs),yn===null?Ti=pl:yn.sibling=pl,yn=pl,ja=Pu}if(hl.done){if(b(je,ja),E()){var Ls=cs;sl(je,Ls)}return Ti}if(ja===null){for(;!hl.done;cs++,hl=ur.next()){var lp=ke(je,hl.value,wt);lp!==null&&(Ns=I(lp,Ns,cs),yn===null?Ti=lp:yn.sibling=lp,yn=lp)}if(E()){var Ob=cs;sl(je,Ob)}return Ti}for(var m2=x(je,ja);!hl.done;cs++,hl=ur.next()){var Vf=Xe(m2,je,cs,hl.value,wt);Vf!==null&&(s&&Vf.alternate!==null&&m2.delete(Vf.key===null?cs:Vf.key),Ns=I(Vf,Ns,cs),yn===null?Ti=Vf:yn.sibling=Vf,yn=Vf)}if(s&&m2.forEach(function(vIe){return u(je,vIe)}),E()){var mIe=cs;sl(je,mIe)}return Ti}function Tn(je,Ke,Me,wt){if(Ke!==null&&Ke.tag===fe){b(je,Ke.sibling);var $t=_(Ke,Me);return $t.return=je,$t}b(je,Ke);var qt=pM(Me,je.mode,wt);return qt.return=je,qt}function vn(je,Ke,Me,wt){for(var $t=Me.key,qt=Ke;qt!==null;){if(qt.key===$t){var pr=Me.type;if(pr===Nt){if(qt.tag===X){b(je,qt.sibling);var Dn=_(qt,Me.props.children);return Dn.return=je,Dn._debugSource=Me._source,Dn._debugOwner=Me._owner,Dn}}else if(qt.elementType===pr||zW(qt,Me)||typeof pr=="object"&&pr!==null&&pr.$$typeof===ot&&l_(pr)===qt.type){b(je,qt.sibling);var Pr=_(qt,Me.props);return Pr.ref=yg(je,qt,Me),Pr.return=je,Pr._debugSource=Me._source,Pr._debugOwner=Me._owner,Pr}b(je,qt);break}else u(je,qt);qt=qt.sibling}if(Me.type===Nt){var ur=Wm(Me.props.children,je.mode,wt,Me.key);return ur.return=je,ur}else{var Ti=hM(Me,je.mode,wt);return Ti.ref=yg(je,Ke,Me),Ti.return=je,Ti}}function ei(je,Ke,Me,wt){for(var $t=Me.key,qt=Ke;qt!==null;){if(qt.key===$t)if(qt.tag===$&&qt.stateNode.containerInfo===Me.containerInfo&&qt.stateNode.implementation===Me.implementation){b(je,qt.sibling);var pr=_(qt,Me.children||[]);return pr.return=je,pr}else{b(je,qt);break}else u(je,qt);qt=qt.sibling}var Dn=mM(Me,je.mode,wt);return Dn.return=je,Dn}function br(je,Ke,Me,wt){var $t=typeof Me=="object"&&Me!==null&&Me.type===Nt&&Me.key===null;if($t&&(Me=Me.props.children),typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case qe:return F(vn(je,Ke,Me,wt));case Ce:return F(ei(je,Ke,Me,wt));case ot:var qt=Me._payload,pr=Me._init;return br(je,Ke,pr(qt),wt)}if(Hn(Me))return ut(je,Ke,Me,wt);if(lt(Me))return on(je,Ke,Me,wt);qy(je,Me)}return typeof Me=="string"&&Me!==""||typeof Me=="number"?F(Tn(je,Ke,""+Me,wt)):(typeof Me=="function"&&Yy(je),b(je,Ke))}return br}var Nm=u_(!0),c_=u_(!1);function WO(s,u){if(s!==null&&u.child!==s.child)throw new Error("Resuming work not yet implemented.");if(u.child!==null){var b=u.child,x=Yg(b,b.pendingProps);for(u.child=x,x.return=u;b.sibling!==null;)b=b.sibling,x=x.sibling=Yg(b,b.pendingProps),x.return=u;x.sibling=null}}function qO(s,u){for(var b=s.child;b!==null;)W6e(b,u),b=b.sibling}var tp={},md=ge(tp),bg=ge(tp),Ky=ge(tp);function Xy(s){if(s===tp)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return s}function fx(){var s=Xy(Ky.current);return s}function hx(s,u){Te(Ky,u,s),Te(bg,s,s),Te(md,tp,s);var b=Xs(u);ze(md,s),Te(md,b,s)}function Lm(s){ze(md,s),ze(bg,s),ze(Ky,s)}function Sg(){var s=Xy(md.current);return s}function d_(s){var u=Xy(Ky.current),b=Xy(md.current),x=ha(b,s.type,u);b!==x&&(Te(bg,s,s),Te(md,x,s))}function Qy(s){bg.current===s&&(ze(md,s),ze(bg,s))}var YO=0,xg=1,f_=1,wg=2,Cu=ge(YO);function px(s,u){return(s&u)!==0}function zm(s){return s&xg}function mx(s,u){return s&xg|u}function KO(s,u){return s|u}function Rf(s,u){Te(Cu,u,s)}function Bm(s){ze(Cu,s)}function XO(s,u){var b=s.memoizedState;return b!==null?b.dehydrated!==null:(s.memoizedProps,!0)}function Zy(s){for(var u=s;u!==null;){if(u.tag===le){var b=u.memoizedState;if(b!==null){var x=b.dehydrated;if(x===null||Js(x)||Tl(x))return u}}else if(u.tag===Ie&&u.memoizedProps.revealOrder!==void 0){var _=(u.flags&qn)!==Lt;if(_)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)return null;for(;u.sibling===null;){if(u.return===null||u.return===s)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Ms=0,Wa=1,Sc=2,qa=4,Eo=8,Jy=[];function $y(){for(var s=0;s<Jy.length;s++){var u=Jy[s];Yc?u._workInProgressVersionPrimary=null:u._workInProgressVersionSecondary=null}Jy.length=0}function QO(s,u){var b=u._getVersion,x=b(u._source);s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[u,x]:s.mutableSourceEagerHydrationData.push(u,x)}var Ft=a.ReactCurrentDispatcher,Cg=a.ReactCurrentBatchConfig,vx,vd;vx=new Set;var np=nt,Lr=null,Ya=null,Ka=null,eb=!1,Eg=!1,_g=0,ZO=0,JO=25,Ye=null,Fl=null,Eu=-1,gx=!1;function Er(){{var s=Ye;Fl===null?Fl=[s]:Fl.push(s)}}function Pt(){{var s=Ye;Fl!==null&&(Eu++,Fl[Eu]!==s&&h_(s))}}function Nf(s){s!=null&&!Hn(s)&&d("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ye,typeof s)}function h_(s){{var u=Mt(Lr);if(!vx.has(u)&&(vx.add(u),Fl!==null)){for(var b="",x=30,_=0;_<=Eu;_++){for(var I=Fl[_],F=_===Eu?s:I,W=_+1+". "+I;W.length<x;)W+=" ";W+=F+`
|
||
`,b+=W}d(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
|
||
|
||
Previous render Next render
|
||
------------------------------------------------------
|
||
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
`,u,b)}}}function _o(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
||
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
||
2. You might be breaking the Rules of Hooks
|
||
3. You might have more than one copy of React in the same app
|
||
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function tb(s,u){if(gx)return!1;if(u===null)return d("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ye),!1;s.length!==u.length&&d(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
||
|
||
Previous: %s
|
||
Incoming: %s`,Ye,"["+u.join(", ")+"]","["+s.join(", ")+"]");for(var b=0;b<u.length&&b<s.length;b++)if(!en(s[b],u[b]))return!1;return!0}function rp(s,u,b,x,_,I){np=I,Lr=u,Fl=s!==null?s._debugHookTypes:null,Eu=-1,gx=s!==null&&s.type!==u.type,u.memoizedState=null,u.updateQueue=null,u.lanes=nt,s!==null&&s.memoizedState!==null?Ft.current=Ox:Fl!==null?Ft.current=D_:Ft.current=O_;var F=b(x,_);if(Eg){var W=0;do{if(Eg=!1,_g=0,W>=JO)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");W+=1,gx=!1,Ya=null,Ka=null,u.updateQueue=null,Eu=-1,Ft.current=wc,F=b(x,_)}while(Eg)}Ft.current=db,u._debugHookTypes=Fl;var Q=Ya!==null&&Ya.next!==null;if(np=nt,Lr=null,Ya=null,Ka=null,Ye=null,Fl=null,Eu=-1,s!==null&&(s.flags&fi)!==(u.flags&fi)&&(s.mode&Vn)!==mn&&d("Internal React error: Expected static flag was missing. Please notify the React team."),eb=!1,Q)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return F}function Fm(){var s=_g!==0;return _g=0,s}function p_(s,u,b){u.updateQueue=s.updateQueue,(u.mode&go)!==mn?u.flags&=~(zn|Pn|Na|hn):u.flags&=~(Na|hn),s.lanes=Hh(s.lanes,b)}function m_(){if(Ft.current=db,eb){for(var s=Lr.memoizedState;s!==null;){var u=s.queue;u!==null&&(u.pending=null),s=s.next}eb=!1}np=nt,Lr=null,Ya=null,Ka=null,Fl=null,Eu=-1,Ye=null,Ax=!1,Eg=!1,_g=0}function ll(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ka===null?Lr.memoizedState=Ka=s:Ka=Ka.next=s,Ka}function is(){var s;if(Ya===null){var u=Lr.alternate;u!==null?s=u.memoizedState:s=null}else s=Ya.next;var b;if(Ka===null?b=Lr.memoizedState:b=Ka.next,b!==null)Ka=b,b=Ka.next,Ya=s;else{if(s===null)throw new Error("Rendered more hooks than during the previous render.");Ya=s;var x={memoizedState:Ya.memoizedState,baseState:Ya.baseState,baseQueue:Ya.baseQueue,queue:Ya.queue,next:null};Ka===null?Lr.memoizedState=Ka=x:Ka=Ka.next=x}return Ka}function v_(){return{lastEffect:null,stores:null}}function yx(s,u){return typeof u=="function"?u(s):u}function Tg(s,u,b){var x=ll(),_;b!==void 0?_=b(u):_=u,x.memoizedState=x.baseState=_;var I={pending:null,interleaved:null,lanes:nt,dispatch:null,lastRenderedReducer:s,lastRenderedState:_};x.queue=I;var F=I.dispatch=k_.bind(null,Lr,I);return[x.memoizedState,F]}function nb(s,u,b){var x=is(),_=x.queue;if(_===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");_.lastRenderedReducer=s;var I=Ya,F=I.baseQueue,W=_.pending;if(W!==null){if(F!==null){var Q=F.next,ue=W.next;F.next=ue,W.next=Q}I.baseQueue!==F&&d("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),I.baseQueue=F=W,_.pending=null}if(F!==null){var me=F.next,ke=I.baseState,Ve=null,Xe=null,ct=null,ut=me;do{var on=ut.lane;if(bf(np,on)){if(ct!==null){var vn={lane:oi,action:ut.action,hasEagerState:ut.hasEagerState,eagerState:ut.eagerState,next:null};ct=ct.next=vn}if(ut.hasEagerState)ke=ut.eagerState;else{var ei=ut.action;ke=s(ke,ei)}}else{var Tn={lane:on,action:ut.action,hasEagerState:ut.hasEagerState,eagerState:ut.eagerState,next:null};ct===null?(Xe=ct=Tn,Ve=ke):ct=ct.next=Tn,Lr.lanes=Xt(Lr.lanes,on),f2(on)}ut=ut.next}while(ut!==null&&ut!==me);ct===null?Ve=ke:ct.next=Xe,en(ke,x.memoizedState)||Lg(),x.memoizedState=ke,x.baseState=Ve,x.baseQueue=ct,_.lastRenderedState=ke}var br=_.interleaved;if(br!==null){var je=br;do{var Ke=je.lane;Lr.lanes=Xt(Lr.lanes,Ke),f2(Ke),je=je.next}while(je!==br)}else F===null&&(_.lanes=nt);var Me=_.dispatch;return[x.memoizedState,Me]}function bx(s,u,b){var x=is(),_=x.queue;if(_===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");_.lastRenderedReducer=s;var I=_.dispatch,F=_.pending,W=x.memoizedState;if(F!==null){_.pending=null;var Q=F.next,ue=Q;do{var me=ue.action;W=s(W,me),ue=ue.next}while(ue!==Q);en(W,x.memoizedState)||Lg(),x.memoizedState=W,x.baseQueue===null&&(x.baseState=W),_.lastRenderedState=W}return[W,I]}function iW(s,u,b){}function aW(s,u,b){}function Sx(s,u,b){var x=Lr,_=ll(),I,F=E();if(F){if(b===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");I=b(),vd||I!==b()&&(d("The result of getServerSnapshot should be cached to avoid an infinite loop"),vd=!0)}else{if(I=u(),!vd){var W=u();en(I,W)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),vd=!0)}var Q=yT();if(Q===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");yf(Q,np)||g_(x,u,I)}_.memoizedState=I;var ue={value:I,getSnapshot:u};return _.queue=ue,To(b_.bind(null,x,ue,s),[s]),x.flags|=Na,kg(Wa|Eo,y_.bind(null,x,ue,I,u),void 0,null),I}function rb(s,u,b){var x=Lr,_=is(),I=u();if(!vd){var F=u();en(I,F)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),vd=!0)}var W=_.memoizedState,Q=!en(W,I);Q&&(_.memoizedState=I,Lg());var ue=_.queue;if(_i(b_.bind(null,x,ue,s),[s]),ue.getSnapshot!==u||Q||Ka!==null&&Ka.memoizedState.tag&Wa){x.flags|=Na,kg(Wa|Eo,y_.bind(null,x,ue,I,u),void 0,null);var me=yT();if(me===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");yf(me,np)||g_(x,u,I)}return I}function g_(s,u,b){s.flags|=tu;var x={getSnapshot:u,value:b},_=Lr.updateQueue;if(_===null)_=v_(),Lr.updateQueue=_,_.stores=[x];else{var I=_.stores;I===null?_.stores=[x]:I.push(x)}}function y_(s,u,b,x){u.value=b,u.getSnapshot=x,S_(u)&&x_(s)}function b_(s,u,b){var x=function(){S_(u)&&x_(s)};return b(x)}function S_(s){var u=s.getSnapshot,b=s.value;try{var x=u();return!en(b,x)}catch{return!0}}function x_(s){var u=Uo(s,dn);u!==null&&ro(u,s,dn,Kn)}function ib(s){var u=ll();typeof s=="function"&&(s=s()),u.memoizedState=u.baseState=s;var b={pending:null,interleaved:null,lanes:nt,dispatch:null,lastRenderedReducer:yx,lastRenderedState:s};u.queue=b;var x=b.dispatch=cb.bind(null,Lr,b);return[u.memoizedState,x]}function xx(s){return nb(yx)}function ul(s){return bx(yx)}function kg(s,u,b,x){var _={tag:s,create:u,destroy:b,deps:x,next:null},I=Lr.updateQueue;if(I===null)I=v_(),Lr.updateQueue=I,I.lastEffect=_.next=_;else{var F=I.lastEffect;if(F===null)I.lastEffect=_.next=_;else{var W=F.next;F.next=_,_.next=W,I.lastEffect=_}}return _}function wx(s){var u=ll();{var b={current:s};return u.memoizedState=b,b}}function xc(s){var u=is();return u.memoizedState}function On(s,u,b,x){var _=ll(),I=x===void 0?null:x;Lr.flags|=s,_.memoizedState=kg(Wa|u,b,void 0,I)}function ab(s,u,b,x){var _=is(),I=x===void 0?null:x,F=void 0;if(Ya!==null){var W=Ya.memoizedState;if(F=W.destroy,I!==null){var Q=W.deps;if(tb(I,Q)){_.memoizedState=kg(u,b,F,I);return}}}Lr.flags|=s,_.memoizedState=kg(Wa|u,b,F,I)}function To(s,u){return(Lr.mode&go)!==mn?On(zn|Na|er,Eo,s,u):On(Na|er,Eo,s,u)}function _i(s,u){return ab(Na,Eo,s,u)}function Cx(s,u){return On(hn,Sc,s,u)}function _u(s,u){return ab(hn,Sc,s,u)}function Ex(s,u){var b=hn;return b|=an,(Lr.mode&go)!==mn&&(b|=Pn),On(b,qa,s,u)}function ob(s,u){return ab(hn,qa,s,u)}function w_(s,u){if(typeof u=="function"){var b=u,x=s();return b(x),function(){b(null)}}else if(u!=null){var _=u;_.hasOwnProperty("current")||d("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(_).join(", ")+"}");var I=s();return _.current=I,function(){_.current=null}}}function _x(s,u,b){typeof u!="function"&&d("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",u!==null?typeof u:"null");var x=b!=null?b.concat([s]):null,_=hn;return _|=an,(Lr.mode&go)!==mn&&(_|=Pn),On(_,qa,w_.bind(null,u,s),x)}function sb(s,u,b){typeof u!="function"&&d("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",u!==null?typeof u:"null");var x=b!=null?b.concat([s]):null;return ab(hn,qa,w_.bind(null,u,s),x)}function Tx(s,u){}var lb=Tx;function Tu(s,u){var b=ll(),x=u===void 0?null:u;return b.memoizedState=[s,x],s}function Pg(s,u){var b=is(),x=u===void 0?null:u,_=b.memoizedState;if(_!==null&&x!==null){var I=_[1];if(tb(x,I))return _[0]}return b.memoizedState=[s,x],s}function Um(s,u){var b=ll(),x=u===void 0?null:u,_=s();return b.memoizedState=[_,x],_}function yi(s,u){var b=is(),x=u===void 0?null:u,_=b.memoizedState;if(_!==null&&x!==null){var I=_[1];if(tb(x,I))return _[0]}var F=s();return b.memoizedState=[F,x],F}function Ri(s){var u=ll();return u.memoizedState=s,s}function kx(s){var u=is(),b=Ya,x=b.memoizedState;return E_(u,x,s)}function C_(s){var u=is();if(Ya===null)return u.memoizedState=s,s;var b=Ya.memoizedState;return E_(u,b,s)}function E_(s,u,b){var x=!Ty(np);if(x){if(!en(b,u)){var _=Vh();Lr.lanes=Xt(Lr.lanes,_),f2(_),s.baseState=!0}return u}else return s.baseState&&(s.baseState=!1,Lg()),s.memoizedState=b,b}function $O(s,u,b){var x=zo();Gi(Cf(x,bo)),s(!0);var _=Cg.transition;Cg.transition={};var I=Cg.transition;Cg.transition._updatedFibers=new Set;try{s(!1),u()}finally{if(Gi(x),Cg.transition=_,_===null&&I._updatedFibers){var F=I._updatedFibers.size;F>10&&c("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),I._updatedFibers.clear()}}}function Px(){var s=ib(!1),u=s[0],b=s[1],x=$O.bind(null,b),_=ll();return _.memoizedState=x,[u,x]}function __(){var s=xx(),u=s[0],b=is(),x=b.memoizedState;return[u,x]}function T_(){var s=ul(),u=s[0],b=is(),x=b.memoizedState;return[u,x]}var Ax=!1;function Ag(){return Ax}function Og(){var s=ll(),u=yT(),b=u.identifierPrefix,x;if(E()){var _=cg();x=":"+b+"R"+_;var I=_g++;I>0&&(x+="H"+I.toString(32)),x+=":"}else{var F=ZO++;x=":"+b+"r"+F.toString(32)+":"}return s.memoizedState=x,x}function ub(){var s=is(),u=s.memoizedState;return u}function k_(s,u,b){typeof arguments[3]=="function"&&d("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var x=Hm(s),_={lane:x,action:b,hasEagerState:!1,eagerState:null,next:null};if(js(s))ip(u,_);else{var I=Rm(s,u,_,x);if(I!==null){var F=Rs();ro(I,s,x,F),P_(I,u,x)}}A_(s,x)}function cb(s,u,b){typeof arguments[3]=="function"&&d("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var x=Hm(s),_={lane:x,action:b,hasEagerState:!1,eagerState:null,next:null};if(js(s))ip(u,_);else{var I=s.alternate;if(s.lanes===nt&&(I===null||I.lanes===nt)){var F=u.lastRenderedReducer;if(F!==null){var W;W=Ft.current,Ft.current=Ul;try{var Q=u.lastRenderedState,ue=F(Q,b);if(_.hasEagerState=!0,_.eagerState=ue,en(ue,Q)){YS(s,u,_,x);return}}catch{}finally{Ft.current=W}}}var me=Rm(s,u,_,x);if(me!==null){var ke=Rs();ro(me,s,x,ke),P_(me,u,x)}}A_(s,x)}function js(s){var u=s.alternate;return s===Lr||u!==null&&u===Lr}function ip(s,u){Eg=eb=!0;var b=s.pending;b===null?u.next=u:(u.next=b.next,b.next=u),s.pending=u}function P_(s,u,b){if(_s(b)){var x=u.lanes;x=Sf(x,s.pendingLanes);var _=Xt(x,b);u.lanes=_,Gh(s,_)}}function A_(s,u,b){jl(s,u)}var db={readContext:wa,useCallback:_o,useContext:_o,useEffect:_o,useImperativeHandle:_o,useInsertionEffect:_o,useLayoutEffect:_o,useMemo:_o,useReducer:_o,useRef:_o,useState:_o,useDebugValue:_o,useDeferredValue:_o,useTransition:_o,useMutableSource:_o,useSyncExternalStore:_o,useId:_o,unstable_isNewReconciler:C},O_=null,D_=null,Ox=null,wc=null,xn=null,Ul=null,as=null;{var fb=function(){d("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},_n=function(){d("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};O_={readContext:function(s){return wa(s)},useCallback:function(s,u){return Ye="useCallback",Er(),Nf(u),Tu(s,u)},useContext:function(s){return Ye="useContext",Er(),wa(s)},useEffect:function(s,u){return Ye="useEffect",Er(),Nf(u),To(s,u)},useImperativeHandle:function(s,u,b){return Ye="useImperativeHandle",Er(),Nf(b),_x(s,u,b)},useInsertionEffect:function(s,u){return Ye="useInsertionEffect",Er(),Nf(u),Cx(s,u)},useLayoutEffect:function(s,u){return Ye="useLayoutEffect",Er(),Nf(u),Ex(s,u)},useMemo:function(s,u){Ye="useMemo",Er(),Nf(u);var b=Ft.current;Ft.current=xn;try{return Um(s,u)}finally{Ft.current=b}},useReducer:function(s,u,b){Ye="useReducer",Er();var x=Ft.current;Ft.current=xn;try{return Tg(s,u,b)}finally{Ft.current=x}},useRef:function(s){return Ye="useRef",Er(),wx(s)},useState:function(s){Ye="useState",Er();var u=Ft.current;Ft.current=xn;try{return ib(s)}finally{Ft.current=u}},useDebugValue:function(s,u){return Ye="useDebugValue",Er(),void 0},useDeferredValue:function(s){return Ye="useDeferredValue",Er(),Ri(s)},useTransition:function(){return Ye="useTransition",Er(),Px()},useMutableSource:function(s,u,b){return Ye="useMutableSource",Er(),void 0},useSyncExternalStore:function(s,u,b){return Ye="useSyncExternalStore",Er(),Sx(s,u,b)},useId:function(){return Ye="useId",Er(),Og()},unstable_isNewReconciler:C},D_={readContext:function(s){return wa(s)},useCallback:function(s,u){return Ye="useCallback",Pt(),Tu(s,u)},useContext:function(s){return Ye="useContext",Pt(),wa(s)},useEffect:function(s,u){return Ye="useEffect",Pt(),To(s,u)},useImperativeHandle:function(s,u,b){return Ye="useImperativeHandle",Pt(),_x(s,u,b)},useInsertionEffect:function(s,u){return Ye="useInsertionEffect",Pt(),Cx(s,u)},useLayoutEffect:function(s,u){return Ye="useLayoutEffect",Pt(),Ex(s,u)},useMemo:function(s,u){Ye="useMemo",Pt();var b=Ft.current;Ft.current=xn;try{return Um(s,u)}finally{Ft.current=b}},useReducer:function(s,u,b){Ye="useReducer",Pt();var x=Ft.current;Ft.current=xn;try{return Tg(s,u,b)}finally{Ft.current=x}},useRef:function(s){return Ye="useRef",Pt(),wx(s)},useState:function(s){Ye="useState",Pt();var u=Ft.current;Ft.current=xn;try{return ib(s)}finally{Ft.current=u}},useDebugValue:function(s,u){return Ye="useDebugValue",Pt(),void 0},useDeferredValue:function(s){return Ye="useDeferredValue",Pt(),Ri(s)},useTransition:function(){return Ye="useTransition",Pt(),Px()},useMutableSource:function(s,u,b){return Ye="useMutableSource",Pt(),void 0},useSyncExternalStore:function(s,u,b){return Ye="useSyncExternalStore",Pt(),Sx(s,u,b)},useId:function(){return Ye="useId",Pt(),Og()},unstable_isNewReconciler:C},Ox={readContext:function(s){return wa(s)},useCallback:function(s,u){return Ye="useCallback",Pt(),Pg(s,u)},useContext:function(s){return Ye="useContext",Pt(),wa(s)},useEffect:function(s,u){return Ye="useEffect",Pt(),_i(s,u)},useImperativeHandle:function(s,u,b){return Ye="useImperativeHandle",Pt(),sb(s,u,b)},useInsertionEffect:function(s,u){return Ye="useInsertionEffect",Pt(),_u(s,u)},useLayoutEffect:function(s,u){return Ye="useLayoutEffect",Pt(),ob(s,u)},useMemo:function(s,u){Ye="useMemo",Pt();var b=Ft.current;Ft.current=Ul;try{return yi(s,u)}finally{Ft.current=b}},useReducer:function(s,u,b){Ye="useReducer",Pt();var x=Ft.current;Ft.current=Ul;try{return nb(s,u,b)}finally{Ft.current=x}},useRef:function(s){return Ye="useRef",Pt(),xc()},useState:function(s){Ye="useState",Pt();var u=Ft.current;Ft.current=Ul;try{return xx(s)}finally{Ft.current=u}},useDebugValue:function(s,u){return Ye="useDebugValue",Pt(),lb()},useDeferredValue:function(s){return Ye="useDeferredValue",Pt(),kx(s)},useTransition:function(){return Ye="useTransition",Pt(),__()},useMutableSource:function(s,u,b){return Ye="useMutableSource",Pt(),void 0},useSyncExternalStore:function(s,u,b){return Ye="useSyncExternalStore",Pt(),rb(s,u)},useId:function(){return Ye="useId",Pt(),ub()},unstable_isNewReconciler:C},wc={readContext:function(s){return wa(s)},useCallback:function(s,u){return Ye="useCallback",Pt(),Pg(s,u)},useContext:function(s){return Ye="useContext",Pt(),wa(s)},useEffect:function(s,u){return Ye="useEffect",Pt(),_i(s,u)},useImperativeHandle:function(s,u,b){return Ye="useImperativeHandle",Pt(),sb(s,u,b)},useInsertionEffect:function(s,u){return Ye="useInsertionEffect",Pt(),_u(s,u)},useLayoutEffect:function(s,u){return Ye="useLayoutEffect",Pt(),ob(s,u)},useMemo:function(s,u){Ye="useMemo",Pt();var b=Ft.current;Ft.current=as;try{return yi(s,u)}finally{Ft.current=b}},useReducer:function(s,u,b){Ye="useReducer",Pt();var x=Ft.current;Ft.current=as;try{return bx(s,u,b)}finally{Ft.current=x}},useRef:function(s){return Ye="useRef",Pt(),xc()},useState:function(s){Ye="useState",Pt();var u=Ft.current;Ft.current=as;try{return ul(s)}finally{Ft.current=u}},useDebugValue:function(s,u){return Ye="useDebugValue",Pt(),lb()},useDeferredValue:function(s){return Ye="useDeferredValue",Pt(),C_(s)},useTransition:function(){return Ye="useTransition",Pt(),T_()},useMutableSource:function(s,u,b){return Ye="useMutableSource",Pt(),void 0},useSyncExternalStore:function(s,u,b){return Ye="useSyncExternalStore",Pt(),rb(s,u)},useId:function(){return Ye="useId",Pt(),ub()},unstable_isNewReconciler:C},xn={readContext:function(s){return fb(),wa(s)},useCallback:function(s,u){return Ye="useCallback",_n(),Er(),Tu(s,u)},useContext:function(s){return Ye="useContext",_n(),Er(),wa(s)},useEffect:function(s,u){return Ye="useEffect",_n(),Er(),To(s,u)},useImperativeHandle:function(s,u,b){return Ye="useImperativeHandle",_n(),Er(),_x(s,u,b)},useInsertionEffect:function(s,u){return Ye="useInsertionEffect",_n(),Er(),Cx(s,u)},useLayoutEffect:function(s,u){return Ye="useLayoutEffect",_n(),Er(),Ex(s,u)},useMemo:function(s,u){Ye="useMemo",_n(),Er();var b=Ft.current;Ft.current=xn;try{return Um(s,u)}finally{Ft.current=b}},useReducer:function(s,u,b){Ye="useReducer",_n(),Er();var x=Ft.current;Ft.current=xn;try{return Tg(s,u,b)}finally{Ft.current=x}},useRef:function(s){return Ye="useRef",_n(),Er(),wx(s)},useState:function(s){Ye="useState",_n(),Er();var u=Ft.current;Ft.current=xn;try{return ib(s)}finally{Ft.current=u}},useDebugValue:function(s,u){return Ye="useDebugValue",_n(),Er(),void 0},useDeferredValue:function(s){return Ye="useDeferredValue",_n(),Er(),Ri(s)},useTransition:function(){return Ye="useTransition",_n(),Er(),Px()},useMutableSource:function(s,u,b){return Ye="useMutableSource",_n(),Er(),void 0},useSyncExternalStore:function(s,u,b){return Ye="useSyncExternalStore",_n(),Er(),Sx(s,u,b)},useId:function(){return Ye="useId",_n(),Er(),Og()},unstable_isNewReconciler:C},Ul={readContext:function(s){return fb(),wa(s)},useCallback:function(s,u){return Ye="useCallback",_n(),Pt(),Pg(s,u)},useContext:function(s){return Ye="useContext",_n(),Pt(),wa(s)},useEffect:function(s,u){return Ye="useEffect",_n(),Pt(),_i(s,u)},useImperativeHandle:function(s,u,b){return Ye="useImperativeHandle",_n(),Pt(),sb(s,u,b)},useInsertionEffect:function(s,u){return Ye="useInsertionEffect",_n(),Pt(),_u(s,u)},useLayoutEffect:function(s,u){return Ye="useLayoutEffect",_n(),Pt(),ob(s,u)},useMemo:function(s,u){Ye="useMemo",_n(),Pt();var b=Ft.current;Ft.current=Ul;try{return yi(s,u)}finally{Ft.current=b}},useReducer:function(s,u,b){Ye="useReducer",_n(),Pt();var x=Ft.current;Ft.current=Ul;try{return nb(s,u,b)}finally{Ft.current=x}},useRef:function(s){return Ye="useRef",_n(),Pt(),xc()},useState:function(s){Ye="useState",_n(),Pt();var u=Ft.current;Ft.current=Ul;try{return xx(s)}finally{Ft.current=u}},useDebugValue:function(s,u){return Ye="useDebugValue",_n(),Pt(),lb()},useDeferredValue:function(s){return Ye="useDeferredValue",_n(),Pt(),kx(s)},useTransition:function(){return Ye="useTransition",_n(),Pt(),__()},useMutableSource:function(s,u,b){return Ye="useMutableSource",_n(),Pt(),void 0},useSyncExternalStore:function(s,u,b){return Ye="useSyncExternalStore",_n(),Pt(),rb(s,u)},useId:function(){return Ye="useId",_n(),Pt(),ub()},unstable_isNewReconciler:C},as={readContext:function(s){return fb(),wa(s)},useCallback:function(s,u){return Ye="useCallback",_n(),Pt(),Pg(s,u)},useContext:function(s){return Ye="useContext",_n(),Pt(),wa(s)},useEffect:function(s,u){return Ye="useEffect",_n(),Pt(),_i(s,u)},useImperativeHandle:function(s,u,b){return Ye="useImperativeHandle",_n(),Pt(),sb(s,u,b)},useInsertionEffect:function(s,u){return Ye="useInsertionEffect",_n(),Pt(),_u(s,u)},useLayoutEffect:function(s,u){return Ye="useLayoutEffect",_n(),Pt(),ob(s,u)},useMemo:function(s,u){Ye="useMemo",_n(),Pt();var b=Ft.current;Ft.current=Ul;try{return yi(s,u)}finally{Ft.current=b}},useReducer:function(s,u,b){Ye="useReducer",_n(),Pt();var x=Ft.current;Ft.current=Ul;try{return bx(s,u,b)}finally{Ft.current=x}},useRef:function(s){return Ye="useRef",_n(),Pt(),xc()},useState:function(s){Ye="useState",_n(),Pt();var u=Ft.current;Ft.current=Ul;try{return ul(s)}finally{Ft.current=u}},useDebugValue:function(s,u){return Ye="useDebugValue",_n(),Pt(),lb()},useDeferredValue:function(s){return Ye="useDeferredValue",_n(),Pt(),C_(s)},useTransition:function(){return Ye="useTransition",_n(),Pt(),T_()},useMutableSource:function(s,u,b){return Ye="useMutableSource",_n(),Pt(),void 0},useSyncExternalStore:function(s,u,b){return Ye="useSyncExternalStore",_n(),Pt(),rb(s,u)},useId:function(){return Ye="useId",_n(),Pt(),ub()},unstable_isNewReconciler:C}}var lr=i.unstable_now,M_=0,Dg=-1,Lf=-1,hb=-1,Dx=!1,pb=!1;function j_(){return Dx}function eD(){pb=!0}function tD(){Dx=!1,pb=!1}function nD(){Dx=pb,pb=!1}function I_(){return M_}function R_(){M_=lr()}function Mx(s){Lf=lr(),s.actualStartTime<0&&(s.actualStartTime=lr())}function N_(s){Lf=-1}function mb(s,u){if(Lf>=0){var b=lr()-Lf;s.actualDuration+=b,u&&(s.selfBaseDuration=b),Lf=-1}}function Cc(s){if(Dg>=0){var u=lr()-Dg;Dg=-1;for(var b=s.return;b!==null;){switch(b.tag){case J:var x=b.stateNode;x.effectDuration+=u;return;case ie:var _=b.stateNode;_.effectDuration+=u;return}b=b.return}}}function Mg(s){if(hb>=0){var u=lr()-hb;hb=-1;for(var b=s.return;b!==null;){switch(b.tag){case J:var x=b.stateNode;x!==null&&(x.passiveEffectDuration+=u);return;case ie:var _=b.stateNode;_!==null&&(_.passiveEffectDuration+=u);return}b=b.return}}}function Ec(){Dg=lr()}function jg(){hb=lr()}function jx(s){for(var u=s.child;u;)s.actualDuration+=u.actualDuration,u=u.sibling}function ap(s,u){return{value:s,source:u,stack:St(u),digest:null}}function Ix(s,u,b){return{value:s,source:null,stack:b??null,digest:u??null}}function to(s,u){return!0}function Vo(s,u){try{var b=to(s,u);if(b===!1)return;var x=u.value,_=u.source,I=u.stack,F=I!==null?I:"";if(x!=null&&x._suppressLogging){if(s.tag===V)return;console.error(x)}var W=_?Mt(_):null,Q=W?"The above error occurred in the <"+W+"> component:":"The above error occurred in one of your React components:",ue;if(s.tag===J)ue=`Consider adding an error boundary to your tree to customize error handling behavior.
|
||
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var me=Mt(s)||"Anonymous";ue="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+me+".")}var ke=Q+`
|
||
`+F+`
|
||
|
||
`+(""+ue);console.error(ke)}catch(Ve){setTimeout(function(){throw Ve})}}var rD=typeof WeakMap=="function"?WeakMap:Map;function L_(s,u,b){var x=pd(Kn,b);x.tag=Ly,x.payload={element:null};var _=u.value;return x.callback=function(){_6e(_),Vo(s,u)},x}function Rx(s,u,b){var x=pd(Kn,b);x.tag=Ly;var _=s.type.getDerivedStateFromError;if(typeof _=="function"){var I=u.value;x.payload=function(){return _(I)},x.callback=function(){BW(s),Vo(s,u)}}var F=s.stateNode;return F!==null&&typeof F.componentDidCatch=="function"&&(x.callback=function(){BW(s),Vo(s,u),typeof _!="function"&&C6e(this);var Q=u.value,ue=u.stack;this.componentDidCatch(Q,{componentStack:ue!==null?ue:""}),typeof _!="function"&&(Hi(s.lanes,dn)||d("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Mt(s)||"Unknown"))}),x}function Nx(s,u,b){var x=s.pingCache,_;if(x===null?(x=s.pingCache=new rD,_=new Set,x.set(u,_)):(_=x.get(u),_===void 0&&(_=new Set,x.set(u,_))),!_.has(b)){_.add(b);var I=T6e.bind(null,s,u,b);Bo&&h2(s,b),u.then(I,I)}}function iD(s,u,b,x){var _=s.updateQueue;if(_===null){var I=new Set;I.add(b),s.updateQueue=I}else _.add(b)}function aD(s,u){var b=s.tag;if((s.mode&Vn)===mn&&(b===U||b===oe||b===de)){var x=s.alternate;x?(s.updateQueue=x.updateQueue,s.memoizedState=x.memoizedState,s.lanes=x.lanes):(s.updateQueue=null,s.memoizedState=null)}}function z_(s){var u=s;do{if(u.tag===le&&XO(u))return u;u=u.return}while(u!==null);return null}function Lx(s,u,b,x,_){if((s.mode&Vn)===mn){if(s===u)s.flags|=di;else{if(s.flags|=qn,b.flags|=pe,b.flags&=~(Ku|nu),b.tag===V){var I=b.alternate;if(I===null)b.tag=Pe;else{var F=pd(Kn,dn);F.tag=Ny,If(b,F,dn)}}b.lanes=Xt(b.lanes,dn)}return s}return s.flags|=di,s.lanes=_,s}function oD(s,u,b,x,_){if(b.flags|=nu,Bo&&h2(s,_),x!==null&&typeof x=="object"&&typeof x.then=="function"){var I=x;aD(b),E()&&b.mode&Vn&&Pm();var F=z_(u);if(F!==null){F.flags&=~Io,Lx(F,u,b,s,_),F.mode&Vn&&Nx(s,I,_),iD(F,s,I);return}else{if(!_y(_)){Nx(s,I,_),nM();return}var W=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");x=W}}else if(E()&&b.mode&Vn){Pm();var Q=z_(u);if(Q!==null){(Q.flags&di)===Lt&&(Q.flags|=Io),Lx(Q,u,b,s,_),O(ap(x,b));return}}x=ap(x,b),m6e(x);var ue=u;do{switch(ue.tag){case J:{var me=x;ue.flags|=di;var ke=ad(_);ue.lanes=Xt(ue.lanes,ke);var Ve=L_(ue,me,ke);QS(ue,Ve);return}case V:var Xe=x,ct=ue.type,ut=ue.stateNode;if((ue.flags&qn)===Lt&&(typeof ct.getDerivedStateFromError=="function"||ut!==null&&typeof ut.componentDidCatch=="function"&&!OW(ut))){ue.flags|=di;var on=ad(_);ue.lanes=Xt(ue.lanes,on);var Tn=Rx(ue,Xe,on);QS(ue,Tn);return}break}ue=ue.return}while(ue!==null)}function sD(){return null}var Ig=a.ReactCurrentOwner,Vl=!1,vb,Rg,zx,Bx,Fx,Hl,Ux,gb;vb={},Rg={},zx={},Bx={},Fx={},Hl=!1,Ux={},gb={};function os(s,u,b,x){s===null?u.child=c_(u,null,b,x):u.child=Nm(u,s.child,b,x)}function lD(s,u,b,x){u.child=Nm(u,s.child,null,x),u.child=Nm(u,null,b,x)}function B_(s,u,b,x,_){if(u.type!==u.elementType){var I=b.propTypes;I&&Es(I,x,"prop",Bt(b))}var F=b.render,W=u.ref,Q,ue;$h(u,_),hc(u);{if(Ig.current=u,Se(!0),Q=rp(s,u,F,x,W,_),ue=Fm(),u.mode&cr){oa(!0);try{Q=rp(s,u,F,x,W,_),ue=Fm()}finally{oa(!1)}}Se(!1)}return Jr(),s!==null&&!Vl?(p_(s,u,_),gd(s,u,_)):(E()&&ue&&Rl(u),u.flags|=vr,os(s,u,Q,_),u.child)}function Vx(s,u,b,x,_){if(s===null){var I=b.type;if(H6e(I)&&b.compare===null&&b.defaultProps===void 0){var F=I;return F=Ab(I),u.tag=de,u.type=F,qx(u,I),Hx(s,u,F,x,_)}{var W=I.propTypes;W&&Es(W,x,"prop",Bt(I))}var Q=fM(b.type,null,x,u,u.mode,_);return Q.ref=u.ref,Q.return=u,u.child=Q,Q}{var ue=b.type,me=ue.propTypes;me&&Es(me,x,"prop",Bt(ue))}var ke=s.child,Ve=e2(s,_);if(!Ve){var Xe=ke.memoizedProps,ct=b.compare;if(ct=ct!==null?ct:ye,ct(Xe,x)&&s.ref===u.ref)return gd(s,u,_)}u.flags|=vr;var ut=Yg(ke,x);return ut.ref=u.ref,ut.return=u,u.child=ut,ut}function Hx(s,u,b,x,_){if(u.type!==u.elementType){var I=u.elementType;if(I.$$typeof===ot){var F=I,W=F._payload,Q=F._init;try{I=Q(W)}catch{I=null}var ue=I&&I.propTypes;ue&&Es(ue,x,"prop",Bt(I))}}if(s!==null){var me=s.memoizedProps;if(ye(me,x)&&s.ref===u.ref&&u.type===s.type)if(Vl=!1,u.pendingProps=x=me,e2(s,_))(s.flags&pe)!==Lt&&(Vl=!0);else return u.lanes=s.lanes,gd(s,u,_)}return Gx(s,u,b,x,_)}function F_(s,u,b){var x=u.pendingProps,_=x.children,I=s!==null?s.memoizedState:null;if(x.mode==="hidden"||P)if((u.mode&Vn)===mn){var F={baseLanes:nt,cachePool:null,transitions:null};u.memoizedState=F,ST(u,b)}else if(Hi(b,ga)){var ke={baseLanes:nt,cachePool:null,transitions:null};u.memoizedState=ke;var Ve=I!==null?I.baseLanes:b;ST(u,Ve)}else{var W=null,Q;if(I!==null){var ue=I.baseLanes;Q=Xt(ue,b)}else Q=b;u.lanes=u.childLanes=ga;var me={baseLanes:Q,cachePool:W,transitions:null};return u.memoizedState=me,u.updateQueue=null,ST(u,Q),null}else{var Xe;I!==null?(Xe=Xt(I.baseLanes,b),u.memoizedState=null):Xe=b,ST(u,Xe)}return os(s,u,_,b),u.child}function uD(s,u,b){var x=u.pendingProps;return os(s,u,x,b),u.child}function cD(s,u,b){var x=u.pendingProps.children;return os(s,u,x,b),u.child}function dD(s,u,b){{u.flags|=hn;{var x=u.stateNode;x.effectDuration=0,x.passiveEffectDuration=0}}var _=u.pendingProps,I=_.children;return os(s,u,I,b),u.child}function U_(s,u){var b=u.ref;(s===null&&b!==null||s!==null&&s.ref!==b)&&(u.flags|=lo,u.flags|=kt)}function Gx(s,u,b,x,_){if(u.type!==u.elementType){var I=b.propTypes;I&&Es(I,x,"prop",Bt(b))}var F;{var W=Ol(u,b,!0);F=ra(u,W)}var Q,ue;$h(u,_),hc(u);{if(Ig.current=u,Se(!0),Q=rp(s,u,b,x,F,_),ue=Fm(),u.mode&cr){oa(!0);try{Q=rp(s,u,b,x,F,_),ue=Fm()}finally{oa(!1)}}Se(!1)}return Jr(),s!==null&&!Vl?(p_(s,u,_),gd(s,u,_)):(E()&&ue&&Rl(u),u.flags|=vr,os(s,u,Q,_),u.child)}function V_(s,u,b,x,_){{switch(KW(u)){case!1:{var I=u.stateNode,F=u.type,W=new F(u.memoizedProps,I.context),Q=W.state;I.updater.enqueueSetState(I,Q,null);break}case!0:{u.flags|=qn,u.flags|=di;var ue=new Error("Simulated error coming from DevTools"),me=ad(_);u.lanes=Xt(u.lanes,me);var ke=Rx(u,ap(ue,u),me);QS(u,ke);break}}if(u.type!==u.elementType){var Ve=b.propTypes;Ve&&Es(Ve,x,"prop",Bt(b))}}var Xe;eo(b)?(Xe=!0,ec(u)):Xe=!1,$h(u,_);var ct=u.stateNode,ut;ct===null?(zg(s,u),Wy(u,b,x),ox(u,b,x,_),ut=!0):s===null?ut=HO(u,b,x,_):ut=GO(s,u,b,x,_);var on=Wx(s,u,b,ut,Xe,_);{var Tn=u.stateNode;ut&&Tn.props!==x&&(Hl||d("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Mt(u)||"a component"),Hl=!0)}return on}function Wx(s,u,b,x,_,I){U_(s,u);var F=(u.flags&qn)!==Lt;if(!x&&!F)return _&&td(u,b,!1),gd(s,u,I);var W=u.stateNode;Ig.current=u;var Q;if(F&&typeof b.getDerivedStateFromError!="function")Q=null,N_();else{hc(u);{if(Se(!0),Q=W.render(),u.mode&cr){oa(!0);try{W.render()}finally{oa(!1)}}Se(!1)}Jr()}return u.flags|=vr,s!==null&&F?lD(s,u,Q,I):os(s,u,Q,I),u.memoizedState=W.state,_&&td(u,b,!0),u.child}function H_(s){var u=s.stateNode;u.pendingContext?Oi(s,u.pendingContext,u.pendingContext!==u.context):u.context&&Oi(s,u.context,!1),hx(s,u.containerInfo)}function fD(s,u,b){if(H_(u),s===null)throw new Error("Should have a current fiber. This is a bug in React.");var x=u.pendingProps,_=u.memoizedState,I=_.element;JE(s,u),Uy(u,x,null,b);var F=u.memoizedState;u.stateNode;var W=F.element;if(ma&&_.isDehydrated){var Q={element:W,isDehydrated:!1,cache:F.cache,pendingSuspenseBoundaries:F.pendingSuspenseBoundaries,transitions:F.transitions},ue=u.updateQueue;if(ue.baseState=Q,u.memoizedState=Q,u.flags&Io){var me=ap(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),u);return G_(s,u,W,b,me)}else if(W!==I){var ke=ap(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),u);return G_(s,u,W,b,ke)}else{Ll(u);var Ve=c_(u,null,W,b);u.child=Ve;for(var Xe=Ve;Xe;)Xe.flags=Xe.flags&~gr|Fi,Xe=Xe.sibling}}else{if(h(),W===I)return gd(s,u,b);os(s,u,W,b)}return u.child}function G_(s,u,b,x,_){return h(),O(_),u.flags|=Io,os(s,u,b,x),u.child}function hD(s,u,b){d_(u),s===null&&zl(u);var x=u.type,_=u.pendingProps,I=s!==null?s.memoizedProps:null,F=_.children,W=su(x,_);return W?F=null:I!==null&&su(x,I)&&(u.flags|=Ys),U_(s,u),os(s,u,F,b),u.child}function pD(s,u){return s===null&&zl(u),null}function mD(s,u,b,x){zg(s,u);var _=u.pendingProps,I=b,F=I._payload,W=I._init,Q=W(F);u.type=Q;var ue=u.tag=G6e(Q),me=xu(Q,_),ke;switch(ue){case U:return qx(u,Q),u.type=Q=Ab(Q),ke=Gx(null,u,Q,me,x),ke;case V:return u.type=Q=oM(Q),ke=V_(null,u,Q,me,x),ke;case oe:return u.type=Q=sM(Q),ke=B_(null,u,Q,me,x),ke;case ee:{if(u.type!==u.elementType){var Ve=Q.propTypes;Ve&&Es(Ve,me,"prop",Bt(Q))}return ke=Vx(null,u,Q,xu(Q.type,me),x),ke}}var Xe="";throw Q!==null&&typeof Q=="object"&&Q.$$typeof===ot&&(Xe=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+Q+". "+("Lazy element type must resolve to a class or function."+Xe))}function vD(s,u,b,x,_){zg(s,u),u.tag=V;var I;return eo(b)?(I=!0,ec(u)):I=!1,$h(u,_),Wy(u,b,x),ox(u,b,x,_),Wx(null,u,b,!0,I,_)}function gD(s,u,b,x){zg(s,u);var _=u.pendingProps,I;{var F=Ol(u,b,!1);I=ra(u,F)}$h(u,x);var W,Q;hc(u);{if(b.prototype&&typeof b.prototype.render=="function"){var ue=Bt(b)||"Unknown";vb[ue]||(d("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",ue,ue),vb[ue]=!0)}u.mode&cr&&Ue.recordLegacyContextWarning(u,null),Se(!0),Ig.current=u,W=rp(null,u,b,_,I,x),Q=Fm(),Se(!1)}if(Jr(),u.flags|=vr,typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0){var me=Bt(b)||"Unknown";Rg[me]||(d("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",me,me,me),Rg[me]=!0)}if(typeof W=="object"&&W!==null&&typeof W.render=="function"&&W.$$typeof===void 0){{var ke=Bt(b)||"Unknown";Rg[ke]||(d("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ke,ke,ke),Rg[ke]=!0)}u.tag=V,u.memoizedState=null,u.updateQueue=null;var Ve=!1;return eo(b)?(Ve=!0,ec(u)):Ve=!1,u.memoizedState=W.state!==null&&W.state!==void 0?W.state:null,XS(u),a_(u,W),ox(u,b,_,x),Wx(null,u,b,!0,Ve,x)}else{if(u.tag=U,u.mode&cr){oa(!0);try{W=rp(null,u,b,_,I,x),Q=Fm()}finally{oa(!1)}}return E()&&Q&&Rl(u),os(null,u,W,x),qx(u,b),u.child}}function qx(s,u){{if(u&&u.childContextTypes&&d("%s(...): childContextTypes cannot be defined on a function component.",u.displayName||u.name||"Component"),s.ref!==null){var b="",x=si();x&&(b+=`
|
||
|
||
Check the render method of \``+x+"`.");var _=x||"",I=s._debugSource;I&&(_=I.fileName+":"+I.lineNumber),Fx[_]||(Fx[_]=!0,d("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",b))}if(typeof u.getDerivedStateFromProps=="function"){var F=Bt(u)||"Unknown";Bx[F]||(d("%s: Function components do not support getDerivedStateFromProps.",F),Bx[F]=!0)}if(typeof u.contextType=="object"&&u.contextType!==null){var W=Bt(u)||"Unknown";zx[W]||(d("%s: Function components do not support contextType.",W),zx[W]=!0)}}}var Yx={dehydrated:null,treeContext:null,retryLane:oi};function Kx(s){return{baseLanes:s,cachePool:sD(),transitions:null}}function yD(s,u){var b=null;return{baseLanes:Xt(s.baseLanes,u),cachePool:b,transitions:s.transitions}}function bD(s,u,b,x){if(u!==null){var _=u.memoizedState;if(_===null)return!1}return px(s,wg)}function SD(s,u){return Hh(s.childLanes,u)}function W_(s,u,b){var x=u.pendingProps;QW(u)&&(u.flags|=qn);var _=Cu.current,I=!1,F=(u.flags&qn)!==Lt;if(F||bD(_,s)?(I=!0,u.flags&=~qn):(s===null||s.memoizedState!==null)&&(_=KO(_,f_)),_=zm(_),Rf(u,_),s===null){zl(u);var W=u.memoizedState;if(W!==null){var Q=W.dehydrated;if(Q!==null)return Zx(u,Q)}var ue=x.children,me=x.fallback;if(I){var ke=xD(u,ue,me,b),Ve=u.child;return Ve.memoizedState=Kx(b),u.memoizedState=Yx,ke}else return Xx(u,ue)}else{var Xe=s.memoizedState;if(Xe!==null){var ct=Xe.dehydrated;if(ct!==null)return ED(s,u,F,x,ct,Xe,b)}if(I){var ut=x.fallback,on=x.children,Tn=wD(s,u,on,ut,b),vn=u.child,ei=s.child.memoizedState;return vn.memoizedState=ei===null?Kx(b):yD(ei,b),vn.childLanes=SD(s,b),u.memoizedState=Yx,Tn}else{var br=x.children,je=q_(s,u,br,b);return u.memoizedState=null,je}}}function Xx(s,u,b){var x=s.mode,_={mode:"visible",children:u},I=Ng(_,x);return I.return=s,s.child=I,I}function xD(s,u,b,x){var _=s.mode,I=s.child,F={mode:"hidden",children:u},W,Q;return(_&Vn)===mn&&I!==null?(W=I,W.childLanes=nt,W.pendingProps=F,s.mode&En&&(W.actualDuration=0,W.actualStartTime=-1,W.selfBaseDuration=0,W.treeBaseDuration=0),Q=Wm(b,_,x,null)):(W=Ng(F,_),Q=Wm(b,_,x,null)),W.return=s,Q.return=s,W.sibling=Q,s.child=W,Q}function Ng(s,u,b){return UW(s,u,nt,null)}function Qx(s,u){return Yg(s,u)}function q_(s,u,b,x){var _=s.child,I=_.sibling,F=Qx(_,{mode:"visible",children:b});if((u.mode&Vn)===mn&&(F.lanes=x),F.return=u,F.sibling=null,I!==null){var W=u.deletions;W===null?(u.deletions=[I],u.flags|=ri):W.push(I)}return u.child=F,F}function wD(s,u,b,x,_){var I=u.mode,F=s.child,W=F.sibling,Q={mode:"hidden",children:b},ue;if((I&Vn)===mn&&u.child!==F){var me=u.child;ue=me,ue.childLanes=nt,ue.pendingProps=Q,u.mode&En&&(ue.actualDuration=0,ue.actualStartTime=-1,ue.selfBaseDuration=F.selfBaseDuration,ue.treeBaseDuration=F.treeBaseDuration),u.deletions=null}else ue=Qx(F,Q),ue.subtreeFlags=F.subtreeFlags&fi;var ke;return W!==null?ke=Yg(W,x):(ke=Wm(x,I,_,null),ke.flags|=gr),ke.return=u,ue.return=u,ue.sibling=ke,u.child=ue,ke}function yb(s,u,b,x){x!==null&&O(x),Nm(u,s.child,null,b);var _=u.pendingProps,I=_.children,F=Xx(u,I);return F.flags|=gr,u.memoizedState=null,F}function CD(s,u,b,x,_){var I=u.mode,F={mode:"visible",children:b},W=Ng(F,I),Q=Wm(x,I,_,null);return Q.flags|=gr,W.return=u,Q.return=u,W.sibling=Q,u.child=W,(u.mode&Vn)!==mn&&Nm(u,s.child,null,_),Q}function Zx(s,u,b){return(s.mode&Vn)===mn?(d("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),s.lanes=dn):Tl(u)?s.lanes=tl:s.lanes=ga,null}function ED(s,u,b,x,_,I,F){if(b)if(u.flags&Io){u.flags&=~Io;var je=Ix(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return yb(s,u,F,je)}else{if(u.memoizedState!==null)return u.child=s.child,u.flags|=qn,null;var Ke=x.children,Me=x.fallback,wt=CD(s,u,Ke,Me,F),$t=u.child;return $t.memoizedState=Kx(F),u.memoizedState=Yx,wt}else{if(Ay(),(u.mode&Vn)===mn)return yb(s,u,F,null);if(Tl(_)){var W,Q,ue;{var me=Yv(_);W=me.digest,Q=me.message,ue=me.stack}var ke;Q?ke=new Error(Q):ke=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var Ve=Ix(ke,W,ue);return yb(s,u,F,Ve)}var Xe=Hi(F,s.childLanes);if(Vl||Xe){var ct=yT();if(ct!==null){var ut=cc(ct,F);if(ut!==oi&&ut!==I.retryLane){I.retryLane=ut;var on=Kn;Uo(s,ut),ro(ct,s,ut,on)}}nM();var Tn=Ix(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return yb(s,u,F,Tn)}else if(Js(_)){u.flags|=qn,u.child=s.child;var vn=k6e.bind(null,s);return po(_,vn),null}else{Os(u,_,I.treeContext);var ei=x.children,br=Xx(u,ei);return br.flags|=Fi,br}}}function Y_(s,u,b){s.lanes=Xt(s.lanes,u);var x=s.alternate;x!==null&&(x.lanes=Xt(x.lanes,u)),qS(s.return,u,b)}function _D(s,u,b){for(var x=u;x!==null;){if(x.tag===le){var _=x.memoizedState;_!==null&&Y_(x,b,s)}else if(x.tag===Ie)Y_(x,b,s);else if(x.child!==null){x.child.return=x,x=x.child;continue}if(x===s)return;for(;x.sibling===null;){if(x.return===null||x.return===s)return;x=x.return}x.sibling.return=x.return,x=x.sibling}}function Is(s){for(var u=s,b=null;u!==null;){var x=u.alternate;x!==null&&Zy(x)===null&&(b=u),u=u.sibling}return b}function Jx(s){if(s!==void 0&&s!=="forwards"&&s!=="backwards"&&s!=="together"&&!Ux[s])if(Ux[s]=!0,typeof s=="string")switch(s.toLowerCase()){case"together":case"forwards":case"backwards":{d('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',s,s.toLowerCase());break}case"forward":case"backward":{d('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',s,s.toLowerCase());break}default:d('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',s);break}else d('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',s)}function TD(s,u){s!==void 0&&!gb[s]&&(s!=="collapsed"&&s!=="hidden"?(gb[s]=!0,d('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',s)):u!=="forwards"&&u!=="backwards"&&(gb[s]=!0,d('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',s)))}function K_(s,u){{var b=Hn(s),x=!b&&typeof lt(s)=="function";if(b||x){var _=b?"array":"iterable";return d("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",_,u,_),!1}}return!0}function kD(s,u){if((u==="forwards"||u==="backwards")&&s!==void 0&&s!==null&&s!==!1)if(Hn(s)){for(var b=0;b<s.length;b++)if(!K_(s[b],b))return}else{var x=lt(s);if(typeof x=="function"){var _=x.call(s);if(_)for(var I=_.next(),F=0;!I.done;I=_.next()){if(!K_(I.value,F))return;F++}}else d('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',u)}}function $x(s,u,b,x,_){var I=s.memoizedState;I===null?s.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:x,tail:b,tailMode:_}:(I.isBackwards=u,I.rendering=null,I.renderingStartTime=0,I.last=x,I.tail=b,I.tailMode=_)}function bb(s,u,b){var x=u.pendingProps,_=x.revealOrder,I=x.tail,F=x.children;Jx(_),TD(I,_),kD(F,_),os(s,u,F,b);var W=Cu.current,Q=px(W,wg);if(Q)W=mx(W,wg),u.flags|=qn;else{var ue=s!==null&&(s.flags&qn)!==Lt;ue&&_D(u,u.child,b),W=zm(W)}if(Rf(u,W),(u.mode&Vn)===mn)u.memoizedState=null;else switch(_){case"forwards":{var me=Is(u.child),ke;me===null?(ke=u.child,u.child=null):(ke=me.sibling,me.sibling=null),$x(u,!1,ke,me,I);break}case"backwards":{var Ve=null,Xe=u.child;for(u.child=null;Xe!==null;){var ct=Xe.alternate;if(ct!==null&&Zy(ct)===null){u.child=Xe;break}var ut=Xe.sibling;Xe.sibling=Ve,Ve=Xe,Xe=ut}$x(u,!0,Ve,null,I);break}case"together":{$x(u,!1,null,null,void 0);break}default:u.memoizedState=null}return u.child}function PD(s,u,b){hx(u,u.stateNode.containerInfo);var x=u.pendingProps;return s===null?u.child=Nm(u,null,x,b):os(s,u,x,b),u.child}var Sb=!1;function AD(s,u,b){var x=u.type,_=x._context,I=u.pendingProps,F=u.memoizedProps,W=I.value;{"value"in I||Sb||(Sb=!0,d("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var Q=u.type.propTypes;Q&&Es(Q,I,"prop","Context.Provider")}if(GS(u,_,W),F!==null){var ue=F.value;if(en(ue,W)){if(F.children===I.children&&!du())return gd(s,u,b)}else zO(u,_,b)}var me=I.children;return os(s,u,me,b),u.child}var X_=!1;function OD(s,u,b){var x=u.type;x._context===void 0?x!==x.Consumer&&(X_||(X_=!0,d("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):x=x._context;var _=u.pendingProps,I=_.children;typeof I!="function"&&d("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),$h(u,b);var F=wa(x);hc(u);var W;return Ig.current=u,Se(!0),W=I(F),Se(!1),Jr(),u.flags|=vr,os(s,u,W,b),u.child}function Lg(){Vl=!0}function zg(s,u){(u.mode&Vn)===mn&&s!==null&&(s.alternate=null,u.alternate=null,u.flags|=gr)}function gd(s,u,b){return s!==null&&(u.dependencies=s.dependencies),N_(),f2(u.lanes),Hi(b,u.childLanes)?(WO(s,u),u.child):null}function DD(s,u,b){{var x=u.return;if(x===null)throw new Error("Cannot swap the root fiber.");if(s.alternate=null,u.alternate=null,b.index=u.index,b.sibling=u.sibling,b.return=u.return,b.ref=u.ref,u===x.child)x.child=b;else{var _=x.child;if(_===null)throw new Error("Expected parent to have a child.");for(;_.sibling!==u;)if(_=_.sibling,_===null)throw new Error("Expected to find the previous sibling.");_.sibling=b}var I=x.deletions;return I===null?(x.deletions=[s],x.flags|=ri):I.push(s),b.flags|=gr,b}}function e2(s,u){var b=s.lanes;return!!Hi(b,u)}function t2(s,u,b){switch(u.tag){case J:H_(u),u.stateNode,h();break;case K:d_(u);break;case V:{var x=u.type;eo(x)&&ec(u);break}case $:hx(u,u.stateNode.containerInfo);break;case re:{var _=u.memoizedProps.value,I=u.type._context;GS(u,I,_);break}case ie:{var F=Hi(b,u.childLanes);F&&(u.flags|=hn);{var W=u.stateNode;W.effectDuration=0,W.passiveEffectDuration=0}}break;case le:{var Q=u.memoizedState;if(Q!==null){if(Q.dehydrated!==null)return Rf(u,zm(Cu.current)),u.flags|=qn,null;var ue=u.child,me=ue.childLanes;if(Hi(b,me))return W_(s,u,b);Rf(u,zm(Cu.current));var ke=gd(s,u,b);return ke!==null?ke.sibling:null}else Rf(u,zm(Cu.current));break}case Ie:{var Ve=(s.flags&qn)!==Lt,Xe=Hi(b,u.childLanes);if(Ve){if(Xe)return bb(s,u,b);u.flags|=qn}var ct=u.memoizedState;if(ct!==null&&(ct.rendering=null,ct.tail=null,ct.lastEffect=null),Rf(u,Cu.current),Xe)break;return null}case $e:case it:return u.lanes=nt,F_(s,u,b)}return gd(s,u,b)}function xb(s,u,b){if(u._debugNeedsRemount&&s!==null)return DD(s,u,fM(u.type,u.key,u.pendingProps,u._debugOwner||null,u.mode,u.lanes));if(s!==null){var x=s.memoizedProps,_=u.pendingProps;if(x!==_||du()||u.type!==s.type)Vl=!0;else{var I=e2(s,b);if(!I&&(u.flags&qn)===Lt)return Vl=!1,t2(s,u,b);(s.flags&pe)!==Lt?Vl=!0:Vl=!1}}else if(Vl=!1,E()&&vc(u)){var F=u.index,W=Tm();hd(u,W,F)}switch(u.lanes=nt,u.tag){case Y:return gD(s,u,u.type,b);case Fe:{var Q=u.elementType;return mD(s,u,Q,b)}case U:{var ue=u.type,me=u.pendingProps,ke=u.elementType===ue?me:xu(ue,me);return Gx(s,u,ue,ke,b)}case V:{var Ve=u.type,Xe=u.pendingProps,ct=u.elementType===Ve?Xe:xu(Ve,Xe);return V_(s,u,Ve,ct,b)}case J:return fD(s,u,b);case K:return hD(s,u,b);case fe:return pD(s,u);case le:return W_(s,u,b);case $:return PD(s,u,b);case oe:{var ut=u.type,on=u.pendingProps,Tn=u.elementType===ut?on:xu(ut,on);return B_(s,u,ut,Tn,b)}case X:return uD(s,u,b);case G:return cD(s,u,b);case ie:return dD(s,u,b);case re:return AD(s,u,b);case te:return OD(s,u,b);case ee:{var vn=u.type,ei=u.pendingProps,br=xu(vn,ei);if(u.type!==u.elementType){var je=vn.propTypes;je&&Es(je,br,"prop",Bt(vn))}return br=xu(vn.type,br),Vx(s,u,vn,br,b)}case de:return Hx(s,u,u.type,u.pendingProps,b);case Pe:{var Ke=u.type,Me=u.pendingProps,wt=u.elementType===Ke?Me:xu(Ke,Me);return vD(s,u,Ke,wt,b)}case Ie:return bb(s,u,b);case De:break;case $e:return F_(s,u,b)}throw new Error("Unknown unit of work tag ("+u.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function _c(s){s.flags|=hn}function Q_(s){s.flags|=lo,s.flags|=kt}function Z_(s,u){var b=s!==null&&s.child===u.child;if(b)return!0;if((u.flags&ri)!==Lt)return!1;for(var x=u.child;x!==null;){if((x.flags&Ei)!==Lt||(x.subtreeFlags&Ei)!==Lt)return!1;x=x.sibling}return!0}var Bg,Fg,wb,Cb;if(ea)Bg=function(s,u,b,x){for(var _=u.child;_!==null;){if(_.tag===K||_.tag===fe)pa(s,_.stateNode);else if(_.tag!==$){if(_.child!==null){_.child.return=_,_=_.child;continue}}if(_===u)return;for(;_.sibling===null;){if(_.return===null||_.return===u)return;_=_.return}_.sibling.return=_.return,_=_.sibling}},Fg=function(s,u){},wb=function(s,u,b,x,_){var I=s.memoizedProps;if(I!==x){var F=u.stateNode,W=Sg(),Q=Jd(F,b,I,x,_,W);u.updateQueue=Q,Q&&_c(u)}},Cb=function(s,u,b,x){b!==x&&_c(u)};else if(fo){Bg=function(s,u,b,x){for(var _=u.child;_!==null;){if(_.tag===K){var I=_.stateNode;if(b&&x){var F=_.memoizedProps,W=_.type;I=Ui(I,W,F,_)}pa(s,I)}else if(_.tag===fe){var Q=_.stateNode;if(b&&x){var ue=_.memoizedProps;Q=kr(Q,ue,_)}pa(s,Q)}else if(_.tag!==$){if(_.tag===$e&&_.memoizedState!==null){var me=_.child;me!==null&&(me.return=_),Bg(s,_,!0,!0)}else if(_.child!==null){_.child.return=_,_=_.child;continue}}if(_=_,_===u)return;for(;_.sibling===null;){if(_.return===null||_.return===u)return;_=_.return}_.sibling.return=_.return,_=_.sibling}};var J_=function(s,u,b,x){for(var _=u.child;_!==null;){if(_.tag===K){var I=_.stateNode;if(b&&x){var F=_.memoizedProps,W=_.type;I=Ui(I,W,F,_)}An(s,I)}else if(_.tag===fe){var Q=_.stateNode;if(b&&x){var ue=_.memoizedProps;Q=kr(Q,ue,_)}An(s,Q)}else if(_.tag!==$){if(_.tag===$e&&_.memoizedState!==null){var me=_.child;me!==null&&(me.return=_),J_(s,_,!0,!0)}else if(_.child!==null){_.child.return=_,_=_.child;continue}}if(_=_,_===u)return;for(;_.sibling===null;){if(_.return===null||_.return===u)return;_=_.return}_.sibling.return=_.return,_=_.sibling}};Fg=function(s,u){var b=u.stateNode,x=Z_(s,u);if(!x){var _=b.containerInfo,I=pn(_);J_(I,u,!1,!1),b.pendingChildren=I,_c(u),rr(_,I)}},wb=function(s,u,b,x,_){var I=s.stateNode,F=s.memoizedProps,W=Z_(s,u);if(W&&F===x){u.stateNode=I;return}var Q=u.stateNode,ue=Sg(),me=null;if(F!==x&&(me=Jd(Q,b,F,x,_,ue)),W&&me===null){u.stateNode=I;return}var ke=jr(I,me,b,F,x,u,W,Q);El(ke,b,x,_,ue)&&_c(u),u.stateNode=ke,W?_c(u):Bg(ke,u,!1,!1)},Cb=function(s,u,b,x){if(b!==x){var _=fx(),I=Sg();u.stateNode=_l(x,_,I,u),_c(u)}else u.stateNode=s.stateNode}}else Fg=function(s,u){},wb=function(s,u,b,x,_){},Cb=function(s,u,b,x){};function Ug(s,u){if(!E())switch(s.tailMode){case"hidden":{for(var b=s.tail,x=null;b!==null;)b.alternate!==null&&(x=b),b=b.sibling;x===null?s.tail=null:x.sibling=null;break}case"collapsed":{for(var _=s.tail,I=null;_!==null;)_.alternate!==null&&(I=_),_=_.sibling;I===null?!u&&s.tail!==null?s.tail.sibling=null:s.tail=null:I.sibling=null;break}}}function ko(s){var u=s.alternate!==null&&s.alternate.child===s.child,b=nt,x=Lt;if(u){if((s.mode&En)!==mn){for(var Q=s.selfBaseDuration,ue=s.child;ue!==null;)b=Xt(b,Xt(ue.lanes,ue.childLanes)),x|=ue.subtreeFlags&fi,x|=ue.flags&fi,Q+=ue.treeBaseDuration,ue=ue.sibling;s.treeBaseDuration=Q}else for(var me=s.child;me!==null;)b=Xt(b,Xt(me.lanes,me.childLanes)),x|=me.subtreeFlags&fi,x|=me.flags&fi,me.return=s,me=me.sibling;s.subtreeFlags|=x}else{if((s.mode&En)!==mn){for(var _=s.actualDuration,I=s.selfBaseDuration,F=s.child;F!==null;)b=Xt(b,Xt(F.lanes,F.childLanes)),x|=F.subtreeFlags,x|=F.flags,_+=F.actualDuration,I+=F.treeBaseDuration,F=F.sibling;s.actualDuration=_,s.treeBaseDuration=I}else for(var W=s.child;W!==null;)b=Xt(b,Xt(W.lanes,W.childLanes)),x|=W.subtreeFlags,x|=W.flags,W.return=s,W=W.sibling;s.subtreeFlags|=x}return s.childLanes=b,u}function MD(s,u,b){if(Om()&&(u.mode&Vn)!==mn&&(u.flags&qn)===Lt)return Dm(u),h(),u.flags|=Io|nu|di,!1;var x=bc(u);if(b!==null&&b.dehydrated!==null)if(s===null){if(!x)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(fg(u),ko(u),(u.mode&En)!==mn){var _=b!==null;if(_){var I=u.child;I!==null&&(u.treeBaseDuration-=I.treeBaseDuration)}}return!1}else{if(h(),(u.flags&qn)===Lt&&(u.memoizedState=null),u.flags|=hn,ko(u),(u.mode&En)!==mn){var F=b!==null;if(F){var W=u.child;W!==null&&(u.treeBaseDuration-=W.treeBaseDuration)}}return!1}else return m(),!0}function $_(s,u,b){var x=u.pendingProps;switch(Qh(u),u.tag){case Y:case Fe:case de:case U:case oe:case X:case G:case ie:case te:case ee:return ko(u),null;case V:{var _=u.type;return eo(_)&&wr(u),ko(u),null}case J:{var I=u.stateNode;if(Lm(u),mi(u),$y(),I.pendingContext&&(I.context=I.pendingContext,I.pendingContext=null),s===null||s.child===null){var F=bc(u);if(F)_c(u);else if(s!==null){var W=s.memoizedState;(!W.isDehydrated||(u.flags&Io)!==Lt)&&(u.flags|=Xo,m())}}return Fg(s,u),ko(u),null}case K:{Qy(u);var Q=fx(),ue=u.type;if(s!==null&&u.stateNode!=null)wb(s,u,ue,x,Q),s.ref!==u.ref&&Q_(u);else{if(!x){if(u.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return ko(u),null}var me=Sg(),ke=bc(u);if(ke)Jh(u,Q,me)&&_c(u);else{var Ve=Qu(ue,x,Q,me,u);Bg(Ve,u,!1,!1),u.stateNode=Ve,El(Ve,ue,x,Q,me)&&_c(u)}u.ref!==null&&Q_(u)}return ko(u),null}case fe:{var Xe=x;if(s&&u.stateNode!=null){var ct=s.memoizedProps;Cb(s,u,ct,Xe)}else{if(typeof Xe!="string"&&u.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var ut=fx(),on=Sg(),Tn=bc(u);Tn?Oy(u)&&_c(u):u.stateNode=_l(Xe,ut,on,u)}return ko(u),null}case le:{Bm(u);var vn=u.memoizedState;if(s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){var ei=MD(s,u,vn);if(!ei)return u.flags&di?u:null}if((u.flags&qn)!==Lt)return u.lanes=b,(u.mode&En)!==mn&&jx(u),u;var br=vn!==null,je=s!==null&&s.memoizedState!==null;if(br!==je&&br){var Ke=u.child;if(Ke.flags|=Qo,(u.mode&Vn)!==mn){var Me=s===null&&(u.memoizedProps.unstable_avoidThisFallback!==!0||!D);Me||px(Cu.current,f_)?p6e():nM()}}var wt=u.updateQueue;if(wt!==null&&(u.flags|=hn),ko(u),(u.mode&En)!==mn&&br){var $t=u.child;$t!==null&&(u.treeBaseDuration-=$t.treeBaseDuration)}return null}case $:return Lm(u),Fg(s,u),s===null&&qv(u.stateNode.containerInfo),ko(u),null;case re:var qt=u.type._context;return WS(qt,u),ko(u),null;case Pe:{var pr=u.type;return eo(pr)&&wr(u),ko(u),null}case Ie:{Bm(u);var Dn=u.memoizedState;if(Dn===null)return ko(u),null;var Pr=(u.flags&qn)!==Lt,ur=Dn.rendering;if(ur===null)if(Pr)Ug(Dn,!1);else{var Ti=v6e()&&(s===null||(s.flags&qn)===Lt);if(!Ti)for(var yn=u.child;yn!==null;){var ja=Zy(yn);if(ja!==null){Pr=!0,u.flags|=qn,Ug(Dn,!1);var Ns=ja.updateQueue;return Ns!==null&&(u.updateQueue=Ns,u.flags|=hn),u.subtreeFlags=Lt,qO(u,b),Rf(u,mx(Cu.current,wg)),u.child}yn=yn.sibling}Dn.tail!==null&&qi()>SW()&&(u.flags|=qn,Pr=!0,Ug(Dn,!1),u.lanes=bm)}else{if(!Pr){var cs=Zy(ur);if(cs!==null){u.flags|=qn,Pr=!0;var Pu=cs.updateQueue;if(Pu!==null&&(u.updateQueue=Pu,u.flags|=hn),Ug(Dn,!0),Dn.tail===null&&Dn.tailMode==="hidden"&&!ur.alternate&&!E())return ko(u),null}else qi()*2-Dn.renderingStartTime>SW()&&b!==ga&&(u.flags|=qn,Pr=!0,Ug(Dn,!1),u.lanes=bm)}if(Dn.isBackwards)ur.sibling=u.child,u.child=ur;else{var hl=Dn.last;hl!==null?hl.sibling=ur:u.child=ur,Dn.last=ur}}if(Dn.tail!==null){var pl=Dn.tail;Dn.rendering=pl,Dn.tail=pl.sibling,Dn.renderingStartTime=qi(),pl.sibling=null;var Ls=Cu.current;return Pr?Ls=mx(Ls,wg):Ls=zm(Ls),Rf(u,Ls),pl}return ko(u),null}case De:break;case $e:case it:{tM(u);var lp=u.memoizedState,Ob=lp!==null;if(s!==null){var m2=s.memoizedState,Vf=m2!==null;Vf!==Ob&&!P&&(u.flags|=Qo)}return!Ob||(u.mode&Vn)===mn?ko(u):Hi(Ff,ga)&&(ko(u),ea&&u.subtreeFlags&(gr|hn)&&(u.flags|=Qo)),null}case mt:return null;case bt:return null}throw new Error("Unknown unit of work tag ("+u.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function jD(s,u,b){switch(Qh(u),u.tag){case V:{var x=u.type;eo(x)&&wr(u);var _=u.flags;return _&di?(u.flags=_&~di|qn,(u.mode&En)!==mn&&jx(u),u):null}case J:{u.stateNode,Lm(u),mi(u),$y();var I=u.flags;return(I&di)!==Lt&&(I&qn)===Lt?(u.flags=I&~di|qn,u):null}case K:return Qy(u),null;case le:{Bm(u);var F=u.memoizedState;if(F!==null&&F.dehydrated!==null){if(u.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");h()}var W=u.flags;return W&di?(u.flags=W&~di|qn,(u.mode&En)!==mn&&jx(u),u):null}case Ie:return Bm(u),null;case $:return Lm(u),null;case re:var Q=u.type._context;return WS(Q,u),null;case $e:case it:return tM(u),null;case mt:return null;default:return null}}function eT(s,u,b){switch(Qh(u),u.tag){case V:{var x=u.type.childContextTypes;x!=null&&wr(u);break}case J:{u.stateNode,Lm(u),mi(u),$y();break}case K:{Qy(u);break}case $:Lm(u);break;case le:Bm(u);break;case Ie:Bm(u);break;case re:var _=u.type._context;WS(_,u);break;case $e:case it:tM(u);break}}function tT(s,u,b,x,_,I,F,W,Q){var ue=Array.prototype.slice.call(arguments,3);try{u.apply(b,ue)}catch(me){this.onError(me)}}var nT=tT;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var n2=document.createElement("react");nT=function(u,b,x,_,I,F,W,Q,ue){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var me=document.createEvent("Event"),ke=!1,Ve=!0,Xe=window.event,ct=Object.getOwnPropertyDescriptor(window,"event");function ut(){n2.removeEventListener(Ke,Tn,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=Xe)}var on=Array.prototype.slice.call(arguments,3);function Tn(){ke=!0,ut(),b.apply(x,on),Ve=!1}var vn,ei=!1,br=!1;function je(Me){if(vn=Me.error,ei=!0,vn===null&&Me.colno===0&&Me.lineno===0&&(br=!0),Me.defaultPrevented&&vn!=null&&typeof vn=="object")try{vn._suppressLogging=!0}catch{}}var Ke="react-"+(u||"invokeguardedcallback");if(window.addEventListener("error",je),n2.addEventListener(Ke,Tn,!1),me.initEvent(Ke,!1,!1),n2.dispatchEvent(me),ct&&Object.defineProperty(window,"event",ct),ke&&Ve&&(ei?br&&(vn=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):vn=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(vn)),window.removeEventListener("error",je),!ke)return ut(),tT.apply(this,arguments)}}var ID=nT,Vg=!1,Eb=null,RD={onError:function(s){Vg=!0,Eb=s}};function f(s,u,b,x,_,I,F,W,Q){Vg=!1,Eb=null,ID.apply(RD,arguments)}function y(){return Vg}function T(){if(Vg){var s=Eb;return Vg=!1,Eb=null,s}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}var N=null;N=new Set;var H=!1,Z=!1,ce=typeof WeakSet=="function"?WeakSet:Set,se=null,Ee=null,We=null;function Je(s){f(null,function(){throw s}),T()}var ht=function(s,u){if(u.props=s.memoizedProps,u.state=s.memoizedState,s.mode&En)try{Ec(),u.componentWillUnmount()}finally{Cc(s)}else u.componentWillUnmount()};function Rt(s,u){try{Ho(qa,s)}catch(b){li(s,u,b)}}function Jt(s,u,b){try{ht(s,b)}catch(x){li(s,u,x)}}function wn(s,u,b){try{b.componentDidMount()}catch(x){li(s,u,x)}}function Wn(s,u){try{oW(s)}catch(b){li(s,u,b)}}function fn(s,u){var b=s.ref;if(b!==null)if(typeof b=="function"){var x;try{if(L&&z&&s.mode&En)try{Ec(),x=b(null)}finally{Cc(s)}else x=b(null)}catch(_){li(s,u,_)}typeof x=="function"&&d("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Mt(s))}else b.current=null}function Zn(s,u,b){try{b()}catch(x){li(s,u,x)}}var dr=!1;function cl(s,u){La(s.containerInfo),se=u,ss();var b=dr;return dr=!1,b}function ss(){for(;se!==null;){var s=se,u=s.child;(s.subtreeFlags&Nn)!==Lt&&u!==null?(u.return=s,se=u):dl()}}function dl(){for(;se!==null;){var s=se;Cr(s);try{Ca(s)}catch(b){li(s,s.return,b)}or();var u=s.sibling;if(u!==null){u.return=s.return,se=u;return}se=s.return}}function Ca(s){var u=s.alternate,b=s.flags;if((b&Xo)!==Lt){switch(Cr(s),s.tag){case U:case oe:case de:break;case V:{if(u!==null){var x=u.memoizedProps,_=u.memoizedState,I=s.stateNode;s.type===s.elementType&&!Hl&&(I.props!==s.memoizedProps&&d("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(s)||"instance"),I.state!==s.memoizedState&&d("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(s)||"instance"));var F=I.getSnapshotBeforeUpdate(s.elementType===s.type?x:xu(s.type,x),_);{var W=N;F===void 0&&!W.has(s.type)&&(W.add(s.type),d("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Mt(s)))}I.__reactInternalSnapshotBeforeUpdate=F}break}case J:{if(ea){var Q=s.stateNode;Yn(Q.containerInfo)}break}case K:case fe:case $:case Pe:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}or()}}function Ea(s,u,b){var x=u.updateQueue,_=x!==null?x.lastEffect:null;if(_!==null){var I=_.next,F=I;do{if((F.tag&s)===s){var W=F.destroy;F.destroy=void 0,W!==void 0&&((s&Eo)!==Ms?Ki(u):(s&qa)!==Ms&&Xi(u),(s&Sc)!==Ms&&p2(!0),Zn(u,b,W),(s&Sc)!==Ms&&p2(!1),(s&Eo)!==Ms?xa():(s&qa)!==Ms&&ld())}F=F.next}while(F!==I)}}function Ho(s,u){var b=u.updateQueue,x=b!==null?b.lastEffect:null;if(x!==null){var _=x.next,I=_;do{if((I.tag&s)===s){(s&Eo)!==Ms?Xn(u):(s&qa)!==Ms&&es(u);var F=I.create;(s&Sc)!==Ms&&p2(!0),I.destroy=F(),(s&Sc)!==Ms&&p2(!1),(s&Eo)!==Ms?Da():(s&qa)!==Ms&&pc();{var W=I.destroy;if(W!==void 0&&typeof W!="function"){var Q=void 0;(I.tag&qa)!==Lt?Q="useLayoutEffect":(I.tag&Sc)!==Lt?Q="useInsertionEffect":Q="useEffect";var ue=void 0;W===null?ue=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof W.then=="function"?ue=`
|
||
|
||
It looks like you wrote `+Q+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
||
|
||
`+Q+`(() => {
|
||
async function fetchData() {
|
||
// You can await here
|
||
const response = await MyAPI.getData(someId);
|
||
// ...
|
||
}
|
||
fetchData();
|
||
}, [someId]); // Or [] if effect doesn't need props or state
|
||
|
||
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:ue=" You returned: "+W,d("%s must not return anything besides a function, which is used for clean-up.%s",Q,ue)}}}I=I.next}while(I!==_)}}function rT(s,u){if((u.flags&hn)!==Lt)switch(u.tag){case ie:{var b=u.stateNode.passiveEffectDuration,x=u.memoizedProps,_=x.id,I=x.onPostCommit,F=I_(),W=u.alternate===null?"mount":"update";j_()&&(W="nested-update"),typeof I=="function"&&I(_,W,b,F);var Q=u.return;e:for(;Q!==null;){switch(Q.tag){case J:var ue=Q.stateNode;ue.passiveEffectDuration+=b;break e;case ie:var me=Q.stateNode;me.passiveEffectDuration+=b;break e}Q=Q.return}break}}}function cje(s,u,b,x){if((b.flags&Dr)!==Lt)switch(b.tag){case U:case oe:case de:{if(!Z)if(b.mode&En)try{Ec(),Ho(qa|Wa,b)}finally{Cc(b)}else Ho(qa|Wa,b);break}case V:{var _=b.stateNode;if(b.flags&hn&&!Z)if(u===null)if(b.type===b.elementType&&!Hl&&(_.props!==b.memoizedProps&&d("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(b)||"instance"),_.state!==b.memoizedState&&d("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(b)||"instance")),b.mode&En)try{Ec(),_.componentDidMount()}finally{Cc(b)}else _.componentDidMount();else{var I=b.elementType===b.type?u.memoizedProps:xu(b.type,u.memoizedProps),F=u.memoizedState;if(b.type===b.elementType&&!Hl&&(_.props!==b.memoizedProps&&d("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(b)||"instance"),_.state!==b.memoizedState&&d("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(b)||"instance")),b.mode&En)try{Ec(),_.componentDidUpdate(I,F,_.__reactInternalSnapshotBeforeUpdate)}finally{Cc(b)}else _.componentDidUpdate(I,F,_.__reactInternalSnapshotBeforeUpdate)}var W=b.updateQueue;W!==null&&(b.type===b.elementType&&!Hl&&(_.props!==b.memoizedProps&&d("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Mt(b)||"instance"),_.state!==b.memoizedState&&d("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Mt(b)||"instance")),e_(b,W,_));break}case J:{var Q=b.updateQueue;if(Q!==null){var ue=null;if(b.child!==null)switch(b.child.tag){case K:ue=_r(b.child.stateNode);break;case V:ue=b.child.stateNode;break}e_(b,Q,ue)}break}case K:{var me=b.stateNode;if(u===null&&b.flags&hn){var ke=b.type,Ve=b.memoizedProps;tm(me,ke,Ve,b)}break}case fe:break;case $:break;case ie:{{var Xe=b.memoizedProps,ct=Xe.onCommit,ut=Xe.onRender,on=b.stateNode.effectDuration,Tn=I_(),vn=u===null?"mount":"update";j_()&&(vn="nested-update"),typeof ut=="function"&&ut(b.memoizedProps.id,vn,b.actualDuration,b.treeBaseDuration,b.actualStartTime,Tn);{typeof ct=="function"&&ct(b.memoizedProps.id,vn,on,Tn),x6e(b);var ei=b.return;e:for(;ei!==null;){switch(ei.tag){case J:var br=ei.stateNode;br.effectDuration+=on;break e;case ie:var je=ei.stateNode;je.effectDuration+=on;break e}ei=ei.return}}}break}case le:{bje(s,b);break}case Ie:case Pe:case De:case $e:case it:case bt:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Z||b.flags&lo&&oW(b)}function dje(s){switch(s.tag){case U:case oe:case de:{if(s.mode&En)try{Ec(),Rt(s,s.return)}finally{Cc(s)}else Rt(s,s.return);break}case V:{var u=s.stateNode;typeof u.componentDidMount=="function"&&wn(s,s.return,u),Wn(s,s.return);break}case K:{Wn(s,s.return);break}}}function fje(s,u){var b=null;if(ea)for(var x=s;;){if(x.tag===K){if(b===null){b=x;try{var _=x.stateNode;u?ae(_):Le(x.stateNode,x.memoizedProps)}catch(F){li(s,s.return,F)}}}else if(x.tag===fe){if(b===null)try{var I=x.stateNode;u?ve(I):zt(I,x.memoizedProps)}catch(F){li(s,s.return,F)}}else if(!((x.tag===$e||x.tag===it)&&x.memoizedState!==null&&x!==s)){if(x.child!==null){x.child.return=x,x=x.child;continue}}if(x===s)return;for(;x.sibling===null;){if(x.return===null||x.return===s)return;b===x&&(b=null),x=x.return}b===x&&(b=null),x.sibling.return=x.return,x=x.sibling}}function oW(s){var u=s.ref;if(u!==null){var b=s.stateNode,x;switch(s.tag){case K:x=_r(b);break;default:x=b}if(typeof u=="function"){var _;if(s.mode&En)try{Ec(),_=u(x)}finally{Cc(s)}else _=u(x);typeof _=="function"&&d("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Mt(s))}else u.hasOwnProperty("current")||d("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Mt(s)),u.current=x}}function hje(s){var u=s.alternate;u!==null&&(u.return=null),s.return=null}function sW(s){var u=s.alternate;u!==null&&(s.alternate=null,sW(u));{if(s.child=null,s.deletions=null,s.sibling=null,s.tag===K){var b=s.stateNode;b!==null&&nf(b)}s.stateNode=null,s._debugOwner=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}}function pje(s){if(fo){var u=s.stateNode,b=u.containerInfo,x=pn(b);ta(b,x)}}function mje(s){for(var u=s.return;u!==null;){if(lW(u))return u;u=u.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function lW(s){return s.tag===K||s.tag===J||s.tag===$}function uW(s){var u=s;e:for(;;){for(;u.sibling===null;){if(u.return===null||lW(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==K&&u.tag!==fe&&u.tag!==Oe;){if(u.flags&gr||u.child===null||u.tag===$)continue e;u.child.return=u,u=u.child}if(!(u.flags&gr))return u.stateNode}}function vje(s){if(ea){var u=mje(s);switch(u.tag){case K:{var b=u.stateNode;u.flags&Ys&&(im(b),u.flags&=~Ys);var x=uW(s);LD(s,x,b);break}case J:case $:{var _=u.stateNode.containerInfo,I=uW(s);ND(s,I,_);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}}function ND(s,u,b){var x=s.tag,_=x===K||x===fe;if(_){var I=s.stateNode;u?Tr(b,I,u):hi(b,I)}else if(x!==$){var F=s.child;if(F!==null){ND(F,u,b);for(var W=F.sibling;W!==null;)ND(W,u,b),W=W.sibling}}}function LD(s,u,b){var x=s.tag,_=x===K||x===fe;if(_){var I=s.stateNode;u?nm(b,I,u):Zs(b,I)}else if(x!==$){var F=s.child;if(F!==null){LD(F,u,b);for(var W=F.sibling;W!==null;)LD(W,u,b),W=W.sibling}}}var ls=null,yd=!1;function gje(s,u,b){if(ea){var x=u;e:for(;x!==null;){switch(x.tag){case K:{ls=x.stateNode,yd=!1;break e}case J:{ls=x.stateNode.containerInfo,yd=!0;break e}case $:{ls=x.stateNode.containerInfo,yd=!0;break e}}x=x.return}if(ls===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");zD(s,u,b),ls=null,yd=!1}else zD(s,u,b);hje(b)}function zf(s,u,b){for(var x=b.child;x!==null;)zD(s,u,x),x=x.sibling}function zD(s,u,b){switch(og(b),b.tag){case K:Z||fn(b,u);case fe:{if(ea){var x=ls,_=yd;ls=null,zf(s,u,b),ls=x,yd=_,ls!==null&&(yd?rm(ls,b.stateNode):nr(ls,b.stateNode))}else zf(s,u,b);return}case Oe:{ea&&ls!==null&&(yd?lf(ls,b.stateNode):gy(ls,b.stateNode));return}case $:{if(ea){var I=ls,F=yd;ls=b.stateNode.containerInfo,yd=!0,zf(s,u,b),ls=I,yd=F}else pje(b),zf(s,u,b);return}case U:case oe:case ee:case de:{if(!Z){var W=b.updateQueue;if(W!==null){var Q=W.lastEffect;if(Q!==null){var ue=Q.next,me=ue;do{var ke=me,Ve=ke.destroy,Xe=ke.tag;Ve!==void 0&&((Xe&Sc)!==Ms?Zn(b,u,Ve):(Xe&qa)!==Ms&&(Xi(b),b.mode&En?(Ec(),Zn(b,u,Ve),Cc(b)):Zn(b,u,Ve),ld())),me=me.next}while(me!==ue)}}}zf(s,u,b);return}case V:{if(!Z){fn(b,u);var ct=b.stateNode;typeof ct.componentWillUnmount=="function"&&Jt(b,u,ct)}zf(s,u,b);return}case De:{zf(s,u,b);return}case $e:{if(b.mode&Vn){var ut=Z;Z=ut||b.memoizedState!==null,zf(s,u,b),Z=ut}else zf(s,u,b);break}default:{zf(s,u,b);return}}}function yje(s){s.memoizedState}function bje(s,u){if(ma){var b=u.memoizedState;if(b===null){var x=u.alternate;if(x!==null){var _=x.memoizedState;if(_!==null){var I=_.dehydrated;I!==null&&kh(I)}}}}}function cW(s){var u=s.updateQueue;if(u!==null){s.updateQueue=null;var b=s.stateNode;b===null&&(b=s.stateNode=new ce),u.forEach(function(x){var _=P6e.bind(null,s,x);if(!b.has(x)){if(b.add(x),Bo)if(Ee!==null&&We!==null)h2(We,Ee);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");x.then(_,_)}})}}function Sje(s,u,b){Ee=b,We=s,Cr(u),dW(u,s),Cr(u),Ee=null,We=null}function bd(s,u,b){var x=u.deletions;if(x!==null)for(var _=0;_<x.length;_++){var I=x[_];try{gje(s,u,I)}catch(Q){li(I,u,Q)}}var F=Be();if(u.subtreeFlags&Ei)for(var W=u.child;W!==null;)Cr(W),dW(W,s),W=W.sibling;Cr(F)}function dW(s,u,b){var x=s.alternate,_=s.flags;switch(s.tag){case U:case oe:case ee:case de:{if(bd(u,s),Bf(s),_&hn){try{Ea(Sc|Wa,s,s.return),Ho(Sc|Wa,s)}catch(yn){li(s,s.return,yn)}if(s.mode&En){try{Ec(),Ea(qa|Wa,s,s.return)}catch(yn){li(s,s.return,yn)}Cc(s)}else try{Ea(qa|Wa,s,s.return)}catch(yn){li(s,s.return,yn)}}return}case V:{bd(u,s),Bf(s),_&lo&&x!==null&&fn(x,x.return);return}case K:{if(bd(u,s),Bf(s),_&lo&&x!==null&&fn(x,x.return),ea){if(s.flags&Ys){var I=s.stateNode;try{im(I)}catch(yn){li(s,s.return,yn)}}if(_&hn){var F=s.stateNode;if(F!=null){var W=s.memoizedProps,Q=x!==null?x.memoizedProps:W,ue=s.type,me=s.updateQueue;if(s.updateQueue=null,me!==null)try{Th(F,me,ue,Q,W,s)}catch(yn){li(s,s.return,yn)}}}}return}case fe:{if(bd(u,s),Bf(s),_&hn&&ea){if(s.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var ke=s.stateNode,Ve=s.memoizedProps,Xe=x!==null?x.memoizedProps:Ve;try{_h(ke,Xe,Ve)}catch(yn){li(s,s.return,yn)}}return}case J:{if(bd(u,s),Bf(s),_&hn){if(ea&&ma&&x!==null){var ct=x.memoizedState;if(ct.isDehydrated)try{kl(u.containerInfo)}catch(yn){li(s,s.return,yn)}}if(fo){var ut=u.containerInfo,on=u.pendingChildren;try{ta(ut,on)}catch(yn){li(s,s.return,yn)}}}return}case $:{if(bd(u,s),Bf(s),_&hn&&fo){var Tn=s.stateNode,vn=Tn.containerInfo,ei=Tn.pendingChildren;try{ta(vn,ei)}catch(yn){li(s,s.return,yn)}}return}case le:{bd(u,s),Bf(s);var br=s.child;if(br.flags&Qo){var je=br.stateNode,Ke=br.memoizedState,Me=Ke!==null;if(je.isHidden=Me,Me){var wt=br.alternate!==null&&br.alternate.memoizedState!==null;wt||h6e()}}if(_&hn){try{yje(s)}catch(yn){li(s,s.return,yn)}cW(s)}return}case $e:{var $t=x!==null&&x.memoizedState!==null;if(s.mode&Vn){var qt=Z;Z=qt||$t,bd(u,s),Z=qt}else bd(u,s);if(Bf(s),_&Qo){var pr=s.stateNode,Dn=s.memoizedState,Pr=Dn!==null,ur=s;if(pr.isHidden=Pr,Pr&&!$t&&(ur.mode&Vn)!==mn){se=ur;for(var Ti=ur.child;Ti!==null;)se=Ti,wje(Ti),Ti=Ti.sibling}ea&&fje(ur,Pr)}return}case Ie:{bd(u,s),Bf(s),_&hn&&cW(s);return}case De:return;default:{bd(u,s),Bf(s);return}}}function Bf(s){var u=s.flags;if(u&gr){try{vje(s)}catch(b){li(s,s.return,b)}s.flags&=~gr}u&Fi&&(s.flags&=~Fi)}function xje(s,u,b){Ee=b,We=u,se=s,fW(s,u,b),Ee=null,We=null}function fW(s,u,b){for(var x=(s.mode&Vn)!==mn;se!==null;){var _=se,I=_.child;if(_.tag===$e&&x){var F=_.memoizedState!==null,W=F||H;if(W){BD(s,u,b);continue}else{var Q=_.alternate,ue=Q!==null&&Q.memoizedState!==null,me=ue||Z,ke=H,Ve=Z;H=W,Z=me,Z&&!Ve&&(se=_,Cje(_));for(var Xe=I;Xe!==null;)se=Xe,fW(Xe,u,b),Xe=Xe.sibling;se=_,H=ke,Z=Ve,BD(s,u,b);continue}}(_.subtreeFlags&Dr)!==Lt&&I!==null?(I.return=_,se=I):BD(s,u,b)}}function BD(s,u,b){for(;se!==null;){var x=se;if((x.flags&Dr)!==Lt){var _=x.alternate;Cr(x);try{cje(u,_,x,b)}catch(F){li(x,x.return,F)}or()}if(x===s){se=null;return}var I=x.sibling;if(I!==null){I.return=x.return,se=I;return}se=x.return}}function wje(s){for(;se!==null;){var u=se,b=u.child;switch(u.tag){case U:case oe:case ee:case de:{if(u.mode&En)try{Ec(),Ea(qa,u,u.return)}finally{Cc(u)}else Ea(qa,u,u.return);break}case V:{fn(u,u.return);var x=u.stateNode;typeof x.componentWillUnmount=="function"&&Jt(u,u.return,x);break}case K:{fn(u,u.return);break}case $e:{var _=u.memoizedState!==null;if(_){hW(s);continue}break}}b!==null?(b.return=u,se=b):hW(s)}}function hW(s){for(;se!==null;){var u=se;if(u===s){se=null;return}var b=u.sibling;if(b!==null){b.return=u.return,se=b;return}se=u.return}}function Cje(s){for(;se!==null;){var u=se,b=u.child;if(u.tag===$e){var x=u.memoizedState!==null;if(x){pW(s);continue}}b!==null?(b.return=u,se=b):pW(s)}}function pW(s){for(;se!==null;){var u=se;Cr(u);try{dje(u)}catch(x){li(u,u.return,x)}if(or(),u===s){se=null;return}var b=u.sibling;if(b!==null){b.return=u.return,se=b;return}se=u.return}}function Eje(s,u,b,x){se=u,_je(u,s,b,x)}function _je(s,u,b,x){for(;se!==null;){var _=se,I=_.child;(_.subtreeFlags&Mr)!==Lt&&I!==null?(I.return=_,se=I):Tje(s,u,b,x)}}function Tje(s,u,b,x){for(;se!==null;){var _=se;if((_.flags&Na)!==Lt){Cr(_);try{kje(u,_,b,x)}catch(F){li(_,_.return,F)}or()}if(_===s){se=null;return}var I=_.sibling;if(I!==null){I.return=_.return,se=I;return}se=_.return}}function kje(s,u,b,x){switch(u.tag){case U:case oe:case de:{if(u.mode&En){jg();try{Ho(Eo|Wa,u)}finally{Mg(u)}}else Ho(Eo|Wa,u);break}}}function Pje(s){se=s,Aje()}function Aje(){for(;se!==null;){var s=se,u=s.child;if((se.flags&ri)!==Lt){var b=s.deletions;if(b!==null){for(var x=0;x<b.length;x++){var _=b[x];se=_,Mje(_,s)}{var I=s.alternate;if(I!==null){var F=I.child;if(F!==null){I.child=null;do{var W=F.sibling;F.sibling=null,F=W}while(F!==null)}}}se=s}}(s.subtreeFlags&Mr)!==Lt&&u!==null?(u.return=s,se=u):Oje()}}function Oje(){for(;se!==null;){var s=se;(s.flags&Na)!==Lt&&(Cr(s),Dje(s),or());var u=s.sibling;if(u!==null){u.return=s.return,se=u;return}se=s.return}}function Dje(s){switch(s.tag){case U:case oe:case de:{s.mode&En?(jg(),Ea(Eo|Wa,s,s.return),Mg(s)):Ea(Eo|Wa,s,s.return);break}}}function Mje(s,u){for(;se!==null;){var b=se;Cr(b),Ije(b,u),or();var x=b.child;x!==null?(x.return=b,se=x):jje(s)}}function jje(s){for(;se!==null;){var u=se,b=u.sibling,x=u.return;if(sW(u),u===s){se=null;return}if(b!==null){b.return=x,se=b;return}se=x}}function Ije(s,u){switch(s.tag){case U:case oe:case de:{s.mode&En?(jg(),Ea(Eo,s,u),Mg(s)):Ea(Eo,s,u);break}}}function Rje(s){switch(s.tag){case U:case oe:case de:{try{Ho(qa|Wa,s)}catch(b){li(s,s.return,b)}break}case V:{var u=s.stateNode;try{u.componentDidMount()}catch(b){li(s,s.return,b)}break}}}function Nje(s){switch(s.tag){case U:case oe:case de:{try{Ho(Eo|Wa,s)}catch(u){li(s,s.return,u)}break}}}function Lje(s){switch(s.tag){case U:case oe:case de:{try{Ea(qa|Wa,s,s.return)}catch(b){li(s,s.return,b)}break}case V:{var u=s.stateNode;typeof u.componentWillUnmount=="function"&&Jt(s,s.return,u);break}}}function zje(s){switch(s.tag){case U:case oe:case de:try{Ea(Eo|Wa,s,s.return)}catch(u){li(s,s.return,u)}}}var iT=0,aT=1,oT=2,sT=3,lT=4;if(typeof Symbol=="function"&&Symbol.for){var r2=Symbol.for;iT=r2("selector.component"),aT=r2("selector.has_pseudo_class"),oT=r2("selector.role"),sT=r2("selector.test_id"),lT=r2("selector.text")}function Bje(s){return{$$typeof:iT,value:s}}function Fje(s){return{$$typeof:aT,value:s}}function Uje(s){return{$$typeof:oT,value:s}}function Vje(s){return{$$typeof:lT,value:s}}function Hje(s){return{$$typeof:sT,value:s}}function FD(s){var u=Kc(s);if(u!=null){if(typeof u.memoizedProps["data-testname"]!="string")throw new Error("Invalid host root specified. Should be either a React container or a node with a testname attribute.");return u}else{var b=Eh(s);if(b===null)throw new Error("Could not find React container within specified host subtree.");return b.stateNode.current}}function UD(s,u){switch(u.$$typeof){case iT:if(s.type===u.value)return!0;break;case aT:return Gje(s,u.value);case oT:if(s.tag===K){var b=s.stateNode;if(af(b,u.value))return!0}break;case lT:if(s.tag===K||s.tag===fe){var x=tr(s);if(x!==null&&x.indexOf(u.value)>=0)return!0}break;case sT:if(s.tag===K){var _=s.memoizedProps["data-testname"];if(typeof _=="string"&&_.toLowerCase()===u.value.toLowerCase())return!0}break;default:throw new Error("Invalid selector type specified.")}return!1}function VD(s){switch(s.$$typeof){case iT:var u=Bt(s.value)||"Unknown";return"<"+u+">";case aT:return":has("+(VD(s)||"")+")";case oT:return'[role="'+s.value+'"]';case lT:return'"'+s.value+'"';case sT:return'[data-testname="'+s.value+'"]';default:throw new Error("Invalid selector type specified.")}}function mW(s,u){for(var b=[],x=[s,0],_=0;_<x.length;){var I=x[_++],F=x[_++],W=u[F];if(!(I.tag===K&&Zu(I))){for(;W!=null&&UD(I,W);)F++,W=u[F];if(F===u.length)b.push(I);else for(var Q=I.child;Q!==null;)x.push(Q,F),Q=Q.sibling}}return b}function Gje(s,u){for(var b=[s,0],x=0;x<b.length;){var _=b[x++],I=b[x++],F=u[I];if(!(_.tag===K&&Zu(_))){for(;F!=null&&UD(_,F);)I++,F=u[I];if(I===u.length)return!0;for(var W=_.child;W!==null;)b.push(W,I),W=W.sibling}}return!1}function uT(s,u){if(!ho)throw new Error("Test selector API is not supported by this renderer.");for(var b=FD(s),x=mW(b,u),_=[],I=Array.from(x),F=0;F<I.length;){var W=I[F++];if(W.tag===K){if(Zu(W))continue;_.push(W.stateNode)}else for(var Q=W.child;Q!==null;)I.push(Q),Q=Q.sibling}return _}function Wje(s,u){if(!ho)throw new Error("Test selector API is not supported by this renderer.");for(var b=FD(s),x=0,_=[],I=[b,0],F=0;F<I.length;){var W=I[F++],Q=I[F++],ue=u[Q];if(!(W.tag===K&&Zu(W))&&(UD(W,ue)&&(_.push(VD(ue)),Q++,Q>x&&(x=Q)),Q<u.length))for(var me=W.child;me!==null;)I.push(me,Q),me=me.sibling}if(x<u.length){for(var ke=[],Ve=x;Ve<u.length;Ve++)ke.push(VD(u[Ve]));return`findAllNodes was able to match part of the selector:
|
||
`+(" "+_.join(" > ")+`
|
||
|
||
`)+`No matching component was found for:
|
||
`+(" "+ke.join(" > "))}return null}function qje(s,u){if(!ho)throw new Error("Test selector API is not supported by this renderer.");for(var b=uT(s,u),x=[],_=0;_<b.length;_++)x.push(Xc(b[_]));for(var I=x.length-1;I>0;I--)for(var F=x[I],W=F.x,Q=W+F.width,ue=F.y,me=ue+F.height,ke=I-1;ke>=0;ke--)if(I!==ke){var Ve=x[ke],Xe=Ve.x,ct=Xe+Ve.width,ut=Ve.y,on=ut+Ve.height;if(W>=Xe&&ue>=ut&&Q<=ct&&me<=on){x.splice(I,1);break}else if(W===Xe&&F.width===Ve.width&&!(on<ue)&&!(ut>me)){ut>ue&&(Ve.height+=ut-ue,Ve.y=ue),on<me&&(Ve.height=me-ut),x.splice(I,1);break}else if(ue===ut&&F.height===Ve.height&&!(ct<W)&&!(Xe>Q)){Xe>W&&(Ve.width+=Xe-W,Ve.x=W),ct<Q&&(Ve.width=Q-Xe),x.splice(I,1);break}}return x}function Yje(s,u){if(!ho)throw new Error("Test selector API is not supported by this renderer.");for(var b=FD(s),x=mW(b,u),_=Array.from(x),I=0;I<_.length;){var F=_[I++];if(!Zu(F)){if(F.tag===K){var W=F.stateNode;if(of(W))return!0}for(var Q=F.child;Q!==null;)_.push(Q),Q=Q.sibling}}return!1}var cT=[];function Kje(){ho&&cT.forEach(function(s){return s()})}function Xje(s,u,b,x){if(!ho)throw new Error("Test selector API is not supported by this renderer.");var _=uT(s,u),I=em(_,b,x),F=I.disconnect,W=I.observe,Q=I.unobserve,ue=function(){var me=uT(s,u);_.forEach(function(ke){me.indexOf(ke)<0&&Q(ke)}),me.forEach(function(ke){_.indexOf(ke)<0&&W(ke)})};return cT.push(ue),{disconnect:function(){var me=cT.indexOf(ue);me>=0&&cT.splice(me,1),F()}}}var Qje=a.ReactCurrentActQueue;function Zje(s){{var u=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,b=typeof jest<"u";return wh&&b&&u!==!1}}function vW(){{var s=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!s&&Qje.current!==null&&d("The current testing environment is not configured to support act(...)"),s}}var Jje=Math.ceil,HD=a.ReactCurrentDispatcher,GD=a.ReactCurrentOwner,_a=a.ReactCurrentBatchConfig,Sd=a.ReactCurrentActQueue,no=0,WD=1,us=2,Tc=4,op=0,i2=1,Hg=2,dT=3,a2=4,gW=5,qD=6,ir=no,fl=null,Ta=null,Po=nt,Ff=nt,YD=ge(nt),Ao=op,o2=null,fT=nt,s2=nt,hT=nt,l2=null,Gl=null,KD=0,yW=500,bW=1/0,$je=500,sp=null;function _b(){bW=qi()+$je}function SW(){return bW}var pT=!1,XD=null,Tb=null,Gg=!1,Vm=null,u2=nt,QD=[],ZD=null,e6e=50,c2=0,JD=null,$D=!1,mT=!1,t6e=50,kb=0,vT=null,d2=Kn,gT=nt,xW=!1;function yT(){return fl}function Rs(){return(ir&(us|Tc))!==no?qi():(d2!==Kn||(d2=qi()),d2)}function Hm(s){var u=s.mode;if((u&Vn)===mn)return dn;if((ir&us)!==no&&Po!==nt)return ad(Po);var b=ne()!==B;if(b){if(_a.transition!==null){var x=_a.transition;x._updatedFibers||(x._updatedFibers=new Set),x._updatedFibers.add(s)}return gT===oi&&(gT=Vh()),gT}var _=zo();if(_!==oi)return _;var I=tf();return I}function n6e(s){var u=s.mode;return(u&Vn)===mn?dn:BS()}function ro(s,u,b,x){O6e(),xW&&d("useInsertionEffect must not schedule updates."),$D&&(mT=!0),od(s,b,x),(ir&us)!==nt&&s===fl?j6e(u):(Bo&&ia(s,u,b),I6e(u),s===fl&&((ir&us)===no&&(s2=Xt(s2,b)),Ao===a2&&Gm(s,Po)),Wl(s,x),b===dn&&ir===no&&(u.mode&Vn)===mn&&!Sd.isBatchingLegacy&&(_b(),Ha()))}function r6e(s,u,b){var x=s.current;x.lanes=u,od(s,u,b),Wl(s,b)}function i6e(s){return(ir&us)!==no}function Wl(s,u){var b=s.callbackNode;Cy(s,u);var x=Fh(s,s===fl?Po:nt);if(x===nt){b!==null&&NW(b),s.callbackNode=null,s.callbackPriority=oi;return}var _=lc(x),I=s.callbackPriority;if(I===_&&!(Sd.current!==null&&b!==aM)){b==null&&I!==dn&&d("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}b!=null&&NW(b);var F;if(_===dn)s.tag===Vi?(Sd.isBatchingLegacy!==null&&(Sd.didScheduleLegacyUpdate=!0),_m(EW.bind(null,s))):Pf(EW.bind(null,s)),Ch?Sd.current!==null?Sd.current.push(Nr):rf(function(){(ir&(us|Tc))===no&&Nr()}):ET(So,Nr),F=null;else{var W;switch(wm(x)){case yo:W=So;break;case bo:W=ks;break;case dc:W=Va;break;case fu:W=qh;break;default:W=Va;break}F=ET(W,wW.bind(null,s))}s.callbackPriority=_,s.callbackNode=F}function wW(s,u){if(tD(),d2=Kn,gT=nt,(ir&(us|Tc))!==no)throw new Error("Should not already be working.");var b=s.callbackNode,x=Uf();if(x&&s.callbackNode!==b)return null;var _=Fh(s,s===fl?Po:nt);if(_===nt)return null;var I=!yf(s,_)&&!ky(s,_)&&!u,F=I?y6e(s,_):xT(s,_);if(F!==op){if(F===Hg){var W=Uh(s);W!==nt&&(_=W,F=eM(s,W))}if(F===i2){var Q=o2;throw Wg(s,nt),Gm(s,_),Wl(s,qi()),Q}if(F===qD)Gm(s,_);else{var ue=!yf(s,_),me=s.current.alternate;if(ue&&!o6e(me)){if(F=xT(s,_),F===Hg){var ke=Uh(s);ke!==nt&&(_=ke,F=eM(s,ke))}if(F===i2){var Ve=o2;throw Wg(s,nt),Gm(s,_),Wl(s,qi()),Ve}}s.finishedWork=me,s.finishedLanes=_,a6e(s,F,_)}}return Wl(s,qi()),s.callbackNode===b?wW.bind(null,s):null}function eM(s,u){var b=l2;if(ts(s)){var x=Wg(s,u);x.flags|=Io,df(s.containerInfo)}var _=xT(s,u);if(_!==Hg){var I=Gl;Gl=b,I!==null&&CW(I)}return _}function CW(s){Gl===null?Gl=s:Gl.push.apply(Gl,s)}function a6e(s,u,b){switch(u){case op:case i2:throw new Error("Root did not complete. This is a bug in React.");case Hg:{qg(s,Gl,sp);break}case dT:{if(Gm(s,b),ng(b)&&!LW()){var x=KD+yW-qi();if(x>10){var _=Fh(s,nt);if(_!==nt)break;var I=s.suspendedLanes;if(!bf(I,b)){Rs(),Ua(s,I);break}s.timeoutHandle=$d(qg.bind(null,s,Gl,sp),x);break}}qg(s,Gl,sp);break}case a2:{if(Gm(s,b),rg(b))break;if(!LW()){var F=sc(s,b),W=F,Q=qi()-W,ue=A6e(Q)-Q;if(ue>10){s.timeoutHandle=$d(qg.bind(null,s,Gl,sp),ue);break}}qg(s,Gl,sp);break}case gW:{qg(s,Gl,sp);break}default:throw new Error("Unknown root exit status.")}}function o6e(s){for(var u=s;;){if(u.flags&tu){var b=u.updateQueue;if(b!==null){var x=b.stores;if(x!==null)for(var _=0;_<x.length;_++){var I=x[_],F=I.getSnapshot,W=I.value;try{if(!en(F(),W))return!1}catch{return!1}}}}var Q=u.child;if(u.subtreeFlags&tu&&Q!==null){Q.return=u,u=Q;continue}if(u===s)return!0;for(;u.sibling===null;){if(u.return===null||u.return===s)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}return!0}function Gm(s,u){u=Hh(u,hT),u=Hh(u,s2),wf(s,u)}function EW(s){if(nD(),(ir&(us|Tc))!==no)throw new Error("Should not already be working.");Uf();var u=Fh(s,nt);if(!Hi(u,dn))return Wl(s,qi()),null;var b=xT(s,u);if(s.tag!==Vi&&b===Hg){var x=Uh(s);x!==nt&&(u=x,b=eM(s,x))}if(b===i2){var _=o2;throw Wg(s,nt),Gm(s,u),Wl(s,qi()),_}if(b===qD)throw new Error("Root did not complete. This is a bug in React.");var I=s.current.alternate;return s.finishedWork=I,s.finishedLanes=u,qg(s,Gl,sp),Wl(s,qi()),null}function s6e(s,u){u!==nt&&(Gh(s,Xt(u,dn)),Wl(s,qi()),(ir&(us|Tc))===no&&(_b(),Nr()))}function l6e(s){var u=zo(),b=_a.transition;try{return _a.transition=null,Gi(dc),s()}finally{Gi(u),_a.transition=b}}function u6e(s,u){var b=ir;ir|=WD;try{return s(u)}finally{ir=b,ir===no&&!Sd.isBatchingLegacy&&(_b(),Ha())}}function c6e(s,u,b,x,_){var I=zo(),F=_a.transition;try{return _a.transition=null,Gi(yo),s(u,b,x,_)}finally{Gi(I),_a.transition=F,ir===no&&_b()}}function bT(s){Vm!==null&&Vm.tag===Vi&&(ir&(us|Tc))===no&&Uf();var u=ir;ir|=WD;var b=_a.transition,x=zo();try{return _a.transition=null,Gi(yo),s?s():void 0}finally{Gi(x),_a.transition=b,ir=u,(ir&(us|Tc))===no&&Nr()}}function d6e(){return(ir&(us|Tc))!==no}function f6e(s){var u=ir;ir|=WD;var b=_a.transition,x=zo();try{_a.transition=null,Gi(yo),s()}finally{Gi(x),_a.transition=b,ir=u,ir===no&&(_b(),Nr())}}function ST(s,u){Te(YD,Ff,s),Ff=Xt(Ff,u)}function tM(s){Ff=YD.current,ze(YD,s)}function Wg(s,u){s.finishedWork=null,s.finishedLanes=nt;var b=s.timeoutHandle;if(b!==ef&&(s.timeoutHandle=ef,co(b)),Ta!==null)for(var x=Ta.return;x!==null;){var _=x.alternate;eT(_,x),x=x.return}fl=s;var I=Yg(s.current,null);return Ta=I,Po=Ff=u,Ao=op,o2=null,fT=nt,s2=nt,hT=nt,l2=null,Gl=null,QE(),Ue.discardPendingWarnings(),I}function _W(s,u){do{var b=Ta;try{if(Iy(),m_(),or(),GD.current=null,b===null||b.return===null){Ao=i2,o2=u,Ta=null;return}if(L&&b.mode&En&&mb(b,!0),R)if(Jr(),u!==null&&typeof u=="object"&&typeof u.then=="function"){var x=u;ud(b,x,Po)}else mc(b,u,Po);oD(s,b.return,b,u,Po),AW(b)}catch(_){u=_,Ta===b&&b!==null?(b=b.return,Ta=b):b=Ta;continue}return}while(!0)}function TW(){var s=HD.current;return HD.current=db,s===null?db:s}function kW(s){HD.current=s}function h6e(){KD=qi()}function f2(s){fT=Xt(s,fT)}function p6e(){Ao===op&&(Ao=dT)}function nM(){(Ao===op||Ao===dT||Ao===Hg)&&(Ao=a2),fl!==null&&(Jo(fT)||Jo(s2))&&Gm(fl,Po)}function m6e(s){Ao!==a2&&(Ao=Hg),l2===null?l2=[s]:l2.push(s)}function v6e(){return Ao===op}function xT(s,u){var b=ir;ir|=us;var x=TW();if(fl!==s||Po!==u){if(Bo){var _=s.memoizedUpdaters;_.size>0&&(h2(s,Po),_.clear()),Py(s,u)}sp=Ht(),Wg(s,u)}Yh(u);do try{g6e();break}catch(I){_W(s,I)}while(!0);if(Iy(),ir=b,kW(x),Ta!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return vu(),fl=null,Po=nt,Ao}function g6e(){for(;Ta!==null;)PW(Ta)}function y6e(s,u){var b=ir;ir|=us;var x=TW();if(fl!==s||Po!==u){if(Bo){var _=s.memoizedUpdaters;_.size>0&&(h2(s,Po),_.clear()),Py(s,u)}sp=Ht(),_b(),Wg(s,u)}Yh(u);do try{b6e();break}catch(I){_W(s,I)}while(!0);return Iy(),kW(x),ir=b,Ta!==null?(mu(),op):(vu(),fl=null,Po=nt,Ao)}function b6e(){for(;Ta!==null&&!al();)PW(Ta)}function PW(s){var u=s.alternate;Cr(s);var b;(s.mode&En)!==mn?(Mx(s),b=rM(u,s,Ff),mb(s,!0)):b=rM(u,s,Ff),or(),s.memoizedProps=s.pendingProps,b===null?AW(s):Ta=b,GD.current=null}function AW(s){var u=s;do{var b=u.alternate,x=u.return;if((u.flags&nu)===Lt){Cr(u);var _=void 0;if((u.mode&En)===mn?_=$_(b,u,Ff):(Mx(u),_=$_(b,u,Ff),mb(u,!1)),or(),_!==null){Ta=_;return}}else{var I=jD(b,u);if(I!==null){I.flags&=Wc,Ta=I;return}if((u.mode&En)!==mn){mb(u,!1);for(var F=u.actualDuration,W=u.child;W!==null;)F+=W.actualDuration,W=W.sibling;u.actualDuration=F}if(x!==null)x.flags|=nu,x.subtreeFlags=Lt,x.deletions=null;else{Ao=qD,Ta=null;return}}var Q=u.sibling;if(Q!==null){Ta=Q;return}u=x,Ta=u}while(u!==null);Ao===op&&(Ao=gW)}function qg(s,u,b){var x=zo(),_=_a.transition;try{_a.transition=null,Gi(yo),S6e(s,u,b,x)}finally{_a.transition=_,Gi(x)}return null}function S6e(s,u,b,x){do Uf();while(Vm!==null);if(D6e(),(ir&(us|Tc))!==no)throw new Error("Should not already be working.");var _=s.finishedWork,I=s.finishedLanes;if(US(I),_===null)return sd(),null;if(I===nt&&d("root.finishedLanes should not be empty during a commit. This is a bug in React."),s.finishedWork=null,s.finishedLanes=nt,_===s.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");s.callbackNode=null,s.callbackPriority=oi;var F=Xt(_.lanes,_.childLanes);FS(s,F),s===fl&&(fl=null,Ta=null,Po=nt),((_.subtreeFlags&Mr)!==Lt||(_.flags&Mr)!==Lt)&&(Gg||(Gg=!0,ZD=b,ET(Va,function(){return Uf(),null})));var W=(_.subtreeFlags&(Nn|Ei|Dr|Mr))!==Lt,Q=(_.flags&(Nn|Ei|Dr|Mr))!==Lt;if(W||Q){var ue=_a.transition;_a.transition=null;var me=zo();Gi(yo);var ke=ir;ir|=Tc,GD.current=null,cl(s,_),R_(),Sje(s,_,I),Qs(s.containerInfo),s.current=_,lg(I),xje(_,s,I),Tf(),ba(),ir=ke,Gi(me),_a.transition=ue}else s.current=_,R_();var Ve=Gg;if(Gg?(Gg=!1,Vm=s,u2=I):(kb=0,vT=null),F=s.pendingLanes,F===nt&&(Tb=null),Ve||jW(s.current,!1),pu(_.stateNode,x),Bo&&s.memoizedUpdaters.clear(),Kje(),Wl(s,qi()),u!==null)for(var Xe=s.onRecoverableError,ct=0;ct<u.length;ct++){var ut=u[ct],on=ut.stack,Tn=ut.digest;Xe(ut.value,{componentStack:on,digest:Tn})}if(pT){pT=!1;var vn=XD;throw XD=null,vn}return Hi(u2,dn)&&s.tag!==Vi&&Uf(),F=s.pendingLanes,Hi(F,dn)?(eD(),s===JD?c2++:(c2=0,JD=s)):c2=0,Nr(),sd(),null}function Uf(){if(Vm!==null){var s=wm(u2),u=hu(dc,s),b=_a.transition,x=zo();try{return _a.transition=null,Gi(u),w6e()}finally{Gi(x),_a.transition=b}}return!1}function x6e(s){QD.push(s),Gg||(Gg=!0,ET(Va,function(){return Uf(),null}))}function w6e(){if(Vm===null)return!1;var s=ZD;ZD=null;var u=Vm,b=u2;if(Vm=null,u2=nt,(ir&(us|Tc))!==no)throw new Error("Cannot flush passive effects while already rendering.");$D=!0,mT=!1,xo(b);var x=ir;ir|=Tc,Pje(u.current),Eje(u,u.current,b,s);{var _=QD;QD=[];for(var I=0;I<_.length;I++){var F=_[I];rT(u,F)}}ug(),jW(u.current,!0),ir=x,Nr(),mT?u===vT?kb++:(kb=0,vT=u):kb=0,$D=!1,mT=!1,Em(u);{var W=u.current.stateNode;W.effectDuration=0,W.passiveEffectDuration=0}return!0}function OW(s){return Tb!==null&&Tb.has(s)}function C6e(s){Tb===null?Tb=new Set([s]):Tb.add(s)}function E6e(s){pT||(pT=!0,XD=s)}var _6e=E6e;function DW(s,u,b){var x=ap(b,u),_=L_(s,x,dn),I=If(s,_,dn),F=Rs();I!==null&&(od(I,dn,F),Wl(I,F))}function li(s,u,b){if(Je(b),p2(!1),s.tag===J){DW(s,s,b);return}var x=null;for(x=u;x!==null;){if(x.tag===J){DW(x,s,b);return}else if(x.tag===V){var _=x.type,I=x.stateNode;if(typeof _.getDerivedStateFromError=="function"||typeof I.componentDidCatch=="function"&&!OW(I)){var F=ap(b,s),W=Rx(x,F,dn),Q=If(x,W,dn),ue=Rs();Q!==null&&(od(Q,dn,ue),Wl(Q,ue));return}}x=x.return}d(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
||
|
||
Error message:
|
||
|
||
%s`,b)}function T6e(s,u,b){var x=s.pingCache;x!==null&&x.delete(u);var _=Rs();Ua(s,b),R6e(s),fl===s&&bf(Po,b)&&(Ao===a2||Ao===dT&&ng(Po)&&qi()-KD<yW?Wg(s,nt):hT=Xt(hT,b)),Wl(s,_)}function MW(s,u){u===oi&&(u=n6e(s));var b=Rs(),x=Uo(s,u);x!==null&&(od(x,u,b),Wl(x,b))}function k6e(s){var u=s.memoizedState,b=oi;u!==null&&(b=u.retryLane),MW(s,b)}function P6e(s,u){var b=oi,x;switch(s.tag){case le:x=s.stateNode;var _=s.memoizedState;_!==null&&(b=_.retryLane);break;case Ie:x=s.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}x!==null&&x.delete(u),MW(s,b)}function A6e(s){return s<120?120:s<480?480:s<1080?1080:s<1920?1920:s<3e3?3e3:s<4320?4320:Jje(s/1960)*1960}function O6e(){if(c2>e6e)throw c2=0,JD=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");kb>t6e&&(kb=0,vT=null,d("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function D6e(){Ue.flushLegacyContextWarning(),Ue.flushPendingUnsafeLifecycleWarnings()}function jW(s,u){Cr(s),wT(s,Pn,Lje),u&&wT(s,zn,zje),wT(s,Pn,Rje),u&&wT(s,zn,Nje),or()}function wT(s,u,b){for(var x=s,_=null;x!==null;){var I=x.subtreeFlags&u;x!==_&&x.child!==null&&I!==Lt?x=x.child:((x.flags&u)!==Lt&&b(x),x.sibling!==null?x=x.sibling:x=_=x.return)}}var CT=null;function IW(s){{if((ir&us)!==no||!(s.mode&Vn))return;var u=s.tag;if(u!==Y&&u!==J&&u!==V&&u!==U&&u!==oe&&u!==ee&&u!==de)return;var b=Mt(s)||"ReactComponent";if(CT!==null){if(CT.has(b))return;CT.add(b)}else CT=new Set([b]);var x=un;try{Cr(s),d("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{x?Cr(s):or()}}}var rM;{var M6e=null;rM=function(s,u,b){var x=VW(M6e,u);try{return xb(s,u,b)}catch(I){if(wo()||I!==null&&typeof I=="object"&&typeof I.then=="function")throw I;if(Iy(),m_(),eT(s,u),VW(u,x),u.mode&En&&Mx(u),f(null,xb,null,s,u,b),y()){var _=T();typeof _=="object"&&_!==null&&_._suppressLogging&&typeof I=="object"&&I!==null&&!I._suppressLogging&&(I._suppressLogging=!0)}throw I}}}var RW=!1,iM;iM=new Set;function j6e(s){if(Dt&&!Ag())switch(s.tag){case U:case oe:case de:{var u=Ta&&Mt(Ta)||"Unknown",b=u;if(!iM.has(b)){iM.add(b);var x=Mt(s)||"Unknown";d("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",x,u,u)}break}case V:{RW||(d("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),RW=!0);break}}}function h2(s,u){if(Bo){var b=s.memoizedUpdaters;b.forEach(function(x){ia(s,x,u)})}}var aM={};function ET(s,u){{var b=Sd.current;return b!==null?(b.push(u),aM):Wi(s,u)}}function NW(s){if(s!==aM)return il(s)}function LW(){return Sd.current!==null}function I6e(s){{if(s.mode&Vn){if(!vW())return}else if(!Zje()||ir!==no||s.tag!==U&&s.tag!==oe&&s.tag!==de)return;if(Sd.current===null){var u=un;try{Cr(s),d(`An update to %s inside a test was not wrapped in act(...).
|
||
|
||
When testing, code that causes React state updates should be wrapped into act(...):
|
||
|
||
act(() => {
|
||
/* fire events that update state */
|
||
});
|
||
/* assert on the output */
|
||
|
||
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Mt(s))}finally{u?Cr(s):or()}}}}function R6e(s){s.tag!==Vi&&vW()&&Sd.current===null&&d(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
||
|
||
When testing, code that resolves suspended data should be wrapped into act(...):
|
||
|
||
act(() => {
|
||
/* finish loading suspended data */
|
||
});
|
||
/* assert on the output */
|
||
|
||
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function p2(s){xW=s}var kc=null,Pb=null,N6e=function(s){kc=s};function Ab(s){{if(kc===null)return s;var u=kc(s);return u===void 0?s:u.current}}function oM(s){return Ab(s)}function sM(s){{if(kc===null)return s;var u=kc(s);if(u===void 0){if(s!=null&&typeof s.render=="function"){var b=Ab(s.render);if(s.render!==b){var x={$$typeof:In,render:b};return s.displayName!==void 0&&(x.displayName=s.displayName),x}}return s}return u.current}}function zW(s,u){{if(kc===null)return!1;var b=s.elementType,x=u.type,_=!1,I=typeof x=="object"&&x!==null?x.$$typeof:null;switch(s.tag){case V:{typeof x=="function"&&(_=!0);break}case U:{(typeof x=="function"||I===ot)&&(_=!0);break}case oe:{(I===In||I===ot)&&(_=!0);break}case ee:case de:{(I===at||I===ot)&&(_=!0);break}default:return!1}if(_){var F=kc(b);if(F!==void 0&&F===kc(x))return!0}return!1}}function BW(s){{if(kc===null||typeof WeakSet!="function")return;Pb===null&&(Pb=new WeakSet),Pb.add(s)}}var L6e=function(s,u){{if(kc===null)return;var b=u.staleFamilies,x=u.updatedFamilies;Uf(),bT(function(){lM(s.current,x,b)})}},z6e=function(s,u){{if(s.context!==tn)return;Uf(),bT(function(){WW(u,s,null,null)})}};function lM(s,u,b){{var x=s.alternate,_=s.child,I=s.sibling,F=s.tag,W=s.type,Q=null;switch(F){case U:case de:case V:Q=W;break;case oe:Q=W.render;break}if(kc===null)throw new Error("Expected resolveFamily to be set during hot reload.");var ue=!1,me=!1;if(Q!==null){var ke=kc(Q);ke!==void 0&&(b.has(ke)?me=!0:u.has(ke)&&(F===V?me=!0:ue=!0))}if(Pb!==null&&(Pb.has(s)||x!==null&&Pb.has(x))&&(me=!0),me&&(s._debugNeedsRemount=!0),me||ue){var Ve=Uo(s,dn);Ve!==null&&ro(Ve,s,dn,Kn)}_!==null&&!me&&lM(_,u,b),I!==null&&lM(I,u,b)}}var B6e=function(s,u){{var b=new Set,x=new Set(u.map(function(_){return _.current}));return uM(s.current,x,b),b}};function uM(s,u,b){{var x=s.child,_=s.sibling,I=s.tag,F=s.type,W=null;switch(I){case U:case de:case V:W=F;break;case oe:W=F.render;break}var Q=!1;W!==null&&u.has(W)&&(Q=!0),Q?F6e(s,b):x!==null&&uM(x,u,b),_!==null&&uM(_,u,b)}}function F6e(s,u){{var b=U6e(s,u);if(b)return;for(var x=s;;){switch(x.tag){case K:u.add(x.stateNode);return;case $:u.add(x.stateNode.containerInfo);return;case J:u.add(x.stateNode.containerInfo);return}if(x.return===null)throw new Error("Expected to reach root first.");x=x.return}}}function U6e(s,u){for(var b=s,x=!1;;){if(b.tag===K)x=!0,u.add(b.stateNode);else if(b.child!==null){b.child.return=b,b=b.child;continue}if(b===s)return x;for(;b.sibling===null;){if(b.return===null||b.return===s)return x;b=b.return}b.sibling.return=b.return,b=b.sibling}return!1}var cM;{cM=!1;try{var FW=Object.preventExtensions({})}catch{cM=!0}}function V6e(s,u,b,x){this.tag=s,this.key=b,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=u,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=x,this.flags=Lt,this.subtreeFlags=Lt,this.deletions=null,this.lanes=nt,this.childLanes=nt,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!cM&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var ku=function(s,u,b,x){return new V6e(s,u,b,x)};function dM(s){var u=s.prototype;return!!(u&&u.isReactComponent)}function H6e(s){return typeof s=="function"&&!dM(s)&&s.defaultProps===void 0}function G6e(s){if(typeof s=="function")return dM(s)?V:U;if(s!=null){var u=s.$$typeof;if(u===In)return oe;if(u===at)return ee}return Y}function Yg(s,u){var b=s.alternate;b===null?(b=ku(s.tag,u,s.key,s.mode),b.elementType=s.elementType,b.type=s.type,b.stateNode=s.stateNode,b._debugSource=s._debugSource,b._debugOwner=s._debugOwner,b._debugHookTypes=s._debugHookTypes,b.alternate=s,s.alternate=b):(b.pendingProps=u,b.type=s.type,b.flags=Lt,b.subtreeFlags=Lt,b.deletions=null,b.actualDuration=0,b.actualStartTime=-1),b.flags=s.flags&fi,b.childLanes=s.childLanes,b.lanes=s.lanes,b.child=s.child,b.memoizedProps=s.memoizedProps,b.memoizedState=s.memoizedState,b.updateQueue=s.updateQueue;var x=s.dependencies;switch(b.dependencies=x===null?null:{lanes:x.lanes,firstContext:x.firstContext},b.sibling=s.sibling,b.index=s.index,b.ref=s.ref,b.selfBaseDuration=s.selfBaseDuration,b.treeBaseDuration=s.treeBaseDuration,b._debugNeedsRemount=s._debugNeedsRemount,b.tag){case Y:case U:case de:b.type=Ab(s.type);break;case V:b.type=oM(s.type);break;case oe:b.type=sM(s.type);break}return b}function W6e(s,u){s.flags&=fi|gr;var b=s.alternate;if(b===null)s.childLanes=nt,s.lanes=u,s.child=null,s.subtreeFlags=Lt,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null,s.selfBaseDuration=0,s.treeBaseDuration=0;else{s.childLanes=b.childLanes,s.lanes=b.lanes,s.child=b.child,s.subtreeFlags=Lt,s.deletions=null,s.memoizedProps=b.memoizedProps,s.memoizedState=b.memoizedState,s.updateQueue=b.updateQueue,s.type=b.type;var x=b.dependencies;s.dependencies=x===null?null:{lanes:x.lanes,firstContext:x.firstContext},s.selfBaseDuration=b.selfBaseDuration,s.treeBaseDuration=b.treeBaseDuration}return s}function q6e(s,u,b){var x;return s===hm?(x=Vn,u===!0&&(x|=cr,x|=go)):x=mn,Bo&&(x|=En),ku(J,null,null,x)}function fM(s,u,b,x,_,I){var F=Y,W=s;if(typeof s=="function")dM(s)?(F=V,W=oM(W)):W=Ab(W);else if(typeof s=="string")F=K;else{e:switch(s){case Nt:return Wm(b.children,_,I,u);case Ae:F=G,_|=cr,(_&Vn)!==mn&&(_|=go);break;case xt:return Y6e(b,_,I,u);case ar:return K6e(b,_,I,u);case we:return X6e(b,_,I,u);case st:return UW(b,_,I,u);case Zt:case yt:case nn:case Ze:case He:default:{if(typeof s=="object"&&s!==null)switch(s.$$typeof){case ln:F=re;break e;case Wt:F=te;break e;case In:F=oe,W=sM(W);break e;case at:F=ee;break e;case ot:F=Fe,W=null;break e}var Q="";{(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ue=x?Mt(x):null;ue&&(Q+=`
|
||
|
||
Check the render method of \``+ue+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(s==null?s:typeof s)+"."+Q))}}}var me=ku(F,b,u,_);return me.elementType=s,me.type=W,me.lanes=I,me._debugOwner=x,me}function hM(s,u,b){var x=null;x=s._owner;var _=s.type,I=s.key,F=s.props,W=fM(_,I,F,x,u,b);return W._debugSource=s._source,W._debugOwner=s._owner,W}function Wm(s,u,b,x){var _=ku(X,s,x,u);return _.lanes=b,_}function Y6e(s,u,b,x){typeof s.id!="string"&&d('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof s.id);var _=ku(ie,s,x,u|En);return _.elementType=xt,_.lanes=b,_.stateNode={effectDuration:0,passiveEffectDuration:0},_}function K6e(s,u,b,x){var _=ku(le,s,x,u);return _.elementType=ar,_.lanes=b,_}function X6e(s,u,b,x){var _=ku(Ie,s,x,u);return _.elementType=we,_.lanes=b,_}function UW(s,u,b,x){var _=ku($e,s,x,u);_.elementType=st,_.lanes=b;var I={isHidden:!1};return _.stateNode=I,_}function pM(s,u,b){var x=ku(fe,s,null,u);return x.lanes=b,x}function Q6e(){var s=ku(K,null,null,mn);return s.elementType="DELETED",s}function Z6e(s){var u=ku(Oe,null,null,mn);return u.stateNode=s,u}function mM(s,u,b){var x=s.children!==null?s.children:[],_=ku($,x,s.key,u);return _.lanes=b,_.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},_}function VW(s,u){return s===null&&(s=ku(Y,null,null,mn)),s.tag=u.tag,s.key=u.key,s.elementType=u.elementType,s.type=u.type,s.stateNode=u.stateNode,s.return=u.return,s.child=u.child,s.sibling=u.sibling,s.index=u.index,s.ref=u.ref,s.pendingProps=u.pendingProps,s.memoizedProps=u.memoizedProps,s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.dependencies=u.dependencies,s.mode=u.mode,s.flags=u.flags,s.subtreeFlags=u.subtreeFlags,s.deletions=u.deletions,s.lanes=u.lanes,s.childLanes=u.childLanes,s.alternate=u.alternate,s.actualDuration=u.actualDuration,s.actualStartTime=u.actualStartTime,s.selfBaseDuration=u.selfBaseDuration,s.treeBaseDuration=u.treeBaseDuration,s._debugSource=u._debugSource,s._debugOwner=u._debugOwner,s._debugNeedsRemount=u._debugNeedsRemount,s._debugHookTypes=u._debugHookTypes,s}function J6e(s,u,b,x,_){this.tag=u,this.containerInfo=s,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=ef,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=oi,this.eventTimes=xf(nt),this.expirationTimes=xf(Kn),this.pendingLanes=nt,this.suspendedLanes=nt,this.pingedLanes=nt,this.expiredLanes=nt,this.mutableReadLanes=nt,this.finishedLanes=nt,this.entangledLanes=nt,this.entanglements=xf(nt),this.identifierPrefix=x,this.onRecoverableError=_,ma&&(this.mutableSourceEagerHydrationData=null),this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var I=this.pendingUpdatersLaneMap=[],F=0;F<Ih;F++)I.push(new Set)}switch(u){case hm:this._debugRootType=b?"hydrateRoot()":"createRoot()";break;case Vi:this._debugRootType=b?"hydrate()":"render()";break}}function HW(s,u,b,x,_,I,F,W,Q,ue){var me=new J6e(s,u,b,W,Q),ke=q6e(u,I);me.current=ke,ke.stateNode=me;{var Ve={element:x,isDehydrated:b,cache:null,transitions:null,pendingSuspenseBoundaries:null};ke.memoizedState=Ve}return XS(ke),me}var $6e="18.2.0";function eIe(s,u,b){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return NO(x),{$$typeof:Ce,key:x==null?null:""+x,children:s,containerInfo:u,implementation:b}}var vM,gM;vM=!1,gM={};function GW(s){if(!s)return tn;var u=S(s),b=fm(u);if(u.tag===V){var x=u.type;if(eo(x))return hr(u,x,b)}return b}function tIe(s){var u=S(s);if(u===void 0){if(typeof s.render=="function")throw new Error("Unable to find node on an unmounted component.");var b=Object.keys(s).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+b)}var x=au(u);return x===null?null:x.stateNode}function nIe(s,u){{var b=S(s);if(b===void 0){if(typeof s.render=="function")throw new Error("Unable to find node on an unmounted component.");var x=Object.keys(s).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+x)}var _=au(b);if(_===null)return null;if(_.mode&cr){var I=Mt(b)||"Component";if(!gM[I]){gM[I]=!0;var F=un;try{Cr(_),b.mode&cr?d("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",u,u,I):d("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",u,u,I)}finally{F?Cr(F):or()}}}return _.stateNode}}function rIe(s,u,b,x,_,I,F,W){var Q=!1,ue=null;return HW(s,u,Q,ue,b,x,_,I,F)}function iIe(s,u,b,x,_,I,F,W,Q,ue){var me=!0,ke=HW(b,x,me,s,_,I,F,W,Q);ke.context=GW(null);var Ve=ke.current,Xe=Rs(),ct=Hm(Ve),ut=pd(Xe,ct);return ut.callback=u??null,If(Ve,ut,ct),r6e(ke,ct,Xe),ke}function WW(s,u,b,x){Cm(u,s);var _=u.current,I=Rs(),F=Hm(_);Kh(F);var W=GW(b);u.context===null?u.context=W:u.pendingContext=W,Dt&&un!==null&&!vM&&(vM=!0,d(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
||
|
||
Check the render method of %s.`,Mt(un)||"Unknown"));var Q=pd(I,F);Q.payload={element:s},x=x===void 0?null:x,x!==null&&(typeof x!="function"&&d("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",x),Q.callback=x);var ue=If(_,Q,F);return ue!==null&&(ro(ue,_,F,I),Fy(ue,_,F)),F}function aIe(s){var u=s.current;if(!u.child)return null;switch(u.child.tag){case K:return _r(u.child.stateNode);default:return u.child.stateNode}}function oIe(s){switch(s.tag){case J:{var u=s.stateNode;if(ts(u)){var b=Ey(u);s6e(u,b)}break}case le:{bT(function(){var _=Uo(s,dn);if(_!==null){var I=Rs();ro(_,s,dn,I)}});var x=dn;_T(s,x);break}}}function qW(s,u){var b=s.memoizedState;b!==null&&b.dehydrated!==null&&(b.retryLane=xm(b.retryLane,u))}function _T(s,u){qW(s,u);var b=s.alternate;b&&qW(b,u)}function sIe(s){if(s.tag===le){var u=dn,b=Uo(s,u);if(b!==null){var x=Rs();ro(b,s,u,x)}_T(s,u)}}function lIe(s){if(s.tag===le){var u=Ml,b=Uo(s,u);if(b!==null){var x=Rs();ro(b,s,u,x)}_T(s,u)}}function uIe(s){if(s.tag===le){var u=Hm(s),b=Uo(s,u);if(b!==null){var x=Rs();ro(b,s,u,x)}_T(s,u)}}function cIe(s){var u=Zd(s);return u===null?null:u.stateNode}var YW=function(s){return null};function KW(s){return YW(s)}var XW=function(s){return!1};function QW(s){return XW(s)}var ZW=null,JW=null,$W=null,eq=null,tq=null,nq=null,rq=null,iq=null,aq=null;{var oq=function(s,u,b){var x=u[b],_=Hn(s)?s.slice():g({},s);return b+1===u.length?(Hn(_)?_.splice(x,1):delete _[x],_):(_[x]=oq(s[x],u,b+1),_)},sq=function(s,u){return oq(s,u,0)},lq=function(s,u,b,x){var _=u[x],I=Hn(s)?s.slice():g({},s);if(x+1===u.length){var F=b[x];I[F]=I[_],Hn(I)?I.splice(_,1):delete I[_]}else I[_]=lq(s[_],u,b,x+1);return I},uq=function(s,u,b){if(u.length!==b.length){c("copyWithRename() expects paths of the same length");return}else for(var x=0;x<b.length-1;x++)if(u[x]!==b[x]){c("copyWithRename() expects paths to be the same except for the deepest key");return}return lq(s,u,b,0)},cq=function(s,u,b,x){if(b>=u.length)return x;var _=u[b],I=Hn(s)?s.slice():g({},s);return I[_]=cq(s[_],u,b+1,x),I},dq=function(s,u,b){return cq(s,u,0,b)},yM=function(s,u){for(var b=s.memoizedState;b!==null&&u>0;)b=b.next,u--;return b};ZW=function(s,u,b,x){var _=yM(s,u);if(_!==null){var I=dq(_.memoizedState,b,x);_.memoizedState=I,_.baseState=I,s.memoizedProps=g({},s.memoizedProps);var F=Uo(s,dn);F!==null&&ro(F,s,dn,Kn)}},JW=function(s,u,b){var x=yM(s,u);if(x!==null){var _=sq(x.memoizedState,b);x.memoizedState=_,x.baseState=_,s.memoizedProps=g({},s.memoizedProps);var I=Uo(s,dn);I!==null&&ro(I,s,dn,Kn)}},$W=function(s,u,b,x){var _=yM(s,u);if(_!==null){var I=uq(_.memoizedState,b,x);_.memoizedState=I,_.baseState=I,s.memoizedProps=g({},s.memoizedProps);var F=Uo(s,dn);F!==null&&ro(F,s,dn,Kn)}},eq=function(s,u,b){s.pendingProps=dq(s.memoizedProps,u,b),s.alternate&&(s.alternate.pendingProps=s.pendingProps);var x=Uo(s,dn);x!==null&&ro(x,s,dn,Kn)},tq=function(s,u){s.pendingProps=sq(s.memoizedProps,u),s.alternate&&(s.alternate.pendingProps=s.pendingProps);var b=Uo(s,dn);b!==null&&ro(b,s,dn,Kn)},nq=function(s,u,b){s.pendingProps=uq(s.memoizedProps,u,b),s.alternate&&(s.alternate.pendingProps=s.pendingProps);var x=Uo(s,dn);x!==null&&ro(x,s,dn,Kn)},rq=function(s){var u=Uo(s,dn);u!==null&&ro(u,s,dn,Kn)},iq=function(s){YW=s},aq=function(s){XW=s}}function dIe(s){var u=au(s);return u===null?null:u.stateNode}function fIe(s){return null}function hIe(){return un}function pIe(s){var u=s.findFiberByHostInstance,b=a.ReactCurrentDispatcher;return Ef({bundleType:s.bundleType,version:s.version,rendererPackageName:s.rendererPackageName,rendererConfig:s.rendererConfig,overrideHookState:ZW,overrideHookStateDeletePath:JW,overrideHookStateRenamePath:$W,overrideProps:eq,overridePropsDeletePath:tq,overridePropsRenamePath:nq,setErrorHandler:iq,setSuspenseHandler:aq,scheduleUpdate:rq,currentDispatcherRef:b,findHostInstanceByFiber:dIe,findFiberByHostInstance:u||fIe,findHostInstancesForRefresh:B6e,scheduleRefresh:L6e,scheduleRoot:z6e,setRefreshHandler:N6e,getCurrentFiber:hIe,reconcilerVersion:$6e})}return n.attemptContinuousHydration=lIe,n.attemptDiscreteHydration=sIe,n.attemptHydrationAtCurrentPriority=uIe,n.attemptSynchronousHydration=oIe,n.batchedUpdates=u6e,n.createComponentSelector=Bje,n.createContainer=rIe,n.createHasPseudoClassSelector=Fje,n.createHydrationContainer=iIe,n.createPortal=eIe,n.createRoleSelector=Uje,n.createTestNameSelector=Hje,n.createTextSelector=Vje,n.deferredUpdates=l6e,n.discreteUpdates=c6e,n.findAllNodes=uT,n.findBoundingRects=qje,n.findHostInstance=tIe,n.findHostInstanceWithNoPortals=cIe,n.findHostInstanceWithWarning=nIe,n.flushControlled=f6e,n.flushPassiveEffects=Uf,n.flushSync=bT,n.focusWithin=Yje,n.getCurrentUpdatePriority=zo,n.getFindAllNodesFailureDescription=Wje,n.getPublicRootInstance=aIe,n.injectIntoDevTools=pIe,n.isAlreadyRendering=d6e,n.observeVisibleRects=Xje,n.registerMutableSourceForHydration=QO,n.runWithPriority=ig,n.shouldError=KW,n.shouldSuspend=QW,n.updateContainer=WW,n})),IE}(function(e){process.env.NODE_ENV==="production"?e.exports=hPe():e.exports=mPe()})(uPe);const vPe=mq(hO);var RE={},gPe={get exports(){return RE},set exports(e){RE=e}},Kp={};/**
|
||
* @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.
|
||
*/var $H;function yPe(){return $H||($H=1,Kp.ConcurrentRoot=1,Kp.ContinuousEventPriority=4,Kp.DefaultEventPriority=16,Kp.DiscreteEventPriority=1,Kp.IdleEventPriority=536870912,Kp.LegacyRoot=0),Kp}var Xp={};/**
|
||
* @license React
|
||
* react-reconciler-constants.development.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 eG;function bPe(){return eG||(eG=1,process.env.NODE_ENV!=="production"&&function(){var e=1,t=4,n=16,r=536870912,i=e,a=t,o=n,l=r,c=0,d=1;Xp.ConcurrentRoot=d,Xp.ContinuousEventPriority=a,Xp.DefaultEventPriority=o,Xp.DiscreteEventPriority=i,Xp.IdleEventPriority=l,Xp.LegacyRoot=c}()),Xp}(function(e){process.env.NODE_ENV==="production"?e.exports=yPe():e.exports=bPe()})(gPe);const tG={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let nG=!1,rG=!1;const gO=".react-konva-event",SPe=`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
|
||
`,xPe=`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
|
||
`,wPe={};function NE(e,t,n=wPe){if(!nG&&"zIndex"in t&&(console.warn(xPe),nG=!0),!rG&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(SPe),rG=!0)}for(var a in n)if(!tG[a]){var o=a.slice(0,2)==="on",l=n[a]!==t[a];if(o&&l){var c=a.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),e.off(c,n[a])}var d=!t.hasOwnProperty(a);d&&e.setAttr(a,void 0)}var p=t._useStrictMode,g={},S=!1;const w={};for(var a in t)if(!tG[a]){var o=a.slice(0,2)==="on",C=n[a]!==t[a];if(o&&C){var c=a.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),t[a]&&(w[c]=t[a])}!o&&(t[a]!==n[a]||p&&t[a]!==e.getAttr(a))&&(S=!0,g[a]=t[a])}S&&(e.setAttrs(g),Qp(e));for(var c in w)e.on(c+gO,w[c])}function Qp(e){if(!Kt.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const iG={},CPe={};iv.Node.prototype._applyProps=NE;function EPe(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),Qp(e)}function _Pe(e,t,n){let r=iv[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=iv.Group);const i={},a={};for(var o in t){var l=o.slice(0,2)==="on";l?a[o]=t[o]:i[o]=t[o]}const c=new r(i);return NE(c,a),c}function TPe(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function kPe(e,t,n){return!1}function PPe(e){return e}function APe(){return null}function OPe(){return null}function DPe(e,t,n,r){return CPe}function MPe(){}function jPe(e){}function IPe(e,t){return!1}function RPe(){return iG}function NPe(){return iG}const LPe=setTimeout,zPe=clearTimeout,BPe=-1;function FPe(e,t){return!1}const UPe=!1,VPe=!0,HPe=!0;function GPe(e,t){t.parent===e?t.moveToTop():e.add(t),Qp(e)}function WPe(e,t){t.parent===e?t.moveToTop():e.add(t),Qp(e)}function aG(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Qp(e)}function qPe(e,t,n){aG(e,t,n)}function YPe(e,t){t.destroy(),t.off(gO),Qp(e)}function KPe(e,t){t.destroy(),t.off(gO),Qp(e)}function XPe(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function QPe(e,t,n){}function ZPe(e,t,n,r,i){NE(e,i,r)}function JPe(e){e.hide(),Qp(e)}function $Pe(e){}function e5e(e,t){(t.visible==null||t.visible)&&e.show()}function t5e(e,t){}function n5e(e){}function r5e(){}const i5e=Object.freeze(Object.defineProperty({__proto__:null,appendChild:GPe,appendChildToContainer:WPe,appendInitialChild:EPe,cancelTimeout:zPe,clearContainer:n5e,commitMount:QPe,commitTextUpdate:XPe,commitUpdate:ZPe,createInstance:_Pe,createTextInstance:TPe,detachDeletedInstance:r5e,finalizeInitialChildren:kPe,getChildHostContext:NPe,getCurrentEventPriority:()=>RE.DefaultEventPriority,getPublicInstance:PPe,getRootHostContext:RPe,hideInstance:JPe,hideTextInstance:$Pe,idlePriority:Vv.unstable_IdlePriority,insertBefore:aG,insertInContainerBefore:qPe,isPrimaryRenderer:UPe,noTimeout:BPe,now:Vv.unstable_now,prepareForCommit:APe,preparePortalMount:OPe,prepareUpdate:DPe,removeChild:YPe,removeChildFromContainer:KPe,resetAfterCommit:MPe,resetTextContent:jPe,run:Vv.unstable_runWithPriority,scheduleTimeout:LPe,shouldDeprioritizeSubtree:IPe,shouldSetTextContent:FPe,supportsMutation:HPe,unhideInstance:e5e,unhideTextInstance:t5e,warnsIfNotActing:VPe},Symbol.toStringTag,{value:"Module"}));var a5e=Object.defineProperty,o5e=Object.defineProperties,s5e=Object.getOwnPropertyDescriptors,oG=Object.getOwnPropertySymbols,l5e=Object.prototype.hasOwnProperty,u5e=Object.prototype.propertyIsEnumerable,sG=(e,t,n)=>t in e?a5e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lG=(e,t)=>{for(var n in t||(t={}))l5e.call(t,n)&&sG(e,n,t[n]);if(oG)for(var n of oG(t))u5e.call(t,n)&&sG(e,n,t[n]);return e},c5e=(e,t)=>o5e(e,s5e(t));function uG(e,t,n){if(!e)return;if(n(e)===!0)return e;let r=t?e.return:e.child;for(;r;){const i=uG(r,t,n);if(i)return i;r=t?null:r.sibling}}function cG(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}const yO=cG(vt.createContext(null));class dG extends vt.Component{render(){return vt.createElement(yO.Provider,{value:this._reactInternals},this.props.children)}}const{ReactCurrentOwner:d5e,ReactCurrentDispatcher:f5e}=vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h5e(){const e=vt.useContext(yO);if(!e)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const t=vt.useId();return vt.useMemo(()=>{var r;return(r=d5e.current)!=null?r:uG(e,!1,i=>{let a=i.memoizedState;for(;a;){if(a.memoizedState===t)return!0;a=a.next}})},[e,t])}function p5e(){var e,t;const n=h5e(),[r]=vt.useState(()=>new Map);r.clear();let i=n;for(;i;){const a=(e=i.type)==null?void 0:e._context;a&&a!==yO&&!r.has(a)&&r.set(a,(t=f5e.current)==null?void 0:t.readContext(cG(a))),i=i.return}return vt.useMemo(()=>Array.from(r.keys()).reduce((a,o)=>l=>vt.createElement(a,null,vt.createElement(o.Provider,c5e(lG({},l),{value:r.get(o)}))),a=>vt.createElement(dG,lG({},a))),[r])}function m5e(e){const t=A.useRef();return A.useLayoutEffect(()=>{t.current=e}),t.current}const v5e=e=>{const t=A.useRef(),n=A.useRef(),r=A.useRef(),i=m5e(e),a=p5e(),o=l=>{const{forwardedRef:c}=e;c&&(typeof c=="function"?c(l):c.current=l)};return A.useLayoutEffect(()=>(n.current=new iv.Stage({width:e.width,height:e.height,container:t.current}),o(n.current),r.current=IS.createContainer(n.current,RE.LegacyRoot,!1,null),IS.updateContainer(A.createElement(a,{},e.children),r.current),()=>{iv.isBrowser&&(o(null),IS.updateContainer(null,r.current,null),n.current.destroy())}),[]),A.useLayoutEffect(()=>{o(n.current),NE(n.current,e,i),IS.updateContainer(A.createElement(a,{},e.children),r.current,null)}),A.createElement("div",{ref:t,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},jS="Layer",bh="Group",Sh="Rect",Hv="Circle",LE="Line",fG="Image",g5e="Transformer",IS=vPe(i5e);IS.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:process.env.NODE_ENV!=="production"?1:0,version:A.version,rendererPackageName:"react-konva"});const y5e=A.forwardRef((e,t)=>A.createElement(dG,{},A.createElement(v5e,{...e,forwardedRef:t}))),b5e=Ut([xr,da],(e,t)=>{const{tool:n,isMovingBoundingBox:r}=e;return{tool:n,isStaging:t,isMovingBoundingBox:r}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),S5e=()=>{const e=et(),{tool:t,isStaging:n,isMovingBoundingBox:r}=be(b5e);return{handleDragStart:A.useCallback(()=>{(t==="move"||n)&&!r&&e(M2(!0))},[e,r,n,t]),handleDragMove:A.useCallback(i=>{if(!((t==="move"||n)&&!r))return;const a={x:i.target.x(),y:i.target.y()};e(n6(a))},[e,r,n,t]),handleDragEnd:A.useCallback(()=>{(t==="move"||n)&&!r&&e(M2(!1))},[e,r,n,t])}},x5e=Ut([xr,ki,da],(e,t,n)=>{const{cursorPosition:r,shouldLockBoundingBox:i,shouldShowBoundingBox:a,tool:o,isMaskEnabled:l,shouldSnapToGrid:c}=e;return{activeTabName:t,isCursorOnCanvas:Boolean(r),shouldLockBoundingBox:i,shouldShowBoundingBox:a,tool:o,isStaging:n,isMaskEnabled:l,shouldSnapToGrid:c}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),w5e=()=>{const e=et(),{activeTabName:t,shouldShowBoundingBox:n,tool:r,isStaging:i,isMaskEnabled:a,shouldSnapToGrid:o}=be(x5e),l=A.useRef(null),c=mN(),d=()=>e(dk());At(["shift+c"],()=>{d()},{enabled:()=>!i,preventDefault:!0},[]);const p=()=>e(Ub(!a));At(["h"],()=>{p()},{enabled:()=>!i,preventDefault:!0},[a]),At(["n"],()=>{e(I2(!o))},{enabled:!0,preventDefault:!0},[o]),At("esc",()=>{e(KK())},{enabled:()=>!0,preventDefault:!0}),At("shift+h",()=>{e(tX(!n))},{enabled:()=>!i,preventDefault:!0},[t,n]),At(["space"],g=>{g.repeat||(c==null||c.container().focus(),r!=="move"&&(l.current=r,e(Cd("move"))),r==="move"&&l.current&&l.current!=="move"&&(e(Cd(l.current)),l.current="move"))},{keyup:!0,keydown:!0,preventDefault:!0},[r,l])},bO=e=>{const t=e.getPointerPosition(),n=e.getAbsoluteTransform().copy();if(!t||!n)return;const r=n.invert().point(t);return{x:r.x,y:r.y}},hG=()=>{const e=et(),t=Dc(),n=mN();return{updateColorUnderCursor:()=>{if(!n||!t)return;const r=n.getPointerPosition();if(!r)return;const i=g0.pixelRatio,[a,o,l,c]=t.getContext().getImageData(r.x*i,r.y*i,1,1).data;e(JK({r:a,g:o,b:l,a:c}))},commitColorUnderCursor:()=>{e(UK())}}},C5e=Ut([ki,xr,da],(e,t,n)=>{const{tool:r}=t;return{tool:r,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),E5e=e=>{const t=et(),{tool:n,isStaging:r}=be(C5e),{commitColorUnderCursor:i}=hG();return A.useCallback(a=>{if(!e.current)return;if(e.current.container().focus(),n==="move"||r){t(M2(!0));return}if(n==="colorPicker"){i();return}const o=bO(e.current);o&&(a.evt.preventDefault(),t(qj(!0)),t(FK([o.x,o.y])))},[e,n,r,t,i])},_5e=Ut([ki,xr,da],(e,t,n)=>{const{tool:r,isDrawing:i}=t;return{tool:r,isDrawing:i,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),T5e=(e,t,n)=>{const r=et(),{isDrawing:i,tool:a,isStaging:o}=be(_5e),{updateColorUnderCursor:l}=hG();return A.useCallback(()=>{if(!e.current)return;const c=bO(e.current);if(c){if(r($K(c)),n.current=c,a==="colorPicker"){l();return}!i||a==="move"||o||(t.current=!0,r(Vj([c.x,c.y])))}},[t,r,i,o,n,e,a,l])},k5e=()=>{const e=et();return A.useCallback(()=>{e(GK())},[e])},P5e=Ut([ki,xr,da],(e,t,n)=>{const{tool:r,isDrawing:i}=t;return{tool:r,isDrawing:i,activeTabName:e,isStaging:n}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),A5e=(e,t)=>{const n=et(),{tool:r,isDrawing:i,isStaging:a}=be(P5e);return A.useCallback(()=>{if(r==="move"||a){n(M2(!1));return}if(!t.current&&i&&e.current){const o=bO(e.current);if(!o)return;n(Vj([o.x,o.y]))}else t.current=!1;n(qj(!1))},[t,n,i,a,e,r])},O5e=Ut([xr],e=>{const{isMoveStageKeyHeld:t,stageScale:n}=e;return{isMoveStageKeyHeld:t,stageScale:n}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),D5e=e=>{const t=et(),{isMoveStageKeyHeld:n,stageScale:r}=be(O5e);return A.useCallback(i=>{if(!e.current||n)return;i.evt.preventDefault();const a=e.current.getPointerPosition();if(!a)return;const o={x:(a.x-e.current.x())/r,y:(a.y-e.current.y())/r};let l=i.evt.deltaY;i.evt.ctrlKey&&(l=-l);const c=Qe.clamp(r*OK**l,DK,MK),d={x:a.x-o.x*c,y:a.y-o.y*c};t(rX(c)),t(n6(d))},[e,n,r,t])},M5e=Ut(xr,e=>{const{boundingBoxCoordinates:t,boundingBoxDimensions:n,stageDimensions:r,stageScale:i,shouldDarkenOutsideBoundingBox:a,stageCoordinates:o}=e;return{boundingBoxCoordinates:t,boundingBoxDimensions:n,shouldDarkenOutsideBoundingBox:a,stageCoordinates:o,stageDimensions:r,stageScale:i}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),j5e=()=>{const{boundingBoxCoordinates:e,boundingBoxDimensions:t,shouldDarkenOutsideBoundingBox:n,stageCoordinates:r,stageDimensions:i,stageScale:a}=be(M5e);return v.jsxs(bh,{children:[v.jsx(Sh,{offsetX:r.x/a,offsetY:r.y/a,height:i.height/a,width:i.width/a,fill:"rgba(0,0,0,0.4)",listening:!1,visible:n}),v.jsx(Sh,{x:e.x,y:e.y,width:t.width,height:t.height,fill:"rgb(255,255,255)",listening:!1,visible:n,globalCompositeOperation:"destination-out"})]})},I5e=Ut([xr],e=>{const{stageScale:t,stageCoordinates:n,stageDimensions:r}=e;return{stageScale:t,stageCoordinates:n,stageDimensions:r}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),R5e=()=>{const e=be(c=>c.ui.currentTheme),{stageScale:t,stageCoordinates:n,stageDimensions:r}=be(I5e),[i,a]=A.useState([]),[o]=sL("colors",["gridLineColor"]),l=A.useCallback(c=>c/t,[t]);return A.useLayoutEffect(()=>{const{width:c,height:d}=r,{x:p,y:g}=n,S={x1:0,y1:0,x2:c,y2:d,offset:{x:l(p),y:l(g)}},w={x:Math.ceil(l(p)/64)*64,y:Math.ceil(l(g)/64)*64},C={x1:-w.x,y1:-w.y,x2:l(c)-w.x+64,y2:l(d)-w.y+64},P={x1:Math.min(S.x1,C.x1),y1:Math.min(S.y1,C.y1),x2:Math.max(S.x2,C.x2),y2:Math.max(S.y2,C.y2)},D=P.x2-P.x1,M=P.y2-P.y1,R=Math.round(D/64)+1,L=Math.round(M/64)+1,z=Qe.range(0,R).map(V=>v.jsx(LE,{x:P.x1+V*64,y:P.y1,points:[0,0,0,M],stroke:o,strokeWidth:1},`x_${V}`)),U=Qe.range(0,L).map(V=>v.jsx(LE,{x:P.x1,y:P.y1+V*64,points:[0,0,D,0],stroke:o,strokeWidth:1},`y_${V}`));a(z.concat(U))},[t,n,r,e,l,o]),v.jsx(bh,{children:i})},N5e=Ut([e=>e.gallery],e=>e.intermediateImage?e.intermediateImage:null,{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),L5e=e=>{const{...t}=e,n=be(N5e),[r,i]=A.useState(null);if(A.useEffect(()=>{if(!n)return;const d=new Image;d.onload=()=>{i(d)},d.src=n.url},[n]),!(n!=null&&n.boundingBox))return null;const{boundingBox:{x:a,y:o,width:l,height:c}}=n;return r?v.jsx(fG,{x:a,y:o,width:l,height:c,image:r,listening:!1,...t}):null},Gv=e=>{const{r:t,g:n,b:r,a:i}=e;return`rgba(${t}, ${n}, ${r}, ${i})`},z5e=Ut(xr,e=>{const{maskColor:t,stageCoordinates:n,stageDimensions:r,stageScale:i}=e;return{stageCoordinates:n,stageDimensions:r,stageScale:i,maskColorString:Gv(t)}}),pG=e=>`data:image/svg+xml;utf8,<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||
<!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),B5e=e=>{const{...t}=e,{maskColorString:n,stageCoordinates:r,stageDimensions:i,stageScale:a}=be(z5e),[o,l]=A.useState(null),[c,d]=A.useState(0),p=A.useRef(null),g=A.useCallback(()=>{d(c+1),setTimeout(g,500)},[c]);return A.useEffect(()=>{if(o)return;const S=new Image;S.onload=()=>{l(S)},S.src=pG(n)},[o,n]),A.useEffect(()=>{o&&(o.src=pG(n))},[o,n]),A.useEffect(()=>{const S=setInterval(()=>d(w=>(w+1)%5),50);return()=>clearInterval(S)},[]),!o||!Qe.isNumber(r.x)||!Qe.isNumber(r.y)||!Qe.isNumber(a)||!Qe.isNumber(i.width)||!Qe.isNumber(i.height)?null:v.jsx(Sh,{ref:p,offsetX:r.x/a,offsetY:r.y/a,height:i.height/a,width:i.width/a,fillPatternImage:o,fillPatternOffsetY:Qe.isNumber(c)?c:0,fillPatternRepeat:"repeat",fillPatternScale:{x:1/a,y:1/a},listening:!0,globalCompositeOperation:"source-in",...t})},F5e=Ut([xr],e=>({objects:e.layerState.objects}),{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),U5e=e=>{const{...t}=e,{objects:n}=be(F5e);return v.jsx(bh,{listening:!1,...t,children:n.filter(ck).map((r,i)=>v.jsx(LE,{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 Wv=A,V5e=function(t,n,r){const i=Wv.useRef("loading"),a=Wv.useRef(),[o,l]=Wv.useState(0),c=Wv.useRef(),d=Wv.useRef(),p=Wv.useRef();return(c.current!==t||d.current!==n||p.current!==r)&&(i.current="loading",a.current=void 0,c.current=t,d.current=n,p.current=r),Wv.useLayoutEffect(function(){if(!t)return;var g=document.createElement("img");function S(){i.current="loaded",a.current=g,l(Math.random())}function w(){i.current="failed",a.current=void 0,l(Math.random())}return g.addEventListener("load",S),g.addEventListener("error",w),n&&(g.crossOrigin=n),r&&(g.referrerpolicy=r),g.src=t,function(){g.removeEventListener("load",S),g.removeEventListener("error",w)}},[t,n,r]),[a.current,i.current]};const mG=e=>{const{url:t,x:n,y:r}=e,[i]=V5e(t);return v.jsx(fG,{x:n,y:r,image:i,listening:!1})},H5e=Ut([xr],e=>{const{layerState:{objects:t}}=e;return{objects:t}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),G5e=()=>{const{objects:e}=be(H5e);return e?v.jsx(bh,{name:"outpainting-objects",listening:!1,children:e.map((t,n)=>{if(P2(t))return v.jsx(mG,{x:t.x,y:t.y,url:t.image.url},n);if(RK(t)){const r=v.jsx(LE,{points:t.points,stroke:t.color?Gv(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(bh,{clipX:t.clip.x,clipY:t.clip.y,clipWidth:t.clip.width,clipHeight:t.clip.height,children:r},n):r}else{if(NK(t))return v.jsx(Sh,{x:t.x,y:t.y,width:t.width,height:t.height,fill:Gv(t.color)},n);if(LK(t))return v.jsx(Sh,{x:t.x,y:t.y,width:t.width,height:t.height,fill:"rgb(255, 255, 255)",globalCompositeOperation:"destination-out"},n)}})}):null},W5e=Ut([xr],e=>{const{layerState:{stagingArea:{images:t,selectedImageIndex:n}},shouldShowStagingImage:r,shouldShowStagingOutline:i,boundingBoxCoordinates:{x:a,y:o},boundingBoxDimensions:{width:l,height:c}}=e;return{currentStagingAreaImage:t.length>0?t[n]:void 0,isOnFirstImage:n===0,isOnLastImage:n===t.length-1,shouldShowStagingImage:r,shouldShowStagingOutline:i,x:a,y:o,width:l,height:c}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),q5e=e=>{const{...t}=e,{currentStagingAreaImage:n,shouldShowStagingImage:r,shouldShowStagingOutline:i,x:a,y:o,width:l,height:c}=be(W5e);return v.jsxs(bh,{...t,children:[r&&n&&v.jsx(mG,{url:n.image.url,x:a,y:o}),i&&v.jsxs(bh,{children:[v.jsx(Sh,{x:a,y:o,width:l,height:c,strokeWidth:1,stroke:"white",strokeScaleEnabled:!1}),v.jsx(Sh,{x:a,y:o,width:l,height:c,dash:[4,4],strokeWidth:1,stroke:"black",strokeScaleEnabled:!1})]})]})},Y5e=Ut([xr],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:n===t.length-1,shouldShowStagingImage:i,shouldShowStagingOutline:r}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),K5e=()=>{const e=et(),{isOnFirstImage:t,isOnLastImage:n,currentStagingAreaImage:r,shouldShowStagingImage:i}=be(Y5e),{t:a}=tt(),o=A.useCallback(()=>{e(t6(!0))},[e]),l=A.useCallback(()=>{e(t6(!1))},[e]);At(["left"],()=>{c()},{enabled:()=>!0,preventDefault:!0}),At(["right"],()=>{d()},{enabled:()=>!0,preventDefault:!0}),At(["enter"],()=>{p()},{enabled:()=>!0,preventDefault:!0});const c=()=>e(qK()),d=()=>e(WK()),p=()=>e(VK());return r?v.jsx(Re,{pos:"absolute",bottom:4,w:"100%",align:"center",justify:"center",filter:"drop-shadow(0 0.5rem 1rem rgba(0,0,0))",onMouseOver:o,onMouseOut:l,children:v.jsxs(jo,{isAttached:!0,children:[v.jsx(_t,{tooltip:`${a("unifiedCanvas.previous")} (Left)`,"aria-label":`${a("unifiedCanvas.previous")} (Left)`,icon:v.jsx(txe,{}),onClick:c,colorScheme:"accent",isDisabled:t}),v.jsx(_t,{tooltip:`${a("unifiedCanvas.next")} (Right)`,"aria-label":`${a("unifiedCanvas.next")} (Right)`,icon:v.jsx(nxe,{}),onClick:d,colorScheme:"accent",isDisabled:n}),v.jsx(_t,{tooltip:`${a("unifiedCanvas.accept")} (Enter)`,"aria-label":`${a("unifiedCanvas.accept")} (Enter)`,icon:v.jsx(dE,{}),onClick:p,colorScheme:"accent"}),v.jsx(_t,{tooltip:a("unifiedCanvas.showHide"),"aria-label":a("unifiedCanvas.showHide"),"data-alert":!i,icon:i?v.jsx(uxe,{}):v.jsx(lxe,{}),onClick:()=>e(nX(!i)),colorScheme:"accent"}),v.jsx(_t,{tooltip:a("unifiedCanvas.saveToGallery"),"aria-label":a("unifiedCanvas.saveToGallery"),icon:v.jsx(iA,{}),onClick:()=>e(Wee(r.image.url)),colorScheme:"accent"}),v.jsx(_t,{tooltip:a("unifiedCanvas.discardAll"),"aria-label":a("unifiedCanvas.discardAll"),icon:v.jsx(SS,{style:{transform:"rotate(45deg)"}}),onClick:()=>e(HK()),colorScheme:"error",fontSize:20})]})}):null},hy=e=>Math.round(e*100)/100,X5e=Ut([xr],e=>{const{cursorPosition:t}=e,{cursorX:n,cursorY:r}=t?{cursorX:t.x,cursorY:t.y}:{cursorX:-1,cursorY:-1};return{cursorCoordinatesString:`(${hy(n)}, ${hy(r)})`}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}});function Q5e(){const{cursorCoordinatesString:e}=be(X5e),{t}=tt();return v.jsx($n,{children:`${t("unifiedCanvas.cursorPosition")}: ${e}`})}const SO="var(--invokeai-colors-warning-500)",Z5e=Ut([xr],e=>{const{stageDimensions:{width:t,height:n},stageCoordinates:{x:r,y:i},boundingBoxDimensions:{width:a,height:o},scaledBoundingBoxDimensions:{width:l,height:c},boundingBoxCoordinates:{x:d,y:p},stageScale:g,shouldShowCanvasDebugInfo:S,layer:w,boundingBoxScaleMethod:C,shouldPreserveMaskedArea:k}=e;let P="inherit";return(C==="none"&&(a<512||o<512)||C==="manual"&&l*c<512*512)&&(P=SO),{activeLayerColor:w==="mask"?SO:"inherit",activeLayerString:w.charAt(0).toUpperCase()+w.slice(1),boundingBoxColor:P,boundingBoxCoordinatesString:`(${hy(d)}, ${hy(p)})`,boundingBoxDimensionsString:`${a}×${o}`,scaledBoundingBoxDimensionsString:`${l}×${c}`,canvasCoordinatesString:`${hy(r)}×${hy(i)}`,canvasDimensionsString:`${t}×${n}`,canvasScaleString:Math.round(g*100),shouldShowCanvasDebugInfo:S,shouldShowBoundingBox:C!=="auto",shouldShowScaledBoundingBox:C!=="none",shouldPreserveMaskedArea:k}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),J5e=()=>{const{activeLayerColor:e,activeLayerString:t,boundingBoxColor:n,boundingBoxCoordinatesString:r,boundingBoxDimensionsString:i,scaledBoundingBoxDimensionsString:a,shouldShowScaledBoundingBox:o,canvasCoordinatesString:l,canvasDimensionsString:c,canvasScaleString:d,shouldShowCanvasDebugInfo:p,shouldShowBoundingBox:g,shouldPreserveMaskedArea:S}=be(Z5e),{t:w}=tt();return v.jsxs(Re,{sx:{flexDirection:"column",position:"absolute",top:0,insetInlineStart:0,opacity:.65,display:"flex",fontSize:"sm",padding:1,px:2,minWidth:48,margin:1,borderRadius:"base",pointerEvents:"none",bg:"base.800"},children:[v.jsx($n,{style:{color:e},children:`${w("unifiedCanvas.activeLayer")}: ${t}`}),v.jsx($n,{children:`${w("unifiedCanvas.canvasScale")}: ${d}%`}),S&&v.jsx($n,{style:{color:SO},children:"Preserve Masked Area: On"}),g&&v.jsx($n,{style:{color:n},children:`${w("unifiedCanvas.boundingBox")}: ${i}`}),o&&v.jsx($n,{style:{color:n},children:`${w("unifiedCanvas.scaledBoundingBox")}: ${a}`}),p&&v.jsxs(v.Fragment,{children:[v.jsx($n,{children:`${w("unifiedCanvas.boundingBoxPosition")}: ${r}`}),v.jsx($n,{children:`${w("unifiedCanvas.canvasDimensions")}: ${c}`}),v.jsx($n,{children:`${w("unifiedCanvas.canvasPosition")}: ${l}`}),v.jsx(Q5e,{})]})]})},$5e=Ut(xr,e=>{const{boundingBoxCoordinates:t,boundingBoxDimensions:n,stageScale:r,isDrawing:i,isTransformingBoundingBox:a,isMovingBoundingBox:o,tool:l,shouldSnapToGrid:c}=e;return{boundingBoxCoordinates:t,boundingBoxDimensions:n,isDrawing:i,isMovingBoundingBox:o,isTransformingBoundingBox:a,stageScale:r,shouldSnapToGrid:c,tool:l,hitStrokeWidth:20/r}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),e3e=e=>{const{...t}=e,n=et(),{boundingBoxCoordinates:r,boundingBoxDimensions:i,isDrawing:a,isMovingBoundingBox:o,isTransformingBoundingBox:l,stageScale:c,shouldSnapToGrid:d,tool:p,hitStrokeWidth:g}=be($5e),S=A.useRef(null),w=A.useRef(null),[C,k]=A.useState(!1);A.useEffect(()=>{var fe;!S.current||!w.current||(S.current.nodes([w.current]),(fe=S.current.getLayer())==null||fe.batchDraw())},[]);const P=64*c,D=A.useCallback(fe=>{if(!d){n(hk({x:Math.floor(fe.target.x()),y:Math.floor(fe.target.y())}));return}const X=fe.target.x(),G=fe.target.y(),te=wd(X,64),re=wd(G,64);fe.target.x(te),fe.target.y(re),n(hk({x:te,y:re}))},[n,d]),M=A.useCallback(()=>{if(!w.current)return;const fe=w.current,X=fe.scaleX(),G=fe.scaleY(),te=Math.round(fe.width()*X),re=Math.round(fe.height()*G),oe=Math.round(fe.x()),ie=Math.round(fe.y());n(Fb({width:te,height:re})),n(hk({x:d?hp(oe,64):oe,y:d?hp(ie,64):ie})),fe.scaleX(1),fe.scaleY(1)},[n,d]),R=A.useCallback((fe,X,G)=>{const te=fe.x%P,re=fe.y%P;return{x:hp(X.x,P)+te,y:hp(X.y,P)+re}},[P]),L=()=>{n(mk(!0))},z=()=>{n(mk(!1)),n(pk(!1)),n(D2(!1)),k(!1)},U=()=>{n(pk(!0))},V=()=>{n(mk(!1)),n(pk(!1)),n(D2(!1)),k(!1)},Y=()=>{k(!0)},J=()=>{!l&&!o&&k(!1)},$=()=>{n(D2(!0))},K=()=>{n(D2(!1))};return v.jsxs(bh,{...t,children:[v.jsx(Sh,{height:i.height,width:i.width,x:r.x,y:r.y,onMouseEnter:$,onMouseOver:$,onMouseLeave:K,onMouseOut:K}),v.jsx(Sh,{draggable:!0,fillEnabled:!1,height:i.height,hitStrokeWidth:g,listening:!a&&p==="move",onDragStart:U,onDragEnd:V,onDragMove:D,onMouseDown:U,onMouseOut:J,onMouseOver:Y,onMouseEnter:Y,onMouseUp:V,onTransform:M,onTransformEnd:z,ref:w,stroke:C?"rgba(255,255,255,0.7)":"white",strokeWidth:(C?8:1)/c,width:i.width,x:r.x,y:r.y}),v.jsx(g5e,{anchorCornerRadius:3,anchorDragBoundFunc:R,anchorFill:"rgba(212,216,234,1)",anchorSize:15,anchorStroke:"rgb(42,42,42)",borderDash:[4,4],borderEnabled:!0,borderStroke:"black",draggable:!1,enabledAnchors:p==="move"?void 0:[],flipEnabled:!1,ignoreStroke:!0,keepRatio:!1,listening:!a&&p==="move",onDragStart:U,onDragEnd:V,onMouseDown:L,onMouseUp:z,onTransformEnd:z,ref:S,rotateEnabled:!1})]})},t3e=Ut(xr,e=>{const{cursorPosition:t,brushSize:n,colorPickerColor:r,maskColor:i,brushColor:a,tool:o,layer:l,shouldShowBrush:c,isMovingBoundingBox:d,isTransformingBoundingBox:p,stageScale:g,stageDimensions:S,boundingBoxCoordinates:w,boundingBoxDimensions:C,shouldRestrictStrokesToBox:k}=e,P=k?{clipX:w.x,clipY:w.y,clipWidth:C.width,clipHeight:C.height}:{};return{cursorPosition:t,brushX:t?t.x:S.width/2,brushY:t?t.y:S.height/2,radius:n/2,colorPickerOuterRadius:Nj/g,colorPickerInnerRadius:(Nj-uk+1)/g,maskColorString:Gv({...i,a:.5}),brushColorString:Gv(a),colorPickerColorString:Gv(r),tool:o,layer:l,shouldShowBrush:c,shouldDrawBrushPreview:!(d||p||!t)&&c,strokeWidth:1.5/g,dotRadius:1.5/g,clip:P}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),n3e=e=>{const{...t}=e,{brushX:n,brushY:r,radius:i,maskColorString:a,tool:o,layer:l,shouldDrawBrushPreview:c,dotRadius:d,strokeWidth:p,brushColorString:g,colorPickerColorString:S,colorPickerInnerRadius:w,colorPickerOuterRadius:C,clip:k}=be(t3e);return c?v.jsxs(bh,{listening:!1,...k,...t,children:[o==="colorPicker"?v.jsxs(v.Fragment,{children:[v.jsx(Hv,{x:n,y:r,radius:C,stroke:g,strokeWidth:uk,strokeScaleEnabled:!1}),v.jsx(Hv,{x:n,y:r,radius:w,stroke:S,strokeWidth:uk,strokeScaleEnabled:!1})]}):v.jsxs(v.Fragment,{children:[v.jsx(Hv,{x:n,y:r,radius:i,fill:l==="mask"?a:g,globalCompositeOperation:o==="eraser"?"destination-out":"source-out"}),v.jsx(Hv,{x:n,y:r,radius:i,stroke:"rgba(255,255,255,0.4)",strokeWidth:p*2,strokeEnabled:!0,listening:!1}),v.jsx(Hv,{x:n,y:r,radius:i,stroke:"rgba(0,0,0,1)",strokeWidth:p,strokeEnabled:!0,listening:!1})]}),v.jsx(Hv,{x:n,y:r,radius:d*2,fill:"rgba(255,255,255,0.4)",listening:!1}),v.jsx(Hv,{x:n,y:r,radius:d,fill:"rgba(0,0,0,1)",listening:!1})]}):null},r3e=Ut([xr,da],(e,t)=>{const{isMaskEnabled:n,stageScale:r,shouldShowBoundingBox:i,isTransformingBoundingBox:a,isMouseOverBoundingBox:o,isMovingBoundingBox:l,stageDimensions:c,stageCoordinates:d,tool:p,isMovingStage:g,shouldShowIntermediates:S,shouldShowGrid:w,shouldRestrictStrokesToBox:C}=e;let k="none";return p==="move"||t?g?k="grabbing":k="grab":a?k=void 0:C&&!o&&(k="default"),{isMaskEnabled:n,isModifyingBoundingBox:a||l,shouldShowBoundingBox:i,shouldShowGrid:w,stageCoordinates:d,stageCursor:k,stageDimensions:c,stageScale:r,tool:p,isStaging:t,shouldShowIntermediates:S}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),i3e=dt(y5e,{shouldForwardProp:e=>!["sx"].includes(e)}),vG=()=>{const{isMaskEnabled:e,isModifyingBoundingBox:t,shouldShowBoundingBox:n,shouldShowGrid:r,stageCoordinates:i,stageCursor:a,stageDimensions:o,stageScale:l,tool:c,isStaging:d,shouldShowIntermediates:p}=be(r3e);w5e();const g=A.useRef(null),S=A.useRef(null),w=A.useCallback(J=>{Eee(J),g.current=J},[]),C=A.useCallback(J=>{Cee(J),S.current=J},[]),k=A.useRef({x:0,y:0}),P=A.useRef(!1),D=D5e(g),M=E5e(g),R=A5e(g,P),L=T5e(g,P,k),z=k5e(),{handleDragStart:U,handleDragMove:V,handleDragEnd:Y}=S5e();return v.jsx(Re,{sx:{position:"relative",height:"100%",width:"100%",borderRadius:"base"},children:v.jsxs($n,{sx:{position:"relative"},children:[v.jsxs(i3e,{tabIndex:-1,ref:w,sx:{outline:"none",overflow:"hidden",cursor:a||void 0,canvas:{outline:"none"}},x:i.x,y:i.y,width:o.width,height:o.height,scale:{x:l,y:l},onTouchStart:M,onTouchMove:L,onTouchEnd:R,onMouseDown:M,onMouseLeave:z,onMouseMove:L,onMouseUp:R,onDragStart:U,onDragMove:V,onDragEnd:Y,onContextMenu:J=>J.evt.preventDefault(),onWheel:D,draggable:(c==="move"||d)&&!t,children:[v.jsx(jS,{id:"grid",visible:r,children:v.jsx(R5e,{})}),v.jsx(jS,{id:"base",ref:C,listening:!1,imageSmoothingEnabled:!1,children:v.jsx(G5e,{})}),v.jsxs(jS,{id:"mask",visible:e,listening:!1,children:[v.jsx(U5e,{visible:!0,listening:!1}),v.jsx(B5e,{listening:!1})]}),v.jsx(jS,{children:v.jsx(j5e,{})}),v.jsxs(jS,{id:"preview",imageSmoothingEnabled:!1,children:[!d&&v.jsx(n3e,{visible:c!=="move",listening:!1}),v.jsx(q5e,{visible:d}),p&&v.jsx(L5e,{}),v.jsx(e3e,{visible:n&&!d})]})]}),v.jsx(J5e,{}),v.jsx(K5e,{})]})})},a3e=Ut(xr,qH,ki,(e,t,n)=>{const{doesCanvasNeedScaling:r,isCanvasInitialized:i}=e;return{doesCanvasNeedScaling:r,activeTabName:n,initialCanvasImage:t,isCanvasInitialized:i}}),gG=()=>{const e=et(),{doesCanvasNeedScaling:t,activeTabName:n,initialCanvasImage:r,isCanvasInitialized:i}=be(a3e),a=A.useRef(null);return A.useLayoutEffect(()=>{window.setTimeout(()=>{if(!a.current)return;const{clientWidth:o,clientHeight:l}=a.current;e(ZK({width:o,height:l})),e(i?XK():A2()),e(Wj(!1))},0)},[e,r,t,n,i]),v.jsx(Re,{ref:a,sx:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:4,width:"100%",height:"100%"},children:v.jsx(L0,{thickness:"2px",speed:"1s",size:"xl"})})},o3e=Ut([xr,ki,Li],(e,t,n)=>{const{futureLayerStates:r}=e;return{canRedo:r.length>0&&!n.isProcessing,activeTabName:t}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}});function yG(){const e=et(),{canRedo:t,activeTabName:n}=be(o3e),{t:r}=tt(),i=()=>{e(YK())};return At(["meta+shift+z","ctrl+shift+z","control+y","meta+y"],()=>{i()},{enabled:()=>t,preventDefault:!0},[n,t]),v.jsx(_t,{"aria-label":`${r("unifiedCanvas.redo")} (Ctrl+Shift+Z)`,tooltip:`${r("unifiedCanvas.redo")} (Ctrl+Shift+Z)`,icon:v.jsx(Sxe,{}),onClick:i,isDisabled:!t})}const s3e=Ut([xr,ki,Li],(e,t,n)=>{const{pastLayerStates:r}=e;return{canUndo:r.length>0&&!n.isProcessing,activeTabName:t}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}});function bG(){const e=et(),{t}=tt(),{canUndo:n,activeTabName:r}=be(s3e),i=()=>{e(iX())};return At(["meta+z","ctrl+z"],()=>{i()},{enabled:()=>n,preventDefault:!0},[r,n]),v.jsx(_t,{"aria-label":`${t("unifiedCanvas.undo")} (Ctrl+Z)`,tooltip:`${t("unifiedCanvas.undo")} (Ctrl+Z)`,icon:v.jsx(_xe,{}),onClick:i,isDisabled:!n})}const l3e=(e,t,n)=>{const r=document.createElement("img");r.addEventListener("load",()=>{const i=document.createElement("canvas");i.width=t,i.height=n;const a=i.getContext("2d");a&&(a.drawImage(r,0,0),i.toBlob(o=>{o&&navigator.clipboard.write([new ClipboardItem({[o.type]:o})])}),i.remove(),r.remove())}),r.src=e},u3e=e=>{const t=document.createElement("a");t.href=e,t.download="",document.body.appendChild(t),t.click(),document.body.removeChild(t),t.remove()},c3e=(e,t,n,r)=>{const i=e.scale(),a=e.getClientRect({relativeTo:e.getParent()});e.scale({x:1/t,y:1/t});const{x:o,y:l,width:c,height:d}=e.getClientRect(),p=r?{x:r.x+n.x,y:r.y+n.y,width:r.width,height:r.height}:{x:o,y:l,width:c,height:d},g=e.toDataURL(p);return e.scale(i),{dataURL:g,boundingBox:{x:a.x,y:a.y,width:c,height:d}}},d3e={cropVisible:!1,cropToBoundingBox:!1,shouldSaveToGallery:!1,shouldDownload:!1,shouldCopy:!1,shouldSetAsInitialImage:!0},Zp=(e=d3e)=>async(t,n)=>{const{cropVisible:r,cropToBoundingBox:i,shouldSaveToGallery:a,shouldDownload:o,shouldCopy:l,shouldSetAsInitialImage:c}=e;t(oZ("Exporting Image")),t(vp(!1));const d=n(),{stageScale:p,boundingBoxCoordinates:g,boundingBoxDimensions:S,stageCoordinates:w}=d.canvas,C=Dc();if(!C){t(Yl(!1)),t(vp(!0));return}const{dataURL:k,boundingBox:P}=c3e(C,p,w,i?{...g,...S}:void 0);if(!k){t(Yl(!1)),t(vp(!0));return}const D=new FormData;D.append("data",JSON.stringify({dataURL:k,filename:"merged_canvas.png",kind:a?"result":"temp",cropVisible:r}));const R=await(await fetch(`${window.location.origin}/upload`,{method:"POST",body:D})).json(),{url:L,width:z,height:U}=R,V={uuid:y0(),category:a?"result":"user",...R};o&&(u3e(L),t(Kf({title:Fn.t("toast.downloadImageStarted"),status:"success",duration:2500,isClosable:!0}))),l&&(l3e(L,z,U),t(Kf({title:Fn.t("toast.imageCopied"),status:"success",duration:2500,isClosable:!0}))),a&&(t(n0({image:V,category:"result"})),t(Kf({title:Fn.t("toast.imageSavedToGallery"),status:"success",duration:2500,isClosable:!0}))),c&&(t(eX({kind:"image",layer:"base",...P,image:V})),t(Kf({title:Fn.t("toast.canvasMerged"),status:"success",duration:2500,isClosable:!0}))),t(Yl(!1)),t(ev(Fn.t("common.statusConnected"))),t(vp(!0))};function f3e(){const e=be(da),t=Dc(),n=be(l=>l.system.isProcessing),r=be(l=>l.canvas.shouldCropToBoundingBoxOnSave),i=et(),{t:a}=tt();At(["meta+c","ctrl+c"],()=>{o()},{enabled:()=>!e,preventDefault:!0},[t,n]);const o=()=>{i(Zp({cropVisible:!r,cropToBoundingBox:r,shouldCopy:!0}))};return v.jsx(_t,{"aria-label":`${a("unifiedCanvas.copyToClipboard")} (Cmd/Ctrl+C)`,tooltip:`${a("unifiedCanvas.copyToClipboard")} (Cmd/Ctrl+C)`,icon:v.jsx(ly,{}),onClick:o,isDisabled:e})}function h3e(){const e=et(),{t}=tt(),n=Dc(),r=be(da),i=be(l=>l.system.isProcessing),a=be(l=>l.canvas.shouldCropToBoundingBoxOnSave);At(["shift+d"],()=>{o()},{enabled:()=>!r,preventDefault:!0},[n,i]);const o=()=>{e(Zp({cropVisible:!a,cropToBoundingBox:a,shouldDownload:!0}))};return v.jsx(_t,{"aria-label":`${t("unifiedCanvas.downloadAsImage")} (Shift+D)`,tooltip:`${t("unifiedCanvas.downloadAsImage")} (Shift+D)`,icon:v.jsx(rA,{}),onClick:o,isDisabled:r})}function p3e(){const e=be(da),{openUploader:t}=lA(),{t:n}=tt();return v.jsx(_t,{"aria-label":n("common.upload"),tooltip:n("common.upload"),icon:v.jsx(fE,{}),onClick:t,isDisabled:e})}const m3e=Ut([xr,da],(e,t)=>{const{layer:n,isMaskEnabled:r}=e;return{layer:n,isMaskEnabled:r,isStaging:t}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}});function v3e(){const e=et(),{t}=tt(),{layer:n,isMaskEnabled:r,isStaging:i}=be(m3e),a=()=>{e(j2(n==="mask"?"base":"mask"))};At(["q"],()=>{a()},{enabled:()=>!i,preventDefault:!0},[n]);const o=l=>{const c=l.target.value;e(j2(c)),c==="mask"&&!r&&e(Ub(!0))};return v.jsx(wl,{tooltip:`${t("unifiedCanvas.layer")} (Q)`,"aria-label":`${t("unifiedCanvas.layer")} (Q)`,tooltipProps:{hasArrow:!0,placement:"top"},value:n,validValues:zj,onChange:o,isDisabled:i})}function g3e(){const e=et(),{t}=tt(),n=Dc(),r=be(da),i=be(o=>o.system.isProcessing);At(["shift+m"],()=>{a()},{enabled:()=>!r,preventDefault:!0},[n,i]);const a=()=>{e(Zp({cropVisible:!1,shouldSetAsInitialImage:!0}))};return v.jsx(_t,{"aria-label":`${t("unifiedCanvas.mergeVisible")} (Shift+M)`,tooltip:`${t("unifiedCanvas.mergeVisible")} (Shift+M)`,icon:v.jsx(yU,{}),onClick:a,isDisabled:r})}function y3e(){const e=be(a=>a.canvas.tool),t=be(da),n=et(),{t:r}=tt();At(["v"],()=>{i()},{enabled:()=>!t,preventDefault:!0},[]);const i=()=>n(Cd("move"));return v.jsx(_t,{"aria-label":`${r("unifiedCanvas.move")} (V)`,tooltip:`${r("unifiedCanvas.move")} (V)`,icon:v.jsx(fU,{}),isChecked:e==="move"||t,onClick:i})}function b3e(){const e=be(a=>a.ui.shouldPinParametersPanel),t=be(a=>a.ui.shouldShowParametersPanel),n=et(),{t:r}=tt(),i=()=>{n(J2(!0)),e&&n(gs())};return!e||!t?v.jsxs(Re,{flexDirection:"column",gap:2,children:[v.jsx(_t,{tooltip:`${r("parameters.showOptionsPanel")} (O)`,tooltipProps:{placement:"top"},"aria-label":r("parameters.showOptionsPanel"),onClick:i,children:v.jsx(aA,{})}),v.jsx(Re,{children:v.jsx(uO,{iconButton:!0})}),v.jsx(Re,{children:v.jsx(sO,{width:"100%",height:"40px",btnGroupWidth:"100%"})})]}):null}function S3e(){const e=et(),{t}=tt(),n=be(da),r=()=>{e(fk()),e(A2())};return v.jsx(_t,{"aria-label":t("unifiedCanvas.clearCanvas"),tooltip:t("unifiedCanvas.clearCanvas"),icon:v.jsx(Mv,{}),onClick:r,isDisabled:n,colorScheme:"error"})}function SG(e,t,n=250){const[r,i]=A.useState(0);return A.useEffect(()=>{const a=setTimeout(()=>{r===1&&e(),i(0)},n);return r===2&&t(),()=>clearTimeout(a)},[r,e,t,n]),()=>i(a=>a+1)}function x3e(){const e=Dc(),t=et(),{t:n}=tt();At(["r"],()=>{i()},{enabled:()=>!0,preventDefault:!0},[e]);const r=SG(()=>i(!1),()=>i(!0)),i=(a=!1)=>{const o=Dc();if(!o)return;const l=o.getClientRect({skipTransform:!0});t(Gj({contentRect:l,shouldScaleTo1:a}))};return v.jsx(_t,{"aria-label":`${n("unifiedCanvas.resetView")} (R)`,tooltip:`${n("unifiedCanvas.resetView")} (R)`,icon:v.jsx(pU,{}),onClick:r})}function w3e(){const e=be(da),t=Dc(),n=be(l=>l.system.isProcessing),r=be(l=>l.canvas.shouldCropToBoundingBoxOnSave),i=et(),{t:a}=tt();At(["shift+s"],()=>{o()},{enabled:()=>!e,preventDefault:!0},[t,n]);const o=()=>{i(Zp({cropVisible:!r,cropToBoundingBox:r,shouldSaveToGallery:!0}))};return v.jsx(_t,{"aria-label":`${a("unifiedCanvas.saveToGallery")} (Shift+S)`,tooltip:`${a("unifiedCanvas.saveToGallery")} (Shift+S)`,icon:v.jsx(iA,{}),onClick:o,isDisabled:e})}const C3e=Ut([xr,da,Li],(e,t,n)=>{const{isProcessing:r}=n,{tool:i}=e;return{tool:i,isStaging:t,isProcessing:r}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),E3e=()=>{const e=et(),{t}=tt(),{tool:n,isStaging:r}=be(C3e);At(["b"],()=>{i()},{enabled:()=>!r,preventDefault:!0},[]),At(["e"],()=>{a()},{enabled:()=>!r,preventDefault:!0},[n]),At(["c"],()=>{o()},{enabled:()=>!r,preventDefault:!0},[n]),At(["shift+f"],()=>{l()},{enabled:()=>!r,preventDefault:!0}),At(["delete","backspace"],()=>{c()},{enabled:()=>!r,preventDefault:!0});const i=()=>e(Cd("brush")),a=()=>e(Cd("eraser")),o=()=>e(Cd("colorPicker")),l=()=>e(Uj()),c=()=>e(Fj());return v.jsxs(Re,{flexDirection:"column",gap:2,children:[v.jsxs(jo,{children:[v.jsx(_t,{"aria-label":`${t("unifiedCanvas.brush")} (B)`,tooltip:`${t("unifiedCanvas.brush")} (B)`,icon:v.jsx(bU,{}),isChecked:n==="brush"&&!r,onClick:i,isDisabled:r}),v.jsx(_t,{"aria-label":`${t("unifiedCanvas.eraser")} (E)`,tooltip:`${t("unifiedCanvas.eraser")} (B)`,icon:v.jsx(mU,{}),isChecked:n==="eraser"&&!r,isDisabled:r,onClick:a})]}),v.jsxs(jo,{children:[v.jsx(_t,{"aria-label":`${t("unifiedCanvas.fillBoundingBox")} (Shift+F)`,tooltip:`${t("unifiedCanvas.fillBoundingBox")} (Shift+F)`,icon:v.jsx(gU,{}),isDisabled:r,onClick:l}),v.jsx(_t,{"aria-label":`${t("unifiedCanvas.eraseBoundingBox")} (Del/Backspace)`,tooltip:`${t("unifiedCanvas.eraseBoundingBox")} (Del/Backspace)`,icon:v.jsx(SS,{style:{transform:"rotate(45deg)"}}),isDisabled:r,onClick:c})]}),v.jsx(_t,{"aria-label":`${t("unifiedCanvas.colorPicker")} (C)`,tooltip:`${t("unifiedCanvas.colorPicker")} (C)`,icon:v.jsx(vU,{}),isChecked:n==="colorPicker"&&!r,isDisabled:r,onClick:o,width:"max-content"})]})},xG=()=>{const e=be(da),t=et(),{t:n}=tt(),r=()=>{t(qee()),t(fk()),t(Hj())};return v.jsxs(AE,{title:n("unifiedCanvas.emptyTempImageFolder"),acceptCallback:r,acceptButtonText:n("unifiedCanvas.emptyFolder"),triggerComponent:v.jsx(mr,{leftIcon:v.jsx(Mv,{}),size:"sm",isDisabled:e,children:n("unifiedCanvas.emptyTempImageFolder")}),children:[v.jsx("p",{children:n("unifiedCanvas.emptyTempImagesFolderMessage")}),v.jsx("br",{}),v.jsx("p",{children:n("unifiedCanvas.emptyTempImagesFolderConfirm")})]})},wG=()=>{const e=be(da),t=et(),{t:n}=tt();return v.jsxs(AE,{title:n("unifiedCanvas.clearCanvasHistory"),acceptCallback:()=>t(Hj()),acceptButtonText:n("unifiedCanvas.clearHistory"),triggerComponent:v.jsx(mr,{size:"sm",leftIcon:v.jsx(Mv,{}),isDisabled:e,children:n("unifiedCanvas.clearCanvasHistory")}),children:[v.jsx("p",{children:n("unifiedCanvas.clearCanvasHistoryMessage")}),v.jsx("br",{}),v.jsx("p",{children:n("unifiedCanvas.clearCanvasHistoryConfirm")})]})},_3e=Ut([xr],e=>{const{shouldAutoSave:t,shouldCropToBoundingBoxOnSave:n,shouldShowCanvasDebugInfo:r,shouldShowIntermediates:i}=e;return{shouldAutoSave:t,shouldCropToBoundingBoxOnSave:n,shouldShowCanvasDebugInfo:r,shouldShowIntermediates:i}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),T3e=()=>{const e=et(),{t}=tt(),{shouldAutoSave:n,shouldCropToBoundingBoxOnSave:r,shouldShowCanvasDebugInfo:i,shouldShowIntermediates:a}=be(_3e);return v.jsx(Vc,{trigger:"hover",triggerComponent:v.jsx(_t,{tooltip:t("unifiedCanvas.canvasSettings"),tooltipProps:{placement:"bottom"},"aria-label":t("unifiedCanvas.canvasSettings"),icon:v.jsx(oA,{})}),children:v.jsxs(Re,{direction:"column",gap:2,children:[v.jsx(Ci,{label:t("unifiedCanvas.showIntermediates"),isChecked:a,onChange:o=>e(e6(o.target.checked))}),v.jsx(Ci,{label:t("unifiedCanvas.autoSaveToGallery"),isChecked:n,onChange:o=>e(Kj(o.target.checked))}),v.jsx(Ci,{label:t("unifiedCanvas.saveBoxRegionOnly"),isChecked:r,onChange:o=>e(Xj(o.target.checked))}),v.jsx(Ci,{label:t("unifiedCanvas.showCanvasDebugInfo"),isChecked:i,onChange:o=>e(Jj(o.target.checked))}),v.jsx(wG,{}),v.jsx(xG,{})]})})},k3e=()=>v.jsxs(Re,{flexDirection:"column",rowGap:2,children:[v.jsx(v3e,{}),v.jsx(E3e,{}),v.jsxs(Re,{gap:2,children:[v.jsx(y3e,{}),v.jsx(x3e,{})]}),v.jsxs(Re,{columnGap:2,children:[v.jsx(g3e,{}),v.jsx(w3e,{})]}),v.jsxs(Re,{columnGap:2,children:[v.jsx(f3e,{}),v.jsx(h3e,{})]}),v.jsxs(Re,{gap:2,children:[v.jsx(bG,{}),v.jsx(yG,{})]}),v.jsxs(Re,{gap:2,children:[v.jsx(p3e,{}),v.jsx(S3e,{})]}),v.jsx(T3e,{}),v.jsx(b3e,{})]});function P3e(){const e=et(),t=be(i=>i.canvas.brushSize),{t:n}=tt(),r=be(da);return At(["BracketLeft"],()=>{e(t0(Math.max(t-5,5)))},{enabled:()=>!r,preventDefault:!0},[t]),At(["BracketRight"],()=>{e(t0(Math.min(t+5,500)))},{enabled:()=>!r,preventDefault:!0},[t]),v.jsx(ni,{label:n("unifiedCanvas.brushSize"),value:t,withInput:!0,onChange:i=>e(t0(i)),sliderNumberInputProps:{max:500},inputReadOnly:!1,isCompact:!0})}function zE(){return(zE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function CG(e,t){if(e==null)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}function xO(e){var t=A.useRef(e),n=A.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var py=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e<t?t:e},RS=function(e){return"touches"in e},wO=function(e){return e&&e.ownerDocument.defaultView||self},EG=function(e,t,n){var r=e.getBoundingClientRect(),i=RS(t)?function(a,o){for(var l=0;l<a.length;l++)if(a[l].identifier===o)return a[l];return a[0]}(t.touches,n):t;return{left:py((i.pageX-(r.left+wO(e).pageXOffset))/r.width),top:py((i.pageY-(r.top+wO(e).pageYOffset))/r.height)}},_G=function(e){!RS(e)&&e.preventDefault()},CO=A.memo(function(e){var t=e.onMove,n=e.onKey,r=CG(e,["onMove","onKey"]),i=A.useRef(null),a=xO(t),o=xO(n),l=A.useRef(null),c=A.useRef(!1),d=A.useMemo(function(){var w=function(P){_G(P),(RS(P)?P.touches.length>0:P.buttons>0)&&i.current?a(EG(i.current,P,l.current)):k(!1)},C=function(){return k(!1)};function k(P){var D=c.current,M=wO(i.current),R=P?M.addEventListener:M.removeEventListener;R(D?"touchmove":"mousemove",w),R(D?"touchend":"mouseup",C)}return[function(P){var D=P.nativeEvent,M=i.current;if(M&&(_G(D),!function(L,z){return z&&!RS(L)}(D,c.current)&&M)){if(RS(D)){c.current=!0;var R=D.changedTouches||[];R.length&&(l.current=R[0].identifier)}M.focus(),a(EG(M,D,l.current)),k(!0)}},function(P){var D=P.which||P.keyCode;D<37||D>40||(P.preventDefault(),o({left:D===39?.05:D===37?-.05:0,top:D===40?.05:D===38?-.05:0}))},k]},[o,a]),p=d[0],g=d[1],S=d[2];return A.useEffect(function(){return S},[S]),A.createElement("div",zE({},r,{onTouchStart:p,onMouseDown:p,className:"react-colorful__interactive",ref:i,onKeyDown:g,tabIndex:0,role:"slider"}))}),BE=function(e){return e.filter(Boolean).join(" ")},EO=function(e){var t=e.color,n=e.left,r=e.top,i=r===void 0?.5:r,a=BE(["react-colorful__pointer",e.className]);return A.createElement("div",{className:a,style:{top:100*i+"%",left:100*n+"%"}},A.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},qs=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},TG=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:qs(e.h),s:qs(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:qs(i/2),a:qs(r,2)}},_O=function(e){var t=TG(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},TO=function(e){var t=TG(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},A3e=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),o=r*(1-n),l=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),d=a%6;return{r:qs(255*[r,l,o,o,c,r][d]),g:qs(255*[c,r,r,l,o,o][d]),b:qs(255*[o,o,c,r,r,l][d]),a:qs(i,2)}},O3e=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,a=Math.max(t,n,r),o=a-Math.min(t,n,r),l=o?a===t?(n-r)/o:a===n?2+(r-t)/o:4+(t-n)/o:0;return{h:qs(60*(l<0?l+6:l)),s:qs(a?o/a*100:0),v:qs(a/255*100),a:i}},D3e=A.memo(function(e){var t=e.hue,n=e.onChange,r=BE(["react-colorful__hue",e.className]);return A.createElement("div",{className:r},A.createElement(CO,{onMove:function(i){n({h:360*i.left})},onKey:function(i){n({h:py(t+360*i.left,0,360)})},"aria-label":"Hue","aria-valuenow":qs(t),"aria-valuemax":"360","aria-valuemin":"0"},A.createElement(EO,{className:"react-colorful__hue-pointer",left:t/360,color:_O({h:t,s:100,v:100,a:1})})))}),M3e=A.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:_O({h:t.h,s:100,v:100,a:1})};return A.createElement("div",{className:"react-colorful__saturation",style:r},A.createElement(CO,{onMove:function(i){n({s:100*i.left,v:100-100*i.top})},onKey:function(i){n({s:py(t.s+100*i.left,0,100),v:py(t.v-100*i.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+qs(t.s)+"%, Brightness "+qs(t.v)+"%"},A.createElement(EO,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:_O(t)})))}),kG=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0};function j3e(e,t,n){var r=xO(n),i=A.useState(function(){return e.toHsva(t)}),a=i[0],o=i[1],l=A.useRef({color:t,hsva:a});A.useEffect(function(){if(!e.equal(t,l.current.color)){var d=e.toHsva(t);l.current={hsva:d,color:t},o(d)}},[t,e]),A.useEffect(function(){var d;kG(a,l.current.hsva)||e.equal(d=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:d},r(d))},[a,e,r]);var c=A.useCallback(function(d){o(function(p){return Object.assign({},p,d)})},[]);return[a,c]}var I3e=typeof window<"u"?A.useLayoutEffect:A.useEffect,R3e=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},PG=new Map,N3e=function(e){I3e(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!PG.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,PG.set(t,n);var r=R3e();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},L3e=function(e){var t=e.className,n=e.hsva,r=e.onChange,i={backgroundImage:"linear-gradient(90deg, "+TO(Object.assign({},n,{a:0}))+", "+TO(Object.assign({},n,{a:1}))+")"},a=BE(["react-colorful__alpha",t]),o=qs(100*n.a);return A.createElement("div",{className:a},A.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),A.createElement(CO,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:py(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},A.createElement(EO,{className:"react-colorful__alpha-pointer",left:n.a,color:TO(n)})))},z3e=function(e){var t=e.className,n=e.colorModel,r=e.color,i=r===void 0?n.defaultColor:r,a=e.onChange,o=CG(e,["className","colorModel","color","onChange"]),l=A.useRef(null);N3e(l);var c=j3e(n,i,a),d=c[0],p=c[1],g=BE(["react-colorful",t]);return A.createElement("div",zE({},o,{ref:l,className:g}),A.createElement(M3e,{hsva:d,onChange:p}),A.createElement(D3e,{hue:d.h,onChange:p}),A.createElement(L3e,{hsva:d,onChange:p,className:"react-colorful__last-control"}))},B3e={defaultColor:{r:0,g:0,b:0,a:1},toHsva:O3e,fromHsva:A3e,equal:kG},F3e=function(e){return A.createElement(z3e,zE({},e,{colorModel:B3e}))};const U3e=dt(F3e,{baseStyle:{paddingInline:4},shouldForwardProp:e=>!["pickerColor"].includes(e)}),kO={width:6,height:6,borderColor:"base.100"},V3e=e=>{const{styleClass:t="",...n}=e;return v.jsx(U3e,{sx:{".react-colorful__hue-pointer":kO,".react-colorful__saturation-pointer":kO,".react-colorful__alpha-pointer":kO},className:t,...n})},FE=A.memo(V3e),H3e=Ut([xr,da],(e,t)=>{const{brushColor:n,maskColor:r,layer:i}=e;return{brushColor:n,maskColor:r,layer:i,isStaging:t}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}});function G3e(){const e=et(),{brushColor:t,maskColor:n,layer:r,isStaging:i}=be(H3e),a=()=>{if(r==="base")return`rgba(${t.r},${t.g},${t.b},${t.a})`;if(r==="mask")return`rgba(${n.r},${n.g},${n.b},${n.a})`};return At(["shift+BracketLeft"],()=>{e(e0({...t,a:Qe.clamp(t.a-.05,.05,1)}))},{enabled:()=>!i,preventDefault:!0},[t]),At(["shift+BracketRight"],()=>{e(e0({...t,a:Qe.clamp(t.a+.05,.05,1)}))},{enabled:()=>!i,preventDefault:!0},[t]),v.jsx(Vc,{trigger:"hover",triggerComponent:v.jsx($n,{sx:{width:7,height:7,minWidth:7,minHeight:7,borderRadius:"full",bg:a(),cursor:"pointer"}}),children:v.jsxs(Re,{minWidth:60,direction:"column",gap:4,width:"100%",children:[r==="base"&&v.jsx(FE,{sx:{width:"100%",paddingTop:2,paddingBottom:2},pickerColor:t,onChange:o=>e(e0(o))}),r==="mask"&&v.jsx(FE,{sx:{width:"100%",paddingTop:2,paddingBottom:2},pickerColor:n,onChange:o=>e(Yj(o))})]})})}function AG(){return v.jsxs(Re,{columnGap:4,alignItems:"center",children:[v.jsx(P3e,{}),v.jsx(G3e,{})]})}function W3e(){const e=et(),t=be(r=>r.canvas.shouldRestrictStrokesToBox),{t:n}=tt();return v.jsx(Ci,{label:n("unifiedCanvas.betaLimitToBox"),isChecked:t,onChange:r=>e(r6(r.target.checked))})}function q3e(){return v.jsxs(Re,{gap:4,alignItems:"center",children:[v.jsx(AG,{}),v.jsx(W3e,{})]})}function Y3e(){const e=et(),{t}=tt(),n=()=>e(dk());return v.jsx(mr,{size:"sm",leftIcon:v.jsx(Mv,{}),onClick:n,tooltip:`${t("unifiedCanvas.clearMask")} (Shift+C)`,children:t("unifiedCanvas.betaClear")})}function K3e(){const e=be(i=>i.canvas.isMaskEnabled),t=et(),{t:n}=tt(),r=()=>t(Ub(!e));return v.jsx(Ci,{label:`${n("unifiedCanvas.enableMask")} (H)`,isChecked:e,onChange:r})}function X3e(){const e=et(),{t}=tt(),n=be(r=>r.canvas.shouldPreserveMaskedArea);return v.jsx(Ci,{label:t("unifiedCanvas.betaPreserveMasked"),isChecked:n,onChange:r=>e(Zj(r.target.checked))})}function Q3e(){return v.jsxs(Re,{gap:4,alignItems:"center",children:[v.jsx(AG,{}),v.jsx(K3e,{}),v.jsx(X3e,{}),v.jsx(Y3e,{})]})}function Z3e(){const e=be(r=>r.canvas.shouldDarkenOutsideBoundingBox),t=et(),{t:n}=tt();return v.jsx(Ci,{label:n("unifiedCanvas.betaDarkenOutside"),isChecked:e,onChange:r=>t(Qj(r.target.checked))})}function J3e(){const e=be(r=>r.canvas.shouldShowGrid),t=et(),{t:n}=tt();return v.jsx(Ci,{label:n("unifiedCanvas.showGrid"),isChecked:e,onChange:r=>t($j(r.target.checked))})}function $3e(){const e=be(i=>i.canvas.shouldSnapToGrid),t=et(),{t:n}=tt(),r=i=>t(I2(i.target.checked));return v.jsx(Ci,{label:`${n("unifiedCanvas.snapToGrid")} (N)`,isChecked:e,onChange:r})}function eAe(){return v.jsxs(Re,{alignItems:"center",gap:4,children:[v.jsx(J3e,{}),v.jsx($3e,{}),v.jsx(Z3e,{})]})}const tAe=Ut([xr],e=>{const{tool:t,layer:n}=e;return{tool:t,layer:n}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}});function nAe(){const{tool:e,layer:t}=be(tAe);return v.jsxs(Re,{height:8,minHeight:8,maxHeight:8,alignItems:"center",children:[t=="base"&&["brush","eraser","colorPicker"].includes(e)&&v.jsx(q3e,{}),t=="mask"&&["brush","eraser","colorPicker"].includes(e)&&v.jsx(Q3e,{}),e=="move"&&v.jsx(eAe,{})]})}const rAe=Ut([xr],e=>{const{doesCanvasNeedScaling:t}=e;return{doesCanvasNeedScaling:t}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),iAe=()=>{const e=et(),{doesCanvasNeedScaling:t}=be(rAe);return A.useLayoutEffect(()=>{e(gs());const n=()=>{e(gs())};return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[e]),v.jsx($n,{sx:{width:"100%",height:"100%",borderRadius:"base",bg:"base.850"},children:v.jsxs(Re,{flexDirection:"row",width:"100%",height:"100%",columnGap:4,padding:4,children:[v.jsx(k3e,{}),v.jsxs(Re,{width:"100%",height:"100%",flexDirection:"column",rowGap:4,children:[v.jsx(nAe,{}),t?v.jsx(gG,{}):v.jsx(vG,{})]})]})})},aAe=Ut([xr,da],(e,t)=>{const{maskColor:n,layer:r,isMaskEnabled:i,shouldPreserveMaskedArea:a}=e;return{layer:r,maskColor:n,maskColorString:Gv(n),isMaskEnabled:i,shouldPreserveMaskedArea:a,isStaging:t}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),oAe=()=>{const e=et(),{t}=tt(),{layer:n,maskColor:r,isMaskEnabled:i,shouldPreserveMaskedArea:a,isStaging:o}=be(aAe);At(["q"],()=>{l()},{enabled:()=>!o,preventDefault:!0},[n]),At(["shift+c"],()=>{c()},{enabled:()=>!o,preventDefault:!0},[]),At(["h"],()=>{d()},{enabled:()=>!o,preventDefault:!0},[i]);const l=()=>{e(j2(n==="mask"?"base":"mask"))},c=()=>e(dk()),d=()=>e(Ub(!i));return v.jsx(Vc,{trigger:"hover",triggerComponent:v.jsx(jo,{children:v.jsx(_t,{"aria-label":t("unifiedCanvas.maskingOptions"),tooltip:t("unifiedCanvas.maskingOptions"),icon:v.jsx(pxe,{}),isChecked:n==="mask",isDisabled:o})}),children:v.jsxs(Re,{direction:"column",gap:2,children:[v.jsx(Ci,{label:`${t("unifiedCanvas.enableMask")} (H)`,isChecked:i,onChange:d}),v.jsx(Ci,{label:t("unifiedCanvas.preserveMaskedArea"),isChecked:a,onChange:p=>e(Zj(p.target.checked))}),v.jsx(FE,{sx:{paddingTop:2,paddingBottom:2},pickerColor:r,onChange:p=>e(Yj(p))}),v.jsxs(mr,{size:"sm",leftIcon:v.jsx(Mv,{}),onClick:c,children:[t("unifiedCanvas.clearMask")," (Shift+C)"]})]})})},sAe=Ut([xr],e=>{const{shouldAutoSave:t,shouldCropToBoundingBoxOnSave:n,shouldDarkenOutsideBoundingBox:r,shouldShowCanvasDebugInfo:i,shouldShowGrid:a,shouldShowIntermediates:o,shouldSnapToGrid:l,shouldRestrictStrokesToBox:c}=e;return{shouldAutoSave:t,shouldCropToBoundingBoxOnSave:n,shouldDarkenOutsideBoundingBox:r,shouldShowCanvasDebugInfo:i,shouldShowGrid:a,shouldShowIntermediates:o,shouldSnapToGrid:l,shouldRestrictStrokesToBox:c}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),lAe=()=>{const e=et(),{t}=tt(),{shouldAutoSave:n,shouldCropToBoundingBoxOnSave:r,shouldDarkenOutsideBoundingBox:i,shouldShowCanvasDebugInfo:a,shouldShowGrid:o,shouldShowIntermediates:l,shouldSnapToGrid:c,shouldRestrictStrokesToBox:d}=be(sAe);At(["n"],()=>{e(I2(!c))},{enabled:!0,preventDefault:!0},[c]);const p=g=>e(I2(g.target.checked));return v.jsx(Vc,{trigger:"hover",triggerComponent:v.jsx(_t,{tooltip:t("unifiedCanvas.canvasSettings"),"aria-label":t("unifiedCanvas.canvasSettings"),icon:v.jsx(oA,{})}),children:v.jsxs(Re,{direction:"column",gap:2,children:[v.jsx(Ci,{label:t("unifiedCanvas.showIntermediates"),isChecked:l,onChange:g=>e(e6(g.target.checked))}),v.jsx(Ci,{label:t("unifiedCanvas.showGrid"),isChecked:o,onChange:g=>e($j(g.target.checked))}),v.jsx(Ci,{label:t("unifiedCanvas.snapToGrid"),isChecked:c,onChange:p}),v.jsx(Ci,{label:t("unifiedCanvas.darkenOutsideSelection"),isChecked:i,onChange:g=>e(Qj(g.target.checked))}),v.jsx(Ci,{label:t("unifiedCanvas.autoSaveToGallery"),isChecked:n,onChange:g=>e(Kj(g.target.checked))}),v.jsx(Ci,{label:t("unifiedCanvas.saveBoxRegionOnly"),isChecked:r,onChange:g=>e(Xj(g.target.checked))}),v.jsx(Ci,{label:t("unifiedCanvas.limitStrokesToBox"),isChecked:d,onChange:g=>e(r6(g.target.checked))}),v.jsx(Ci,{label:t("unifiedCanvas.showCanvasDebugInfo"),isChecked:a,onChange:g=>e(Jj(g.target.checked))}),v.jsx(wG,{}),v.jsx(xG,{})]})})},uAe=Ut([xr,da,Li],(e,t,n)=>{const{isProcessing:r}=n,{tool:i,brushColor:a,brushSize:o}=e;return{tool:i,isStaging:t,isProcessing:r,brushColor:a,brushSize:o}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),cAe=()=>{const e=et(),{tool:t,brushColor:n,brushSize:r,isStaging:i}=be(uAe),{t:a}=tt();At(["b"],()=>{o()},{enabled:()=>!i,preventDefault:!0},[]),At(["e"],()=>{l()},{enabled:()=>!i,preventDefault:!0},[t]),At(["c"],()=>{c()},{enabled:()=>!i,preventDefault:!0},[t]),At(["shift+f"],()=>{d()},{enabled:()=>!i,preventDefault:!0}),At(["delete","backspace"],()=>{p()},{enabled:()=>!i,preventDefault:!0}),At(["BracketLeft"],()=>{e(t0(Math.max(r-5,5)))},{enabled:()=>!i,preventDefault:!0},[r]),At(["BracketRight"],()=>{e(t0(Math.min(r+5,500)))},{enabled:()=>!i,preventDefault:!0},[r]),At(["shift+BracketLeft"],()=>{e(e0({...n,a:Qe.clamp(n.a-.05,.05,1)}))},{enabled:()=>!i,preventDefault:!0},[n]),At(["shift+BracketRight"],()=>{e(e0({...n,a:Qe.clamp(n.a+.05,.05,1)}))},{enabled:()=>!i,preventDefault:!0},[n]);const o=()=>e(Cd("brush")),l=()=>e(Cd("eraser")),c=()=>e(Cd("colorPicker")),d=()=>e(Uj()),p=()=>e(Fj());return v.jsxs(jo,{isAttached:!0,children:[v.jsx(_t,{"aria-label":`${a("unifiedCanvas.brush")} (B)`,tooltip:`${a("unifiedCanvas.brush")} (B)`,icon:v.jsx(bU,{}),isChecked:t==="brush"&&!i,onClick:o,isDisabled:i}),v.jsx(_t,{"aria-label":`${a("unifiedCanvas.eraser")} (E)`,tooltip:`${a("unifiedCanvas.eraser")} (E)`,icon:v.jsx(mU,{}),isChecked:t==="eraser"&&!i,isDisabled:i,onClick:l}),v.jsx(_t,{"aria-label":`${a("unifiedCanvas.fillBoundingBox")} (Shift+F)`,tooltip:`${a("unifiedCanvas.fillBoundingBox")} (Shift+F)`,icon:v.jsx(gU,{}),isDisabled:i,onClick:d}),v.jsx(_t,{"aria-label":`${a("unifiedCanvas.eraseBoundingBox")} (Del/Backspace)`,tooltip:`${a("unifiedCanvas.eraseBoundingBox")} (Del/Backspace)`,icon:v.jsx(SS,{style:{transform:"rotate(45deg)"}}),isDisabled:i,onClick:p}),v.jsx(_t,{"aria-label":`${a("unifiedCanvas.colorPicker")} (C)`,tooltip:`${a("unifiedCanvas.colorPicker")} (C)`,icon:v.jsx(vU,{}),isChecked:t==="colorPicker"&&!i,isDisabled:i,onClick:c}),v.jsx(Vc,{trigger:"hover",triggerComponent:v.jsx(_t,{"aria-label":a("unifiedCanvas.brushOptions"),tooltip:a("unifiedCanvas.brushOptions"),icon:v.jsx(aA,{})}),children:v.jsxs(Re,{minWidth:60,direction:"column",gap:4,width:"100%",children:[v.jsx(Re,{gap:4,justifyContent:"space-between",children:v.jsx(ni,{label:a("unifiedCanvas.brushSize"),value:r,withInput:!0,onChange:g=>e(t0(g)),sliderNumberInputProps:{max:500},inputReadOnly:!1})}),v.jsx(FE,{sx:{width:"100%",paddingTop:2,paddingBottom:2},pickerColor:n,onChange:g=>e(e0(g))})]})})]})},dAe=Ut([Li,xr,da],(e,t,n)=>{const{isProcessing:r}=e,{tool:i,shouldCropToBoundingBoxOnSave:a,layer:o,isMaskEnabled:l}=t;return{isProcessing:r,isStaging:n,isMaskEnabled:l,tool:i,layer:o,shouldCropToBoundingBoxOnSave:a}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),fAe=()=>{const e=et(),{isProcessing:t,isStaging:n,isMaskEnabled:r,layer:i,tool:a,shouldCropToBoundingBoxOnSave:o}=be(dAe),l=Dc(),{t:c}=tt(),{openUploader:d}=lA();At(["v"],()=>{p()},{enabled:()=>!n,preventDefault:!0},[]),At(["r"],()=>{S()},{enabled:()=>!0,preventDefault:!0},[l]),At(["shift+m"],()=>{C()},{enabled:()=>!n,preventDefault:!0},[l,t]),At(["shift+s"],()=>{k()},{enabled:()=>!n,preventDefault:!0},[l,t]),At(["meta+c","ctrl+c"],()=>{P()},{enabled:()=>!n,preventDefault:!0},[l,t]),At(["shift+d"],()=>{D()},{enabled:()=>!n,preventDefault:!0},[l,t]);const p=()=>e(Cd("move")),g=SG(()=>S(!1),()=>S(!0)),S=(R=!1)=>{const L=Dc();if(!L)return;const z=L.getClientRect({skipTransform:!0});e(Gj({contentRect:z,shouldScaleTo1:R}))},w=()=>{e(fk()),e(A2())},C=()=>{e(Zp({cropVisible:!1,shouldSetAsInitialImage:!0}))},k=()=>{e(Zp({cropVisible:!o,cropToBoundingBox:o,shouldSaveToGallery:!0}))},P=()=>{e(Zp({cropVisible:!o,cropToBoundingBox:o,shouldCopy:!0}))},D=()=>{e(Zp({cropVisible:!o,cropToBoundingBox:o,shouldDownload:!0}))},M=R=>{const L=R.target.value;e(j2(L)),L==="mask"&&!r&&e(Ub(!0))};return v.jsxs(Re,{sx:{alignItems:"center",gap:2},children:[v.jsx(wl,{tooltip:`${c("unifiedCanvas.layer")} (Q)`,tooltipProps:{hasArrow:!0,placement:"top"},value:i,validValues:zj,onChange:M,isDisabled:n}),v.jsx(oAe,{}),v.jsx(cAe,{}),v.jsxs(jo,{isAttached:!0,children:[v.jsx(_t,{"aria-label":`${c("unifiedCanvas.move")} (V)`,tooltip:`${c("unifiedCanvas.move")} (V)`,icon:v.jsx(fU,{}),isChecked:a==="move"||n,onClick:p}),v.jsx(_t,{"aria-label":`${c("unifiedCanvas.resetView")} (R)`,tooltip:`${c("unifiedCanvas.resetView")} (R)`,icon:v.jsx(pU,{}),onClick:g})]}),v.jsxs(jo,{isAttached:!0,children:[v.jsx(_t,{"aria-label":`${c("unifiedCanvas.mergeVisible")} (Shift+M)`,tooltip:`${c("unifiedCanvas.mergeVisible")} (Shift+M)`,icon:v.jsx(yU,{}),onClick:C,isDisabled:n}),v.jsx(_t,{"aria-label":`${c("unifiedCanvas.saveToGallery")} (Shift+S)`,tooltip:`${c("unifiedCanvas.saveToGallery")} (Shift+S)`,icon:v.jsx(iA,{}),onClick:k,isDisabled:n}),v.jsx(_t,{"aria-label":`${c("unifiedCanvas.copyToClipboard")} (Cmd/Ctrl+C)`,tooltip:`${c("unifiedCanvas.copyToClipboard")} (Cmd/Ctrl+C)`,icon:v.jsx(ly,{}),onClick:P,isDisabled:n}),v.jsx(_t,{"aria-label":`${c("unifiedCanvas.downloadAsImage")} (Shift+D)`,tooltip:`${c("unifiedCanvas.downloadAsImage")} (Shift+D)`,icon:v.jsx(rA,{}),onClick:D,isDisabled:n})]}),v.jsxs(jo,{isAttached:!0,children:[v.jsx(bG,{}),v.jsx(yG,{})]}),v.jsxs(jo,{isAttached:!0,children:[v.jsx(_t,{"aria-label":`${c("common.upload")}`,tooltip:`${c("common.upload")}`,icon:v.jsx(fE,{}),onClick:d,isDisabled:n}),v.jsx(_t,{"aria-label":`${c("unifiedCanvas.clearCanvas")}`,tooltip:`${c("unifiedCanvas.clearCanvas")}`,icon:v.jsx(Mv,{}),onClick:w,colorScheme:"error",isDisabled:n})]}),v.jsx(jo,{isAttached:!0,children:v.jsx(lAe,{})})]})},hAe=Ut([xr],e=>{const{doesCanvasNeedScaling:t}=e;return{doesCanvasNeedScaling:t}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),pAe=()=>{const e=et(),{doesCanvasNeedScaling:t}=be(hAe);return A.useLayoutEffect(()=>{e(gs());const n=()=>{e(gs())};return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[e]),v.jsx($n,{sx:{width:"100%",height:"100%",padding:4,borderRadius:"base",bg:"base.850"},children:v.jsxs(Re,{sx:{flexDirection:"column",alignItems:"center",gap:4,width:"100%",height:"100%"},children:[v.jsx(fAe,{}),v.jsx(Re,{sx:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:4,width:"100%",height:"100%"},children:t?v.jsx(gG,{}):v.jsx(vG,{})})]})})},mAe=Ut(xr,e=>{const{boundingBoxDimensions:t,boundingBoxScaleMethod:n}=e;return{boundingBoxDimensions:t,boundingBoxScale:n}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),vAe=()=>{const e=et(),{boundingBoxDimensions:t}=be(mAe),{t:n}=tt(),r=l=>{e(Fb({...t,width:Math.floor(l)}))},i=l=>{e(Fb({...t,height:Math.floor(l)}))},a=()=>{e(Fb({...t,width:Math.floor(512)}))},o=()=>{e(Fb({...t,height:Math.floor(512)}))};return v.jsxs(Mn,{gap:2,alignItems:"stretch",children:[v.jsx(ni,{label:n("parameters.width"),min:64,max:1024,step:64,value:t.width,onChange:r,sliderNumberInputProps:{max:4096},withSliderMarks:!0,withInput:!0,inputReadOnly:!0,withReset:!0,handleReset:a}),v.jsx(ni,{label:n("parameters.height"),min:64,max:1024,step:64,value:t.height,onChange:i,sliderNumberInputProps:{max:4096},withSliderMarks:!0,withInput:!0,inputReadOnly:!0,withReset:!0,handleReset:o})]})},gAe=Ut([lO,Li,xr],(e,t,n)=>{const{tileSize:r,infillMethod:i}=e,{infill_methods:a}=t,{boundingBoxScaleMethod:o,scaledBoundingBoxDimensions:l}=n;return{boundingBoxScale:o,scaledBoundingBoxDimensions:l,tileSize:r,infillMethod:i,availableInfillMethods:a,isManual:o==="manual"}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),yAe=()=>{const e=et(),{tileSize:t,infillMethod:n,availableInfillMethods:r,boundingBoxScale:i,isManual:a,scaledBoundingBoxDimensions:o}=be(gAe),{t:l}=tt(),c=w=>{e(R2({...o,width:Math.floor(w)}))},d=w=>{e(R2({...o,height:Math.floor(w)}))},p=()=>{e(R2({...o,width:Math.floor(512)}))},g=()=>{e(R2({...o,height:Math.floor(512)}))},S=w=>{e(QK(w.target.value))};return v.jsxs(Mn,{gap:2,alignItems:"stretch",children:[v.jsx(wl,{label:l("parameters.scaleBeforeProcessing"),validValues:IK,value:i,onChange:S}),v.jsx(ni,{isInputDisabled:!a,isResetDisabled:!a,isSliderDisabled:!a,label:l("parameters.scaledWidth"),min:64,max:1024,step:64,value:o.width,onChange:c,sliderNumberInputProps:{max:4096},withSliderMarks:!0,withInput:!0,inputReadOnly:!0,withReset:!0,handleReset:p}),v.jsx(ni,{isInputDisabled:!a,isResetDisabled:!a,isSliderDisabled:!a,label:l("parameters.scaledHeight"),min:64,max:1024,step:64,value:o.height,onChange:d,sliderNumberInputProps:{max:4096},withSliderMarks:!0,withInput:!0,inputReadOnly:!0,withReset:!0,handleReset:g}),v.jsx(wl,{label:l("parameters.infillMethod"),value:n,validValues:r,onChange:w=>e(v6(w.target.value))}),v.jsx(ni,{isInputDisabled:n!=="tile",isResetDisabled:n!=="tile",isSliderDisabled:n!=="tile",label:l("parameters.tileSize"),min:16,max:64,sliderNumberInputProps:{max:256},value:t,onChange:w=>{e(A6(w))},withInput:!0,withSliderMarks:!0,withReset:!0,handleReset:()=>{e(A6(32))}})]})};function bAe(){const e=et(),t=be(r=>r.generation.seamBlur),{t:n}=tt();return v.jsx(ni,{label:n("parameters.seamBlur"),min:0,max:64,sliderNumberInputProps:{max:512},value:t,onChange:r=>{e(w6(r))},withInput:!0,withSliderMarks:!0,withReset:!0,handleReset:()=>{e(w6(16))}})}function SAe(){const e=et(),{t}=tt(),n=be(r=>r.generation.seamSize);return v.jsx(ni,{label:t("parameters.seamSize"),min:1,max:256,sliderNumberInputProps:{max:512},value:n,onChange:r=>{e(E6(r))},withInput:!0,withSliderMarks:!0,withReset:!0,handleReset:()=>e(E6(96))})}function xAe(){const{t:e}=tt(),t=be(r=>r.generation.seamSteps),n=et();return v.jsx(ni,{label:e("parameters.seamSteps"),min:1,max:100,sliderNumberInputProps:{max:999},value:t,onChange:r=>{n(_6(r))},withInput:!0,withSliderMarks:!0,withReset:!0,handleReset:()=>{n(_6(30))}})}function wAe(){const e=et(),{t}=tt(),n=be(r=>r.generation.seamStrength);return v.jsx(ni,{label:t("parameters.seamStrength"),min:.01,max:.99,step:.01,value:n,onChange:r=>{e(T6(r))},withInput:!0,withSliderMarks:!0,withReset:!0,handleReset:()=>{e(T6(.7))}})}const CAe=()=>v.jsxs(Mn,{gap:2,alignItems:"stretch",children:[v.jsx(SAe,{}),v.jsx(bAe,{}),v.jsx(wAe,{}),v.jsx(xAe,{})]});function EAe(){const{t:e}=tt(),t={general:{header:`${e("parameters.general")}`,feature:void 0,content:v.jsx(aO,{})},unifiedCanvasImg2Img:{header:`${e("parameters.imageToImage")}`,feature:void 0,content:v.jsx(KH,{label:e("parameters.img2imgStrength")})},seed:{header:`${e("parameters.seed")}`,feature:ys.SEED,content:v.jsx(nO,{})},boundingBox:{header:`${e("parameters.boundingBoxHeader")}`,feature:ys.BOUNDING_BOX,content:v.jsx(vAe,{})},seamCorrection:{header:`${e("parameters.seamCorrectionHeader")}`,feature:ys.SEAM_CORRECTION,content:v.jsx(CAe,{})},infillAndScaling:{header:`${e("parameters.infillScalingHeader")}`,feature:ys.INFILL_AND_SCALING,content:v.jsx(yAe,{})},variations:{header:`${e("parameters.variations")}`,feature:ys.VARIATIONS,content:v.jsx(iO,{}),additionalHeaderComponents:v.jsx(rO,{})},symmetry:{header:`${e("parameters.symmetry")}`,content:v.jsx(eO,{}),additionalHeaderComponents:v.jsx(tO,{})}};return v.jsxs(Re,{flexDir:"column",gap:2,position:"relative",children:[v.jsx(fO,{}),v.jsx(dO,{}),v.jsx(cO,{}),v.jsx(oO,{accordionInfo:t})]})}function _Ae(){const e=be(n=>n.ui.shouldUseCanvasBetaLayout),t=be(ki);return v.jsx(KA,{parametersPanelContent:v.jsx(EAe,{}),children:t==="unifiedCanvas"&&(e?v.jsx(iAe,{}):v.jsx(pAe,{}))})}const my={boxSize:6},OG=[{id:"txt2img",icon:v.jsx(Pa,{as:Rke,sx:my}),workarea:v.jsx(lPe,{})},{id:"img2img",icon:v.jsx(Pa,{as:qA,sx:my}),workarea:v.jsx(ePe,{})},{id:"unifiedCanvas",icon:v.jsx(Pa,{as:zke,sx:my}),workarea:v.jsx(_Ae,{})},{id:"nodes",icon:v.jsx(Pa,{as:Nke,sx:my}),workarea:v.jsx(Gke,{})},{id:"postprocessing",icon:v.jsx(Pa,{as:Bke,sx:my}),workarea:v.jsx(Wke,{})},{id:"training",icon:v.jsx(Pa,{as:Lke,sx:my}),workarea:v.jsx(qke,{})}];function TAe(){const e=be(kxe),t=be(c=>c.lightbox.isLightboxOpen),n=be(c=>c.ui.shouldPinGallery),r=be(c=>c.ui.shouldPinParametersPanel),{t:i}=tt(),a=et();At("1",()=>{a(ml(0))}),At("2",()=>{a(ml(1))}),At("3",()=>{a(ml(2))}),At("4",()=>{a(ml(3))}),At("5",()=>{a(ml(4))}),At("6",()=>{a(ml(5))}),At("z",()=>{a($m(!t))},[t]),At("f",()=>{a(hZ()),(n||r)&&a(gs())},[n,r]);const o=A.useMemo(()=>OG.map(c=>v.jsx(oo,{hasArrow:!0,label:String(i(`common.${c.id}`)),placement:"end",children:v.jsxs(oU,{children:[v.jsx(S7,{children:String(i(`common.${c.id}`))}),c.icon]})},c.id)),[i]),l=A.useMemo(()=>OG.map(c=>v.jsx(iU,{children:c.workarea},c.id)),[]);return v.jsxs(nU,{isLazy:!0,defaultIndex:e,index:e,onChange:c=>{a(ml(c))},flexGrow:1,children:[v.jsx(rU,{children:o}),v.jsx(aU,{children:l})]})}function kAe(){async function e(n=""){return await fetch(n,{method:"GET",cache:"no-cache"})}const t=()=>{const n=document.location;e(n+"/flaskwebgui-keep-server-alive").then(i=>i)};(!{}.NODE_ENV||{}.NODE_ENV==="production")&&document.addEventListener("DOMContentLoaded",()=>{t(),setInterval(t,3e3)})}const PAe=()=>{const e=et(),t=be(q2e),n=nS();A.useEffect(()=>{t.forEach(r=>{n(r)}),t.length>0&&e(aZ())},[e,n,t])},AAe=Ut([ki,Wd],(e,t)=>{const{shouldPinGallery:n,shouldShowGallery:r}=t;return{shouldPinGallery:n,shouldShowGalleryButton:(!n||!r)&&["txt2img","img2img","unifiedCanvas"].includes(e)}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),OAe=()=>{const{t:e}=tt(),{shouldPinGallery:t,shouldShowGalleryButton:n}=be(AAe),r=et(),i=()=>{r(Lk(!0)),t&&r(gs())};return n?v.jsx(_t,{tooltip:"Show Gallery (G)",tooltipProps:{placement:"top"},"aria-label":e("accessibility.showGallery"),onClick:i,sx:{pos:"absolute",top:"50%",transform:"translate(0, -50%)",zIndex:31,p:0,insetInlineEnd:0,px:3,h:48,w:8,borderStartEndRadius:0,borderEndEndRadius:0},children:v.jsx(qA,{})}):null},PO={borderStartStartRadius:0,borderEndStartRadius:0},DAe=Ut([Wd,ki],(e,t)=>{const{shouldPinParametersPanel:n,shouldUseCanvasBetaLayout:r,shouldShowParametersPanel:i}=e,a=r&&t==="unifiedCanvas",o=!a&&(!n||!i),l=!a&&(!n||!i)&&["txt2img","img2img","unifiedCanvas"].includes(t);return{shouldPinParametersPanel:n,shouldShowParametersPanelButton:l,shouldShowProcessButtons:o}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}}),MAe=()=>{const e=et(),{t}=tt(),{shouldShowProcessButtons:n,shouldShowParametersPanelButton:r,shouldPinParametersPanel:i}=be(DAe),a=()=>{e(J2(!0)),i&&e(gs())};return r?v.jsxs(Re,{pos:"absolute",transform:"translate(0, -50%)",zIndex:20,minW:8,top:"50%",insetInlineStart:"4.5rem",direction:"column",gap:2,children:[v.jsx(_t,{tooltip:"Show Options Panel (O)",tooltipProps:{placement:"top"},"aria-label":t("accessibility.showOptionsPanel"),onClick:a,sx:PO,children:v.jsx(aA,{})}),n&&v.jsxs(v.Fragment,{children:[v.jsx(uO,{iconButton:!0,sx:PO}),v.jsx(sO,{sx:PO})]})]}):null},dRe="";var NS=globalThis&&globalThis.__assign||function(){return NS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},NS.apply(this,arguments)};function jAe(e){var t,n=A.useState(!1),r=n[0],i=n[1],a=A.useState(!1),o=a[0],l=a[1],c=A.useState(!1),d=c[0],p=c[1],g=A.useState([0,0]),S=g[0],w=g[1],C=A.useRef(null);A.useEffect(function(){if(r)setTimeout(function(){l(!0),setTimeout(function(){p(!0)})});else{p(!1);var P=setTimeout(function(){l(r)},1e3);return function(){return clearTimeout(P)}}},[r]),p0e("contextmenu",function(P){var D;!((D=C.current)===null||D===void 0)&&D.contains(P.target)||P.target===C.current?(P.preventDefault(),i(!0),w([P.pageX,P.pageY])):i(!1)});var k=A.useCallback(function(){var P,D;(D=(P=e.menuProps)===null||P===void 0?void 0:P.onClose)===null||D===void 0||D.call(P),i(!1)},[(t=e.menuProps)===null||t===void 0?void 0:t.onClose,i]);return vt.createElement(vt.Fragment,null,e.children(C),o&&vt.createElement($f,NS({},e.portalProps),vt.createElement(P3,NS({isOpen:d,gutter:0},e.menuProps,{onClose:k}),vt.createElement(O3,NS({"aria-hidden":!0,w:1,h:1,style:{position:"absolute",left:S[0],top:S[1],cursor:"default"}},e.menuButtonProps)),e.renderMenu())))}const IAe=(e,t)=>e.image.uuid===t.image.uuid&&e.isSelected===t.isSelected,DG=A.memo(e=>{const t=et(),{activeTabName:n,galleryImageObjectFit:r,galleryImageMinimumWidth:i,mayDeleteImage:a,shouldUseSingleGalleryColumn:o}=be(Kke),{image:l,isSelected:c}=e,{url:d,thumbnail:p,uuid:g,metadata:S}=l,[w,C]=A.useState(!1),k=nS(),{direction:P}=Cp(),{t:D}=tt(),M=JA(),R=()=>C(!0),L=()=>C(!1),z=()=>{var G,te,re,oe;(te=(G=l.metadata)==null?void 0:G.image)!=null&&te.prompt&&M((oe=(re=l.metadata)==null?void 0:re.image)==null?void 0:oe.prompt),k({title:D("toast.promptSet"),status:"success",duration:2500,isClosable:!0})},U=()=>{l.metadata&&t(Vb(l.metadata.image.seed)),k({title:D("toast.seedSet"),status:"success",duration:2500,isClosable:!0})},V=()=>{t(i0(l)),n!=="img2img"&&t(ml("img2img")),k({title:D("toast.sentToImageToImage"),status:"success",duration:2500,isClosable:!0})},Y=()=>{t(O2(l)),t(A2()),n!=="unifiedCanvas"&&t(ml("unifiedCanvas")),k({title:D("toast.sentToUnifiedCanvas"),status:"success",duration:2500,isClosable:!0})},J=()=>{S&&t(m6(S)),k({title:D("toast.parametersSet"),status:"success",duration:2500,isClosable:!0})},$=async()=>{var G;if((G=S==null?void 0:S.image)!=null&&G.init_image_path&&(await fetch(S.image.init_image_path)).ok){t(ml("img2img")),t(mX(S)),k({title:D("toast.initialImageSet"),status:"success",duration:2500,isClosable:!0});return}k({title:D("toast.initialImageNotSet"),description:D("toast.initialImageNotSetDesc"),status:"error",duration:2500,isClosable:!0})},K=()=>t(o6(l)),fe=G=>{G.dataTransfer.setData("invokeai/imageUuid",g),G.dataTransfer.effectAllowed="move"},X=()=>{t(o6(l)),t($m(!0))};return v.jsx(jAe,{menuProps:{size:"sm",isLazy:!0},renderMenu:()=>{var G,te,re,oe,ie,le,ee,de;return v.jsxs(A3,{children:[v.jsx(Gd,{onClickCapture:X,children:D("parameters.openInViewer")}),v.jsx(Gd,{onClickCapture:z,isDisabled:((te=(G=l==null?void 0:l.metadata)==null?void 0:G.image)==null?void 0:te.prompt)===void 0,children:D("parameters.usePrompt")}),v.jsx(Gd,{onClickCapture:U,isDisabled:((oe=(re=l==null?void 0:l.metadata)==null?void 0:re.image)==null?void 0:oe.seed)===void 0,children:D("parameters.useSeed")}),v.jsx(Gd,{onClickCapture:J,isDisabled:!["txt2img","img2img"].includes((le=(ie=l==null?void 0:l.metadata)==null?void 0:ie.image)==null?void 0:le.type),children:D("parameters.useAll")}),v.jsx(Gd,{onClickCapture:$,isDisabled:((de=(ee=l==null?void 0:l.metadata)==null?void 0:ee.image)==null?void 0:de.type)!=="img2img",children:D("parameters.useInitImg")}),v.jsx(Gd,{onClickCapture:V,children:D("parameters.sendToImg2Img")}),v.jsx(Gd,{onClickCapture:Y,children:D("parameters.sendToUnifiedCanvas")}),v.jsx(Gd,{"data-warning":!0,children:v.jsx(jE,{image:l,children:v.jsx("p",{children:D("parameters.deleteImage")})})})]})},children:G=>v.jsxs($n,{position:"relative",onMouseOver:R,onMouseOut:L,userSelect:"none",draggable:!0,onDragStart:fe,ref:G,sx:{padding:2,display:"flex",justifyContent:"center",transition:"transform 0.2s ease-out",_hover:{cursor:"pointer",zIndex:2},_before:{content:'""',display:"block",paddingBottom:"100%"}},children:[v.jsx(iS,{objectFit:o?"contain":r,rounded:"md",src:p||d,loading:"lazy",sx:{position:"absolute",width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%",top:"50%",transform:"translate(-50%,-50%)",...P==="rtl"?{insetInlineEnd:"50%"}:{insetInlineStart:"50%"}}}),v.jsx(Re,{onClick:K,sx:{position:"absolute",top:"0",insetInlineStart:"0",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"},children:c&&v.jsx(Pa,{as:dE,sx:{width:"50%",height:"50%",fill:"ok.500"}})}),w&&i>=64&&v.jsx($n,{sx:{position:"absolute",top:1,insetInlineEnd:1},children:v.jsx(jE,{image:l,children:v.jsx(_t,{"aria-label":D("parameters.deleteImage"),icon:v.jsx(Exe,{}),size:"xs",fontSize:14,isDisabled:!a})})})]},g)})},IAe);DG.displayName="HoverableImage";const RAe=290,MG=()=>{const e=et(),{t}=tt(),n=A.useRef(null),[r,i]=A.useState(!0),{images:a,currentCategory:o,currentImageUuid:l,shouldPinGallery:c,galleryImageMinimumWidth:d,galleryGridTemplateColumns:p,galleryImageObjectFit:g,shouldAutoSwitchToNewImages:S,areMoreImagesAvailable:w,shouldUseSingleGalleryColumn:C}=be(Yke),k=()=>{e(y4(o))},P=M=>{e(N2(M))},D=()=>{e(HI()),e(gs())};return A.useEffect(()=>{if(!n.current)return;const M=new ResizeObserver(()=>{if(n.current){if(n.current.clientWidth<RAe){i(!0);return}i(!1)}});return M.observe(n.current),()=>M.disconnect()},[]),v.jsxs(Re,{flexDirection:"column",w:"full",h:"full",gap:4,children:[v.jsxs(Re,{ref:n,alignItems:"center",justifyContent:"space-between",children:[v.jsx(jo,{size:"sm",isAttached:!0,w:"max-content",justifyContent:"stretch",children:r?v.jsxs(v.Fragment,{children:[v.jsx(_t,{"aria-label":t("gallery.showGenerations"),tooltip:t("gallery.showGenerations"),isChecked:o==="result",role:"radio",icon:v.jsx(dxe,{}),onClick:()=>e(L2("result"))}),v.jsx(_t,{"aria-label":t("gallery.showUploads"),tooltip:t("gallery.showUploads"),role:"radio",isChecked:o==="user",icon:v.jsx(Txe,{}),onClick:()=>e(L2("user"))})]}):v.jsxs(v.Fragment,{children:[v.jsx(mr,{size:"sm",isChecked:o==="result",onClick:()=>e(L2("result")),flexGrow:1,children:t("gallery.generations")}),v.jsx(mr,{size:"sm",isChecked:o==="user",onClick:()=>e(L2("user")),flexGrow:1,children:t("gallery.uploads")})]})}),v.jsxs(Re,{gap:2,children:[v.jsx(Vc,{triggerComponent:v.jsx(_t,{size:"sm","aria-label":t("gallery.gallerySettings"),icon:v.jsx(oA,{})}),children:v.jsxs(Re,{direction:"column",gap:2,children:[v.jsx(ni,{value:d,onChange:P,min:32,max:256,hideTooltip:!0,label:t("gallery.galleryImageSize"),withReset:!0,handleReset:()=>e(N2(64))}),v.jsx(Ci,{label:t("gallery.maintainAspectRatio"),isChecked:g==="contain",onChange:()=>e(lX(g==="contain"?"cover":"contain"))}),v.jsx(Ci,{label:t("gallery.autoSwitchNewImages"),isChecked:S,onChange:M=>e(uX(M.target.checked))}),v.jsx(Ci,{label:t("gallery.singleColumnLayout"),isChecked:C,onChange:M=>e(cX(M.target.checked))})]})}),v.jsx(_t,{size:"sm","aria-label":t("gallery.pinGallery"),tooltip:`${t("gallery.pinGallery")} (Shift+G)`,onClick:D,icon:c?v.jsx(PH,{}):v.jsx(AH,{})})]})]}),v.jsx(kH,{children:v.jsx(Re,{direction:"column",gap:2,h:"full",children:a.length||w?v.jsxs(v.Fragment,{children:[v.jsx(zc,{gap:2,style:{gridTemplateColumns:p},children:a.map(M=>{const{uuid:R}=M,L=l===R;return v.jsx(DG,{image:M,isSelected:L},R)})}),v.jsx(mr,{onClick:k,isDisabled:!w,flexShrink:0,children:t(w?"gallery.loadMore":"gallery.allImagesLoaded")})]}):v.jsxs(Re,{sx:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,padding:8,h:"100%",w:"100%",color:"base.500"},children:[v.jsx(Pa,{as:qA,sx:{w:16,h:16}}),v.jsx(Gt,{textAlign:"center",children:t("gallery.noImagesInGallery")})]})})})]})};MG.displayName="ImageGalleryContent";const jG={txt2img:{galleryMinWidth:200,galleryMaxWidth:500},img2img:{galleryMinWidth:200,galleryMaxWidth:500},unifiedCanvas:{galleryMinWidth:200,galleryMaxWidth:200},nodes:{galleryMinWidth:200,galleryMaxWidth:500},postprocessing:{galleryMinWidth:200,galleryMaxWidth:500},training:{galleryMinWidth:200,galleryMaxWidth:500}},NAe=Ut([ki,Wd,gh,da,MS],(e,t,n,r,i)=>{const{shouldPinGallery:a,shouldShowGallery:o}=t,{galleryImageMinimumWidth:l}=n,{isLightboxOpen:c}=i;return{activeTabName:e,isStaging:r,shouldPinGallery:a,shouldShowGallery:o,galleryImageMinimumWidth:l,isResizable:e!=="unifiedCanvas",isLightboxOpen:c}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}});function LAe(){const e=et(),{shouldPinGallery:t,shouldShowGallery:n,galleryImageMinimumWidth:r,activeTabName:i,isStaging:a,isResizable:o,isLightboxOpen:l}=be(NAe),c=()=>{e(HI()),e(gs())},d=()=>{e(vZ()),t&&e(gs())},p=()=>{e(Lk(!1)),t&&e(gs())};At("g",()=>{d()},[t]),At("left",()=>{e(l6())},{enabled:!a||i!=="unifiedCanvas"},[a,i]),At("right",()=>{e(s6())},{enabled:!a||i!=="unifiedCanvas"},[a,i]),At("shift+g",()=>{c()},[t]),At("esc",()=>{e(Lk(!1))},{enabled:()=>!t,preventDefault:!0},[t]);const g=32;return At("shift+up",()=>{if(r<256){const S=Qe.clamp(r+g,32,256);e(N2(S))}},[r]),At("shift+down",()=>{if(r>32){const S=Qe.clamp(r-g,32,256);e(N2(S))}},[r]),v.jsx(_H,{direction:"right",isResizable:o||!t,isOpen:n,onClose:p,isPinned:t&&!l,minWidth:t?jG[i].galleryMinWidth:200,maxWidth:t?jG[i].galleryMaxWidth:void 0,children:v.jsx(MG,{})})}var Yu=function(e,t){return Number(e.toFixed(t))},zAe=function(e,t){return typeof e=="number"?e:t},Ji=function(e,t,n){n&&typeof n=="function"&&n(e,t)},BAe=function(e){return-Math.cos(e*Math.PI)/2+.5},FAe=function(e){return e},UAe=function(e){return e*e},VAe=function(e){return e*(2-e)},HAe=function(e){return e<.5?2*e*e:-1+(4-2*e)*e},GAe=function(e){return e*e*e},WAe=function(e){return--e*e*e+1},qAe=function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},YAe=function(e){return e*e*e*e},KAe=function(e){return 1- --e*e*e*e},XAe=function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},QAe=function(e){return e*e*e*e*e},ZAe=function(e){return 1+--e*e*e*e*e},JAe=function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e},IG={easeOut:BAe,linear:FAe,easeInQuad:UAe,easeOutQuad:VAe,easeInOutQuad:HAe,easeInCubic:GAe,easeOutCubic:WAe,easeInOutCubic:qAe,easeInQuart:YAe,easeOutQuart:KAe,easeInOutQuart:XAe,easeInQuint:QAe,easeOutQuint:ZAe,easeInOutQuint:JAe},RG=function(e){typeof e=="number"&&cancelAnimationFrame(e)},Qd=function(e){e.mounted&&(RG(e.animation),e.animate=!1,e.animation=null,e.velocity=null)};function NG(e,t,n,r){if(e.mounted){var i=new Date().getTime(),a=1;Qd(e),e.animation=function(){if(!e.mounted)return RG(e.animation);var o=new Date().getTime()-i,l=o/n,c=IG[t],d=c(l);o>=n?(r(a),e.animation=null):e.animation&&(r(d),requestAnimationFrame(e.animation))},requestAnimationFrame(e.animation)}}function $Ae(e){var t=e.scale,n=e.positionX,r=e.positionY;return!(Number.isNaN(t)||Number.isNaN(n)||Number.isNaN(r))}function Jp(e,t,n,r){var i=$Ae(t);if(!(!e.mounted||!i)){var a=e.setTransformState,o=e.transformState,l=o.scale,c=o.positionX,d=o.positionY,p=t.scale-l,g=t.positionX-c,S=t.positionY-d;n===0?a(t.scale,t.positionX,t.positionY):NG(e,r,n,function(w){var C=l+p*w,k=c+g*w,P=d+S*w;a(C,k,P)})}}function eOe(e,t,n){var r=e.offsetWidth,i=e.offsetHeight,a=t.offsetWidth,o=t.offsetHeight,l=a*n,c=o*n,d=r-l,p=i-c;return{wrapperWidth:r,wrapperHeight:i,newContentWidth:l,newDiffWidth:d,newContentHeight:c,newDiffHeight:p}}var tOe=function(e,t,n,r,i,a,o){var l=e>t?n*(o?1:.5):0,c=r>i?a*(o?1:.5):0,d=e-t-l,p=l,g=r-i-c,S=c;return{minPositionX:d,maxPositionX:p,minPositionY:g,maxPositionY:S}},AO=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 a=eOe(n,r,t),o=a.wrapperWidth,l=a.wrapperHeight,c=a.newContentWidth,d=a.newDiffWidth,p=a.newContentHeight,g=a.newDiffHeight,S=tOe(o,c,d,l,p,g,Boolean(i));return S},OO=function(e,t,n,r){return r?e<t?Yu(t,2):e>n?Yu(n,2):Yu(e,2):Yu(e,2)},vy=function(e,t){var n=AO(e,t);return e.bounds=n,n};function UE(e,t,n,r,i,a,o){var l=n.minPositionX,c=n.minPositionY,d=n.maxPositionX,p=n.maxPositionY,g=0,S=0;o&&(g=i,S=a);var w=OO(e,l-g,d+g,r),C=OO(t,c-S,p+S,r);return{x:w,y:C}}function VE(e,t,n,r,i,a){var o=e.transformState,l=o.scale,c=o.positionX,d=o.positionY,p=r-l;if(typeof t!="number"||typeof n!="number")return console.error("Mouse X and Y position were not provided!"),{x:c,y:d};var g=c-t*p,S=d-n*p,w=UE(g,S,i,a,0,0,null);return w}function LS(e,t,n,r,i){var a=i?r:0,o=t-a;return!Number.isNaN(n)&&e>=n?n:!Number.isNaN(t)&&e<=o?o:e}var LG=function(e,t){var n=e.setup.panning.excluded,r=e.isInitialized,i=e.wrapperComponent,a=t.target,o=i==null?void 0:i.contains(a),l=r&&a&&o;if(!l)return!1;var c=WE(a,n);return!c},zG=function(e){var t=e.isInitialized,n=e.isPanning,r=e.setup,i=r.panning.disabled,a=t&&n&&!i;return!!a},nOe=function(e,t){var n=e.transformState,r=n.positionX,i=n.positionY;e.isPanning=!0;var a=t.clientX,o=t.clientY;e.startCoords={x:a-r,y:o-i}},rOe=function(e,t){var n=t.touches,r=e.transformState,i=r.positionX,a=r.positionY;e.isPanning=!0;var o=n.length===1;if(o){var l=n[0].clientX,c=n[0].clientY;e.startCoords={x:l-i,y:c-a}}};function iOe(e){var t=e.transformState,n=t.positionX,r=t.positionY,i=t.scale,a=e.setup,o=a.disabled,l=a.limitToBounds,c=a.centerZoomedOut,d=e.wrapperComponent;if(!(o||!d||!e.bounds)){var p=e.bounds,g=p.maxPositionX,S=p.minPositionX,w=p.maxPositionY,C=p.minPositionY,k=n>g||n<S,P=r>w||r<C,D=n>g?d.offsetWidth:e.setup.minPositionX||0,M=r>w?d.offsetHeight:e.setup.minPositionY||0,R=VE(e,D,M,i,e.bounds,l||c),L=R.x,z=R.y;return{scale:i,positionX:k?L:n,positionY:P?z:r}}}function aOe(e,t,n,r,i){var a=e.setup.limitToBounds,o=e.wrapperComponent,l=e.bounds,c=e.transformState,d=c.scale,p=c.positionX,g=c.positionY;if(!(o===null||l===null||t===p&&n===g)){var S=UE(t,n,l,a,r,i,o),w=S.x,C=S.y;e.setTransformState(d,w,C)}}var oOe=function(e,t,n){var r=e.startCoords,i=e.transformState,a=e.setup.panning,o=a.lockAxisX,l=a.lockAxisY,c=i.positionX,d=i.positionY;if(!r)return{x:c,y:d};var p=t-r.x,g=n-r.y,S=o?c:p,w=l?d:g;return{x:S,y:w}},HE=function(e,t){var n=e.setup,r=e.transformState,i=r.scale,a=n.minScale,o=n.disablePadding;return t>0&&i>=a&&!o?t:0},sOe=function(e){var t=e.mounted,n=e.setup,r=n.disabled,i=n.velocityAnimation,a=e.transformState.scale,o=i.disabled,l=!o||a>1||!r||t;return!!l},lOe=function(e){var t=e.mounted,n=e.velocity,r=e.bounds,i=e.setup,a=i.disabled,o=i.velocityAnimation,l=e.transformState.scale,c=o.disabled,d=!c||l>1||!a||t;return!(!d||!n||!r)};function uOe(e,t){var n=e.setup.velocityAnimation,r=n.equalToMove,i=n.animationTime,a=n.sensitivity;return r?i*t*a:i}function BG(e,t,n,r,i,a,o,l,c,d){if(i){if(t>o&&n>o){var p=o+(e-o)*d;return p>c?c:p<o?o:p}if(t<a&&n<a){var p=a+(e-a)*d;return p<l?l:p>a?a:p}}return r?t:OO(e,a,o,i)}function cOe(e,t){var n=1;return t?Math.min(n,e.offsetWidth/window.innerWidth):n}function dOe(e,t){var n=sOe(e);if(n){var r=e.lastMousePosition,i=e.velocityTime,a=e.setup,o=e.wrapperComponent,l=a.velocityAnimation.equalToMove,c=Date.now();if(r&&i&&o){var d=cOe(o,l),p=t.x-r.x,g=t.y-r.y,S=p/d,w=g/d,C=c-i,k=p*p+g*g,P=Math.sqrt(k)/C;e.velocity={velocityX:S,velocityY:w,total:P}}e.lastMousePosition=t,e.velocityTime=c}}function fOe(e){var t=e.velocity,n=e.bounds,r=e.setup,i=e.wrapperComponent,a=lOe(e);if(!(!a||!t||!n||!i)){var o=t.velocityX,l=t.velocityY,c=t.total,d=n.maxPositionX,p=n.minPositionX,g=n.maxPositionY,S=n.minPositionY,w=r.limitToBounds,C=r.alignmentAnimation,k=r.zoomAnimation,P=r.panning,D=P.lockAxisY,M=P.lockAxisX,R=k.animationType,L=C.sizeX,z=C.sizeY,U=C.velocityAlignmentTime,V=U,Y=uOe(e,c),J=Math.max(Y,V),$=HE(e,L),K=HE(e,z),fe=$*i.offsetWidth/100,X=K*i.offsetHeight/100,G=d+fe,te=p-fe,re=g+X,oe=S-X,ie=e.transformState,le=new Date().getTime();NG(e,R,J,function(ee){var de=e.transformState,Fe=de.scale,Pe=de.positionX,Oe=de.positionY,Ie=new Date().getTime()-le,De=Ie/V,$e=IG[C.animationType],it=1-$e(Math.min(1,De)),mt=1-ee,bt=Pe+o*mt,qe=Oe+l*mt,Ce=BG(bt,ie.positionX,Pe,M,w,p,d,te,G,it),Nt=BG(qe,ie.positionY,Oe,D,w,S,g,oe,re,it);(Pe!==bt||Oe!==qe)&&e.setTransformState(Fe,Ce,Nt)})}}function FG(e,t){var n=e.transformState.scale;Qd(e),vy(e,n),window.TouchEvent!==void 0&&t instanceof TouchEvent?rOe(e,t):nOe(e,t)}function UG(e){var t=e.transformState.scale,n=e.setup,r=n.minScale,i=n.alignmentAnimation,a=i.disabled,o=i.sizeX,l=i.sizeY,c=i.animationTime,d=i.animationType,p=a||t<r||!o&&!l;if(!p){var g=iOe(e);g&&Jp(e,g,c,d)}}function VG(e,t,n){var r=e.startCoords,i=e.setup,a=i.alignmentAnimation,o=a.sizeX,l=a.sizeY;if(r){var c=oOe(e,t,n),d=c.x,p=c.y,g=HE(e,o),S=HE(e,l);dOe(e,{x:d,y:p}),aOe(e,d,p,g,S)}}function hOe(e){if(e.isPanning){var t=e.setup.panning.velocityDisabled,n=e.velocity,r=e.wrapperComponent,i=e.contentComponent;e.isPanning=!1,e.animate=!1,e.animation=null;var a=r==null?void 0:r.getBoundingClientRect(),o=i==null?void 0:i.getBoundingClientRect(),l=(a==null?void 0:a.width)||0,c=(a==null?void 0:a.height)||0,d=(o==null?void 0:o.width)||0,p=(o==null?void 0:o.height)||0,g=l<d||c<p,S=!t&&n&&(n==null?void 0:n.total)>.1&&g;S?fOe(e):UG(e)}}function DO(e,t,n,r){var i=e.setup,a=i.minScale,o=i.maxScale,l=i.limitToBounds,c=LS(Yu(t,2),a,o,0,!1),d=vy(e,c),p=VE(e,n,r,c,d,l),g=p.x,S=p.y;return{scale:c,positionX:g,positionY:S}}function HG(e,t,n){var r=e.transformState.scale,i=e.wrapperComponent,a=e.setup,o=a.minScale,l=a.limitToBounds,c=a.zoomAnimation,d=c.disabled,p=c.animationTime,g=c.animationType,S=d||r>=o;if((r>=1||l)&&UG(e),!(S||!i||!e.mounted)){var w=t||i.offsetWidth/2,C=n||i.offsetHeight/2,k=DO(e,o,w,C);k&&Jp(e,k,p,g)}}var $p=function(){return $p=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},$p.apply(this,arguments)};function GG(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var GE={previousScale:1,scale:1,positionX:0,positionY:0},zS={disabled:!1,minPositionX:null,maxPositionX:null,minPositionY:null,maxPositionY:null,minScale:1,maxScale:8,limitToBounds:!0,centerZoomedOut:!1,centerOnInit:!1,disablePadding:!1,wheel:{step:.2,disabled:!1,wheelDisabled:!1,touchPadDisabled:!1,activationKeys:[],excluded:[]},panning:{disabled:!1,velocityDisabled:!1,lockAxisX:!1,lockAxisY:!1,activationKeys:[],excluded:[]},pinch:{step:5,disabled:!1,excluded:[]},doubleClick:{disabled:!1,step:.7,mode:"zoomIn",animationType:"easeOut",animationTime:200,excluded:[]},zoomAnimation:{disabled:!1,size:.4,animationTime:200,animationType:"easeOut"},alignmentAnimation:{disabled:!1,sizeX:100,sizeY:100,animationTime:200,velocityAlignmentTime:400,animationType:"easeOut"},velocityAnimation:{disabled:!1,sensitivity:1,animationTime:400,animationType:"easeOut",equalToMove:!0}},WG=function(e){var t,n,r,i;return{previousScale:(t=e.initialScale)!==null&&t!==void 0?t:GE.scale,scale:(n=e.initialScale)!==null&&n!==void 0?n:GE.scale,positionX:(r=e.initialPositionX)!==null&&r!==void 0?r:GE.positionX,positionY:(i=e.initialPositionY)!==null&&i!==void 0?i:GE.positionY}},qG=function(e){var t=$p({},zS);return Object.keys(e).forEach(function(n){var r=typeof e[n]<"u",i=typeof zS[n]<"u";if(i&&r){var a=Object.prototype.toString.call(zS[n]),o=a==="[object Object]",l=a==="[object Array]";o?t[n]=$p($p({},zS[n]),e[n]):l?t[n]=GG(GG([],zS[n],!0),e[n],!0):t[n]=e[n]}}),t},YG=function(e,t,n){var r=e.transformState.scale,i=e.wrapperComponent,a=e.setup,o=a.maxScale,l=a.minScale,c=a.zoomAnimation,d=c.size;if(!i)throw new Error("Wrapper is not mounted");var p=r*Math.exp(t*n),g=LS(Yu(p,3),l,o,d,!1);return g};function KG(e,t,n,r,i){var a=e.wrapperComponent,o=e.transformState,l=o.scale,c=o.positionX,d=o.positionY;if(!a)return console.error("No WrapperComponent found");var p=a.offsetWidth,g=a.offsetHeight,S=(p/2-c)/l,w=(g/2-d)/l,C=YG(e,t,n),k=DO(e,C,S,w);if(!k)return console.error("Error during zoom event. New transformation state was not calculated.");Jp(e,k,r,i)}function XG(e,t,n,r){var i=e.setup,a=e.wrapperComponent,o=i.limitToBounds,l=WG(e.props),c=e.transformState,d=c.scale,p=c.positionX,g=c.positionY;if(a){var S=AO(e,l.scale),w=UE(l.positionX,l.positionY,S,o,0,0,a),C={scale:l.scale,positionX:w.x,positionY:w.y};d===l.scale&&p===l.positionX&&g===l.positionY||(r==null||r(),Jp(e,C,t,n))}}function pOe(e,t,n,r){var i=e.getBoundingClientRect(),a=t.getBoundingClientRect(),o=n.getBoundingClientRect(),l=a.x*r.scale,c=a.y*r.scale;return{x:(i.x-o.x+l)/r.scale,y:(i.y-o.y+c)/r.scale}}function mOe(e,t,n){var r=e.wrapperComponent,i=e.contentComponent,a=e.transformState,o=e.setup,l=o.limitToBounds,c=o.minScale,d=o.maxScale;if(!r||!i)return a;var p=r.getBoundingClientRect(),g=t.getBoundingClientRect(),S=pOe(t,r,i,a),w=S.x,C=S.y,k=g.width/a.scale,P=g.height/a.scale,D=r.offsetWidth/k,M=r.offsetHeight/P,R=LS(n||Math.min(D,M),c,d,0,!1),L=(p.width-k*R)/2,z=(p.height-P*R)/2,U=(p.left-w)*R+L,V=(p.top-C)*R+z,Y=AO(e,R),J=UE(U,V,Y,l,0,0,r),$=J.x,K=J.y;return{positionX:$,positionY:K,scale:R}}var vOe=function(e){return function(t,n,r){t===void 0&&(t=.5),n===void 0&&(n=300),r===void 0&&(r="easeOut"),KG(e,1,t,n,r)}},gOe=function(e){return function(t,n,r){t===void 0&&(t=.5),n===void 0&&(n=300),r===void 0&&(r="easeOut"),KG(e,-1,t,n,r)}},yOe=function(e){return function(t,n,r,i,a){i===void 0&&(i=300),a===void 0&&(a="easeOut");var o=e.transformState,l=o.positionX,c=o.positionY,d=o.scale,p=e.wrapperComponent,g=e.contentComponent,S=e.setup.disabled;if(!(S||!p||!g)){var w={positionX:Number.isNaN(t)?l:t,positionY:Number.isNaN(n)?c:n,scale:Number.isNaN(r)?d:r};Jp(e,w,i,a)}}},bOe=function(e){return function(t,n){t===void 0&&(t=200),n===void 0&&(n="easeOut"),XG(e,t,n)}},SOe=function(e){return function(t,n,r){n===void 0&&(n=200),r===void 0&&(r="easeOut");var i=e.transformState,a=e.wrapperComponent,o=e.contentComponent;if(a&&o){var l=QG(t||i.scale,a,o);Jp(e,l,n,r)}}},xOe=function(e){return function(t,n,r,i){r===void 0&&(r=600),i===void 0&&(i="easeOut"),Qd(e);var a=e.wrapperComponent,o=typeof t=="string"?document.getElementById(t):t;if(a&&o&&a.contains(o)){var l=mOe(e,o,n);Jp(e,l,r,i)}}},ci=function(e){return{instance:e,state:e.transformState,zoomIn:vOe(e),zoomOut:gOe(e),setTransform:yOe(e),resetTransform:bOe(e),centerView:SOe(e),zoomToElement:xOe(e)}},MO=!1;function jO(){try{var e={get passive(){return MO=!0,!1}};return e}catch{return MO=!1,MO}}var WE=function(e,t){var n=e.tagName.toUpperCase(),r=t.find(function(a){return a.toUpperCase()===n});if(r)return!0;var i=t.find(function(a){return e.classList.contains(a)});return!!i},IO=function(e){e&&clearTimeout(e)},wOe=function(e,t,n){return"translate(".concat(e,"px, ").concat(t,"px) scale(").concat(n,")")},QG=function(e,t,n){var r=n.offsetWidth*e,i=n.offsetHeight*e,a=(t.offsetWidth-r)/2,o=(t.offsetHeight-i)/2;return{scale:e,positionX:a,positionY:o}};function COe(e){return function(t){e.forEach(function(n){typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var EOe=function(e,t){var n=e.setup.wheel,r=n.disabled,i=n.wheelDisabled,a=n.touchPadDisabled,o=n.excluded,l=e.isInitialized,c=e.isPanning,d=t.target,p=l&&!c&&!r&&d;if(!p||i&&!t.ctrlKey||a&&t.ctrlKey)return!1;var g=WE(d,o);return!g},_Oe=function(e){return e?e.deltaY<0?1:-1:0};function TOe(e,t){var n=_Oe(e),r=zAe(t,n);return r}function ZG(e,t,n){var r=t.getBoundingClientRect(),i=0,a=0;if("clientX"in e)i=(e.clientX-r.left)/n,a=(e.clientY-r.top)/n;else{var o=e.touches[0];i=(o.clientX-r.left)/n,a=(o.clientY-r.top)/n}return(Number.isNaN(i)||Number.isNaN(a))&&console.error("No mouse or touch offset found"),{x:i,y:a}}var kOe=function(e,t,n,r,i){var a=e.transformState.scale,o=e.wrapperComponent,l=e.setup,c=l.maxScale,d=l.minScale,p=l.zoomAnimation,g=l.disablePadding,S=p.size,w=p.disabled;if(!o)throw new Error("Wrapper is not mounted");var C=a+t*(a-a*n)*n;if(i)return C;var k=r?!1:!w,P=LS(Yu(C,3),d,c,S,k&&!g);return P},POe=function(e,t){var n=e.previousWheelEvent,r=e.transformState.scale,i=e.setup,a=i.maxScale,o=i.minScale;return n?r<a||r>o||Math.sign(n.deltaY)!==Math.sign(t.deltaY)||n.deltaY>0&&n.deltaY<t.deltaY||n.deltaY<0&&n.deltaY>t.deltaY||Math.sign(n.deltaY)!==Math.sign(t.deltaY):!1},AOe=function(e,t){var n=e.setup.pinch,r=n.disabled,i=n.excluded,a=e.isInitialized,o=t.target,l=a&&!r&&o;if(!l)return!1;var c=WE(o,i);return!c},OOe=function(e){var t=e.setup.pinch.disabled,n=e.isInitialized,r=e.pinchStartDistance,i=n&&!t&&r;return!!i},DOe=function(e,t,n){var r=n.getBoundingClientRect(),i=e.touches,a=Yu(i[0].clientX-r.left,5),o=Yu(i[0].clientY-r.top,5),l=Yu(i[1].clientX-r.left,5),c=Yu(i[1].clientY-r.top,5);return{x:(a+l)/2/t,y:(o+c)/2/t}},JG=function(e){return Math.sqrt(Math.pow(e.touches[0].pageX-e.touches[1].pageX,2)+Math.pow(e.touches[0].pageY-e.touches[1].pageY,2))},MOe=function(e,t){var n=e.pinchStartScale,r=e.pinchStartDistance,i=e.setup,a=i.maxScale,o=i.minScale,l=i.zoomAnimation,c=i.disablePadding,d=l.size,p=l.disabled;if(!n||r===null||!t)throw new Error("Pinch touches distance was not provided");if(t<0)return e.transformState.scale;var g=t/r,S=g*n;return LS(Yu(S,2),o,a,d,!p&&!c)},jOe=160,IOe=100,ROe=function(e,t){var n=e.props,r=n.onWheelStart,i=n.onZoomStart;e.wheelStopEventTimer||(Qd(e),Ji(ci(e),t,r),Ji(ci(e),t,i))},NOe=function(e,t){var n=e.props,r=n.onWheel,i=n.onZoom,a=e.contentComponent,o=e.setup,l=e.transformState,c=l.scale,d=o.limitToBounds,p=o.centerZoomedOut,g=o.zoomAnimation,S=o.wheel,w=o.disablePadding,C=g.size,k=g.disabled,P=S.step;if(!a)throw new Error("Component not mounted");t.preventDefault(),t.stopPropagation();var D=TOe(t,null),M=kOe(e,D,P,!t.ctrlKey);if(c!==M){var R=vy(e,M),L=ZG(t,a,c),z=k||C===0||p||w,U=d&&z,V=VE(e,L.x,L.y,M,R,U),Y=V.x,J=V.y;e.previousWheelEvent=t,e.setTransformState(M,Y,J),Ji(ci(e),t,r),Ji(ci(e),t,i)}},LOe=function(e,t){var n=e.props,r=n.onWheelStop,i=n.onZoomStop;IO(e.wheelAnimationTimer),e.wheelAnimationTimer=setTimeout(function(){e.mounted&&(HG(e,t.x,t.y),e.wheelAnimationTimer=null)},IOe);var a=POe(e,t);a&&(IO(e.wheelStopEventTimer),e.wheelStopEventTimer=setTimeout(function(){e.mounted&&(e.wheelStopEventTimer=null,Ji(ci(e),t,r),Ji(ci(e),t,i))},jOe))},zOe=function(e,t){var n=JG(t);e.pinchStartDistance=n,e.lastDistance=n,e.pinchStartScale=e.transformState.scale,e.isPanning=!1,Qd(e)},BOe=function(e,t){var n=e.contentComponent,r=e.pinchStartDistance,i=e.transformState.scale,a=e.setup,o=a.limitToBounds,l=a.centerZoomedOut,c=a.zoomAnimation,d=c.disabled,p=c.size;if(!(r===null||!n)){var g=DOe(t,i,n);if(!(!Number.isFinite(g.x)||!Number.isFinite(g.y))){var S=JG(t),w=MOe(e,S);if(w!==i){var C=vy(e,w),k=d||p===0||l,P=o&&k,D=VE(e,g.x,g.y,w,C,P),M=D.x,R=D.y;e.pinchMidpoint=g,e.lastDistance=S,e.setTransformState(w,M,R)}}}},FOe=function(e){var t=e.pinchMidpoint;e.velocity=null,e.lastDistance=null,e.pinchMidpoint=null,e.pinchStartScale=null,e.pinchStartDistance=null,HG(e,t==null?void 0:t.x,t==null?void 0:t.y)},$G=function(e,t){var n=e.props.onZoomStop,r=e.setup.doubleClick.animationTime;IO(e.doubleClickStopEventTimer),e.doubleClickStopEventTimer=setTimeout(function(){e.doubleClickStopEventTimer=null,Ji(ci(e),t,n)},r)},UOe=function(e,t){var n=e.props,r=n.onZoomStart,i=n.onZoom,a=e.setup.doubleClick,o=a.animationTime,l=a.animationType;Ji(ci(e),t,r),XG(e,o,l,function(){return Ji(ci(e),t,i)}),$G(e,t)};function VOe(e,t){var n=e.setup,r=e.doubleClickStopEventTimer,i=e.transformState,a=e.contentComponent,o=i.scale,l=e.props,c=l.onZoomStart,d=l.onZoom,p=n.doubleClick,g=p.disabled,S=p.mode,w=p.step,C=p.animationTime,k=p.animationType;if(!g&&!r){if(S==="reset")return UOe(e,t);if(!a)return console.error("No ContentComponent found");var P=S==="zoomOut"?-1:1,D=YG(e,P,w);if(o!==D){Ji(ci(e),t,c);var M=ZG(t,a,o),R=DO(e,D,M.x,M.y);if(!R)return console.error("Error during zoom event. New transformation state was not calculated.");Ji(ci(e),t,d),Jp(e,R,C,k),$G(e,t)}}}var HOe=function(e,t){var n=e.isInitialized,r=e.setup,i=e.wrapperComponent,a=r.doubleClick,o=a.disabled,l=a.excluded,c=t.target,d=i==null?void 0:i.contains(c),p=n&&c&&d&&!o;if(!p)return!1;var g=WE(c,l);return!g},GOe=function(){function e(t){var n=this;this.mounted=!0,this.onChangeCallbacks=new Set,this.wrapperComponent=null,this.contentComponent=null,this.isInitialized=!1,this.bounds=null,this.previousWheelEvent=null,this.wheelStopEventTimer=null,this.wheelAnimationTimer=null,this.isPanning=!1,this.startCoords=null,this.lastTouch=null,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.animate=!1,this.animation=null,this.maxBounds=null,this.pressedKeys={},this.mount=function(){n.initializeWindowEvents()},this.unmount=function(){n.cleanupWindowEvents()},this.update=function(r){vy(n,n.transformState.scale),n.setup=qG(r)},this.initializeWindowEvents=function(){var r,i=jO(),a=(r=n.wrapperComponent)===null||r===void 0?void 0:r.ownerDocument,o=a==null?void 0:a.defaultView;o==null||o.addEventListener("mousedown",n.onPanningStart,i),o==null||o.addEventListener("mousemove",n.onPanning,i),o==null||o.addEventListener("mouseup",n.onPanningStop,i),a==null||a.addEventListener("mouseleave",n.clearPanning,i),o==null||o.addEventListener("keyup",n.setKeyUnPressed,i),o==null||o.addEventListener("keydown",n.setKeyPressed,i)},this.cleanupWindowEvents=function(){var r,i,a=jO(),o=(r=n.wrapperComponent)===null||r===void 0?void 0:r.ownerDocument,l=o==null?void 0:o.defaultView;l==null||l.removeEventListener("mousedown",n.onPanningStart,a),l==null||l.removeEventListener("mousemove",n.onPanning,a),l==null||l.removeEventListener("mouseup",n.onPanningStop,a),o==null||o.removeEventListener("mouseleave",n.clearPanning,a),l==null||l.removeEventListener("keyup",n.setKeyUnPressed,a),l==null||l.removeEventListener("keydown",n.setKeyPressed,a),document.removeEventListener("mouseleave",n.clearPanning,a),Qd(n),(i=n.observer)===null||i===void 0||i.disconnect()},this.handleInitializeWrapperEvents=function(r){var i=jO();r.addEventListener("wheel",n.onWheelZoom,i),r.addEventListener("dblclick",n.onDoubleClick,i),r.addEventListener("touchstart",n.onTouchPanningStart,i),r.addEventListener("touchmove",n.onTouchPanning,i),r.addEventListener("touchend",n.onTouchPanningStop,i)},this.handleInitialize=function(r){var i=n.setup.centerOnInit;n.applyTransformation(),i&&(n.setCenter(),n.observer=new ResizeObserver(function(){var a;n.setCenter(),(a=n.observer)===null||a===void 0||a.disconnect()}),n.observer.observe(r))},this.onWheelZoom=function(r){var i=n.setup.disabled;if(!i){var a=EOe(n,r);if(a){var o=n.isPressingKeys(n.setup.wheel.activationKeys);o&&(ROe(n,r),NOe(n,r),LOe(n,r))}}},this.onPanningStart=function(r){var i=n.setup.disabled,a=n.props.onPanningStart;if(!i){var o=LG(n,r);if(o){var l=n.isPressingKeys(n.setup.panning.activationKeys);l&&(r.preventDefault(),r.stopPropagation(),Qd(n),FG(n,r),Ji(ci(n),r,a))}}},this.onPanning=function(r){var i=n.setup.disabled,a=n.props.onPanning;if(!i){var o=zG(n);if(o){var l=n.isPressingKeys(n.setup.panning.activationKeys);l&&(r.preventDefault(),r.stopPropagation(),VG(n,r.clientX,r.clientY),Ji(ci(n),r,a))}}},this.onPanningStop=function(r){var i=n.props.onPanningStop;n.isPanning&&(hOe(n),Ji(ci(n),r,i))},this.onPinchStart=function(r){var i=n.setup.disabled,a=n.props,o=a.onPinchingStart,l=a.onZoomStart;if(!i){var c=AOe(n,r);c&&(zOe(n,r),Qd(n),Ji(ci(n),r,o),Ji(ci(n),r,l))}},this.onPinch=function(r){var i=n.setup.disabled,a=n.props,o=a.onPinching,l=a.onZoom;if(!i){var c=OOe(n);c&&(r.preventDefault(),r.stopPropagation(),BOe(n,r),Ji(ci(n),r,o),Ji(ci(n),r,l))}},this.onPinchStop=function(r){var i=n.props,a=i.onPinchingStop,o=i.onZoomStop;n.pinchStartScale&&(FOe(n),Ji(ci(n),r,a),Ji(ci(n),r,o))},this.onTouchPanningStart=function(r){var i=n.setup.disabled,a=n.props.onPanningStart;if(!i){var o=LG(n,r);if(o){var l=n.lastTouch&&+new Date-n.lastTouch<200;if(l&&r.touches.length===1)n.onDoubleClick(r);else{n.lastTouch=+new Date,Qd(n);var c=r.touches,d=c.length===1,p=c.length===2;d&&(Qd(n),FG(n,r),Ji(ci(n),r,a)),p&&n.onPinchStart(r)}}}},this.onTouchPanning=function(r){var i=n.setup.disabled,a=n.props.onPanning;if(n.isPanning&&r.touches.length===1){if(i)return;var o=zG(n);if(!o)return;r.preventDefault(),r.stopPropagation();var l=r.touches[0];VG(n,l.clientX,l.clientY),Ji(ci(n),r,a)}else r.touches.length>1&&n.onPinch(r)},this.onTouchPanningStop=function(r){n.onPanningStop(r),n.onPinchStop(r)},this.onDoubleClick=function(r){var i=n.setup.disabled;if(!i){var a=HOe(n,r);a&&VOe(n,r)}},this.clearPanning=function(r){n.isPanning&&n.onPanningStop(r)},this.setKeyPressed=function(r){n.pressedKeys[r.key]=!0},this.setKeyUnPressed=function(r){n.pressedKeys[r.key]=!1},this.isPressingKeys=function(r){return r.length?Boolean(r.find(function(i){return n.pressedKeys[i]})):!0},this.setTransformState=function(r,i,a){var o=n.props.onTransformed;if(!Number.isNaN(r)&&!Number.isNaN(i)&&!Number.isNaN(a)){r!==n.transformState.scale&&(n.transformState.previousScale=n.transformState.scale,n.transformState.scale=r),n.transformState.positionX=i,n.transformState.positionY=a;var l=ci(n);n.onChangeCallbacks.forEach(function(c){return c(l)}),Ji(l,{scale:r,positionX:i,positionY:a},o),n.applyTransformation()}else console.error("Detected NaN set state values")},this.setCenter=function(){if(n.wrapperComponent&&n.contentComponent){var r=QG(n.transformState.scale,n.wrapperComponent,n.contentComponent);n.setTransformState(r.scale,r.positionX,r.positionY)}},this.handleTransformStyles=function(r,i,a){return n.props.customTransform?n.props.customTransform(r,i,a):wOe(r,i,a)},this.applyTransformation=function(){if(!(!n.mounted||!n.contentComponent)){var r=n.transformState,i=r.scale,a=r.positionX,o=r.positionY,l=n.handleTransformStyles(a,o,i);n.contentComponent.style.transform=l}},this.getContext=function(){return ci(n)},this.onChange=function(r){return n.onChangeCallbacks.has(r)||n.onChangeCallbacks.add(r),function(){n.onChangeCallbacks.delete(r)}},this.init=function(r,i){n.cleanupWindowEvents(),n.wrapperComponent=r,n.contentComponent=i,vy(n,n.transformState.scale),n.handleInitializeWrapperEvents(r),n.handleInitialize(i),n.initializeWindowEvents(),n.isInitialized=!0,Ji(ci(n),void 0,n.props.onInit)},this.props=t,this.setup=qG(this.props),this.transformState=WG(this.props)}return e}(),qE=A.createContext(null),WOe=function(e,t){return typeof e=="function"?e(t):e},qOe=A.forwardRef(function(e,t){var n=A.useState(0),r=n[1],i=e.children,a=A.useRef(new GOe(e)).current,o=WOe(e.children,ci(a)),l=A.useCallback(function(){typeof i=="function"&&r(function(c){return c+1})},[i]);return A.useImperativeHandle(t,function(){return ci(a)},[a]),A.useEffect(function(){a.update(e)},[a,e]),A.useEffect(function(){return a.onChange(l)},[a,e,l]),A.createElement(qE.Provider,{value:a},o)});function YOe(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var KOe=`.transform-component-module_wrapper__7HFJe {
|
||
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__uCDPE {
|
||
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__uCDPE img {
|
||
pointer-events: none;
|
||
}
|
||
`,eW={wrapper:"transform-component-module_wrapper__7HFJe",content:"transform-component-module_content__uCDPE"};YOe(KOe);var XOe=function(e){var t=e.children,n=e.wrapperClass,r=n===void 0?"":n,i=e.contentClass,a=i===void 0?"":i,o=e.wrapperStyle,l=e.contentStyle,c=e.wrapperProps,d=c===void 0?{}:c,p=e.contentProps,g=p===void 0?{}:p,S=A.useContext(qE).init,w=A.useRef(null),C=A.useRef(null);return A.useEffect(function(){var k=w.current,P=C.current;k!==null&&P!==null&&S&&S(k,P)},[]),A.createElement("div",$p({},d,{ref:w,className:"react-transform-wrapper ".concat(eW.wrapper," ").concat(r),style:o}),A.createElement("div",$p({},g,{ref:C,className:"react-transform-component ".concat(eW.content," ").concat(a),style:l}),t))},tW=function(){var e=A.useContext(qE),t=A.useState(ci(e||{})),n=t[0],r=t[1];if(!e)throw new Error("Transform context mus be placed inside TransformWrapper");return A.useEffect(function(){e.onChange(function(i){r(i)})},[e]),n};A.forwardRef(function(e,t){var n=A.useRef(null),r=A.useContext(qE);return A.useEffect(function(){return r.onChange(function(i){if(n.current){var a=0,o=0;n.current.style.transform=r.handleTransformStyles(a,o,1/i.state.scale)}})},[r]),A.createElement("div",$p({},e,{ref:COe([n,t])}))});const QOe=()=>{const[e,t]=A.useState(0),[n,r]=A.useState(1),[i,a]=A.useState(1);return{rotation:e,scaleX:n,scaleY:i,flipHorizontally:()=>{r(n*-1)},flipVertically:()=>{a(i*-1)},rotateCounterClockwise:()=>{t(e===-270?0:e-90)},rotateClockwise:()=>{t(e===270?0:e+90)},reset:()=>{t(0),r(1),a(1)}}},ZOe=({flipHorizontally:e,flipVertically:t,rotateCounterClockwise:n,rotateClockwise:r,reset:i})=>{const{zoomIn:a,zoomOut:o,resetTransform:l}=tW(),{t:c}=tt();return v.jsxs(jo,{isAttached:!0,orientation:"vertical",children:[v.jsx(_t,{icon:v.jsx(cke,{}),"aria-label":c("accessibility.zoomIn"),tooltip:"Zoom In",onClick:()=>a(),fontSize:20}),v.jsx(_t,{icon:v.jsx(dke,{}),"aria-label":c("accessibility.zoomOut"),tooltip:"Zoom Out",onClick:()=>o(),fontSize:20}),v.jsx(_t,{icon:v.jsx(lke,{}),"aria-label":c("accessibility.rotateCounterClockwise"),tooltip:"Rotate Counter-Clockwise",onClick:n,fontSize:20}),v.jsx(_t,{icon:v.jsx(uke,{}),"aria-label":c("accessibility.rotateClockwise"),tooltip:"Rotate Clockwise",onClick:r,fontSize:20}),v.jsx(_t,{icon:v.jsx(CH,{}),"aria-label":c("accessibility.flipHorizontally"),tooltip:"Flip Horizontally",onClick:e,fontSize:20}),v.jsx(_t,{icon:v.jsx(CH,{style:{transform:"rotate(90deg)"}}),"aria-label":c("accessibility.flipVertically"),tooltip:"Flip Vertically",onClick:t,fontSize:20}),v.jsx(_t,{icon:v.jsx(HA,{}),"aria-label":c("accessibility.reset"),tooltip:"Reset",onClick:()=>{l(),i()},fontSize:20})]})};function JOe({image:e,alt:t,ref:n,styleClass:r,rotation:i,scaleX:a,scaleY:o}){const{centerView:l}=tW();return v.jsx(XOe,{wrapperStyle:{width:"100%",height:"100%"},children:v.jsx("img",{style:{transform:`rotate(${i}deg) scaleX(${a}) scaleY(${o})`,width:"100%"},src:e.url,alt:t,ref:n,className:r||"",onLoad:()=>l(1,0,"easeOut")})})}const $Oe=Ut([gh,Wd],(e,t)=>{const{currentImage:n}=e,{shouldShowImageDetails:r}=t;return{viewerImageToDisplay:n,shouldShowImageDetails:r}},{memoizeOptions:{resultEqualityCheck:Qe.isEqual}});function eDe(){const e=et(),t=be(S=>S.lightbox.isLightboxOpen),{rotation:n,scaleX:r,scaleY:i,flipHorizontally:a,flipVertically:o,rotateCounterClockwise:l,rotateClockwise:c,reset:d}=QOe(),{viewerImageToDisplay:p,shouldShowImageDetails:g}=be($Oe);return At("Esc",()=>{t&&e($m(!1))},[t]),v.jsx(ch,{children:t&&v.jsx(Uu.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15,ease:"easeInOut"},style:{display:"flex",width:"100vw",height:`calc(100vh - ${xE*4}px)`,position:"fixed",top:`${xE*4}px`,background:"var(--invokeai-colors-base-900)",zIndex:99},children:v.jsxs(qOe,{centerOnInit:!0,minScale:.1,initialPositionX:50,initialPositionY:50,children:[v.jsxs(Re,{sx:{flexDir:"column",position:"absolute",insetInlineStart:4,gap:4,zIndex:3,top:4},children:[v.jsx(_t,{icon:v.jsx(ske,{}),"aria-label":"Exit Viewer",className:"lightbox-close-btn",onClick:()=>{e($m(!1))},fontSize:20}),v.jsx(ZOe,{flipHorizontally:a,flipVertically:o,rotateCounterClockwise:l,rotateClockwise:c,reset:d})]}),v.jsx(Re,{sx:{position:"absolute",top:4,zIndex:3,insetInlineStart:"50%",transform:"translate(-50%, 0)"},children:v.jsx(DH,{})}),p&&v.jsxs(v.Fragment,{children:[v.jsx(JOe,{rotation:n,scaleX:r,scaleY:i,image:p,styleClass:"lightbox-image"}),g&&v.jsx($A,{image:p}),!g&&v.jsx($n,{sx:{position:"absolute",top:0,insetInlineStart:0,w:"100vw",h:"100vh",px:16,pointerEvents:"none"},children:v.jsx(IH,{})})]})]})},"lightbox")})}kAe();const tDe=Object.freeze(Object.defineProperty({__proto__:null,default:e=>{PAe();const t=be(r=>r.ui.currentTheme),{setColorMode:n}=Nw();return A.useEffect(()=>{n(["light"].includes(t)?"light":"dark")},[n,t]),v.jsxs(zc,{w:"100vw",h:"100vh",children:[v.jsx(eDe,{}),v.jsxs(L2e,{children:[v.jsx(rwe,{}),v.jsxs(zc,{gap:4,p:4,gridAutoRows:"min-content auto",w:J2e,h:$2e,children:[e.children?e.children:v.jsx(EH,{}),v.jsxs(Re,{gap:4,w:"full",h:"full",children:[v.jsx(TAe,{}),v.jsx(LAe,{})]})]}),v.jsx($n,{children:v.jsx(Q2e,{})})]}),v.jsx($f,{children:v.jsx(MAe,{})}),v.jsx($f,{children:v.jsx(OAe,{})})]})}},Symbol.toStringTag,{value:"Module"}));function $i(e,t,n=!1){e=String(e),t=String(t);const r=Array.from({length:21},(l,c)=>c*50),i=["0","5","10","15","20","25","30","35","40","45","50","55","59","64","68","73","77","82","86","95","100"],a={},o={};return r.forEach((l,c)=>{a[l]=`hsl(${e}, ${t}%, ${i[r.length-1-c]}%)`,o[l]=`hsl(${e}, ${t}%, ${i[c]}%)`}),n?o:a}const nW={base:$i(225,15),accent:$i(250,50),working:$i(47,67),warning:$i(28,75),ok:$i(113,70),error:$i(0,76),gridLineColor:"rgba(255, 255, 255, 0.2)"};function Zr(e,t={}){let n=!1;function r(){if(!n){n=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function i(...p){r();for(const g of p)t[g]=c(g);return Zr(e,t)}function a(...p){for(const g of p)g in t||(t[g]=c(g));return Zr(e,t)}function o(){return Object.fromEntries(Object.entries(t).map(([g,S])=>[g,S.selector]))}function l(){return Object.fromEntries(Object.entries(t).map(([g,S])=>[g,S.className]))}function c(p){const w=`chakra-${(["container","root"].includes(p??"")?[e]:[e,p]).filter(Boolean).join("__")}`;return{className:w,selector:`.${w}`,toString:()=>p}}return{parts:i,toPart:c,extend:a,selectors:o,classnames:l,get keys(){return Object.keys(t)},__type:{}}}var nDe=Zr("accordion").parts("root","container","button","panel").extend("icon");Zr("alert").parts("title","description","container").extend("icon","spinner"),Zr("avatar").parts("label","badge","container").extend("excessLabel","group"),Zr("breadcrumb").parts("link","item","container").extend("separator"),Zr("button").parts();var rDe=Zr("checkbox").parts("control","icon","container").extend("label");Zr("progress").parts("track","filledTrack").extend("label"),Zr("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Zr("editable").parts("preview","input","textarea"),Zr("form").parts("container","requiredIndicator","helperText"),Zr("formError").parts("text","icon");var iDe=Zr("input").parts("addon","field","element");Zr("list").parts("container","item","icon");var aDe=Zr("menu").parts("button","list","item").extend("groupTitle","command","divider"),oDe=Zr("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),sDe=Zr("numberinput").parts("root","field","stepperGroup","stepper");Zr("pininput").parts("field");var lDe=Zr("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),uDe=Zr("progress").parts("label","filledTrack","track");Zr("radio").parts("container","control","label");var cDe=Zr("select").parts("field","icon"),dDe=Zr("slider").parts("container","track","thumb","filledTrack","mark");Zr("stat").parts("container","label","helpText","number","icon");var fDe=Zr("switch").parts("container","track","thumb");Zr("table").parts("table","thead","tbody","tr","th","td","tfoot","caption");var hDe=Zr("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator");Zr("tag").parts("container","label","closeButton"),Zr("card").parts("container","header","body","footer");const{definePartsStyle:pDe,defineMultiStyleConfig:mDe}=fr(nDe.keys),vDe={border:"none"},gDe=e=>{const{colorScheme:t}=e;return{fontWeight:"600",fontSize:"sm",border:"none",borderRadius:"base",bg:`${t}.800`,color:"base.100",_hover:{bg:`${t}.700`},_expanded:{bg:`${t}.750`,borderBottomRadius:"none",_hover:{bg:`${t}.700`}}}},yDe=e=>{const{colorScheme:t}=e;return{bg:`${t}.800`,borderRadius:"base",borderTopRadius:"none"}},bDe={},SDe=pDe(e=>({container:vDe,button:gDe(e),panel:yDe(e),icon:bDe})),xDe=mDe({variants:{invokeAI:SDe},defaultProps:{variant:"invokeAI",colorScheme:"base"}}),wDe=e=>{const{colorScheme:t}=e,n={bg:`${t}.600`,color:`${t}.100`,svg:{fill:`${t}.100`}};return{bg:`${t}.700`,color:`${t}.100`,borderRadius:"base",svg:{fill:`${t}.100`},_disabled:n,_hover:{bg:`${t}.650`,color:`${t}.50`,svg:{fill:`${t}.50`},_disabled:n},_checked:{bg:"accent.700",color:"accent.100",svg:{fill:"accent.100"},_disabled:n,_hover:{bg:"accent.600",color:"accent.50",svg:{fill:"accent.50"},_disabled:n}}}},CDe={variants:{invokeAI:wDe},defaultProps:{variant:"invokeAI",colorScheme:"base"}},{definePartsStyle:EDe,defineMultiStyleConfig:_De}=fr(rDe.keys),TDe=e=>{const{colorScheme:t}=e;return{_checked:{bg:`${t}.200`,borderColor:`${t}.200`,color:"base.900",_hover:{bg:`${t}.300`,borderColor:`${t}.300`},_disabled:{borderColor:"transparent",bg:"whiteAlpha.300",color:"whiteAlpha.500"}},_indeterminate:{bg:`${t}.200`,borderColor:`${t}.200`,color:"base.900"},_disabled:{bg:"whiteAlpha.100",borderColor:"transparent"},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:"red.300"}}},kDe=EDe(e=>({control:TDe(e)})),PDe=_De({variants:{invokeAI:kDe},defaultProps:{variant:"invokeAI",colorScheme:"accent"}}),ADe=e=>({fontSize:"sm",marginEnd:0,mb:1,fontWeight:"400",transitionProperty:"common",transitionDuration:"normal",whiteSpace:"nowrap",_disabled:{opacity:.4},color:"base.300"}),ODe={variants:{invokeAI:ADe},defaultProps:{variant:"invokeAI"}},YE=e=>({outline:"none",borderWidth:2,borderStyle:"solid",borderColor:"base.800",bg:"base.900",borderRadius:"base",color:"base.100",boxShadow:"none",_hover:{borderColor:"base.600"},_focus:{borderColor:"accent.700",boxShadow:"none",_hover:{borderColor:"accent.600"}},_invalid:{borderColor:"error.700",boxShadow:"none",_hover:{borderColor:"error.600"}},_disabled:{borderColor:"base.700",bg:"base.700",color:"base.400",_hover:{borderColor:"base.700"}},_placeholder:{color:"base.400"}}),{definePartsStyle:DDe,defineMultiStyleConfig:MDe}=fr(iDe.keys),jDe=DDe(e=>({field:YE()})),IDe=MDe({variants:{invokeAI:jDe},defaultProps:{size:"sm",variant:"invokeAI"}}),{definePartsStyle:RDe,defineMultiStyleConfig:NDe}=fr(aDe.keys),LDe=RDe({button:{fontWeight:"600",bg:"base.500",color:"base.200",_hover:{bg:"base.600",color:"white"}},list:{zIndex:9999,bg:"base.800"},item:{fontSize:"sm",bg:"base.800",_hover:{bg:"base.750"},_focus:{bg:"base.700"}}}),zDe=NDe({variants:{invokeAI:LDe},defaultProps:{variant:"invokeAI"}}),{defineMultiStyleConfig:BDe,definePartsStyle:FDe}=fr(oDe.keys),UDe={bg:"blackAlpha.600"},VDe={},HDe=e=>({bg:"base.850",maxH:"80vh"}),GDe=e=>({fontWeight:"600",fontSize:"lg",color:"base.200"}),WDe={},qDe={overflowY:"scroll"},YDe={},KDe=FDe(e=>({overlay:UDe,dialogContainer:VDe,dialog:HDe(e),header:GDe(e),closeButton:WDe,body:qDe,footer:YDe})),XDe=BDe({variants:{invokeAI:KDe},defaultProps:{variant:"invokeAI",size:"lg"}}),{defineMultiStyleConfig:QDe,definePartsStyle:ZDe}=fr(sDe.keys),JDe=e=>({height:8}),$De=e=>({border:"none",fontWeight:"600",height:"auto",py:1,ps:2,pe:6,...YE()}),eMe=e=>({display:"flex"}),tMe=e=>({border:"none",px:2,py:0,mx:-2,my:0,svg:{color:"base.300",width:2.5,height:2.5,_hover:{color:"base.50"}}}),nMe=ZDe(e=>({root:JDe(e),field:$De(e),stepperGroup:eMe(e),stepper:tMe(e)})),rMe=QDe({variants:{invokeAI:nMe},defaultProps:{size:"sm",variant:"invokeAI"}});function iMe(e){return!Number.isInteger(parseFloat(e.toString()))}function aMe(e,t="-"){return e.replace(/\s+/g,t)}function rW(e){const t=aMe(e.toString());return t.includes("\\.")?e:iMe(e)?t.replace(".","\\."):e}function oMe(e,t=""){return[t,rW(e)].filter(Boolean).join("-")}function sMe(e,t){return`var(${rW(e)}${t?`, ${t}`:""})`}function lMe(e,t=""){return`--${oMe(e,t)}`}function RO(e,t){const n=lMe(e,t==null?void 0:t.prefix);return{variable:n,reference:sMe(n,uMe(t==null?void 0:t.fallback))}}function uMe(e){return typeof e=="string"?e:e==null?void 0:e.reference}const{defineMultiStyleConfig:cMe,definePartsStyle:dMe}=fr(lDe.keys),fMe=RO("popper-bg"),hMe=RO("popper-arrow-bg"),pMe=RO("popper-arrow-shadow-color"),mMe=e=>({[hMe.variable]:"colors.base.800",[fMe.variable]:"colors.base.800",[pMe.variable]:"colors.base.600",minW:"unset",width:"unset",p:4,borderWidth:"2px",borderStyle:"solid",borderColor:"base.600",bg:"base.800"}),vMe=dMe(e=>({content:mMe(e)})),gMe=cMe({variants:{invokeAI:vMe},defaultProps:{variant:"invokeAI"}}),{defineMultiStyleConfig:yMe,definePartsStyle:bMe}=fr(uDe.keys),SMe=e=>({bg:"accent.600",transition:"width 0.2s ease-in-out",_indeterminate:{bgGradient:"linear(to-r, transparent 0%, accent.600 50%, transparent 100%);"}}),xMe=e=>({bg:"base.800"}),wMe=bMe(e=>({filledTrack:SMe(e),track:xMe(e)})),CMe=yMe({variants:{invokeAI:wMe},defaultProps:{variant:"invokeAI"}}),EMe={"::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},{definePartsStyle:_Me,defineMultiStyleConfig:TMe}=fr(cDe.keys),kMe=e=>({color:"base.300"}),PMe=e=>({fontWeight:"600",...YE()}),AMe=_Me(e=>({field:PMe(e),icon:kMe(e)})),OMe=TMe({variants:{invokeAI:AMe},defaultProps:{size:"sm",variant:"invokeAI"}}),{definePartsStyle:DMe,defineMultiStyleConfig:MMe}=fr(dDe.keys),jMe=e=>({bg:"base.400",h:1.5}),IMe=e=>{const{colorScheme:t}=e;return{bg:`${t}.600`,h:1.5}},RMe=e=>({w:2,h:4}),NMe=e=>({fontSize:"xs",fontWeight:"500",color:"base.200",mt:2,insetInlineStart:"unset"}),LMe=DMe(e=>({track:jMe(e),filledTrack:IMe(e),thumb:RMe(e),mark:NMe(e)})),zMe=MMe({variants:{invokeAI:LMe},defaultProps:{variant:"invokeAI",colorScheme:"accent"}}),{defineMultiStyleConfig:BMe,definePartsStyle:FMe}=fr(fDe.keys),UMe=e=>{const{colorScheme:t}=e;return{bg:"base.600",_focusVisible:{boxShadow:"none"},_checked:{bg:`${t}.600`}}},VMe=e=>{const{colorScheme:t}=e;return{bg:`${t}.50`}},HMe=FMe(e=>({container:{},track:UMe(e),thumb:VMe(e)})),GMe=BMe({variants:{invokeAI:HMe},defaultProps:{size:"md",variant:"invokeAI",colorScheme:"accent"}}),{defineMultiStyleConfig:WMe,definePartsStyle:qMe}=fr(hDe.keys),YMe=e=>({display:"flex",columnGap:4}),KMe=e=>({}),XMe=e=>({display:"flex",flexDirection:"column",gap:1,color:"base.700",button:{fontSize:"sm",padding:2,borderRadius:"base",_selected:{bg:"accent.700",color:"accent.100",_hover:{bg:"accent.600",color:"accent.50"}},_hover:{bg:"base.600",color:"base.50"}}}),QMe=e=>({padding:0,height:"100%"}),ZMe=qMe(e=>({root:YMe(e),tab:KMe(e),tablist:XMe(e),tabpanel:QMe(e)})),JMe=WMe({variants:{invokeAI:ZMe},defaultProps:{variant:"invokeAI"}}),$Me=e=>({color:"base.400"}),eje={variants:{subtext:$Me}},tje=e=>YE(),nje={variants:{invokeAI:tje},defaultProps:{size:"md",variant:"invokeAI"}},rje={config:{cssVarPrefix:"invokeai"},styles:{global:e=>({body:{bg:"base.900",color:"base.50",overflow:"hidden"},"*":{...EMe}})},direction:"ltr",fonts:{body:"'Inter', sans-serif"},shadows:{light:{accent:"0 0 10px 0 var(--invokeai-colors-accent-300)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-400)",ok:"0 0 7px var(--invokeai-colors-ok-600)",working:"0 0 7px var(--invokeai-colors-working-600)",error:"0 0 7px var(--invokeai-colors-error-600)"},dark:{accent:"0 0 10px 0 var(--invokeai-colors-accent-600)",accentHover:"0 0 10px 0 var(--invokeai-colors-accent-500)",ok:"0 0 7px var(--invokeai-colors-ok-400)",working:"0 0 7px var(--invokeai-colors-working-400)",error:"0 0 7px var(--invokeai-colors-error-400)"}},colors:{...nW},components:{Button:CDe,Input:IDe,Textarea:nje,Tabs:JMe,Progress:CMe,Accordion:xDe,FormLabel:ODe,Switch:GMe,NumberInput:rMe,Select:OMe,Slider:zMe,Popover:gMe,Modal:XDe,Checkbox:PDe,Menu:zDe,Text:eje}},ije={base:$i(223,10),accent:$i(155,80),working:$i(47,68),warning:$i(28,75),ok:$i(122,49),error:$i(0,50),gridLineColor:"rgba(255, 255, 255, 0.2)"},aje={base:$i(223,10,!0),accent:$i(40,80,!0),working:$i(47,68,!0),warning:$i(28,75,!0),ok:$i(122,49,!0),error:$i(0,50,!0),gridLineColor:"rgba(0, 0, 0, 0.2)"},oje={base:$i(220,30),accent:$i(210,80),working:$i(47,68),warning:$i(28,75),ok:$i(122,49),error:$i(0,100),gridLineColor:"rgba(136, 148, 184, 0.2)"},sje={dark:nW,light:aje,green:ije,ocean:oje};function lje({children:e}){const{i18n:t}=tt(),n=be(a=>a.ui.currentTheme),r=t.dir(),i=ice({...rje,colors:sje[n],direction:r});return A.useEffect(()=>{document.body.dir=r},[r]),v.jsx(Ame,{theme:i,children:e})}const uje=Object.freeze(Object.defineProperty({__proto__:null,default:lje},Symbol.toStringTag,{value:"Module"}));ka.InvokeAiLogoComponent=nA,ka.ThemeChanger=xU,ka.default=GSe,Object.defineProperties(ka,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|