@grapesjs/studio-sdk-plugins 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dialogComponent/index.cjs.js +13 -13
- package/dist/dialogComponent/index.es.js +89 -88
- package/dist/dialogComponent/index.umd.js +11 -11
- package/dist/index.cjs.d.ts +1 -0
- package/dist/index.cjs.js +261 -39
- package/dist/index.d.ts +1 -0
- package/dist/index.es.d.ts +1 -0
- package/dist/index.es.js +17496 -7583
- package/dist/index.umd.js +261 -39
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/prosemirror/index.umd.js +1 -1
- package/dist/rteTinyMce/index.cjs.d.ts +3 -0
- package/dist/rteTinyMce/index.cjs.js +223 -0
- package/dist/rteTinyMce/index.d.ts +3 -0
- package/dist/rteTinyMce/index.es.d.ts +3 -0
- package/dist/rteTinyMce/index.es.js +10019 -0
- package/dist/rteTinyMce/index.umd.js +223 -0
- package/dist/rteTinyMce/types.d.ts +43 -0
- package/dist/rteTinyMce/typesSchema.d.ts +24 -0
- package/dist/rteTinyMce/utils.d.ts +16 -0
- package/dist/swiperComponent/index.cjs.js +5 -5
- package/dist/swiperComponent/index.es.js +265 -265
- package/dist/swiperComponent/index.umd.js +7 -7
- package/dist/tableComponent/index.cjs.js +1 -1
- package/dist/tableComponent/index.es.js +1 -1
- package/dist/tableComponent/index.umd.js +1 -1
- package/dist/utilsRte.d.ts +3 -0
- package/package.json +2 -1
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
"use strict";require("grapesjs");const g=require("react"),Mo=require("react-dom");function Eu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Xe=Eu(g),Oc=Eu(Mo),xu="app.grapesjs.com",Cu="app-stage.grapesjs.com",$a=[xu,Cu,"localhost","127.0.0.1",".local-credentialless.webcontainer.io",".local.webcontainer.io","-sandpack.codesandbox.io"],Ec="license:check:start",xc="license:check:end",Su=()=>typeof window<"u",Cc=(e="",t)=>{const n=new DOMParser().parseFromString(e,"text/html");if(t){const i=n.querySelectorAll("svg")[0].style||{},a=Rc(t)?`${t}px`:t;i.width=a,i.height=a,i.fill="currentColor"}return new XMLSerializer().serializeToString(n)},Sc=({isDev:e,isStage:t})=>`${e?"":`https://${t?Cu:xu}`}/api`,ju=(e={})=>{const{width:t=300,height:r,text:n="IMAGE",bg:o="777",fg:i="white"}=e,a=r?`x${r}`:"";return`https://placehold.co/${t}${a}/${o}/${i}.png?text=${n}`},jc=ju(),Ac=()=>{const e=Su()&&window.location.hostname;return!!e&&($a.includes(e)||$a.some(t=>e.endsWith(t)))},ki=e=>e&&e.charAt(0).toUpperCase()+e.substring(1),Lc=e=>typeof e<"u",Au=e=>typeof e=="string",Rc=e=>typeof e=="number";function go(e){return typeof e=="function"}const Tc=e=>(e||"").toLowerCase().trim().replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-._]+/g,"").replace(/--+/g,"-").trim();var Lr=(e=>(e.free="free",e.startup="startup",e.business="business",e.enterprise="enterprise",e))(Lr||{});async function Vc({path:e,baseApiUrl:t,method:r="GET",headers:n={},params:o,body:i}){const s=`${t||Sc({isDev:!1,isStage:!1})}${e}`,u={method:r,headers:{"Content-Type":"application/json",...n}};i&&(u.body=JSON.stringify(i));const c=o?new URLSearchParams(o).toString():"",l=c?`?${c}`:"",d=await fetch(`${s}${l}`,u);if(!d.ok)throw new Error(`HTTP error! status: ${d.status}`);return d.json()}const Ba={[Lr.free]:0,[Lr.startup]:10,[Lr.business]:20,[Lr.enterprise]:30};function Mc(e){const t=e;return t.init=r=>n=>e(n,r),t}const Pc=e=>Mc(e);async function Nc({editor:e,plan:t,pluginName:r,licenseKey:n,cleanup:o}){let i="",a=!1;const s=Ac(),u=l=>{console.warn("Cleanup plugin:",r,"Reason:",l),o()},c=(l={})=>{var _;const{error:d,sdkLicense:p}=l,h=(_=l.plan)==null?void 0:_.category;if(!(p||l.license)||d)u(d||"Invalid license");else if(h){const y=Ba[t],O=Ba[h];y>O&&u({pluginRequiredPlan:t,licensePlan:h})}};e.on(Ec,l=>{i=l==null?void 0:l.baseApiUrl,a=!0}),e.on(xc,l=>{c(l)}),setTimeout(async()=>{if(!a){if(s)return;if(n){const l=await Hc({licenseKey:n,pluginName:r,baseApiUrl:i});l&&c(l)}else u("The `licenseKey` option not provided")}},2e3)}async function Hc(e){const{licenseKey:t,pluginName:r,baseApiUrl:n}=e;try{return(await Vc({baseApiUrl:n,path:`/sdk/${t||"na"}`,method:"POST",params:{d:window.location.hostname,pn:r}})).result||{}}catch(o){return console.error("Error during SDK license check:",o),!1}}const kc=e=>e.dispatchEvent(new CustomEvent("input"));function Dc(e,t){if(!t)return()=>{};const r=e.Components.events,n=l=>e.getSelectedAll().includes(l),o=l=>l.isInstanceOf("text")&&!l.isChildOf("text"),i=l=>l.isChildOf("text"),a=l=>e.getEditing()===l,s=(l,d={})=>{l.trigger("focus",d.event)},u=(l,d)=>{n(l)&&o(l)&&!a(l)&&s(l,d)},c=(l,d)=>{if(n(l)&&!o(l)&&i(l)){const p=l.parents().find(h=>h.isInstanceOf("text"));p&&(s(p,d),setTimeout(()=>e.select(p),0))}};return e.on(r.select,u),e.on(r.selectBefore,c),()=>{e.off(r.select,u),e.off(r.selectBefore,c)}}var vr=(e=>(e.toastAdd="studio:toastAdd",e.dialogOpen="studio:dialogOpen",e.dialogClose="studio:dialogClose",e.sidebarLeftSet="studio:sidebarLeft:set",e.sidebarLeftGet="studio:sidebarLeft:get",e.sidebarLeftToggle="studio:sidebarLeft:toggle",e.sidebarRightSet="studio:sidebarRight:set",e.sidebarRightGet="studio:sidebarRight:get",e.sidebarRightToggle="studio:sidebarRight:toggle",e.sidebarTopSet="studio:sidebarTop:set",e.sidebarTopGet="studio:sidebarTop:get",e.sidebarTopToggle="studio:sidebarTop:toggle",e.sidebarBottomSet="studio:sidebarBottom:set",e.sidebarBottomGet="studio:sidebarBottom:get",e.sidebarBottomToggle="studio:sidebarBottom:toggle",e.symbolAdd="studio:symbolAdd",e.symbolDetach="studio:symbolDetach",e.symbolOverride="studio:symbolOverride",e.symbolPropagateStyles="studio:propagateStyles",e.getPagesConfig="studio:getPagesConfig",e.setPagesConfig="studio:setPagesConfig",e.getPageSettings="studio:getPageSettings",e.setPageSettings="studio:setPageSettings",e.projectFiles="studio:projectFiles",e.canvasReload="studio:canvasReload",e.getBlocksPanel="studio:getBlocksPanel",e.setBlocksPanel="studio:setBlocksPanel",e.getStateContextMenu="studio:getStateContextMenu",e.setStateContextMenu="studio:setStateContextMenu",e.contextMenuComponent="studio:contextMenuComponent",e.layoutAdd="studio:layoutAdd",e.layoutRemove="studio:layoutRemove",e.layoutToggle="studio:layoutToggle",e.getStateTheme="studio:getStateTheme",e.setStateTheme="studio:setStateTheme",e))(vr||{}),Lu=(e=>(e.layoutToggleId="studio:layoutToggle:",e.toggleBlocksPanel="studio:toggleBlocksPanel",e.pageSettingsUpdate="studio:pageSettingsUpdate",e))(Lu||{});function ca(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Di={exports:{}},tn={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Ia;function $c(){if(Ia)return tn;Ia=1;var e=g,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,u,c){var l,d={},p=null,h=null;c!==void 0&&(p=""+c),u.key!==void 0&&(p=""+u.key),u.ref!==void 0&&(h=u.ref);for(l in u)n.call(u,l)&&!i.hasOwnProperty(l)&&(d[l]=u[l]);if(s&&s.defaultProps)for(l in u=s.defaultProps,u)d[l]===void 0&&(d[l]=u[l]);return{$$typeof:t,type:s,key:p,ref:h,props:d,_owner:o.current}}return tn.Fragment=r,tn.jsx=a,tn.jsxs=a,tn}var rn={},Fa;function Bc(){if(Fa)return rn;Fa=1;var e={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/return e.NODE_ENV!=="production"&&function(){var t=g,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"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),_=Symbol.iterator,y="@@iterator";function O(f){if(f===null||typeof f!="object")return null;var x=_&&f[_]||f[y];return typeof x=="function"?x:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(f){{for(var x=arguments.length,T=new Array(x>1?x-1:0),I=1;I<x;I++)T[I-1]=arguments[I];C("error",f,T)}}function C(f,x,T){{var I=w.ReactDebugCurrentFrame,W=I.getStackAddendum();W!==""&&(x+="%s",T=T.concat([W]));var G=T.map(function(ie){return String(ie)});G.unshift("Warning: "+x),Function.prototype.apply.call(console[f],console,G)}}var m=!1,R=!1,P=!1,Z=!1,D=!1,H;H=Symbol.for("react.module.reference");function X(f){return!!(typeof f=="string"||typeof f=="function"||f===o||f===a||D||f===i||f===l||f===d||Z||f===b||m||R||P||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===p||f.$$typeof===s||f.$$typeof===u||f.$$typeof===c||f.$$typeof===H||f.getModuleId!==void 0))}function ee(f,x,T){var I=f.displayName;if(I)return I;var W=x.displayName||x.name||"";return W!==""?T+"("+W+")":T}function Q(f){return f.displayName||"Context"}function ae(f){if(f==null)return null;if(typeof f.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case d:return"SuspenseList"}if(typeof f=="object")switch(f.$$typeof){case u:var x=f;return Q(x)+".Consumer";case s:var T=f;return Q(T._context)+".Provider";case c:return ee(f,f.render,"ForwardRef");case p:var I=f.displayName||null;return I!==null?I:ae(f.type)||"Memo";case h:{var W=f,G=W._payload,ie=W._init;try{return ae(ie(G))}catch{return null}}}return null}var N=Object.assign,q=0,ne,oe,fe,de,E,A,F;function $(){}$.__reactDisabledLog=!0;function B(){{if(q===0){ne=console.log,oe=console.info,fe=console.warn,de=console.error,E=console.group,A=console.groupCollapsed,F=console.groupEnd;var f={configurable:!0,enumerable:!0,value:$,writable:!0};Object.defineProperties(console,{info:f,log:f,warn:f,error:f,group:f,groupCollapsed:f,groupEnd:f})}q++}}function te(){{if(q--,q===0){var f={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},f,{value:ne}),info:N({},f,{value:oe}),warn:N({},f,{value:fe}),error:N({},f,{value:de}),group:N({},f,{value:E}),groupCollapsed:N({},f,{value:A}),groupEnd:N({},f,{value:F})})}q<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z=w.ReactCurrentDispatcher,Y;function J(f,x,T){{if(Y===void 0)try{throw Error()}catch(W){var I=W.stack.trim().match(/\n( *(at )?)/);Y=I&&I[1]||""}return`
|
|
18
|
+
`+Y+f}}var se=!1,re;{var ye=typeof WeakMap=="function"?WeakMap:Map;re=new ye}function k(f,x){if(!f||se)return"";{var T=re.get(f);if(T!==void 0)return T}var I;se=!0;var W=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var G;G=z.current,z.current=null,B();try{if(x){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(De){I=De}Reflect.construct(f,[],ie)}else{try{ie.call()}catch(De){I=De}f.call(ie.prototype)}}else{try{throw Error()}catch(De){I=De}f()}}catch(De){if(De&&I&&typeof De.stack=="string"){for(var K=De.stack.split(`
|
|
19
|
+
`),ce=I.stack.split(`
|
|
20
|
+
`),pe=K.length-1,Oe=ce.length-1;pe>=1&&Oe>=0&&K[pe]!==ce[Oe];)Oe--;for(;pe>=1&&Oe>=0;pe--,Oe--)if(K[pe]!==ce[Oe]){if(pe!==1||Oe!==1)do if(pe--,Oe--,Oe<0||K[pe]!==ce[Oe]){var He=`
|
|
21
|
+
`+K[pe].replace(" at new "," at ");return f.displayName&&He.includes("<anonymous>")&&(He=He.replace("<anonymous>",f.displayName)),typeof f=="function"&&re.set(f,He),He}while(pe>=1&&Oe>=0);break}}}finally{se=!1,z.current=G,te(),Error.prepareStackTrace=W}var Ne=f?f.displayName||f.name:"",ur=Ne?J(Ne):"";return typeof f=="function"&&re.set(f,ur),ur}function xe(f,x,T){return k(f,!1)}function Pe(f){var x=f.prototype;return!!(x&&x.isReactComponent)}function Re(f,x,T){if(f==null)return"";if(typeof f=="function")return k(f,Pe(f));if(typeof f=="string")return J(f);switch(f){case l:return J("Suspense");case d:return J("SuspenseList")}if(typeof f=="object")switch(f.$$typeof){case c:return xe(f.render);case p:return Re(f.type,x,T);case h:{var I=f,W=I._payload,G=I._init;try{return Re(G(W),x,T)}catch{}}}return""}var ke=Object.prototype.hasOwnProperty,bt={},Ke=w.ReactDebugCurrentFrame;function we(f){if(f){var x=f._owner,T=Re(f.type,f._source,x?x.type:null);Ke.setExtraStackFrame(T)}else Ke.setExtraStackFrame(null)}function Ce(f,x,T,I,W){{var G=Function.call.bind(ke);for(var ie in f)if(G(f,ie)){var K=void 0;try{if(typeof f[ie]!="function"){var ce=Error((I||"React class")+": "+T+" type `"+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[ie]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ce.name="Invariant Violation",ce}K=f[ie](x,ie,I,T,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(pe){K=pe}K&&!(K instanceof Error)&&(we(W),S("%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).",I||"React class",T,ie,typeof K),we(null)),K instanceof Error&&!(K.message in bt)&&(bt[K.message]=!0,we(W),S("Failed %s type: %s",T,K.message),we(null))}}}var Wt=Array.isArray;function qt(f){return Wt(f)}function ir(f){{var x=typeof Symbol=="function"&&Symbol.toStringTag,T=x&&f[Symbol.toStringTag]||f.constructor.name||"Object";return T}}function ar(f){try{return Yt(f),!1}catch{return!0}}function Yt(f){return""+f}function ct(f){if(ar(f))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ir(f)),Yt(f)}var yt=w.ReactCurrentOwner,Nn={key:!0,ref:!0,__self:!0,__source:!0},Xr,Sr,Jr;Jr={};function Xo(f){if(ke.call(f,"ref")){var x=Object.getOwnPropertyDescriptor(f,"ref").get;if(x&&x.isReactWarning)return!1}return f.ref!==void 0}function Jo(f){if(ke.call(f,"key")){var x=Object.getOwnPropertyDescriptor(f,"key").get;if(x&&x.isReactWarning)return!1}return f.key!==void 0}function Qo(f,x){if(typeof f.ref=="string"&&yt.current&&x&&yt.current.stateNode!==x){var T=ae(yt.current.type);Jr[T]||(S('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',ae(yt.current.type),f.ref),Jr[T]=!0)}}function ei(f,x){{var T=function(){Xr||(Xr=!0,S("%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)",x))};T.isReactWarning=!0,Object.defineProperty(f,"key",{get:T,configurable:!0})}}function ti(f,x){{var T=function(){Sr||(Sr=!0,S("%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)",x))};T.isReactWarning=!0,Object.defineProperty(f,"ref",{get:T,configurable:!0})}}var ri=function(f,x,T,I,W,G,ie){var K={$$typeof:r,type:f,key:x,ref:T,props:ie,_owner:G};return K._store={},Object.defineProperty(K._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(K,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty(K,"_source",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.freeze&&(Object.freeze(K.props),Object.freeze(K)),K};function Qr(f,x,T,I,W){{var G,ie={},K=null,ce=null;T!==void 0&&(ct(T),K=""+T),Jo(x)&&(ct(x.key),K=""+x.key),Xo(x)&&(ce=x.ref,Qo(x,W));for(G in x)ke.call(x,G)&&!Nn.hasOwnProperty(G)&&(ie[G]=x[G]);if(f&&f.defaultProps){var pe=f.defaultProps;for(G in pe)ie[G]===void 0&&(ie[G]=pe[G])}if(K||ce){var Oe=typeof f=="function"?f.displayName||f.name||"Unknown":f;K&&ei(ie,Oe),ce&&ti(ie,Oe)}return ri(f,K,ce,W,I,yt.current,ie)}}var jr=w.ReactCurrentOwner,Vt=w.ReactDebugCurrentFrame;function _t(f){if(f){var x=f._owner,T=Re(f.type,f._source,x?x.type:null);Vt.setExtraStackFrame(T)}else Vt.setExtraStackFrame(null)}var sr;sr=!1;function Ar(f){return typeof f=="object"&&f!==null&&f.$$typeof===r}function Hn(){{if(jr.current){var f=ae(jr.current.type);if(f)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+f+"`."}return""}}function kn(f){return""}var Dn={};function $n(f){{var x=Hn();if(!x){var T=typeof f=="string"?f:f.displayName||f.name;T&&(x=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+T+">.")}return x}}function en(f,x){{if(!f._store||f._store.validated||f.key!=null)return;f._store.validated=!0;var T=$n(x);if(Dn[T])return;Dn[T]=!0;var I="";f&&f._owner&&f._owner!==jr.current&&(I=" It was passed a child from "+ae(f._owner.type)+"."),_t(f),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',T,I),_t(null)}}function Bn(f,x){{if(typeof f!="object")return;if(qt(f))for(var T=0;T<f.length;T++){var I=f[T];Ar(I)&&en(I,x)}else if(Ar(f))f._store&&(f._store.validated=!0);else if(f){var W=O(f);if(typeof W=="function"&&W!==f.entries)for(var G=W.call(f),ie;!(ie=G.next()).done;)Ar(ie.value)&&en(ie.value,x)}}}function ni(f){{var x=f.type;if(x==null||typeof x=="string")return;var T;if(typeof x=="function")T=x.propTypes;else if(typeof x=="object"&&(x.$$typeof===c||x.$$typeof===p))T=x.propTypes;else return;if(T){var I=ae(x);Ce(T,f.props,"prop",I,f)}else if(x.PropTypes!==void 0&&!sr){sr=!0;var W=ae(x);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",W||"Unknown")}typeof x.getDefaultProps=="function"&&!x.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function In(f){{for(var x=Object.keys(f.props),T=0;T<x.length;T++){var I=x[T];if(I!=="children"&&I!=="key"){_t(f),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),_t(null);break}}f.ref!==null&&(_t(f),S("Invalid attribute `ref` supplied to `React.Fragment`."),_t(null))}}var Fn={};function zn(f,x,T,I,W,G){{var ie=X(f);if(!ie){var K="";(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(K+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ce=kn();ce?K+=ce:K+=Hn();var pe;f===null?pe="null":qt(f)?pe="array":f!==void 0&&f.$$typeof===r?(pe="<"+(ae(f.type)||"Unknown")+" />",K=" Did you accidentally export a JSX literal instead of a component?"):pe=typeof f,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",pe,K)}var Oe=Qr(f,x,T,W,G);if(Oe==null)return Oe;if(ie){var He=x.children;if(He!==void 0)if(I)if(qt(He)){for(var Ne=0;Ne<He.length;Ne++)Bn(He[Ne],f);Object.freeze&&Object.freeze(He)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Bn(He,f)}if(ke.call(x,"key")){var ur=ae(f),De=Object.keys(x).filter(function(wc){return wc!=="key"}),ai=De.length>0?"{key: someKey, "+De.join(": ..., ")+": ...}":"{key: someKey}";if(!Fn[ur+ai]){var _c=De.length>0?"{"+De.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s {...props} />
|
|
28
|
+
React keys must be passed directly to JSX without using spread:
|
|
29
|
+
let props = %s;
|
|
30
|
+
<%s key={someKey} {...props} />`,ai,ur,_c,ur),Fn[ur+ai]=!0}}return f===o?In(Oe):ni(Oe),Oe}}function oi(f,x,T){return zn(f,x,T,!0)}function ii(f,x,T){return zn(f,x,T,!1)}var v=ii,M=oi;rn.Fragment=o,rn.jsx=v,rn.jsxs=M}(),rn}var Ic={};Ic.NODE_ENV==="production"?Di.exports=$c():Di.exports=Bc();var L=Di.exports,Fc="M12 2C11.5 2 11 2.19 10.59 2.59L2.59 10.59C1.8 11.37 1.8 12.63 2.59 13.41L10.59 21.41C11.37 22.2 12.63 22.2 13.41 21.41L21.41 13.41C22.2 12.63 22.2 11.37 21.41 10.59L13.41 2.59C13 2.19 12.5 2 12 2M11 7H13V13H11V7M11 15H13V17H11V15Z",zc="M11 2H13V7H21V10H13V14H18V17H13V22H11V17H6V14H11V10H3V7H11V2Z",Uc="M4 22H2V2H4V22M22 7H6V10H22V7M16 14H6V17H16V14Z",Wc="M20 2H22V22H20V2M2 10H18V7H2V10M8 17H18V14H8V17Z",qc="M9.5,8.5L11,10L8,13L11,16L9.5,17.5L5,13L9.5,8.5M14.5,17.5L13,16L16,13L13,10L14.5,8.5L19,13L14.5,17.5M21,2H3A2,2 0 0,0 1,4V20A2,2 0 0,0 3,22H21A2,2 0 0,0 23,20V4A2,2 0 0,0 21,2M21,20H3V6H21V20Z",Yc="M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",Gc="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z",Zc="M20 13.5C20 17.09 17.09 20 13.5 20H6V18H13.5C16 18 18 16 18 13.5S16 9 13.5 9H7.83L10.91 12.09L9.5 13.5L4 8L9.5 2.5L10.92 3.91L7.83 7H13.5C17.09 7 20 9.91 20 13.5Z",Kc="M10.5 18H18V20H10.5C6.91 20 4 17.09 4 13.5S6.91 7 10.5 7H16.17L13.08 3.91L14.5 2.5L20 8L14.5 13.5L13.09 12.09L16.17 9H10.5C8 9 6 11 6 13.5S8 18 10.5 18Z",Xc="M3,21V3H21V21H3M5,5V19H19V5H5Z",Jc="M3 16C3 18.8 5.2 21 8 21H10V19H8C6.3 19 5 17.7 5 16V14H3V16M21 8C21 5.2 18.8 3 16 3H14V5H16C17.7 5 19 6.3 19 8V10H21V8M16 21C18.8 21 21 18.8 21 16V14H19V16C19 17.7 17.7 19 16 19H14V21H16M8 3C5.2 3 3 5.2 3 8V10H5V8C5 6.3 6.3 5 8 5H10V3H8Z",Qc="M15,21H17V19H15M19,21H21V19H19M7,21H9V19H7M11,21H13V19H11M19,17H21V15H19M19,13H21V11H19M3,3V21H5V5H21V3M19,9H21V7H19",ef="M22,17H18V10H22M23,8H17A1,1 0 0,0 16,9V19A1,1 0 0,0 17,20H23A1,1 0 0,0 24,19V9A1,1 0 0,0 23,8M4,6H22V4H4A2,2 0 0,0 2,6V17H0V20H14V17H4V6Z",tf="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",rf="M9,20.42L2.79,14.21L5.62,11.38L9,14.77L18.88,4.88L21.71,7.71L9,20.42Z",nf="M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z",of="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",af="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",sf="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",uf="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",lf="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",cf="M8,3A2,2 0 0,0 6,5V9A2,2 0 0,1 4,11H3V13H4A2,2 0 0,1 6,15V19A2,2 0 0,0 8,21H10V19H8V14A2,2 0 0,0 6,12A2,2 0 0,0 8,10V5H10V3M16,3A2,2 0 0,1 18,5V9A2,2 0 0,0 20,11H21V13H20A2,2 0 0,0 18,15V19A2,2 0 0,1 16,21H14V19H16V14A2,2 0 0,1 18,12A2,2 0 0,1 16,10V5H14V3H16Z",ff="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",df="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",pf="M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z",vf="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",gf="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",hf="M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",mf="M22 6C22 4.9 21.1 4 20 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6M20 6L12 11L4 6H20M20 18H4V8L12 13L20 8V18Z",bf="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",yf="M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z",_f="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z",wf="M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z",Of="M6.92,19L5,17.08L13.06,9L15,10.94M20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L13.84,6.41L11.91,4.5L10.5,5.91L11.92,7.33L3,16.25V21H7.75L16.67,12.08L18.09,13.5L19.5,12.09L17.58,10.17L20.7,7.05C21.1,6.65 21.1,6 20.71,5.63Z",Ef="M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z",xf="M7,11H1V13H7V11M9.17,7.76L7.05,5.64L5.64,7.05L7.76,9.17L9.17,7.76M13,1H11V7H13V1M18.36,7.05L16.95,5.64L14.83,7.76L16.24,9.17L18.36,7.05M17,11V13H23V11H17M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M14.83,16.24L16.95,18.36L18.36,16.95L16.24,14.83L14.83,16.24M5.64,16.95L7.05,18.36L9.17,16.24L7.76,14.83L5.64,16.95M11,23H13V17H11V23Z",Cf="M5,3A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5.5L18.5,3H17V9A1,1 0 0,1 16,10H8A1,1 0 0,1 7,9V3H5M12,4V9H15V4H12M7,12H17A1,1 0 0,1 18,13V19H6V13A1,1 0 0,1 7,12Z",Sf="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",jf="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",Af="M11,9H13V11H11V9M9,11H11V13H9V11M13,11H15V13H13V11M15,9H17V11H15V9M7,9H9V11H7V9M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M9,18H7V16H9V18M13,18H11V16H13V18M17,18H15V16H17V18M19,11H17V13H19V15H17V13H15V15H13V13H11V15H9V13H7V15H5V13H7V11H5V5H19V11Z",Lf="M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",Rf="M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z",Tf="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",Vf="M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z",Mf="M12,16L19.36,10.27L21,9L12,2L3,9L4.63,10.27M12,18.54L4.62,12.81L3,14.07L12,21.07L21,14.07L19.37,12.8L12,18.54Z",Pf="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z",Nf="M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z",Hf="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",kf="M18 1C15.24 1 13 3.24 13 6V8H4C2.9 8 2 8.89 2 10V20C2 21.11 2.9 22 4 22H16C17.11 22 18 21.11 18 20V10C18 8.9 17.11 8 16 8H15V6C15 4.34 16.34 3 18 3C19.66 3 21 4.34 21 6V8H23V6C23 3.24 20.76 1 18 1M10 13C11.1 13 12 13.89 12 15C12 16.11 11.11 17 10 17C8.9 17 8 16.11 8 15C8 13.9 8.9 13 10 13Z",Df="M7,10L12,15L17,10H7Z",$f="M20 5L20 19L4 19L4 5H20M20 3H4C2.89 3 2 3.89 2 5V19C2 20.11 2.89 21 4 21H20C21.11 21 22 20.11 22 19V5C22 3.89 21.11 3 20 3M18 15H6V17H18V15M10 7H6V13H10V7M12 9H18V7H12V9M18 11H12V13H18V11Z",Bf="M2.53,19.65L3.87,20.21V11.18L1.44,17.04C1.03,18.06 1.5,19.23 2.53,19.65M22.03,15.95L17.07,4C16.76,3.23 16.03,2.77 15.26,2.75C15,2.75 14.73,2.79 14.47,2.9L7.1,5.95C6.35,6.26 5.89,7 5.87,7.75C5.86,8 5.91,8.29 6,8.55L11,20.5C11.29,21.28 12.03,21.74 12.81,21.75C13.07,21.75 13.33,21.7 13.58,21.6L20.94,18.55C21.96,18.13 22.45,16.96 22.03,15.95M7.88,8.75A1,1 0 0,1 6.88,7.75A1,1 0 0,1 7.88,6.75C8.43,6.75 8.88,7.2 8.88,7.75C8.88,8.3 8.43,8.75 7.88,8.75M5.88,19.75A2,2 0 0,0 7.88,21.75H9.33L5.88,13.41V19.75Z",If="M12,2.5L8,7H16L12,2.5M12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12A2,2 0 0,0 12,10M8,17L12,21.5L16,17H8Z",Ff="M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z",zf="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",Uf="M17,13H13V17H11V13H7V11H11V7H13V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z",Wf="M16,7V3H14V7H10V3H8V7H8C7,7 6,8 6,9V14.5L9.5,18V21H14.5V18L18,14.5V9C18,8 17,7 16,7Z",qf="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",Yf="M12 2C11.5 2 11 2.19 10.59 2.59L2.59 10.59C1.8 11.37 1.8 12.63 2.59 13.41L10.59 21.41C11.37 22.2 12.63 22.2 13.41 21.41L21.41 13.41C22.2 12.63 22.2 11.37 21.41 10.59L13.41 2.59C13 2.19 12.5 2 12 2M12 4L20 12L12 20L4 12Z",Gf="M5.5,7A1.5,1.5 0 0,1 4,5.5A1.5,1.5 0 0,1 5.5,4A1.5,1.5 0 0,1 7,5.5A1.5,1.5 0 0,1 5.5,7M21.41,11.58L12.41,2.58C12.05,2.22 11.55,2 11,2H4C2.89,2 2,2.89 2,4V11C2,11.55 2.22,12.05 2.59,12.41L11.58,21.41C11.95,21.77 12.45,22 13,22C13.55,22 14.05,21.77 14.41,21.41L21.41,14.41C21.78,14.05 22,13.55 22,13C22,12.44 21.77,11.94 21.41,11.58Z",Zf="M11,2V4.07C7.38,4.53 4.53,7.38 4.07,11H2V13H4.07C4.53,16.62 7.38,19.47 11,19.93V22H13V19.93C16.62,19.47 19.47,16.62 19.93,13H22V11H19.93C19.47,7.38 16.62,4.53 13,4.07V2M11,6.08V8H13V6.09C15.5,6.5 17.5,8.5 17.92,11H16V13H17.91C17.5,15.5 15.5,17.5 13,17.92V16H11V17.91C8.5,17.5 6.5,15.5 6.08,13H8V11H6.09C6.5,8.5 8.5,6.5 11,6.08M12,11A1,1 0 0,0 11,12A1,1 0 0,0 12,13A1,1 0 0,0 13,12A1,1 0 0,0 12,11Z",Kf="M22.08,11.04H20.08V4H13.05V2H11.04V4H4V11.04H2V13.05H4V20.08H11.04V22.08H13.05V20.08H20.08V13.05H22.08V11.04M18.07,18.07H13.05V16.06H11.04V18.07H6V13.05H8.03V11.04H6V6H11.04V8.03H13.05V6H18.07V11.04H16.06V13.05H18.07V18.07M13.05,12.05A1,1 0 0,1 12.05,13.05C11.5,13.05 11.04,12.6 11.04,12.05C11.04,11.5 11.5,11.04 12.05,11.04C12.6,11.04 13.05,11.5 13.05,12.05Z",Xf="M16,15H9V13H16M19,11H9V9H19M19,7H9V5H19M21,1H7C5.89,1 5,1.89 5,3V17C5,18.11 5.9,19 7,19H21C22.11,19 23,18.11 23,17V3C23,1.89 22.1,1 21,1M3,5V21H19V23H3A2,2 0 0,1 1,21V5H3Z",Jf="M2 12H4V17H20V12H22V17C22 18.11 21.11 19 20 19H4C2.9 19 2 18.11 2 17V12M12 15L17.55 9.54L16.13 8.13L13 11.25V2H11V11.25L7.88 8.13L6.46 9.55L12 15Z",Qf="M16.59,5.41L15.17,4L12,7.17L8.83,4L7.41,5.41L12,10M7.41,18.59L8.83,20L12,16.83L15.17,20L16.58,18.59L12,14L7.41,18.59Z",ed="M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",td="M21 18H2V20H21V18M19 10V14H4V10H19M20 8H3C2.45 8 2 8.45 2 9V15C2 15.55 2.45 16 3 16H20C20.55 16 21 15.55 21 15V9C21 8.45 20.55 8 20 8M21 4H2V6H21V4Z",rd="M13 3V11H21V3H13M3 21H11V13H3V21M3 3V11H11V3H3M13 16H16V13H18V16H21V18H18V21H16V18H13V16Z",nd="M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",od="M12.89,3L14.85,3.4L11.11,21L9.15,20.6L12.89,3M19.59,12L16,8.41V5.58L22.42,12L16,18.41V15.58L19.59,12M1.58,12L8,5.58V8.41L4.41,12L8,15.58V18.41L1.58,12Z",Un={exports:{}},Wn={exports:{}},he={};/** @license React v16.13.1
|
|
31
|
+
* react-is.production.min.js
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the MIT license found in the
|
|
36
|
+
* LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/var za;function id(){if(za)return he;za=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(m){if(typeof m=="object"&&m!==null){var R=m.$$typeof;switch(R){case t:switch(m=m.type,m){case u:case c:case n:case i:case o:case d:return m;default:switch(m=m&&m.$$typeof,m){case s:case l:case b:case h:case a:return m;default:return R}}case r:return R}}}function C(m){return S(m)===c}return he.AsyncMode=u,he.ConcurrentMode=c,he.ContextConsumer=s,he.ContextProvider=a,he.Element=t,he.ForwardRef=l,he.Fragment=n,he.Lazy=b,he.Memo=h,he.Portal=r,he.Profiler=i,he.StrictMode=o,he.Suspense=d,he.isAsyncMode=function(m){return C(m)||S(m)===u},he.isConcurrentMode=C,he.isContextConsumer=function(m){return S(m)===s},he.isContextProvider=function(m){return S(m)===a},he.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},he.isForwardRef=function(m){return S(m)===l},he.isFragment=function(m){return S(m)===n},he.isLazy=function(m){return S(m)===b},he.isMemo=function(m){return S(m)===h},he.isPortal=function(m){return S(m)===r},he.isProfiler=function(m){return S(m)===i},he.isStrictMode=function(m){return S(m)===o},he.isSuspense=function(m){return S(m)===d},he.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===c||m===i||m===o||m===d||m===p||typeof m=="object"&&m!==null&&(m.$$typeof===b||m.$$typeof===h||m.$$typeof===a||m.$$typeof===s||m.$$typeof===l||m.$$typeof===y||m.$$typeof===O||m.$$typeof===w||m.$$typeof===_)},he.typeOf=S,he}var me={},Ua;function ad(){if(Ua)return me;Ua=1;var e={};/** @license React v16.13.1
|
|
38
|
+
* react-is.development.js
|
|
39
|
+
*
|
|
40
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
41
|
+
*
|
|
42
|
+
* This source code is licensed under the MIT license found in the
|
|
43
|
+
* LICENSE file in the root directory of this source tree.
|
|
44
|
+
*/return e.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,b=t?Symbol.for("react.memo"):60115,_=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,O=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function C(k){return typeof k=="string"||typeof k=="function"||k===o||k===l||k===a||k===i||k===p||k===h||typeof k=="object"&&k!==null&&(k.$$typeof===_||k.$$typeof===b||k.$$typeof===s||k.$$typeof===u||k.$$typeof===d||k.$$typeof===O||k.$$typeof===w||k.$$typeof===S||k.$$typeof===y)}function m(k){if(typeof k=="object"&&k!==null){var xe=k.$$typeof;switch(xe){case r:var Pe=k.type;switch(Pe){case c:case l:case o:case a:case i:case p:return Pe;default:var Re=Pe&&Pe.$$typeof;switch(Re){case u:case d:case _:case b:case s:return Re;default:return xe}}case n:return xe}}}var R=c,P=l,Z=u,D=s,H=r,X=d,ee=o,Q=_,ae=b,N=n,q=a,ne=i,oe=p,fe=!1;function de(k){return fe||(fe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(k)||m(k)===c}function E(k){return m(k)===l}function A(k){return m(k)===u}function F(k){return m(k)===s}function $(k){return typeof k=="object"&&k!==null&&k.$$typeof===r}function B(k){return m(k)===d}function te(k){return m(k)===o}function z(k){return m(k)===_}function Y(k){return m(k)===b}function J(k){return m(k)===n}function se(k){return m(k)===a}function re(k){return m(k)===i}function ye(k){return m(k)===p}me.AsyncMode=R,me.ConcurrentMode=P,me.ContextConsumer=Z,me.ContextProvider=D,me.Element=H,me.ForwardRef=X,me.Fragment=ee,me.Lazy=Q,me.Memo=ae,me.Portal=N,me.Profiler=q,me.StrictMode=ne,me.Suspense=oe,me.isAsyncMode=de,me.isConcurrentMode=E,me.isContextConsumer=A,me.isContextProvider=F,me.isElement=$,me.isForwardRef=B,me.isFragment=te,me.isLazy=z,me.isMemo=Y,me.isPortal=J,me.isProfiler=se,me.isStrictMode=re,me.isSuspense=ye,me.isValidElementType=C,me.typeOf=m}(),me}var Wa;function Ru(){if(Wa)return Wn.exports;Wa=1;var e={};return e.NODE_ENV==="production"?Wn.exports=id():Wn.exports=ad(),Wn.exports}/*
|
|
45
|
+
object-assign
|
|
46
|
+
(c) Sindre Sorhus
|
|
47
|
+
@license MIT
|
|
48
|
+
*/var si,qa;function sd(){if(qa)return si;qa=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(a).map(function(l){return a[l]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(l){c[l]=l}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return si=o()?Object.assign:function(i,a){for(var s,u=n(i),c,l=1;l<arguments.length;l++){s=Object(arguments[l]);for(var d in s)t.call(s,d)&&(u[d]=s[d]);if(e){c=e(s);for(var p=0;p<c.length;p++)r.call(s,c[p])&&(u[c[p]]=s[c[p]])}}return u},si}var ui,Ya;function fa(){if(Ya)return ui;Ya=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ui=e,ui}var li,Ga;function Tu(){return Ga||(Ga=1,li=Function.call.bind(Object.prototype.hasOwnProperty)),li}var ci,Za;function ud(){if(Za)return ci;Za=1;var e={},t=function(){};if(e.NODE_ENV!=="production"){var r=fa(),n={},o=Tu();t=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(a,s,u,c,l){if(e.NODE_ENV!=="production"){for(var d in a)if(o(a,d)){var p;try{if(typeof a[d]!="function"){var h=Error((c||"React class")+": "+u+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=a[d](s,d,c,u,null,r)}catch(_){p=_}if(p&&!(p instanceof Error)&&t((c||"React class")+": type specification of "+u+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var b=l?l():"";t("Failed "+u+" type: "+p.message+(b??""))}}}}return i.resetWarningCache=function(){e.NODE_ENV!=="production"&&(n={})},ci=i,ci}var fi,Ka;function ld(){if(Ka)return fi;Ka=1;var e={},t=Ru(),r=sd(),n=fa(),o=Tu(),i=ud(),a=function(){};e.NODE_ENV!=="production"&&(a=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return fi=function(u,c){var l=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(E){var A=E&&(l&&E[l]||E[d]);if(typeof A=="function")return A}var h="<<anonymous>>",b={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:S(),arrayOf:C,element:m(),elementType:R(),instanceOf:P,node:X(),objectOf:D,oneOf:Z,oneOfType:H,shape:Q,exact:ae};function _(E,A){return E===A?E!==0||1/E===1/A:E!==E&&A!==A}function y(E,A){this.message=E,this.data=A&&typeof A=="object"?A:{},this.stack=""}y.prototype=Error.prototype;function O(E){if(e.NODE_ENV!=="production")var A={},F=0;function $(te,z,Y,J,se,re,ye){if(J=J||h,re=re||Y,ye!==n){if(c){var k=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw k.name="Invariant Violation",k}else if(e.NODE_ENV!=="production"&&typeof console<"u"){var xe=J+":"+Y;!A[xe]&&F<3&&(a("You are manually calling a React.PropTypes validation function for the `"+re+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),A[xe]=!0,F++)}}return z[Y]==null?te?z[Y]===null?new y("The "+se+" `"+re+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new y("The "+se+" `"+re+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:E(z,Y,J,se,re)}var B=$.bind(null,!1);return B.isRequired=$.bind(null,!0),B}function w(E){function A(F,$,B,te,z,Y){var J=F[$],se=ne(J);if(se!==E){var re=oe(J);return new y("Invalid "+te+" `"+z+"` of type "+("`"+re+"` supplied to `"+B+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return O(A)}function S(){return O(s)}function C(E){function A(F,$,B,te,z){if(typeof E!="function")return new y("Property `"+z+"` of component `"+B+"` has invalid PropType notation inside arrayOf.");var Y=F[$];if(!Array.isArray(Y)){var J=ne(Y);return new y("Invalid "+te+" `"+z+"` of type "+("`"+J+"` supplied to `"+B+"`, expected an array."))}for(var se=0;se<Y.length;se++){var re=E(Y,se,B,te,z+"["+se+"]",n);if(re instanceof Error)return re}return null}return O(A)}function m(){function E(A,F,$,B,te){var z=A[F];if(!u(z)){var Y=ne(z);return new y("Invalid "+B+" `"+te+"` of type "+("`"+Y+"` supplied to `"+$+"`, expected a single ReactElement."))}return null}return O(E)}function R(){function E(A,F,$,B,te){var z=A[F];if(!t.isValidElementType(z)){var Y=ne(z);return new y("Invalid "+B+" `"+te+"` of type "+("`"+Y+"` supplied to `"+$+"`, expected a single ReactElement type."))}return null}return O(E)}function P(E){function A(F,$,B,te,z){if(!(F[$]instanceof E)){var Y=E.name||h,J=de(F[$]);return new y("Invalid "+te+" `"+z+"` of type "+("`"+J+"` supplied to `"+B+"`, expected ")+("instance of `"+Y+"`."))}return null}return O(A)}function Z(E){if(!Array.isArray(E))return e.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),s;function A(F,$,B,te,z){for(var Y=F[$],J=0;J<E.length;J++)if(_(Y,E[J]))return null;var se=JSON.stringify(E,function(ye,k){var xe=oe(k);return xe==="symbol"?String(k):k});return new y("Invalid "+te+" `"+z+"` of value `"+String(Y)+"` "+("supplied to `"+B+"`, expected one of "+se+"."))}return O(A)}function D(E){function A(F,$,B,te,z){if(typeof E!="function")return new y("Property `"+z+"` of component `"+B+"` has invalid PropType notation inside objectOf.");var Y=F[$],J=ne(Y);if(J!=="object")return new y("Invalid "+te+" `"+z+"` of type "+("`"+J+"` supplied to `"+B+"`, expected an object."));for(var se in Y)if(o(Y,se)){var re=E(Y,se,B,te,z+"."+se,n);if(re instanceof Error)return re}return null}return O(A)}function H(E){if(!Array.isArray(E))return e.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var A=0;A<E.length;A++){var F=E[A];if(typeof F!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+fe(F)+" at index "+A+"."),s}function $(B,te,z,Y,J){for(var se=[],re=0;re<E.length;re++){var ye=E[re],k=ye(B,te,z,Y,J,n);if(k==null)return null;k.data&&o(k.data,"expectedType")&&se.push(k.data.expectedType)}var xe=se.length>0?", expected one of type ["+se.join(", ")+"]":"";return new y("Invalid "+Y+" `"+J+"` supplied to "+("`"+z+"`"+xe+"."))}return O($)}function X(){function E(A,F,$,B,te){return N(A[F])?null:new y("Invalid "+B+" `"+te+"` supplied to "+("`"+$+"`, expected a ReactNode."))}return O(E)}function ee(E,A,F,$,B){return new y((E||"React class")+": "+A+" type `"+F+"."+$+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+B+"`.")}function Q(E){function A(F,$,B,te,z){var Y=F[$],J=ne(Y);if(J!=="object")return new y("Invalid "+te+" `"+z+"` of type `"+J+"` "+("supplied to `"+B+"`, expected `object`."));for(var se in E){var re=E[se];if(typeof re!="function")return ee(B,te,z,se,oe(re));var ye=re(Y,se,B,te,z+"."+se,n);if(ye)return ye}return null}return O(A)}function ae(E){function A(F,$,B,te,z){var Y=F[$],J=ne(Y);if(J!=="object")return new y("Invalid "+te+" `"+z+"` of type `"+J+"` "+("supplied to `"+B+"`, expected `object`."));var se=r({},F[$],E);for(var re in se){var ye=E[re];if(o(E,re)&&typeof ye!="function")return ee(B,te,z,re,oe(ye));if(!ye)return new y("Invalid "+te+" `"+z+"` key `"+re+"` supplied to `"+B+"`.\nBad object: "+JSON.stringify(F[$],null," ")+`
|
|
49
|
+
Valid keys: `+JSON.stringify(Object.keys(E),null," "));var k=ye(Y,re,B,te,z+"."+re,n);if(k)return k}return null}return O(A)}function N(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(N);if(E===null||u(E))return!0;var A=p(E);if(A){var F=A.call(E),$;if(A!==E.entries){for(;!($=F.next()).done;)if(!N($.value))return!1}else for(;!($=F.next()).done;){var B=$.value;if(B&&!N(B[1]))return!1}}else return!1;return!0;default:return!1}}function q(E,A){return E==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function ne(E){var A=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":q(A,E)?"symbol":A}function oe(E){if(typeof E>"u"||E===null)return""+E;var A=ne(E);if(A==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return A}function fe(E){var A=oe(E);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function de(E){return!E.constructor||!E.constructor.name?h:E.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},fi}var di,Xa;function cd(){if(Xa)return di;Xa=1;var e=fa();function t(){}function r(){}return r.resetWarningCache=t,di=function(){function n(a,s,u,c,l,d){if(d!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},di}var Ja;function fd(){if(Ja)return Un.exports;Ja=1;var e={};if(e.NODE_ENV!=="production"){var t=Ru(),r=!0;Un.exports=ld()(t.isElement,r)}else Un.exports=cd()();return Un.exports}var dd=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(n,o,i){r.o(n,o)||Object.defineProperty(n,o,{enumerable:!0,get:i})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,o){if(1&o&&(n=r(n)),8&o||4&o&&typeof n=="object"&&n&&n.__esModule)return n;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&o&&typeof n!="string")for(var a in n)r.d(i,a,(function(s){return n[s]}).bind(null,a));return i},r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,"a",o),o},r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},r.p="",r(r.s=2)}([function(e,t){e.exports=fd()},function(e,t){e.exports=g},function(e,t,r){r.r(t);var n=r(1),o=r(0),i=function(){return(i=Object.assign||function(b){for(var _,y=1,O=arguments.length;y<O;y++)for(var w in _=arguments[y])Object.prototype.hasOwnProperty.call(_,w)&&(b[w]=_[w]);return b}).apply(this,arguments)},a=function(b,_){var y={};for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&_.indexOf(O)<0&&(y[O]=b[O]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function"){var w=0;for(O=Object.getOwnPropertySymbols(b);w<O.length;w++)_.indexOf(O[w])<0&&Object.prototype.propertyIsEnumerable.call(b,O[w])&&(y[O[w]]=b[O[w]])}return y},s=0,u=n.forwardRef(function(b,_){var y=b.title,O=y===void 0?null:y,w=b.description,S=w===void 0?null:w,C=b.size,m=C===void 0?null:C,R=b.color,P=R===void 0?"currentColor":R,Z=b.horizontal,D=Z===void 0?null:Z,H=b.vertical,X=H===void 0?null:H,ee=b.rotate,Q=ee===void 0?null:ee,ae=b.spin,N=ae===void 0?null:ae,q=b.style,ne=q===void 0?{}:q,oe=b.children,fe=a(b,["title","description","size","color","horizontal","vertical","rotate","spin","style","children"]);s++;var de,E=N!==null&&N,A=n.Children.map(oe,function(te){var z=te;E!==!0&&(E=(N===null?z.props.spin:N)===!0);var Y=z.props.size;typeof m=="number"&&typeof z.props.size=="number"&&(Y=z.props.size/m);var J={size:Y,color:P===null?z.props.color:P,horizontal:D===null?z.props.horizontal:D,vertical:X===null?z.props.vertical:X,rotate:Q===null?z.props.rotate:Q,spin:N===null?z.props.spin:N,inStack:!0};return n.cloneElement(z,J)});m!==null&&(ne.width=typeof m=="string"?m:1.5*m+"rem");var F,$="stack_labelledby_"+s,B="stack_describedby_"+s;if(O)de=S?$+" "+B:$;else if(F="presentation",S)throw new Error("title attribute required when description is set");return n.createElement("svg",i({ref:_,viewBox:"0 0 24 24",style:ne,role:F,"aria-labelledby":de},fe),O&&n.createElement("title",{id:$},O),S&&n.createElement("desc",{id:B},S),E&&n.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }","@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"),A)});u.displayName="Stack",u.propTypes={size:o.oneOfType([o.number,o.string]),color:o.string,horizontal:o.bool,vertical:o.bool,rotate:o.number,spin:o.oneOfType([o.bool,o.number]),children:o.oneOfType([o.arrayOf(o.node),o.node]).isRequired,className:o.string,style:o.object},u.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null};var c=u;r.d(t,"Icon",function(){return h}),r.d(t,"Stack",function(){return c});var l=function(){return(l=Object.assign||function(b){for(var _,y=1,O=arguments.length;y<O;y++)for(var w in _=arguments[y])Object.prototype.hasOwnProperty.call(_,w)&&(b[w]=_[w]);return b}).apply(this,arguments)},d=function(b,_){var y={};for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&_.indexOf(O)<0&&(y[O]=b[O]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function"){var w=0;for(O=Object.getOwnPropertySymbols(b);w<O.length;w++)_.indexOf(O[w])<0&&Object.prototype.propertyIsEnumerable.call(b,O[w])&&(y[O[w]]=b[O[w]])}return y},p=0,h=n.forwardRef(function(b,_){var y=b.path,O=b.id,w=O===void 0?++p:O,S=b.title,C=S===void 0?null:S,m=b.description,R=m===void 0?null:m,P=b.size,Z=P===void 0?null:P,D=b.color,H=D===void 0?"currentColor":D,X=b.horizontal,ee=X!==void 0&&X,Q=b.vertical,ae=Q!==void 0&&Q,N=b.rotate,q=N===void 0?0:N,ne=b.spin,oe=ne!==void 0&&ne,fe=b.style,de=fe===void 0?{}:fe,E=b.inStack,A=E!==void 0&&E,F=d(b,["path","id","title","description","size","color","horizontal","vertical","rotate","spin","style","inStack"]),$={},B=[];Z!==null&&(A?B.push("scale("+Z+")"):(de.width=typeof Z=="string"?Z:1.5*Z+"rem",de.height=de.width)),ee&&B.push("scaleX(-1)"),ae&&B.push("scaleY(-1)"),q!==0&&B.push("rotate("+q+"deg)"),H!==null&&($.fill=H);var te=n.createElement("path",l({d:y,style:$},A?F:{})),z=te;B.length>0&&(de.transform=B.join(" "),de.transformOrigin="center",A&&(z=n.createElement("g",{style:de},te,n.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var Y,J=z,se=oe===!0||typeof oe!="number"?2:oe,re=!A&&(ee||ae);if(se<0&&(re=!re),oe&&(J=n.createElement("g",{style:{animation:"spin"+(re?"-inverse":"")+" linear "+Math.abs(se)+"s infinite",transformOrigin:"center"}},z,!(ee||ae||q!==0)&&n.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),A)return J;var ye,k="icon_labelledby_"+w,xe="icon_describedby_"+w;if(C)Y=R?k+" "+xe:k;else if(ye="presentation",R)throw new Error("title attribute required when description is set");return n.createElement("svg",l({ref:_,viewBox:"0 0 24 24",style:de,role:ye,"aria-labelledby":Y},F),C&&n.createElement("title",{id:k},C),R&&n.createElement("desc",{id:xe},R),!A&&oe&&(re?n.createElement("style",null,"@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"):n.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }")),J)});h.displayName="Icon",h.propTypes={path:o.string.isRequired,size:o.oneOfType([o.number,o.string]),color:o.string,horizontal:o.bool,vertical:o.bool,rotate:o.number,spin:o.oneOfType([o.bool,o.number]),style:o.object,inStack:o.bool,className:o.string},h.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},t.default=h}]);const pd=ca(dd);var Vu={exports:{}};/*!
|
|
50
|
+
Copyright (c) 2018 Jed Watson.
|
|
51
|
+
Licensed under the MIT License (MIT), see
|
|
52
|
+
http://jedwatson.github.io/classnames
|
|
53
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Vu);var vd=Vu.exports;const Rr=ca(vd);var j={},gd={0:"Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",1:function(t,r){return"Cannot apply '"+t+"' to '"+r.toString()+"': Field not found."},5:"'keys()' can only be used on observable objects, arrays, sets and maps",6:"'values()' can only be used on observable objects, arrays, sets and maps",7:"'entries()' can only be used on observable objects, arrays and maps",8:"'set()' can only be used on observable objects, arrays and maps",9:"'remove()' can only be used on observable objects, arrays and maps",10:"'has()' can only be used on observable objects, arrays and maps",11:"'get()' can only be used on observable objects, arrays and maps",12:"Invalid annotation",13:"Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",14:"Intercept handlers should return nothing or a change object",15:"Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)",16:"Modification exception: the internal structure of an observable array was changed.",17:function(t,r){return"[mobx.array] Index out of bounds, "+t+" is larger than "+r},18:"mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js",19:function(t){return"Cannot initialize from classes that inherit from Map: "+t.constructor.name},20:function(t){return"Cannot initialize map from "+t},21:function(t){return"Cannot convert to map from '"+t+"'"},22:"mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js",23:"It is not possible to get index atoms from arrays",24:function(t){return"Cannot obtain administration from "+t},25:function(t,r){return"the entry '"+t+"' does not exist in the observable map '"+r+"'"},26:"please specify a property",27:function(t,r){return"no observable property '"+t.toString()+"' found on the observable object '"+r+"'"},28:function(t){return"Cannot obtain atom from "+t},29:"Expecting some object",30:"invalid action stack. did you forget to finish an action?",31:"missing option for computed: get",32:function(t,r){return"Cycle detected in computation "+t+": "+r},33:function(t){return"The setter of computed value '"+t+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"},34:function(t){return"[ComputedValue '"+t+"'] It is not possible to assign a new value to a computed value."},35:"There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`",36:"isolateGlobalState should be called before MobX is running any reactions",37:function(t){return"[mobx] `observableArray."+t+"()` mutates the array in-place, which is not allowed inside a derivation. Use `array.slice()."+t+"()` instead"},38:"'ownKeys()' can only be used on observable objects",39:"'defineProperty()' can only be used on observable objects"},hd=j.NODE_ENV!=="production"?gd:{};function U(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(j.NODE_ENV!=="production"){var o=typeof e=="string"?e:hd[e];throw typeof o=="function"&&(o=o.apply(null,r)),new Error("[MobX] "+o)}throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var md={};function Po(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:md}var Mu=Object.assign,ho=Object.getOwnPropertyDescriptor,St=Object.defineProperty,No=Object.prototype,mo=[];Object.freeze(mo);var Pu={};Object.freeze(Pu);var bd=typeof Proxy<"u",yd=Object.toString();function Nu(){bd||U(j.NODE_ENV!=="production"?"`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`":"Proxy not available")}function nn(e){j.NODE_ENV!=="production"&&V.verifyProxies&&U("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to "+e)}function ht(){return++V.mobxGuid}function da(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Tr=function(){};function Ae(e){return typeof e=="function"}function gr(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function Ho(e){return e!==null&&typeof e=="object"}function Lt(e){if(!Ho(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r.toString()===yd}function Hu(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function ko(e,t,r){St(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function ku(e,t,r){St(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function Or(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(n){return Ho(n)&&n[r]===!0}}function Yr(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function _d(e){var t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t),n=Object.getPrototypeOf(r);return n===null}function Ht(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var Du=typeof Object.getOwnPropertySymbols<"u";function wd(e){var t=Object.keys(e);if(!Du)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter(function(n){return No.propertyIsEnumerable.call(e,n)})):t}var Do=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Du?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function $i(e){return typeof e=="string"?e:typeof e=="symbol"?e.toString():new String(e).toString()}function $u(e){return e===null?null:typeof e=="object"?""+e:e}function nt(e,t){return No.hasOwnProperty.call(e,t)}var Od=Object.getOwnPropertyDescriptors||function(t){var r={};return Do(t).forEach(function(n){r[n]=ho(t,n)}),r};function ze(e,t){return!!(e&t)}function Ue(e,t,r){return r?e|=t:e&=~t,e}function Qa(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Ed(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Cd(n.key),n)}}function Gr(e,t,r){return t&&Ed(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vr(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=Sd(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
54
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function It(){return It=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},It.apply(null,arguments)}function Bu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bi(e,t)}function Bi(e,t){return Bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Bi(e,t)}function xd(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Cd(e){var t=xd(e,"string");return typeof t=="symbol"?t:t+""}function Sd(e,t){if(e){if(typeof e=="string")return Qa(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qa(e,t):void 0}}var $e=Symbol("mobx-stored-annotations");function jt(e){function t(r,n){if(xn(n))return e.decorate_20223_(r,n);En(r,n,e)}return Object.assign(t,e)}function En(e,t,r){if(nt(e,$e)||ko(e,$e,It({},e[$e])),j.NODE_ENV!=="production"&&yo(r)&&!nt(e[$e],t)){var n=e.constructor.name+".prototype."+t.toString();U("'"+n+"' is decorated with 'override', but no such decorated member was found on prototype.")}jd(e,r,t),yo(r)||(e[$e][t]=r)}function jd(e,t,r){if(j.NODE_ENV!=="production"&&!yo(t)&&nt(e[$e],r)){var n=e.constructor.name+".prototype."+r.toString(),o=e[$e][r].annotationType_,i=t.annotationType_;U("Cannot apply '@"+i+"' to '"+n+"':"+(`
|
|
55
|
+
The field is already decorated with '@`+o+"'.")+`
|
|
56
|
+
Re-decorating fields is not allowed.
|
|
57
|
+
Use '@override' decorator for methods overridden by subclass.`)}}function Ad(e){return nt(e,$e)||ko(e,$e,It({},e[$e])),e[$e]}function xn(e){return typeof e=="object"&&typeof e.kind=="string"}function $o(e,t){j.NODE_ENV!=="production"&&!t.includes(e.kind)&&U("The decorator applied to '"+String(e.name)+"' cannot be used on a "+e.kind+" element")}var ue=Symbol("mobx administration"),tr=function(){function e(r){r===void 0&&(r=j.NODE_ENV!=="production"?"Atom@"+ht():"Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=ve.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=r}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return rl(this)},t.reportChanged=function(){et(),nl(this),tt()},t.toString=function(){return this.name_},Gr(e,[{key:"isBeingObserved",get:function(){return ze(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=Ue(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return ze(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=Ue(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return ze(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=Ue(this.flags_,e.diffValueMask_,n===1)}}])}();tr.isBeingObservedMask_=1;tr.isPendingUnobservationMask_=2;tr.diffValueMask_=4;var pa=Or("Atom",tr);function Iu(e,t,r){t===void 0&&(t=Tr),r===void 0&&(r=Tr);var n=new tr(e);return t!==Tr&&Fp(n,t),r!==Tr&&ll(n,r),n}function Ld(e,t){return e===t}function Rd(e,t){return wa(e,t)}function Td(e,t){return wa(e,t,1)}function Vd(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var bo={identity:Ld,structural:Rd,default:Vd,shallow:Td};function hr(e,t,r){return mn(e)?e:Array.isArray(e)?Te.array(e,{name:r}):Lt(e)?Te.object(e,void 0,{name:r}):Yr(e)?Te.map(e,{name:r}):Ht(e)?Te.set(e,{name:r}):typeof e=="function"&&!Dr(e)&&!hn(e)?Hu(e)?$r(e):gn(r,e):e}function Md(e,t,r){if(e==null||An(e)||Uo(e)||rr(e)||Et(e))return e;if(Array.isArray(e))return Te.array(e,{name:r,deep:!1});if(Lt(e))return Te.object(e,void 0,{name:r,deep:!1});if(Yr(e))return Te.map(e,{name:r,deep:!1});if(Ht(e))return Te.set(e,{name:r,deep:!1});j.NODE_ENV!=="production"&&U("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets")}function Bo(e){return e}function Pd(e,t){return j.NODE_ENV!=="production"&&mn(e)&&U("observable.struct should not be used with observable values"),wa(e,t)?t:e}var Nd="override";function yo(e){return e.annotationType_===Nd}function Cn(e,t){return{annotationType_:e,options_:t,make_:Hd,extend_:kd,decorate_20223_:Dd}}function Hd(e,t,r,n){var o;if((o=this.options_)!=null&&o.bound)return this.extend_(e,t,r,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if(Dr(r.value))return 1;var i=Fu(e,this,t,r,!1);return St(n,t,i),2}function kd(e,t,r,n){var o=Fu(e,this,t,r);return e.defineProperty_(t,o,n)}function Dd(e,t){j.NODE_ENV!=="production"&&$o(t,["method","field"]);var r=t.kind,n=t.name,o=t.addInitializer,i=this,a=function(c){var l,d,p,h;return mr((l=(d=i.options_)==null?void 0:d.name)!=null?l:n.toString(),c,(p=(h=i.options_)==null?void 0:h.autoAction)!=null?p:!1)};if(r=="field")return function(u){var c,l=u;return Dr(l)||(l=a(l)),(c=i.options_)!=null&&c.bound&&(l=l.bind(this),l.isMobxAction=!0),l};if(r=="method"){var s;return Dr(e)||(e=a(e)),(s=this.options_)!=null&&s.bound&&o(function(){var u=this,c=u[n].bind(u);c.isMobxAction=!0,u[n]=c}),e}U("Cannot apply '"+i.annotationType_+"' to '"+String(n)+"' (kind: "+r+"):"+(`
|
|
58
|
+
'`+i.annotationType_+"' can only be used on properties with a function value."))}function $d(e,t,r,n){var o=t.annotationType_,i=n.value;j.NODE_ENV!=="production"&&!Ae(i)&&U("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':"+(`
|
|
59
|
+
'`+o+"' can only be used on properties with a function value."))}function Fu(e,t,r,n,o){var i,a,s,u,c,l,d;o===void 0&&(o=V.safeDescriptors),$d(e,t,r,n);var p=n.value;if((i=t.options_)!=null&&i.bound){var h;p=p.bind((h=e.proxy_)!=null?h:e.target_)}return{value:mr((a=(s=t.options_)==null?void 0:s.name)!=null?a:r.toString(),p,(u=(c=t.options_)==null?void 0:c.autoAction)!=null?u:!1,(l=t.options_)!=null&&l.bound?(d=e.proxy_)!=null?d:e.target_:void 0),configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function zu(e,t){return{annotationType_:e,options_:t,make_:Bd,extend_:Id,decorate_20223_:Fd}}function Bd(e,t,r,n){var o;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if((o=this.options_)!=null&&o.bound&&(!nt(e.target_,t)||!hn(e.target_[t]))&&this.extend_(e,t,r,!1)===null)return 0;if(hn(r.value))return 1;var i=Uu(e,this,t,r,!1,!1);return St(n,t,i),2}function Id(e,t,r,n){var o,i=Uu(e,this,t,r,(o=this.options_)==null?void 0:o.bound);return e.defineProperty_(t,i,n)}function Fd(e,t){var r;j.NODE_ENV!=="production"&&$o(t,["method"]);var n=t.name,o=t.addInitializer;return hn(e)||(e=$r(e)),(r=this.options_)!=null&&r.bound&&o(function(){var i=this,a=i[n].bind(i);a.isMobXFlow=!0,i[n]=a}),e}function zd(e,t,r,n){var o=t.annotationType_,i=n.value;j.NODE_ENV!=="production"&&!Ae(i)&&U("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':"+(`
|
|
60
|
+
'`+o+"' can only be used on properties with a generator function value."))}function Uu(e,t,r,n,o,i){i===void 0&&(i=V.safeDescriptors),zd(e,t,r,n);var a=n.value;if(hn(a)||(a=$r(a)),o){var s;a=a.bind((s=e.proxy_)!=null?s:e.target_),a.isMobXFlow=!0}return{value:a,configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function va(e,t){return{annotationType_:e,options_:t,make_:Ud,extend_:Wd,decorate_20223_:qd}}function Ud(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function Wd(e,t,r,n){return Yd(e,this,t,r),e.defineComputedProperty_(t,It({},this.options_,{get:r.get,set:r.set}),n)}function qd(e,t){j.NODE_ENV!=="production"&&$o(t,["getter"]);var r=this,n=t.name,o=t.addInitializer;return o(function(){var i=Zr(this)[ue],a=It({},r.options_,{get:e,context:this});a.name||(a.name=j.NODE_ENV!=="production"?i.name_+"."+n.toString():"ObservableObject."+n.toString()),i.values_.set(n,new st(a))}),function(){return this[ue].getObservablePropValue_(n)}}function Yd(e,t,r,n){var o=t.annotationType_,i=n.get;j.NODE_ENV!=="production"&&!i&&U("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':"+(`
|
|
61
|
+
'`+o+"' can only be used on getter(+setter) properties."))}function Io(e,t){return{annotationType_:e,options_:t,make_:Gd,extend_:Zd,decorate_20223_:Kd}}function Gd(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function Zd(e,t,r,n){var o,i;return Xd(e,this,t,r),e.defineObservableProperty_(t,r.value,(o=(i=this.options_)==null?void 0:i.enhancer)!=null?o:hr,n)}function Kd(e,t){if(j.NODE_ENV!=="production"){if(t.kind==="field")throw U("Please use `@observable accessor "+String(t.name)+"` instead of `@observable "+String(t.name)+"`");$o(t,["accessor"])}var r=this,n=t.kind,o=t.name,i=new WeakSet;function a(s,u){var c,l,d=Zr(s)[ue],p=new dr(u,(c=(l=r.options_)==null?void 0:l.enhancer)!=null?c:hr,j.NODE_ENV!=="production"?d.name_+"."+o.toString():"ObservableObject."+o.toString(),!1);d.values_.set(o,p),i.add(s)}if(n=="accessor")return{get:function(){return i.has(this)||a(this,e.get.call(this)),this[ue].getObservablePropValue_(o)},set:function(u){return i.has(this)||a(this,u),this[ue].setObservablePropValue_(o,u)},init:function(u){return i.has(this)||a(this,u),u}}}function Xd(e,t,r,n){var o=t.annotationType_;j.NODE_ENV!=="production"&&!("value"in n)&&U("Cannot apply '"+o+"' to '"+e.name_+"."+r.toString()+"':"+(`
|
|
62
|
+
'`+o+"' cannot be used on getter/setter properties"))}var Jd="true",Qd=Wu();function Wu(e){return{annotationType_:Jd,options_:e,make_:ep,extend_:tp,decorate_20223_:rp}}function ep(e,t,r,n){var o,i;if(r.get)return Fo.make_(e,t,r,n);if(r.set){var a=mr(t.toString(),r.set);return n===e.target_?e.defineProperty_(t,{configurable:V.safeDescriptors?e.isPlainObject_:!0,set:a})===null?0:2:(St(n,t,{configurable:!0,set:a}),2)}if(n!==e.target_&&typeof r.value=="function"){var s;if(Hu(r.value)){var u,c=(u=this.options_)!=null&&u.autoBind?$r.bound:$r;return c.make_(e,t,r,n)}var l=(s=this.options_)!=null&&s.autoBind?gn.bound:gn;return l.make_(e,t,r,n)}var d=((o=this.options_)==null?void 0:o.deep)===!1?Te.ref:Te;if(typeof r.value=="function"&&(i=this.options_)!=null&&i.autoBind){var p;r.value=r.value.bind((p=e.proxy_)!=null?p:e.target_)}return d.make_(e,t,r,n)}function tp(e,t,r,n){var o,i;if(r.get)return Fo.extend_(e,t,r,n);if(r.set)return e.defineProperty_(t,{configurable:V.safeDescriptors?e.isPlainObject_:!0,set:mr(t.toString(),r.set)},n);if(typeof r.value=="function"&&(o=this.options_)!=null&&o.autoBind){var a;r.value=r.value.bind((a=e.proxy_)!=null?a:e.target_)}var s=((i=this.options_)==null?void 0:i.deep)===!1?Te.ref:Te;return s.extend_(e,t,r,n)}function rp(e,t){U("'"+this.annotationType_+"' cannot be used as a decorator")}var np="observable",op="observable.ref",ip="observable.shallow",ap="observable.struct",qu={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(qu);function qn(e){return e||qu}var Ii=Io(np),sp=Io(op,{enhancer:Bo}),up=Io(ip,{enhancer:Md}),lp=Io(ap,{enhancer:Pd}),Yu=jt(Ii);function Yn(e){return e.deep===!0?hr:e.deep===!1?Bo:fp(e.defaultDecorator)}function cp(e){var t;return e?(t=e.defaultDecorator)!=null?t:Wu(e):void 0}function fp(e){var t,r;return e&&(t=(r=e.options_)==null?void 0:r.enhancer)!=null?t:hr}function Gu(e,t,r){if(xn(t))return Ii.decorate_20223_(e,t);if(gr(t)){En(e,t,Ii);return}return mn(e)?e:Lt(e)?Te.object(e,t,r):Array.isArray(e)?Te.array(e,t):Yr(e)?Te.map(e,t):Ht(e)?Te.set(e,t):typeof e=="object"&&e!==null?e:Te.box(e,t)}Mu(Gu,Yu);var dp={box:function(t,r){var n=qn(r);return new dr(t,Yn(n),n.name,!0,n.equals)},array:function(t,r){var n=qn(r);return(V.useProxies===!1||n.proxy===!1?v1:o1)(t,Yn(n),n.name)},map:function(t,r){var n=qn(r);return new gl(t,Yn(n),n.name)},set:function(t,r){var n=qn(r);return new hl(t,Yn(n),n.name)},object:function(t,r,n){return xr(function(){return qp(V.useProxies===!1||(n==null?void 0:n.proxy)===!1?Zr({},n):e1({},n),t,r)})},ref:jt(sp),shallow:jt(up),deep:Yu,struct:jt(lp)},Te=Mu(Gu,dp),Zu="computed",pp="computed.struct",Fi=va(Zu),vp=va(pp,{equals:bo.structural}),Fo=function(t,r){if(xn(r))return Fi.decorate_20223_(t,r);if(gr(r))return En(t,r,Fi);if(Lt(t))return jt(va(Zu,t));j.NODE_ENV!=="production"&&(Ae(t)||U("First argument to `computed` should be an expression."),Ae(r)&&U("A setter as second argument is no longer supported, use `{ set: fn }` option instead"));var n=Lt(r)?r:{};return n.get=t,n.name||(n.name=t.name||""),new st(n)};Object.assign(Fo,Fi);Fo.struct=jt(vp);var es,ts,_o=0,gp=1,hp=(es=(ts=ho(function(){},"name"))==null?void 0:ts.configurable)!=null?es:!1,rs={value:"action",configurable:!0,writable:!1,enumerable:!1};function mr(e,t,r,n){r===void 0&&(r=!1),j.NODE_ENV!=="production"&&(Ae(t)||U("`action` can only be invoked on functions"),(typeof e!="string"||!e)&&U("actions should have valid names, got: '"+e+"'"));function o(){return mp(e,r,t,n||this,arguments)}return o.isMobxAction=!0,o.toString=function(){return t.toString()},hp&&(rs.value=e,St(o,"name",rs)),o}function mp(e,t,r,n,o){var i=bp(e,t,n,o);try{return r.apply(n,o)}catch(a){throw i.error_=a,a}finally{yp(i)}}function bp(e,t,r,n){var o=j.NODE_ENV!=="production"&&Me()&&!!e,i=0;if(j.NODE_ENV!=="production"&&o){i=Date.now();var a=n?Array.from(n):mo;We({type:ba,name:e,object:r,arguments:a})}var s=V.trackingDerivation,u=!t||!s;et();var c=V.allowStateChanges;u&&(Er(),c=ga(!0));var l=ma(!0),d={runAsAction_:u,prevDerivation_:s,prevAllowStateChanges_:c,prevAllowStateReads_:l,notifySpy_:o,startTime_:i,actionId_:gp++,parentActionId_:_o};return _o=d.actionId_,d}function yp(e){_o!==e.actionId_&&U(30),_o=e.parentActionId_,e.error_!==void 0&&(V.suppressReactionErrors=!0),ha(e.prevAllowStateChanges_),ln(e.prevAllowStateReads_),tt(),e.runAsAction_&&Bt(e.prevDerivation_),j.NODE_ENV!=="production"&&e.notifySpy_&&qe({time:Date.now()-e.startTime_}),V.suppressReactionErrors=!1}function ga(e){var t=V.allowStateChanges;return V.allowStateChanges=e,t}function ha(e){V.allowStateChanges=e}var _p="create",dr=function(e){function t(n,o,i,a,s){var u;return i===void 0&&(i=j.NODE_ENV!=="production"?"ObservableValue@"+ht():"ObservableValue"),a===void 0&&(a=!0),s===void 0&&(s=bo.default),u=e.call(this,i)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=o,u.name_=i,u.equals=s,u.value_=o(n,void 0,i),j.NODE_ENV!=="production"&&a&&Me()&&br({type:_p,object:u,observableKind:"value",debugObjectName:u.name_,newValue:""+u.value_}),u}Bu(t,e);var r=t.prototype;return r.dehanceValue=function(o){return this.dehancer!==void 0?this.dehancer(o):o},r.set=function(o){var i=this.value_;if(o=this.prepareNewValue_(o),o!==V.UNCHANGED){var a=Me();j.NODE_ENV!=="production"&&a&&We({type:dt,object:this,observableKind:"value",debugObjectName:this.name_,newValue:o,oldValue:i}),this.setNewValue_(o),j.NODE_ENV!=="production"&&a&&qe()}},r.prepareNewValue_=function(o){if(xt(this),Je(this)){var i=Qe(this,{object:this,type:dt,newValue:o});if(!i)return V.UNCHANGED;o=i.newValue}return o=this.enhancer(o,this.value_,this.name_),this.equals(this.value_,o)?V.UNCHANGED:o},r.setNewValue_=function(o){var i=this.value_;this.value_=o,this.reportChanged(),pt(this)&&vt(this,{type:dt,object:this,newValue:o,oldValue:i})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},r.intercept_=function(o){return Sn(this,o)},r.observe_=function(o,i){return i&&o({observableKind:"value",debugObjectName:this.name_,object:this,type:dt,newValue:this.value_,oldValue:void 0}),jn(this,o)},r.raw=function(){return this.value_},r.toJSON=function(){return this.get()},r.toString=function(){return this.name_+"["+this.value_+"]"},r.valueOf=function(){return $u(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},t}(tr),st=function(){function e(r){this.dependenciesState_=ve.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ve.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new wo(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=ot.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,r.get||U(31),this.derivation=r.get,this.name_=r.name||(j.NODE_ENV!=="production"?"ComputedValue@"+ht():"ComputedValue"),r.set&&(this.setter_=mr(j.NODE_ENV!=="production"?this.name_+"-setter":"ComputedValue-setter",r.set)),this.equals_=r.equals||(r.compareStructural||r.struct?bo.structural:bo.default),this.scope_=r.context,this.requiresReaction_=r.requiresReaction,this.keepAlive_=!!r.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){jp(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing&&U(32,this.name_,this.derivation),V.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)zi(this)&&(this.warnAboutUntrackedRead_(),et(),this.value_=this.computeValue_(!1),tt());else if(rl(this),zi(this)){var n=V.trackingContext;this.keepAlive_&&!n&&(V.trackingContext=this),this.trackAndCompute()&&Sp(this),V.trackingContext=n}var o=this.value_;if(so(o))throw o.cause;return o},t.set=function(n){if(this.setter_){this.isRunningSetter&&U(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter=!1}}else U(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,o=this.dependenciesState_===ve.NOT_TRACKING_,i=this.computeValue_(!0),a=o||so(n)||so(i)||!this.equals_(n,i);return a&&(this.value_=i,j.NODE_ENV!=="production"&&Me()&&br({observableKind:"computed",debugObjectName:this.name_,object:this.scope_,type:"update",oldValue:n,newValue:i})),a},t.computeValue_=function(n){this.isComputing=!0;var o=ga(!1),i;if(n)i=Ku(this,this.derivation,this.scope_);else if(V.disableErrorBoundaries===!0)i=this.derivation.call(this.scope_);else try{i=this.derivation.call(this.scope_)}catch(a){i=new wo(a)}return ha(o),this.isComputing=!1,i},t.suspend_=function(){this.keepAlive_||(Ui(this),this.value_=void 0,j.NODE_ENV!=="production"&&this.isTracing_!==ot.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' was suspended and it will recompute on the next access."))},t.observe_=function(n,o){var i=this,a=!0,s=void 0;return kp(function(){var u=i.get();if(!a||o){var c=Er();n({observableKind:"computed",debugObjectName:i.name_,type:dt,object:i,newValue:u,oldValue:s}),Bt(c)}a=!1,s=u})},t.warnAboutUntrackedRead_=function(){j.NODE_ENV!=="production"&&(this.isTracing_!==ot.NONE&&console.log("[mobx.trace] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."),(typeof this.requiresReaction_=="boolean"?this.requiresReaction_:V.computedRequiresReaction)&&console.warn("[mobx] Computed value '"+this.name_+"' is being read outside a reactive context. Doing a full recompute."))},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return $u(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Gr(e,[{key:"isComputing",get:function(){return ze(this.flags_,e.isComputingMask_)},set:function(n){this.flags_=Ue(this.flags_,e.isComputingMask_,n)}},{key:"isRunningSetter",get:function(){return ze(this.flags_,e.isRunningSetterMask_)},set:function(n){this.flags_=Ue(this.flags_,e.isRunningSetterMask_,n)}},{key:"isBeingObserved",get:function(){return ze(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=Ue(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return ze(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=Ue(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return ze(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=Ue(this.flags_,e.diffValueMask_,n===1)}}])}();st.isComputingMask_=1;st.isRunningSetterMask_=2;st.isBeingObservedMask_=4;st.isPendingUnobservationMask_=8;st.diffValueMask_=16;var zo=Or("ComputedValue",st),ve;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(ve||(ve={}));var ot;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(ot||(ot={}));var wo=function(t){this.cause=void 0,this.cause=t};function so(e){return e instanceof wo}function zi(e){switch(e.dependenciesState_){case ve.UP_TO_DATE_:return!1;case ve.NOT_TRACKING_:case ve.STALE_:return!0;case ve.POSSIBLY_STALE_:{for(var t=ma(!0),r=Er(),n=e.observing_,o=n.length,i=0;i<o;i++){var a=n[i];if(zo(a)){if(V.disableErrorBoundaries)a.get();else try{a.get()}catch{return Bt(r),ln(t),!0}if(e.dependenciesState_===ve.STALE_)return Bt(r),ln(t),!0}}return Ju(e),Bt(r),ln(t),!1}}}function xt(e){if(j.NODE_ENV!=="production"){var t=e.observers_.size>0;!V.allowStateChanges&&(t||V.enforceActions==="always")&&console.warn("[MobX] "+(V.enforceActions?"Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ")+e.name_)}}function wp(e){j.NODE_ENV!=="production"&&!V.allowStateReads&&V.observableRequiresReaction&&console.warn("[mobx] Observable '"+e.name_+"' being read outside a reactive context.")}function Ku(e,t,r){var n=ma(!0);Ju(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++V.runId;var o=V.trackingDerivation;V.trackingDerivation=e,V.inBatch++;var i;if(V.disableErrorBoundaries===!0)i=t.call(r);else try{i=t.call(r)}catch(a){i=new wo(a)}return V.inBatch--,V.trackingDerivation=o,Ep(e),Op(e),ln(n),i}function Op(e){j.NODE_ENV!=="production"&&e.observing_.length===0&&(typeof e.requiresObservable_=="boolean"?e.requiresObservable_:V.reactionRequiresObservable)&&console.warn("[mobx] Derivation '"+e.name_+"' is created/updated without reading any observable value.")}function Ep(e){for(var t=e.observing_,r=e.observing_=e.newObserving_,n=ve.UP_TO_DATE_,o=0,i=e.unboundDepsCount_,a=0;a<i;a++){var s=r[a];s.diffValue===0&&(s.diffValue=1,o!==a&&(r[o]=s),o++),s.dependenciesState_>n&&(n=s.dependenciesState_)}for(r.length=o,e.newObserving_=null,i=t.length;i--;){var u=t[i];u.diffValue===0&&el(u,e),u.diffValue=0}for(;o--;){var c=r[o];c.diffValue===1&&(c.diffValue=0,Cp(c,e))}n!==ve.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function Ui(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)el(t[r],e);e.dependenciesState_=ve.NOT_TRACKING_}function Xu(e){var t=Er();try{return e()}finally{Bt(t)}}function Er(){var e=V.trackingDerivation;return V.trackingDerivation=null,e}function Bt(e){V.trackingDerivation=e}function ma(e){var t=V.allowStateReads;return V.allowStateReads=e,t}function ln(e){V.allowStateReads=e}function Ju(e){if(e.dependenciesState_!==ve.UP_TO_DATE_){e.dependenciesState_=ve.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=ve.UP_TO_DATE_}}var uo=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},lo=!0,Qu=!1,V=function(){var e=Po();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(lo=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new uo().version&&(lo=!1),lo?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new uo):(setTimeout(function(){Qu||U(35)},1),new uo)}();function xp(){if((V.pendingReactions.length||V.inBatch||V.isRunningReactions)&&U(36),Qu=!0,lo){var e=Po();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),V=new uo}}function Cp(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function el(e,t){e.observers_.delete(t),e.observers_.size===0&&tl(e)}function tl(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,V.pendingUnobservations.push(e))}function et(){V.inBatch++}function tt(){if(--V.inBatch===0){al();for(var e=V.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,r.observers_.size===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBUO()),r instanceof st&&r.suspend_())}V.pendingUnobservations=[]}}function rl(e){wp(e);var t=V.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&V.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&V.inBatch>0&&tl(e),!1)}function nl(e){e.lowestObserverState_!==ve.STALE_&&(e.lowestObserverState_=ve.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ve.UP_TO_DATE_&&(j.NODE_ENV!=="production"&&t.isTracing_!==ot.NONE&&ol(t,e),t.onBecomeStale_()),t.dependenciesState_=ve.STALE_}))}function Sp(e){e.lowestObserverState_!==ve.STALE_&&(e.lowestObserverState_=ve.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ve.POSSIBLY_STALE_?(t.dependenciesState_=ve.STALE_,j.NODE_ENV!=="production"&&t.isTracing_!==ot.NONE&&ol(t,e)):t.dependenciesState_===ve.UP_TO_DATE_&&(e.lowestObserverState_=ve.UP_TO_DATE_)}))}function jp(e){e.lowestObserverState_===ve.UP_TO_DATE_&&(e.lowestObserverState_=ve.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ve.UP_TO_DATE_&&(t.dependenciesState_=ve.POSSIBLY_STALE_,t.onBecomeStale_())}))}function ol(e,t){if(console.log("[mobx.trace] '"+e.name_+"' is invalidated due to a change in: '"+t.name_+"'"),e.isTracing_===ot.BREAK){var r=[];il(fl(e),r,1),new Function(`debugger;
|
|
63
|
+
/*
|
|
64
|
+
Tracing '`+e.name_+`'
|
|
65
|
+
|
|
66
|
+
You are entering this break point because derivation '`+e.name_+"' is being traced and '"+t.name_+`' is now forcing it to update.
|
|
67
|
+
Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
|
|
68
|
+
The stackframe you are looking for is at least ~6-8 stack-frames up.
|
|
69
|
+
|
|
70
|
+
`+(e instanceof st?e.derivation.toString().replace(/[*]\//g,"/"):"")+`
|
|
71
|
+
|
|
72
|
+
The dependencies for this derivation are:
|
|
73
|
+
|
|
74
|
+
`+r.join(`
|
|
75
|
+
`)+`
|
|
76
|
+
*/
|
|
77
|
+
`)()}}function il(e,t,r){if(t.length>=1e3){t.push("(and many more)");return}t.push(""+" ".repeat(r-1)+e.name),e.dependencies&&e.dependencies.forEach(function(n){return il(n,t,r+1)})}var Ft=function(){function e(r,n,o,i){r===void 0&&(r=j.NODE_ENV!=="production"?"Reaction@"+ht():"Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ve.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=ot.NONE,this.name_=r,this.onInvalidate_=n,this.errorHandler_=o,this.requiresObservable_=i}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,V.pendingReactions.push(this),al())},t.runReaction_=function(){if(!this.isDisposed){et(),this.isScheduled=!1;var n=V.trackingContext;if(V.trackingContext=this,zi(this)){this.isTrackPending=!0;try{this.onInvalidate_(),j.NODE_ENV!=="production"&&this.isTrackPending&&Me()&&br({name:this.name_,type:"scheduled-reaction"})}catch(o){this.reportExceptionInDerivation_(o)}}V.trackingContext=n,tt()}},t.track=function(n){if(!this.isDisposed){et();var o=Me(),i;j.NODE_ENV!=="production"&&o&&(i=Date.now(),We({name:this.name_,type:"reaction"})),this.isRunning=!0;var a=V.trackingContext;V.trackingContext=this;var s=Ku(this,n,void 0);V.trackingContext=a,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Ui(this),so(s)&&this.reportExceptionInDerivation_(s.cause),j.NODE_ENV!=="production"&&o&&qe({time:Date.now()-i}),tt()}},t.reportExceptionInDerivation_=function(n){var o=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(V.disableErrorBoundaries)throw n;var i=j.NODE_ENV!=="production"?"[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'":"[mobx] uncaught error in '"+this+"'";V.suppressReactionErrors?j.NODE_ENV!=="production"&&console.warn("[mobx] (error in reaction '"+this.name_+"' suppressed, fix error of causing action below)"):console.error(i,n),j.NODE_ENV!=="production"&&Me()&&br({type:"error",name:this.name_,message:i,error:""+n}),V.globalReactionErrorHandlers.forEach(function(a){return a(n,o)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(et(),Ui(this),tt()))},t.getDisposer_=function(n){var o=this,i=function a(){o.dispose(),n==null||n.removeEventListener==null||n.removeEventListener("abort",a)};return n==null||n.addEventListener==null||n.addEventListener("abort",i),i[ue]=this,i},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){n===void 0&&(n=!1),Xp(this,n)},Gr(e,[{key:"isDisposed",get:function(){return ze(this.flags_,e.isDisposedMask_)},set:function(n){this.flags_=Ue(this.flags_,e.isDisposedMask_,n)}},{key:"isScheduled",get:function(){return ze(this.flags_,e.isScheduledMask_)},set:function(n){this.flags_=Ue(this.flags_,e.isScheduledMask_,n)}},{key:"isTrackPending",get:function(){return ze(this.flags_,e.isTrackPendingMask_)},set:function(n){this.flags_=Ue(this.flags_,e.isTrackPendingMask_,n)}},{key:"isRunning",get:function(){return ze(this.flags_,e.isRunningMask_)},set:function(n){this.flags_=Ue(this.flags_,e.isRunningMask_,n)}},{key:"diffValue",get:function(){return ze(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=Ue(this.flags_,e.diffValueMask_,n===1)}}])}();Ft.isDisposedMask_=1;Ft.isScheduledMask_=2;Ft.isTrackPendingMask_=4;Ft.isRunningMask_=8;Ft.diffValueMask_=16;var ns=100,Wi=function(t){return t()};function al(){V.inBatch>0||V.isRunningReactions||Wi(Ap)}function Ap(){V.isRunningReactions=!0;for(var e=V.pendingReactions,t=0;e.length>0;){++t===ns&&(console.error(j.NODE_ENV!=="production"?"Reaction doesn't converge to a stable state after "+ns+" iterations."+(" Probably there is a cycle in the reactive function: "+e[0]):"[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var r=e.splice(0),n=0,o=r.length;n<o;n++)r[n].runReaction_()}V.isRunningReactions=!1}var Oo=Or("Reaction",Ft);function Lp(e){var t=Wi;Wi=function(n){return e(function(){return t(n)})}}function Me(){return j.NODE_ENV!=="production"&&!!V.spyListeners.length}function br(e){if(j.NODE_ENV!=="production"&&V.spyListeners.length)for(var t=V.spyListeners,r=0,n=t.length;r<n;r++)t[r](e)}function We(e){if(j.NODE_ENV!=="production"){var t=It({},e,{spyReportStart:!0});br(t)}}var Rp={type:"report-end",spyReportEnd:!0};function qe(e){j.NODE_ENV!=="production"&&br(e?It({},e,{type:"report-end",spyReportEnd:!0}):Rp)}function Tp(e){return j.NODE_ENV==="production"?(console.warn("[mobx.spy] Is a no-op in production builds"),function(){}):(V.spyListeners.push(e),da(function(){V.spyListeners=V.spyListeners.filter(function(t){return t!==e})}))}var ba="action",Vp="action.bound",sl="autoAction",Mp="autoAction.bound",Pp="<unnamed action>",qi=Cn(ba),Np=Cn(Vp,{bound:!0}),Yi=Cn(sl,{autoAction:!0}),Hp=Cn(Mp,{autoAction:!0,bound:!0});function ul(e){var t=function(n,o){if(Ae(n))return mr(n.name||Pp,n,e);if(Ae(o))return mr(n,o,e);if(xn(o))return(e?Yi:qi).decorate_20223_(n,o);if(gr(o))return En(n,o,e?Yi:qi);if(gr(n))return jt(Cn(e?sl:ba,{name:n,autoAction:e}));j.NODE_ENV!=="production"&&U("Invalid arguments for `action`")};return t}var Mr=ul(!1);Object.assign(Mr,qi);var gn=ul(!0);Object.assign(gn,Yi);Mr.bound=jt(Np);gn.bound=jt(Hp);function Dr(e){return Ae(e)&&e.isMobxAction===!0}function kp(e,t){var r,n,o,i;t===void 0&&(t=Pu),j.NODE_ENV!=="production"&&(Ae(e)||U("Autorun expects a function as first argument"),Dr(e)&&U("Autorun does not accept actions since actions are untrackable"));var a=(r=(n=t)==null?void 0:n.name)!=null?r:j.NODE_ENV!=="production"?e.name||"Autorun@"+ht():"Autorun",s=!t.scheduler&&!t.delay,u;if(s)u=new Ft(a,function(){this.track(d)},t.onError,t.requiresObservable);else{var c=$p(t),l=!1;u=new Ft(a,function(){l||(l=!0,c(function(){l=!1,u.isDisposed||u.track(d)}))},t.onError,t.requiresObservable)}function d(){e(u)}return(o=t)!=null&&(o=o.signal)!=null&&o.aborted||u.schedule_(),u.getDisposer_((i=t)==null?void 0:i.signal)}var Dp=function(t){return t()};function $p(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Dp}var Bp="onBO",Ip="onBUO";function Fp(e,t,r){return cl(Bp,e,t,r)}function ll(e,t,r){return cl(Ip,e,t,r)}function cl(e,t,r,n){var o=Br(t),i=Ae(n)?n:r,a=e+"L";return o[a]?o[a].add(i):o[a]=new Set([i]),function(){var s=o[a];s&&(s.delete(i),s.size===0&&delete o[a])}}var zp="never",Gn="always",Up="observed";function Wp(e){e.isolateGlobalState===!0&&xp();var t=e.useProxies,r=e.enforceActions;if(t!==void 0&&(V.useProxies=t===Gn?!0:t===zp?!1:typeof Proxy<"u"),t==="ifavailable"&&(V.verifyProxies=!0),r!==void 0){var n=r===Gn?Gn:r===Up;V.enforceActions=n,V.allowStateChanges=!(n===!0||n===Gn)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(o){o in e&&(V[o]=!!e[o])}),V.allowStateReads=!V.observableRequiresReaction,j.NODE_ENV!=="production"&&V.disableErrorBoundaries===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),e.reactionScheduler&&Lp(e.reactionScheduler)}function qp(e,t,r,n){j.NODE_ENV!=="production"&&(arguments.length>4&&U("'extendObservable' expected 2-4 arguments"),typeof e!="object"&&U("'extendObservable' expects an object as first argument"),rr(e)&&U("'extendObservable' should not be used on maps, use map.merge instead"),Lt(t)||U("'extendObservable' only accepts plain objects as second argument"),(mn(t)||mn(r))&&U("Extending an object with another observable (object) is not supported"));var o=Od(t);return xr(function(){var i=Zr(e,n)[ue];Do(o).forEach(function(a){i.extend_(a,o[a],r&&a in r?r[a]:!0)})}),e}function fl(e,t){return dl(Br(e,t))}function dl(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=Yp(e.observing_).map(dl)),t}function Yp(e){return Array.from(new Set(e))}var Gp=0;function pl(){this.message="FLOW_CANCELLED"}pl.prototype=Object.create(Error.prototype);var pi=zu("flow"),Zp=zu("flow.bound",{bound:!0}),$r=Object.assign(function(t,r){if(xn(r))return pi.decorate_20223_(t,r);if(gr(r))return En(t,r,pi);j.NODE_ENV!=="production"&&arguments.length!==1&&U("Flow expects single argument with generator function");var n=t,o=n.name||"<unnamed flow>",i=function(){var s=this,u=arguments,c=++Gp,l=Mr(o+" - runid: "+c+" - init",n).apply(s,u),d,p=void 0,h=new Promise(function(b,_){var y=0;d=_;function O(C){p=void 0;var m;try{m=Mr(o+" - runid: "+c+" - yield "+y++,l.next).call(l,C)}catch(R){return _(R)}S(m)}function w(C){p=void 0;var m;try{m=Mr(o+" - runid: "+c+" - yield "+y++,l.throw).call(l,C)}catch(R){return _(R)}S(m)}function S(C){if(Ae(C==null?void 0:C.then)){C.then(S,_);return}return C.done?b(C.value):(p=Promise.resolve(C.value),p.then(O,w))}O(void 0)});return h.cancel=Mr(o+" - runid: "+c+" - cancel",function(){try{p&&os(p);var b=l.return(void 0),_=Promise.resolve(b.value);_.then(Tr,Tr),os(_),d(new pl)}catch(y){d(y)}}),h};return i.isMobXFlow=!0,i},pi);$r.bound=jt(Zp);function os(e){Ae(e.cancel)&&e.cancel()}function hn(e){return(e==null?void 0:e.isMobXFlow)===!0}function Kp(e,t){return e?An(e)||!!e[ue]||pa(e)||Oo(e)||zo(e):!1}function mn(e){return j.NODE_ENV!=="production"&&arguments.length!==1&&U("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),Kp(e)}function Xp(){if(j.NODE_ENV!=="production"){for(var e=!1,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];typeof r[r.length-1]=="boolean"&&(e=r.pop());var o=Jp(r);if(!o)return U("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===ot.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled"),o.isTracing_=e?ot.BREAK:ot.LOG}}function Jp(e){switch(e.length){case 0:return V.trackingDerivation;case 1:return Br(e[0]);case 2:return Br(e[0],e[1])}}function kt(e,t){t===void 0&&(t=void 0),et();try{return e.apply(t)}finally{tt()}}function lr(e){return e[ue]}var Qp={has:function(t,r){return j.NODE_ENV!=="production"&&V.trackingDerivation&&nn("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."),lr(t).has_(r)},get:function(t,r){return lr(t).get_(r)},set:function(t,r,n){var o;return gr(r)?(j.NODE_ENV!=="production"&&!lr(t).values_.has(r)&&nn("add a new observable property through direct assignment. Use 'set' from 'mobx' instead."),(o=lr(t).set_(r,n,!0))!=null?o:!0):!1},deleteProperty:function(t,r){var n;return j.NODE_ENV!=="production"&&nn("delete properties from an observable object. Use 'remove' from 'mobx' instead."),gr(r)?(n=lr(t).delete_(r,!0))!=null?n:!0:!1},defineProperty:function(t,r,n){var o;return j.NODE_ENV!=="production"&&nn("define property on an observable object. Use 'defineProperty' from 'mobx' instead."),(o=lr(t).defineProperty_(r,n))!=null?o:!0},ownKeys:function(t){return j.NODE_ENV!=="production"&&V.trackingDerivation&&nn("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead."),lr(t).ownKeys_()},preventExtensions:function(t){U(13)}};function e1(e,t){var r,n;return Nu(),e=Zr(e,t),(n=(r=e[ue]).proxy_)!=null?n:r.proxy_=new Proxy(e,Qp)}function Je(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Sn(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),da(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function Qe(e,t){var r=Er();try{for(var n=[].concat(e.interceptors_||[]),o=0,i=n.length;o<i&&(t=n[o](t),t&&!t.type&&U(14),!!t);o++);return t}finally{Bt(r)}}function pt(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function jn(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),da(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function vt(e,t){var r=Er(),n=e.changeListeners_;if(n){n=n.slice();for(var o=0,i=n.length;o<i;o++)n[o](t);Bt(r)}}function t1(e,t,r){return xr(function(){var n,o=Zr(e,r)[ue];j.NODE_ENV!=="production"&&t&&e[$e]&&U("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."),(n=t)!=null||(t=Ad(e)),Do(t).forEach(function(i){return o.make_(i,t[i])})}),e}var is="splice",dt="update",r1=1e4,n1={get:function(t,r){var n=t[ue];return r===ue?n:r==="length"?n.getArrayLength_():typeof r=="string"&&!isNaN(r)?n.get_(parseInt(r)):nt(Eo,r)?Eo[r]:t[r]},set:function(t,r,n){var o=t[ue];return r==="length"&&o.setArrayLength_(n),typeof r=="symbol"||isNaN(r)?t[r]=n:o.set_(parseInt(r),n),!0},preventExtensions:function(){U(15)}},ya=function(){function e(r,n,o,i){r===void 0&&(r=j.NODE_ENV!=="production"?"ObservableArray@"+ht():"ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=o,this.legacyMode_=i,this.atom_=new tr(r),this.enhancer_=function(a,s){return n(a,s,j.NODE_ENV!=="production"?r+"[..]":"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return Sn(this,n)},t.observe_=function(n,o){return o===void 0&&(o=!1),o&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),jn(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&U("Out of range: "+n);var o=this.values_.length;if(n!==o)if(n>o){for(var i=new Array(n-o),a=0;a<n-o;a++)i[a]=void 0;this.spliceWithArray_(o,0,i)}else this.spliceWithArray_(n,o-n)},t.updateArrayLength_=function(n,o){n!==this.lastKnownLength_&&U(16),this.lastKnownLength_+=o,this.legacyMode_&&o>0&&yl(n+o+1)},t.spliceWithArray_=function(n,o,i){var a=this;xt(this.atom_);var s=this.values_.length;if(n===void 0?n=0:n>s?n=s:n<0&&(n=Math.max(0,s+n)),arguments.length===1?o=s-n:o==null?o=0:o=Math.max(0,Math.min(o,s-n)),i===void 0&&(i=mo),Je(this)){var u=Qe(this,{object:this.proxy_,type:is,index:n,removedCount:o,added:i});if(!u)return mo;o=u.removedCount,i=u.added}if(i=i.length===0?i:i.map(function(d){return a.enhancer_(d,void 0)}),this.legacyMode_||j.NODE_ENV!=="production"){var c=i.length-o;this.updateArrayLength_(s,c)}var l=this.spliceItemsIntoValues_(n,o,i);return(o!==0||i.length!==0)&&this.notifyArraySplice_(n,i,l),this.dehanceValues_(l)},t.spliceItemsIntoValues_=function(n,o,i){if(i.length<r1){var a;return(a=this.values_).splice.apply(a,[n,o].concat(i))}else{var s=this.values_.slice(n,n+o),u=this.values_.slice(n+o);this.values_.length+=i.length-o;for(var c=0;c<i.length;c++)this.values_[n+c]=i[c];for(var l=0;l<u.length;l++)this.values_[n+i.length+l]=u[l];return s}},t.notifyArrayChildUpdate_=function(n,o,i){var a=!this.owned_&&Me(),s=pt(this),u=s||a?{observableKind:"array",object:this.proxy_,type:dt,debugObjectName:this.atom_.name_,index:n,newValue:o,oldValue:i}:null;j.NODE_ENV!=="production"&&a&&We(u),this.atom_.reportChanged(),s&&vt(this,u),j.NODE_ENV!=="production"&&a&&qe()},t.notifyArraySplice_=function(n,o,i){var a=!this.owned_&&Me(),s=pt(this),u=s||a?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:is,index:n,removed:i,added:o,removedCount:i.length,addedCount:o.length}:null;j.NODE_ENV!=="production"&&a&&We(u),this.atom_.reportChanged(),s&&vt(this,u),j.NODE_ENV!=="production"&&a&&qe()},t.get_=function(n){if(this.legacyMode_&&n>=this.values_.length){console.warn(j.NODE_ENV!=="production"?"[mobx.array] Attempt to read an array index ("+n+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX":"[mobx] Out of bounds read: "+n);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n])},t.set_=function(n,o){var i=this.values_;if(this.legacyMode_&&n>i.length&&U(17,n,i.length),n<i.length){xt(this.atom_);var a=i[n];if(Je(this)){var s=Qe(this,{type:dt,object:this.proxy_,index:n,newValue:o});if(!s)return;o=s.newValue}o=this.enhancer_(o,a);var u=o!==a;u&&(i[n]=o,this.notifyArrayChildUpdate_(n,o,a))}else{for(var c=new Array(n+1-i.length),l=0;l<c.length-1;l++)c[l]=void 0;c[c.length-1]=o,this.spliceWithArray_(i.length,0,c)}},e}();function o1(e,t,r,n){return r===void 0&&(r=j.NODE_ENV!=="production"?"ObservableArray@"+ht():"ObservableArray"),n===void 0&&(n=!1),Nu(),xr(function(){var o=new ya(r,t,n,!1);ku(o.values_,ue,o);var i=new Proxy(o.values_,n1);return o.proxy_=i,e&&e.length&&o.spliceWithArray_(0,0,e),i})}var Eo={clear:function(){return this.splice(0)},replace:function(t){var r=this[ue];return r.spliceWithArray_(0,r.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,r){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var a=this[ue];switch(arguments.length){case 0:return[];case 1:return a.spliceWithArray_(t);case 2:return a.spliceWithArray_(t,r)}return a.spliceWithArray_(t,r,o)},spliceWithArray:function(t,r,n){return this[ue].spliceWithArray_(t,r,n)},push:function(){for(var t=this[ue],r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[ue].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[ue],r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return V.trackingDerivation&&U(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){V.trackingDerivation&&U(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var r=this[ue],n=r.dehanceValues_(r.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};Ee("at",Ze);Ee("concat",Ze);Ee("flat",Ze);Ee("includes",Ze);Ee("indexOf",Ze);Ee("join",Ze);Ee("lastIndexOf",Ze);Ee("slice",Ze);Ee("toString",Ze);Ee("toLocaleString",Ze);Ee("toSorted",Ze);Ee("toSpliced",Ze);Ee("with",Ze);Ee("every",mt);Ee("filter",mt);Ee("find",mt);Ee("findIndex",mt);Ee("findLast",mt);Ee("findLastIndex",mt);Ee("flatMap",mt);Ee("forEach",mt);Ee("map",mt);Ee("some",mt);Ee("toReversed",mt);Ee("reduce",vl);Ee("reduceRight",vl);function Ee(e,t){typeof Array.prototype[e]=="function"&&(Eo[e]=t(e))}function Ze(e){return function(){var t=this[ue];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function mt(e){return function(t,r){var n=this,o=this[ue];o.atom_.reportObserved();var i=o.dehanceValues_(o.values_);return i[e](function(a,s){return t.call(r,a,s,n)})}}function vl(e){return function(){var t=this,r=this[ue];r.atom_.reportObserved();var n=r.dehanceValues_(r.values_),o=arguments[0];return arguments[0]=function(i,a,s){return o(i,a,s,t)},n[e].apply(n,arguments)}}var i1=Or("ObservableArrayAdministration",ya);function Uo(e){return Ho(e)&&i1(e[ue])}var a1={},Zt="add",xo="delete",gl=function(){function e(r,n,o){var i=this;n===void 0&&(n=hr),o===void 0&&(o=j.NODE_ENV!=="production"?"ObservableMap@"+ht():"ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[ue]=a1,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=n,this.name_=o,Ae(Map)||U(18),xr(function(){i.keysAtom_=Iu(j.NODE_ENV!=="production"?i.name_+".keys()":"ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,r&&i.merge(r)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var o=this;if(!V.trackingDerivation)return this.has_(n);var i=this.hasMap_.get(n);if(!i){var a=i=new dr(this.has_(n),Bo,j.NODE_ENV!=="production"?this.name_+"."+$i(n)+"?":"ObservableMap.key?",!1);this.hasMap_.set(n,a),ll(a,function(){return o.hasMap_.delete(n)})}return i.get()},t.set=function(n,o){var i=this.has_(n);if(Je(this)){var a=Qe(this,{type:i?dt:Zt,object:this,newValue:o,name:n});if(!a)return this;o=a.newValue}return i?this.updateValue_(n,o):this.addValue_(n,o),this},t.delete=function(n){var o=this;if(xt(this.keysAtom_),Je(this)){var i=Qe(this,{type:xo,object:this,name:n});if(!i)return!1}if(this.has_(n)){var a=Me(),s=pt(this),u=s||a?{observableKind:"map",debugObjectName:this.name_,type:xo,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return j.NODE_ENV!=="production"&&a&&We(u),kt(function(){var c;o.keysAtom_.reportChanged(),(c=o.hasMap_.get(n))==null||c.setNewValue_(!1);var l=o.data_.get(n);l.setNewValue_(void 0),o.data_.delete(n)}),s&&vt(this,u),j.NODE_ENV!=="production"&&a&&qe(),!0}return!1},t.updateValue_=function(n,o){var i=this.data_.get(n);if(o=i.prepareNewValue_(o),o!==V.UNCHANGED){var a=Me(),s=pt(this),u=s||a?{observableKind:"map",debugObjectName:this.name_,type:dt,object:this,oldValue:i.value_,name:n,newValue:o}:null;j.NODE_ENV!=="production"&&a&&We(u),i.setNewValue_(o),s&&vt(this,u),j.NODE_ENV!=="production"&&a&&qe()}},t.addValue_=function(n,o){var i=this;xt(this.keysAtom_),kt(function(){var c,l=new dr(o,i.enhancer_,j.NODE_ENV!=="production"?i.name_+"."+$i(n):"ObservableMap.key",!1);i.data_.set(n,l),o=l.value_,(c=i.hasMap_.get(n))==null||c.setNewValue_(!0),i.keysAtom_.reportChanged()});var a=Me(),s=pt(this),u=s||a?{observableKind:"map",debugObjectName:this.name_,type:Zt,object:this,name:n,newValue:o}:null;j.NODE_ENV!=="production"&&a&&We(u),s&&vt(this,u),j.NODE_ENV!=="production"&&a&&qe()},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,o=this.keys();return as({next:function(){var a=o.next(),s=a.done,u=a.value;return{done:s,value:s?void 0:n.get(u)}}})},t.entries=function(){var n=this,o=this.keys();return as({next:function(){var a=o.next(),s=a.done,u=a.value;return{done:s,value:s?void 0:[u,n.get(u)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(n,o){for(var i=Vr(this),a;!(a=i()).done;){var s=a.value,u=s[0],c=s[1];n.call(o,c,u,this)}},t.merge=function(n){var o=this;return rr(n)&&(n=new Map(n)),kt(function(){Lt(n)?wd(n).forEach(function(i){return o.set(i,n[i])}):Array.isArray(n)?n.forEach(function(i){var a=i[0],s=i[1];return o.set(a,s)}):Yr(n)?(_d(n)||U(19,n),n.forEach(function(i,a){return o.set(a,i)})):n!=null&&U(20,n)}),this},t.clear=function(){var n=this;kt(function(){Xu(function(){for(var o=Vr(n.keys()),i;!(i=o()).done;){var a=i.value;n.delete(a)}})})},t.replace=function(n){var o=this;return kt(function(){for(var i=s1(n),a=new Map,s=!1,u=Vr(o.data_.keys()),c;!(c=u()).done;){var l=c.value;if(!i.has(l)){var d=o.delete(l);if(d)s=!0;else{var p=o.data_.get(l);a.set(l,p)}}}for(var h=Vr(i.entries()),b;!(b=h()).done;){var _=b.value,y=_[0],O=_[1],w=o.data_.has(y);if(o.set(y,O),o.data_.has(y)){var S=o.data_.get(y);a.set(y,S),w||(s=!0)}}if(!s)if(o.data_.size!==a.size)o.keysAtom_.reportChanged();else for(var C=o.data_.keys(),m=a.keys(),R=C.next(),P=m.next();!R.done;){if(R.value!==P.value){o.keysAtom_.reportChanged();break}R=C.next(),P=m.next()}o.data_=a}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,o){return j.NODE_ENV!=="production"&&o===!0&&U("`observe` doesn't support fireImmediately=true in combination with maps."),jn(this,n)},t.intercept_=function(n){return Sn(this,n)},Gr(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),rr=Or("ObservableMap",gl);function as(e){return e[Symbol.toStringTag]="MapIterator",Oa(e)}function s1(e){if(Yr(e)||rr(e))return e;if(Array.isArray(e))return new Map(e);if(Lt(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}else return U(21,e)}var u1={},hl=function(){function e(r,n,o){var i=this;n===void 0&&(n=hr),o===void 0&&(o=j.NODE_ENV!=="production"?"ObservableSet@"+ht():"ObservableSet"),this.name_=void 0,this[ue]=u1,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=o,Ae(Set)||U(22),this.enhancer_=function(a,s){return n(a,s,o)},xr(function(){i.atom_=Iu(i.name_),r&&i.replace(r)})}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;kt(function(){Xu(function(){for(var o=Vr(n.data_.values()),i;!(i=o()).done;){var a=i.value;n.delete(a)}})})},t.forEach=function(n,o){for(var i=Vr(this),a;!(a=i()).done;){var s=a.value;n.call(o,s,s,this)}},t.add=function(n){var o=this;if(xt(this.atom_),Je(this)){var i=Qe(this,{type:Zt,object:this,newValue:n});if(!i)return this}if(!this.has(n)){kt(function(){o.data_.add(o.enhancer_(n,void 0)),o.atom_.reportChanged()});var a=j.NODE_ENV!=="production"&&Me(),s=pt(this),u=s||a?{observableKind:"set",debugObjectName:this.name_,type:Zt,object:this,newValue:n}:null;a&&j.NODE_ENV!=="production"&&We(u),s&&vt(this,u),a&&j.NODE_ENV!=="production"&&qe()}return this},t.delete=function(n){var o=this;if(Je(this)){var i=Qe(this,{type:xo,object:this,oldValue:n});if(!i)return!1}if(this.has(n)){var a=j.NODE_ENV!=="production"&&Me(),s=pt(this),u=s||a?{observableKind:"set",debugObjectName:this.name_,type:xo,object:this,oldValue:n}:null;return a&&j.NODE_ENV!=="production"&&We(u),kt(function(){o.atom_.reportChanged(),o.data_.delete(n)}),s&&vt(this,u),a&&j.NODE_ENV!=="production"&&qe(),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=0,o=Array.from(this.keys()),i=Array.from(this.values());return ss({next:function(){var s=n;return n+=1,s<i.length?{value:[o[s],i[s]],done:!1}:{value:void 0,done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,o=0,i=Array.from(this.data_.values());return ss({next:function(){return o<i.length?{value:n.dehanceValue_(i[o++]),done:!1}:{value:void 0,done:!0}}})},t.intersection=function(n){if(Ht(n)&&!Et(n))return n.intersection(this);var o=new Set(this);return o.intersection(n)},t.union=function(n){if(Ht(n)&&!Et(n))return n.union(this);var o=new Set(this);return o.union(n)},t.difference=function(n){return new Set(this).difference(n)},t.symmetricDifference=function(n){if(Ht(n)&&!Et(n))return n.symmetricDifference(this);var o=new Set(this);return o.symmetricDifference(n)},t.isSubsetOf=function(n){return new Set(this).isSubsetOf(n)},t.isSupersetOf=function(n){return new Set(this).isSupersetOf(n)},t.isDisjointFrom=function(n){if(Ht(n)&&!Et(n))return n.isDisjointFrom(this);var o=new Set(this);return o.isDisjointFrom(n)},t.replace=function(n){var o=this;return Et(n)&&(n=new Set(n)),kt(function(){Array.isArray(n)?(o.clear(),n.forEach(function(i){return o.add(i)})):Ht(n)?(o.clear(),n.forEach(function(i){return o.add(i)})):n!=null&&U("Cannot initialize set from "+n)}),this},t.observe_=function(n,o){return j.NODE_ENV!=="production"&&o===!0&&U("`observe` doesn't support fireImmediately=true in combination with sets."),jn(this,n)},t.intercept_=function(n){return Sn(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Gr(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Et=Or("ObservableSet",hl);function ss(e){return e[Symbol.toStringTag]="SetIterator",Oa(e)}var us=Object.create(null),ls="remove",Gi=function(){function e(r,n,o,i){n===void 0&&(n=new Map),i===void 0&&(i=Qd),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=r,this.values_=n,this.name_=o,this.defaultAnnotation_=i,this.keysAtom_=new tr(j.NODE_ENV!=="production"?this.name_+".keys":"ObservableObject.keys"),this.isPlainObject_=Lt(this.target_),j.NODE_ENV!=="production"&&!wl(this.defaultAnnotation_)&&U("defaultAnnotation must be valid annotation"),j.NODE_ENV!=="production"&&(this.appliedAnnotations_={})}var t=e.prototype;return t.getObservablePropValue_=function(n){return this.values_.get(n).get()},t.setObservablePropValue_=function(n,o){var i=this.values_.get(n);if(i instanceof st)return i.set(o),!0;if(Je(this)){var a=Qe(this,{type:dt,object:this.proxy_||this.target_,name:n,newValue:o});if(!a)return null;o=a.newValue}if(o=i.prepareNewValue_(o),o!==V.UNCHANGED){var s=pt(this),u=j.NODE_ENV!=="production"&&Me(),c=s||u?{type:dt,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:i.value_,name:n,newValue:o}:null;j.NODE_ENV!=="production"&&u&&We(c),i.setNewValue_(o),s&&vt(this,c),j.NODE_ENV!=="production"&&u&&qe()}return!0},t.get_=function(n){return V.trackingDerivation&&!nt(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,o,i){return i===void 0&&(i=!1),nt(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,o):i?Reflect.set(this.target_,n,o):(this.target_[n]=o,!0):this.extend_(n,{value:o,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,i)},t.has_=function(n){if(!V.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var o=this.pendingKeys_.get(n);return o||(o=new dr(n in this.target_,Bo,j.NODE_ENV!=="production"?this.name_+"."+$i(n)+"?":"ObservableObject.key?",!1),this.pendingKeys_.set(n,o)),o.get()},t.make_=function(n,o){if(o===!0&&(o=this.defaultAnnotation_),o!==!1){if(ds(this,o,n),!(n in this.target_)){var i;if((i=this.target_[$e])!=null&&i[n])return;U(1,o.annotationType_,this.name_+"."+n.toString())}for(var a=this.target_;a&&a!==No;){var s=ho(a,n);if(s){var u=o.make_(this,n,s,a);if(u===0)return;if(u===1)break}a=Object.getPrototypeOf(a)}fs(this,o,n)}},t.extend_=function(n,o,i,a){if(a===void 0&&(a=!1),i===!0&&(i=this.defaultAnnotation_),i===!1)return this.defineProperty_(n,o,a);ds(this,i,n);var s=i.extend_(this,n,o,a);return s&&fs(this,i,n),s},t.defineProperty_=function(n,o,i){i===void 0&&(i=!1),xt(this.keysAtom_);try{et();var a=this.delete_(n);if(!a)return a;if(Je(this)){var s=Qe(this,{object:this.proxy_||this.target_,name:n,type:Zt,newValue:o.value});if(!s)return null;var u=s.newValue;o.value!==u&&(o=It({},o,{value:u}))}if(i){if(!Reflect.defineProperty(this.target_,n,o))return!1}else St(this.target_,n,o);this.notifyPropertyAddition_(n,o.value)}finally{tt()}return!0},t.defineObservableProperty_=function(n,o,i,a){a===void 0&&(a=!1),xt(this.keysAtom_);try{et();var s=this.delete_(n);if(!s)return s;if(Je(this)){var u=Qe(this,{object:this.proxy_||this.target_,name:n,type:Zt,newValue:o});if(!u)return null;o=u.newValue}var c=cs(n),l={configurable:V.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:c.get,set:c.set};if(a){if(!Reflect.defineProperty(this.target_,n,l))return!1}else St(this.target_,n,l);var d=new dr(o,i,j.NODE_ENV!=="production"?this.name_+"."+n.toString():"ObservableObject.key",!1);this.values_.set(n,d),this.notifyPropertyAddition_(n,d.value_)}finally{tt()}return!0},t.defineComputedProperty_=function(n,o,i){i===void 0&&(i=!1),xt(this.keysAtom_);try{et();var a=this.delete_(n);if(!a)return a;if(Je(this)){var s=Qe(this,{object:this.proxy_||this.target_,name:n,type:Zt,newValue:void 0});if(!s)return null}o.name||(o.name=j.NODE_ENV!=="production"?this.name_+"."+n.toString():"ObservableObject.key"),o.context=this.proxy_||this.target_;var u=cs(n),c={configurable:V.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(i){if(!Reflect.defineProperty(this.target_,n,c))return!1}else St(this.target_,n,c);this.values_.set(n,new st(o)),this.notifyPropertyAddition_(n,void 0)}finally{tt()}return!0},t.delete_=function(n,o){if(o===void 0&&(o=!1),xt(this.keysAtom_),!nt(this.target_,n))return!0;if(Je(this)){var i=Qe(this,{object:this.proxy_||this.target_,name:n,type:ls});if(!i)return null}try{var a;et();var s=pt(this),u=j.NODE_ENV!=="production"&&Me(),c=this.values_.get(n),l=void 0;if(!c&&(s||u)){var d;l=(d=ho(this.target_,n))==null?void 0:d.value}if(o){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(j.NODE_ENV!=="production"&&delete this.appliedAnnotations_[n],c&&(this.values_.delete(n),c instanceof dr&&(l=c.value_),nl(c)),this.keysAtom_.reportChanged(),(a=this.pendingKeys_)==null||(a=a.get(n))==null||a.set(n in this.target_),s||u){var p={type:ls,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:l,name:n};j.NODE_ENV!=="production"&&u&&We(p),s&&vt(this,p),j.NODE_ENV!=="production"&&u&&qe()}}finally{tt()}return!0},t.observe_=function(n,o){return j.NODE_ENV!=="production"&&o===!0&&U("`observe` doesn't support the fire immediately property for observable objects."),jn(this,n)},t.intercept_=function(n){return Sn(this,n)},t.notifyPropertyAddition_=function(n,o){var i,a=pt(this),s=j.NODE_ENV!=="production"&&Me();if(a||s){var u=a||s?{type:Zt,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:o}:null;j.NODE_ENV!=="production"&&s&&We(u),a&&vt(this,u),j.NODE_ENV!=="production"&&s&&qe()}(i=this.pendingKeys_)==null||(i=i.get(n))==null||i.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Do(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Zr(e,t){var r;if(j.NODE_ENV!=="production"&&t&&An(e)&&U("Options can't be provided for already observable objects."),nt(e,ue))return j.NODE_ENV!=="production"&&!(_l(e)instanceof Gi)&&U("Cannot convert '"+Co(e)+`' into observable object:
|
|
78
|
+
The target is already observable of different type.
|
|
79
|
+
Extending builtins is not supported.`),e;j.NODE_ENV!=="production"&&!Object.isExtensible(e)&&U("Cannot make the designated object observable; it is not extensible");var n=(r=t==null?void 0:t.name)!=null?r:j.NODE_ENV!=="production"?(Lt(e)?"ObservableObject":e.constructor.name)+"@"+ht():"ObservableObject",o=new Gi(e,new Map,String(n),cp(t));return ko(e,ue,o),e}var l1=Or("ObservableObjectAdministration",Gi);function cs(e){return us[e]||(us[e]={get:function(){return this[ue].getObservablePropValue_(e)},set:function(r){return this[ue].setObservablePropValue_(e,r)}})}function An(e){return Ho(e)?l1(e[ue]):!1}function fs(e,t,r){var n;j.NODE_ENV!=="production"&&(e.appliedAnnotations_[r]=t),(n=e.target_[$e])==null||delete n[r]}function ds(e,t,r){if(j.NODE_ENV!=="production"&&!wl(t)&&U("Cannot annotate '"+e.name_+"."+r.toString()+"': Invalid annotation."),j.NODE_ENV!=="production"&&!yo(t)&&nt(e.appliedAnnotations_,r)){var n=e.name_+"."+r.toString(),o=e.appliedAnnotations_[r].annotationType_,i=t.annotationType_;U("Cannot apply '"+i+"' to '"+n+"':"+(`
|
|
80
|
+
The field is already annotated with '`+o+"'.")+`
|
|
81
|
+
Re-annotating fields is not allowed.
|
|
82
|
+
Use 'override' annotation for methods overridden by subclass.`)}}var c1=bl(0),f1=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),vi=0,ml=function(){};function d1(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}d1(ml,Array.prototype);var _a=function(e){function t(n,o,i,a){var s;return i===void 0&&(i=j.NODE_ENV!=="production"?"ObservableArray@"+ht():"ObservableArray"),a===void 0&&(a=!1),s=e.call(this)||this,xr(function(){var u=new ya(i,o,a,!0);u.proxy_=s,ku(s,ue,u),n&&n.length&&s.spliceWithArray(0,0,n),f1&&Object.defineProperty(s,"0",c1)}),s}Bu(t,e);var r=t.prototype;return r.concat=function(){this[ue].atom_.reportObserved();for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return Array.prototype.concat.apply(this.slice(),i.map(function(s){return Uo(s)?s.slice():s}))},r[Symbol.iterator]=function(){var n=this,o=0;return Oa({next:function(){return o<n.length?{value:n[o++],done:!1}:{done:!0,value:void 0}}})},Gr(t,[{key:"length",get:function(){return this[ue].getArrayLength_()},set:function(o){this[ue].setArrayLength_(o)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(ml);Object.entries(Eo).forEach(function(e){var t=e[0],r=e[1];t!=="concat"&&ko(_a.prototype,t,r)});function bl(e){return{enumerable:!1,configurable:!0,get:function(){return this[ue].get_(e)},set:function(r){this[ue].set_(e,r)}}}function p1(e){St(_a.prototype,""+e,bl(e))}function yl(e){if(e>vi){for(var t=vi;t<e+100;t++)p1(t);vi=e}}yl(1e3);function v1(e,t,r){return new _a(e,t,r)}function Br(e,t){if(typeof e=="object"&&e!==null){if(Uo(e))return t!==void 0&&U(23),e[ue].atom_;if(Et(e))return e.atom_;if(rr(e)){if(t===void 0)return e.keysAtom_;var r=e.data_.get(t)||e.hasMap_.get(t);return r||U(25,t,Co(e)),r}if(An(e)){if(!t)return U(26);var n=e[ue].values_.get(t);return n||U(27,t,Co(e)),n}if(pa(e)||zo(e)||Oo(e))return e}else if(Ae(e)&&Oo(e[ue]))return e[ue];U(28)}function _l(e,t){if(e||U(29),pa(e)||zo(e)||Oo(e)||rr(e)||Et(e))return e;if(e[ue])return e[ue];U(24,e)}function Co(e,t){var r;if(t!==void 0)r=Br(e,t);else{if(Dr(e))return e.name;An(e)||rr(e)||Et(e)?r=_l(e):r=Br(e)}return r.name_}function xr(e){var t=Er(),r=ga(!0);et();try{return e()}finally{tt(),ha(r),Bt(t)}}var ps=No.toString;function wa(e,t,r){return r===void 0&&(r=-1),Zi(e,t,r)}function Zi(e,t,r,n,o){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var i=typeof e;if(i!=="function"&&i!=="object"&&typeof t!="object")return!1;var a=ps.call(e);if(a!==ps.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":r>=0&&r++;break}e=vs(e),t=vs(t);var s=a==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,c=t.constructor;if(u!==c&&!(Ae(u)&&u instanceof u&&Ae(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(r===0)return!1;r<0&&(r=-1),n=n||[],o=o||[];for(var l=n.length;l--;)if(n[l]===e)return o[l]===t;if(n.push(e),o.push(t),s){if(l=e.length,l!==t.length)return!1;for(;l--;)if(!Zi(e[l],t[l],r-1,n,o))return!1}else{var d=Object.keys(e),p;if(l=d.length,Object.keys(t).length!==l)return!1;for(;l--;)if(p=d[l],!(nt(t,p)&&Zi(e[p],t[p],r-1,n,o)))return!1}return n.pop(),o.pop(),!0}function vs(e){return Uo(e)?e.slice():Yr(e)||rr(e)||Ht(e)||Et(e)?Array.from(e.entries()):e}var gs,g1=((gs=Po().Iterator)==null?void 0:gs.prototype)||{};function Oa(e){return e[Symbol.iterator]=h1,Object.assign(Object.create(g1),e)}function h1(){return this}function wl(e){return e instanceof Object&&typeof e.annotationType_=="string"&&Ae(e.make_)&&Ae(e.extend_)}["Symbol","Map","Set"].forEach(function(e){var t=Po();typeof t[e]>"u"&&U("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Tp,extras:{getDebugName:Co},$mobx:ue});if(!g.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!t1)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var m1={};function b1(e){e()}function y1(e){e||(e=b1,m1.NODE_ENV!=="production"&&console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")),Wp({reactionScheduler:e})}function _1(e){return fl(e)}var w1=1e4,O1=1e4,E1=function(){function e(t){var r=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(n){n===void 0&&(n=w1),clearTimeout(r.sweepTimeout),r.sweepTimeout=void 0;var o=Date.now();r.registrations.forEach(function(i,a){o-i.registeredAt>=n&&(r.finalize(i.value),r.registrations.delete(a))}),r.registrations.size>0&&r.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n){this.registrations.set(n,{value:r,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,O1))}}),e}(),x1=typeof FinalizationRegistry<"u"?FinalizationRegistry:E1,Ki=new x1(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),Xi={exports:{}},gi={};/**
|
|
83
|
+
* @license React
|
|
84
|
+
* use-sync-external-store-shim.production.min.js
|
|
85
|
+
*
|
|
86
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the MIT license found in the
|
|
89
|
+
* LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/var hs;function C1(){if(hs)return gi;hs=1;var e=g;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(d,p){var h=p(),b=n({inst:{value:h,getSnapshot:p}}),_=b[0].inst,y=b[1];return i(function(){_.value=h,_.getSnapshot=p,u(_)&&y({inst:_})},[d,h,p]),o(function(){return u(_)&&y({inst:_}),d(function(){u(_)&&y({inst:_})})},[d]),a(h),h}function u(d){var p=d.getSnapshot;d=d.value;try{var h=p();return!r(d,h)}catch{return!0}}function c(d,p){return p()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return gi.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:l,gi}var hi={},ms;function S1(){if(ms)return hi;ms=1;var e={};/**
|
|
91
|
+
* @license React
|
|
92
|
+
* use-sync-external-store-shim.development.js
|
|
93
|
+
*
|
|
94
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the MIT license found in the
|
|
97
|
+
* LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/return e.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t=g,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(C){{for(var m=arguments.length,R=new Array(m>1?m-1:0),P=1;P<m;P++)R[P-1]=arguments[P];o("error",C,R)}}function o(C,m,R){{var P=r.ReactDebugCurrentFrame,Z=P.getStackAddendum();Z!==""&&(m+="%s",R=R.concat([Z]));var D=R.map(function(H){return String(H)});D.unshift("Warning: "+m),Function.prototype.apply.call(console[C],console,D)}}function i(C,m){return C===m&&(C!==0||1/C===1/m)||C!==C&&m!==m}var a=typeof Object.is=="function"?Object.is:i,s=t.useState,u=t.useEffect,c=t.useLayoutEffect,l=t.useDebugValue,d=!1,p=!1;function h(C,m,R){d||t.startTransition!==void 0&&(d=!0,n("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var P=m();if(!p){var Z=m();a(P,Z)||(n("The result of getSnapshot should be cached to avoid an infinite loop"),p=!0)}var D=s({inst:{value:P,getSnapshot:m}}),H=D[0].inst,X=D[1];return c(function(){H.value=P,H.getSnapshot=m,b(H)&&X({inst:H})},[C,P,m]),u(function(){b(H)&&X({inst:H});var ee=function(){b(H)&&X({inst:H})};return C(ee)},[C]),l(P),P}function b(C){var m=C.getSnapshot,R=C.value;try{var P=m();return!a(R,P)}catch{return!0}}function _(C,m,R){return m()}var y=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",O=!y,w=O?_:h,S=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:w;hi.useSyncExternalStore=S,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),hi}var j1={};j1.NODE_ENV==="production"?Xi.exports=C1():Xi.exports=S1();var A1=Xi.exports;function bs(e){e.reaction=new Ft("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function L1(e,t){t===void 0&&(t="observed");var r=g.useRef(null);if(!r.current){var n={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(s){return Ki.unregister(n),n.onStoreChange=s,n.reaction||(bs(n),n.stateVersion=Symbol()),function(){var u;n.onStoreChange=null,(u=n.reaction)===null||u===void 0||u.dispose(),n.reaction=null}},getSnapshot:function(){return n.stateVersion}};r.current=n}var o=r.current;o.reaction||(bs(o),Ki.register(r,o,o)),g.useDebugValue(o.reaction,_1),A1.useSyncExternalStore(o.subscribe,o.getSnapshot,o.getSnapshot);var i,a;if(o.reaction.track(function(){try{i=e()}catch(s){a=s}}),a)throw a;return i}var ys={},mi,bi,_s=!0,Ol=typeof Symbol=="function"&&Symbol.for,R1=(bi=(mi=Object.getOwnPropertyDescriptor(function(){},"name"))===null||mi===void 0?void 0:mi.configurable)!==null&&bi!==void 0?bi:!1,ws=Ol?Symbol.for("react.forward_ref"):typeof g.forwardRef=="function"&&g.forwardRef(function(e){return null}).$$typeof,Os=Ol?Symbol.for("react.memo"):typeof g.memo=="function"&&g.memo(function(e){return null}).$$typeof;function Ln(e,t){var r;if(ys.NODE_ENV!=="production"&&_s&&t&&(_s=!1,console.warn("[mobx-react-lite] `observer(fn, { forwardRef: true })` is deprecated, use `observer(React.forwardRef(fn))`")),Os&&e.$$typeof===Os)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var n=(r=void 0)!==null&&r!==void 0?r:!1,o=e,i=e.displayName||e.name;if(ws&&e.$$typeof===ws&&(n=!0,o=e.render,typeof o!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var a=function(s,u){return L1(function(){return o(s,u)},i)};return a.displayName=e.displayName,R1&&Object.defineProperty(a,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(a.contextTypes=e.contextTypes),n&&(a=g.forwardRef(a)),a=g.memo(a),V1(e,a),ys.NODE_ENV!=="production"&&Object.defineProperty(a,"contextTypes",{set:function(){var s,u;throw new Error("[mobx-react-lite] `".concat(this.displayName||((s=this.type)===null||s===void 0?void 0:s.displayName)||((u=this.type)===null||u===void 0?void 0:u.name)||"Component",".contextTypes` must be set before applying `observer`."))}}),a}var T1={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function V1(e,t){Object.keys(e).forEach(function(r){T1[r]||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}var yi;y1(Mo.unstable_batchedUpdates);yi=Ki.finalizeAllImmediately;const El=new Set,Ye=new WeakMap,Hr=new WeakMap,yr=new WeakMap,Ji=new WeakMap,M1=new WeakMap,Ir=new WeakMap,So=new WeakMap;let er;const fr="__aa_tgt",Qi="__aa_del",P1=e=>{const t=$1(e);t&&t.forEach(r=>B1(r))},N1=e=>{e.forEach(t=>{t.target===er&&k1(),Ye.has(t.target)&&Cr(t.target)})};function H1(e){const t=Ji.get(e);t==null||t.disconnect();let r=Ye.get(e),n=0;const o=5;r||(r=Fr(e),Ye.set(e,r));const{offsetWidth:i,offsetHeight:a}=er,u=[r.top-o,i-(r.left+o+r.width),a-(r.top+o+r.height),r.left-o].map(l=>`${-1*Math.floor(l)}px`).join(" "),c=new IntersectionObserver(()=>{++n>1&&Cr(e)},{root:er,threshold:1,rootMargin:u});c.observe(e),Ji.set(e,c)}function Cr(e){clearTimeout(So.get(e));const t=Wo(e),r=typeof t=="function"?500:t.duration;So.set(e,setTimeout(()=>{const n=yr.get(e);(!n||n.finished)&&(Ye.set(e,Fr(e)),H1(e))},r))}function k1(){clearTimeout(So.get(er)),So.set(er,setTimeout(()=>{El.forEach(e=>Sl(e,t=>xl(()=>Cr(t))))},100))}function D1(e){setTimeout(()=>{M1.set(e,setInterval(()=>xl(Cr.bind(null,e)),2e3))},Math.round(2e3*Math.random()))}function xl(e){typeof requestIdleCallback=="function"?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}let ea,Pr;typeof window<"u"&&(er=document.documentElement,ea=new MutationObserver(P1),Pr=new ResizeObserver(N1),Pr.observe(er));function $1(e){return e.reduce((t,r)=>{if(t===!1)return!1;if(r.target instanceof Element){if(_i(r.target),!t.has(r.target)){t.add(r.target);for(let n=0;n<r.target.children.length;n++){const o=r.target.children.item(n);if(o){if(Qi in o)return!1;_i(r.target,o),t.add(o)}}}if(r.removedNodes.length)for(let n=0;n<r.removedNodes.length;n++){const o=r.removedNodes[n];if(Qi in o)return!1;o instanceof Element&&(t.add(o),_i(r.target,o),Hr.set(o,[r.previousSibling,r.nextSibling]))}}return t},new Set)}function _i(e,t){!t&&!(fr in e)?Object.defineProperty(e,fr,{value:e}):t&&!(fr in t)&&Object.defineProperty(t,fr,{value:e})}function B1(e){var t;const r=er.contains(e),n=Ye.has(e);r&&Hr.has(e)&&Hr.delete(e),yr.has(e)&&((t=yr.get(e))===null||t===void 0||t.cancel()),n&&r?I1(e):n&&!r?z1(e):F1(e)}function wt(e){return Number(e.replace(/[^0-9.\-]/g,""))}function Fr(e){const t=e.getBoundingClientRect();return{top:t.top+window.scrollY,left:t.left+window.scrollX,width:t.width,height:t.height}}function Cl(e,t,r){let n=t.width,o=t.height,i=r.width,a=r.height;const s=getComputedStyle(e);if(s.getPropertyValue("box-sizing")==="content-box"){const c=wt(s.paddingTop)+wt(s.paddingBottom)+wt(s.borderTopWidth)+wt(s.borderBottomWidth),l=wt(s.paddingLeft)+wt(s.paddingRight)+wt(s.borderRightWidth)+wt(s.borderLeftWidth);n-=l,i-=l,o-=c,a-=c}return[n,i,o,a].map(Math.round)}function Wo(e){return fr in e&&Ir.has(e[fr])?Ir.get(e[fr]):{duration:250,easing:"ease-in-out"}}function Sl(e,...t){t.forEach(r=>r(e,Ir.has(e)));for(let r=0;r<e.children.length;r++){const n=e.children.item(r);n&&t.forEach(o=>o(n,Ir.has(n)))}}function I1(e){const t=Ye.get(e),r=Fr(e);let n;if(!t)return;const o=Wo(e);if(typeof o!="function"){const i=t.left-r.left,a=t.top-r.top,[s,u,c,l]=Cl(e,t,r),d={transform:`translate(${i}px, ${a}px)`},p={transform:"translate(0, 0)"};s!==u&&(d.width=`${s}px`,p.width=`${u}px`),c!==l&&(d.height=`${c}px`,p.height=`${l}px`),n=e.animate([d,p],o)}else n=new Animation(o(e,"remain",t,r)),n.play();yr.set(e,n),Ye.set(e,r),n.addEventListener("finish",Cr.bind(null,e))}function F1(e){const t=Fr(e);Ye.set(e,t);const r=Wo(e);let n;typeof r!="function"?n=e.animate([{transform:"scale(.98)",opacity:0},{transform:"scale(0.98)",opacity:0,offset:.5},{transform:"scale(1)",opacity:1}],{duration:r.duration*1.5,easing:"ease-in"}):(n=new Animation(r(e,"add",t)),n.play()),yr.set(e,n),n.addEventListener("finish",Cr.bind(null,e))}function z1(e){if(!Hr.has(e)||!Ye.has(e))return;const[t,r]=Hr.get(e);Object.defineProperty(e,Qi,{value:!0}),r&&r.parentNode&&r.parentNode instanceof Element?r.parentNode.insertBefore(e,r):t&&t.parentNode&&t.parentNode.appendChild(e);const[n,o,i,a]=U1(e),s=Wo(e),u=Ye.get(e);let c;Object.assign(e.style,{position:"absolute",top:`${n}px`,left:`${o}px`,width:`${i}px`,height:`${a}px`,margin:0,pointerEvents:"none",transformOrigin:"center",zIndex:100}),typeof s!="function"?c=e.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.98)",opacity:0}],{duration:s.duration,easing:"ease-out"}):(c=new Animation(s(e,"remove",u)),c.play()),yr.set(e,c),c.addEventListener("finish",()=>{var l;e.remove(),Ye.delete(e),Hr.delete(e),yr.delete(e),(l=Ji.get(e))===null||l===void 0||l.disconnect()})}function U1(e){const t=Ye.get(e),[r,,n]=Cl(e,t,Fr(e));let o=e.parentElement;for(;o&&(getComputedStyle(o).position==="static"||o instanceof HTMLBodyElement);)o=o.parentElement;o||(o=document.body);const i=getComputedStyle(o),a=Ye.get(o)||Fr(o),s=Math.round(t.top-a.top)-wt(i.borderTopWidth),u=Math.round(t.left-a.left)-wt(i.borderLeftWidth);return[s,u,r,n]}function W1(e,t={}){ea&&Pr&&(getComputedStyle(e).position==="static"&&Object.assign(e.style,{position:"relative"}),Sl(e,Cr,D1,r=>Pr==null?void 0:Pr.observe(r)),typeof t=="function"?Ir.set(e,t):Ir.set(e,{duration:250,easing:"ease-in-out",...t}),ea.observe(e,{childList:!0}),El.add(e))}function q1(e){const t=g.useRef(null);return g.useEffect(()=>{t.current instanceof HTMLElement&&W1(t.current,e)},[t]),t}const be=ge;function ge(...e){return(Array.isArray(e[0])?e[0]:[...e]).filter(Boolean).flatMap(o=>typeof o=="string"?o.split(" ").map(i=>{if(i=i.replace(/gjs-/g,"gs-utl-"),!i.includes("gs-utl-")&&!i.startsWith("gs-")){const a=i.split(":"),s=a.pop(),u=a.join(":"),c=s==null?void 0:s.startsWith("!"),d=`gs-utl-${c?s==null?void 0:s.slice(1):s}`,p=c?`!${d}`:d;return u?`${u}:${p}`:p}return i}):o).join(" ")}const Se=g.forwardRef(function({as:t,children:r,className:n,col:o,revert:i,full:a,nowrap:s,space:u,justify:c,items:l,...d},p){const h=t||"div";return L.jsx(h,{ref:p,className:ge(["gs-utl-flex",n,o&&!i&&"gs-utl-flex-col",o&&i&&"gs-utl-flex-col-reverse",!o&&i&&"gs-utl-flex-row-reverse",a&&!o&&"gs-utl-w-full",a&&o&&"gs-utl-h-full",s?"gs-utl-flex-nowrap":"gs-utl-flex-wrap",u==="x2s"&&(o?"gs-utl-space-y-0.5":"gs-utl-space-x-0.5"),u==="xs"&&(o?"gs-utl-space-y-1":"gs-utl-space-x-1"),u==="s"&&(o?"gs-utl-space-y-2":"gs-utl-space-x-2"),u==="m"&&(o?"gs-utl-space-y-4":"gs-utl-space-x-4"),u==="l"&&(o?"gs-utl-space-y-6":"gs-utl-space-x-6"),u==="xl"&&(o?"gs-utl-space-y-8":"gs-utl-space-x-8"),l==="start"&&"gs-utl-items-start",l==="end"&&"gs-utl-items-end",l==="center"&&"gs-utl-items-center",c==="start"&&"gs-utl-justify-start",c==="end"&&"gs-utl-justify-end",c==="center"&&"gs-utl-justify-center",c==="between"&&"gs-utl-justify-between"]),...d,children:r})}),le=g.forwardRef(function({children:t,className:r,grow:n,...o},i){return L.jsx("div",{ref:i,className:ge([r,n&&"flex-1"]),...o,children:t})}),Y1=150,_e={bgTr:"gs-utl-bg-transparent",txt:"gs-theme-cl-txt gs-utl-text-gray-900 dark:gs-utl-text-gray-400",txtLowEmphasis:"gs-utl-text-neutral-500 dark:gs-utl-text-neutral-500",txtHighEmphasis:"gs-utl-text-black dark:gs-utl-text-gray-200",txtHighEmphasisH:"hover:gs-utl-text-black hover:dark:gs-utl-text-gray-200",tA:"gs-theme-cl-tA gs-utl-text-violet-400",tAo:"gs-theme-cl-tAo gs-utl-text-violet-800 dark:gs-utl-text-violet-400",hTAo:"gs-theme-cl-hTAo hover:gs-utl-text-violet-800 hover:dark:gs-utl-text-violet-400",grouphTAo:"gs-theme-cl-grouphTAo group-hover:gs-utl-text-violet-800 group-hover:dark:gs-utl-text-violet-400",bA:"gs-theme-cl-bA gs-utl-border-violet-400",bgA:"gs-theme-cl-bgA gs-utl-bg-violet-400 gs-utl-text-white dark:gs-utl-bg-violet-500",bgA2:"gs-theme-cl-bgA2 gs-utl-bg-violet-500 gs-utl-text-white",bgO:"gs-theme-cl-bg0 gs-utl-bg-violet-50 gs-utl-text-violet-900 dark:gs-utl-bg-zinc-800 dark:gs-utl-text-violet-400",bg:"gs-theme-cl-bg gs-utl-bg-white dark:gs-utl-bg-zinc-900",bgBlur:"gs-utl-bg-white/50 dark:gs-utl-bg-zinc-900/50 gs-utl-backdrop-blur-sm",bgH:"gs-theme-cl-bgH gs-utl-bg-gray-100 dark:gs-utl-bg-zinc-700",bgH75:"gs-utl-bg-gray-100/75 dark:gs-utl-bg-zinc-700/75",hBgH:"gs-theme-cl-hBgH hover:gs-utl-bg-gray-50 hover:dark:gs-utl-bg-zinc-800",bgH2:"gs-theme-cl-bgH2 gs-utl-bg-gray-25 dark:gs-utl-bg-zinc-800",hBgH2:"gs-theme-cl-hBgH2 hover:gs-utl-bg-gray-25 hover:dark:gs-utl-bg-zinc-800",hBgAct:"gs-theme-cl-hBgAct hover:gs-utl-bg-violet-800 hover:dark:gs-utl-bg-violet-400",hBgA2:"gs-theme-cl-hBgA2 hover:gs-utl-bg-violet-500 hover:dark:gs-utl-bg-violet-600",hBgDark:"hover:gs-utl-bg-black/10",sel:"gs-theme-cl-sel gs-utl-bg-pink-200 gs-utl-text-pink-900",selBr:"gs-theme-cl-selBr gs-utl-border-pink-900",cmp:"gs-theme-cl-cmp gs-utl-bg-blue-450 gs-utl-text-white",cmpSymbol:"gs-theme-cl-cmpSymbol gs-utl-bg-[#7b61ff] gs-utl-text-white",cmpBgSoft:"gs-theme-cl-cmpBgSoft gs-utl-bg-blue-100 dark:gs-utl-bg-sky-800",cmpBgSymbolSoft:"gs-theme-cl-cmpBgSymbolSoft gs-utl-bg-violet-200 dark:gs-utl-bg-violet-800",cmpBgSoftX:"gs-theme-cl-cmpBgSoftX gs-utl-bg-blue-50 dark:gs-utl-bg-gray-800",cmpBgSymbolSoftX:"gs-theme-cl-cmpBgSymbolSoftX gs-utl-bg-[#edebff] dark:gs-utl-bg-[#2d1b4b]",cmpTxtActive:"gs-theme-cl-cmpTxtActive dark:gs-utl-text-gray-300",cmpBr:"gs-theme-cl-cmpBr gs-utl-border-blue-450",cmpSymbolBr:"gs-theme-cl-cmpSymbolBr gs-utl-border-[#7b61ff]",cmpTargetBg:"gs-utl-bg-amber-500 gs-utl-text-white",cmpTargetBgOpac:"gs-utl-bg-amber-500/5",cmpTargetBr:"gs-utl-border-amber-500",tW:"gs-utl-text-amber-500",bgW:"gs-utl-bg-amber-500",bgRed:"gs-utl-bg-red-500",hBgRed:"hover:gs-utl-bg-red-600",hBgW:"hover:gs-utl-bg-amber-600",br:"gs-theme-cl-br gs-utl-border-gray-300 dark:gs-utl-border-zinc-700",brRed:"gs-utl-border-red-500",brLight:"gs-utl-border-white/25"},G1={enter:"gs-utl-transition gs-utl-duration-100 gs-utl-ease-out",enterFrom:"gs-utl-scale-95 gs-utl-opacity-0",enterTo:"gs-utl-opacity-100",leave:"gs-utl-transition gs-utl-ease-in gs-utl-duration-100",leaveFrom:"gs-utl-scale-100 gs-utl-opacity-100",leaveTo:"gs-utl-scale-95 gs-utl-opacity-0"},Z1={enter:"gs-utl-transition gs-utl-duration-100 gs-utl-ease-out",enterFrom:"gs-utl-opacity-0",enterTo:"gs-utl-opacity-100"},K1={leave:"gs-utl-transition gs-utl-ease-in gs-utl-duration-100",leaveFrom:"gs-utl-opacity-100",leaveTo:"gs-utl-opacity-0"},X1={...Z1,...K1},Ea={xy:"gs-utl-px-4 gs-utl-py-2",xyS:"gs-utl-px-2 gs-utl-py-1",xyS2:"gs-utl-px-2 gs-utl-py-0.5",x:"gs-utl-px-4",xS:"gs-utl-px-2",y:"gs-utl-py-2",s:"gs-utl-p-2"},J1={bg:_e.bg,bgH:_e.bgH},Es={bg:"gs-utl-bg-zinc-700",txt:"gs-utl-text-white",block:"gs-utl-text-xs gs-utl-mt-1 gs-utl-bg-white/10 gs-utl-rounded gs-utl-px-2 gs-utl-py-1"},it={rnd:"gs-utl-rounded",pill:"gs-utl-rounded-full",b:"gs-utl-border",bT:"gs-utl-border-transparent",bS:"gs-utl-border-2",bt:"gs-utl-border-t",bb:"gs-utl-border-b",br:"gs-utl-border-r",bl:"gs-utl-border-l",bA:"gs-theme-cl-bA gs-utl-border-violet-400 dark:gs-utl-border-violet-500"},Q1={focus:"gs-theme-ring-focus focus:gs-utl-outline-none focus-visible:gs-utl-ring-2 gs-utl-ring-violet-300 gs-utl-ring-opacity-80",deepFocus:"focus:gs-utl-outline-none [&:has(:focus-visible)]:gs-utl-ring-2 gs-utl-ring-violet-300 gs-utl-ring-opacity-80"},bn={s3x:"13px",s2x:"14px",sx:"16px",s:"18px"},xs={click:"gs-utl-cursor-pointer gs-utl-transition-opacity gs-utl-opacity-75 hover:gs-utl-opacity-100",hover:"gs-utl-transition-opacity gs-utl-opacity-50 hover:gs-utl-opacity-100",hoverGroup:"group-hover:gs-utl-opacity-100 gs-utl-opacity-0 gs-utl-transition-opacity",dot:"gs-utl-w-[6px] gs-utl-h-[6px] gs-utl-rounded-full",scrollY:"gs-utl-overflow-y-auto gs-utl-overflow-x-hidden",txtEllips:"gs-utl-text-ellipsis gs-utl-overflow-hidden gs-utl-whitespace-nowrap",coverAbs:"gs-utl-absolute gs-utl-top-0 gs-utl-left-0 gs-utl-w-full gs-utl-h-full",disabled:"gs-utl-opacity-50 gs-utl-pointer-events-none",noFocusOut:"focus:gs-utl-outline-none",spin:"gs-utl-animate-spin-fast"},ev={link:ge(_e.tAo),inputText:"gs-theme-elStyles-inputText focus:gs-utl-outline-none gs-utl-placeholder:text-neutral-400 placeholder:dark:gs-utl-text-neutral-500"},tv=({variant:e,size:t="m",className:r,active:n,border:o=!0,rounded:i=!0,disabled:a=!1,withBg:s,block:u,full:c})=>{const l=e==="pr",d=e==="out",p=e==="out-clear",h=e==="warn",b=e==="danger",_=o&&(d||p||!e);return["gs-utl-transition-colors gs-utl-cursor-pointer",u&&"block",t==="s"&&"gjs-p-1 text-sm",t==="m"&&"gjs-p-1 gjs-px-2",t==="m2"&&"gjs-p-1 gjs-px-3",t==="lg"&&"gjs-p-2 gjs-px-4 text-lg",r,i&&it.rnd,_&&`${it.b} ${_e.br}`,s&&_e.bg,_&&ge(it.b,d&&_e.bA,d&&_e.tAo,!a&&_e.hBgH),h&&ge(_e.bgW,_e.hBgW,!a&&_e.hBgW,"text-white"),b&&ge(_e.bgRed,!a&&_e.hBgRed,"text-white"),l&&ge(_e.bgA2,!a&&_e.hBgAct),n&&_e.bgA,a&&"disabled:gs-utl-opacity-80 cursor-not-allowed",c&&"w-full",Q1.focus]};function xa({children:e,...t}){const{variant:r,size:n,active:o,border:i,rounded:a,block:s,full:u,className:c,icon:l,loading:d,withBg:p,...h}=t,b=d?{icon:Nf,size:"18px",className:ge("animate-spin-fast")}:Au(l)?{icon:l,size:"18px"}:l;return L.jsx("button",{className:ge(tv(t)),disabled:t.disabled,...h,children:b?L.jsxs(Se,{className:ge("gap-2"),items:"center",nowrap:!0,children:[L.jsx(le,{children:L.jsx(wr,{...b})}),e&&L.jsx(le,{children:e})]}):e})}var rv=Object.defineProperty,nv=(e,t,r)=>t in e?rv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wi=(e,t,r)=>(nv(e,typeof t!="symbol"?t+"":t,r),r);let ov=class{constructor(){wi(this,"current",this.detect()),wi(this,"handoffState","pending"),wi(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},co=new ov,yn=(e,t)=>{co.isServer?g.useEffect(e,t):g.useLayoutEffect(e,t)};function kr(e){let t=g.useRef(e);return yn(()=>{t.current=e},[e]),t}let $t=function(e){let t=kr(e);return g.useCallback((...r)=>t.current(...r),[t])};function iv(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Rn(){let e=[],t={addEventListener(r,n,o,i){return r.addEventListener(n,o,i),t.add(()=>r.removeEventListener(n,o,i))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return iv(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let i=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:i})})},group(r){let n=Rn();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let o of e.splice(n,1))o()}},dispose(){for(let r of e.splice(0))r()}};return t}function jl(){let[e]=g.useState(Rn);return g.useEffect(()=>()=>e.dispose(),[e]),e}function av(){let e=typeof document>"u";return"useSyncExternalStore"in Xe?(t=>t.useSyncExternalStore)(Xe)(()=>()=>{},()=>!1,()=>!e):!1}function Al(){let e=av(),[t,r]=Xe.useState(co.isHandoffComplete);return t&&co.isHandoffComplete===!1&&r(!1),Xe.useEffect(()=>{t!==!0&&r(!0)},[t]),Xe.useEffect(()=>co.handoff(),[]),e?!1:t}function Ct(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ct),n}let sv=Symbol();function Ll(...e){let t=g.useRef(e);g.useEffect(()=>{t.current=e},[e]);let r=$t(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[sv]))?void 0:r}function jo(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Rl=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Rl||{}),Kt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Kt||{});function Tl({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:i=!0,name:a,mergeRefs:s}){s=s??uv;let u=Vl(t,e);if(i)return Zn(u,r,n,a,s);let c=o??0;if(c&2){let{static:l=!1,...d}=u;if(l)return Zn(d,r,n,a,s)}if(c&1){let{unmount:l=!0,...d}=u;return Ct(l?0:1,{0(){return null},1(){return Zn({...d,hidden:!0,style:{display:"none"}},r,n,a,s)}})}return Zn(u,r,n,a,s)}function Zn(e,t={},r,n,o){let{as:i=r,children:a,refName:s="ref",...u}=Oi(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},l=typeof a=="function"?a(t):a;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let d={};if(t){let p=!1,h=[];for(let[b,_]of Object.entries(t))typeof _=="boolean"&&(p=!0),_===!0&&h.push(b);p&&(d["data-headlessui-state"]=h.join(" "))}if(i===g.Fragment&&Object.keys(Cs(u)).length>0){if(!g.isValidElement(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(_=>` - ${_}`).join(`
|
|
99
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(_=>` - ${_}`).join(`
|
|
100
|
+
`)].join(`
|
|
101
|
+
`));let p=l.props,h=typeof(p==null?void 0:p.className)=="function"?(..._)=>jo(p==null?void 0:p.className(..._),u.className):jo(p==null?void 0:p.className,u.className),b=h?{className:h}:{};return g.cloneElement(l,Object.assign({},Vl(l.props,Cs(Oi(u,["ref"]))),d,c,{ref:o(l.ref,c.ref)},b))}return g.createElement(i,Object.assign({},Oi(u,["ref"]),i!==g.Fragment&&c,i!==g.Fragment&&d),l)}function uv(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function Vl(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](o,...i){let a=r[n];for(let s of a){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;s(o,...i)}}});return t}function Ca(e){var t;return Object.assign(g.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Cs(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Oi(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let Sa=g.createContext(null);Sa.displayName="OpenClosedContext";var Nt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Nt||{});function Ml(){return g.useContext(Sa)}function lv({value:e,children:t}){return g.createElement(Sa.Provider,{value:e},t)}function ja(){let e=g.useRef(!1);return yn(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function cv(e=0){let[t,r]=g.useState(e),n=ja(),o=g.useCallback(u=>{n.current&&r(c=>c|u)},[t,n]),i=g.useCallback(u=>!!(t&u),[t]),a=g.useCallback(u=>{n.current&&r(c=>c&~u)},[r,n]),s=g.useCallback(u=>{n.current&&r(c=>c^u)},[r]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}function fv(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Ei(e,...t){e&&t.length>0&&e.classList.add(...t)}function xi(e,...t){e&&t.length>0&&e.classList.remove(...t)}function dv(e,t){let r=Rn();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[i,a]=[n,o].map(u=>{let[c=0]=u.split(",").filter(Boolean).map(l=>l.includes("ms")?parseFloat(l):parseFloat(l)*1e3).sort((l,d)=>d-l);return c}),s=i+a;if(s!==0){r.group(c=>{c.setTimeout(()=>{t(),c.dispose()},s),c.addEventListener(e,"transitionrun",l=>{l.target===l.currentTarget&&c.dispose()})});let u=r.addEventListener(e,"transitionend",c=>{c.target===c.currentTarget&&(t(),u())})}else t();return r.add(()=>t()),r.dispose}function pv(e,t,r,n){let o=r?"enter":"leave",i=Rn(),a=n!==void 0?fv(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let s=Ct(o,{enter:()=>t.enter,leave:()=>t.leave}),u=Ct(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Ct(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return xi(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Ei(e,...t.base,...s,...c),i.nextFrame(()=>{xi(e,...t.base,...s,...c),Ei(e,...t.base,...s,...u),dv(e,()=>(xi(e,...t.base,...s),Ei(e,...t.base,...t.entered),a()))}),i.dispose}function vv({immediate:e,container:t,direction:r,classes:n,onStart:o,onStop:i}){let a=ja(),s=jl(),u=kr(r);yn(()=>{e&&(u.current="enter")},[e]),yn(()=>{let c=Rn();s.add(c.dispose);let l=t.current;if(l&&u.current!=="idle"&&a.current)return c.dispose(),o.current(u.current),c.add(pv(l,n.current,u.current==="enter",()=>{c.dispose(),i.current(u.current)})),c.dispose},[r])}function Gt(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let qo=g.createContext(null);qo.displayName="TransitionContext";var gv=(e=>(e.Visible="visible",e.Hidden="hidden",e))(gv||{});function hv(){let e=g.useContext(qo);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function mv(){let e=g.useContext(Yo);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Yo=g.createContext(null);Yo.displayName="NestingContext";function Go(e){return"children"in e?Go(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Pl(e,t){let r=kr(e),n=g.useRef([]),o=ja(),i=jl(),a=$t((h,b=Kt.Hidden)=>{let _=n.current.findIndex(({el:y})=>y===h);_!==-1&&(Ct(b,{[Kt.Unmount](){n.current.splice(_,1)},[Kt.Hidden](){n.current[_].state="hidden"}}),i.microTask(()=>{var y;!Go(n)&&o.current&&((y=r.current)==null||y.call(r))}))}),s=$t(h=>{let b=n.current.find(({el:_})=>_===h);return b?b.state!=="visible"&&(b.state="visible"):n.current.push({el:h,state:"visible"}),()=>a(h,Kt.Unmount)}),u=g.useRef([]),c=g.useRef(Promise.resolve()),l=g.useRef({enter:[],leave:[],idle:[]}),d=$t((h,b,_)=>{u.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([y])=>y!==h)),t==null||t.chains.current[b].push([h,new Promise(y=>{u.current.push(y)})]),t==null||t.chains.current[b].push([h,new Promise(y=>{Promise.all(l.current[b].map(([O,w])=>w)).then(()=>y())})]),b==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>_(b)):_(b)}),p=$t((h,b,_)=>{Promise.all(l.current[b].splice(0).map(([y,O])=>O)).then(()=>{var y;(y=u.current.shift())==null||y()}).then(()=>_(b))});return g.useMemo(()=>({children:n,register:s,unregister:a,onStart:d,onStop:p,wait:c,chains:l}),[s,a,n,d,p,l,c])}function bv(){}let yv=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ss(e){var t;let r={};for(let n of yv)r[n]=(t=e[n])!=null?t:bv;return r}function _v(e){let t=g.useRef(Ss(e));return g.useEffect(()=>{t.current=Ss(e)},[e]),t}let wv="div",Nl=Rl.RenderStrategy;function Ov(e,t){var r,n;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:u,enterFrom:c,enterTo:l,entered:d,leave:p,leaveFrom:h,leaveTo:b,..._}=e,y=g.useRef(null),O=Ll(y,t),w=(r=_.unmount)==null||r?Kt.Unmount:Kt.Hidden,{show:S,appear:C,initial:m}=hv(),[R,P]=g.useState(S?"visible":"hidden"),Z=mv(),{register:D,unregister:H}=Z;g.useEffect(()=>D(y),[D,y]),g.useEffect(()=>{if(w===Kt.Hidden&&y.current){if(S&&R!=="visible"){P("visible");return}return Ct(R,{hidden:()=>H(y),visible:()=>D(y)})}},[R,y,D,H,S,w]);let X=kr({base:Gt(_.className),enter:Gt(u),enterFrom:Gt(c),enterTo:Gt(l),entered:Gt(d),leave:Gt(p),leaveFrom:Gt(h),leaveTo:Gt(b)}),ee=_v({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),Q=Al();g.useEffect(()=>{if(Q&&R==="visible"&&y.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,R,Q]);let ae=m&&!C,N=C&&S&&m,q=!Q||ae?"idle":S?"enter":"leave",ne=cv(0),oe=$t($=>Ct($,{enter:()=>{ne.addFlag(Nt.Opening),ee.current.beforeEnter()},leave:()=>{ne.addFlag(Nt.Closing),ee.current.beforeLeave()},idle:()=>{}})),fe=$t($=>Ct($,{enter:()=>{ne.removeFlag(Nt.Opening),ee.current.afterEnter()},leave:()=>{ne.removeFlag(Nt.Closing),ee.current.afterLeave()},idle:()=>{}})),de=Pl(()=>{P("hidden"),H(y)},Z),E=g.useRef(!1);vv({immediate:N,container:y,classes:X,direction:q,onStart:kr($=>{E.current=!0,de.onStart(y,$,oe)}),onStop:kr($=>{E.current=!1,de.onStop(y,$,fe),$==="leave"&&!Go(de)&&(P("hidden"),H(y))})});let A=_,F={ref:O};return N?A={...A,className:jo(_.className,...X.current.enter,...X.current.enterFrom)}:E.current&&(A.className=jo(_.className,(n=y.current)==null?void 0:n.className),A.className===""&&delete A.className),g.createElement(Yo.Provider,{value:de},g.createElement(lv,{value:Ct(R,{visible:Nt.Open,hidden:Nt.Closed})|ne.flags},Tl({ourProps:F,theirProps:A,defaultTag:wv,features:Nl,visible:R==="visible",name:"Transition.Child"})))}function Ev(e,t){let{show:r,appear:n=!1,unmount:o=!0,...i}=e,a=g.useRef(null),s=Ll(a,t);Al();let u=Ml();if(r===void 0&&u!==null&&(r=(u&Nt.Open)===Nt.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,l]=g.useState(r?"visible":"hidden"),d=Pl(()=>{l("hidden")}),[p,h]=g.useState(!0),b=g.useRef([r]);yn(()=>{p!==!1&&b.current[b.current.length-1]!==r&&(b.current.push(r),h(!1))},[b,r]);let _=g.useMemo(()=>({show:r,appear:n,initial:p}),[r,n,p]);g.useEffect(()=>{if(r)l("visible");else if(!Go(d))l("hidden");else{let S=a.current;if(!S)return;let C=S.getBoundingClientRect();C.x===0&&C.y===0&&C.width===0&&C.height===0&&l("hidden")}},[r,d]);let y={unmount:o},O=$t(()=>{var S;p&&h(!1),(S=e.beforeEnter)==null||S.call(e)}),w=$t(()=>{var S;p&&h(!1),(S=e.beforeLeave)==null||S.call(e)});return g.createElement(Yo.Provider,{value:d},g.createElement(qo.Provider,{value:_},Tl({ourProps:{...y,as:g.Fragment,children:g.createElement(Hl,{ref:s,...y,...i,beforeEnter:O,beforeLeave:w})},theirProps:{},defaultTag:g.Fragment,features:Nl,visible:c==="visible",name:"Transition"})))}function xv(e,t){let r=g.useContext(qo)!==null,n=Ml()!==null;return g.createElement(g.Fragment,null,!r&&n?g.createElement(ta,{ref:t,...e}):g.createElement(Hl,{ref:t,...e}))}let ta=Ca(Ev),Hl=Ca(Ov),Cv=Ca(xv),kl=Object.assign(ta,{Child:Cv,Root:ta});var js=function(t){return t.reduce(function(r,n){var o=n[0],i=n[1];return r[o]=i,r},{})},As=typeof window<"u"&&window.document&&window.document.createElement?Xe.useLayoutEffect:Xe.useEffect,Be="top",ut="bottom",lt="right",Ie="left",Aa="auto",Tn=[Be,ut,lt,Ie],zr="start",_n="end",Sv="clippingParents",Dl="viewport",on="popper",jv="reference",Ls=Tn.reduce(function(e,t){return e.concat([t+"-"+zr,t+"-"+_n])},[]),$l=[].concat(Tn,[Aa]).reduce(function(e,t){return e.concat([t,t+"-"+zr,t+"-"+_n])},[]),Av="beforeRead",Lv="read",Rv="afterRead",Tv="beforeMain",Vv="main",Mv="afterMain",Pv="beforeWrite",Nv="write",Hv="afterWrite",kv=[Av,Lv,Rv,Tv,Vv,Mv,Pv,Nv,Hv];function Rt(e){return e?(e.nodeName||"").toLowerCase():null}function Ge(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _r(e){var t=Ge(e).Element;return e instanceof t||e instanceof Element}function at(e){var t=Ge(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function La(e){if(typeof ShadowRoot>"u")return!1;var t=Ge(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Dv(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!at(i)||!Rt(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function $v(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(u,c){return u[c]="",u},{});!at(o)||!Rt(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}const Bv={name:"applyStyles",enabled:!0,phase:"write",fn:Dv,effect:$v,requires:["computeStyles"]};function At(e){return e.split("-")[0]}var pr=Math.max,Ao=Math.min,Ur=Math.round;function ra(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Bl(){return!/^((?!chrome|android).)*safari/i.test(ra())}function Wr(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&at(e)&&(o=e.offsetWidth>0&&Ur(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ur(n.height)/e.offsetHeight||1);var a=_r(e)?Ge(e):window,s=a.visualViewport,u=!Bl()&&r,c=(n.left+(u&&s?s.offsetLeft:0))/o,l=(n.top+(u&&s?s.offsetTop:0))/i,d=n.width/o,p=n.height/i;return{width:d,height:p,top:l,right:c+d,bottom:l+p,left:c,x:c,y:l}}function Ra(e){var t=Wr(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Il(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&La(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function zt(e){return Ge(e).getComputedStyle(e)}function Iv(e){return["table","td","th"].indexOf(Rt(e))>=0}function nr(e){return((_r(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zo(e){return Rt(e)==="html"?e:e.assignedSlot||e.parentNode||(La(e)?e.host:null)||nr(e)}function Rs(e){return!at(e)||zt(e).position==="fixed"?null:e.offsetParent}function Fv(e){var t=/firefox/i.test(ra()),r=/Trident/i.test(ra());if(r&&at(e)){var n=zt(e);if(n.position==="fixed")return null}var o=Zo(e);for(La(o)&&(o=o.host);at(o)&&["html","body"].indexOf(Rt(o))<0;){var i=zt(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Vn(e){for(var t=Ge(e),r=Rs(e);r&&Iv(r)&&zt(r).position==="static";)r=Rs(r);return r&&(Rt(r)==="html"||Rt(r)==="body"&&zt(r).position==="static")?t:r||Fv(e)||t}function Ta(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cn(e,t,r){return pr(e,Ao(t,r))}function zv(e,t,r){var n=cn(e,t,r);return n>r?r:n}function Fl(){return{top:0,right:0,bottom:0,left:0}}function zl(e){return Object.assign({},Fl(),e)}function Ul(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Uv=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,zl(typeof t!="number"?t:Ul(t,Tn))};function Wv(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=At(r.placement),u=Ta(s),c=[Ie,lt].indexOf(s)>=0,l=c?"height":"width";if(!(!i||!a)){var d=Uv(o.padding,r),p=Ra(i),h=u==="y"?Be:Ie,b=u==="y"?ut:lt,_=r.rects.reference[l]+r.rects.reference[u]-a[u]-r.rects.popper[l],y=a[u]-r.rects.reference[u],O=Vn(i),w=O?u==="y"?O.clientHeight||0:O.clientWidth||0:0,S=_/2-y/2,C=d[h],m=w-p[l]-d[b],R=w/2-p[l]/2+S,P=cn(C,R,m),Z=u;r.modifiersData[n]=(t={},t[Z]=P,t.centerOffset=P-R,t)}}function qv(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Il(t.elements.popper,o)&&(t.elements.arrow=o))}const Yv={name:"arrow",enabled:!0,phase:"main",fn:Wv,effect:qv,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qr(e){return e.split("-")[1]}var Gv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zv(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Ur(r*o)/o||0,y:Ur(n*o)/o||0}}function Ts(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,d=e.isFixed,p=a.x,h=p===void 0?0:p,b=a.y,_=b===void 0?0:b,y=typeof l=="function"?l({x:h,y:_}):{x:h,y:_};h=y.x,_=y.y;var O=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Ie,C=Be,m=window;if(c){var R=Vn(r),P="clientHeight",Z="clientWidth";if(R===Ge(r)&&(R=nr(r),zt(R).position!=="static"&&s==="absolute"&&(P="scrollHeight",Z="scrollWidth")),R=R,o===Be||(o===Ie||o===lt)&&i===_n){C=ut;var D=d&&R===m&&m.visualViewport?m.visualViewport.height:R[P];_-=D-n.height,_*=u?1:-1}if(o===Ie||(o===Be||o===ut)&&i===_n){S=lt;var H=d&&R===m&&m.visualViewport?m.visualViewport.width:R[Z];h-=H-n.width,h*=u?1:-1}}var X=Object.assign({position:s},c&&Gv),ee=l===!0?Zv({x:h,y:_},Ge(r)):{x:h,y:_};if(h=ee.x,_=ee.y,u){var Q;return Object.assign({},X,(Q={},Q[C]=w?"0":"",Q[S]=O?"0":"",Q.transform=(m.devicePixelRatio||1)<=1?"translate("+h+"px, "+_+"px)":"translate3d("+h+"px, "+_+"px, 0)",Q))}return Object.assign({},X,(t={},t[C]=w?_+"px":"",t[S]=O?h+"px":"",t.transform="",t))}function Kv(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,u=s===void 0?!0:s,c={placement:At(t.placement),variation:qr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ts(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ts(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Xv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Kv,data:{}};var Kn={passive:!0};function Jv(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,s=a===void 0?!0:a,u=Ge(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(l){l.addEventListener("scroll",r.update,Kn)}),s&&u.addEventListener("resize",r.update,Kn),function(){i&&c.forEach(function(l){l.removeEventListener("scroll",r.update,Kn)}),s&&u.removeEventListener("resize",r.update,Kn)}}const Qv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Jv,data:{}};var eg={left:"right",right:"left",bottom:"top",top:"bottom"};function fo(e){return e.replace(/left|right|bottom|top/g,function(t){return eg[t]})}var tg={start:"end",end:"start"};function Vs(e){return e.replace(/start|end/g,function(t){return tg[t]})}function Va(e){var t=Ge(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Ma(e){return Wr(nr(e)).left+Va(e).scrollLeft}function rg(e,t){var r=Ge(e),n=nr(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;var c=Bl();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s+Ma(e),y:u}}function ng(e){var t,r=nr(e),n=Va(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=pr(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=pr(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Ma(e),u=-n.scrollTop;return zt(o||r).direction==="rtl"&&(s+=pr(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}function Pa(e){var t=zt(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Wl(e){return["html","body","#document"].indexOf(Rt(e))>=0?e.ownerDocument.body:at(e)&&Pa(e)?e:Wl(Zo(e))}function fn(e,t){var r;t===void 0&&(t=[]);var n=Wl(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Ge(n),a=o?[i].concat(i.visualViewport||[],Pa(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(fn(Zo(a)))}function na(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function og(e,t){var r=Wr(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Ms(e,t,r){return t===Dl?na(rg(e,r)):_r(t)?og(t,r):na(ng(nr(e)))}function ig(e){var t=fn(Zo(e)),r=["absolute","fixed"].indexOf(zt(e).position)>=0,n=r&&at(e)?Vn(e):e;return _r(n)?t.filter(function(o){return _r(o)&&Il(o,n)&&Rt(o)!=="body"}):[]}function ag(e,t,r,n){var o=t==="clippingParents"?ig(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(u,c){var l=Ms(e,c,n);return u.top=pr(l.top,u.top),u.right=Ao(l.right,u.right),u.bottom=Ao(l.bottom,u.bottom),u.left=pr(l.left,u.left),u},Ms(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ql(e){var t=e.reference,r=e.element,n=e.placement,o=n?At(n):null,i=n?qr(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case Be:u={x:a,y:t.y-r.height};break;case ut:u={x:a,y:t.y+t.height};break;case lt:u={x:t.x+t.width,y:s};break;case Ie:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?Ta(o):null;if(c!=null){var l=c==="y"?"height":"width";switch(i){case zr:u[c]=u[c]-(t[l]/2-r[l]/2);break;case _n:u[c]=u[c]+(t[l]/2-r[l]/2);break}}return u}function wn(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,u=s===void 0?Sv:s,c=r.rootBoundary,l=c===void 0?Dl:c,d=r.elementContext,p=d===void 0?on:d,h=r.altBoundary,b=h===void 0?!1:h,_=r.padding,y=_===void 0?0:_,O=zl(typeof y!="number"?y:Ul(y,Tn)),w=p===on?jv:on,S=e.rects.popper,C=e.elements[b?w:p],m=ag(_r(C)?C:C.contextElement||nr(e.elements.popper),u,l,a),R=Wr(e.elements.reference),P=ql({reference:R,element:S,strategy:"absolute",placement:o}),Z=na(Object.assign({},S,P)),D=p===on?Z:R,H={top:m.top-D.top+O.top,bottom:D.bottom-m.bottom+O.bottom,left:m.left-D.left+O.left,right:D.right-m.right+O.right},X=e.modifiersData.offset;if(p===on&&X){var ee=X[o];Object.keys(H).forEach(function(Q){var ae=[lt,ut].indexOf(Q)>=0?1:-1,N=[Be,ut].indexOf(Q)>=0?"y":"x";H[Q]+=ee[N]*ae})}return H}function sg(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?$l:u,l=qr(n),d=l?s?Ls:Ls.filter(function(b){return qr(b)===l}):Tn,p=d.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=d);var h=p.reduce(function(b,_){return b[_]=wn(e,{placement:_,boundary:o,rootBoundary:i,padding:a})[At(_)],b},{});return Object.keys(h).sort(function(b,_){return h[b]-h[_]})}function ug(e){if(At(e)===Aa)return[];var t=fo(e);return[Vs(e),t,Vs(t)]}function lg(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!0:a,u=r.fallbackPlacements,c=r.padding,l=r.boundary,d=r.rootBoundary,p=r.altBoundary,h=r.flipVariations,b=h===void 0?!0:h,_=r.allowedAutoPlacements,y=t.options.placement,O=At(y),w=O===y,S=u||(w||!b?[fo(y)]:ug(y)),C=[y].concat(S).reduce(function($,B){return $.concat(At(B)===Aa?sg(t,{placement:B,boundary:l,rootBoundary:d,padding:c,flipVariations:b,allowedAutoPlacements:_}):B)},[]),m=t.rects.reference,R=t.rects.popper,P=new Map,Z=!0,D=C[0],H=0;H<C.length;H++){var X=C[H],ee=At(X),Q=qr(X)===zr,ae=[Be,ut].indexOf(ee)>=0,N=ae?"width":"height",q=wn(t,{placement:X,boundary:l,rootBoundary:d,altBoundary:p,padding:c}),ne=ae?Q?lt:Ie:Q?ut:Be;m[N]>R[N]&&(ne=fo(ne));var oe=fo(ne),fe=[];if(i&&fe.push(q[ee]<=0),s&&fe.push(q[ne]<=0,q[oe]<=0),fe.every(function($){return $})){D=X,Z=!1;break}P.set(X,fe)}if(Z)for(var de=b?3:1,E=function(B){var te=C.find(function(z){var Y=P.get(z);if(Y)return Y.slice(0,B).every(function(J){return J})});if(te)return D=te,"break"},A=de;A>0;A--){var F=E(A);if(F==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const cg={name:"flip",enabled:!0,phase:"main",fn:lg,requiresIfExists:["offset"],data:{_skip:!1}};function Ps(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ns(e){return[Be,lt,ut,Ie].some(function(t){return e[t]>=0})}function fg(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=wn(t,{elementContext:"reference"}),s=wn(t,{altBoundary:!0}),u=Ps(a,n),c=Ps(s,o,i),l=Ns(u),d=Ns(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}const dg={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fg};function pg(e,t,r){var n=At(e),o=[Ie,Be].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Ie,lt].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function vg(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=$l.reduce(function(l,d){return l[d]=pg(d,t.rects,i),l},{}),s=a[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}const gg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vg};function hg(e){var t=e.state,r=e.name;t.modifiersData[r]=ql({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const mg={name:"popperOffsets",enabled:!0,phase:"read",fn:hg,data:{}};function bg(e){return e==="x"?"y":"x"}function yg(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!1:a,u=r.boundary,c=r.rootBoundary,l=r.altBoundary,d=r.padding,p=r.tether,h=p===void 0?!0:p,b=r.tetherOffset,_=b===void 0?0:b,y=wn(t,{boundary:u,rootBoundary:c,padding:d,altBoundary:l}),O=At(t.placement),w=qr(t.placement),S=!w,C=Ta(O),m=bg(C),R=t.modifiersData.popperOffsets,P=t.rects.reference,Z=t.rects.popper,D=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,H=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),X=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ee={x:0,y:0};if(R){if(i){var Q,ae=C==="y"?Be:Ie,N=C==="y"?ut:lt,q=C==="y"?"height":"width",ne=R[C],oe=ne+y[ae],fe=ne-y[N],de=h?-Z[q]/2:0,E=w===zr?P[q]:Z[q],A=w===zr?-Z[q]:-P[q],F=t.elements.arrow,$=h&&F?Ra(F):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Fl(),te=B[ae],z=B[N],Y=cn(0,P[q],$[q]),J=S?P[q]/2-de-Y-te-H.mainAxis:E-Y-te-H.mainAxis,se=S?-P[q]/2+de+Y+z+H.mainAxis:A+Y+z+H.mainAxis,re=t.elements.arrow&&Vn(t.elements.arrow),ye=re?C==="y"?re.clientTop||0:re.clientLeft||0:0,k=(Q=X==null?void 0:X[C])!=null?Q:0,xe=ne+J-k-ye,Pe=ne+se-k,Re=cn(h?Ao(oe,xe):oe,ne,h?pr(fe,Pe):fe);R[C]=Re,ee[C]=Re-ne}if(s){var ke,bt=C==="x"?Be:Ie,Ke=C==="x"?ut:lt,we=R[m],Ce=m==="y"?"height":"width",Wt=we+y[bt],qt=we-y[Ke],ir=[Be,Ie].indexOf(O)!==-1,ar=(ke=X==null?void 0:X[m])!=null?ke:0,Yt=ir?Wt:we-P[Ce]-Z[Ce]-ar+H.altAxis,ct=ir?we+P[Ce]+Z[Ce]-ar-H.altAxis:qt,yt=h&&ir?zv(Yt,we,ct):cn(h?Yt:Wt,we,h?ct:qt);R[m]=yt,ee[m]=yt-we}t.modifiersData[n]=ee}}const _g={name:"preventOverflow",enabled:!0,phase:"main",fn:yg,requiresIfExists:["offset"]};function wg(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Og(e){return e===Ge(e)||!at(e)?Va(e):wg(e)}function Eg(e){var t=e.getBoundingClientRect(),r=Ur(t.width)/e.offsetWidth||1,n=Ur(t.height)/e.offsetHeight||1;return r!==1||n!==1}function xg(e,t,r){r===void 0&&(r=!1);var n=at(t),o=at(t)&&Eg(t),i=nr(t),a=Wr(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Rt(t)!=="body"||Pa(i))&&(s=Og(t)),at(t)?(u=Wr(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=Ma(i))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function Cg(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&o(u)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function Sg(e){var t=Cg(e);return kv.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function jg(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Ag(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Hs={placement:"bottom",modifiers:[],strategy:"absolute"};function ks(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Lg(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?Hs:o;return function(s,u,c){c===void 0&&(c=i);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hs,i),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},d=[],p=!1,h={state:l,setOptions:function(O){var w=typeof O=="function"?O(l.options):O;_(),l.options=Object.assign({},i,l.options,w),l.scrollParents={reference:_r(s)?fn(s):s.contextElement?fn(s.contextElement):[],popper:fn(u)};var S=Sg(Ag([].concat(n,l.options.modifiers)));return l.orderedModifiers=S.filter(function(C){return C.enabled}),b(),h.update()},forceUpdate:function(){if(!p){var O=l.elements,w=O.reference,S=O.popper;if(ks(w,S)){l.rects={reference:xg(w,Vn(S),l.options.strategy==="fixed"),popper:Ra(S)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(H){return l.modifiersData[H.name]=Object.assign({},H.data)});for(var C=0;C<l.orderedModifiers.length;C++){if(l.reset===!0){l.reset=!1,C=-1;continue}var m=l.orderedModifiers[C],R=m.fn,P=m.options,Z=P===void 0?{}:P,D=m.name;typeof R=="function"&&(l=R({state:l,options:Z,name:D,instance:h})||l)}}}},update:jg(function(){return new Promise(function(y){h.forceUpdate(),y(l)})}),destroy:function(){_(),p=!0}};if(!ks(s,u))return h;h.setOptions(c).then(function(y){!p&&c.onFirstUpdate&&c.onFirstUpdate(y)});function b(){l.orderedModifiers.forEach(function(y){var O=y.name,w=y.options,S=w===void 0?{}:w,C=y.effect;if(typeof C=="function"){var m=C({state:l,name:O,instance:h,options:S}),R=function(){};d.push(m||R)}})}function _(){d.forEach(function(y){return y()}),d=[]}return h}}var Rg=[Qv,mg,Xv,Bv,gg,cg,_g,Yv,dg],Tg=Lg({defaultModifiers:Rg}),Vg=typeof Element<"u",Mg=typeof Map=="function",Pg=typeof Set=="function",Ng=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function po(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!po(e[n],t[n]))return!1;return!0}var i;if(Mg&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!po(n.value[1],t.get(n.value[0])))return!1;return!0}if(Pg&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Ng&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(Vg&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!po(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}var Hg=function(t,r){try{return po(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}};const kg=ca(Hg);var Dg=[],Yl=function(t,r,n){n===void 0&&(n={});var o=Xe.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||Dg},a=Xe.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],u=a[1],c=Xe.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var b=h.state,_=Object.keys(b.elements);Oc.flushSync(function(){u({styles:js(_.map(function(y){return[y,b.styles[y]||{}]})),attributes:js(_.map(function(y){return[y,b.attributes[y]]}))})})},requires:["computeStyles"]}},[]),l=Xe.useMemo(function(){var p={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[c,{name:"applyStyles",enabled:!1}])};return kg(o.current,p)?o.current||p:(o.current=p,p)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,c]),d=Xe.useRef();return As(function(){d.current&&d.current.setOptions(l)},[l]),As(function(){if(!(t==null||r==null)){var p=n.createPopper||Tg,h=p(t,r,l);return d.current=h,function(){h.destroy(),d.current=null}}},[t,r,n.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}};const Gl=e=>typeof e<"u";var oa=(e=>(e.web="web",e.email="email",e))(oa||{});const Na=g.forwardRef(function({children:t,title:r,onClose:n,icon:o,shadow:i=!0,padding:a=!0,border:s=!0,round:u=!0,className:c,classNameBody:l,size:d="m",titleClass:p=ge("gs-utl-mb-2 gs-utl-mt-0.5"),style:h,bg:b,..._},y){return L.jsxs("div",{..._,ref:y,style:h,className:ge([c,b||J1.bg,it.b,u&&it.rnd,s?_e.br:it.bT,"gs-utl-card gs-utl-overflow-auto",i&&"gs-utl-shadow-md",a&&d==="l"&&"gs-utl-p-5",a&&d==="m"&&"gs-utl-px-4 gs-utl-py-2",a&&d==="s"&&"gs-utl-px-2 gs-utl-py-1",a&&d==="xs"&&"gs-utl-px-2 gs-utl-py-0.5",a&&d==="x2s"&&"gs-utl-px-0.5"]),children:[(r||n)&&r!==!1&&L.jsxs(Se,{className:ge("gs-utl-card-title",p),items:"center",children:[L.jsx(le,{className:ge("truncate"),grow:!0,children:r}),(n||o)&&L.jsx(le,{onClick:n,className:ge("cursor-pointer transition-opacity opacity-50 hover:gs-utl-opacity-100"),children:L.jsx(wr,{icon:o||Dt.close,size:"18px"})})]}),L.jsx("div",{className:ge("gs-utl-card-body",l),children:t})]})}),$g=()=>Pn().contextMenu;var Bg={},Ci=Mo;Bg.NODE_ENV==="production"?(Ci.createRoot,Ci.hydrateRoot):Ci.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Ig({action:e,icon:t,label:r,className:n,items:o,...i}){const a=g.useRef(null),[s,u]=g.useState(),c=a.current,l=ge([n,"gs-utl-last:border-b-0 gs-utl-gap-2 gs-utl-select-none",_e.br,Ea.xy,it.bb,i.disabled&&xs.disabled,...e?[_e.hBgH,"gs-utl-cursor-pointer"]:["gs-utl-cursor-default"]]),d=h=>go(e)&&e({event:h});g.useEffect(()=>{if(!c)return;const h=setTimeout(()=>u(c.getBoundingClientRect()),i.active?0:Y1);return()=>clearTimeout(h)},[c,i.active]);const p=()=>{var h;return(h=i.onActive)==null?void 0:h.call(i)};return L.jsxs(Se,{ref:a,items:"center",nowrap:!0,className:l,onClick:d,onPointerEnter:p,children:[t&&L.jsx(le,{children:L.jsx(wr,{icon:t,size:bn.s})}),L.jsx(le,{className:ge(i.classNameLabel,xs.txtEllips),grow:!0,children:r}),!!(o!=null&&o.length)&&L.jsxs(L.Fragment,{children:[L.jsx(le,{children:L.jsx(wr,{icon:Dt.chevronRight,size:bn.s,className:ge("-gs-utl-mr-2")})}),s&&i.active&&L.jsx(Ug,{items:o,x:s.left,y:s.top,w:s.width,h:s.height,open:!0})]})]})}function Lo({className:e,as:t="label",bold:r,m:n="gjs-mb-1",size:o="m",capitalize:i=!0,children:a,tip:s,...u}){const c=t;return L.jsxs(c,{className:ge(e,n,s?"gs-utl-flex gs-utl-gap-2 gs-utl-items-center":"block",i&&"capitalize",r&&"font-semibold",o==="s"&&"text-sm"),...u,children:[!!s&&L.jsx(Kl,{classNameWrp:"gs-utl-normal-case",classNameContent:"gs-utl-max-w-60",title:s,children:L.jsx(wr,{icon:Dt.information,size:bn.s2x})}),a]})}ge("cursor-default select-none focus:gs-utl-outline-none","z-20 max-h-full");const Fg={strategy:"fixed",placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"flip",options:{fallbackPlacements:["top"]}}]},Ds=Su()&&document.body,Zl=(e={})=>({...Fg,placement:"right-start",modifiers:[{name:"offset",options:{offset:e.offset||[0,5]}},{name:"flip",options:{boundary:e.boundary??Ds}},{name:"preventOverflow",options:{boundary:e.boundary??Ds}}]}),zg=Zl(),Xn="gs-ctx-menu-list",Ug=Ln(function({open:t,items:r,x:n,y:o,w:i,h:a}){const s=$g(),[u,c]=g.useState(),[l,d]=g.useState(null),p=g.useMemo(()=>({getBoundingClientRect:()=>new DOMRect(n,o,i,a)}),[n,o,i,a,t]),{styles:h,attributes:b}=Yl(p,l,zg),_=Rr(`${Xn}-wrp gs-utl-z-20`),y=Rr(`${Xn} gs-utl-z-20`),O=Rr(`${Xn}-body gs-utl-max-w-56`),w=Rr(`${Xn}-item`),S="gs-utl-max-w-40",C=m=>{const{action:R,onClick:P}=m;if(R||P)return Z=>{const D={editor:s.store.appEditorStore.editor,...Z};go(R)?(R(D),s.hide()):go(P)&&(P(D),s.hide())}};return L.jsx("div",{className:_,ref:d,style:h.popper,...b.popper,children:L.jsx(kl,{show:!!t,...X1,unmount:!1,children:L.jsx(Na,{padding:!1,className:y,classNameBody:O,children:r.map((m,R)=>g.createElement(Ig,{...m,key:m.id??R,className:w,classNameLabel:S,action:C(m),onActive:()=>c(m),active:u===m}))})})})}),Si="gs-cmp-tooltip";function Kl({className:e,classNameWrp:t,classNameContent:r,children:n,title:o,onClick:i,inline:a,size:s}){const[u,c]=g.useState(!1),[l,d]=g.useState(!1),p=Gl(s),[h,b]=g.useState(null),[_,y]=g.useState(null),O=Yl(h,_,{...Zl(),placement:"bottom"}),w=ge(`${Si}-target`,!a&&"block",e,!i&&"cursor-auto"),S=ge(`${Si}-content`,r,"fixed z-30 text-sm",!p&&!r&&"whitespace-nowrap",s==="s"&&"w-60");return g.useEffect(()=>{var C;u&&((C=O.update)==null||C.call(O))},[u,O.update]),g.useEffect(()=>{const C=setTimeout(()=>c(l),10);return()=>clearTimeout(C)},[l]),L.jsxs("div",{className:ge(Si,"relative",t),children:[L.jsx("span",{ref:b,className:w,onMouseEnter:()=>o&&d(!0),onMouseLeave:()=>d(!1),children:L.jsx("div",{className:ge(a&&"inline-block"),onClick:()=>{d(!1),i==null||i()},children:n})}),!!l&&L.jsx("div",{className:S,ref:y,style:O.styles.popper,...O.attributes.popper,children:L.jsx(kl,{show:!!u,unmount:!1,...G1,children:L.jsx(Na,{className:ge(Es.txt),bg:Es.bg,size:"s",border:!1,children:o})})})]})}function Wg({children:e,title:t,classNameWrp:r,...n}){return L.jsx(Kl,{title:t,classNameWrp:r,children:L.jsx(xa,{...n,children:e})})}const qg={info:_e.bgA,error:"bg-red-500",success:"bg-green-500",warning:"bg-orange-400"},Yg=g.forwardRef(function(t,r){const n={info:Dt.informationVariant,error:Dt.fire,success:Dt.checkBold,warning:Dt.alertRhombus},{children:o,className:i,content:a,id:s,buttons:u=[],variant:c="info",autoHideTimeout:l=3e3}=t,d=g.useRef(null),p=g.useRef(),h=n[c],b=qg[c];g.useImperativeHandle(r,()=>d.current,[]);const _=()=>{var S;return(S=t.onDismiss)==null?void 0:S.call(t,s)},y=()=>{l&&(p.current=setTimeout(_,l))},O=()=>p.current&&clearTimeout(p.current);g.useEffect(()=>(y(),O),[]);const w=a||o;return L.jsx(Na,{className:be(i,"overflow-hidden relative"),ref:d,onPointerEnter:O,onPointerLeave:y,children:L.jsxs(Se,{space:"m",items:"center",className:be(Ea.y),children:[L.jsx(le,{className:be(b,it.pill,"text-white gjs-p-1"),children:L.jsx(wr,{icon:h,size:bn.s})}),L.jsx(le,{grow:!0,className:be("gjs-pr-3"),children:L.jsxs(Se,{col:!0,space:"xs",children:[L.jsx(le,{className:be("text-lg font-medium leading-6"),children:t.header}),w&&L.jsx(le,{className:be(_e.txtLowEmphasis),children:w}),!!u.length&&L.jsx(Se,{space:"m",justify:"end",children:u.map(({id:S,...C})=>L.jsx(xa,{...C},S))})]})}),L.jsx(le,{className:be("absolute top-1 right-1"),children:L.jsx(Wg,{onClick:_,border:!1,children:L.jsx(wr,{icon:Dt.close,size:bn.s})})})]})})});Ln(g.forwardRef(function({className:t,toasts:r,onDismiss:n,...o},i){const a=q1({});return L.jsx("div",{className:be(t,"w-80 gs-utl-z-30"),...o,ref:a,children:r.map(s=>L.jsx(Yg,{...s,className:be("gjs-mb-2"),onDismiss:n},s.uuid||s.id))})}));const $s=new Map,Gg=g.forwardRef(function({svg:t,iconSize:r,...n},o){let i=$s.get(t);return i||(i=Cc(t,r),$s.set(t,i)),L.jsx("div",{...n,ref:o,dangerouslySetInnerHTML:{__html:i}})}),Zg=e=>e.replace(/[^a-z0-9.]/gi,"_").toLowerCase(),Bs=(e,t,r="html")=>{const{Pages:n}=e,o=Ro({page:t,key:"slug"});return`${n.getMain()===t?"index":Tc(o||t.getName())}.${r}`},Kg="custom-html-body",Is="data-custom-html-body",je={title:({cmp:e})=>e.tagName==="title",favicon:({cmp:e})=>{var t;return e.tagName==="link"&&((t=e.attributes.attributes)==null?void 0:t.rel)==="icon"},description:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.name)==="description"},keywords:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.name)==="keywords"},socialTitle:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.property)==="og:title"},socialImage:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.property)==="og:image"},socialDescription:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.property)==="og:description"},charset:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.charset)},viewport:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.name)==="viewport"},robots:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.name)==="robots"},generator:({cmp:e})=>{var t;return e.tagName==="meta"&&((t=e.attributes.attributes)==null?void 0:t.name)==="generator"}},Xg=e=>{for(const t in je){const r=t;if(je[r]({cmp:e}))return r}},Jg=(e,t,r)=>{const n=[];let o=r;return e.getMainComponent().findType(Kg).forEach(i=>{n.push(i),o=(o||"")+i.getInnerHTML()}),{components:n,html:o,changed:o!==t}},Qg=e=>{const t={...e.get("settings")??{}},r=e.getMainComponent(),{head:n}=r;if(n){const o=[];n.components().forEach(i=>{const{content:a,href:s}=i.getAttributes({noClass:!0,noStyle:!0});je.title({cmp:i})?t.title=i.getInnerHTML():je.favicon({cmp:i})?t.favicon=s:je.description({cmp:i})?t.description=a:je.keywords({cmp:i})?t.keywords=a:je.socialTitle({cmp:i})?t.socialTitle=a:je.socialDescription({cmp:i})?t.socialDescription=a:je.socialImage({cmp:i})?t.socialImage=a:Xg(i)||o.push(i.toHTML())}),o.length&&(t.customCodeHead=o.join(`
|
|
102
|
+
`))}return t.customCodeBody=Jg(e,t.customCodeBody).html,t},Xl=e=>e.getModel().get("customData")??{},eh=e=>(e==null?void 0:e.projectDataCustom.globalPageSettings)??{},Ro=e=>{const{page:t,key:r,appEditorStore:n,def:o="",defPage:i=""}=e;return(t?Qg(t)[r]??i:eh(n)[r])??o},cr=(e,t)=>{const r=e.em.getEditor(),o=Xl(r).globalPageSettings||{};return Ro({page:e,key:t})||o[t]},th=()=>Pn().i18nStore,Fs="gs-custom-layout",rh=g.forwardRef(function({className:t,component:r,noWrapper:n,id:o,render:i,...a},s){const{editor:u}=ka(),c=g.useRef(null),l=r,d=l&&u?L.jsx(l,{editor:u}):null,p=Rr(Fs,o&&`${Fs}__${o}`,t),h=c.current,b=n&&!i;return g.useImperativeHandle(s,()=>c.current,[]),g.useEffect(()=>{if(!i||!h)return;const _=w=>h.appendChild(w),y=w=>h.removeChild(w),O=i({editor:u,addEl:_,removeEl:y});if(Au(O))h.innerHTML=O;else{if(O instanceof HTMLElement)return _(O),()=>{y(O)};if(go(O))return()=>{O()}}},[i,u,h]),b?d:L.jsx("div",{className:p,ref:c,...a,children:d})});Ln(rh);var Jl=(e=>(e.gjs="gjs",e.gjsStudio="gjs-studio",e))(Jl||{});const nh=()=>Pn().localSettingsStore,oh=()=>Pn().modalStore;function ih(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Us(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zs(Object(r),!0).forEach(function(n){ih(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ah(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function sh(e,t){if(e==null)return{};var r=ah(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uh(e,t){return lh(e)||ch(e,t)||fh(e,t)||dh()}function lh(e){if(Array.isArray(e))return e}function ch(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){o=!0,i=u}finally{try{!n&&a.return!=null&&a.return()}finally{if(o)throw i}}return r}}function fh(e,t){if(e){if(typeof e=="string")return Ws(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ws(e,t)}}function Ws(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
103
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ph(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ys(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qs(Object(r),!0).forEach(function(n){ph(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function un(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return t.apply(r,[].concat(o,s))}}}function To(e){return{}.toString.call(e).includes("Object")}function gh(e){return!Object.keys(e).length}function On(e){return typeof e=="function"}function hh(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function mh(e,t){return To(t)||Qt("changeType"),Object.keys(t).some(function(r){return!hh(e,r)})&&Qt("changeField"),t}function bh(e){On(e)||Qt("selectorType")}function yh(e){On(e)||To(e)||Qt("handlerType"),To(e)&&Object.values(e).some(function(t){return!On(t)})&&Qt("handlersType")}function _h(e){e||Qt("initialIsRequired"),To(e)||Qt("initialType"),gh(e)&&Qt("initialContent")}function wh(e,t){throw new Error(e[t]||e.default)}var Oh={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Qt=un(wh)(Oh),Jn={changes:mh,selector:bh,handler:yh,initial:_h};function Eh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Jn.initial(e),Jn.handler(t);var r={current:e},n=un(Sh)(r,t),o=un(Ch)(r),i=un(Jn.changes)(e),a=un(xh)(r);function s(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(l){return l};return Jn.selector(c),c(r.current)}function u(c){vh(n,o,i,a)(c)}return[s,u]}function xh(e,t){return On(t)?t(e.current):t}function Ch(e,t){return e.current=Ys(Ys({},e.current),t),t}function Sh(e,t,r){return On(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var jh={create:Eh},Ah={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Lh(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return t.apply(r,[].concat(o,s))}}}function Rh(e){return{}.toString.call(e).includes("Object")}function Th(e){return e||Gs("configIsRequired"),Rh(e)||Gs("configType"),e.urls?(Vh(),{paths:{vs:e.urls.monacoBase}}):e}function Vh(){console.warn(Ql.deprecation)}function Mh(e,t){throw new Error(e[t]||e.default)}var Ql={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
104
|
+
You are using deprecated way of configuration.
|
|
105
|
+
|
|
106
|
+
Instead of using
|
|
107
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
108
|
+
use
|
|
109
|
+
monaco.config({ paths: { vs: '...' } })
|
|
110
|
+
|
|
111
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
112
|
+
`},Gs=Lh(Mh)(Ql),Ph={config:Th},Nh=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,a){return a(i)},o)}};function ec(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],ec(e[r],t[r]))}),Us(Us({},e),t)}var Hh={type:"cancelation",msg:"operation is manually canceled"};function ji(e){var t=!1,r=new Promise(function(n,o){e.then(function(i){return t?o(Hh):n(i)}),e.catch(o)});return r.cancel=function(){return t=!0},r}var kh=jh.create({config:Ah,isInitialized:!1,resolve:null,reject:null,monaco:null}),tc=uh(kh,2),Mn=tc[0],Ko=tc[1];function Dh(e){var t=Ph.config(e),r=t.monaco,n=sh(t,["monaco"]);Ko(function(o){return{config:ec(o.config,n),monaco:r}})}function $h(){var e=Mn(function(t){var r=t.monaco,n=t.isInitialized,o=t.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!e.isInitialized){if(Ko({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),ji(Ai);if(window.monaco&&window.monaco.editor)return rc(window.monaco),e.resolve(window.monaco),ji(Ai);Nh(Bh,Fh)(zh)}return ji(Ai)}function Bh(e){return document.body.appendChild(e)}function Ih(e){var t=document.createElement("script");return e&&(t.src=e),t}function Fh(e){var t=Mn(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=Ih("".concat(t.config.paths.vs,"/loader.js"));return r.onload=function(){return e()},r.onerror=t.reject,r}function zh(){var e=Mn(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(r){rc(r),e.resolve(r)},function(r){e.reject(r)})}function rc(e){Mn().monaco||Ko({monaco:e})}function Uh(){return Mn(function(e){var t=e.monaco;return t})}var Ai=new Promise(function(e,t){return Ko({resolve:e,reject:t})}),nc={config:Dh,init:$h,__getMonacoInstance:Uh},Wh={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Li=Wh,qh={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Yh=qh;function Gh({children:e}){return g.createElement("div",{style:Yh.container},e)}var Zh=Gh,Kh=Zh;function Xh({width:e,height:t,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:a}){return g.createElement("section",{style:{...Li.wrapper,width:e,height:t},...a},!r&&g.createElement(Kh,null,n),g.createElement("div",{ref:o,style:{...Li.fullWidth,...!r&&Li.hide},className:i}))}var Jh=Xh,oc=g.memo(Jh);function Qh(e){g.useEffect(e,[])}var ic=Qh;function em(e,t,r=!0){let n=g.useRef(!0);g.useEffect(n.current||!r?()=>{n.current=!1}:e,t)}var Fe=em;function dn(){}function Nr(e,t,r,n){return tm(e,n)||rm(e,t,r,n)}function tm(e,t){return e.editor.getModel(ac(e,t))}function rm(e,t,r,n){return e.editor.createModel(t,r,n?ac(e,n):void 0)}function ac(e,t){return e.Uri.parse(t)}function nm({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:a,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:u=!1,theme:c="light",loading:l="Loading...",options:d={},height:p="100%",width:h="100%",className:b,wrapperProps:_={},beforeMount:y=dn,onMount:O=dn}){let[w,S]=g.useState(!1),[C,m]=g.useState(!0),R=g.useRef(null),P=g.useRef(null),Z=g.useRef(null),D=g.useRef(O),H=g.useRef(y),X=g.useRef(!1);ic(()=>{let N=nc.init();return N.then(q=>(P.current=q)&&m(!1)).catch(q=>(q==null?void 0:q.type)!=="cancelation"&&console.error("Monaco initialization: error:",q)),()=>R.current?ae():N.cancel()}),Fe(()=>{if(R.current&&P.current){let N=R.current.getOriginalEditor(),q=Nr(P.current,e||"",n||r||"text",i||"");q!==N.getModel()&&N.setModel(q)}},[i],w),Fe(()=>{if(R.current&&P.current){let N=R.current.getModifiedEditor(),q=Nr(P.current,t||"",o||r||"text",a||"");q!==N.getModel()&&N.setModel(q)}},[a],w),Fe(()=>{let N=R.current.getModifiedEditor();N.getOption(P.current.editor.EditorOption.readOnly)?N.setValue(t||""):t!==N.getValue()&&(N.executeEdits("",[{range:N.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),N.pushUndoStop())},[t],w),Fe(()=>{var N,q;(q=(N=R.current)==null?void 0:N.getModel())==null||q.original.setValue(e||"")},[e],w),Fe(()=>{let{original:N,modified:q}=R.current.getModel();P.current.editor.setModelLanguage(N,n||r||"text"),P.current.editor.setModelLanguage(q,o||r||"text")},[r,n,o],w),Fe(()=>{var N;(N=P.current)==null||N.editor.setTheme(c)},[c],w),Fe(()=>{var N;(N=R.current)==null||N.updateOptions(d)},[d],w);let ee=g.useCallback(()=>{var ne;if(!P.current)return;H.current(P.current);let N=Nr(P.current,e||"",n||r||"text",i||""),q=Nr(P.current,t||"",o||r||"text",a||"");(ne=R.current)==null||ne.setModel({original:N,modified:q})},[r,t,o,e,n,i,a]),Q=g.useCallback(()=>{var N;!X.current&&Z.current&&(R.current=P.current.editor.createDiffEditor(Z.current,{automaticLayout:!0,...d}),ee(),(N=P.current)==null||N.editor.setTheme(c),S(!0),X.current=!0)},[d,c,ee]);g.useEffect(()=>{w&&D.current(R.current,P.current)},[w]),g.useEffect(()=>{!C&&!w&&Q()},[C,w,Q]);function ae(){var q,ne,oe,fe;let N=(q=R.current)==null?void 0:q.getModel();s||((ne=N==null?void 0:N.original)==null||ne.dispose()),u||((oe=N==null?void 0:N.modified)==null||oe.dispose()),(fe=R.current)==null||fe.dispose()}return g.createElement(oc,{width:h,height:p,isEditorReady:w,loading:l,_ref:Z,className:b,wrapperProps:_})}var om=nm;g.memo(om);function im(e){let t=g.useRef();return g.useEffect(()=>{t.current=e},[e]),t.current}var am=im,Qn=new Map;function sm({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:a="light",line:s,loading:u="Loading...",options:c={},overrideServices:l={},saveViewState:d=!0,keepCurrentModel:p=!1,width:h="100%",height:b="100%",className:_,wrapperProps:y={},beforeMount:O=dn,onMount:w=dn,onChange:S,onValidate:C=dn}){let[m,R]=g.useState(!1),[P,Z]=g.useState(!0),D=g.useRef(null),H=g.useRef(null),X=g.useRef(null),ee=g.useRef(w),Q=g.useRef(O),ae=g.useRef(),N=g.useRef(n),q=am(i),ne=g.useRef(!1),oe=g.useRef(!1);ic(()=>{let E=nc.init();return E.then(A=>(D.current=A)&&Z(!1)).catch(A=>(A==null?void 0:A.type)!=="cancelation"&&console.error("Monaco initialization: error:",A)),()=>H.current?de():E.cancel()}),Fe(()=>{var A,F,$,B;let E=Nr(D.current,e||n||"",t||o||"",i||r||"");E!==((A=H.current)==null?void 0:A.getModel())&&(d&&Qn.set(q,(F=H.current)==null?void 0:F.saveViewState()),($=H.current)==null||$.setModel(E),d&&((B=H.current)==null||B.restoreViewState(Qn.get(i))))},[i],m),Fe(()=>{var E;(E=H.current)==null||E.updateOptions(c)},[c],m),Fe(()=>{!H.current||n===void 0||(H.current.getOption(D.current.editor.EditorOption.readOnly)?H.current.setValue(n):n!==H.current.getValue()&&(oe.current=!0,H.current.executeEdits("",[{range:H.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),H.current.pushUndoStop(),oe.current=!1))},[n],m),Fe(()=>{var A,F;let E=(A=H.current)==null?void 0:A.getModel();E&&o&&((F=D.current)==null||F.editor.setModelLanguage(E,o))},[o],m),Fe(()=>{var E;s!==void 0&&((E=H.current)==null||E.revealLine(s))},[s],m),Fe(()=>{var E;(E=D.current)==null||E.editor.setTheme(a)},[a],m);let fe=g.useCallback(()=>{var E;if(!(!X.current||!D.current)&&!ne.current){Q.current(D.current);let A=i||r,F=Nr(D.current,n||e||"",t||o||"",A||"");H.current=(E=D.current)==null?void 0:E.editor.create(X.current,{model:F,automaticLayout:!0,...c},l),d&&H.current.restoreViewState(Qn.get(A)),D.current.editor.setTheme(a),s!==void 0&&H.current.revealLine(s),R(!0),ne.current=!0}},[e,t,r,n,o,i,c,l,d,a,s]);g.useEffect(()=>{m&&ee.current(H.current,D.current)},[m]),g.useEffect(()=>{!P&&!m&&fe()},[P,m,fe]),N.current=n,g.useEffect(()=>{var E,A;m&&S&&((E=ae.current)==null||E.dispose(),ae.current=(A=H.current)==null?void 0:A.onDidChangeModelContent(F=>{oe.current||S(H.current.getValue(),F)}))},[m,S]),g.useEffect(()=>{if(m){let E=D.current.editor.onDidChangeMarkers(A=>{var $;let F=($=H.current.getModel())==null?void 0:$.uri;if(F&&A.find(B=>B.path===F.path)){let B=D.current.editor.getModelMarkers({resource:F});C==null||C(B)}});return()=>{E==null||E.dispose()}}return()=>{}},[m,C]);function de(){var E,A;(E=ae.current)==null||E.dispose(),p?d&&Qn.set(i,H.current.saveViewState()):(A=H.current.getModel())==null||A.dispose(),H.current.dispose()}return g.createElement(oc,{width:h,height:b,isEditorReady:m,loading:u,_ref:X,className:_,wrapperProps:y})}var um=sm,lm=g.memo(um),cm=lm;const fm=e=>{var t;(t=e.getAction("editor.action.formatDocument"))==null||t.run()},dm="gs-field-code",pm={minimap:{enabled:!1},lineNumbers:"off",scrollBeyondLastLine:!1,contextmenu:!1,fixedOverflowWidgets:!0,showFoldingControls:"always",suggestOnTriggerCharacters:!1,lineDecorationsWidth:0,renderLineHighlight:"none",wordWrapOverride1:"off",tabSize:2,scrollbar:{verticalScrollbarSize:8,horizontal:"hidden",alwaysConsumeMouseWheel:!1}};function vm({size:e,value:t,label:r,language:n,onChange:o,clean:i,padding:a,isDarkTheme:s,className:u,containerClassName:c,noMinHeight:l,onMount:d,readOnly:p,description:h}){const b=typeof t=="string"?t:JSON.stringify(t,null,2);return L.jsxs("div",{className:be(dm,"flex flex-col w-full h-full",c),children:[!!r&&L.jsx(Lo,{children:r}),!!h&&L.jsx(Lo,{as:"span",size:e,className:be(_e.txtLowEmphasis),capitalize:!1,children:h}),L.jsx("div",{className:be("flex-grow","w-full","h-full",!l&&"gs-utl-min-h-48"),style:{position:"relative",width:"100%",height:"100%"},children:L.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0},children:L.jsx(cm,{defaultLanguage:n,defaultValue:b,theme:s?"vs-dark":"light",className:be(it.b,it.rnd,_e.br,u),options:{...pm,readOnly:p,...i&&{domReadOnly:!0,overviewRulerLanes:0,selectOnLineNumbers:!1,folding:!1,matchBrackets:"never",guides:{indentation:!1}},...Lc(a)&&{lineDecorationsWidth:a*2,padding:{top:a,bottom:a}}},onChange:o,onMount:(_,y)=>{let O=!1;const w=()=>fm(_);_.onDidChangeModelLanguageConfiguration(w),_.onDidScrollChange(()=>{O||(O=!0,w())}),setTimeout(w,10),d==null||d(_,y)}})})})]})}const gm=e=>e.Assets.getAll().reduce((n,o)=>{const i=o.getSrc(),a=i.match(/^data:([^;]+);/);if(a){const s=i.split(",")[1],u=Zg(o.get("name"));n[i]={mime:a[1],name:u,base64:s}}return n},{}),hm=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Zs=(e,t,r={})=>{let n=e;const o=r.pathPfx||"";for(const i in t)if(n.includes(i)){const a=t[i];n=n.replace(new RegExp(hm(i),"g"),`${o}${a.name}`),a.found=!0}return n},mm=(e,t)=>`${t||""}${e||""}`,bm=(e,t)=>{const r=e?`<div ${Is}>${e}</div>`:"",n=t?`<div ${Is} data-gjs-global>${t}</div>`:"";return`${r}${n}`},ym=async(e,t={})=>{const{page:r,skipProject:n,assetsFolder:o="assets",filenameCss:i="style.css",styles:a,isMJML:s}=t,u=[],c=r?[r]:e.Pages.getAll(),l=gm(e),d=`${o}/`,p=e.getCss({keepUnusedStyles:!0,component:r==null?void 0:r.getMainComponent()})||"",h=Zs(p,l,{pathPfx:d}),b=a==="inline",_=a==="skip",y=Xl(e).globalPageSettings||{},O=c.map(w=>{var ke,bt,Ke;const S=w.getName(),C=cr(w,"title")||S,m=cr(w,"favicon"),R=cr(w,"description"),P=cr(w,"keywords"),Z=cr(w,"socialTitle"),D=cr(w,"socialDescription"),H=cr(w,"socialImage"),X=Ro({page:w,key:"customCodeHead"}),ee=mm(X,y.customCodeHead),Q=Ro({page:w,key:"customCodeBody"}),ae=bm(Q,y.customCodeBody),N=w.getMainComponent(),q=e.getJs({component:N}),ne=q?`<script>${q}<\/script>`:"",oe=[],fe=[],de=N.toHTML({asDocument:!1}).replace("</body>",`${ae}${ne}</body>`),E=N.head;let A=C&&`<title>${C}</title>`,F=m&&`<link rel="icon" href="${m}"/>`,$=R&&`<meta name="description" content="${R}"/>`,B=P&&`<meta name="keywords" content="${P}"/>`,te=Z&&`<meta property="og:title" content="${Z}"/>`,z=D&&`<meta property="og:description" content="${D}"/>`,Y=H&&`<meta property="og:image" content="${H}"/>`,J='<meta charset="utf-8">',se='<meta name="viewport" content="width=device-width,initial-scale=1">',re='<meta name="robots" content="index,follow">',ye='<meta name="generator" content="GrapesJS Studio">';E.components().forEach(we=>{const Ce=we.toHTML();je.title({cmp:we})?A=Ce:je.favicon({cmp:we})?F=Ce:je.description({cmp:we})?$=Ce:je.keywords({cmp:we})?B=Ce:je.socialTitle({cmp:we})?te=Ce:je.socialDescription({cmp:we})?z=Ce:je.socialImage({cmp:we})?Y=Ce:je.charset({cmp:we})?J=Ce:je.viewport({cmp:we})?se=Ce:je.robots({cmp:we})?re=Ce:je.generator({cmp:we})&&(ye=Ce)}),A&&oe.push(A),J&&oe.push(J),se&&oe.push(se),re&&oe.push(re),ye&&oe.push(ye),$&&oe.push($),B&&oe.push(B),te&&oe.push(te),z&&oe.push(z),Y&&oe.push(Y),F&&oe.push(F),fe.length&&oe.push(...fe),ee&&oe.push(ee),h&&!_&&oe.push(b?`<style>${h}</style>`:`<link rel="stylesheet" href="./${i}">`);const k=N.doctype||"<!DOCTYPE html>",xe=(bt=(ke=N.docEl).__attrToString)==null?void 0:bt.call(ke),Pe=(Ke=E.__attrToString)==null?void 0:Ke.call(E),Re=s?e.runCommand("mjml-code-to-html").html:`${k}
|
|
113
|
+
<html${xe?` ${xe}`:""}>
|
|
114
|
+
<head${Pe?` ${Pe}`:""}>
|
|
115
|
+
${oe.join(`
|
|
116
|
+
`)}
|
|
117
|
+
</head>
|
|
118
|
+
${de}
|
|
119
|
+
</html>
|
|
120
|
+
`;return{filename:Bs(e,w),content:Zs(Re,l,{pathPfx:d}),mimeType:"text/html"}});u.push(...O),s&&c.forEach(w=>{u.push({filename:Bs(e,w,"mjml"),content:w.getMainComponent().toHTML(),mimeType:"text/mjml"})});for(const w in l){const S=l[w];S.found&&u.push({path:o,filename:S.name,content:atob(S.base64),mimeType:S.mime})}return h&&!b&&!_&&u.push({filename:i,content:h,mimeType:"text/css"}),n||u.push({filename:"gjs-project.grapesjs",content:JSON.stringify(e.getProjectData()),mimeType:"application/json"}),u};Ln(function({buttonProps:t,content:r,code:n,onAction:o}){const i=oh(),a=th(),s=ka(),{isProjectTypeEmail:u}=s,c=s.editor,{isDarkTheme:l}=nh(),[d,p]=g.useState(),h=()=>{const _=(d||"").trim();o?o(_):c.setComponents(_),i.close()};g.useEffect(()=>{n?p(n):(async()=>{if(u)p(c.getHtml());else{const O=(await ym(c,{page:c.Pages.getSelected(),skipProject:!0,styles:"inline"})).find(w=>w.mimeType==="text/html");O&&p(O.content)}})()},[]);const b=(t==null?void 0:t.children)||a.t("actions.importCode.button");return L.jsxs(Se,{col:!0,space:"m",children:[L.jsx(le,{children:r??a.t("actions.importCode.content")}),L.jsx(le,{className:ge("h-96"),children:d!==void 0&&L.jsx(vm,{value:d,onChange:_=>p(_||""),isDarkTheme:l,language:"html"})}),L.jsx(Se,{justify:"end",children:L.jsx(xa,{size:"m2",variant:"pr",onClick:h,...t,children:b})})]})});function _m(e){const{Blocks:t}=e,r="Content",n="Layout",o={className:"h-7",full:!0,space:"s",nowrap:!0},i={category:n,full:!0},a="gjs-border-2 gjs-border-current gjs-rounded-sm",s=(u,c)=>{t.add(u,{select:!0,category:r,...c})};s("mj-text",{label:"Text",media:`<svg viewBox="0 0 24 24">
|
|
121
|
+
<path fill="currentColor" d="M18.5,4L19.66,8.35L18.7,8.61C18.25,7.74 17.79,6.87 17.26,6.43C16.73,6 16.11,6 15.5,6H13V16.5C13,17 13,17.5 13.33,17.75C13.67,18 14.33,18 15,18V19H9V18C9.67,18 10.33,18 10.67,17.75C11,17.5 11,17 11,16.5V6H8.5C7.89,6 7.27,6 6.74,6.43C6.21,6.87 5.75,7.74 5.3,8.61L4.34,8.35L5.5,4H18.5Z" />
|
|
122
|
+
</svg>`,content:"<mj-text>Insert text here</mj-text>",activate:!0}),s("mj-button",{label:"Button",media:`<svg viewBox="0 0 24 24">
|
|
123
|
+
<path fill="currentColor" d="M20 20.5C20 21.3 19.3 22 18.5 22H13C12.6 22 12.3 21.9 12 21.6L8 17.4L8.7 16.6C8.9 16.4 9.2 16.3 9.5 16.3H9.7L12 18V9C12 8.4 12.4 8 13 8S14 8.4 14 9V13.5L15.2 13.6L19.1 15.8C19.6 16 20 16.6 20 17.1V20.5M20 2H4C2.9 2 2 2.9 2 4V12C2 13.1 2.9 14 4 14H8V12H4V4H20V12H18V14H20C21.1 14 22 13.1 22 12V4C22 2.9 21.1 2 20 2Z" />
|
|
124
|
+
</svg>`,content:"<mj-button>Button</mj-button>"}),s("mj-image",{label:"Image",media:`<svg viewBox="0 0 24 24">
|
|
125
|
+
<path fill="currentColor" d="M21,3H3C2,3 1,4 1,5V19A2,2 0 0,0 3,21H21C22,21 23,20 23,19V5C23,4 22,3 21,3M5,17L8.5,12.5L11,15.5L14.5,11L19,17H5Z" />
|
|
126
|
+
</svg>`,content:`<mj-image src="${jc}"/>`,activate:!0}),s("mj-divider",{label:"Divider",media:`<svg viewBox="0 0 24 24">
|
|
127
|
+
<path fill="currentColor" d="M21 18H2V20H21V18M19 10V14H4V10H19M20 8H3C2.45 8 2 8.45 2 9V15C2 15.55 2.45 16 3 16H20C20.55 16 21 15.55 21 15V9C21 8.45 20.55 8 20 8M21 4H2V6H21V4Z" />
|
|
128
|
+
</svg>`,content:"<mj-divider/>"}),s("mj-social",{label:"Social",media:`<svg viewBox="0 0 24 24">
|
|
129
|
+
<path fill="currentColor" d="M18,16.08C17.24,16.08 16.56,16.38 16.04,16.85L8.91,12.7C8.96,12.47 9,12.24 9,12C9,11.76 8.96,11.53 8.91,11.3L15.96,7.19C16.5,7.69 17.21,8 18,8A3,3 0 0,0 21,5A3,3 0 0,0 18,2A3,3 0 0,0 15,5C15,5.24 15.04,5.47 15.09,5.7L8.04,9.81C7.5,9.31 6.79,9 6,9A3,3 0 0,0 3,12A3,3 0 0,0 6,15C6.79,15 7.5,14.69 8.04,14.19L15.16,18.34C15.11,18.55 15.08,18.77 15.08,19C15.08,20.61 16.39,21.91 18,21.91C19.61,21.91 20.92,20.61 20.92,19A2.92,2.92 0 0,0 18,16.08Z" />
|
|
130
|
+
</svg>`,content:`<mj-social font-size="12px" icon-size="24px" border-radius="12px" mode="horizontal">
|
|
131
|
+
<mj-social-element name="facebook"></mj-social-element>
|
|
132
|
+
<mj-social-element name="linkedin"></mj-social-element>
|
|
133
|
+
<mj-social-element name="twitter"></mj-social-element>
|
|
134
|
+
</mj-social>`}),s("mj-social-element",{label:"Social Element",media:`<svg viewBox="0 0 24 24">
|
|
135
|
+
<path d="M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12S8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5S19.66 2 18 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12S4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.34C15.11 18.55 15.08 18.77 15.08 19C15.08 20.61 16.39 21.91 18 21.91S20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08M18 4C18.55 4 19 4.45 19 5S18.55 6 18 6 17 5.55 17 5 17.45 4 18 4M6 13C5.45 13 5 12.55 5 12S5.45 11 6 11 7 11.45 7 12 6.55 13 6 13M18 20C17.45 20 17 19.55 17 19S17.45 18 18 18 19 18.45 19 19 18.55 20 18 20Z" />
|
|
136
|
+
</svg>`,content:'<mj-social-element name="facebook">Facebook</mj-social-element>'}),s("mj-spacer",{label:"Spacer",media:`<svg viewBox="0 0 24 24">
|
|
137
|
+
<path fill="currentColor" d="M8,18H11V15H2V13H22V15H13V18H16L12,22L8,18M12,2L8,6H11V9H2V11H22V9H13V6H16L12,2Z" />
|
|
138
|
+
</svg>`,content:"<mj-spacer/>"}),s("mj-navbar",{label:"Navbar",media:`<svg viewBox="0 0 24 24">
|
|
139
|
+
<path fill="currentColor" d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" />
|
|
140
|
+
</svg>`,content:`<mj-navbar>
|
|
141
|
+
<mj-navbar-link>HOME</mj-navbar-link>
|
|
142
|
+
<mj-navbar-link>ABOUT</mj-navbar-link>
|
|
143
|
+
<mj-navbar-link>CONTACT</mj-navbar-link>
|
|
144
|
+
<mj-navbar-link>BLOG</mj-navbar-link>
|
|
145
|
+
</mj-navbar>`}),s("mj-hero",{label:"Hero",media:`<svg viewBox="0 0 24 24">
|
|
146
|
+
<path fill="currentColor" d="M20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20M4,6V18H20V6H4M6,9H18V11H6V9M6,13H16V15H6V13Z" />
|
|
147
|
+
</svg>`,content:`<mj-hero mode="fixed-height" height="469px" background-width="600px" background-height="469px" background-url="${ju({width:600,height:300,text:"Hero Image",fg:"555"})}" background-color="#2a3448" padding="100px 0px">
|
|
148
|
+
<mj-text padding="20px" color="#ffffff" font-family="Helvetica" align="center" font-size="45px" line-height="45px" font-weight="900">
|
|
149
|
+
Heading title
|
|
150
|
+
</mj-text>
|
|
151
|
+
<mj-text padding="20px" color="#ffffff" font-family="Helvetica" align="center">
|
|
152
|
+
Place here your hero content text
|
|
153
|
+
</mj-text>
|
|
154
|
+
<mj-button href="https://mjml.io/" align="center">
|
|
155
|
+
Call to action!
|
|
156
|
+
</mj-button>
|
|
157
|
+
</mj-hero>`}),s("mj-raw",{label:"HTML block",activate:!0,media:`<svg viewBox="0 0 24 24">
|
|
158
|
+
<path d="M5.59 3.41L7 4.82L3.82 8L7 11.18L5.59 12.6L1 8L5.59 3.41M11.41 3.41L16 8L11.41 12.6L10 11.18L13.18 8L10 4.82L11.41 3.41M22 6V18C22 19.11 21.11 20 20 20H4C2.9 20 2 19.11 2 18V14H4V18H20V6H17.03V4H20C21.11 4 22 4.89 22 6Z" />
|
|
159
|
+
</svg>`,content:`<mj-raw>
|
|
160
|
+
<span>Insert here you custom HTML</span>
|
|
161
|
+
</mj-raw>`}),s("mj-1-column",{...i,label:"1 Column",mediaReact:L.jsx(Se,{...o,children:L.jsx(le,{className:a,grow:!0})}),content:`<mj-section>
|
|
162
|
+
<mj-column></mj-column>
|
|
163
|
+
</mj-section>`}),s("mj-2-columns-50-50",{...i,label:"2 Columns 50/50",mediaReact:L.jsxs(Se,{...o,children:[L.jsx(le,{className:a,grow:!0}),L.jsx(le,{className:a,grow:!0})]}),content:`<mj-section>
|
|
164
|
+
<mj-column></mj-column>
|
|
165
|
+
<mj-column></mj-column>
|
|
166
|
+
</mj-section>`}),s("mj-2-columns-25-75",{...i,label:"2 Columns 25/75",mediaReact:L.jsxs(Se,{...o,children:[L.jsx(le,{className:be(a,"gs-utl-basis-1/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-3/4")})]}),content:`<mj-section>
|
|
167
|
+
<mj-column width="25%"></mj-column>
|
|
168
|
+
<mj-column width="75%"></mj-column>
|
|
169
|
+
</mj-section>`}),s("mj-2-columns-33-67",{...i,label:"2 Columns 33/67",mediaReact:L.jsxs(Se,{...o,children:[L.jsx(le,{className:be(a,"gs-utl-basis-1/3")}),L.jsx(le,{className:be(a,"gs-utl-basis-2/3")})]}),content:`<mj-section>
|
|
170
|
+
<mj-column width="33%"></mj-column>
|
|
171
|
+
<mj-column width="67%"></mj-column>
|
|
172
|
+
</mj-section>`}),s("mj-2-columns-67-33",{...i,label:"2 Columns 67/33",mediaReact:L.jsxs(Se,{...o,children:[L.jsx(le,{className:be(a,"gs-utl-basis-2/3")}),L.jsx(le,{className:be(a,"gs-utl-basis-1/3")})]}),content:`<mj-section>
|
|
173
|
+
<mj-column width="67%"></mj-column>
|
|
174
|
+
<mj-column width="33%"></mj-column>
|
|
175
|
+
</mj-section>`}),s("mj-2-columns-75-25",{...i,label:"2 Columns 75/25",mediaReact:L.jsxs(Se,{...o,children:[L.jsx(le,{className:be(a,"gs-utl-basis-3/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-1/4")})]}),content:`<mj-section>
|
|
176
|
+
<mj-column width="75%"></mj-column>
|
|
177
|
+
<mj-column width="25%"></mj-column>
|
|
178
|
+
</mj-section>`}),s("mj-3-columns",{...i,label:"3 Columns",mediaReact:L.jsxs(Se,{...o,children:[L.jsx(le,{className:a,grow:!0}),L.jsx(le,{className:a,grow:!0}),L.jsx(le,{className:a,grow:!0})]}),content:`<mj-section>
|
|
179
|
+
<mj-column></mj-column>
|
|
180
|
+
<mj-column></mj-column>
|
|
181
|
+
<mj-column></mj-column>
|
|
182
|
+
</mj-section>`}),s("mj-3-columns-25-25-50",{...i,label:"3 Columns 25/25/50",mediaReact:L.jsxs(Se,{...o,children:[L.jsx(le,{className:be(a,"gs-utl-basis-1/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-1/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-2/4")})]}),content:`<mj-section>
|
|
183
|
+
<mj-column width="25%"></mj-column>
|
|
184
|
+
<mj-column width="25%"></mj-column>
|
|
185
|
+
<mj-column width="50%"></mj-column>
|
|
186
|
+
</mj-section>`}),s("mj-3-columns-25-50-25",{...i,label:"3 Columns 25/50/25",mediaReact:L.jsxs(Se,{...o,children:[L.jsx(le,{className:be(a,"gs-utl-basis-1/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-2/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-1/4")})]}),content:`<mj-section>
|
|
187
|
+
<mj-column width="25%"></mj-column>
|
|
188
|
+
<mj-column width="50%"></mj-column>
|
|
189
|
+
<mj-column width="25%"></mj-column>
|
|
190
|
+
</mj-section>`}),s("mj-3-columns-50-25-25",{...i,label:"3 Columns 50/25/25",mediaReact:L.jsxs(Se,{...o,children:[L.jsx(le,{className:be(a,"gs-utl-basis-2/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-1/4")}),L.jsx(le,{className:be(a,"gs-utl-basis-1/4")})]}),content:`<mj-section>
|
|
191
|
+
<mj-column width="50%"></mj-column>
|
|
192
|
+
<mj-column width="25%"></mj-column>
|
|
193
|
+
<mj-column width="25%"></mj-column>
|
|
194
|
+
</mj-section>`}),s("mj-4-columns",{...i,label:"4 Columns",mediaReact:L.jsxs(Se,{...o,children:[L.jsx(le,{className:a,grow:!0}),L.jsx(le,{className:a,grow:!0}),L.jsx(le,{className:a,grow:!0}),L.jsx(le,{className:a,grow:!0})]}),content:`<mj-section>
|
|
195
|
+
<mj-column></mj-column>
|
|
196
|
+
<mj-column></mj-column>
|
|
197
|
+
<mj-column></mj-column>
|
|
198
|
+
<mj-column></mj-column>
|
|
199
|
+
</mj-section>`})}oa.email+"",oa.web+"";const wm=/\s(?![^(]*\))/,Ks=/^-?[0-9]+[a-zA-Z%]{0,}$/;function Xs(e){const t=e.split(wm),r=t.indexOf("inset")>=0,n=t.filter(l=>l!=="inset"),o=n.filter(l=>!Ks.test(l))[0]||"currentColor",i=n.filter(l=>Ks.test(l)),[a="0",s="0",u="0",c="0"]=i;return{x:a,y:s,blur:u,spread:c,inset:r,color:o}}function Ha(e){const t=e.indexOf("(")+1,r=e.lastIndexOf(")");return{name:e.substring(0,t-1).trim(),value:String.prototype.substring.apply(e,[t,r>=0?r:void 0]).trim()}}var sc={},ia={exports:{}},an={};/**
|
|
200
|
+
* @license React
|
|
201
|
+
* react-jsx-runtime.production.min.js
|
|
202
|
+
*
|
|
203
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
204
|
+
*
|
|
205
|
+
* This source code is licensed under the MIT license found in the
|
|
206
|
+
* LICENSE file in the root directory of this source tree.
|
|
207
|
+
*/var Js;function Om(){if(Js)return an;Js=1;var e=g,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,u,c){var l,d={},p=null,h=null;c!==void 0&&(p=""+c),u.key!==void 0&&(p=""+u.key),u.ref!==void 0&&(h=u.ref);for(l in u)n.call(u,l)&&!i.hasOwnProperty(l)&&(d[l]=u[l]);if(s&&s.defaultProps)for(l in u=s.defaultProps,u)d[l]===void 0&&(d[l]=u[l]);return{$$typeof:t,type:s,key:p,ref:h,props:d,_owner:o.current}}return an.Fragment=r,an.jsx=a,an.jsxs=a,an}var eo={};/**
|
|
208
|
+
* @license React
|
|
209
|
+
* react-jsx-runtime.development.js
|
|
210
|
+
*
|
|
211
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the MIT license found in the
|
|
214
|
+
* LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/var Qs;function Em(){return Qs||(Qs=1,sc.NODE_ENV!=="production"&&function(){var e=g,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),b=Symbol.iterator,_="@@iterator";function y(v){if(v===null||typeof v!="object")return null;var M=b&&v[b]||v[_];return typeof M=="function"?M:null}var O=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(v){{for(var M=arguments.length,f=new Array(M>1?M-1:0),x=1;x<M;x++)f[x-1]=arguments[x];S("error",v,f)}}function S(v,M,f){{var x=O.ReactDebugCurrentFrame,T=x.getStackAddendum();T!==""&&(M+="%s",f=f.concat([T]));var I=f.map(function(W){return String(W)});I.unshift("Warning: "+M),Function.prototype.apply.call(console[v],console,I)}}var C=!1,m=!1,R=!1,P=!1,Z=!1,D;D=Symbol.for("react.module.reference");function H(v){return!!(typeof v=="string"||typeof v=="function"||v===n||v===i||Z||v===o||v===c||v===l||P||v===h||C||m||R||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===d||v.$$typeof===a||v.$$typeof===s||v.$$typeof===u||v.$$typeof===D||v.getModuleId!==void 0))}function X(v,M,f){var x=v.displayName;if(x)return x;var T=M.displayName||M.name||"";return T!==""?f+"("+T+")":f}function ee(v){return v.displayName||"Context"}function Q(v){if(v==null)return null;if(typeof v.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case l:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case s:var M=v;return ee(M)+".Consumer";case a:var f=v;return ee(f._context)+".Provider";case u:return X(v,v.render,"ForwardRef");case d:var x=v.displayName||null;return x!==null?x:Q(v.type)||"Memo";case p:{var T=v,I=T._payload,W=T._init;try{return Q(W(I))}catch{return null}}}return null}var ae=Object.assign,N=0,q,ne,oe,fe,de,E,A;function F(){}F.__reactDisabledLog=!0;function $(){{if(N===0){q=console.log,ne=console.info,oe=console.warn,fe=console.error,de=console.group,E=console.groupCollapsed,A=console.groupEnd;var v={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}N++}}function B(){{if(N--,N===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ae({},v,{value:q}),info:ae({},v,{value:ne}),warn:ae({},v,{value:oe}),error:ae({},v,{value:fe}),group:ae({},v,{value:de}),groupCollapsed:ae({},v,{value:E}),groupEnd:ae({},v,{value:A})})}N<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var te=O.ReactCurrentDispatcher,z;function Y(v,M,f){{if(z===void 0)try{throw Error()}catch(T){var x=T.stack.trim().match(/\n( *(at )?)/);z=x&&x[1]||""}return`
|
|
216
|
+
`+z+v}}var J=!1,se;{var re=typeof WeakMap=="function"?WeakMap:Map;se=new re}function ye(v,M){if(!v||J)return"";{var f=se.get(v);if(f!==void 0)return f}var x;J=!0;var T=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=te.current,te.current=null,$();try{if(M){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(Ne){x=Ne}Reflect.construct(v,[],W)}else{try{W.call()}catch(Ne){x=Ne}v.call(W.prototype)}}else{try{throw Error()}catch(Ne){x=Ne}v()}}catch(Ne){if(Ne&&x&&typeof Ne.stack=="string"){for(var G=Ne.stack.split(`
|
|
217
|
+
`),ie=x.stack.split(`
|
|
218
|
+
`),K=G.length-1,ce=ie.length-1;K>=1&&ce>=0&&G[K]!==ie[ce];)ce--;for(;K>=1&&ce>=0;K--,ce--)if(G[K]!==ie[ce]){if(K!==1||ce!==1)do if(K--,ce--,ce<0||G[K]!==ie[ce]){var pe=`
|
|
219
|
+
`+G[K].replace(" at new "," at ");return v.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",v.displayName)),typeof v=="function"&&se.set(v,pe),pe}while(K>=1&&ce>=0);break}}}finally{J=!1,te.current=I,B(),Error.prepareStackTrace=T}var Oe=v?v.displayName||v.name:"",He=Oe?Y(Oe):"";return typeof v=="function"&&se.set(v,He),He}function k(v,M,f){return ye(v,!1)}function xe(v){var M=v.prototype;return!!(M&&M.isReactComponent)}function Pe(v,M,f){if(v==null)return"";if(typeof v=="function")return ye(v,xe(v));if(typeof v=="string")return Y(v);switch(v){case c:return Y("Suspense");case l:return Y("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case u:return k(v.render);case d:return Pe(v.type,M,f);case p:{var x=v,T=x._payload,I=x._init;try{return Pe(I(T),M,f)}catch{}}}return""}var Re=Object.prototype.hasOwnProperty,ke={},bt=O.ReactDebugCurrentFrame;function Ke(v){if(v){var M=v._owner,f=Pe(v.type,v._source,M?M.type:null);bt.setExtraStackFrame(f)}else bt.setExtraStackFrame(null)}function we(v,M,f,x,T){{var I=Function.call.bind(Re);for(var W in v)if(I(v,W)){var G=void 0;try{if(typeof v[W]!="function"){var ie=Error((x||"React class")+": "+f+" type `"+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[W]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ie.name="Invariant Violation",ie}G=v[W](M,W,x,f,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(K){G=K}G&&!(G instanceof Error)&&(Ke(T),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",f,W,typeof G),Ke(null)),G instanceof Error&&!(G.message in ke)&&(ke[G.message]=!0,Ke(T),w("Failed %s type: %s",f,G.message),Ke(null))}}}var Ce=Array.isArray;function Wt(v){return Ce(v)}function qt(v){{var M=typeof Symbol=="function"&&Symbol.toStringTag,f=M&&v[Symbol.toStringTag]||v.constructor.name||"Object";return f}}function ir(v){try{return ar(v),!1}catch{return!0}}function ar(v){return""+v}function Yt(v){if(ir(v))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qt(v)),ar(v)}var ct=O.ReactCurrentOwner,yt={key:!0,ref:!0,__self:!0,__source:!0},Nn,Xr,Sr;Sr={};function Jr(v){if(Re.call(v,"ref")){var M=Object.getOwnPropertyDescriptor(v,"ref").get;if(M&&M.isReactWarning)return!1}return v.ref!==void 0}function Xo(v){if(Re.call(v,"key")){var M=Object.getOwnPropertyDescriptor(v,"key").get;if(M&&M.isReactWarning)return!1}return v.key!==void 0}function Jo(v,M){if(typeof v.ref=="string"&&ct.current&&M&&ct.current.stateNode!==M){var f=Q(ct.current.type);Sr[f]||(w('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',Q(ct.current.type),v.ref),Sr[f]=!0)}}function Qo(v,M){{var f=function(){Nn||(Nn=!0,w("%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)",M))};f.isReactWarning=!0,Object.defineProperty(v,"key",{get:f,configurable:!0})}}function ei(v,M){{var f=function(){Xr||(Xr=!0,w("%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)",M))};f.isReactWarning=!0,Object.defineProperty(v,"ref",{get:f,configurable:!0})}}var ti=function(v,M,f,x,T,I,W){var G={$$typeof:t,type:v,key:M,ref:f,props:W,_owner:I};return G._store={},Object.defineProperty(G._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(G,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(G,"_source",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.freeze&&(Object.freeze(G.props),Object.freeze(G)),G};function ri(v,M,f,x,T){{var I,W={},G=null,ie=null;f!==void 0&&(Yt(f),G=""+f),Xo(M)&&(Yt(M.key),G=""+M.key),Jr(M)&&(ie=M.ref,Jo(M,T));for(I in M)Re.call(M,I)&&!yt.hasOwnProperty(I)&&(W[I]=M[I]);if(v&&v.defaultProps){var K=v.defaultProps;for(I in K)W[I]===void 0&&(W[I]=K[I])}if(G||ie){var ce=typeof v=="function"?v.displayName||v.name||"Unknown":v;G&&Qo(W,ce),ie&&ei(W,ce)}return ti(v,G,ie,T,x,ct.current,W)}}var Qr=O.ReactCurrentOwner,jr=O.ReactDebugCurrentFrame;function Vt(v){if(v){var M=v._owner,f=Pe(v.type,v._source,M?M.type:null);jr.setExtraStackFrame(f)}else jr.setExtraStackFrame(null)}var _t;_t=!1;function sr(v){return typeof v=="object"&&v!==null&&v.$$typeof===t}function Ar(){{if(Qr.current){var v=Q(Qr.current.type);if(v)return`
|
|
220
|
+
|
|
221
|
+
Check the render method of \``+v+"`."}return""}}function Hn(v){return""}var kn={};function Dn(v){{var M=Ar();if(!M){var f=typeof v=="string"?v:v.displayName||v.name;f&&(M=`
|
|
222
|
+
|
|
223
|
+
Check the top-level render call using <`+f+">.")}return M}}function $n(v,M){{if(!v._store||v._store.validated||v.key!=null)return;v._store.validated=!0;var f=Dn(M);if(kn[f])return;kn[f]=!0;var x="";v&&v._owner&&v._owner!==Qr.current&&(x=" It was passed a child from "+Q(v._owner.type)+"."),Vt(v),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',f,x),Vt(null)}}function en(v,M){{if(typeof v!="object")return;if(Wt(v))for(var f=0;f<v.length;f++){var x=v[f];sr(x)&&$n(x,M)}else if(sr(v))v._store&&(v._store.validated=!0);else if(v){var T=y(v);if(typeof T=="function"&&T!==v.entries)for(var I=T.call(v),W;!(W=I.next()).done;)sr(W.value)&&$n(W.value,M)}}}function Bn(v){{var M=v.type;if(M==null||typeof M=="string")return;var f;if(typeof M=="function")f=M.propTypes;else if(typeof M=="object"&&(M.$$typeof===u||M.$$typeof===d))f=M.propTypes;else return;if(f){var x=Q(M);we(f,v.props,"prop",x,v)}else if(M.PropTypes!==void 0&&!_t){_t=!0;var T=Q(M);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T||"Unknown")}typeof M.getDefaultProps=="function"&&!M.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ni(v){{for(var M=Object.keys(v.props),f=0;f<M.length;f++){var x=M[f];if(x!=="children"&&x!=="key"){Vt(v),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),Vt(null);break}}v.ref!==null&&(Vt(v),w("Invalid attribute `ref` supplied to `React.Fragment`."),Vt(null))}}function In(v,M,f,x,T,I){{var W=H(v);if(!W){var G="";(v===void 0||typeof v=="object"&&v!==null&&Object.keys(v).length===0)&&(G+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ie=Hn();ie?G+=ie:G+=Ar();var K;v===null?K="null":Wt(v)?K="array":v!==void 0&&v.$$typeof===t?(K="<"+(Q(v.type)||"Unknown")+" />",G=" Did you accidentally export a JSX literal instead of a component?"):K=typeof v,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",K,G)}var ce=ri(v,M,f,T,I);if(ce==null)return ce;if(W){var pe=M.children;if(pe!==void 0)if(x)if(Wt(pe)){for(var Oe=0;Oe<pe.length;Oe++)en(pe[Oe],v);Object.freeze&&Object.freeze(pe)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else en(pe,v)}return v===n?ni(ce):Bn(ce),ce}}function Fn(v,M,f){return In(v,M,f,!0)}function zn(v,M,f){return In(v,M,f,!1)}var oi=zn,ii=Fn;eo.Fragment=n,eo.jsx=oi,eo.jsxs=ii}()),eo}sc.NODE_ENV==="production"?ia.exports=Om():ia.exports=Em();var Ve=ia.exports;const uc=g.createContext(null),xm=({children:e})=>{const[t,r]=g.useState({setEditor:n=>{r(o=>({...o,editor:n}))}});return Ve.jsx(uc.Provider,{value:t,children:e})},Tt=()=>{const e=g.useContext(uc);if(!e)throw new Error("useEditorInstance must be used within EditorInstanceProvider");return e},lc=g.createContext(null),Cm=({children:e})=>{const[t,r]=g.useState(()=>({setRefCanvas(n){r(o=>({...o,refCanvas:n}))},setCustomModal(n){r(o=>({...o,customModal:n}))},setCustomAssets(n){r(o=>({...o,customAssets:n}))},setCustomBlocks(n){r(o=>({...o,customBlocks:n}))},setCustomRte(n){r(o=>({...o,customRte:n}))},setCustomStyles(n){r(o=>({...o,customStyles:n}))},setCustomLayers(n){r(o=>({...o,customLayers:n}))},setCustomSelectors(n){r(o=>({...o,customSelectors:n}))},setCustomTraits(n){r(o=>({...o,customTraits:n}))},setReady(n){r(o=>({...o,ready:n}))}}));return Ve.jsx(lc.Provider,{value:t,children:e})},Ut=()=>{const e=g.useContext(lc);if(!e)throw new Error("useEditorOptions must be used within EditorOptionsProvider");return e};function Sm(...e){return(Array.isArray(e[0])?e[0]:[...e]).filter(Boolean).join(" ")}function or(e){return typeof e=="function"}function gt(){}const cc=e=>typeof e=="string",jm=async e=>{const t=document.createElement("link");t.href=e,t.rel="stylesheet",document.head.appendChild(t)},fc=e=>{const t=cc(e)?{id:e,src:e}:e;return new Promise((r,n)=>{const o=document.createElement("script");if(document.querySelector(`script[src="${t.src}"]`))return r(t.id);o.src=t.src,o.onload=()=>r(t.id),o.onerror=()=>n(t.id),document.head.appendChild(o)})},Am=e=>{const t=e.map(r=>fc(r));return Promise.allSettled(t)},eu=e=>function(){const t=g.useRef(null);return g.useEffect(()=>{const{current:r}=t;r&&(cc(e)?r.innerHTML=e:r.appendChild(e))},[t.current]),Ve.jsx("div",{ref:t})},tu=new WeakMap;function Kr(e){if(!e)return()=>null;const t=tu.get(e);if(t)return t;const r=function({children:n}){return Mo.createPortal(n,e)};return tu.set(e,r),r}g.memo(function({children:e}){const{editor:t}=Tt(),r=Ut(),[n,o]=g.useState(!1),[i,a]=g.useState({assets:[],types:[],close:()=>{},select:()=>{},Container:()=>null});return g.useEffect(()=>{if(!t)return;const s=t.Assets.events.custom,u=({open:c,assets:l,types:d,select:p,close:h,container:b})=>{c&&a({assets:l,types:d,select:p,close:h,Container:Kr(b)}),o(c)};return t.on(s,u),()=>{t.off(s,u)}},[t]),g.useEffect(()=>r.setCustomAssets(!0),[]),t&&or(e)?e({open:n,...i}):null});g.memo(function({children:e}){const{editor:t}=Tt(),r=Ut(),[n,o]=g.useState(()=>({blocks:[],dragStart:gt,dragStop:gt,mapCategoryBlocks:new Map,Container:()=>null}));return g.useEffect(()=>{if(!t)return;const i=t.Blocks.events.custom,a=({blocks:s,container:u,dragStart:c,dragStop:l})=>{const d=s.reduce((p,h)=>{const b=h.getCategoryLabel(),_=p.get(b);return _?_.push(h):p.set(b,[h]),p},new Map);o({blocks:s,dragStart:c,dragStop:l,mapCategoryBlocks:d,Container:Kr(u)})};return t.on(i,a),t.Blocks.__trgCustom(),()=>{t.off(i,a)}},[t]),g.useEffect(()=>r.setCustomBlocks(!0),[]),t&&or(e)?e(n):null});g.memo(function({children:e}){const{editor:t}=Tt(),[r,n]=g.useState(()=>({devices:[],selected:"",select:gt}));return g.useEffect(()=>{if(!t)return;const{Devices:o}=t,i=o.events.all,a=()=>{var s;n({devices:o.getDevices(),selected:(s=o.getSelected())==null?void 0:s.id,select:u=>o.select(u)})};return t.on(i,a),a(),()=>{t.off(i,a)}},[t]),t&&or(e)?e(r):null});const Lm=e=>!!(e&&!Array.isArray(e)&&typeof e=="object");async function Rm(e){const t=e.map(({id:i,src:a})=>({id:i,src:a})),r=e.reduce((i,a)=>(i[a.id]=a,i),{}),n=[],o=[];return(await Am(t)).forEach(i=>{i.status==="fulfilled"?n.push(r[i.value]):o.push(r[i.reason])}),{loaded:n,failed:o}}const Tm=async e=>{const t=[...e],r={};if(t.length){const n={},o=[];if(t.forEach((i,a)=>{Lm(i)&&(n[i.id]={index:a},o.push(i))}),o.length){const{loaded:i}=await Rm(o);i.forEach(({id:a,options:s})=>{n[a].loaded=!0,r[a]=s||{}})}Object.keys(n).forEach(i=>{const a=n[i];a.loaded?t[a.index]=i:t[a.index]=!1})}return{plugins:t.filter(Boolean),pluginOptions:r}},Vm=g.memo(function({children:e,className:t,style:r,options:n={},plugins:o=[],grapesjs:i,grapesjsCss:a,onEditor:s=gt,onReady:u,onUpdate:c,waitReady:l,...d}){const{setEditor:p}=Tt(),h=Ut(),[b,_]=g.useState(!1),y=g.useRef(null);g.useEffect(()=>{if(!h.ready||!y.current)return;const P=y.current,Z=h.refCanvas;let D,H={},X=[];const ee=Q=>{const ae={height:"100%",...n,plugins:[...X,...n.plugins||[]],pluginsOpts:{...n.pluginsOpts,...H},modal:{...n.modal,custom:!!h.customModal},assetManager:{...n.assetManager,custom:!!h.customAssets},styleManager:{...n.styleManager,custom:!!h.customStyles},blockManager:{...n.blockManager,custom:!!h.customBlocks},richTextEditor:{...n.richTextEditor,custom:!!h.customRte},layerManager:{...n.layerManager,custom:!!h.customLayers},traitManager:{...n.traitManager,custom:!!h.customTraits},selectorManager:{...n.selectorManager,custom:!!h.customSelectors},container:Z||P,customUI:!!Z,...Z?{panels:{defaults:[]}}:{}};D=Q.init(ae),p(D),s(D),c&&D.on("update",()=>{c(D.getProjectData(),D)}),D.onReady(()=>{_(!0),u==null||u(D)})};return(async()=>{a&&await jm(a);const Q=await Tm(o);X=Q.plugins,H=Q.pluginOptions,typeof i=="string"?(await fc(i),ee(window.grapesjs)):ee(i)})(),()=>D==null?void 0:D.destroy()},[h.ready]);const O=n.height??"100%",w=n.width??"100%",S=Sm("gjs-editor-wrapper",t),C=l&&!b,m=g.useMemo(()=>({...r,height:O,width:w}),[O,w,r]),R=g.useMemo(()=>({...m,...C?{opacity:0,width:0,height:0}:{}}),[m,C]);return Ve.jsxs(Ve.Fragment,{children:[l&&!b?Ve.jsx("div",{className:S,style:m,children:l}):null,Ve.jsx("div",{...d,ref:y,className:S,style:R,children:e})]})}),Mm=g.memo(function(){const e=Ut();return g.useEffect(()=>e.setReady(!0),[]),Ve.jsx(Ve.Fragment,{})});g.memo(function({children:e,...t}){return Ve.jsx(xm,{children:Ve.jsx(Cm,{children:Ve.jsxs(Vm,{...t,children:[e,Ve.jsx(Mm,{})]})})})});g.memo(function({children:e}){const{editor:t}=Tt(),r=Ut(),[n,o]=g.useState(()=>({root:void 0,Container:()=>null}));return g.useEffect(()=>{if(!t)return;const{Layers:i}=t,a=i.events.custom,s=({container:u})=>{o({root:i.getRoot(),Container:Kr(u)})};return t.on(a,s),i.__trgCustom({}),()=>{t.off(a,s)}},[t]),g.useEffect(()=>r.setCustomLayers(!0),[]),t&&or(e)?e(n):null});g.memo(function({children:e}){const{editor:t}=Tt(),r=Ut(),[n,o]=g.useState(!1),[i,a]=g.useState({title:Ve.jsx(Ve.Fragment,{}),content:Ve.jsx(Ve.Fragment,{}),attributes:{},close:gt});return g.useEffect(()=>{if(!t)return;const s="modal",u=({open:c,title:l,content:d,close:p,attributes:h})=>{c&&a({title:g.createElement(eu(l)),content:g.createElement(eu(d)),attributes:h,close:p}),o(c)};return t.on(s,u),()=>{t.off(s,u)}},[t]),g.useEffect(()=>r.setCustomModal(!0),[]),t&&typeof e=="function"?e({open:n,...i}):null});g.memo(function({children:e}){const{editor:t}=Tt(),[r,n]=g.useState(()=>({pages:[],selected:void 0,select:gt,add:gt,remove:gt}));return g.useEffect(()=>{if(!t)return;const{Pages:o}=t,i=o.events.all,a=()=>{n({pages:o.getAll(),selected:o.getSelected(),select:(...s)=>o.select(...s),add:(...s)=>o.add(...s),remove:(...s)=>o.remove(...s)})};return t.on(i,a),a(),()=>{t.off(i,a)}},[t]),t&&or(e)?e(r):null});g.memo(function({children:e}){const{editor:t}=Tt(),r=Ut(),[n,o]=g.useState(()=>({selectors:[],states:[],selectedState:"",targets:[],addSelector:gt,removeSelector:gt,setState:gt,Container:()=>null}));return g.useEffect(()=>{if(!t)return;const{Selectors:i}=t,a=i.events.custom,s=({container:u})=>{o({selectors:i.getSelected(),states:i.getStates(),selectedState:i.getState(),targets:i.getSelectedTargets().map(c=>c.getSelectorsString()),addSelector:(...c)=>i.addSelected(...c),removeSelector:(...c)=>i.removeSelected(...c),setState:(...c)=>i.setState(...c),Container:Kr(u)})};return t.on(a,s),()=>{t.off(a,s)}},[t]),g.useEffect(()=>r.setCustomSelectors(!0),[]),t&&or(e)?e(n):null});g.memo(function({children:e}){const{editor:t}=Tt(),r=Ut(),[n,o]=g.useState(()=>({sectors:[],Container:()=>null}));return g.useEffect(()=>{if(!t)return;const{Styles:i}=t,a=i.events.custom,s=({container:u})=>{o({sectors:i.getSectors({visible:!0}),Container:Kr(u)})};return t.on(a,s),()=>{t.off(a,s)}},[t]),g.useEffect(()=>r.setCustomStyles(!0),[]),t&&or(e)?e(n):null});g.memo(function({children:e}){const{editor:t}=Tt(),r=Ut(),[n,o]=g.useState(()=>({traits:[],Container:()=>null}));return g.useEffect(()=>{if(!t)return;const{Traits:i}=t,a=i.events.custom,s=({container:u})=>{o({traits:i.getCurrent(),Container:Kr(u)})};return t.on(a,s),i.__trgCustom(),()=>{t.off(a,s)}},[t]),g.useEffect(()=>r.setCustomTraits(!0),[]),t&&or(e)?e(n):null});var Pm={grad:.9,turn:360,rad:360/(2*Math.PI)},Mt=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Le=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r+0},rt=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e>t?e:t},dc=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},ru=function(e){return{r:rt(e.r,0,255),g:rt(e.g,0,255),b:rt(e.b,0,255),a:rt(e.a)}},Ri=function(e){return{r:Le(e.r),g:Le(e.g),b:Le(e.b),a:Le(e.a,3)}},Nm=/^#([0-9a-f]{3,8})$/i,to=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},pc=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,i=Math.max(t,r,n),a=i-Math.min(t,r,n),s=a?i===t?(r-n)/a:i===r?2+(n-t)/a:4+(t-r)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},vc=function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var i=Math.floor(t),a=n*(1-r),s=n*(1-(t-i)*r),u=n*(1-(1-t+i)*r),c=i%6;return{r:255*[n,s,a,a,u,n][c],g:255*[u,n,n,s,a,a][c],b:255*[a,a,u,n,n,s][c],a:o}},nu=function(e){return{h:dc(e.h),s:rt(e.s,0,100),l:rt(e.l,0,100),a:rt(e.a)}},ou=function(e){return{h:Le(e.h),s:Le(e.s),l:Le(e.l),a:Le(e.a,3)}},iu=function(e){return vc((r=(t=e).s,{h:t.h,s:(r*=((n=t.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:t.a}));var t,r,n},pn=function(e){return{h:(t=pc(e)).h,s:(o=(200-(r=t.s))*(n=t.v)/100)>0&&o<200?r*n/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,r,n,o},Hm=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,km=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Dm=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,$m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,aa={string:[[function(e){var t=Nm.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Le(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Le(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Dm.exec(e)||$m.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:ru({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Hm.exec(e)||km.exec(e);if(!t)return null;var r,n,o=nu({h:(r=t[1],n=t[2],n===void 0&&(n="deg"),Number(r)*(Pm[n]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return iu(o)},"hsl"]],object:[[function(e){var t=e.r,r=e.g,n=e.b,o=e.a,i=o===void 0?1:o;return Mt(t)&&Mt(r)&&Mt(n)?ru({r:Number(t),g:Number(r),b:Number(n),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,r=e.s,n=e.l,o=e.a,i=o===void 0?1:o;if(!Mt(t)||!Mt(r)||!Mt(n))return null;var a=nu({h:Number(t),s:Number(r),l:Number(n),a:Number(i)});return iu(a)},"hsl"],[function(e){var t=e.h,r=e.s,n=e.v,o=e.a,i=o===void 0?1:o;if(!Mt(t)||!Mt(r)||!Mt(n))return null;var a=function(s){return{h:dc(s.h),s:rt(s.s,0,100),v:rt(s.v,0,100),a:rt(s.a)}}({h:Number(t),s:Number(r),v:Number(n),a:Number(i)});return vc(a)},"hsv"]]},au=function(e,t){for(var r=0;r<t.length;r++){var n=t[r][0](e);if(n)return[n,t[r][1]]}return[null,void 0]},Bm=function(e){return typeof e=="string"?au(e.trim(),aa.string):typeof e=="object"&&e!==null?au(e,aa.object):[null,void 0]},Ti=function(e,t){var r=pn(e);return{h:r.h,s:rt(r.s+100*t,0,100),l:r.l,a:r.a}},Vi=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},su=function(e,t){var r=pn(e);return{h:r.h,s:r.s,l:rt(r.l+100*t,0,100),a:r.a}},sa=function(){function e(t){this.parsed=Bm(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return this.parsed!==null},e.prototype.brightness=function(){return Le(Vi(this.rgba),2)},e.prototype.isDark=function(){return Vi(this.rgba)<.5},e.prototype.isLight=function(){return Vi(this.rgba)>=.5},e.prototype.toHex=function(){return t=Ri(this.rgba),r=t.r,n=t.g,o=t.b,a=(i=t.a)<1?to(Le(255*i)):"","#"+to(r)+to(n)+to(o)+a;var t,r,n,o,i,a},e.prototype.toRgb=function(){return Ri(this.rgba)},e.prototype.toRgbString=function(){return t=Ri(this.rgba),r=t.r,n=t.g,o=t.b,(i=t.a)<1?"rgba("+r+", "+n+", "+o+", "+i+")":"rgb("+r+", "+n+", "+o+")";var t,r,n,o,i},e.prototype.toHsl=function(){return ou(pn(this.rgba))},e.prototype.toHslString=function(){return t=ou(pn(this.rgba)),r=t.h,n=t.s,o=t.l,(i=t.a)<1?"hsla("+r+", "+n+"%, "+o+"%, "+i+")":"hsl("+r+", "+n+"%, "+o+"%)";var t,r,n,o,i},e.prototype.toHsv=function(){return t=pc(this.rgba),{h:Le(t.h),s:Le(t.s),v:Le(t.v),a:Le(t.a,3)};var t},e.prototype.invert=function(){return Pt({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Pt(Ti(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Pt(Ti(this.rgba,-t))},e.prototype.grayscale=function(){return Pt(Ti(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Pt(su(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Pt(su(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Pt({r:(r=this.rgba).r,g:r.g,b:r.b,a:t}):Le(this.rgba.a,3);var r},e.prototype.hue=function(t){var r=pn(this.rgba);return typeof t=="number"?Pt({h:t,s:r.s,l:r.l,a:r.a}):Le(r.h)},e.prototype.isEqual=function(t){return this.toHex()===Pt(t).toHex()},e}(),Pt=function(e){return e instanceof sa?e:new sa(e)},uu=[],Im=function(e){e.forEach(function(t){uu.indexOf(t)<0&&(t(sa,aa),uu.push(t))})};function Fm(e,t){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var o in r)n[r[o]]=o;var i={};e.prototype.toName=function(a){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var s,u,c=n[this.toHex()];if(c)return c;if(a!=null&&a.closest){var l=this.toRgb(),d=1/0,p="black";if(!i.length)for(var h in r)i[h]=new e(r[h]).toRgb();for(var b in r){var _=(s=l,u=i[b],Math.pow(s.r-u.r,2)+Math.pow(s.g-u.g,2)+Math.pow(s.b-u.b,2));_<d&&(d=_,p=b)}return p}},t.string.push([function(a){var s=a.toLowerCase(),u=s==="transparent"?"#0000":r[s];return u?new e(u).toRgb():null},"name"])}const lu=e=>Gl(e)?e:"",zm=(e={})=>ge("w-full placeholder:italic",_e.bgTr,ev.inputText,e.disabled&&_e.txtLowEmphasis),Um="gs-input-field";g.forwardRef(function(t,r){const{className:n,value:o,label:i,size:a="m",type:s,placeholder:u,required:c,disabled:l,readOnly:d,description:p,name:h,style:b,tip:_,onInput:y,onChange:O,onBlur:w}=t,[S,C]=g.useState(lu(o)),m=zm(t),R=g.useRef(null);g.useImperativeHandle(r,()=>R.current,[]),g.useEffect(()=>{C(lu(o))},[o]);const P=(X,ee)=>{O==null||O(X,ee)},Z=X=>{const{key:ee}=X;switch(ee){case"Escape":return C(o);case"Enter":return P(S)}},D=()=>{P(S),w==null||w()},H=X=>{const ee=X.target.value;C(ee),y==null||y(ee)};return L.jsxs("div",{className:ge(Um,n),style:b,ref:R,children:[!!i&&L.jsx(Lo,{size:a,children:i}),!!p&&L.jsx(Lo,{size:a,tip:_,as:"span",className:ge(_e.txtLowEmphasis),capitalize:!1,children:p}),L.jsx(Se,{className:ge(_e.bg,it.b,it.rnd,_e.br,a==="m"&&Ea.xy,a==="s"&&"gjs-px-3 gjs-py-1"),items:"center",space:"x2s",children:L.jsx(le,{grow:!0,children:L.jsx("input",{className:m,name:h,value:S,onChange:H,placeholder:u,required:c,onBlur:D,onKeyDown:Z,readOnly:d,disabled:l,type:s})})})]})});Im([Fm]);function gc(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Wm(e){return"nodeType"in e}function qm(e){var t,r;return e?gc(e)?e:Wm(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function Ym(e){return gc(e)?!1:e instanceof qm(e).HTMLElement}var cu;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(cu||(cu={}));const hc=Object.freeze({x:0,y:0});var fu;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(fu||(fu={}));function mc(e,t,r=hc){if(!e||!Ym(e))return r;const n={x:r.x+e.offsetLeft,y:r.y+e.offsetTop};return e.offsetParent===t?n:mc(e.offsetParent,t,n)}function Gm(e){const{offsetWidth:t,offsetHeight:r}=e,{x:n,y:o}=mc(e,null);return{width:t,height:r,offsetTop:o,offsetLeft:n}}var du;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(du||(du={}));var pu;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(pu||(pu={}));var ua;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ua||(ua={}));var la;(function(e){e.Optimized="optimized"})(la||(la={}));ua.WhileDragging,la.Optimized;var vu;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(vu||(vu={}));var ft;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(ft||(ft={}));ft.Space,ft.Enter,ft.Esc,ft.Space,ft.Enter;var gu;(function(e){e[e.RightClick=2]="RightClick"})(gu||(gu={}));({...hc});ft.Down,ft.Right,ft.Up,ft.Left;const Zm=/^-?[0-9]+(\.[0-9]+)?[a-zA-Z%]{0,}$/,Km=/,(?![^(]*\))/,Mi=/\s(?![^(]*\))/,Xm=/^(closest-side|closest-corner|farthest-side|farthest-corner)/i,Pi=/^circle|ellipse/i,Jm=e=>{var l;const t=[],{name:r,value:n}=Ha(e),[o,...i]=n.split(Km).map(d=>d.trim()).filter(Boolean),a=i.length>1,s=a?o:"",u={type:"none"},c=a?i:[o,...i];if(Zm.test(s))u.type="angle",u.value=s;else if(/^to\s/.test(s))u.type="side-or-corner",u.value=s;else if(Xm.test(s))u.type="size",u.value=s;else if(Pi.test(s)||/^at\s/.test(s)||/\sat\s/.test(s)){u.type="at",u.value=s;const d=((l=s.match(Pi))==null?void 0:l[0])||"circle";u.shape=d;const p={x:"0%",y:"0%"},h={x:"0%",y:"0%"},[b,_]=s.replace(Pi,"").trim().split("at").map(y=>y.trim());if(b){const[y,O]=b.split(Mi);p.x=y,p.y=O||y}if(_){const[y,O]=_.split(Mi);h.x=y,h.y=O||y}u.size=p,u.position=h}return c.forEach(d=>{const[p,h]=d.split(Mi);t.push({color:p,hint:h?parseFloat(h):null})}),t.forEach((d,p)=>{d.hint===null&&(d.hint=p/(t.length-1)*100)}),{name:r,orientation:u,colorStops:t}};var Xt=(e=>(e.Image="image",e.Gradient="gradient",e.Color="color",e))(Xt||{});const vo="background-image",Jt="__background-type",vn=vo,ro=["%"],no=["s","ms"],sn=["deg","rad","grad"],Ot=["px","%","em","rem","vw","vh"],hu={type:"select",options:["visible","hidden","scroll","auto"].map(e=>({id:e})),default:"visible"},Qm=e=>`linear-gradient(${e} 1%, ${e} 100%)`,Vo=e=>({id:e,label:e.split("-").map(ki).join(" ")}),bc=e=>({property:t,to:r})=>{if(r.value){const n=t.getOption(),o=t.getParent().getProperty(e),i=o.getUnit(),a={units:n.units||[],min:n.min,max:n.max,unit:""};(!i||(a==null?void 0:a.units.indexOf(i))<0)&&(a.unit=(a==null?void 0:a.units[0])||""),o.up(a)}},eb=e=>{const t=`${e}-name`,r=`${e}-value`;return(n,{separatorLayers:o})=>{const i=n[e]||"";return i?i.split(o).map(a=>{const{name:s,value:u}=Ha(a);return{[t]:s,[r]:u}}):[]}},mu=e=>{const t={[vn]:e};if(e.indexOf("url(")>-1)t[Jt]=Xt.Image;else if(e.indexOf("gradient(")>-1){const r=Jm(e),n=r.colorStops,o=r.name.indexOf("linear")>=0;n.length===2&&o&&n[0].color===n[1].color?t[Jt]=Xt.Color:t[Jt]=Xt.Gradient}else t[Jt]=Xt.Color,t[vn]=Qm(e);return t},bu=(e="filter")=>{const t=`${e}-name`,r=`${e}-value`;return{property:e,type:"stack",layerSeparator:" ",fromStyle(n,{separatorLayers:o}){const i=n[e]||"";return i?i.split(o).map(a=>{const{name:s,value:u}=Ha(a);return{[t]:s,[r]:u}}):[]},toStyle(n,{name:o}){return{[o]:`${n[t]}(${n[r]||"0"})`}},properties:[{property:t,type:"select",default:"blur",options:[{id:"blur",label:"Blur",min:0,units:["px","em","rem","vw","vh"]},{id:"brightness",label:"Brightness",min:0,units:["%"]},{id:"contrast",label:"Contrast",min:0,units:["%"]},{id:"grayscale",label:"Grayscale",min:0,max:100,units:["%"]},{id:"hue-rotate",label:"Hue rotate",min:0,max:360,units:["deg","rad","grad"]},{id:"invert",label:"Invert",min:0,max:100,units:["%"]},{id:"saturate",label:"Saturate",min:0,units:["%"]},{id:"sepia",label:"Sepia",min:0,max:100,units:["%"]}],onChange:bc(r)},{property:r,type:"integer"}]}},oo=(e,{x:t,y:r,mergable:n}={})=>{const o={property:`${e}-x`,type:"integer",units:Ot,...t},i={property:`${e}-y`,type:"integer",units:Ot,...r};return{property:e,type:"composite",properties:[o,i],...n&&{fromStyle(a,{name:s,separator:u,property:c}){const[l,d]=c.getProperties(),[p,h]=(a[s]||"").split(u);return{[l.getId()]:a[l.getName()]||p||"",[d.getId()]:a[d.getName()]||h||p||""}},toStyle(a,{name:s,property:u}){const[c,l]=u.getProperties(),d=a[c.getId()],p=a[l.getId()];return{[s]:d===p?d:`${d} ${p}`}}}}},tb=(e,t="")=>{const r=`${e}-name`,n=`${e}-value`;return(o,{name:i})=>({[i]:`${o[r]}(${o[n]||t})`})};["top","middle","bottom"].map(Vo),["none","solid","dotted","dashed","double","groove","ridge","inset","outset"].map(Vo);oo("gap",{x:{property:"row-gap",min:0,default:"0"},y:{property:"column-gap",min:0,default:"0"},mergable:!0}),["baseline","top","middle","bottom"].map(Vo),new RegExp("(?<!\\(.*[^)]),(?![^(]*\\))"),Xt.Image,Xt.Gradient,Xt.Color,["background-position-x","background-position-y"].map(e=>({type:"integer",property:e,units:Ot,default:"0px"})),["background-size-x","background-size-y"].map(e=>({type:"integer",property:e,units:Ot,default:"auto"})),["border-top-width","border-right-width","border-bottom-width","border-left-width"].map(e=>({type:"integer",property:e,default:"0",units:Ot})),["border-top-style","border-right-style","border-bottom-style","border-left-style"].map(e=>({type:"select",property:e,default:"none",options:[{id:"none",label:"None"},{id:"solid",label:"Solid"},{id:"dotted",label:"Dotted"},{id:"dashed",label:"Dashed"},{id:"double",label:"Double"},{id:"groove",label:"Groove"},{id:"ridge",label:"Ridge"},{id:"inset",label:"Inset"},{id:"outset",label:"Outset"}]})),["border-top-color","border-right-color","border-bottom-color","border-left-color"].map(e=>({type:"color",property:e,default:"currentColor"})),oo("overflow",{x:hu,y:hu,mergable:!0}),bu(),bu("backdrop-filter"),["width","height","min-width","min-height","max-width","max-height","padding","margin","color","font-size","line-height","letter-height","border","border-radius","background","opacity","box-shadow","text-shadow","filter","backdrop-filter","transform","all"].map(Vo),no[0],no[0],eb("transform"),tb("transform","0"),bc("transform-value"),oo("transform-origin",{x:{default:"50%"},y:{default:"50%"}}),oo("perspective-origin",{x:{default:"50%"},y:{default:"50%"}});Jl.gjsStudio;const rb=g.createContext(void 0),Pn=()=>{const e=g.useContext(rb);if(!e)throw new Error("useStore must be used inside of StoreProvider");return e},io=({icon:e,layout:t,tooltip:r,className:n,forceRemove:o,removeLayouts:i})=>({type:"button",icon:e,tooltip:r,className:n,size:"s",editorEvents:{[`${Lu.layoutToggleId}${t.id}`]:({fromEvent:a,setState:s})=>{s({active:a.isOpen})}},onClick:({editor:a})=>{i==null||i.forEach(s=>a.runCommand(vr.layoutRemove,{id:s,force:o})),a.runCommand(vr.layoutToggle,{...t})}}),yu={type:"static",layoutId:"leftPanelsContainer"},_u={width:240,overflow:"hidden"};io({tooltip:"Blocks",removeLayouts:["pagesLayers","ps"],layout:{id:"blocks",layout:"panelBlocks",header:{label:"Blocks"},style:_u,placer:yu}}),io({tooltip:"Pages & Layers",removeLayouts:["blocks","ps"],layout:{id:"pagesLayers",layout:"panelPagesLayers",header:!1,style:_u,placer:yu}}),io({tooltip:"Page Settings",removeLayouts:["pagesLayers","blocks"],layout:{id:"ps",layout:"panelPageSettings",header:{label:"Page Settings"},style:{marginLeft:40}}}),io({icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,10.11C13.03,10.11 13.87,10.95 13.87,12C13.87,13 13.03,13.85 12,13.85C10.97,13.85 10.13,13 10.13,12C10.13,10.95 10.97,10.11 12,10.11M7.37,20C8,20.38 9.38,19.8 10.97,18.3C10.45,17.71 9.94,17.07 9.46,16.4C8.64,16.32 7.83,16.2 7.06,16.04C6.55,18.18 6.74,19.65 7.37,20M8.08,14.26L7.79,13.75C7.68,14.04 7.57,14.33 7.5,14.61C7.77,14.67 8.07,14.72 8.38,14.77C8.28,14.6 8.18,14.43 8.08,14.26M14.62,13.5L15.43,12L14.62,10.5C14.32,9.97 14,9.5 13.71,9.03C13.17,9 12.6,9 12,9C11.4,9 10.83,9 10.29,9.03C10,9.5 9.68,9.97 9.38,10.5L8.57,12L9.38,13.5C9.68,14.03 10,14.5 10.29,14.97C10.83,15 11.4,15 12,15C12.6,15 13.17,15 13.71,14.97C14,14.5 14.32,14.03 14.62,13.5M12,6.78C11.81,7 11.61,7.23 11.41,7.5C11.61,7.5 11.8,7.5 12,7.5C12.2,7.5 12.39,7.5 12.59,7.5C12.39,7.23 12.19,7 12,6.78M12,17.22C12.19,17 12.39,16.77 12.59,16.5C12.39,16.5 12.2,16.5 12,16.5C11.8,16.5 11.61,16.5 11.41,16.5C11.61,16.77 11.81,17 12,17.22M16.62,4C16,3.62 14.62,4.2 13.03,5.7C13.55,6.29 14.06,6.93 14.54,7.6C15.36,7.68 16.17,7.8 16.94,7.96C17.45,5.82 17.26,4.35 16.62,4M15.92,9.74L16.21,10.25C16.32,9.96 16.43,9.67 16.5,9.39C16.23,9.33 15.93,9.28 15.62,9.23C15.72,9.4 15.82,9.57 15.92,9.74M17.37,2.69C18.84,3.53 19,5.74 18.38,8.32C20.92,9.07 22.75,10.31 22.75,12C22.75,13.69 20.92,14.93 18.38,15.68C19,18.26 18.84,20.47 17.37,21.31C15.91,22.15 13.92,21.19 12,19.36C10.08,21.19 8.09,22.15 6.62,21.31C5.16,20.47 5,18.26 5.62,15.68C3.08,14.93 1.25,13.69 1.25,12C1.25,10.31 3.08,9.07 5.62,8.32C5,5.74 5.16,3.53 6.62,2.69C8.09,1.85 10.08,2.81 12,4.64C13.92,2.81 15.91,1.85 17.37,2.69M17.08,12C17.42,12.75 17.72,13.5 17.97,14.26C20.07,13.63 21.25,12.73 21.25,12C21.25,11.27 20.07,10.37 17.97,9.74C17.72,10.5 17.42,11.25 17.08,12M6.92,12C6.58,11.25 6.28,10.5 6.03,9.74C3.93,10.37 2.75,11.27 2.75,12C2.75,12.73 3.93,13.63 6.03,14.26C6.28,13.5 6.58,12.75 6.92,12M15.92,14.26C15.82,14.43 15.72,14.6 15.62,14.77C15.93,14.72 16.23,14.67 16.5,14.61C16.43,14.33 16.32,14.04 16.21,13.75L15.92,14.26M13.03,18.3C14.62,19.8 16,20.38 16.62,20C17.26,19.65 17.45,18.18 16.94,16.04C16.17,16.2 15.36,16.32 14.54,16.4C14.06,17.07 13.55,17.71 13.03,18.3M8.08,9.74C8.18,9.57 8.28,9.4 8.38,9.23C8.07,9.28 7.77,9.33 7.5,9.39C7.57,9.67 7.68,9.96 7.79,10.25L8.08,9.74M10.97,5.7C9.38,4.2 8,3.62 7.37,4C6.74,4.35 6.55,5.82 7.06,7.96C7.83,7.8 8.64,7.68 9.46,7.6C9.94,6.93 10.45,6.29 10.97,5.7Z" /></svg>',tooltip:"Custom Component",className:"gs-utl-mt-auto",layout:{id:"customLayout",layout:{type:"custom",component:()=>L.jsx("div",{children:"Custom Reat component"})},header:{label:"Custom"},style:{marginLeft:40}}});const ka=()=>Pn().appEditorStore,nb=()=>{try{return ka()}catch{}};var Dt=(e=>(e.alertRhombus="alertRhombus",e.alignHorizontalCenter="alignHorizontalCenter",e.alignHorizontalLeft="alignHorizontalLeft",e.alignHorizontalRight="alignHorizontalRight",e.applicationBracketsOutline="applicationBracketsOutline",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowULeftTop="arrowULeftTop",e.arrowURightTop="arrowURightTop",e.borderAllVariant="borderAllVariant",e.borderRadius="borderRadius",e.borderStyle="borderStyle",e.cellphoneLink="cellphoneLink",e.check="check",e.checkBold="checkBold",e.checkboxBlank="checkboxBlank",e.chevronUp="chevronUp",e.chevronDown="chevronDown",e.chevronLeft="chevronLeft",e.chevronRight="chevronRight",e.close="close",e.codeBraces="codeBraces",e.cog="cog",e.contentCopy="contentCopy",e.contentSave="contentSave",e.delete="delete",e.dotsVertical="dotsVertical",e.email="email",e.emailOutline="emailOutline",e.eye="eye",e.eyedropperVariant="eyedropperVariant",e.eyeOff="eyeOff",e.eyeOffOutline="eyeOffOutline",e.eyeOutline="eyeOutline",e.fire="fire",e.flare="flare",e.floppy="floppy",e.folder="folder",e.fullscreen="fullscreen",e.gradientVertical="gradientVertical",e.helpCircle="helpCircle",e.image="image",e.information="information",e.informationVariant="informationVariant",e.layers="layers",e.link="link",e.lock="lock",e.lockOpenVariant="lockOpenVariant",e.menuDown="menuDown",e.newspaperVariantOutline="newspaperVariantOutline",e.paletteSwatch="paletteSwatch",e.panVertical="panVertical",e.phone="phone",e.plus="plus",e.plusBox="plusBox",e.powerPlug="powerPlug",e.refresh="refresh",e.rhombusOutline="rhombusOutline",e.tag="tag",e.target="target",e.targetVariant="targetVariant",e.textBoxMultiple="textBoxMultiple",e.trayArrowDown="trayArrowDown",e.unfoldLessHorizontal="unfoldLessHorizontal",e.unfoldMoreHorizontal="unfoldMoreHorizontal",e.viewDayOutline="viewDayOutline",e.viewGridPlus="viewGridPlus",e.web="web",e.xml="xml",e))(Dt||{});const Ni={alertRhombus:Fc,alignHorizontalCenter:zc,alignHorizontalLeft:Uc,alignHorizontalRight:Wc,applicationBracketsOutline:qc,arrowDown:Yc,arrowRight:Gc,arrowULeftTop:Zc,arrowURightTop:Kc,borderAllVariant:Xc,borderRadius:Jc,borderStyle:Qc,cellphoneLink:ef,check:tf,checkBold:rf,checkboxBlank:nf,chevronUp:uf,chevronDown:of,chevronLeft:af,chevronRight:sf,close:lf,codeBraces:cf,cog:ff,contentCopy:df,contentSave:pf,delete:vf,dotsVertical:gf,email:hf,emailOutline:mf,eye:bf,eyedropperVariant:Of,eyeOff:yf,eyeOffOutline:_f,eyeOutline:wf,fire:Ef,flare:xf,floppy:Cf,folder:Sf,fullscreen:jf,gradientVertical:Af,helpCircle:Lf,image:Rf,information:Tf,informationVariant:Vf,layers:Mf,link:Pf,lock:Hf,lockOpenVariant:kf,menuDown:Df,newspaperVariantOutline:$f,paletteSwatch:Bf,panVertical:If,phone:Ff,plus:zf,plusBox:Uf,powerPlug:Wf,refresh:qf,rhombusOutline:Yf,tag:Gf,target:Zf,targetVariant:Kf,textBoxMultiple:Xf,trayArrowDown:Jf,unfoldLessHorizontal:Qf,unfoldMoreHorizontal:ed,viewDayOutline:td,viewGridPlus:rd,web:nd,xml:od},ob="gs-cmp-icon",wr=Ln(function({className:t,icon:r,size:n,rotate:o,horizontal:i,vertical:a}){var d;const s=(d=nb())==null?void 0:d.sdkCustomIcons,u=(s==null?void 0:s[r])||(Ni==null?void 0:Ni[r])||r,c=[i&&"scaleX(-1)",a&&"scaleY(-1)",o&&`rotate(${o}deg)`].filter(p=>!!p).join(" ");if(!u)return null;const l=Rr(ob,t);return u.startsWith("<svg")||u.startsWith("<?xml")?L.jsx(Gg,{className:l,style:{transform:c||void 0},svg:u,iconSize:n}):L.jsx(pd,{className:l,path:u,size:n,rotate:o,horizontal:i,vertical:a})});var yc=(e=>(e.dark="dark",e.light="light",e.auto="auto",e))(yc||{});const Da=new WeakMap,ib=(e,t)=>{Da.set(e,t)},ab=e=>{Da.delete(e)},Hi=e=>Da.get(e),ao=e=>{const t=e.target,r=t.closest(".tox"),n=t.matches(".ephox-snooker-resizer-bar");(r||n)&&e.stopPropagation()},wu=e=>{e.stopPropagation(),e.preventDefault()},sb=(e,t)=>{const r=e.getDoc(),n=e.getWin();if(t!=null&&t.event){const{event:o}=t,{clientX:i,clientY:a}=o;let s;if(r.caretRangeFromPoint)s=r.caretRangeFromPoint(i,a);else if(r.caretPositionFromPoint){const u=r.caretPositionFromPoint(i,a);s=r.createRange(),s==null||s.setStart(u.offsetNode,u.offset)}if(s){const u=n.getSelection();u==null||u.removeAllRanges(),u==null||u.addRange(s),e.selection.setRng(s)}}else e.execCommand("SelectAll")},ub=e=>{var c,l;const{el:t,editor:r,componentView:n}=e,o=r.runCommand(vr.getStateTheme),i=n.model,a={target:t,inline:!0,skin:(o==null?void 0:o.theme)===yc.dark?"oxide-dark":"oxide",menubar:!1,image_advtab:!0,paste_data_images:!0,statusbar:!1,branding:!1,forced_root_block:"div",plugins:"advlist autolink lists link image media table",toolbar_mode:"sliding",toolbar:"bold italic underline strikethrough forecolor backcolor alignleft aligncenter alignright alignjustify link image | fontfamily fontsize bullist numlist outdent indent table"},s=((l=(c=e.pluginOpts)==null?void 0:c.loadConfig)==null?void 0:l.call(c,{config:a,editor:r,componentView:n,component:i}))||{};return{...a,...s}},Ou=(e,t=document)=>new Promise((r,n)=>{const o=Array.isArray(e)?[...e]:[e],{head:i}=t,a=s=>{if(s.length){const u=t.createElement("script");u.src=s.shift(),u.onload=a.bind(null,s),u.onerror=n,i.appendChild(u)}else r()};a(o)}),lb="rteTinyMce",cb=function(e,t={}){const r={cdnScript:"https://cdn.jsdelivr.net/npm/tinymce@6.8.5/tinymce.min.js",...t},{cdnScript:n}=r,o=e.Canvas.events,i=async(u,c)=>{const l=u.ownerDocument,d=l.defaultView,p=c==null?void 0:c.view;if(!d||!p){console.warn("Missing required data",{win:d,componentView:p});return}const h=ub({el:u,editor:e,componentView:p,pluginOpts:r}),_=(await d.tinymce.init(h))[0];if(!_)return;const O=(await window.tinymce.init({...h,target:document.createElement("div")}))[0];return _.ui.show(),l.body.addEventListener("mousedown",ao),document.body.addEventListener("mousedown",ao),_.on("Change",()=>kc(u)),_.on("blur",()=>_.ui.show()),_.on("OpenWindow",function(){var C;const w=(C=l.querySelector(".tox-dialog"))==null?void 0:C.closest(".tox");w&&(w==null?void 0:w.ownerDocument)!==document&&(document.body.appendChild(w),_.once("CloseWindow",()=>{w&&w.ownerDocument===document&&l.body.appendChild(w)}))}),u.addEventListener("dragstart",wu,{capture:!0}),e.runCommand(vr.setStateContextMenu,{enabled:!1}),sb(_,c),{rteEditor:_,rteEditorShallow:O}},a=(u,c)=>{u.ownerDocument.body.removeEventListener("mousedown",ao),document.body.removeEventListener("mousedown",ao),u.removeEventListener("dragstart",wu,{capture:!0}),e.runCommand(vr.setStateContextMenu,{enabled:!0}),c.rteEditor.destroy(),c.rteEditorShallow.destroy()};e.on(o.frameLoad,async({window:u})=>{Ou(n,u.document)}),e.onReady(()=>{Ou(n,document)}),e.setCustomRte({parseContent:!0,async enable(u,c,l){const d=Hi(u);if(d)return d.rteEditor;const p=await i(u,l);return p&&ib(u,p),p==null?void 0:p.rteEditor},disable(u){const c=Hi(u);c&&(ab(u),a(u,c))},getContent(u){var l,d;const c=Hi(u);return c?(d=(l=c.rteEditor).getContent)==null?void 0:d.call(l):u.innerHTML}});const s=Dc(e,r.enableOnClick);Nc({editor:e,licenseKey:r.licenseKey,plan:Lr.startup,pluginName:lb,cleanup:()=>{e.RichTextEditor.customRte=void 0,s()}})},fb=Pc(cb);module.exports=fb;
|