@agility/app-sdk
Advanced tools
Comparing version 2.0.0-rc5 to 2.0.0-rc6
@@ -10,3 +10,3 @@ "use strict";var e,t={exports:{}},r={};var n,o={exports:{}}; | ||
* LICENSE file in the root directory of this source tree. | ||
*/"production"===process.env.NODE_ENV?t.exports=function(){if(e)return r;e=1;var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator,y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,h={};function m(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||y}function b(){}function g(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||y}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var _=g.prototype=new b;_.constructor=g,v(_,m.prototype),_.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,O={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,r,n){var o,i={},a=null,u=null;if(null!=r)for(o in void 0!==r.ref&&(u=r.ref),void 0!==r.key&&(a=""+r.key),r)S.call(r,o)&&!E.hasOwnProperty(o)&&(i[o]=r[o]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:t,type:e,key:a,ref:u,props:i,_owner:O.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var x=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(e,r,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case t:case n:s=!0}}if(s)return a=a(s=e),e=""===i?"."+I(s,0):i,w(a)?(o="",null!=e&&(o=e.replace(x,"$&/")+"/"),R(a,r,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,r){return{$$typeof:t,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),r.push(a)),1;if(s=0,i=""===i?".":i+":",w(e))for(var c=0;c<e.length;c++){var l=i+I(u=e[c],c);s+=R(u,r,o,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),c=0;!(u=e.next()).done;)s+=R(u=u.value,r,o,l=i+I(u,c++),a);else if("object"===u)throw r=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function D(e,t,r){if(null==e)return e;var n=[],o=0;return R(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j={current:null},T={transition:null},$={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:T,ReactCurrentOwner:O};return r.Children={map:D,forEach:function(e,t,r){D(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=m,r.Fragment=o,r.Profiler=a,r.PureComponent=g,r.StrictMode=i,r.Suspense=l,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$,r.cloneElement=function(e,r,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),i=e.key,a=e.ref,u=e._owner;if(null!=r){if(void 0!==r.ref&&(a=r.ref,u=O.current),void 0!==r.key&&(i=""+r.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in r)S.call(r,c)&&!E.hasOwnProperty(c)&&(o[c]=void 0===r[c]&&void 0!==s?s[c]:r[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){s=Array(c);for(var l=0;l<c;l++)s[l]=arguments[l+2];o.children=s}return{$$typeof:t,type:e.type,key:i,ref:a,props:o,_owner:u}},r.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},r.createElement=C,r.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:c,render:e}},r.isValidElement=k,r.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},r.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},r.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},r.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},r.useCallback=function(e,t){return j.current.useCallback(e,t)},r.useContext=function(e){return j.current.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e){return j.current.useDeferredValue(e)},r.useEffect=function(e,t){return j.current.useEffect(e,t)},r.useId=function(){return j.current.useId()},r.useImperativeHandle=function(e,t,r){return j.current.useImperativeHandle(e,t,r)},r.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},r.useMemo=function(e,t){return j.current.useMemo(e,t)},r.useReducer=function(e,t,r){return j.current.useReducer(e,t,r)},r.useRef=function(e){return j.current.useRef(e)},r.useState=function(e){return j.current.useState(e)},r.useSyncExternalStore=function(e,t,r){return j.current.useSyncExternalStore(e,t,r)},r.useTransition=function(){return j.current.useTransition()},r.version="18.2.0",r}():t.exports=(n||(n=1,function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v=Symbol.iterator,h="@@iterator";function m(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e[h];return"function"==typeof t?t:null}var b={current:null},g={transition:null},_={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},w={current:null},S={},O=null;function E(e){O=e}S.setExtraStackFrame=function(e){O=e},S.getCurrentStack=null,S.getStackAddendum=function(){var e="";O&&(e+=O);var t=S.getCurrentStack;return t&&(e+=t()||""),e};var C=!1,k=!1,x=!1,I=!1,R=!1,D={ReactCurrentDispatcher:b,ReactCurrentBatchConfig:g,ReactCurrentOwner:w};function P(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];T("warn",e,r)}function j(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];T("error",e,r)}function T(e,t,r){var n=D.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}D.ReactDebugCurrentFrame=S,D.ReactCurrentActQueue=_;var $={};function L(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;$[o]||(j("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),$[o]=!0)}var A={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){L(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){L(e,"replaceState")},enqueueSetState:function(e,t,r,n){L(e,"setState")}},N=Object.assign,F={};function M(e,t,r){this.props=e,this.context=t,this.refs=F,this.updater=r||A}Object.freeze(F),M.prototype.isReactComponent={},M.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},M.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var V={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},z=function(e,t){Object.defineProperty(M.prototype,e,{get:function(){P("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var U in V)V.hasOwnProperty(U)&&z(U,V[U]);function H(){}function q(e,t,r){this.props=e,this.context=t,this.refs=F,this.updater=r||A}H.prototype=M.prototype;var B=q.prototype=new H;B.constructor=q,N(B,M.prototype),B.isPureReactComponent=!0;var Y=Array.isArray;function W(e){return Y(e)}function K(e){return""+e}function G(e){if(function(e){try{return K(e),!1}catch(e){return!0}}(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),K(e)}function J(e){return e.displayName||"Context"}function X(e){if(null==e)return null;if("number"==typeof e.tag&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return J(e)+".Consumer";case u:return J(e._context)+".Provider";case c:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?r+"("+o+")":r}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:X(e.type)||"Memo";case d:var r=e,y=r._payload,v=r._init;try{return X(v(y))}catch(e){return null}}return null}var Q,Z,ee,te=Object.prototype.hasOwnProperty,re={key:!0,ref:!0,__self:!0,__source:!0};function ne(e){if(te.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function oe(e){if(te.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}ee={};var ie=function(e,t,n,o,i,a,u){var s={$$typeof:r,type:e,key:t,ref:n,props:u,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ae(e,t,r){var n,o={},i=null,a=null,u=null,s=null;if(null!=t)for(n in ne(t)&&(a=t.ref,function(e){if("string"==typeof e.ref&&w.current&&e.__self&&w.current.stateNode!==e.__self){var t=X(w.current.type);ee[t]||(j('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',t,e.ref),ee[t]=!0)}}(t)),oe(t)&&(G(t.key),i=""+t.key),u=void 0===t.__self?null:t.__self,s=void 0===t.__source?null:t.__source,t)te.call(t,n)&&!re.hasOwnProperty(n)&&(o[n]=t[n]);var c=arguments.length-2;if(1===c)o.children=r;else if(c>1){for(var l=Array(c),f=0;f<c;f++)l[f]=arguments[f+2];Object.freeze&&Object.freeze(l),o.children=l}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(i||a){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&function(e,t){var r=function(){Q||(Q=!0,j("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,d),a&&function(e,t){var r=function(){Z||(Z=!0,j("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(o,d)}return ie(e,i,a,u,s,w.current,o)}function ue(e,t,r){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,o,i=N({},e.props),a=e.key,u=e.ref,s=e._self,c=e._source,l=e._owner;if(null!=t)for(n in ne(t)&&(u=t.ref,l=w.current),oe(t)&&(G(t.key),a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)te.call(t,n)&&!re.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var f=arguments.length-2;if(1===f)i.children=r;else if(f>1){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];i.children=p}return ie(e.type,a,u,s,c,l,i)}function se(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var ce=".",le=":",fe=!1,pe=/\/+/g;function de(e){return e.replace(pe,"$&/")}function ye(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(G(e.key),r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function ve(e,t,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s,c,l,f=!1;if(null===e)f=!0;else switch(u){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case r:case n:f=!0}}if(f){var p=e,d=a(p),y=""===i?ce+ye(p,0):i;if(W(d)){var v="";null!=y&&(v=de(y)+"/"),ve(d,t,v,"",(function(e){return e}))}else null!=d&&(se(d)&&(!d.key||p&&p.key===d.key||G(d.key),s=d,c=o+(!d.key||p&&p.key===d.key?"":de(""+d.key)+"/")+y,d=ie(s.type,c,s.ref,s._self,s._source,s._owner,s.props)),t.push(d));return 1}var h=0,b=""===i?ce:i+le;if(W(e))for(var g=0;g<e.length;g++)h+=ve(l=e[g],t,o,b+ye(l,g),a);else{var _=m(e);if("function"==typeof _){var w=e;_===w.entries&&(fe||P("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),fe=!0);for(var S,O=_.call(w),E=0;!(S=O.next()).done;)h+=ve(l=S.value,t,o,b+ye(l,E++),a)}else if("object"===u){var C=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===C?"object with keys {"+Object.keys(e).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}}return h}function he(e,t,r){if(null==e)return e;var n=[],o=0;return ve(e,n,"","",(function(e){return t.call(r,e,o++)})),n}var me,be=-1,ge=0,_e=1,we=2;function Se(e){if(e._status===be){var t=(0,e._result)();if(t.then((function(t){if(e._status===ge||e._status===be){var r=e;r._status=_e,r._result=t}}),(function(t){if(e._status===ge||e._status===be){var r=e;r._status=we,r._result=t}})),e._status===be){var r=e;r._status=ge,r._result=t}}if(e._status===_e){var n=e._result;return void 0===n&&j("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",n),"default"in n||j("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",n),n.default}throw e._result}function Oe(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===a||R||e===i||e===l||e===f||I||e===y||C||k||x)||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===u||e.$$typeof===s||e.$$typeof===c||e.$$typeof===me||void 0!==e.getModuleId)}function Ee(){var e=b.current;return null===e&&j("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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}me=Symbol.for("react.module.reference");var Ce,ke,xe,Ie,Re,De,Pe,je=0;function Te(){}Te.__reactDisabledLog=!0;var $e,Le=D.ReactCurrentDispatcher;function Ae(e,t,r){if(void 0===$e)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);$e=n&&n[1]||""}return"\n"+$e+e}var Ne,Fe=!1,Me="function"==typeof WeakMap?WeakMap:Map;function Ve(e,t){if(!e||Fe)return"";var r,n=Ne.get(e);if(void 0!==n)return n;Fe=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Le.current,Le.current=null,function(){if(0===je){Ce=console.log,ke=console.info,xe=console.warn,Ie=console.error,Re=console.group,De=console.groupCollapsed,Pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}je++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){r=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){r=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var u=t.stack.split("\n"),s=r.stack.split("\n"),c=u.length-1,l=s.length-1;c>=1&&l>=0&&u[c]!==s[l];)l--;for(;c>=1&&l>=0;c--,l--)if(u[c]!==s[l]){if(1!==c||1!==l)do{if(c--,--l<0||u[c]!==s[l]){var f="\n"+u[c].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ne.set(e,f),f}}while(c>=1&&l>=0);break}}}finally{Fe=!1,Le.current=o,function(){if(0==--je){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:Ce}),info:N({},e,{value:ke}),warn:N({},e,{value:xe}),error:N({},e,{value:Ie}),group:N({},e,{value:Re}),groupCollapsed:N({},e,{value:De}),groupEnd:N({},e,{value:Pe})})}je<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",d=p?Ae(p):"";return"function"==typeof e&&Ne.set(e,d),d}function ze(e,t,r){if(null==e)return"";if("function"==typeof e)return Ve(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Ae(e);switch(e){case l:return Ae("Suspense");case f:return Ae("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Ve(e.render,!1);case p:return ze(e.type,t,r);case d:var n=e,o=n._payload,i=n._init;try{return ze(i(o),t,r)}catch(e){}}return""}Ne=new Me;var Ue,He={},qe=D.ReactDebugCurrentFrame;function Be(e){if(e){var t=e._owner,r=ze(e.type,e._source,t?t.type:null);qe.setExtraStackFrame(r)}else qe.setExtraStackFrame(null)}function Ye(e){if(e){var t=e._owner;E(ze(e.type,e._source,t?t.type:null))}else E(null)}function We(){if(w.current){var e=X(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Ue=!1;var Ke={};function Ge(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=We();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Ke[r]){Ke[r]=!0;var n="";e&&e._owner&&e._owner!==w.current&&(n=" It was passed a child from "+X(e._owner.type)+"."),Ye(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Ye(null)}}}function Je(e,t){if("object"==typeof e)if(W(e))for(var r=0;r<e.length;r++){var n=e[r];se(n)&&Ge(n,t)}else if(se(e))e._store&&(e._store.validated=!0);else if(e){var o=m(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)se(i.value)&&Ge(i.value,t)}}function Xe(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==c&&r.$$typeof!==p)return;t=r.propTypes}if(t){var n=X(r);!function(e,t,r,n,o){var i=Function.call.bind(te);for(var a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var s=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}u=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(Be(o),j("%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).",n||"React class",r,a,typeof u),Be(null)),u instanceof Error&&!(u.message in He)&&(He[u.message]=!0,Be(o),j("Failed %s type: %s",r,u.message),Be(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||Ue||(Ue=!0,j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qe(e,t,n){var i,a,u=Oe(e);if(!u){var s,c="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),c+=(null!=(i=t)&&void 0!==(a=i.__source)?"\n\nCheck your code at "+a.fileName.replace(/^.*[\\\/]/,"")+":"+a.lineNumber+".":"")||We(),null===e?s="null":W(e)?s="array":void 0!==e&&e.$$typeof===r?(s="<"+(X(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,j("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,c)}var l=ae.apply(this,arguments);if(null==l)return l;if(u)for(var f=2;f<arguments.length;f++)Je(arguments[f],e);return e===o?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ye(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Ye(null);break}}null!==e.ref&&(Ye(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),Ye(null))}(l):Xe(l),l}var Ze=!1,et=!1,tt=null,rt=0,nt=!1;function ot(e){e!==rt-1&&j("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),rt=e}function it(t,r,n){var o=_.current;if(null!==o)try{ut(o),function(t){if(null===tt)try{var r=("require"+Math.random()).slice(0,7);tt=(e&&e[r]).call(e,"timers").setImmediate}catch(e){tt=function(e){!1===et&&(et=!0,"undefined"==typeof MessageChannel&&j("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}tt(t)}((function(){0===o.length?(_.current=null,r(t)):it(t,r,n)}))}catch(e){n(e)}else r(t)}var at=!1;function ut(e){if(!at){at=!0;var t=0;try{for(;t<e.length;t++){var r=e[t];do{r=r(!0)}while(null!==r)}e.length=0}catch(r){throw e=e.slice(t+1),r}finally{at=!1}}}var st=Qe,ct=function(e,t,r){for(var n=ue.apply(this,arguments),o=2;o<arguments.length;o++)Je(arguments[o],n.type);return Xe(n),n},lt=function(e){var t=Qe.bind(null,e);return t.type=e,Ze||(Ze=!0,P("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return P("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},ft={map:he,forEach:function(e,t,r){he(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return he(e,(function(){t++})),t},toArray:function(e){return he(e,(function(e){return e}))||[]},only:function(e){if(!se(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=ft,t.Component=M,t.Fragment=o,t.Profiler=a,t.PureComponent=q,t.StrictMode=i,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=ct,t.createContext=function(e){var t={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:u,_context:t};var r=!1,n=!1,o=!1,i={$$typeof:s,_context:t};return Object.defineProperties(i,{Provider:{get:function(){return n||(n=!0,j("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return r||(r=!0,j("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(P("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=i,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=st,t.createFactory=lt,t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===p?j("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?j("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&j("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||j("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:c,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,e.name||e.displayName||(e.displayName=r)}}),r},t.isValidElement=se,t.lazy=function(e){var t,r,n={$$typeof:d,_payload:{_status:be,_result:e},_init:Se};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){j("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){j("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},t.memo=function(e,t){Oe(e)||j("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:p,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,e.name||e.displayName||(e.displayName=t)}}),n},t.startTransition=function(e,t){var r=g.transition;g.transition={};var n=g.transition;g.transition._updatedFibers=new Set;try{e()}finally{g.transition=r,null===r&&n._updatedFibers&&(n._updatedFibers.size>10&&P("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."),n._updatedFibers.clear())}},t.unstable_act=function(e){var t=rt;rt++,null===_.current&&(_.current=[]);var r,n=_.isBatchingLegacy;try{if(_.isBatchingLegacy=!0,r=e(),!n&&_.didScheduleLegacyUpdate){var o=_.current;null!==o&&(_.didScheduleLegacyUpdate=!1,ut(o))}}catch(e){throw ot(t),e}finally{_.isBatchingLegacy=n}if(null!==r&&"object"==typeof r&&"function"==typeof r.then){var i=r,a=!1,u={then:function(e,r){a=!0,i.then((function(n){ot(t),0===rt?it(n,e,r):e(n)}),(function(e){ot(t),r(e)}))}};return nt||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){a||(nt=!0,j("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),u}var s=r;if(ot(t),0===rt){var c=_.current;return null!==c&&(ut(c),_.current=null),{then:function(e,t){null===_.current?(_.current=[],it(s,e,t)):e(s)}}}return{then:function(e,t){e(s)}}},t.useCallback=function(e,t){return Ee().useCallback(e,t)},t.useContext=function(e){var t=Ee();if(void 0!==e._context){var r=e._context;r.Consumer===e?j("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&j("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return Ee().useDebugValue(e,t)},t.useDeferredValue=function(e){return Ee().useDeferredValue(e)},t.useEffect=function(e,t){return Ee().useEffect(e,t)},t.useId=function(){return Ee().useId()},t.useImperativeHandle=function(e,t,r){return Ee().useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return Ee().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return Ee().useLayoutEffect(e,t)},t.useMemo=function(e,t){return Ee().useMemo(e,t)},t.useReducer=function(e,t,r){return Ee().useReducer(e,t,r)},t.useRef=function(e){return Ee().useRef(e)},t.useState=function(e){return Ee().useState(e)},t.useSyncExternalStore=function(e,t,r){return Ee().useSyncExternalStore(e,t,r)},t.useTransition=function(){return Ee().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(o,o.exports)),o.exports);var i=t.exports,a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},a(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};function c(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function f(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function p(e){return"function"==typeof e}function d(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var y=d((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function v(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var h=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=c(i),u=a.next();!u.done;u=a.next()){u.value.remove(this)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);var s=this.initialTeardown;if(p(s))try{s()}catch(e){o=e instanceof y?e.errors:[e]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var v=c(d),h=v.next();!h.done;h=v.next()){var m=h.value;try{g(m)}catch(e){o=null!=o?o:[],e instanceof y?o=f(f([],l(o)),l(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=v.return)&&n.call(v)}finally{if(r)throw r.error}}}if(o)throw new y(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)g(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&v(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&v(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),m=h.EMPTY;function b(e){return e instanceof h||e&&"closed"in e&&p(e.remove)&&p(e.add)&&p(e.unsubscribe)}function g(e){p(e)?e():e.unsubscribe()}var _={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},w={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=w.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,f([e,t],l(r))):setTimeout.apply(void 0,f([e,t],l(r)))},clearTimeout:function(e){var t=w.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function S(){}function O(e){e()}var E=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,b(t)&&t.add(r)):r.destination=D,r}return u(t,e),t.create=function(e,t,r){return new I(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(h),C=Function.prototype.bind;function k(e,t){return C.call(e,t)}var x=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){R(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){R(e)}else R(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){R(e)}},e}(),I=function(e){function t(t,r,n){var o,i,a=e.call(this)||this;p(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:a&&_.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},o={next:t.next&&k(t.next,i),error:t.error&&k(t.error,i),complete:t.complete&&k(t.complete,i)}):o=t;return a.destination=new x(o),a}return u(t,e),t}(E);function R(e){var t;t=e,w.setTimeout((function(){throw t}))}var D={closed:!0,next:S,error:function(e){throw e},complete:S},P="function"==typeof Symbol&&Symbol.observable||"@@observable";function j(e){return e}var T=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof E||function(e){return e&&p(e.next)&&p(e.error)&&p(e.complete)}(n)&&b(n)?e:new I(e,t,r);return O((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=$(t))((function(t,n){var o=new I({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[P]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?j:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=$(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function $(e){var t;return null!==(t=null!=e?e:_.Promise)&&void 0!==t?t:Promise}var L=d((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),A=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return u(t,e),t.prototype.lift=function(e){var t=new N(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new L},t.prototype.next=function(e){var t=this;O((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=c(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;O((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;O((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new h((function(){t.currentObservers=null,v(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new T;return e.source=this,e},t.create=function(e,t){return new N(e,t)},t}(T),N=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return u(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(A),F=0;var M=function(){return"operation-".concat(++F)},V={},z=function(e){var t=e.operationID,r=e.operation,n=e.autoDelete,o=void 0===n||n;return V[t]={operation:r,autoDelete:o},r},U=function(e){var t=e.data,r=t.operationID;if(r){var n=function(e){var t=V[e],r=t.operation;return t.autoDelete&&delete V[e],r||null}(r);n&&n.next(t.arg)}},H=function(e){window.parent.postMessage(e,"*")},q=function(){var e;if("undefined"==typeof window)return"-1";var t=window.location.search;return null!==(e=new URLSearchParams(t).get("appID"))&&void 0!==e?e:""},B=Object.freeze({__proto__:null,persistData:function(e){var t=e.key,r=e.value,n=q();if(n){var o=M(),i={appID:n,operationID:o,operationType:"persistData",arg:{key:t,value:r}},a=new A,u=new Promise((function(e,t){a.subscribe((function(t){e(t),a.unsubscribe()}))}));return z({operationID:o,operation:a}),H(i),u}},updateConfigurationValue:function(e){var t=e.name,r=e.value,n=q();if(n){var o=M(),i={appID:n,operationID:o,operationType:"updateConfigurationValue",arg:{name:t,value:r}},a=new A,u=new Promise((function(e,t){a.subscribe((function(t){e(t),a.unsubscribe()}))}));return z({operationID:o,operation:a}),H(i),u}}}),Y=Object.freeze({__proto__:null,addFieldListener:function(e){var t=e.fieldName,r=e.onChange,n=q();if(n){var o=M(),i="fieldName-".concat(n),a={appID:n,operationID:o,operationType:"addFieldListener",arg:{fieldName:t,operationID:i,operationType:"onFieldChanged"}},u=new A;z({operationID:o,operation:u});var s=new A;s.subscribe((function(e){var t=e.fieldValue;r(t)})),z({operationID:i,operation:s,autoDelete:!1}),H(a)}},getContentItem:function(){var e=q();if(e){var t=M(),r={appID:e,operationID:t,operationType:"getContentItem"},n=new A,o=new Promise((function(e,t){n.subscribe((function(t){e(t),n.unsubscribe()}))}));return z({operationID:t,operation:n}),H(r),o}},removeFieldListener:function(e){var t=e.fieldName,r=q();if(r){var n=M(),o={appID:r,operationID:n,operationType:"removeFieldListener",arg:{fieldName:t,operationID:"fieldName-".concat(r)}},i=new A;i.subscribe((function(e){!function(e){delete V[e]}(e.removeOperationID),i.unsubscribe()})),z({operationID:n,operation:i}),H(o)}},setFieldValue:function(e){var t=e.name,r=e.value,n=q();if(n){var o=M(),i={appID:n,operationID:o,operationType:"setFieldValue",arg:{name:t,value:r}},a=new A;z({operationID:o,operation:a}),H(i)}}}),W=Object.freeze({__proto__:null,selectAssets:function(){var e=q();if(e){var t=M(),r={appID:e,operationID:t,operationType:"selectAssets"},n=new A,o=new Promise((function(e,t){n.subscribe((function(){e(),n.unsubscribe()}))}));return z({operationID:t,operation:n}),H(r),o}}}),K="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;exports.assetsMethods=W,exports.configMethods=B,exports.contentItemMethods=Y,exports.getAppInstall=function(){var e=q(),t=M(),r={appID:e,operationID:t,operationType:"getAppInstall"},n=new A,o=new Promise((function(e,t){n.subscribe((function(t){e(t),n.unsubscribe()}))}));return z({operationID:t,operation:n}),H(r),o},exports.openModal=function(e){var t=e.name,r=e.props,n=e.callback,o=q();if(o){var i=M(),a=M(),u={appID:o,operationID:i,operationType:"openModal",arg:{name:t,props:s({operationID:i},r)}},c=new A;c.subscribe((function(){c.unsubscribe()})),z({operationID:i,operation:c});var l=new A;l.subscribe((function(e){n(e),l.unsubscribe()})),z({operationID:a,operation:l}),H(u)}},exports.setExtraConfigValues=function(e){var t=q();if(t){var r=M(),n={appID:t,operationID:r,operationType:"setExtraConfigValues",arg:e},o=new A,i=new Promise((function(e,t){o.subscribe((function(t){e(t),o.unsubscribe()}))}));return z({operationID:r,operation:o}),H(n),i}},exports.setHeight=function(e){var t=e.height,r=q();if(r){var n=M(),o={appID:r,operationID:n,operationType:"setHeight",arg:{height:t}},i=new A;z({operationID:n,operation:i}),H(o)}},exports.useAgilityAppSDK=function(){var e=i.useState(!0),t=e[0],r=e[1],n=i.useState(null),o=n[0],a=n[1],u=i.useState(null),s=u[0],c=u[1],l=i.useState(null),f=l[0],p=l[1],d=i.useState(null),y=d[0],v=d[1],h=i.useState(null),m=h[0],b=h[1],g=i.useState(null),_=g[0],w=g[1];return i.useEffect((function(){var e=q();if(e){var t=new A;t.subscribe((function(e){e&&(a(e.app),c(e.instance),p(e.locale),v(e.field||null),w(e.contentItem||null),b(e.contentModel||null),r(!1),t.unsubscribe())}));var n=M();return z({operationID:n,operation:t}),window.addEventListener("message",U,!1),H({appID:e,operationID:n,operationType:"initialize"}),function(){removeEventListener("message",U,!1)}}}),[]),{initializing:t,appInstallContext:o,instance:s,locale:f,field:y,contentItem:_,contentModel:m}},exports.useAgilityPreInstall=function(){var e=i.useState(null),t=e[0],r=e[1],n=q();return n?(i.useEffect((function(){var e=new A;e.subscribe((function(t){t&&(r(t.configuration),e.unsubscribe())}));var t=M();return z({operationID:t,operation:e}),window.addEventListener("message",U,!1),H({appID:n,operationID:t,operationType:"preInstall"}),function(){removeEventListener("message",U,!1)}}),[]),{configuration:t}):{configuration:null}},exports.useElementHeight=function(){var e,t,r,n,o,a=i.useState(null),u=a[0],s=a[1],c=i.useState(0),l=c[0],f=c[1],p=i.useCallback((function(){f((null==u?void 0:u.offsetHeight)||0)}),[null==u?void 0:u.offsetHeight]);return e="resize",t=p,o=i.useRef(t),K((function(){o.current=t}),[t]),i.useEffect((function(){var t,i=null!==(t=null==r?void 0:r.current)&&void 0!==t?t:window;if(i&&i.addEventListener){var a=function(e){return o.current(e)};return i.addEventListener(e,a,n),function(){i.removeEventListener(e,a,n)}}}),[e,r,n]),K((function(){p()}),[null==u?void 0:u.offsetHeight]),[s,l]}; | ||
*/"production"===process.env.NODE_ENV?t.exports=function(){if(e)return r;e=1;var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator,y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,h={};function m(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||y}function b(){}function g(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||y}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var _=g.prototype=new b;_.constructor=g,v(_,m.prototype),_.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,O={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,r,n){var o,i={},a=null,u=null;if(null!=r)for(o in void 0!==r.ref&&(u=r.ref),void 0!==r.key&&(a=""+r.key),r)S.call(r,o)&&!E.hasOwnProperty(o)&&(i[o]=r[o]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:t,type:e,key:a,ref:u,props:i,_owner:O.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var x=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(e,r,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case t:case n:s=!0}}if(s)return a=a(s=e),e=""===i?"."+I(s,0):i,w(a)?(o="",null!=e&&(o=e.replace(x,"$&/")+"/"),R(a,r,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,r){return{$$typeof:t,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),r.push(a)),1;if(s=0,i=""===i?".":i+":",w(e))for(var c=0;c<e.length;c++){var l=i+I(u=e[c],c);s+=R(u,r,o,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),c=0;!(u=e.next()).done;)s+=R(u=u.value,r,o,l=i+I(u,c++),a);else if("object"===u)throw r=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function D(e,t,r){if(null==e)return e;var n=[],o=0;return R(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var j={current:null},T={transition:null},$={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:T,ReactCurrentOwner:O};return r.Children={map:D,forEach:function(e,t,r){D(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=m,r.Fragment=o,r.Profiler=a,r.PureComponent=g,r.StrictMode=i,r.Suspense=l,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$,r.cloneElement=function(e,r,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),i=e.key,a=e.ref,u=e._owner;if(null!=r){if(void 0!==r.ref&&(a=r.ref,u=O.current),void 0!==r.key&&(i=""+r.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in r)S.call(r,c)&&!E.hasOwnProperty(c)&&(o[c]=void 0===r[c]&&void 0!==s?s[c]:r[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){s=Array(c);for(var l=0;l<c;l++)s[l]=arguments[l+2];o.children=s}return{$$typeof:t,type:e.type,key:i,ref:a,props:o,_owner:u}},r.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},r.createElement=C,r.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:c,render:e}},r.isValidElement=k,r.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},r.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},r.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},r.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},r.useCallback=function(e,t){return j.current.useCallback(e,t)},r.useContext=function(e){return j.current.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e){return j.current.useDeferredValue(e)},r.useEffect=function(e,t){return j.current.useEffect(e,t)},r.useId=function(){return j.current.useId()},r.useImperativeHandle=function(e,t,r){return j.current.useImperativeHandle(e,t,r)},r.useInsertionEffect=function(e,t){return j.current.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return j.current.useLayoutEffect(e,t)},r.useMemo=function(e,t){return j.current.useMemo(e,t)},r.useReducer=function(e,t,r){return j.current.useReducer(e,t,r)},r.useRef=function(e){return j.current.useRef(e)},r.useState=function(e){return j.current.useState(e)},r.useSyncExternalStore=function(e,t,r){return j.current.useSyncExternalStore(e,t,r)},r.useTransition=function(){return j.current.useTransition()},r.version="18.2.0",r}():t.exports=(n||(n=1,function(e,t){"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v=Symbol.iterator,h="@@iterator";function m(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e[h];return"function"==typeof t?t:null}var b={current:null},g={transition:null},_={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},w={current:null},S={},O=null;function E(e){O=e}S.setExtraStackFrame=function(e){O=e},S.getCurrentStack=null,S.getStackAddendum=function(){var e="";O&&(e+=O);var t=S.getCurrentStack;return t&&(e+=t()||""),e};var C=!1,k=!1,x=!1,I=!1,R=!1,D={ReactCurrentDispatcher:b,ReactCurrentBatchConfig:g,ReactCurrentOwner:w};function P(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];T("warn",e,r)}function j(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];T("error",e,r)}function T(e,t,r){var n=D.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}D.ReactDebugCurrentFrame=S,D.ReactCurrentActQueue=_;var $={};function L(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;$[o]||(j("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),$[o]=!0)}var A={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){L(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){L(e,"replaceState")},enqueueSetState:function(e,t,r,n){L(e,"setState")}},N=Object.assign,F={};function M(e,t,r){this.props=e,this.context=t,this.refs=F,this.updater=r||A}Object.freeze(F),M.prototype.isReactComponent={},M.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},M.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var V={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},z=function(e,t){Object.defineProperty(M.prototype,e,{get:function(){P("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var U in V)V.hasOwnProperty(U)&&z(U,V[U]);function H(){}function q(e,t,r){this.props=e,this.context=t,this.refs=F,this.updater=r||A}H.prototype=M.prototype;var B=q.prototype=new H;B.constructor=q,N(B,M.prototype),B.isPureReactComponent=!0;var Y=Array.isArray;function W(e){return Y(e)}function K(e){return""+e}function G(e){if(function(e){try{return K(e),!1}catch(e){return!0}}(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),K(e)}function J(e){return e.displayName||"Context"}function X(e){if(null==e)return null;if("number"==typeof e.tag&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return J(e)+".Consumer";case u:return J(e._context)+".Provider";case c:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?r+"("+o+")":r}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:X(e.type)||"Memo";case d:var r=e,y=r._payload,v=r._init;try{return X(v(y))}catch(e){return null}}return null}var Q,Z,ee,te=Object.prototype.hasOwnProperty,re={key:!0,ref:!0,__self:!0,__source:!0};function ne(e){if(te.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function oe(e){if(te.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}ee={};var ie=function(e,t,n,o,i,a,u){var s={$$typeof:r,type:e,key:t,ref:n,props:u,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ae(e,t,r){var n,o={},i=null,a=null,u=null,s=null;if(null!=t)for(n in ne(t)&&(a=t.ref,function(e){if("string"==typeof e.ref&&w.current&&e.__self&&w.current.stateNode!==e.__self){var t=X(w.current.type);ee[t]||(j('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',t,e.ref),ee[t]=!0)}}(t)),oe(t)&&(G(t.key),i=""+t.key),u=void 0===t.__self?null:t.__self,s=void 0===t.__source?null:t.__source,t)te.call(t,n)&&!re.hasOwnProperty(n)&&(o[n]=t[n]);var c=arguments.length-2;if(1===c)o.children=r;else if(c>1){for(var l=Array(c),f=0;f<c;f++)l[f]=arguments[f+2];Object.freeze&&Object.freeze(l),o.children=l}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(i||a){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&function(e,t){var r=function(){Q||(Q=!0,j("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,d),a&&function(e,t){var r=function(){Z||(Z=!0,j("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(o,d)}return ie(e,i,a,u,s,w.current,o)}function ue(e,t,r){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,o,i=N({},e.props),a=e.key,u=e.ref,s=e._self,c=e._source,l=e._owner;if(null!=t)for(n in ne(t)&&(u=t.ref,l=w.current),oe(t)&&(G(t.key),a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)te.call(t,n)&&!re.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var f=arguments.length-2;if(1===f)i.children=r;else if(f>1){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];i.children=p}return ie(e.type,a,u,s,c,l,i)}function se(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var ce=".",le=":",fe=!1,pe=/\/+/g;function de(e){return e.replace(pe,"$&/")}function ye(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(G(e.key),r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function ve(e,t,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s,c,l,f=!1;if(null===e)f=!0;else switch(u){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case r:case n:f=!0}}if(f){var p=e,d=a(p),y=""===i?ce+ye(p,0):i;if(W(d)){var v="";null!=y&&(v=de(y)+"/"),ve(d,t,v,"",(function(e){return e}))}else null!=d&&(se(d)&&(!d.key||p&&p.key===d.key||G(d.key),s=d,c=o+(!d.key||p&&p.key===d.key?"":de(""+d.key)+"/")+y,d=ie(s.type,c,s.ref,s._self,s._source,s._owner,s.props)),t.push(d));return 1}var h=0,b=""===i?ce:i+le;if(W(e))for(var g=0;g<e.length;g++)h+=ve(l=e[g],t,o,b+ye(l,g),a);else{var _=m(e);if("function"==typeof _){var w=e;_===w.entries&&(fe||P("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),fe=!0);for(var S,O=_.call(w),E=0;!(S=O.next()).done;)h+=ve(l=S.value,t,o,b+ye(l,E++),a)}else if("object"===u){var C=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===C?"object with keys {"+Object.keys(e).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}}return h}function he(e,t,r){if(null==e)return e;var n=[],o=0;return ve(e,n,"","",(function(e){return t.call(r,e,o++)})),n}var me,be=-1,ge=0,_e=1,we=2;function Se(e){if(e._status===be){var t=(0,e._result)();if(t.then((function(t){if(e._status===ge||e._status===be){var r=e;r._status=_e,r._result=t}}),(function(t){if(e._status===ge||e._status===be){var r=e;r._status=we,r._result=t}})),e._status===be){var r=e;r._status=ge,r._result=t}}if(e._status===_e){var n=e._result;return void 0===n&&j("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",n),"default"in n||j("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",n),n.default}throw e._result}function Oe(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===a||R||e===i||e===l||e===f||I||e===y||C||k||x)||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===u||e.$$typeof===s||e.$$typeof===c||e.$$typeof===me||void 0!==e.getModuleId)}function Ee(){var e=b.current;return null===e&&j("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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}me=Symbol.for("react.module.reference");var Ce,ke,xe,Ie,Re,De,Pe,je=0;function Te(){}Te.__reactDisabledLog=!0;var $e,Le=D.ReactCurrentDispatcher;function Ae(e,t,r){if(void 0===$e)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);$e=n&&n[1]||""}return"\n"+$e+e}var Ne,Fe=!1,Me="function"==typeof WeakMap?WeakMap:Map;function Ve(e,t){if(!e||Fe)return"";var r,n=Ne.get(e);if(void 0!==n)return n;Fe=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Le.current,Le.current=null,function(){if(0===je){Ce=console.log,ke=console.info,xe=console.warn,Ie=console.error,Re=console.group,De=console.groupCollapsed,Pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}je++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){r=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){r=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var u=t.stack.split("\n"),s=r.stack.split("\n"),c=u.length-1,l=s.length-1;c>=1&&l>=0&&u[c]!==s[l];)l--;for(;c>=1&&l>=0;c--,l--)if(u[c]!==s[l]){if(1!==c||1!==l)do{if(c--,--l<0||u[c]!==s[l]){var f="\n"+u[c].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ne.set(e,f),f}}while(c>=1&&l>=0);break}}}finally{Fe=!1,Le.current=o,function(){if(0==--je){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:Ce}),info:N({},e,{value:ke}),warn:N({},e,{value:xe}),error:N({},e,{value:Ie}),group:N({},e,{value:Re}),groupCollapsed:N({},e,{value:De}),groupEnd:N({},e,{value:Pe})})}je<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",d=p?Ae(p):"";return"function"==typeof e&&Ne.set(e,d),d}function ze(e,t,r){if(null==e)return"";if("function"==typeof e)return Ve(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Ae(e);switch(e){case l:return Ae("Suspense");case f:return Ae("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Ve(e.render,!1);case p:return ze(e.type,t,r);case d:var n=e,o=n._payload,i=n._init;try{return ze(i(o),t,r)}catch(e){}}return""}Ne=new Me;var Ue,He={},qe=D.ReactDebugCurrentFrame;function Be(e){if(e){var t=e._owner,r=ze(e.type,e._source,t?t.type:null);qe.setExtraStackFrame(r)}else qe.setExtraStackFrame(null)}function Ye(e){if(e){var t=e._owner;E(ze(e.type,e._source,t?t.type:null))}else E(null)}function We(){if(w.current){var e=X(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Ue=!1;var Ke={};function Ge(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=We();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Ke[r]){Ke[r]=!0;var n="";e&&e._owner&&e._owner!==w.current&&(n=" It was passed a child from "+X(e._owner.type)+"."),Ye(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Ye(null)}}}function Je(e,t){if("object"==typeof e)if(W(e))for(var r=0;r<e.length;r++){var n=e[r];se(n)&&Ge(n,t)}else if(se(e))e._store&&(e._store.validated=!0);else if(e){var o=m(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)se(i.value)&&Ge(i.value,t)}}function Xe(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==c&&r.$$typeof!==p)return;t=r.propTypes}if(t){var n=X(r);!function(e,t,r,n,o){var i=Function.call.bind(te);for(var a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var s=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}u=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(Be(o),j("%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).",n||"React class",r,a,typeof u),Be(null)),u instanceof Error&&!(u.message in He)&&(He[u.message]=!0,Be(o),j("Failed %s type: %s",r,u.message),Be(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||Ue||(Ue=!0,j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qe(e,t,n){var i,a,u=Oe(e);if(!u){var s,c="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),c+=(null!=(i=t)&&void 0!==(a=i.__source)?"\n\nCheck your code at "+a.fileName.replace(/^.*[\\\/]/,"")+":"+a.lineNumber+".":"")||We(),null===e?s="null":W(e)?s="array":void 0!==e&&e.$$typeof===r?(s="<"+(X(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,j("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,c)}var l=ae.apply(this,arguments);if(null==l)return l;if(u)for(var f=2;f<arguments.length;f++)Je(arguments[f],e);return e===o?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ye(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Ye(null);break}}null!==e.ref&&(Ye(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),Ye(null))}(l):Xe(l),l}var Ze=!1,et=!1,tt=null,rt=0,nt=!1;function ot(e){e!==rt-1&&j("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),rt=e}function it(t,r,n){var o=_.current;if(null!==o)try{ut(o),function(t){if(null===tt)try{var r=("require"+Math.random()).slice(0,7);tt=(e&&e[r]).call(e,"timers").setImmediate}catch(e){tt=function(e){!1===et&&(et=!0,"undefined"==typeof MessageChannel&&j("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}tt(t)}((function(){0===o.length?(_.current=null,r(t)):it(t,r,n)}))}catch(e){n(e)}else r(t)}var at=!1;function ut(e){if(!at){at=!0;var t=0;try{for(;t<e.length;t++){var r=e[t];do{r=r(!0)}while(null!==r)}e.length=0}catch(r){throw e=e.slice(t+1),r}finally{at=!1}}}var st=Qe,ct=function(e,t,r){for(var n=ue.apply(this,arguments),o=2;o<arguments.length;o++)Je(arguments[o],n.type);return Xe(n),n},lt=function(e){var t=Qe.bind(null,e);return t.type=e,Ze||(Ze=!0,P("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return P("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},ft={map:he,forEach:function(e,t,r){he(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return he(e,(function(){t++})),t},toArray:function(e){return he(e,(function(e){return e}))||[]},only:function(e){if(!se(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=ft,t.Component=M,t.Fragment=o,t.Profiler=a,t.PureComponent=q,t.StrictMode=i,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=ct,t.createContext=function(e){var t={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:u,_context:t};var r=!1,n=!1,o=!1,i={$$typeof:s,_context:t};return Object.defineProperties(i,{Provider:{get:function(){return n||(n=!0,j("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return r||(r=!0,j("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(P("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=i,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=st,t.createFactory=lt,t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===p?j("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?j("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&j("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||j("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:c,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,e.name||e.displayName||(e.displayName=r)}}),r},t.isValidElement=se,t.lazy=function(e){var t,r,n={$$typeof:d,_payload:{_status:be,_result:e},_init:Se};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){j("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){j("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},t.memo=function(e,t){Oe(e)||j("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:p,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,e.name||e.displayName||(e.displayName=t)}}),n},t.startTransition=function(e,t){var r=g.transition;g.transition={};var n=g.transition;g.transition._updatedFibers=new Set;try{e()}finally{g.transition=r,null===r&&n._updatedFibers&&(n._updatedFibers.size>10&&P("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."),n._updatedFibers.clear())}},t.unstable_act=function(e){var t=rt;rt++,null===_.current&&(_.current=[]);var r,n=_.isBatchingLegacy;try{if(_.isBatchingLegacy=!0,r=e(),!n&&_.didScheduleLegacyUpdate){var o=_.current;null!==o&&(_.didScheduleLegacyUpdate=!1,ut(o))}}catch(e){throw ot(t),e}finally{_.isBatchingLegacy=n}if(null!==r&&"object"==typeof r&&"function"==typeof r.then){var i=r,a=!1,u={then:function(e,r){a=!0,i.then((function(n){ot(t),0===rt?it(n,e,r):e(n)}),(function(e){ot(t),r(e)}))}};return nt||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){a||(nt=!0,j("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),u}var s=r;if(ot(t),0===rt){var c=_.current;return null!==c&&(ut(c),_.current=null),{then:function(e,t){null===_.current?(_.current=[],it(s,e,t)):e(s)}}}return{then:function(e,t){e(s)}}},t.useCallback=function(e,t){return Ee().useCallback(e,t)},t.useContext=function(e){var t=Ee();if(void 0!==e._context){var r=e._context;r.Consumer===e?j("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&j("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return Ee().useDebugValue(e,t)},t.useDeferredValue=function(e){return Ee().useDeferredValue(e)},t.useEffect=function(e,t){return Ee().useEffect(e,t)},t.useId=function(){return Ee().useId()},t.useImperativeHandle=function(e,t,r){return Ee().useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return Ee().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return Ee().useLayoutEffect(e,t)},t.useMemo=function(e,t){return Ee().useMemo(e,t)},t.useReducer=function(e,t,r){return Ee().useReducer(e,t,r)},t.useRef=function(e){return Ee().useRef(e)},t.useState=function(e){return Ee().useState(e)},t.useSyncExternalStore=function(e,t,r){return Ee().useSyncExternalStore(e,t,r)},t.useTransition=function(){return Ee().useTransition()},t.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(o,o.exports)),o.exports);var i=t.exports,a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},a(e,t)};function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)};function c(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function f(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function p(e){return"function"==typeof e}function d(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var y=d((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function v(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var h=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=c(i),u=a.next();!u.done;u=a.next()){u.value.remove(this)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);var s=this.initialTeardown;if(p(s))try{s()}catch(e){o=e instanceof y?e.errors:[e]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var v=c(d),h=v.next();!h.done;h=v.next()){var m=h.value;try{g(m)}catch(e){o=null!=o?o:[],e instanceof y?o=f(f([],l(o)),l(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=v.return)&&n.call(v)}finally{if(r)throw r.error}}}if(o)throw new y(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)g(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&v(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&v(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),m=h.EMPTY;function b(e){return e instanceof h||e&&"closed"in e&&p(e.remove)&&p(e.add)&&p(e.unsubscribe)}function g(e){p(e)?e():e.unsubscribe()}var _={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},w={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=w.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,f([e,t],l(r))):setTimeout.apply(void 0,f([e,t],l(r)))},clearTimeout:function(e){var t=w.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function S(){}function O(e){e()}var E=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,b(t)&&t.add(r)):r.destination=D,r}return u(t,e),t.create=function(e,t,r){return new I(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(h),C=Function.prototype.bind;function k(e,t){return C.call(e,t)}var x=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){R(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){R(e)}else R(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){R(e)}},e}(),I=function(e){function t(t,r,n){var o,i,a=e.call(this)||this;p(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:a&&_.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},o={next:t.next&&k(t.next,i),error:t.error&&k(t.error,i),complete:t.complete&&k(t.complete,i)}):o=t;return a.destination=new x(o),a}return u(t,e),t}(E);function R(e){var t;t=e,w.setTimeout((function(){throw t}))}var D={closed:!0,next:S,error:function(e){throw e},complete:S},P="function"==typeof Symbol&&Symbol.observable||"@@observable";function j(e){return e}var T=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof E||function(e){return e&&p(e.next)&&p(e.error)&&p(e.complete)}(n)&&b(n)?e:new I(e,t,r);return O((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=$(t))((function(t,n){var o=new I({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[P]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?j:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=$(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function $(e){var t;return null!==(t=null!=e?e:_.Promise)&&void 0!==t?t:Promise}var L=d((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),A=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return u(t,e),t.prototype.lift=function(e){var t=new N(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new L},t.prototype.next=function(e){var t=this;O((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=c(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;O((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;O((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?m:(this.currentObservers=null,i.push(e),new h((function(){t.currentObservers=null,v(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new T;return e.source=this,e},t.create=function(e,t){return new N(e,t)},t}(T),N=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return u(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:m},t}(A),F=0;var M=function(){return"operation-".concat(++F)},V={},z=function(e){var t=e.operationID,r=e.operation,n=e.autoDelete,o=void 0===n||n;return V[t]={operation:r,autoDelete:o},r},U=function(e){var t=e.data,r=t.operationID;if(r){var n=function(e){var t=V[e],r=t.operation;return t.autoDelete&&delete V[e],r||null}(r);n&&n.next(t.arg)}},H=function(e){window.parent.postMessage(e,"*")},q=function(){var e;if("undefined"==typeof window)return"-1";var t=window.location.search;return null!==(e=new URLSearchParams(t).get("appID"))&&void 0!==e?e:""},B=Object.freeze({__proto__:null,persistData:function(e){var t=e.key,r=e.value,n=q();if(n){var o=M(),i={appID:n,operationID:o,operationType:"persistData",arg:{key:t,value:r}},a=new A,u=new Promise((function(e,t){a.subscribe((function(t){e(t),a.unsubscribe()}))}));return z({operationID:o,operation:a}),H(i),u}},updateConfigurationValue:function(e){var t=e.name,r=e.value,n=q();if(n){var o=M(),i={appID:n,operationID:o,operationType:"updateConfigurationValue",arg:{name:t,value:r}},a=new A,u=new Promise((function(e,t){a.subscribe((function(t){e(t),a.unsubscribe()}))}));return z({operationID:o,operation:a}),H(i),u}}}),Y=Object.freeze({__proto__:null,addFieldListener:function(e){var t=e.fieldName,r=e.onChange,n=q();if(n){var o=M(),i="fieldName-".concat(n),a={appID:n,operationID:o,operationType:"addFieldListener",arg:{fieldName:t,operationID:i,operationType:"onFieldChanged"}},u=new A;z({operationID:o,operation:u});var s=new A;s.subscribe((function(e){var t=e.fieldValue;r(t)})),z({operationID:i,operation:s,autoDelete:!1}),H(a)}},getContentItem:function(){var e=q();if(e){var t=M(),r={appID:e,operationID:t,operationType:"getContentItem"},n=new A,o=new Promise((function(e,t){n.subscribe((function(t){e(t),n.unsubscribe()}))}));return z({operationID:t,operation:n}),H(r),o}},removeFieldListener:function(e){var t=e.fieldName,r=q();if(r){var n=M(),o={appID:r,operationID:n,operationType:"removeFieldListener",arg:{fieldName:t,operationID:"fieldName-".concat(r)}},i=new A;i.subscribe((function(e){!function(e){delete V[e]}(e.removeOperationID),i.unsubscribe()})),z({operationID:n,operation:i}),H(o)}},setFieldValue:function(e){var t=e.name,r=e.value,n=q();if(n){var o=M(),i={appID:n,operationID:o,operationType:"setFieldValue",arg:{name:t,value:r}},a=new A;z({operationID:o,operation:a}),H(i)}}}),W=Object.freeze({__proto__:null,selectAssets:function(){var e=q();if(e){var t=M(),r={appID:e,operationID:t,operationType:"selectAssets"},n=new A,o=new Promise((function(e,t){n.subscribe((function(){e(),n.unsubscribe()}))}));return z({operationID:t,operation:n}),H(r),o}}}),K="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;exports.assetsMethods=W,exports.configMethods=B,exports.contentItemMethods=Y,exports.getAppInstall=function(){var e=q(),t=M(),r={appID:e,operationID:t,operationType:"getAppInstall"},n=new A,o=new Promise((function(e,t){n.subscribe((function(t){e(t),n.unsubscribe()}))}));return z({operationID:t,operation:n}),H(r),o},exports.openModal=function(e){var t=e.name,r=e.props,n=e.callback,o=q();if(o){var i=M(),a=M(),u={appID:o,operationID:i,operationType:"openModal",arg:{name:t,props:s({operationID:i},r)}},c=new A;c.subscribe((function(){c.unsubscribe()})),z({operationID:i,operation:c});var l=new A;l.subscribe((function(e){n(e),l.unsubscribe()})),z({operationID:a,operation:l}),H(u)}},exports.setExtraConfigValues=function(e){var t=q();if(t){var r=M(),n={appID:t,operationID:r,operationType:"setExtraConfigValues",arg:e},o=new A,i=new Promise((function(e,t){o.subscribe((function(t){e(t),o.unsubscribe()}))}));return z({operationID:r,operation:o}),H(n),i}},exports.setHeight=function(e){var t=e.height,r=q();if(r){var n=M(),o={appID:r,operationID:n,operationType:"setHeight",arg:{height:t}},i=new A;z({operationID:n,operation:i}),H(o)}},exports.useAgilityAppSDK=function(){var e=i.useState(!0),t=e[0],r=e[1],n=i.useState(null),o=n[0],a=n[1],u=i.useState(null),s=u[0],c=u[1],l=i.useState(null),f=l[0],p=l[1],d=i.useState(null),y=d[0],v=d[1],h=i.useState(null),m=h[0],b=h[1],g=i.useState(null),_=g[0],w=g[1];return i.useEffect((function(){var e=q();if(e){var t=new A;t.subscribe((function(e){e&&(a(e.app),c(e.instance),p(e.locale),v(e.field||null),w(e.contentItem||null),b(e.contentModel||null),r(!1),t.unsubscribe())}));var n=M();return z({operationID:n,operation:t}),window.addEventListener("message",U,!1),H({appID:e,operationID:n,operationType:"initialize"}),function(){removeEventListener("message",U,!1)}}}),[]),{initializing:t,appInstallContext:o,instance:s,locale:f,field:y,contentItem:_,contentModel:m}},exports.useAgilityPreInstall=function(){var e=i.useState([]),t=e[0],r=e[1],n=q();return n?(i.useEffect((function(){var e=new A;e.subscribe((function(t){t&&(r(t.configuration),e.unsubscribe())}));var t=M();return z({operationID:t,operation:e}),window.addEventListener("message",U,!1),H({appID:n,operationID:t,operationType:"preInstall"}),function(){removeEventListener("message",U,!1)}}),[]),{configuration:t}):{configuration:t}},exports.useElementHeight=function(){var e,t,r,n,o,a=i.useState(null),u=a[0],s=a[1],c=i.useState(0),l=c[0],f=c[1],p=i.useCallback((function(){f((null==u?void 0:u.offsetHeight)||0)}),[null==u?void 0:u.offsetHeight]);return e="resize",t=p,o=i.useRef(t),K((function(){o.current=t}),[t]),i.useEffect((function(){var t,i=null!==(t=null==r?void 0:r.current)&&void 0!==t?t:window;if(i&&i.addEventListener){var a=function(e){return o.current(e)};return i.addEventListener(e,a,n),function(){i.removeEventListener(e,a,n)}}}),[e,r,n]),K((function(){p()}),[null==u?void 0:u.offsetHeight]),[s,l]}; | ||
//# sourceMappingURL=index.js.map |
import { IConfig } from './types'; | ||
interface AgilityPreInstallReturn { | ||
configuration: IConfig[] | null; | ||
configuration: IConfig[]; | ||
} | ||
@@ -5,0 +5,0 @@ /** |
@@ -10,3 +10,3 @@ var e,t={exports:{}},r={};var n,o,i,a={exports:{}}; | ||
* LICENSE file in the root directory of this source tree. | ||
*/"production"===process.env.NODE_ENV?t.exports=function(){if(e)return r;e=1;var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator,y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,h={};function m(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||y}function b(){}function g(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||y}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var _=g.prototype=new b;_.constructor=g,v(_,m.prototype),_.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,O={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,r,n){var o,i={},a=null,u=null;if(null!=r)for(o in void 0!==r.ref&&(u=r.ref),void 0!==r.key&&(a=""+r.key),r)S.call(r,o)&&!E.hasOwnProperty(o)&&(i[o]=r[o]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:t,type:e,key:a,ref:u,props:i,_owner:O.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var I=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function D(e,r,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case t:case n:s=!0}}if(s)return a=a(s=e),e=""===i?"."+R(s,0):i,w(a)?(o="",null!=e&&(o=e.replace(I,"$&/")+"/"),D(a,r,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,r){return{$$typeof:t,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(I,"$&/")+"/")+e)),r.push(a)),1;if(s=0,i=""===i?".":i+":",w(e))for(var c=0;c<e.length;c++){var l=i+R(u=e[c],c);s+=D(u,r,o,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),c=0;!(u=e.next()).done;)s+=D(u=u.value,r,o,l=i+R(u,c++),a);else if("object"===u)throw r=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function x(e,t,r){if(null==e)return e;var n=[],o=0;return D(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function j(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},T={transition:null},$={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:T,ReactCurrentOwner:O};return r.Children={map:x,forEach:function(e,t,r){x(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return x(e,(function(){t++})),t},toArray:function(e){return x(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=m,r.Fragment=o,r.Profiler=a,r.PureComponent=g,r.StrictMode=i,r.Suspense=l,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$,r.cloneElement=function(e,r,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),i=e.key,a=e.ref,u=e._owner;if(null!=r){if(void 0!==r.ref&&(a=r.ref,u=O.current),void 0!==r.key&&(i=""+r.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in r)S.call(r,c)&&!E.hasOwnProperty(c)&&(o[c]=void 0===r[c]&&void 0!==s?s[c]:r[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){s=Array(c);for(var l=0;l<c;l++)s[l]=arguments[l+2];o.children=s}return{$$typeof:t,type:e.type,key:i,ref:a,props:o,_owner:u}},r.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},r.createElement=C,r.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:c,render:e}},r.isValidElement=k,r.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:j}},r.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},r.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},r.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},r.useCallback=function(e,t){return P.current.useCallback(e,t)},r.useContext=function(e){return P.current.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e){return P.current.useDeferredValue(e)},r.useEffect=function(e,t){return P.current.useEffect(e,t)},r.useId=function(){return P.current.useId()},r.useImperativeHandle=function(e,t,r){return P.current.useImperativeHandle(e,t,r)},r.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},r.useMemo=function(e,t){return P.current.useMemo(e,t)},r.useReducer=function(e,t,r){return P.current.useReducer(e,t,r)},r.useRef=function(e){return P.current.useRef(e)},r.useState=function(e){return P.current.useState(e)},r.useSyncExternalStore=function(e,t,r){return P.current.useSyncExternalStore(e,t,r)},r.useTransition=function(){return P.current.useTransition()},r.version="18.2.0",r}():t.exports=(n||(n=1,o=a,i=a.exports,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v=Symbol.iterator,h="@@iterator";function m(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e[h];return"function"==typeof t?t:null}var b={current:null},g={transition:null},_={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},w={current:null},S={},O=null;function E(e){O=e}S.setExtraStackFrame=function(e){O=e},S.getCurrentStack=null,S.getStackAddendum=function(){var e="";O&&(e+=O);var t=S.getCurrentStack;return t&&(e+=t()||""),e};var C=!1,k=!1,I=!1,R=!1,D=!1,x={ReactCurrentDispatcher:b,ReactCurrentBatchConfig:g,ReactCurrentOwner:w};function j(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];T("warn",e,r)}function P(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];T("error",e,r)}function T(e,t,r){var n=x.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}x.ReactDebugCurrentFrame=S,x.ReactCurrentActQueue=_;var $={};function L(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;$[o]||(P("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),$[o]=!0)}var A={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){L(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){L(e,"replaceState")},enqueueSetState:function(e,t,r,n){L(e,"setState")}},N=Object.assign,F={};function M(e,t,r){this.props=e,this.context=t,this.refs=F,this.updater=r||A}Object.freeze(F),M.prototype.isReactComponent={},M.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},M.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var V={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},z=function(e,t){Object.defineProperty(M.prototype,e,{get:function(){j("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var U in V)V.hasOwnProperty(U)&&z(U,V[U]);function H(){}function q(e,t,r){this.props=e,this.context=t,this.refs=F,this.updater=r||A}H.prototype=M.prototype;var B=q.prototype=new H;B.constructor=q,N(B,M.prototype),B.isPureReactComponent=!0;var Y=Array.isArray;function W(e){return Y(e)}function G(e){return""+e}function K(e){if(function(e){try{return G(e),!1}catch(e){return!0}}(e))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),G(e)}function J(e){return e.displayName||"Context"}function X(e){if(null==e)return null;if("number"==typeof e.tag&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case t:return"Portal";case a:return"Profiler";case n:return"StrictMode";case l:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return J(e)+".Consumer";case u:return J(e._context)+".Provider";case c:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?r+"("+o+")":r}(e,e.render,"ForwardRef");case p:var o=e.displayName||null;return null!==o?o:X(e.type)||"Memo";case d:var i=e,y=i._payload,v=i._init;try{return X(v(y))}catch(e){return null}}return null}var Q,Z,ee,te=Object.prototype.hasOwnProperty,re={key:!0,ref:!0,__self:!0,__source:!0};function ne(e){if(te.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function oe(e){if(te.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}ee={};var ie=function(t,r,n,o,i,a,u){var s={$$typeof:e,type:t,key:r,ref:n,props:u,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ae(e,t,r){var n,o={},i=null,a=null,u=null,s=null;if(null!=t)for(n in ne(t)&&(a=t.ref,function(e){if("string"==typeof e.ref&&w.current&&e.__self&&w.current.stateNode!==e.__self){var t=X(w.current.type);ee[t]||(P('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',t,e.ref),ee[t]=!0)}}(t)),oe(t)&&(K(t.key),i=""+t.key),u=void 0===t.__self?null:t.__self,s=void 0===t.__source?null:t.__source,t)te.call(t,n)&&!re.hasOwnProperty(n)&&(o[n]=t[n]);var c=arguments.length-2;if(1===c)o.children=r;else if(c>1){for(var l=Array(c),f=0;f<c;f++)l[f]=arguments[f+2];Object.freeze&&Object.freeze(l),o.children=l}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(i||a){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&function(e,t){var r=function(){Q||(Q=!0,P("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,d),a&&function(e,t){var r=function(){Z||(Z=!0,P("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(o,d)}return ie(e,i,a,u,s,w.current,o)}function ue(e,t,r){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,o,i=N({},e.props),a=e.key,u=e.ref,s=e._self,c=e._source,l=e._owner;if(null!=t)for(n in ne(t)&&(u=t.ref,l=w.current),oe(t)&&(K(t.key),a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)te.call(t,n)&&!re.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var f=arguments.length-2;if(1===f)i.children=r;else if(f>1){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];i.children=p}return ie(e.type,a,u,s,c,l,i)}function se(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var ce=".",le=":",fe=!1,pe=/\/+/g;function de(e){return e.replace(pe,"$&/")}function ye(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(K(e.key),r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function ve(r,n,o,i,a){var u=typeof r;"undefined"!==u&&"boolean"!==u||(r=null);var s,c,l,f=!1;if(null===r)f=!0;else switch(u){case"string":case"number":f=!0;break;case"object":switch(r.$$typeof){case e:case t:f=!0}}if(f){var p=r,d=a(p),y=""===i?ce+ye(p,0):i;if(W(d)){var v="";null!=y&&(v=de(y)+"/"),ve(d,n,v,"",(function(e){return e}))}else null!=d&&(se(d)&&(!d.key||p&&p.key===d.key||K(d.key),s=d,c=o+(!d.key||p&&p.key===d.key?"":de(""+d.key)+"/")+y,d=ie(s.type,c,s.ref,s._self,s._source,s._owner,s.props)),n.push(d));return 1}var h=0,b=""===i?ce:i+le;if(W(r))for(var g=0;g<r.length;g++)h+=ve(l=r[g],n,o,b+ye(l,g),a);else{var _=m(r);if("function"==typeof _){var w=r;_===w.entries&&(fe||j("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),fe=!0);for(var S,O=_.call(w),E=0;!(S=O.next()).done;)h+=ve(l=S.value,n,o,b+ye(l,E++),a)}else if("object"===u){var C=String(r);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===C?"object with keys {"+Object.keys(r).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}}return h}function he(e,t,r){if(null==e)return e;var n=[],o=0;return ve(e,n,"","",(function(e){return t.call(r,e,o++)})),n}var me,be=-1,ge=0,_e=1,we=2;function Se(e){if(e._status===be){var t=(0,e._result)();if(t.then((function(t){if(e._status===ge||e._status===be){var r=e;r._status=_e,r._result=t}}),(function(t){if(e._status===ge||e._status===be){var r=e;r._status=we,r._result=t}})),e._status===be){var r=e;r._status=ge,r._result=t}}if(e._status===_e){var n=e._result;return void 0===n&&P("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",n),"default"in n||P("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",n),n.default}throw e._result}function Oe(e){return"string"==typeof e||"function"==typeof e||!!(e===r||e===a||D||e===n||e===l||e===f||R||e===y||C||k||I)||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===u||e.$$typeof===s||e.$$typeof===c||e.$$typeof===me||void 0!==e.getModuleId)}function Ee(){var e=b.current;return null===e&&P("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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}me=Symbol.for("react.module.reference");var Ce,ke,Ie,Re,De,xe,je,Pe=0;function Te(){}Te.__reactDisabledLog=!0;var $e,Le=x.ReactCurrentDispatcher;function Ae(e,t,r){if(void 0===$e)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);$e=n&&n[1]||""}return"\n"+$e+e}var Ne,Fe=!1,Me="function"==typeof WeakMap?WeakMap:Map;function Ve(e,t){if(!e||Fe)return"";var r,n=Ne.get(e);if(void 0!==n)return n;Fe=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Le.current,Le.current=null,function(){if(0===Pe){Ce=console.log,ke=console.info,Ie=console.warn,Re=console.error,De=console.group,xe=console.groupCollapsed,je=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Pe++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){r=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){r=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var u=t.stack.split("\n"),s=r.stack.split("\n"),c=u.length-1,l=s.length-1;c>=1&&l>=0&&u[c]!==s[l];)l--;for(;c>=1&&l>=0;c--,l--)if(u[c]!==s[l]){if(1!==c||1!==l)do{if(c--,--l<0||u[c]!==s[l]){var f="\n"+u[c].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ne.set(e,f),f}}while(c>=1&&l>=0);break}}}finally{Fe=!1,Le.current=o,function(){if(0==--Pe){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:Ce}),info:N({},e,{value:ke}),warn:N({},e,{value:Ie}),error:N({},e,{value:Re}),group:N({},e,{value:De}),groupCollapsed:N({},e,{value:xe}),groupEnd:N({},e,{value:je})})}Pe<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",d=p?Ae(p):"";return"function"==typeof e&&Ne.set(e,d),d}function ze(e,t,r){if(null==e)return"";if("function"==typeof e)return Ve(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Ae(e);switch(e){case l:return Ae("Suspense");case f:return Ae("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Ve(e.render,!1);case p:return ze(e.type,t,r);case d:var n=e,o=n._payload,i=n._init;try{return ze(i(o),t,r)}catch(e){}}return""}Ne=new Me;var Ue,He={},qe=x.ReactDebugCurrentFrame;function Be(e){if(e){var t=e._owner,r=ze(e.type,e._source,t?t.type:null);qe.setExtraStackFrame(r)}else qe.setExtraStackFrame(null)}function Ye(e){if(e){var t=e._owner;E(ze(e.type,e._source,t?t.type:null))}else E(null)}function We(){if(w.current){var e=X(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Ue=!1;var Ge={};function Ke(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=We();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Ge[r]){Ge[r]=!0;var n="";e&&e._owner&&e._owner!==w.current&&(n=" It was passed a child from "+X(e._owner.type)+"."),Ye(e),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Ye(null)}}}function Je(e,t){if("object"==typeof e)if(W(e))for(var r=0;r<e.length;r++){var n=e[r];se(n)&&Ke(n,t)}else if(se(e))e._store&&(e._store.validated=!0);else if(e){var o=m(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)se(i.value)&&Ke(i.value,t)}}function Xe(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==c&&r.$$typeof!==p)return;t=r.propTypes}if(t){var n=X(r);!function(e,t,r,n,o){var i=Function.call.bind(te);for(var a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var s=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}u=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(Be(o),P("%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).",n||"React class",r,a,typeof u),Be(null)),u instanceof Error&&!(u.message in He)&&(He[u.message]=!0,Be(o),P("Failed %s type: %s",r,u.message),Be(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||Ue||(Ue=!0,P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qe(t,n,o){var i,a,u=Oe(t);if(!u){var s,c="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),c+=(null!=(i=n)&&void 0!==(a=i.__source)?"\n\nCheck your code at "+a.fileName.replace(/^.*[\\\/]/,"")+":"+a.lineNumber+".":"")||We(),null===t?s="null":W(t)?s="array":void 0!==t&&t.$$typeof===e?(s="<"+(X(t.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):s=typeof t,P("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,c)}var l=ae.apply(this,arguments);if(null==l)return l;if(u)for(var f=2;f<arguments.length;f++)Je(arguments[f],t);return t===r?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ye(e),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Ye(null);break}}null!==e.ref&&(Ye(e),P("Invalid attribute `ref` supplied to `React.Fragment`."),Ye(null))}(l):Xe(l),l}var Ze=!1,et=!1,tt=null,rt=0,nt=!1;function ot(e){e!==rt-1&&P("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),rt=e}function it(e,t,r){var n=_.current;if(null!==n)try{ut(n),function(e){if(null===tt)try{var t=("require"+Math.random()).slice(0,7);tt=(o&&o[t]).call(o,"timers").setImmediate}catch(e){tt=function(e){!1===et&&(et=!0,"undefined"==typeof MessageChannel&&P("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}tt(e)}((function(){0===n.length?(_.current=null,t(e)):it(e,t,r)}))}catch(e){r(e)}else t(e)}var at=!1;function ut(e){if(!at){at=!0;var t=0;try{for(;t<e.length;t++){var r=e[t];do{r=r(!0)}while(null!==r)}e.length=0}catch(r){throw e=e.slice(t+1),r}finally{at=!1}}}var st=Qe,ct=function(e,t,r){for(var n=ue.apply(this,arguments),o=2;o<arguments.length;o++)Je(arguments[o],n.type);return Xe(n),n},lt=function(e){var t=Qe.bind(null,e);return t.type=e,Ze||(Ze=!0,j("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return j("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},ft={map:he,forEach:function(e,t,r){he(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return he(e,(function(){t++})),t},toArray:function(e){return he(e,(function(e){return e}))||[]},only:function(e){if(!se(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};i.Children=ft,i.Component=M,i.Fragment=r,i.Profiler=a,i.PureComponent=q,i.StrictMode=n,i.Suspense=l,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,i.cloneElement=ct,i.createContext=function(e){var t={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:u,_context:t};var r=!1,n=!1,o=!1,i={$$typeof:s,_context:t};return Object.defineProperties(i,{Provider:{get:function(){return n||(n=!0,P("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return r||(r=!0,P("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(j("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=i,t._currentRenderer=null,t._currentRenderer2=null,t},i.createElement=st,i.createFactory=lt,i.createRef=function(){var e={current:null};return Object.seal(e),e},i.forwardRef=function(e){null!=e&&e.$$typeof===p?P("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?P("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&P("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||P("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:c,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,e.name||e.displayName||(e.displayName=r)}}),r},i.isValidElement=se,i.lazy=function(e){var t,r,n={$$typeof:d,_payload:{_status:be,_result:e},_init:Se};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){P("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){P("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},i.memo=function(e,t){Oe(e)||P("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:p,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,e.name||e.displayName||(e.displayName=t)}}),n},i.startTransition=function(e,t){var r=g.transition;g.transition={};var n=g.transition;g.transition._updatedFibers=new Set;try{e()}finally{g.transition=r,null===r&&n._updatedFibers&&(n._updatedFibers.size>10&&j("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."),n._updatedFibers.clear())}},i.unstable_act=function(e){var t=rt;rt++,null===_.current&&(_.current=[]);var r,n=_.isBatchingLegacy;try{if(_.isBatchingLegacy=!0,r=e(),!n&&_.didScheduleLegacyUpdate){var o=_.current;null!==o&&(_.didScheduleLegacyUpdate=!1,ut(o))}}catch(e){throw ot(t),e}finally{_.isBatchingLegacy=n}if(null!==r&&"object"==typeof r&&"function"==typeof r.then){var i=r,a=!1,u={then:function(e,r){a=!0,i.then((function(n){ot(t),0===rt?it(n,e,r):e(n)}),(function(e){ot(t),r(e)}))}};return nt||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){a||(nt=!0,P("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),u}var s=r;if(ot(t),0===rt){var c=_.current;return null!==c&&(ut(c),_.current=null),{then:function(e,t){null===_.current?(_.current=[],it(s,e,t)):e(s)}}}return{then:function(e,t){e(s)}}},i.useCallback=function(e,t){return Ee().useCallback(e,t)},i.useContext=function(e){var t=Ee();if(void 0!==e._context){var r=e._context;r.Consumer===e?P("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&P("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},i.useDebugValue=function(e,t){return Ee().useDebugValue(e,t)},i.useDeferredValue=function(e){return Ee().useDeferredValue(e)},i.useEffect=function(e,t){return Ee().useEffect(e,t)},i.useId=function(){return Ee().useId()},i.useImperativeHandle=function(e,t,r){return Ee().useImperativeHandle(e,t,r)},i.useInsertionEffect=function(e,t){return Ee().useInsertionEffect(e,t)},i.useLayoutEffect=function(e,t){return Ee().useLayoutEffect(e,t)},i.useMemo=function(e,t){return Ee().useMemo(e,t)},i.useReducer=function(e,t,r){return Ee().useReducer(e,t,r)},i.useRef=function(e){return Ee().useRef(e)},i.useState=function(e){return Ee().useState(e)},i.useSyncExternalStore=function(e,t,r){return Ee().useSyncExternalStore(e,t,r)},i.useTransition=function(){return Ee().useTransition()},i.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),a.exports);var u=t.exports,s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},s(e,t)};function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function f(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function d(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function y(e){return"function"==typeof e}function v(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var h=v((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function m(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var b=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=f(i),u=a.next();!u.done;u=a.next()){u.value.remove(this)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);var s=this.initialTeardown;if(y(s))try{s()}catch(e){o=e instanceof h?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var l=f(c),v=l.next();!v.done;v=l.next()){var m=v.value;try{w(m)}catch(e){o=null!=o?o:[],e instanceof h?o=d(d([],p(o)),p(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{v&&!v.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new h(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)w(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&m(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&m(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),g=b.EMPTY;function _(e){return e instanceof b||e&&"closed"in e&&y(e.remove)&&y(e.add)&&y(e.unsubscribe)}function w(e){y(e)?e():e.unsubscribe()}var S={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},O={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=O.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,d([e,t],p(r))):setTimeout.apply(void 0,d([e,t],p(r)))},clearTimeout:function(e){var t=O.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function E(){}function C(e){e()}var k=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,_(t)&&t.add(r)):r.destination=P,r}return c(t,e),t.create=function(e,t,r){return new x(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(b),I=Function.prototype.bind;function R(e,t){return I.call(e,t)}var D=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){j(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){j(e)}else j(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){j(e)}},e}(),x=function(e){function t(t,r,n){var o,i,a=e.call(this)||this;y(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:a&&S.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},o={next:t.next&&R(t.next,i),error:t.error&&R(t.error,i),complete:t.complete&&R(t.complete,i)}):o=t;return a.destination=new D(o),a}return c(t,e),t}(k);function j(e){var t;t=e,O.setTimeout((function(){throw t}))}var P={closed:!0,next:E,error:function(e){throw e},complete:E},T="function"==typeof Symbol&&Symbol.observable||"@@observable";function $(e){return e}var L=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof k||function(e){return e&&y(e.next)&&y(e.error)&&y(e.complete)}(n)&&_(n)?e:new x(e,t,r);return C((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=A(t))((function(t,n){var o=new x({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[T]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?$:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=A(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function A(e){var t;return null!==(t=null!=e?e:S.Promise)&&void 0!==t?t:Promise}var N=v((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),F=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return c(t,e),t.prototype.lift=function(e){var t=new M(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new N},t.prototype.next=function(e){var t=this;C((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=f(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;C((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;C((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?g:(this.currentObservers=null,i.push(e),new b((function(){t.currentObservers=null,m(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new L;return e.source=this,e},t.create=function(e,t){return new M(e,t)},t}(L),M=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return c(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:g},t}(F),V=0;var z=function(){return"operation-".concat(++V)},U={},H=function(e){var t=e.operationID,r=e.operation,n=e.autoDelete,o=void 0===n||n;return U[t]={operation:r,autoDelete:o},r},q=function(e){var t=e.data,r=t.operationID;if(r){var n=function(e){var t=U[e],r=t.operation;return t.autoDelete&&delete U[e],r||null}(r);n&&n.next(t.arg)}},B=function(e){window.parent.postMessage(e,"*")},Y=function(){var e;if("undefined"==typeof window)return"-1";var t=window.location.search;return null!==(e=new URLSearchParams(t).get("appID"))&&void 0!==e?e:""},W=function(){var e=u.useState(!0),t=e[0],r=e[1],n=u.useState(null),o=n[0],i=n[1],a=u.useState(null),s=a[0],c=a[1],l=u.useState(null),f=l[0],p=l[1],d=u.useState(null),y=d[0],v=d[1],h=u.useState(null),m=h[0],b=h[1],g=u.useState(null),_=g[0],w=g[1];return u.useEffect((function(){var e=Y();if(e){var t=new F;t.subscribe((function(e){e&&(i(e.app),c(e.instance),p(e.locale),v(e.field||null),w(e.contentItem||null),b(e.contentModel||null),r(!1),t.unsubscribe())}));var n=z();return H({operationID:n,operation:t}),window.addEventListener("message",q,!1),B({appID:e,operationID:n,operationType:"initialize"}),function(){removeEventListener("message",q,!1)}}}),[]),{initializing:t,appInstallContext:o,instance:s,locale:f,field:y,contentItem:_,contentModel:m}},G=function(){var e=u.useState(null),t=e[0],r=e[1],n=Y();return n?(u.useEffect((function(){var e=new F;e.subscribe((function(t){t&&(r(t.configuration),e.unsubscribe())}));var t=z();return H({operationID:t,operation:e}),window.addEventListener("message",q,!1),B({appID:n,operationID:t,operationType:"preInstall"}),function(){removeEventListener("message",q,!1)}}),[]),{configuration:t}):{configuration:null}},K=Object.freeze({__proto__:null,persistData:function(e){var t=e.key,r=e.value,n=Y();if(n){var o=z(),i={appID:n,operationID:o,operationType:"persistData",arg:{key:t,value:r}},a=new F,u=new Promise((function(e,t){a.subscribe((function(t){e(t),a.unsubscribe()}))}));return H({operationID:o,operation:a}),B(i),u}},updateConfigurationValue:function(e){var t=e.name,r=e.value,n=Y();if(n){var o=z(),i={appID:n,operationID:o,operationType:"updateConfigurationValue",arg:{name:t,value:r}},a=new F,u=new Promise((function(e,t){a.subscribe((function(t){e(t),a.unsubscribe()}))}));return H({operationID:o,operation:a}),B(i),u}}}),J=Object.freeze({__proto__:null,addFieldListener:function(e){var t=e.fieldName,r=e.onChange,n=Y();if(n){var o=z(),i="fieldName-".concat(n),a={appID:n,operationID:o,operationType:"addFieldListener",arg:{fieldName:t,operationID:i,operationType:"onFieldChanged"}},u=new F;H({operationID:o,operation:u});var s=new F;s.subscribe((function(e){var t=e.fieldValue;r(t)})),H({operationID:i,operation:s,autoDelete:!1}),B(a)}},getContentItem:function(){var e=Y();if(e){var t=z(),r={appID:e,operationID:t,operationType:"getContentItem"},n=new F,o=new Promise((function(e,t){n.subscribe((function(t){e(t),n.unsubscribe()}))}));return H({operationID:t,operation:n}),B(r),o}},removeFieldListener:function(e){var t=e.fieldName,r=Y();if(r){var n=z(),o={appID:r,operationID:n,operationType:"removeFieldListener",arg:{fieldName:t,operationID:"fieldName-".concat(r)}},i=new F;i.subscribe((function(e){!function(e){delete U[e]}(e.removeOperationID),i.unsubscribe()})),H({operationID:n,operation:i}),B(o)}},setFieldValue:function(e){var t=e.name,r=e.value,n=Y();if(n){var o=z(),i={appID:n,operationID:o,operationType:"setFieldValue",arg:{name:t,value:r}},a=new F;H({operationID:o,operation:a}),B(i)}}}),X=function(){var e=Y(),t=z(),r={appID:e,operationID:t,operationType:"getAppInstall"},n=new F,o=new Promise((function(e,t){n.subscribe((function(t){e(t),n.unsubscribe()}))}));return H({operationID:t,operation:n}),B(r),o},Q=function(e){var t=Y();if(t){var r=z(),n={appID:t,operationID:r,operationType:"setExtraConfigValues",arg:e},o=new F,i=new Promise((function(e,t){o.subscribe((function(t){e(t),o.unsubscribe()}))}));return H({operationID:r,operation:o}),B(n),i}},Z=Object.freeze({__proto__:null,selectAssets:function(){var e=Y();if(e){var t=z(),r={appID:e,operationID:t,operationType:"selectAssets"},n=new F,o=new Promise((function(e,t){n.subscribe((function(){e(),n.unsubscribe()}))}));return H({operationID:t,operation:n}),B(r),o}}}),ee=function(e){var t=e.height,r=Y();if(r){var n=z(),o={appID:r,operationID:n,operationType:"setHeight",arg:{height:t}},i=new F;H({operationID:n,operation:i}),B(o)}},te=function(e){var t=e.name,r=e.props,n=e.callback,o=Y();if(o){var i=z(),a=z(),u={appID:o,operationID:i,operationType:"openModal",arg:{name:t,props:l({operationID:i},r)}},s=new F;s.subscribe((function(){s.unsubscribe()})),H({operationID:i,operation:s});var c=new F;c.subscribe((function(e){n(e),c.unsubscribe()})),H({operationID:a,operation:c}),B(u)}},re="undefined"!=typeof window?u.useLayoutEffect:u.useEffect;var ne=function(){var e,t,r,n,o,i=u.useState(null),a=i[0],s=i[1],c=u.useState(0),l=c[0],f=c[1],p=u.useCallback((function(){f((null==a?void 0:a.offsetHeight)||0)}),[null==a?void 0:a.offsetHeight]);return e="resize",t=p,o=u.useRef(t),re((function(){o.current=t}),[t]),u.useEffect((function(){var t,i=null!==(t=null==r?void 0:r.current)&&void 0!==t?t:window;if(i&&i.addEventListener){var a=function(e){return o.current(e)};return i.addEventListener(e,a,n),function(){i.removeEventListener(e,a,n)}}}),[e,r,n]),re((function(){p()}),[null==a?void 0:a.offsetHeight]),[s,l]};export{Z as assetsMethods,K as configMethods,J as contentItemMethods,X as getAppInstall,te as openModal,Q as setExtraConfigValues,ee as setHeight,W as useAgilityAppSDK,G as useAgilityPreInstall,ne as useElementHeight}; | ||
*/"production"===process.env.NODE_ENV?t.exports=function(){if(e)return r;e=1;var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.iterator,y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,h={};function m(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||y}function b(){}function g(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||y}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var _=g.prototype=new b;_.constructor=g,v(_,m.prototype),_.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,O={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,r,n){var o,i={},a=null,u=null;if(null!=r)for(o in void 0!==r.ref&&(u=r.ref),void 0!==r.key&&(a=""+r.key),r)S.call(r,o)&&!E.hasOwnProperty(o)&&(i[o]=r[o]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(o in s=e.defaultProps)void 0===i[o]&&(i[o]=s[o]);return{$$typeof:t,type:e,key:a,ref:u,props:i,_owner:O.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var I=/\/+/g;function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function D(e,r,o,i,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case t:case n:s=!0}}if(s)return a=a(s=e),e=""===i?"."+R(s,0):i,w(a)?(o="",null!=e&&(o=e.replace(I,"$&/")+"/"),D(a,r,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,r){return{$$typeof:t,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(I,"$&/")+"/")+e)),r.push(a)),1;if(s=0,i=""===i?".":i+":",w(e))for(var c=0;c<e.length;c++){var l=i+R(u=e[c],c);s+=D(u,r,o,l,a)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),c=0;!(u=e.next()).done;)s+=D(u=u.value,r,o,l=i+R(u,c++),a);else if("object"===u)throw r=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function x(e,t,r){if(null==e)return e;var n=[],o=0;return D(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function j(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},T={transition:null},$={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:T,ReactCurrentOwner:O};return r.Children={map:x,forEach:function(e,t,r){x(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return x(e,(function(){t++})),t},toArray:function(e){return x(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=m,r.Fragment=o,r.Profiler=a,r.PureComponent=g,r.StrictMode=i,r.Suspense=l,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$,r.cloneElement=function(e,r,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=v({},e.props),i=e.key,a=e.ref,u=e._owner;if(null!=r){if(void 0!==r.ref&&(a=r.ref,u=O.current),void 0!==r.key&&(i=""+r.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in r)S.call(r,c)&&!E.hasOwnProperty(c)&&(o[c]=void 0===r[c]&&void 0!==s?s[c]:r[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){s=Array(c);for(var l=0;l<c;l++)s[l]=arguments[l+2];o.children=s}return{$$typeof:t,type:e.type,key:i,ref:a,props:o,_owner:u}},r.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},r.createElement=C,r.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:c,render:e}},r.isValidElement=k,r.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:j}},r.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},r.startTransition=function(e){var t=T.transition;T.transition={};try{e()}finally{T.transition=t}},r.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},r.useCallback=function(e,t){return P.current.useCallback(e,t)},r.useContext=function(e){return P.current.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e){return P.current.useDeferredValue(e)},r.useEffect=function(e,t){return P.current.useEffect(e,t)},r.useId=function(){return P.current.useId()},r.useImperativeHandle=function(e,t,r){return P.current.useImperativeHandle(e,t,r)},r.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},r.useMemo=function(e,t){return P.current.useMemo(e,t)},r.useReducer=function(e,t,r){return P.current.useReducer(e,t,r)},r.useRef=function(e){return P.current.useRef(e)},r.useState=function(e){return P.current.useState(e)},r.useSyncExternalStore=function(e,t,r){return P.current.useSyncExternalStore(e,t,r)},r.useTransition=function(){return P.current.useTransition()},r.version="18.2.0",r}():t.exports=(n||(n=1,o=a,i=a.exports,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v=Symbol.iterator,h="@@iterator";function m(e){if(null===e||"object"!=typeof e)return null;var t=v&&e[v]||e[h];return"function"==typeof t?t:null}var b={current:null},g={transition:null},_={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},w={current:null},S={},O=null;function E(e){O=e}S.setExtraStackFrame=function(e){O=e},S.getCurrentStack=null,S.getStackAddendum=function(){var e="";O&&(e+=O);var t=S.getCurrentStack;return t&&(e+=t()||""),e};var C=!1,k=!1,I=!1,R=!1,D=!1,x={ReactCurrentDispatcher:b,ReactCurrentBatchConfig:g,ReactCurrentOwner:w};function j(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];T("warn",e,r)}function P(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];T("error",e,r)}function T(e,t,r){var n=x.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}x.ReactDebugCurrentFrame=S,x.ReactCurrentActQueue=_;var $={};function L(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;$[o]||(P("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),$[o]=!0)}var A={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){L(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){L(e,"replaceState")},enqueueSetState:function(e,t,r,n){L(e,"setState")}},N=Object.assign,F={};function M(e,t,r){this.props=e,this.context=t,this.refs=F,this.updater=r||A}Object.freeze(F),M.prototype.isReactComponent={},M.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},M.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var V={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},z=function(e,t){Object.defineProperty(M.prototype,e,{get:function(){j("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var U in V)V.hasOwnProperty(U)&&z(U,V[U]);function H(){}function q(e,t,r){this.props=e,this.context=t,this.refs=F,this.updater=r||A}H.prototype=M.prototype;var B=q.prototype=new H;B.constructor=q,N(B,M.prototype),B.isPureReactComponent=!0;var Y=Array.isArray;function W(e){return Y(e)}function G(e){return""+e}function K(e){if(function(e){try{return G(e),!1}catch(e){return!0}}(e))return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),G(e)}function J(e){return e.displayName||"Context"}function X(e){if(null==e)return null;if("number"==typeof e.tag&&P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case t:return"Portal";case a:return"Profiler";case n:return"StrictMode";case l:return"Suspense";case f:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return J(e)+".Consumer";case u:return J(e._context)+".Provider";case c:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?r+"("+o+")":r}(e,e.render,"ForwardRef");case p:var o=e.displayName||null;return null!==o?o:X(e.type)||"Memo";case d:var i=e,y=i._payload,v=i._init;try{return X(v(y))}catch(e){return null}}return null}var Q,Z,ee,te=Object.prototype.hasOwnProperty,re={key:!0,ref:!0,__self:!0,__source:!0};function ne(e){if(te.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function oe(e){if(te.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}ee={};var ie=function(t,r,n,o,i,a,u){var s={$$typeof:e,type:t,key:r,ref:n,props:u,_owner:a,_store:{}};return Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function ae(e,t,r){var n,o={},i=null,a=null,u=null,s=null;if(null!=t)for(n in ne(t)&&(a=t.ref,function(e){if("string"==typeof e.ref&&w.current&&e.__self&&w.current.stateNode!==e.__self){var t=X(w.current.type);ee[t]||(P('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',t,e.ref),ee[t]=!0)}}(t)),oe(t)&&(K(t.key),i=""+t.key),u=void 0===t.__self?null:t.__self,s=void 0===t.__source?null:t.__source,t)te.call(t,n)&&!re.hasOwnProperty(n)&&(o[n]=t[n]);var c=arguments.length-2;if(1===c)o.children=r;else if(c>1){for(var l=Array(c),f=0;f<c;f++)l[f]=arguments[f+2];Object.freeze&&Object.freeze(l),o.children=l}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(i||a){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;i&&function(e,t){var r=function(){Q||(Q=!0,P("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,d),a&&function(e,t){var r=function(){Z||(Z=!0,P("%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)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(o,d)}return ie(e,i,a,u,s,w.current,o)}function ue(e,t,r){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,o,i=N({},e.props),a=e.key,u=e.ref,s=e._self,c=e._source,l=e._owner;if(null!=t)for(n in ne(t)&&(u=t.ref,l=w.current),oe(t)&&(K(t.key),a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)te.call(t,n)&&!re.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var f=arguments.length-2;if(1===f)i.children=r;else if(f>1){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];i.children=p}return ie(e.type,a,u,s,c,l,i)}function se(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var ce=".",le=":",fe=!1,pe=/\/+/g;function de(e){return e.replace(pe,"$&/")}function ye(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(K(e.key),r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,(function(e){return n[e]}))):t.toString(36);var r,n}function ve(r,n,o,i,a){var u=typeof r;"undefined"!==u&&"boolean"!==u||(r=null);var s,c,l,f=!1;if(null===r)f=!0;else switch(u){case"string":case"number":f=!0;break;case"object":switch(r.$$typeof){case e:case t:f=!0}}if(f){var p=r,d=a(p),y=""===i?ce+ye(p,0):i;if(W(d)){var v="";null!=y&&(v=de(y)+"/"),ve(d,n,v,"",(function(e){return e}))}else null!=d&&(se(d)&&(!d.key||p&&p.key===d.key||K(d.key),s=d,c=o+(!d.key||p&&p.key===d.key?"":de(""+d.key)+"/")+y,d=ie(s.type,c,s.ref,s._self,s._source,s._owner,s.props)),n.push(d));return 1}var h=0,b=""===i?ce:i+le;if(W(r))for(var g=0;g<r.length;g++)h+=ve(l=r[g],n,o,b+ye(l,g),a);else{var _=m(r);if("function"==typeof _){var w=r;_===w.entries&&(fe||j("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),fe=!0);for(var S,O=_.call(w),E=0;!(S=O.next()).done;)h+=ve(l=S.value,n,o,b+ye(l,E++),a)}else if("object"===u){var C=String(r);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===C?"object with keys {"+Object.keys(r).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}}return h}function he(e,t,r){if(null==e)return e;var n=[],o=0;return ve(e,n,"","",(function(e){return t.call(r,e,o++)})),n}var me,be=-1,ge=0,_e=1,we=2;function Se(e){if(e._status===be){var t=(0,e._result)();if(t.then((function(t){if(e._status===ge||e._status===be){var r=e;r._status=_e,r._result=t}}),(function(t){if(e._status===ge||e._status===be){var r=e;r._status=we,r._result=t}})),e._status===be){var r=e;r._status=ge,r._result=t}}if(e._status===_e){var n=e._result;return void 0===n&&P("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",n),"default"in n||P("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",n),n.default}throw e._result}function Oe(e){return"string"==typeof e||"function"==typeof e||!!(e===r||e===a||D||e===n||e===l||e===f||R||e===y||C||k||I)||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===p||e.$$typeof===u||e.$$typeof===s||e.$$typeof===c||e.$$typeof===me||void 0!==e.getModuleId)}function Ee(){var e=b.current;return null===e&&P("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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}me=Symbol.for("react.module.reference");var Ce,ke,Ie,Re,De,xe,je,Pe=0;function Te(){}Te.__reactDisabledLog=!0;var $e,Le=x.ReactCurrentDispatcher;function Ae(e,t,r){if(void 0===$e)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);$e=n&&n[1]||""}return"\n"+$e+e}var Ne,Fe=!1,Me="function"==typeof WeakMap?WeakMap:Map;function Ve(e,t){if(!e||Fe)return"";var r,n=Ne.get(e);if(void 0!==n)return n;Fe=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=Le.current,Le.current=null,function(){if(0===Pe){Ce=console.log,ke=console.info,Ie=console.warn,Re=console.error,De=console.group,xe=console.groupCollapsed,je=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Pe++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){r=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){r=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var u=t.stack.split("\n"),s=r.stack.split("\n"),c=u.length-1,l=s.length-1;c>=1&&l>=0&&u[c]!==s[l];)l--;for(;c>=1&&l>=0;c--,l--)if(u[c]!==s[l]){if(1!==c||1!==l)do{if(c--,--l<0||u[c]!==s[l]){var f="\n"+u[c].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ne.set(e,f),f}}while(c>=1&&l>=0);break}}}finally{Fe=!1,Le.current=o,function(){if(0==--Pe){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:Ce}),info:N({},e,{value:ke}),warn:N({},e,{value:Ie}),error:N({},e,{value:Re}),group:N({},e,{value:De}),groupCollapsed:N({},e,{value:xe}),groupEnd:N({},e,{value:je})})}Pe<0&&P("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var p=e?e.displayName||e.name:"",d=p?Ae(p):"";return"function"==typeof e&&Ne.set(e,d),d}function ze(e,t,r){if(null==e)return"";if("function"==typeof e)return Ve(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Ae(e);switch(e){case l:return Ae("Suspense");case f:return Ae("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Ve(e.render,!1);case p:return ze(e.type,t,r);case d:var n=e,o=n._payload,i=n._init;try{return ze(i(o),t,r)}catch(e){}}return""}Ne=new Me;var Ue,He={},qe=x.ReactDebugCurrentFrame;function Be(e){if(e){var t=e._owner,r=ze(e.type,e._source,t?t.type:null);qe.setExtraStackFrame(r)}else qe.setExtraStackFrame(null)}function Ye(e){if(e){var t=e._owner;E(ze(e.type,e._source,t?t.type:null))}else E(null)}function We(){if(w.current){var e=X(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}Ue=!1;var Ge={};function Ke(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=We();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Ge[r]){Ge[r]=!0;var n="";e&&e._owner&&e._owner!==w.current&&(n=" It was passed a child from "+X(e._owner.type)+"."),Ye(e),P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Ye(null)}}}function Je(e,t){if("object"==typeof e)if(W(e))for(var r=0;r<e.length;r++){var n=e[r];se(n)&&Ke(n,t)}else if(se(e))e._store&&(e._store.validated=!0);else if(e){var o=m(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)se(i.value)&&Ke(i.value,t)}}function Xe(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==c&&r.$$typeof!==p)return;t=r.propTypes}if(t){var n=X(r);!function(e,t,r,n,o){var i=Function.call.bind(te);for(var a in e)if(i(e,a)){var u=void 0;try{if("function"!=typeof e[a]){var s=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}u=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){u=e}!u||u instanceof Error||(Be(o),P("%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).",n||"React class",r,a,typeof u),Be(null)),u instanceof Error&&!(u.message in He)&&(He[u.message]=!0,Be(o),P("Failed %s type: %s",r,u.message),Be(null))}}(t,e.props,"prop",n,e)}else void 0===r.PropTypes||Ue||(Ue=!0,P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qe(t,n,o){var i,a,u=Oe(t);if(!u){var s,c="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),c+=(null!=(i=n)&&void 0!==(a=i.__source)?"\n\nCheck your code at "+a.fileName.replace(/^.*[\\\/]/,"")+":"+a.lineNumber+".":"")||We(),null===t?s="null":W(t)?s="array":void 0!==t&&t.$$typeof===e?(s="<"+(X(t.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):s=typeof t,P("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,c)}var l=ae.apply(this,arguments);if(null==l)return l;if(u)for(var f=2;f<arguments.length;f++)Je(arguments[f],t);return t===r?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ye(e),P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Ye(null);break}}null!==e.ref&&(Ye(e),P("Invalid attribute `ref` supplied to `React.Fragment`."),Ye(null))}(l):Xe(l),l}var Ze=!1,et=!1,tt=null,rt=0,nt=!1;function ot(e){e!==rt-1&&P("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),rt=e}function it(e,t,r){var n=_.current;if(null!==n)try{ut(n),function(e){if(null===tt)try{var t=("require"+Math.random()).slice(0,7);tt=(o&&o[t]).call(o,"timers").setImmediate}catch(e){tt=function(e){!1===et&&(et=!0,"undefined"==typeof MessageChannel&&P("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}tt(e)}((function(){0===n.length?(_.current=null,t(e)):it(e,t,r)}))}catch(e){r(e)}else t(e)}var at=!1;function ut(e){if(!at){at=!0;var t=0;try{for(;t<e.length;t++){var r=e[t];do{r=r(!0)}while(null!==r)}e.length=0}catch(r){throw e=e.slice(t+1),r}finally{at=!1}}}var st=Qe,ct=function(e,t,r){for(var n=ue.apply(this,arguments),o=2;o<arguments.length;o++)Je(arguments[o],n.type);return Xe(n),n},lt=function(e){var t=Qe.bind(null,e);return t.type=e,Ze||(Ze=!0,j("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return j("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},ft={map:he,forEach:function(e,t,r){he(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return he(e,(function(){t++})),t},toArray:function(e){return he(e,(function(e){return e}))||[]},only:function(e){if(!se(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};i.Children=ft,i.Component=M,i.Fragment=r,i.Profiler=a,i.PureComponent=q,i.StrictMode=n,i.Suspense=l,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=x,i.cloneElement=ct,i.createContext=function(e){var t={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:u,_context:t};var r=!1,n=!1,o=!1,i={$$typeof:s,_context:t};return Object.defineProperties(i,{Provider:{get:function(){return n||(n=!0,P("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return r||(r=!0,P("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(j("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=i,t._currentRenderer=null,t._currentRenderer2=null,t},i.createElement=st,i.createFactory=lt,i.createRef=function(){var e={current:null};return Object.seal(e),e},i.forwardRef=function(e){null!=e&&e.$$typeof===p?P("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?P("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&P("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||P("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:c,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,e.name||e.displayName||(e.displayName=r)}}),r},i.isValidElement=se,i.lazy=function(e){var t,r,n={$$typeof:d,_payload:{_status:be,_result:e},_init:Se};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){P("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){P("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},i.memo=function(e,t){Oe(e)||P("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var r,n={$$typeof:p,type:e,compare:void 0===t?null:t};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,e.name||e.displayName||(e.displayName=t)}}),n},i.startTransition=function(e,t){var r=g.transition;g.transition={};var n=g.transition;g.transition._updatedFibers=new Set;try{e()}finally{g.transition=r,null===r&&n._updatedFibers&&(n._updatedFibers.size>10&&j("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."),n._updatedFibers.clear())}},i.unstable_act=function(e){var t=rt;rt++,null===_.current&&(_.current=[]);var r,n=_.isBatchingLegacy;try{if(_.isBatchingLegacy=!0,r=e(),!n&&_.didScheduleLegacyUpdate){var o=_.current;null!==o&&(_.didScheduleLegacyUpdate=!1,ut(o))}}catch(e){throw ot(t),e}finally{_.isBatchingLegacy=n}if(null!==r&&"object"==typeof r&&"function"==typeof r.then){var i=r,a=!1,u={then:function(e,r){a=!0,i.then((function(n){ot(t),0===rt?it(n,e,r):e(n)}),(function(e){ot(t),r(e)}))}};return nt||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){a||(nt=!0,P("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),u}var s=r;if(ot(t),0===rt){var c=_.current;return null!==c&&(ut(c),_.current=null),{then:function(e,t){null===_.current?(_.current=[],it(s,e,t)):e(s)}}}return{then:function(e,t){e(s)}}},i.useCallback=function(e,t){return Ee().useCallback(e,t)},i.useContext=function(e){var t=Ee();if(void 0!==e._context){var r=e._context;r.Consumer===e?P("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&P("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},i.useDebugValue=function(e,t){return Ee().useDebugValue(e,t)},i.useDeferredValue=function(e){return Ee().useDeferredValue(e)},i.useEffect=function(e,t){return Ee().useEffect(e,t)},i.useId=function(){return Ee().useId()},i.useImperativeHandle=function(e,t,r){return Ee().useImperativeHandle(e,t,r)},i.useInsertionEffect=function(e,t){return Ee().useInsertionEffect(e,t)},i.useLayoutEffect=function(e,t){return Ee().useLayoutEffect(e,t)},i.useMemo=function(e,t){return Ee().useMemo(e,t)},i.useReducer=function(e,t,r){return Ee().useReducer(e,t,r)},i.useRef=function(e){return Ee().useRef(e)},i.useState=function(e){return Ee().useState(e)},i.useSyncExternalStore=function(e,t,r){return Ee().useSyncExternalStore(e,t,r)},i.useTransition=function(){return Ee().useTransition()},i.version="18.2.0","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),a.exports);var u=t.exports,s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},s(e,t)};function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function f(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function d(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function y(e){return"function"==typeof e}function v(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var h=v((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function m(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var b=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=f(i),u=a.next();!u.done;u=a.next()){u.value.remove(this)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else i.remove(this);var s=this.initialTeardown;if(y(s))try{s()}catch(e){o=e instanceof h?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var l=f(c),v=l.next();!v.done;v=l.next()){var m=v.value;try{w(m)}catch(e){o=null!=o?o:[],e instanceof h?o=d(d([],p(o)),p(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{v&&!v.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(o)throw new h(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)w(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&m(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&m(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),g=b.EMPTY;function _(e){return e instanceof b||e&&"closed"in e&&y(e.remove)&&y(e.add)&&y(e.unsubscribe)}function w(e){y(e)?e():e.unsubscribe()}var S={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},O={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=O.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,d([e,t],p(r))):setTimeout.apply(void 0,d([e,t],p(r)))},clearTimeout:function(e){var t=O.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function E(){}function C(e){e()}var k=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,_(t)&&t.add(r)):r.destination=P,r}return c(t,e),t.create=function(e,t,r){return new x(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(b),I=Function.prototype.bind;function R(e,t){return I.call(e,t)}var D=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){j(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){j(e)}else j(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){j(e)}},e}(),x=function(e){function t(t,r,n){var o,i,a=e.call(this)||this;y(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:a&&S.useDeprecatedNextContext?((i=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},o={next:t.next&&R(t.next,i),error:t.error&&R(t.error,i),complete:t.complete&&R(t.complete,i)}):o=t;return a.destination=new D(o),a}return c(t,e),t}(k);function j(e){var t;t=e,O.setTimeout((function(){throw t}))}var P={closed:!0,next:E,error:function(e){throw e},complete:E},T="function"==typeof Symbol&&Symbol.observable||"@@observable";function $(e){return e}var L=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=this,i=(n=e)&&n instanceof k||function(e){return e&&y(e.next)&&y(e.error)&&y(e.complete)}(n)&&_(n)?e:new x(e,t,r);return C((function(){var e=o,t=e.operator,r=e.source;i.add(t?t.call(i,r):r?o._subscribe(i):o._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=A(t))((function(t,n){var o=new x({next:function(t){try{e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:t});r.subscribe(o)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[T]=function(){return this},e.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?$:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=A(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function A(e){var t;return null!==(t=null!=e?e:S.Promise)&&void 0!==t?t:Promise}var N=v((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),F=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return c(t,e),t.prototype.lift=function(e){var t=new M(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new N},t.prototype.next=function(e){var t=this;C((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=f(t.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(e)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;C((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;C((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,o=r.isStopped,i=r.observers;return n||o?g:(this.currentObservers=null,i.push(e),new b((function(){t.currentObservers=null,m(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,o=t.isStopped;r?e.error(n):o&&e.complete()},t.prototype.asObservable=function(){var e=new L;return e.source=this,e},t.create=function(e,t){return new M(e,t)},t}(L),M=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return c(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:g},t}(F),V=0;var z=function(){return"operation-".concat(++V)},U={},H=function(e){var t=e.operationID,r=e.operation,n=e.autoDelete,o=void 0===n||n;return U[t]={operation:r,autoDelete:o},r},q=function(e){var t=e.data,r=t.operationID;if(r){var n=function(e){var t=U[e],r=t.operation;return t.autoDelete&&delete U[e],r||null}(r);n&&n.next(t.arg)}},B=function(e){window.parent.postMessage(e,"*")},Y=function(){var e;if("undefined"==typeof window)return"-1";var t=window.location.search;return null!==(e=new URLSearchParams(t).get("appID"))&&void 0!==e?e:""},W=function(){var e=u.useState(!0),t=e[0],r=e[1],n=u.useState(null),o=n[0],i=n[1],a=u.useState(null),s=a[0],c=a[1],l=u.useState(null),f=l[0],p=l[1],d=u.useState(null),y=d[0],v=d[1],h=u.useState(null),m=h[0],b=h[1],g=u.useState(null),_=g[0],w=g[1];return u.useEffect((function(){var e=Y();if(e){var t=new F;t.subscribe((function(e){e&&(i(e.app),c(e.instance),p(e.locale),v(e.field||null),w(e.contentItem||null),b(e.contentModel||null),r(!1),t.unsubscribe())}));var n=z();return H({operationID:n,operation:t}),window.addEventListener("message",q,!1),B({appID:e,operationID:n,operationType:"initialize"}),function(){removeEventListener("message",q,!1)}}}),[]),{initializing:t,appInstallContext:o,instance:s,locale:f,field:y,contentItem:_,contentModel:m}},G=function(){var e=u.useState([]),t=e[0],r=e[1],n=Y();return n?(u.useEffect((function(){var e=new F;e.subscribe((function(t){t&&(r(t.configuration),e.unsubscribe())}));var t=z();return H({operationID:t,operation:e}),window.addEventListener("message",q,!1),B({appID:n,operationID:t,operationType:"preInstall"}),function(){removeEventListener("message",q,!1)}}),[]),{configuration:t}):{configuration:t}},K=Object.freeze({__proto__:null,persistData:function(e){var t=e.key,r=e.value,n=Y();if(n){var o=z(),i={appID:n,operationID:o,operationType:"persistData",arg:{key:t,value:r}},a=new F,u=new Promise((function(e,t){a.subscribe((function(t){e(t),a.unsubscribe()}))}));return H({operationID:o,operation:a}),B(i),u}},updateConfigurationValue:function(e){var t=e.name,r=e.value,n=Y();if(n){var o=z(),i={appID:n,operationID:o,operationType:"updateConfigurationValue",arg:{name:t,value:r}},a=new F,u=new Promise((function(e,t){a.subscribe((function(t){e(t),a.unsubscribe()}))}));return H({operationID:o,operation:a}),B(i),u}}}),J=Object.freeze({__proto__:null,addFieldListener:function(e){var t=e.fieldName,r=e.onChange,n=Y();if(n){var o=z(),i="fieldName-".concat(n),a={appID:n,operationID:o,operationType:"addFieldListener",arg:{fieldName:t,operationID:i,operationType:"onFieldChanged"}},u=new F;H({operationID:o,operation:u});var s=new F;s.subscribe((function(e){var t=e.fieldValue;r(t)})),H({operationID:i,operation:s,autoDelete:!1}),B(a)}},getContentItem:function(){var e=Y();if(e){var t=z(),r={appID:e,operationID:t,operationType:"getContentItem"},n=new F,o=new Promise((function(e,t){n.subscribe((function(t){e(t),n.unsubscribe()}))}));return H({operationID:t,operation:n}),B(r),o}},removeFieldListener:function(e){var t=e.fieldName,r=Y();if(r){var n=z(),o={appID:r,operationID:n,operationType:"removeFieldListener",arg:{fieldName:t,operationID:"fieldName-".concat(r)}},i=new F;i.subscribe((function(e){!function(e){delete U[e]}(e.removeOperationID),i.unsubscribe()})),H({operationID:n,operation:i}),B(o)}},setFieldValue:function(e){var t=e.name,r=e.value,n=Y();if(n){var o=z(),i={appID:n,operationID:o,operationType:"setFieldValue",arg:{name:t,value:r}},a=new F;H({operationID:o,operation:a}),B(i)}}}),X=function(){var e=Y(),t=z(),r={appID:e,operationID:t,operationType:"getAppInstall"},n=new F,o=new Promise((function(e,t){n.subscribe((function(t){e(t),n.unsubscribe()}))}));return H({operationID:t,operation:n}),B(r),o},Q=function(e){var t=Y();if(t){var r=z(),n={appID:t,operationID:r,operationType:"setExtraConfigValues",arg:e},o=new F,i=new Promise((function(e,t){o.subscribe((function(t){e(t),o.unsubscribe()}))}));return H({operationID:r,operation:o}),B(n),i}},Z=Object.freeze({__proto__:null,selectAssets:function(){var e=Y();if(e){var t=z(),r={appID:e,operationID:t,operationType:"selectAssets"},n=new F,o=new Promise((function(e,t){n.subscribe((function(){e(),n.unsubscribe()}))}));return H({operationID:t,operation:n}),B(r),o}}}),ee=function(e){var t=e.height,r=Y();if(r){var n=z(),o={appID:r,operationID:n,operationType:"setHeight",arg:{height:t}},i=new F;H({operationID:n,operation:i}),B(o)}},te=function(e){var t=e.name,r=e.props,n=e.callback,o=Y();if(o){var i=z(),a=z(),u={appID:o,operationID:i,operationType:"openModal",arg:{name:t,props:l({operationID:i},r)}},s=new F;s.subscribe((function(){s.unsubscribe()})),H({operationID:i,operation:s});var c=new F;c.subscribe((function(e){n(e),c.unsubscribe()})),H({operationID:a,operation:c}),B(u)}},re="undefined"!=typeof window?u.useLayoutEffect:u.useEffect;var ne=function(){var e,t,r,n,o,i=u.useState(null),a=i[0],s=i[1],c=u.useState(0),l=c[0],f=c[1],p=u.useCallback((function(){f((null==a?void 0:a.offsetHeight)||0)}),[null==a?void 0:a.offsetHeight]);return e="resize",t=p,o=u.useRef(t),re((function(){o.current=t}),[t]),u.useEffect((function(){var t,i=null!==(t=null==r?void 0:r.current)&&void 0!==t?t:window;if(i&&i.addEventListener){var a=function(e){return o.current(e)};return i.addEventListener(e,a,n),function(){i.removeEventListener(e,a,n)}}}),[e,r,n]),re((function(){p()}),[null==a?void 0:a.offsetHeight]),[s,l]};export{Z as assetsMethods,K as configMethods,J as contentItemMethods,X as getAppInstall,te as openModal,Q as setExtraConfigValues,ee as setHeight,W as useAgilityAppSDK,G as useAgilityPreInstall,ne as useElementHeight}; | ||
//# sourceMappingURL=index.js.map |
import { IConfig } from './types'; | ||
interface AgilityPreInstallReturn { | ||
configuration: IConfig[] | null; | ||
configuration: IConfig[]; | ||
} | ||
@@ -5,0 +5,0 @@ /** |
@@ -167,3 +167,3 @@ interface IAppConfigValue { | ||
interface AgilityPreInstallReturn { | ||
configuration: IConfig[] | null; | ||
configuration: IConfig[]; | ||
} | ||
@@ -170,0 +170,0 @@ /** |
{ | ||
"name": "@agility/app-sdk", | ||
"version": "2.0.0-rc5", | ||
"version": "2.0.0-rc6", | ||
"description": "JavaScript library for building Agility CMS apps.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
563063