@ws-ui/shared 0.3.8 → 0.3.9
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/README.md +24 -4
- package/dist/components/AppLoader.d.ts +5 -5
- package/dist/components/ControlledSwitch.d.ts +2 -2
- package/dist/components/Dialog.d.ts +1 -2
- package/dist/components/Incase/index.d.ts +1 -2
- package/dist/components/Modal/Button.d.ts +1 -2
- package/dist/components/Modal/Icon.d.ts +1 -2
- package/dist/components/Modal/index.d.ts +1 -2
- package/dist/components/Portal.d.ts +0 -1
- package/dist/components/Tips/components/CarouselTip.d.ts +1 -2
- package/dist/components/Tips/components/TextTip.d.ts +1 -2
- package/dist/components/Tips/components/VideoTip.d.ts +1 -2
- package/dist/components/Tips/components/index.d.ts +1 -2
- package/dist/components/Tips/index.d.ts +0 -1
- package/dist/components/Tips/provider.d.ts +1 -2
- package/dist/components/Toast.d.ts +1 -2
- package/dist/components/Tooltip.d.ts +1 -2
- package/dist/components/Tree/components/IndentLines.d.ts +0 -1
- package/dist/components/Tree/components/Switcher.d.ts +0 -1
- package/dist/components/Tree/components/Tree.d.ts +1 -2
- package/dist/components/Tree/components/TreeNode.d.ts +1 -2
- package/dist/components/Tree/index.d.ts +4 -5
- package/dist/components/Tree/interfaces.d.ts +0 -1
- package/dist/components/Tree/styled.d.ts +1 -2
- package/dist/constants.d.ts +0 -1
- package/dist/datasource-themes.d.ts +0 -1
- package/dist/declarations/datasources/datasource.d.ts +1 -1
- package/dist/hooks/use-didmounteffect.d.ts +0 -1
- package/dist/hooks/use-forwarded-ref.d.ts +1 -2
- package/dist/hooks/use-hotkeys.d.ts +1 -2
- package/dist/hooks/use-outside-click.d.ts +1 -1
- package/dist/hooks/use-state-ref.d.ts +1 -1
- package/dist/hooks/useDoubleClick.d.ts +1 -2
- package/dist/hooks/useIdentity.d.ts +1 -2
- package/dist/hooks/useStateObject.d.ts +0 -1
- package/dist/index.cjs.js +103 -75
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7524 -6819
- package/dist/index.es.js.map +1 -1
- package/dist/services/api.d.ts +3 -4
- package/dist/services/explorer.d.ts +1 -2
- package/dist/services/tracking.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/tailwind.preset.js +2 -1
- package/dist/types/api.d.ts +6 -4
- package/dist/types/modal.d.ts +4 -4
- package/dist/types/shared.d.ts +3 -4
- package/dist/types/webform-editor.d.ts +1 -2
- package/dist/utils/code.d.ts +0 -1
- package/dist/utils/common.d.ts +6 -6
- package/dist/utils/explorer.d.ts +0 -1
- package/dist/utils/parser.spec.d.ts +1 -0
- package/dist/utils/subjects.d.ts +1 -2
- package/dist/utils/validation.test.d.ts +1 -0
- package/dist/utils/waiter/waiter.test.d.ts +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +64 -4
- package/dist/package.json +0 -16
package/dist/index.cjs.js
CHANGED
|
@@ -1,64 +1,92 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var U_=Object.defineProperty;var H_=(e,t,r)=>t in e?U_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var wt=(e,t,r)=>(H_(e,typeof t!="symbol"?t+"":t,r),r),ml=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var X=(e,t,r)=>(ml(e,t,"read from private field"),r?r.call(e):t.get(e)),Wt=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},gt=(e,t,r,i)=>(ml(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r);var $n=(e,t,r)=>(ml(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),Qo=require("react-dom"),ac=require("@emotion/react");function Fv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const F=Fv(N),B_=Fv(Qo);var mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z_(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var sc={exports:{}},Ki={};/*
|
|
2
2
|
object-assign
|
|
3
3
|
(c) Sindre Sorhus
|
|
4
4
|
@license MIT
|
|
5
|
-
*/var gl,
|
|
5
|
+
*/var gl,Vp;function Dc(){if(Vp)return gl;Vp=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(l).map(function(h){return l[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return gl=a()?Object.assign:function(s,l){for(var c,d=i(s),p,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var w in c)t.call(c,w)&&(d[w]=c[w]);if(e){p=e(c);for(var S=0;S<p.length;S++)r.call(c,p[S])&&(d[p[S]]=c[p[S]])}}return d},gl}/** @license React v17.0.2
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
7
7
|
*
|
|
8
8
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var
|
|
12
|
+
*/var Xp;function q_(){if(Xp)return Ki;Xp=1,Dc();var e=N,t=60103;if(Ki.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var r=Symbol.for;t=r("react.element"),Ki.Fragment=r("react.fragment")}var i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(c,d,p){var h,w={},S=null,v=null;p!==void 0&&(S=""+p),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(v=d.ref);for(h in d)a.call(d,h)&&!s.hasOwnProperty(h)&&(w[h]=d[h]);if(c&&c.defaultProps)for(h in d=c.defaultProps,d)w[h]===void 0&&(w[h]=d[h]);return{$$typeof:t,type:c,key:S,ref:v,props:w,_owner:i.current}}return Ki.jsx=l,Ki.jsxs=l,Ki}var yl={};/** @license React v17.0.2
|
|
13
13
|
* react-jsx-runtime.development.js
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var
|
|
20
|
-
`+he+
|
|
21
|
-
`),
|
|
22
|
-
`),
|
|
23
|
-
`+
|
|
19
|
+
*/var Jp;function Z_(){return Jp||(Jp=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=N,r=Dc(),i=60103,a=60106;e.Fragment=60107;var s=60108,l=60114,c=60109,d=60110,p=60112,h=60113,w=60120,S=60115,v=60116,_=60121,g=60122,x=60117,C=60129,P=60131;if(typeof Symbol=="function"&&Symbol.for){var T=Symbol.for;i=T("react.element"),a=T("react.portal"),e.Fragment=T("react.fragment"),s=T("react.strict_mode"),l=T("react.profiler"),c=T("react.provider"),d=T("react.context"),p=T("react.forward_ref"),h=T("react.suspense"),w=T("react.suspense_list"),S=T("react.memo"),v=T("react.lazy"),_=T("react.block"),g=T("react.server.block"),x=T("react.fundamental"),T("react.scope"),T("react.opaque.id"),C=T("react.debug_trace_mode"),T("react.offscreen"),P=T("react.legacy_hidden")}var $=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function D(m){if(m===null||typeof m!="object")return null;var I=$&&m[$]||m[A];return typeof I=="function"?I:null}var H=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(m){{for(var I=arguments.length,W=new Array(I>1?I-1:0),K=1;K<I;K++)W[K-1]=arguments[K];V("error",m,W)}}function V(m,I,W){{var K=H.ReactDebugCurrentFrame,ce=K.getStackAddendum();ce!==""&&(I+="%s",W=W.concat([ce]));var ae=W.map(function(re){return""+re});ae.unshift("Warning: "+I),Function.prototype.apply.call(console[m],console,ae)}}var ee=!1;function ye(m){return!!(typeof m=="string"||typeof m=="function"||m===e.Fragment||m===l||m===C||m===s||m===h||m===w||m===P||ee||typeof m=="object"&&m!==null&&(m.$$typeof===v||m.$$typeof===S||m.$$typeof===c||m.$$typeof===d||m.$$typeof===p||m.$$typeof===x||m.$$typeof===_||m[0]===g))}function Re(m,I,W){var K=I.displayName||I.name||"";return m.displayName||(K!==""?W+"("+K+")":W)}function Ee(m){return m.displayName||"Context"}function se(m){if(m==null)return null;if(typeof m.tag=="number"&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case e.Fragment:return"Fragment";case a:return"Portal";case l:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case w:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case d:var I=m;return Ee(I)+".Consumer";case c:var W=m;return Ee(W._context)+".Provider";case p:return Re(m,m.render,"ForwardRef");case S:return se(m.type);case _:return se(m._render);case v:{var K=m,ce=K._payload,ae=K._init;try{return se(ae(ce))}catch{return null}}}return null}var Fe=0,be,Oe,Be,pt,Z,Y,pe;function oe(){}oe.__reactDisabledLog=!0;function fe(){{if(Fe===0){be=console.log,Oe=console.info,Be=console.warn,pt=console.error,Z=console.group,Y=console.groupCollapsed,pe=console.groupEnd;var m={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Fe++}}function de(){{if(Fe--,Fe===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:r({},m,{value:be}),info:r({},m,{value:Oe}),warn:r({},m,{value:Be}),error:r({},m,{value:pt}),group:r({},m,{value:Z}),groupCollapsed:r({},m,{value:Y}),groupEnd:r({},m,{value:pe})})}Fe<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=H.ReactCurrentDispatcher,he;function le(m,I,W){{if(he===void 0)try{throw Error()}catch(ce){var K=ce.stack.trim().match(/\n( *(at )?)/);he=K&&K[1]||""}return`
|
|
20
|
+
`+he+m}}var we=!1,Se;{var Ve=typeof WeakMap=="function"?WeakMap:Map;Se=new Ve}function J(m,I){if(!m||we)return"";{var W=Se.get(m);if(W!==void 0)return W}var K;we=!0;var ce=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=ue.current,ue.current=null,fe();try{if(I){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(ht){K=ht}Reflect.construct(m,[],re)}else{try{re.call()}catch(ht){K=ht}m.call(re.prototype)}}else{try{throw Error()}catch(ht){K=ht}m()}}catch(ht){if(ht&&K&&typeof ht.stack=="string"){for(var te=ht.stack.split(`
|
|
21
|
+
`),je=K.stack.split(`
|
|
22
|
+
`),_e=te.length-1,Ae=je.length-1;_e>=1&&Ae>=0&&te[_e]!==je[Ae];)Ae--;for(;_e>=1&&Ae>=0;_e--,Ae--)if(te[_e]!==je[Ae]){if(_e!==1||Ae!==1)do if(_e--,Ae--,Ae<0||te[_e]!==je[Ae]){var lt=`
|
|
23
|
+
`+te[_e].replace(" at new "," at ");return typeof m=="function"&&Se.set(m,lt),lt}while(_e>=1&&Ae>=0);break}}}finally{we=!1,ue.current=ae,de(),Error.prepareStackTrace=ce}var Yt=m?m.displayName||m.name:"",ni=Yt?le(Yt):"";return typeof m=="function"&&Se.set(m,ni),ni}function st(m,I,W){return J(m,!1)}function ut(m){var I=m.prototype;return!!(I&&I.isReactComponent)}function yt(m,I,W){if(m==null)return"";if(typeof m=="function")return J(m,ut(m));if(typeof m=="string")return le(m);switch(m){case h:return le("Suspense");case w:return le("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case p:return st(m.render);case S:return yt(m.type,I,W);case _:return st(m._render);case v:{var K=m,ce=K._payload,ae=K._init;try{return yt(ae(ce),I,W)}catch{}}}return""}var Gr={},At=H.ReactDebugCurrentFrame;function er(m){if(m){var I=m._owner,W=yt(m.type,m._source,I?I.type:null);At.setExtraStackFrame(W)}else At.setExtraStackFrame(null)}function Kn(m,I,W,K,ce){{var ae=Function.call.bind(Object.prototype.hasOwnProperty);for(var re in m)if(ae(m,re)){var te=void 0;try{if(typeof m[re]!="function"){var je=Error((K||"React class")+": "+W+" type `"+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[re]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}te=m[re](I,re,K,W,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_e){te=_e}te&&!(te instanceof Error)&&(er(ce),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",K||"React class",W,re,typeof te),er(null)),te instanceof Error&&!(te.message in Gr)&&(Gr[te.message]=!0,er(ce),j("Failed %s type: %s",W,te.message),er(null))}}}var et=H.ReactCurrentOwner,rt=Object.prototype.hasOwnProperty,yr={key:!0,ref:!0,__self:!0,__source:!0},sr,Lr,Nt;Nt={};function xn(m){if(rt.call(m,"ref")){var I=Object.getOwnPropertyDescriptor(m,"ref").get;if(I&&I.isReactWarning)return!1}return m.ref!==void 0}function wr(m){if(rt.call(m,"key")){var I=Object.getOwnPropertyDescriptor(m,"key").get;if(I&&I.isReactWarning)return!1}return m.key!==void 0}function ur(m,I){if(typeof m.ref=="string"&&et.current&&I&&et.current.stateNode!==I){var W=se(et.current.type);Nt[W]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',se(et.current.type),m.ref),Nt[W]=!0)}}function Yn(m,I){{var W=function(){sr||(sr=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};W.isReactWarning=!0,Object.defineProperty(m,"key",{get:W,configurable:!0})}}function Vn(m,I){{var W=function(){Lr||(Lr=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};W.isReactWarning=!0,Object.defineProperty(m,"ref",{get:W,configurable:!0})}}var Xn=function(m,I,W,K,ce,ae,re){var te={$$typeof:i,type:m,key:I,ref:W,props:re,_owner:ae};return te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.defineProperty(te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te};function Jn(m,I,W,K,ce){{var ae,re={},te=null,je=null;W!==void 0&&(te=""+W),wr(I)&&(te=""+I.key),xn(I)&&(je=I.ref,ur(I,ce));for(ae in I)rt.call(I,ae)&&!yr.hasOwnProperty(ae)&&(re[ae]=I[ae]);if(m&&m.defaultProps){var _e=m.defaultProps;for(ae in _e)re[ae]===void 0&&(re[ae]=_e[ae])}if(te||je){var Ae=typeof m=="function"?m.displayName||m.name||"Unknown":m;te&&Yn(re,Ae),je&&Vn(re,Ae)}return Xn(m,te,je,ce,K,et.current,re)}}var $r=H.ReactCurrentOwner,un=H.ReactDebugCurrentFrame;function It(m){if(m){var I=m._owner,W=yt(m.type,m._source,I?I.type:null);un.setExtraStackFrame(W)}else un.setExtraStackFrame(null)}var Dr;Dr=!1;function Nr(m){return typeof m=="object"&&m!==null&&m.$$typeof===i}function Qn(){{if($r.current){var m=se($r.current.type);if(m)return`
|
|
24
24
|
|
|
25
|
-
Check the render method of \``+
|
|
25
|
+
Check the render method of \``+m+"`."}return""}}function co(m){{if(m!==void 0){var I=m.fileName.replace(/^.*[\\\/]/,""),W=m.lineNumber;return`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+Q+">.")}return q}}function eo(A,q){{if(!A._store||A._store.validated||A.key!=null)return;A._store.validated=!0;var Q=ra(q);if(ta[Q])return;ta[Q]=!0;var pe="";A&&A._owner&&A._owner!==zn.current&&(pe=" It was passed a child from "+ve(A._owner.type)+"."),Nr(A),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Q,pe),Nr(null)}}function na(A,q){{if(typeof A!="object")return;if(Array.isArray(A))for(var Q=0;Q<A.length;Q++){var pe=A[Q];Hn(pe)&&eo(pe,q)}else if(Hn(A))A._store&&(A._store.validated=!0);else if(A){var He=D(A);if(typeof He=="function"&&He!==A.entries)for(var Ue=He.call(A),Me;!(Me=Ue.next()).done;)Hn(Me.value)&&eo(Me.value,q)}}}function tu(A){{var q=A.type;if(q==null||typeof q=="string")return;var Q;if(typeof q=="function")Q=q.propTypes;else if(typeof q=="object"&&(q.$$typeof===p||q.$$typeof===v))Q=q.propTypes;else return;if(Q){var pe=ve(q);Yi(Q,A.props,"prop",pe,A)}else if(q.PropTypes!==void 0&&!Bn){Bn=!0;var He=ve(q);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",He||"Unknown")}typeof q.getDefaultProps=="function"&&!q.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ru(A){{for(var q=Object.keys(A.props),Q=0;Q<q.length;Q++){var pe=q[Q];if(pe!=="children"&&pe!=="key"){Nr(A),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",pe),Nr(null);break}}A.ref!==null&&(Nr(A),j("Invalid attribute `ref` supplied to `React.Fragment`."),Nr(null))}}function ia(A,q,Q,pe,He,Ue){{var Me=ie(A);if(!Me){var Re="";(A===void 0||typeof A=="object"&&A!==null&&Object.keys(A).length===0)&&(Re+=" 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 Ot=eu();Ot?Re+=Ot:Re+=ea();var et;A===null?et="null":Array.isArray(A)?et="array":A!==void 0&&A.$$typeof===i?(et="<"+(ve(A.type)||"Unknown")+" />",Re=" Did you accidentally export a JSX literal instead of a component?"):et=typeof A,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",et,Re)}var nt=Qi(A,q,Q,He,Ue);if(nt==null)return nt;if(Me){var cr=q.children;if(cr!==void 0)if(pe)if(Array.isArray(cr)){for(var gn=0;gn<cr.length;gn++)na(cr[gn],A);Object.freeze&&Object.freeze(cr)}else j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else na(cr,A)}return A===e.Fragment?ru(nt):tu(nt),nt}}function oa(A,q,Q){return ia(A,q,Q,!0)}function nu(A,q,Q){return ia(A,q,Q,!1)}var iu=nu,ou=oa;e.jsx=iu,e.jsxs=ou}()}(yl)),yl}process.env.NODE_ENV==="production"?oc.exports=Dx():oc.exports=kx();var $=oc.exports;const Cv=({children:e})=>Wo.createPortal(e,document.querySelector("body"));var Jp=function(t){return t.reduce(function(r,i){var a=i[0],s=i[1];return r[a]=s,r},{})},Qp=typeof window<"u"&&window.document&&window.document.createElement?C.useLayoutEffect:C.useEffect,Jt="top",xr="bottom",_r="right",Qt="left",Fc="auto",Uo=[Jt,xr,_r,Qt],Bi="start",Po="end",Nx="clippingParents",Rv="viewport",go="popper",jx="reference",eh=Uo.reduce(function(e,t){return e.concat([t+"-"+Bi,t+"-"+Po])},[]),Pv=[].concat(Uo,[Fc]).reduce(function(e,t){return e.concat([t,t+"-"+Bi,t+"-"+Po])},[]),Wx="beforeRead",Ux="read",zx="afterRead",Bx="beforeMain",Hx="main",Zx="afterMain",qx="beforeWrite",Gx="write",Kx="afterWrite",Yx=[Wx,Ux,zx,Bx,Hx,Zx,qx,Gx,Kx];function Kr(e){return e?(e.nodeName||"").toLowerCase():null}function ur(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function fi(e){var t=ur(e).Element;return e instanceof t||e instanceof Element}function Er(e){var t=ur(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Dc(e){if(typeof ShadowRoot>"u")return!1;var t=ur(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Vx(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},s=t.elements[r];!Er(s)||!Kr(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){var c=a[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function Xx(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(i){var a=t.elements[i],s=t.attributes[i]||{},l=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=l.reduce(function(d,p){return d[p]="",d},{});!Er(a)||!Kr(a)||(Object.assign(a.style,c),Object.keys(s).forEach(function(d){a.removeAttribute(d)}))})}}const Jx={name:"applyStyles",enabled:!0,phase:"write",fn:Vx,effect:Xx,requires:["computeStyles"]};function Gr(e){return e.split("-")[0]}var ui=Math.max,xs=Math.min,Hi=Math.round;function ac(){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 Iv(){return!/^((?!chrome|android).)*safari/i.test(ac())}function Zi(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,s=1;t&&Er(e)&&(a=e.offsetWidth>0&&Hi(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Hi(i.height)/e.offsetHeight||1);var l=fi(e)?ur(e):window,c=l.visualViewport,d=!Iv()&&r,p=(i.left+(d&&c?c.offsetLeft:0))/a,h=(i.top+(d&&c?c.offsetTop:0))/s,b=i.width/a,v=i.height/s;return{width:b,height:v,top:h,right:p+b,bottom:h+v,left:p,x:p,y:h}}function kc(e){var t=Zi(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function Mv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Dc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function vn(e){return ur(e).getComputedStyle(e)}function Qx(e){return["table","td","th"].indexOf(Kr(e))>=0}function Nn(e){return((fi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fs(e){return Kr(e)==="html"?e:e.assignedSlot||e.parentNode||(Dc(e)?e.host:null)||Nn(e)}function th(e){return!Er(e)||vn(e).position==="fixed"?null:e.offsetParent}function e_(e){var t=/firefox/i.test(ac()),r=/Trident/i.test(ac());if(r&&Er(e)){var i=vn(e);if(i.position==="fixed")return null}var a=Fs(e);for(Dc(a)&&(a=a.host);Er(a)&&["html","body"].indexOf(Kr(a))<0;){var s=vn(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function zo(e){for(var t=ur(e),r=th(e);r&&Qx(r)&&vn(r).position==="static";)r=th(r);return r&&(Kr(r)==="html"||Kr(r)==="body"&&vn(r).position==="static")?t:r||e_(e)||t}function Nc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oo(e,t,r){return ui(e,xs(t,r))}function t_(e,t,r){var i=Oo(e,t,r);return i>r?r:i}function Lv(){return{top:0,right:0,bottom:0,left:0}}function $v(e){return Object.assign({},Lv(),e)}function Fv(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var r_=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,$v(typeof t!="number"?t:Fv(t,Uo))};function n_(e){var t,r=e.state,i=e.name,a=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Gr(r.placement),d=Nc(c),p=[Qt,_r].indexOf(c)>=0,h=p?"height":"width";if(!(!s||!l)){var b=r_(a.padding,r),v=kc(s),w=d==="y"?Jt:Qt,x=d==="y"?xr:_r,g=r.rects.reference[h]+r.rects.reference[d]-l[d]-r.rects.popper[h],E=l[d]-r.rects.reference[d],I=zo(s),P=I?d==="y"?I.clientHeight||0:I.clientWidth||0:0,R=g/2-E/2,F=b[w],O=P-v[h]-b[x],D=P/2-v[h]/2+R,U=Oo(F,D,O),j=d;r.modifiersData[i]=(t={},t[j]=U,t.centerOffset=U-D,t)}}function i_(e){var t=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Mv(t.elements.popper,a)&&(t.elements.arrow=a))}const o_={name:"arrow",enabled:!0,phase:"main",fn:n_,effect:i_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qi(e){return e.split("-")[1]}var a_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function s_(e,t){var r=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:Hi(r*a)/a||0,y:Hi(i*a)/a||0}}function rh(e){var t,r=e.popper,i=e.popperRect,a=e.placement,s=e.variation,l=e.offsets,c=e.position,d=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,b=e.isFixed,v=l.x,w=v===void 0?0:v,x=l.y,g=x===void 0?0:x,E=typeof h=="function"?h({x:w,y:g}):{x:w,y:g};w=E.x,g=E.y;var I=l.hasOwnProperty("x"),P=l.hasOwnProperty("y"),R=Qt,F=Jt,O=window;if(p){var D=zo(r),U="clientHeight",j="clientWidth";if(D===ur(r)&&(D=Nn(r),vn(D).position!=="static"&&c==="absolute"&&(U="scrollHeight",j="scrollWidth")),D=D,a===Jt||(a===Qt||a===_r)&&s===Po){F=xr;var G=b&&D===O&&O.visualViewport?O.visualViewport.height:D[U];g-=G-i.height,g*=d?1:-1}if(a===Qt||(a===Jt||a===xr)&&s===Po){R=_r;var J=b&&D===O&&O.visualViewport?O.visualViewport.width:D[j];w-=J-i.width,w*=d?1:-1}}var ie=Object.assign({position:c},p&&a_),xe=h===!0?s_({x:w,y:g},ur(r)):{x:w,y:g};if(w=xe.x,g=xe.y,d){var me;return Object.assign({},ie,(me={},me[F]=P?"0":"",me[R]=I?"0":"",me.transform=(O.devicePixelRatio||1)<=1?"translate("+w+"px, "+g+"px)":"translate3d("+w+"px, "+g+"px, 0)",me))}return Object.assign({},ie,(t={},t[F]=P?g+"px":"",t[R]=I?w+"px":"",t.transform="",t))}function u_(e){var t=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,s=r.adaptive,l=s===void 0?!0:s,c=r.roundOffsets,d=c===void 0?!0:c,p={placement:Gr(t.placement),variation:qi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,rh(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rh(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const l_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:u_,data:{}};var Ya={passive:!0};function c_(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,s=a===void 0?!0:a,l=i.resize,c=l===void 0?!0:l,d=ur(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(h){h.addEventListener("scroll",r.update,Ya)}),c&&d.addEventListener("resize",r.update,Ya),function(){s&&p.forEach(function(h){h.removeEventListener("scroll",r.update,Ya)}),c&&d.removeEventListener("resize",r.update,Ya)}}const f_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:c_,data:{}};var d_={left:"right",right:"left",bottom:"top",top:"bottom"};function hs(e){return e.replace(/left|right|bottom|top/g,function(t){return d_[t]})}var p_={start:"end",end:"start"};function nh(e){return e.replace(/start|end/g,function(t){return p_[t]})}function jc(e){var t=ur(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Wc(e){return Zi(Nn(e)).left+jc(e).scrollLeft}function h_(e,t){var r=ur(e),i=Nn(e),a=r.visualViewport,s=i.clientWidth,l=i.clientHeight,c=0,d=0;if(a){s=a.width,l=a.height;var p=Iv();(p||!p&&t==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}return{width:s,height:l,x:c+Wc(e),y:d}}function v_(e){var t,r=Nn(e),i=jc(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=ui(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=ui(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-i.scrollLeft+Wc(e),d=-i.scrollTop;return vn(a||r).direction==="rtl"&&(c+=ui(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:l,x:c,y:d}}function Uc(e){var t=vn(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function Dv(e){return["html","body","#document"].indexOf(Kr(e))>=0?e.ownerDocument.body:Er(e)&&Uc(e)?e:Dv(Fs(e))}function Ao(e,t){var r;t===void 0&&(t=[]);var i=Dv(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=ur(i),l=a?[s].concat(s.visualViewport||[],Uc(i)?i:[]):i,c=t.concat(l);return a?c:c.concat(Ao(Fs(l)))}function sc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function m_(e,t){var r=Zi(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 ih(e,t,r){return t===Rv?sc(h_(e,r)):fi(t)?m_(t,r):sc(v_(Nn(e)))}function g_(e){var t=Ao(Fs(e)),r=["absolute","fixed"].indexOf(vn(e).position)>=0,i=r&&Er(e)?zo(e):e;return fi(i)?t.filter(function(a){return fi(a)&&Mv(a,i)&&Kr(a)!=="body"}):[]}function y_(e,t,r,i){var a=t==="clippingParents"?g_(e):[].concat(t),s=[].concat(a,[r]),l=s[0],c=s.reduce(function(d,p){var h=ih(e,p,i);return d.top=ui(h.top,d.top),d.right=xs(h.right,d.right),d.bottom=xs(h.bottom,d.bottom),d.left=ui(h.left,d.left),d},ih(e,l,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function kv(e){var t=e.reference,r=e.element,i=e.placement,a=i?Gr(i):null,s=i?qi(i):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,d;switch(a){case Jt:d={x:l,y:t.y-r.height};break;case xr:d={x:l,y:t.y+t.height};break;case _r:d={x:t.x+t.width,y:c};break;case Qt:d={x:t.x-r.width,y:c};break;default:d={x:t.x,y:t.y}}var p=a?Nc(a):null;if(p!=null){var h=p==="y"?"height":"width";switch(s){case Bi:d[p]=d[p]-(t[h]/2-r[h]/2);break;case Po:d[p]=d[p]+(t[h]/2-r[h]/2);break}}return d}function Io(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=i===void 0?e.placement:i,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,d=c===void 0?Nx:c,p=r.rootBoundary,h=p===void 0?Rv:p,b=r.elementContext,v=b===void 0?go:b,w=r.altBoundary,x=w===void 0?!1:w,g=r.padding,E=g===void 0?0:g,I=$v(typeof E!="number"?E:Fv(E,Uo)),P=v===go?jx:go,R=e.rects.popper,F=e.elements[x?P:v],O=y_(fi(F)?F:F.contextElement||Nn(e.elements.popper),d,h,l),D=Zi(e.elements.reference),U=kv({reference:D,element:R,strategy:"absolute",placement:a}),j=sc(Object.assign({},R,U)),G=v===go?j:D,J={top:O.top-G.top+I.top,bottom:G.bottom-O.bottom+I.bottom,left:O.left-G.left+I.left,right:G.right-O.right+I.right},ie=e.modifiersData.offset;if(v===go&&ie){var xe=ie[a];Object.keys(J).forEach(function(me){var ve=[_r,xr].indexOf(me)>=0?1:-1,$e=[Jt,xr].indexOf(me)>=0?"y":"x";J[me]+=xe[$e]*ve})}return J}function w_(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,s=r.rootBoundary,l=r.padding,c=r.flipVariations,d=r.allowedAutoPlacements,p=d===void 0?Pv:d,h=qi(i),b=h?c?eh:eh.filter(function(x){return qi(x)===h}):Uo,v=b.filter(function(x){return p.indexOf(x)>=0});v.length===0&&(v=b);var w=v.reduce(function(x,g){return x[g]=Io(e,{placement:g,boundary:a,rootBoundary:s,padding:l})[Gr(g)],x},{});return Object.keys(w).sort(function(x,g){return w[x]-w[g]})}function b_(e){if(Gr(e)===Fc)return[];var t=hs(e);return[nh(e),t,nh(t)]}function S_(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,c=l===void 0?!0:l,d=r.fallbackPlacements,p=r.padding,h=r.boundary,b=r.rootBoundary,v=r.altBoundary,w=r.flipVariations,x=w===void 0?!0:w,g=r.allowedAutoPlacements,E=t.options.placement,I=Gr(E),P=I===E,R=d||(P||!x?[hs(E)]:b_(E)),F=[E].concat(R).reduce(function(te,le){return te.concat(Gr(le)===Fc?w_(t,{placement:le,boundary:h,rootBoundary:b,padding:p,flipVariations:x,allowedAutoPlacements:g}):le)},[]),O=t.rects.reference,D=t.rects.popper,U=new Map,j=!0,G=F[0],J=0;J<F.length;J++){var ie=F[J],xe=Gr(ie),me=qi(ie)===Bi,ve=[Jt,xr].indexOf(xe)>=0,$e=ve?"width":"height",ye=Io(t,{placement:ie,boundary:h,rootBoundary:b,altBoundary:v,padding:p}),_e=ve?me?_r:Qt:me?xr:Jt;O[$e]>D[$e]&&(_e=hs(_e));var qe=hs(_e),St=[];if(s&&St.push(ye[xe]<=0),c&&St.push(ye[_e]<=0,ye[qe]<=0),St.every(function(te){return te})){G=ie,j=!1;break}U.set(ie,St)}if(j)for(var H=x?3:1,K=function(le){var ae=F.find(function(he){var se=U.get(he);if(se)return se.slice(0,le).every(function(we){return we})});if(ae)return G=ae,"break"},oe=H;oe>0;oe--){var de=K(oe);if(de==="break")break}t.placement!==G&&(t.modifiersData[i]._skip=!0,t.placement=G,t.reset=!0)}}const E_={name:"flip",enabled:!0,phase:"main",fn:S_,requiresIfExists:["offset"],data:{_skip:!1}};function oh(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 ah(e){return[Jt,_r,xr,Qt].some(function(t){return e[t]>=0})}function x_(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,l=Io(t,{elementContext:"reference"}),c=Io(t,{altBoundary:!0}),d=oh(l,i),p=oh(c,a,s),h=ah(d),b=ah(p);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":b})}const __={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:x_};function O_(e,t,r){var i=Gr(e),a=[Qt,Jt].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*a,[Qt,_r].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}function A_(e){var t=e.state,r=e.options,i=e.name,a=r.offset,s=a===void 0?[0,0]:a,l=Pv.reduce(function(h,b){return h[b]=O_(b,t.rects,s),h},{}),c=l[t.placement],d=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[i]=l}const T_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:A_};function C_(e){var t=e.state,r=e.name;t.modifiersData[r]=kv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const R_={name:"popperOffsets",enabled:!0,phase:"read",fn:C_,data:{}};function P_(e){return e==="x"?"y":"x"}function I_(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,c=l===void 0?!1:l,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,b=r.padding,v=r.tether,w=v===void 0?!0:v,x=r.tetherOffset,g=x===void 0?0:x,E=Io(t,{boundary:d,rootBoundary:p,padding:b,altBoundary:h}),I=Gr(t.placement),P=qi(t.placement),R=!P,F=Nc(I),O=P_(F),D=t.modifiersData.popperOffsets,U=t.rects.reference,j=t.rects.popper,G=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,J=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),ie=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,xe={x:0,y:0};if(D){if(s){var me,ve=F==="y"?Jt:Qt,$e=F==="y"?xr:_r,ye=F==="y"?"height":"width",_e=D[F],qe=_e+E[ve],St=_e-E[$e],H=w?-j[ye]/2:0,K=P===Bi?U[ye]:j[ye],oe=P===Bi?-j[ye]:-U[ye],de=t.elements.arrow,te=w&&de?kc(de):{width:0,height:0},le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Lv(),ae=le[ve],he=le[$e],se=Oo(0,U[ye],te[ye]),we=R?U[ye]/2-H-se-ae-J.mainAxis:K-se-ae-J.mainAxis,Se=R?-U[ye]/2+H+se+he+J.mainAxis:oe+se+he+J.mainAxis,Ye=t.elements.arrow&&zo(t.elements.arrow),V=Ye?F==="y"?Ye.clientTop||0:Ye.clientLeft||0:0,ht=(me=ie==null?void 0:ie[F])!=null?me:0,ct=_e+we-ht-V,Wt=_e+Se-ht,Un=Oo(w?xs(qe,ct):qe,_e,w?ui(St,Wt):St);D[F]=Un,xe[F]=Un-_e}if(c){var Ut,Jr=F==="x"?Jt:Qt,Yi=F==="x"?xr:_r,vt=D[O],ft=O==="y"?"height":"width",Fr=vt+E[Jr],Dr=vt-E[Yi],mn=[Jt,Qt].indexOf(I)!==-1,lr=(Ut=ie==null?void 0:ie[O])!=null?Ut:0,yi=mn?Fr:vt-U[ft]-j[ft]-lr+J.altAxis,kr=mn?vt+U[ft]+j[ft]-lr-J.altAxis:Dr,Or=w&&mn?t_(yi,vt,kr):Oo(w?yi:Fr,vt,w?kr:Dr);D[O]=Or,xe[O]=Or-vt}t.modifiersData[i]=xe}}const M_={name:"preventOverflow",enabled:!0,phase:"main",fn:I_,requiresIfExists:["offset"]};function L_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $_(e){return e===ur(e)||!Er(e)?jc(e):L_(e)}function F_(e){var t=e.getBoundingClientRect(),r=Hi(t.width)/e.offsetWidth||1,i=Hi(t.height)/e.offsetHeight||1;return r!==1||i!==1}function D_(e,t,r){r===void 0&&(r=!1);var i=Er(t),a=Er(t)&&F_(t),s=Nn(t),l=Zi(e,a,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&((Kr(t)!=="body"||Uc(s))&&(c=$_(t)),Er(t)?(d=Zi(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Wc(s))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function k_(e){var t=new Map,r=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function a(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var d=t.get(c);d&&a(d)}}),i.push(s)}return e.forEach(function(s){r.has(s.name)||a(s)}),i}function N_(e){var t=k_(e);return Yx.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function j_(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function W_(e){var t=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var sh={placement:"bottom",modifiers:[],strategy:"absolute"};function uh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function U_(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,s=a===void 0?sh:a;return function(c,d,p){p===void 0&&(p=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},sh,s),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},b=[],v=!1,w={state:h,setOptions:function(I){var P=typeof I=="function"?I(h.options):I;g(),h.options=Object.assign({},s,h.options,P),h.scrollParents={reference:fi(c)?Ao(c):c.contextElement?Ao(c.contextElement):[],popper:Ao(d)};var R=N_(W_([].concat(i,h.options.modifiers)));return h.orderedModifiers=R.filter(function(F){return F.enabled}),x(),w.update()},forceUpdate:function(){if(!v){var I=h.elements,P=I.reference,R=I.popper;if(uh(P,R)){h.rects={reference:D_(P,zo(R),h.options.strategy==="fixed"),popper:kc(R)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(J){return h.modifiersData[J.name]=Object.assign({},J.data)});for(var F=0;F<h.orderedModifiers.length;F++){if(h.reset===!0){h.reset=!1,F=-1;continue}var O=h.orderedModifiers[F],D=O.fn,U=O.options,j=U===void 0?{}:U,G=O.name;typeof D=="function"&&(h=D({state:h,options:j,name:G,instance:w})||h)}}}},update:j_(function(){return new Promise(function(E){w.forceUpdate(),E(h)})}),destroy:function(){g(),v=!0}};if(!uh(c,d))return w;w.setOptions(p).then(function(E){!v&&p.onFirstUpdate&&p.onFirstUpdate(E)});function x(){h.orderedModifiers.forEach(function(E){var I=E.name,P=E.options,R=P===void 0?{}:P,F=E.effect;if(typeof F=="function"){var O=F({state:h,name:I,instance:w,options:R}),D=function(){};b.push(O||D)}})}function g(){b.forEach(function(E){return E()}),b=[]}return w}}var z_=[f_,R_,l_,Jx,T_,E_,M_,o_,__],B_=U_({defaultModifiers:z_}),H_=typeof Element<"u",Z_=typeof Map=="function",q_=typeof Set=="function",G_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function vs(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,i,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!vs(e[i],t[i]))return!1;return!0}var s;if(Z_&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;for(s=e.entries();!(i=s.next()).done;)if(!vs(i.value[1],t.get(i.value[0])))return!1;return!0}if(q_&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(G_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;if(H_&&e instanceof Element)return!1;for(i=r;i--!==0;)if(!((a[i]==="_owner"||a[i]==="__v"||a[i]==="__o")&&e.$$typeof)&&!vs(e[a[i]],t[a[i]]))return!1;return!0}return e!==e&&t!==t}var K_=function(t,r){try{return vs(t,r)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const Y_=Lc(K_);var V_=[],Nv=function(t,r,i){i===void 0&&(i={});var a=C.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||V_},l=C.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],d=l[1],p=C.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(w){var x=w.state,g=Object.keys(x.elements);$x.flushSync(function(){d({styles:Jp(g.map(function(E){return[E,x.styles[E]||{}]})),attributes:Jp(g.map(function(E){return[E,x.attributes[E]]}))})})},requires:["computeStyles"]}},[]),h=C.useMemo(function(){var v={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[p,{name:"applyStyles",enabled:!1}])};return Y_(a.current,v)?a.current||v:(a.current=v,v)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,p]),b=C.useRef();return Qp(function(){b.current&&b.current.setOptions(h)},[h]),Qp(function(){if(!(t==null||r==null)){var v=i.createPopper||B_,w=v(t,r,h);return b.current=w,function(){w.destroy(),b.current=null}}},[t,r,i.createPopper]),{state:b.current?b.current.state:null,styles:c.styles,attributes:c.attributes,update:b.current?b.current.update:null,forceUpdate:b.current?b.current.forceUpdate:null}};const jv=e=>$.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Wv=k.forwardRef(({children:e,style:t,attributes:r},i)=>$.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),X_=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:a})=>{const[s,l]=k.useState(null),{styles:c,attributes:d}=Nv(e,s,{placement:t||"bottom-start"}),p=k.useCallback(()=>{a&&a()},[a]);return r?$.jsxs(Cv,{children:[$.jsx(jv,{onClick:()=>p()}),$.jsx(Wv,{ref:l,style:c.popper,attributes:d.popper,children:i})]}):null},J_=e=>$.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:$.jsx("path",{d:"M8.82 19.748c.001.245.075.486.214.69l.38 1.004c.117.172.573.312.758.41.185.097.391.148.601.148h2.454c.21 0 .417-.05.601-.148.185-.098.621-.238.737-.41l.402-1.003c.138-.205.213-.445.213-.691l.001-1.498H8.82l.002 1.498ZM5 8.875c0 1.733.654 3.314 1.732 4.522.658.737 1.685 2.275 2.077 3.573l.004.03h6.374l.004-.03c.392-1.298 1.42-2.836 2.076-3.573A6.766 6.766 0 0 0 19 8.875C19 5.07 15.854 1.988 11.978 2 7.921 2.012 5 5.241 5 8.875Z",fill:"currentColor"})}),Q_=e=>$.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:$.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),wl=e=>$.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:$.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),uc=e=>$.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),eO=e=>$.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[$.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),Uv=e=>$.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),$.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),tO=e=>$.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:$.jsx("path",{d:"M18.797 12.299a.524.524 0 0 0 0-.726l-2.349-2.487-.007.008L9.856 2.12a.58.58 0 0 0-.835 0L7.089 4.166a.524.524 0 0 0 0 .726l6.66 7.051-6.66 7.053a.524.524 0 0 0 0 .725l1.932 2.045a.58.58 0 0 0 .835 0l8.941-9.467Z",fill:"currentColor"})}),rO=e=>$.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[$.jsx("path",{fill:"#fff",d:"M8 5h8v14H8z"}),$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor"})]}),nO=e=>$.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),zc=e=>$.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:$.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})});var zv={exports:{}};/*!
|
|
27
|
+
Check your code at `+I+":"+W+"."}return""}}var ei={};function Mi(m){{var I=Qn();if(!I){var W=typeof m=="string"?m:m.displayName||m.name;W&&(I=`
|
|
28
|
+
|
|
29
|
+
Check the top-level render call using <`+W+">.")}return I}}function On(m,I){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var W=Mi(I);if(ei[W])return;ei[W]=!0;var K="";m&&m._owner&&m._owner!==$r.current&&(K=" It was passed a child from "+se(m._owner.type)+"."),It(m),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',W,K),It(null)}}function ti(m,I){{if(typeof m!="object")return;if(Array.isArray(m))for(var W=0;W<m.length;W++){var K=m[W];Nr(K)&&On(K,I)}else if(Nr(m))m._store&&(m._store.validated=!0);else if(m){var ce=D(m);if(typeof ce=="function"&&ce!==m.entries)for(var ae=ce.call(m),re;!(re=ae.next()).done;)Nr(re.value)&&On(re.value,I)}}}function fo(m){{var I=m.type;if(I==null||typeof I=="string")return;var W;if(typeof I=="function")W=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===p||I.$$typeof===S))W=I.propTypes;else return;if(W){var K=se(I);Kn(W,m.props,"prop",K,m)}else if(I.PropTypes!==void 0&&!Dr){Dr=!0;var ce=se(I);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ce||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function po(m){{for(var I=Object.keys(m.props),W=0;W<I.length;W++){var K=I[W];if(K!=="children"&&K!=="key"){It(m),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",K),It(null);break}}m.ref!==null&&(It(m),j("Invalid attribute `ref` supplied to `React.Fragment`."),It(null))}}function ri(m,I,W,K,ce,ae){{var re=ye(m);if(!re){var te="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(te+=" 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 je=co(ce);je?te+=je:te+=Qn();var _e;m===null?_e="null":Array.isArray(m)?_e="array":m!==void 0&&m.$$typeof===i?(_e="<"+(se(m.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):_e=typeof m,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_e,te)}var Ae=Jn(m,I,W,ce,ae);if(Ae==null)return Ae;if(re){var lt=I.children;if(lt!==void 0)if(K)if(Array.isArray(lt)){for(var Yt=0;Yt<lt.length;Yt++)ti(lt[Yt],m);Object.freeze&&Object.freeze(lt)}else j("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 ti(lt,m)}return m===e.Fragment?po(Ae):fo(Ae),Ae}}function Fi(m,I,W){return ri(m,I,W,!0)}function ho(m,I,W){return ri(m,I,W,!1)}var vo=ho,mo=Fi;e.jsx=vo,e.jsxs=mo}()}(yl)),yl}process.env.NODE_ENV==="production"?sc.exports=q_():sc.exports=Z_();var k=sc.exports;const Lv=({children:e})=>Qo.createPortal(e,document.querySelector("body"));var Qp=function(t){return t.reduce(function(r,i){var a=i[0],s=i[1];return r[a]=s,r},{})},eh=typeof window<"u"&&window.document&&window.document.createElement?F.useLayoutEffect:F.useEffect,or="top",Mr="bottom",Fr="right",ar="left",Nc="auto",ea=[or,Mr,Fr,ar],io="start",Ho="end",G_="clippingParents",$v="viewport",Mo="popper",K_="reference",th=ea.reduce(function(e,t){return e.concat([t+"-"+io,t+"-"+Ho])},[]),Dv=[].concat(ea,[Nc]).reduce(function(e,t){return e.concat([t,t+"-"+io,t+"-"+Ho])},[]),Y_="beforeRead",V_="read",X_="afterRead",J_="beforeMain",Q_="main",ex="afterMain",tx="beforeWrite",rx="write",nx="afterWrite",ix=[Y_,V_,X_,J_,Q_,ex,tx,rx,nx];function nn(e){return e?(e.nodeName||"").toLowerCase():null}function gr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xi(e){var t=gr(e).Element;return e instanceof t||e instanceof Element}function Ir(e){var t=gr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function kc(e){if(typeof ShadowRoot>"u")return!1;var t=gr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ox(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},s=t.elements[r];!Ir(s)||!nn(s)||(Object.assign(s.style,i),Object.keys(a).forEach(function(l){var c=a[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function ax(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(i){var a=t.elements[i],s=t.attributes[i]||{},l=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=l.reduce(function(d,p){return d[p]="",d},{});!Ir(a)||!nn(a)||(Object.assign(a.style,c),Object.keys(s).forEach(function(d){a.removeAttribute(d)}))})}}const sx={name:"applyStyles",enabled:!0,phase:"write",fn:ox,effect:ax,requires:["computeStyles"]};function rn(e){return e.split("-")[0]}var Si=Math.max,Ts=Math.min,oo=Math.round;function uc(){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 Nv(){return!/^((?!chrome|android).)*safari/i.test(uc())}function ao(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,s=1;t&&Ir(e)&&(a=e.offsetWidth>0&&oo(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&oo(i.height)/e.offsetHeight||1);var l=xi(e)?gr(e):window,c=l.visualViewport,d=!Nv()&&r,p=(i.left+(d&&c?c.offsetLeft:0))/a,h=(i.top+(d&&c?c.offsetTop:0))/s,w=i.width/a,S=i.height/s;return{width:w,height:S,top:h,right:p+w,bottom:h+S,left:p,x:p,y:h}}function jc(e){var t=ao(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function kv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&kc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function _n(e){return gr(e).getComputedStyle(e)}function ux(e){return["table","td","th"].indexOf(nn(e))>=0}function qn(e){return((xi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hs(e){return nn(e)==="html"?e:e.assignedSlot||e.parentNode||(kc(e)?e.host:null)||qn(e)}function rh(e){return!Ir(e)||_n(e).position==="fixed"?null:e.offsetParent}function lx(e){var t=/firefox/i.test(uc()),r=/Trident/i.test(uc());if(r&&Ir(e)){var i=_n(e);if(i.position==="fixed")return null}var a=Hs(e);for(kc(a)&&(a=a.host);Ir(a)&&["html","body"].indexOf(nn(a))<0;){var s=_n(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function ta(e){for(var t=gr(e),r=rh(e);r&&ux(r)&&_n(r).position==="static";)r=rh(r);return r&&(nn(r)==="html"||nn(r)==="body"&&_n(r).position==="static")?t:r||lx(e)||t}function Wc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ko(e,t,r){return Si(e,Ts(t,r))}function cx(e,t,r){var i=ko(e,t,r);return i>r?r:i}function jv(){return{top:0,right:0,bottom:0,left:0}}function Wv(e){return Object.assign({},jv(),e)}function Uv(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var fx=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Wv(typeof t!="number"?t:Uv(t,ea))};function dx(e){var t,r=e.state,i=e.name,a=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=rn(r.placement),d=Wc(c),p=[ar,Fr].indexOf(c)>=0,h=p?"height":"width";if(!(!s||!l)){var w=fx(a.padding,r),S=jc(s),v=d==="y"?or:ar,_=d==="y"?Mr:Fr,g=r.rects.reference[h]+r.rects.reference[d]-l[d]-r.rects.popper[h],x=l[d]-r.rects.reference[d],C=ta(s),P=C?d==="y"?C.clientHeight||0:C.clientWidth||0:0,T=g/2-x/2,$=w[v],A=P-S[h]-w[_],D=P/2-S[h]/2+T,H=ko($,D,A),j=d;r.modifiersData[i]=(t={},t[j]=H,t.centerOffset=H-D,t)}}function px(e){var t=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||kv(t.elements.popper,a)&&(t.elements.arrow=a))}const hx={name:"arrow",enabled:!0,phase:"main",fn:dx,effect:px,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function so(e){return e.split("-")[1]}var vx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mx(e,t){var r=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:oo(r*a)/a||0,y:oo(i*a)/a||0}}function nh(e){var t,r=e.popper,i=e.popperRect,a=e.placement,s=e.variation,l=e.offsets,c=e.position,d=e.gpuAcceleration,p=e.adaptive,h=e.roundOffsets,w=e.isFixed,S=l.x,v=S===void 0?0:S,_=l.y,g=_===void 0?0:_,x=typeof h=="function"?h({x:v,y:g}):{x:v,y:g};v=x.x,g=x.y;var C=l.hasOwnProperty("x"),P=l.hasOwnProperty("y"),T=ar,$=or,A=window;if(p){var D=ta(r),H="clientHeight",j="clientWidth";if(D===gr(r)&&(D=qn(r),_n(D).position!=="static"&&c==="absolute"&&(H="scrollHeight",j="scrollWidth")),D=D,a===or||(a===ar||a===Fr)&&s===Ho){$=Mr;var V=w&&D===A&&A.visualViewport?A.visualViewport.height:D[H];g-=V-i.height,g*=d?1:-1}if(a===ar||(a===or||a===Mr)&&s===Ho){T=Fr;var ee=w&&D===A&&A.visualViewport?A.visualViewport.width:D[j];v-=ee-i.width,v*=d?1:-1}}var ye=Object.assign({position:c},p&&vx),Re=h===!0?mx({x:v,y:g},gr(r)):{x:v,y:g};if(v=Re.x,g=Re.y,d){var Ee;return Object.assign({},ye,(Ee={},Ee[$]=P?"0":"",Ee[T]=C?"0":"",Ee.transform=(A.devicePixelRatio||1)<=1?"translate("+v+"px, "+g+"px)":"translate3d("+v+"px, "+g+"px, 0)",Ee))}return Object.assign({},ye,(t={},t[$]=P?g+"px":"",t[T]=C?v+"px":"",t.transform="",t))}function gx(e){var t=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,s=r.adaptive,l=s===void 0?!0:s,c=r.roundOffsets,d=c===void 0?!0:c,p={placement:rn(t.placement),variation:so(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nh(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nh(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gx,data:{}};var es={passive:!0};function wx(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,s=a===void 0?!0:a,l=i.resize,c=l===void 0?!0:l,d=gr(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(h){h.addEventListener("scroll",r.update,es)}),c&&d.addEventListener("resize",r.update,es),function(){s&&p.forEach(function(h){h.removeEventListener("scroll",r.update,es)}),c&&d.removeEventListener("resize",r.update,es)}}const bx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:wx,data:{}};var Sx={left:"right",right:"left",bottom:"top",top:"bottom"};function ws(e){return e.replace(/left|right|bottom|top/g,function(t){return Sx[t]})}var Ex={start:"end",end:"start"};function ih(e){return e.replace(/start|end/g,function(t){return Ex[t]})}function Uc(e){var t=gr(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Hc(e){return ao(qn(e)).left+Uc(e).scrollLeft}function _x(e,t){var r=gr(e),i=qn(e),a=r.visualViewport,s=i.clientWidth,l=i.clientHeight,c=0,d=0;if(a){s=a.width,l=a.height;var p=Nv();(p||!p&&t==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}return{width:s,height:l,x:c+Hc(e),y:d}}function xx(e){var t,r=qn(e),i=Uc(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=Si(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Si(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-i.scrollLeft+Hc(e),d=-i.scrollTop;return _n(a||r).direction==="rtl"&&(c+=Si(r.clientWidth,a?a.clientWidth:0)-s),{width:s,height:l,x:c,y:d}}function Bc(e){var t=_n(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function Hv(e){return["html","body","#document"].indexOf(nn(e))>=0?e.ownerDocument.body:Ir(e)&&Bc(e)?e:Hv(Hs(e))}function jo(e,t){var r;t===void 0&&(t=[]);var i=Hv(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=gr(i),l=a?[s].concat(s.visualViewport||[],Bc(i)?i:[]):i,c=t.concat(l);return a?c:c.concat(jo(Hs(l)))}function lc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ox(e,t){var r=ao(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 oh(e,t,r){return t===$v?lc(_x(e,r)):xi(t)?Ox(t,r):lc(xx(qn(e)))}function Ax(e){var t=jo(Hs(e)),r=["absolute","fixed"].indexOf(_n(e).position)>=0,i=r&&Ir(e)?ta(e):e;return xi(i)?t.filter(function(a){return xi(a)&&kv(a,i)&&nn(a)!=="body"}):[]}function Tx(e,t,r,i){var a=t==="clippingParents"?Ax(e):[].concat(t),s=[].concat(a,[r]),l=s[0],c=s.reduce(function(d,p){var h=oh(e,p,i);return d.top=Si(h.top,d.top),d.right=Ts(h.right,d.right),d.bottom=Ts(h.bottom,d.bottom),d.left=Si(h.left,d.left),d},oh(e,l,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Bv(e){var t=e.reference,r=e.element,i=e.placement,a=i?rn(i):null,s=i?so(i):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,d;switch(a){case or:d={x:l,y:t.y-r.height};break;case Mr:d={x:l,y:t.y+t.height};break;case Fr:d={x:t.x+t.width,y:c};break;case ar:d={x:t.x-r.width,y:c};break;default:d={x:t.x,y:t.y}}var p=a?Wc(a):null;if(p!=null){var h=p==="y"?"height":"width";switch(s){case io:d[p]=d[p]-(t[h]/2-r[h]/2);break;case Ho:d[p]=d[p]+(t[h]/2-r[h]/2);break}}return d}function Bo(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=i===void 0?e.placement:i,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,d=c===void 0?G_:c,p=r.rootBoundary,h=p===void 0?$v:p,w=r.elementContext,S=w===void 0?Mo:w,v=r.altBoundary,_=v===void 0?!1:v,g=r.padding,x=g===void 0?0:g,C=Wv(typeof x!="number"?x:Uv(x,ea)),P=S===Mo?K_:Mo,T=e.rects.popper,$=e.elements[_?P:S],A=Tx(xi($)?$:$.contextElement||qn(e.elements.popper),d,h,l),D=ao(e.elements.reference),H=Bv({reference:D,element:T,strategy:"absolute",placement:a}),j=lc(Object.assign({},T,H)),V=S===Mo?j:D,ee={top:A.top-V.top+C.top,bottom:V.bottom-A.bottom+C.bottom,left:A.left-V.left+C.left,right:V.right-A.right+C.right},ye=e.modifiersData.offset;if(S===Mo&&ye){var Re=ye[a];Object.keys(ee).forEach(function(Ee){var se=[Fr,Mr].indexOf(Ee)>=0?1:-1,Fe=[or,Mr].indexOf(Ee)>=0?"y":"x";ee[Ee]+=Re[Fe]*se})}return ee}function Rx(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,s=r.rootBoundary,l=r.padding,c=r.flipVariations,d=r.allowedAutoPlacements,p=d===void 0?Dv:d,h=so(i),w=h?c?th:th.filter(function(_){return so(_)===h}):ea,S=w.filter(function(_){return p.indexOf(_)>=0});S.length===0&&(S=w);var v=S.reduce(function(_,g){return _[g]=Bo(e,{placement:g,boundary:a,rootBoundary:s,padding:l})[rn(g)],_},{});return Object.keys(v).sort(function(_,g){return v[_]-v[g]})}function Cx(e){if(rn(e)===Nc)return[];var t=ws(e);return[ih(e),t,ih(t)]}function Px(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,c=l===void 0?!0:l,d=r.fallbackPlacements,p=r.padding,h=r.boundary,w=r.rootBoundary,S=r.altBoundary,v=r.flipVariations,_=v===void 0?!0:v,g=r.allowedAutoPlacements,x=t.options.placement,C=rn(x),P=C===x,T=d||(P||!_?[ws(x)]:Cx(x)),$=[x].concat(T).reduce(function(fe,de){return fe.concat(rn(de)===Nc?Rx(t,{placement:de,boundary:h,rootBoundary:w,padding:p,flipVariations:_,allowedAutoPlacements:g}):de)},[]),A=t.rects.reference,D=t.rects.popper,H=new Map,j=!0,V=$[0],ee=0;ee<$.length;ee++){var ye=$[ee],Re=rn(ye),Ee=so(ye)===io,se=[or,Mr].indexOf(Re)>=0,Fe=se?"width":"height",be=Bo(t,{placement:ye,boundary:h,rootBoundary:w,altBoundary:S,padding:p}),Oe=se?Ee?Fr:ar:Ee?Mr:or;A[Fe]>D[Fe]&&(Oe=ws(Oe));var Be=ws(Oe),pt=[];if(s&&pt.push(be[Re]<=0),c&&pt.push(be[Oe]<=0,be[Be]<=0),pt.every(function(fe){return fe})){V=ye,j=!1;break}H.set(ye,pt)}if(j)for(var Z=_?3:1,Y=function(de){var ue=$.find(function(he){var le=H.get(he);if(le)return le.slice(0,de).every(function(we){return we})});if(ue)return V=ue,"break"},pe=Z;pe>0;pe--){var oe=Y(pe);if(oe==="break")break}t.placement!==V&&(t.modifiersData[i]._skip=!0,t.placement=V,t.reset=!0)}}const Ix={name:"flip",enabled:!0,phase:"main",fn:Px,requiresIfExists:["offset"],data:{_skip:!1}};function ah(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 sh(e){return[or,Fr,Mr,ar].some(function(t){return e[t]>=0})}function Mx(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,l=Bo(t,{elementContext:"reference"}),c=Bo(t,{altBoundary:!0}),d=ah(l,i),p=ah(c,a,s),h=sh(d),w=sh(p);t.modifiersData[r]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:w},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":w})}const Fx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Mx};function Lx(e,t,r){var i=rn(e),a=[ar,or].indexOf(i)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*a,[ar,Fr].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}function $x(e){var t=e.state,r=e.options,i=e.name,a=r.offset,s=a===void 0?[0,0]:a,l=Dv.reduce(function(h,w){return h[w]=Lx(w,t.rects,s),h},{}),c=l[t.placement],d=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[i]=l}const Dx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$x};function Nx(e){var t=e.state,r=e.name;t.modifiersData[r]=Bv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const kx={name:"popperOffsets",enabled:!0,phase:"read",fn:Nx,data:{}};function jx(e){return e==="x"?"y":"x"}function Wx(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,s=a===void 0?!0:a,l=r.altAxis,c=l===void 0?!1:l,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,w=r.padding,S=r.tether,v=S===void 0?!0:S,_=r.tetherOffset,g=_===void 0?0:_,x=Bo(t,{boundary:d,rootBoundary:p,padding:w,altBoundary:h}),C=rn(t.placement),P=so(t.placement),T=!P,$=Wc(C),A=jx($),D=t.modifiersData.popperOffsets,H=t.rects.reference,j=t.rects.popper,V=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,ee=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),ye=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Re={x:0,y:0};if(D){if(s){var Ee,se=$==="y"?or:ar,Fe=$==="y"?Mr:Fr,be=$==="y"?"height":"width",Oe=D[$],Be=Oe+x[se],pt=Oe-x[Fe],Z=v?-j[be]/2:0,Y=P===io?H[be]:j[be],pe=P===io?-j[be]:-H[be],oe=t.elements.arrow,fe=v&&oe?jc(oe):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:jv(),ue=de[se],he=de[Fe],le=ko(0,H[be],fe[be]),we=T?H[be]/2-Z-le-ue-ee.mainAxis:Y-le-ue-ee.mainAxis,Se=T?-H[be]/2+Z+le+he+ee.mainAxis:pe+le+he+ee.mainAxis,Ve=t.elements.arrow&&ta(t.elements.arrow),J=Ve?$==="y"?Ve.clientTop||0:Ve.clientLeft||0:0,st=(Ee=ye==null?void 0:ye[$])!=null?Ee:0,ut=Oe+we-st-J,yt=Oe+Se-st,Gr=ko(v?Ts(Be,ut):Be,Oe,v?Si(pt,yt):pt);D[$]=Gr,Re[$]=Gr-Oe}if(c){var At,er=$==="x"?or:ar,Kn=$==="x"?Mr:Fr,et=D[A],rt=A==="y"?"height":"width",yr=et+x[er],sr=et-x[Kn],Lr=[or,ar].indexOf(C)!==-1,Nt=(At=ye==null?void 0:ye[A])!=null?At:0,xn=Lr?yr:et-H[rt]-j[rt]-Nt+ee.altAxis,wr=Lr?et+H[rt]+j[rt]-Nt-ee.altAxis:sr,ur=v&&Lr?cx(xn,et,wr):ko(v?xn:yr,et,v?wr:sr);D[A]=ur,Re[A]=ur-et}t.modifiersData[i]=Re}}const Ux={name:"preventOverflow",enabled:!0,phase:"main",fn:Wx,requiresIfExists:["offset"]};function Hx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Bx(e){return e===gr(e)||!Ir(e)?Uc(e):Hx(e)}function zx(e){var t=e.getBoundingClientRect(),r=oo(t.width)/e.offsetWidth||1,i=oo(t.height)/e.offsetHeight||1;return r!==1||i!==1}function qx(e,t,r){r===void 0&&(r=!1);var i=Ir(t),a=Ir(t)&&zx(t),s=qn(t),l=ao(e,a,r),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!r)&&((nn(t)!=="body"||Bc(s))&&(c=Bx(t)),Ir(t)?(d=ao(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=Hc(s))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function Zx(e){var t=new Map,r=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function a(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var d=t.get(c);d&&a(d)}}),i.push(s)}return e.forEach(function(s){r.has(s.name)||a(s)}),i}function Gx(e){var t=Zx(e);return ix.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function Kx(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Yx(e){var t=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var uh={placement:"bottom",modifiers:[],strategy:"absolute"};function lh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Vx(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,s=a===void 0?uh:a;return function(c,d,p){p===void 0&&(p=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},uh,s),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},w=[],S=!1,v={state:h,setOptions:function(C){var P=typeof C=="function"?C(h.options):C;g(),h.options=Object.assign({},s,h.options,P),h.scrollParents={reference:xi(c)?jo(c):c.contextElement?jo(c.contextElement):[],popper:jo(d)};var T=Gx(Yx([].concat(i,h.options.modifiers)));return h.orderedModifiers=T.filter(function($){return $.enabled}),_(),v.update()},forceUpdate:function(){if(!S){var C=h.elements,P=C.reference,T=C.popper;if(lh(P,T)){h.rects={reference:qx(P,ta(T),h.options.strategy==="fixed"),popper:jc(T)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(ee){return h.modifiersData[ee.name]=Object.assign({},ee.data)});for(var $=0;$<h.orderedModifiers.length;$++){if(h.reset===!0){h.reset=!1,$=-1;continue}var A=h.orderedModifiers[$],D=A.fn,H=A.options,j=H===void 0?{}:H,V=A.name;typeof D=="function"&&(h=D({state:h,options:j,name:V,instance:v})||h)}}}},update:Kx(function(){return new Promise(function(x){v.forceUpdate(),x(h)})}),destroy:function(){g(),S=!0}};if(!lh(c,d))return v;v.setOptions(p).then(function(x){!S&&p.onFirstUpdate&&p.onFirstUpdate(x)});function _(){h.orderedModifiers.forEach(function(x){var C=x.name,P=x.options,T=P===void 0?{}:P,$=x.effect;if(typeof $=="function"){var A=$({state:h,name:C,instance:v,options:T}),D=function(){};w.push(A||D)}})}function g(){w.forEach(function(x){return x()}),w=[]}return v}}var Xx=[bx,kx,yx,sx,Dx,Ix,Ux,hx,Fx],Jx=Vx({defaultModifiers:Xx}),Qx=typeof Element<"u",eO=typeof Map=="function",tO=typeof Set=="function",rO=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function bs(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,i,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!bs(e[i],t[i]))return!1;return!0}var s;if(eO&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;for(s=e.entries();!(i=s.next()).done;)if(!bs(i.value[1],t.get(i.value[0])))return!1;return!0}if(tO&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(i=s.next()).done;)if(!t.has(i.value[0]))return!1;return!0}if(rO&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(e[i]!==t[i])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(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;if(Qx&&e instanceof Element)return!1;for(i=r;i--!==0;)if(!((a[i]==="_owner"||a[i]==="__v"||a[i]==="__o")&&e.$$typeof)&&!bs(e[a[i]],t[a[i]]))return!1;return!0}return e!==e&&t!==t}var nO=function(t,r){try{return bs(t,r)}catch(i){if((i.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw i}};const iO=$c(nO);var oO=[],zv=function(t,r,i){i===void 0&&(i={});var a=F.useRef(null),s={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||oO},l=F.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],d=l[1],p=F.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var _=v.state,g=Object.keys(_.elements);B_.flushSync(function(){d({styles:Qp(g.map(function(x){return[x,_.styles[x]||{}]})),attributes:Qp(g.map(function(x){return[x,_.attributes[x]]}))})})},requires:["computeStyles"]}},[]),h=F.useMemo(function(){var S={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[p,{name:"applyStyles",enabled:!1}])};return iO(a.current,S)?a.current||S:(a.current=S,S)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,p]),w=F.useRef();return eh(function(){w.current&&w.current.setOptions(h)},[h]),eh(function(){if(!(t==null||r==null)){var S=i.createPopper||Jx,v=S(t,r,h);return w.current=v,function(){v.destroy(),w.current=null}}},[t,r,i.createPopper]),{state:w.current?w.current.state:null,styles:c.styles,attributes:c.attributes,update:w.current?w.current.update:null,forceUpdate:w.current?w.current.forceUpdate:null}};const qv=e=>k.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Zv=N.forwardRef(({children:e,style:t,attributes:r},i)=>k.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),aO=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:a})=>{const[s,l]=N.useState(null),{styles:c,attributes:d}=zv(e,s,{placement:t||"bottom-start"}),p=N.useCallback(()=>{a&&a()},[a]);return r?k.jsxs(Lv,{children:[k.jsx(qv,{onClick:()=>p()}),k.jsx(Zv,{ref:l,style:c.popper,attributes:d.popper,children:i})]}):null};var cc={exports:{}},Yi={};/*
|
|
30
|
+
object-assign
|
|
31
|
+
(c) Sindre Sorhus
|
|
32
|
+
@license MIT
|
|
33
|
+
*/var wl,ch;function Gv(){if(ch)return wl;ch=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(l).map(function(h){return l[h]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return wl=a()?Object.assign:function(s,l){for(var c,d=i(s),p,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var w in c)t.call(c,w)&&(d[w]=c[w]);if(e){p=e(c);for(var S=0;S<p.length;S++)r.call(c,p[S])&&(d[p[S]]=c[p[S]])}}return d},wl}/** @license React v17.0.2
|
|
34
|
+
* react-jsx-runtime.production.min.js
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/var fh;function sO(){if(fh)return Yi;fh=1,Gv();var e=N,t=60103;if(Yi.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var r=Symbol.for;t=r("react.element"),Yi.Fragment=r("react.fragment")}var i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(c,d,p){var h,w={},S=null,v=null;p!==void 0&&(S=""+p),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(v=d.ref);for(h in d)a.call(d,h)&&!s.hasOwnProperty(h)&&(w[h]=d[h]);if(c&&c.defaultProps)for(h in d=c.defaultProps,d)w[h]===void 0&&(w[h]=d[h]);return{$$typeof:t,type:c,key:S,ref:v,props:w,_owner:i.current}}return Yi.jsx=l,Yi.jsxs=l,Yi}var dh={};/** @license React v17.0.2
|
|
41
|
+
* react-jsx-runtime.development.js
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/var ph;function uO(){return ph||(ph=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=N,r=Gv(),i=60103,a=60106;e.Fragment=60107;var s=60108,l=60114,c=60109,d=60110,p=60112,h=60113,w=60120,S=60115,v=60116,_=60121,g=60122,x=60117,C=60129,P=60131;if(typeof Symbol=="function"&&Symbol.for){var T=Symbol.for;i=T("react.element"),a=T("react.portal"),e.Fragment=T("react.fragment"),s=T("react.strict_mode"),l=T("react.profiler"),c=T("react.provider"),d=T("react.context"),p=T("react.forward_ref"),h=T("react.suspense"),w=T("react.suspense_list"),S=T("react.memo"),v=T("react.lazy"),_=T("react.block"),g=T("react.server.block"),x=T("react.fundamental"),T("react.scope"),T("react.opaque.id"),C=T("react.debug_trace_mode"),T("react.offscreen"),P=T("react.legacy_hidden")}var $=typeof Symbol=="function"&&Symbol.iterator,A="@@iterator";function D(m){if(m===null||typeof m!="object")return null;var I=$&&m[$]||m[A];return typeof I=="function"?I:null}var H=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(m){{for(var I=arguments.length,W=new Array(I>1?I-1:0),K=1;K<I;K++)W[K-1]=arguments[K];V("error",m,W)}}function V(m,I,W){{var K=H.ReactDebugCurrentFrame,ce=K.getStackAddendum();ce!==""&&(I+="%s",W=W.concat([ce]));var ae=W.map(function(re){return""+re});ae.unshift("Warning: "+I),Function.prototype.apply.call(console[m],console,ae)}}var ee=!1;function ye(m){return!!(typeof m=="string"||typeof m=="function"||m===e.Fragment||m===l||m===C||m===s||m===h||m===w||m===P||ee||typeof m=="object"&&m!==null&&(m.$$typeof===v||m.$$typeof===S||m.$$typeof===c||m.$$typeof===d||m.$$typeof===p||m.$$typeof===x||m.$$typeof===_||m[0]===g))}function Re(m,I,W){var K=I.displayName||I.name||"";return m.displayName||(K!==""?W+"("+K+")":W)}function Ee(m){return m.displayName||"Context"}function se(m){if(m==null)return null;if(typeof m.tag=="number"&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case e.Fragment:return"Fragment";case a:return"Portal";case l:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case w:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case d:var I=m;return Ee(I)+".Consumer";case c:var W=m;return Ee(W._context)+".Provider";case p:return Re(m,m.render,"ForwardRef");case S:return se(m.type);case _:return se(m._render);case v:{var K=m,ce=K._payload,ae=K._init;try{return se(ae(ce))}catch{return null}}}return null}var Fe=0,be,Oe,Be,pt,Z,Y,pe;function oe(){}oe.__reactDisabledLog=!0;function fe(){{if(Fe===0){be=console.log,Oe=console.info,Be=console.warn,pt=console.error,Z=console.group,Y=console.groupCollapsed,pe=console.groupEnd;var m={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:m,log:m,warn:m,error:m,group:m,groupCollapsed:m,groupEnd:m})}Fe++}}function de(){{if(Fe--,Fe===0){var m={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:r({},m,{value:be}),info:r({},m,{value:Oe}),warn:r({},m,{value:Be}),error:r({},m,{value:pt}),group:r({},m,{value:Z}),groupCollapsed:r({},m,{value:Y}),groupEnd:r({},m,{value:pe})})}Fe<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=H.ReactCurrentDispatcher,he;function le(m,I,W){{if(he===void 0)try{throw Error()}catch(ce){var K=ce.stack.trim().match(/\n( *(at )?)/);he=K&&K[1]||""}return`
|
|
48
|
+
`+he+m}}var we=!1,Se;{var Ve=typeof WeakMap=="function"?WeakMap:Map;Se=new Ve}function J(m,I){if(!m||we)return"";{var W=Se.get(m);if(W!==void 0)return W}var K;we=!0;var ce=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ae;ae=ue.current,ue.current=null,fe();try{if(I){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(ht){K=ht}Reflect.construct(m,[],re)}else{try{re.call()}catch(ht){K=ht}m.call(re.prototype)}}else{try{throw Error()}catch(ht){K=ht}m()}}catch(ht){if(ht&&K&&typeof ht.stack=="string"){for(var te=ht.stack.split(`
|
|
49
|
+
`),je=K.stack.split(`
|
|
50
|
+
`),_e=te.length-1,Ae=je.length-1;_e>=1&&Ae>=0&&te[_e]!==je[Ae];)Ae--;for(;_e>=1&&Ae>=0;_e--,Ae--)if(te[_e]!==je[Ae]){if(_e!==1||Ae!==1)do if(_e--,Ae--,Ae<0||te[_e]!==je[Ae]){var lt=`
|
|
51
|
+
`+te[_e].replace(" at new "," at ");return typeof m=="function"&&Se.set(m,lt),lt}while(_e>=1&&Ae>=0);break}}}finally{we=!1,ue.current=ae,de(),Error.prepareStackTrace=ce}var Yt=m?m.displayName||m.name:"",ni=Yt?le(Yt):"";return typeof m=="function"&&Se.set(m,ni),ni}function st(m,I,W){return J(m,!1)}function ut(m){var I=m.prototype;return!!(I&&I.isReactComponent)}function yt(m,I,W){if(m==null)return"";if(typeof m=="function")return J(m,ut(m));if(typeof m=="string")return le(m);switch(m){case h:return le("Suspense");case w:return le("SuspenseList")}if(typeof m=="object")switch(m.$$typeof){case p:return st(m.render);case S:return yt(m.type,I,W);case _:return st(m._render);case v:{var K=m,ce=K._payload,ae=K._init;try{return yt(ae(ce),I,W)}catch{}}}return""}var Gr={},At=H.ReactDebugCurrentFrame;function er(m){if(m){var I=m._owner,W=yt(m.type,m._source,I?I.type:null);At.setExtraStackFrame(W)}else At.setExtraStackFrame(null)}function Kn(m,I,W,K,ce){{var ae=Function.call.bind(Object.prototype.hasOwnProperty);for(var re in m)if(ae(m,re)){var te=void 0;try{if(typeof m[re]!="function"){var je=Error((K||"React class")+": "+W+" type `"+re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof m[re]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}te=m[re](I,re,K,W,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_e){te=_e}te&&!(te instanceof Error)&&(er(ce),j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",K||"React class",W,re,typeof te),er(null)),te instanceof Error&&!(te.message in Gr)&&(Gr[te.message]=!0,er(ce),j("Failed %s type: %s",W,te.message),er(null))}}}var et=H.ReactCurrentOwner,rt=Object.prototype.hasOwnProperty,yr={key:!0,ref:!0,__self:!0,__source:!0},sr,Lr,Nt;Nt={};function xn(m){if(rt.call(m,"ref")){var I=Object.getOwnPropertyDescriptor(m,"ref").get;if(I&&I.isReactWarning)return!1}return m.ref!==void 0}function wr(m){if(rt.call(m,"key")){var I=Object.getOwnPropertyDescriptor(m,"key").get;if(I&&I.isReactWarning)return!1}return m.key!==void 0}function ur(m,I){if(typeof m.ref=="string"&&et.current&&I&&et.current.stateNode!==I){var W=se(et.current.type);Nt[W]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',se(et.current.type),m.ref),Nt[W]=!0)}}function Yn(m,I){{var W=function(){sr||(sr=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};W.isReactWarning=!0,Object.defineProperty(m,"key",{get:W,configurable:!0})}}function Vn(m,I){{var W=function(){Lr||(Lr=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",I))};W.isReactWarning=!0,Object.defineProperty(m,"ref",{get:W,configurable:!0})}}var Xn=function(m,I,W,K,ce,ae,re){var te={$$typeof:i,type:m,key:I,ref:W,props:re,_owner:ae};return te._store={},Object.defineProperty(te._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(te,"_self",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.defineProperty(te,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.freeze&&(Object.freeze(te.props),Object.freeze(te)),te};function Jn(m,I,W,K,ce){{var ae,re={},te=null,je=null;W!==void 0&&(te=""+W),wr(I)&&(te=""+I.key),xn(I)&&(je=I.ref,ur(I,ce));for(ae in I)rt.call(I,ae)&&!yr.hasOwnProperty(ae)&&(re[ae]=I[ae]);if(m&&m.defaultProps){var _e=m.defaultProps;for(ae in _e)re[ae]===void 0&&(re[ae]=_e[ae])}if(te||je){var Ae=typeof m=="function"?m.displayName||m.name||"Unknown":m;te&&Yn(re,Ae),je&&Vn(re,Ae)}return Xn(m,te,je,ce,K,et.current,re)}}var $r=H.ReactCurrentOwner,un=H.ReactDebugCurrentFrame;function It(m){if(m){var I=m._owner,W=yt(m.type,m._source,I?I.type:null);un.setExtraStackFrame(W)}else un.setExtraStackFrame(null)}var Dr;Dr=!1;function Nr(m){return typeof m=="object"&&m!==null&&m.$$typeof===i}function Qn(){{if($r.current){var m=se($r.current.type);if(m)return`
|
|
52
|
+
|
|
53
|
+
Check the render method of \``+m+"`."}return""}}function co(m){return""}var ei={};function Mi(m){{var I=Qn();if(!I){var W=typeof m=="string"?m:m.displayName||m.name;W&&(I=`
|
|
54
|
+
|
|
55
|
+
Check the top-level render call using <`+W+">.")}return I}}function On(m,I){{if(!m._store||m._store.validated||m.key!=null)return;m._store.validated=!0;var W=Mi(I);if(ei[W])return;ei[W]=!0;var K="";m&&m._owner&&m._owner!==$r.current&&(K=" It was passed a child from "+se(m._owner.type)+"."),It(m),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',W,K),It(null)}}function ti(m,I){{if(typeof m!="object")return;if(Array.isArray(m))for(var W=0;W<m.length;W++){var K=m[W];Nr(K)&&On(K,I)}else if(Nr(m))m._store&&(m._store.validated=!0);else if(m){var ce=D(m);if(typeof ce=="function"&&ce!==m.entries)for(var ae=ce.call(m),re;!(re=ae.next()).done;)Nr(re.value)&&On(re.value,I)}}}function fo(m){{var I=m.type;if(I==null||typeof I=="string")return;var W;if(typeof I=="function")W=I.propTypes;else if(typeof I=="object"&&(I.$$typeof===p||I.$$typeof===S))W=I.propTypes;else return;if(W){var K=se(I);Kn(W,m.props,"prop",K,m)}else if(I.PropTypes!==void 0&&!Dr){Dr=!0;var ce=se(I);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ce||"Unknown")}typeof I.getDefaultProps=="function"&&!I.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function po(m){{for(var I=Object.keys(m.props),W=0;W<I.length;W++){var K=I[W];if(K!=="children"&&K!=="key"){It(m),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",K),It(null);break}}m.ref!==null&&(It(m),j("Invalid attribute `ref` supplied to `React.Fragment`."),It(null))}}function ri(m,I,W,K,ce,ae){{var re=ye(m);if(!re){var te="";(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(te+=" 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 je=co();je?te+=je:te+=Qn();var _e;m===null?_e="null":Array.isArray(m)?_e="array":m!==void 0&&m.$$typeof===i?(_e="<"+(se(m.type)||"Unknown")+" />",te=" Did you accidentally export a JSX literal instead of a component?"):_e=typeof m,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_e,te)}var Ae=Jn(m,I,W,ce,ae);if(Ae==null)return Ae;if(re){var lt=I.children;if(lt!==void 0)if(K)if(Array.isArray(lt)){for(var Yt=0;Yt<lt.length;Yt++)ti(lt[Yt],m);Object.freeze&&Object.freeze(lt)}else j("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 ti(lt,m)}return m===e.Fragment?po(Ae):fo(Ae),Ae}}function Fi(m,I,W){return ri(m,I,W,!0)}function ho(m,I,W){return ri(m,I,W,!1)}var vo=ho,mo=Fi;e.jsx=vo,e.jsxs=mo}()}(dh)),dh}process.env.NODE_ENV==="production"?cc.exports=sO():cc.exports=uO();var at=cc.exports;const lO=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.jsx("path",{d:"M8.82 19.748c.001.245.075.486.214.69l.38 1.004c.117.172.573.312.758.41.185.097.391.148.601.148h2.454c.21 0 .417-.05.601-.148.185-.098.621-.238.737-.41l.402-1.003c.138-.205.213-.445.213-.691l.001-1.498H8.82l.002 1.498ZM5 8.875c0 1.733.654 3.314 1.732 4.522.658.737 1.685 2.275 2.077 3.573l.004.03h6.374l.004-.03c.392-1.298 1.42-2.836 2.076-3.573A6.766 6.766 0 0 0 19 8.875C19 5.07 15.854 1.988 11.978 2 7.921 2.012 5 5.241 5 8.875Z",fill:"currentColor"})}),cO=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),bl=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),fc=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),fO=e=>at.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[at.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),at.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),Kv=e=>at.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[at.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),at.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),dO=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.jsx("path",{d:"M18.797 12.299a.524.524 0 0 0 0-.726l-2.349-2.487-.007.008L9.856 2.12a.58.58 0 0 0-.835 0L7.089 4.166a.524.524 0 0 0 0 .726l6.66 7.051-6.66 7.053a.524.524 0 0 0 0 .725l1.932 2.045a.58.58 0 0 0 .835 0l8.941-9.467Z",fill:"currentColor"})}),pO=e=>at.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[at.jsx("path",{fill:"#fff",d:"M8 5h8v14H8z"}),at.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor"})]}),hO=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),zc=e=>at.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:at.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})});var Yv={exports:{}};/*!
|
|
28
56
|
Copyright (c) 2018 Jed Watson.
|
|
29
57
|
Licensed under the MIT License (MIT), see
|
|
30
58
|
http://jedwatson.github.io/classnames
|
|
31
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var
|
|
32
|
-
`).match(a);let
|
|
59
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i=[],a=0;a<arguments.length;a++){var s=arguments[a];if(s){var l=typeof s;if(l==="string"||l==="number")i.push(s);else if(Array.isArray(s)){if(s.length){var c=r.apply(null,s);c&&i.push(c)}}else if(l==="object"){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){i.push(s.toString());continue}for(var d in s)t.call(s,d)&&s[d]&&i.push(d)}}}return i.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Yv);var Vv=Yv.exports;const Dt=$c(Vv);function gi(){return gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},gi.apply(this,arguments)}const vO=["children","options"],hh=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),vh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},mO=["style","script"],gO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,yO=/mailto:/i,wO=/\n{2,}$/,Xv=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,bO=/^ *> ?/gm,SO=/^ {2,}\n/,EO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Jv=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,Qv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,_O=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,xO=/^(?:\n *)*\n/,OO=/\r\n?/g,AO=/^\[\^([^\]]+)](:.*)\n/,TO=/^\[\^([^\]]+)]/,RO=/\f/g,CO=/^\s*?\[(x|\s)\]/,em=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,tm=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,rm=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,dc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,PO=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,nm=/^<!--[\s\S]*?(?:-->)/,IO=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,pc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,MO=/^\{.*\}$/,FO=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,LO=/^<([^ >]+@[^ >]+)>/,$O=/^<([^ >]+:\/[^ >]+)>/,DO=/-([a-z])?/gi,im=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,NO=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,kO=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,jO=/^\[([^\]]*)\] ?\[([^\]]*)\]/,WO=/(\[|\])/g,UO=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,HO=/\t/g,BO=/^ *\| */,zO=/(^ *\||\| *$)/g,qO=/ *$/,ZO=/^ *:-+: *$/,GO=/^ *:-+ *$/,KO=/^ *-+: *$/,YO=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,VO=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,XO=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,JO=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,QO=/^\\([^0-9A-Za-z\s])/,eA=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,tA=/^\n+/,rA=/^([ \t]*)/,nA=/\\([^\\])/g,mh=/ *\n+$/,iA=/(?:^|\n)( *)$/,qc="(?:\\d+\\.)",Zc="(?:[*+-])";function om(e){return"( *)("+(e===1?qc:Zc)+") +"}const am=om(1),sm=om(2);function um(e){return new RegExp("^"+(e===1?am:sm))}const oA=um(1),aA=um(2);function lm(e){return new RegExp("^"+(e===1?am:sm)+"[^\\n]*(?:\\n(?!\\1"+(e===1?qc:Zc)+" )[^\\n]*)*(\\n|$)","gm")}const cm=lm(1),fm=lm(2);function dm(e){const t=e===1?qc:Zc;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const pm=dm(1),hm=dm(2);function gh(e,t){const r=t===1,i=r?pm:hm,a=r?cm:fm,s=r?oA:aA;return{t(l,c,d){const p=iA.exec(d);return p&&(c.o||!c._&&!c.u)?i.exec(l=p[1]+l):null},i:ke.HIGH,l(l,c,d){const p=r?+l[2]:void 0,h=l[0].replace(wO,`
|
|
60
|
+
`).match(a);let w=!1;return{p:h.map(function(S,v){const _=s.exec(S)[0].length,g=new RegExp("^ {1,"+_+"}","gm"),x=S.replace(g,"").replace(s,""),C=v===h.length-1,P=x.indexOf(`
|
|
33
61
|
|
|
34
|
-
`)!==-1||
|
|
62
|
+
`)!==-1||C&&w;w=P;const T=d._,$=d.o;let A;d.o=!0,P?(d._=!1,A=x.replace(mh,`
|
|
35
63
|
|
|
36
|
-
`)):(d.
|
|
37
|
-
`).map(function(p){return
|
|
38
|
-
`).
|
|
39
|
-
|
|
64
|
+
`)):(d._=!0,A=x.replace(mh,""));const D=c(A,d);return d._=T,d.o=$,D}),m:r,g:p}},h:(l,c,d)=>e(l.m?"ol":"ul",{key:d.k,start:l.g},l.p.map(function(p,h){return e("li",{key:h},c(p,d))}))}}const sA=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,uA=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,vm=[Xv,Jv,Qv,em,rm,tm,nm,im,cm,pm,fm,hm],lA=[...vm,/^[^\n]+(?: \n|\n{2,})/,dc,pc];function cA(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function fA(e){return KO.test(e)?"right":ZO.test(e)?"center":GO.test(e)?"left":null}function yh(e,t,r){const i=r.$;r.$=!0;const a=t(e.trim(),r);r.$=i;let s=[[]];return a.forEach(function(l,c){l.type==="tableSeparator"?c!==0&&c!==a.length-1&&s.push([]):(l.type!=="text"||a[c+1]!=null&&a[c+1].type!=="tableSeparator"||(l.v=l.v.replace(qO,"")),s[s.length-1].push(l))}),s}function dA(e,t,r){r._=!0;const i=yh(e[1],t,r),a=e[2].replace(zO,"").split("|").map(fA),s=function(l,c,d){return l.trim().split(`
|
|
65
|
+
`).map(function(p){return yh(p,c,d)})}(e[3],t,r);return r._=!1,{S:a,A:s,L:i,type:"table"}}function wh(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function Dn(e){return function(t,r){return r._?e.exec(t):null}}function Nn(e){return function(t,r){return r._||r.u?e.exec(t):null}}function yn(e){return function(t,r){return r._||r.u?null:e.exec(t)}}function Fo(e){return function(t){return e.exec(t)}}function pA(e,t,r){if(t._||t.u||r&&!r.endsWith(`
|
|
66
|
+
`))return null;let i="";e.split(`
|
|
67
|
+
`).every(s=>!vm.some(l=>l.test(s))&&(i+=s+`
|
|
68
|
+
`,s.trim()));const a=i.trimEnd();return a==""?null:[i,a]}function Vi(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function bh(e){return e.replace(nA,"$1")}function Ss(e,t,r){const i=r._||!1,a=r.u||!1;r._=!0,r.u=!0;const s=e(t,r);return r._=i,r.u=a,s}function hA(e,t,r){const i=r._||!1,a=r.u||!1;r._=!1,r.u=!0;const s=e(t,r);return r._=i,r.u=a,s}function vA(e,t,r){return r._=!1,e(t,r)}const Sl=(e,t,r)=>({v:Ss(t,e[1],r)});function El(){return{}}function _l(){return null}function mA(...e){return e.filter(Boolean).join(" ")}function xl(e,t,r){let i=e;const a=t.split(".");for(;a.length&&(i=i[a[0]],i!==void 0);)a.shift();return i||r}var ke;function gA(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||cA,t.namedCodesToUnicode=t.namedCodesToUnicode?gi({},vh,t.namedCodesToUnicode):vh;const r=t.createElement||F.createElement;function i(v,_,...g){const x=xl(t.overrides,`${v}.props`,{});return r(function(C,P){const T=xl(P,C);return T?typeof T=="function"||typeof T=="object"&&"render"in T?T:xl(P,`${C}.component`,C):C}(v,t.overrides),gi({},_,x,{className:mA(_==null?void 0:_.className,x.className)||void 0}),...g)}function a(v){let _=!1;t.forceInline?_=!0:t.forceBlock||(_=UO.test(v)===!1);const g=h(p(_?v:`${v.trimEnd().replace(tA,"")}
|
|
40
69
|
|
|
41
|
-
`,{
|
|
42
|
-
`},
|
|
43
|
-
`).replace(yO,"").replace(MO," ")}(g),E)}}(c),p=(h=function(v,w){return function(x,g,E){const I=v[x.type].render;return w?w(()=>I(x,g,E),x,g,E):I(x,g,E)}}(c,t.renderRule),function v(w,x={}){if(Array.isArray(w)){const g=x.key,E=[];let I=!1;for(let P=0;P<w.length;P++){x.key=P;const R=v(w[P],x),F=typeof R=="string";F&&I?E[E.length-1]+=R:R!==null&&E.push(R),I=F}return x.key=g,E}return h(w,v,x)});var h;const b=i(e);return s.length?r("div",null,b,r("footer",{key:"footer"},s.map(function(v){return r("div",{id:t.slugify(v.identifier,yo),key:v.identifier},v.identifier,p(d(v.footnote,{inline:!0})))}))):b}const _s=e=>{let{children:t="",options:r}=e,i=function(a,s){if(a==null)return{};var l,c,d={},p=Object.keys(a);for(c=0;c<p.length;c++)s.indexOf(l=p[c])>=0||(d[l]=a[l]);return d}(e,iO);return C.cloneElement(oA(t,r),i)},gh=({kind:e,customIcon:t})=>{if(t)return $.jsx(t,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return $.jsx(rO,{className:"flex-none h-6 w-6"});case"info":return $.jsx($.Fragment,{children:$.jsx(uc,{className:"flex-none h-6 w-6"})});case"warning":return $.jsx($.Fragment,{children:$.jsx(zc,{className:"flex-none h-6 w-6"})});case"message":return $.jsx($.Fragment,{children:$.jsx(uc,{className:"flex-none h-6 w-6"})});default:return null}},aA=({id:e,onClose:t,kind:r,message:i,markdown:a,customIcon:s})=>{const l=({className:c}={})=>$.jsx("button",{onClick:t,className:Pt("flex items-center justify-center p-1",c),children:$.jsx(Q_,{className:"h-5 w-5 font-thin stroke-current"})});return $.jsx("div",{className:Pt("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":r==="warning","bg-red-200 text-red-500":r==="danger"||r==="error","bg-primary-light text-primary":r==="info","bg-green-200 text-green-500":r==="message"}),children:typeof i=="string"?$.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[$.jsxs("div",{className:"flex items-center gap-1",children:[$.jsx(gh,{kind:r,customIcon:s}),a?$.jsx(_s,{children:i}):$.jsx($.Fragment,{children:i})]}),l()]}):$.jsxs("div",{className:"flex items-start",children:[$.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>$.jsxs($.Fragment,{children:[$.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[$.jsx(gh,{kind:r,customIcon:s}),$.jsxs("span",{children:[c.title," :"]})]}),$.jsx("ul",{className:"list-disc px-12",children:c.messages.map(d=>$.jsx("li",{children:a?$.jsx(_s,{children:d}):$.jsx($.Fragment,{children:d})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},lm=({children:e,size:t,className:r,...i})=>$.jsx("div",{style:{"--width":`${t||24}px`},className:Pt("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var Va,sA=new Uint8Array(16);function cm(){if(!Va&&(Va=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Va))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Va(sA)}const uA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ks(e){return typeof e=="string"&&uA.test(e)}var Ct=[];for(var _l=0;_l<256;++_l)Ct.push((_l+256).toString(16).substr(1));function Ns(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Ct[e[t+0]]+Ct[e[t+1]]+Ct[e[t+2]]+Ct[e[t+3]]+"-"+Ct[e[t+4]]+Ct[e[t+5]]+"-"+Ct[e[t+6]]+Ct[e[t+7]]+"-"+Ct[e[t+8]]+Ct[e[t+9]]+"-"+Ct[e[t+10]]+Ct[e[t+11]]+Ct[e[t+12]]+Ct[e[t+13]]+Ct[e[t+14]]+Ct[e[t+15]]).toLowerCase();if(!ks(r))throw TypeError("Stringified UUID is invalid");return r}var yh,Ol,Al=0,Tl=0;function lA(e,t,r){var i=t&&r||0,a=t||new Array(16);e=e||{};var s=e.node||yh,l=e.clockseq!==void 0?e.clockseq:Ol;if(s==null||l==null){var c=e.random||(e.rng||cm)();s==null&&(s=yh=[c[0]|1,c[1],c[2],c[3],c[4],c[5]]),l==null&&(l=Ol=(c[6]<<8|c[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:Tl+1,h=d-Al+(p-Tl)/1e4;if(h<0&&e.clockseq===void 0&&(l=l+1&16383),(h<0||d>Al)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Al=d,Tl=p,Ol=l,d+=122192928e5;var b=((d&268435455)*1e4+p)%4294967296;a[i++]=b>>>24&255,a[i++]=b>>>16&255,a[i++]=b>>>8&255,a[i++]=b&255;var v=d/4294967296*1e4&268435455;a[i++]=v>>>8&255,a[i++]=v&255,a[i++]=v>>>24&15|16,a[i++]=v>>>16&255,a[i++]=l>>>8|128,a[i++]=l&255;for(var w=0;w<6;++w)a[i+w]=s[w];return t||Ns(a)}function fm(e){if(!ks(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function cA(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var fA="6ba7b810-9dad-11d1-80b4-00c04fd430c8",dA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function dm(e,t,r){function i(a,s,l,c){if(typeof a=="string"&&(a=cA(a)),typeof s=="string"&&(s=fm(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+a.length);if(d.set(s),d.set(a,s.length),d=r(d),d[6]=d[6]&15|t,d[8]=d[8]&63|128,l){c=c||0;for(var p=0;p<16;++p)l[c+p]=d[p];return l}return Ns(d)}try{i.name=e}catch{}return i.DNS=fA,i.URL=dA,i}function pA(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return hA(vA(mA(e),e.length*8))}function hA(e){for(var t=[],r=e.length*32,i="0123456789abcdef",a=0;a<r;a+=8){var s=e[a>>5]>>>a%32&255,l=parseInt(i.charAt(s>>>4&15)+i.charAt(s&15),16);t.push(l)}return t}function pm(e){return(e+64>>>9<<4)+14+1}function vA(e,t){e[t>>5]|=128<<t%32,e[pm(t)-1]=t;for(var r=1732584193,i=-271733879,a=-1732584194,s=271733878,l=0;l<e.length;l+=16){var c=r,d=i,p=a,h=s;r=Lt(r,i,a,s,e[l],7,-680876936),s=Lt(s,r,i,a,e[l+1],12,-389564586),a=Lt(a,s,r,i,e[l+2],17,606105819),i=Lt(i,a,s,r,e[l+3],22,-1044525330),r=Lt(r,i,a,s,e[l+4],7,-176418897),s=Lt(s,r,i,a,e[l+5],12,1200080426),a=Lt(a,s,r,i,e[l+6],17,-1473231341),i=Lt(i,a,s,r,e[l+7],22,-45705983),r=Lt(r,i,a,s,e[l+8],7,1770035416),s=Lt(s,r,i,a,e[l+9],12,-1958414417),a=Lt(a,s,r,i,e[l+10],17,-42063),i=Lt(i,a,s,r,e[l+11],22,-1990404162),r=Lt(r,i,a,s,e[l+12],7,1804603682),s=Lt(s,r,i,a,e[l+13],12,-40341101),a=Lt(a,s,r,i,e[l+14],17,-1502002290),i=Lt(i,a,s,r,e[l+15],22,1236535329),r=$t(r,i,a,s,e[l+1],5,-165796510),s=$t(s,r,i,a,e[l+6],9,-1069501632),a=$t(a,s,r,i,e[l+11],14,643717713),i=$t(i,a,s,r,e[l],20,-373897302),r=$t(r,i,a,s,e[l+5],5,-701558691),s=$t(s,r,i,a,e[l+10],9,38016083),a=$t(a,s,r,i,e[l+15],14,-660478335),i=$t(i,a,s,r,e[l+4],20,-405537848),r=$t(r,i,a,s,e[l+9],5,568446438),s=$t(s,r,i,a,e[l+14],9,-1019803690),a=$t(a,s,r,i,e[l+3],14,-187363961),i=$t(i,a,s,r,e[l+8],20,1163531501),r=$t(r,i,a,s,e[l+13],5,-1444681467),s=$t(s,r,i,a,e[l+2],9,-51403784),a=$t(a,s,r,i,e[l+7],14,1735328473),i=$t(i,a,s,r,e[l+12],20,-1926607734),r=Ft(r,i,a,s,e[l+5],4,-378558),s=Ft(s,r,i,a,e[l+8],11,-2022574463),a=Ft(a,s,r,i,e[l+11],16,1839030562),i=Ft(i,a,s,r,e[l+14],23,-35309556),r=Ft(r,i,a,s,e[l+1],4,-1530992060),s=Ft(s,r,i,a,e[l+4],11,1272893353),a=Ft(a,s,r,i,e[l+7],16,-155497632),i=Ft(i,a,s,r,e[l+10],23,-1094730640),r=Ft(r,i,a,s,e[l+13],4,681279174),s=Ft(s,r,i,a,e[l],11,-358537222),a=Ft(a,s,r,i,e[l+3],16,-722521979),i=Ft(i,a,s,r,e[l+6],23,76029189),r=Ft(r,i,a,s,e[l+9],4,-640364487),s=Ft(s,r,i,a,e[l+12],11,-421815835),a=Ft(a,s,r,i,e[l+15],16,530742520),i=Ft(i,a,s,r,e[l+2],23,-995338651),r=Dt(r,i,a,s,e[l],6,-198630844),s=Dt(s,r,i,a,e[l+7],10,1126891415),a=Dt(a,s,r,i,e[l+14],15,-1416354905),i=Dt(i,a,s,r,e[l+5],21,-57434055),r=Dt(r,i,a,s,e[l+12],6,1700485571),s=Dt(s,r,i,a,e[l+3],10,-1894986606),a=Dt(a,s,r,i,e[l+10],15,-1051523),i=Dt(i,a,s,r,e[l+1],21,-2054922799),r=Dt(r,i,a,s,e[l+8],6,1873313359),s=Dt(s,r,i,a,e[l+15],10,-30611744),a=Dt(a,s,r,i,e[l+6],15,-1560198380),i=Dt(i,a,s,r,e[l+13],21,1309151649),r=Dt(r,i,a,s,e[l+4],6,-145523070),s=Dt(s,r,i,a,e[l+11],10,-1120210379),a=Dt(a,s,r,i,e[l+2],15,718787259),i=Dt(i,a,s,r,e[l+9],21,-343485551),r=$n(r,c),i=$n(i,d),a=$n(a,p),s=$n(s,h)}return[r,i,a,s]}function mA(e){if(e.length===0)return[];for(var t=e.length*8,r=new Uint32Array(pm(t)),i=0;i<t;i+=8)r[i>>5]|=(e[i/8]&255)<<i%32;return r}function $n(e,t){var r=(e&65535)+(t&65535),i=(e>>16)+(t>>16)+(r>>16);return i<<16|r&65535}function gA(e,t){return e<<t|e>>>32-t}function js(e,t,r,i,a,s){return $n(gA($n($n(t,e),$n(i,s)),a),r)}function Lt(e,t,r,i,a,s,l){return js(t&r|~t&i,e,t,a,s,l)}function $t(e,t,r,i,a,s,l){return js(t&i|r&~i,e,t,a,s,l)}function Ft(e,t,r,i,a,s,l){return js(t^r^i,e,t,a,s,l)}function Dt(e,t,r,i,a,s,l){return js(r^(t|~i),e,t,a,s,l)}var yA=dm("v3",48,pA);function wA(e,t,r){e=e||{};var i=e.random||(e.rng||cm)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=i[a];return t}return Ns(i)}function bA(e,t,r,i){switch(e){case 0:return t&r^~t&i;case 1:return t^r^i;case 2:return t&r^t&i^r&i;case 3:return t^r^i}}function Cl(e,t){return e<<t|e>>>32-t}function SA(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var i=unescape(encodeURIComponent(e));e=[];for(var a=0;a<i.length;++a)e.push(i.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,l=Math.ceil(s/16),c=new Array(l),d=0;d<l;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];c[d]=p}c[l-1][14]=(e.length-1)*8/Math.pow(2,32),c[l-1][14]=Math.floor(c[l-1][14]),c[l-1][15]=(e.length-1)*8&4294967295;for(var b=0;b<l;++b){for(var v=new Uint32Array(80),w=0;w<16;++w)v[w]=c[b][w];for(var x=16;x<80;++x)v[x]=Cl(v[x-3]^v[x-8]^v[x-14]^v[x-16],1);for(var g=r[0],E=r[1],I=r[2],P=r[3],R=r[4],F=0;F<80;++F){var O=Math.floor(F/20),D=Cl(g,5)+bA(O,E,I,P)+R+t[O]+v[F]>>>0;R=P,P=I,I=Cl(E,30)>>>0,E=g,g=D}r[0]=r[0]+g>>>0,r[1]=r[1]+E>>>0,r[2]=r[2]+I>>>0,r[3]=r[3]+P>>>0,r[4]=r[4]+R>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var EA=dm("v5",80,SA);const xA="00000000-0000-0000-0000-000000000000";function _A(e){if(!ks(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const OA=Object.freeze(Object.defineProperty({__proto__:null,NIL:xA,parse:fm,stringify:Ns,v1:lA,v3:yA,v4:wA,v5:EA,validate:ks,version:_A},Symbol.toStringTag,{value:"Module"})),AA=Fx(OA);function Zc(e,t){if(!e||!t||!e.length||!t.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=t}Zc.prototype.convert=function(e){var t,r,i,a={},s=this.srcAlphabet.length,l=this.dstAlphabet.length,c=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(t=0;t<c;t++)a[t]=this.srcAlphabet.indexOf(e[t]);do{for(r=0,i=0,t=0;t<c;t++)r=r*s+a[t],r>=l?(a[i++]=parseInt(r/l,10),r=r%l):i>0&&(a[i++]=0);c=i,d=this.dstAlphabet.slice(r,r+1).concat(d)}while(i!==0);return d};Zc.prototype.isValid=function(e){for(var t=0;t<e.length;++t)if(this.srcAlphabet.indexOf(e[t])===-1)return!1;return!0};var TA=Zc,CA=TA;function Bo(e,t){var r=new CA(e,t);return function(i){return r.convert(i)}}Bo.BIN="01";Bo.OCT="01234567";Bo.DEC="0123456789";Bo.HEX="0123456789abcdef";var RA=Bo;const{v4:Rl}=AA,Xa=RA,Pl="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",PA="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",IA={consistentLength:!0};let Il;const wh=(e,t,r)=>{const i=t(e.toLowerCase().replace(/-/g,""));return!r||!r.consistentLength?i:i.padStart(r.shortIdLength,r.paddingChar)},MA=(e,t)=>{const i=t(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[i[1],i[2],i[3],i[4],i[5]].join("-")},LA=e=>Math.ceil(Math.log(2**128)/Math.log(e));var qc=(()=>{const e=(t,r)=>{const i=t||Pl,a={...IA,...r};if([...new Set(Array.from(i))].length!==i.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=LA(i.length),l={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},c=Xa(Xa.HEX,i),d=Xa(i,Xa.HEX),p=()=>wh(Rl(),c,l),h={new:p,generate:p,uuid:Rl,fromUUID:b=>wh(b,c,l),toUUID:b=>MA(b,d),alphabet:i,maxLength:s};return Object.freeze(h),h};return e.constants={flickrBase58:Pl,cookieBase90:PA},e.uuid=Rl,e.generate=()=>(Il||(Il=e(Pl).generate),Il()),e})();const hm=({depth:e,height:t=24,width:r=11,showLines:i=!0})=>{const a=`indent_line_${qc.generate()}`;return $.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:t,children:[$.jsx("defs",{children:$.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:$.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:"rgb(241, 245, 249)"})})}),i?$.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):$.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},vm=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?$.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>r&&r(a),children:(()=>{switch(i){case"arrow":return $.jsx(wl,{className:Pt(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?$.jsx(wl,{}):$.jsx(tO,{});default:return $.jsx(wl,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):$.jsx("div",{className:"flex h-6 w-3 items-center"}),Gc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:a,searchQuery:s,renderNode:l,onNodeClick:c})=>{var w;const{key:d,children:p}=e,h=k.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),b=l&&typeof l=="function"?l(e,t,h,a,s):DA(e,t,h,c);return!((w=e.options)!=null&&w.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?$.jsxs($.Fragment,{children:[$.jsx("div",{className:"flex items-center space-x-2",children:b},d),FA(p||[],t,s,r,i,h.expanded,a,c,l)]}):null},$A=function(e,t){var l;const{title:r,icon:i,subtitle:a}=e;let s=null;return i&&(s=$.jsx(lm,{children:i})),$.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[s,$.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),a&&$.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},FA=function(e,t,r,i,a,s,l,c,d){return e.length&&s?e.map(p=>$.jsx(Gc,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:a,onNodeClick:c,renderNode:d},p.key)):null},DA=function(e,t,r,i){return $.jsxs($.Fragment,{children:[$.jsx(hm,{showLines:!0,depth:t}),$.jsx(vm,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),$A(e,i)]})},Ja=e=>t=>e===t,kA=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:a,searchQuery:s,expandedKeys:l,expandCondition:c="always",encapsulated:d}){const[p,h]=k.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));k.useEffect(()=>{c==="when-collapsed"&&p.expandedKeys.length>0||h({...p,expandedKeys:l||p.expandedKeys})},[l]);const b=k.useCallback(E=>{if(!E)return;const I=p.expandedKeys.findIndex(Ja(E.key));let P=[];I===-1?(P=[...p.expandedKeys,E.key],h(()=>({...p,expandedKeys:P})),a&&a(P)):(P=p.expandedKeys.filter(R=>R!==E.key),h(()=>({...p,expandedKeys:P})),a&&a(P))},[p]),v=k.useCallback(E=>{var P;if(!((P=E==null?void 0:E.options)!=null&&P.selectable))return;p.selectedKeys.findIndex(Ja(E.key))===-1&&h({...p,selectedKeys:[...p.selectedKeys,E.key]})},[p]),w=k.useCallback(E=>{var P;if(!((P=E==null?void 0:E.options)!=null&&P.selectable))return;p.selectedKeys.findIndex(Ja(E.key))===-1&&h({...p,selectedKeys:[E.key]})},[p]),x=k.useCallback(E=>{var P;if(!((P=E==null?void 0:E.options)!=null&&P.selectable)){h({...p,selectedKeys:[]});return}p.selectedKeys.findIndex(Ja(E.key))!==-1&&h({...p,selectedKeys:p.selectedKeys.filter(R=>R!==E.key)})},[p]),g=k.useMemo(()=>({expand:b,select:v,selectSingle:w,deselect:x}),[x,b,v,w]);return $.jsx("div",{className:Pt("fd-tree",{"pl-2 mb-1 rounded border bg-grey-900 p-1":d}),children:t.map(E=>$.jsx(Gc,{node:E,searchQuery:s||"",depth:0,expandedKeys:p.expandedKeys,selectedKeys:p.selectedKeys,actions:g,renderNode:r,onNodeClick:i},E.key))})};function NA(e){return e.of&&e.children?$.jsx($.Fragment,{children:e.children}):null}function lt(){return lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},lt.apply(null,arguments)}function jA(e){for(var t=0,r,i=0,a=e.length;a>=4;++i,a-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var WA={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function mm(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var UA=!1,zA=/[A-Z]|^ms/g,BA=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gm=function(t){return t.charCodeAt(1)===45},bh=function(t){return t!=null&&typeof t!="boolean"},Ml=mm(function(e){return gm(e)?e:e.replace(zA,"-$&").toLowerCase()}),Sh=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(BA,function(i,a,s){return Br={name:a,styles:s,next:Br},a})}return WA[t]!==1&&!gm(t)&&typeof r=="number"&&r!==0?r+"px":r},HA="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Mo(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Br={name:a.name,styles:a.styles,next:Br},a.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)Br={name:l.name,styles:l.styles,next:Br},l=l.next;var c=s.styles+";";return c}return ZA(e,t,r)}case"function":{if(e!==void 0){var d=Br,p=r(e);return Br=d,Mo(e,t,p)}break}}var h=r;if(t==null)return h;var b=t[h];return b!==void 0?b:h}function ZA(e,t,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=Mo(e,t,r[a])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?i+=s+"{"+t[c]+"}":bh(c)&&(i+=Ml(s)+":"+Sh(s,c)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&UA)throw new Error(HA);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)bh(l[d])&&(i+=Ml(s)+":"+Sh(s,l[d])+";");else{var p=Mo(e,t,l);switch(s){case"animation":case"animationName":{i+=Ml(s)+":"+p+";";break}default:i+=s+"{"+p+"}"}}}}return i}var Eh=/label:\s*([^\s;{]+)\s*(;|$)/g,Br;function qA(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,a="";Br=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,a+=Mo(r,t,s);else{var l=s;a+=l[0]}for(var c=1;c<e.length;c++)if(a+=Mo(r,t,e[c]),i){var d=s;a+=d[c]}Eh.lastIndex=0;for(var p="",h;(h=Eh.exec(a))!==null;)p+="-"+h[1];var b=jA(a)+p;return{name:b,styles:a,next:Br}}var GA=function(t){return t()},KA=C.useInsertionEffect?C.useInsertionEffect:!1,YA=KA||GA,VA=!0;function XA(e,t,r){var i="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(i+=a+" ")}),i}var ym=function(t,r,i){var a=t.key+"-"+r.name;(i===!1||VA===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},JA=function(t,r,i){ym(t,r,i);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}},QA=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,eT=mm(function(e){return QA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),tT=!1,rT=eT,nT=function(t){return t!=="theme"},xh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?rT:nT},_h=function(t,r,i){var a;if(r){var s=r.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof a!="function"&&i&&(a=t.__emotion_forwardProp),a},iT=function(t){var r=t.cache,i=t.serialized,a=t.isStringTag;return ym(r,i,a),YA(function(){return JA(r,i,a)}),null},oT=function e(t,r){var i=t.__emotion_real===t,a=i&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var c=_h(t,r,i),d=c||xh(a),p=!d("as");return function(){var h=arguments,b=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&b.push("label:"+s+";"),h[0]==null||h[0].raw===void 0)b.push.apply(b,h);else{var v=h[0];b.push(v[0]);for(var w=h.length,x=1;x<w;x++)b.push(h[x],v[x])}var g=ic.withEmotionCache(function(E,I,P){var R=p&&E.as||a,F="",O=[],D=E;if(E.theme==null){D={};for(var U in E)D[U]=E[U];D.theme=C.useContext(ic.ThemeContext)}typeof E.className=="string"?F=XA(I.registered,O,E.className):E.className!=null&&(F=E.className+" ");var j=qA(b.concat(O),I.registered,D);F+=I.key+"-"+j.name,l!==void 0&&(F+=" "+l);var G=p&&c===void 0?xh(R):d,J={};for(var ie in E)p&&ie==="as"||G(ie)&&(J[ie]=E[ie]);return J.className=F,P&&(J.ref=P),C.createElement(C.Fragment,null,C.createElement(iT,{cache:I,serialized:j,isStringTag:typeof R=="string"}),C.createElement(R,J))});return g.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=a,g.__emotion_styles=b,g.__emotion_forwardProp=c,Object.defineProperty(g,"toString",{value:function(){return l===void 0&&tT?"NO_COMPONENT_SELECTOR":"."+l}}),g.withComponent=function(E,I){var P=e(E,lt({},r,I,{shouldForwardProp:_h(g,I,!0)}));return P.apply(void 0,b)},g}},aT=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Os=oT.bind(null);aT.forEach(function(e){Os[e]=Os(e)});var sT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Fi=new WeakMap,Qa=new WeakMap,es={},Ll=0,wm=function(e){return e&&(e.host||wm(e.parentNode))},uT=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=wm(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},lT=function(e,t,r,i){var a=uT(t,Array.isArray(e)?e:[e]);es[r]||(es[r]=new WeakMap);var s=es[r],l=[],c=new Set,d=new Set(a),p=function(b){!b||c.has(b)||(c.add(b),p(b.parentNode))};a.forEach(p);var h=function(b){!b||d.has(b)||Array.prototype.forEach.call(b.children,function(v){if(c.has(v))h(v);else try{var w=v.getAttribute(i),x=w!==null&&w!=="false",g=(Fi.get(v)||0)+1,E=(s.get(v)||0)+1;Fi.set(v,g),s.set(v,E),l.push(v),g===1&&x&&Qa.set(v,!0),E===1&&v.setAttribute(r,"true"),x||v.setAttribute(i,"true")}catch(I){console.error("aria-hidden: cannot operate on ",v,I)}})};return h(t),c.clear(),Ll++,function(){l.forEach(function(b){var v=Fi.get(b)-1,w=s.get(b)-1;Fi.set(b,v),s.set(b,w),v||(Qa.has(b)||b.removeAttribute(i),Qa.delete(b)),w||b.removeAttribute(r)}),Ll--,Ll||(Fi=new WeakMap,Fi=new WeakMap,Qa=new WeakMap,es={})}},cT=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=sT(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live]"))),lT(i,a,r,"aria-hidden")):function(){return null}};/*! *****************************************************************************
|
|
44
|
-
|
|
70
|
+
`,{_}));for(;typeof g[g.length-1]=="string"&&!g[g.length-1].trim();)g.pop();if(t.wrapper===null)return g;const x=t.wrapper||(_?"span":"div");let C;if(g.length>1||t.forceWrapper)C=g;else{if(g.length===1)return C=g[0],typeof C=="string"?i("span",{key:"outer"},C):C;C=null}return F.createElement(x,{key:"outer"},C)}function s(v){const _=v.match(gO);return _?_.reduce(function(g,x,C){const P=x.indexOf("=");if(P!==-1){const T=function(H){return H.indexOf("-")!==-1&&H.match(IO)===null&&(H=H.replace(DO,function(j,V){return V.toUpperCase()})),H}(x.slice(0,P)).trim(),$=function(H){const j=H[0];return(j==='"'||j==="'")&&H.length>=2&&H[H.length-1]===j?H.slice(1,-1):H}(x.slice(P+1).trim()),A=hh[T]||T,D=g[A]=function(H,j){return H==="style"?j.split(/;\s?/).reduce(function(V,ee){const ye=ee.slice(0,ee.indexOf(":"));return V[ye.replace(/(-[a-z])/g,Re=>Re[1].toUpperCase())]=ee.slice(ye.length+1).trim(),V},{}):H==="href"?Vi(j):(j.match(MO)&&(j=j.slice(1,j.length-1)),j==="true"||j!=="false"&&j)}(T,$);typeof D=="string"&&(dc.test(D)||pc.test(D))&&(g[A]=F.cloneElement(a(D.trim()),{key:C}))}else x!=="style"&&(g[hh[x]||x]=!0);return g},{}):null}const l=[],c={},d={blockQuote:{t:yn(Xv),i:ke.HIGH,l:(v,_,g)=>({v:_(v[0].replace(bO,""),g)}),h:(v,_,g)=>i("blockquote",{key:g.k},_(v.v,g))},breakLine:{t:Fo(SO),i:ke.HIGH,l:El,h:(v,_,g)=>i("br",{key:g.k})},breakThematic:{t:yn(EO),i:ke.HIGH,l:El,h:(v,_,g)=>i("hr",{key:g.k})},codeBlock:{t:yn(Qv),i:ke.MAX,l:v=>({v:v[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(v,_,g)=>i("pre",{key:g.k},i("code",gi({},v.O,{className:v.M?`lang-${v.M}`:""}),v.v))},codeFenced:{t:yn(Jv),i:ke.MAX,l:v=>({O:s(v[3]||""),v:v[4],M:v[2]||void 0,type:"codeBlock"})},codeInline:{t:Nn(_O),i:ke.LOW,l:v=>({v:v[2]}),h:(v,_,g)=>i("code",{key:g.k},v.v)},footnote:{t:yn(AO),i:ke.MAX,l:v=>(l.push({I:v[2],j:v[1]}),{}),h:_l},footnoteReference:{t:Dn(TO),i:ke.HIGH,l:v=>({v:v[1],B:`#${t.slugify(v[1])}`}),h:(v,_,g)=>i("a",{key:g.k,href:Vi(v.B)},i("sup",{key:g.k},v.v))},gfmTask:{t:Dn(CO),i:ke.HIGH,l:v=>({R:v[1].toLowerCase()==="x"}),h:(v,_,g)=>i("input",{checked:v.R,key:g.k,readOnly:!0,type:"checkbox"})},heading:{t:yn(t.enforceAtxHeadings?tm:em),i:ke.HIGH,l:(v,_,g)=>({v:Ss(_,v[2],g),T:t.slugify(v[2]),C:v[1].length}),h:(v,_,g)=>i(`h${v.C}`,{id:v.T,key:g.k},_(v.v,g))},headingSetext:{t:yn(rm),i:ke.MAX,l:(v,_,g)=>({v:Ss(_,v[1],g),C:v[2]==="="?1:2,type:"heading"})},htmlComment:{t:Fo(nm),i:ke.HIGH,l:()=>({}),h:_l},image:{t:Nn(uA),i:ke.HIGH,l:v=>({D:v[1],B:bh(v[2]),F:v[3]}),h:(v,_,g)=>i("img",{key:g.k,alt:v.D||void 0,title:v.F||void 0,src:Vi(v.B)})},link:{t:Dn(sA),i:ke.LOW,l:(v,_,g)=>({v:hA(_,v[1],g),B:bh(v[2]),F:v[3]}),h:(v,_,g)=>i("a",{key:g.k,href:Vi(v.B),title:v.F},_(v.v,g))},linkAngleBraceStyleDetector:{t:Dn($O),i:ke.MAX,l:v=>({v:[{v:v[1],type:"text"}],B:v[1],type:"link"})},linkBareUrlDetector:{t:(v,_)=>_.N?null:Dn(FO)(v,_),i:ke.MAX,l:v=>({v:[{v:v[1],type:"text"}],B:v[1],F:void 0,type:"link"})},linkMailtoDetector:{t:Dn(LO),i:ke.MAX,l(v){let _=v[1],g=v[1];return yO.test(g)||(g="mailto:"+g),{v:[{v:_.replace("mailto:",""),type:"text"}],B:g,type:"link"}}},orderedList:gh(i,1),unorderedList:gh(i,2),newlineCoalescer:{t:yn(xO),i:ke.LOW,l:El,h:()=>`
|
|
71
|
+
`},paragraph:{t:pA,i:ke.LOW,l:Sl,h:(v,_,g)=>i("p",{key:g.k},_(v.v,g))},ref:{t:Dn(NO),i:ke.MAX,l:v=>(c[v[1]]={B:v[2],F:v[4]},{}),h:_l},refImage:{t:Nn(kO),i:ke.MAX,l:v=>({D:v[1]||void 0,P:v[2]}),h:(v,_,g)=>i("img",{key:g.k,alt:v.D,src:Vi(c[v.P].B),title:c[v.P].F})},refLink:{t:Dn(jO),i:ke.MAX,l:(v,_,g)=>({v:_(v[1],g),Z:_(v[0].replace(WO,"\\$1"),g),P:v[2]}),h:(v,_,g)=>c[v.P]?i("a",{key:g.k,href:Vi(c[v.P].B),title:c[v.P].F},_(v.v,g)):i("span",{key:g.k},_(v.Z,g))},table:{t:yn(im),i:ke.HIGH,l:dA,h:(v,_,g)=>i("table",{key:g.k},i("thead",null,i("tr",null,v.L.map(function(x,C){return i("th",{key:C,style:wh(v,C)},_(x,g))}))),i("tbody",null,v.A.map(function(x,C){return i("tr",{key:C},x.map(function(P,T){return i("td",{key:T,style:wh(v,T)},_(P,g))}))})))},tableSeparator:{t:function(v,_){return _.$?(_._=!0,BO.exec(v)):null},i:ke.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Fo(eA),i:ke.MIN,l:v=>({v:v[0].replace(PO,(_,g)=>t.namedCodesToUnicode[g]?t.namedCodesToUnicode[g]:_)}),h:v=>v.v},textBolded:{t:Nn(YO),i:ke.MED,l:(v,_,g)=>({v:_(v[2],g)}),h:(v,_,g)=>i("strong",{key:g.k},_(v.v,g))},textEmphasized:{t:Nn(VO),i:ke.LOW,l:(v,_,g)=>({v:_(v[2],g)}),h:(v,_,g)=>i("em",{key:g.k},_(v.v,g))},textEscaped:{t:Nn(QO),i:ke.HIGH,l:v=>({v:v[1],type:"text"})},textMarked:{t:Nn(XO),i:ke.LOW,l:Sl,h:(v,_,g)=>i("mark",{key:g.k},_(v.v,g))},textStrikethroughed:{t:Nn(JO),i:ke.LOW,l:Sl,h:(v,_,g)=>i("del",{key:g.k},_(v.v,g))}};t.disableParsingRawHTML!==!0&&(d.htmlBlock={t:Fo(dc),i:ke.HIGH,l(v,_,g){const[,x]=v[3].match(rA),C=new RegExp(`^${x}`,"gm"),P=v[3].replace(C,""),T=($=P,lA.some(j=>j.test($))?vA:Ss);var $;const A=v[1].toLowerCase(),D=mO.indexOf(A)!==-1;g.N=g.N||A==="a";const H=D?v[3]:T(_,P,g);return g.N=!1,{O:s(v[2]),v:H,G:D,H:D?A:v[1]}},h:(v,_,g)=>i(v.H,gi({key:g.k},v.O),v.G?v.v:_(v.v,g))},d.htmlSelfClosing={t:Fo(pc),i:ke.HIGH,l:v=>({O:s(v[2]||""),H:v[1]}),h:(v,_,g)=>i(v.H,gi({},v.O,{key:g.k}))});const p=function(v){let _=Object.keys(v);function g(x,C){let P=[],T="";for(;x;){let $=0;for(;$<_.length;){const A=_[$],D=v[A],H=D.t(x,C,T);if(H){const j=H[0];x=x.substring(j.length);const V=D.l(H,g,C);V.type==null&&(V.type=A),P.push(V),T=j;break}$++}}return P}return _.sort(function(x,C){let P=v[x].i,T=v[C].i;return P!==T?P-T:x<C?-1:1}),function(x,C){return g(function(P){return P.replace(OO,`
|
|
72
|
+
`).replace(RO,"").replace(HO," ")}(x),C)}}(d),h=(w=function(v){return function(_,g,x){return v[_.type].h(_,g,x)}}(d),function v(_,g={}){if(Array.isArray(_)){const x=g.k,C=[];let P=!1;for(let T=0;T<_.length;T++){g.k=T;const $=v(_[T],g),A=typeof $=="string";A&&P?C[C.length-1]+=$:$!==null&&C.push($),P=A}return g.k=x,C}return w(_,v,g)});var w;const S=a(e);return l.length?i("div",null,S,i("footer",{key:"footer"},l.map(function(v){return i("div",{id:t.slugify(v.j),key:v.j},v.j,h(p(v.I,{_:!0})))}))):S}(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(ke||(ke={}));const Rs=e=>{let{children:t,options:r}=e,i=function(a,s){if(a==null)return{};var l,c,d={},p=Object.keys(a);for(c=0;c<p.length;c++)s.indexOf(l=p[c])>=0||(d[l]=a[l]);return d}(e,vO);return F.cloneElement(gA(t,r),i)},Sh=({kind:e,customIcon:t})=>{if(t)return k.jsx(t,{className:"mr-1 h-6 w-6 flex-none"});switch(e){case"error":case"danger":return k.jsx(pO,{className:"flex-none h-6 w-6"});case"info":return k.jsx(k.Fragment,{children:k.jsx(fc,{className:"flex-none h-6 w-6"})});case"warning":return k.jsx(k.Fragment,{children:k.jsx(zc,{className:"flex-none h-6 w-6"})});case"message":return k.jsx(k.Fragment,{children:k.jsx(fc,{className:"flex-none h-6 w-6"})});default:return null}},yA=({id:e,onClose:t,kind:r,message:i,markdown:a,customIcon:s})=>{const l=({className:c}={})=>k.jsx("button",{onClick:t,className:Dt("flex items-center justify-center p-1",c),children:k.jsx(cO,{className:"h-5 w-5 font-thin stroke-current"})});return k.jsx("div",{className:Dt("relative flex items-center rounded-lg py-2 px-4 font-semibold",{"bg-yellow-100 text-yellow-400":r==="warning","bg-red-200 text-red-500":r==="danger"||r==="error","bg-primary-light text-primary":r==="info","bg-green-200 text-green-500":r==="message"}),children:typeof i=="string"?k.jsxs("div",{className:"w-full flex items-center justify-between gap-x-3",children:[k.jsxs("div",{className:"flex items-center gap-1",children:[k.jsx(Sh,{kind:r,customIcon:s}),a?k.jsx(Rs,{children:i}):k.jsx(k.Fragment,{children:i})]}),l()]}):k.jsxs("div",{className:"flex items-start",children:[k.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>k.jsxs(k.Fragment,{children:[k.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[k.jsx(Sh,{kind:r,customIcon:s}),k.jsxs("span",{children:[c.title," :"]})]}),k.jsx("ul",{className:"list-disc px-12",children:c.messages.map(d=>k.jsx("li",{children:a?k.jsx(Rs,{children:d}):k.jsx(k.Fragment,{children:d})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},mm=({children:e,size:t,className:r,...i})=>k.jsx("div",{style:{"--width":`${t||24}px`},className:Dt("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var ts,wA=new Uint8Array(16);function gm(){if(!ts&&(ts=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ts))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ts(wA)}const bA=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Bs(e){return typeof e=="string"&&bA.test(e)}var Lt=[];for(var Ol=0;Ol<256;++Ol)Lt.push((Ol+256).toString(16).substr(1));function zs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Lt[e[t+0]]+Lt[e[t+1]]+Lt[e[t+2]]+Lt[e[t+3]]+"-"+Lt[e[t+4]]+Lt[e[t+5]]+"-"+Lt[e[t+6]]+Lt[e[t+7]]+"-"+Lt[e[t+8]]+Lt[e[t+9]]+"-"+Lt[e[t+10]]+Lt[e[t+11]]+Lt[e[t+12]]+Lt[e[t+13]]+Lt[e[t+14]]+Lt[e[t+15]]).toLowerCase();if(!Bs(r))throw TypeError("Stringified UUID is invalid");return r}var Eh,Al,Tl=0,Rl=0;function SA(e,t,r){var i=t&&r||0,a=t||new Array(16);e=e||{};var s=e.node||Eh,l=e.clockseq!==void 0?e.clockseq:Al;if(s==null||l==null){var c=e.random||(e.rng||gm)();s==null&&(s=Eh=[c[0]|1,c[1],c[2],c[3],c[4],c[5]]),l==null&&(l=Al=(c[6]<<8|c[7])&16383)}var d=e.msecs!==void 0?e.msecs:Date.now(),p=e.nsecs!==void 0?e.nsecs:Rl+1,h=d-Tl+(p-Rl)/1e4;if(h<0&&e.clockseq===void 0&&(l=l+1&16383),(h<0||d>Tl)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Tl=d,Rl=p,Al=l,d+=122192928e5;var w=((d&268435455)*1e4+p)%4294967296;a[i++]=w>>>24&255,a[i++]=w>>>16&255,a[i++]=w>>>8&255,a[i++]=w&255;var S=d/4294967296*1e4&268435455;a[i++]=S>>>8&255,a[i++]=S&255,a[i++]=S>>>24&15|16,a[i++]=S>>>16&255,a[i++]=l>>>8|128,a[i++]=l&255;for(var v=0;v<6;++v)a[i+v]=s[v];return t||zs(a)}function ym(e){if(!Bs(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function EA(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var _A="6ba7b810-9dad-11d1-80b4-00c04fd430c8",xA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function wm(e,t,r){function i(a,s,l,c){if(typeof a=="string"&&(a=EA(a)),typeof s=="string"&&(s=ym(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var d=new Uint8Array(16+a.length);if(d.set(s),d.set(a,s.length),d=r(d),d[6]=d[6]&15|t,d[8]=d[8]&63|128,l){c=c||0;for(var p=0;p<16;++p)l[c+p]=d[p];return l}return zs(d)}try{i.name=e}catch{}return i.DNS=_A,i.URL=xA,i}function OA(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return AA(TA(RA(e),e.length*8))}function AA(e){for(var t=[],r=e.length*32,i="0123456789abcdef",a=0;a<r;a+=8){var s=e[a>>5]>>>a%32&255,l=parseInt(i.charAt(s>>>4&15)+i.charAt(s&15),16);t.push(l)}return t}function bm(e){return(e+64>>>9<<4)+14+1}function TA(e,t){e[t>>5]|=128<<t%32,e[bm(t)-1]=t;for(var r=1732584193,i=-271733879,a=-1732584194,s=271733878,l=0;l<e.length;l+=16){var c=r,d=i,p=a,h=s;r=Ut(r,i,a,s,e[l],7,-680876936),s=Ut(s,r,i,a,e[l+1],12,-389564586),a=Ut(a,s,r,i,e[l+2],17,606105819),i=Ut(i,a,s,r,e[l+3],22,-1044525330),r=Ut(r,i,a,s,e[l+4],7,-176418897),s=Ut(s,r,i,a,e[l+5],12,1200080426),a=Ut(a,s,r,i,e[l+6],17,-1473231341),i=Ut(i,a,s,r,e[l+7],22,-45705983),r=Ut(r,i,a,s,e[l+8],7,1770035416),s=Ut(s,r,i,a,e[l+9],12,-1958414417),a=Ut(a,s,r,i,e[l+10],17,-42063),i=Ut(i,a,s,r,e[l+11],22,-1990404162),r=Ut(r,i,a,s,e[l+12],7,1804603682),s=Ut(s,r,i,a,e[l+13],12,-40341101),a=Ut(a,s,r,i,e[l+14],17,-1502002290),i=Ut(i,a,s,r,e[l+15],22,1236535329),r=Ht(r,i,a,s,e[l+1],5,-165796510),s=Ht(s,r,i,a,e[l+6],9,-1069501632),a=Ht(a,s,r,i,e[l+11],14,643717713),i=Ht(i,a,s,r,e[l],20,-373897302),r=Ht(r,i,a,s,e[l+5],5,-701558691),s=Ht(s,r,i,a,e[l+10],9,38016083),a=Ht(a,s,r,i,e[l+15],14,-660478335),i=Ht(i,a,s,r,e[l+4],20,-405537848),r=Ht(r,i,a,s,e[l+9],5,568446438),s=Ht(s,r,i,a,e[l+14],9,-1019803690),a=Ht(a,s,r,i,e[l+3],14,-187363961),i=Ht(i,a,s,r,e[l+8],20,1163531501),r=Ht(r,i,a,s,e[l+13],5,-1444681467),s=Ht(s,r,i,a,e[l+2],9,-51403784),a=Ht(a,s,r,i,e[l+7],14,1735328473),i=Ht(i,a,s,r,e[l+12],20,-1926607734),r=Bt(r,i,a,s,e[l+5],4,-378558),s=Bt(s,r,i,a,e[l+8],11,-2022574463),a=Bt(a,s,r,i,e[l+11],16,1839030562),i=Bt(i,a,s,r,e[l+14],23,-35309556),r=Bt(r,i,a,s,e[l+1],4,-1530992060),s=Bt(s,r,i,a,e[l+4],11,1272893353),a=Bt(a,s,r,i,e[l+7],16,-155497632),i=Bt(i,a,s,r,e[l+10],23,-1094730640),r=Bt(r,i,a,s,e[l+13],4,681279174),s=Bt(s,r,i,a,e[l],11,-358537222),a=Bt(a,s,r,i,e[l+3],16,-722521979),i=Bt(i,a,s,r,e[l+6],23,76029189),r=Bt(r,i,a,s,e[l+9],4,-640364487),s=Bt(s,r,i,a,e[l+12],11,-421815835),a=Bt(a,s,r,i,e[l+15],16,530742520),i=Bt(i,a,s,r,e[l+2],23,-995338651),r=zt(r,i,a,s,e[l],6,-198630844),s=zt(s,r,i,a,e[l+7],10,1126891415),a=zt(a,s,r,i,e[l+14],15,-1416354905),i=zt(i,a,s,r,e[l+5],21,-57434055),r=zt(r,i,a,s,e[l+12],6,1700485571),s=zt(s,r,i,a,e[l+3],10,-1894986606),a=zt(a,s,r,i,e[l+10],15,-1051523),i=zt(i,a,s,r,e[l+1],21,-2054922799),r=zt(r,i,a,s,e[l+8],6,1873313359),s=zt(s,r,i,a,e[l+15],10,-30611744),a=zt(a,s,r,i,e[l+6],15,-1560198380),i=zt(i,a,s,r,e[l+13],21,1309151649),r=zt(r,i,a,s,e[l+4],6,-145523070),s=zt(s,r,i,a,e[l+11],10,-1120210379),a=zt(a,s,r,i,e[l+2],15,718787259),i=zt(i,a,s,r,e[l+9],21,-343485551),r=Hn(r,c),i=Hn(i,d),a=Hn(a,p),s=Hn(s,h)}return[r,i,a,s]}function RA(e){if(e.length===0)return[];for(var t=e.length*8,r=new Uint32Array(bm(t)),i=0;i<t;i+=8)r[i>>5]|=(e[i/8]&255)<<i%32;return r}function Hn(e,t){var r=(e&65535)+(t&65535),i=(e>>16)+(t>>16)+(r>>16);return i<<16|r&65535}function CA(e,t){return e<<t|e>>>32-t}function qs(e,t,r,i,a,s){return Hn(CA(Hn(Hn(t,e),Hn(i,s)),a),r)}function Ut(e,t,r,i,a,s,l){return qs(t&r|~t&i,e,t,a,s,l)}function Ht(e,t,r,i,a,s,l){return qs(t&i|r&~i,e,t,a,s,l)}function Bt(e,t,r,i,a,s,l){return qs(t^r^i,e,t,a,s,l)}function zt(e,t,r,i,a,s,l){return qs(r^(t|~i),e,t,a,s,l)}var PA=wm("v3",48,OA);const IA=PA;function MA(e,t,r){e=e||{};var i=e.random||(e.rng||gm)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){r=r||0;for(var a=0;a<16;++a)t[r+a]=i[a];return t}return zs(i)}function FA(e,t,r,i){switch(e){case 0:return t&r^~t&i;case 1:return t^r^i;case 2:return t&r^t&i^r&i;case 3:return t^r^i}}function Cl(e,t){return e<<t|e>>>32-t}function LA(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var i=unescape(encodeURIComponent(e));e=[];for(var a=0;a<i.length;++a)e.push(i.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,l=Math.ceil(s/16),c=new Array(l),d=0;d<l;++d){for(var p=new Uint32Array(16),h=0;h<16;++h)p[h]=e[d*64+h*4]<<24|e[d*64+h*4+1]<<16|e[d*64+h*4+2]<<8|e[d*64+h*4+3];c[d]=p}c[l-1][14]=(e.length-1)*8/Math.pow(2,32),c[l-1][14]=Math.floor(c[l-1][14]),c[l-1][15]=(e.length-1)*8&4294967295;for(var w=0;w<l;++w){for(var S=new Uint32Array(80),v=0;v<16;++v)S[v]=c[w][v];for(var _=16;_<80;++_)S[_]=Cl(S[_-3]^S[_-8]^S[_-14]^S[_-16],1);for(var g=r[0],x=r[1],C=r[2],P=r[3],T=r[4],$=0;$<80;++$){var A=Math.floor($/20),D=Cl(g,5)+FA(A,x,C,P)+T+t[A]+S[$]>>>0;T=P,P=C,C=Cl(x,30)>>>0,x=g,g=D}r[0]=r[0]+g>>>0,r[1]=r[1]+x>>>0,r[2]=r[2]+C>>>0,r[3]=r[3]+P>>>0,r[4]=r[4]+T>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var $A=wm("v5",80,LA);const DA=$A,NA="00000000-0000-0000-0000-000000000000";function kA(e){if(!Bs(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const jA=Object.freeze(Object.defineProperty({__proto__:null,NIL:NA,parse:ym,stringify:zs,v1:SA,v3:IA,v4:MA,v5:DA,validate:Bs,version:kA},Symbol.toStringTag,{value:"Module"})),WA=z_(jA);function Gc(e,t){if(!e||!t||!e.length||!t.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=t}Gc.prototype.convert=function(e){var t,r,i,a={},s=this.srcAlphabet.length,l=this.dstAlphabet.length,c=e.length,d=typeof e=="string"?"":[];if(!this.isValid(e))throw new Error('Number "'+e+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return e;for(t=0;t<c;t++)a[t]=this.srcAlphabet.indexOf(e[t]);do{for(r=0,i=0,t=0;t<c;t++)r=r*s+a[t],r>=l?(a[i++]=parseInt(r/l,10),r=r%l):i>0&&(a[i++]=0);c=i,d=this.dstAlphabet.slice(r,r+1).concat(d)}while(i!==0);return d};Gc.prototype.isValid=function(e){for(var t=0;t<e.length;++t)if(this.srcAlphabet.indexOf(e[t])===-1)return!1;return!0};var UA=Gc,HA=UA;function ra(e,t){var r=new HA(e,t);return function(i){return r.convert(i)}}ra.BIN="01";ra.OCT="01234567";ra.DEC="0123456789";ra.HEX="0123456789abcdef";var BA=ra;const{v4:Pl}=WA,rs=BA,Il="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",zA="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",qA={consistentLength:!0};let Ml;const _h=(e,t,r)=>{const i=t(e.toLowerCase().replace(/-/g,""));return!r||!r.consistentLength?i:i.padStart(r.shortIdLength,r.paddingChar)},ZA=(e,t)=>{const i=t(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[i[1],i[2],i[3],i[4],i[5]].join("-")},GA=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Kc=(()=>{const e=(t,r)=>{const i=t||Il,a={...qA,...r};if([...new Set(Array.from(i))].length!==i.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const s=GA(i.length),l={shortIdLength:s,consistentLength:a.consistentLength,paddingChar:i[0]},c=rs(rs.HEX,i),d=rs(i,rs.HEX),p=()=>_h(Pl(),c,l),h={new:p,generate:p,uuid:Pl,fromUUID:w=>_h(w,c,l),toUUID:w=>ZA(w,d),alphabet:i,maxLength:s};return Object.freeze(h),h};return e.constants={flickrBase58:Il,cookieBase90:zA},e.uuid=Pl,e.generate=()=>(Ml||(Ml=e(Il).generate),Ml()),e})();const Sm=({depth:e,height:t=24,width:r=11,showLines:i=!0})=>{const a=`indent_line_${Kc.generate()}`;return k.jsxs("svg",{viewBox:`0 0 ${11*e} 24`,width:`${11*e}`,height:t,children:[k.jsx("defs",{children:k.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:k.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:"rgb(241, 245, 249)"})})}),i?k.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):k.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},Em=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?k.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>r&&r(a),children:(()=>{switch(i){case"arrow":return k.jsx(bl,{className:Dt(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?k.jsx(bl,{}):k.jsx(dO,{});default:return k.jsx(bl,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):k.jsx("div",{className:"flex h-6 w-3 items-center"}),Yc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:a,searchQuery:s,renderNode:l,onNodeClick:c})=>{var v;const{key:d,children:p}=e,h=N.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),w=l&&typeof l=="function"?l(e,t,h,a,s):VA(e,t,h,c);return!((v=e.options)!=null&&v.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?k.jsxs(k.Fragment,{children:[k.jsx("div",{className:"flex items-center space-x-2",children:w},d),YA(p||[],t,s,r,i,h.expanded,a,c,l)]}):null},KA=function(e,t){var l;const{title:r,icon:i,subtitle:a}=e;let s=null;return i&&(s=k.jsx(mm,{children:i})),k.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[s,k.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),a&&k.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},YA=function(e,t,r,i,a,s,l,c,d){return e.length&&s?e.map(p=>k.jsx(Yc,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:a,onNodeClick:c,renderNode:d},p.key)):null},VA=function(e,t,r,i){return k.jsxs(k.Fragment,{children:[k.jsx(Sm,{showLines:!0,depth:t}),k.jsx(Em,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),KA(e,i)]})},ns=e=>t=>e===t,XA=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:a,searchQuery:s,expandedKeys:l,expandCondition:c="always",encapsulated:d}){const[p,h]=N.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));N.useEffect(()=>{c==="when-collapsed"&&p.expandedKeys.length>0||h({...p,expandedKeys:l||p.expandedKeys})},[l]);const w=N.useCallback(x=>{if(!x)return;const C=p.expandedKeys.findIndex(ns(x.key));let P=[];C===-1?(P=[...p.expandedKeys,x.key],h(()=>({...p,expandedKeys:P})),a&&a(P)):(P=p.expandedKeys.filter(T=>T!==x.key),h(()=>({...p,expandedKeys:P})),a&&a(P))},[p]),S=N.useCallback(x=>{var P;if(!((P=x==null?void 0:x.options)!=null&&P.selectable))return;p.selectedKeys.findIndex(ns(x.key))===-1&&h({...p,selectedKeys:[...p.selectedKeys,x.key]})},[p]),v=N.useCallback(x=>{var P;if(!((P=x==null?void 0:x.options)!=null&&P.selectable))return;p.selectedKeys.findIndex(ns(x.key))===-1&&h({...p,selectedKeys:[x.key]})},[p]),_=N.useCallback(x=>{var P;if(!((P=x==null?void 0:x.options)!=null&&P.selectable)){h({...p,selectedKeys:[]});return}p.selectedKeys.findIndex(ns(x.key))!==-1&&h({...p,selectedKeys:p.selectedKeys.filter(T=>T!==x.key)})},[p]),g=N.useMemo(()=>({expand:w,select:S,selectSingle:v,deselect:_}),[_,w,S,v]);return k.jsx("div",{className:Dt("fd-tree",{"pl-2 mb-1 rounded border bg-grey-900 p-1":d}),children:t.map(x=>k.jsx(Yc,{node:x,searchQuery:s||"",depth:0,expandedKeys:p.expandedKeys,selectedKeys:p.selectedKeys,actions:g,renderNode:r,onNodeClick:i},x.key))})};function JA(e){return e.of&&e.children?k.jsx(k.Fragment,{children:e.children}):null}function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ct.apply(this,arguments)}function _m(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var QA=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,eT=_m(function(e){return QA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),tT=!0;function rT(e,t,r){var i="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):i+=a+" "}),i}var xm=function(t,r,i){var a=t.key+"-"+r.name;(i===!1||tT===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},nT=function(t,r,i){xm(t,r,i);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function iT(e){for(var t=0,r,i=0,a=e.length;a>=4;++i,a-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var oT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},xh=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
73
|
+
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
74
|
+
You can read more about this here:
|
|
75
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,aT="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",sT=/[A-Z]|^ms/g,Om=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vc=function(t){return t.charCodeAt(1)===45},Oh=function(t){return t!=null&&typeof t!="boolean"},Fl=_m(function(e){return Vc(e)?e:e.replace(sT,"-$&").toLowerCase()}),Cs=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Om,function(i,a,s){return zr={name:a,styles:s,next:zr},a})}return oT[t]!==1&&!Vc(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var uT=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,lT=["normal","none","initial","inherit","unset"],cT=Cs,fT=/^-ms-/,dT=/-(.)/g,Ah={};Cs=function(t,r){if(t==="content"&&(typeof r!="string"||lT.indexOf(r)===-1&&!uT.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var i=cT(t,r);return i!==""&&!Vc(t)&&t.indexOf("-")!==-1&&Ah[t]===void 0&&(Ah[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(fT,"ms-").replace(dT,function(a,s){return s.toUpperCase()})+"?")),i}}var Am="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function zo(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Am);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return zr={name:r.name,styles:r.styles,next:zr},r.name;if(r.styles!==void 0){var i=r.next;if(i!==void 0)for(;i!==void 0;)zr={name:i.name,styles:i.styles,next:zr},i=i.next;var a=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(a+=r.map),a}return pT(e,t,r)}case"function":{if(e!==void 0){var s=zr,l=r(e);return zr=s,zo(e,t,l)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var c=[],d=r.replace(Om,function(h,w,S){var v="animation"+c.length;return c.push("const "+v+" = keyframes`"+S.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+v+"}"});c.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(c,["`"+d+"`"]).join(`
|
|
76
|
+
`)+`
|
|
45
77
|
|
|
46
|
-
|
|
47
|
-
purpose with or without fee is hereby granted.
|
|
78
|
+
You should wrap it with \`css\` like this:
|
|
48
79
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
56
|
-
***************************************************************************** */var ji=function(){return ji=Object.assign||function(t){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},ji.apply(this,arguments)};function fT(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}var gs="right-scroll-bar-position",ys="width-before-scroll-bar",dT="with-scroll-bars-hidden",pT="--removed-body-scroll-bar-size",fc=function(e,t){return fc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},fc(e,t)};function Ws(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var As=function(){return As=Object.assign||function(t){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},As.apply(this,arguments)};function hT(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}function dc(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function pc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,s=[],l;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return s}function hc(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,s;i<a;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function vT(e){return e}function mT(e,t){t===void 0&&(t=vT);var r=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var l=t(s,i);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(i=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(c){return s(c)},filter:function(){return r}}},assignMedium:function(s){i=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(s),l=r}var d=function(){var h=l;l=[],h.forEach(s)},p=function(){return Promise.resolve().then(d)};p(),r={push:function(h){l.push(h),p()},filter:function(h){return l=l.filter(h),r}}}};return a}function gT(e){e===void 0&&(e={});var t=mT(null);return t.options=As({async:!0,ssr:!1},e),t}var bm=function(e){var t=e.sideCar,r=hT(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return C.createElement(i,As({},r))};bm.isSideCarExport=!0;function yT(e,t){return e.useMedium(t),bm}var Sm=gT();function $l(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function wT(e,t){var r=k.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var a=r.value;a!==i&&(r.value=i,r.callback(i,a))}}}})[0];return r.callback=t,r.facade}var bT=typeof window<"u"?C.useLayoutEffect:C.useEffect,Oh=new WeakMap;function ST(e,t){var r=wT(null,function(i){return e.forEach(function(a){return $l(a,i)})});return bT(function(){var i=Oh.get(r);if(i){var a=new Set(i),s=new Set(e),l=r.current;a.forEach(function(c){s.has(c)||$l(c,null)}),s.forEach(function(c){a.has(c)||$l(c,l)})}Oh.set(r,e)},[e]),r}var Fl=function(){},Us=C.forwardRef(function(e,t){var r=C.useRef(null),i=C.useState({onScrollCapture:Fl,onWheelCapture:Fl,onTouchMoveCapture:Fl}),a=i[0],s=i[1],l=e.forwardProps,c=e.children,d=e.className,p=e.removeScrollBar,h=e.enabled,b=e.shards,v=e.sideCar,w=e.noIsolation,x=e.inert,g=e.allowPinchZoom,E=e.as,I=E===void 0?"div":E,P=fT(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),R=v,F=ST([r,t]),O=ji({},P,a);return C.createElement(C.Fragment,null,h&&C.createElement(R,{sideCar:Sm,removeScrollBar:p,shards:b,noIsolation:w,inert:x,setCallbacks:s,allowPinchZoom:!!g,lockRef:r}),l?C.cloneElement(C.Children.only(c),ji({},O,{ref:F})):C.createElement(I,ji({},O,{className:d,ref:F}),c))});Us.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Us.classNames={fullWidth:ys,zeroRight:gs};var ET=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ET();return t&&e.setAttribute("nonce",t),e}function _T(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function OT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var AT=function(){var e=0,t=null;return{add:function(r){e==0&&(t=xT())&&(_T(t,r),OT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},TT=function(){var e=AT();return function(t,r){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Em=function(){var e=TT(),t=function(r){var i=r.styles,a=r.dynamic;return e(i,a),null};return t},CT={left:0,top:0,right:0,gap:0},Dl=function(e){return parseInt(e||"",10)||0},RT=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Dl(r),Dl(i),Dl(a)]},PT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return CT;var t=RT(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},IT=Em(),Wi="data-scroll-locked",MT=function(e,t,r,i){var a=e.left,s=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
57
|
-
.`.concat(dT,` {
|
|
80
|
+
`+("css`"+d+"`"))}break}if(t==null)return r;var p=t[r];return p!==void 0?p:r}function pT(e,t,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=zo(e,t,r[a])+";";else for(var s in r){var l=r[s];if(typeof l!="object")t!=null&&t[l]!==void 0?i+=s+"{"+t[l]+"}":Oh(l)&&(i+=Fl(s)+":"+Cs(s,l)+";");else{if(s==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Am);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var c=0;c<l.length;c++)Oh(l[c])&&(i+=Fl(s)+":"+Cs(s,l[c])+";");else{var d=zo(e,t,l);switch(s){case"animation":case"animationName":{i+=Fl(s)+":"+d+";";break}default:process.env.NODE_ENV!=="production"&&s==="undefined"&&console.error(aT),i+=s+"{"+d+"}"}}}}return i}var Th=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Tm;process.env.NODE_ENV!=="production"&&(Tm=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var zr,hT=function(t,r,i){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var a=!0,s="";zr=void 0;var l=t[0];l==null||l.raw===void 0?(a=!1,s+=zo(i,r,l)):(process.env.NODE_ENV!=="production"&&l[0]===void 0&&console.error(xh),s+=l[0]);for(var c=1;c<t.length;c++)s+=zo(i,r,t[c]),a&&(process.env.NODE_ENV!=="production"&&l[c]===void 0&&console.error(xh),s+=l[c]);var d;process.env.NODE_ENV!=="production"&&(s=s.replace(Tm,function(S){return d=S,""})),Th.lastIndex=0;for(var p="",h;(h=Th.exec(s))!==null;)p+="-"+h[1];var w=iT(s)+p;return process.env.NODE_ENV!=="production"?{name:w,styles:s,map:d,next:zr,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:w,styles:s,next:zr}},vT=function(t){return t()},mT=F["useInsertionEffect"]?F["useInsertionEffect"]:!1,gT=mT||vT,yT=eT,wT=function(t){return t!=="theme"},Rh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?yT:wT},Ch=function(t,r,i){var a;if(r){var s=r.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof a!="function"&&i&&(a=t.__emotion_forwardProp),a},Ph=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
81
|
+
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
82
|
+
You can read more about this here:
|
|
83
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,bT=function(t){var r=t.cache,i=t.serialized,a=t.isStringTag;return xm(r,i,a),gT(function(){return nT(r,i,a)}),null},ST=function e(t,r){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
|
84
|
+
You may have forgotten to import it.`);var i=t.__emotion_real===t,a=i&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var c=Ch(t,r,i),d=c||Rh(a),p=!d("as");return function(){var h=arguments,w=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&w.push("label:"+s+";"),h[0]==null||h[0].raw===void 0)w.push.apply(w,h);else{process.env.NODE_ENV!=="production"&&h[0][0]===void 0&&console.error(Ph),w.push(h[0][0]);for(var S=h.length,v=1;v<S;v++)process.env.NODE_ENV!=="production"&&h[0][v]===void 0&&console.error(Ph),w.push(h[v],h[0][v])}var _=ac.withEmotionCache(function(g,x,C){var P=p&&g.as||a,T="",$=[],A=g;if(g.theme==null){A={};for(var D in g)A[D]=g[D];A.theme=F.useContext(ac.ThemeContext)}typeof g.className=="string"?T=rT(x.registered,$,g.className):g.className!=null&&(T=g.className+" ");var H=hT(w.concat($),x.registered,A);T+=x.key+"-"+H.name,l!==void 0&&(T+=" "+l);var j=p&&c===void 0?Rh(P):d,V={};for(var ee in g)p&&ee==="as"||j(ee)&&(V[ee]=g[ee]);return V.className=T,V.ref=C,F.createElement(F.Fragment,null,F.createElement(bT,{cache:x,serialized:H,isStringTag:typeof P=="string"}),F.createElement(P,V))});return _.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=a,_.__emotion_styles=w,_.__emotion_forwardProp=c,Object.defineProperty(_,"toString",{value:function(){return l===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+l}}),_.withComponent=function(g,x){return e(g,Ct({},r,x,{shouldForwardProp:Ch(_,x,!0)})).apply(void 0,w)},_}},ET=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ps=ST.bind();ET.forEach(function(e){Ps[e]=Ps(e)});var _T=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xi=new WeakMap,is=new WeakMap,os={},Ll=0,Rm=function(e){return e&&(e.host||Rm(e.parentNode))},xT=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=Rm(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},OT=function(e,t,r,i){var a=xT(t,Array.isArray(e)?e:[e]);os[r]||(os[r]=new WeakMap);var s=os[r],l=[],c=new Set,d=new Set(a),p=function(w){!w||c.has(w)||(c.add(w),p(w.parentNode))};a.forEach(p);var h=function(w){!w||d.has(w)||Array.prototype.forEach.call(w.children,function(S){if(c.has(S))h(S);else{var v=S.getAttribute(i),_=v!==null&&v!=="false",g=(Xi.get(S)||0)+1,x=(s.get(S)||0)+1;Xi.set(S,g),s.set(S,x),l.push(S),g===1&&_&&is.set(S,!0),x===1&&S.setAttribute(r,"true"),_||S.setAttribute(i,"true")}})};return h(t),c.clear(),Ll++,function(){l.forEach(function(w){var S=Xi.get(w)-1,v=s.get(w)-1;Xi.set(w,S),s.set(w,v),S||(is.has(w)||w.removeAttribute(i),is.delete(w)),v||w.removeAttribute(r)}),Ll--,Ll||(Xi=new WeakMap,Xi=new WeakMap,is=new WeakMap,os={})}},AT=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=t||_T(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live]"))),OT(i,a,r,"aria-hidden")):function(){return null}},hc=function(e,t){return hc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},hc(e,t)};function Zs(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Jr=function(){return Jr=Object.assign||function(t){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Jr.apply(this,arguments)};function Cm(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(r[i[a]]=e[i[a]]);return r}function vc(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Is(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,s=[],l;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return s}function qo(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,s;i<a;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var Es="right-scroll-bar-position",_s="width-before-scroll-bar",TT="with-scroll-bars-hidden",RT="--removed-body-scroll-bar-size";function CT(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function PT(e,t){var r=N.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var a=r.value;a!==i&&(r.value=i,r.callback(i,a))}}}})[0];return r.callback=t,r.facade}function IT(e,t){return PT(t||null,function(r){return e.forEach(function(i){return CT(i,r)})})}function MT(e){return e}function FT(e,t){t===void 0&&(t=MT);var r=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var l=t(s,i);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(i=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(c){return s(c)},filter:function(){return r}}},assignMedium:function(s){i=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(s),l=r}var d=function(){var h=l;l=[],h.forEach(s)},p=function(){return Promise.resolve().then(d)};p(),r={push:function(h){l.push(h),p()},filter:function(h){return l=l.filter(h),r}}}};return a}function LT(e){e===void 0&&(e={});var t=FT(null);return t.options=Jr({async:!0,ssr:!1},e),t}var Pm=function(e){var t=e.sideCar,r=Cm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return F.createElement(i,Jr({},r))};Pm.isSideCarExport=!0;function $T(e,t){return e.useMedium(t),Pm}var Im=LT(),$l=function(){},Gs=F.forwardRef(function(e,t){var r=F.useRef(null),i=F.useState({onScrollCapture:$l,onWheelCapture:$l,onTouchMoveCapture:$l}),a=i[0],s=i[1],l=e.forwardProps,c=e.children,d=e.className,p=e.removeScrollBar,h=e.enabled,w=e.shards,S=e.sideCar,v=e.noIsolation,_=e.inert,g=e.allowPinchZoom,x=e.as,C=x===void 0?"div":x,P=e.gapMode,T=Cm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),$=S,A=IT([r,t]),D=Jr(Jr({},T),a);return F.createElement(F.Fragment,null,h&&F.createElement($,{sideCar:Im,removeScrollBar:p,shards:w,noIsolation:v,inert:_,setCallbacks:s,allowPinchZoom:!!g,lockRef:r,gapMode:P}),l?F.cloneElement(F.Children.only(c),Jr(Jr({},D),{ref:A})):F.createElement(C,Jr({},D,{className:d,ref:A}),c))});Gs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gs.classNames={fullWidth:_s,zeroRight:Es};var Ih,DT=function(){if(Ih)return Ih;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function NT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=DT();return t&&e.setAttribute("nonce",t),e}function kT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function jT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var WT=function(){var e=0,t=null;return{add:function(r){e==0&&(t=NT())&&(kT(t,r),jT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},UT=function(){var e=WT();return function(t,r){F.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Mm=function(){var e=UT(),t=function(r){var i=r.styles,a=r.dynamic;return e(i,a),null};return t},HT={left:0,top:0,right:0,gap:0},Dl=function(e){return parseInt(e||"",10)||0},BT=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Dl(r),Dl(i),Dl(a)]},zT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return HT;var t=BT(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},qT=Mm(),ZT=function(e,t,r,i){var a=e.left,s=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
85
|
+
.`.concat(TT,` {
|
|
58
86
|
overflow: hidden `).concat(i,`;
|
|
59
87
|
padding-right: `).concat(c,"px ").concat(i,`;
|
|
60
88
|
}
|
|
61
|
-
body
|
|
89
|
+
body {
|
|
62
90
|
overflow: hidden `).concat(i,`;
|
|
63
91
|
overscroll-behavior: contain;
|
|
64
92
|
`).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
@@ -71,58 +99,58 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
71
99
|
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
72
100
|
}
|
|
73
101
|
|
|
74
|
-
.`).concat(
|
|
102
|
+
.`).concat(Es,` {
|
|
75
103
|
right: `).concat(c,"px ").concat(i,`;
|
|
76
104
|
}
|
|
77
105
|
|
|
78
|
-
.`).concat(
|
|
106
|
+
.`).concat(_s,` {
|
|
79
107
|
margin-right: `).concat(c,"px ").concat(i,`;
|
|
80
108
|
}
|
|
81
109
|
|
|
82
|
-
.`).concat(
|
|
110
|
+
.`).concat(Es," .").concat(Es,` {
|
|
83
111
|
right: 0 `).concat(i,`;
|
|
84
112
|
}
|
|
85
113
|
|
|
86
|
-
.`).concat(
|
|
114
|
+
.`).concat(_s," .").concat(_s,` {
|
|
87
115
|
margin-right: 0 `).concat(i,`;
|
|
88
116
|
}
|
|
89
117
|
|
|
90
|
-
body
|
|
91
|
-
`).concat(
|
|
118
|
+
body {
|
|
119
|
+
`).concat(RT,": ").concat(c,`px;
|
|
92
120
|
}
|
|
93
|
-
`)},
|
|
94
|
-
.block-interactivity
|
|
95
|
-
.allow-interactivity
|
|
96
|
-
`},zT=0,ki=[];function BT(e){var t=C.useRef([]),r=C.useRef([0,0]),i=C.useRef(),a=C.useState(zT++)[0],s=C.useState(function(){return Em()})[0],l=C.useRef(e);C.useEffect(function(){l.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-"+a);var g=[e.lockRef.current].concat((e.shards||[]).map(Rh)).filter(Boolean);return g.forEach(function(E){return E.classList.add("allow-interactivity-"+a)}),function(){document.body.classList.remove("block-interactivity-"+a),g.forEach(function(E){return E.classList.remove("allow-interactivity-"+a)})}}},[e.inert,e.lockRef.current,e.shards]);var c=C.useCallback(function(g,E){if("touches"in g&&g.touches.length===2)return!l.current.allowPinchZoom;var I=rs(g),P=r.current,R="deltaX"in g?g.deltaX:P[0]-I[0],F="deltaY"in g?g.deltaY:P[1]-I[1],O,D=g.target,U=Math.abs(R)>Math.abs(F)?"h":"v",j=Th(U,D);if(!j)return!0;if(j?O=U:(O=U==="v"?"h":"v",j=Th(U,D)),!j)return!1;if(!i.current&&"changedTouches"in g&&(R||F)&&(i.current=O),!O)return!0;var G=i.current||O;return jT(G,E,g,G==="h"?R:F,!0)},[]),d=C.useCallback(function(g){var E=g;if(!(!ki.length||ki[ki.length-1]!==s)){var I="deltaY"in E?Ch(E):rs(E),P=t.current.filter(function(O){return O.name===E.type&&O.target===E.target&&WT(O.delta,I)})[0];if(P&&P.should){E.preventDefault();return}if(!P){var R=(l.current.shards||[]).map(Rh).filter(Boolean).filter(function(O){return O.contains(E.target)}),F=R.length>0?c(E,R[0]):!l.current.noIsolation;F&&E.preventDefault()}}},[]),p=C.useCallback(function(g,E,I,P){var R={name:g,delta:E,target:I,should:P};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(F){return F!==R})},1)},[]),h=C.useCallback(function(g){r.current=rs(g),i.current=void 0},[]),b=C.useCallback(function(g){p(g.type,Ch(g),g.target,c(g,e.lockRef.current))},[]),v=C.useCallback(function(g){p(g.type,rs(g),g.target,c(g,e.lockRef.current))},[]);C.useEffect(function(){return ki.push(s),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:v}),document.addEventListener("wheel",d,Di),document.addEventListener("touchmove",d,Di),document.addEventListener("touchstart",h,Di),function(){ki=ki.filter(function(g){return g!==s}),document.removeEventListener("wheel",d,Di),document.removeEventListener("touchmove",d,Di),document.removeEventListener("touchstart",h,Di)}},[]);var w=e.removeScrollBar,x=e.inert;return C.createElement(C.Fragment,null,x?C.createElement(s,{styles:UT(a)}):null,w?C.createElement($T,{gapMode:"margin"}):null)}const HT=yT(Sm,BT);var Om=C.forwardRef(function(e,t){return C.createElement(Us,ji({},e,{ref:t,sideCar:HT}))});Om.classNames=Us.classNames;const Lo=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},ZT=C.useId||(()=>{});let qT=0;function GT(e){const[t,r]=C.useState(ZT());return Lo(()=>{e||r(i=>i??String(qT++))},[e]),e||(t?`radix-${t}`:"")}function Am(...e){return t=>e.forEach(r=>function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)}(r,t))}function Gi(...e){return C.useCallback(Am(...e),e)}const Tm=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.Children.toArray(r).some(Ph)?C.createElement(C.Fragment,null,C.Children.map(r,a=>Ph(a)?C.createElement(mc,lt({},i,{ref:t}),a.props.children):a)):C.createElement(mc,lt({},i,{ref:t}),r)});Tm.displayName="Slot";const mc=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.isValidElement(r)?C.cloneElement(r,{...YT(i,r.props),ref:Am(t,r.ref)}):C.Children.count(r)>1?C.Children.only(null):null});mc.displayName="SlotClone";const KT=({children:e})=>C.createElement(C.Fragment,null,e);function Ph(e){return C.isValidElement(e)&&e.type===KT}function YT(e,t){const r={...t};for(const i in t){const a=e[i],s=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{s==null||s(...l),a==null||a(...l)}:i==="style"?r[i]={...a,...s}:i==="className"&&(r[i]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}const Ho=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>({...e,[t]:C.forwardRef((r,i)=>{const{asChild:a,...s}=r,l=a?Tm:t;return C.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),C.createElement(l,lt({},s,{ref:i}))})}),{}),Cm=e=>{const{present:t,children:r}=e,i=function(l){const[c,d]=C.useState(),p=C.useRef({}),h=C.useRef(l),b=C.useRef("none"),v=l?"mounted":"unmounted",[w,x]=function(g,E){return C.useReducer((I,P)=>{const R=E[I][P];return R??I},g)}(v,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const g=ns(p.current);b.current=w==="mounted"?g:"none"},[w]),Lo(()=>{const g=p.current,E=h.current;if(E!==l){const I=b.current,P=ns(g);l?x("MOUNT"):P==="none"||(g==null?void 0:g.display)==="none"?x("UNMOUNT"):x(E&&I!==P?"ANIMATION_OUT":"UNMOUNT"),h.current=l}},[l,x]),Lo(()=>{if(c){const g=I=>{const P=ns(p.current).includes(I.animationName);I.target===c&&P&&x("ANIMATION_END")},E=I=>{I.target===c&&(b.current=ns(p.current))};return c.addEventListener("animationstart",E),c.addEventListener("animationcancel",g),c.addEventListener("animationend",g),()=>{c.removeEventListener("animationstart",E),c.removeEventListener("animationcancel",g),c.removeEventListener("animationend",g)}}x("ANIMATION_END")},[c,x]),{isPresent:["mounted","unmountSuspended"].includes(w),ref:C.useCallback(g=>{g&&(p.current=getComputedStyle(g)),d(g)},[])}}(t),a=typeof r=="function"?r({present:i.isPresent}):C.Children.only(r),s=Gi(i.ref,a.ref);return typeof r=="function"||i.isPresent?C.cloneElement(a,{ref:s}):null};function ns(e){return(e==null?void 0:e.animationName)||"none"}Cm.displayName="Presence";let kl=0;function VT(){C.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Ih()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Ih()),kl++,()=>{kl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),kl--}},[])}function Ih(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Rm=C.forwardRef((e,t)=>{var r,i;const{containerRef:a,style:s,...l}=e,c=(r=a==null?void 0:a.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,d]=C.useState({});return Lo(()=>{d({})},[]),c?Wo.createPortal(C.createElement(Ho.div,lt({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),c):null});function Mh(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)},[])}function Pm(...e){return t=>e.forEach(r=>function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)}(r,t))}function XT(...e){return C.useCallback(Pm(...e),e)}const Im=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.Children.toArray(r).some(Lh)?C.createElement(C.Fragment,null,C.Children.map(r,a=>Lh(a)?C.createElement(gc,lt({},i,{ref:t}),a.props.children):a)):C.createElement(gc,lt({},i,{ref:t}),r)});Im.displayName="Slot";const gc=C.forwardRef((e,t)=>{const{children:r,...i}=e;return C.isValidElement(r)?C.cloneElement(r,{...QT(i,r.props),ref:Pm(t,r.ref)}):C.Children.count(r)>1?C.Children.only(null):null});gc.displayName="SlotClone";const JT=({children:e})=>C.createElement(C.Fragment,null,e);function Lh(e){return C.isValidElement(e)&&e.type===JT}function QT(e,t){const r={...t};for(const i in t){const a=e[i],s=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{s==null||s(...l),a==null||a(...l)}:i==="style"?r[i]={...a,...s}:i==="className"&&(r[i]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}const eC=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>({...e,[t]:C.forwardRef((r,i)=>{const{asChild:a,...s}=r,l=a?Im:t;return C.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),C.createElement(l,lt({},s,{ref:i}))})}),{}),$h={bubbles:!1,cancelable:!0},tC=C.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[c,d]=C.useState(null),p=Mh(a),h=Mh(s),b=C.useRef(null),v=XT(t,g=>d(g)),w=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(i){let g=function(I){if(w.paused||!c)return;const P=I.target;c.contains(P)?b.current=P:ei(b.current,{select:!0})},E=function(I){!w.paused&&c&&(c.contains(I.relatedTarget)||ei(b.current,{select:!0}))};return document.addEventListener("focusin",g),document.addEventListener("focusout",E),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",E)}}},[i,c,w.paused]),C.useEffect(()=>{if(c){kh.add(w);const E=document.activeElement;if(!c.contains(E)){const I=new Event("focusScope.autoFocusOnMount",$h);c.addEventListener("focusScope.autoFocusOnMount",p),c.dispatchEvent(I),I.defaultPrevented||(function(P,{select:R=!1}={}){const F=document.activeElement;for(const O of P)if(ei(O,{select:R}),document.activeElement!==F)return}((g=Fh(c),g.filter(P=>P.tagName!=="A")),{select:!0}),document.activeElement===E&&ei(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",p),setTimeout(()=>{const I=new Event("focusScope.autoFocusOnUnmount",$h);c.addEventListener("focusScope.autoFocusOnUnmount",h),c.dispatchEvent(I),I.defaultPrevented||ei(E??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",h),kh.remove(w)},0)}}var g},[c,p,h,w]);const x=C.useCallback(g=>{if(!r&&!i||w.paused)return;const E=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,I=document.activeElement;if(E&&I){const P=g.currentTarget,[R,F]=function(O){const D=Fh(O),U=Dh(D,O),j=Dh(D.reverse(),O);return[U,j]}(P);R&&F?g.shiftKey||I!==F?g.shiftKey&&I===R&&(g.preventDefault(),r&&ei(F,{select:!0})):(g.preventDefault(),r&&ei(R,{select:!0})):I===P&&g.preventDefault()}},[r,i,w.paused]);return C.createElement(eC.div,lt({tabIndex:-1},l,{ref:v,onKeyDown:x}))});function Fh(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Dh(e,t){for(const r of e)if(!rC(r,{upTo:t}))return r}function rC(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ei(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(i){return i instanceof HTMLInputElement&&"select"in i}(e)&&t&&e.select()}}const kh=function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Nh(e,t),e.unshift(t)},remove(t){var r;e=Nh(e,t),(r=e[0])===null||r===void 0||r.resume()}}}();function Nh(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function $o(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)},[])}function nC(e){const t=$o(e);C.useEffect(()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t])}let jh,is=0;function iC({disabled:e}){const t=C.useRef(!1);Lo(()=>{if(e){let r=function(){is--,is===0&&(document.body.style.pointerEvents=jh)},i=function(a){t.current=a.pointerType!=="mouse"};return is===0&&(jh=document.body.style.pointerEvents),document.body.style.pointerEvents="none",is++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}},[e])}function li(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}const oC=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),aC=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...d}=e,p=C.useContext(oC),[h,b]=C.useState(null),[,v]=C.useState({}),w=Gi(t,D=>b(D)),x=Array.from(p.layers),[g]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),E=x.indexOf(g),I=h?x.indexOf(h):-1,P=p.layersWithOutsidePointerEventsDisabled.size>0,R=I>=E,F=function(D){const U=$o(D),j=C.useRef(!1);return C.useEffect(()=>{const G=ie=>{ie.target&&!j.current&&Uh("dismissableLayer.pointerDownOutside",U,{originalEvent:ie}),j.current=!1},J=window.setTimeout(()=>{document.addEventListener("pointerdown",G)},0);return()=>{window.clearTimeout(J),document.removeEventListener("pointerdown",G)}},[U]),{onPointerDownCapture:()=>j.current=!0}}(D=>{const U=D.target,j=[...p.branches].some(G=>G.contains(U));R&&!j&&(a==null||a(D),l==null||l(D),D.defaultPrevented||c==null||c())}),O=function(D){const U=$o(D),j=C.useRef(!1);return C.useEffect(()=>{const G=J=>{J.target&&!j.current&&Uh("dismissableLayer.focusOutside",U,{originalEvent:J})};return document.addEventListener("focusin",G),()=>document.removeEventListener("focusin",G)},[U]),{onFocusCapture:()=>j.current=!0,onBlurCapture:()=>j.current=!1}}(D=>{const U=D.target;[...p.branches].some(j=>j.contains(U))||(s==null||s(D),l==null||l(D),D.defaultPrevented||c==null||c())});return nC(D=>{I===p.layers.size-1&&(i==null||i(D),D.defaultPrevented||c==null||c())}),iC({disabled:r}),C.useEffect(()=>{h&&(r&&p.layersWithOutsidePointerEventsDisabled.add(h),p.layers.add(h),Wh())},[h,r,p]),C.useEffect(()=>()=>{h&&(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),Wh())},[h,p]),C.useEffect(()=>{const D=()=>v({});return document.addEventListener("dismissableLayer.update",D),()=>document.removeEventListener("dismissableLayer.update",D)},[]),C.createElement(Ho.div,lt({},d,{ref:w,style:{pointerEvents:P?R?"auto":"none":void 0,...e.style},onFocusCapture:li(e.onFocusCapture,O.onFocusCapture),onBlurCapture:li(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:li(e.onPointerDownCapture,F.onPointerDownCapture)}))});function Wh(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Uh(e,t,r){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(a)}function zh(e){const[t,r]=C.useState(void 0);return C.useEffect(()=>{if(e){const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,c;if("borderBoxSize"in s){const d=s.borderBoxSize,p=Array.isArray(d)?d[0]:d;l=p.inlineSize,c=p.blockSize}else{const d=e.getBoundingClientRect();l=d.width,c=d.height}r({width:l,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)},[e]),t}function sC(e,t){const r=ri.get(e);return r===void 0?(ri.set(e,{rect:{},callbacks:[t]}),ri.size===1&&(yc=requestAnimationFrame(Mm))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=ri.get(e);if(i===void 0)return;const a=i.callbacks.indexOf(t);a>-1&&i.callbacks.splice(a,1),i.callbacks.length===0&&(ri.delete(e),ri.size===0&&cancelAnimationFrame(yc))}}let yc;const ri=new Map;function Mm(){const e=[];ri.forEach((t,r)=>{const i=r.getBoundingClientRect();var a,s;a=t.rect,s=i,(a.width!==s.width||a.height!==s.height||a.top!==s.top||a.right!==s.right||a.bottom!==s.bottom||a.left!==s.left)&&(t.rect=i,e.push(t))}),e.forEach(t=>{t.callbacks.forEach(r=>r(t.rect))}),yc=requestAnimationFrame(Mm)}function uC(e){const[t,r]=C.useState();return C.useEffect(()=>{if(e){const i=sC(e,r);return()=>{r(void 0),i()}}},[e]),t}function Lm(e,t=[]){let r=[];const i=()=>{const a=r.map(s=>C.createContext(s));return function(s){const l=(s==null?void 0:s[e])||a;return C.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[function(a,s){const l=C.createContext(s),c=r.length;function d(p){const{scope:h,children:b,...v}=p,w=(h==null?void 0:h[e][c])||l,x=C.useMemo(()=>v,Object.values(v));return C.createElement(w.Provider,{value:x},b)}return r=[...r,s],d.displayName=a+"Provider",[d,function(p,h){const b=(h==null?void 0:h[e][c])||l,v=C.useContext(b);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}]},lC(i,...t)]}function lC(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const s=i.reduce((l,{useScope:c,scopeName:d})=>({...l,...c(a)[`__scope${d}`]}),{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function cC({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:a,sideOffset:s=0,align:l,alignOffset:c=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:p,collisionTolerance:h=0}){if(!e||!t||!p)return{popperStyles:fC,arrowStyles:Nl};const b=function(U,j,G=0,J=0,ie){const xe=ie?ie.height:0,me=Bh(j,U,"x"),ve=Bh(j,U,"y"),$e=ve.before-G-xe,ye=ve.after+G+xe,_e=me.before-G-xe,qe=me.after+G+xe;return{top:{start:{x:me.start+J,y:$e},center:{x:me.center,y:$e},end:{x:me.end-J,y:$e}},right:{start:{x:qe,y:ve.start+J},center:{x:qe,y:ve.center},end:{x:qe,y:ve.end-J}},bottom:{start:{x:me.start+J,y:ye},center:{x:me.center,y:ye},end:{x:me.end-J,y:ye}},left:{start:{x:_e,y:ve.start+J},center:{x:_e,y:ve.center},end:{x:_e,y:ve.end-J}}}}(t,e,s,c,r),v=b[a][l];if(d===!1){const U=Hh(v);let j=Nl;return r&&(j=qh({popperSize:t,arrowSize:r,arrowOffset:i,side:a,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":Zh(t,a,l,i,r)},arrowStyles:j,placedSide:a,placedAlign:l}}const w=DOMRect.fromRect({...t,...v}),x=(g=p,E=h,DOMRect.fromRect({width:g.width-2*E,height:g.height-2*E,x:g.left+E,y:g.top+E}));var g,E;const I=Kh(w,x),P=b[Gh(a)][l],R=function(U,j,G){const J=Gh(U);return j[U]&&!G[J]?J:U}(a,I,Kh(DOMRect.fromRect({...t,...P}),x)),F=function(U,j,G,J,ie){const xe=G==="top"||G==="bottom",me=xe?"left":"top",ve=xe?"right":"bottom",$e=xe?"width":"height",ye=j[$e]>U[$e];return(J==="start"||J==="center")&&(ie[me]&&ye||ie[ve]&&!ye)?"end":(J==="end"||J==="center")&&(ie[ve]&&ye||ie[me]&&!ye)?"start":J}(t,e,a,l,I),O=Hh(b[R][F]);let D=Nl;return r&&(D=qh({popperSize:t,arrowSize:r,arrowOffset:i,side:R,align:F})),{popperStyles:{...O,"--radix-popper-transform-origin":Zh(t,R,F,i,r)},arrowStyles:D,placedSide:R,placedAlign:F}}function Bh(e,t,r){const i=e[r==="x"?"left":"top"],a=r==="x"?"width":"height",s=e[a],l=t[a];return{before:i-l,start:i,center:i+(s-l)/2,end:i+s-l,after:i+s}}function Hh(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Zh(e,t,r,i,a){const s=t==="top"||t==="bottom",l=a?a.width:0,c=a?a.height:0,d=l/2+i;let p="",h="";return s?(p={start:`${d}px`,center:"center",end:e.width-d+"px"}[r],h=t==="top"?`${e.height+c}px`:-c+"px"):(p=t==="left"?`${e.width+c}px`:-c+"px",h={start:`${d}px`,center:"center",end:e.height-d+"px"}[r]),`${p} ${h}`}const fC={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Nl={position:"absolute",opacity:0};function qh({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:a}){const s=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[i],d=Math.max(t.width,t.height),p={width:`${d}px`,height:`${d}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:dC(i,a)};return i!=="top"&&i!=="bottom"||(a==="start"&&(p.left=`${r}px`),a==="center"&&(p.left=`${s}px`),a==="end"&&(p.right=`${r}px`)),i!=="left"&&i!=="right"||(a==="start"&&(p.top=`${r}px`),a==="center"&&(p.top=`${l}px`),a==="end"&&(p.bottom=`${r}px`)),p}function dC(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Gh(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Kh(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[$m,Fm]=Lm("Popper"),[pC,Dm]=$m("Popper"),hC=e=>{const{__scopePopper:t,children:r}=e,[i,a]=C.useState(null);return C.createElement(pC,{scope:t,anchor:i,onAnchorChange:a},r)},vC=C.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,s=Dm("PopperAnchor",r),l=C.useRef(null),c=Gi(t,l);return C.useEffect(()=>{s.onAnchorChange((i==null?void 0:i.current)||l.current)}),i?null:C.createElement(Ho.div,lt({},a,{ref:c}))}),[mC,ZM]=$m("PopperContent"),gC=C.forwardRef((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:a,align:s="center",alignOffset:l,collisionTolerance:c,avoidCollisions:d=!0,...p}=e,h=Dm("PopperContent",r),[b,v]=C.useState(),w=uC(h.anchor),[x,g]=C.useState(null),E=zh(x),[I,P]=C.useState(null),R=zh(I),F=Gi(t,xe=>g(xe)),O=function(){const[xe,me]=C.useState(void 0);return C.useEffect(()=>{let ve;function $e(){me({width:window.innerWidth,height:window.innerHeight})}function ye(){window.clearTimeout(ve),ve=window.setTimeout($e,100)}return $e(),window.addEventListener("resize",ye),()=>window.removeEventListener("resize",ye)},[]),xe}(),D=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:j,placedSide:G,placedAlign:J}=cC({anchorRect:w,popperSize:E,arrowSize:R,arrowOffset:b,side:i,sideOffset:a,align:s,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:D,collisionTolerance:c}),ie=G!==void 0;return C.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},C.createElement(mC,{scope:r,arrowStyles:j,onArrowChange:P,onArrowOffsetChange:v},C.createElement(Ho.div,lt({"data-side":G,"data-align":J},p,{style:{...p.style,animation:ie?void 0:"none"},ref:F}))))}),yC=hC,wC=vC,bC=gC;function SC({prop:e,defaultProp:t,onChange:r=()=>{}}){const[i,a]=function({defaultProp:d,onChange:p}){const h=C.useState(d),[b]=h,v=C.useRef(b),w=$o(p);return C.useEffect(()=>{v.current!==b&&(w(b),v.current=b)},[b,v,w]),h}({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:i,c=$o(r);return[l,C.useCallback(d=>{if(s){const p=d,h=typeof d=="function"?p(e):d;h!==e&&c(h)}else a(d)},[s,e,a,c])]}const[EC,qM]=Lm("Popover",[Fm]),Kc=Fm(),[xC,Zo]=EC("Popover"),_C=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,c=Kc(t),d=C.useRef(null),[p,h]=C.useState(!1),[b=!1,v]=SC({prop:i,defaultProp:a,onChange:s});return C.createElement(yC,c,C.createElement(xC,{scope:t,contentId:GT(),triggerRef:d,open:b,onOpenChange:v,onOpenToggle:C.useCallback(()=>v(w=>!w),[v]),hasCustomAnchor:p,onCustomAnchorAdd:C.useCallback(()=>h(!0),[]),onCustomAnchorRemove:C.useCallback(()=>h(!1),[]),modal:l},r))},OC=C.forwardRef((e,t)=>{const{__scopePopover:r,...i}=e,a=Zo("PopoverTrigger",r),s=Kc(r),l=Gi(t,a.triggerRef),c=C.createElement(Ho.button,lt({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Nm(a.open)},i,{ref:l,onClick:li(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?c:C.createElement(wC,lt({asChild:!0},s),c)}),AC=C.forwardRef((e,t)=>{const{forceMount:r,...i}=e,a=Zo("PopoverContent",e.__scopePopover);return C.createElement(Cm,{present:r||a.open},a.modal?C.createElement(TC,lt({},i,{ref:t})):C.createElement(CC,lt({},i,{ref:t})))}),TC=C.forwardRef((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...a}=e,s=Zo("PopoverContent",e.__scopePopover),l=C.useRef(null),c=Gi(t,l),d=C.useRef(!1);C.useEffect(()=>{const h=l.current;if(h)return cT(h)},[]);const p=i?Rm:C.Fragment;return C.createElement(p,null,C.createElement(Om,{allowPinchZoom:r},C.createElement(km,lt({},a,{ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:li(e.onCloseAutoFocus,h=>{var b;h.preventDefault(),d.current||(b=s.triggerRef.current)===null||b===void 0||b.focus()}),onPointerDownOutside:li(e.onPointerDownOutside,h=>{const b=h.detail.originalEvent,v=b.button===0&&b.ctrlKey===!0,w=b.button===2||v;d.current=w},{checkForDefaultPrevented:!1}),onFocusOutside:li(e.onFocusOutside,h=>h.preventDefault(),{checkForDefaultPrevented:!1})}))))}),CC=C.forwardRef((e,t)=>{const{portalled:r=!0,...i}=e,a=Zo("PopoverContent",e.__scopePopover),s=C.useRef(!1),l=r?Rm:C.Fragment;return C.createElement(l,null,C.createElement(km,lt({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var d,p;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,c),c.defaultPrevented||(s.current||(p=a.triggerRef.current)===null||p===void 0||p.focus(),c.preventDefault()),s.current=!1},onInteractOutside:c=>{var d,p;(d=e.onInteractOutside)===null||d===void 0||d.call(e,c),c.defaultPrevented||(s.current=!0);const h=c.target;!((p=a.triggerRef.current)===null||p===void 0)&&p.contains(h)&&c.preventDefault()}})))}),km=C.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,...b}=e,v=Zo("PopoverContent",r),w=Kc(r);return VT(),C.createElement(tC,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s},C.createElement(aC,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:h,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>v.onOpenChange(!1)},C.createElement(bC,lt({"data-state":Nm(v.open),role:"dialog",id:v.contentId},w,b,{ref:t,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function Nm(e){return e?"open":"closed"}const RC=_C,PC=OC,IC=AC;var ws=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(ws||{}),jm={},zs={},Yc={},jl={},os={exports:{}},as={exports:{}},je={};/** @license React v16.13.1
|
|
121
|
+
`)},GT=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i,s=F.useMemo(function(){return zT(a)},[a]);return F.createElement(qT,{styles:ZT(s,!t,a,r?"":"!important")})},mc=!1;if(typeof window<"u")try{var as=Object.defineProperty({},"passive",{get:function(){return mc=!0,!0}});window.addEventListener("test",as,as),window.removeEventListener("test",as,as)}catch{mc=!1}var Ji=mc?{passive:!1}:!1,KT=function(e){return e.tagName==="TEXTAREA"},Fm=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!KT(e)&&r[t]==="visible")},YT=function(e){return Fm(e,"overflowY")},VT=function(e){return Fm(e,"overflowX")},Mh=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=Lm(e,i);if(a){var s=$m(e,i),l=s[1],c=s[2];if(l>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},XT=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},JT=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},Lm=function(e,t){return e==="v"?YT(t):VT(t)},$m=function(e,t){return e==="v"?XT(t):JT(t)},QT=function(e,t){return e==="h"&&t==="rtl"?-1:1},eR=function(e,t,r,i,a){var s=QT(e,window.getComputedStyle(t).direction),l=s*i,c=r.target,d=t.contains(c),p=!1,h=l>0,w=0,S=0;do{var v=$m(e,c),_=v[0],g=v[1],x=v[2],C=g-x-s*_;(_||C)&&Lm(e,c)&&(w+=C,S+=_),c instanceof ShadowRoot?c=c.host:c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(h&&(a&&Math.abs(w)<1||!a&&l>w)||!h&&(a&&Math.abs(S)<1||!a&&-l>S))&&(p=!0),p},ss=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fh=function(e){return[e.deltaX,e.deltaY]},Lh=function(e){return e&&"current"in e?e.current:e},tR=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rR=function(e){return`
|
|
122
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
123
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
124
|
+
`)},nR=0,Qi=[];function iR(e){var t=F.useRef([]),r=F.useRef([0,0]),i=F.useRef(),a=F.useState(nR++)[0],s=F.useState(Mm)[0],l=F.useRef(e);F.useEffect(function(){l.current=e},[e]),F.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var g=qo([e.lockRef.current],(e.shards||[]).map(Lh),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=F.useCallback(function(g,x){if("touches"in g&&g.touches.length===2)return!l.current.allowPinchZoom;var C=ss(g),P=r.current,T="deltaX"in g?g.deltaX:P[0]-C[0],$="deltaY"in g?g.deltaY:P[1]-C[1],A,D=g.target,H=Math.abs(T)>Math.abs($)?"h":"v";if("touches"in g&&H==="h"&&D.type==="range")return!1;var j=Mh(H,D);if(!j)return!0;if(j?A=H:(A=H==="v"?"h":"v",j=Mh(H,D)),!j)return!1;if(!i.current&&"changedTouches"in g&&(T||$)&&(i.current=A),!A)return!0;var V=i.current||A;return eR(V,x,g,V==="h"?T:$,!0)},[]),d=F.useCallback(function(g){var x=g;if(!(!Qi.length||Qi[Qi.length-1]!==s)){var C="deltaY"in x?Fh(x):ss(x),P=t.current.filter(function(A){return A.name===x.type&&(A.target===x.target||x.target===A.shadowParent)&&tR(A.delta,C)})[0];if(P&&P.should){x.cancelable&&x.preventDefault();return}if(!P){var T=(l.current.shards||[]).map(Lh).filter(Boolean).filter(function(A){return A.contains(x.target)}),$=T.length>0?c(x,T[0]):!l.current.noIsolation;$&&x.cancelable&&x.preventDefault()}}},[]),p=F.useCallback(function(g,x,C,P){var T={name:g,delta:x,target:C,should:P,shadowParent:oR(C)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function($){return $!==T})},1)},[]),h=F.useCallback(function(g){r.current=ss(g),i.current=void 0},[]),w=F.useCallback(function(g){p(g.type,Fh(g),g.target,c(g,e.lockRef.current))},[]),S=F.useCallback(function(g){p(g.type,ss(g),g.target,c(g,e.lockRef.current))},[]);F.useEffect(function(){return Qi.push(s),e.setCallbacks({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:S}),document.addEventListener("wheel",d,Ji),document.addEventListener("touchmove",d,Ji),document.addEventListener("touchstart",h,Ji),function(){Qi=Qi.filter(function(g){return g!==s}),document.removeEventListener("wheel",d,Ji),document.removeEventListener("touchmove",d,Ji),document.removeEventListener("touchstart",h,Ji)}},[]);var v=e.removeScrollBar,_=e.inert;return F.createElement(F.Fragment,null,_?F.createElement(s,{styles:rR(a)}):null,v?F.createElement(GT,{gapMode:e.gapMode}):null)}function oR(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const aR=$T(Im,iR);var Dm=F.forwardRef(function(e,t){return F.createElement(Gs,Jr({},e,{ref:t,sideCar:aR}))});Dm.classNames=Gs.classNames;const sR=Dm,Zo=globalThis!=null&&globalThis.document?F.useLayoutEffect:()=>{},uR=F["useId".toString()]||(()=>{});let lR=0;function cR(e){const[t,r]=F.useState(uR());return Zo(()=>{e||r(i=>i??String(lR++))},[e]),e||(t?`radix-${t}`:"")}function Nm(...e){return t=>e.forEach(r=>function(i,a){typeof i=="function"?i(a):i!=null&&(i.current=a)}(r,t))}function Ti(...e){return F.useCallback(Nm(...e),e)}const km=F.forwardRef((e,t)=>{const{children:r,...i}=e;return F.Children.toArray(r).some($h)?F.createElement(F.Fragment,null,F.Children.map(r,a=>$h(a)?F.createElement(gc,Ct({},i,{ref:t}),a.props.children):a)):F.createElement(gc,Ct({},i,{ref:t}),r)});km.displayName="Slot";const gc=F.forwardRef((e,t)=>{const{children:r,...i}=e;return F.isValidElement(r)?F.cloneElement(r,{...dR(i,r.props),ref:Nm(t,r.ref)}):F.Children.count(r)>1?F.Children.only(null):null});gc.displayName="SlotClone";const fR=({children:e})=>F.createElement(F.Fragment,null,e);function $h(e){return F.isValidElement(e)&&e.type===fR}function dR(e,t){const r={...t};for(const i in t){const a=e[i],s=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{s==null||s(...l),a==null||a(...l)}:i==="style"?r[i]={...a,...s}:i==="className"&&(r[i]=[a,s].filter(Boolean).join(" "))}return{...e,...r}}const uo=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>({...e,[t]:F.forwardRef((r,i)=>{const{asChild:a,...s}=r,l=a?km:t;return F.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),F.createElement(l,Ct({},s,{ref:i}))})}),{}),jm=e=>{const{present:t,children:r}=e,i=function(l){const[c,d]=F.useState(),p=F.useRef({}),h=F.useRef(l),w=F.useRef("none"),S=l?"mounted":"unmounted",[v,_]=function(g,x){return F.useReducer((C,P)=>{const T=x[C][P];return T??C},g)}(S,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return F.useEffect(()=>{const g=us(p.current);w.current=v==="mounted"?g:"none"},[v]),Zo(()=>{const g=p.current,x=h.current;if(x!==l){const C=w.current,P=us(g);l?_("MOUNT"):P==="none"||(g==null?void 0:g.display)==="none"?_("UNMOUNT"):_(x&&C!==P?"ANIMATION_OUT":"UNMOUNT"),h.current=l}},[l,_]),Zo(()=>{if(c){const g=C=>{const P=us(p.current).includes(C.animationName);C.target===c&&P&&_("ANIMATION_END")},x=C=>{C.target===c&&(w.current=us(p.current))};return c.addEventListener("animationstart",x),c.addEventListener("animationcancel",g),c.addEventListener("animationend",g),()=>{c.removeEventListener("animationstart",x),c.removeEventListener("animationcancel",g),c.removeEventListener("animationend",g)}}_("ANIMATION_END")},[c,_]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:F.useCallback(g=>{g&&(p.current=getComputedStyle(g)),d(g)},[])}}(t),a=typeof r=="function"?r({present:i.isPresent}):F.Children.only(r),s=Ti(i.ref,a.ref);return typeof r=="function"||i.isPresent?F.cloneElement(a,{ref:s}):null};function us(e){return(e==null?void 0:e.animationName)||"none"}jm.displayName="Presence";let Nl=0;function pR(){F.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Dh()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Dh()),Nl++,()=>{Nl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),Nl--}},[])}function Dh(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Wm=F.forwardRef((e,t)=>{var r,i;const{containerRef:a,style:s,...l}=e,c=(r=a==null?void 0:a.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,d]=F.useState({});return Zo(()=>{d({})},[]),c?Qo.createPortal(F.createElement(uo.div,Ct({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),c):null});function Oi(e){const t=F.useRef(e);return F.useEffect(()=>{t.current=e}),F.useMemo(()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)},[])}const Nh={bubbles:!1,cancelable:!0},hR=F.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[c,d]=F.useState(null),p=Oi(a),h=Oi(s),w=F.useRef(null),S=Ti(t,g=>d(g)),v=F.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;F.useEffect(()=>{if(i){let g=function(C){if(v.paused||!c)return;const P=C.target;c.contains(P)?w.current=P:pi(w.current,{select:!0})},x=function(C){!v.paused&&c&&(c.contains(C.relatedTarget)||pi(w.current,{select:!0}))};return document.addEventListener("focusin",g),document.addEventListener("focusout",x),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",x)}}},[i,c,v.paused]),F.useEffect(()=>{if(c){Wh.add(v);const x=document.activeElement;if(!c.contains(x)){const C=new Event("focusScope.autoFocusOnMount",Nh);c.addEventListener("focusScope.autoFocusOnMount",p),c.dispatchEvent(C),C.defaultPrevented||(function(P,{select:T=!1}={}){const $=document.activeElement;for(const A of P)if(pi(A,{select:T}),document.activeElement!==$)return}((g=kh(c),g.filter(P=>P.tagName!=="A")),{select:!0}),document.activeElement===x&&pi(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",p),setTimeout(()=>{const C=new Event("focusScope.autoFocusOnUnmount",Nh);c.addEventListener("focusScope.autoFocusOnUnmount",h),c.dispatchEvent(C),C.defaultPrevented||pi(x??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",h),Wh.remove(v)},0)}}var g},[c,p,h,v]);const _=F.useCallback(g=>{if(!r&&!i||v.paused)return;const x=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,C=document.activeElement;if(x&&C){const P=g.currentTarget,[T,$]=function(A){const D=kh(A),H=jh(D,A),j=jh(D.reverse(),A);return[H,j]}(P);T&&$?g.shiftKey||C!==$?g.shiftKey&&C===T&&(g.preventDefault(),r&&pi($,{select:!0})):(g.preventDefault(),r&&pi(T,{select:!0})):C===P&&g.preventDefault()}},[r,i,v.paused]);return F.createElement(uo.div,Ct({tabIndex:-1},l,{ref:S,onKeyDown:_}))});function kh(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function jh(e,t){for(const r of e)if(!vR(r,{upTo:t}))return r}function vR(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function pi(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(i){return i instanceof HTMLInputElement&&"select"in i}(e)&&t&&e.select()}}const Wh=function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Uh(e,t),e.unshift(t)},remove(t){var r;e=Uh(e,t),(r=e[0])===null||r===void 0||r.resume()}}}();function Uh(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function mR(e){const t=Oi(e);F.useEffect(()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[t])}let Hh,ls=0;function gR({disabled:e}){const t=F.useRef(!1);Zo(()=>{if(e){let r=function(){ls--,ls===0&&(document.body.style.pointerEvents=Hh)},i=function(a){t.current=a.pointerType!=="mouse"};return ls===0&&(Hh=document.body.style.pointerEvents),document.body.style.pointerEvents="none",ls++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}},[e])}function Ei(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}const yR=F.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wR=F.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...d}=e,p=F.useContext(yR),[h,w]=F.useState(null),[,S]=F.useState({}),v=Ti(t,D=>w(D)),_=Array.from(p.layers),[g]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),x=_.indexOf(g),C=h?_.indexOf(h):-1,P=p.layersWithOutsidePointerEventsDisabled.size>0,T=C>=x,$=function(D){const H=Oi(D),j=F.useRef(!1);return F.useEffect(()=>{const V=ye=>{ye.target&&!j.current&&zh("dismissableLayer.pointerDownOutside",H,{originalEvent:ye}),j.current=!1},ee=window.setTimeout(()=>{document.addEventListener("pointerdown",V)},0);return()=>{window.clearTimeout(ee),document.removeEventListener("pointerdown",V)}},[H]),{onPointerDownCapture:()=>j.current=!0}}(D=>{const H=D.target,j=[...p.branches].some(V=>V.contains(H));T&&!j&&(a==null||a(D),l==null||l(D),D.defaultPrevented||c==null||c())}),A=function(D){const H=Oi(D),j=F.useRef(!1);return F.useEffect(()=>{const V=ee=>{ee.target&&!j.current&&zh("dismissableLayer.focusOutside",H,{originalEvent:ee})};return document.addEventListener("focusin",V),()=>document.removeEventListener("focusin",V)},[H]),{onFocusCapture:()=>j.current=!0,onBlurCapture:()=>j.current=!1}}(D=>{const H=D.target;[...p.branches].some(j=>j.contains(H))||(s==null||s(D),l==null||l(D),D.defaultPrevented||c==null||c())});return mR(D=>{C===p.layers.size-1&&(i==null||i(D),D.defaultPrevented||c==null||c())}),gR({disabled:r}),F.useEffect(()=>{h&&(r&&p.layersWithOutsidePointerEventsDisabled.add(h),p.layers.add(h),Bh())},[h,r,p]),F.useEffect(()=>()=>{h&&(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),Bh())},[h,p]),F.useEffect(()=>{const D=()=>S({});return document.addEventListener("dismissableLayer.update",D),()=>document.removeEventListener("dismissableLayer.update",D)},[]),F.createElement(uo.div,Ct({},d,{ref:v,style:{pointerEvents:P?T?"auto":"none":void 0,...e.style},onFocusCapture:Ei(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Ei(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Ei(e.onPointerDownCapture,$.onPointerDownCapture)}))});function Bh(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function zh(e,t,r){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(a)}function qh(e){const[t,r]=F.useState(void 0);return F.useEffect(()=>{if(e){const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,c;if("borderBoxSize"in s){const d=s.borderBoxSize,p=Array.isArray(d)?d[0]:d;l=p.inlineSize,c=p.blockSize}else{const d=e.getBoundingClientRect();l=d.width,c=d.height}r({width:l,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)},[e]),t}function bR(e,t){const r=vi.get(e);return r===void 0?(vi.set(e,{rect:{},callbacks:[t]}),vi.size===1&&(yc=requestAnimationFrame(Um))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=vi.get(e);if(i===void 0)return;const a=i.callbacks.indexOf(t);a>-1&&i.callbacks.splice(a,1),i.callbacks.length===0&&(vi.delete(e),vi.size===0&&cancelAnimationFrame(yc))}}let yc;const vi=new Map;function Um(){const e=[];vi.forEach((t,r)=>{const i=r.getBoundingClientRect();var a,s;a=t.rect,s=i,(a.width!==s.width||a.height!==s.height||a.top!==s.top||a.right!==s.right||a.bottom!==s.bottom||a.left!==s.left)&&(t.rect=i,e.push(t))}),e.forEach(t=>{t.callbacks.forEach(r=>r(t.rect))}),yc=requestAnimationFrame(Um)}function SR(e){const[t,r]=F.useState();return F.useEffect(()=>{if(e){const i=bR(e,r);return()=>{r(void 0),i()}}},[e]),t}function Hm(e,t=[]){let r=[];const i=()=>{const a=r.map(s=>F.createContext(s));return function(s){const l=(s==null?void 0:s[e])||a;return F.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[function(a,s){const l=F.createContext(s),c=r.length;function d(p){const{scope:h,children:w,...S}=p,v=(h==null?void 0:h[e][c])||l,_=F.useMemo(()=>S,Object.values(S));return F.createElement(v.Provider,{value:_},w)}return r=[...r,s],d.displayName=a+"Provider",[d,function(p,h){const w=(h==null?void 0:h[e][c])||l,S=F.useContext(w);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${a}\``)}]},ER(i,...t)]}function ER(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const s=i.reduce((l,{useScope:c,scopeName:d})=>({...l,...c(a)[`__scope${d}`]}),{});return F.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}function _R({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:a,sideOffset:s=0,align:l,alignOffset:c=0,shouldAvoidCollisions:d=!0,collisionBoundariesRect:p,collisionTolerance:h=0}){if(!e||!t||!p)return{popperStyles:xR,arrowStyles:kl};const w=function(H,j,V=0,ee=0,ye){const Re=ye?ye.height:0,Ee=Zh(j,H,"x"),se=Zh(j,H,"y"),Fe=se.before-V-Re,be=se.after+V+Re,Oe=Ee.before-V-Re,Be=Ee.after+V+Re;return{top:{start:{x:Ee.start+ee,y:Fe},center:{x:Ee.center,y:Fe},end:{x:Ee.end-ee,y:Fe}},right:{start:{x:Be,y:se.start+ee},center:{x:Be,y:se.center},end:{x:Be,y:se.end-ee}},bottom:{start:{x:Ee.start+ee,y:be},center:{x:Ee.center,y:be},end:{x:Ee.end-ee,y:be}},left:{start:{x:Oe,y:se.start+ee},center:{x:Oe,y:se.center},end:{x:Oe,y:se.end-ee}}}}(t,e,s,c,r),S=w[a][l];if(d===!1){const H=Gh(S);let j=kl;return r&&(j=Yh({popperSize:t,arrowSize:r,arrowOffset:i,side:a,align:l})),{popperStyles:{...H,"--radix-popper-transform-origin":Kh(t,a,l,i,r)},arrowStyles:j,placedSide:a,placedAlign:l}}const v=DOMRect.fromRect({...t,...S}),_=(g=p,x=h,DOMRect.fromRect({width:g.width-2*x,height:g.height-2*x,x:g.left+x,y:g.top+x}));var g,x;const C=Xh(v,_),P=w[Vh(a)][l],T=function(H,j,V){const ee=Vh(H);return j[H]&&!V[ee]?ee:H}(a,C,Xh(DOMRect.fromRect({...t,...P}),_)),$=function(H,j,V,ee,ye){const Re=V==="top"||V==="bottom",Ee=Re?"left":"top",se=Re?"right":"bottom",Fe=Re?"width":"height",be=j[Fe]>H[Fe];return(ee==="start"||ee==="center")&&(ye[Ee]&&be||ye[se]&&!be)?"end":(ee==="end"||ee==="center")&&(ye[se]&&be||ye[Ee]&&!be)?"start":ee}(t,e,a,l,C),A=Gh(w[T][$]);let D=kl;return r&&(D=Yh({popperSize:t,arrowSize:r,arrowOffset:i,side:T,align:$})),{popperStyles:{...A,"--radix-popper-transform-origin":Kh(t,T,$,i,r)},arrowStyles:D,placedSide:T,placedAlign:$}}function Zh(e,t,r){const i=e[r==="x"?"left":"top"],a=r==="x"?"width":"height",s=e[a],l=t[a];return{before:i-l,start:i,center:i+(s-l)/2,end:i+s-l,after:i+s}}function Gh(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Kh(e,t,r,i,a){const s=t==="top"||t==="bottom",l=a?a.width:0,c=a?a.height:0,d=l/2+i;let p="",h="";return s?(p={start:`${d}px`,center:"center",end:e.width-d+"px"}[r],h=t==="top"?`${e.height+c}px`:-c+"px"):(p=t==="left"?`${e.width+c}px`:-c+"px",h={start:`${d}px`,center:"center",end:e.height-d+"px"}[r]),`${p} ${h}`}const xR={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},kl={position:"absolute",opacity:0};function Yh({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:a}){const s=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[i],d=Math.max(t.width,t.height),p={width:`${d}px`,height:`${d}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:OR(i,a)};return i!=="top"&&i!=="bottom"||(a==="start"&&(p.left=`${r}px`),a==="center"&&(p.left=`${s}px`),a==="end"&&(p.right=`${r}px`)),i!=="left"&&i!=="right"||(a==="start"&&(p.top=`${r}px`),a==="center"&&(p.top=`${l}px`),a==="end"&&(p.bottom=`${r}px`)),p}function OR(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Vh(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Xh(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Bm,zm]=Hm("Popper"),[AR,qm]=Bm("Popper"),TR=e=>{const{__scopePopper:t,children:r}=e,[i,a]=F.useState(null);return F.createElement(AR,{scope:t,anchor:i,onAnchorChange:a},r)},RR=F.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:i,...a}=e,s=qm("PopperAnchor",r),l=F.useRef(null),c=Ti(t,l);return F.useEffect(()=>{s.onAnchorChange((i==null?void 0:i.current)||l.current)}),i?null:F.createElement(uo.div,Ct({},a,{ref:c}))}),[CR,iF]=Bm("PopperContent"),PR=F.forwardRef((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:a,align:s="center",alignOffset:l,collisionTolerance:c,avoidCollisions:d=!0,...p}=e,h=qm("PopperContent",r),[w,S]=F.useState(),v=SR(h.anchor),[_,g]=F.useState(null),x=qh(_),[C,P]=F.useState(null),T=qh(C),$=Ti(t,Re=>g(Re)),A=function(){const[Re,Ee]=F.useState(void 0);return F.useEffect(()=>{let se;function Fe(){Ee({width:window.innerWidth,height:window.innerHeight})}function be(){window.clearTimeout(se),se=window.setTimeout(Fe,100)}return Fe(),window.addEventListener("resize",be),()=>window.removeEventListener("resize",be)},[]),Re}(),D=A?DOMRect.fromRect({...A,x:0,y:0}):void 0,{popperStyles:H,arrowStyles:j,placedSide:V,placedAlign:ee}=_R({anchorRect:v,popperSize:x,arrowSize:T,arrowOffset:w,side:i,sideOffset:a,align:s,alignOffset:l,shouldAvoidCollisions:d,collisionBoundariesRect:D,collisionTolerance:c}),ye=V!==void 0;return F.createElement("div",{style:H,"data-radix-popper-content-wrapper":""},F.createElement(CR,{scope:r,arrowStyles:j,onArrowChange:P,onArrowOffsetChange:S},F.createElement(uo.div,Ct({"data-side":V,"data-align":ee},p,{style:{...p.style,animation:ye?void 0:"none"},ref:$}))))}),IR=TR,MR=RR,FR=PR;function LR({prop:e,defaultProp:t,onChange:r=()=>{}}){const[i,a]=function({defaultProp:d,onChange:p}){const h=F.useState(d),[w]=h,S=F.useRef(w),v=Oi(p);return F.useEffect(()=>{S.current!==w&&(v(w),S.current=w)},[w,S,v]),h}({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:i,c=Oi(r);return[l,F.useCallback(d=>{if(s){const p=d,h=typeof d=="function"?p(e):d;h!==e&&c(h)}else a(d)},[s,e,a,c])]}const[$R,oF]=Hm("Popover",[zm]),Xc=zm(),[DR,na]=$R("Popover"),NR=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:a,onOpenChange:s,modal:l=!1}=e,c=Xc(t),d=F.useRef(null),[p,h]=F.useState(!1),[w=!1,S]=LR({prop:i,defaultProp:a,onChange:s});return F.createElement(IR,c,F.createElement(DR,{scope:t,contentId:cR(),triggerRef:d,open:w,onOpenChange:S,onOpenToggle:F.useCallback(()=>S(v=>!v),[S]),hasCustomAnchor:p,onCustomAnchorAdd:F.useCallback(()=>h(!0),[]),onCustomAnchorRemove:F.useCallback(()=>h(!1),[]),modal:l},r))},kR=F.forwardRef((e,t)=>{const{__scopePopover:r,...i}=e,a=na("PopoverTrigger",r),s=Xc(r),l=Ti(t,a.triggerRef),c=F.createElement(uo.button,Ct({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Gm(a.open)},i,{ref:l,onClick:Ei(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?c:F.createElement(MR,Ct({asChild:!0},s),c)}),jR=F.forwardRef((e,t)=>{const{forceMount:r,...i}=e,a=na("PopoverContent",e.__scopePopover);return F.createElement(jm,{present:r||a.open},a.modal?F.createElement(WR,Ct({},i,{ref:t})):F.createElement(UR,Ct({},i,{ref:t})))}),WR=F.forwardRef((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...a}=e,s=na("PopoverContent",e.__scopePopover),l=F.useRef(null),c=Ti(t,l),d=F.useRef(!1);F.useEffect(()=>{const h=l.current;if(h)return AT(h)},[]);const p=i?Wm:F.Fragment;return F.createElement(p,null,F.createElement(sR,{allowPinchZoom:r},F.createElement(Zm,Ct({},a,{ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ei(e.onCloseAutoFocus,h=>{var w;h.preventDefault(),d.current||(w=s.triggerRef.current)===null||w===void 0||w.focus()}),onPointerDownOutside:Ei(e.onPointerDownOutside,h=>{const w=h.detail.originalEvent,S=w.button===0&&w.ctrlKey===!0,v=w.button===2||S;d.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:Ei(e.onFocusOutside,h=>h.preventDefault(),{checkForDefaultPrevented:!1})}))))}),UR=F.forwardRef((e,t)=>{const{portalled:r=!0,...i}=e,a=na("PopoverContent",e.__scopePopover),s=F.useRef(!1),l=r?Wm:F.Fragment;return F.createElement(l,null,F.createElement(Zm,Ct({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var d,p;(d=e.onCloseAutoFocus)===null||d===void 0||d.call(e,c),c.defaultPrevented||(s.current||(p=a.triggerRef.current)===null||p===void 0||p.focus(),c.preventDefault()),s.current=!1},onInteractOutside:c=>{var d,p;(d=e.onInteractOutside)===null||d===void 0||d.call(e,c),c.defaultPrevented||(s.current=!0);const h=c.target;!((p=a.triggerRef.current)===null||p===void 0)&&p.contains(h)&&c.preventDefault()}})))}),Zm=F.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,...w}=e,S=na("PopoverContent",r),v=Xc(r);return pR(),F.createElement(hR,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:s},F.createElement(wR,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:h,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>S.onOpenChange(!1)},F.createElement(FR,Ct({"data-state":Gm(S.open),role:"dialog",id:S.contentId},v,w,{ref:t,style:{...w.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function Gm(e){return e?"open":"closed"}const HR=NR,BR=kR,zR=jR;var xs=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(xs||{});var Km={},Ks={},Jc={},jl={},cs={exports:{}},fs={exports:{}},qe={};/** @license React v16.13.1
|
|
97
125
|
* react-is.production.min.js
|
|
98
126
|
*
|
|
99
127
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
100
128
|
*
|
|
101
129
|
* This source code is licensed under the MIT license found in the
|
|
102
130
|
* LICENSE file in the root directory of this source tree.
|
|
103
|
-
*/var
|
|
131
|
+
*/var Jh;function qR(){if(Jh)return qe;Jh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,w=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function T(A){if(typeof A=="object"&&A!==null){var D=A.$$typeof;switch(D){case t:switch(A=A.type,A){case d:case p:case i:case s:case a:case w:return A;default:switch(A=A&&A.$$typeof,A){case c:case h:case _:case v:case l:return A;default:return D}}case r:return D}}}function $(A){return T(A)===p}return qe.AsyncMode=d,qe.ConcurrentMode=p,qe.ContextConsumer=c,qe.ContextProvider=l,qe.Element=t,qe.ForwardRef=h,qe.Fragment=i,qe.Lazy=_,qe.Memo=v,qe.Portal=r,qe.Profiler=s,qe.StrictMode=a,qe.Suspense=w,qe.isAsyncMode=function(A){return $(A)||T(A)===d},qe.isConcurrentMode=$,qe.isContextConsumer=function(A){return T(A)===c},qe.isContextProvider=function(A){return T(A)===l},qe.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},qe.isForwardRef=function(A){return T(A)===h},qe.isFragment=function(A){return T(A)===i},qe.isLazy=function(A){return T(A)===_},qe.isMemo=function(A){return T(A)===v},qe.isPortal=function(A){return T(A)===r},qe.isProfiler=function(A){return T(A)===s},qe.isStrictMode=function(A){return T(A)===a},qe.isSuspense=function(A){return T(A)===w},qe.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===i||A===p||A===s||A===a||A===w||A===S||typeof A=="object"&&A!==null&&(A.$$typeof===_||A.$$typeof===v||A.$$typeof===l||A.$$typeof===c||A.$$typeof===h||A.$$typeof===x||A.$$typeof===C||A.$$typeof===P||A.$$typeof===g)},qe.typeOf=T,qe}var Ze={};/** @license React v16.13.1
|
|
104
132
|
* react-is.development.js
|
|
105
133
|
*
|
|
106
134
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
107
135
|
*
|
|
108
136
|
* This source code is licensed under the MIT license found in the
|
|
109
137
|
* LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/var Vh;function LC(){return Vh||(Vh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,I=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function R(V){return typeof V=="string"||typeof V=="function"||V===i||V===p||V===s||V===a||V===b||V===v||typeof V=="object"&&V!==null&&(V.$$typeof===x||V.$$typeof===w||V.$$typeof===l||V.$$typeof===c||V.$$typeof===h||V.$$typeof===E||V.$$typeof===I||V.$$typeof===P||V.$$typeof===g)}function F(V){if(typeof V=="object"&&V!==null){var ht=V.$$typeof;switch(ht){case t:var ct=V.type;switch(ct){case d:case p:case i:case s:case a:case b:return ct;default:var Wt=ct&&ct.$$typeof;switch(Wt){case c:case h:case x:case w:case l:return Wt;default:return ht}}case r:return ht}}}var O=d,D=p,U=c,j=l,G=t,J=h,ie=i,xe=x,me=w,ve=r,$e=s,ye=a,_e=b,qe=!1;function St(V){return qe||(qe=!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.")),H(V)||F(V)===d}function H(V){return F(V)===p}function K(V){return F(V)===c}function oe(V){return F(V)===l}function de(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function te(V){return F(V)===h}function le(V){return F(V)===i}function ae(V){return F(V)===x}function he(V){return F(V)===w}function se(V){return F(V)===r}function we(V){return F(V)===s}function Se(V){return F(V)===a}function Ye(V){return F(V)===b}We.AsyncMode=O,We.ConcurrentMode=D,We.ContextConsumer=U,We.ContextProvider=j,We.Element=G,We.ForwardRef=J,We.Fragment=ie,We.Lazy=xe,We.Memo=me,We.Portal=ve,We.Profiler=$e,We.StrictMode=ye,We.Suspense=_e,We.isAsyncMode=St,We.isConcurrentMode=H,We.isContextConsumer=K,We.isContextProvider=oe,We.isElement=de,We.isForwardRef=te,We.isFragment=le,We.isLazy=ae,We.isMemo=he,We.isPortal=se,We.isProfiler=we,We.isStrictMode=Se,We.isSuspense=Ye,We.isValidElementType=R,We.typeOf=F}()),We}var Xh;function Wm(){return Xh||(Xh=1,process.env.NODE_ENV==="production"?as.exports=MC():as.exports=LC()),as.exports}var Wl,Jh;function Vc(){if(Jh)return Wl;Jh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wl=e,Wl}var Ul,Qh;function Um(){return Qh||(Qh=1,Ul=Function.call.bind(Object.prototype.hasOwnProperty)),Ul}var zl,ev;function $C(){if(ev)return zl;ev=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Vc(),r={},i=Um();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(s,l,c,d,p){if(process.env.NODE_ENV!=="production"){for(var h in s)if(i(s,h)){var b;try{if(typeof s[h]!="function"){var v=Error((d||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}b=s[h](l,h,d,c,null,t)}catch(x){b=x}if(b&&!(b instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof b+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),b instanceof Error&&!(b.message in r)){r[b.message]=!0;var w=p?p():"";e("Failed "+c+" type: "+b.message+(w??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},zl=a,zl}var Bl,tv;function FC(){if(tv)return Bl;tv=1;var e=Wm(),t=$c(),r=Vc(),i=Um(),a=$C(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return Bl=function(c,d){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function b(H){var K=H&&(p&&H[p]||H[h]);if(typeof K=="function")return K}var v="<<anonymous>>",w={array:I("array"),bigint:I("bigint"),bool:I("boolean"),func:I("function"),number:I("number"),object:I("object"),string:I("string"),symbol:I("symbol"),any:P(),arrayOf:R,element:F(),elementType:O(),instanceOf:D,node:J(),objectOf:j,oneOf:U,oneOfType:G,shape:xe,exact:me};function x(H,K){return H===K?H!==0||1/H===1/K:H!==H&&K!==K}function g(H,K){this.message=H,this.data=K&&typeof K=="object"?K:{},this.stack=""}g.prototype=Error.prototype;function E(H){if(process.env.NODE_ENV!=="production")var K={},oe=0;function de(le,ae,he,se,we,Se,Ye){if(se=se||v,Se=Se||he,Ye!==r){if(d){var V=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 V.name="Invariant Violation",V}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ht=se+":"+he;!K[ht]&&oe<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Se+"` prop on `"+se+"`. 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."),K[ht]=!0,oe++)}}return ae[he]==null?le?ae[he]===null?new g("The "+we+" `"+Se+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new g("The "+we+" `"+Se+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:H(ae,he,se,we,Se)}var te=de.bind(null,!1);return te.isRequired=de.bind(null,!0),te}function I(H){function K(oe,de,te,le,ae,he){var se=oe[de],we=ye(se);if(we!==H){var Se=_e(se);return new g("Invalid "+le+" `"+ae+"` of type "+("`"+Se+"` supplied to `"+te+"`, expected ")+("`"+H+"`."),{expectedType:H})}return null}return E(K)}function P(){return E(l)}function R(H){function K(oe,de,te,le,ae){if(typeof H!="function")return new g("Property `"+ae+"` of component `"+te+"` has invalid PropType notation inside arrayOf.");var he=oe[de];if(!Array.isArray(he)){var se=ye(he);return new g("Invalid "+le+" `"+ae+"` of type "+("`"+se+"` supplied to `"+te+"`, expected an array."))}for(var we=0;we<he.length;we++){var Se=H(he,we,te,le,ae+"["+we+"]",r);if(Se instanceof Error)return Se}return null}return E(K)}function F(){function H(K,oe,de,te,le){var ae=K[oe];if(!c(ae)){var he=ye(ae);return new g("Invalid "+te+" `"+le+"` of type "+("`"+he+"` supplied to `"+de+"`, expected a single ReactElement."))}return null}return E(H)}function O(){function H(K,oe,de,te,le){var ae=K[oe];if(!e.isValidElementType(ae)){var he=ye(ae);return new g("Invalid "+te+" `"+le+"` of type "+("`"+he+"` supplied to `"+de+"`, expected a single ReactElement type."))}return null}return E(H)}function D(H){function K(oe,de,te,le,ae){if(!(oe[de]instanceof H)){var he=H.name||v,se=St(oe[de]);return new g("Invalid "+le+" `"+ae+"` of type "+("`"+se+"` supplied to `"+te+"`, expected ")+("instance of `"+he+"`."))}return null}return E(K)}function U(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function K(oe,de,te,le,ae){for(var he=oe[de],se=0;se<H.length;se++)if(x(he,H[se]))return null;var we=JSON.stringify(H,function(Ye,V){var ht=_e(V);return ht==="symbol"?String(V):V});return new g("Invalid "+le+" `"+ae+"` of value `"+String(he)+"` "+("supplied to `"+te+"`, expected one of "+we+"."))}return E(K)}function j(H){function K(oe,de,te,le,ae){if(typeof H!="function")return new g("Property `"+ae+"` of component `"+te+"` has invalid PropType notation inside objectOf.");var he=oe[de],se=ye(he);if(se!=="object")return new g("Invalid "+le+" `"+ae+"` of type "+("`"+se+"` supplied to `"+te+"`, expected an object."));for(var we in he)if(i(he,we)){var Se=H(he,we,te,le,ae+"."+we,r);if(Se instanceof Error)return Se}return null}return E(K)}function G(H){if(!Array.isArray(H))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var K=0;K<H.length;K++){var oe=H[K];if(typeof oe!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+qe(oe)+" at index "+K+"."),l}function de(te,le,ae,he,se){for(var we=[],Se=0;Se<H.length;Se++){var Ye=H[Se],V=Ye(te,le,ae,he,se,r);if(V==null)return null;V.data&&i(V.data,"expectedType")&&we.push(V.data.expectedType)}var ht=we.length>0?", expected one of type ["+we.join(", ")+"]":"";return new g("Invalid "+he+" `"+se+"` supplied to "+("`"+ae+"`"+ht+"."))}return E(de)}function J(){function H(K,oe,de,te,le){return ve(K[oe])?null:new g("Invalid "+te+" `"+le+"` supplied to "+("`"+de+"`, expected a ReactNode."))}return E(H)}function ie(H,K,oe,de,te){return new g((H||"React class")+": "+K+" type `"+oe+"."+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+te+"`.")}function xe(H){function K(oe,de,te,le,ae){var he=oe[de],se=ye(he);if(se!=="object")return new g("Invalid "+le+" `"+ae+"` of type `"+se+"` "+("supplied to `"+te+"`, expected `object`."));for(var we in H){var Se=H[we];if(typeof Se!="function")return ie(te,le,ae,we,_e(Se));var Ye=Se(he,we,te,le,ae+"."+we,r);if(Ye)return Ye}return null}return E(K)}function me(H){function K(oe,de,te,le,ae){var he=oe[de],se=ye(he);if(se!=="object")return new g("Invalid "+le+" `"+ae+"` of type `"+se+"` "+("supplied to `"+te+"`, expected `object`."));var we=t({},oe[de],H);for(var Se in we){var Ye=H[Se];if(i(H,Se)&&typeof Ye!="function")return ie(te,le,ae,Se,_e(Ye));if(!Ye)return new g("Invalid "+le+" `"+ae+"` key `"+Se+"` supplied to `"+te+"`.\nBad object: "+JSON.stringify(oe[de],null," ")+`
|
|
111
|
-
Valid keys: `+JSON.stringify(Object.keys(H),null," "));var V=Ye(he,Se,te,le,ae+"."+Se,r);if(V)return V}return null}return E(K)}function ve(H){switch(typeof H){case"number":case"string":case"undefined":return!0;case"boolean":return!H;case"object":if(Array.isArray(H))return H.every(ve);if(H===null||c(H))return!0;var K=b(H);if(K){var oe=K.call(H),de;if(K!==H.entries){for(;!(de=oe.next()).done;)if(!ve(de.value))return!1}else for(;!(de=oe.next()).done;){var te=de.value;if(te&&!ve(te[1]))return!1}}else return!1;return!0;default:return!1}}function $e(H,K){return H==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function ye(H){var K=typeof H;return Array.isArray(H)?"array":H instanceof RegExp?"object":$e(K,H)?"symbol":K}function _e(H){if(typeof H>"u"||H===null)return""+H;var K=ye(H);if(K==="object"){if(H instanceof Date)return"date";if(H instanceof RegExp)return"regexp"}return K}function qe(H){var K=_e(H);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function St(H){return!H.constructor||!H.constructor.name?v:H.constructor.name}return w.checkPropTypes=a,w.resetWarningCache=a.resetWarningCache,w.PropTypes=w,w},Bl}var Hl,rv;function DC(){if(rv)return Hl;rv=1;var e=Vc();function t(){}function r(){}return r.resetWarningCache=t,Hl=function(){function i(l,c,d,p,h,b){if(b!==e){var v=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 v.name="Invariant Violation",v}}i.isRequired=i;function a(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Hl}var nv;function kC(){if(nv)return os.exports;if(nv=1,process.env.NODE_ENV!=="production"){var e=Wm(),t=!0;os.exports=FC()(e.isElement,t)}else os.exports=DC()();return os.exports}var iv;function NC(){return iv||(iv=1,function(e){(function(t,r){r(e,k,kC())})(ni,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var a=l(r),s=l(i);function l(P){return P&&P.__esModule?P:{default:P}}var c=Object.assign||function(P){for(var R=1;R<arguments.length;R++){var F=arguments[R];for(var O in F)Object.prototype.hasOwnProperty.call(F,O)&&(P[O]=F[O])}return P};function d(P,R){var F={};for(var O in P)R.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(P,O)&&(F[O]=P[O]);return F}function p(P,R){if(!(P instanceof R))throw new TypeError("Cannot call a class as a function")}var h=function(){function P(R,F){for(var O=0;O<F.length;O++){var D=F[O];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(R,D.key,D)}}return function(R,F,O){return F&&P(R.prototype,F),O&&P(R,O),R}}();function b(P,R){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:P}function v(P,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);P.prototype=Object.create(R&&R.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(P,R):P.__proto__=R)}var w=!1;function x(P){w=P}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function g(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return w?P:P.capture}function E(P){if("touches"in P){var R=P.touches[0],F=R.pageX,O=R.pageY;return{x:F,y:O}}var D=P.screenX,U=P.screenY;return{x:D,y:U}}var I=function(P){v(R,P);function R(){var F;p(this,R);for(var O=arguments.length,D=Array(O),U=0;U<O;U++)D[U]=arguments[U];var j=b(this,(F=R.__proto__||Object.getPrototypeOf(R)).call.apply(F,[this].concat(D)));return j._handleSwipeStart=j._handleSwipeStart.bind(j),j._handleSwipeMove=j._handleSwipeMove.bind(j),j._handleSwipeEnd=j._handleSwipeEnd.bind(j),j._onMouseDown=j._onMouseDown.bind(j),j._onMouseMove=j._onMouseMove.bind(j),j._onMouseUp=j._onMouseUp.bind(j),j._setSwiperRef=j._setSwiperRef.bind(j),j}return h(R,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,g({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,g({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(O){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(O))}},{key:"_onMouseMove",value:function(O){this.mouseDown&&this._handleSwipeMove(O)}},{key:"_onMouseUp",value:function(O){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(O)}},{key:"_handleSwipeStart",value:function(O){var D=E(O),U=D.x,j=D.y;this.moveStart={x:U,y:j},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var D=E(O),U=D.x,j=D.y,G=U-this.moveStart.x,J=j-this.moveStart.y;this.moving=!0;var ie=this.props.onSwipeMove({x:G,y:J},O);ie&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:G,deltaY:J}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var D=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-D?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>D&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-D?this.props.onSwipeUp(1,O):this.movePosition.deltaY>D&&this.props.onSwipeDown(1,O)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(O){this.swiper=O,this.props.innerRef(O)}},{key:"render",value:function(){var O=this.props;O.tagName;var D=O.className,U=O.style,j=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var G=d(O,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:D,style:U},G),j)}}]),R}(r.Component);I.displayName="ReactSwipe",I.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},I.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=I})}(jl)),jl}(function(e){(function(t,r){r(e,NC())})(ni,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=a(r);function a(s){return s&&s.__esModule?s:{default:s}}t.default=i.default})})(Yc);var qo={};Object.defineProperty(qo,"__esModule",{value:!0});qo.default=void 0;var Pn=jC(Bv);function jC(e){return e&&e.__esModule?e:{default:e}}function WC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var UC={ROOT:function(t){return(0,Pn.default)(WC({"carousel-root":!0},t||"",!!t))},CAROUSEL:function(t){return(0,Pn.default)({carousel:!0,"carousel-slider":t})},WRAPPER:function(t,r){return(0,Pn.default)({"thumbs-wrapper":!t,"slider-wrapper":t,"axis-horizontal":r==="horizontal","axis-vertical":r!=="horizontal"})},SLIDER:function(t,r){return(0,Pn.default)({thumbs:!t,slider:t,animated:!r})},ITEM:function(t,r,i){return(0,Pn.default)({thumb:!t,slide:t,selected:r,previous:i})},ARROW_PREV:function(t){return(0,Pn.default)({"control-arrow control-prev":!0,"control-disabled":t})},ARROW_NEXT:function(t){return(0,Pn.default)({"control-arrow control-next":!0,"control-disabled":t})},DOT:function(t){return(0,Pn.default)({dot:!0,selected:t})}};qo.default=UC;var Go={},Bs={};Object.defineProperty(Bs,"__esModule",{value:!0});Bs.outerWidth=void 0;var zC=function(t){var r=t.offsetWidth,i=getComputedStyle(t);return r+=parseInt(i.marginLeft)+parseInt(i.marginRight),r};Bs.outerWidth=zC;var Ki={};Object.defineProperty(Ki,"__esModule",{value:!0});Ki.default=void 0;var BC=function(t,r,i){var a=t===0?t:t+r,s=i==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",c="("+s.join(",")+")";return l+c};Ki.default=BC;var Ko={};Object.defineProperty(Ko,"__esModule",{value:!0});Ko.default=void 0;var HC=function(){return window};Ko.default=HC;Object.defineProperty(Go,"__esModule",{value:!0});Go.default=void 0;var Ir=GC(k),ti=Hs(qo),ZC=Bs,ov=Hs(Ki),qC=Hs(Yc),ss=Hs(Ko);function Hs(e){return e&&e.__esModule?e:{default:e}}function zm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return zm=function(){return e},e}function GC(e){if(e&&e.__esModule)return e;if(e===null||To(e)!=="object"&&typeof e!="function")return{default:e};var t=zm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function To(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?To=function(r){return typeof r}:To=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},To(e)}function wc(){return wc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},wc.apply(this,arguments)}function KC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YC(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function VC(e,t,r){return t&&YC(e.prototype,t),e}function XC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bc(e,t)}function bc(e,t){return bc=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},bc(e,t)}function JC(e){var t=eR();return function(){var i=Ts(e),a;if(t){var s=Ts(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return QC(this,a)}}function QC(e,t){return t&&(To(t)==="object"||typeof t=="function")?t:Zt(e)}function Zt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eR(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ts(e){return Ts=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ts(e)}function kt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tR=function(t){return t.hasOwnProperty("key")},Xc=function(e){XC(r,e);var t=JC(r);function r(i){var a;return KC(this,r),a=t.call(this,i),kt(Zt(a),"itemsWrapperRef",void 0),kt(Zt(a),"itemsListRef",void 0),kt(Zt(a),"thumbsRef",void 0),kt(Zt(a),"setItemsWrapperRef",function(s){a.itemsWrapperRef=s}),kt(Zt(a),"setItemsListRef",function(s){a.itemsListRef=s}),kt(Zt(a),"setThumbsRef",function(s,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=s}),kt(Zt(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var s=Ir.Children.count(a.props.children),l=a.itemsWrapperRef.clientWidth,c=a.props.thumbWidth?a.props.thumbWidth:(0,ZC.outerWidth)(a.thumbsRef[0]),d=Math.floor(l/c),p=d<s,h=p?s-d:0;a.setState(function(b,v){return{itemSize:c,visibleItems:d,firstItem:p?a.getFirstItem(v.selectedItem):0,lastPosition:h,showArrows:p}})}}),kt(Zt(a),"handleClickItem",function(s,l,c){if(!tR(c)||c.key==="Enter"){var d=a.props.onSelectItem;typeof d=="function"&&d(s,l)}}),kt(Zt(a),"onSwipeStart",function(){a.setState({swiping:!0})}),kt(Zt(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),kt(Zt(a),"onSwipeMove",function(s){var l=s.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var c=0,d=Ir.Children.count(a.props.children),p=-(a.state.firstItem*100)/a.state.visibleItems,h=Math.max(d-a.state.visibleItems,0),b=-h*100/a.state.visibleItems;p===c&&l>0&&(l=0),p===b&&l<0&&(l=0);var v=a.itemsWrapperRef.clientWidth,w=p+100/(v/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(x){a.itemsListRef.style[x]=(0,ov.default)(w,"%",a.props.axis)}),!0}),kt(Zt(a),"slideRight",function(s){a.moveTo(a.state.firstItem-(typeof s=="number"?s:1))}),kt(Zt(a),"slideLeft",function(s){a.moveTo(a.state.firstItem+(typeof s=="number"?s:1))}),kt(Zt(a),"moveTo",function(s){s=s<0?0:s,s=s>=a.state.lastPosition?a.state.lastPosition:s,a.setState({firstItem:s})}),a.state={selectedItem:i.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return VC(r,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(a){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==a.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,ss.default)().addEventListener("resize",this.updateSizes),(0,ss.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,ss.default)().removeEventListener("resize",this.updateSizes),(0,ss.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(a){var s=a;return a>=this.state.lastPosition&&(s=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(s=this.state.firstItem),a<this.state.firstItem&&(s=a),s}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(s,l){var c=ti.default.ITEM(!1,l===a.state.selectedItem),d={key:l,ref:function(h){return a.setThumbsRef(h,l)},className:c,onClick:a.handleClickItem.bind(a,l,a.props.children[l]),onKeyDown:a.handleClickItem.bind(a,l,a.props.children[l]),"aria-label":"".concat(a.props.labels.item," ").concat(l+1),style:{width:a.props.thumbWidth}};return Ir.default.createElement("li",wc({},d,{role:"button",tabIndex:0}),s)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var s=Ir.Children.count(this.props.children)>1,l=this.state.showArrows&&this.state.firstItem>0,c=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,d={},p=-this.state.firstItem*(this.state.itemSize||0),h=(0,ov.default)(p,"px",this.props.axis),b=this.props.transitionTime+"ms";return d={WebkitTransform:h,MozTransform:h,MsTransform:h,OTransform:h,transform:h,msTransform:h,WebkitTransitionDuration:b,MozTransitionDuration:b,MsTransitionDuration:b,OTransitionDuration:b,transitionDuration:b,msTransitionDuration:b},Ir.default.createElement("div",{className:ti.default.CAROUSEL(!1)},Ir.default.createElement("div",{className:ti.default.WRAPPER(!1),ref:this.setItemsWrapperRef},Ir.default.createElement("button",{type:"button",className:ti.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),s?Ir.default.createElement(qC.default,{tagName:"ul",className:ti.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:d,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):Ir.default.createElement("ul",{className:ti.default.SLIDER(!1,this.state.swiping),ref:function(w){return a.setItemsListRef(w)},style:d},this.renderItems()),Ir.default.createElement("button",{type:"button",className:ti.default.ARROW_NEXT(!c),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),r}(Ir.Component);Go.default=Xc;kt(Xc,"displayName","Thumbs");kt(Xc,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var Zs={};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.default=void 0;var rR=function(){return document};Zs.default=rR;var ar={};Object.defineProperty(ar,"__esModule",{value:!0});ar.setPosition=ar.getPosition=ar.isKeyboardEvent=ar.defaultStatusFormatter=ar.noop=void 0;var nR=k,iR=oR(Ki);function oR(e){return e&&e.__esModule?e:{default:e}}var aR=function(){};ar.noop=aR;var sR=function(t,r){return"".concat(t," of ").concat(r)};ar.defaultStatusFormatter=sR;var uR=function(t){return t?t.hasOwnProperty("key"):!1};ar.isKeyboardEvent=uR;var lR=function(t,r){if(r.infiniteLoop&&++t,t===0)return 0;var i=nR.Children.count(r.children);if(r.centerMode&&r.axis==="horizontal"){var a=-t*r.centerSlidePercentage,s=i-1;return t&&(t!==s||r.infiniteLoop)?a+=(100-r.centerSlidePercentage)/2:t===s&&(a+=100-r.centerSlidePercentage),a}return-t*100};ar.getPosition=lR;var cR=function(t,r){var i={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){i[a]=(0,iR.default)(t,"%",r)}),i};ar.setPosition=cR;var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.fadeAnimationHandler=Hr.slideStopSwipingHandler=Hr.slideSwipeAnimationHandler=Hr.slideAnimationHandler=void 0;var Bm=k,fR=dR(Ki),Zr=ar;function dR(e){return e&&e.__esModule?e:{default:e}}function av(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function oi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?av(Object(r),!0).forEach(function(i){pR(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):av(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function pR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hR=function(t,r){var i={},a=r.selectedItem,s=a,l=Bm.Children.count(t.children)-1,c=t.infiniteLoop&&(a<0||a>l);if(c)return s<0?t.centerMode&&t.centerSlidePercentage&&t.axis==="horizontal"?i.itemListStyle=(0,Zr.setPosition)(-(l+2)*t.centerSlidePercentage-(100-t.centerSlidePercentage)/2,t.axis):i.itemListStyle=(0,Zr.setPosition)(-(l+2)*100,t.axis):s>l&&(i.itemListStyle=(0,Zr.setPosition)(0,t.axis)),i;var d=(0,Zr.getPosition)(a,t),p=(0,fR.default)(d,"%",t.axis),h=t.transitionTime+"ms";return i.itemListStyle={WebkitTransform:p,msTransform:p,OTransform:p,transform:p},r.swiping||(i.itemListStyle=oi(oi({},i.itemListStyle),{},{WebkitTransitionDuration:h,MozTransitionDuration:h,OTransitionDuration:h,transitionDuration:h,msTransitionDuration:h})),i};Hr.slideAnimationHandler=hR;var vR=function(t,r,i,a){var s={},l=r.axis==="horizontal",c=Bm.Children.count(r.children),d=0,p=(0,Zr.getPosition)(i.selectedItem,r),h=r.infiniteLoop?(0,Zr.getPosition)(c-1,r)-100:(0,Zr.getPosition)(c-1,r),b=l?t.x:t.y,v=b;p===d&&b>0&&(v=0),p===h&&b<0&&(v=0);var w=p+100/(i.itemSize/v),x=Math.abs(b)>r.swipeScrollTolerance;return r.infiniteLoop&&x&&(i.selectedItem===0&&w>-100?w-=c*100:i.selectedItem===c-1&&w<-c*100&&(w+=c*100)),(!r.preventMovementUntilSwipeScrollTolerance||x||i.swipeMovementStarted)&&(i.swipeMovementStarted||a({swipeMovementStarted:!0}),s.itemListStyle=(0,Zr.setPosition)(w,r.axis)),x&&!i.cancelClick&&a({cancelClick:!0}),s};Hr.slideSwipeAnimationHandler=vR;var mR=function(t,r){var i=(0,Zr.getPosition)(r.selectedItem,t),a=(0,Zr.setPosition)(i,t.axis);return{itemListStyle:a}};Hr.slideStopSwipingHandler=mR;var gR=function(t,r){var i=t.transitionTime+"ms",a="ease-in-out",s={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:a,msTransitionTimingFunction:a,MozTransitionTimingFunction:a,WebkitTransitionTimingFunction:a,OTransitionTimingFunction:a};return r.swiping||(s=oi(oi({},s),{},{WebkitTransitionDuration:i,MozTransitionDuration:i,OTransitionDuration:i,transitionDuration:i,msTransitionDuration:i})),{slideStyle:s,selectedStyle:oi(oi({},s),{},{opacity:1,position:"relative"}),prevStyle:oi({},s)}};Hr.fadeAnimationHandler=gR;Object.defineProperty(zs,"__esModule",{value:!0});zs.default=void 0;var Be=bR(k),yR=Yo(Yc),fn=Yo(qo),wR=Yo(Go),us=Yo(Zs),ls=Yo(Ko),Eo=ar,Cs=Hr;function Yo(e){return e&&e.__esModule?e:{default:e}}function Hm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Hm=function(){return e},e}function bR(e){if(e&&e.__esModule)return e;if(e===null||Co(e)!=="object"&&typeof e!="function")return{default:e};var t=Hm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function Co(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Co=function(r){return typeof r}:Co=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Co(e)}function Sc(){return Sc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Sc.apply(this,arguments)}function sv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function Mr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sv(Object(r),!0).forEach(function(i){Te(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sv(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function SR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ER(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function xR(e,t,r){return t&&ER(e.prototype,t),e}function _R(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ec(e,t)}function Ec(e,t){return Ec=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},Ec(e,t)}function OR(e){var t=TR();return function(){var i=Rs(e),a;if(t){var s=Rs(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return AR(this,a)}}function AR(e,t){return t&&(Co(t)==="object"||typeof t=="function")?t:Ce(e)}function Ce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TR(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Rs(e){return Rs=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Rs(e)}function Te(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jc=function(e){_R(r,e);var t=OR(r);function r(i){var a;SR(this,r),a=t.call(this,i),Te(Ce(a),"thumbsRef",void 0),Te(Ce(a),"carouselWrapperRef",void 0),Te(Ce(a),"listRef",void 0),Te(Ce(a),"itemsRef",void 0),Te(Ce(a),"timer",void 0),Te(Ce(a),"animationHandler",void 0),Te(Ce(a),"setThumbsRef",function(l){a.thumbsRef=l}),Te(Ce(a),"setCarouselWrapperRef",function(l){a.carouselWrapperRef=l}),Te(Ce(a),"setListRef",function(l){a.listRef=l}),Te(Ce(a),"setItemsRef",function(l,c){a.itemsRef||(a.itemsRef=[]),a.itemsRef[c]=l}),Te(Ce(a),"autoPlay",function(){Be.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),Te(Ce(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),Te(Ce(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),Te(Ce(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),Te(Ce(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),Te(Ce(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,us.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,us.default)().activeElement)):!1}),Te(Ce(a),"navigateWithKeyboard",function(l){if(a.isFocusWithinTheCarousel()){var c=a.props.axis,d=c==="horizontal",p={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},h=d?p.ArrowRight:p.ArrowDown,b=d?p.ArrowLeft:p.ArrowUp;h===l.keyCode?a.increment():b===l.keyCode&&a.decrement()}}),Te(Ce(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var l=a.props.axis==="horizontal",c=a.itemsRef[0];if(c){var d=l?c.clientWidth:c.clientHeight;a.setState({itemSize:d}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),Te(Ce(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),Te(Ce(a),"handleClickItem",function(l,c){if(Be.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(l,c),l!==a.state.selectedItem&&a.setState({selectedItem:l})}}),Te(Ce(a),"handleOnChange",function(l,c){Be.Children.count(a.props.children)<=1||a.props.onChange(l,c)}),Te(Ce(a),"handleClickThumb",function(l,c){a.props.onClickThumb(l,c),a.moveTo(l)}),Te(Ce(a),"onSwipeStart",function(l){a.setState({swiping:!0}),a.props.onSwipeStart(l)}),Te(Ce(a),"onSwipeEnd",function(l){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(l),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),Te(Ce(a),"onSwipeMove",function(l,c){a.props.onSwipeMove(c);var d=a.props.swipeAnimationHandler(l,a.props,a.state,a.setState.bind(Ce(a)));return a.setState(Mr({},d)),!!Object.keys(d).length}),Te(Ce(a),"decrement",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem-(typeof l=="number"?l:1))}),Te(Ce(a),"increment",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem+(typeof l=="number"?l:1))}),Te(Ce(a),"moveTo",function(l){if(typeof l=="number"){var c=Be.Children.count(a.props.children)-1;l<0&&(l=a.props.infiniteLoop?c:0),l>c&&(l=a.props.infiniteLoop?0:c),a.selectItem({selectedItem:l}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),Te(Ce(a),"onClickNext",function(){a.increment(1)}),Te(Ce(a),"onClickPrev",function(){a.decrement(1)}),Te(Ce(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Te(Ce(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Te(Ce(a),"changeItem",function(l){return function(c){(!(0,Eo.isKeyboardEvent)(c)||c.key==="Enter")&&a.moveTo(l)}}),Te(Ce(a),"selectItem",function(l){a.setState(Mr({previousItem:a.state.selectedItem},l),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(l.selectedItem,Be.Children.toArray(a.props.children)[l.selectedItem])}),Te(Ce(a),"getInitialImage",function(){var l=a.props.selectedItem,c=a.itemsRef&&a.itemsRef[l],d=c&&c.getElementsByTagName("img")||[];return d[0]}),Te(Ce(a),"getVariableItemHeight",function(l){var c=a.itemsRef&&a.itemsRef[l];if(a.state.hasMount&&c&&c.children.length){var d=c.children[0].getElementsByTagName("img")||[];if(d.length>0){var p=d[0];if(!p.complete){var h=function w(){a.forceUpdate(),p.removeEventListener("load",w)};p.addEventListener("load",h)}}var b=d[0]||c.children[0],v=b.clientHeight;return v>0?v:null}return null});var s={initialized:!1,previousItem:i.selectedItem,selectedItem:i.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:i.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof i.animationHandler=="function"&&i.animationHandler||i.animationHandler==="fade"&&Cs.fadeAnimationHandler||Cs.slideAnimationHandler,a.state=Mr(Mr({},s),a.animationHandler(i,s)),a}return xR(r,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,s){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),s.swiping&&!this.state.swiping&&this.setState(Mr({},this.props.stopSwipingHandler(this.props,this.state))),(a.selectedItem!==this.props.selectedItem||a.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),a.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var a=this;this.bindEvents(),this.state.autoPlay&&Be.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var s=a.getInitialImage();s&&!s.complete?s.addEventListener("load",a.setMountState):a.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.addEventListener("mouseenter",this.stopOnHover),a.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.removeEventListener("mouseenter",this.stopOnHover),a.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,ls.default)().addEventListener("resize",this.updateSizes),(0,ls.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,us.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,ls.default)().removeEventListener("resize",this.updateSizes),(0,ls.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,us.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var a;(a=this.carouselWrapperRef)===null||a===void 0||a.focus()}},{key:"renderItems",value:function(a){var s=this;return this.props.children?Be.Children.map(this.props.children,function(l,c){var d=c===s.state.selectedItem,p=c===s.state.previousItem,h=d&&s.state.selectedStyle||p&&s.state.prevStyle||s.state.slideStyle||{};s.props.centerMode&&s.props.axis==="horizontal"&&(h=Mr(Mr({},h),{},{minWidth:s.props.centerSlidePercentage+"%"})),s.state.swiping&&s.state.swipeMovementStarted&&(h=Mr(Mr({},h),{},{pointerEvents:"none"}));var b={ref:function(w){return s.setItemsRef(w,c)},key:"itemKey"+c+(a?"clone":""),className:fn.default.ITEM(!0,c===s.state.selectedItem,c===s.state.previousItem),onClick:s.handleClickItem.bind(s,c,l),style:h};return Be.default.createElement("li",b,s.props.renderItem(l,{isSelected:c===s.state.selectedItem,isPrevious:c===s.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,s=this.props,l=s.showIndicators,c=s.labels,d=s.renderIndicator,p=s.children;return l?Be.default.createElement("ul",{className:"control-dots"},Be.Children.map(p,function(h,b){return d&&d(a.changeItem(b),b===a.state.selectedItem,b,c.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?Be.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,Be.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||Be.Children.count(this.props.children)===0?null:Be.default.createElement(wR.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var a=this;if(!this.props.children||Be.Children.count(this.props.children)===0)return null;var s=this.props.swipeable&&Be.Children.count(this.props.children)>1,l=this.props.axis==="horizontal",c=this.props.showArrows&&Be.Children.count(this.props.children)>1,d=c&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,p=c&&(this.state.selectedItem<Be.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,h=this.renderItems(!0),b=h.shift(),v=h.pop(),w={className:fn.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},x={};if(l){if(w.onSwipeLeft=this.onSwipeForward,w.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var g=this.getVariableItemHeight(this.state.selectedItem);x.height=g||"auto"}}else w.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,w.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,w.style=Mr(Mr({},w.style),{},{height:this.state.itemSize}),x.height=this.state.itemSize;return Be.default.createElement("div",{"aria-label":this.props.ariaLabel,className:fn.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},Be.default.createElement("div",{className:fn.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,d,this.props.labels.leftArrow),Be.default.createElement("div",{className:fn.default.WRAPPER(!0,this.props.axis),style:x},s?Be.default.createElement(yR.default,Sc({tagName:"ul",innerRef:this.setListRef},w,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&v,this.renderItems(),this.props.infiniteLoop&&b):Be.default.createElement("ul",{className:fn.default.SLIDER(!0,this.state.swiping),ref:function(I){return a.setListRef(I)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&v,this.renderItems(),this.props.infiniteLoop&&b)),this.props.renderArrowNext(this.onClickNext,p,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),r}(Be.default.Component);zs.default=Jc;Te(Jc,"displayName","Carousel");Te(Jc,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:Eo.noop,onClickThumb:Eo.noop,onChange:Eo.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(t,r,i){return Be.default.createElement("button",{type:"button","aria-label":i,className:fn.default.ARROW_PREV(!r),onClick:t})},renderArrowNext:function(t,r,i){return Be.default.createElement("button",{type:"button","aria-label":i,className:fn.default.ARROW_NEXT(!r),onClick:t})},renderIndicator:function(t,r,i,a){return Be.default.createElement("li",{className:fn.default.DOT(r),onClick:t,onKeyDown:t,value:i,key:i,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(i+1)})},renderItem:function(t){return t},renderThumbs:function(t){var r=Be.Children.map(t,function(i){var a=i;if(i.type!=="img"&&(a=Be.Children.toArray(i.props.children).find(function(s){return s.type==="img"})),!!a)return a});return r.filter(function(i){return i}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):r},statusFormatter:Eo.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:Cs.slideSwipeAnimationHandler,stopSwipingHandler:Cs.slideStopSwipingHandler});var CR={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return i.default}});var t=a(zs),r=CR,i=a(Go);function a(s){return s&&s.__esModule?s:{default:s}}})(jm);const RR=({tip:e})=>$.jsx("div",{className:"px-8 pb-8",children:Zm(e,!0)}),PR=({pages:e})=>$.jsx("div",{className:"min-h-[10rem] w-96",children:$.jsx(jm.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>$.jsx(RR,{tip:t},t.key))})}),IR=({body:e,isInsideCarousel:t})=>$.jsx("article",{className:Pt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:$.jsx(_s,{children:e,options:{overrides:{a:{component:({children:r,...i})=>$.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,$.jsx(Uv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),MR=({video:e,body:t,title:r,isInsideCarousel:i})=>$.jsxs("div",{className:Pt([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[$.jsx("div",{className:Pt([{"mr-1":!i,"mb-1":i}]),children:$.jsx("iframe",{height:i?"auto":90,width:i?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),$.jsx("article",{className:Pt(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:$.jsx(_s,{children:t||"",options:{overrides:{a:{component:({children:a,...s})=>$.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,$.jsx(Uv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Zm=(e,t)=>{switch(e.type){case ws.TEXT:return $.jsx(IR,{body:e.body,isInsideCarousel:t});case ws.VIDEO:return $.jsx(MR,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case ws.CAROUSEL:return $.jsx(PR,{pages:e.pages})}},qm=k.createContext(void 0);function uv(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const LR=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:a},s]=k.useState({tips:{},show:!0});k.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(d=>d.json()).then(d=>{const p=d.reduce((h,b)=>uv(d,b.key).length>1?{...h,[b.key]:{type:"carousel",pages:uv(d,b.key)}}:{...h,[b.key]:b},{});s(h=>({...h,tips:p}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{s(c=>({...c,show:!a}))};return $.jsx(qm.Provider,{value:{tips:i,toggleTips:l,show:a,enabled:t},children:e})},Gm=e=>{const t=k.useContext(qm);if(t===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?t.tips[e]:null,toggleTips:t.toggleTips,show:t.show,enabled:t.enabled}},$R=Os(PC)`
|
|
138
|
+
*/var Qh;function ZR(){return Qh||(Qh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,w=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,P=e?Symbol.for("react.scope"):60119;function T(J){return typeof J=="string"||typeof J=="function"||J===i||J===p||J===s||J===a||J===w||J===S||typeof J=="object"&&J!==null&&(J.$$typeof===_||J.$$typeof===v||J.$$typeof===l||J.$$typeof===c||J.$$typeof===h||J.$$typeof===x||J.$$typeof===C||J.$$typeof===P||J.$$typeof===g)}function $(J){if(typeof J=="object"&&J!==null){var st=J.$$typeof;switch(st){case t:var ut=J.type;switch(ut){case d:case p:case i:case s:case a:case w:return ut;default:var yt=ut&&ut.$$typeof;switch(yt){case c:case h:case _:case v:case l:return yt;default:return st}}case r:return st}}}var A=d,D=p,H=c,j=l,V=t,ee=h,ye=i,Re=_,Ee=v,se=r,Fe=s,be=a,Oe=w,Be=!1;function pt(J){return Be||(Be=!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.")),Z(J)||$(J)===d}function Z(J){return $(J)===p}function Y(J){return $(J)===c}function pe(J){return $(J)===l}function oe(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function fe(J){return $(J)===h}function de(J){return $(J)===i}function ue(J){return $(J)===_}function he(J){return $(J)===v}function le(J){return $(J)===r}function we(J){return $(J)===s}function Se(J){return $(J)===a}function Ve(J){return $(J)===w}Ze.AsyncMode=A,Ze.ConcurrentMode=D,Ze.ContextConsumer=H,Ze.ContextProvider=j,Ze.Element=V,Ze.ForwardRef=ee,Ze.Fragment=ye,Ze.Lazy=Re,Ze.Memo=Ee,Ze.Portal=se,Ze.Profiler=Fe,Ze.StrictMode=be,Ze.Suspense=Oe,Ze.isAsyncMode=pt,Ze.isConcurrentMode=Z,Ze.isContextConsumer=Y,Ze.isContextProvider=pe,Ze.isElement=oe,Ze.isForwardRef=fe,Ze.isFragment=de,Ze.isLazy=ue,Ze.isMemo=he,Ze.isPortal=le,Ze.isProfiler=we,Ze.isStrictMode=Se,Ze.isSuspense=Ve,Ze.isValidElementType=T,Ze.typeOf=$}()),Ze}var ev;function Ym(){return ev||(ev=1,process.env.NODE_ENV==="production"?fs.exports=qR():fs.exports=ZR()),fs.exports}var Wl,tv;function Qc(){if(tv)return Wl;tv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wl=e,Wl}var Ul,rv;function Vm(){return rv||(rv=1,Ul=Function.call.bind(Object.prototype.hasOwnProperty)),Ul}var Hl,nv;function GR(){if(nv)return Hl;nv=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Qc(),r={},i=Vm();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(s,l,c,d,p){if(process.env.NODE_ENV!=="production"){for(var h in s)if(i(s,h)){var w;try{if(typeof s[h]!="function"){var S=Error((d||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw S.name="Invariant Violation",S}w=s[h](l,h,d,c,null,t)}catch(_){w=_}if(w&&!(w instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof w+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),w instanceof Error&&!(w.message in r)){r[w.message]=!0;var v=p?p():"";e("Failed "+c+" type: "+w.message+(v??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Hl=a,Hl}var Bl,iv;function KR(){if(iv)return Bl;iv=1;var e=Ym(),t=Dc(),r=Qc(),i=Vm(),a=GR(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return Bl=function(c,d){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function w(Z){var Y=Z&&(p&&Z[p]||Z[h]);if(typeof Y=="function")return Y}var S="<<anonymous>>",v={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:P(),arrayOf:T,element:$(),elementType:A(),instanceOf:D,node:ee(),objectOf:j,oneOf:H,oneOfType:V,shape:Re,exact:Ee};function _(Z,Y){return Z===Y?Z!==0||1/Z===1/Y:Z!==Z&&Y!==Y}function g(Z,Y){this.message=Z,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}g.prototype=Error.prototype;function x(Z){if(process.env.NODE_ENV!=="production")var Y={},pe=0;function oe(de,ue,he,le,we,Se,Ve){if(le=le||S,Se=Se||he,Ve!==r){if(d){var J=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 J.name="Invariant Violation",J}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var st=le+":"+he;!Y[st]&&pe<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Se+"` prop on `"+le+"`. 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."),Y[st]=!0,pe++)}}return ue[he]==null?de?ue[he]===null?new g("The "+we+" `"+Se+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new g("The "+we+" `"+Se+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:Z(ue,he,le,we,Se)}var fe=oe.bind(null,!1);return fe.isRequired=oe.bind(null,!0),fe}function C(Z){function Y(pe,oe,fe,de,ue,he){var le=pe[oe],we=be(le);if(we!==Z){var Se=Oe(le);return new g("Invalid "+de+" `"+ue+"` of type "+("`"+Se+"` supplied to `"+fe+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return x(Y)}function P(){return x(l)}function T(Z){function Y(pe,oe,fe,de,ue){if(typeof Z!="function")return new g("Property `"+ue+"` of component `"+fe+"` has invalid PropType notation inside arrayOf.");var he=pe[oe];if(!Array.isArray(he)){var le=be(he);return new g("Invalid "+de+" `"+ue+"` of type "+("`"+le+"` supplied to `"+fe+"`, expected an array."))}for(var we=0;we<he.length;we++){var Se=Z(he,we,fe,de,ue+"["+we+"]",r);if(Se instanceof Error)return Se}return null}return x(Y)}function $(){function Z(Y,pe,oe,fe,de){var ue=Y[pe];if(!c(ue)){var he=be(ue);return new g("Invalid "+fe+" `"+de+"` of type "+("`"+he+"` supplied to `"+oe+"`, expected a single ReactElement."))}return null}return x(Z)}function A(){function Z(Y,pe,oe,fe,de){var ue=Y[pe];if(!e.isValidElementType(ue)){var he=be(ue);return new g("Invalid "+fe+" `"+de+"` of type "+("`"+he+"` supplied to `"+oe+"`, expected a single ReactElement type."))}return null}return x(Z)}function D(Z){function Y(pe,oe,fe,de,ue){if(!(pe[oe]instanceof Z)){var he=Z.name||S,le=pt(pe[oe]);return new g("Invalid "+de+" `"+ue+"` of type "+("`"+le+"` supplied to `"+fe+"`, expected ")+("instance of `"+he+"`."))}return null}return x(Y)}function H(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function Y(pe,oe,fe,de,ue){for(var he=pe[oe],le=0;le<Z.length;le++)if(_(he,Z[le]))return null;var we=JSON.stringify(Z,function(Ve,J){var st=Oe(J);return st==="symbol"?String(J):J});return new g("Invalid "+de+" `"+ue+"` of value `"+String(he)+"` "+("supplied to `"+fe+"`, expected one of "+we+"."))}return x(Y)}function j(Z){function Y(pe,oe,fe,de,ue){if(typeof Z!="function")return new g("Property `"+ue+"` of component `"+fe+"` has invalid PropType notation inside objectOf.");var he=pe[oe],le=be(he);if(le!=="object")return new g("Invalid "+de+" `"+ue+"` of type "+("`"+le+"` supplied to `"+fe+"`, expected an object."));for(var we in he)if(i(he,we)){var Se=Z(he,we,fe,de,ue+"."+we,r);if(Se instanceof Error)return Se}return null}return x(Y)}function V(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var Y=0;Y<Z.length;Y++){var pe=Z[Y];if(typeof pe!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Be(pe)+" at index "+Y+"."),l}function oe(fe,de,ue,he,le){for(var we=[],Se=0;Se<Z.length;Se++){var Ve=Z[Se],J=Ve(fe,de,ue,he,le,r);if(J==null)return null;J.data&&i(J.data,"expectedType")&&we.push(J.data.expectedType)}var st=we.length>0?", expected one of type ["+we.join(", ")+"]":"";return new g("Invalid "+he+" `"+le+"` supplied to "+("`"+ue+"`"+st+"."))}return x(oe)}function ee(){function Z(Y,pe,oe,fe,de){return se(Y[pe])?null:new g("Invalid "+fe+" `"+de+"` supplied to "+("`"+oe+"`, expected a ReactNode."))}return x(Z)}function ye(Z,Y,pe,oe,fe){return new g((Z||"React class")+": "+Y+" type `"+pe+"."+oe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+fe+"`.")}function Re(Z){function Y(pe,oe,fe,de,ue){var he=pe[oe],le=be(he);if(le!=="object")return new g("Invalid "+de+" `"+ue+"` of type `"+le+"` "+("supplied to `"+fe+"`, expected `object`."));for(var we in Z){var Se=Z[we];if(typeof Se!="function")return ye(fe,de,ue,we,Oe(Se));var Ve=Se(he,we,fe,de,ue+"."+we,r);if(Ve)return Ve}return null}return x(Y)}function Ee(Z){function Y(pe,oe,fe,de,ue){var he=pe[oe],le=be(he);if(le!=="object")return new g("Invalid "+de+" `"+ue+"` of type `"+le+"` "+("supplied to `"+fe+"`, expected `object`."));var we=t({},pe[oe],Z);for(var Se in we){var Ve=Z[Se];if(i(Z,Se)&&typeof Ve!="function")return ye(fe,de,ue,Se,Oe(Ve));if(!Ve)return new g("Invalid "+de+" `"+ue+"` key `"+Se+"` supplied to `"+fe+"`.\nBad object: "+JSON.stringify(pe[oe],null," ")+`
|
|
139
|
+
Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var J=Ve(he,Se,fe,de,ue+"."+Se,r);if(J)return J}return null}return x(Y)}function se(Z){switch(typeof Z){case"number":case"string":case"undefined":return!0;case"boolean":return!Z;case"object":if(Array.isArray(Z))return Z.every(se);if(Z===null||c(Z))return!0;var Y=w(Z);if(Y){var pe=Y.call(Z),oe;if(Y!==Z.entries){for(;!(oe=pe.next()).done;)if(!se(oe.value))return!1}else for(;!(oe=pe.next()).done;){var fe=oe.value;if(fe&&!se(fe[1]))return!1}}else return!1;return!0;default:return!1}}function Fe(Z,Y){return Z==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function be(Z){var Y=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":Fe(Y,Z)?"symbol":Y}function Oe(Z){if(typeof Z>"u"||Z===null)return""+Z;var Y=be(Z);if(Y==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return Y}function Be(Z){var Y=Oe(Z);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function pt(Z){return!Z.constructor||!Z.constructor.name?S:Z.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v},Bl}var zl,ov;function YR(){if(ov)return zl;ov=1;var e=Qc();function t(){}function r(){}return r.resetWarningCache=t,zl=function(){function i(l,c,d,p,h,w){if(w!==e){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}i.isRequired=i;function a(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},zl}var av;function VR(){if(av)return cs.exports;if(av=1,process.env.NODE_ENV!=="production"){var e=Ym(),t=!0;cs.exports=KR()(e.isElement,t)}else cs.exports=YR()();return cs.exports}var sv;function XR(){return sv||(sv=1,function(e){(function(t,r){r(e,N,VR())})(mi,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=_;var a=l(r),s=l(i);function l(P){return P&&P.__esModule?P:{default:P}}var c=Object.assign||function(P){for(var T=1;T<arguments.length;T++){var $=arguments[T];for(var A in $)Object.prototype.hasOwnProperty.call($,A)&&(P[A]=$[A])}return P};function d(P,T){var $={};for(var A in P)T.indexOf(A)>=0||Object.prototype.hasOwnProperty.call(P,A)&&($[A]=P[A]);return $}function p(P,T){if(!(P instanceof T))throw new TypeError("Cannot call a class as a function")}var h=function(){function P(T,$){for(var A=0;A<$.length;A++){var D=$[A];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(T,D.key,D)}}return function(T,$,A){return $&&P(T.prototype,$),A&&P(T,A),T}}();function w(P,T){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:P}function S(P,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);P.prototype=Object.create(T&&T.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(P,T):P.__proto__=T)}var v=!1;function _(P){v=P}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){_(!0)}}))}catch{}function g(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return v?P:P.capture}function x(P){if("touches"in P){var T=P.touches[0],$=T.pageX,A=T.pageY;return{x:$,y:A}}var D=P.screenX,H=P.screenY;return{x:D,y:H}}var C=function(P){S(T,P);function T(){var $;p(this,T);for(var A=arguments.length,D=Array(A),H=0;H<A;H++)D[H]=arguments[H];var j=w(this,($=T.__proto__||Object.getPrototypeOf(T)).call.apply($,[this].concat(D)));return j._handleSwipeStart=j._handleSwipeStart.bind(j),j._handleSwipeMove=j._handleSwipeMove.bind(j),j._handleSwipeEnd=j._handleSwipeEnd.bind(j),j._onMouseDown=j._onMouseDown.bind(j),j._onMouseMove=j._onMouseMove.bind(j),j._onMouseUp=j._onMouseUp.bind(j),j._setSwiperRef=j._setSwiperRef.bind(j),j}return h(T,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,g({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,g({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(A){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(A))}},{key:"_onMouseMove",value:function(A){this.mouseDown&&this._handleSwipeMove(A)}},{key:"_onMouseUp",value:function(A){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(A)}},{key:"_handleSwipeStart",value:function(A){var D=x(A),H=D.x,j=D.y;this.moveStart={x:H,y:j},this.props.onSwipeStart(A)}},{key:"_handleSwipeMove",value:function(A){if(this.moveStart){var D=x(A),H=D.x,j=D.y,V=H-this.moveStart.x,ee=j-this.moveStart.y;this.moving=!0;var ye=this.props.onSwipeMove({x:V,y:ee},A);ye&&A.cancelable&&A.preventDefault(),this.movePosition={deltaX:V,deltaY:ee}}}},{key:"_handleSwipeEnd",value:function(A){this.props.onSwipeEnd(A);var D=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-D?this.props.onSwipeLeft(1,A):this.movePosition.deltaX>D&&this.props.onSwipeRight(1,A),this.movePosition.deltaY<-D?this.props.onSwipeUp(1,A):this.movePosition.deltaY>D&&this.props.onSwipeDown(1,A)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(A){this.swiper=A,this.props.innerRef(A)}},{key:"render",value:function(){var A=this.props;A.tagName;var D=A.className,H=A.style,j=A.children;A.allowMouseEvents,A.onSwipeUp,A.onSwipeDown,A.onSwipeLeft,A.onSwipeRight,A.onSwipeStart,A.onSwipeMove,A.onSwipeEnd,A.innerRef,A.tolerance;var V=d(A,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:D,style:H},V),j)}}]),T}(r.Component);C.displayName="ReactSwipe",C.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},C.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=C})}(jl)),jl}(function(e){(function(t,r){r(e,XR())})(mi,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=a(r);function a(s){return s&&s.__esModule?s:{default:s}}t.default=i.default})})(Jc);var ia={};Object.defineProperty(ia,"__esModule",{value:!0});ia.default=void 0;var kn=JR(Vv);function JR(e){return e&&e.__esModule?e:{default:e}}function QR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var eC={ROOT:function(t){return(0,kn.default)(QR({"carousel-root":!0},t||"",!!t))},CAROUSEL:function(t){return(0,kn.default)({carousel:!0,"carousel-slider":t})},WRAPPER:function(t,r){return(0,kn.default)({"thumbs-wrapper":!t,"slider-wrapper":t,"axis-horizontal":r==="horizontal","axis-vertical":r!=="horizontal"})},SLIDER:function(t,r){return(0,kn.default)({thumbs:!t,slider:t,animated:!r})},ITEM:function(t,r,i){return(0,kn.default)({thumb:!t,slide:t,selected:r,previous:i})},ARROW_PREV:function(t){return(0,kn.default)({"control-arrow control-prev":!0,"control-disabled":t})},ARROW_NEXT:function(t){return(0,kn.default)({"control-arrow control-next":!0,"control-disabled":t})},DOT:function(t){return(0,kn.default)({dot:!0,selected:t})}};ia.default=eC;var oa={},Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.outerWidth=void 0;var tC=function(t){var r=t.offsetWidth,i=getComputedStyle(t);return r+=parseInt(i.marginLeft)+parseInt(i.marginRight),r};Ys.outerWidth=tC;var lo={};Object.defineProperty(lo,"__esModule",{value:!0});lo.default=void 0;var rC=function(t,r,i){var a=t===0?t:t+r,s=i==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",c="("+s.join(",")+")";return l+c};lo.default=rC;var aa={};Object.defineProperty(aa,"__esModule",{value:!0});aa.default=void 0;var nC=function(){return window};aa.default=nC;Object.defineProperty(oa,"__esModule",{value:!0});oa.default=void 0;var Hr=aC(N),hi=Vs(ia),iC=Ys,uv=Vs(lo),oC=Vs(Jc),ds=Vs(aa);function Vs(e){return e&&e.__esModule?e:{default:e}}function Xm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Xm=function(){return e},e}function aC(e){if(e&&e.__esModule)return e;if(e===null||Wo(e)!=="object"&&typeof e!="function")return{default:e};var t=Xm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function Wo(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wo=function(r){return typeof r}:Wo=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wo(e)}function wc(){return wc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},wc.apply(this,arguments)}function sC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lv(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function uC(e,t,r){return t&&lv(e.prototype,t),r&&lv(e,r),e}function lC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bc(e,t)}function bc(e,t){return bc=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},bc(e,t)}function cC(e){var t=dC();return function(){var i=Ms(e),a;if(t){var s=Ms(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return fC(this,a)}}function fC(e,t){return t&&(Wo(t)==="object"||typeof t=="function")?t:Qt(e)}function Qt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ms(e)}function qt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pC=function(t){return t.hasOwnProperty("key")},ef=function(e){lC(r,e);var t=cC(r);function r(i){var a;return sC(this,r),a=t.call(this,i),qt(Qt(a),"itemsWrapperRef",void 0),qt(Qt(a),"itemsListRef",void 0),qt(Qt(a),"thumbsRef",void 0),qt(Qt(a),"setItemsWrapperRef",function(s){a.itemsWrapperRef=s}),qt(Qt(a),"setItemsListRef",function(s){a.itemsListRef=s}),qt(Qt(a),"setThumbsRef",function(s,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=s}),qt(Qt(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var s=Hr.Children.count(a.props.children),l=a.itemsWrapperRef.clientWidth,c=a.props.thumbWidth?a.props.thumbWidth:(0,iC.outerWidth)(a.thumbsRef[0]),d=Math.floor(l/c),p=d<s,h=p?s-d:0;a.setState(function(w,S){return{itemSize:c,visibleItems:d,firstItem:p?a.getFirstItem(S.selectedItem):0,lastPosition:h,showArrows:p}})}}),qt(Qt(a),"handleClickItem",function(s,l,c){if(!pC(c)||c.key==="Enter"){var d=a.props.onSelectItem;typeof d=="function"&&d(s,l)}}),qt(Qt(a),"onSwipeStart",function(){a.setState({swiping:!0})}),qt(Qt(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),qt(Qt(a),"onSwipeMove",function(s){var l=s.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var c=0,d=Hr.Children.count(a.props.children),p=-(a.state.firstItem*100)/a.state.visibleItems,h=Math.max(d-a.state.visibleItems,0),w=-h*100/a.state.visibleItems;p===c&&l>0&&(l=0),p===w&&l<0&&(l=0);var S=a.itemsWrapperRef.clientWidth,v=p+100/(S/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(_){a.itemsListRef.style[_]=(0,uv.default)(v,"%",a.props.axis)}),!0}),qt(Qt(a),"slideRight",function(s){a.moveTo(a.state.firstItem-(typeof s=="number"?s:1))}),qt(Qt(a),"slideLeft",function(s){a.moveTo(a.state.firstItem+(typeof s=="number"?s:1))}),qt(Qt(a),"moveTo",function(s){s=s<0?0:s,s=s>=a.state.lastPosition?a.state.lastPosition:s,a.setState({firstItem:s})}),a.state={selectedItem:i.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return uC(r,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(a){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==a.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,ds.default)().addEventListener("resize",this.updateSizes),(0,ds.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,ds.default)().removeEventListener("resize",this.updateSizes),(0,ds.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(a){var s=a;return a>=this.state.lastPosition&&(s=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(s=this.state.firstItem),a<this.state.firstItem&&(s=a),s}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(s,l){var c=hi.default.ITEM(!1,l===a.state.selectedItem),d={key:l,ref:function(h){return a.setThumbsRef(h,l)},className:c,onClick:a.handleClickItem.bind(a,l,a.props.children[l]),onKeyDown:a.handleClickItem.bind(a,l,a.props.children[l]),"aria-label":"".concat(a.props.labels.item," ").concat(l+1),style:{width:a.props.thumbWidth}};return Hr.default.createElement("li",wc({},d,{role:"button",tabIndex:0}),s)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var s=Hr.Children.count(this.props.children)>1,l=this.state.showArrows&&this.state.firstItem>0,c=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,d={},p=-this.state.firstItem*(this.state.itemSize||0),h=(0,uv.default)(p,"px",this.props.axis),w=this.props.transitionTime+"ms";return d={WebkitTransform:h,MozTransform:h,MsTransform:h,OTransform:h,transform:h,msTransform:h,WebkitTransitionDuration:w,MozTransitionDuration:w,MsTransitionDuration:w,OTransitionDuration:w,transitionDuration:w,msTransitionDuration:w},Hr.default.createElement("div",{className:hi.default.CAROUSEL(!1)},Hr.default.createElement("div",{className:hi.default.WRAPPER(!1),ref:this.setItemsWrapperRef},Hr.default.createElement("button",{type:"button",className:hi.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),s?Hr.default.createElement(oC.default,{tagName:"ul",className:hi.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:d,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):Hr.default.createElement("ul",{className:hi.default.SLIDER(!1,this.state.swiping),ref:function(v){return a.setItemsListRef(v)},style:d},this.renderItems()),Hr.default.createElement("button",{type:"button",className:hi.default.ARROW_NEXT(!c),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),r}(Hr.Component);oa.default=ef;qt(ef,"displayName","Thumbs");qt(ef,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});Xs.default=void 0;var hC=function(){return document};Xs.default=hC;var vr={};Object.defineProperty(vr,"__esModule",{value:!0});vr.setPosition=vr.getPosition=vr.isKeyboardEvent=vr.defaultStatusFormatter=vr.noop=void 0;var vC=N,mC=gC(lo);function gC(e){return e&&e.__esModule?e:{default:e}}var yC=function(){};vr.noop=yC;var wC=function(t,r){return"".concat(t," of ").concat(r)};vr.defaultStatusFormatter=wC;var bC=function(t){return t?t.hasOwnProperty("key"):!1};vr.isKeyboardEvent=bC;var SC=function(t,r){if(r.infiniteLoop&&++t,t===0)return 0;var i=vC.Children.count(r.children);if(r.centerMode&&r.axis==="horizontal"){var a=-t*r.centerSlidePercentage,s=i-1;return t&&(t!==s||r.infiniteLoop)?a+=(100-r.centerSlidePercentage)/2:t===s&&(a+=100-r.centerSlidePercentage),a}return-t*100};vr.getPosition=SC;var EC=function(t,r){var i={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){i[a]=(0,mC.default)(t,"%",r)}),i};vr.setPosition=EC;var Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.fadeAnimationHandler=Qr.slideStopSwipingHandler=Qr.slideSwipeAnimationHandler=Qr.slideAnimationHandler=void 0;var Jm=N,_C=xC(lo),en=vr;function xC(e){return e&&e.__esModule?e:{default:e}}function cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function yi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cv(Object(r),!0).forEach(function(i){OC(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cv(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function OC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var AC=function(t,r){var i={},a=r.selectedItem,s=a,l=Jm.Children.count(t.children)-1,c=t.infiniteLoop&&(a<0||a>l);if(c)return s<0?t.centerMode&&t.centerSlidePercentage&&t.axis==="horizontal"?i.itemListStyle=(0,en.setPosition)(-(l+2)*t.centerSlidePercentage-(100-t.centerSlidePercentage)/2,t.axis):i.itemListStyle=(0,en.setPosition)(-(l+2)*100,t.axis):s>l&&(i.itemListStyle=(0,en.setPosition)(0,t.axis)),i;var d=(0,en.getPosition)(a,t),p=(0,_C.default)(d,"%",t.axis),h=t.transitionTime+"ms";return i.itemListStyle={WebkitTransform:p,msTransform:p,OTransform:p,transform:p},r.swiping||(i.itemListStyle=yi(yi({},i.itemListStyle),{},{WebkitTransitionDuration:h,MozTransitionDuration:h,OTransitionDuration:h,transitionDuration:h,msTransitionDuration:h})),i};Qr.slideAnimationHandler=AC;var TC=function(t,r,i,a){var s={},l=r.axis==="horizontal",c=Jm.Children.count(r.children),d=0,p=(0,en.getPosition)(i.selectedItem,r),h=r.infiniteLoop?(0,en.getPosition)(c-1,r)-100:(0,en.getPosition)(c-1,r),w=l?t.x:t.y,S=w;p===d&&w>0&&(S=0),p===h&&w<0&&(S=0);var v=p+100/(i.itemSize/S),_=Math.abs(w)>r.swipeScrollTolerance;return r.infiniteLoop&&_&&(i.selectedItem===0&&v>-100?v-=c*100:i.selectedItem===c-1&&v<-c*100&&(v+=c*100)),(!r.preventMovementUntilSwipeScrollTolerance||_||i.swipeMovementStarted)&&(i.swipeMovementStarted||a({swipeMovementStarted:!0}),s.itemListStyle=(0,en.setPosition)(v,r.axis)),_&&!i.cancelClick&&a({cancelClick:!0}),s};Qr.slideSwipeAnimationHandler=TC;var RC=function(t,r){var i=(0,en.getPosition)(r.selectedItem,t),a=(0,en.setPosition)(i,t.axis);return{itemListStyle:a}};Qr.slideStopSwipingHandler=RC;var CC=function(t,r){var i=t.transitionTime+"ms",a="ease-in-out",s={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:a,msTransitionTimingFunction:a,MozTransitionTimingFunction:a,WebkitTransitionTimingFunction:a,OTransitionTimingFunction:a};return r.swiping||(s=yi(yi({},s),{},{WebkitTransitionDuration:i,MozTransitionDuration:i,OTransitionDuration:i,transitionDuration:i,msTransitionDuration:i})),{slideStyle:s,selectedStyle:yi(yi({},s),{},{opacity:1,position:"relative"}),prevStyle:yi({},s)}};Qr.fadeAnimationHandler=CC;Object.defineProperty(Ks,"__esModule",{value:!0});Ks.default=void 0;var Ke=MC(N),PC=sa(Jc),wn=sa(ia),IC=sa(oa),ps=sa(Xs),hs=sa(aa),$o=vr,Fs=Qr;function sa(e){return e&&e.__esModule?e:{default:e}}function Qm(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return Qm=function(){return e},e}function MC(e){if(e&&e.__esModule)return e;if(e===null||Uo(e)!=="object"&&typeof e!="function")return{default:e};var t=Qm();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function Uo(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Uo=function(r){return typeof r}:Uo=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Uo(e)}function Sc(){return Sc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Sc.apply(this,arguments)}function fv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,i)}return r}function Br(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fv(Object(r),!0).forEach(function(i){Me(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fv(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function FC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dv(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function LC(e,t,r){return t&&dv(e.prototype,t),r&&dv(e,r),e}function $C(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ec(e,t)}function Ec(e,t){return Ec=Object.setPrototypeOf||function(i,a){return i.__proto__=a,i},Ec(e,t)}function DC(e){var t=kC();return function(){var i=Ls(e),a;if(t){var s=Ls(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return NC(this,a)}}function NC(e,t){return t&&(Uo(t)==="object"||typeof t=="function")?t:Le(e)}function Le(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ls(e){return Ls=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ls(e)}function Me(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tf=function(e){$C(r,e);var t=DC(r);function r(i){var a;FC(this,r),a=t.call(this,i),Me(Le(a),"thumbsRef",void 0),Me(Le(a),"carouselWrapperRef",void 0),Me(Le(a),"listRef",void 0),Me(Le(a),"itemsRef",void 0),Me(Le(a),"timer",void 0),Me(Le(a),"animationHandler",void 0),Me(Le(a),"setThumbsRef",function(l){a.thumbsRef=l}),Me(Le(a),"setCarouselWrapperRef",function(l){a.carouselWrapperRef=l}),Me(Le(a),"setListRef",function(l){a.listRef=l}),Me(Le(a),"setItemsRef",function(l,c){a.itemsRef||(a.itemsRef=[]),a.itemsRef[c]=l}),Me(Le(a),"autoPlay",function(){Ke.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),Me(Le(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),Me(Le(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),Me(Le(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),Me(Le(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),Me(Le(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,ps.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,ps.default)().activeElement)):!1}),Me(Le(a),"navigateWithKeyboard",function(l){if(a.isFocusWithinTheCarousel()){var c=a.props.axis,d=c==="horizontal",p={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},h=d?p.ArrowRight:p.ArrowDown,w=d?p.ArrowLeft:p.ArrowUp;h===l.keyCode?a.increment():w===l.keyCode&&a.decrement()}}),Me(Le(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var l=a.props.axis==="horizontal",c=a.itemsRef[0];if(c){var d=l?c.clientWidth:c.clientHeight;a.setState({itemSize:d}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),Me(Le(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),Me(Le(a),"handleClickItem",function(l,c){if(Ke.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(l,c),l!==a.state.selectedItem&&a.setState({selectedItem:l})}}),Me(Le(a),"handleOnChange",function(l,c){Ke.Children.count(a.props.children)<=1||a.props.onChange(l,c)}),Me(Le(a),"handleClickThumb",function(l,c){a.props.onClickThumb(l,c),a.moveTo(l)}),Me(Le(a),"onSwipeStart",function(l){a.setState({swiping:!0}),a.props.onSwipeStart(l)}),Me(Le(a),"onSwipeEnd",function(l){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(l),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),Me(Le(a),"onSwipeMove",function(l,c){a.props.onSwipeMove(c);var d=a.props.swipeAnimationHandler(l,a.props,a.state,a.setState.bind(Le(a)));return a.setState(Br({},d)),!!Object.keys(d).length}),Me(Le(a),"decrement",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem-(typeof l=="number"?l:1))}),Me(Le(a),"increment",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem+(typeof l=="number"?l:1))}),Me(Le(a),"moveTo",function(l){if(typeof l=="number"){var c=Ke.Children.count(a.props.children)-1;l<0&&(l=a.props.infiniteLoop?c:0),l>c&&(l=a.props.infiniteLoop?0:c),a.selectItem({selectedItem:l}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),Me(Le(a),"onClickNext",function(){a.increment(1)}),Me(Le(a),"onClickPrev",function(){a.decrement(1)}),Me(Le(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Me(Le(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Me(Le(a),"changeItem",function(l){return function(c){(!(0,$o.isKeyboardEvent)(c)||c.key==="Enter")&&a.moveTo(l)}}),Me(Le(a),"selectItem",function(l){a.setState(Br({previousItem:a.state.selectedItem},l),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(l.selectedItem,Ke.Children.toArray(a.props.children)[l.selectedItem])}),Me(Le(a),"getInitialImage",function(){var l=a.props.selectedItem,c=a.itemsRef&&a.itemsRef[l],d=c&&c.getElementsByTagName("img")||[];return d[0]}),Me(Le(a),"getVariableItemHeight",function(l){var c=a.itemsRef&&a.itemsRef[l];if(a.state.hasMount&&c&&c.children.length){var d=c.children[0].getElementsByTagName("img")||[];if(d.length>0){var p=d[0];if(!p.complete){var h=function v(){a.forceUpdate(),p.removeEventListener("load",v)};p.addEventListener("load",h)}}var w=d[0]||c.children[0],S=w.clientHeight;return S>0?S:null}return null});var s={initialized:!1,previousItem:i.selectedItem,selectedItem:i.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:i.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof i.animationHandler=="function"&&i.animationHandler||i.animationHandler==="fade"&&Fs.fadeAnimationHandler||Fs.slideAnimationHandler,a.state=Br(Br({},s),a.animationHandler(i,s)),a}return LC(r,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,s){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),s.swiping&&!this.state.swiping&&this.setState(Br({},this.props.stopSwipingHandler(this.props,this.state))),(a.selectedItem!==this.props.selectedItem||a.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),a.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var a=this;this.bindEvents(),this.state.autoPlay&&Ke.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var s=a.getInitialImage();s&&!s.complete?s.addEventListener("load",a.setMountState):a.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.addEventListener("mouseenter",this.stopOnHover),a.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var a=this.carouselWrapperRef;this.props.stopOnHover&&a&&(a.removeEventListener("mouseenter",this.stopOnHover),a.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,hs.default)().addEventListener("resize",this.updateSizes),(0,hs.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,ps.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,hs.default)().removeEventListener("resize",this.updateSizes),(0,hs.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,ps.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var a;(a=this.carouselWrapperRef)===null||a===void 0||a.focus()}},{key:"renderItems",value:function(a){var s=this;return this.props.children?Ke.Children.map(this.props.children,function(l,c){var d=c===s.state.selectedItem,p=c===s.state.previousItem,h=d&&s.state.selectedStyle||p&&s.state.prevStyle||s.state.slideStyle||{};s.props.centerMode&&s.props.axis==="horizontal"&&(h=Br(Br({},h),{},{minWidth:s.props.centerSlidePercentage+"%"})),s.state.swiping&&s.state.swipeMovementStarted&&(h=Br(Br({},h),{},{pointerEvents:"none"}));var w={ref:function(v){return s.setItemsRef(v,c)},key:"itemKey"+c+(a?"clone":""),className:wn.default.ITEM(!0,c===s.state.selectedItem,c===s.state.previousItem),onClick:s.handleClickItem.bind(s,c,l),style:h};return Ke.default.createElement("li",w,s.props.renderItem(l,{isSelected:c===s.state.selectedItem,isPrevious:c===s.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,s=this.props,l=s.showIndicators,c=s.labels,d=s.renderIndicator,p=s.children;return l?Ke.default.createElement("ul",{className:"control-dots"},Ke.Children.map(p,function(h,w){return d&&d(a.changeItem(w),w===a.state.selectedItem,w,c.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?Ke.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,Ke.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||Ke.Children.count(this.props.children)===0?null:Ke.default.createElement(IC.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var a=this;if(!this.props.children||Ke.Children.count(this.props.children)===0)return null;var s=this.props.swipeable&&Ke.Children.count(this.props.children)>1,l=this.props.axis==="horizontal",c=this.props.showArrows&&Ke.Children.count(this.props.children)>1,d=c&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,p=c&&(this.state.selectedItem<Ke.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,h=this.renderItems(!0),w=h.shift(),S=h.pop(),v={className:wn.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},_={};if(l){if(v.onSwipeLeft=this.onSwipeForward,v.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var g=this.getVariableItemHeight(this.state.selectedItem);_.height=g||"auto"}}else v.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,v.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,v.style=Br(Br({},v.style),{},{height:this.state.itemSize}),_.height=this.state.itemSize;return Ke.default.createElement("div",{"aria-label":this.props.ariaLabel,className:wn.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},Ke.default.createElement("div",{className:wn.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,d,this.props.labels.leftArrow),Ke.default.createElement("div",{className:wn.default.WRAPPER(!0,this.props.axis),style:_},s?Ke.default.createElement(PC.default,Sc({tagName:"ul",innerRef:this.setListRef},v,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&S,this.renderItems(),this.props.infiniteLoop&&w):Ke.default.createElement("ul",{className:wn.default.SLIDER(!0,this.state.swiping),ref:function(C){return a.setListRef(C)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&S,this.renderItems(),this.props.infiniteLoop&&w)),this.props.renderArrowNext(this.onClickNext,p,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),r}(Ke.default.Component);Ks.default=tf;Me(tf,"displayName","Carousel");Me(tf,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:$o.noop,onClickThumb:$o.noop,onChange:$o.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(t,r,i){return Ke.default.createElement("button",{type:"button","aria-label":i,className:wn.default.ARROW_PREV(!r),onClick:t})},renderArrowNext:function(t,r,i){return Ke.default.createElement("button",{type:"button","aria-label":i,className:wn.default.ARROW_NEXT(!r),onClick:t})},renderIndicator:function(t,r,i,a){return Ke.default.createElement("li",{className:wn.default.DOT(r),onClick:t,onKeyDown:t,value:i,key:i,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(i+1)})},renderItem:function(t){return t},renderThumbs:function(t){var r=Ke.Children.map(t,function(i){var a=i;if(i.type!=="img"&&(a=Ke.Children.toArray(i.props.children).find(function(s){return s.type==="img"})),!!a)return a});return r.filter(function(i){return i}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):r},statusFormatter:$o.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:Fs.slideSwipeAnimationHandler,stopSwipingHandler:Fs.slideStopSwipingHandler});var jC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return i.default}});var t=a(Ks),r=jC,i=a(oa);function a(s){return s&&s.__esModule?s:{default:s}}})(Km);const WC=({tip:e})=>k.jsx("div",{className:"px-8 pb-8",children:eg(e,!0)}),UC=({pages:e})=>k.jsx("div",{className:"min-h-[10rem] w-96",children:k.jsx(Km.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>k.jsx(WC,{tip:t},t.key))})}),HC=({body:e,isInsideCarousel:t})=>k.jsx("article",{className:Dt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:k.jsx(Rs,{children:e,options:{overrides:{a:{component:({children:r,...i})=>k.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,k.jsx(Kv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),BC=({video:e,body:t,title:r,isInsideCarousel:i})=>k.jsxs("div",{className:Dt([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[k.jsx("div",{className:Dt([{"mr-1":!i,"mb-1":i}]),children:k.jsx("iframe",{height:i?"auto":90,width:i?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),k.jsx("article",{className:Dt(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:k.jsx(Rs,{children:t||"",options:{overrides:{a:{component:({children:a,...s})=>k.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,k.jsx(Kv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),eg=(e,t)=>{switch(e.type){case xs.TEXT:return k.jsx(HC,{body:e.body,isInsideCarousel:t});case xs.VIDEO:return k.jsx(BC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case xs.CAROUSEL:return k.jsx(UC,{pages:e.pages})}},tg=N.createContext(void 0);function pv(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const zC=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:a},s]=N.useState({tips:{},show:!0});N.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(d=>d.json()).then(d=>{const p=d.reduce((h,w)=>pv(d,w.key).length>1?{...h,[w.key]:{type:"carousel",pages:pv(d,w.key)}}:{...h,[w.key]:w},{});s(h=>({...h,tips:p}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{s(c=>({...c,show:!a}))};return k.jsx(tg.Provider,{value:{tips:i,toggleTips:l,show:a,enabled:t},children:e})},rg=e=>{const t=N.useContext(tg);if(t===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?t.tips[e]:null,toggleTips:t.toggleTips,show:t.show,enabled:t.enabled}},qC=Ps(BR)`
|
|
112
140
|
&[data-state='open'] > * {
|
|
113
141
|
display: block !important;
|
|
114
142
|
}
|
|
115
|
-
`,
|
|
116
|
-
`),"","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(
|
|
143
|
+
`,ZC=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:a,enabled:s}=rg(e),[l,c]=N.useState(!1),d=N.useRef(null);return N.useEffect(()=>{if(d.current){const p=new IntersectionObserver(h=>{h[0].isIntersecting||c(!1)});return p.observe(d.current),()=>{d.current&&p.unobserve(d.current)}}},[]),a&&s?k.jsxs(HR,{open:l,onOpenChange:c,children:[k.jsx(qC,{ref:d,className:Dt("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:p=>p.stopPropagation(),children:k.jsx("span",{className:Dt("group-hover:block",{hidden:!r}),children:k.jsx(lO,{className:"h-4 w-4 text-yellow-300"})})}),k.jsx(zR,{side:t,sideOffset:5,onClick:p=>p.stopPropagation(),children:k.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:eg(a)})})]}):null};var GC=Object.defineProperty,KC=(e,t,r)=>t in e?GC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ql=(e,t,r)=>(KC(e,typeof t!="symbol"?t+"":t,r),r);let YC=class{constructor(){ql(this,"current",this.detect()),ql(this,"handoffState","pending"),ql(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"}},to=new YC,on=(e,t)=>{to.isServer?N.useEffect(e,t):N.useLayoutEffect(e,t)};function ro(e){let t=N.useRef(e);return on(()=>{t.current=e},[e]),t}function VC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ua(){let e=[],t={addEventListener(r,i,a,s){return r.addEventListener(i,a,s),t.add(()=>r.removeEventListener(i,a,s))},requestAnimationFrame(...r){let i=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let i=setTimeout(...r);return t.add(()=>clearTimeout(i))},microTask(...r){let i={current:!0};return VC(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(r,i,a){let s=r.style.getPropertyValue(i);return Object.assign(r.style,{[i]:a}),this.add(()=>{Object.assign(r.style,{[i]:s})})},group(r){let i=ua();return r(i),this.add(()=>i.dispose())},add(r){return e.push(r),()=>{let i=e.indexOf(r);if(i>=0)for(let a of e.splice(i,1))a()}},dispose(){for(let r of e.splice(0))r()}};return t}function rf(){let[e]=N.useState(ua);return N.useEffect(()=>()=>e.dispose(),[e]),e}let Gt=function(e){let t=ro(e);return N.useCallback((...r)=>t.current(...r),[t])};function XC(){let e=typeof document>"u";return"useSyncExternalStore"in F?(t=>t.useSyncExternalStore)(F)(()=>()=>{},()=>!1,()=>!e):!1}function nf(){let e=XC(),[t,r]=F.useState(to.isHandoffComplete);return t&&to.isHandoffComplete===!1&&r(!1),F.useEffect(()=>{t!==!0&&r(!0)},[t]),F.useEffect(()=>to.handoff(),[]),e?!1:t}var hv;let of=(hv=N.useId)!=null?hv:function(){let e=nf(),[t,r]=N.useState(e?()=>to.nextId():null);return on(()=>{t===null&&r(to.nextId())},[t]),t!=null?""+t:void 0};function tn(e,t,...r){if(e in t){let a=t[e];return typeof a=="function"?a(...r):a}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,tn),i}function vv(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function JC(e,t){let[r,i]=N.useState(()=>vv(e));return on(()=>{i(vv(e))},[e.type,e.as]),on(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let QC=Symbol();function la(...e){let t=N.useRef(e);N.useEffect(()=>{t.current=e},[e]);let r=Gt(i=>{for(let a of t.current)a!=null&&(typeof a=="function"?a(i):a.current=i)});return e.every(i=>i==null||(i==null?void 0:i[QC]))?void 0:r}function $s(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var ng=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ng||{}),Bn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Bn||{});function Ri({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:a,visible:s=!0,name:l}){let c=ig(t,e);if(s)return vs(c,r,i,l);let d=a??0;if(d&2){let{static:p=!1,...h}=c;if(p)return vs(h,r,i,l)}if(d&1){let{unmount:p=!0,...h}=c;return tn(p?0:1,{0(){return null},1(){return vs({...h,hidden:!0,style:{display:"none"}},r,i,l)}})}return vs(c,r,i,l)}function vs(e,t={},r,i){let{as:a=r,children:s,refName:l="ref",...c}=Zl(e,["unmount","static"]),d=e.ref!==void 0?{[l]:e.ref}:{},p=typeof s=="function"?s(t):s;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t));let h={};if(t){let w=!1,S=[];for(let[v,_]of Object.entries(t))typeof _=="boolean"&&(w=!0),_===!0&&S.push(v);w&&(h["data-headlessui-state"]=S.join(" "))}if(a===N.Fragment&&Object.keys(_c(c)).length>0){if(!N.isValidElement(p)||Array.isArray(p)&&p.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(_=>` - ${_}`).join(`
|
|
144
|
+
`),"","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(`
|
|
117
145
|
`)].join(`
|
|
118
|
-
`));let v=h.props,w=typeof(v==null?void 0:v.className)=="function"?(...g)=>Ps(v==null?void 0:v.className(...g),d.className):Ps(v==null?void 0:v.className,d.className),x=w?{className:w}:{};return k.cloneElement(h,Object.assign({},Ym(h.props,xc(ql(d,["ref"]))),b,p,{ref:a(h.ref,p.ref)},x))}return k.createElement(s,Object.assign({},ql(d,["ref"]),s!==k.Fragment&&p,s!==k.Fragment&&b),h)}function HR(...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 Ym(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let a in i)a.startsWith("on")&&typeof i[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(i[a])):t[a]=i[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](a,...s){let l=r[i];for(let c of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;c(a,...s)}}});return t}function vi(e){var t;return Object.assign(k.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function xc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function ql(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let ZR="div";var Vm=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Vm||{});function qR(e,t){var r;let{features:i=1,...a}=e,s={ref:t,"aria-hidden":(i&2)===2?!0:(r=a["aria-hidden"])!=null?r:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return hi({ourProps:s,theirProps:a,slot:{},defaultTag:ZR,name:"Hidden"})}let GR=vi(qR),rf=k.createContext(null);rf.displayName="OpenClosedContext";var dn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(dn||{});function Xm(){return k.useContext(rf)}function KR({value:e,children:t}){return k.createElement(rf.Provider,{value:e},t)}function YR(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let i=(t==null?void 0:t.getAttribute("disabled"))==="";return i&&VR(r)?!1:i}function VR(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function XR(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let a of i.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(r=i.requestSubmit)==null||r.call(i)}}var _c=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(_c||{});function nf(){let e=k.useRef(!1);return Yr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let Jm=k.createContext(null);function Qm(){let e=k.useContext(Jm);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Qm),t}return e}function JR(){let[e,t]=k.useState([]);return[e.length>0?e.join(" "):void 0,k.useMemo(()=>function(r){let i=Nt(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),d=c.indexOf(s);return d!==-1&&c.splice(d,1),c}))),a=k.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return k.createElement(Jm.Provider,{value:a},r.children)},[t])]}let QR="p";function eP(e,t){let r=tf(),{id:i=`headlessui-description-${r}`,...a}=e,s=Qm(),l=Xo(t);Yr(()=>s.register(i),[i,s.register]);let c={ref:l,...s.props,id:i};return hi({ourProps:c,theirProps:a,slot:s.slot||{},defaultTag:QR,name:s.name||"Description"})}let tP=vi(eP),rP=Object.assign(tP,{}),eg=k.createContext(null);function tg(){let e=k.useContext(eg);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,tg),t}return e}function nP(){let[e,t]=k.useState([]);return[e.length>0?e.join(" "):void 0,k.useMemo(()=>function(r){let i=Nt(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),d=c.indexOf(s);return d!==-1&&c.splice(d,1),c}))),a=k.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return k.createElement(eg.Provider,{value:a},r.children)},[t])]}let iP="label";function oP(e,t){let r=tf(),{id:i=`headlessui-label-${r}`,passive:a=!1,...s}=e,l=tg(),c=Xo(t);Yr(()=>l.register(i),[i,l.register]);let d={ref:c,...l.props,id:i};return a&&("onClick"in d&&(delete d.htmlFor,delete d.onClick),"onClick"in s&&delete s.onClick),hi({ourProps:d,theirProps:s,slot:l.slot||{},defaultTag:iP,name:l.name||"Label"})}let aP=vi(oP),sP=Object.assign(aP,{});function uP(e=0){let[t,r]=k.useState(e),i=nf(),a=k.useCallback(d=>{i.current&&r(p=>p|d)},[t,i]),s=k.useCallback(d=>!!(t&d),[t]),l=k.useCallback(d=>{i.current&&r(p=>p&~d)},[r,i]),c=k.useCallback(d=>{i.current&&r(p=>p^d)},[r]);return{flags:t,addFlag:a,hasFlag:s,removeFlag:l,toggleFlag:c}}let of=k.createContext(null);of.displayName="GroupContext";let lP=k.Fragment;function cP(e){var t;let[r,i]=k.useState(null),[a,s]=nP(),[l,c]=JR(),d=k.useMemo(()=>({switch:r,setSwitch:i,labelledby:a,describedby:l}),[r,i,a,l]),p={},h=e;return k.createElement(c,{name:"Switch.Description"},k.createElement(s,{name:"Switch.Label",props:{htmlFor:(t=d.switch)==null?void 0:t.id,onClick(b){r&&(b.currentTarget.tagName==="LABEL"&&b.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},k.createElement(of.Provider,{value:d},hi({ourProps:p,theirProps:h,defaultTag:lP,name:"Switch.Group"}))))}let fP="button";function dP(e,t){var r;let i=tf(),{id:a=`headlessui-switch-${i}`,checked:s,defaultChecked:l=!1,onChange:c,disabled:d=!1,name:p,value:h,form:b,...v}=e,w=k.useContext(of),x=k.useRef(null),g=Xo(x,t,w===null?null:w.setSwitch),[E,I]=jR(s,c,l),P=Nt(()=>I==null?void 0:I(!E)),R=Nt(G=>{if(YR(G.currentTarget))return G.preventDefault();G.preventDefault(),P()}),F=Nt(G=>{G.key===_c.Space?(G.preventDefault(),P()):G.key===_c.Enter&&XR(G.currentTarget)}),O=Nt(G=>G.preventDefault()),D=k.useMemo(()=>({checked:E}),[E]),U={id:a,ref:g,role:"switch",type:zR(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":E,"aria-labelledby":w==null?void 0:w.labelledby,"aria-describedby":w==null?void 0:w.describedby,disabled:d,onClick:R,onKeyUp:F,onKeyPress:O},j=Qc();return k.useEffect(()=>{var G;let J=(G=x.current)==null?void 0:G.closest("form");J&&l!==void 0&&j.addEventListener(J,"reset",()=>{I(l)})},[x,I]),k.createElement(k.Fragment,null,p!=null&&E&&k.createElement(GR,{features:Vm.Hidden,...xc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:d,form:b,checked:E,name:p,value:h})}),hi({ourProps:U,theirProps:v,slot:D,defaultTag:fP,name:"Switch"}))}let pP=vi(dP),hP=cP,vP=Object.assign(pP,{Group:hP,Label:sP,Description:rP});function mP(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Gl(e,...t){e&&t.length>0&&e.classList.add(...t)}function Kl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function gP(e,t){let r=Vo();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:a}=getComputedStyle(e),[s,l]=[i,a].map(d=>{let[p=0]=d.split(",").filter(Boolean).map(h=>h.includes("ms")?parseFloat(h):parseFloat(h)*1e3).sort((h,b)=>b-h);return p}),c=s+l;if(c!==0){r.group(p=>{p.setTimeout(()=>{t(),p.dispose()},c),p.addEventListener(e,"transitionrun",h=>{h.target===h.currentTarget&&p.dispose()})});let d=r.addEventListener(e,"transitionend",p=>{p.target===p.currentTarget&&(t(),d())})}else t();return r.add(()=>t()),r.dispose}function yP(e,t,r,i){let a=r?"enter":"leave",s=Vo(),l=i!==void 0?mP(i):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=qr(a,{enter:()=>t.enter,leave:()=>t.leave}),d=qr(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),p=qr(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Kl(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Gl(e,...t.base,...c,...p),s.nextFrame(()=>{Kl(e,...t.base,...c,...p),Gl(e,...t.base,...c,...d),gP(e,()=>(Kl(e,...t.base,...c),Gl(e,...t.base,...t.entered),l()))}),s.dispose}function wP({immediate:e,container:t,direction:r,classes:i,onStart:a,onStop:s}){let l=nf(),c=Qc(),d=zi(r);Yr(()=>{e&&(d.current="enter")},[e]),Yr(()=>{let p=Vo();c.add(p.dispose);let h=t.current;if(h&&d.current!=="idle"&&l.current)return p.dispose(),a.current(d.current),p.add(yP(h,i.current,d.current==="enter",()=>{p.dispose(),s.current(d.current)})),p.dispose},[r])}function In(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let qs=k.createContext(null);qs.displayName="TransitionContext";var bP=(e=>(e.Visible="visible",e.Hidden="hidden",e))(bP||{});function SP(){let e=k.useContext(qs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function EP(){let e=k.useContext(Gs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Gs=k.createContext(null);Gs.displayName="NestingContext";function Ks(e){return"children"in e?Ks(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function rg(e,t){let r=zi(e),i=k.useRef([]),a=nf(),s=Qc(),l=Nt((w,x=Fn.Hidden)=>{let g=i.current.findIndex(({el:E})=>E===w);g!==-1&&(qr(x,{[Fn.Unmount](){i.current.splice(g,1)},[Fn.Hidden](){i.current[g].state="hidden"}}),s.microTask(()=>{var E;!Ks(i)&&a.current&&((E=r.current)==null||E.call(r))}))}),c=Nt(w=>{let x=i.current.find(({el:g})=>g===w);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:w,state:"visible"}),()=>l(w,Fn.Unmount)}),d=k.useRef([]),p=k.useRef(Promise.resolve()),h=k.useRef({enter:[],leave:[],idle:[]}),b=Nt((w,x,g)=>{d.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([E])=>E!==w)),t==null||t.chains.current[x].push([w,new Promise(E=>{d.current.push(E)})]),t==null||t.chains.current[x].push([w,new Promise(E=>{Promise.all(h.current[x].map(([I,P])=>P)).then(()=>E())})]),x==="enter"?p.current=p.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(x)):g(x)}),v=Nt((w,x,g)=>{Promise.all(h.current[x].splice(0).map(([E,I])=>I)).then(()=>{var E;(E=d.current.shift())==null||E()}).then(()=>g(x))});return k.useMemo(()=>({children:i,register:c,unregister:l,onStart:b,onStop:v,wait:p,chains:h}),[c,l,i,b,v,h,p])}function xP(){}let _P=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function fv(e){var t;let r={};for(let i of _P)r[i]=(t=e[i])!=null?t:xP;return r}function OP(e){let t=k.useRef(fv(e));return k.useEffect(()=>{t.current=fv(e)},[e]),t}let AP="div",ng=Km.RenderStrategy;function TP(e,t){var r,i;let{beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c,enter:d,enterFrom:p,enterTo:h,entered:b,leave:v,leaveFrom:w,leaveTo:x,...g}=e,E=k.useRef(null),I=Xo(E,t),P=(r=g.unmount)==null||r?Fn.Unmount:Fn.Hidden,{show:R,appear:F,initial:O}=SP(),[D,U]=k.useState(R?"visible":"hidden"),j=EP(),{register:G,unregister:J}=j;k.useEffect(()=>G(E),[G,E]),k.useEffect(()=>{if(P===Fn.Hidden&&E.current){if(R&&D!=="visible"){U("visible");return}return qr(D,{hidden:()=>J(E),visible:()=>G(E)})}},[D,E,G,J,R,P]);let ie=zi({base:In(g.className),enter:In(d),enterFrom:In(p),enterTo:In(h),entered:In(b),leave:In(v),leaveFrom:In(w),leaveTo:In(x)}),xe=OP({beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c}),me=ef();k.useEffect(()=>{if(me&&D==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,D,me]);let ve=O&&!F,$e=F&&R&&O,ye=!me||ve?"idle":R?"enter":"leave",_e=uP(0),qe=Nt(te=>qr(te,{enter:()=>{_e.addFlag(dn.Opening),xe.current.beforeEnter()},leave:()=>{_e.addFlag(dn.Closing),xe.current.beforeLeave()},idle:()=>{}})),St=Nt(te=>qr(te,{enter:()=>{_e.removeFlag(dn.Opening),xe.current.afterEnter()},leave:()=>{_e.removeFlag(dn.Closing),xe.current.afterLeave()},idle:()=>{}})),H=rg(()=>{U("hidden"),J(E)},j),K=k.useRef(!1);wP({immediate:$e,container:E,classes:ie,direction:ye,onStart:zi(te=>{K.current=!0,H.onStart(E,te,qe)}),onStop:zi(te=>{K.current=!1,H.onStop(E,te,St),te==="leave"&&!Ks(H)&&(U("hidden"),J(E))})});let oe=g,de={ref:I};return $e?oe={...oe,className:Ps(g.className,...ie.current.enter,...ie.current.enterFrom)}:K.current&&(oe.className=Ps(g.className,(i=E.current)==null?void 0:i.className),oe.className===""&&delete oe.className),k.createElement(Gs.Provider,{value:H},k.createElement(KR,{value:qr(D,{visible:dn.Open,hidden:dn.Closed})|_e.flags},hi({ourProps:de,theirProps:oe,defaultTag:AP,features:ng,visible:D==="visible",name:"Transition.Child"})))}function CP(e,t){let{show:r,appear:i=!1,unmount:a=!0,...s}=e,l=k.useRef(null),c=Xo(l,t);ef();let d=Xm();if(r===void 0&&d!==null&&(r=(d&dn.Open)===dn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,h]=k.useState(r?"visible":"hidden"),b=rg(()=>{h("hidden")}),[v,w]=k.useState(!0),x=k.useRef([r]);Yr(()=>{v!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),w(!1))},[x,r]);let g=k.useMemo(()=>({show:r,appear:i,initial:v}),[r,i,v]);k.useEffect(()=>{if(r)h("visible");else if(!Ks(b))h("hidden");else{let R=l.current;if(!R)return;let F=R.getBoundingClientRect();F.x===0&&F.y===0&&F.width===0&&F.height===0&&h("hidden")}},[r,b]);let E={unmount:a},I=Nt(()=>{var R;v&&w(!1),(R=e.beforeEnter)==null||R.call(e)}),P=Nt(()=>{var R;v&&w(!1),(R=e.beforeLeave)==null||R.call(e)});return k.createElement(Gs.Provider,{value:b},k.createElement(qs.Provider,{value:g},hi({ourProps:{...E,as:k.Fragment,children:k.createElement(ig,{ref:c,...E,...s,beforeEnter:I,beforeLeave:P})},theirProps:{},defaultTag:k.Fragment,features:ng,visible:p==="visible",name:"Transition"})))}function RP(e,t){let r=k.useContext(qs)!==null,i=Xm()!==null;return k.createElement(k.Fragment,null,!r&&i?k.createElement(Oc,{ref:t,...e}):k.createElement(ig,{ref:t,...e}))}let Oc=vi(CP),ig=vi(TP),PP=vi(RP),Is=Object.assign(Oc,{Child:PP,Root:Oc});const Yl={xs:{switch:"h-2.5 w-2.5",translate:"translate-x-2.5",container:"w-6 h-3.5"},sm:{switch:"h-3.5 w-3.5",translate:"translate-x-[0.85rem]",container:"h-4.5 w-8"},md:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"},lg:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"}},og=k.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto"},a)=>{const s=l=>{e(l)};return $.jsx("div",{className:Pt("flex items-center",i),children:$.jsx(vP,{ref:a,checked:t,onChange:s,onKeyDown:l=>{l.key==="Enter"&&s(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
|
|
119
|
-
relative inline-flex shrink-0 ${Yl[r].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children
|
|
120
|
-
pointer-events-none inline-block ${Yl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),
|
|
146
|
+
`));let w=p.props,S=typeof(w==null?void 0:w.className)=="function"?(..._)=>$s(w==null?void 0:w.className(..._),c.className):$s(w==null?void 0:w.className,c.className),v=S?{className:S}:{};return N.cloneElement(p,Object.assign({},ig(p.props,_c(Zl(c,["ref"]))),h,d,eP(p.ref,d.ref),v))}return N.createElement(a,Object.assign({},Zl(c,["ref"]),a!==N.Fragment&&d,a!==N.Fragment&&h),p)}function eP(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}}function ig(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let a in i)a.startsWith("on")&&typeof i[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(i[a])):t[a]=i[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](a,...s){let l=r[i];for(let c of l){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;c(a,...s)}}});return t}function Ci(e){var t;return Object.assign(N.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function _c(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Zl(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}function tP(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let i=(t==null?void 0:t.getAttribute("disabled"))==="";return i&&rP(r)?!1:i}function rP(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function nP(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let a of i.elements)if(a!==e&&(a.tagName==="INPUT"&&a.type==="submit"||a.tagName==="BUTTON"&&a.type==="submit"||a.nodeName==="INPUT"&&a.type==="image")){a.click();return}(r=i.requestSubmit)==null||r.call(i)}}let iP="div";var og=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(og||{});function oP(e,t){let{features:r=1,...i}=e,a={ref:t,"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Ri({ourProps:a,theirProps:i,slot:{},defaultTag:iP,name:"Hidden"})}let aP=Ci(oP),af=N.createContext(null);af.displayName="OpenClosedContext";var bn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(bn||{});function ag(){return N.useContext(af)}function sP({value:e,children:t}){return N.createElement(af.Provider,{value:e},t)}var xc=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(xc||{});function uP(e,t,r){let[i,a]=N.useState(r),s=e!==void 0,l=N.useRef(s),c=N.useRef(!1),d=N.useRef(!1);return s&&!l.current&&!c.current?(c.current=!0,l.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!s&&l.current&&!d.current&&(d.current=!0,l.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[s?e:i,Gt(p=>(s||a(p),t==null?void 0:t(p)))]}function sf(){let e=N.useRef(!1);return on(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let sg=N.createContext(null);function ug(){let e=N.useContext(sg);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,ug),t}return e}function lP(){let[e,t]=N.useState([]);return[e.length>0?e.join(" "):void 0,N.useMemo(()=>function(r){let i=Gt(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),d=c.indexOf(s);return d!==-1&&c.splice(d,1),c}))),a=N.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return N.createElement(sg.Provider,{value:a},r.children)},[t])]}let cP="p";function fP(e,t){let r=of(),{id:i=`headlessui-description-${r}`,...a}=e,s=ug(),l=la(t);on(()=>s.register(i),[i,s.register]);let c={ref:l,...s.props,id:i};return Ri({ourProps:c,theirProps:a,slot:s.slot||{},defaultTag:cP,name:s.name||"Description"})}let dP=Ci(fP),pP=Object.assign(dP,{});function hP(e=0){let[t,r]=N.useState(e),i=sf(),a=N.useCallback(d=>{i.current&&r(p=>p|d)},[t,i]),s=N.useCallback(d=>!!(t&d),[t]),l=N.useCallback(d=>{i.current&&r(p=>p&~d)},[r,i]),c=N.useCallback(d=>{i.current&&r(p=>p^d)},[r]);return{flags:t,addFlag:a,hasFlag:s,removeFlag:l,toggleFlag:c}}let lg=N.createContext(null);function cg(){let e=N.useContext(lg);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,cg),t}return e}function vP(){let[e,t]=N.useState([]);return[e.length>0?e.join(" "):void 0,N.useMemo(()=>function(r){let i=Gt(s=>(t(l=>[...l,s]),()=>t(l=>{let c=l.slice(),d=c.indexOf(s);return d!==-1&&c.splice(d,1),c}))),a=N.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return N.createElement(lg.Provider,{value:a},r.children)},[t])]}let mP="label";function gP(e,t){let r=of(),{id:i=`headlessui-label-${r}`,passive:a=!1,...s}=e,l=cg(),c=la(t);on(()=>l.register(i),[i,l.register]);let d={ref:c,...l.props,id:i};return a&&("onClick"in d&&(delete d.htmlFor,delete d.onClick),"onClick"in s&&delete s.onClick),Ri({ourProps:d,theirProps:s,slot:l.slot||{},defaultTag:mP,name:l.name||"Label"})}let yP=Ci(gP),wP=Object.assign(yP,{}),uf=N.createContext(null);uf.displayName="GroupContext";let bP=N.Fragment;function SP(e){var t;let[r,i]=N.useState(null),[a,s]=vP(),[l,c]=lP(),d=N.useMemo(()=>({switch:r,setSwitch:i,labelledby:a,describedby:l}),[r,i,a,l]),p={},h=e;return N.createElement(c,{name:"Switch.Description"},N.createElement(s,{name:"Switch.Label",props:{htmlFor:(t=d.switch)==null?void 0:t.id,onClick(w){r&&(w.currentTarget.tagName==="LABEL"&&w.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},N.createElement(uf.Provider,{value:d},Ri({ourProps:p,theirProps:h,defaultTag:bP,name:"Switch.Group"}))))}let EP="button";function _P(e,t){let r=of(),{id:i=`headlessui-switch-${r}`,checked:a,defaultChecked:s=!1,onChange:l,name:c,value:d,form:p,...h}=e,w=N.useContext(uf),S=N.useRef(null),v=la(S,t,w===null?null:w.setSwitch),[_,g]=uP(a,l,s),x=Gt(()=>g==null?void 0:g(!_)),C=Gt(H=>{if(tP(H.currentTarget))return H.preventDefault();H.preventDefault(),x()}),P=Gt(H=>{H.key===xc.Space?(H.preventDefault(),x()):H.key===xc.Enter&&nP(H.currentTarget)}),T=Gt(H=>H.preventDefault()),$=N.useMemo(()=>({checked:_}),[_]),A={id:i,ref:v,role:"switch",type:JC(e,S),tabIndex:0,"aria-checked":_,"aria-labelledby":w==null?void 0:w.labelledby,"aria-describedby":w==null?void 0:w.describedby,onClick:C,onKeyUp:P,onKeyPress:T},D=rf();return N.useEffect(()=>{var H;let j=(H=S.current)==null?void 0:H.closest("form");j&&s!==void 0&&D.addEventListener(j,"reset",()=>{g(s)})},[S,g]),N.createElement(N.Fragment,null,c!=null&&_&&N.createElement(aP,{features:og.Hidden,..._c({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:p,checked:_,name:c,value:d})}),Ri({ourProps:A,theirProps:h,slot:$,defaultTag:EP,name:"Switch"}))}let xP=Ci(_P),OP=SP,AP=Object.assign(xP,{Group:OP,Label:wP,Description:pP});function TP(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Gl(e,...t){e&&t.length>0&&e.classList.add(...t)}function Kl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function RP(e,t){let r=ua();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:a}=getComputedStyle(e),[s,l]=[i,a].map(d=>{let[p=0]=d.split(",").filter(Boolean).map(h=>h.includes("ms")?parseFloat(h):parseFloat(h)*1e3).sort((h,w)=>w-h);return p}),c=s+l;if(c!==0){r.group(p=>{p.setTimeout(()=>{t(),p.dispose()},c),p.addEventListener(e,"transitionrun",h=>{h.target===h.currentTarget&&p.dispose()})});let d=r.addEventListener(e,"transitionend",p=>{p.target===p.currentTarget&&(t(),d())})}else t();return r.add(()=>t()),r.dispose}function CP(e,t,r,i){let a=r?"enter":"leave",s=ua(),l=i!==void 0?TP(i):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=tn(a,{enter:()=>t.enter,leave:()=>t.leave}),d=tn(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),p=tn(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Kl(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Gl(e,...t.base,...c,...p),s.nextFrame(()=>{Kl(e,...t.base,...c,...p),Gl(e,...t.base,...c,...d),RP(e,()=>(Kl(e,...t.base,...c),Gl(e,...t.base,...t.entered),l()))}),s.dispose}function PP({immediate:e,container:t,direction:r,classes:i,onStart:a,onStop:s}){let l=sf(),c=rf(),d=ro(r);on(()=>{e&&(d.current="enter")},[e]),on(()=>{let p=ua();c.add(p.dispose);let h=t.current;if(h&&d.current!=="idle"&&l.current)return p.dispose(),a.current(d.current),p.add(CP(h,i.current,d.current==="enter",()=>{p.dispose(),s.current(d.current)})),p.dispose},[r])}function jn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Js=N.createContext(null);Js.displayName="TransitionContext";var IP=(e=>(e.Visible="visible",e.Hidden="hidden",e))(IP||{});function MP(){let e=N.useContext(Js);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function FP(){let e=N.useContext(Qs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Qs=N.createContext(null);Qs.displayName="NestingContext";function eu(e){return"children"in e?eu(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function fg(e,t){let r=ro(e),i=N.useRef([]),a=sf(),s=rf(),l=Gt((v,_=Bn.Hidden)=>{let g=i.current.findIndex(({el:x})=>x===v);g!==-1&&(tn(_,{[Bn.Unmount](){i.current.splice(g,1)},[Bn.Hidden](){i.current[g].state="hidden"}}),s.microTask(()=>{var x;!eu(i)&&a.current&&((x=r.current)==null||x.call(r))}))}),c=Gt(v=>{let _=i.current.find(({el:g})=>g===v);return _?_.state!=="visible"&&(_.state="visible"):i.current.push({el:v,state:"visible"}),()=>l(v,Bn.Unmount)}),d=N.useRef([]),p=N.useRef(Promise.resolve()),h=N.useRef({enter:[],leave:[],idle:[]}),w=Gt((v,_,g)=>{d.current.splice(0),t&&(t.chains.current[_]=t.chains.current[_].filter(([x])=>x!==v)),t==null||t.chains.current[_].push([v,new Promise(x=>{d.current.push(x)})]),t==null||t.chains.current[_].push([v,new Promise(x=>{Promise.all(h.current[_].map(([C,P])=>P)).then(()=>x())})]),_==="enter"?p.current=p.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(_)):g(_)}),S=Gt((v,_,g)=>{Promise.all(h.current[_].splice(0).map(([x,C])=>C)).then(()=>{var x;(x=d.current.shift())==null||x()}).then(()=>g(_))});return N.useMemo(()=>({children:i,register:c,unregister:l,onStart:w,onStop:S,wait:p,chains:h}),[c,l,i,w,S,h,p])}function LP(){}let $P=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function mv(e){var t;let r={};for(let i of $P)r[i]=(t=e[i])!=null?t:LP;return r}function DP(e){let t=N.useRef(mv(e));return N.useEffect(()=>{t.current=mv(e)},[e]),t}let NP="div",dg=ng.RenderStrategy;function kP(e,t){var r,i;let{beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c,enter:d,enterFrom:p,enterTo:h,entered:w,leave:S,leaveFrom:v,leaveTo:_,...g}=e,x=N.useRef(null),C=la(x,t),P=(r=g.unmount)==null||r?Bn.Unmount:Bn.Hidden,{show:T,appear:$,initial:A}=MP(),[D,H]=N.useState(T?"visible":"hidden"),j=FP(),{register:V,unregister:ee}=j;N.useEffect(()=>V(x),[V,x]),N.useEffect(()=>{if(P===Bn.Hidden&&x.current){if(T&&D!=="visible"){H("visible");return}return tn(D,{hidden:()=>ee(x),visible:()=>V(x)})}},[D,x,V,ee,T,P]);let ye=ro({base:jn(g.className),enter:jn(d),enterFrom:jn(p),enterTo:jn(h),entered:jn(w),leave:jn(S),leaveFrom:jn(v),leaveTo:jn(_)}),Re=DP({beforeEnter:a,afterEnter:s,beforeLeave:l,afterLeave:c}),Ee=nf();N.useEffect(()=>{if(Ee&&D==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,D,Ee]);let se=A&&!$,Fe=$&&T&&A,be=(()=>!Ee||se?"idle":T?"enter":"leave")(),Oe=hP(0),Be=Gt(oe=>tn(oe,{enter:()=>{Oe.addFlag(bn.Opening),Re.current.beforeEnter()},leave:()=>{Oe.addFlag(bn.Closing),Re.current.beforeLeave()},idle:()=>{}})),pt=Gt(oe=>tn(oe,{enter:()=>{Oe.removeFlag(bn.Opening),Re.current.afterEnter()},leave:()=>{Oe.removeFlag(bn.Closing),Re.current.afterLeave()},idle:()=>{}})),Z=fg(()=>{H("hidden"),ee(x)},j);PP({immediate:Fe,container:x,classes:ye,direction:be,onStart:ro(oe=>{Z.onStart(x,oe,Be)}),onStop:ro(oe=>{Z.onStop(x,oe,pt),oe==="leave"&&!eu(Z)&&(H("hidden"),ee(x))})});let Y=g,pe={ref:C};return Fe?Y={...Y,className:$s(g.className,...ye.current.enter,...ye.current.enterFrom)}:(Y.className=$s(g.className,(i=x.current)==null?void 0:i.className),Y.className===""&&delete Y.className),N.createElement(Qs.Provider,{value:Z},N.createElement(sP,{value:tn(D,{visible:bn.Open,hidden:bn.Closed})|Oe.flags},Ri({ourProps:pe,theirProps:Y,defaultTag:NP,features:dg,visible:D==="visible",name:"Transition.Child"})))}function jP(e,t){let{show:r,appear:i=!1,unmount:a=!0,...s}=e,l=N.useRef(null),c=la(l,t);nf();let d=ag();if(r===void 0&&d!==null&&(r=(d&bn.Open)===bn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,h]=N.useState(r?"visible":"hidden"),w=fg(()=>{h("hidden")}),[S,v]=N.useState(!0),_=N.useRef([r]);on(()=>{S!==!1&&_.current[_.current.length-1]!==r&&(_.current.push(r),v(!1))},[_,r]);let g=N.useMemo(()=>({show:r,appear:i,initial:S}),[r,i,S]);N.useEffect(()=>{if(r)h("visible");else if(!eu(w))h("hidden");else{let T=l.current;if(!T)return;let $=T.getBoundingClientRect();$.x===0&&$.y===0&&$.width===0&&$.height===0&&h("hidden")}},[r,w]);let x={unmount:a},C=Gt(()=>{var T;S&&v(!1),(T=e.beforeEnter)==null||T.call(e)}),P=Gt(()=>{var T;S&&v(!1),(T=e.beforeLeave)==null||T.call(e)});return N.createElement(Qs.Provider,{value:w},N.createElement(Js.Provider,{value:g},Ri({ourProps:{...x,as:N.Fragment,children:N.createElement(pg,{ref:c,...x,...s,beforeEnter:C,beforeLeave:P})},theirProps:{},defaultTag:N.Fragment,features:dg,visible:p==="visible",name:"Transition"})))}function WP(e,t){let r=N.useContext(Js)!==null,i=ag()!==null;return N.createElement(N.Fragment,null,!r&&i?N.createElement(Oc,{ref:t,...e}):N.createElement(pg,{ref:t,...e}))}let Oc=Ci(jP),pg=Ci(kP),UP=Ci(WP),Ds=Object.assign(Oc,{Child:UP,Root:Oc});const Yl={xs:{switch:"h-2.5 w-2.5",translate:"translate-x-2.5",container:"w-6 h-3.5"},sm:{switch:"h-3.5 w-3.5",translate:"translate-x-[0.85rem]",container:"h-4.5 w-8"},md:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"},lg:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"}},hg=N.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto"},a)=>{const s=l=>{e(l)};return k.jsx("div",{className:Dt("flex items-center",i),children:k.jsx(AP,{ref:a,checked:t,onChange:s,onKeyDown:l=>{l.key==="Enter"&&s(!t)},className:`${t?"bg-primary-dark":"bg-grey-200"}
|
|
147
|
+
relative inline-flex shrink-0 ${Yl[r].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:k.jsx("span",{"aria-hidden":"true",className:`${t?Yl[r].translate:"translate-x-0"}
|
|
148
|
+
pointer-events-none inline-block ${Yl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),HP=({children:e,label:t,placement:r="top",className:i})=>{const[a,s]=N.useState(null),[l,c]=N.useState(null),[d,p]=N.useState(!1),{styles:h,attributes:w}=zv(a,l,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),S=N.Children.map(e,v=>N.isValidElement(v)?N.cloneElement(v,{ref:s,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1)}):v);return k.jsxs(k.Fragment,{children:[S,d&&Qo.createPortal(k.jsx("div",{ref:c,style:h.popper,...w.popper,className:Dt("z-10 select-none rounded bg-gray-50 px-2 py-1 text-xs text-gray-800",i),children:t}),document.querySelector("body"))]})},BP=ac.keyframes`
|
|
121
149
|
to {
|
|
122
150
|
fill: url(#d);
|
|
123
151
|
stroke-dashoffset: 0;
|
|
124
152
|
}
|
|
125
|
-
`,
|
|
153
|
+
`,vg=Ps.svg`
|
|
126
154
|
& .e {
|
|
127
155
|
fill: url(#d);
|
|
128
156
|
}
|
|
@@ -133,7 +161,7 @@ pointer-events-none inline-block ${Yl[r].switch} transform rounded-full bg-white
|
|
|
133
161
|
fill: transparent;
|
|
134
162
|
stroke-dasharray: 700;
|
|
135
163
|
stroke-dashoffset: 700;
|
|
136
|
-
animation: ${
|
|
164
|
+
animation: ${BP} 1.5s ease-in-out infinite alternate-reverse;
|
|
137
165
|
}
|
|
138
166
|
|
|
139
167
|
& #circle {
|
|
@@ -143,37 +171,37 @@ pointer-events-none inline-block ${Yl[r].switch} transform rounded-full bg-white
|
|
|
143
171
|
stroke-dasharray: 700;
|
|
144
172
|
stroke-dashoffset: 700;
|
|
145
173
|
}
|
|
146
|
-
`,
|
|
174
|
+
`,zP=({message:e,version:t})=>k.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:k.jsxs("div",{className:"flex flex-col text-center",children:[k.jsx("div",{className:"relative mr-4 self-center",children:k.jsx("div",{className:"flex items-center justify-center rounded",children:k.jsxs(vg,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[k.jsx("defs",{children:k.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[k.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:k.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),k.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:k.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),k.jsx("g",{id:"a"}),k.jsx("g",{id:"b",children:k.jsx("g",{id:"c",children:k.jsxs("g",{children:[k.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),k.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),k.jsxs("div",{children:[k.jsx("span",{className:"text-xs text-grey-200",children:t}),k.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var Ns={exports:{}};/**
|
|
147
175
|
* @license
|
|
148
176
|
* Lodash <https://lodash.com/>
|
|
149
177
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
150
178
|
* Released under MIT license <https://lodash.com/license>
|
|
151
179
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
152
180
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
153
|
-
*/Ms.exports;(function(e,t){(function(){var r,i="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",b=1,v=2,w=4,x=1,g=2,E=1,I=2,P=4,R=8,F=16,O=32,D=64,U=128,j=256,G=512,J=30,ie="...",xe=800,me=16,ve=1,$e=2,ye=3,_e=1/0,qe=9007199254740991,St=17976931348623157e292,H=NaN,K=4294967295,oe=K-1,de=K>>>1,te=[["ary",U],["bind",E],["bindKey",I],["curry",R],["curryRight",F],["flip",G],["partial",O],["partialRight",D],["rearg",j]],le="[object Arguments]",ae="[object Array]",he="[object AsyncFunction]",se="[object Boolean]",we="[object Date]",Se="[object DOMException]",Ye="[object Error]",V="[object Function]",ht="[object GeneratorFunction]",ct="[object Map]",Wt="[object Number]",Un="[object Null]",Ut="[object Object]",Jr="[object Promise]",Yi="[object Proxy]",vt="[object RegExp]",ft="[object Set]",Fr="[object String]",Dr="[object Symbol]",mn="[object Undefined]",lr="[object WeakMap]",yi="[object WeakSet]",kr="[object ArrayBuffer]",Or="[object DataView]",Vi="[object Float32Array]",Xi="[object Float64Array]",Ji="[object Int8Array]",Qi="[object Int16Array]",zn="[object Int32Array]",wi="[object Uint8Array]",Nr="[object Uint8ClampedArray]",Bn="[object Uint16Array]",Hn="[object Uint32Array]",ea=/\b__p \+= '';/g,eu=/\b(__p \+=) '' \+/g,ta=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ra=/&(?:amp|lt|gt|quot|#39);/g,eo=/[&<>"']/g,na=RegExp(ra.source),tu=RegExp(eo.source),ru=/<%-([\s\S]+?)%>/g,ia=/<%([\s\S]+?)%>/g,oa=/<%=([\s\S]+?)%>/g,nu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iu=/^\w*$/,ou=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,A=/[\\^$.*+?()[\]{}|]/g,q=RegExp(A.source),Q=/^\s+/,pe=/\s/,He=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ue=/\{\n\/\* \[wrapped with (.+)\] \*/,Me=/,? & /,Re=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ot=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cr=/\w*$/,gn=/^[-+]0x[0-9a-f]+$/i,aa=/^0b[01]+$/i,Ar=/^\[object .+?Constructor\]$/,S0=/^0o[0-7]+$/i,E0=/^(?:0|[1-9]\d*)$/,x0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sa=/($^)/,_0=/['\n\r\u2028\u2029\\]/g,ua="\\ud800-\\udfff",O0="\\u0300-\\u036f",A0="\\ufe20-\\ufe2f",T0="\\u20d0-\\u20ff",xf=O0+A0+T0,_f="\\u2700-\\u27bf",Of="a-z\\xdf-\\xf6\\xf8-\\xff",C0="\\xac\\xb1\\xd7\\xf7",R0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",P0="\\u2000-\\u206f",I0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Af="A-Z\\xc0-\\xd6\\xd8-\\xde",Tf="\\ufe0e\\ufe0f",Cf=C0+R0+P0+I0,au="['’]",M0="["+ua+"]",Rf="["+Cf+"]",la="["+xf+"]",Pf="\\d+",L0="["+_f+"]",If="["+Of+"]",Mf="[^"+ua+Cf+Pf+_f+Of+Af+"]",su="\\ud83c[\\udffb-\\udfff]",$0="(?:"+la+"|"+su+")",Lf="[^"+ua+"]",uu="(?:\\ud83c[\\udde6-\\uddff]){2}",lu="[\\ud800-\\udbff][\\udc00-\\udfff]",bi="["+Af+"]",$f="\\u200d",Ff="(?:"+If+"|"+Mf+")",F0="(?:"+bi+"|"+Mf+")",Df="(?:"+au+"(?:d|ll|m|re|s|t|ve))?",kf="(?:"+au+"(?:D|LL|M|RE|S|T|VE))?",Nf=$0+"?",jf="["+Tf+"]?",D0="(?:"+$f+"(?:"+[Lf,uu,lu].join("|")+")"+jf+Nf+")*",k0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",N0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Wf=jf+Nf+D0,j0="(?:"+[L0,uu,lu].join("|")+")"+Wf,W0="(?:"+[Lf+la+"?",la,uu,lu,M0].join("|")+")",U0=RegExp(au,"g"),z0=RegExp(la,"g"),cu=RegExp(su+"(?="+su+")|"+W0+Wf,"g"),B0=RegExp([bi+"?"+If+"+"+Df+"(?="+[Rf,bi,"$"].join("|")+")",F0+"+"+kf+"(?="+[Rf,bi+Ff,"$"].join("|")+")",bi+"?"+Ff+"+"+Df,bi+"+"+kf,N0,k0,Pf,j0].join("|"),"g"),H0=RegExp("["+$f+ua+xf+Tf+"]"),Z0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,q0=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],G0=-1,Ve={};Ve[Vi]=Ve[Xi]=Ve[Ji]=Ve[Qi]=Ve[zn]=Ve[wi]=Ve[Nr]=Ve[Bn]=Ve[Hn]=!0,Ve[le]=Ve[ae]=Ve[kr]=Ve[se]=Ve[Or]=Ve[we]=Ve[Ye]=Ve[V]=Ve[ct]=Ve[Wt]=Ve[Ut]=Ve[vt]=Ve[ft]=Ve[Fr]=Ve[lr]=!1;var Ke={};Ke[le]=Ke[ae]=Ke[kr]=Ke[Or]=Ke[se]=Ke[we]=Ke[Vi]=Ke[Xi]=Ke[Ji]=Ke[Qi]=Ke[zn]=Ke[ct]=Ke[Wt]=Ke[Ut]=Ke[vt]=Ke[ft]=Ke[Fr]=Ke[Dr]=Ke[wi]=Ke[Nr]=Ke[Bn]=Ke[Hn]=!0,Ke[Ye]=Ke[V]=Ke[lr]=!1;var K0={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Y0={"&":"&","<":"<",">":">",'"':""","'":"'"},V0={"&":"&","<":"<",">":">",""":'"',"'":"'"},X0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},J0=parseFloat,Q0=parseInt,Uf=typeof ni=="object"&&ni&&ni.Object===Object&&ni,ey=typeof self=="object"&&self&&self.Object===Object&&self,At=Uf||ey||Function("return this")(),fu=t&&!t.nodeType&&t,Zn=fu&&!0&&e&&!e.nodeType&&e,zf=Zn&&Zn.exports===fu,du=zf&&Uf.process,fr=function(){try{var M=Zn&&Zn.require&&Zn.require("util").types;return M||du&&du.binding&&du.binding("util")}catch{}}(),Bf=fr&&fr.isArrayBuffer,Hf=fr&&fr.isDate,Zf=fr&&fr.isMap,qf=fr&&fr.isRegExp,Gf=fr&&fr.isSet,Kf=fr&&fr.isTypedArray;function er(M,W,N){switch(N.length){case 0:return M.call(W);case 1:return M.call(W,N[0]);case 2:return M.call(W,N[0],N[1]);case 3:return M.call(W,N[0],N[1],N[2])}return M.apply(W,N)}function ty(M,W,N,ee){for(var ge=-1,ke=M==null?0:M.length;++ge<ke;){var mt=M[ge];W(ee,mt,N(mt),M)}return ee}function dr(M,W){for(var N=-1,ee=M==null?0:M.length;++N<ee&&W(M[N],N,M)!==!1;);return M}function ry(M,W){for(var N=M==null?0:M.length;N--&&W(M[N],N,M)!==!1;);return M}function Yf(M,W){for(var N=-1,ee=M==null?0:M.length;++N<ee;)if(!W(M[N],N,M))return!1;return!0}function yn(M,W){for(var N=-1,ee=M==null?0:M.length,ge=0,ke=[];++N<ee;){var mt=M[N];W(mt,N,M)&&(ke[ge++]=mt)}return ke}function ca(M,W){var N=M==null?0:M.length;return!!N&&Si(M,W,0)>-1}function pu(M,W,N){for(var ee=-1,ge=M==null?0:M.length;++ee<ge;)if(N(W,M[ee]))return!0;return!1}function Xe(M,W){for(var N=-1,ee=M==null?0:M.length,ge=Array(ee);++N<ee;)ge[N]=W(M[N],N,M);return ge}function wn(M,W){for(var N=-1,ee=W.length,ge=M.length;++N<ee;)M[ge+N]=W[N];return M}function hu(M,W,N,ee){var ge=-1,ke=M==null?0:M.length;for(ee&&ke&&(N=M[++ge]);++ge<ke;)N=W(N,M[ge],ge,M);return N}function ny(M,W,N,ee){var ge=M==null?0:M.length;for(ee&&ge&&(N=M[--ge]);ge--;)N=W(N,M[ge],ge,M);return N}function vu(M,W){for(var N=-1,ee=M==null?0:M.length;++N<ee;)if(W(M[N],N,M))return!0;return!1}var iy=mu("length");function oy(M){return M.split("")}function ay(M){return M.match(Re)||[]}function Vf(M,W,N){var ee;return N(M,function(ge,ke,mt){if(W(ge,ke,mt))return ee=ke,!1}),ee}function fa(M,W,N,ee){for(var ge=M.length,ke=N+(ee?1:-1);ee?ke--:++ke<ge;)if(W(M[ke],ke,M))return ke;return-1}function Si(M,W,N){return W===W?yy(M,W,N):fa(M,Xf,N)}function sy(M,W,N,ee){for(var ge=N-1,ke=M.length;++ge<ke;)if(ee(M[ge],W))return ge;return-1}function Xf(M){return M!==M}function Jf(M,W){var N=M==null?0:M.length;return N?yu(M,W)/N:H}function mu(M){return function(W){return W==null?r:W[M]}}function gu(M){return function(W){return M==null?r:M[W]}}function Qf(M,W,N,ee,ge){return ge(M,function(ke,mt,Ge){N=ee?(ee=!1,ke):W(N,ke,mt,Ge)}),N}function uy(M,W){var N=M.length;for(M.sort(W);N--;)M[N]=M[N].value;return M}function yu(M,W){for(var N,ee=-1,ge=M.length;++ee<ge;){var ke=W(M[ee]);ke!==r&&(N=N===r?ke:N+ke)}return N}function wu(M,W){for(var N=-1,ee=Array(M);++N<M;)ee[N]=W(N);return ee}function ly(M,W){return Xe(W,function(N){return[N,M[N]]})}function ed(M){return M&&M.slice(0,id(M)+1).replace(Q,"")}function tr(M){return function(W){return M(W)}}function bu(M,W){return Xe(W,function(N){return M[N]})}function to(M,W){return M.has(W)}function td(M,W){for(var N=-1,ee=M.length;++N<ee&&Si(W,M[N],0)>-1;);return N}function rd(M,W){for(var N=M.length;N--&&Si(W,M[N],0)>-1;);return N}function cy(M,W){for(var N=M.length,ee=0;N--;)M[N]===W&&++ee;return ee}var fy=gu(K0),dy=gu(Y0);function py(M){return"\\"+X0[M]}function hy(M,W){return M==null?r:M[W]}function Ei(M){return H0.test(M)}function vy(M){return Z0.test(M)}function my(M){for(var W,N=[];!(W=M.next()).done;)N.push(W.value);return N}function Su(M){var W=-1,N=Array(M.size);return M.forEach(function(ee,ge){N[++W]=[ge,ee]}),N}function nd(M,W){return function(N){return M(W(N))}}function bn(M,W){for(var N=-1,ee=M.length,ge=0,ke=[];++N<ee;){var mt=M[N];(mt===W||mt===h)&&(M[N]=h,ke[ge++]=N)}return ke}function da(M){var W=-1,N=Array(M.size);return M.forEach(function(ee){N[++W]=ee}),N}function gy(M){var W=-1,N=Array(M.size);return M.forEach(function(ee){N[++W]=[ee,ee]}),N}function yy(M,W,N){for(var ee=N-1,ge=M.length;++ee<ge;)if(M[ee]===W)return ee;return-1}function wy(M,W,N){for(var ee=N+1;ee--;)if(M[ee]===W)return ee;return ee}function xi(M){return Ei(M)?Sy(M):iy(M)}function Tr(M){return Ei(M)?Ey(M):oy(M)}function id(M){for(var W=M.length;W--&&pe.test(M.charAt(W)););return W}var by=gu(V0);function Sy(M){for(var W=cu.lastIndex=0;cu.test(M);)++W;return W}function Ey(M){return M.match(cu)||[]}function xy(M){return M.match(B0)||[]}var _y=function M(W){W=W==null?At:_i.defaults(At.Object(),W,_i.pick(At,q0));var N=W.Array,ee=W.Date,ge=W.Error,ke=W.Function,mt=W.Math,Ge=W.Object,Eu=W.RegExp,Oy=W.String,pr=W.TypeError,pa=N.prototype,Ay=ke.prototype,Oi=Ge.prototype,ha=W["__core-js_shared__"],va=Ay.toString,ze=Oi.hasOwnProperty,Ty=0,od=function(){var n=/[^.]+$/.exec(ha&&ha.keys&&ha.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),ma=Oi.toString,Cy=va.call(Ge),Ry=At._,Py=Eu("^"+va.call(ze).replace(A,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ga=zf?W.Buffer:r,Sn=W.Symbol,ya=W.Uint8Array,ad=ga?ga.allocUnsafe:r,wa=nd(Ge.getPrototypeOf,Ge),sd=Ge.create,ud=Oi.propertyIsEnumerable,ba=pa.splice,ld=Sn?Sn.isConcatSpreadable:r,ro=Sn?Sn.iterator:r,qn=Sn?Sn.toStringTag:r,Sa=function(){try{var n=Xn(Ge,"defineProperty");return n({},"",{}),n}catch{}}(),Iy=W.clearTimeout!==At.clearTimeout&&W.clearTimeout,My=ee&&ee.now!==At.Date.now&&ee.now,Ly=W.setTimeout!==At.setTimeout&&W.setTimeout,Ea=mt.ceil,xa=mt.floor,xu=Ge.getOwnPropertySymbols,$y=ga?ga.isBuffer:r,cd=W.isFinite,Fy=pa.join,Dy=nd(Ge.keys,Ge),gt=mt.max,It=mt.min,ky=ee.now,Ny=W.parseInt,fd=mt.random,jy=pa.reverse,_u=Xn(W,"DataView"),no=Xn(W,"Map"),Ou=Xn(W,"Promise"),Ai=Xn(W,"Set"),io=Xn(W,"WeakMap"),oo=Xn(Ge,"create"),_a=io&&new io,Ti={},Wy=Jn(_u),Uy=Jn(no),zy=Jn(Ou),By=Jn(Ai),Hy=Jn(io),Oa=Sn?Sn.prototype:r,ao=Oa?Oa.valueOf:r,dd=Oa?Oa.toString:r;function y(n){if(it(n)&&!be(n)&&!(n instanceof Ie)){if(n instanceof hr)return n;if(ze.call(n,"__wrapped__"))return pp(n)}return new hr(n)}var Ci=function(){function n(){}return function(o){if(!tt(o))return{};if(sd)return sd(o);n.prototype=o;var u=new n;return n.prototype=r,u}}();function Aa(){}function hr(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}y.templateSettings={escape:ru,evaluate:ia,interpolate:oa,variable:"",imports:{_:y}},y.prototype=Aa.prototype,y.prototype.constructor=y,hr.prototype=Ci(Aa.prototype),hr.prototype.constructor=hr;function Ie(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function Zy(){var n=new Ie(this.__wrapped__);return n.__actions__=Gt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Gt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Gt(this.__views__),n}function qy(){if(this.__filtered__){var n=new Ie(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Gy(){var n=this.__wrapped__.value(),o=this.__dir__,u=be(n),f=o<0,m=u?n.length:0,S=ow(0,m,this.__views__),_=S.start,T=S.end,L=T-_,z=f?T:_-1,B=this.__iteratees__,Z=B.length,X=0,re=It(L,this.__takeCount__);if(!u||!f&&m==L&&re==L)return Dd(n,this.__actions__);var ce=[];e:for(;L--&&X<re;){z+=o;for(var Oe=-1,fe=n[z];++Oe<Z;){var Pe=B[Oe],Le=Pe.iteratee,ir=Pe.type,Ht=Le(fe);if(ir==$e)fe=Ht;else if(!Ht){if(ir==ve)continue e;break e}}ce[X++]=fe}return ce}Ie.prototype=Ci(Aa.prototype),Ie.prototype.constructor=Ie;function Gn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function Ky(){this.__data__=oo?oo(null):{},this.size=0}function Yy(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function Vy(n){var o=this.__data__;if(oo){var u=o[n];return u===d?r:u}return ze.call(o,n)?o[n]:r}function Xy(n){var o=this.__data__;return oo?o[n]!==r:ze.call(o,n)}function Jy(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=oo&&o===r?d:o,this}Gn.prototype.clear=Ky,Gn.prototype.delete=Yy,Gn.prototype.get=Vy,Gn.prototype.has=Xy,Gn.prototype.set=Jy;function Qr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function Qy(){this.__data__=[],this.size=0}function e1(n){var o=this.__data__,u=Ta(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():ba.call(o,u,1),--this.size,!0}function t1(n){var o=this.__data__,u=Ta(o,n);return u<0?r:o[u][1]}function r1(n){return Ta(this.__data__,n)>-1}function n1(n,o){var u=this.__data__,f=Ta(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}Qr.prototype.clear=Qy,Qr.prototype.delete=e1,Qr.prototype.get=t1,Qr.prototype.has=r1,Qr.prototype.set=n1;function en(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function i1(){this.size=0,this.__data__={hash:new Gn,map:new(no||Qr),string:new Gn}}function o1(n){var o=ja(this,n).delete(n);return this.size-=o?1:0,o}function a1(n){return ja(this,n).get(n)}function s1(n){return ja(this,n).has(n)}function u1(n,o){var u=ja(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}en.prototype.clear=i1,en.prototype.delete=o1,en.prototype.get=a1,en.prototype.has=s1,en.prototype.set=u1;function Kn(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new en;++o<u;)this.add(n[o])}function l1(n){return this.__data__.set(n,d),this}function c1(n){return this.__data__.has(n)}Kn.prototype.add=Kn.prototype.push=l1,Kn.prototype.has=c1;function Cr(n){var o=this.__data__=new Qr(n);this.size=o.size}function f1(){this.__data__=new Qr,this.size=0}function d1(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function p1(n){return this.__data__.get(n)}function h1(n){return this.__data__.has(n)}function v1(n,o){var u=this.__data__;if(u instanceof Qr){var f=u.__data__;if(!no||f.length<a-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new en(f)}return u.set(n,o),this.size=u.size,this}Cr.prototype.clear=f1,Cr.prototype.delete=d1,Cr.prototype.get=p1,Cr.prototype.has=h1,Cr.prototype.set=v1;function pd(n,o){var u=be(n),f=!u&&Qn(n),m=!u&&!f&&An(n),S=!u&&!f&&!m&&Mi(n),_=u||f||m||S,T=_?wu(n.length,Oy):[],L=T.length;for(var z in n)(o||ze.call(n,z))&&!(_&&(z=="length"||m&&(z=="offset"||z=="parent")||S&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||on(z,L)))&&T.push(z);return T}function hd(n){var o=n.length;return o?n[Du(0,o-1)]:r}function m1(n,o){return Wa(Gt(n),Yn(o,0,n.length))}function g1(n){return Wa(Gt(n))}function Au(n,o,u){(u!==r&&!Rr(n[o],u)||u===r&&!(o in n))&&tn(n,o,u)}function so(n,o,u){var f=n[o];(!(ze.call(n,o)&&Rr(f,u))||u===r&&!(o in n))&&tn(n,o,u)}function Ta(n,o){for(var u=n.length;u--;)if(Rr(n[u][0],o))return u;return-1}function y1(n,o,u,f){return En(n,function(m,S,_){o(f,m,u(m),_)}),f}function vd(n,o){return n&&Wr(o,Et(o),n)}function w1(n,o){return n&&Wr(o,Yt(o),n)}function tn(n,o,u){o=="__proto__"&&Sa?Sa(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function Tu(n,o){for(var u=-1,f=o.length,m=N(f),S=n==null;++u<f;)m[u]=S?r:sl(n,o[u]);return m}function Yn(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function vr(n,o,u,f,m,S){var _,T=o&b,L=o&v,z=o&w;if(u&&(_=m?u(n,f,m,S):u(n)),_!==r)return _;if(!tt(n))return n;var B=be(n);if(B){if(_=sw(n),!T)return Gt(n,_)}else{var Z=Mt(n),X=Z==V||Z==ht;if(An(n))return jd(n,T);if(Z==Ut||Z==le||X&&!m){if(_=L||X?{}:ip(n),!T)return L?V1(n,w1(_,n)):Y1(n,vd(_,n))}else{if(!Ke[Z])return m?n:{};_=uw(n,Z,T)}}S||(S=new Cr);var re=S.get(n);if(re)return re;S.set(n,_),Lp(n)?n.forEach(function(fe){_.add(vr(fe,o,u,fe,n,S))}):Ip(n)&&n.forEach(function(fe,Pe){_.set(Pe,vr(fe,o,u,Pe,n,S))});var ce=z?L?Gu:qu:L?Yt:Et,Oe=B?r:ce(n);return dr(Oe||n,function(fe,Pe){Oe&&(Pe=fe,fe=n[Pe]),so(_,Pe,vr(fe,o,u,Pe,n,S))}),_}function b1(n){var o=Et(n);return function(u){return md(u,n,o)}}function md(n,o,u){var f=u.length;if(n==null)return!f;for(n=Ge(n);f--;){var m=u[f],S=o[m],_=n[m];if(_===r&&!(m in n)||!S(_))return!1}return!0}function gd(n,o,u){if(typeof n!="function")throw new pr(l);return vo(function(){n.apply(r,u)},o)}function uo(n,o,u,f){var m=-1,S=ca,_=!0,T=n.length,L=[],z=o.length;if(!T)return L;u&&(o=Xe(o,tr(u))),f?(S=pu,_=!1):o.length>=a&&(S=to,_=!1,o=new Kn(o));e:for(;++m<T;){var B=n[m],Z=u==null?B:u(B);if(B=f||B!==0?B:0,_&&Z===Z){for(var X=z;X--;)if(o[X]===Z)continue e;L.push(B)}else S(o,Z,f)||L.push(B)}return L}var En=Hd(jr),yd=Hd(Ru,!0);function S1(n,o){var u=!0;return En(n,function(f,m,S){return u=!!o(f,m,S),u}),u}function Ca(n,o,u){for(var f=-1,m=n.length;++f<m;){var S=n[f],_=o(S);if(_!=null&&(T===r?_===_&&!nr(_):u(_,T)))var T=_,L=S}return L}function E1(n,o,u,f){var m=n.length;for(u=Ee(u),u<0&&(u=-u>m?0:m+u),f=f===r||f>m?m:Ee(f),f<0&&(f+=m),f=u>f?0:Fp(f);u<f;)n[u++]=o;return n}function wd(n,o){var u=[];return En(n,function(f,m,S){o(f,m,S)&&u.push(f)}),u}function Tt(n,o,u,f,m){var S=-1,_=n.length;for(u||(u=cw),m||(m=[]);++S<_;){var T=n[S];o>0&&u(T)?o>1?Tt(T,o-1,u,f,m):wn(m,T):f||(m[m.length]=T)}return m}var Cu=Zd(),bd=Zd(!0);function jr(n,o){return n&&Cu(n,o,Et)}function Ru(n,o){return n&&bd(n,o,Et)}function Ra(n,o){return yn(o,function(u){return an(n[u])})}function Vn(n,o){o=_n(o,n);for(var u=0,f=o.length;n!=null&&u<f;)n=n[Ur(o[u++])];return u&&u==f?n:r}function Sd(n,o,u){var f=o(n);return be(n)?f:wn(f,u(n))}function zt(n){return n==null?n===r?mn:Un:qn&&qn in Ge(n)?iw(n):gw(n)}function Pu(n,o){return n>o}function x1(n,o){return n!=null&&ze.call(n,o)}function _1(n,o){return n!=null&&o in Ge(n)}function O1(n,o,u){return n>=It(o,u)&&n<gt(o,u)}function Iu(n,o,u){for(var f=u?pu:ca,m=n[0].length,S=n.length,_=S,T=N(S),L=1/0,z=[];_--;){var B=n[_];_&&o&&(B=Xe(B,tr(o))),L=It(B.length,L),T[_]=!u&&(o||m>=120&&B.length>=120)?new Kn(_&&B):r}B=n[0];var Z=-1,X=T[0];e:for(;++Z<m&&z.length<L;){var re=B[Z],ce=o?o(re):re;if(re=u||re!==0?re:0,!(X?to(X,ce):f(z,ce,u))){for(_=S;--_;){var Oe=T[_];if(!(Oe?to(Oe,ce):f(n[_],ce,u)))continue e}X&&X.push(ce),z.push(re)}}return z}function A1(n,o,u,f){return jr(n,function(m,S,_){o(f,u(m),S,_)}),f}function lo(n,o,u){o=_n(o,n),n=up(n,o);var f=n==null?n:n[Ur(gr(o))];return f==null?r:er(f,n,u)}function Ed(n){return it(n)&&zt(n)==le}function T1(n){return it(n)&&zt(n)==kr}function C1(n){return it(n)&&zt(n)==we}function co(n,o,u,f,m){return n===o?!0:n==null||o==null||!it(n)&&!it(o)?n!==n&&o!==o:R1(n,o,u,f,co,m)}function R1(n,o,u,f,m,S){var _=be(n),T=be(o),L=_?ae:Mt(n),z=T?ae:Mt(o);L=L==le?Ut:L,z=z==le?Ut:z;var B=L==Ut,Z=z==Ut,X=L==z;if(X&&An(n)){if(!An(o))return!1;_=!0,B=!1}if(X&&!B)return S||(S=new Cr),_||Mi(n)?tp(n,o,u,f,m,S):rw(n,o,L,u,f,m,S);if(!(u&x)){var re=B&&ze.call(n,"__wrapped__"),ce=Z&&ze.call(o,"__wrapped__");if(re||ce){var Oe=re?n.value():n,fe=ce?o.value():o;return S||(S=new Cr),m(Oe,fe,u,f,S)}}return X?(S||(S=new Cr),nw(n,o,u,f,m,S)):!1}function P1(n){return it(n)&&Mt(n)==ct}function Mu(n,o,u,f){var m=u.length,S=m,_=!f;if(n==null)return!S;for(n=Ge(n);m--;){var T=u[m];if(_&&T[2]?T[1]!==n[T[0]]:!(T[0]in n))return!1}for(;++m<S;){T=u[m];var L=T[0],z=n[L],B=T[1];if(_&&T[2]){if(z===r&&!(L in n))return!1}else{var Z=new Cr;if(f)var X=f(z,B,L,n,o,Z);if(!(X===r?co(B,z,x|g,f,Z):X))return!1}}return!0}function xd(n){if(!tt(n)||dw(n))return!1;var o=an(n)?Py:Ar;return o.test(Jn(n))}function I1(n){return it(n)&&zt(n)==vt}function M1(n){return it(n)&&Mt(n)==ft}function L1(n){return it(n)&&qa(n.length)&&!!Ve[zt(n)]}function _d(n){return typeof n=="function"?n:n==null?Vt:typeof n=="object"?be(n)?Td(n[0],n[1]):Ad(n):qp(n)}function Lu(n){if(!ho(n))return Dy(n);var o=[];for(var u in Ge(n))ze.call(n,u)&&u!="constructor"&&o.push(u);return o}function $1(n){if(!tt(n))return mw(n);var o=ho(n),u=[];for(var f in n)f=="constructor"&&(o||!ze.call(n,f))||u.push(f);return u}function $u(n,o){return n<o}function Od(n,o){var u=-1,f=Kt(n)?N(n.length):[];return En(n,function(m,S,_){f[++u]=o(m,S,_)}),f}function Ad(n){var o=Yu(n);return o.length==1&&o[0][2]?ap(o[0][0],o[0][1]):function(u){return u===n||Mu(u,n,o)}}function Td(n,o){return Xu(n)&&op(o)?ap(Ur(n),o):function(u){var f=sl(u,n);return f===r&&f===o?ul(u,n):co(o,f,x|g)}}function Pa(n,o,u,f,m){n!==o&&Cu(o,function(S,_){if(m||(m=new Cr),tt(S))F1(n,o,_,u,Pa,f,m);else{var T=f?f(Qu(n,_),S,_+"",n,o,m):r;T===r&&(T=S),Au(n,_,T)}},Yt)}function F1(n,o,u,f,m,S,_){var T=Qu(n,u),L=Qu(o,u),z=_.get(L);if(z){Au(n,u,z);return}var B=S?S(T,L,u+"",n,o,_):r,Z=B===r;if(Z){var X=be(L),re=!X&&An(L),ce=!X&&!re&&Mi(L);B=L,X||re||ce?be(T)?B=T:at(T)?B=Gt(T):re?(Z=!1,B=jd(L,!0)):ce?(Z=!1,B=Wd(L,!0)):B=[]:mo(L)||Qn(L)?(B=T,Qn(T)?B=Dp(T):(!tt(T)||an(T))&&(B=ip(L))):Z=!1}Z&&(_.set(L,B),m(B,L,f,S,_),_.delete(L)),Au(n,u,B)}function Cd(n,o){var u=n.length;if(u)return o+=o<0?u:0,on(o,u)?n[o]:r}function Rd(n,o,u){o.length?o=Xe(o,function(S){return be(S)?function(_){return Vn(_,S.length===1?S[0]:S)}:S}):o=[Vt];var f=-1;o=Xe(o,tr(ue()));var m=Od(n,function(S,_,T){var L=Xe(o,function(z){return z(S)});return{criteria:L,index:++f,value:S}});return uy(m,function(S,_){return K1(S,_,u)})}function D1(n,o){return Pd(n,o,function(u,f){return ul(n,f)})}function Pd(n,o,u){for(var f=-1,m=o.length,S={};++f<m;){var _=o[f],T=Vn(n,_);u(T,_)&&fo(S,_n(_,n),T)}return S}function k1(n){return function(o){return Vn(o,n)}}function Fu(n,o,u,f){var m=f?sy:Si,S=-1,_=o.length,T=n;for(n===o&&(o=Gt(o)),u&&(T=Xe(n,tr(u)));++S<_;)for(var L=0,z=o[S],B=u?u(z):z;(L=m(T,B,L,f))>-1;)T!==n&&ba.call(T,L,1),ba.call(n,L,1);return n}function Id(n,o){for(var u=n?o.length:0,f=u-1;u--;){var m=o[u];if(u==f||m!==S){var S=m;on(m)?ba.call(n,m,1):ju(n,m)}}return n}function Du(n,o){return n+xa(fd()*(o-n+1))}function N1(n,o,u,f){for(var m=-1,S=gt(Ea((o-n)/(u||1)),0),_=N(S);S--;)_[f?S:++m]=n,n+=u;return _}function ku(n,o){var u="";if(!n||o<1||o>qe)return u;do o%2&&(u+=n),o=xa(o/2),o&&(n+=n);while(o);return u}function Ae(n,o){return el(sp(n,o,Vt),n+"")}function j1(n){return hd(Li(n))}function W1(n,o){var u=Li(n);return Wa(u,Yn(o,0,u.length))}function fo(n,o,u,f){if(!tt(n))return n;o=_n(o,n);for(var m=-1,S=o.length,_=S-1,T=n;T!=null&&++m<S;){var L=Ur(o[m]),z=u;if(L==="__proto__"||L==="constructor"||L==="prototype")return n;if(m!=_){var B=T[L];z=f?f(B,L,T):r,z===r&&(z=tt(B)?B:on(o[m+1])?[]:{})}so(T,L,z),T=T[L]}return n}var Md=_a?function(n,o){return _a.set(n,o),n}:Vt,U1=Sa?function(n,o){return Sa(n,"toString",{configurable:!0,enumerable:!1,value:cl(o),writable:!0})}:Vt;function z1(n){return Wa(Li(n))}function mr(n,o,u){var f=-1,m=n.length;o<0&&(o=-o>m?0:m+o),u=u>m?m:u,u<0&&(u+=m),m=o>u?0:u-o>>>0,o>>>=0;for(var S=N(m);++f<m;)S[f]=n[f+o];return S}function B1(n,o){var u;return En(n,function(f,m,S){return u=o(f,m,S),!u}),!!u}function Ia(n,o,u){var f=0,m=n==null?f:n.length;if(typeof o=="number"&&o===o&&m<=de){for(;f<m;){var S=f+m>>>1,_=n[S];_!==null&&!nr(_)&&(u?_<=o:_<o)?f=S+1:m=S}return m}return Nu(n,o,Vt,u)}function Nu(n,o,u,f){var m=0,S=n==null?0:n.length;if(S===0)return 0;o=u(o);for(var _=o!==o,T=o===null,L=nr(o),z=o===r;m<S;){var B=xa((m+S)/2),Z=u(n[B]),X=Z!==r,re=Z===null,ce=Z===Z,Oe=nr(Z);if(_)var fe=f||ce;else z?fe=ce&&(f||X):T?fe=ce&&X&&(f||!re):L?fe=ce&&X&&!re&&(f||!Oe):re||Oe?fe=!1:fe=f?Z<=o:Z<o;fe?m=B+1:S=B}return It(S,oe)}function Ld(n,o){for(var u=-1,f=n.length,m=0,S=[];++u<f;){var _=n[u],T=o?o(_):_;if(!u||!Rr(T,L)){var L=T;S[m++]=_===0?0:_}}return S}function $d(n){return typeof n=="number"?n:nr(n)?H:+n}function rr(n){if(typeof n=="string")return n;if(be(n))return Xe(n,rr)+"";if(nr(n))return dd?dd.call(n):"";var o=n+"";return o=="0"&&1/n==-_e?"-0":o}function xn(n,o,u){var f=-1,m=ca,S=n.length,_=!0,T=[],L=T;if(u)_=!1,m=pu;else if(S>=a){var z=o?null:ew(n);if(z)return da(z);_=!1,m=to,L=new Kn}else L=o?[]:T;e:for(;++f<S;){var B=n[f],Z=o?o(B):B;if(B=u||B!==0?B:0,_&&Z===Z){for(var X=L.length;X--;)if(L[X]===Z)continue e;o&&L.push(Z),T.push(B)}else m(L,Z,u)||(L!==T&&L.push(Z),T.push(B))}return T}function ju(n,o){return o=_n(o,n),n=up(n,o),n==null||delete n[Ur(gr(o))]}function Fd(n,o,u,f){return fo(n,o,u(Vn(n,o)),f)}function Ma(n,o,u,f){for(var m=n.length,S=f?m:-1;(f?S--:++S<m)&&o(n[S],S,n););return u?mr(n,f?0:S,f?S+1:m):mr(n,f?S+1:0,f?m:S)}function Dd(n,o){var u=n;return u instanceof Ie&&(u=u.value()),hu(o,function(f,m){return m.func.apply(m.thisArg,wn([f],m.args))},u)}function Wu(n,o,u){var f=n.length;if(f<2)return f?xn(n[0]):[];for(var m=-1,S=N(f);++m<f;)for(var _=n[m],T=-1;++T<f;)T!=m&&(S[m]=uo(S[m]||_,n[T],o,u));return xn(Tt(S,1),o,u)}function kd(n,o,u){for(var f=-1,m=n.length,S=o.length,_={};++f<m;){var T=f<S?o[f]:r;u(_,n[f],T)}return _}function Uu(n){return at(n)?n:[]}function zu(n){return typeof n=="function"?n:Vt}function _n(n,o){return be(n)?n:Xu(n,o)?[n]:dp(Ne(n))}var H1=Ae;function On(n,o,u){var f=n.length;return u=u===r?f:u,!o&&u>=f?n:mr(n,o,u)}var Nd=Iy||function(n){return At.clearTimeout(n)};function jd(n,o){if(o)return n.slice();var u=n.length,f=ad?ad(u):new n.constructor(u);return n.copy(f),f}function Bu(n){var o=new n.constructor(n.byteLength);return new ya(o).set(new ya(n)),o}function Z1(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function q1(n){var o=new n.constructor(n.source,cr.exec(n));return o.lastIndex=n.lastIndex,o}function G1(n){return ao?Ge(ao.call(n)):{}}function Wd(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function Ud(n,o){if(n!==o){var u=n!==r,f=n===null,m=n===n,S=nr(n),_=o!==r,T=o===null,L=o===o,z=nr(o);if(!T&&!z&&!S&&n>o||S&&_&&L&&!T&&!z||f&&_&&L||!u&&L||!m)return 1;if(!f&&!S&&!z&&n<o||z&&u&&m&&!f&&!S||T&&u&&m||!_&&m||!L)return-1}return 0}function K1(n,o,u){for(var f=-1,m=n.criteria,S=o.criteria,_=m.length,T=u.length;++f<_;){var L=Ud(m[f],S[f]);if(L){if(f>=T)return L;var z=u[f];return L*(z=="desc"?-1:1)}}return n.index-o.index}function zd(n,o,u,f){for(var m=-1,S=n.length,_=u.length,T=-1,L=o.length,z=gt(S-_,0),B=N(L+z),Z=!f;++T<L;)B[T]=o[T];for(;++m<_;)(Z||m<S)&&(B[u[m]]=n[m]);for(;z--;)B[T++]=n[m++];return B}function Bd(n,o,u,f){for(var m=-1,S=n.length,_=-1,T=u.length,L=-1,z=o.length,B=gt(S-T,0),Z=N(B+z),X=!f;++m<B;)Z[m]=n[m];for(var re=m;++L<z;)Z[re+L]=o[L];for(;++_<T;)(X||m<S)&&(Z[re+u[_]]=n[m++]);return Z}function Gt(n,o){var u=-1,f=n.length;for(o||(o=N(f));++u<f;)o[u]=n[u];return o}function Wr(n,o,u,f){var m=!u;u||(u={});for(var S=-1,_=o.length;++S<_;){var T=o[S],L=f?f(u[T],n[T],T,u,n):r;L===r&&(L=n[T]),m?tn(u,T,L):so(u,T,L)}return u}function Y1(n,o){return Wr(n,Vu(n),o)}function V1(n,o){return Wr(n,rp(n),o)}function La(n,o){return function(u,f){var m=be(u)?ty:y1,S=o?o():{};return m(u,n,ue(f,2),S)}}function Ri(n){return Ae(function(o,u){var f=-1,m=u.length,S=m>1?u[m-1]:r,_=m>2?u[2]:r;for(S=n.length>3&&typeof S=="function"?(m--,S):r,_&&Bt(u[0],u[1],_)&&(S=m<3?r:S,m=1),o=Ge(o);++f<m;){var T=u[f];T&&n(o,T,f,S)}return o})}function Hd(n,o){return function(u,f){if(u==null)return u;if(!Kt(u))return n(u,f);for(var m=u.length,S=o?m:-1,_=Ge(u);(o?S--:++S<m)&&f(_[S],S,_)!==!1;);return u}}function Zd(n){return function(o,u,f){for(var m=-1,S=Ge(o),_=f(o),T=_.length;T--;){var L=_[n?T:++m];if(u(S[L],L,S)===!1)break}return o}}function X1(n,o,u){var f=o&E,m=po(n);function S(){var _=this&&this!==At&&this instanceof S?m:n;return _.apply(f?u:this,arguments)}return S}function qd(n){return function(o){o=Ne(o);var u=Ei(o)?Tr(o):r,f=u?u[0]:o.charAt(0),m=u?On(u,1).join(""):o.slice(1);return f[n]()+m}}function Pi(n){return function(o){return hu(Hp(Bp(o).replace(U0,"")),n,"")}}function po(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=Ci(n.prototype),f=n.apply(u,o);return tt(f)?f:u}}function J1(n,o,u){var f=po(n);function m(){for(var S=arguments.length,_=N(S),T=S,L=Ii(m);T--;)_[T]=arguments[T];var z=S<3&&_[0]!==L&&_[S-1]!==L?[]:bn(_,L);if(S-=z.length,S<u)return Xd(n,o,$a,m.placeholder,r,_,z,r,r,u-S);var B=this&&this!==At&&this instanceof m?f:n;return er(B,this,_)}return m}function Gd(n){return function(o,u,f){var m=Ge(o);if(!Kt(o)){var S=ue(u,3);o=Et(o),u=function(T){return S(m[T],T,m)}}var _=n(o,u,f);return _>-1?m[S?o[_]:_]:r}}function Kd(n){return nn(function(o){var u=o.length,f=u,m=hr.prototype.thru;for(n&&o.reverse();f--;){var S=o[f];if(typeof S!="function")throw new pr(l);if(m&&!_&&Na(S)=="wrapper")var _=new hr([],!0)}for(f=_?f:u;++f<u;){S=o[f];var T=Na(S),L=T=="wrapper"?Ku(S):r;L&&Ju(L[0])&&L[1]==(U|R|O|j)&&!L[4].length&&L[9]==1?_=_[Na(L[0])].apply(_,L[3]):_=S.length==1&&Ju(S)?_[T]():_.thru(S)}return function(){var z=arguments,B=z[0];if(_&&z.length==1&&be(B))return _.plant(B).value();for(var Z=0,X=u?o[Z].apply(this,z):B;++Z<u;)X=o[Z].call(this,X);return X}})}function $a(n,o,u,f,m,S,_,T,L,z){var B=o&U,Z=o&E,X=o&I,re=o&(R|F),ce=o&G,Oe=X?r:po(n);function fe(){for(var Pe=arguments.length,Le=N(Pe),ir=Pe;ir--;)Le[ir]=arguments[ir];if(re)var Ht=Ii(fe),or=cy(Le,Ht);if(f&&(Le=zd(Le,f,m,re)),S&&(Le=Bd(Le,S,_,re)),Pe-=or,re&&Pe<z){var st=bn(Le,Ht);return Xd(n,o,$a,fe.placeholder,u,Le,st,T,L,z-Pe)}var Pr=Z?u:this,un=X?Pr[n]:n;return Pe=Le.length,T?Le=yw(Le,T):ce&&Pe>1&&Le.reverse(),B&&L<Pe&&(Le.length=L),this&&this!==At&&this instanceof fe&&(un=Oe||po(un)),un.apply(Pr,Le)}return fe}function Yd(n,o){return function(u,f){return A1(u,n,o(f),{})}}function Fa(n,o){return function(u,f){var m;if(u===r&&f===r)return o;if(u!==r&&(m=u),f!==r){if(m===r)return f;typeof u=="string"||typeof f=="string"?(u=rr(u),f=rr(f)):(u=$d(u),f=$d(f)),m=n(u,f)}return m}}function Hu(n){return nn(function(o){return o=Xe(o,tr(ue())),Ae(function(u){var f=this;return n(o,function(m){return er(m,f,u)})})})}function Da(n,o){o=o===r?" ":rr(o);var u=o.length;if(u<2)return u?ku(o,n):o;var f=ku(o,Ea(n/xi(o)));return Ei(o)?On(Tr(f),0,n).join(""):f.slice(0,n)}function Q1(n,o,u,f){var m=o&E,S=po(n);function _(){for(var T=-1,L=arguments.length,z=-1,B=f.length,Z=N(B+L),X=this&&this!==At&&this instanceof _?S:n;++z<B;)Z[z]=f[z];for(;L--;)Z[z++]=arguments[++T];return er(X,m?u:this,Z)}return _}function Vd(n){return function(o,u,f){return f&&typeof f!="number"&&Bt(o,u,f)&&(u=f=r),o=sn(o),u===r?(u=o,o=0):u=sn(u),f=f===r?o<u?1:-1:sn(f),N1(o,u,f,n)}}function ka(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=yr(o),u=yr(u)),n(o,u)}}function Xd(n,o,u,f,m,S,_,T,L,z){var B=o&R,Z=B?_:r,X=B?r:_,re=B?S:r,ce=B?r:S;o|=B?O:D,o&=~(B?D:O),o&P||(o&=~(E|I));var Oe=[n,o,m,re,Z,ce,X,T,L,z],fe=u.apply(r,Oe);return Ju(n)&&lp(fe,Oe),fe.placeholder=f,cp(fe,n,o)}function Zu(n){var o=mt[n];return function(u,f){if(u=yr(u),f=f==null?0:It(Ee(f),292),f&&cd(u)){var m=(Ne(u)+"e").split("e"),S=o(m[0]+"e"+(+m[1]+f));return m=(Ne(S)+"e").split("e"),+(m[0]+"e"+(+m[1]-f))}return o(u)}}var ew=Ai&&1/da(new Ai([,-0]))[1]==_e?function(n){return new Ai(n)}:pl;function Jd(n){return function(o){var u=Mt(o);return u==ct?Su(o):u==ft?gy(o):ly(o,n(o))}}function rn(n,o,u,f,m,S,_,T){var L=o&I;if(!L&&typeof n!="function")throw new pr(l);var z=f?f.length:0;if(z||(o&=~(O|D),f=m=r),_=_===r?_:gt(Ee(_),0),T=T===r?T:Ee(T),z-=m?m.length:0,o&D){var B=f,Z=m;f=m=r}var X=L?r:Ku(n),re=[n,o,u,f,m,B,Z,S,_,T];if(X&&vw(re,X),n=re[0],o=re[1],u=re[2],f=re[3],m=re[4],T=re[9]=re[9]===r?L?0:n.length:gt(re[9]-z,0),!T&&o&(R|F)&&(o&=~(R|F)),!o||o==E)var ce=X1(n,o,u);else o==R||o==F?ce=J1(n,o,T):(o==O||o==(E|O))&&!m.length?ce=Q1(n,o,u,f):ce=$a.apply(r,re);var Oe=X?Md:lp;return cp(Oe(ce,re),n,o)}function Qd(n,o,u,f){return n===r||Rr(n,Oi[u])&&!ze.call(f,u)?o:n}function ep(n,o,u,f,m,S){return tt(n)&&tt(o)&&(S.set(o,n),Pa(n,o,r,ep,S),S.delete(o)),n}function tw(n){return mo(n)?r:n}function tp(n,o,u,f,m,S){var _=u&x,T=n.length,L=o.length;if(T!=L&&!(_&&L>T))return!1;var z=S.get(n),B=S.get(o);if(z&&B)return z==o&&B==n;var Z=-1,X=!0,re=u&g?new Kn:r;for(S.set(n,o),S.set(o,n);++Z<T;){var ce=n[Z],Oe=o[Z];if(f)var fe=_?f(Oe,ce,Z,o,n,S):f(ce,Oe,Z,n,o,S);if(fe!==r){if(fe)continue;X=!1;break}if(re){if(!vu(o,function(Pe,Le){if(!to(re,Le)&&(ce===Pe||m(ce,Pe,u,f,S)))return re.push(Le)})){X=!1;break}}else if(!(ce===Oe||m(ce,Oe,u,f,S))){X=!1;break}}return S.delete(n),S.delete(o),X}function rw(n,o,u,f,m,S,_){switch(u){case Or:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case kr:return!(n.byteLength!=o.byteLength||!S(new ya(n),new ya(o)));case se:case we:case Wt:return Rr(+n,+o);case Ye:return n.name==o.name&&n.message==o.message;case vt:case Fr:return n==o+"";case ct:var T=Su;case ft:var L=f&x;if(T||(T=da),n.size!=o.size&&!L)return!1;var z=_.get(n);if(z)return z==o;f|=g,_.set(n,o);var B=tp(T(n),T(o),f,m,S,_);return _.delete(n),B;case Dr:if(ao)return ao.call(n)==ao.call(o)}return!1}function nw(n,o,u,f,m,S){var _=u&x,T=qu(n),L=T.length,z=qu(o),B=z.length;if(L!=B&&!_)return!1;for(var Z=L;Z--;){var X=T[Z];if(!(_?X in o:ze.call(o,X)))return!1}var re=S.get(n),ce=S.get(o);if(re&&ce)return re==o&&ce==n;var Oe=!0;S.set(n,o),S.set(o,n);for(var fe=_;++Z<L;){X=T[Z];var Pe=n[X],Le=o[X];if(f)var ir=_?f(Le,Pe,X,o,n,S):f(Pe,Le,X,n,o,S);if(!(ir===r?Pe===Le||m(Pe,Le,u,f,S):ir)){Oe=!1;break}fe||(fe=X=="constructor")}if(Oe&&!fe){var Ht=n.constructor,or=o.constructor;Ht!=or&&"constructor"in n&&"constructor"in o&&!(typeof Ht=="function"&&Ht instanceof Ht&&typeof or=="function"&&or instanceof or)&&(Oe=!1)}return S.delete(n),S.delete(o),Oe}function nn(n){return el(sp(n,r,mp),n+"")}function qu(n){return Sd(n,Et,Vu)}function Gu(n){return Sd(n,Yt,rp)}var Ku=_a?function(n){return _a.get(n)}:pl;function Na(n){for(var o=n.name+"",u=Ti[o],f=ze.call(Ti,o)?u.length:0;f--;){var m=u[f],S=m.func;if(S==null||S==n)return m.name}return o}function Ii(n){var o=ze.call(y,"placeholder")?y:n;return o.placeholder}function ue(){var n=y.iteratee||fl;return n=n===fl?_d:n,arguments.length?n(arguments[0],arguments[1]):n}function ja(n,o){var u=n.__data__;return fw(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Yu(n){for(var o=Et(n),u=o.length;u--;){var f=o[u],m=n[f];o[u]=[f,m,op(m)]}return o}function Xn(n,o){var u=hy(n,o);return xd(u)?u:r}function iw(n){var o=ze.call(n,qn),u=n[qn];try{n[qn]=r;var f=!0}catch{}var m=ma.call(n);return f&&(o?n[qn]=u:delete n[qn]),m}var Vu=xu?function(n){return n==null?[]:(n=Ge(n),yn(xu(n),function(o){return ud.call(n,o)}))}:hl,rp=xu?function(n){for(var o=[];n;)wn(o,Vu(n)),n=wa(n);return o}:hl,Mt=zt;(_u&&Mt(new _u(new ArrayBuffer(1)))!=Or||no&&Mt(new no)!=ct||Ou&&Mt(Ou.resolve())!=Jr||Ai&&Mt(new Ai)!=ft||io&&Mt(new io)!=lr)&&(Mt=function(n){var o=zt(n),u=o==Ut?n.constructor:r,f=u?Jn(u):"";if(f)switch(f){case Wy:return Or;case Uy:return ct;case zy:return Jr;case By:return ft;case Hy:return lr}return o});function ow(n,o,u){for(var f=-1,m=u.length;++f<m;){var S=u[f],_=S.size;switch(S.type){case"drop":n+=_;break;case"dropRight":o-=_;break;case"take":o=It(o,n+_);break;case"takeRight":n=gt(n,o-_);break}}return{start:n,end:o}}function aw(n){var o=n.match(Ue);return o?o[1].split(Me):[]}function np(n,o,u){o=_n(o,n);for(var f=-1,m=o.length,S=!1;++f<m;){var _=Ur(o[f]);if(!(S=n!=null&&u(n,_)))break;n=n[_]}return S||++f!=m?S:(m=n==null?0:n.length,!!m&&qa(m)&&on(_,m)&&(be(n)||Qn(n)))}function sw(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&ze.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function ip(n){return typeof n.constructor=="function"&&!ho(n)?Ci(wa(n)):{}}function uw(n,o,u){var f=n.constructor;switch(o){case kr:return Bu(n);case se:case we:return new f(+n);case Or:return Z1(n,u);case Vi:case Xi:case Ji:case Qi:case zn:case wi:case Nr:case Bn:case Hn:return Wd(n,u);case ct:return new f;case Wt:case Fr:return new f(n);case vt:return q1(n);case ft:return new f;case Dr:return G1(n)}}function lw(n,o){var u=o.length;if(!u)return n;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),n.replace(He,`{
|
|
181
|
+
*/Ns.exports;(function(e,t){(function(){var r,i="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",w=1,S=2,v=4,_=1,g=2,x=1,C=2,P=4,T=8,$=16,A=32,D=64,H=128,j=256,V=512,ee=30,ye="...",Re=800,Ee=16,se=1,Fe=2,be=3,Oe=1/0,Be=9007199254740991,pt=17976931348623157e292,Z=0/0,Y=4294967295,pe=Y-1,oe=Y>>>1,fe=[["ary",H],["bind",x],["bindKey",C],["curry",T],["curryRight",$],["flip",V],["partial",A],["partialRight",D],["rearg",j]],de="[object Arguments]",ue="[object Array]",he="[object AsyncFunction]",le="[object Boolean]",we="[object Date]",Se="[object DOMException]",Ve="[object Error]",J="[object Function]",st="[object GeneratorFunction]",ut="[object Map]",yt="[object Number]",Gr="[object Null]",At="[object Object]",er="[object Promise]",Kn="[object Proxy]",et="[object RegExp]",rt="[object Set]",yr="[object String]",sr="[object Symbol]",Lr="[object Undefined]",Nt="[object WeakMap]",xn="[object WeakSet]",wr="[object ArrayBuffer]",ur="[object DataView]",Yn="[object Float32Array]",Vn="[object Float64Array]",Xn="[object Int8Array]",Jn="[object Int16Array]",$r="[object Int32Array]",un="[object Uint8Array]",It="[object Uint8ClampedArray]",Dr="[object Uint16Array]",Nr="[object Uint32Array]",Qn=/\b__p \+= '';/g,co=/\b(__p \+=) '' \+/g,ei=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mi=/&(?:amp|lt|gt|quot|#39);/g,On=/[&<>"']/g,ti=RegExp(Mi.source),fo=RegExp(On.source),po=/<%-([\s\S]+?)%>/g,ri=/<%([\s\S]+?)%>/g,Fi=/<%=([\s\S]+?)%>/g,ho=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vo=/^\w*$/,mo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,m=/[\\^$.*+?()[\]{}|]/g,I=RegExp(m.source),W=/^\s+/,K=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,re=/,? & /,te=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,je=/[()=,{}\[\]\/\s]/,_e=/\\(\\)?/g,Ae=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lt=/\w*$/,Yt=/^[-+]0x[0-9a-f]+$/i,ni=/^0b[01]+$/i,ht=/^\[object .+?Constructor\]$/,P0=/^0o[0-7]+$/i,I0=/^(?:0|[1-9]\d*)$/,M0=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,da=/($^)/,F0=/['\n\r\u2028\u2029\\]/g,pa="\\ud800-\\udfff",L0="\\u0300-\\u036f",$0="\\ufe20-\\ufe2f",D0="\\u20d0-\\u20ff",Of=L0+$0+D0,Af="\\u2700-\\u27bf",Tf="a-z\\xdf-\\xf6\\xf8-\\xff",N0="\\xac\\xb1\\xd7\\xf7",k0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",j0="\\u2000-\\u206f",W0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Rf="A-Z\\xc0-\\xd6\\xd8-\\xde",Cf="\\ufe0e\\ufe0f",Pf=N0+k0+j0+W0,au="['’]",U0="["+pa+"]",If="["+Pf+"]",ha="["+Of+"]",Mf="\\d+",H0="["+Af+"]",Ff="["+Tf+"]",Lf="[^"+pa+Pf+Mf+Af+Tf+Rf+"]",su="\\ud83c[\\udffb-\\udfff]",B0="(?:"+ha+"|"+su+")",$f="[^"+pa+"]",uu="(?:\\ud83c[\\udde6-\\uddff]){2}",lu="[\\ud800-\\udbff][\\udc00-\\udfff]",Li="["+Rf+"]",Df="\\u200d",Nf="(?:"+Ff+"|"+Lf+")",z0="(?:"+Li+"|"+Lf+")",kf="(?:"+au+"(?:d|ll|m|re|s|t|ve))?",jf="(?:"+au+"(?:D|LL|M|RE|S|T|VE))?",Wf=B0+"?",Uf="["+Cf+"]?",q0="(?:"+Df+"(?:"+[$f,uu,lu].join("|")+")"+Uf+Wf+")*",Z0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",G0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hf=Uf+Wf+q0,K0="(?:"+[H0,uu,lu].join("|")+")"+Hf,Y0="(?:"+[$f+ha+"?",ha,uu,lu,U0].join("|")+")",V0=RegExp(au,"g"),X0=RegExp(ha,"g"),cu=RegExp(su+"(?="+su+")|"+Y0+Hf,"g"),J0=RegExp([Li+"?"+Ff+"+"+kf+"(?="+[If,Li,"$"].join("|")+")",z0+"+"+jf+"(?="+[If,Li+Nf,"$"].join("|")+")",Li+"?"+Nf+"+"+kf,Li+"+"+jf,G0,Z0,Mf,K0].join("|"),"g"),Q0=RegExp("["+Df+pa+Of+Cf+"]"),ey=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ty=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ry=-1,tt={};tt[Yn]=tt[Vn]=tt[Xn]=tt[Jn]=tt[$r]=tt[un]=tt[It]=tt[Dr]=tt[Nr]=!0,tt[de]=tt[ue]=tt[wr]=tt[le]=tt[ur]=tt[we]=tt[Ve]=tt[J]=tt[ut]=tt[yt]=tt[At]=tt[et]=tt[rt]=tt[yr]=tt[Nt]=!1;var Je={};Je[de]=Je[ue]=Je[wr]=Je[ur]=Je[le]=Je[we]=Je[Yn]=Je[Vn]=Je[Xn]=Je[Jn]=Je[$r]=Je[ut]=Je[yt]=Je[At]=Je[et]=Je[rt]=Je[yr]=Je[sr]=Je[un]=Je[It]=Je[Dr]=Je[Nr]=!0,Je[Ve]=Je[J]=Je[Nt]=!1;var ny={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},iy={"&":"&","<":"<",">":">",'"':""","'":"'"},oy={"&":"&","<":"<",">":">",""":'"',"'":"'"},ay={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sy=parseFloat,uy=parseInt,Bf=typeof mi=="object"&&mi&&mi.Object===Object&&mi,ly=typeof self=="object"&&self&&self.Object===Object&&self,Mt=Bf||ly||Function("return this")(),fu=t&&!t.nodeType&&t,ii=fu&&!0&&e&&!e.nodeType&&e,zf=ii&&ii.exports===fu,du=zf&&Bf.process,br=function(){try{var M=ii&&ii.require&&ii.require("util").types;return M||du&&du.binding&&du.binding("util")}catch{}}(),qf=br&&br.isArrayBuffer,Zf=br&&br.isDate,Gf=br&&br.isMap,Kf=br&&br.isRegExp,Yf=br&&br.isSet,Vf=br&&br.isTypedArray;function lr(M,B,U){switch(U.length){case 0:return M.call(B);case 1:return M.call(B,U[0]);case 2:return M.call(B,U[0],U[1]);case 3:return M.call(B,U[0],U[1],U[2])}return M.apply(B,U)}function cy(M,B,U,ne){for(var xe=-1,He=M==null?0:M.length;++xe<He;){var Et=M[xe];B(ne,Et,U(Et),M)}return ne}function Sr(M,B){for(var U=-1,ne=M==null?0:M.length;++U<ne&&B(M[U],U,M)!==!1;);return M}function fy(M,B){for(var U=M==null?0:M.length;U--&&B(M[U],U,M)!==!1;);return M}function Xf(M,B){for(var U=-1,ne=M==null?0:M.length;++U<ne;)if(!B(M[U],U,M))return!1;return!0}function An(M,B){for(var U=-1,ne=M==null?0:M.length,xe=0,He=[];++U<ne;){var Et=M[U];B(Et,U,M)&&(He[xe++]=Et)}return He}function va(M,B){var U=M==null?0:M.length;return!!U&&$i(M,B,0)>-1}function pu(M,B,U){for(var ne=-1,xe=M==null?0:M.length;++ne<xe;)if(U(B,M[ne]))return!0;return!1}function nt(M,B){for(var U=-1,ne=M==null?0:M.length,xe=Array(ne);++U<ne;)xe[U]=B(M[U],U,M);return xe}function Tn(M,B){for(var U=-1,ne=B.length,xe=M.length;++U<ne;)M[xe+U]=B[U];return M}function hu(M,B,U,ne){var xe=-1,He=M==null?0:M.length;for(ne&&He&&(U=M[++xe]);++xe<He;)U=B(U,M[xe],xe,M);return U}function dy(M,B,U,ne){var xe=M==null?0:M.length;for(ne&&xe&&(U=M[--xe]);xe--;)U=B(U,M[xe],xe,M);return U}function vu(M,B){for(var U=-1,ne=M==null?0:M.length;++U<ne;)if(B(M[U],U,M))return!0;return!1}var py=mu("length");function hy(M){return M.split("")}function vy(M){return M.match(te)||[]}function Jf(M,B,U){var ne;return U(M,function(xe,He,Et){if(B(xe,He,Et))return ne=He,!1}),ne}function ma(M,B,U,ne){for(var xe=M.length,He=U+(ne?1:-1);ne?He--:++He<xe;)if(B(M[He],He,M))return He;return-1}function $i(M,B,U){return B===B?Ty(M,B,U):ma(M,Qf,U)}function my(M,B,U,ne){for(var xe=U-1,He=M.length;++xe<He;)if(ne(M[xe],B))return xe;return-1}function Qf(M){return M!==M}function ed(M,B){var U=M==null?0:M.length;return U?yu(M,B)/U:Z}function mu(M){return function(B){return B==null?r:B[M]}}function gu(M){return function(B){return M==null?r:M[B]}}function td(M,B,U,ne,xe){return xe(M,function(He,Et,Xe){U=ne?(ne=!1,He):B(U,He,Et,Xe)}),U}function gy(M,B){var U=M.length;for(M.sort(B);U--;)M[U]=M[U].value;return M}function yu(M,B){for(var U,ne=-1,xe=M.length;++ne<xe;){var He=B(M[ne]);He!==r&&(U=U===r?He:U+He)}return U}function wu(M,B){for(var U=-1,ne=Array(M);++U<M;)ne[U]=B(U);return ne}function yy(M,B){return nt(B,function(U){return[U,M[U]]})}function rd(M){return M&&M.slice(0,ad(M)+1).replace(W,"")}function cr(M){return function(B){return M(B)}}function bu(M,B){return nt(B,function(U){return M[U]})}function go(M,B){return M.has(B)}function nd(M,B){for(var U=-1,ne=M.length;++U<ne&&$i(B,M[U],0)>-1;);return U}function id(M,B){for(var U=M.length;U--&&$i(B,M[U],0)>-1;);return U}function wy(M,B){for(var U=M.length,ne=0;U--;)M[U]===B&&++ne;return ne}var by=gu(ny),Sy=gu(iy);function Ey(M){return"\\"+ay[M]}function _y(M,B){return M==null?r:M[B]}function Di(M){return Q0.test(M)}function xy(M){return ey.test(M)}function Oy(M){for(var B,U=[];!(B=M.next()).done;)U.push(B.value);return U}function Su(M){var B=-1,U=Array(M.size);return M.forEach(function(ne,xe){U[++B]=[xe,ne]}),U}function od(M,B){return function(U){return M(B(U))}}function Rn(M,B){for(var U=-1,ne=M.length,xe=0,He=[];++U<ne;){var Et=M[U];(Et===B||Et===h)&&(M[U]=h,He[xe++]=U)}return He}function ga(M){var B=-1,U=Array(M.size);return M.forEach(function(ne){U[++B]=ne}),U}function Ay(M){var B=-1,U=Array(M.size);return M.forEach(function(ne){U[++B]=[ne,ne]}),U}function Ty(M,B,U){for(var ne=U-1,xe=M.length;++ne<xe;)if(M[ne]===B)return ne;return-1}function Ry(M,B,U){for(var ne=U+1;ne--;)if(M[ne]===B)return ne;return ne}function Ni(M){return Di(M)?Py(M):py(M)}function kr(M){return Di(M)?Iy(M):hy(M)}function ad(M){for(var B=M.length;B--&&K.test(M.charAt(B)););return B}var Cy=gu(oy);function Py(M){for(var B=cu.lastIndex=0;cu.test(M);)++B;return B}function Iy(M){return M.match(cu)||[]}function My(M){return M.match(J0)||[]}var Fy=function M(B){B=B==null?Mt:ki.defaults(Mt.Object(),B,ki.pick(Mt,ty));var U=B.Array,ne=B.Date,xe=B.Error,He=B.Function,Et=B.Math,Xe=B.Object,Eu=B.RegExp,Ly=B.String,Er=B.TypeError,ya=U.prototype,$y=He.prototype,ji=Xe.prototype,wa=B["__core-js_shared__"],ba=$y.toString,Ge=ji.hasOwnProperty,Dy=0,sd=function(){var n=/[^.]+$/.exec(wa&&wa.keys&&wa.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Sa=ji.toString,Ny=ba.call(Xe),ky=Mt._,jy=Eu("^"+ba.call(Ge).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ea=zf?B.Buffer:r,Cn=B.Symbol,_a=B.Uint8Array,ud=Ea?Ea.allocUnsafe:r,xa=od(Xe.getPrototypeOf,Xe),ld=Xe.create,cd=ji.propertyIsEnumerable,Oa=ya.splice,fd=Cn?Cn.isConcatSpreadable:r,yo=Cn?Cn.iterator:r,oi=Cn?Cn.toStringTag:r,Aa=function(){try{var n=ci(Xe,"defineProperty");return n({},"",{}),n}catch{}}(),Wy=B.clearTimeout!==Mt.clearTimeout&&B.clearTimeout,Uy=ne&&ne.now!==Mt.Date.now&&ne.now,Hy=B.setTimeout!==Mt.setTimeout&&B.setTimeout,Ta=Et.ceil,Ra=Et.floor,_u=Xe.getOwnPropertySymbols,By=Ea?Ea.isBuffer:r,dd=B.isFinite,zy=ya.join,qy=od(Xe.keys,Xe),_t=Et.max,kt=Et.min,Zy=ne.now,Gy=B.parseInt,pd=Et.random,Ky=ya.reverse,xu=ci(B,"DataView"),wo=ci(B,"Map"),Ou=ci(B,"Promise"),Wi=ci(B,"Set"),bo=ci(B,"WeakMap"),So=ci(Xe,"create"),Ca=bo&&new bo,Ui={},Yy=fi(xu),Vy=fi(wo),Xy=fi(Ou),Jy=fi(Wi),Qy=fi(bo),Pa=Cn?Cn.prototype:r,Eo=Pa?Pa.valueOf:r,hd=Pa?Pa.toString:r;function b(n){if(ct(n)&&!Te(n)&&!(n instanceof De)){if(n instanceof _r)return n;if(Ge.call(n,"__wrapped__"))return vp(n)}return new _r(n)}var Hi=function(){function n(){}return function(o){if(!ot(o))return{};if(ld)return ld(o);n.prototype=o;var u=new n;return n.prototype=r,u}}();function Ia(){}function _r(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}b.templateSettings={escape:po,evaluate:ri,interpolate:Fi,variable:"",imports:{_:b}},b.prototype=Ia.prototype,b.prototype.constructor=b,_r.prototype=Hi(Ia.prototype),_r.prototype.constructor=_r;function De(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Y,this.__views__=[]}function e1(){var n=new De(this.__wrapped__);return n.__actions__=tr(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=tr(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=tr(this.__views__),n}function t1(){if(this.__filtered__){var n=new De(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function r1(){var n=this.__wrapped__.value(),o=this.__dir__,u=Te(n),f=o<0,y=u?n.length:0,E=hw(0,y,this.__views__),O=E.start,R=E.end,L=R-O,z=f?R:O-1,q=this.__iteratees__,G=q.length,Q=0,ie=kt(L,this.__takeCount__);if(!u||!f&&y==L&&ie==L)return kd(n,this.__actions__);var me=[];e:for(;L--&&Q<ie;){z+=o;for(var Pe=-1,ge=n[z];++Pe<G;){var $e=q[Pe],Ne=$e.iteratee,pr=$e.type,Jt=Ne(ge);if(pr==Fe)ge=Jt;else if(!Jt){if(pr==se)continue e;break e}}me[Q++]=ge}return me}De.prototype=Hi(Ia.prototype),De.prototype.constructor=De;function ai(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function n1(){this.__data__=So?So(null):{},this.size=0}function i1(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function o1(n){var o=this.__data__;if(So){var u=o[n];return u===d?r:u}return Ge.call(o,n)?o[n]:r}function a1(n){var o=this.__data__;return So?o[n]!==r:Ge.call(o,n)}function s1(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=So&&o===r?d:o,this}ai.prototype.clear=n1,ai.prototype.delete=i1,ai.prototype.get=o1,ai.prototype.has=a1,ai.prototype.set=s1;function ln(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function u1(){this.__data__=[],this.size=0}function l1(n){var o=this.__data__,u=Ma(o,n);if(u<0)return!1;var f=o.length-1;return u==f?o.pop():Oa.call(o,u,1),--this.size,!0}function c1(n){var o=this.__data__,u=Ma(o,n);return u<0?r:o[u][1]}function f1(n){return Ma(this.__data__,n)>-1}function d1(n,o){var u=this.__data__,f=Ma(u,n);return f<0?(++this.size,u.push([n,o])):u[f][1]=o,this}ln.prototype.clear=u1,ln.prototype.delete=l1,ln.prototype.get=c1,ln.prototype.has=f1,ln.prototype.set=d1;function cn(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var f=n[o];this.set(f[0],f[1])}}function p1(){this.size=0,this.__data__={hash:new ai,map:new(wo||ln),string:new ai}}function h1(n){var o=za(this,n).delete(n);return this.size-=o?1:0,o}function v1(n){return za(this,n).get(n)}function m1(n){return za(this,n).has(n)}function g1(n,o){var u=za(this,n),f=u.size;return u.set(n,o),this.size+=u.size==f?0:1,this}cn.prototype.clear=p1,cn.prototype.delete=h1,cn.prototype.get=v1,cn.prototype.has=m1,cn.prototype.set=g1;function si(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new cn;++o<u;)this.add(n[o])}function y1(n){return this.__data__.set(n,d),this}function w1(n){return this.__data__.has(n)}si.prototype.add=si.prototype.push=y1,si.prototype.has=w1;function jr(n){var o=this.__data__=new ln(n);this.size=o.size}function b1(){this.__data__=new ln,this.size=0}function S1(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function E1(n){return this.__data__.get(n)}function _1(n){return this.__data__.has(n)}function x1(n,o){var u=this.__data__;if(u instanceof ln){var f=u.__data__;if(!wo||f.length<a-1)return f.push([n,o]),this.size=++u.size,this;u=this.__data__=new cn(f)}return u.set(n,o),this.size=u.size,this}jr.prototype.clear=b1,jr.prototype.delete=S1,jr.prototype.get=E1,jr.prototype.has=_1,jr.prototype.set=x1;function vd(n,o){var u=Te(n),f=!u&&di(n),y=!u&&!f&&Ln(n),E=!u&&!f&&!y&&Zi(n),O=u||f||y||E,R=O?wu(n.length,Ly):[],L=R.length;for(var z in n)(o||Ge.call(n,z))&&!(O&&(z=="length"||y&&(z=="offset"||z=="parent")||E&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||hn(z,L)))&&R.push(z);return R}function md(n){var o=n.length;return o?n[Du(0,o-1)]:r}function O1(n,o){return qa(tr(n),ui(o,0,n.length))}function A1(n){return qa(tr(n))}function Au(n,o,u){(u!==r&&!Wr(n[o],u)||u===r&&!(o in n))&&fn(n,o,u)}function _o(n,o,u){var f=n[o];(!(Ge.call(n,o)&&Wr(f,u))||u===r&&!(o in n))&&fn(n,o,u)}function Ma(n,o){for(var u=n.length;u--;)if(Wr(n[u][0],o))return u;return-1}function T1(n,o,u,f){return Pn(n,function(y,E,O){o(f,y,u(y),O)}),f}function gd(n,o){return n&&Yr(o,Tt(o),n)}function R1(n,o){return n&&Yr(o,nr(o),n)}function fn(n,o,u){o=="__proto__"&&Aa?Aa(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function Tu(n,o){for(var u=-1,f=o.length,y=U(f),E=n==null;++u<f;)y[u]=E?r:sl(n,o[u]);return y}function ui(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function xr(n,o,u,f,y,E){var O,R=o&w,L=o&S,z=o&v;if(u&&(O=y?u(n,f,y,E):u(n)),O!==r)return O;if(!ot(n))return n;var q=Te(n);if(q){if(O=mw(n),!R)return tr(n,O)}else{var G=jt(n),Q=G==J||G==st;if(Ln(n))return Ud(n,R);if(G==At||G==de||Q&&!y){if(O=L||Q?{}:ap(n),!R)return L?ow(n,R1(O,n)):iw(n,gd(O,n))}else{if(!Je[G])return y?n:{};O=gw(n,G,R)}}E||(E=new jr);var ie=E.get(n);if(ie)return ie;E.set(n,O),$p(n)?n.forEach(function(ge){O.add(xr(ge,o,u,ge,n,E))}):Fp(n)&&n.forEach(function(ge,$e){O.set($e,xr(ge,o,u,$e,n,E))});var me=z?L?Gu:Zu:L?nr:Tt,Pe=q?r:me(n);return Sr(Pe||n,function(ge,$e){Pe&&($e=ge,ge=n[$e]),_o(O,$e,xr(ge,o,u,$e,n,E))}),O}function C1(n){var o=Tt(n);return function(u){return yd(u,n,o)}}function yd(n,o,u){var f=u.length;if(n==null)return!f;for(n=Xe(n);f--;){var y=u[f],E=o[y],O=n[y];if(O===r&&!(y in n)||!E(O))return!1}return!0}function wd(n,o,u){if(typeof n!="function")throw new Er(l);return Po(function(){n.apply(r,u)},o)}function xo(n,o,u,f){var y=-1,E=va,O=!0,R=n.length,L=[],z=o.length;if(!R)return L;u&&(o=nt(o,cr(u))),f?(E=pu,O=!1):o.length>=a&&(E=go,O=!1,o=new si(o));e:for(;++y<R;){var q=n[y],G=u==null?q:u(q);if(q=f||q!==0?q:0,O&&G===G){for(var Q=z;Q--;)if(o[Q]===G)continue e;L.push(q)}else E(o,G,f)||L.push(q)}return L}var Pn=Zd(Kr),bd=Zd(Cu,!0);function P1(n,o){var u=!0;return Pn(n,function(f,y,E){return u=!!o(f,y,E),u}),u}function Fa(n,o,u){for(var f=-1,y=n.length;++f<y;){var E=n[f],O=o(E);if(O!=null&&(R===r?O===O&&!dr(O):u(O,R)))var R=O,L=E}return L}function I1(n,o,u,f){var y=n.length;for(u=Ce(u),u<0&&(u=-u>y?0:y+u),f=f===r||f>y?y:Ce(f),f<0&&(f+=y),f=u>f?0:Np(f);u<f;)n[u++]=o;return n}function Sd(n,o){var u=[];return Pn(n,function(f,y,E){o(f,y,E)&&u.push(f)}),u}function Ft(n,o,u,f,y){var E=-1,O=n.length;for(u||(u=ww),y||(y=[]);++E<O;){var R=n[E];o>0&&u(R)?o>1?Ft(R,o-1,u,f,y):Tn(y,R):f||(y[y.length]=R)}return y}var Ru=Gd(),Ed=Gd(!0);function Kr(n,o){return n&&Ru(n,o,Tt)}function Cu(n,o){return n&&Ed(n,o,Tt)}function La(n,o){return An(o,function(u){return vn(n[u])})}function li(n,o){o=Mn(o,n);for(var u=0,f=o.length;n!=null&&u<f;)n=n[Vr(o[u++])];return u&&u==f?n:r}function _d(n,o,u){var f=o(n);return Te(n)?f:Tn(f,u(n))}function Vt(n){return n==null?n===r?Lr:Gr:oi&&oi in Xe(n)?pw(n):Aw(n)}function Pu(n,o){return n>o}function M1(n,o){return n!=null&&Ge.call(n,o)}function F1(n,o){return n!=null&&o in Xe(n)}function L1(n,o,u){return n>=kt(o,u)&&n<_t(o,u)}function Iu(n,o,u){for(var f=u?pu:va,y=n[0].length,E=n.length,O=E,R=U(E),L=1/0,z=[];O--;){var q=n[O];O&&o&&(q=nt(q,cr(o))),L=kt(q.length,L),R[O]=!u&&(o||y>=120&&q.length>=120)?new si(O&&q):r}q=n[0];var G=-1,Q=R[0];e:for(;++G<y&&z.length<L;){var ie=q[G],me=o?o(ie):ie;if(ie=u||ie!==0?ie:0,!(Q?go(Q,me):f(z,me,u))){for(O=E;--O;){var Pe=R[O];if(!(Pe?go(Pe,me):f(n[O],me,u)))continue e}Q&&Q.push(me),z.push(ie)}}return z}function $1(n,o,u,f){return Kr(n,function(y,E,O){o(f,u(y),E,O)}),f}function Oo(n,o,u){o=Mn(o,n),n=cp(n,o);var f=n==null?n:n[Vr(Ar(o))];return f==null?r:lr(f,n,u)}function xd(n){return ct(n)&&Vt(n)==de}function D1(n){return ct(n)&&Vt(n)==wr}function N1(n){return ct(n)&&Vt(n)==we}function Ao(n,o,u,f,y){return n===o?!0:n==null||o==null||!ct(n)&&!ct(o)?n!==n&&o!==o:k1(n,o,u,f,Ao,y)}function k1(n,o,u,f,y,E){var O=Te(n),R=Te(o),L=O?ue:jt(n),z=R?ue:jt(o);L=L==de?At:L,z=z==de?At:z;var q=L==At,G=z==At,Q=L==z;if(Q&&Ln(n)){if(!Ln(o))return!1;O=!0,q=!1}if(Q&&!q)return E||(E=new jr),O||Zi(n)?np(n,o,u,f,y,E):fw(n,o,L,u,f,y,E);if(!(u&_)){var ie=q&&Ge.call(n,"__wrapped__"),me=G&&Ge.call(o,"__wrapped__");if(ie||me){var Pe=ie?n.value():n,ge=me?o.value():o;return E||(E=new jr),y(Pe,ge,u,f,E)}}return Q?(E||(E=new jr),dw(n,o,u,f,y,E)):!1}function j1(n){return ct(n)&&jt(n)==ut}function Mu(n,o,u,f){var y=u.length,E=y,O=!f;if(n==null)return!E;for(n=Xe(n);y--;){var R=u[y];if(O&&R[2]?R[1]!==n[R[0]]:!(R[0]in n))return!1}for(;++y<E;){R=u[y];var L=R[0],z=n[L],q=R[1];if(O&&R[2]){if(z===r&&!(L in n))return!1}else{var G=new jr;if(f)var Q=f(z,q,L,n,o,G);if(!(Q===r?Ao(q,z,_|g,f,G):Q))return!1}}return!0}function Od(n){if(!ot(n)||Sw(n))return!1;var o=vn(n)?jy:ht;return o.test(fi(n))}function W1(n){return ct(n)&&Vt(n)==et}function U1(n){return ct(n)&&jt(n)==rt}function H1(n){return ct(n)&&Xa(n.length)&&!!tt[Vt(n)]}function Ad(n){return typeof n=="function"?n:n==null?ir:typeof n=="object"?Te(n)?Cd(n[0],n[1]):Rd(n):Kp(n)}function Fu(n){if(!Co(n))return qy(n);var o=[];for(var u in Xe(n))Ge.call(n,u)&&u!="constructor"&&o.push(u);return o}function B1(n){if(!ot(n))return Ow(n);var o=Co(n),u=[];for(var f in n)f=="constructor"&&(o||!Ge.call(n,f))||u.push(f);return u}function Lu(n,o){return n<o}function Td(n,o){var u=-1,f=rr(n)?U(n.length):[];return Pn(n,function(y,E,O){f[++u]=o(y,E,O)}),f}function Rd(n){var o=Yu(n);return o.length==1&&o[0][2]?up(o[0][0],o[0][1]):function(u){return u===n||Mu(u,n,o)}}function Cd(n,o){return Xu(n)&&sp(o)?up(Vr(n),o):function(u){var f=sl(u,n);return f===r&&f===o?ul(u,n):Ao(o,f,_|g)}}function $a(n,o,u,f,y){n!==o&&Ru(o,function(E,O){if(y||(y=new jr),ot(E))z1(n,o,O,u,$a,f,y);else{var R=f?f(Qu(n,O),E,O+"",n,o,y):r;R===r&&(R=E),Au(n,O,R)}},nr)}function z1(n,o,u,f,y,E,O){var R=Qu(n,u),L=Qu(o,u),z=O.get(L);if(z){Au(n,u,z);return}var q=E?E(R,L,u+"",n,o,O):r,G=q===r;if(G){var Q=Te(L),ie=!Q&&Ln(L),me=!Q&&!ie&&Zi(L);q=L,Q||ie||me?Te(R)?q=R:vt(R)?q=tr(R):ie?(G=!1,q=Ud(L,!0)):me?(G=!1,q=Hd(L,!0)):q=[]:Io(L)||di(L)?(q=R,di(R)?q=kp(R):(!ot(R)||vn(R))&&(q=ap(L))):G=!1}G&&(O.set(L,q),y(q,L,f,E,O),O.delete(L)),Au(n,u,q)}function Pd(n,o){var u=n.length;if(u)return o+=o<0?u:0,hn(o,u)?n[o]:r}function Id(n,o,u){o.length?o=nt(o,function(E){return Te(E)?function(O){return li(O,E.length===1?E[0]:E)}:E}):o=[ir];var f=-1;o=nt(o,cr(ve()));var y=Td(n,function(E,O,R){var L=nt(o,function(z){return z(E)});return{criteria:L,index:++f,value:E}});return gy(y,function(E,O){return nw(E,O,u)})}function q1(n,o){return Md(n,o,function(u,f){return ul(n,f)})}function Md(n,o,u){for(var f=-1,y=o.length,E={};++f<y;){var O=o[f],R=li(n,O);u(R,O)&&To(E,Mn(O,n),R)}return E}function Z1(n){return function(o){return li(o,n)}}function $u(n,o,u,f){var y=f?my:$i,E=-1,O=o.length,R=n;for(n===o&&(o=tr(o)),u&&(R=nt(n,cr(u)));++E<O;)for(var L=0,z=o[E],q=u?u(z):z;(L=y(R,q,L,f))>-1;)R!==n&&Oa.call(R,L,1),Oa.call(n,L,1);return n}function Fd(n,o){for(var u=n?o.length:0,f=u-1;u--;){var y=o[u];if(u==f||y!==E){var E=y;hn(y)?Oa.call(n,y,1):ju(n,y)}}return n}function Du(n,o){return n+Ra(pd()*(o-n+1))}function G1(n,o,u,f){for(var y=-1,E=_t(Ta((o-n)/(u||1)),0),O=U(E);E--;)O[f?E:++y]=n,n+=u;return O}function Nu(n,o){var u="";if(!n||o<1||o>Be)return u;do o%2&&(u+=n),o=Ra(o/2),o&&(n+=n);while(o);return u}function Ie(n,o){return el(lp(n,o,ir),n+"")}function K1(n){return md(Gi(n))}function Y1(n,o){var u=Gi(n);return qa(u,ui(o,0,u.length))}function To(n,o,u,f){if(!ot(n))return n;o=Mn(o,n);for(var y=-1,E=o.length,O=E-1,R=n;R!=null&&++y<E;){var L=Vr(o[y]),z=u;if(L==="__proto__"||L==="constructor"||L==="prototype")return n;if(y!=O){var q=R[L];z=f?f(q,L,R):r,z===r&&(z=ot(q)?q:hn(o[y+1])?[]:{})}_o(R,L,z),R=R[L]}return n}var Ld=Ca?function(n,o){return Ca.set(n,o),n}:ir,V1=Aa?function(n,o){return Aa(n,"toString",{configurable:!0,enumerable:!1,value:cl(o),writable:!0})}:ir;function X1(n){return qa(Gi(n))}function Or(n,o,u){var f=-1,y=n.length;o<0&&(o=-o>y?0:y+o),u=u>y?y:u,u<0&&(u+=y),y=o>u?0:u-o>>>0,o>>>=0;for(var E=U(y);++f<y;)E[f]=n[f+o];return E}function J1(n,o){var u;return Pn(n,function(f,y,E){return u=o(f,y,E),!u}),!!u}function Da(n,o,u){var f=0,y=n==null?f:n.length;if(typeof o=="number"&&o===o&&y<=oe){for(;f<y;){var E=f+y>>>1,O=n[E];O!==null&&!dr(O)&&(u?O<=o:O<o)?f=E+1:y=E}return y}return ku(n,o,ir,u)}function ku(n,o,u,f){var y=0,E=n==null?0:n.length;if(E===0)return 0;o=u(o);for(var O=o!==o,R=o===null,L=dr(o),z=o===r;y<E;){var q=Ra((y+E)/2),G=u(n[q]),Q=G!==r,ie=G===null,me=G===G,Pe=dr(G);if(O)var ge=f||me;else z?ge=me&&(f||Q):R?ge=me&&Q&&(f||!ie):L?ge=me&&Q&&!ie&&(f||!Pe):ie||Pe?ge=!1:ge=f?G<=o:G<o;ge?y=q+1:E=q}return kt(E,pe)}function $d(n,o){for(var u=-1,f=n.length,y=0,E=[];++u<f;){var O=n[u],R=o?o(O):O;if(!u||!Wr(R,L)){var L=R;E[y++]=O===0?0:O}}return E}function Dd(n){return typeof n=="number"?n:dr(n)?Z:+n}function fr(n){if(typeof n=="string")return n;if(Te(n))return nt(n,fr)+"";if(dr(n))return hd?hd.call(n):"";var o=n+"";return o=="0"&&1/n==-Oe?"-0":o}function In(n,o,u){var f=-1,y=va,E=n.length,O=!0,R=[],L=R;if(u)O=!1,y=pu;else if(E>=a){var z=o?null:lw(n);if(z)return ga(z);O=!1,y=go,L=new si}else L=o?[]:R;e:for(;++f<E;){var q=n[f],G=o?o(q):q;if(q=u||q!==0?q:0,O&&G===G){for(var Q=L.length;Q--;)if(L[Q]===G)continue e;o&&L.push(G),R.push(q)}else y(L,G,u)||(L!==R&&L.push(G),R.push(q))}return R}function ju(n,o){return o=Mn(o,n),n=cp(n,o),n==null||delete n[Vr(Ar(o))]}function Nd(n,o,u,f){return To(n,o,u(li(n,o)),f)}function Na(n,o,u,f){for(var y=n.length,E=f?y:-1;(f?E--:++E<y)&&o(n[E],E,n););return u?Or(n,f?0:E,f?E+1:y):Or(n,f?E+1:0,f?y:E)}function kd(n,o){var u=n;return u instanceof De&&(u=u.value()),hu(o,function(f,y){return y.func.apply(y.thisArg,Tn([f],y.args))},u)}function Wu(n,o,u){var f=n.length;if(f<2)return f?In(n[0]):[];for(var y=-1,E=U(f);++y<f;)for(var O=n[y],R=-1;++R<f;)R!=y&&(E[y]=xo(E[y]||O,n[R],o,u));return In(Ft(E,1),o,u)}function jd(n,o,u){for(var f=-1,y=n.length,E=o.length,O={};++f<y;){var R=f<E?o[f]:r;u(O,n[f],R)}return O}function Uu(n){return vt(n)?n:[]}function Hu(n){return typeof n=="function"?n:ir}function Mn(n,o){return Te(n)?n:Xu(n,o)?[n]:hp(ze(n))}var Q1=Ie;function Fn(n,o,u){var f=n.length;return u=u===r?f:u,!o&&u>=f?n:Or(n,o,u)}var Wd=Wy||function(n){return Mt.clearTimeout(n)};function Ud(n,o){if(o)return n.slice();var u=n.length,f=ud?ud(u):new n.constructor(u);return n.copy(f),f}function Bu(n){var o=new n.constructor(n.byteLength);return new _a(o).set(new _a(n)),o}function ew(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function tw(n){var o=new n.constructor(n.source,lt.exec(n));return o.lastIndex=n.lastIndex,o}function rw(n){return Eo?Xe(Eo.call(n)):{}}function Hd(n,o){var u=o?Bu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function Bd(n,o){if(n!==o){var u=n!==r,f=n===null,y=n===n,E=dr(n),O=o!==r,R=o===null,L=o===o,z=dr(o);if(!R&&!z&&!E&&n>o||E&&O&&L&&!R&&!z||f&&O&&L||!u&&L||!y)return 1;if(!f&&!E&&!z&&n<o||z&&u&&y&&!f&&!E||R&&u&&y||!O&&y||!L)return-1}return 0}function nw(n,o,u){for(var f=-1,y=n.criteria,E=o.criteria,O=y.length,R=u.length;++f<O;){var L=Bd(y[f],E[f]);if(L){if(f>=R)return L;var z=u[f];return L*(z=="desc"?-1:1)}}return n.index-o.index}function zd(n,o,u,f){for(var y=-1,E=n.length,O=u.length,R=-1,L=o.length,z=_t(E-O,0),q=U(L+z),G=!f;++R<L;)q[R]=o[R];for(;++y<O;)(G||y<E)&&(q[u[y]]=n[y]);for(;z--;)q[R++]=n[y++];return q}function qd(n,o,u,f){for(var y=-1,E=n.length,O=-1,R=u.length,L=-1,z=o.length,q=_t(E-R,0),G=U(q+z),Q=!f;++y<q;)G[y]=n[y];for(var ie=y;++L<z;)G[ie+L]=o[L];for(;++O<R;)(Q||y<E)&&(G[ie+u[O]]=n[y++]);return G}function tr(n,o){var u=-1,f=n.length;for(o||(o=U(f));++u<f;)o[u]=n[u];return o}function Yr(n,o,u,f){var y=!u;u||(u={});for(var E=-1,O=o.length;++E<O;){var R=o[E],L=f?f(u[R],n[R],R,u,n):r;L===r&&(L=n[R]),y?fn(u,R,L):_o(u,R,L)}return u}function iw(n,o){return Yr(n,Vu(n),o)}function ow(n,o){return Yr(n,ip(n),o)}function ka(n,o){return function(u,f){var y=Te(u)?cy:T1,E=o?o():{};return y(u,n,ve(f,2),E)}}function Bi(n){return Ie(function(o,u){var f=-1,y=u.length,E=y>1?u[y-1]:r,O=y>2?u[2]:r;for(E=n.length>3&&typeof E=="function"?(y--,E):r,O&&Xt(u[0],u[1],O)&&(E=y<3?r:E,y=1),o=Xe(o);++f<y;){var R=u[f];R&&n(o,R,f,E)}return o})}function Zd(n,o){return function(u,f){if(u==null)return u;if(!rr(u))return n(u,f);for(var y=u.length,E=o?y:-1,O=Xe(u);(o?E--:++E<y)&&f(O[E],E,O)!==!1;);return u}}function Gd(n){return function(o,u,f){for(var y=-1,E=Xe(o),O=f(o),R=O.length;R--;){var L=O[n?R:++y];if(u(E[L],L,E)===!1)break}return o}}function aw(n,o,u){var f=o&x,y=Ro(n);function E(){var O=this&&this!==Mt&&this instanceof E?y:n;return O.apply(f?u:this,arguments)}return E}function Kd(n){return function(o){o=ze(o);var u=Di(o)?kr(o):r,f=u?u[0]:o.charAt(0),y=u?Fn(u,1).join(""):o.slice(1);return f[n]()+y}}function zi(n){return function(o){return hu(Zp(qp(o).replace(V0,"")),n,"")}}function Ro(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var u=Hi(n.prototype),f=n.apply(u,o);return ot(f)?f:u}}function sw(n,o,u){var f=Ro(n);function y(){for(var E=arguments.length,O=U(E),R=E,L=qi(y);R--;)O[R]=arguments[R];var z=E<3&&O[0]!==L&&O[E-1]!==L?[]:Rn(O,L);if(E-=z.length,E<u)return Qd(n,o,ja,y.placeholder,r,O,z,r,r,u-E);var q=this&&this!==Mt&&this instanceof y?f:n;return lr(q,this,O)}return y}function Yd(n){return function(o,u,f){var y=Xe(o);if(!rr(o)){var E=ve(u,3);o=Tt(o),u=function(R){return E(y[R],R,y)}}var O=n(o,u,f);return O>-1?y[E?o[O]:O]:r}}function Vd(n){return pn(function(o){var u=o.length,f=u,y=_r.prototype.thru;for(n&&o.reverse();f--;){var E=o[f];if(typeof E!="function")throw new Er(l);if(y&&!O&&Ba(E)=="wrapper")var O=new _r([],!0)}for(f=O?f:u;++f<u;){E=o[f];var R=Ba(E),L=R=="wrapper"?Ku(E):r;L&&Ju(L[0])&&L[1]==(H|T|A|j)&&!L[4].length&&L[9]==1?O=O[Ba(L[0])].apply(O,L[3]):O=E.length==1&&Ju(E)?O[R]():O.thru(E)}return function(){var z=arguments,q=z[0];if(O&&z.length==1&&Te(q))return O.plant(q).value();for(var G=0,Q=u?o[G].apply(this,z):q;++G<u;)Q=o[G].call(this,Q);return Q}})}function ja(n,o,u,f,y,E,O,R,L,z){var q=o&H,G=o&x,Q=o&C,ie=o&(T|$),me=o&V,Pe=Q?r:Ro(n);function ge(){for(var $e=arguments.length,Ne=U($e),pr=$e;pr--;)Ne[pr]=arguments[pr];if(ie)var Jt=qi(ge),hr=wy(Ne,Jt);if(f&&(Ne=zd(Ne,f,y,ie)),E&&(Ne=qd(Ne,E,O,ie)),$e-=hr,ie&&$e<z){var mt=Rn(Ne,Jt);return Qd(n,o,ja,ge.placeholder,u,Ne,mt,R,L,z-$e)}var Ur=G?u:this,gn=Q?Ur[n]:n;return $e=Ne.length,R?Ne=Tw(Ne,R):me&&$e>1&&Ne.reverse(),q&&L<$e&&(Ne.length=L),this&&this!==Mt&&this instanceof ge&&(gn=Pe||Ro(gn)),gn.apply(Ur,Ne)}return ge}function Xd(n,o){return function(u,f){return $1(u,n,o(f),{})}}function Wa(n,o){return function(u,f){var y;if(u===r&&f===r)return o;if(u!==r&&(y=u),f!==r){if(y===r)return f;typeof u=="string"||typeof f=="string"?(u=fr(u),f=fr(f)):(u=Dd(u),f=Dd(f)),y=n(u,f)}return y}}function zu(n){return pn(function(o){return o=nt(o,cr(ve())),Ie(function(u){var f=this;return n(o,function(y){return lr(y,f,u)})})})}function Ua(n,o){o=o===r?" ":fr(o);var u=o.length;if(u<2)return u?Nu(o,n):o;var f=Nu(o,Ta(n/Ni(o)));return Di(o)?Fn(kr(f),0,n).join(""):f.slice(0,n)}function uw(n,o,u,f){var y=o&x,E=Ro(n);function O(){for(var R=-1,L=arguments.length,z=-1,q=f.length,G=U(q+L),Q=this&&this!==Mt&&this instanceof O?E:n;++z<q;)G[z]=f[z];for(;L--;)G[z++]=arguments[++R];return lr(Q,y?u:this,G)}return O}function Jd(n){return function(o,u,f){return f&&typeof f!="number"&&Xt(o,u,f)&&(u=f=r),o=mn(o),u===r?(u=o,o=0):u=mn(u),f=f===r?o<u?1:-1:mn(f),G1(o,u,f,n)}}function Ha(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=Tr(o),u=Tr(u)),n(o,u)}}function Qd(n,o,u,f,y,E,O,R,L,z){var q=o&T,G=q?O:r,Q=q?r:O,ie=q?E:r,me=q?r:E;o|=q?A:D,o&=~(q?D:A),o&P||(o&=~(x|C));var Pe=[n,o,y,ie,G,me,Q,R,L,z],ge=u.apply(r,Pe);return Ju(n)&&fp(ge,Pe),ge.placeholder=f,dp(ge,n,o)}function qu(n){var o=Et[n];return function(u,f){if(u=Tr(u),f=f==null?0:kt(Ce(f),292),f&&dd(u)){var y=(ze(u)+"e").split("e"),E=o(y[0]+"e"+(+y[1]+f));return y=(ze(E)+"e").split("e"),+(y[0]+"e"+(+y[1]-f))}return o(u)}}var lw=Wi&&1/ga(new Wi([,-0]))[1]==Oe?function(n){return new Wi(n)}:pl;function ep(n){return function(o){var u=jt(o);return u==ut?Su(o):u==rt?Ay(o):yy(o,n(o))}}function dn(n,o,u,f,y,E,O,R){var L=o&C;if(!L&&typeof n!="function")throw new Er(l);var z=f?f.length:0;if(z||(o&=~(A|D),f=y=r),O=O===r?O:_t(Ce(O),0),R=R===r?R:Ce(R),z-=y?y.length:0,o&D){var q=f,G=y;f=y=r}var Q=L?r:Ku(n),ie=[n,o,u,f,y,q,G,E,O,R];if(Q&&xw(ie,Q),n=ie[0],o=ie[1],u=ie[2],f=ie[3],y=ie[4],R=ie[9]=ie[9]===r?L?0:n.length:_t(ie[9]-z,0),!R&&o&(T|$)&&(o&=~(T|$)),!o||o==x)var me=aw(n,o,u);else o==T||o==$?me=sw(n,o,R):(o==A||o==(x|A))&&!y.length?me=uw(n,o,u,f):me=ja.apply(r,ie);var Pe=Q?Ld:fp;return dp(Pe(me,ie),n,o)}function tp(n,o,u,f){return n===r||Wr(n,ji[u])&&!Ge.call(f,u)?o:n}function rp(n,o,u,f,y,E){return ot(n)&&ot(o)&&(E.set(o,n),$a(n,o,r,rp,E),E.delete(o)),n}function cw(n){return Io(n)?r:n}function np(n,o,u,f,y,E){var O=u&_,R=n.length,L=o.length;if(R!=L&&!(O&&L>R))return!1;var z=E.get(n),q=E.get(o);if(z&&q)return z==o&&q==n;var G=-1,Q=!0,ie=u&g?new si:r;for(E.set(n,o),E.set(o,n);++G<R;){var me=n[G],Pe=o[G];if(f)var ge=O?f(Pe,me,G,o,n,E):f(me,Pe,G,n,o,E);if(ge!==r){if(ge)continue;Q=!1;break}if(ie){if(!vu(o,function($e,Ne){if(!go(ie,Ne)&&(me===$e||y(me,$e,u,f,E)))return ie.push(Ne)})){Q=!1;break}}else if(!(me===Pe||y(me,Pe,u,f,E))){Q=!1;break}}return E.delete(n),E.delete(o),Q}function fw(n,o,u,f,y,E,O){switch(u){case ur:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case wr:return!(n.byteLength!=o.byteLength||!E(new _a(n),new _a(o)));case le:case we:case yt:return Wr(+n,+o);case Ve:return n.name==o.name&&n.message==o.message;case et:case yr:return n==o+"";case ut:var R=Su;case rt:var L=f&_;if(R||(R=ga),n.size!=o.size&&!L)return!1;var z=O.get(n);if(z)return z==o;f|=g,O.set(n,o);var q=np(R(n),R(o),f,y,E,O);return O.delete(n),q;case sr:if(Eo)return Eo.call(n)==Eo.call(o)}return!1}function dw(n,o,u,f,y,E){var O=u&_,R=Zu(n),L=R.length,z=Zu(o),q=z.length;if(L!=q&&!O)return!1;for(var G=L;G--;){var Q=R[G];if(!(O?Q in o:Ge.call(o,Q)))return!1}var ie=E.get(n),me=E.get(o);if(ie&&me)return ie==o&&me==n;var Pe=!0;E.set(n,o),E.set(o,n);for(var ge=O;++G<L;){Q=R[G];var $e=n[Q],Ne=o[Q];if(f)var pr=O?f(Ne,$e,Q,o,n,E):f($e,Ne,Q,n,o,E);if(!(pr===r?$e===Ne||y($e,Ne,u,f,E):pr)){Pe=!1;break}ge||(ge=Q=="constructor")}if(Pe&&!ge){var Jt=n.constructor,hr=o.constructor;Jt!=hr&&"constructor"in n&&"constructor"in o&&!(typeof Jt=="function"&&Jt instanceof Jt&&typeof hr=="function"&&hr instanceof hr)&&(Pe=!1)}return E.delete(n),E.delete(o),Pe}function pn(n){return el(lp(n,r,yp),n+"")}function Zu(n){return _d(n,Tt,Vu)}function Gu(n){return _d(n,nr,ip)}var Ku=Ca?function(n){return Ca.get(n)}:pl;function Ba(n){for(var o=n.name+"",u=Ui[o],f=Ge.call(Ui,o)?u.length:0;f--;){var y=u[f],E=y.func;if(E==null||E==n)return y.name}return o}function qi(n){var o=Ge.call(b,"placeholder")?b:n;return o.placeholder}function ve(){var n=b.iteratee||fl;return n=n===fl?Ad:n,arguments.length?n(arguments[0],arguments[1]):n}function za(n,o){var u=n.__data__;return bw(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Yu(n){for(var o=Tt(n),u=o.length;u--;){var f=o[u],y=n[f];o[u]=[f,y,sp(y)]}return o}function ci(n,o){var u=_y(n,o);return Od(u)?u:r}function pw(n){var o=Ge.call(n,oi),u=n[oi];try{n[oi]=r;var f=!0}catch{}var y=Sa.call(n);return f&&(o?n[oi]=u:delete n[oi]),y}var Vu=_u?function(n){return n==null?[]:(n=Xe(n),An(_u(n),function(o){return cd.call(n,o)}))}:hl,ip=_u?function(n){for(var o=[];n;)Tn(o,Vu(n)),n=xa(n);return o}:hl,jt=Vt;(xu&&jt(new xu(new ArrayBuffer(1)))!=ur||wo&&jt(new wo)!=ut||Ou&&jt(Ou.resolve())!=er||Wi&&jt(new Wi)!=rt||bo&&jt(new bo)!=Nt)&&(jt=function(n){var o=Vt(n),u=o==At?n.constructor:r,f=u?fi(u):"";if(f)switch(f){case Yy:return ur;case Vy:return ut;case Xy:return er;case Jy:return rt;case Qy:return Nt}return o});function hw(n,o,u){for(var f=-1,y=u.length;++f<y;){var E=u[f],O=E.size;switch(E.type){case"drop":n+=O;break;case"dropRight":o-=O;break;case"take":o=kt(o,n+O);break;case"takeRight":n=_t(n,o-O);break}}return{start:n,end:o}}function vw(n){var o=n.match(ae);return o?o[1].split(re):[]}function op(n,o,u){o=Mn(o,n);for(var f=-1,y=o.length,E=!1;++f<y;){var O=Vr(o[f]);if(!(E=n!=null&&u(n,O)))break;n=n[O]}return E||++f!=y?E:(y=n==null?0:n.length,!!y&&Xa(y)&&hn(O,y)&&(Te(n)||di(n)))}function mw(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Ge.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function ap(n){return typeof n.constructor=="function"&&!Co(n)?Hi(xa(n)):{}}function gw(n,o,u){var f=n.constructor;switch(o){case wr:return Bu(n);case le:case we:return new f(+n);case ur:return ew(n,u);case Yn:case Vn:case Xn:case Jn:case $r:case un:case It:case Dr:case Nr:return Hd(n,u);case ut:return new f;case yt:case yr:return new f(n);case et:return tw(n);case rt:return new f;case sr:return rw(n)}}function yw(n,o){var u=o.length;if(!u)return n;var f=u-1;return o[f]=(u>1?"& ":"")+o[f],o=o.join(u>2?", ":" "),n.replace(ce,`{
|
|
154
182
|
/* [wrapped with `+o+`] */
|
|
155
|
-
`)}function cw(n){return be(n)||Qn(n)||!!(ld&&n&&n[ld])}function on(n,o){var u=typeof n;return o=o??qe,!!o&&(u=="number"||u!="symbol"&&E0.test(n))&&n>-1&&n%1==0&&n<o}function Bt(n,o,u){if(!tt(u))return!1;var f=typeof o;return(f=="number"?Kt(u)&&on(o,u.length):f=="string"&&o in u)?Rr(u[o],n):!1}function Xu(n,o){if(be(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||nr(n)?!0:iu.test(n)||!nu.test(n)||o!=null&&n in Ge(o)}function fw(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Ju(n){var o=Na(n),u=y[o];if(typeof u!="function"||!(o in Ie.prototype))return!1;if(n===u)return!0;var f=Ku(u);return!!f&&n===f[0]}function dw(n){return!!od&&od in n}var pw=ha?an:vl;function ho(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||Oi;return n===u}function op(n){return n===n&&!tt(n)}function ap(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in Ge(u))}}function hw(n){var o=Ha(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function vw(n,o){var u=n[1],f=o[1],m=u|f,S=m<(E|I|U),_=f==U&&u==R||f==U&&u==j&&n[7].length<=o[8]||f==(U|j)&&o[7].length<=o[8]&&u==R;if(!(S||_))return n;f&E&&(n[2]=o[2],m|=u&E?0:P);var T=o[3];if(T){var L=n[3];n[3]=L?zd(L,T,o[4]):T,n[4]=L?bn(n[3],h):o[4]}return T=o[5],T&&(L=n[5],n[5]=L?Bd(L,T,o[6]):T,n[6]=L?bn(n[5],h):o[6]),T=o[7],T&&(n[7]=T),f&U&&(n[8]=n[8]==null?o[8]:It(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=m,n}function mw(n){var o=[];if(n!=null)for(var u in Ge(n))o.push(u);return o}function gw(n){return ma.call(n)}function sp(n,o,u){return o=gt(o===r?n.length-1:o,0),function(){for(var f=arguments,m=-1,S=gt(f.length-o,0),_=N(S);++m<S;)_[m]=f[o+m];m=-1;for(var T=N(o+1);++m<o;)T[m]=f[m];return T[o]=u(_),er(n,this,T)}}function up(n,o){return o.length<2?n:Vn(n,mr(o,0,-1))}function yw(n,o){for(var u=n.length,f=It(o.length,u),m=Gt(n);f--;){var S=o[f];n[f]=on(S,u)?m[S]:r}return n}function Qu(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var lp=fp(Md),vo=Ly||function(n,o){return At.setTimeout(n,o)},el=fp(U1);function cp(n,o,u){var f=o+"";return el(n,lw(f,ww(aw(f),u)))}function fp(n){var o=0,u=0;return function(){var f=ky(),m=me-(f-u);if(u=f,m>0){if(++o>=xe)return arguments[0]}else o=0;return n.apply(r,arguments)}}function Wa(n,o){var u=-1,f=n.length,m=f-1;for(o=o===r?f:o;++u<o;){var S=Du(u,m),_=n[S];n[S]=n[u],n[u]=_}return n.length=o,n}var dp=hw(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(ou,function(u,f,m,S){o.push(m?S.replace(et,"$1"):f||u)}),o});function Ur(n){if(typeof n=="string"||nr(n))return n;var o=n+"";return o=="0"&&1/n==-_e?"-0":o}function Jn(n){if(n!=null){try{return va.call(n)}catch{}try{return n+""}catch{}}return""}function ww(n,o){return dr(te,function(u){var f="_."+u[0];o&u[1]&&!ca(n,f)&&n.push(f)}),n.sort()}function pp(n){if(n instanceof Ie)return n.clone();var o=new hr(n.__wrapped__,n.__chain__);return o.__actions__=Gt(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function bw(n,o,u){(u?Bt(n,o,u):o===r)?o=1:o=gt(Ee(o),0);var f=n==null?0:n.length;if(!f||o<1)return[];for(var m=0,S=0,_=N(Ea(f/o));m<f;)_[S++]=mr(n,m,m+=o);return _}function Sw(n){for(var o=-1,u=n==null?0:n.length,f=0,m=[];++o<u;){var S=n[o];S&&(m[f++]=S)}return m}function Ew(){var n=arguments.length;if(!n)return[];for(var o=N(n-1),u=arguments[0],f=n;f--;)o[f-1]=arguments[f];return wn(be(u)?Gt(u):[u],Tt(o,1))}var xw=Ae(function(n,o){return at(n)?uo(n,Tt(o,1,at,!0)):[]}),_w=Ae(function(n,o){var u=gr(o);return at(u)&&(u=r),at(n)?uo(n,Tt(o,1,at,!0),ue(u,2)):[]}),Ow=Ae(function(n,o){var u=gr(o);return at(u)&&(u=r),at(n)?uo(n,Tt(o,1,at,!0),r,u):[]});function Aw(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===r?1:Ee(o),mr(n,o<0?0:o,f)):[]}function Tw(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===r?1:Ee(o),o=f-o,mr(n,0,o<0?0:o)):[]}function Cw(n,o){return n&&n.length?Ma(n,ue(o,3),!0,!0):[]}function Rw(n,o){return n&&n.length?Ma(n,ue(o,3),!0):[]}function Pw(n,o,u,f){var m=n==null?0:n.length;return m?(u&&typeof u!="number"&&Bt(n,o,u)&&(u=0,f=m),E1(n,o,u,f)):[]}function hp(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var m=u==null?0:Ee(u);return m<0&&(m=gt(f+m,0)),fa(n,ue(o,3),m)}function vp(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var m=f-1;return u!==r&&(m=Ee(u),m=u<0?gt(f+m,0):It(m,f-1)),fa(n,ue(o,3),m,!0)}function mp(n){var o=n==null?0:n.length;return o?Tt(n,1):[]}function Iw(n){var o=n==null?0:n.length;return o?Tt(n,_e):[]}function Mw(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:Ee(o),Tt(n,o)):[]}function Lw(n){for(var o=-1,u=n==null?0:n.length,f={};++o<u;){var m=n[o];f[m[0]]=m[1]}return f}function gp(n){return n&&n.length?n[0]:r}function $w(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var m=u==null?0:Ee(u);return m<0&&(m=gt(f+m,0)),Si(n,o,m)}function Fw(n){var o=n==null?0:n.length;return o?mr(n,0,-1):[]}var Dw=Ae(function(n){var o=Xe(n,Uu);return o.length&&o[0]===n[0]?Iu(o):[]}),kw=Ae(function(n){var o=gr(n),u=Xe(n,Uu);return o===gr(u)?o=r:u.pop(),u.length&&u[0]===n[0]?Iu(u,ue(o,2)):[]}),Nw=Ae(function(n){var o=gr(n),u=Xe(n,Uu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?Iu(u,r,o):[]});function jw(n,o){return n==null?"":Fy.call(n,o)}function gr(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Ww(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var m=f;return u!==r&&(m=Ee(u),m=m<0?gt(f+m,0):It(m,f-1)),o===o?wy(n,o,m):fa(n,Xf,m,!0)}function Uw(n,o){return n&&n.length?Cd(n,Ee(o)):r}var zw=Ae(yp);function yp(n,o){return n&&n.length&&o&&o.length?Fu(n,o):n}function Bw(n,o,u){return n&&n.length&&o&&o.length?Fu(n,o,ue(u,2)):n}function Hw(n,o,u){return n&&n.length&&o&&o.length?Fu(n,o,r,u):n}var Zw=nn(function(n,o){var u=n==null?0:n.length,f=Tu(n,o);return Id(n,Xe(o,function(m){return on(m,u)?+m:m}).sort(Ud)),f});function qw(n,o){var u=[];if(!(n&&n.length))return u;var f=-1,m=[],S=n.length;for(o=ue(o,3);++f<S;){var _=n[f];o(_,f,n)&&(u.push(_),m.push(f))}return Id(n,m),u}function tl(n){return n==null?n:jy.call(n)}function Gw(n,o,u){var f=n==null?0:n.length;return f?(u&&typeof u!="number"&&Bt(n,o,u)?(o=0,u=f):(o=o==null?0:Ee(o),u=u===r?f:Ee(u)),mr(n,o,u)):[]}function Kw(n,o){return Ia(n,o)}function Yw(n,o,u){return Nu(n,o,ue(u,2))}function Vw(n,o){var u=n==null?0:n.length;if(u){var f=Ia(n,o);if(f<u&&Rr(n[f],o))return f}return-1}function Xw(n,o){return Ia(n,o,!0)}function Jw(n,o,u){return Nu(n,o,ue(u,2),!0)}function Qw(n,o){var u=n==null?0:n.length;if(u){var f=Ia(n,o,!0)-1;if(Rr(n[f],o))return f}return-1}function eb(n){return n&&n.length?Ld(n):[]}function tb(n,o){return n&&n.length?Ld(n,ue(o,2)):[]}function rb(n){var o=n==null?0:n.length;return o?mr(n,1,o):[]}function nb(n,o,u){return n&&n.length?(o=u||o===r?1:Ee(o),mr(n,0,o<0?0:o)):[]}function ib(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===r?1:Ee(o),o=f-o,mr(n,o<0?0:o,f)):[]}function ob(n,o){return n&&n.length?Ma(n,ue(o,3),!1,!0):[]}function ab(n,o){return n&&n.length?Ma(n,ue(o,3)):[]}var sb=Ae(function(n){return xn(Tt(n,1,at,!0))}),ub=Ae(function(n){var o=gr(n);return at(o)&&(o=r),xn(Tt(n,1,at,!0),ue(o,2))}),lb=Ae(function(n){var o=gr(n);return o=typeof o=="function"?o:r,xn(Tt(n,1,at,!0),r,o)});function cb(n){return n&&n.length?xn(n):[]}function fb(n,o){return n&&n.length?xn(n,ue(o,2)):[]}function db(n,o){return o=typeof o=="function"?o:r,n&&n.length?xn(n,r,o):[]}function rl(n){if(!(n&&n.length))return[];var o=0;return n=yn(n,function(u){if(at(u))return o=gt(u.length,o),!0}),wu(o,function(u){return Xe(n,mu(u))})}function wp(n,o){if(!(n&&n.length))return[];var u=rl(n);return o==null?u:Xe(u,function(f){return er(o,r,f)})}var pb=Ae(function(n,o){return at(n)?uo(n,o):[]}),hb=Ae(function(n){return Wu(yn(n,at))}),vb=Ae(function(n){var o=gr(n);return at(o)&&(o=r),Wu(yn(n,at),ue(o,2))}),mb=Ae(function(n){var o=gr(n);return o=typeof o=="function"?o:r,Wu(yn(n,at),r,o)}),gb=Ae(rl);function yb(n,o){return kd(n||[],o||[],so)}function wb(n,o){return kd(n||[],o||[],fo)}var bb=Ae(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,wp(n,u)});function bp(n){var o=y(n);return o.__chain__=!0,o}function Sb(n,o){return o(n),n}function Ua(n,o){return o(n)}var Eb=nn(function(n){var o=n.length,u=o?n[0]:0,f=this.__wrapped__,m=function(S){return Tu(S,n)};return o>1||this.__actions__.length||!(f instanceof Ie)||!on(u)?this.thru(m):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:Ua,args:[m],thisArg:r}),new hr(f,this.__chain__).thru(function(S){return o&&!S.length&&S.push(r),S}))});function xb(){return bp(this)}function _b(){return new hr(this.value(),this.__chain__)}function Ob(){this.__values__===r&&(this.__values__=$p(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function Ab(){return this}function Tb(n){for(var o,u=this;u instanceof Aa;){var f=pp(u);f.__index__=0,f.__values__=r,o?m.__wrapped__=f:o=f;var m=f;u=u.__wrapped__}return m.__wrapped__=n,o}function Cb(){var n=this.__wrapped__;if(n instanceof Ie){var o=n;return this.__actions__.length&&(o=new Ie(this)),o=o.reverse(),o.__actions__.push({func:Ua,args:[tl],thisArg:r}),new hr(o,this.__chain__)}return this.thru(tl)}function Rb(){return Dd(this.__wrapped__,this.__actions__)}var Pb=La(function(n,o,u){ze.call(n,u)?++n[u]:tn(n,u,1)});function Ib(n,o,u){var f=be(n)?Yf:S1;return u&&Bt(n,o,u)&&(o=r),f(n,ue(o,3))}function Mb(n,o){var u=be(n)?yn:wd;return u(n,ue(o,3))}var Lb=Gd(hp),$b=Gd(vp);function Fb(n,o){return Tt(za(n,o),1)}function Db(n,o){return Tt(za(n,o),_e)}function kb(n,o,u){return u=u===r?1:Ee(u),Tt(za(n,o),u)}function Sp(n,o){var u=be(n)?dr:En;return u(n,ue(o,3))}function Ep(n,o){var u=be(n)?ry:yd;return u(n,ue(o,3))}var Nb=La(function(n,o,u){ze.call(n,u)?n[u].push(o):tn(n,u,[o])});function jb(n,o,u,f){n=Kt(n)?n:Li(n),u=u&&!f?Ee(u):0;var m=n.length;return u<0&&(u=gt(m+u,0)),Ga(n)?u<=m&&n.indexOf(o,u)>-1:!!m&&Si(n,o,u)>-1}var Wb=Ae(function(n,o,u){var f=-1,m=typeof o=="function",S=Kt(n)?N(n.length):[];return En(n,function(_){S[++f]=m?er(o,_,u):lo(_,o,u)}),S}),Ub=La(function(n,o,u){tn(n,u,o)});function za(n,o){var u=be(n)?Xe:Od;return u(n,ue(o,3))}function zb(n,o,u,f){return n==null?[]:(be(o)||(o=o==null?[]:[o]),u=f?r:u,be(u)||(u=u==null?[]:[u]),Rd(n,o,u))}var Bb=La(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function Hb(n,o,u){var f=be(n)?hu:Qf,m=arguments.length<3;return f(n,ue(o,4),u,m,En)}function Zb(n,o,u){var f=be(n)?ny:Qf,m=arguments.length<3;return f(n,ue(o,4),u,m,yd)}function qb(n,o){var u=be(n)?yn:wd;return u(n,Za(ue(o,3)))}function Gb(n){var o=be(n)?hd:j1;return o(n)}function Kb(n,o,u){(u?Bt(n,o,u):o===r)?o=1:o=Ee(o);var f=be(n)?m1:W1;return f(n,o)}function Yb(n){var o=be(n)?g1:z1;return o(n)}function Vb(n){if(n==null)return 0;if(Kt(n))return Ga(n)?xi(n):n.length;var o=Mt(n);return o==ct||o==ft?n.size:Lu(n).length}function Xb(n,o,u){var f=be(n)?vu:B1;return u&&Bt(n,o,u)&&(o=r),f(n,ue(o,3))}var Jb=Ae(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Bt(n,o[0],o[1])?o=[]:u>2&&Bt(o[0],o[1],o[2])&&(o=[o[0]]),Rd(n,Tt(o,1),[])}),Ba=My||function(){return At.Date.now()};function Qb(n,o){if(typeof o!="function")throw new pr(l);return n=Ee(n),function(){if(--n<1)return o.apply(this,arguments)}}function xp(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,rn(n,U,r,r,r,r,o)}function _p(n,o){var u;if(typeof o!="function")throw new pr(l);return n=Ee(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var nl=Ae(function(n,o,u){var f=E;if(u.length){var m=bn(u,Ii(nl));f|=O}return rn(n,f,o,u,m)}),Op=Ae(function(n,o,u){var f=E|I;if(u.length){var m=bn(u,Ii(Op));f|=O}return rn(o,f,n,u,m)});function Ap(n,o,u){o=u?r:o;var f=rn(n,R,r,r,r,r,r,o);return f.placeholder=Ap.placeholder,f}function Tp(n,o,u){o=u?r:o;var f=rn(n,F,r,r,r,r,r,o);return f.placeholder=Tp.placeholder,f}function Cp(n,o,u){var f,m,S,_,T,L,z=0,B=!1,Z=!1,X=!0;if(typeof n!="function")throw new pr(l);o=yr(o)||0,tt(u)&&(B=!!u.leading,Z="maxWait"in u,S=Z?gt(yr(u.maxWait)||0,o):S,X="trailing"in u?!!u.trailing:X);function re(st){var Pr=f,un=m;return f=m=r,z=st,_=n.apply(un,Pr),_}function ce(st){return z=st,T=vo(Pe,o),B?re(st):_}function Oe(st){var Pr=st-L,un=st-z,Gp=o-Pr;return Z?It(Gp,S-un):Gp}function fe(st){var Pr=st-L,un=st-z;return L===r||Pr>=o||Pr<0||Z&&un>=S}function Pe(){var st=Ba();if(fe(st))return Le(st);T=vo(Pe,Oe(st))}function Le(st){return T=r,X&&f?re(st):(f=m=r,_)}function ir(){T!==r&&Nd(T),z=0,f=L=m=T=r}function Ht(){return T===r?_:Le(Ba())}function or(){var st=Ba(),Pr=fe(st);if(f=arguments,m=this,L=st,Pr){if(T===r)return ce(L);if(Z)return Nd(T),T=vo(Pe,o),re(L)}return T===r&&(T=vo(Pe,o)),_}return or.cancel=ir,or.flush=Ht,or}var eS=Ae(function(n,o){return gd(n,1,o)}),tS=Ae(function(n,o,u){return gd(n,yr(o)||0,u)});function rS(n){return rn(n,G)}function Ha(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new pr(l);var u=function(){var f=arguments,m=o?o.apply(this,f):f[0],S=u.cache;if(S.has(m))return S.get(m);var _=n.apply(this,f);return u.cache=S.set(m,_)||S,_};return u.cache=new(Ha.Cache||en),u}Ha.Cache=en;function Za(n){if(typeof n!="function")throw new pr(l);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function nS(n){return _p(2,n)}var iS=H1(function(n,o){o=o.length==1&&be(o[0])?Xe(o[0],tr(ue())):Xe(Tt(o,1),tr(ue()));var u=o.length;return Ae(function(f){for(var m=-1,S=It(f.length,u);++m<S;)f[m]=o[m].call(this,f[m]);return er(n,this,f)})}),il=Ae(function(n,o){var u=bn(o,Ii(il));return rn(n,O,r,o,u)}),Rp=Ae(function(n,o){var u=bn(o,Ii(Rp));return rn(n,D,r,o,u)}),oS=nn(function(n,o){return rn(n,j,r,r,r,o)});function aS(n,o){if(typeof n!="function")throw new pr(l);return o=o===r?o:Ee(o),Ae(n,o)}function sS(n,o){if(typeof n!="function")throw new pr(l);return o=o==null?0:gt(Ee(o),0),Ae(function(u){var f=u[o],m=On(u,0,o);return f&&wn(m,f),er(n,this,m)})}function uS(n,o,u){var f=!0,m=!0;if(typeof n!="function")throw new pr(l);return tt(u)&&(f="leading"in u?!!u.leading:f,m="trailing"in u?!!u.trailing:m),Cp(n,o,{leading:f,maxWait:o,trailing:m})}function lS(n){return xp(n,1)}function cS(n,o){return il(zu(o),n)}function fS(){if(!arguments.length)return[];var n=arguments[0];return be(n)?n:[n]}function dS(n){return vr(n,w)}function pS(n,o){return o=typeof o=="function"?o:r,vr(n,w,o)}function hS(n){return vr(n,b|w)}function vS(n,o){return o=typeof o=="function"?o:r,vr(n,b|w,o)}function mS(n,o){return o==null||md(n,o,Et(o))}function Rr(n,o){return n===o||n!==n&&o!==o}var gS=ka(Pu),yS=ka(function(n,o){return n>=o}),Qn=Ed(function(){return arguments}())?Ed:function(n){return it(n)&&ze.call(n,"callee")&&!ud.call(n,"callee")},be=N.isArray,wS=Bf?tr(Bf):T1;function Kt(n){return n!=null&&qa(n.length)&&!an(n)}function at(n){return it(n)&&Kt(n)}function bS(n){return n===!0||n===!1||it(n)&&zt(n)==se}var An=$y||vl,SS=Hf?tr(Hf):C1;function ES(n){return it(n)&&n.nodeType===1&&!mo(n)}function xS(n){if(n==null)return!0;if(Kt(n)&&(be(n)||typeof n=="string"||typeof n.splice=="function"||An(n)||Mi(n)||Qn(n)))return!n.length;var o=Mt(n);if(o==ct||o==ft)return!n.size;if(ho(n))return!Lu(n).length;for(var u in n)if(ze.call(n,u))return!1;return!0}function _S(n,o){return co(n,o)}function OS(n,o,u){u=typeof u=="function"?u:r;var f=u?u(n,o):r;return f===r?co(n,o,r,u):!!f}function ol(n){if(!it(n))return!1;var o=zt(n);return o==Ye||o==Se||typeof n.message=="string"&&typeof n.name=="string"&&!mo(n)}function AS(n){return typeof n=="number"&&cd(n)}function an(n){if(!tt(n))return!1;var o=zt(n);return o==V||o==ht||o==he||o==Yi}function Pp(n){return typeof n=="number"&&n==Ee(n)}function qa(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=qe}function tt(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function it(n){return n!=null&&typeof n=="object"}var Ip=Zf?tr(Zf):P1;function TS(n,o){return n===o||Mu(n,o,Yu(o))}function CS(n,o,u){return u=typeof u=="function"?u:r,Mu(n,o,Yu(o),u)}function RS(n){return Mp(n)&&n!=+n}function PS(n){if(pw(n))throw new ge(s);return xd(n)}function IS(n){return n===null}function MS(n){return n==null}function Mp(n){return typeof n=="number"||it(n)&&zt(n)==Wt}function mo(n){if(!it(n)||zt(n)!=Ut)return!1;var o=wa(n);if(o===null)return!0;var u=ze.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&va.call(u)==Cy}var al=qf?tr(qf):I1;function LS(n){return Pp(n)&&n>=-qe&&n<=qe}var Lp=Gf?tr(Gf):M1;function Ga(n){return typeof n=="string"||!be(n)&&it(n)&&zt(n)==Fr}function nr(n){return typeof n=="symbol"||it(n)&&zt(n)==Dr}var Mi=Kf?tr(Kf):L1;function $S(n){return n===r}function FS(n){return it(n)&&Mt(n)==lr}function DS(n){return it(n)&&zt(n)==yi}var kS=ka($u),NS=ka(function(n,o){return n<=o});function $p(n){if(!n)return[];if(Kt(n))return Ga(n)?Tr(n):Gt(n);if(ro&&n[ro])return my(n[ro]());var o=Mt(n),u=o==ct?Su:o==ft?da:Li;return u(n)}function sn(n){if(!n)return n===0?n:0;if(n=yr(n),n===_e||n===-_e){var o=n<0?-1:1;return o*St}return n===n?n:0}function Ee(n){var o=sn(n),u=o%1;return o===o?u?o-u:o:0}function Fp(n){return n?Yn(Ee(n),0,K):0}function yr(n){if(typeof n=="number")return n;if(nr(n))return H;if(tt(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=tt(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=ed(n);var u=aa.test(n);return u||S0.test(n)?Q0(n.slice(2),u?2:8):gn.test(n)?H:+n}function Dp(n){return Wr(n,Yt(n))}function jS(n){return n?Yn(Ee(n),-qe,qe):n===0?n:0}function Ne(n){return n==null?"":rr(n)}var WS=Ri(function(n,o){if(ho(o)||Kt(o)){Wr(o,Et(o),n);return}for(var u in o)ze.call(o,u)&&so(n,u,o[u])}),kp=Ri(function(n,o){Wr(o,Yt(o),n)}),Ka=Ri(function(n,o,u,f){Wr(o,Yt(o),n,f)}),US=Ri(function(n,o,u,f){Wr(o,Et(o),n,f)}),zS=nn(Tu);function BS(n,o){var u=Ci(n);return o==null?u:vd(u,o)}var HS=Ae(function(n,o){n=Ge(n);var u=-1,f=o.length,m=f>2?o[2]:r;for(m&&Bt(o[0],o[1],m)&&(f=1);++u<f;)for(var S=o[u],_=Yt(S),T=-1,L=_.length;++T<L;){var z=_[T],B=n[z];(B===r||Rr(B,Oi[z])&&!ze.call(n,z))&&(n[z]=S[z])}return n}),ZS=Ae(function(n){return n.push(r,ep),er(Np,r,n)});function qS(n,o){return Vf(n,ue(o,3),jr)}function GS(n,o){return Vf(n,ue(o,3),Ru)}function KS(n,o){return n==null?n:Cu(n,ue(o,3),Yt)}function YS(n,o){return n==null?n:bd(n,ue(o,3),Yt)}function VS(n,o){return n&&jr(n,ue(o,3))}function XS(n,o){return n&&Ru(n,ue(o,3))}function JS(n){return n==null?[]:Ra(n,Et(n))}function QS(n){return n==null?[]:Ra(n,Yt(n))}function sl(n,o,u){var f=n==null?r:Vn(n,o);return f===r?u:f}function eE(n,o){return n!=null&&np(n,o,x1)}function ul(n,o){return n!=null&&np(n,o,_1)}var tE=Yd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=ma.call(o)),n[o]=u},cl(Vt)),rE=Yd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=ma.call(o)),ze.call(n,o)?n[o].push(u):n[o]=[u]},ue),nE=Ae(lo);function Et(n){return Kt(n)?pd(n):Lu(n)}function Yt(n){return Kt(n)?pd(n,!0):$1(n)}function iE(n,o){var u={};return o=ue(o,3),jr(n,function(f,m,S){tn(u,o(f,m,S),f)}),u}function oE(n,o){var u={};return o=ue(o,3),jr(n,function(f,m,S){tn(u,m,o(f,m,S))}),u}var aE=Ri(function(n,o,u){Pa(n,o,u)}),Np=Ri(function(n,o,u,f){Pa(n,o,u,f)}),sE=nn(function(n,o){var u={};if(n==null)return u;var f=!1;o=Xe(o,function(S){return S=_n(S,n),f||(f=S.length>1),S}),Wr(n,Gu(n),u),f&&(u=vr(u,b|v|w,tw));for(var m=o.length;m--;)ju(u,o[m]);return u});function uE(n,o){return jp(n,Za(ue(o)))}var lE=nn(function(n,o){return n==null?{}:D1(n,o)});function jp(n,o){if(n==null)return{};var u=Xe(Gu(n),function(f){return[f]});return o=ue(o),Pd(n,u,function(f,m){return o(f,m[0])})}function cE(n,o,u){o=_n(o,n);var f=-1,m=o.length;for(m||(m=1,n=r);++f<m;){var S=n==null?r:n[Ur(o[f])];S===r&&(f=m,S=u),n=an(S)?S.call(n):S}return n}function fE(n,o,u){return n==null?n:fo(n,o,u)}function dE(n,o,u,f){return f=typeof f=="function"?f:r,n==null?n:fo(n,o,u,f)}var Wp=Jd(Et),Up=Jd(Yt);function pE(n,o,u){var f=be(n),m=f||An(n)||Mi(n);if(o=ue(o,4),u==null){var S=n&&n.constructor;m?u=f?new S:[]:tt(n)?u=an(S)?Ci(wa(n)):{}:u={}}return(m?dr:jr)(n,function(_,T,L){return o(u,_,T,L)}),u}function hE(n,o){return n==null?!0:ju(n,o)}function vE(n,o,u){return n==null?n:Fd(n,o,zu(u))}function mE(n,o,u,f){return f=typeof f=="function"?f:r,n==null?n:Fd(n,o,zu(u),f)}function Li(n){return n==null?[]:bu(n,Et(n))}function gE(n){return n==null?[]:bu(n,Yt(n))}function yE(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=yr(u),u=u===u?u:0),o!==r&&(o=yr(o),o=o===o?o:0),Yn(yr(n),o,u)}function wE(n,o,u){return o=sn(o),u===r?(u=o,o=0):u=sn(u),n=yr(n),O1(n,o,u)}function bE(n,o,u){if(u&&typeof u!="boolean"&&Bt(n,o,u)&&(o=u=r),u===r&&(typeof o=="boolean"?(u=o,o=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&o===r?(n=0,o=1):(n=sn(n),o===r?(o=n,n=0):o=sn(o)),n>o){var f=n;n=o,o=f}if(u||n%1||o%1){var m=fd();return It(n+m*(o-n+J0("1e-"+((m+"").length-1))),o)}return Du(n,o)}var SE=Pi(function(n,o,u){return o=o.toLowerCase(),n+(u?zp(o):o)});function zp(n){return ll(Ne(n).toLowerCase())}function Bp(n){return n=Ne(n),n&&n.replace(x0,fy).replace(z0,"")}function EE(n,o,u){n=Ne(n),o=rr(o);var f=n.length;u=u===r?f:Yn(Ee(u),0,f);var m=u;return u-=o.length,u>=0&&n.slice(u,m)==o}function xE(n){return n=Ne(n),n&&tu.test(n)?n.replace(eo,dy):n}function _E(n){return n=Ne(n),n&&q.test(n)?n.replace(A,"\\$&"):n}var OE=Pi(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),AE=Pi(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),TE=qd("toLowerCase");function CE(n,o,u){n=Ne(n),o=Ee(o);var f=o?xi(n):0;if(!o||f>=o)return n;var m=(o-f)/2;return Da(xa(m),u)+n+Da(Ea(m),u)}function RE(n,o,u){n=Ne(n),o=Ee(o);var f=o?xi(n):0;return o&&f<o?n+Da(o-f,u):n}function PE(n,o,u){n=Ne(n),o=Ee(o);var f=o?xi(n):0;return o&&f<o?Da(o-f,u)+n:n}function IE(n,o,u){return u||o==null?o=0:o&&(o=+o),Ny(Ne(n).replace(Q,""),o||0)}function ME(n,o,u){return(u?Bt(n,o,u):o===r)?o=1:o=Ee(o),ku(Ne(n),o)}function LE(){var n=arguments,o=Ne(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var $E=Pi(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function FE(n,o,u){return u&&typeof u!="number"&&Bt(n,o,u)&&(o=u=r),u=u===r?K:u>>>0,u?(n=Ne(n),n&&(typeof o=="string"||o!=null&&!al(o))&&(o=rr(o),!o&&Ei(n))?On(Tr(n),0,u):n.split(o,u)):[]}var DE=Pi(function(n,o,u){return n+(u?" ":"")+ll(o)});function kE(n,o,u){return n=Ne(n),u=u==null?0:Yn(Ee(u),0,n.length),o=rr(o),n.slice(u,u+o.length)==o}function NE(n,o,u){var f=y.templateSettings;u&&Bt(n,o,u)&&(o=r),n=Ne(n),o=Ka({},o,f,Qd);var m=Ka({},o.imports,f.imports,Qd),S=Et(m),_=bu(m,S),T,L,z=0,B=o.interpolate||sa,Z="__p += '",X=Eu((o.escape||sa).source+"|"+B.source+"|"+(B===oa?nt:sa).source+"|"+(o.evaluate||sa).source+"|$","g"),re="//# sourceURL="+(ze.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++G0+"]")+`
|
|
156
|
-
`;n.replace(
|
|
157
|
-
__e(
|
|
158
|
-
'`),
|
|
159
|
-
`+
|
|
160
|
-
__p += '`),
|
|
161
|
-
((__t = (`+
|
|
162
|
-
'`),z=
|
|
163
|
-
`;var
|
|
164
|
-
`+
|
|
183
|
+
`)}function ww(n){return Te(n)||di(n)||!!(fd&&n&&n[fd])}function hn(n,o){var u=typeof n;return o=o??Be,!!o&&(u=="number"||u!="symbol"&&I0.test(n))&&n>-1&&n%1==0&&n<o}function Xt(n,o,u){if(!ot(u))return!1;var f=typeof o;return(f=="number"?rr(u)&&hn(o,u.length):f=="string"&&o in u)?Wr(u[o],n):!1}function Xu(n,o){if(Te(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||dr(n)?!0:vo.test(n)||!ho.test(n)||o!=null&&n in Xe(o)}function bw(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Ju(n){var o=Ba(n),u=b[o];if(typeof u!="function"||!(o in De.prototype))return!1;if(n===u)return!0;var f=Ku(u);return!!f&&n===f[0]}function Sw(n){return!!sd&&sd in n}var Ew=wa?vn:vl;function Co(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ji;return n===u}function sp(n){return n===n&&!ot(n)}function up(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in Xe(u))}}function _w(n){var o=Ya(n,function(f){return u.size===p&&u.clear(),f}),u=o.cache;return o}function xw(n,o){var u=n[1],f=o[1],y=u|f,E=y<(x|C|H),O=f==H&&u==T||f==H&&u==j&&n[7].length<=o[8]||f==(H|j)&&o[7].length<=o[8]&&u==T;if(!(E||O))return n;f&x&&(n[2]=o[2],y|=u&x?0:P);var R=o[3];if(R){var L=n[3];n[3]=L?zd(L,R,o[4]):R,n[4]=L?Rn(n[3],h):o[4]}return R=o[5],R&&(L=n[5],n[5]=L?qd(L,R,o[6]):R,n[6]=L?Rn(n[5],h):o[6]),R=o[7],R&&(n[7]=R),f&H&&(n[8]=n[8]==null?o[8]:kt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=y,n}function Ow(n){var o=[];if(n!=null)for(var u in Xe(n))o.push(u);return o}function Aw(n){return Sa.call(n)}function lp(n,o,u){return o=_t(o===r?n.length-1:o,0),function(){for(var f=arguments,y=-1,E=_t(f.length-o,0),O=U(E);++y<E;)O[y]=f[o+y];y=-1;for(var R=U(o+1);++y<o;)R[y]=f[y];return R[o]=u(O),lr(n,this,R)}}function cp(n,o){return o.length<2?n:li(n,Or(o,0,-1))}function Tw(n,o){for(var u=n.length,f=kt(o.length,u),y=tr(n);f--;){var E=o[f];n[f]=hn(E,u)?y[E]:r}return n}function Qu(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var fp=pp(Ld),Po=Hy||function(n,o){return Mt.setTimeout(n,o)},el=pp(V1);function dp(n,o,u){var f=o+"";return el(n,yw(f,Rw(vw(f),u)))}function pp(n){var o=0,u=0;return function(){var f=Zy(),y=Ee-(f-u);if(u=f,y>0){if(++o>=Re)return arguments[0]}else o=0;return n.apply(r,arguments)}}function qa(n,o){var u=-1,f=n.length,y=f-1;for(o=o===r?f:o;++u<o;){var E=Du(u,y),O=n[E];n[E]=n[u],n[u]=O}return n.length=o,n}var hp=_w(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(mo,function(u,f,y,E){o.push(y?E.replace(_e,"$1"):f||u)}),o});function Vr(n){if(typeof n=="string"||dr(n))return n;var o=n+"";return o=="0"&&1/n==-Oe?"-0":o}function fi(n){if(n!=null){try{return ba.call(n)}catch{}try{return n+""}catch{}}return""}function Rw(n,o){return Sr(fe,function(u){var f="_."+u[0];o&u[1]&&!va(n,f)&&n.push(f)}),n.sort()}function vp(n){if(n instanceof De)return n.clone();var o=new _r(n.__wrapped__,n.__chain__);return o.__actions__=tr(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function Cw(n,o,u){(u?Xt(n,o,u):o===r)?o=1:o=_t(Ce(o),0);var f=n==null?0:n.length;if(!f||o<1)return[];for(var y=0,E=0,O=U(Ta(f/o));y<f;)O[E++]=Or(n,y,y+=o);return O}function Pw(n){for(var o=-1,u=n==null?0:n.length,f=0,y=[];++o<u;){var E=n[o];E&&(y[f++]=E)}return y}function Iw(){var n=arguments.length;if(!n)return[];for(var o=U(n-1),u=arguments[0],f=n;f--;)o[f-1]=arguments[f];return Tn(Te(u)?tr(u):[u],Ft(o,1))}var Mw=Ie(function(n,o){return vt(n)?xo(n,Ft(o,1,vt,!0)):[]}),Fw=Ie(function(n,o){var u=Ar(o);return vt(u)&&(u=r),vt(n)?xo(n,Ft(o,1,vt,!0),ve(u,2)):[]}),Lw=Ie(function(n,o){var u=Ar(o);return vt(u)&&(u=r),vt(n)?xo(n,Ft(o,1,vt,!0),r,u):[]});function $w(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===r?1:Ce(o),Or(n,o<0?0:o,f)):[]}function Dw(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===r?1:Ce(o),o=f-o,Or(n,0,o<0?0:o)):[]}function Nw(n,o){return n&&n.length?Na(n,ve(o,3),!0,!0):[]}function kw(n,o){return n&&n.length?Na(n,ve(o,3),!0):[]}function jw(n,o,u,f){var y=n==null?0:n.length;return y?(u&&typeof u!="number"&&Xt(n,o,u)&&(u=0,f=y),I1(n,o,u,f)):[]}function mp(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var y=u==null?0:Ce(u);return y<0&&(y=_t(f+y,0)),ma(n,ve(o,3),y)}function gp(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var y=f-1;return u!==r&&(y=Ce(u),y=u<0?_t(f+y,0):kt(y,f-1)),ma(n,ve(o,3),y,!0)}function yp(n){var o=n==null?0:n.length;return o?Ft(n,1):[]}function Ww(n){var o=n==null?0:n.length;return o?Ft(n,Oe):[]}function Uw(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:Ce(o),Ft(n,o)):[]}function Hw(n){for(var o=-1,u=n==null?0:n.length,f={};++o<u;){var y=n[o];f[y[0]]=y[1]}return f}function wp(n){return n&&n.length?n[0]:r}function Bw(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var y=u==null?0:Ce(u);return y<0&&(y=_t(f+y,0)),$i(n,o,y)}function zw(n){var o=n==null?0:n.length;return o?Or(n,0,-1):[]}var qw=Ie(function(n){var o=nt(n,Uu);return o.length&&o[0]===n[0]?Iu(o):[]}),Zw=Ie(function(n){var o=Ar(n),u=nt(n,Uu);return o===Ar(u)?o=r:u.pop(),u.length&&u[0]===n[0]?Iu(u,ve(o,2)):[]}),Gw=Ie(function(n){var o=Ar(n),u=nt(n,Uu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?Iu(u,r,o):[]});function Kw(n,o){return n==null?"":zy.call(n,o)}function Ar(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Yw(n,o,u){var f=n==null?0:n.length;if(!f)return-1;var y=f;return u!==r&&(y=Ce(u),y=y<0?_t(f+y,0):kt(y,f-1)),o===o?Ry(n,o,y):ma(n,Qf,y,!0)}function Vw(n,o){return n&&n.length?Pd(n,Ce(o)):r}var Xw=Ie(bp);function bp(n,o){return n&&n.length&&o&&o.length?$u(n,o):n}function Jw(n,o,u){return n&&n.length&&o&&o.length?$u(n,o,ve(u,2)):n}function Qw(n,o,u){return n&&n.length&&o&&o.length?$u(n,o,r,u):n}var eb=pn(function(n,o){var u=n==null?0:n.length,f=Tu(n,o);return Fd(n,nt(o,function(y){return hn(y,u)?+y:y}).sort(Bd)),f});function tb(n,o){var u=[];if(!(n&&n.length))return u;var f=-1,y=[],E=n.length;for(o=ve(o,3);++f<E;){var O=n[f];o(O,f,n)&&(u.push(O),y.push(f))}return Fd(n,y),u}function tl(n){return n==null?n:Ky.call(n)}function rb(n,o,u){var f=n==null?0:n.length;return f?(u&&typeof u!="number"&&Xt(n,o,u)?(o=0,u=f):(o=o==null?0:Ce(o),u=u===r?f:Ce(u)),Or(n,o,u)):[]}function nb(n,o){return Da(n,o)}function ib(n,o,u){return ku(n,o,ve(u,2))}function ob(n,o){var u=n==null?0:n.length;if(u){var f=Da(n,o);if(f<u&&Wr(n[f],o))return f}return-1}function ab(n,o){return Da(n,o,!0)}function sb(n,o,u){return ku(n,o,ve(u,2),!0)}function ub(n,o){var u=n==null?0:n.length;if(u){var f=Da(n,o,!0)-1;if(Wr(n[f],o))return f}return-1}function lb(n){return n&&n.length?$d(n):[]}function cb(n,o){return n&&n.length?$d(n,ve(o,2)):[]}function fb(n){var o=n==null?0:n.length;return o?Or(n,1,o):[]}function db(n,o,u){return n&&n.length?(o=u||o===r?1:Ce(o),Or(n,0,o<0?0:o)):[]}function pb(n,o,u){var f=n==null?0:n.length;return f?(o=u||o===r?1:Ce(o),o=f-o,Or(n,o<0?0:o,f)):[]}function hb(n,o){return n&&n.length?Na(n,ve(o,3),!1,!0):[]}function vb(n,o){return n&&n.length?Na(n,ve(o,3)):[]}var mb=Ie(function(n){return In(Ft(n,1,vt,!0))}),gb=Ie(function(n){var o=Ar(n);return vt(o)&&(o=r),In(Ft(n,1,vt,!0),ve(o,2))}),yb=Ie(function(n){var o=Ar(n);return o=typeof o=="function"?o:r,In(Ft(n,1,vt,!0),r,o)});function wb(n){return n&&n.length?In(n):[]}function bb(n,o){return n&&n.length?In(n,ve(o,2)):[]}function Sb(n,o){return o=typeof o=="function"?o:r,n&&n.length?In(n,r,o):[]}function rl(n){if(!(n&&n.length))return[];var o=0;return n=An(n,function(u){if(vt(u))return o=_t(u.length,o),!0}),wu(o,function(u){return nt(n,mu(u))})}function Sp(n,o){if(!(n&&n.length))return[];var u=rl(n);return o==null?u:nt(u,function(f){return lr(o,r,f)})}var Eb=Ie(function(n,o){return vt(n)?xo(n,o):[]}),_b=Ie(function(n){return Wu(An(n,vt))}),xb=Ie(function(n){var o=Ar(n);return vt(o)&&(o=r),Wu(An(n,vt),ve(o,2))}),Ob=Ie(function(n){var o=Ar(n);return o=typeof o=="function"?o:r,Wu(An(n,vt),r,o)}),Ab=Ie(rl);function Tb(n,o){return jd(n||[],o||[],_o)}function Rb(n,o){return jd(n||[],o||[],To)}var Cb=Ie(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,Sp(n,u)});function Ep(n){var o=b(n);return o.__chain__=!0,o}function Pb(n,o){return o(n),n}function Za(n,o){return o(n)}var Ib=pn(function(n){var o=n.length,u=o?n[0]:0,f=this.__wrapped__,y=function(E){return Tu(E,n)};return o>1||this.__actions__.length||!(f instanceof De)||!hn(u)?this.thru(y):(f=f.slice(u,+u+(o?1:0)),f.__actions__.push({func:Za,args:[y],thisArg:r}),new _r(f,this.__chain__).thru(function(E){return o&&!E.length&&E.push(r),E}))});function Mb(){return Ep(this)}function Fb(){return new _r(this.value(),this.__chain__)}function Lb(){this.__values__===r&&(this.__values__=Dp(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function $b(){return this}function Db(n){for(var o,u=this;u instanceof Ia;){var f=vp(u);f.__index__=0,f.__values__=r,o?y.__wrapped__=f:o=f;var y=f;u=u.__wrapped__}return y.__wrapped__=n,o}function Nb(){var n=this.__wrapped__;if(n instanceof De){var o=n;return this.__actions__.length&&(o=new De(this)),o=o.reverse(),o.__actions__.push({func:Za,args:[tl],thisArg:r}),new _r(o,this.__chain__)}return this.thru(tl)}function kb(){return kd(this.__wrapped__,this.__actions__)}var jb=ka(function(n,o,u){Ge.call(n,u)?++n[u]:fn(n,u,1)});function Wb(n,o,u){var f=Te(n)?Xf:P1;return u&&Xt(n,o,u)&&(o=r),f(n,ve(o,3))}function Ub(n,o){var u=Te(n)?An:Sd;return u(n,ve(o,3))}var Hb=Yd(mp),Bb=Yd(gp);function zb(n,o){return Ft(Ga(n,o),1)}function qb(n,o){return Ft(Ga(n,o),Oe)}function Zb(n,o,u){return u=u===r?1:Ce(u),Ft(Ga(n,o),u)}function _p(n,o){var u=Te(n)?Sr:Pn;return u(n,ve(o,3))}function xp(n,o){var u=Te(n)?fy:bd;return u(n,ve(o,3))}var Gb=ka(function(n,o,u){Ge.call(n,u)?n[u].push(o):fn(n,u,[o])});function Kb(n,o,u,f){n=rr(n)?n:Gi(n),u=u&&!f?Ce(u):0;var y=n.length;return u<0&&(u=_t(y+u,0)),Ja(n)?u<=y&&n.indexOf(o,u)>-1:!!y&&$i(n,o,u)>-1}var Yb=Ie(function(n,o,u){var f=-1,y=typeof o=="function",E=rr(n)?U(n.length):[];return Pn(n,function(O){E[++f]=y?lr(o,O,u):Oo(O,o,u)}),E}),Vb=ka(function(n,o,u){fn(n,u,o)});function Ga(n,o){var u=Te(n)?nt:Td;return u(n,ve(o,3))}function Xb(n,o,u,f){return n==null?[]:(Te(o)||(o=o==null?[]:[o]),u=f?r:u,Te(u)||(u=u==null?[]:[u]),Id(n,o,u))}var Jb=ka(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function Qb(n,o,u){var f=Te(n)?hu:td,y=arguments.length<3;return f(n,ve(o,4),u,y,Pn)}function eS(n,o,u){var f=Te(n)?dy:td,y=arguments.length<3;return f(n,ve(o,4),u,y,bd)}function tS(n,o){var u=Te(n)?An:Sd;return u(n,Va(ve(o,3)))}function rS(n){var o=Te(n)?md:K1;return o(n)}function nS(n,o,u){(u?Xt(n,o,u):o===r)?o=1:o=Ce(o);var f=Te(n)?O1:Y1;return f(n,o)}function iS(n){var o=Te(n)?A1:X1;return o(n)}function oS(n){if(n==null)return 0;if(rr(n))return Ja(n)?Ni(n):n.length;var o=jt(n);return o==ut||o==rt?n.size:Fu(n).length}function aS(n,o,u){var f=Te(n)?vu:J1;return u&&Xt(n,o,u)&&(o=r),f(n,ve(o,3))}var sS=Ie(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Xt(n,o[0],o[1])?o=[]:u>2&&Xt(o[0],o[1],o[2])&&(o=[o[0]]),Id(n,Ft(o,1),[])}),Ka=Uy||function(){return Mt.Date.now()};function uS(n,o){if(typeof o!="function")throw new Er(l);return n=Ce(n),function(){if(--n<1)return o.apply(this,arguments)}}function Op(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,dn(n,H,r,r,r,r,o)}function Ap(n,o){var u;if(typeof o!="function")throw new Er(l);return n=Ce(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var nl=Ie(function(n,o,u){var f=x;if(u.length){var y=Rn(u,qi(nl));f|=A}return dn(n,f,o,u,y)}),Tp=Ie(function(n,o,u){var f=x|C;if(u.length){var y=Rn(u,qi(Tp));f|=A}return dn(o,f,n,u,y)});function Rp(n,o,u){o=u?r:o;var f=dn(n,T,r,r,r,r,r,o);return f.placeholder=Rp.placeholder,f}function Cp(n,o,u){o=u?r:o;var f=dn(n,$,r,r,r,r,r,o);return f.placeholder=Cp.placeholder,f}function Pp(n,o,u){var f,y,E,O,R,L,z=0,q=!1,G=!1,Q=!0;if(typeof n!="function")throw new Er(l);o=Tr(o)||0,ot(u)&&(q=!!u.leading,G="maxWait"in u,E=G?_t(Tr(u.maxWait)||0,o):E,Q="trailing"in u?!!u.trailing:Q);function ie(mt){var Ur=f,gn=y;return f=y=r,z=mt,O=n.apply(gn,Ur),O}function me(mt){return z=mt,R=Po($e,o),q?ie(mt):O}function Pe(mt){var Ur=mt-L,gn=mt-z,Yp=o-Ur;return G?kt(Yp,E-gn):Yp}function ge(mt){var Ur=mt-L,gn=mt-z;return L===r||Ur>=o||Ur<0||G&&gn>=E}function $e(){var mt=Ka();if(ge(mt))return Ne(mt);R=Po($e,Pe(mt))}function Ne(mt){return R=r,Q&&f?ie(mt):(f=y=r,O)}function pr(){R!==r&&Wd(R),z=0,f=L=y=R=r}function Jt(){return R===r?O:Ne(Ka())}function hr(){var mt=Ka(),Ur=ge(mt);if(f=arguments,y=this,L=mt,Ur){if(R===r)return me(L);if(G)return Wd(R),R=Po($e,o),ie(L)}return R===r&&(R=Po($e,o)),O}return hr.cancel=pr,hr.flush=Jt,hr}var lS=Ie(function(n,o){return wd(n,1,o)}),cS=Ie(function(n,o,u){return wd(n,Tr(o)||0,u)});function fS(n){return dn(n,V)}function Ya(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Er(l);var u=function(){var f=arguments,y=o?o.apply(this,f):f[0],E=u.cache;if(E.has(y))return E.get(y);var O=n.apply(this,f);return u.cache=E.set(y,O)||E,O};return u.cache=new(Ya.Cache||cn),u}Ya.Cache=cn;function Va(n){if(typeof n!="function")throw new Er(l);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function dS(n){return Ap(2,n)}var pS=Q1(function(n,o){o=o.length==1&&Te(o[0])?nt(o[0],cr(ve())):nt(Ft(o,1),cr(ve()));var u=o.length;return Ie(function(f){for(var y=-1,E=kt(f.length,u);++y<E;)f[y]=o[y].call(this,f[y]);return lr(n,this,f)})}),il=Ie(function(n,o){var u=Rn(o,qi(il));return dn(n,A,r,o,u)}),Ip=Ie(function(n,o){var u=Rn(o,qi(Ip));return dn(n,D,r,o,u)}),hS=pn(function(n,o){return dn(n,j,r,r,r,o)});function vS(n,o){if(typeof n!="function")throw new Er(l);return o=o===r?o:Ce(o),Ie(n,o)}function mS(n,o){if(typeof n!="function")throw new Er(l);return o=o==null?0:_t(Ce(o),0),Ie(function(u){var f=u[o],y=Fn(u,0,o);return f&&Tn(y,f),lr(n,this,y)})}function gS(n,o,u){var f=!0,y=!0;if(typeof n!="function")throw new Er(l);return ot(u)&&(f="leading"in u?!!u.leading:f,y="trailing"in u?!!u.trailing:y),Pp(n,o,{leading:f,maxWait:o,trailing:y})}function yS(n){return Op(n,1)}function wS(n,o){return il(Hu(o),n)}function bS(){if(!arguments.length)return[];var n=arguments[0];return Te(n)?n:[n]}function SS(n){return xr(n,v)}function ES(n,o){return o=typeof o=="function"?o:r,xr(n,v,o)}function _S(n){return xr(n,w|v)}function xS(n,o){return o=typeof o=="function"?o:r,xr(n,w|v,o)}function OS(n,o){return o==null||yd(n,o,Tt(o))}function Wr(n,o){return n===o||n!==n&&o!==o}var AS=Ha(Pu),TS=Ha(function(n,o){return n>=o}),di=xd(function(){return arguments}())?xd:function(n){return ct(n)&&Ge.call(n,"callee")&&!cd.call(n,"callee")},Te=U.isArray,RS=qf?cr(qf):D1;function rr(n){return n!=null&&Xa(n.length)&&!vn(n)}function vt(n){return ct(n)&&rr(n)}function CS(n){return n===!0||n===!1||ct(n)&&Vt(n)==le}var Ln=By||vl,PS=Zf?cr(Zf):N1;function IS(n){return ct(n)&&n.nodeType===1&&!Io(n)}function MS(n){if(n==null)return!0;if(rr(n)&&(Te(n)||typeof n=="string"||typeof n.splice=="function"||Ln(n)||Zi(n)||di(n)))return!n.length;var o=jt(n);if(o==ut||o==rt)return!n.size;if(Co(n))return!Fu(n).length;for(var u in n)if(Ge.call(n,u))return!1;return!0}function FS(n,o){return Ao(n,o)}function LS(n,o,u){u=typeof u=="function"?u:r;var f=u?u(n,o):r;return f===r?Ao(n,o,r,u):!!f}function ol(n){if(!ct(n))return!1;var o=Vt(n);return o==Ve||o==Se||typeof n.message=="string"&&typeof n.name=="string"&&!Io(n)}function $S(n){return typeof n=="number"&&dd(n)}function vn(n){if(!ot(n))return!1;var o=Vt(n);return o==J||o==st||o==he||o==Kn}function Mp(n){return typeof n=="number"&&n==Ce(n)}function Xa(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Be}function ot(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function ct(n){return n!=null&&typeof n=="object"}var Fp=Gf?cr(Gf):j1;function DS(n,o){return n===o||Mu(n,o,Yu(o))}function NS(n,o,u){return u=typeof u=="function"?u:r,Mu(n,o,Yu(o),u)}function kS(n){return Lp(n)&&n!=+n}function jS(n){if(Ew(n))throw new xe(s);return Od(n)}function WS(n){return n===null}function US(n){return n==null}function Lp(n){return typeof n=="number"||ct(n)&&Vt(n)==yt}function Io(n){if(!ct(n)||Vt(n)!=At)return!1;var o=xa(n);if(o===null)return!0;var u=Ge.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&ba.call(u)==Ny}var al=Kf?cr(Kf):W1;function HS(n){return Mp(n)&&n>=-Be&&n<=Be}var $p=Yf?cr(Yf):U1;function Ja(n){return typeof n=="string"||!Te(n)&&ct(n)&&Vt(n)==yr}function dr(n){return typeof n=="symbol"||ct(n)&&Vt(n)==sr}var Zi=Vf?cr(Vf):H1;function BS(n){return n===r}function zS(n){return ct(n)&&jt(n)==Nt}function qS(n){return ct(n)&&Vt(n)==xn}var ZS=Ha(Lu),GS=Ha(function(n,o){return n<=o});function Dp(n){if(!n)return[];if(rr(n))return Ja(n)?kr(n):tr(n);if(yo&&n[yo])return Oy(n[yo]());var o=jt(n),u=o==ut?Su:o==rt?ga:Gi;return u(n)}function mn(n){if(!n)return n===0?n:0;if(n=Tr(n),n===Oe||n===-Oe){var o=n<0?-1:1;return o*pt}return n===n?n:0}function Ce(n){var o=mn(n),u=o%1;return o===o?u?o-u:o:0}function Np(n){return n?ui(Ce(n),0,Y):0}function Tr(n){if(typeof n=="number")return n;if(dr(n))return Z;if(ot(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=ot(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=rd(n);var u=ni.test(n);return u||P0.test(n)?uy(n.slice(2),u?2:8):Yt.test(n)?Z:+n}function kp(n){return Yr(n,nr(n))}function KS(n){return n?ui(Ce(n),-Be,Be):n===0?n:0}function ze(n){return n==null?"":fr(n)}var YS=Bi(function(n,o){if(Co(o)||rr(o)){Yr(o,Tt(o),n);return}for(var u in o)Ge.call(o,u)&&_o(n,u,o[u])}),jp=Bi(function(n,o){Yr(o,nr(o),n)}),Qa=Bi(function(n,o,u,f){Yr(o,nr(o),n,f)}),VS=Bi(function(n,o,u,f){Yr(o,Tt(o),n,f)}),XS=pn(Tu);function JS(n,o){var u=Hi(n);return o==null?u:gd(u,o)}var QS=Ie(function(n,o){n=Xe(n);var u=-1,f=o.length,y=f>2?o[2]:r;for(y&&Xt(o[0],o[1],y)&&(f=1);++u<f;)for(var E=o[u],O=nr(E),R=-1,L=O.length;++R<L;){var z=O[R],q=n[z];(q===r||Wr(q,ji[z])&&!Ge.call(n,z))&&(n[z]=E[z])}return n}),eE=Ie(function(n){return n.push(r,rp),lr(Wp,r,n)});function tE(n,o){return Jf(n,ve(o,3),Kr)}function rE(n,o){return Jf(n,ve(o,3),Cu)}function nE(n,o){return n==null?n:Ru(n,ve(o,3),nr)}function iE(n,o){return n==null?n:Ed(n,ve(o,3),nr)}function oE(n,o){return n&&Kr(n,ve(o,3))}function aE(n,o){return n&&Cu(n,ve(o,3))}function sE(n){return n==null?[]:La(n,Tt(n))}function uE(n){return n==null?[]:La(n,nr(n))}function sl(n,o,u){var f=n==null?r:li(n,o);return f===r?u:f}function lE(n,o){return n!=null&&op(n,o,M1)}function ul(n,o){return n!=null&&op(n,o,F1)}var cE=Xd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=Sa.call(o)),n[o]=u},cl(ir)),fE=Xd(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=Sa.call(o)),Ge.call(n,o)?n[o].push(u):n[o]=[u]},ve),dE=Ie(Oo);function Tt(n){return rr(n)?vd(n):Fu(n)}function nr(n){return rr(n)?vd(n,!0):B1(n)}function pE(n,o){var u={};return o=ve(o,3),Kr(n,function(f,y,E){fn(u,o(f,y,E),f)}),u}function hE(n,o){var u={};return o=ve(o,3),Kr(n,function(f,y,E){fn(u,y,o(f,y,E))}),u}var vE=Bi(function(n,o,u){$a(n,o,u)}),Wp=Bi(function(n,o,u,f){$a(n,o,u,f)}),mE=pn(function(n,o){var u={};if(n==null)return u;var f=!1;o=nt(o,function(E){return E=Mn(E,n),f||(f=E.length>1),E}),Yr(n,Gu(n),u),f&&(u=xr(u,w|S|v,cw));for(var y=o.length;y--;)ju(u,o[y]);return u});function gE(n,o){return Up(n,Va(ve(o)))}var yE=pn(function(n,o){return n==null?{}:q1(n,o)});function Up(n,o){if(n==null)return{};var u=nt(Gu(n),function(f){return[f]});return o=ve(o),Md(n,u,function(f,y){return o(f,y[0])})}function wE(n,o,u){o=Mn(o,n);var f=-1,y=o.length;for(y||(y=1,n=r);++f<y;){var E=n==null?r:n[Vr(o[f])];E===r&&(f=y,E=u),n=vn(E)?E.call(n):E}return n}function bE(n,o,u){return n==null?n:To(n,o,u)}function SE(n,o,u,f){return f=typeof f=="function"?f:r,n==null?n:To(n,o,u,f)}var Hp=ep(Tt),Bp=ep(nr);function EE(n,o,u){var f=Te(n),y=f||Ln(n)||Zi(n);if(o=ve(o,4),u==null){var E=n&&n.constructor;y?u=f?new E:[]:ot(n)?u=vn(E)?Hi(xa(n)):{}:u={}}return(y?Sr:Kr)(n,function(O,R,L){return o(u,O,R,L)}),u}function _E(n,o){return n==null?!0:ju(n,o)}function xE(n,o,u){return n==null?n:Nd(n,o,Hu(u))}function OE(n,o,u,f){return f=typeof f=="function"?f:r,n==null?n:Nd(n,o,Hu(u),f)}function Gi(n){return n==null?[]:bu(n,Tt(n))}function AE(n){return n==null?[]:bu(n,nr(n))}function TE(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=Tr(u),u=u===u?u:0),o!==r&&(o=Tr(o),o=o===o?o:0),ui(Tr(n),o,u)}function RE(n,o,u){return o=mn(o),u===r?(u=o,o=0):u=mn(u),n=Tr(n),L1(n,o,u)}function CE(n,o,u){if(u&&typeof u!="boolean"&&Xt(n,o,u)&&(o=u=r),u===r&&(typeof o=="boolean"?(u=o,o=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&o===r?(n=0,o=1):(n=mn(n),o===r?(o=n,n=0):o=mn(o)),n>o){var f=n;n=o,o=f}if(u||n%1||o%1){var y=pd();return kt(n+y*(o-n+sy("1e-"+((y+"").length-1))),o)}return Du(n,o)}var PE=zi(function(n,o,u){return o=o.toLowerCase(),n+(u?zp(o):o)});function zp(n){return ll(ze(n).toLowerCase())}function qp(n){return n=ze(n),n&&n.replace(M0,by).replace(X0,"")}function IE(n,o,u){n=ze(n),o=fr(o);var f=n.length;u=u===r?f:ui(Ce(u),0,f);var y=u;return u-=o.length,u>=0&&n.slice(u,y)==o}function ME(n){return n=ze(n),n&&fo.test(n)?n.replace(On,Sy):n}function FE(n){return n=ze(n),n&&I.test(n)?n.replace(m,"\\$&"):n}var LE=zi(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),$E=zi(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),DE=Kd("toLowerCase");function NE(n,o,u){n=ze(n),o=Ce(o);var f=o?Ni(n):0;if(!o||f>=o)return n;var y=(o-f)/2;return Ua(Ra(y),u)+n+Ua(Ta(y),u)}function kE(n,o,u){n=ze(n),o=Ce(o);var f=o?Ni(n):0;return o&&f<o?n+Ua(o-f,u):n}function jE(n,o,u){n=ze(n),o=Ce(o);var f=o?Ni(n):0;return o&&f<o?Ua(o-f,u)+n:n}function WE(n,o,u){return u||o==null?o=0:o&&(o=+o),Gy(ze(n).replace(W,""),o||0)}function UE(n,o,u){return(u?Xt(n,o,u):o===r)?o=1:o=Ce(o),Nu(ze(n),o)}function HE(){var n=arguments,o=ze(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var BE=zi(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function zE(n,o,u){return u&&typeof u!="number"&&Xt(n,o,u)&&(o=u=r),u=u===r?Y:u>>>0,u?(n=ze(n),n&&(typeof o=="string"||o!=null&&!al(o))&&(o=fr(o),!o&&Di(n))?Fn(kr(n),0,u):n.split(o,u)):[]}var qE=zi(function(n,o,u){return n+(u?" ":"")+ll(o)});function ZE(n,o,u){return n=ze(n),u=u==null?0:ui(Ce(u),0,n.length),o=fr(o),n.slice(u,u+o.length)==o}function GE(n,o,u){var f=b.templateSettings;u&&Xt(n,o,u)&&(o=r),n=ze(n),o=Qa({},o,f,tp);var y=Qa({},o.imports,f.imports,tp),E=Tt(y),O=bu(y,E),R,L,z=0,q=o.interpolate||da,G="__p += '",Q=Eu((o.escape||da).source+"|"+q.source+"|"+(q===Fi?Ae:da).source+"|"+(o.evaluate||da).source+"|$","g"),ie="//# sourceURL="+(Ge.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ry+"]")+`
|
|
184
|
+
`;n.replace(Q,function(ge,$e,Ne,pr,Jt,hr){return Ne||(Ne=pr),G+=n.slice(z,hr).replace(F0,Ey),$e&&(R=!0,G+=`' +
|
|
185
|
+
__e(`+$e+`) +
|
|
186
|
+
'`),Jt&&(L=!0,G+=`';
|
|
187
|
+
`+Jt+`;
|
|
188
|
+
__p += '`),Ne&&(G+=`' +
|
|
189
|
+
((__t = (`+Ne+`)) == null ? '' : __t) +
|
|
190
|
+
'`),z=hr+ge.length,ge}),G+=`';
|
|
191
|
+
`;var me=Ge.call(o,"variable")&&o.variable;if(!me)G=`with (obj) {
|
|
192
|
+
`+G+`
|
|
165
193
|
}
|
|
166
|
-
`;else if(
|
|
167
|
-
`+(
|
|
168
|
-
`)+"var __t, __p = ''"+(
|
|
194
|
+
`;else if(je.test(me))throw new xe(c);G=(L?G.replace(Qn,""):G).replace(co,"$1").replace(ei,"$1;"),G="function("+(me||"obj")+`) {
|
|
195
|
+
`+(me?"":`obj || (obj = {});
|
|
196
|
+
`)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(L?`, __j = Array.prototype.join;
|
|
169
197
|
function print() { __p += __j.call(arguments, '') }
|
|
170
198
|
`:`;
|
|
171
|
-
`)+
|
|
172
|
-
}`;var Oe=Zp(function(){return ke(S,re+"return "+Z).apply(r,_)});if(Oe.source=Z,ol(Oe))throw Oe;return Oe}function jE(n){return Ne(n).toLowerCase()}function WE(n){return Ne(n).toUpperCase()}function UE(n,o,u){if(n=Ne(n),n&&(u||o===r))return ed(n);if(!n||!(o=rr(o)))return n;var f=Tr(n),m=Tr(o),S=td(f,m),_=rd(f,m)+1;return On(f,S,_).join("")}function zE(n,o,u){if(n=Ne(n),n&&(u||o===r))return n.slice(0,id(n)+1);if(!n||!(o=rr(o)))return n;var f=Tr(n),m=rd(f,Tr(o))+1;return On(f,0,m).join("")}function BE(n,o,u){if(n=Ne(n),n&&(u||o===r))return n.replace(Q,"");if(!n||!(o=rr(o)))return n;var f=Tr(n),m=td(f,Tr(o));return On(f,m).join("")}function HE(n,o){var u=J,f=ie;if(tt(o)){var m="separator"in o?o.separator:m;u="length"in o?Ee(o.length):u,f="omission"in o?rr(o.omission):f}n=Ne(n);var S=n.length;if(Ei(n)){var _=Tr(n);S=_.length}if(u>=S)return n;var T=u-xi(f);if(T<1)return f;var L=_?On(_,0,T).join(""):n.slice(0,T);if(m===r)return L+f;if(_&&(T+=L.length-T),al(m)){if(n.slice(T).search(m)){var z,B=L;for(m.global||(m=Eu(m.source,Ne(cr.exec(m))+"g")),m.lastIndex=0;z=m.exec(B);)var Z=z.index;L=L.slice(0,Z===r?T:Z)}}else if(n.indexOf(rr(m),T)!=T){var X=L.lastIndexOf(m);X>-1&&(L=L.slice(0,X))}return L+f}function ZE(n){return n=Ne(n),n&&na.test(n)?n.replace(ra,by):n}var qE=Pi(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),ll=qd("toUpperCase");function Hp(n,o,u){return n=Ne(n),o=u?r:o,o===r?vy(n)?xy(n):ay(n):n.match(o)||[]}var Zp=Ae(function(n,o){try{return er(n,r,o)}catch(u){return ol(u)?u:new ge(u)}}),GE=nn(function(n,o){return dr(o,function(u){u=Ur(u),tn(n,u,nl(n[u],n))}),n});function KE(n){var o=n==null?0:n.length,u=ue();return n=o?Xe(n,function(f){if(typeof f[1]!="function")throw new pr(l);return[u(f[0]),f[1]]}):[],Ae(function(f){for(var m=-1;++m<o;){var S=n[m];if(er(S[0],this,f))return er(S[1],this,f)}})}function YE(n){return b1(vr(n,b))}function cl(n){return function(){return n}}function VE(n,o){return n==null||n!==n?o:n}var XE=Kd(),JE=Kd(!0);function Vt(n){return n}function fl(n){return _d(typeof n=="function"?n:vr(n,b))}function QE(n){return Ad(vr(n,b))}function ex(n,o){return Td(n,vr(o,b))}var tx=Ae(function(n,o){return function(u){return lo(u,n,o)}}),rx=Ae(function(n,o){return function(u){return lo(n,u,o)}});function dl(n,o,u){var f=Et(o),m=Ra(o,f);u==null&&!(tt(o)&&(m.length||!f.length))&&(u=o,o=n,n=this,m=Ra(o,Et(o)));var S=!(tt(u)&&"chain"in u)||!!u.chain,_=an(n);return dr(m,function(T){var L=o[T];n[T]=L,_&&(n.prototype[T]=function(){var z=this.__chain__;if(S||z){var B=n(this.__wrapped__),Z=B.__actions__=Gt(this.__actions__);return Z.push({func:L,args:arguments,thisArg:n}),B.__chain__=z,B}return L.apply(n,wn([this.value()],arguments))})}),n}function nx(){return At._===this&&(At._=Ry),this}function pl(){}function ix(n){return n=Ee(n),Ae(function(o){return Cd(o,n)})}var ox=Hu(Xe),ax=Hu(Yf),sx=Hu(vu);function qp(n){return Xu(n)?mu(Ur(n)):k1(n)}function ux(n){return function(o){return n==null?r:Vn(n,o)}}var lx=Vd(),cx=Vd(!0);function hl(){return[]}function vl(){return!1}function fx(){return{}}function dx(){return""}function px(){return!0}function hx(n,o){if(n=Ee(n),n<1||n>qe)return[];var u=K,f=It(n,K);o=ue(o),n-=K;for(var m=wu(f,o);++u<n;)o(u);return m}function vx(n){return be(n)?Xe(n,Ur):nr(n)?[n]:Gt(dp(Ne(n)))}function mx(n){var o=++Ty;return Ne(n)+o}var gx=Fa(function(n,o){return n+o},0),yx=Zu("ceil"),wx=Fa(function(n,o){return n/o},1),bx=Zu("floor");function Sx(n){return n&&n.length?Ca(n,Vt,Pu):r}function Ex(n,o){return n&&n.length?Ca(n,ue(o,2),Pu):r}function xx(n){return Jf(n,Vt)}function _x(n,o){return Jf(n,ue(o,2))}function Ox(n){return n&&n.length?Ca(n,Vt,$u):r}function Ax(n,o){return n&&n.length?Ca(n,ue(o,2),$u):r}var Tx=Fa(function(n,o){return n*o},1),Cx=Zu("round"),Rx=Fa(function(n,o){return n-o},0);function Px(n){return n&&n.length?yu(n,Vt):0}function Ix(n,o){return n&&n.length?yu(n,ue(o,2)):0}return y.after=Qb,y.ary=xp,y.assign=WS,y.assignIn=kp,y.assignInWith=Ka,y.assignWith=US,y.at=zS,y.before=_p,y.bind=nl,y.bindAll=GE,y.bindKey=Op,y.castArray=fS,y.chain=bp,y.chunk=bw,y.compact=Sw,y.concat=Ew,y.cond=KE,y.conforms=YE,y.constant=cl,y.countBy=Pb,y.create=BS,y.curry=Ap,y.curryRight=Tp,y.debounce=Cp,y.defaults=HS,y.defaultsDeep=ZS,y.defer=eS,y.delay=tS,y.difference=xw,y.differenceBy=_w,y.differenceWith=Ow,y.drop=Aw,y.dropRight=Tw,y.dropRightWhile=Cw,y.dropWhile=Rw,y.fill=Pw,y.filter=Mb,y.flatMap=Fb,y.flatMapDeep=Db,y.flatMapDepth=kb,y.flatten=mp,y.flattenDeep=Iw,y.flattenDepth=Mw,y.flip=rS,y.flow=XE,y.flowRight=JE,y.fromPairs=Lw,y.functions=JS,y.functionsIn=QS,y.groupBy=Nb,y.initial=Fw,y.intersection=Dw,y.intersectionBy=kw,y.intersectionWith=Nw,y.invert=tE,y.invertBy=rE,y.invokeMap=Wb,y.iteratee=fl,y.keyBy=Ub,y.keys=Et,y.keysIn=Yt,y.map=za,y.mapKeys=iE,y.mapValues=oE,y.matches=QE,y.matchesProperty=ex,y.memoize=Ha,y.merge=aE,y.mergeWith=Np,y.method=tx,y.methodOf=rx,y.mixin=dl,y.negate=Za,y.nthArg=ix,y.omit=sE,y.omitBy=uE,y.once=nS,y.orderBy=zb,y.over=ox,y.overArgs=iS,y.overEvery=ax,y.overSome=sx,y.partial=il,y.partialRight=Rp,y.partition=Bb,y.pick=lE,y.pickBy=jp,y.property=qp,y.propertyOf=ux,y.pull=zw,y.pullAll=yp,y.pullAllBy=Bw,y.pullAllWith=Hw,y.pullAt=Zw,y.range=lx,y.rangeRight=cx,y.rearg=oS,y.reject=qb,y.remove=qw,y.rest=aS,y.reverse=tl,y.sampleSize=Kb,y.set=fE,y.setWith=dE,y.shuffle=Yb,y.slice=Gw,y.sortBy=Jb,y.sortedUniq=eb,y.sortedUniqBy=tb,y.split=FE,y.spread=sS,y.tail=rb,y.take=nb,y.takeRight=ib,y.takeRightWhile=ob,y.takeWhile=ab,y.tap=Sb,y.throttle=uS,y.thru=Ua,y.toArray=$p,y.toPairs=Wp,y.toPairsIn=Up,y.toPath=vx,y.toPlainObject=Dp,y.transform=pE,y.unary=lS,y.union=sb,y.unionBy=ub,y.unionWith=lb,y.uniq=cb,y.uniqBy=fb,y.uniqWith=db,y.unset=hE,y.unzip=rl,y.unzipWith=wp,y.update=vE,y.updateWith=mE,y.values=Li,y.valuesIn=gE,y.without=pb,y.words=Hp,y.wrap=cS,y.xor=hb,y.xorBy=vb,y.xorWith=mb,y.zip=gb,y.zipObject=yb,y.zipObjectDeep=wb,y.zipWith=bb,y.entries=Wp,y.entriesIn=Up,y.extend=kp,y.extendWith=Ka,dl(y,y),y.add=gx,y.attempt=Zp,y.camelCase=SE,y.capitalize=zp,y.ceil=yx,y.clamp=yE,y.clone=dS,y.cloneDeep=hS,y.cloneDeepWith=vS,y.cloneWith=pS,y.conformsTo=mS,y.deburr=Bp,y.defaultTo=VE,y.divide=wx,y.endsWith=EE,y.eq=Rr,y.escape=xE,y.escapeRegExp=_E,y.every=Ib,y.find=Lb,y.findIndex=hp,y.findKey=qS,y.findLast=$b,y.findLastIndex=vp,y.findLastKey=GS,y.floor=bx,y.forEach=Sp,y.forEachRight=Ep,y.forIn=KS,y.forInRight=YS,y.forOwn=VS,y.forOwnRight=XS,y.get=sl,y.gt=gS,y.gte=yS,y.has=eE,y.hasIn=ul,y.head=gp,y.identity=Vt,y.includes=jb,y.indexOf=$w,y.inRange=wE,y.invoke=nE,y.isArguments=Qn,y.isArray=be,y.isArrayBuffer=wS,y.isArrayLike=Kt,y.isArrayLikeObject=at,y.isBoolean=bS,y.isBuffer=An,y.isDate=SS,y.isElement=ES,y.isEmpty=xS,y.isEqual=_S,y.isEqualWith=OS,y.isError=ol,y.isFinite=AS,y.isFunction=an,y.isInteger=Pp,y.isLength=qa,y.isMap=Ip,y.isMatch=TS,y.isMatchWith=CS,y.isNaN=RS,y.isNative=PS,y.isNil=MS,y.isNull=IS,y.isNumber=Mp,y.isObject=tt,y.isObjectLike=it,y.isPlainObject=mo,y.isRegExp=al,y.isSafeInteger=LS,y.isSet=Lp,y.isString=Ga,y.isSymbol=nr,y.isTypedArray=Mi,y.isUndefined=$S,y.isWeakMap=FS,y.isWeakSet=DS,y.join=jw,y.kebabCase=OE,y.last=gr,y.lastIndexOf=Ww,y.lowerCase=AE,y.lowerFirst=TE,y.lt=kS,y.lte=NS,y.max=Sx,y.maxBy=Ex,y.mean=xx,y.meanBy=_x,y.min=Ox,y.minBy=Ax,y.stubArray=hl,y.stubFalse=vl,y.stubObject=fx,y.stubString=dx,y.stubTrue=px,y.multiply=Tx,y.nth=Uw,y.noConflict=nx,y.noop=pl,y.now=Ba,y.pad=CE,y.padEnd=RE,y.padStart=PE,y.parseInt=IE,y.random=bE,y.reduce=Hb,y.reduceRight=Zb,y.repeat=ME,y.replace=LE,y.result=cE,y.round=Cx,y.runInContext=M,y.sample=Gb,y.size=Vb,y.snakeCase=$E,y.some=Xb,y.sortedIndex=Kw,y.sortedIndexBy=Yw,y.sortedIndexOf=Vw,y.sortedLastIndex=Xw,y.sortedLastIndexBy=Jw,y.sortedLastIndexOf=Qw,y.startCase=DE,y.startsWith=kE,y.subtract=Rx,y.sum=Px,y.sumBy=Ix,y.template=NE,y.times=hx,y.toFinite=sn,y.toInteger=Ee,y.toLength=Fp,y.toLower=jE,y.toNumber=yr,y.toSafeInteger=jS,y.toString=Ne,y.toUpper=WE,y.trim=UE,y.trimEnd=zE,y.trimStart=BE,y.truncate=HE,y.unescape=ZE,y.uniqueId=mx,y.upperCase=qE,y.upperFirst=ll,y.each=Sp,y.eachRight=Ep,y.first=gp,dl(y,function(){var n={};return jr(y,function(o,u){ze.call(y.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),y.VERSION=i,dr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){y[n].placeholder=y}),dr(["drop","take"],function(n,o){Ie.prototype[n]=function(u){u=u===r?1:gt(Ee(u),0);var f=this.__filtered__&&!o?new Ie(this):this.clone();return f.__filtered__?f.__takeCount__=It(u,f.__takeCount__):f.__views__.push({size:It(u,K),type:n+(f.__dir__<0?"Right":"")}),f},Ie.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),dr(["filter","map","takeWhile"],function(n,o){var u=o+1,f=u==ve||u==ye;Ie.prototype[n]=function(m){var S=this.clone();return S.__iteratees__.push({iteratee:ue(m,3),type:u}),S.__filtered__=S.__filtered__||f,S}}),dr(["head","last"],function(n,o){var u="take"+(o?"Right":"");Ie.prototype[n]=function(){return this[u](1).value()[0]}}),dr(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");Ie.prototype[n]=function(){return this.__filtered__?new Ie(this):this[u](1)}}),Ie.prototype.compact=function(){return this.filter(Vt)},Ie.prototype.find=function(n){return this.filter(n).head()},Ie.prototype.findLast=function(n){return this.reverse().find(n)},Ie.prototype.invokeMap=Ae(function(n,o){return typeof n=="function"?new Ie(this):this.map(function(u){return lo(u,n,o)})}),Ie.prototype.reject=function(n){return this.filter(Za(ue(n)))},Ie.prototype.slice=function(n,o){n=Ee(n);var u=this;return u.__filtered__&&(n>0||o<0)?new Ie(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=Ee(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},Ie.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ie.prototype.toArray=function(){return this.take(K)},jr(Ie.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),m=y[f?"take"+(o=="last"?"Right":""):o],S=f||/^find/.test(o);m&&(y.prototype[o]=function(){var _=this.__wrapped__,T=f?[1]:arguments,L=_ instanceof Ie,z=T[0],B=L||be(_),Z=function(Pe){var Le=m.apply(y,wn([Pe],T));return f&&X?Le[0]:Le};B&&u&&typeof z=="function"&&z.length!=1&&(L=B=!1);var X=this.__chain__,re=!!this.__actions__.length,ce=S&&!X,Oe=L&&!re;if(!S&&B){_=Oe?_:new Ie(this);var fe=n.apply(_,T);return fe.__actions__.push({func:Ua,args:[Z],thisArg:r}),new hr(fe,X)}return ce&&Oe?n.apply(this,T):(fe=this.thru(Z),ce?f?fe.value()[0]:fe.value():fe)})}),dr(["pop","push","shift","sort","splice","unshift"],function(n){var o=pa[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",f=/^(?:pop|shift)$/.test(n);y.prototype[n]=function(){var m=arguments;if(f&&!this.__chain__){var S=this.value();return o.apply(be(S)?S:[],m)}return this[u](function(_){return o.apply(be(_)?_:[],m)})}}),jr(Ie.prototype,function(n,o){var u=y[o];if(u){var f=u.name+"";ze.call(Ti,f)||(Ti[f]=[]),Ti[f].push({name:o,func:u})}}),Ti[$a(r,I).name]=[{name:"wrapper",func:r}],Ie.prototype.clone=Zy,Ie.prototype.reverse=qy,Ie.prototype.value=Gy,y.prototype.at=Eb,y.prototype.chain=xb,y.prototype.commit=_b,y.prototype.next=Ob,y.prototype.plant=Tb,y.prototype.reverse=Cb,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=Rb,y.prototype.first=y.prototype.head,ro&&(y.prototype[ro]=Ab),y},_i=_y();Zn?((Zn.exports=_i)._=_i,fu._=_i):At._=_i}).call(ni)})(Ms,Ms.exports);var pt=Ms.exports;const Ac={FdSave:nO,FdWarningDanger:zc,FdInfoCircle:eO,FdInfoBold:uc};var af=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(af||{}),ci=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(ci||{}),Ni=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(Ni||{});const sg={[ci.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[ci.DANGER]:{icon:"red-500",button:"primary-dark"},[ci.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Vl=({color:e=ci.PRIMARY,variant:t="solid",children:r,autoFocus:i,...a})=>{const s=sg[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${s}`:`text-white bg-${s} border border-${s} hover:border-white hover:bg-white hover:text-${s}`;return $.jsx("button",{autoFocus:i,className:Pt("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:r})},$P=({name:e,color:t=ci.PRIMARY,className:r="w-10 h-10"})=>{const i=Ac[e]||Ac.FdInfoCircle,a=`text-${sg[t].icon}`;return $.jsx(i,{className:Pt(r,a)})},FP=({id:e,title:t,message:r,icon:i,type:a,color:s,zIndex:l=3e3,views:c,width:d=520,hasOverlay:p=!0,onClose:h,onEdit:b})=>{const v=g=>{h({id:e,reason:g})};k.useEffect(()=>{function g(E){E.key==="Escape"&&v(Ni.CANCELED)}return window.addEventListener("keyup",g),()=>{window.removeEventListener("keyup",g)}},[]);const w=pt.merge(pt.values(c==null?void 0:c.toggles).flatMap(g=>g.value?g.warnings||[]:[]),c==null?void 0:c.tips),x=(g,E)=>{var P;if(!(c!=null&&c.toggles))return;const I=pt.cloneDeep(c);(P=I.toggles)!=null&&P[g]&&(I.toggles[g].value=E),b({id:e,views:I})};return Wo.createPortal($.jsx(Is,{appear:!0,show:!0,as:k.Fragment,children:$.jsx("div",{className:Pt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":p}),style:{zIndex:l},onClick:()=>v(Ni.CANCELED),children:$.jsx(Is.Child,{as:k.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-200 bg-grey-500",style:{width:d},onClick:g=>g.stopPropagation(),children:$.jsxs("div",{className:"flex flex-col items-center gap-5 p-6 px-12",children:[i?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx($P,{name:i,color:s})}):null,$.jsx(DP,{condition:t,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),$.jsx("div",{className:"text-xs text-white",children:pt.values(c==null?void 0:c.toggles).map(g=>$.jsx("div",{children:$.jsxs("label",{htmlFor:g.key,className:"flex items-center",children:[$.jsx(og,{size:"xs",value:g.value,onChange:E=>x(g.key,E)}),$.jsx("span",{className:"ml-1",children:g.title})]})},g.key))}),$.jsx(kP,{warnings:w}),$.jsx("div",{className:"flex items-center gap-4 p-1",children:a===af.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(Vl,{autoFocus:!0,color:s,onClick:()=>v(Ni.CONFIRMED),children:"Confirm"}),$.jsx(Vl,{color:s,variant:"outlined",onClick:()=>v(Ni.CANCELED),children:"Cancel"})]}):$.jsx(Vl,{autoFocus:!0,onClick:()=>v(),children:"OK"})})]})})})})}),document.querySelector("body"))},DP=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,kP=e=>e.warnings?$.jsx(Is,{appear:!0,show:!!e.warnings.length,as:k.Fragment,children:$.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>$.jsx(Is.Child,{as:k.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:$.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[$.jsx(zc,{className:Pt({"h-3 w-3":!0,"text-orange-400":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),$.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;function NP(e,t){const r=k.useRef(!1);k.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Xl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Jl(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function bo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function ug(e,t){const r=t.slice(0,t.length-1);for(let i=0;i<r.length;i++)r[i]=e[r[i].toLowerCase()];return r}function lg(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let r=t.lastIndexOf("");for(;r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function jP(e,t){const r=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let a=!0;for(let s=0;s<r.length;s++)i.indexOf(r[s])===-1&&(a=!1);return a}const Fo={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Xl?173:189,"=":Xl?61:187,";":Xl?59:186,"'":222,"[":219,"]":221,"\\":220},Vr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},bs={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Rt={16:!1,18:!1,17:!1,91:!1},rt={};for(let e=1;e<20;e++)Fo["f".concat(e)]=111+e;let Qe=[],Ro=null,cg="all";const cn=new Map,Jo=e=>Fo[e.toLowerCase()]||Vr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),WP=e=>Object.keys(Fo).find(t=>Fo[t]===e),UP=e=>Object.keys(Vr).find(t=>Vr[t]===e);function fg(e){cg=e||"all"}function Do(){return cg||"all"}function zP(){return Qe.slice(0)}function BP(){return Qe.map(e=>WP(e)||UP(e)||String.fromCharCode(e))}function HP(){const e=[];return Object.keys(rt).forEach(t=>{rt[t].forEach(r=>{let{key:i,scope:a,mods:s,shortcut:l}=r;e.push({scope:a,shortcut:l,mods:s,keys:i.split("+").map(c=>Jo(c))})})}),e}function ZP(e){const t=e.target||e.srcElement,{tagName:r}=t;let i=!0;const a=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(a||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function qP(e){return typeof e=="string"&&(e=Jo(e)),Qe.indexOf(e)!==-1}function GP(e,t){let r,i;e||(e=Do());for(const a in rt)if(Object.prototype.hasOwnProperty.call(rt,a))for(r=rt[a],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(l=>{let{element:c}=l;return sf(c)}):i++;Do()===e&&fg(t||"all")}function KP(e){let t=e.keyCode||e.which||e.charCode;const r=Qe.indexOf(t);if(r>=0&&Qe.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Qe.splice(0,Qe.length),(t===93||t===224)&&(t=91),t in Rt){Rt[t]=!1;for(const i in Vr)Vr[i]===t&&($r[i]=!1)}}function dg(e){if(typeof e>"u")Object.keys(rt).forEach(a=>{Array.isArray(rt[a])&&rt[a].forEach(s=>fs(s)),delete rt[a]}),sf(null);else if(Array.isArray(e))e.forEach(a=>{a.key&&fs(a)});else if(typeof e=="object")e.key&&fs(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let[a,s]=r;typeof a=="function"&&(s=a,a=""),fs({key:e,scope:a,method:s,splitKey:"+"})}}const fs=e=>{let{key:t,scope:r,method:i,splitKey:a="+"}=e;lg(t).forEach(l=>{const c=l.split(a),d=c.length,p=c[d-1],h=p==="*"?"*":Jo(p);if(!rt[h])return;r||(r=Do());const b=d>1?ug(Vr,c):[],v=[];rt[h]=rt[h].filter(w=>{const g=(i?w.method===i:!0)&&w.scope===r&&jP(w.mods,b);return g&&v.push(w.element),!g}),v.forEach(w=>sf(w))})};function dv(e,t,r,i){if(t.element!==i)return;let a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(const s in Rt)Object.prototype.hasOwnProperty.call(Rt,s)&&(!Rt[s]&&t.mods.indexOf(+s)>-1||Rt[s]&&t.mods.indexOf(+s)===-1)&&(a=!1);(t.mods.length===0&&!Rt[16]&&!Rt[18]&&!Rt[17]&&!Rt[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Qe),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function pv(e,t){const r=rt["*"];let i=e.keyCode||e.which||e.charCode;if(!$r.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Qe.indexOf(i)===-1&&i!==229&&Qe.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const d=bs[c];e[c]&&Qe.indexOf(d)===-1?Qe.push(d):!e[c]&&Qe.indexOf(d)>-1?Qe.splice(Qe.indexOf(d),1):c==="metaKey"&&e[c]&&(Qe=Qe.filter(p=>p in bs||p===i))}),i in Rt){Rt[i]=!0;for(const c in Vr)Vr[c]===i&&($r[c]=!0);if(!r)return}for(const c in Rt)Object.prototype.hasOwnProperty.call(Rt,c)&&(Rt[c]=e[bs[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Qe.indexOf(17)===-1&&Qe.push(17),Qe.indexOf(18)===-1&&Qe.push(18),Rt[17]=!0,Rt[18]=!0);const a=Do();if(r)for(let c=0;c<r.length;c++)r[c].scope===a&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&dv(e,r[c],a,t);if(!(i in rt))return;const s=rt[i],l=s.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&s[c].keydown||e.type==="keyup"&&s[c].keyup)&&s[c].key){const d=s[c],{splitKey:p}=d,h=d.key.split(p),b=[];for(let v=0;v<h.length;v++)b.push(Jo(h[v]));b.sort().join("")===Qe.sort().join("")&&dv(e,d,a,t)}}function $r(e,t,r){Qe=[];const i=lg(e);let a=[],s="all",l=document,c=0,d=!1,p=!0,h="+",b=!1,v=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(l=t.element),t.keyup&&(d=t.keyup),t.keydown!==void 0&&(p=t.keydown),t.capture!==void 0&&(b=t.capture),typeof t.splitKey=="string"&&(h=t.splitKey),t.single===!0&&(v=!0)),typeof t=="string"&&(s=t),v&&dg(e,s);c<i.length;c++)e=i[c].split(h),a=[],e.length>1&&(a=ug(Vr,e)),e=e[e.length-1],e=e==="*"?"*":Jo(e),e in rt||(rt[e]=[]),rt[e].push({keyup:d,keydown:p,scope:s,mods:a,shortcut:i[c],method:r,key:i[c],splitKey:h,element:l});if(typeof l<"u"&&window){if(!cn.has(l)){const w=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return pv(g,l)},x=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;pv(g,l),KP(g)};cn.set(l,{keydownListener:w,keyupListenr:x,capture:b}),Jl(l,"keydown",w,b),Jl(l,"keyup",x,b)}if(!Ro){const w=()=>{Qe=[]};Ro={listener:w,capture:b},Jl(window,"focus",w,b)}}}function YP(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(rt).forEach(r=>{rt[r].filter(a=>a.scope===t&&a.shortcut===e).forEach(a=>{a&&a.method&&a.method()})})}function sf(e){const t=Object.values(rt).flat();if(t.findIndex(i=>{let{element:a}=i;return a===e})<0){const{keydownListener:i,keyupListenr:a,capture:s}=cn.get(e)||{};i&&a&&(bo(e,"keyup",a,s),bo(e,"keydown",i,s),cn.delete(e))}if((t.length<=0||cn.size<=0)&&(Object.keys(cn).forEach(a=>{const{keydownListener:s,keyupListenr:l,capture:c}=cn.get(a)||{};s&&l&&(bo(a,"keyup",l,c),bo(a,"keydown",s,c),cn.delete(a))}),cn.clear(),Object.keys(rt).forEach(a=>delete rt[a]),Ro)){const{listener:a,capture:s}=Ro;bo(window,"focus",a,s),Ro=null}}const Ql={getPressedKeyString:BP,setScope:fg,getScope:Do,deleteScope:GP,getPressedKeyCodes:zP,getAllKeyCodes:HP,isPressed:qP,filter:ZP,trigger:YP,unbind:dg,keyMap:Fo,modifier:Vr,modifierMap:bs};for(const e in Ql)Object.prototype.hasOwnProperty.call(Ql,e)&&($r[e]=Ql[e]);if(typeof window<"u"){const e=window.hotkeys;$r.noConflict=t=>(t&&window.hotkeys===$r&&(window.hotkeys=e),$r),window.hotkeys=$r}$r.filter=()=>!0;function VP(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:a=!0}=r,s=k.useCallback((c,d)=>{a&&c.preventDefault(),setTimeout(()=>t(c,d))},i),l=()=>{$r.unbind(e,s)};k.useEffect(()=>($r(e,r,s),l),[e,r,s])}const XP=e=>{const t=k.useRef(null);return k.useEffect(()=>{const r=i=>{t.current&&!t.current.contains(i.target)&&e(i)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function JP(e){const t=k.useRef();return k.useEffect(()=>{t.current=e},[e]),t.current}function QP(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e},[e]),t}function e2(e){const t=k.useRef(null);return k.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function t2(e){const[t,r]=k.useState(e),i=(s,l)=>{r(c=>({...c,features:{...c.features,[s]:{enabled:l}}}))},a=k.useCallback((...s)=>s.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:a}}const pg=k.createContext(""),r2=e=>$.jsx(pg.Provider,{value:e.value,children:e.children}),n2=()=>{const e=k.useContext(pg);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function i2(e){const[t,r]=k.useState(e),i=k.useMemo(()=>o2(t,r),[]);return{state:t,actions:{...i,set:a=>{r(typeof a=="function"?a:s=>({...s,...a}))}}}}function o2(e,t=()=>{}){return Object.keys(e).reduce((i,a)=>({...i,[`set${pt.upperFirst(a)}`]:s=>t(l=>({...l,[a]:s}))}),{})}const a2=(e,t,r={})=>{r={timeout:200,...r};const i=k.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return k.useCallback((s,...l)=>{a(),t&&s.detail===1&&(i.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...l)},[t,e,r.timeout])};function hn(e){return typeof e=="function"}function hg(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var ec=hg(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
199
|
+
`)+G+`return __p
|
|
200
|
+
}`;var Pe=Gp(function(){return He(E,ie+"return "+G).apply(r,O)});if(Pe.source=G,ol(Pe))throw Pe;return Pe}function KE(n){return ze(n).toLowerCase()}function YE(n){return ze(n).toUpperCase()}function VE(n,o,u){if(n=ze(n),n&&(u||o===r))return rd(n);if(!n||!(o=fr(o)))return n;var f=kr(n),y=kr(o),E=nd(f,y),O=id(f,y)+1;return Fn(f,E,O).join("")}function XE(n,o,u){if(n=ze(n),n&&(u||o===r))return n.slice(0,ad(n)+1);if(!n||!(o=fr(o)))return n;var f=kr(n),y=id(f,kr(o))+1;return Fn(f,0,y).join("")}function JE(n,o,u){if(n=ze(n),n&&(u||o===r))return n.replace(W,"");if(!n||!(o=fr(o)))return n;var f=kr(n),y=nd(f,kr(o));return Fn(f,y).join("")}function QE(n,o){var u=ee,f=ye;if(ot(o)){var y="separator"in o?o.separator:y;u="length"in o?Ce(o.length):u,f="omission"in o?fr(o.omission):f}n=ze(n);var E=n.length;if(Di(n)){var O=kr(n);E=O.length}if(u>=E)return n;var R=u-Ni(f);if(R<1)return f;var L=O?Fn(O,0,R).join(""):n.slice(0,R);if(y===r)return L+f;if(O&&(R+=L.length-R),al(y)){if(n.slice(R).search(y)){var z,q=L;for(y.global||(y=Eu(y.source,ze(lt.exec(y))+"g")),y.lastIndex=0;z=y.exec(q);)var G=z.index;L=L.slice(0,G===r?R:G)}}else if(n.indexOf(fr(y),R)!=R){var Q=L.lastIndexOf(y);Q>-1&&(L=L.slice(0,Q))}return L+f}function e_(n){return n=ze(n),n&&ti.test(n)?n.replace(Mi,Cy):n}var t_=zi(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),ll=Kd("toUpperCase");function Zp(n,o,u){return n=ze(n),o=u?r:o,o===r?xy(n)?My(n):vy(n):n.match(o)||[]}var Gp=Ie(function(n,o){try{return lr(n,r,o)}catch(u){return ol(u)?u:new xe(u)}}),r_=pn(function(n,o){return Sr(o,function(u){u=Vr(u),fn(n,u,nl(n[u],n))}),n});function n_(n){var o=n==null?0:n.length,u=ve();return n=o?nt(n,function(f){if(typeof f[1]!="function")throw new Er(l);return[u(f[0]),f[1]]}):[],Ie(function(f){for(var y=-1;++y<o;){var E=n[y];if(lr(E[0],this,f))return lr(E[1],this,f)}})}function i_(n){return C1(xr(n,w))}function cl(n){return function(){return n}}function o_(n,o){return n==null||n!==n?o:n}var a_=Vd(),s_=Vd(!0);function ir(n){return n}function fl(n){return Ad(typeof n=="function"?n:xr(n,w))}function u_(n){return Rd(xr(n,w))}function l_(n,o){return Cd(n,xr(o,w))}var c_=Ie(function(n,o){return function(u){return Oo(u,n,o)}}),f_=Ie(function(n,o){return function(u){return Oo(n,u,o)}});function dl(n,o,u){var f=Tt(o),y=La(o,f);u==null&&!(ot(o)&&(y.length||!f.length))&&(u=o,o=n,n=this,y=La(o,Tt(o)));var E=!(ot(u)&&"chain"in u)||!!u.chain,O=vn(n);return Sr(y,function(R){var L=o[R];n[R]=L,O&&(n.prototype[R]=function(){var z=this.__chain__;if(E||z){var q=n(this.__wrapped__),G=q.__actions__=tr(this.__actions__);return G.push({func:L,args:arguments,thisArg:n}),q.__chain__=z,q}return L.apply(n,Tn([this.value()],arguments))})}),n}function d_(){return Mt._===this&&(Mt._=ky),this}function pl(){}function p_(n){return n=Ce(n),Ie(function(o){return Pd(o,n)})}var h_=zu(nt),v_=zu(Xf),m_=zu(vu);function Kp(n){return Xu(n)?mu(Vr(n)):Z1(n)}function g_(n){return function(o){return n==null?r:li(n,o)}}var y_=Jd(),w_=Jd(!0);function hl(){return[]}function vl(){return!1}function b_(){return{}}function S_(){return""}function E_(){return!0}function __(n,o){if(n=Ce(n),n<1||n>Be)return[];var u=Y,f=kt(n,Y);o=ve(o),n-=Y;for(var y=wu(f,o);++u<n;)o(u);return y}function x_(n){return Te(n)?nt(n,Vr):dr(n)?[n]:tr(hp(ze(n)))}function O_(n){var o=++Dy;return ze(n)+o}var A_=Wa(function(n,o){return n+o},0),T_=qu("ceil"),R_=Wa(function(n,o){return n/o},1),C_=qu("floor");function P_(n){return n&&n.length?Fa(n,ir,Pu):r}function I_(n,o){return n&&n.length?Fa(n,ve(o,2),Pu):r}function M_(n){return ed(n,ir)}function F_(n,o){return ed(n,ve(o,2))}function L_(n){return n&&n.length?Fa(n,ir,Lu):r}function $_(n,o){return n&&n.length?Fa(n,ve(o,2),Lu):r}var D_=Wa(function(n,o){return n*o},1),N_=qu("round"),k_=Wa(function(n,o){return n-o},0);function j_(n){return n&&n.length?yu(n,ir):0}function W_(n,o){return n&&n.length?yu(n,ve(o,2)):0}return b.after=uS,b.ary=Op,b.assign=YS,b.assignIn=jp,b.assignInWith=Qa,b.assignWith=VS,b.at=XS,b.before=Ap,b.bind=nl,b.bindAll=r_,b.bindKey=Tp,b.castArray=bS,b.chain=Ep,b.chunk=Cw,b.compact=Pw,b.concat=Iw,b.cond=n_,b.conforms=i_,b.constant=cl,b.countBy=jb,b.create=JS,b.curry=Rp,b.curryRight=Cp,b.debounce=Pp,b.defaults=QS,b.defaultsDeep=eE,b.defer=lS,b.delay=cS,b.difference=Mw,b.differenceBy=Fw,b.differenceWith=Lw,b.drop=$w,b.dropRight=Dw,b.dropRightWhile=Nw,b.dropWhile=kw,b.fill=jw,b.filter=Ub,b.flatMap=zb,b.flatMapDeep=qb,b.flatMapDepth=Zb,b.flatten=yp,b.flattenDeep=Ww,b.flattenDepth=Uw,b.flip=fS,b.flow=a_,b.flowRight=s_,b.fromPairs=Hw,b.functions=sE,b.functionsIn=uE,b.groupBy=Gb,b.initial=zw,b.intersection=qw,b.intersectionBy=Zw,b.intersectionWith=Gw,b.invert=cE,b.invertBy=fE,b.invokeMap=Yb,b.iteratee=fl,b.keyBy=Vb,b.keys=Tt,b.keysIn=nr,b.map=Ga,b.mapKeys=pE,b.mapValues=hE,b.matches=u_,b.matchesProperty=l_,b.memoize=Ya,b.merge=vE,b.mergeWith=Wp,b.method=c_,b.methodOf=f_,b.mixin=dl,b.negate=Va,b.nthArg=p_,b.omit=mE,b.omitBy=gE,b.once=dS,b.orderBy=Xb,b.over=h_,b.overArgs=pS,b.overEvery=v_,b.overSome=m_,b.partial=il,b.partialRight=Ip,b.partition=Jb,b.pick=yE,b.pickBy=Up,b.property=Kp,b.propertyOf=g_,b.pull=Xw,b.pullAll=bp,b.pullAllBy=Jw,b.pullAllWith=Qw,b.pullAt=eb,b.range=y_,b.rangeRight=w_,b.rearg=hS,b.reject=tS,b.remove=tb,b.rest=vS,b.reverse=tl,b.sampleSize=nS,b.set=bE,b.setWith=SE,b.shuffle=iS,b.slice=rb,b.sortBy=sS,b.sortedUniq=lb,b.sortedUniqBy=cb,b.split=zE,b.spread=mS,b.tail=fb,b.take=db,b.takeRight=pb,b.takeRightWhile=hb,b.takeWhile=vb,b.tap=Pb,b.throttle=gS,b.thru=Za,b.toArray=Dp,b.toPairs=Hp,b.toPairsIn=Bp,b.toPath=x_,b.toPlainObject=kp,b.transform=EE,b.unary=yS,b.union=mb,b.unionBy=gb,b.unionWith=yb,b.uniq=wb,b.uniqBy=bb,b.uniqWith=Sb,b.unset=_E,b.unzip=rl,b.unzipWith=Sp,b.update=xE,b.updateWith=OE,b.values=Gi,b.valuesIn=AE,b.without=Eb,b.words=Zp,b.wrap=wS,b.xor=_b,b.xorBy=xb,b.xorWith=Ob,b.zip=Ab,b.zipObject=Tb,b.zipObjectDeep=Rb,b.zipWith=Cb,b.entries=Hp,b.entriesIn=Bp,b.extend=jp,b.extendWith=Qa,dl(b,b),b.add=A_,b.attempt=Gp,b.camelCase=PE,b.capitalize=zp,b.ceil=T_,b.clamp=TE,b.clone=SS,b.cloneDeep=_S,b.cloneDeepWith=xS,b.cloneWith=ES,b.conformsTo=OS,b.deburr=qp,b.defaultTo=o_,b.divide=R_,b.endsWith=IE,b.eq=Wr,b.escape=ME,b.escapeRegExp=FE,b.every=Wb,b.find=Hb,b.findIndex=mp,b.findKey=tE,b.findLast=Bb,b.findLastIndex=gp,b.findLastKey=rE,b.floor=C_,b.forEach=_p,b.forEachRight=xp,b.forIn=nE,b.forInRight=iE,b.forOwn=oE,b.forOwnRight=aE,b.get=sl,b.gt=AS,b.gte=TS,b.has=lE,b.hasIn=ul,b.head=wp,b.identity=ir,b.includes=Kb,b.indexOf=Bw,b.inRange=RE,b.invoke=dE,b.isArguments=di,b.isArray=Te,b.isArrayBuffer=RS,b.isArrayLike=rr,b.isArrayLikeObject=vt,b.isBoolean=CS,b.isBuffer=Ln,b.isDate=PS,b.isElement=IS,b.isEmpty=MS,b.isEqual=FS,b.isEqualWith=LS,b.isError=ol,b.isFinite=$S,b.isFunction=vn,b.isInteger=Mp,b.isLength=Xa,b.isMap=Fp,b.isMatch=DS,b.isMatchWith=NS,b.isNaN=kS,b.isNative=jS,b.isNil=US,b.isNull=WS,b.isNumber=Lp,b.isObject=ot,b.isObjectLike=ct,b.isPlainObject=Io,b.isRegExp=al,b.isSafeInteger=HS,b.isSet=$p,b.isString=Ja,b.isSymbol=dr,b.isTypedArray=Zi,b.isUndefined=BS,b.isWeakMap=zS,b.isWeakSet=qS,b.join=Kw,b.kebabCase=LE,b.last=Ar,b.lastIndexOf=Yw,b.lowerCase=$E,b.lowerFirst=DE,b.lt=ZS,b.lte=GS,b.max=P_,b.maxBy=I_,b.mean=M_,b.meanBy=F_,b.min=L_,b.minBy=$_,b.stubArray=hl,b.stubFalse=vl,b.stubObject=b_,b.stubString=S_,b.stubTrue=E_,b.multiply=D_,b.nth=Vw,b.noConflict=d_,b.noop=pl,b.now=Ka,b.pad=NE,b.padEnd=kE,b.padStart=jE,b.parseInt=WE,b.random=CE,b.reduce=Qb,b.reduceRight=eS,b.repeat=UE,b.replace=HE,b.result=wE,b.round=N_,b.runInContext=M,b.sample=rS,b.size=oS,b.snakeCase=BE,b.some=aS,b.sortedIndex=nb,b.sortedIndexBy=ib,b.sortedIndexOf=ob,b.sortedLastIndex=ab,b.sortedLastIndexBy=sb,b.sortedLastIndexOf=ub,b.startCase=qE,b.startsWith=ZE,b.subtract=k_,b.sum=j_,b.sumBy=W_,b.template=GE,b.times=__,b.toFinite=mn,b.toInteger=Ce,b.toLength=Np,b.toLower=KE,b.toNumber=Tr,b.toSafeInteger=KS,b.toString=ze,b.toUpper=YE,b.trim=VE,b.trimEnd=XE,b.trimStart=JE,b.truncate=QE,b.unescape=e_,b.uniqueId=O_,b.upperCase=t_,b.upperFirst=ll,b.each=_p,b.eachRight=xp,b.first=wp,dl(b,function(){var n={};return Kr(b,function(o,u){Ge.call(b.prototype,u)||(n[u]=o)}),n}(),{chain:!1}),b.VERSION=i,Sr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){b[n].placeholder=b}),Sr(["drop","take"],function(n,o){De.prototype[n]=function(u){u=u===r?1:_t(Ce(u),0);var f=this.__filtered__&&!o?new De(this):this.clone();return f.__filtered__?f.__takeCount__=kt(u,f.__takeCount__):f.__views__.push({size:kt(u,Y),type:n+(f.__dir__<0?"Right":"")}),f},De.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Sr(["filter","map","takeWhile"],function(n,o){var u=o+1,f=u==se||u==be;De.prototype[n]=function(y){var E=this.clone();return E.__iteratees__.push({iteratee:ve(y,3),type:u}),E.__filtered__=E.__filtered__||f,E}}),Sr(["head","last"],function(n,o){var u="take"+(o?"Right":"");De.prototype[n]=function(){return this[u](1).value()[0]}}),Sr(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");De.prototype[n]=function(){return this.__filtered__?new De(this):this[u](1)}}),De.prototype.compact=function(){return this.filter(ir)},De.prototype.find=function(n){return this.filter(n).head()},De.prototype.findLast=function(n){return this.reverse().find(n)},De.prototype.invokeMap=Ie(function(n,o){return typeof n=="function"?new De(this):this.map(function(u){return Oo(u,n,o)})}),De.prototype.reject=function(n){return this.filter(Va(ve(n)))},De.prototype.slice=function(n,o){n=Ce(n);var u=this;return u.__filtered__&&(n>0||o<0)?new De(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=Ce(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},De.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},De.prototype.toArray=function(){return this.take(Y)},Kr(De.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),f=/^(?:head|last)$/.test(o),y=b[f?"take"+(o=="last"?"Right":""):o],E=f||/^find/.test(o);y&&(b.prototype[o]=function(){var O=this.__wrapped__,R=f?[1]:arguments,L=O instanceof De,z=R[0],q=L||Te(O),G=function($e){var Ne=y.apply(b,Tn([$e],R));return f&&Q?Ne[0]:Ne};q&&u&&typeof z=="function"&&z.length!=1&&(L=q=!1);var Q=this.__chain__,ie=!!this.__actions__.length,me=E&&!Q,Pe=L&&!ie;if(!E&&q){O=Pe?O:new De(this);var ge=n.apply(O,R);return ge.__actions__.push({func:Za,args:[G],thisArg:r}),new _r(ge,Q)}return me&&Pe?n.apply(this,R):(ge=this.thru(G),me?f?ge.value()[0]:ge.value():ge)})}),Sr(["pop","push","shift","sort","splice","unshift"],function(n){var o=ya[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",f=/^(?:pop|shift)$/.test(n);b.prototype[n]=function(){var y=arguments;if(f&&!this.__chain__){var E=this.value();return o.apply(Te(E)?E:[],y)}return this[u](function(O){return o.apply(Te(O)?O:[],y)})}}),Kr(De.prototype,function(n,o){var u=b[o];if(u){var f=u.name+"";Ge.call(Ui,f)||(Ui[f]=[]),Ui[f].push({name:o,func:u})}}),Ui[ja(r,C).name]=[{name:"wrapper",func:r}],De.prototype.clone=e1,De.prototype.reverse=t1,De.prototype.value=r1,b.prototype.at=Ib,b.prototype.chain=Mb,b.prototype.commit=Fb,b.prototype.next=Lb,b.prototype.plant=Db,b.prototype.reverse=Nb,b.prototype.toJSON=b.prototype.valueOf=b.prototype.value=kb,b.prototype.first=b.prototype.head,yo&&(b.prototype[yo]=$b),b},ki=Fy();ii?((ii.exports=ki)._=ki,fu._=ki):Mt._=ki}).call(mi)})(Ns,Ns.exports);var St=Ns.exports;const Ac={FdSave:hO,FdWarningDanger:zc,FdInfoCircle:fO,FdInfoBold:fc};var lf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(lf||{}),_i=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(_i||{}),eo=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(eo||{});const mg={[_i.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[_i.DANGER]:{icon:"red-500",button:"primary-dark"},[_i.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Vl=({color:e=_i.PRIMARY,variant:t="solid",children:r,autoFocus:i,...a})=>{const s=mg[e].button,l=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${s}`:`text-white bg-${s} border border-${s} hover:border-white hover:bg-white hover:text-${s}`;return k.jsx("button",{autoFocus:i,className:Dt("w-28 rounded p-1.5 text-xs font-medium hover:font-bold focus:outline-none",l),...a,children:r})},qP=({name:e,color:t=_i.PRIMARY,className:r="w-10 h-10"})=>{const i=Ac[e]||Ac.FdInfoCircle,a=`text-${mg[t].icon}`;return k.jsx(i,{className:Dt(r,a)})},ZP=({id:e,title:t,message:r,icon:i,type:a,color:s,zIndex:l=3e3,views:c,width:d=520,hasOverlay:p=!0,onClose:h,onEdit:w})=>{const S=g=>{h({id:e,reason:g})};N.useEffect(()=>{function g(x){x.key==="Escape"&&S(eo.CANCELED)}return window.addEventListener("keyup",g),()=>{window.removeEventListener("keyup",g)}},[]);const v=St.merge(St.values(c==null?void 0:c.toggles).flatMap(g=>g.value?g.warnings||[]:[]),c==null?void 0:c.tips),_=(g,x)=>{var P;if(!(c!=null&&c.toggles))return;const C=St.cloneDeep(c);(P=C.toggles)!=null&&P[g]&&(C.toggles[g].value=x),w({id:e,views:C})};return Qo.createPortal(k.jsx(Ds,{appear:!0,show:!0,as:N.Fragment,children:k.jsx("div",{className:Dt("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":p}),style:{zIndex:l},onClick:()=>S(eo.CANCELED),children:k.jsx(Ds.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:k.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-200 bg-grey-500",style:{width:d},onClick:g=>g.stopPropagation(),children:k.jsxs("div",{className:"flex flex-col items-center gap-5 p-6 px-12",children:[i?k.jsx("div",{className:"flex items-center justify-center",children:k.jsx(qP,{name:i,color:s})}):null,k.jsx(GP,{condition:t,children:k.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),k.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),k.jsx("div",{className:"text-xs text-white",children:St.values(c==null?void 0:c.toggles).map(g=>k.jsx("div",{children:k.jsxs("label",{htmlFor:g.key,className:"flex items-center",children:[k.jsx(hg,{size:"xs",value:g.value,onChange:x=>_(g.key,x)}),k.jsx("span",{className:"ml-1",children:g.title})]})},g.key))}),k.jsx(KP,{warnings:v}),k.jsx("div",{className:"flex items-center gap-4 p-1",children:a===lf.CONFIRM?k.jsxs(k.Fragment,{children:[k.jsx(Vl,{autoFocus:!0,color:s,onClick:()=>S(eo.CONFIRMED),children:"Confirm"}),k.jsx(Vl,{color:s,variant:"outlined",onClick:()=>S(eo.CANCELED),children:"Cancel"})]}):k.jsx(Vl,{autoFocus:!0,onClick:()=>S(),children:"OK"})})]})})})})}),document.querySelector("body"))},GP=e=>e.condition?k.jsx(k.Fragment,{children:e.children}):null,KP=e=>e.warnings?k.jsx(Ds,{appear:!0,show:!!e.warnings.length,as:N.Fragment,children:k.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>k.jsx(Ds.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:k.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[k.jsx(zc,{className:Dt({"h-3 w-3":!0,"text-orange-400":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),k.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;function YP(e,t){const r=N.useRef(!1);N.useEffect(()=>{if(r.current)return e();r.current=!0},t)}var Xl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Jl(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),function(){r(window.event)})}function gg(e,t){for(var r=t.slice(0,t.length-1),i=0;i<r.length;i++)r[i]=e[r[i].toLowerCase()];return r}function yg(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),r=t.lastIndexOf("");r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function VP(e,t){for(var r=e.length>=t.length?e:t,i=e.length>=t.length?t:e,a=!0,s=0;s<r.length;s++)i.indexOf(r[s])===-1&&(a=!1);return a}var Go={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Xl?173:189,"=":Xl?61:187,";":Xl?59:186,"'":222,"[":219,"]":221,"\\":220},an={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Tc={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},$t={16:!1,18:!1,17:!1,91:!1},ft={};for(var ms=1;ms<20;ms++)Go["f".concat(ms)]=111+ms;var Qe=[],gv=!1,wg="all",bg=[],ca=function(t){return Go[t.toLowerCase()]||an[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)},XP=function(t){return Object.keys(Go).find(function(r){return Go[r]===t})},JP=function(t){return Object.keys(an).find(function(r){return an[r]===t})};function Sg(e){wg=e||"all"}function Ko(){return wg||"all"}function QP(){return Qe.slice(0)}function e2(){return Qe.map(function(e){return XP(e)||JP(e)||String.fromCharCode(e)})}function t2(){var e=[];return Object.keys(ft).forEach(function(t){ft[t].forEach(function(r){var i=r.key,a=r.scope,s=r.mods,l=r.shortcut;e.push({scope:a,shortcut:l,mods:s,keys:i.split("+").map(function(c){return ca(c)})})})}),e}function r2(e){var t=e.target||e.srcElement,r=t.tagName,i=!0;return(t.isContentEditable||(r==="INPUT"||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function n2(e){return typeof e=="string"&&(e=ca(e)),Qe.indexOf(e)!==-1}function i2(e,t){var r,i;e||(e=Ko());for(var a in ft)if(Object.prototype.hasOwnProperty.call(ft,a))for(r=ft[a],i=0;i<r.length;)r[i].scope===e?r.splice(i,1):i++;Ko()===e&&Sg(t||"all")}function o2(e){var t=e.keyCode||e.which||e.charCode,r=Qe.indexOf(t);if(r>=0&&Qe.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Qe.splice(0,Qe.length),(t===93||t===224)&&(t=91),t in $t){$t[t]=!1;for(var i in an)an[i]===t&&(Zr[i]=!1)}}function a2(e){if(typeof e>"u")Object.keys(ft).forEach(function(l){return delete ft[l]});else if(Array.isArray(e))e.forEach(function(l){l.key&&Ql(l)});else if(typeof e=="object")e.key&&Ql(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var a=r[0],s=r[1];typeof a=="function"&&(s=a,a=""),Ql({key:e,scope:a,method:s,splitKey:"+"})}}var Ql=function(t){var r=t.key,i=t.scope,a=t.method,s=t.splitKey,l=s===void 0?"+":s,c=yg(r);c.forEach(function(d){var p=d.split(l),h=p.length,w=p[h-1],S=w==="*"?"*":ca(w);if(ft[S]){i||(i=Ko());var v=h>1?gg(an,p):[];ft[S]=ft[S].filter(function(_){var g=a?_.method===a:!0;return!(g&&_.scope===i&&VP(_.mods,v))})}})};function yv(e,t,r,i){if(t.element===i){var a;if(t.scope===r||t.scope==="all"){a=t.mods.length>0;for(var s in $t)Object.prototype.hasOwnProperty.call($t,s)&&(!$t[s]&&t.mods.indexOf(+s)>-1||$t[s]&&t.mods.indexOf(+s)===-1)&&(a=!1);(t.mods.length===0&&!$t[16]&&!$t[18]&&!$t[17]&&!$t[91]||a||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Qe),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function wv(e,t){var r=ft["*"],i=e.keyCode||e.which||e.charCode;if(Zr.filter.call(this,e)){if((i===93||i===224)&&(i=91),Qe.indexOf(i)===-1&&i!==229&&Qe.push(i),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(_){var g=Tc[_];e[_]&&Qe.indexOf(g)===-1?Qe.push(g):!e[_]&&Qe.indexOf(g)>-1?Qe.splice(Qe.indexOf(g),1):_==="metaKey"&&e[_]&&Qe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Qe=Qe.slice(Qe.indexOf(g))))}),i in $t){$t[i]=!0;for(var a in an)an[a]===i&&(Zr[a]=!0);if(!r)return}for(var s in $t)Object.prototype.hasOwnProperty.call($t,s)&&($t[s]=e[Tc[s]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Qe.indexOf(17)===-1&&Qe.push(17),Qe.indexOf(18)===-1&&Qe.push(18),$t[17]=!0,$t[18]=!0);var l=Ko();if(r)for(var c=0;c<r.length;c++)r[c].scope===l&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&yv(e,r[c],l,t);if(i in ft){for(var d=0;d<ft[i].length;d++)if((e.type==="keydown"&&ft[i][d].keydown||e.type==="keyup"&&ft[i][d].keyup)&&ft[i][d].key){for(var p=ft[i][d],h=p.splitKey,w=p.key.split(h),S=[],v=0;v<w.length;v++)S.push(ca(w[v]));S.sort().join("")===Qe.sort().join("")&&yv(e,p,l,t)}}}}function s2(e){return bg.indexOf(e)>-1}function Zr(e,t,r){Qe=[];var i=yg(e),a=[],s="all",l=document,c=0,d=!1,p=!0,h="+",w=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(l=t.element),t.keyup&&(d=t.keyup),t.keydown!==void 0&&(p=t.keydown),t.capture!==void 0&&(w=t.capture),typeof t.splitKey=="string"&&(h=t.splitKey)),typeof t=="string"&&(s=t);c<i.length;c++)e=i[c].split(h),a=[],e.length>1&&(a=gg(an,e)),e=e[e.length-1],e=e==="*"?"*":ca(e),e in ft||(ft[e]=[]),ft[e].push({keyup:d,keydown:p,scope:s,mods:a,shortcut:i[c],method:r,key:i[c],splitKey:h,element:l});typeof l<"u"&&!s2(l)&&window&&(bg.push(l),Jl(l,"keydown",function(S){wv(S,l)},w),gv||(gv=!0,Jl(window,"focus",function(){Qe=[]},w)),Jl(l,"keyup",function(S){wv(S,l),o2(S)},w))}function u2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ft).forEach(function(r){var i=ft[r].filter(function(a){return a.scope===t&&a.shortcut===e});i.forEach(function(a){a&&a.method&&a.method()})})}var ec={getPressedKeyString:e2,setScope:Sg,getScope:Ko,deleteScope:i2,getPressedKeyCodes:QP,getAllKeyCodes:t2,isPressed:n2,filter:r2,trigger:u2,unbind:a2,keyMap:Go,modifier:an,modifierMap:Tc};for(var tc in ec)Object.prototype.hasOwnProperty.call(ec,tc)&&(Zr[tc]=ec[tc]);if(typeof window<"u"){var l2=window.hotkeys;Zr.noConflict=function(e){return e&&window.hotkeys===Zr&&(window.hotkeys=l2),Zr},window.hotkeys=Zr}Zr.filter=()=>!0;function c2(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:a=!0}=r,s=N.useCallback((c,d)=>{a&&c.preventDefault(),setTimeout(()=>t(c,d))},i),l=()=>{Zr.unbind(e,s)};N.useEffect(()=>(Zr(e,r,s),l),[e,r,s])}const f2=e=>{const t=N.useRef(null);return N.useEffect(()=>{const r=i=>{t.current&&!t.current.contains(i.target)&&e(i)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function d2(e){const t=N.useRef();return N.useEffect(()=>{t.current=e},[e]),t.current}function p2(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e},[e]),t}function h2(e){const t=N.useRef(null);return N.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function v2(e){const[t,r]=N.useState(e),i=(s,l)=>{r(c=>({...c,features:{...c.features,[s]:{enabled:l}}}))},a=N.useCallback((...s)=>s.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:a}}const Eg=N.createContext(""),m2=e=>k.jsx(Eg.Provider,{value:e.value,children:e.children}),g2=()=>{const e=N.useContext(Eg);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function y2(e){const[t,r]=N.useState(e),i=N.useMemo(()=>w2(t,r),[]);return{state:t,actions:{...i,set:a=>{r(typeof a=="function"?a:s=>({...s,...a}))}}}}function w2(e,t=()=>{}){return Object.keys(e).reduce((i,a)=>({...i,[`set${St.upperFirst(a)}`]:s=>t(l=>({...l,[a]:s}))}),{})}const b2=(e,t,r={})=>{r={timeout:200,...r};const i=N.useRef(),a=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return N.useCallback((s,...l)=>{a(),t&&s.detail===1&&(i.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...l)},[t,e,r.timeout])};function En(e){return typeof e=="function"}function _g(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var rc=_g(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
173
201
|
`+r.map(function(i,a){return a+1+") "+i.toString()}).join(`
|
|
174
|
-
`):"",this.name="UnsubscriptionError",this.errors=r}});function Tc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ys=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,a,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=dc(l),d=c.next();!d.done;d=c.next()){var p=d.value;p.remove(this)}}catch(g){t={error:g}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var h=this.initialTeardown;if(hn(h))try{h()}catch(g){s=g instanceof ec?g.errors:[g]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var v=dc(b),w=v.next();!w.done;w=v.next()){var x=w.value;try{hv(x)}catch(g){s=s??[],g instanceof ec?s=hc(hc([],pc(s)),pc(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{w&&!w.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}}if(s)throw new ec(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)hv(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Tc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Tc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),vg=Ys.EMPTY;function mg(e){return e instanceof Ys||e&&"closed"in e&&hn(e.remove)&&hn(e.add)&&hn(e.unsubscribe)}function hv(e){hn(e)?e():e.unsubscribe()}var gg={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},s2={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,hc([e,t],pc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function u2(e){s2.setTimeout(function(){throw e})}function vv(){}function Ss(e){e()}var yg=function(e){Ws(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,mg(r)&&r.add(i)):i.destination=d2,i}return t.create=function(r,i,a){return new Cc(r,i,a)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Ys),l2=Function.prototype.bind;function tc(e,t){return l2.call(e,t)}var c2=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){ds(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){ds(i)}else ds(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ds(r)}},e}(),Cc=function(e){Ws(t,e);function t(r,i,a){var s=e.call(this)||this,l;if(hn(r)||!r)l={next:r??void 0,error:i??void 0,complete:a??void 0};else{var c;s&&gg.useDeprecatedNextContext?(c=Object.create(r),c.unsubscribe=function(){return s.unsubscribe()},l={next:r.next&&tc(r.next,c),error:r.error&&tc(r.error,c),complete:r.complete&&tc(r.complete,c)}):l=r}return s.destination=new c2(l),s}return t}(yg);function ds(e){u2(e)}function f2(e){throw e}var d2={closed:!0,next:vv,error:f2,complete:vv},p2=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function h2(e){return e}function v2(e){return e.length===0?h2:e.length===1?e[0]:function(r){return e.reduce(function(i,a){return a(i)},r)}}var mv=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var a=this,s=g2(t)?t:new Cc(t,r,i);return Ss(function(){var l=a,c=l.operator,d=l.source;s.add(c?c.call(s,d):d?a._subscribe(s):a._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=gv(r),new r(function(a,s){var l=new Cc({next:function(c){try{t(c)}catch(d){s(d),l.unsubscribe()}},error:s,complete:a});i.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[p2]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return v2(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=gv(t),new t(function(i,a){var s;r.subscribe(function(l){return s=l},function(l){return a(l)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function gv(e){var t;return(t=e??gg.Promise)!==null&&t!==void 0?t:Promise}function m2(e){return e&&hn(e.next)&&hn(e.error)&&hn(e.complete)}function g2(e){return e&&e instanceof yg||m2(e)&&mg(e)}var y2=hg(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),mi=function(e){Ws(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new yv(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new y2},t.prototype.next=function(r){var i=this;Ss(function(){var a,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=dc(i.currentObservers),c=l.next();!c.done;c=l.next()){var d=c.value;d.next(r)}}catch(p){a={error:p}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var i=this;Ss(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var a=i.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;Ss(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,a=this,s=a.hasError,l=a.isStopped,c=a.observers;return s||l?vg:(this.currentObservers=null,c.push(r),new Ys(function(){i.currentObservers=null,Tc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,a=i.hasError,s=i.thrownError,l=i.isStopped;a?r.error(s):l&&r.complete()},t.prototype.asObservable=function(){var r=new mv;return r.source=this,r},t.create=function(r,i){return new yv(r,i)},t}(mv),yv=function(e){Ws(t,e);function t(r,i){var a=e.call(this)||this;return a.destination=r,a.source=i,a}return t.prototype.next=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.next)===null||a===void 0||a.call(i,r)},t.prototype.error=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.error)===null||a===void 0||a.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,a;return(a=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&a!==void 0?a:vg},t}(mi),wg=(e=>(e.RELOAD="reload",e))(wg||{}),bg=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(bg||{});const w2=new mi,b2=new mi,Sg=new mi;var Eg=(e=>(e.SAVE_ALL="save-all",e))(Eg||{});const S2=new mi;var xg=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(xg||{});const E2=new mi;var _g=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(_g||{});const x2=new mi,uf=31;var lf=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${uf} characters`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(lf||{});function Og(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>uf)throw new Error(lf.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(e))throw new Error("Invalid name");return!0}function _2(e){if(!e)return null;if(typeof e=="string")try{Og(e)}catch(t){return t.message}}function O2(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!pt.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!pt.isObject(i)||Array.isArray(i))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function Vs(e){const t=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(t,"")}var cf=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(cf||{});const Dn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Sr=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Sr||{}),gi=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(gi||{}),ff=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(ff||{});const Ag="roles.json",Tg="qodlyApp.json",A2="model.4DModel",Cg="HTTPHandlers.json";function Rg(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Sr.MODEL;case r==="WebForm":return Sr.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===Dn.METHODS):return Sr.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===Dn.CLASSES):return Sr.CLASS;case e===Ag:return Sr.ROLES;case e===Cg:return Sr.HTTP_HANDLERS;case e===Tg:return Sr.SETTINGS;default:return Sr.TEXT}}function T2(e,t=!1){switch(e){case Dn.REPORTS:case"report":return"QoDoc";case Dn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Dn.CLASSES:case Dn.METHODS:return t?"4qs":"4dm";default:return""}}function C2(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}class Pg{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(a=>{t=a}),i=this.current.then(()=>t);return this.current=r,i}}function Ig(){const e=new Pg;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const Mg=pt.curry((e,t,r)=>e&&pt.get(r,e)===t),R2=pt.curry((e,t,r)=>pt.get(r,e)!==t),P2=pt.curry((e,t)=>pt.get(t,"id")!==e),I2=pt.curry((e,t)=>pt.get(t,"id")===e),M2=pt.curry((e,t)=>pt.get(t,"path")===e);function L2(e="id",t,r){return r.findIndex(Mg(e,t))!==-1}function $2(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function Lg(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function F2(e){return e.type==="object"}function $g(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function Fg(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Lg(e)}function D2(e){return $g(e)||Fg(e)}function k2(e){return e.applyTo==="dataStore"}function N2(e){return e.applyTo==="dataClass"}function j2(e){return e.applyTo==="entity"}function W2(e){return e.applyTo==="entityCollection"}function U2(e){return e.type==="entity"}function z2(e){return e.type==="entitysel"}function Dg(e){return e.dataType==="array"}function kg(e){return e.dataType==="object"}function Ng(e){return e.type==="scalar"}function B2(e){return Dg(e)||kg(e)||Ng(e)}const H2=e=>e!=null&&e.type==="entity",Z2=e=>e.type==="entitysel",q2=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",G2=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",K2=e=>e.type==="scalar"&&e.dataType==="date";function Y2(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}var ko=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(ko||{}),jg=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(jg||{}),df=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(df||{});const V2={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function X2(e){var s;let t={};try{const l=((s=e.match(/\/\/%attributes = (.*)/))==null?void 0:s[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:ko.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:df.table}},...i}}function Wg(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[ko.capable,ko.incapable].includes(e.preemptive)&&(t.preemptive=e.preemptive),e.publishedSoap&&(t.publishedSoap=!0,e.publishedWsdl&&(t.publishedWsdl=!0)),e.publishedWeb&&(t.publishedWeb=!0),e.publishedSql&&(t.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(t.published4DMobile=e.publishedRestOptions),JSON.stringify(t).replace(/"(true|false)"/g,"$1")}function J2(e,t,r=!1){const i=pt.isString(t)?t:Wg(t);if(!r&&Ug(e))return e;const a=zg(e);return`//%attributes = ${i}\r
|
|
175
|
-
${a}`}function
|
|
176
|
-
`}Xs.prototype.toString=function(t){return this.errors.map(tI).join("")};Object.defineProperty(Xs.prototype,"valid",{get:function(){return!this.errors.length}});ot.ValidatorResultError=di;function di(e){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,di),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}di.prototype=new Error;di.prototype.constructor=di;di.prototype.name="Validation Error";var wv=ot.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)};wv.prototype=Object.create(Error.prototype,{constructor:{value:wv,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var Ic=ot.SchemaContext=function(t,r,i,a,s){this.schema=t,this.options=r,Array.isArray(i)?(this.path=i,this.propertyPath=i.reduce(function(l,c){return l+Bg(c)},"instance")):this.propertyPath=i,this.base=a,this.schemas=s};Ic.prototype.resolve=function(t){return Hg(this.base,t)};Ic.prototype.makeChild=function(t,r){var i=r===void 0?this.path:this.path.concat([r]),a=t.$id||t.id;let s=Hg(this.base,a||"");var l=new Ic(t,this.options,i,s,Object.create(this.schemas));return a&&!l.schemas[s]&&(l.schemas[s]=t),l};var Lr=ot.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(e){return typeof e=="string"&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch{t=!1}return t},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};Lr.regexp=Lr.regex;Lr.pattern=Lr.regex;Lr.ipv4=Lr["ip-address"];ot.isFormat=function(t,r,i){if(typeof t=="string"&&Lr[r]!==void 0){if(Lr[r]instanceof RegExp)return Lr[r].test(t);if(typeof Lr[r]=="function")return Lr[r](t)}else if(i&&i.customFormats&&typeof i.customFormats[r]=="function")return i.customFormats[r](t);return!0};var Bg=ot.makeSuffix=function(t){return t=t.toString(),!t.match(/[.\s\[\]]/)&&!t.match(/^[\d]/)?"."+t:t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]"};ot.deepCompareStrict=function e(t,r){if(typeof t!=typeof r)return!1;if(Array.isArray(t))return!Array.isArray(r)||t.length!==r.length?!1:t.every(function(s,l){return e(t[l],r[l])});if(typeof t=="object"){if(!t||!r)return t===r;var i=Object.keys(t),a=Object.keys(r);return i.length!==a.length?!1:i.every(function(s){return e(t[s],r[s])})}return t===r};function rI(e,t,r,i){typeof r=="object"?t[i]=pf(e[i],r):e.indexOf(r)===-1&&t.push(r)}function nI(e,t,r){t[r]=e[r]}function iI(e,t,r,i){typeof t[i]!="object"||!t[i]?r[i]=t[i]:e[i]?r[i]=pf(e[i],t[i]):r[i]=t[i]}function pf(e,t){var r=Array.isArray(t),i=r&&[]||{};return r?(e=e||[],i=i.concat(e),t.forEach(rI.bind(null,e,i))):(e&&typeof e=="object"&&Object.keys(e).forEach(nI.bind(null,e,i)),Object.keys(t).forEach(iI.bind(null,e,t,i))),i}ot.deepMerge=pf;ot.objectGetPath=function(t,r){for(var i=r.split("/").slice(1),a;typeof(a=i.shift())=="string";){var s=decodeURIComponent(a.replace(/~0/,"~").replace(/~1/g,"/"));if(!(s in t))return;t=t[s]}return t};function oI(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}ot.encodePath=function(t){return t.map(oI).join("")};ot.getDecimalPlaces=function(t){var r=0;if(isNaN(t))return r;typeof t!="number"&&(t=Number(t));var i=t.toString().split("e");if(i.length===2){if(i[1][0]!=="-")return r;r=Number(i[1].slice(1))}var a=i[0].split(".");return a.length===2&&(r+=a[1].length),r};ot.isSchema=function(t){return typeof t=="object"&&t||typeof t=="boolean"};var Hg=ot.resolveUrl=function(t,r){const i=new URL(r,new URL(t,"resolve://"));if(i.protocol==="resolve:"){const{pathname:a,search:s,hash:l}=i;return a+s+l}return i.toString()},sr=ot,Fe=sr.ValidatorResult,jn=sr.SchemaError,hf={};hf.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var De=hf.validators={};De.type=function(t,r,i,a){if(t===void 0)return null;var s=new Fe(t,r,i,a),l=Array.isArray(r.type)?r.type:[r.type];if(!l.some(this.testType.bind(this,t,r,i,a))){var c=l.map(function(d){if(d){var p=d.$id||d.id;return p?"<"+p+">":d+""}});s.addError({name:"type",argument:c,message:"is not of a type(s) "+c})}return s};function vf(e,t,r,i,a){var s=t.throwError,l=t.throwAll;t.throwError=!1,t.throwAll=!1;var c=this.validateSchema(e,a,t,r);return t.throwError=s,t.throwAll=l,!c.valid&&i instanceof Function&&i(c),c.valid}De.anyOf=function(t,r,i,a){if(t===void 0)return null;var s=new Fe(t,r,i,a),l=new Fe(t,r,i,a);if(!Array.isArray(r.anyOf))throw new jn("anyOf must be an array");if(!r.anyOf.some(vf.bind(this,t,i,a,function(d){l.importErrors(d)}))){var c=r.anyOf.map(function(d,p){var h=d.$id||d.id;return h?"<"+h+">":d.title&&JSON.stringify(d.title)||d.$ref&&"<"+d.$ref+">"||"[subschema "+p+"]"});i.nestedErrors&&s.importErrors(l),s.addError({name:"anyOf",argument:c,message:"is not any of "+c.join(",")})}return s};De.allOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.allOf))throw new jn("allOf must be an array");var s=new Fe(t,r,i,a),l=this;return r.allOf.forEach(function(c,d){var p=l.validateSchema(t,c,i,a);if(!p.valid){var h=c.$id||c.id,b=h||c.title&&JSON.stringify(c.title)||c.$ref&&"<"+c.$ref+">"||"[subschema "+d+"]";s.addError({name:"allOf",argument:{id:b,length:p.errors.length,valid:p},message:"does not match allOf schema "+b+" with "+p.errors.length+" error[s]:"}),s.importErrors(p)}}),s};De.oneOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.oneOf))throw new jn("oneOf must be an array");var s=new Fe(t,r,i,a),l=new Fe(t,r,i,a),c=r.oneOf.filter(vf.bind(this,t,i,a,function(p){l.importErrors(p)})).length,d=r.oneOf.map(function(p,h){var b=p.$id||p.id;return b||p.title&&JSON.stringify(p.title)||p.$ref&&"<"+p.$ref+">"||"[subschema "+h+"]"});return c!==1&&(i.nestedErrors&&s.importErrors(l),s.addError({name:"oneOf",argument:d,message:"is not exactly one from "+d.join(",")})),s};De.if=function(t,r,i,a){if(t===void 0)return null;if(!sr.isSchema(r.if))throw new Error('Expected "if" keyword to be a schema');var s=vf.call(this,t,i,a,null,r.if),l=new Fe(t,r,i,a),c;if(s){if(r.then===void 0)return;if(!sr.isSchema(r.then))throw new Error('Expected "then" keyword to be a schema');c=this.validateSchema(t,r.then,i,a.makeChild(r.then)),l.importErrors(c)}else{if(r.else===void 0)return;if(!sr.isSchema(r.else))throw new Error('Expected "else" keyword to be a schema');c=this.validateSchema(t,r.else,i,a.makeChild(r.else)),l.importErrors(c)}return l};function mf(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e){for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}}De.propertyNames=function(t,r,i,a){if(this.types.object(t)){var s=new Fe(t,r,i,a),l=r.propertyNames!==void 0?r.propertyNames:{};if(!sr.isSchema(l))throw new jn('Expected "propertyNames" to be a schema (object or boolean)');for(var c in t)if(mf(t,c)!==void 0){var d=this.validateSchema(c,l,i,a.makeChild(l));s.importErrors(d)}return s}};De.properties=function(t,r,i,a){if(this.types.object(t)){var s=new Fe(t,r,i,a),l=r.properties||{};for(var c in l){var d=l[c];if(d!==void 0){if(d===null)throw new jn('Unexpected null, expected schema in "properties"');typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,c,d,i,a);var p=mf(t,c),h=this.validateSchema(p,d,i,a.makeChild(d,c));h.instance!==s.instance[c]&&(s.instance[c]=h.instance),s.importErrors(h)}}return s}};function Zg(e,t,r,i,a,s){if(this.types.object(e)&&!(t.properties&&t.properties[a]!==void 0))if(t.additionalProperties===!1)s.addError({name:"additionalProperties",argument:a,message:"is not allowed to have the additional property "+JSON.stringify(a)});else{var l=t.additionalProperties||{};typeof r.preValidateProperty=="function"&&r.preValidateProperty(e,a,l,r,i);var c=this.validateSchema(e[a],l,r,i.makeChild(l,a));c.instance!==s.instance[a]&&(s.instance[a]=c.instance),s.importErrors(c)}}De.patternProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Fe(t,r,i,a),l=r.patternProperties||{};for(var c in t){var d=!0;for(var p in l){var h=l[p];if(h!==void 0){if(h===null)throw new jn('Unexpected null, expected schema in "patternProperties"');try{var b=new RegExp(p,"u")}catch{b=new RegExp(p)}if(b.test(c)){d=!1,typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,c,h,i,a);var v=this.validateSchema(t[c],h,i,a.makeChild(h,c));v.instance!==s.instance[c]&&(s.instance[c]=v.instance),s.importErrors(v)}}}d&&Zg.call(this,t,r,i,a,c,s)}return s}};De.additionalProperties=function(t,r,i,a){if(this.types.object(t)){if(r.patternProperties)return null;var s=new Fe(t,r,i,a);for(var l in t)Zg.call(this,t,r,i,a,l,s);return s}};De.minProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Fe(t,r,i,a),l=Object.keys(t);return l.length>=r.minProperties||s.addError({name:"minProperties",argument:r.minProperties,message:"does not meet minimum property length of "+r.minProperties}),s}};De.maxProperties=function(t,r,i,a){if(this.types.object(t)){var s=new Fe(t,r,i,a),l=Object.keys(t);return l.length<=r.maxProperties||s.addError({name:"maxProperties",argument:r.maxProperties,message:"does not meet maximum property length of "+r.maxProperties}),s}};De.items=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.items!==void 0){var l=new Fe(t,r,i,a);return t.every(function(c,d){if(Array.isArray(r.items))var p=r.items[d]===void 0?r.additionalItems:r.items[d];else var p=r.items;if(p===void 0)return!0;if(p===!1)return l.addError({name:"items",message:"additionalItems not permitted"}),!1;var h=s.validateSchema(c,p,i,a.makeChild(p,d));return h.instance!==l.instance[d]&&(l.instance[d]=h.instance),l.importErrors(h),!0}),l}};De.contains=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.contains!==void 0){if(!sr.isSchema(r.contains))throw new Error('Expected "contains" keyword to be a schema');var l=new Fe(t,r,i,a),c=t.some(function(d,p){var h=s.validateSchema(d,r.contains,i,a.makeChild(r.contains,p));return h.errors.length===0});return c===!1&&l.addError({name:"contains",argument:r.contains,message:"must contain an item matching given schema"}),l}};De.minimum=function(t,r,i,a){if(this.types.number(t)){var s=new Fe(t,r,i,a);return r.exclusiveMinimum&&r.exclusiveMinimum===!0?t>r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than "+r.minimum}):t>=r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than or equal to "+r.minimum}),s}};De.maximum=function(t,r,i,a){if(this.types.number(t)){var s=new Fe(t,r,i,a);return r.exclusiveMaximum&&r.exclusiveMaximum===!0?t<r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than "+r.maximum}):t<=r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than or equal to "+r.maximum}),s}};De.exclusiveMinimum=function(t,r,i,a){if(typeof r.exclusiveMinimum!="boolean"&&this.types.number(t)){var s=new Fe(t,r,i,a),l=t>r.exclusiveMinimum;return l||s.addError({name:"exclusiveMinimum",argument:r.exclusiveMinimum,message:"must be strictly greater than "+r.exclusiveMinimum}),s}};De.exclusiveMaximum=function(t,r,i,a){if(typeof r.exclusiveMaximum!="boolean"&&this.types.number(t)){var s=new Fe(t,r,i,a),l=t<r.exclusiveMaximum;return l||s.addError({name:"exclusiveMaximum",argument:r.exclusiveMaximum,message:"must be strictly less than "+r.exclusiveMaximum}),s}};var qg=function(t,r,i,a,s,l){if(this.types.number(t)){var c=r[s];if(c==0)throw new jn(s+" cannot be zero");var d=new Fe(t,r,i,a),p=sr.getDecimalPlaces(t),h=sr.getDecimalPlaces(c),b=Math.max(p,h),v=Math.pow(10,b);return Math.round(t*v)%Math.round(c*v)!==0&&d.addError({name:s,argument:c,message:l+JSON.stringify(c)}),d}};De.multipleOf=function(t,r,i,a){return qg.call(this,t,r,i,a,"multipleOf","is not a multiple of (divisible by) ")};De.divisibleBy=function(t,r,i,a){return qg.call(this,t,r,i,a,"divisibleBy","is not divisible by (multiple of) ")};De.required=function(t,r,i,a){var s=new Fe(t,r,i,a);return t===void 0&&r.required===!0?s.addError({name:"required",message:"is required"}):this.types.object(t)&&Array.isArray(r.required)&&r.required.forEach(function(l){mf(t,l)===void 0&&s.addError({name:"required",argument:l,message:"requires property "+JSON.stringify(l)})}),s};De.pattern=function(t,r,i,a){if(this.types.string(t)){var s=new Fe(t,r,i,a),l=r.pattern;try{var c=new RegExp(l,"u")}catch{c=new RegExp(l)}return t.match(c)||s.addError({name:"pattern",argument:r.pattern,message:"does not match pattern "+JSON.stringify(r.pattern.toString())}),s}};De.format=function(t,r,i,a){if(t!==void 0){var s=new Fe(t,r,i,a);return!s.disableFormat&&!sr.isFormat(t,r.format,this)&&s.addError({name:"format",argument:r.format,message:"does not conform to the "+JSON.stringify(r.format)+" format"}),s}};De.minLength=function(t,r,i,a){if(this.types.string(t)){var s=new Fe(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),c=t.length-(l?l.length:0);return c>=r.minLength||s.addError({name:"minLength",argument:r.minLength,message:"does not meet minimum length of "+r.minLength}),s}};De.maxLength=function(t,r,i,a){if(this.types.string(t)){var s=new Fe(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),c=t.length-(l?l.length:0);return c<=r.maxLength||s.addError({name:"maxLength",argument:r.maxLength,message:"does not meet maximum length of "+r.maxLength}),s}};De.minItems=function(t,r,i,a){if(this.types.array(t)){var s=new Fe(t,r,i,a);return t.length>=r.minItems||s.addError({name:"minItems",argument:r.minItems,message:"does not meet minimum length of "+r.minItems}),s}};De.maxItems=function(t,r,i,a){if(this.types.array(t)){var s=new Fe(t,r,i,a);return t.length<=r.maxItems||s.addError({name:"maxItems",argument:r.maxItems,message:"does not meet maximum length of "+r.maxItems}),s}};function aI(e,t,r){var i,a=r.length;for(i=t+1,a;i<a;i++)if(sr.deepCompareStrict(e,r[i]))return!1;return!0}De.uniqueItems=function(t,r,i,a){if(r.uniqueItems===!0&&this.types.array(t)){var s=new Fe(t,r,i,a);return t.every(aI)||s.addError({name:"uniqueItems",message:"contains duplicate item"}),s}};De.dependencies=function(t,r,i,a){if(this.types.object(t)){var s=new Fe(t,r,i,a);for(var l in r.dependencies)if(t[l]!==void 0){var c=r.dependencies[l],d=a.makeChild(c,l);if(typeof c=="string"&&(c=[c]),Array.isArray(c))c.forEach(function(h){t[h]===void 0&&s.addError({name:"dependencies",argument:d.propertyPath,message:"property "+h+" not found, required by "+d.propertyPath})});else{var p=this.validateSchema(t,c,i,d);s.instance!==p.instance&&(s.instance=p.instance),p&&p.errors.length&&(s.addError({name:"dependencies",argument:d.propertyPath,message:"does not meet dependency required by "+d.propertyPath}),s.importErrors(p))}}return s}};De.enum=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.enum))throw new jn("enum expects an array",r);var s=new Fe(t,r,i,a);return r.enum.some(sr.deepCompareStrict.bind(null,t))||s.addError({name:"enum",argument:r.enum,message:"is not one of enum values: "+r.enum.map(String).join(",")}),s};De.const=function(t,r,i,a){if(t===void 0)return null;var s=new Fe(t,r,i,a);return sr.deepCompareStrict(r.const,t)||s.addError({name:"const",argument:r.const,message:"does not exactly match expected constant: "+r.const}),s};De.not=De.disallow=function(t,r,i,a){var s=this;if(t===void 0)return null;var l=new Fe(t,r,i,a),c=r.not||r.disallow;return c?(Array.isArray(c)||(c=[c]),c.forEach(function(d){if(s.testType(t,r,i,a,d)){var p=d&&(d.$id||d.id),h=p||d;l.addError({name:"not",argument:h,message:"is of prohibited type "+h})}}),l):null};var sI=hf,gf={},rc=ot;gf.SchemaScanResult=Gg;function Gg(e,t){this.id=e,this.ref=t}gf.scan=function(t,r){function i(d,p){if(!p||typeof p!="object")return;if(p.$ref){let w=rc.resolveUrl(d,p.$ref);c[w]=c[w]?c[w]+1:0;return}var h=p.$id||p.id;let b=rc.resolveUrl(d,h);var v=h?b:d;if(v){if(v.indexOf("#")<0&&(v+="#"),l[v]){if(!rc.deepCompareStrict(l[v],p))throw new Error("Schema <"+v+"> already exists with different definition");return l[v]}l[v]=p,v[v.length-1]=="#"&&(l[v.substring(0,v.length-1)]=p)}a(v+"/items",Array.isArray(p.items)?p.items:[p.items]),a(v+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),i(v+"/additionalItems",p.additionalItems),s(v+"/properties",p.properties),i(v+"/additionalProperties",p.additionalProperties),s(v+"/definitions",p.definitions),s(v+"/patternProperties",p.patternProperties),s(v+"/dependencies",p.dependencies),a(v+"/disallow",p.disallow),a(v+"/allOf",p.allOf),a(v+"/anyOf",p.anyOf),a(v+"/oneOf",p.oneOf),i(v+"/not",p.not)}function a(d,p){if(Array.isArray(p))for(var h=0;h<p.length;h++)i(d+"/"+h,p[h])}function s(d,p){if(!(!p||typeof p!="object"))for(var h in p)i(d+"/"+h,p[h])}var l={},c={};return i(t,r),new Gg(l,c)};var Kg=sI,Wn=ot,Yg=gf.scan,Vg=Wn.ValidatorResult,uI=Wn.ValidatorResultError,No=Wn.SchemaError,Xg=Wn.SchemaContext,lI="/",_t=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(Xr),this.attributes=Object.create(Kg.validators)};_t.prototype.customFormats={};_t.prototype.schemas=null;_t.prototype.types=null;_t.prototype.attributes=null;_t.prototype.unresolvedRefs=null;_t.prototype.addSchema=function(t,r){var i=this;if(!t)return null;var a=Yg(r||lI,t),s=r||t.$id||t.id;for(var l in a.id)this.schemas[l]=a.id[l];for(var l in a.ref)this.unresolvedRefs.push(l);return this.unresolvedRefs=this.unresolvedRefs.filter(function(c){return typeof i.schemas[c]>"u"}),this.schemas[s]};_t.prototype.addSubSchemaArray=function(t,r){if(Array.isArray(r))for(var i=0;i<r.length;i++)this.addSubSchema(t,r[i])};_t.prototype.addSubSchemaObject=function(t,r){if(!(!r||typeof r!="object"))for(var i in r)this.addSubSchema(t,r[i])};_t.prototype.setSchemas=function(t){this.schemas=t};_t.prototype.getSchema=function(t){return this.schemas[t]};_t.prototype.validate=function(t,r,i,a){if(typeof r!="boolean"&&typeof r!="object"||r===null)throw new No("Expected `schema` to be an object or boolean");i||(i={});var s=r.$id||r.id;let l=Wn.resolveUrl(i.base,s||"");if(!a){a=new Xg(r,i,[],l,Object.create(this.schemas)),a.schemas[l]||(a.schemas[l]=r);var c=Yg(l,r);for(var d in c.id){var p=c.id[d];a.schemas[d]=p}}if(i.required&&t===void 0){var h=new Vg(t,r,i,a);return h.addError("is required, but is undefined"),h}var h=this.validateSchema(t,r,i,a);if(h){if(i.throwAll&&h.errors.length)throw new uI(h)}else throw new Error("Result undefined");return h};function Jg(e){var t=typeof e=="string"?e:e.$ref;return typeof t=="string"?t:!1}_t.prototype.validateSchema=function(t,r,i,a){var s=new Vg(t,r,i,a);if(typeof r=="boolean")r===!0?r={}:r===!1&&(r={type:[]});else if(!r)throw new Error("schema is undefined");if(r.extends)if(Array.isArray(r.extends)){var l={schema:r,ctx:a};r.extends.forEach(this.schemaTraverser.bind(this,l)),r=l.schema,l.schema=null,l.ctx=null,l=null}else r=Wn.deepMerge(r,this.superResolve(r.extends,a));var c=Jg(r);if(c){var d=this.resolve(r,c,a),p=new Xg(d.subschema,i,a.path,d.switchSchema,a.schemas);return this.validateSchema(t,d.subschema,i,p)}var h=i&&i.skipAttributes||[];for(var b in r)if(!Kg.ignoreProperties[b]&&h.indexOf(b)<0){var v=null,w=this.attributes[b];if(w)v=w.call(this,t,r,i,a);else if(i.allowUnknownAttributes===!1)throw new No("Unsupported attribute: "+b,r);v&&s.importErrors(v)}if(typeof i.rewrite=="function"){var x=i.rewrite.call(this,t,r,i,a);s.instance=x}return s};_t.prototype.schemaTraverser=function(t,r){t.schema=Wn.deepMerge(t.schema,this.superResolve(r,t.ctx))};_t.prototype.superResolve=function(t,r){var i=Jg(t);return i?this.resolve(t,i,r).subschema:t};_t.prototype.resolve=function(t,r,i){if(r=i.resolve(r),i.schemas[r])return{subschema:i.schemas[r],switchSchema:r};let s=new URL(r,"thismessage::/").hash;var l=s&&s.length&&r.substr(0,r.length-s.length);if(!l||!i.schemas[l])throw new No("no such schema <"+r+">",t);var c=Wn.objectGetPath(i.schemas[l],s.substr(1));if(c===void 0)throw new No("no such schema "+s+" located in <"+l+">",t);return{subschema:c,switchSchema:r}};_t.prototype.testType=function(t,r,i,a,s){if(s!==void 0){if(s===null)throw new No('Unexpected null in "type" keyword');if(typeof this.types[s]=="function")return this.types[s].call(this,t);if(s&&typeof s=="object"){var l=this.validateSchema(t,s,i,a);return l===void 0||!(l&&l.errors.length)}return!0}};var Xr=_t.prototype.types={};Xr.string=function(t){return typeof t=="string"};Xr.number=function(t){return typeof t=="number"&&isFinite(t)};Xr.integer=function(t){return typeof t=="number"&&t%1===0};Xr.boolean=function(t){return typeof t=="boolean"};Xr.array=function(t){return Array.isArray(t)};Xr.null=function(t){return t===null};Xr.date=function(t){return t instanceof Date};Xr.any=function(t){return!0};Xr.object=function(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof Date)};var cI=_t,Qg;Qg=cI;ot.ValidatorResult;ot.ValidatorResultError;ot.ValidationError;ot.SchemaError;var fI=e0;function e0(e,t,r){e instanceof RegExp&&(e=bv(e,r)),t instanceof RegExp&&(t=bv(t,r));var i=t0(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function bv(e,t){var r=t.match(e);return r?r[0]:null}e0.range=t0;function t0(e,t,r){var i,a,s,l,c,d=r.indexOf(e),p=r.indexOf(t,d+1),h=d;if(d>=0&&p>0){if(e===t)return[d,p];for(i=[],s=r.length;h>=0&&!c;)h==d?(i.push(h),d=r.indexOf(e,h+1)):i.length==1?c=[i.pop(),p]:(a=i.pop(),a<s&&(s=a,l=p),p=r.indexOf(t,h+1)),h=d<p&&d>=0?d:p;i.length&&(c=[s,l])}return c}var r0=fI,dI=vI,n0="\0SLASH"+Math.random()+"\0",i0="\0OPEN"+Math.random()+"\0",yf="\0CLOSE"+Math.random()+"\0",o0="\0COMMA"+Math.random()+"\0",a0="\0PERIOD"+Math.random()+"\0";function nc(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function pI(e){return e.split("\\\\").join(n0).split("\\{").join(i0).split("\\}").join(yf).split("\\,").join(o0).split("\\.").join(a0)}function hI(e){return e.split(n0).join("\\").split(i0).join("{").split(yf).join("}").split(o0).join(",").split(a0).join(".")}function s0(e){if(!e)return[""];var t=[],r=r0("{","}",e);if(!r)return e.split(",");var i=r.pre,a=r.body,s=r.post,l=i.split(",");l[l.length-1]+="{"+a+"}";var c=s0(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function vI(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),xo(pI(e),!0).map(hI)):[]}function mI(e){return"{"+e+"}"}function gI(e){return/^-?0\d/.test(e)}function yI(e,t){return e<=t}function wI(e,t){return e>=t}function xo(e,t){var r=[],i=r0("{","}",e);if(!i)return[e];var a=i.pre,s=i.post.length?xo(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<s.length;l++){var c=a+"{"+i.body+"}"+s[l];r.push(c)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=d||p,b=i.body.indexOf(",")>=0;if(!h&&!b)return i.post.match(/,.*\}/)?(e=i.pre+"{"+i.body+yf+i.post,xo(e)):[e];var v;if(h)v=i.body.split(/\.\./);else if(v=s0(i.body),v.length===1&&(v=xo(v[0],!1).map(mI),v.length===1))return s.map(function(J){return i.pre+v[0]+J});var w;if(h){var x=nc(v[0]),g=nc(v[1]),E=Math.max(v[0].length,v[1].length),I=v.length==3?Math.abs(nc(v[2])):1,P=yI,R=g<x;R&&(I*=-1,P=wI);var F=v.some(gI);w=[];for(var O=x;P(O,g);O+=I){var D;if(p)D=String.fromCharCode(O),D==="\\"&&(D="");else if(D=String(O),F){var U=E-D.length;if(U>0){var j=new Array(U+1).join("0");O<0?D="-"+j+D.slice(1):D=j+D}}w.push(D)}}else{w=[];for(var G=0;G<v.length;G++)w.push.apply(w,xo(v[G],!1))}for(var G=0;G<w.length;G++)for(var l=0;l<s.length;l++){var c=a+w[G]+s[l];(!t||h||c)&&r.push(c)}}return r}const bI=Lc(dI),SI=1024*64,Ls=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>SI)throw new TypeError("pattern is too long")},EI={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},So=e=>e.replace(/[[\]\\-]/g,"\\$&"),xI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Sv=e=>e.join(""),_I=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],a=[];let s=r+1,l=!1,c=!1,d=!1,p=!1,h=r,b="";e:for(;s<e.length;){const g=e.charAt(s);if((g==="!"||g==="^")&&s===r+1){p=!0,s++;continue}if(g==="]"&&l&&!d){h=s+1;break}if(l=!0,g==="\\"&&!d){d=!0,s++;continue}if(g==="["&&!d){for(const[E,[I,P,R]]of Object.entries(EI))if(e.startsWith(E,s)){if(b)return["$.",!1,e.length-r,!0];s+=E.length,R?a.push(I):i.push(I),c=c||P;continue e}}if(d=!1,b){g>b?i.push(So(b)+"-"+So(g)):g===b&&i.push(So(g)),b="",s++;continue}if(e.startsWith("-]",s+1)){i.push(So(g+"-")),s+=2;continue}if(e.startsWith("-",s+1)){b=g,s+=2;continue}i.push(So(g)),s++}if(h<s)return["",!1,0,!1];if(!i.length&&!a.length)return["$.",!1,e.length-r,!0];if(a.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!p){const g=i[0].length===2?i[0].slice(-1):i[0];return[xI(g),!1,h-r,!1]}const v="["+(p?"^":"")+Sv(i)+"]",w="["+(p?"":"^")+Sv(a)+"]";return[i.length&&a.length?"("+v+"|"+w+")":i.length?v:w,c,h-r,!0]},_o=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),OI=new Set(["!","?","+","*","@"]),Ev=e=>OI.has(e),AI="(?!(?:^|/)\\.\\.?(?:$|/))",ps="(?!\\.)",TI=new Set(["[","."]),CI=new Set(["..","."]),RI=new Set("().*{}+?[]^$\\!"),PI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),wf="[^/]",xv=wf+"*?",_v=wf+"+?";var wt,xt,pn,Je,dt,Mn,ai,Ln,zr,si,jo,pi,u0,kn,Es,Mc,l0;const qt=class qt{constructor(t,r,i={}){Xt(this,pi);yt(this,"type");Xt(this,wt);Xt(this,xt);Xt(this,pn,!1);Xt(this,Je,[]);Xt(this,dt);Xt(this,Mn);Xt(this,ai);Xt(this,Ln,!1);Xt(this,zr);Xt(this,si);Xt(this,jo,!1);this.type=t,t&&ut(this,xt,!0),ut(this,dt,r),ut(this,wt,Y(this,dt)?Y(Y(this,dt),wt):this),ut(this,zr,Y(this,wt)===this?i:Y(Y(this,wt),zr)),ut(this,ai,Y(this,wt)===this?[]:Y(Y(this,wt),ai)),t==="!"&&!Y(Y(this,wt),Ln)&&Y(this,ai).push(this),ut(this,Mn,Y(this,dt)?Y(Y(this,dt),Je).length:0)}get hasMagic(){if(Y(this,xt)!==void 0)return Y(this,xt);for(const t of Y(this,Je))if(typeof t!="string"&&(t.type||t.hasMagic))return ut(this,xt,!0);return Y(this,xt)}toString(){return Y(this,si)!==void 0?Y(this,si):this.type?ut(this,si,this.type+"("+Y(this,Je).map(t=>String(t)).join("|")+")"):ut(this,si,Y(this,Je).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof qt&&Y(r,dt)===this))throw new Error("invalid part: "+r);Y(this,Je).push(r)}}toJSON(){var r;const t=this.type===null?Y(this,Je).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...Y(this,Je).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===Y(this,wt)||Y(Y(this,wt),Ln)&&((r=Y(this,dt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(Y(this,wt)===this)return!0;if(!((r=Y(this,dt))!=null&&r.isStart()))return!1;if(Y(this,Mn)===0)return!0;const t=Y(this,dt);for(let i=0;i<Y(this,Mn);i++){const a=Y(t,Je)[i];if(!(a instanceof qt&&a.type==="!"))return!1}return!0}isEnd(){var r,i,a;if(Y(this,wt)===this||((r=Y(this,dt))==null?void 0:r.type)==="!")return!0;if(!((i=Y(this,dt))!=null&&i.isEnd()))return!1;if(!this.type)return(a=Y(this,dt))==null?void 0:a.isEnd();const t=Y(this,dt)?Y(Y(this,dt),Je).length:0;return Y(this,Mn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new qt(this.type,t);for(const i of Y(this,Je))r.copyIn(i);return r}static fromGlob(t,r={}){var a;const i=new qt(null,void 0,r);return Tn(a=qt,kn,Es).call(a,t,i,0,r),i}toMMPattern(){if(this!==Y(this,wt))return Y(this,wt).toMMPattern();const t=this.toString(),[r,i,a,s]=this.toRegExpSource();if(!(a||Y(this,xt)||Y(this,zr).nocase&&!Y(this,zr).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(Y(this,zr).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return Y(this,zr)}toRegExpSource(t){var d;const r=t??!!Y(this,zr).dot;if(Y(this,wt)===this&&Tn(this,pi,u0).call(this),!this.type){const p=this.isStart()&&this.isEnd(),h=Y(this,Je).map(x=>{var R;const[g,E,I,P]=typeof x=="string"?Tn(R=qt,kn,l0).call(R,x,Y(this,xt),p):x.toRegExpSource(t);return ut(this,xt,Y(this,xt)||I),ut(this,pn,Y(this,pn)||P),g}).join("");let b="";if(this.isStart()&&typeof Y(this,Je)[0]=="string"&&!(Y(this,Je).length===1&&CI.has(Y(this,Je)[0]))){const g=TI,E=r&&g.has(h.charAt(0))||h.startsWith("\\.")&&g.has(h.charAt(2))||h.startsWith("\\.\\.")&&g.has(h.charAt(4)),I=!r&&!t&&g.has(h.charAt(0));b=E?AI:I?ps:""}let v="";return this.isEnd()&&Y(Y(this,wt),Ln)&&((d=Y(this,dt))==null?void 0:d.type)==="!"&&(v="(?:$|\\/)"),[b+h+v,_o(h),ut(this,xt,!!Y(this,xt)),Y(this,pn)]}const i=this.type==="*"||this.type==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let s=Tn(this,pi,Mc).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const p=this.toString();return ut(this,Je,[p]),this.type=null,ut(this,xt,void 0),[p,_o(this.toString()),!1,!1]}let l=!i||t||r||!ps?"":Tn(this,pi,Mc).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let c="";if(this.type==="!"&&Y(this,jo))c=(this.isStart()&&!r?ps:"")+_v;else{const p=this.type==="!"?"))"+(this.isStart()&&!r&&!t?ps:"")+xv+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=a+s+p}return[c,_o(s),ut(this,xt,!!Y(this,xt)),Y(this,pn)]}};wt=new WeakMap,xt=new WeakMap,pn=new WeakMap,Je=new WeakMap,dt=new WeakMap,Mn=new WeakMap,ai=new WeakMap,Ln=new WeakMap,zr=new WeakMap,si=new WeakMap,jo=new WeakMap,pi=new WeakSet,u0=function(){if(this!==Y(this,wt))throw new Error("should only call on root");if(Y(this,Ln))return this;this.toString(),ut(this,Ln,!0);let t;for(;t=Y(this,ai).pop();){if(t.type!=="!")continue;let r=t,i=Y(r,dt);for(;i;){for(let a=Y(r,Mn)+1;!i.type&&a<Y(i,Je).length;a++)for(const s of Y(t,Je)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(Y(i,Je)[a])}r=i,i=Y(r,dt)}}return this},kn=new WeakSet,Es=function(t,r,i,a){var w,x;let s=!1,l=!1,c=-1,d=!1;if(r.type===null){let g=i,E="";for(;g<t.length;){const I=t.charAt(g++);if(s||I==="\\"){s=!s,E+=I;continue}if(l){g===c+1?(I==="^"||I==="!")&&(d=!0):I==="]"&&!(g===c+2&&d)&&(l=!1),E+=I;continue}else if(I==="["){l=!0,c=g,d=!1,E+=I;continue}if(!a.noext&&Ev(I)&&t.charAt(g)==="("){r.push(E),E="";const P=new qt(I,r);g=Tn(w=qt,kn,Es).call(w,t,P,g,a),r.push(P);continue}E+=I}return r.push(E),g}let p=i+1,h=new qt(null,r);const b=[];let v="";for(;p<t.length;){const g=t.charAt(p++);if(s||g==="\\"){s=!s,v+=g;continue}if(l){p===c+1?(g==="^"||g==="!")&&(d=!0):g==="]"&&!(p===c+2&&d)&&(l=!1),v+=g;continue}else if(g==="["){l=!0,c=p,d=!1,v+=g;continue}if(Ev(g)&&t.charAt(p)==="("){h.push(v),v="";const E=new qt(g,h);h.push(E),p=Tn(x=qt,kn,Es).call(x,t,E,p,a);continue}if(g==="|"){h.push(v),v="",b.push(h),h=new qt(null,r);continue}if(g===")")return v===""&&Y(r,Je).length===0&&ut(r,jo,!0),h.push(v),v="",r.push(...b,h),p;v+=g}return r.type=null,ut(r,xt,void 0),ut(r,Je,[t.substring(i-1)]),p},Mc=function(t){return Y(this,Je).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,a,s,l]=r.toRegExpSource(t);return ut(this,pn,Y(this,pn)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},l0=function(t,r,i=!1){let a=!1,s="",l=!1;for(let c=0;c<t.length;c++){const d=t.charAt(c);if(a){a=!1,s+=(RI.has(d)?"\\":"")+d;continue}if(d==="\\"){c===t.length-1?s+="\\\\":a=!0;continue}if(d==="["){const[p,h,b,v]=_I(t,c);if(b){s+=p,l=l||h,c+=b-1,r=r||v;continue}}if(d==="*"){i&&t==="*"?s+=_v:s+=xv,r=!0;continue}if(d==="?"){s+=wf,r=!0;continue}s+=PI(d)}return[s,_o(t),!!r,l]},Xt(qt,kn);let $s=qt;const II=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),jt=(e,t,r={})=>(Ls(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Js(t,r).match(e)),MI=/^\*+([^+@!?\*\[\(]*)$/,LI=e=>t=>!t.startsWith(".")&&t.endsWith(e),$I=e=>t=>t.endsWith(e),FI=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),DI=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),kI=/^\*+\.\*+$/,NI=e=>!e.startsWith(".")&&e.includes("."),jI=e=>e!=="."&&e!==".."&&e.includes("."),WI=/^\.\*+$/,UI=e=>e!=="."&&e!==".."&&e.startsWith("."),zI=/^\*+$/,BI=e=>e.length!==0&&!e.startsWith("."),HI=e=>e.length!==0&&e!=="."&&e!=="..",ZI=/^\?+([^+@!?\*\[\(]*)?$/,qI=([e,t=""])=>{const r=c0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},GI=([e,t=""])=>{const r=f0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},KI=([e,t=""])=>{const r=f0([e]);return t?i=>r(i)&&i.endsWith(t):r},YI=([e,t=""])=>{const r=c0([e]);return t?i=>r(i)&&i.endsWith(t):r},c0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},f0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},d0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Ov={win32:{sep:"\\"},posix:{sep:"/"}},VI=d0==="win32"?Ov.win32.sep:Ov.posix.sep;jt.sep=VI;const br=Symbol("globstar **");jt.GLOBSTAR=br;const XI="[^/]",JI=XI+"*?",QI="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",eM="(?:(?!(?:\\/|^)\\.).)*?",tM=(e,t={})=>r=>jt(r,e,t);jt.filter=tM;const wr=(e,t={})=>Object.assign({},e,t),rM=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return jt;const t=jt;return Object.assign((i,a,s={})=>t(i,a,wr(e,s)),{Minimatch:class extends t.Minimatch{constructor(a,s={}){super(a,wr(e,s))}static defaults(a){return t.defaults(wr(e,a)).Minimatch}},AST:class extends t.AST{constructor(a,s,l={}){super(a,s,wr(e,l))}static fromGlob(a,s={}){return t.AST.fromGlob(a,wr(e,s))}},unescape:(i,a={})=>t.unescape(i,wr(e,a)),escape:(i,a={})=>t.escape(i,wr(e,a)),filter:(i,a={})=>t.filter(i,wr(e,a)),defaults:i=>t.defaults(wr(e,i)),makeRe:(i,a={})=>t.makeRe(i,wr(e,a)),braceExpand:(i,a={})=>t.braceExpand(i,wr(e,a)),match:(i,a,s={})=>t.match(i,a,wr(e,s)),sep:t.sep,GLOBSTAR:br})};jt.defaults=rM;const p0=(e,t={})=>(Ls(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:bI(e));jt.braceExpand=p0;const nM=(e,t={})=>new Js(e,t).makeRe();jt.makeRe=nM;const iM=(e,t,r={})=>{const i=new Js(t,r);return e=e.filter(a=>i.match(a)),i.options.nonull&&!e.length&&e.push(t),e};jt.match=iM;const Av=/[?*]|[+@!]\(.*?\)|\[|\]/,oM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Js{constructor(t,r={}){yt(this,"options");yt(this,"set");yt(this,"pattern");yt(this,"windowsPathsNoEscape");yt(this,"nonegate");yt(this,"negate");yt(this,"comment");yt(this,"empty");yt(this,"preserveMultipleSlashes");yt(this,"partial");yt(this,"globSet");yt(this,"globParts");yt(this,"nocase");yt(this,"isWindows");yt(this,"platform");yt(this,"windowsNoMagicRoot");yt(this,"regexp");Ls(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||d0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let a=this.globParts.map((s,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const d=s[0]===""&&s[1]===""&&(s[2]==="?"||!Av.test(s[2]))&&!Av.test(s[3]),p=/^[a-z]:/i.test(s[0]);if(d)return[...s.slice(0,4),...s.slice(4).map(h=>this.parse(h))];if(p)return[s[0],...s.slice(1).map(h=>this.parse(h))]}return s.map(d=>this.parse(d))});if(this.debug(this.pattern,a),this.set=a.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const l=this.set[s];l[0]===""&&l[1]===""&&this.globParts[s][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let a=0;a<t[i].length;a++)t[i][a]==="**"&&(t[i][a]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let a=i;for(;r[a+1]==="**";)a++;a!==i&&r.splice(i,a-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,a)=>{const s=i[i.length-1];return a==="**"&&s==="**"?i:a===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(a),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let a=1;a<t.length-1;a++){const s=t[a];a===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(a,1),a--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const a=t[i-1];a&&a!=="."&&a!==".."&&a!=="**"&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let a=-1;for(;(a=i.indexOf("**",a+1))!==-1;){let l=a;for(;i[l+1]==="**";)l++;l>a&&i.splice(a+1,l-a);let c=i[a+1];const d=i[a+2],p=i[a+3];if(c!==".."||!d||d==="."||d===".."||!p||p==="."||p==="..")continue;r=!0,i.splice(a,1);const h=i.slice(0);h[a]="**",t.push(h),a--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){const c=i[l];l===1&&c===""&&i[0]===""||(c==="."||c==="")&&(r=!0,i.splice(l,1),l--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){const l=i[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const d=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...d),i.length===0&&i.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const a=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(a){t[r]=[],t[i]=a;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let a=0,s=0,l=[],c="";for(;a<t.length&&s<r.length;)if(t[a]===r[s])l.push(c==="b"?r[s]:t[a]),a++,s++;else if(i&&t[a]==="**"&&r[s]===t[a+1])l.push(t[a]),a++;else if(i&&r[s]==="**"&&t[a]===r[s+1])l.push(r[s]),s++;else if(t[a]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",l.push(t[a]),a++,s++}else if(r[s]==="*"&&t[a]&&(this.options.dot||!t[a].startsWith("."))&&t[a]!=="**"){if(c==="a")return!1;c="b",l.push(r[s]),a++,s++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let a=0;a<t.length&&t.charAt(a)==="!";a++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){const a=this.options;if(this.isWindows){const g=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),E=!g&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),I=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),P=!I&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),R=E?3:g?0:void 0,F=P?3:I?0:void 0;if(typeof R=="number"&&typeof F=="number"){const[O,D]=[t[R],r[F]];O.toLowerCase()===D.toLowerCase()&&(r[F]=O,F>R?r=r.slice(F):R>F&&(t=t.slice(R)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,c=0,d=t.length,p=r.length;l<d&&c<p;l++,c++){this.debug("matchOne loop");var h=r[c],b=t[l];if(this.debug(r,h,b),h===!1)return!1;if(h===br){this.debug("GLOBSTAR",[r,h,b]);var v=l,w=c+1;if(w===p){for(this.debug("** at the end");l<d;l++)if(t[l]==="."||t[l]===".."||!a.dot&&t[l].charAt(0)===".")return!1;return!0}for(;v<d;){var x=t[v];if(this.debug(`
|
|
177
|
-
globstar while`,t,
|
|
178
|
-
>>> no match, partial?`,t,v,r,w),v===d))}let g;if(typeof h=="string"?(g=b===h,this.debug("string match",h,b,g)):(g=h.test(b),this.debug("pattern match",h,b,g)),!g)return!1}if(l===d&&c===p)return!0;if(l===d)return i;if(c===p)return l===d-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return p0(this.pattern,this.options)}parse(t){Ls(t);const r=this.options;if(t==="**")return br;if(t==="")return"";let i,a=null;(i=t.match(zI))?a=r.dot?HI:BI:(i=t.match(MI))?a=(r.nocase?r.dot?DI:FI:r.dot?$I:LI)(i[1]):(i=t.match(ZI))?a=(r.nocase?r.dot?GI:qI:r.dot?KI:YI)(i):(i=t.match(kI))?a=r.dot?jI:NI:(i=t.match(WI))&&(a=UI);const s=$s.fromGlob(t,this.options).toMMPattern();return a&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:a}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,i=r.noglobstar?JI:r.dot?QI:eM,a=new Set(r.nocase?["i"]:[]);let s=t.map(d=>{const p=d.map(h=>{if(h instanceof RegExp)for(const b of h.flags.split(""))a.add(b);return typeof h=="string"?oM(h):h===br?br:h._src});return p.forEach((h,b)=>{const v=p[b+1],w=p[b-1];h!==br||w===br||(w===void 0?v!==void 0&&v!==br?p[b+1]="(?:\\/|"+i+"\\/)?"+v:p[b]=i:v===void 0?p[b-1]=w+"(?:\\/|"+i+")?":v!==br&&(p[b-1]=w+"(?:\\/|\\/"+i+"\\/)"+v,p[b+1]=br))}),p.filter(h=>h!==br).join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+c+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...a].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const a=this.slashSplit(t);this.debug(this.pattern,"split",a);const s=this.set;this.debug(this.pattern,"set",s);let l=a[a.length-1];if(!l)for(let c=a.length-2;!l&&c>=0;c--)l=a[c];for(let c=0;c<s.length;c++){const d=s[c];let p=a;if(i.matchBase&&d.length===1&&(p=[l]),this.matchOne(p,d,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return jt.defaults(t).Minimatch}}jt.AST=$s;jt.Minimatch=Js;jt.escape=II;jt.unescape=_o;const bf="/$shared",aM={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/*.json":{parser:"json",content:{}}};function h0(e){const t=Object.entries(aM).find(([r])=>jt(e,r));return t==null?void 0:t[1]}function Sf(e){var i;const t=(i=h0(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${bf}/`,"Shared/");Ef({name:r,content:t,asText:typeof t=="string"})}function Qs({path:e,createIfNotExists:t=!1}){const r=`${bf}/${e}`;return Ze(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const a=h0(e);let s=i;if(!a)return s;if(typeof s=="string")try{switch(a.parser){case"json":s=JSON.parse(s);break;default:break}}catch{throw new Error("Cannot parse")}if(a.schema&&!new Qg().validate(s,a.schema).valid)throw new Error("Invalid Schema");return s}).catch(i=>{if(sM(i)&&t){const a=uM(i,e);Sg.next({message:a,kind:"warning"}),Sf(r)}throw i})}function sM(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===404||(e==null?void 0:e.message)==="Invalid Schema"||(e==null?void 0:e.message)==="Cannot parse"||(e==null?void 0:e.name)==="SyntaxError"}function uM(e,t){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${t}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${t}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${t}' not found, creating...`;default:return e==null?void 0:e.message}}function lM(e){return Ze(Qo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function cM(e){return Ze(Qo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const v0=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:ff.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function fM(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const a=await Ze(bt,{method:"POST",body:JSON.stringify({verb:gi.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,c=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?i?c:l:a.webServerHTTPPort?l:c})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:s,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),v0()}}async function m0(e){return await Ze(bt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function dM(...e){return(await Promise.all(e.map(i=>m0({root:i,verb:gi.GET_FOLDER})))).map(({children:i})=>i.map(({name:a,date:s,type:l})=>({name:a,type:l,date:s,path:`${l}/${a}`}))).flat()}function pM(e,t={}){const{sanitize:r=!0}=t;return Ze(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const a=new Map;return{...i,components:pt.entries(i.components).map(([s,l])=>{const c=s,{resolvedName:d}=l.type;if(d==="WebformLoader"){const p=qc.generate();a.set(s,p),s=p}return[s,l,c]}).reduce((s,[l,c,d])=>{var p;return c.nodes&&(c.nodes=c.nodes.map(h=>a.get(h)||h)),c.linkedNodes&&(c.linkedNodes=pt.entries(c.linkedNodes).reduce((h,[b,v])=>({...h,[b]:a.get(v)||v}),{})),(p=c.props)!=null&&p.events&&(c.props.events=c.props.events.map(h=>(h.type==="navigation"&&h.loader&&(h.loader=a.get(h.loader)||h.loader),h))),{...s,[l]:{...c,props:{...c.props,__originalID:d}}}},{})}})}function hM(e){return Ze(bt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Sr.METHOD,Sr.CLASS].includes(t.type)?Vs(t.content):t.content}))}function vM(e){return e.type==="folder"?Ze(Qo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ze(bt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function mM(e){return e.type==="folder"?(await Ze(Qo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ze(bt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function gM(e){return Ze(bt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function yM(e){return Ze(bt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function wM(e){return(await Ze(bt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function bM(...e){return await Ze(bt,{method:"POST",body:JSON.stringify({verb:gi.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function SM(e){const t=await Ze("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function EM(){return await Ze("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function xM({name:e,path:t="",root:r="root",asText:i=!1}){return Ze(bt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function _M(e={}){try{return await Qs({path:"shared_datasources.json",...e})}catch{return{}}}async function OM(e={}){try{return await Qs({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function AM(e={}){try{return await Qs({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function TM(){try{return await Ze("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function CM(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const RM=Ig(),PM=async e=>{const t={verb:gi.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return RM(async()=>(await Ze(bt,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},Ef=async e=>{const t=await Ze(bt,{method:"POST",body:JSON.stringify({...e,verb:gi.SET_FILE_CONTENT,root:cf.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Rg(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},IM=async e=>await Ef({name:"crafted_components.json",path:Dn.WEBFORMS,content:e});function MM(e){return Ze(bt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function LM(e){return Ze(bt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function $M(e){return Ze(bt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function FM(e){return Ze(bt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?Vs(t.content):t.content}).catch(t=>{var r,i;throw((i=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:i.errCode)===1839&&Sf(e.path),t})}function DM(e){return Ze(bt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function kM(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function NM(e){const t=new RegExp(/(->)(.*)/gi).exec(e);if(t!==null)return t[0].replace("->","");const r=/:([^)]*)$/.exec(e);return r!==null?`result : ${r[1].trim()}`:""}function jM(e){const t=kM(e).split(/[;,]/g).filter(Boolean).map(a=>{const s=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:s,type:l}}),r=NM(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function WM(e,t){const i=e.split(".").pop();try{const a=await Ze(bt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});a.content=Vs(a.content);const{params:s,result:l}=jM(a.parameters);return{...a,params:s,returns:l}}catch(a){return console.error(a),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var g0=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(g0||{});function UM(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}var y0=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(y0||{}),w0=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(w0||{}),b0=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(b0||{});const zM={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},BM={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=bt;exports.AppLoader=LP;exports.ControlledSwitch=og;exports.DATASOURCE_THEMES=zM;exports.DatasourcesActions=bg;exports.DebuggerActions=_g;exports.DesignerRequestVerb=gi;exports.Dialog=X_;exports.DialogBody=Wv;exports.EActivity=g0;exports.EDITOR=BM;exports.EIDENTIFIERS=w0;exports.ERROR_CODES=b0;exports.EWebFormStyleClassScope=y0;exports.EXT_API_PREFIX=Qo;exports.FileFolderType=Sr;exports.FolderRootPath=Dn;exports.FolderRootType=cf;exports.HTTPError=Rc;exports.HTTP_HANDLERS_PATH=Cg;exports.IPreemptive=ko;exports.IPublished=jg;exports.IPublishedRestScope=df;exports.IdentityProvider=r2;exports.Incase=NA;exports.IndentLines=hm;exports.LogoSVG=ag;exports.LspActions=xg;exports.MAX_FILE_NAME_LENGTH=uf;exports.MODEL_TAB_PATH=A2;exports.Modal=FP;exports.ModalCloseReason=Ni;exports.ModalColor=ci;exports.ModalIcons=Ac;exports.ModalType=af;exports.Mutex=Pg;exports.NameError=lf;exports.Overlay=jv;exports.Portal=Cv;exports.PublishOptions=V2;exports.ROLES_TAB_PATH=Ag;exports.RemoteDebuggerMode=ff;exports.SETTINGS_TAB_PATH=Tg;exports.SHARED_API_PREFIX=bf;exports.Switcher=vm;exports.TabEventsActions=Eg;exports.Tip=FR;exports.TipsProvider=LR;exports.Toast=aA;exports.Tooltip=IP;exports.Tree=kA;exports.TreeIcon=lm;exports.TreeNode=Gc;exports.WebformActions=wg;exports._isArrayDatasource=q2;exports._isObjectDatasource=G2;exports.addAttributesToContent=J2;exports.addFolder=gM;exports.by=Mg;exports.byId=I2;exports.byPath=M2;exports.checkUpdates=lM;exports.createFolder=MM;exports.datasourcesSubject=w2;exports.debuggerSubject=x2;exports.dropFile=mM;exports.dropFolder=wM;exports.exists=L2;exports.extractWebformName=C2;exports.generateUUID=Q2;exports.getAppSettings=fM;exports.getCatalog=EM;exports.getDatasourceId=$2;exports.getDefaultAppSettings=v0;exports.getFile=hM;exports.getFileContent=xM;exports.getFileExtentionFromType=T2;exports.getFilesInfo=bM;exports.getFolder=m0;exports.getFolders=dM;exports.getFunctionContent=WM;exports.getMonacoTheme=CM;exports.getNodeInfo=FM;exports.getSavedConditions=AM;exports.getSharedCSS=OM;exports.getSharedDatasources=_M;exports.getSharedResource=Qs;exports.getTypeFromExtension=Rg;exports.getUserPrivileges=TM;exports.getWebForm=pM;exports.hasAttributesString=Ug;exports.http=Ze;exports.installUpdates=cM;exports.isArrayDatasource=Dg;exports.isDataClassMethod=N2;exports.isDataStoreMethod=k2;exports.isDateDatasource=K2;exports.isEntity=H2;exports.isEntityDatasource=U2;exports.isEntityMethod=j2;exports.isEntitySelection=Z2;exports.isEntitySelectionDatasource=z2;exports.isEntitySelectionMethod=W2;exports.isObjectAttribute=F2;exports.isObjectDatasource=kg;exports.isRelatedAttribute=D2;exports.isRelatedEntitiesAttribute=$g;exports.isRelatedEntityAttribute=Fg;exports.isScalarDatasource=Ng;exports.isSimpleAttribute=Lg;exports.isSimpleDatasource=B2;exports.loadDS=Y2;exports.log=UM;exports.login=SM;exports.lspSubject=E2;exports.moveItem=$M;exports.outBy=R2;exports.outById=P2;exports.parseAttributes=X2;exports.queue=Ig;exports.removeAttributesString=zg;exports.removeItem=LM;exports.renameFile=vM;exports.renameFolder=yM;exports.sanitizeContent=Vs;exports.saveContent=DM;exports.setCraftedComponents=IM;exports.setFileContent=Ef;exports.setSharedSources=PM;exports.stringifyAttributes=Wg;exports.tabEventsSubject=S2;exports.toastSubject=Sg;exports.transformDates=eI;exports.tryCreateSharedResource=Sf;exports.useDidMountEffect=NP;exports.useDoubleClick=a2;exports.useFeatureFlags=t2;exports.useForwardedRef=e2;exports.useHotkeys=VP;exports.useIdentity=n2;exports.useOutsideClick=XP;exports.usePrevious=JP;exports.useStateObject=i2;exports.useStateRef=QP;exports.useTip=Gm;exports.validateName=Og;exports.validateServerSide=_2;exports.validateValue=O2;exports.webformSubject=b2;
|
|
202
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function Rc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var tu=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,a,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=vc(l),d=c.next();!d.done;d=c.next()){var p=d.value;p.remove(this)}}catch(g){t={error:g}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var h=this.initialTeardown;if(En(h))try{h()}catch(g){s=g instanceof rc?g.errors:[g]}var w=this._finalizers;if(w){this._finalizers=null;try{for(var S=vc(w),v=S.next();!v.done;v=S.next()){var _=v.value;try{bv(_)}catch(g){s=s??[],g instanceof rc?s=qo(qo([],Is(s)),Is(g.errors)):s.push(g)}}}catch(g){i={error:g}}finally{try{v&&!v.done&&(a=S.return)&&a.call(S)}finally{if(i)throw i.error}}}if(s)throw new rc(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)bv(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Rc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Rc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),xg=tu.EMPTY;function Og(e){return e instanceof tu||e&&"closed"in e&&En(e.remove)&&En(e.add)&&En(e.unsubscribe)}function bv(e){En(e)?e():e.unsubscribe()}var Ag={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Cc={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var a=Cc.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,qo([e,t],Is(r))):setTimeout.apply(void 0,qo([e,t],Is(r)))},clearTimeout:function(e){var t=Cc.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function S2(e){Cc.setTimeout(function(){throw e})}function Sv(){}function Os(e){e()}var Tg=function(e){Zs(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Og(r)&&r.add(i)):i.destination=O2,i}return t.create=function(r,i,a){return new Pc(r,i,a)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(tu),E2=Function.prototype.bind;function nc(e,t){return E2.call(e,t)}var _2=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(i){gs(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){gs(i)}else gs(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){gs(r)}},e}(),Pc=function(e){Zs(t,e);function t(r,i,a){var s=e.call(this)||this,l;if(En(r)||!r)l={next:r??void 0,error:i??void 0,complete:a??void 0};else{var c;s&&Ag.useDeprecatedNextContext?(c=Object.create(r),c.unsubscribe=function(){return s.unsubscribe()},l={next:r.next&&nc(r.next,c),error:r.error&&nc(r.error,c),complete:r.complete&&nc(r.complete,c)}):l=r}return s.destination=new _2(l),s}return t}(Tg);function gs(e){S2(e)}function x2(e){throw e}var O2={closed:!0,next:Sv,error:x2,complete:Sv},A2=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function T2(e){return e}function R2(e){return e.length===0?T2:e.length===1?e[0]:function(r){return e.reduce(function(i,a){return a(i)},r)}}var Ev=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,i){var a=this,s=P2(t)?t:new Pc(t,r,i);return Os(function(){var l=a,c=l.operator,d=l.source;s.add(c?c.call(s,d):d?a._subscribe(s):a._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=_v(r),new r(function(a,s){var l=new Pc({next:function(c){try{t(c)}catch(d){s(d),l.unsubscribe()}},error:s,complete:a});i.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[A2]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return R2(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=_v(t),new t(function(i,a){var s;r.subscribe(function(l){return s=l},function(l){return a(l)},function(){return i(s)})})},e.create=function(t){return new e(t)},e}();function _v(e){var t;return(t=e??Ag.Promise)!==null&&t!==void 0?t:Promise}function C2(e){return e&&En(e.next)&&En(e.error)&&En(e.complete)}function P2(e){return e&&e instanceof Tg||C2(e)&&Og(e)}var I2=_g(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Pi=function(e){Zs(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var i=new xv(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new I2},t.prototype.next=function(r){var i=this;Os(function(){var a,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=vc(i.currentObservers),c=l.next();!c.done;c=l.next()){var d=c.value;d.next(r)}}catch(p){a={error:p}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}}})},t.prototype.error=function(r){var i=this;Os(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var a=i.observers;a.length;)a.shift().error(r)}})},t.prototype.complete=function(){var r=this;Os(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var i=this,a=this,s=a.hasError,l=a.isStopped,c=a.observers;return s||l?xg:(this.currentObservers=null,c.push(r),new tu(function(){i.currentObservers=null,Rc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,a=i.hasError,s=i.thrownError,l=i.isStopped;a?r.error(s):l&&r.complete()},t.prototype.asObservable=function(){var r=new Ev;return r.source=this,r},t.create=function(r,i){return new xv(r,i)},t}(Ev),xv=function(e){Zs(t,e);function t(r,i){var a=e.call(this)||this;return a.destination=r,a.source=i,a}return t.prototype.next=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.next)===null||a===void 0||a.call(i,r)},t.prototype.error=function(r){var i,a;(a=(i=this.destination)===null||i===void 0?void 0:i.error)===null||a===void 0||a.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,a;return(a=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&a!==void 0?a:xg},t}(Pi),Rg=(e=>(e.RELOAD="reload",e))(Rg||{}),Cg=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(Cg||{});const M2=new Pi,F2=new Pi,Pg=new Pi;var Ig=(e=>(e.SAVE_ALL="save-all",e))(Ig||{});const L2=new Pi;var Mg=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(Mg||{});const $2=new Pi;var Fg=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Fg||{});const D2=new Pi,cf=31;var ff=(e=>(e.EMPTY="Please enter a valid name",e[e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${cf} characters`]="LENGTH_EXCEEDED",e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(ff||{});function Lg(e){if(e==="")throw new Error("Please enter a valid name");if(e.length>cf)throw new Error(ff.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(e))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(e))throw new Error("Invalid name");return!0}function N2(e){if(!e)return null;if(typeof e=="string")try{Lg(e)}catch(t){return t.message}}function k2(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!St.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!St.isObject(i)||Array.isArray(i))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function ru(e){const t=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"{}\\[\\]\\\\]*(?:\\\\.|"(?:[^"{}\\[\\]\\\\]*\\\\.)*[^"{}\\[\\]\\\\]*"))*[^"}\\]]*$)',"gm");return e.replace(t,"")}var df=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(df||{});const zn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Pr=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(Pr||{}),Ii=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(Ii||{}),pf=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(pf||{});const $g="roles.json",Dg="qodlyApp.json",j2="model.4DModel",Ng="HTTPHandlers.json";function kg(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Pr.MODEL;case r==="WebForm":return Pr.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===zn.METHODS):return Pr.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===zn.CLASSES):return Pr.CLASS;case e===$g:return Pr.ROLES;case e===Ng:return Pr.HTTP_HANDLERS;case e===Dg:return Pr.SETTINGS;default:return Pr.TEXT}}function W2(e,t=!1){switch(e){case zn.REPORTS:case"report":return"QoDoc";case zn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case zn.CLASSES:case zn.METHODS:return t?"4qs":"4dm";default:return""}}function U2(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}class jg{constructor(){wt(this,"current",Promise.resolve())}lock(){let t;const r=new Promise(a=>{t=a}),i=this.current.then(()=>t);return this.current=r,i}}function Wg(){const e=new jg;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const Ug=St.curry((e,t,r)=>e&&St.get(r,e)===t),H2=St.curry((e,t,r)=>St.get(r,e)!==t),B2=St.curry((e,t)=>St.get(t,"id")!==e),z2=St.curry((e,t)=>St.get(t,"id")===e),q2=St.curry((e,t)=>St.get(t,"path")===e);function Z2(e="id",t,r){return r.findIndex(Ug(e,t))!==-1}function G2(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function Hg(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function K2(e){return e.type==="object"}function Bg(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function zg(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Hg(e)}function Y2(e){return Bg(e)||zg(e)}function V2(e){return e.applyTo==="dataStore"}function X2(e){return e.applyTo==="dataClass"}function J2(e){return e.applyTo==="entity"}function Q2(e){return e.applyTo==="entityCollection"}function eI(e){return e.type==="entity"}function tI(e){return e.type==="entitysel"}function qg(e){return e.dataType==="array"}function Zg(e){return e.dataType==="object"}function Gg(e){return e.type==="scalar"}function rI(e){return qg(e)||Zg(e)||Gg(e)}const nI=e=>e!=null&&e.type==="entity",iI=e=>e.type==="entitysel",oI=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",aI=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",sI=e=>e.type==="scalar"&&e.dataType==="date";function uI(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}var Yo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(Yo||{}),Kg=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(Kg||{}),hf=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(hf||{});const lI={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function cI(e){var s;let t={};try{const l=((s=e.match(/\/\/%attributes = (.*)/))==null?void 0:s[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:Yo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:hf.table}},...i}}function Yg(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[Yo.capable,Yo.incapable].includes(e.preemptive)&&(t.preemptive=e.preemptive),e.publishedSoap&&(t.publishedSoap=!0,e.publishedWsdl&&(t.publishedWsdl=!0)),e.publishedWeb&&(t.publishedWeb=!0),e.publishedSql&&(t.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(t.published4DMobile=e.publishedRestOptions),JSON.stringify(t).replace(/"(true|false)"/g,"$1")}function fI(e,t,r=!1){const i=St.isString(t)?t:Yg(t);if(!r&&Vg(e))return e;const a=Xg(e);return`//%attributes = ${i}\r
|
|
203
|
+
${a}`}function Vg(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function Xg(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const dI=()=>Kc.uuid().replaceAll("-","").toUpperCase(),Ot="/rest/$designer",fa="/rest/$designer-ext";function pI(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(i=>{typeof r[i]=="string"&&(r[i]=new Date(r[i]))}),r}}class Ic extends Error{constructor(t,r,i){super(),this.url=t,this.response=r,this.data=i}log(){console.error("Error while sending the request",this)}}async function Ye(e,t){const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let a;try{const s=await r.json();a=new Ic(e,r,s)}catch{a=new Ic(e,r)}throw a.log(),a}return await r.json()}var dt={},Mc=dt.ValidationError=function(t,r,i,a,s,l){if(Array.isArray(a)?(this.path=a,this.property=a.reduce(function(d,p){return d+Jg(p)},"instance")):a!==void 0&&(this.property=a),t&&(this.message=t),i){var c=i.$id||i.id;this.schema=c||i}r!==void 0&&(this.instance=r),this.name=s,this.argument=l,this.stack=this.toString()};Mc.prototype.toString=function(){return this.property+" "+this.message};var nu=dt.ValidatorResult=function(t,r,i,a){this.instance=t,this.schema=r,this.options=i,this.path=a.path,this.propertyPath=a.propertyPath,this.errors=[],this.throwError=i&&i.throwError,this.throwFirst=i&&i.throwFirst,this.throwAll=i&&i.throwAll,this.disableFormat=i&&i.disableFormat===!0};nu.prototype.addError=function(t){var r;if(typeof t=="string")r=new Mc(t,this.instance,this.schema,this.path);else{if(!t)throw new Error("Missing error detail");if(!t.message)throw new Error("Missing error message");if(!t.name)throw new Error("Missing validator type");r=new Mc(t.message,this.instance,this.schema,this.path,t.name,t.argument)}if(this.errors.push(r),this.throwFirst)throw new Ai(this);if(this.throwError)throw r;return r};nu.prototype.importErrors=function(t){typeof t=="string"||t&&t.validatorType?this.addError(t):t&&t.errors&&(this.errors=this.errors.concat(t.errors))};function hI(e,t){return t+": "+e.toString()+`
|
|
204
|
+
`}nu.prototype.toString=function(t){return this.errors.map(hI).join("")};Object.defineProperty(nu.prototype,"valid",{get:function(){return!this.errors.length}});dt.ValidatorResultError=Ai;function Ai(e){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Ai),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}Ai.prototype=new Error;Ai.prototype.constructor=Ai;Ai.prototype.name="Validation Error";var Ov=dt.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)};Ov.prototype=Object.create(Error.prototype,{constructor:{value:Ov,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var Fc=dt.SchemaContext=function(t,r,i,a,s){this.schema=t,this.options=r,Array.isArray(i)?(this.path=i,this.propertyPath=i.reduce(function(l,c){return l+Jg(c)},"instance")):this.propertyPath=i,this.base=a,this.schemas=s};Fc.prototype.resolve=function(t){return(()=>Qg(this.base,t))()};Fc.prototype.makeChild=function(t,r){var i=r===void 0?this.path:this.path.concat([r]),a=t.$id||t.id;let s=(()=>Qg(this.base,a||""))();var l=new Fc(t,this.options,i,s,Object.create(this.schemas));return a&&!l.schemas[s]&&(l.schemas[s]=t),l};var qr=dt.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(e){return typeof e=="string"&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch{t=!1}return t},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};qr.regexp=qr.regex;qr.pattern=qr.regex;qr.ipv4=qr["ip-address"];dt.isFormat=function(t,r,i){if(typeof t=="string"&&qr[r]!==void 0){if(qr[r]instanceof RegExp)return qr[r].test(t);if(typeof qr[r]=="function")return qr[r](t)}else if(i&&i.customFormats&&typeof i.customFormats[r]=="function")return i.customFormats[r](t);return!0};var Jg=dt.makeSuffix=function(t){return t=t.toString(),!t.match(/[.\s\[\]]/)&&!t.match(/^[\d]/)?"."+t:t.match(/^\d+$/)?"["+t+"]":"["+JSON.stringify(t)+"]"};dt.deepCompareStrict=function e(t,r){if(typeof t!=typeof r)return!1;if(Array.isArray(t))return!Array.isArray(r)||t.length!==r.length?!1:t.every(function(s,l){return e(t[l],r[l])});if(typeof t=="object"){if(!t||!r)return t===r;var i=Object.keys(t),a=Object.keys(r);return i.length!==a.length?!1:i.every(function(s){return e(t[s],r[s])})}return t===r};function vI(e,t,r,i){typeof r=="object"?t[i]=vf(e[i],r):e.indexOf(r)===-1&&t.push(r)}function mI(e,t,r){t[r]=e[r]}function gI(e,t,r,i){typeof t[i]!="object"||!t[i]?r[i]=t[i]:e[i]?r[i]=vf(e[i],t[i]):r[i]=t[i]}function vf(e,t){var r=Array.isArray(t),i=r&&[]||{};return r?(e=e||[],i=i.concat(e),t.forEach(vI.bind(null,e,i))):(e&&typeof e=="object"&&Object.keys(e).forEach(mI.bind(null,e,i)),Object.keys(t).forEach(gI.bind(null,e,t,i))),i}dt.deepMerge=vf;dt.objectGetPath=function(t,r){for(var i=r.split("/").slice(1),a;typeof(a=i.shift())=="string";){var s=decodeURIComponent(a.replace(/~0/,"~").replace(/~1/g,"/"));if(!(s in t))return;t=t[s]}return t};function yI(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}dt.encodePath=function(t){return t.map(yI).join("")};dt.getDecimalPlaces=function(t){var r=0;if(isNaN(t))return r;typeof t!="number"&&(t=Number(t));var i=t.toString().split("e");if(i.length===2){if(i[1][0]!=="-")return r;r=Number(i[1].slice(1))}var a=i[0].split(".");return a.length===2&&(r+=a[1].length),r};dt.isSchema=function(t){return typeof t=="object"&&t||typeof t=="boolean"};var Qg=dt.resolveUrl=function(t,r){const i=new URL(r,new URL(t,"resolve://"));if(i.protocol==="resolve:"){const{pathname:a,search:s,hash:l}=i;return a+s+l}return i.toString()},mr=dt,We=mr.ValidatorResult,Zn=mr.SchemaError,mf={};mf.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var Ue=mf.validators={};Ue.type=function(t,r,i,a){if(t===void 0)return null;var s=new We(t,r,i,a),l=Array.isArray(r.type)?r.type:[r.type];if(!l.some(this.testType.bind(this,t,r,i,a))){var c=l.map(function(d){if(d){var p=d.$id||d.id;return p?"<"+p+">":d+""}});s.addError({name:"type",argument:c,message:"is not of a type(s) "+c})}return s};function gf(e,t,r,i,a){var s=t.throwError,l=t.throwAll;t.throwError=!1,t.throwAll=!1;var c=this.validateSchema(e,a,t,r);return t.throwError=s,t.throwAll=l,!c.valid&&i instanceof Function&&i(c),c.valid}Ue.anyOf=function(t,r,i,a){if(t===void 0)return null;var s=new We(t,r,i,a),l=new We(t,r,i,a);if(!Array.isArray(r.anyOf))throw new Zn("anyOf must be an array");if(!r.anyOf.some(gf.bind(this,t,i,a,function(d){l.importErrors(d)}))){var c=r.anyOf.map(function(d,p){var h=d.$id||d.id;return h?"<"+h+">":d.title&&JSON.stringify(d.title)||d.$ref&&"<"+d.$ref+">"||"[subschema "+p+"]"});i.nestedErrors&&s.importErrors(l),s.addError({name:"anyOf",argument:c,message:"is not any of "+c.join(",")})}return s};Ue.allOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.allOf))throw new Zn("allOf must be an array");var s=new We(t,r,i,a),l=this;return r.allOf.forEach(function(c,d){var p=l.validateSchema(t,c,i,a);if(!p.valid){var h=c.$id||c.id,w=h||c.title&&JSON.stringify(c.title)||c.$ref&&"<"+c.$ref+">"||"[subschema "+d+"]";s.addError({name:"allOf",argument:{id:w,length:p.errors.length,valid:p},message:"does not match allOf schema "+w+" with "+p.errors.length+" error[s]:"}),s.importErrors(p)}}),s};Ue.oneOf=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.oneOf))throw new Zn("oneOf must be an array");var s=new We(t,r,i,a),l=new We(t,r,i,a),c=r.oneOf.filter(gf.bind(this,t,i,a,function(p){l.importErrors(p)})).length,d=r.oneOf.map(function(p,h){var w=p.$id||p.id;return w||p.title&&JSON.stringify(p.title)||p.$ref&&"<"+p.$ref+">"||"[subschema "+h+"]"});return c!==1&&(i.nestedErrors&&s.importErrors(l),s.addError({name:"oneOf",argument:d,message:"is not exactly one from "+d.join(",")})),s};Ue.if=function(t,r,i,a){if(t===void 0)return null;if(!mr.isSchema(r.if))throw new Error('Expected "if" keyword to be a schema');var s=gf.call(this,t,i,a,null,r.if),l=new We(t,r,i,a),c;if(s){if(r.then===void 0)return;if(!mr.isSchema(r.then))throw new Error('Expected "then" keyword to be a schema');c=this.validateSchema(t,r.then,i,a.makeChild(r.then)),l.importErrors(c)}else{if(r.else===void 0)return;if(!mr.isSchema(r.else))throw new Error('Expected "else" keyword to be a schema');c=this.validateSchema(t,r.else,i,a.makeChild(r.else)),l.importErrors(c)}return l};function yf(e,t){if(Object.hasOwnProperty.call(e,t))return e[t];if(t in e){for(;e=Object.getPrototypeOf(e);)if(Object.propertyIsEnumerable.call(e,t))return e[t]}}Ue.propertyNames=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=r.propertyNames!==void 0?r.propertyNames:{};if(!mr.isSchema(l))throw new Zn('Expected "propertyNames" to be a schema (object or boolean)');for(var c in t)if(yf(t,c)!==void 0){var d=this.validateSchema(c,l,i,a.makeChild(l));s.importErrors(d)}return s}};Ue.properties=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=r.properties||{};for(var c in l){var d=l[c];if(d!==void 0){if(d===null)throw new Zn('Unexpected null, expected schema in "properties"');typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,c,d,i,a);var p=yf(t,c),h=this.validateSchema(p,d,i,a.makeChild(d,c));h.instance!==s.instance[c]&&(s.instance[c]=h.instance),s.importErrors(h)}}return s}};function e0(e,t,r,i,a,s){if(this.types.object(e)&&!(t.properties&&t.properties[a]!==void 0))if(t.additionalProperties===!1)s.addError({name:"additionalProperties",argument:a,message:"is not allowed to have the additional property "+JSON.stringify(a)});else{var l=t.additionalProperties||{};typeof r.preValidateProperty=="function"&&r.preValidateProperty(e,a,l,r,i);var c=this.validateSchema(e[a],l,r,i.makeChild(l,a));c.instance!==s.instance[a]&&(s.instance[a]=c.instance),s.importErrors(c)}}Ue.patternProperties=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=r.patternProperties||{};for(var c in t){var d=!0;for(var p in l){var h=l[p];if(h!==void 0){if(h===null)throw new Zn('Unexpected null, expected schema in "patternProperties"');try{var w=new RegExp(p,"u")}catch{w=new RegExp(p)}if(w.test(c)){d=!1,typeof i.preValidateProperty=="function"&&i.preValidateProperty(t,c,h,i,a);var S=this.validateSchema(t[c],h,i,a.makeChild(h,c));S.instance!==s.instance[c]&&(s.instance[c]=S.instance),s.importErrors(S)}}}d&&e0.call(this,t,r,i,a,c,s)}return s}};Ue.additionalProperties=function(t,r,i,a){if(this.types.object(t)){if(r.patternProperties)return null;var s=new We(t,r,i,a);for(var l in t)e0.call(this,t,r,i,a,l,s);return s}};Ue.minProperties=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=Object.keys(t);return l.length>=r.minProperties||s.addError({name:"minProperties",argument:r.minProperties,message:"does not meet minimum property length of "+r.minProperties}),s}};Ue.maxProperties=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a),l=Object.keys(t);return l.length<=r.maxProperties||s.addError({name:"maxProperties",argument:r.maxProperties,message:"does not meet maximum property length of "+r.maxProperties}),s}};Ue.items=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.items!==void 0){var l=new We(t,r,i,a);return t.every(function(c,d){if(Array.isArray(r.items))var p=r.items[d]===void 0?r.additionalItems:r.items[d];else var p=r.items;if(p===void 0)return!0;if(p===!1)return l.addError({name:"items",message:"additionalItems not permitted"}),!1;var h=s.validateSchema(c,p,i,a.makeChild(p,d));return h.instance!==l.instance[d]&&(l.instance[d]=h.instance),l.importErrors(h),!0}),l}};Ue.contains=function(t,r,i,a){var s=this;if(this.types.array(t)&&r.contains!==void 0){if(!mr.isSchema(r.contains))throw new Error('Expected "contains" keyword to be a schema');var l=new We(t,r,i,a),c=t.some(function(d,p){var h=s.validateSchema(d,r.contains,i,a.makeChild(r.contains,p));return h.errors.length===0});return c===!1&&l.addError({name:"contains",argument:r.contains,message:"must contain an item matching given schema"}),l}};Ue.minimum=function(t,r,i,a){if(this.types.number(t)){var s=new We(t,r,i,a);return r.exclusiveMinimum&&r.exclusiveMinimum===!0?t>r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than "+r.minimum}):t>=r.minimum||s.addError({name:"minimum",argument:r.minimum,message:"must be greater than or equal to "+r.minimum}),s}};Ue.maximum=function(t,r,i,a){if(this.types.number(t)){var s=new We(t,r,i,a);return r.exclusiveMaximum&&r.exclusiveMaximum===!0?t<r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than "+r.maximum}):t<=r.maximum||s.addError({name:"maximum",argument:r.maximum,message:"must be less than or equal to "+r.maximum}),s}};Ue.exclusiveMinimum=function(t,r,i,a){if(typeof r.exclusiveMinimum!="boolean"&&this.types.number(t)){var s=new We(t,r,i,a),l=t>r.exclusiveMinimum;return l||s.addError({name:"exclusiveMinimum",argument:r.exclusiveMinimum,message:"must be strictly greater than "+r.exclusiveMinimum}),s}};Ue.exclusiveMaximum=function(t,r,i,a){if(typeof r.exclusiveMaximum!="boolean"&&this.types.number(t)){var s=new We(t,r,i,a),l=t<r.exclusiveMaximum;return l||s.addError({name:"exclusiveMaximum",argument:r.exclusiveMaximum,message:"must be strictly less than "+r.exclusiveMaximum}),s}};var t0=function(t,r,i,a,s,l){if(this.types.number(t)){var c=r[s];if(c==0)throw new Zn(s+" cannot be zero");var d=new We(t,r,i,a),p=mr.getDecimalPlaces(t),h=mr.getDecimalPlaces(c),w=Math.max(p,h),S=Math.pow(10,w);return Math.round(t*S)%Math.round(c*S)!==0&&d.addError({name:s,argument:c,message:l+JSON.stringify(c)}),d}};Ue.multipleOf=function(t,r,i,a){return t0.call(this,t,r,i,a,"multipleOf","is not a multiple of (divisible by) ")};Ue.divisibleBy=function(t,r,i,a){return t0.call(this,t,r,i,a,"divisibleBy","is not divisible by (multiple of) ")};Ue.required=function(t,r,i,a){var s=new We(t,r,i,a);return t===void 0&&r.required===!0?s.addError({name:"required",message:"is required"}):this.types.object(t)&&Array.isArray(r.required)&&r.required.forEach(function(l){yf(t,l)===void 0&&s.addError({name:"required",argument:l,message:"requires property "+JSON.stringify(l)})}),s};Ue.pattern=function(t,r,i,a){if(this.types.string(t)){var s=new We(t,r,i,a),l=r.pattern;try{var c=new RegExp(l,"u")}catch{c=new RegExp(l)}return t.match(c)||s.addError({name:"pattern",argument:r.pattern,message:"does not match pattern "+JSON.stringify(r.pattern.toString())}),s}};Ue.format=function(t,r,i,a){if(t!==void 0){var s=new We(t,r,i,a);return!s.disableFormat&&!mr.isFormat(t,r.format,this)&&s.addError({name:"format",argument:r.format,message:"does not conform to the "+JSON.stringify(r.format)+" format"}),s}};Ue.minLength=function(t,r,i,a){if(this.types.string(t)){var s=new We(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),c=t.length-(l?l.length:0);return c>=r.minLength||s.addError({name:"minLength",argument:r.minLength,message:"does not meet minimum length of "+r.minLength}),s}};Ue.maxLength=function(t,r,i,a){if(this.types.string(t)){var s=new We(t,r,i,a),l=t.match(/[\uDC00-\uDFFF]/g),c=t.length-(l?l.length:0);return c<=r.maxLength||s.addError({name:"maxLength",argument:r.maxLength,message:"does not meet maximum length of "+r.maxLength}),s}};Ue.minItems=function(t,r,i,a){if(this.types.array(t)){var s=new We(t,r,i,a);return t.length>=r.minItems||s.addError({name:"minItems",argument:r.minItems,message:"does not meet minimum length of "+r.minItems}),s}};Ue.maxItems=function(t,r,i,a){if(this.types.array(t)){var s=new We(t,r,i,a);return t.length<=r.maxItems||s.addError({name:"maxItems",argument:r.maxItems,message:"does not meet maximum length of "+r.maxItems}),s}};function wI(e,t,r){var i,a=r.length;for(i=t+1,a;i<a;i++)if(mr.deepCompareStrict(e,r[i]))return!1;return!0}Ue.uniqueItems=function(t,r,i,a){if(r.uniqueItems===!0&&this.types.array(t)){var s=new We(t,r,i,a);return t.every(wI)||s.addError({name:"uniqueItems",message:"contains duplicate item"}),s}};Ue.dependencies=function(t,r,i,a){if(this.types.object(t)){var s=new We(t,r,i,a);for(var l in r.dependencies)if(t[l]!==void 0){var c=r.dependencies[l],d=a.makeChild(c,l);if(typeof c=="string"&&(c=[c]),Array.isArray(c))c.forEach(function(h){t[h]===void 0&&s.addError({name:"dependencies",argument:d.propertyPath,message:"property "+h+" not found, required by "+d.propertyPath})});else{var p=this.validateSchema(t,c,i,d);s.instance!==p.instance&&(s.instance=p.instance),p&&p.errors.length&&(s.addError({name:"dependencies",argument:d.propertyPath,message:"does not meet dependency required by "+d.propertyPath}),s.importErrors(p))}}return s}};Ue.enum=function(t,r,i,a){if(t===void 0)return null;if(!Array.isArray(r.enum))throw new Zn("enum expects an array",r);var s=new We(t,r,i,a);return r.enum.some(mr.deepCompareStrict.bind(null,t))||s.addError({name:"enum",argument:r.enum,message:"is not one of enum values: "+r.enum.map(String).join(",")}),s};Ue.const=function(t,r,i,a){if(t===void 0)return null;var s=new We(t,r,i,a);return mr.deepCompareStrict(r.const,t)||s.addError({name:"const",argument:r.const,message:"does not exactly match expected constant: "+r.const}),s};Ue.not=Ue.disallow=function(t,r,i,a){var s=this;if(t===void 0)return null;var l=new We(t,r,i,a),c=r.not||r.disallow;return c?(Array.isArray(c)||(c=[c]),c.forEach(function(d){if(s.testType(t,r,i,a,d)){var p=d&&(d.$id||d.id),h=p||d;l.addError({name:"not",argument:h,message:"is of prohibited type "+h})}}),l):null};var bI=mf,wf={},ic=dt;wf.SchemaScanResult=r0;function r0(e,t){this.id=e,this.ref=t}wf.scan=function(t,r){function i(d,p){if(!p||typeof p!="object")return;if(p.$ref){let v=ic.resolveUrl(d,p.$ref);c[v]=c[v]?c[v]+1:0;return}var h=p.$id||p.id;let w=ic.resolveUrl(d,h);var S=h?w:d;if(S){if(S.indexOf("#")<0&&(S+="#"),l[S]){if(!ic.deepCompareStrict(l[S],p))throw new Error("Schema <"+S+"> already exists with different definition");return l[S]}l[S]=p,S[S.length-1]=="#"&&(l[S.substring(0,S.length-1)]=p)}a(S+"/items",Array.isArray(p.items)?p.items:[p.items]),a(S+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),i(S+"/additionalItems",p.additionalItems),s(S+"/properties",p.properties),i(S+"/additionalProperties",p.additionalProperties),s(S+"/definitions",p.definitions),s(S+"/patternProperties",p.patternProperties),s(S+"/dependencies",p.dependencies),a(S+"/disallow",p.disallow),a(S+"/allOf",p.allOf),a(S+"/anyOf",p.anyOf),a(S+"/oneOf",p.oneOf),i(S+"/not",p.not)}function a(d,p){if(Array.isArray(p))for(var h=0;h<p.length;h++)i(d+"/"+h,p[h])}function s(d,p){if(!(!p||typeof p!="object"))for(var h in p)i(d+"/"+h,p[h])}var l={},c={};return i(t,r),new r0(l,c)};var n0=bI,Gn=dt,i0=wf.scan,o0=Gn.ValidatorResult,SI=Gn.ValidatorResultError,Vo=Gn.SchemaError,a0=Gn.SchemaContext,EI="/",Pt=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(sn),this.attributes=Object.create(n0.validators)};Pt.prototype.customFormats={};Pt.prototype.schemas=null;Pt.prototype.types=null;Pt.prototype.attributes=null;Pt.prototype.unresolvedRefs=null;Pt.prototype.addSchema=function(t,r){var i=this;if(!t)return null;var a=i0(r||EI,t),s=r||t.$id||t.id;for(var l in a.id)this.schemas[l]=a.id[l];for(var l in a.ref)this.unresolvedRefs.push(l);return this.unresolvedRefs=this.unresolvedRefs.filter(function(c){return typeof i.schemas[c]>"u"}),this.schemas[s]};Pt.prototype.addSubSchemaArray=function(t,r){if(Array.isArray(r))for(var i=0;i<r.length;i++)this.addSubSchema(t,r[i])};Pt.prototype.addSubSchemaObject=function(t,r){if(!(!r||typeof r!="object"))for(var i in r)this.addSubSchema(t,r[i])};Pt.prototype.setSchemas=function(t){this.schemas=t};Pt.prototype.getSchema=function(t){return this.schemas[t]};Pt.prototype.validate=function(t,r,i,a){if(typeof r!="boolean"&&typeof r!="object"||r===null)throw new Vo("Expected `schema` to be an object or boolean");i||(i={});var s=r.$id||r.id;let l=Gn.resolveUrl(i.base,s||"");if(!a){a=new a0(r,i,[],l,Object.create(this.schemas)),a.schemas[l]||(a.schemas[l]=r);var c=i0(l,r);for(var d in c.id){var p=c.id[d];a.schemas[d]=p}}if(i.required&&t===void 0){var h=new o0(t,r,i,a);return h.addError("is required, but is undefined"),h}var h=this.validateSchema(t,r,i,a);if(h){if(i.throwAll&&h.errors.length)throw new SI(h)}else throw new Error("Result undefined");return h};function s0(e){var t=typeof e=="string"?e:e.$ref;return typeof t=="string"?t:!1}Pt.prototype.validateSchema=function(t,r,i,a){var s=new o0(t,r,i,a);if(typeof r=="boolean")r===!0?r={}:r===!1&&(r={type:[]});else if(!r)throw new Error("schema is undefined");if(r.extends)if(Array.isArray(r.extends)){var l={schema:r,ctx:a};r.extends.forEach(this.schemaTraverser.bind(this,l)),r=l.schema,l.schema=null,l.ctx=null,l=null}else r=Gn.deepMerge(r,this.superResolve(r.extends,a));var c=s0(r);if(c){var d=this.resolve(r,c,a),p=new a0(d.subschema,i,a.path,d.switchSchema,a.schemas);return this.validateSchema(t,d.subschema,i,p)}var h=i&&i.skipAttributes||[];for(var w in r)if(!n0.ignoreProperties[w]&&h.indexOf(w)<0){var S=null,v=this.attributes[w];if(v)S=v.call(this,t,r,i,a);else if(i.allowUnknownAttributes===!1)throw new Vo("Unsupported attribute: "+w,r);S&&s.importErrors(S)}if(typeof i.rewrite=="function"){var _=i.rewrite.call(this,t,r,i,a);s.instance=_}return s};Pt.prototype.schemaTraverser=function(t,r){t.schema=Gn.deepMerge(t.schema,this.superResolve(r,t.ctx))};Pt.prototype.superResolve=function(t,r){var i=s0(t);return i?this.resolve(t,i,r).subschema:t};Pt.prototype.resolve=function(t,r,i){if(r=i.resolve(r),i.schemas[r])return{subschema:i.schemas[r],switchSchema:r};let s=new URL(r,"thismessage::/").hash;var l=s&&s.length&&r.substr(0,r.length-s.length);if(!l||!i.schemas[l])throw new Vo("no such schema <"+r+">",t);var c=Gn.objectGetPath(i.schemas[l],s.substr(1));if(c===void 0)throw new Vo("no such schema "+s+" located in <"+l+">",t);return{subschema:c,switchSchema:r}};Pt.prototype.testType=function(t,r,i,a,s){if(s!==void 0){if(s===null)throw new Vo('Unexpected null in "type" keyword');if(typeof this.types[s]=="function")return this.types[s].call(this,t);if(s&&typeof s=="object"){var l=this.validateSchema(t,s,i,a);return l===void 0||!(l&&l.errors.length)}return!0}};var sn=Pt.prototype.types={};sn.string=function(t){return typeof t=="string"};sn.number=function(t){return typeof t=="number"&&isFinite(t)};sn.integer=function(t){return typeof t=="number"&&t%1===0};sn.boolean=function(t){return typeof t=="boolean"};sn.array=function(t){return Array.isArray(t)};sn.null=function(t){return t===null};sn.date=function(t){return t instanceof Date};sn.any=function(t){return!0};sn.object=function(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof Date)};var _I=Pt,u0;u0=_I;dt.ValidatorResult;dt.ValidatorResultError;dt.ValidationError;dt.SchemaError;var xI=l0;function l0(e,t,r){e instanceof RegExp&&(e=Av(e,r)),t instanceof RegExp&&(t=Av(t,r));var i=c0(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function Av(e,t){var r=t.match(e);return r?r[0]:null}l0.range=c0;function c0(e,t,r){var i,a,s,l,c,d=r.indexOf(e),p=r.indexOf(t,d+1),h=d;if(d>=0&&p>0){if(e===t)return[d,p];for(i=[],s=r.length;h>=0&&!c;)h==d?(i.push(h),d=r.indexOf(e,h+1)):i.length==1?c=[i.pop(),p]:(a=i.pop(),a<s&&(s=a,l=p),p=r.indexOf(t,h+1)),h=d<p&&d>=0?d:p;i.length&&(c=[s,l])}return c}var f0=xI,OI=RI,d0="\0SLASH"+Math.random()+"\0",p0="\0OPEN"+Math.random()+"\0",bf="\0CLOSE"+Math.random()+"\0",h0="\0COMMA"+Math.random()+"\0",v0="\0PERIOD"+Math.random()+"\0";function oc(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function AI(e){return e.split("\\\\").join(d0).split("\\{").join(p0).split("\\}").join(bf).split("\\,").join(h0).split("\\.").join(v0)}function TI(e){return e.split(d0).join("\\").split(p0).join("{").split(bf).join("}").split(h0).join(",").split(v0).join(".")}function m0(e){if(!e)return[""];var t=[],r=f0("{","}",e);if(!r)return e.split(",");var i=r.pre,a=r.body,s=r.post,l=i.split(",");l[l.length-1]+="{"+a+"}";var c=m0(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function RI(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Do(AI(e),!0).map(TI)):[]}function CI(e){return"{"+e+"}"}function PI(e){return/^-?0\d/.test(e)}function II(e,t){return e<=t}function MI(e,t){return e>=t}function Do(e,t){var r=[],i=f0("{","}",e);if(!i)return[e];var a=i.pre,s=i.post.length?Do(i.post,!1):[""];if(/\$$/.test(i.pre))for(var l=0;l<s.length;l++){var c=a+"{"+i.body+"}"+s[l];r.push(c)}else{var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),p=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),h=d||p,w=i.body.indexOf(",")>=0;if(!h&&!w)return i.post.match(/,.*\}/)?(e=i.pre+"{"+i.body+bf+i.post,Do(e)):[e];var S;if(h)S=i.body.split(/\.\./);else if(S=m0(i.body),S.length===1&&(S=Do(S[0],!1).map(CI),S.length===1))return s.map(function(ee){return i.pre+S[0]+ee});var v;if(h){var _=oc(S[0]),g=oc(S[1]),x=Math.max(S[0].length,S[1].length),C=S.length==3?Math.abs(oc(S[2])):1,P=II,T=g<_;T&&(C*=-1,P=MI);var $=S.some(PI);v=[];for(var A=_;P(A,g);A+=C){var D;if(p)D=String.fromCharCode(A),D==="\\"&&(D="");else if(D=String(A),$){var H=x-D.length;if(H>0){var j=new Array(H+1).join("0");A<0?D="-"+j+D.slice(1):D=j+D}}v.push(D)}}else{v=[];for(var V=0;V<S.length;V++)v.push.apply(v,Do(S[V],!1))}for(var V=0;V<v.length;V++)for(var l=0;l<s.length;l++){var c=a+v[V]+s[l];(!t||h||c)&&r.push(c)}}return r}const FI=$c(OI),LI=1024*64,ks=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>LI)throw new TypeError("pattern is too long")},$I={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Lo=e=>e.replace(/[[\]\\-]/g,"\\$&"),DI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Tv=e=>e.join(""),NI=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],a=[];let s=r+1,l=!1,c=!1,d=!1,p=!1,h=r,w="";e:for(;s<e.length;){const g=e.charAt(s);if((g==="!"||g==="^")&&s===r+1){p=!0,s++;continue}if(g==="]"&&l&&!d){h=s+1;break}if(l=!0,g==="\\"&&!d){d=!0,s++;continue}if(g==="["&&!d){for(const[x,[C,P,T]]of Object.entries($I))if(e.startsWith(x,s)){if(w)return["$.",!1,e.length-r,!0];s+=x.length,T?a.push(C):i.push(C),c=c||P;continue e}}if(d=!1,w){g>w?i.push(Lo(w)+"-"+Lo(g)):g===w&&i.push(Lo(g)),w="",s++;continue}if(e.startsWith("-]",s+1)){i.push(Lo(g+"-")),s+=2;continue}if(e.startsWith("-",s+1)){w=g,s+=2;continue}i.push(Lo(g)),s++}if(h<s)return["",!1,0,!1];if(!i.length&&!a.length)return["$.",!1,e.length-r,!0];if(a.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!p){const g=i[0].length===2?i[0].slice(-1):i[0];return[DI(g),!1,h-r,!1]}const S="["+(p?"^":"")+Tv(i)+"]",v="["+(p?"":"^")+Tv(a)+"]";return[i.length&&a.length?"("+S+"|"+v+")":i.length?S:v,c,h-r,!0]},No=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),kI=new Set(["!","?","+","*","@"]),Rv=e=>kI.has(e),jI="(?!(?:^|/)\\.\\.?(?:$|/))",ys="(?!\\.)",WI=new Set(["[","."]),UI=new Set(["..","."]),HI=new Set("().*{}+?[]^$\\!"),BI=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Sf="[^/]",Cv=Sf+"*?",Pv=Sf+"+?";var xt,Rt,Sn,it,bt,Wn,wi,Un,Xr,bi,Xo,Ws,g0,no,As,Jo,Lc,Us,y0;const Zt=class Zt{constructor(t,r,i={}){Wt(this,Ws);Wt(this,Jo);wt(this,"type");Wt(this,xt,void 0);Wt(this,Rt,void 0);Wt(this,Sn,!1);Wt(this,it,[]);Wt(this,bt,void 0);Wt(this,Wn,void 0);Wt(this,wi,void 0);Wt(this,Un,!1);Wt(this,Xr,void 0);Wt(this,bi,void 0);Wt(this,Xo,!1);this.type=t,t&>(this,Rt,!0),gt(this,bt,r),gt(this,xt,X(this,bt)?X(X(this,bt),xt):this),gt(this,Xr,X(this,xt)===this?i:X(X(this,xt),Xr)),gt(this,wi,X(this,xt)===this?[]:X(X(this,xt),wi)),t==="!"&&!X(X(this,xt),Un)&&X(this,wi).push(this),gt(this,Wn,X(this,bt)?X(X(this,bt),it).length:0)}get hasMagic(){if(X(this,Rt)!==void 0)return X(this,Rt);for(const t of X(this,it))if(typeof t!="string"&&(t.type||t.hasMagic))return gt(this,Rt,!0);return X(this,Rt)}toString(){return X(this,bi)!==void 0?X(this,bi):this.type?gt(this,bi,this.type+"("+X(this,it).map(t=>String(t)).join("|")+")"):gt(this,bi,X(this,it).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Zt&&X(r,bt)===this))throw new Error("invalid part: "+r);X(this,it).push(r)}}toJSON(){var r;const t=this.type===null?X(this,it).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...X(this,it).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===X(this,xt)||X(X(this,xt),Un)&&((r=X(this,bt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(X(this,xt)===this)return!0;if(!((r=X(this,bt))!=null&&r.isStart()))return!1;if(X(this,Wn)===0)return!0;const t=X(this,bt);for(let i=0;i<X(this,Wn);i++){const a=X(t,it)[i];if(!(a instanceof Zt&&a.type==="!"))return!1}return!0}isEnd(){var r,i,a;if(X(this,xt)===this||((r=X(this,bt))==null?void 0:r.type)==="!")return!0;if(!((i=X(this,bt))!=null&&i.isEnd()))return!1;if(!this.type)return(a=X(this,bt))==null?void 0:a.isEnd();const t=X(this,bt)?X(X(this,bt),it).length:0;return X(this,Wn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Zt(this.type,t);for(const i of X(this,it))r.copyIn(i);return r}static fromGlob(t,r={}){var a;const i=new Zt(null,void 0,r);return $n(a=Zt,no,As).call(a,t,i,0,r),i}toMMPattern(){if(this!==X(this,xt))return X(this,xt).toMMPattern();const t=this.toString(),[r,i,a,s]=this.toRegExpSource();if(!(a||X(this,Rt)||X(this,Xr).nocase&&!X(this,Xr).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(X(this,Xr).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return X(this,Xr)}toRegExpSource(t){var d;const r=t??!!X(this,Xr).dot;if(X(this,xt)===this&&$n(this,Ws,g0).call(this),!this.type){const p=this.isStart()&&this.isEnd(),h=X(this,it).map(_=>{var T;const[g,x,C,P]=typeof _=="string"?$n(T=Zt,Us,y0).call(T,_,X(this,Rt),p):_.toRegExpSource(t);return gt(this,Rt,X(this,Rt)||C),gt(this,Sn,X(this,Sn)||P),g}).join("");let w="";if(this.isStart()&&typeof X(this,it)[0]=="string"&&!(X(this,it).length===1&&UI.has(X(this,it)[0]))){const g=WI,x=r&&g.has(h.charAt(0))||h.startsWith("\\.")&&g.has(h.charAt(2))||h.startsWith("\\.\\.")&&g.has(h.charAt(4)),C=!r&&!t&&g.has(h.charAt(0));w=x?jI:C?ys:""}let S="";return this.isEnd()&&X(X(this,xt),Un)&&((d=X(this,bt))==null?void 0:d.type)==="!"&&(S="(?:$|\\/)"),[w+h+S,No(h),gt(this,Rt,!!X(this,Rt)),X(this,Sn)]}const i=this.type==="*"||this.type==="+",a=this.type==="!"?"(?:(?!(?:":"(?:";let s=$n(this,Jo,Lc).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const p=this.toString();return gt(this,it,[p]),this.type=null,gt(this,Rt,void 0),[p,No(this.toString()),!1,!1]}let l=!i||t||r||!ys?"":$n(this,Jo,Lc).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let c="";if(this.type==="!"&&X(this,Xo))c=(this.isStart()&&!r?ys:"")+Pv;else{const p=this.type==="!"?"))"+(this.isStart()&&!r&&!t?ys:"")+Cv+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=a+s+p}return[c,No(s),gt(this,Rt,!!X(this,Rt)),X(this,Sn)]}};xt=new WeakMap,Rt=new WeakMap,Sn=new WeakMap,it=new WeakMap,bt=new WeakMap,Wn=new WeakMap,wi=new WeakMap,Un=new WeakMap,Xr=new WeakMap,bi=new WeakMap,Xo=new WeakMap,Ws=new WeakSet,g0=function(){if(this!==X(this,xt))throw new Error("should only call on root");if(X(this,Un))return this;this.toString(),gt(this,Un,!0);let t;for(;t=X(this,wi).pop();){if(t.type!=="!")continue;let r=t,i=X(r,bt);for(;i;){for(let a=X(r,Wn)+1;!i.type&&a<X(i,it).length;a++)for(const s of X(t,it)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(X(i,it)[a])}r=i,i=X(r,bt)}}return this},no=new WeakSet,As=function(t,r,i,a){var v,_;let s=!1,l=!1,c=-1,d=!1;if(r.type===null){let g=i,x="";for(;g<t.length;){const C=t.charAt(g++);if(s||C==="\\"){s=!s,x+=C;continue}if(l){g===c+1?(C==="^"||C==="!")&&(d=!0):C==="]"&&!(g===c+2&&d)&&(l=!1),x+=C;continue}else if(C==="["){l=!0,c=g,d=!1,x+=C;continue}if(!a.noext&&Rv(C)&&t.charAt(g)==="("){r.push(x),x="";const P=new Zt(C,r);g=$n(v=Zt,no,As).call(v,t,P,g,a),r.push(P);continue}x+=C}return r.push(x),g}let p=i+1,h=new Zt(null,r);const w=[];let S="";for(;p<t.length;){const g=t.charAt(p++);if(s||g==="\\"){s=!s,S+=g;continue}if(l){p===c+1?(g==="^"||g==="!")&&(d=!0):g==="]"&&!(p===c+2&&d)&&(l=!1),S+=g;continue}else if(g==="["){l=!0,c=p,d=!1,S+=g;continue}if(Rv(g)&&t.charAt(p)==="("){h.push(S),S="";const x=new Zt(g,h);h.push(x),p=$n(_=Zt,no,As).call(_,t,x,p,a);continue}if(g==="|"){h.push(S),S="",w.push(h),h=new Zt(null,r);continue}if(g===")")return S===""&&X(r,it).length===0&>(r,Xo,!0),h.push(S),S="",r.push(...w,h),p;S+=g}return r.type=null,gt(r,Rt,void 0),gt(r,it,[t.substring(i-1)]),p},Jo=new WeakSet,Lc=function(t){return X(this,it).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,a,s,l]=r.toRegExpSource(t);return gt(this,Sn,X(this,Sn)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},Us=new WeakSet,y0=function(t,r,i=!1){let a=!1,s="",l=!1;for(let c=0;c<t.length;c++){const d=t.charAt(c);if(a){a=!1,s+=(HI.has(d)?"\\":"")+d;continue}if(d==="\\"){c===t.length-1?s+="\\\\":a=!0;continue}if(d==="["){const[p,h,w,S]=NI(t,c);if(w){s+=p,l=l||h,c+=w-1,r=r||S;continue}}if(d==="*"){i&&t==="*"?s+=Pv:s+=Cv,r=!0;continue}if(d==="?"){s+=Sf,r=!0;continue}s+=BI(d)}return[s,No(t),!!r,l]},Wt(Zt,no),Wt(Zt,Us);let js=Zt;const zI=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Kt=(e,t,r={})=>(ks(t),!r.nocomment&&t.charAt(0)==="#"?!1:new iu(t,r).match(e)),qI=/^\*+([^+@!?\*\[\(]*)$/,ZI=e=>t=>!t.startsWith(".")&&t.endsWith(e),GI=e=>t=>t.endsWith(e),KI=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),YI=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),VI=/^\*+\.\*+$/,XI=e=>!e.startsWith(".")&&e.includes("."),JI=e=>e!=="."&&e!==".."&&e.includes("."),QI=/^\.\*+$/,eM=e=>e!=="."&&e!==".."&&e.startsWith("."),tM=/^\*+$/,rM=e=>e.length!==0&&!e.startsWith("."),nM=e=>e.length!==0&&e!=="."&&e!=="..",iM=/^\?+([^+@!?\*\[\(]*)?$/,oM=([e,t=""])=>{const r=w0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},aM=([e,t=""])=>{const r=b0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},sM=([e,t=""])=>{const r=b0([e]);return t?i=>r(i)&&i.endsWith(t):r},uM=([e,t=""])=>{const r=w0([e]);return t?i=>r(i)&&i.endsWith(t):r},w0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},b0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},S0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Iv={win32:{sep:"\\"},posix:{sep:"/"}},lM=S0==="win32"?Iv.win32.sep:Iv.posix.sep;Kt.sep=lM;const Cr=Symbol("globstar **");Kt.GLOBSTAR=Cr;const cM="[^/]",fM=cM+"*?",dM="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",pM="(?:(?!(?:\\/|^)\\.).)*?",hM=(e,t={})=>r=>Kt(r,e,t);Kt.filter=hM;const Rr=(e,t={})=>Object.assign({},e,t),vM=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Kt;const t=Kt;return Object.assign((i,a,s={})=>t(i,a,Rr(e,s)),{Minimatch:class extends t.Minimatch{constructor(a,s={}){super(a,Rr(e,s))}static defaults(a){return t.defaults(Rr(e,a)).Minimatch}},AST:class extends t.AST{constructor(a,s,l={}){super(a,s,Rr(e,l))}static fromGlob(a,s={}){return t.AST.fromGlob(a,Rr(e,s))}},unescape:(i,a={})=>t.unescape(i,Rr(e,a)),escape:(i,a={})=>t.escape(i,Rr(e,a)),filter:(i,a={})=>t.filter(i,Rr(e,a)),defaults:i=>t.defaults(Rr(e,i)),makeRe:(i,a={})=>t.makeRe(i,Rr(e,a)),braceExpand:(i,a={})=>t.braceExpand(i,Rr(e,a)),match:(i,a,s={})=>t.match(i,a,Rr(e,s)),sep:t.sep,GLOBSTAR:Cr})};Kt.defaults=vM;const E0=(e,t={})=>(ks(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:FI(e));Kt.braceExpand=E0;const mM=(e,t={})=>new iu(e,t).makeRe();Kt.makeRe=mM;const gM=(e,t,r={})=>{const i=new iu(t,r);return e=e.filter(a=>i.match(a)),i.options.nonull&&!e.length&&e.push(t),e};Kt.match=gM;const Mv=/[?*]|[+@!]\(.*?\)|\[|\]/,yM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class iu{constructor(t,r={}){wt(this,"options");wt(this,"set");wt(this,"pattern");wt(this,"windowsPathsNoEscape");wt(this,"nonegate");wt(this,"negate");wt(this,"comment");wt(this,"empty");wt(this,"preserveMultipleSlashes");wt(this,"partial");wt(this,"globSet");wt(this,"globParts");wt(this,"nocase");wt(this,"isWindows");wt(this,"platform");wt(this,"windowsNoMagicRoot");wt(this,"regexp");ks(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||S0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let a=this.globParts.map((s,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const d=s[0]===""&&s[1]===""&&(s[2]==="?"||!Mv.test(s[2]))&&!Mv.test(s[3]),p=/^[a-z]:/i.test(s[0]);if(d)return[...s.slice(0,4),...s.slice(4).map(h=>this.parse(h))];if(p)return[s[0],...s.slice(1).map(h=>this.parse(h))]}return s.map(d=>this.parse(d))});if(this.debug(this.pattern,a),this.set=a.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const l=this.set[s];l[0]===""&&l[1]===""&&this.globParts[s][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let a=0;a<t[i].length;a++)t[i][a]==="**"&&(t[i][a]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let a=i;for(;r[a+1]==="**";)a++;a!==i&&r.splice(i,a-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,a)=>{const s=i[i.length-1];return a==="**"&&s==="**"?i:a===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(a),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let a=1;a<t.length-1;a++){const s=t[a];a===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(a,1),a--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const a=t[i-1];a&&a!=="."&&a!==".."&&a!=="**"&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let a=-1;for(;(a=i.indexOf("**",a+1))!==-1;){let l=a;for(;i[l+1]==="**";)l++;l>a&&i.splice(a+1,l-a);let c=i[a+1];const d=i[a+2],p=i[a+3];if(c!==".."||!d||d==="."||d===".."||!p||p==="."||p==="..")continue;r=!0,i.splice(a,1);const h=i.slice(0);h[a]="**",t.push(h),a--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){const c=i[l];l===1&&c===""&&i[0]===""||(c==="."||c==="")&&(r=!0,i.splice(l,1),l--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){const l=i[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const d=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...d),i.length===0&&i.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const a=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(a){t[r]=[],t[i]=a;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let a=0,s=0,l=[],c="";for(;a<t.length&&s<r.length;)if(t[a]===r[s])l.push(c==="b"?r[s]:t[a]),a++,s++;else if(i&&t[a]==="**"&&r[s]===t[a+1])l.push(t[a]),a++;else if(i&&r[s]==="**"&&t[a]===r[s+1])l.push(r[s]),s++;else if(t[a]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",l.push(t[a]),a++,s++}else if(r[s]==="*"&&t[a]&&(this.options.dot||!t[a].startsWith("."))&&t[a]!=="**"){if(c==="a")return!1;c="b",l.push(r[s]),a++,s++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let a=0;a<t.length&&t.charAt(a)==="!";a++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){const a=this.options;if(this.isWindows){const g=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),x=!g&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),C=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),P=!C&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),T=x?3:g?0:void 0,$=P?3:C?0:void 0;if(typeof T=="number"&&typeof $=="number"){const[A,D]=[t[T],r[$]];A.toLowerCase()===D.toLowerCase()&&(r[$]=A,$>T?r=r.slice($):T>$&&(t=t.slice(T)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var l=0,c=0,d=t.length,p=r.length;l<d&&c<p;l++,c++){this.debug("matchOne loop");var h=r[c],w=t[l];if(this.debug(r,h,w),h===!1)return!1;if(h===Cr){this.debug("GLOBSTAR",[r,h,w]);var S=l,v=c+1;if(v===p){for(this.debug("** at the end");l<d;l++)if(t[l]==="."||t[l]===".."||!a.dot&&t[l].charAt(0)===".")return!1;return!0}for(;S<d;){var _=t[S];if(this.debug(`
|
|
205
|
+
globstar while`,t,S,r,v,_),this.matchOne(t.slice(S),r.slice(v),i))return this.debug("globstar found match!",S,d,_),!0;if(_==="."||_===".."||!a.dot&&_.charAt(0)==="."){this.debug("dot detected!",t,S,r,v);break}this.debug("globstar swallow a segment, and continue"),S++}return!!(i&&(this.debug(`
|
|
206
|
+
>>> no match, partial?`,t,S,r,v),S===d))}let g;if(typeof h=="string"?(g=w===h,this.debug("string match",h,w,g)):(g=h.test(w),this.debug("pattern match",h,w,g)),!g)return!1}if(l===d&&c===p)return!0;if(l===d)return i;if(c===p)return l===d-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return E0(this.pattern,this.options)}parse(t){ks(t);const r=this.options;if(t==="**")return Cr;if(t==="")return"";let i,a=null;(i=t.match(tM))?a=r.dot?nM:rM:(i=t.match(qI))?a=(r.nocase?r.dot?YI:KI:r.dot?GI:ZI)(i[1]):(i=t.match(iM))?a=(r.nocase?r.dot?aM:oM:r.dot?sM:uM)(i):(i=t.match(VI))?a=r.dot?JI:XI:(i=t.match(QI))&&(a=eM);const s=js.fromGlob(t,this.options).toMMPattern();return a&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:a}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,i=r.noglobstar?fM:r.dot?dM:pM,a=new Set(r.nocase?["i"]:[]);let s=t.map(d=>{const p=d.map(h=>{if(h instanceof RegExp)for(const w of h.flags.split(""))a.add(w);return typeof h=="string"?yM(h):h===Cr?Cr:h._src});return p.forEach((h,w)=>{const S=p[w+1],v=p[w-1];h!==Cr||v===Cr||(v===void 0?S!==void 0&&S!==Cr?p[w+1]="(?:\\/|"+i+"\\/)?"+S:p[w]=i:S===void 0?p[w-1]=v+"(?:\\/|"+i+")?":S!==Cr&&(p[w-1]=v+"(?:\\/|\\/"+i+"\\/)"+S,p[w+1]=Cr))}),p.filter(h=>h!==Cr).join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+c+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...a].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const a=this.slashSplit(t);this.debug(this.pattern,"split",a);const s=this.set;this.debug(this.pattern,"set",s);let l=a[a.length-1];if(!l)for(let c=a.length-2;!l&&c>=0;c--)l=a[c];for(let c=0;c<s.length;c++){const d=s[c];let p=a;if(i.matchBase&&d.length===1&&(p=[l]),this.matchOne(p,d,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Kt.defaults(t).Minimatch}}Kt.AST=js;Kt.Minimatch=iu;Kt.escape=zI;Kt.unescape=No;const Ef="/$shared",wM={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/*.json":{parser:"json",content:{}}};function _0(e){const t=Object.entries(wM).find(([r])=>Kt(e,r));return t==null?void 0:t[1]}function _f(e){var i;const t=(i=_0(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Ef}/`,"Shared/");xf({name:r,content:t,asText:typeof t=="string"})}function ou({path:e,createIfNotExists:t=!1}){const r=`${Ef}/${e}`;return Ye(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const a=_0(e);let s=i;if(!a)return s;if(typeof s=="string")try{switch(a.parser){case"json":s=JSON.parse(s);break;default:break}}catch{throw new Error("Cannot parse")}if(a.schema&&!new u0().validate(s,a.schema).valid)throw new Error("Invalid Schema");return s}).catch(i=>{if(bM(i)&&t){const a=SM(i,e);Pg.next({message:a,kind:"warning"}),_f(r)}throw i})}function bM(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===404||(e==null?void 0:e.message)==="Invalid Schema"||(e==null?void 0:e.message)==="Cannot parse"||(e==null?void 0:e.name)==="SyntaxError"}function SM(e,t){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${t}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${t}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${t}' not found, creating...`;default:return e==null?void 0:e.message}}function EM(e){return Ye(fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function _M(e){return Ye(fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const x0=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:pf.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function xM(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const a=await Ye(Ot,{method:"POST",body:JSON.stringify({verb:Ii.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,c=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?i?c:l:a.webServerHTTPPort?l:c})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:s,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),x0()}}async function O0(e){return await Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function OM(...e){return(await Promise.all(e.map(i=>O0({root:i,verb:Ii.GET_FOLDER})))).map(({children:i})=>i.map(({name:a,date:s,type:l})=>({name:a,type:l,date:s,path:`${l}/${a}`}))).flat()}function AM(e,t={}){const{sanitize:r=!0}=t;return Ye(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const a=new Map;return{...i,components:St.entries(i.components).map(([s,l])=>{const c=s,{resolvedName:d}=l.type;if(d==="WebformLoader"){const p=Kc.generate();a.set(s,p),s=p}return[s,l,c]}).reduce((s,[l,c,d])=>{var p;return c.nodes&&(c.nodes=c.nodes.map(h=>a.get(h)||h)),c.linkedNodes&&(c.linkedNodes=St.entries(c.linkedNodes).reduce((h,[w,S])=>({...h,[w]:a.get(S)||S}),{})),(p=c.props)!=null&&p.events&&(c.props.events=c.props.events.map(h=>(h.type==="navigation"&&h.loader&&(h.loader=a.get(h.loader)||h.loader),h))),{...s,[l]:{...c,props:{...c.props,__originalID:d}}}},{})}})}function TM(e){return Ye(Ot,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Pr.METHOD,Pr.CLASS].includes(t.type)?ru(t.content):t.content}))}function RM(e){return e.type==="folder"?Ye(fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function CM(e){return e.type==="folder"?(await Ye(fa,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function PM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function IM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function MM(e){return(await Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function FM(...e){return await Ye(Ot,{method:"POST",body:JSON.stringify({verb:Ii.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function LM(e){const t=await Ye("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function $M(){return await Ye("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function DM({name:e,path:t="",root:r="root",asText:i=!1}){return Ye(Ot,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function NM(e={}){try{return await ou({path:"shared_datasources.json",...e})}catch{return{}}}async function kM(e={}){try{return await ou({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function jM(e={}){try{return await ou({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function WM(){try{return await Ye("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function UM(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const HM=Wg(),BM=async e=>{const t={verb:Ii.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return HM(async()=>(await Ye(Ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}),e))},xf=async e=>{const t=await Ye(Ot,{method:"POST",body:JSON.stringify({...e,verb:Ii.SET_FILE_CONTENT,root:df.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=kg(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},zM=async e=>await xf({name:"crafted_components.json",path:zn.WEBFORMS,content:e});function qM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function ZM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function GM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function KM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?ru(t.content):t.content}).catch(t=>{var r,i;throw((i=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:i.errCode)===1839&&_f(e.path),t})}function YM(e){return Ye(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function VM(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function XM(e){const t=new RegExp(/(->)(.*)/gi).exec(e);if(t!==null)return t[0].replace("->","");const r=/:([^)]*)$/.exec(e);return r!==null?`result : ${r[1].trim()}`:""}function JM(e){const t=VM(e).split(/[;,]/g).filter(Boolean).map(a=>{const s=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:s,type:l}}),r=XM(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function QM(e,t){const i=e.split(".").pop();try{const a=await Ye(Ot,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});a.content=ru(a.content);const{params:s,result:l}=JM(a.parameters);return{...a,params:s,returns:l}}catch(a){return console.error(a),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var A0=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(A0||{});function eF(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}var T0=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(T0||{}),R0=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(R0||{}),C0=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(C0||{});const tF={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},rF={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=Ot;exports.AppLoader=zP;exports.ControlledSwitch=hg;exports.DATASOURCE_THEMES=tF;exports.DatasourcesActions=Cg;exports.DebuggerActions=Fg;exports.DesignerRequestVerb=Ii;exports.Dialog=aO;exports.DialogBody=Zv;exports.EActivity=A0;exports.EDITOR=rF;exports.EIDENTIFIERS=R0;exports.ERROR_CODES=C0;exports.EWebFormStyleClassScope=T0;exports.EXT_API_PREFIX=fa;exports.FileFolderType=Pr;exports.FolderRootPath=zn;exports.FolderRootType=df;exports.HTTPError=Ic;exports.HTTP_HANDLERS_PATH=Ng;exports.IPreemptive=Yo;exports.IPublished=Kg;exports.IPublishedRestScope=hf;exports.IdentityProvider=m2;exports.Incase=JA;exports.IndentLines=Sm;exports.LogoSVG=vg;exports.LspActions=Mg;exports.MAX_FILE_NAME_LENGTH=cf;exports.MODEL_TAB_PATH=j2;exports.Modal=ZP;exports.ModalCloseReason=eo;exports.ModalColor=_i;exports.ModalIcons=Ac;exports.ModalType=lf;exports.Mutex=jg;exports.NameError=ff;exports.Overlay=qv;exports.Portal=Lv;exports.PublishOptions=lI;exports.ROLES_TAB_PATH=$g;exports.RemoteDebuggerMode=pf;exports.SETTINGS_TAB_PATH=Dg;exports.SHARED_API_PREFIX=Ef;exports.Switcher=Em;exports.TabEventsActions=Ig;exports.Tip=ZC;exports.TipsProvider=zC;exports.Toast=yA;exports.Tooltip=HP;exports.Tree=XA;exports.TreeIcon=mm;exports.TreeNode=Yc;exports.WebformActions=Rg;exports._isArrayDatasource=oI;exports._isObjectDatasource=aI;exports.addAttributesToContent=fI;exports.addFolder=PM;exports.by=Ug;exports.byId=z2;exports.byPath=q2;exports.checkUpdates=EM;exports.createFolder=qM;exports.datasourcesSubject=M2;exports.debuggerSubject=D2;exports.dropFile=CM;exports.dropFolder=MM;exports.exists=Z2;exports.extractWebformName=U2;exports.generateUUID=dI;exports.getAppSettings=xM;exports.getCatalog=$M;exports.getDatasourceId=G2;exports.getDefaultAppSettings=x0;exports.getFile=TM;exports.getFileContent=DM;exports.getFileExtentionFromType=W2;exports.getFilesInfo=FM;exports.getFolder=O0;exports.getFolders=OM;exports.getFunctionContent=QM;exports.getMonacoTheme=UM;exports.getNodeInfo=KM;exports.getSavedConditions=jM;exports.getSharedCSS=kM;exports.getSharedDatasources=NM;exports.getSharedResource=ou;exports.getTypeFromExtension=kg;exports.getUserPrivileges=WM;exports.getWebForm=AM;exports.hasAttributesString=Vg;exports.http=Ye;exports.installUpdates=_M;exports.isArrayDatasource=qg;exports.isDataClassMethod=X2;exports.isDataStoreMethod=V2;exports.isDateDatasource=sI;exports.isEntity=nI;exports.isEntityDatasource=eI;exports.isEntityMethod=J2;exports.isEntitySelection=iI;exports.isEntitySelectionDatasource=tI;exports.isEntitySelectionMethod=Q2;exports.isObjectAttribute=K2;exports.isObjectDatasource=Zg;exports.isRelatedAttribute=Y2;exports.isRelatedEntitiesAttribute=Bg;exports.isRelatedEntityAttribute=zg;exports.isScalarDatasource=Gg;exports.isSimpleAttribute=Hg;exports.isSimpleDatasource=rI;exports.loadDS=uI;exports.log=eF;exports.login=LM;exports.lspSubject=$2;exports.moveItem=GM;exports.outBy=H2;exports.outById=B2;exports.parseAttributes=cI;exports.queue=Wg;exports.removeAttributesString=Xg;exports.removeItem=ZM;exports.renameFile=RM;exports.renameFolder=IM;exports.sanitizeContent=ru;exports.saveContent=YM;exports.setCraftedComponents=zM;exports.setFileContent=xf;exports.setSharedSources=BM;exports.stringifyAttributes=Yg;exports.tabEventsSubject=L2;exports.toastSubject=Pg;exports.transformDates=pI;exports.tryCreateSharedResource=_f;exports.useDidMountEffect=YP;exports.useDoubleClick=b2;exports.useFeatureFlags=v2;exports.useForwardedRef=h2;exports.useHotkeys=c2;exports.useIdentity=g2;exports.useOutsideClick=f2;exports.usePrevious=d2;exports.useStateObject=y2;exports.useStateRef=p2;exports.useTip=rg;exports.validateName=Lg;exports.validateServerSide=N2;exports.validateValue=k2;exports.webformSubject=F2;
|
|
179
207
|
//# sourceMappingURL=index.cjs.js.map
|