@ws-ui/shared 0.0.43 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +90 -62
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6693 -6000
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tailwind.preset.js +1 -0
- package/package.json +3 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,62 +1,90 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var C_=Object.defineProperty;var R_=(e,r,n)=>r in e?C_(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n;var md=(e,r,n)=>(R_(e,typeof r!="symbol"?r+"":r,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),Ba=require("react-dom"),Vu=require("@emotion/react");function Xp(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const I=Xp(q),P_=Xp(Ba);var Fr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function A_(e){if(e.__esModule)return e;var r=e.default;if(typeof r=="function"){var n=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};n.prototype=r.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}),n}var Ju={exports:{}},fi={};/*
|
|
2
2
|
object-assign
|
|
3
3
|
(c) Sindre Sorhus
|
|
4
4
|
@license MIT
|
|
5
|
-
*/var
|
|
5
|
+
*/var du,gd;function wc(){if(gd)return du;gd=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function a(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var c={},f=0;f<10;f++)c["_"+String.fromCharCode(f)]=f;var h=Object.getOwnPropertyNames(c).map(function(y){return c[y]});if(h.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(y){m[y]=y}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return du=a()?Object.assign:function(u,c){for(var f,h=o(u),m,y=1;y<arguments.length;y++){f=Object(arguments[y]);for(var _ in f)r.call(f,_)&&(h[_]=f[_]);if(e){m=e(f);for(var O=0;O<m.length;O++)n.call(f,m[O])&&(h[m[O]]=f[m[O]])}}return h},du}/** @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 yd;function I_(){if(yd)return fi;yd=1,wc();var e=q,r=60103;if(fi.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;r=n("react.element"),fi.Fragment=n("react.fragment")}var o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(f,h,m){var y,_={},O=null,v=null;m!==void 0&&(O=""+m),h.key!==void 0&&(O=""+h.key),h.ref!==void 0&&(v=h.ref);for(y in h)a.call(h,y)&&!u.hasOwnProperty(y)&&(_[y]=h[y]);if(f&&f.defaultProps)for(y in h=f.defaultProps,h)_[y]===void 0&&(_[y]=h[y]);return{$$typeof:r,type:f,key:O,ref:v,props:_,_owner:o.current}}return fi.jsx=c,fi.jsxs=c,fi}var pu={};/** @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
|
-
`+
|
|
21
|
-
`),
|
|
22
|
-
`),
|
|
23
|
-
`+
|
|
19
|
+
*/var wd;function L_(){return wd||(wd=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=q,n=wc(),o=60103,a=60106;e.Fragment=60107;var u=60108,c=60114,f=60109,h=60110,m=60112,y=60113,_=60120,O=60115,v=60116,S=60121,w=60122,T=60117,D=60129,M=60131;if(typeof Symbol=="function"&&Symbol.for){var R=Symbol.for;o=R("react.element"),a=R("react.portal"),e.Fragment=R("react.fragment"),u=R("react.strict_mode"),c=R("react.profiler"),f=R("react.provider"),h=R("react.context"),m=R("react.forward_ref"),y=R("react.suspense"),_=R("react.suspense_list"),O=R("react.memo"),v=R("react.lazy"),S=R("react.block"),w=R("react.server.block"),T=R("react.fundamental"),R("react.scope"),R("react.opaque.id"),D=R("react.debug_trace_mode"),R("react.offscreen"),M=R("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,x="@@iterator";function W(d){if(d===null||typeof d!="object")return null;var P=k&&d[k]||d[x];return typeof P=="function"?P:null}var F=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function N(d){{for(var P=arguments.length,$=new Array(P>1?P-1:0),Y=1;Y<P;Y++)$[Y-1]=arguments[Y];Z("error",d,$)}}function Z(d,P,$){{var Y=F.ReactDebugCurrentFrame,ie=Y.getStackAddendum();ie!==""&&(P+="%s",$=$.concat([ie]));var oe=$.map(function(ee){return""+ee});oe.unshift("Warning: "+P),Function.prototype.apply.call(console[d],console,oe)}}var ne=!1;function we(d){return!!(typeof d=="string"||typeof d=="function"||d===e.Fragment||d===c||d===D||d===u||d===y||d===_||d===M||ne||typeof d=="object"&&d!==null&&(d.$$typeof===v||d.$$typeof===O||d.$$typeof===f||d.$$typeof===h||d.$$typeof===m||d.$$typeof===T||d.$$typeof===S||d[0]===w))}function Me(d,P,$){var Y=P.displayName||P.name||"";return d.displayName||(Y!==""?$+"("+Y+")":$)}function Oe(d){return d.displayName||"Context"}function ue(d){if(d==null)return null;if(typeof d.tag=="number"&&N("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case e.Fragment:return"Fragment";case a:return"Portal";case c:return"Profiler";case u:return"StrictMode";case y:return"Suspense";case _:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case h:var P=d;return Oe(P)+".Consumer";case f:var $=d;return Oe($._context)+".Provider";case m:return Me(d,d.render,"ForwardRef");case O:return ue(d.type);case S:return ue(d._render);case v:{var Y=d,ie=Y._payload,oe=Y._init;try{return ue(oe(ie))}catch{return null}}}return null}var ke=0,_e,Ie,qe,ft,G,X,ve;function me(){}me.__reactDisabledLog=!0;function ce(){{if(ke===0){_e=console.log,Ie=console.info,qe=console.warn,ft=console.error,G=console.group,X=console.groupCollapsed,ve=console.groupEnd;var d={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}ke++}}function le(){{if(ke--,ke===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},d,{value:_e}),info:n({},d,{value:Ie}),warn:n({},d,{value:qe}),error:n({},d,{value:ft}),group:n({},d,{value:G}),groupCollapsed:n({},d,{value:X}),groupEnd:n({},d,{value:ve})})}ke<0&&N("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=F.ReactCurrentDispatcher,fe;function se(d,P,$){{if(fe===void 0)try{throw Error()}catch(ie){var Y=ie.stack.trim().match(/\n( *(at )?)/);fe=Y&&Y[1]||""}return`
|
|
20
|
+
`+fe+d}}var ge=!1,ye;{var Ge=typeof WeakMap=="function"?WeakMap:Map;ye=new Ge}function V(d,P){if(!d||ge)return"";{var $=ye.get(d);if($!==void 0)return $}var Y;ge=!0;var ie=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=ae.current,ae.current=null,ce();try{if(P){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(st){Y=st}Reflect.construct(d,[],ee)}else{try{ee.call()}catch(st){Y=st}d.call(ee.prototype)}}else{try{throw Error()}catch(st){Y=st}d()}}catch(st){if(st&&Y&&typeof st.stack=="string"){for(var Q=st.stack.split(`
|
|
21
|
+
`),je=Y.stack.split(`
|
|
22
|
+
`),be=Q.length-1,Ee=je.length-1;be>=1&&Ee>=0&&Q[be]!==je[Ee];)Ee--;for(;be>=1&&Ee>=0;be--,Ee--)if(Q[be]!==je[Ee]){if(be!==1||Ee!==1)do if(be--,Ee--,Ee<0||Q[be]!==je[Ee]){var it=`
|
|
23
|
+
`+Q[be].replace(" at new "," at ");return typeof d=="function"&&ye.set(d,it),it}while(be>=1&&Ee>=0);break}}}finally{ge=!1,ae.current=oe,le(),Error.prepareStackTrace=ie}var It=d?d.displayName||d.name:"",Tr=It?se(It):"";return typeof d=="function"&&ye.set(d,Tr),Tr}function nt(d,P,$){return V(d,!1)}function rt(d){var P=d.prototype;return!!(P&&P.isReactComponent)}function lt(d,P,$){if(d==null)return"";if(typeof d=="function")return V(d,rt(d));if(typeof d=="string")return se(d);switch(d){case y:return se("Suspense");case _:return se("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case m:return nt(d.render);case O:return lt(d.type,P,$);case S:return nt(d._render);case v:{var Y=d,ie=Y._payload,oe=Y._init;try{return lt(oe(ie),P,$)}catch{}}}return""}var Pn={},vt=F.ReactDebugCurrentFrame;function Nt(d){if(d){var P=d._owner,$=lt(d.type,d._source,P?P.type:null);vt.setExtraStackFrame($)}else vt.setExtraStackFrame(null)}function gr(d,P,$,Y,ie){{var oe=Function.call.bind(Object.prototype.hasOwnProperty);for(var ee in d)if(oe(d,ee)){var Q=void 0;try{if(typeof d[ee]!="function"){var je=Error((Y||"React class")+": "+$+" type `"+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}Q=d[ee](P,ee,Y,$,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){Q=be}Q&&!(Q instanceof Error)&&(Nt(ie),N("%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).",Y||"React class",$,ee,typeof Q),Nt(null)),Q instanceof Error&&!(Q.message in Pn)&&(Pn[Q.message]=!0,Nt(ie),N("Failed %s type: %s",$,Q.message),Nt(null))}}}var Je=F.ReactCurrentOwner,Qe=Object.prototype.hasOwnProperty,tn={key:!0,ref:!0,__self:!0,__source:!0},qt,mn,Et;Et={};function Qn(d){if(Qe.call(d,"ref")){var P=Object.getOwnPropertyDescriptor(d,"ref").get;if(P&&P.isReactWarning)return!1}return d.ref!==void 0}function nn(d){if(Qe.call(d,"key")){var P=Object.getOwnPropertyDescriptor(d,"key").get;if(P&&P.isReactWarning)return!1}return d.key!==void 0}function Kt(d,P){if(typeof d.ref=="string"&&Je.current&&P&&Je.current.stateNode!==P){var $=ue(Je.current.type);Et[$]||(N('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',ue(Je.current.type),d.ref),Et[$]=!0)}}function yr(d,P){{var $=function(){qt||(qt=!0,N("%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)",P))};$.isReactWarning=!0,Object.defineProperty(d,"key",{get:$,configurable:!0})}}function wr(d,P){{var $=function(){mn||(mn=!0,N("%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)",P))};$.isReactWarning=!0,Object.defineProperty(d,"ref",{get:$,configurable:!0})}}var br=function(d,P,$,Y,ie,oe,ee){var Q={$$typeof:o,type:d,key:P,ref:$,props:ee,_owner:oe};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function _r(d,P,$,Y,ie){{var oe,ee={},Q=null,je=null;$!==void 0&&(Q=""+$),nn(P)&&(Q=""+P.key),Qn(P)&&(je=P.ref,Kt(P,ie));for(oe in P)Qe.call(P,oe)&&!tn.hasOwnProperty(oe)&&(ee[oe]=P[oe]);if(d&&d.defaultProps){var be=d.defaultProps;for(oe in be)ee[oe]===void 0&&(ee[oe]=be[oe])}if(Q||je){var Ee=typeof d=="function"?d.displayName||d.name||"Unknown":d;Q&&yr(ee,Ee),je&&wr(ee,Ee)}return br(d,Q,je,ie,Y,Je.current,ee)}}var gn=F.ReactCurrentOwner,Fn=F.ReactDebugCurrentFrame;function yt(d){if(d){var P=d._owner,$=lt(d.type,d._source,P?P.type:null);Fn.setExtraStackFrame($)}else Fn.setExtraStackFrame(null)}var yn;yn=!1;function wn(d){return typeof d=="object"&&d!==null&&d.$$typeof===o}function Sr(){{if(gn.current){var d=ue(gn.current.type);if(d)return`
|
|
24
24
|
|
|
25
|
-
Check the render method of \``+
|
|
25
|
+
Check the render method of \``+d+"`."}return""}}function Ti(d){{if(d!==void 0){var P=d.fileName.replace(/^.*[\\\/]/,""),$=d.lineNumber;return`
|
|
26
26
|
|
|
27
|
-
Check your code at `+
|
|
27
|
+
Check your code at `+P+":"+$+"."}return""}}var Er={};function Xr(d){{var P=Sr();if(!P){var $=typeof d=="string"?d:d.displayName||d.name;$&&(P=`
|
|
28
28
|
|
|
29
|
-
Check the top-level render call using <`+V+">.")}return K}}function gi(x,K){{if(!x._store||x._store.validated||x.key!=null)return;x._store.validated=!0;var V=so(K);if(ao[V])return;ao[V]=!0;var ue="";x&&x._owner&&x._owner!==fr.current&&(ue=" It was passed a child from "+he(x._owner.type)+"."),_n(x),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,ue),_n(null)}}function uo(x,K){{if(typeof x!="object")return;if(Array.isArray(x))for(var V=0;V<x.length;V++){var ue=x[V];pr(ue)&&gi(ue,K)}else if(pr(x))x._store&&(x._store.validated=!0);else if(x){var Fe=N(x);if(typeof Fe=="function"&&Fe!==x.entries)for(var We=Fe.call(x),Pe;!(Pe=We.next()).done;)pr(Pe.value)&&gi(Pe.value,K)}}}function Va(x){{var K=x.type;if(K==null||typeof K=="string")return;var V;if(typeof K=="function")V=K.propTypes;else if(typeof K=="object"&&(K.$$typeof===m||K.$$typeof===C))V=K.propTypes;else return;if(V){var ue=he(K);di(V,x.props,"prop",ue,x)}else if(K.PropTypes!==void 0&&!dr){dr=!0;var Fe=he(K);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Fe||"Unknown")}typeof K.getDefaultProps=="function"&&!K.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ja(x){{for(var K=Object.keys(x.props),V=0;V<K.length;V++){var ue=K[V];if(ue!=="children"&&ue!=="key"){_n(x),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ue),_n(null);break}}x.ref!==null&&(_n(x),$("Invalid attribute `ref` supplied to `React.Fragment`."),_n(null))}}function lo(x,K,V,ue,Fe,We){{var Pe=pe(x);if(!Pe){var Oe="";(x===void 0||typeof x=="object"&&x!==null&&Object.keys(x).length===0)&&(Oe+=" 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 dt=Xa(Fe);dt?Oe+=dt:Oe+=oo();var Ve;x===null?Ve="null":Array.isArray(x)?Ve="array":x!==void 0&&x.$$typeof===o?(Ve="<"+(he(x.type)||"Unknown")+" />",Oe=" Did you accidentally export a JSX literal instead of a component?"):Ve=typeof x,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ve,Oe)}var Ze=mi(x,K,V,Fe,We);if(Ze==null)return Ze;if(Pe){var Gt=K.children;if(Gt!==void 0)if(ue)if(Array.isArray(Gt)){for(var Gn=0;Gn<Gt.length;Gn++)uo(Gt[Gn],x);Object.freeze&&Object.freeze(Gt)}else $("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 uo(Gt,x)}return x===e.Fragment?Ja(Ze):Va(Ze),Ze}}function co(x,K,V){return lo(x,K,V,!0)}function Za(x,K,V){return lo(x,K,V,!1)}var Qa=Za,es=co;e.jsx=Qa,e.jsxs=es}()}(du)),du}process.env.NODE_ENV==="production"?Yu.exports=E_():Yu.exports=x_();var W=Yu.exports;const zp=({children:e})=>ka.createPortal(e,document.querySelector("body"));var md=function(r){return r.reduce(function(n,o){var a=o[0],u=o[1];return n[a]=u,n},{})},gd=typeof window<"u"&&window.document&&window.document.createElement?A.useLayoutEffect:A.useEffect,kt="top",rn="bottom",on="right",Nt="left",ml="auto",Yi=[kt,rn,on,Nt],ii="start",ji="end",O_="clippingParents",qp="viewport",Mi="popper",T_="reference",yd=Yi.reduce(function(e,r){return e.concat([r+"-"+ii,r+"-"+ji])},[]),Kp=[].concat(Yi,[ml]).reduce(function(e,r){return e.concat([r,r+"-"+ii,r+"-"+ji])},[]),C_="beforeRead",P_="read",R_="afterRead",A_="beforeMain",I_="main",L_="afterMain",M_="beforeWrite",D_="write",k_="afterWrite",N_=[C_,P_,R_,A_,I_,L_,M_,D_,k_];function Rn(e){return e?(e.nodeName||"").toLowerCase():null}function qt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function Lr(e){var r=qt(e).Element;return e instanceof r||e instanceof Element}function nn(e){var r=qt(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function gl(e){if(typeof ShadowRoot>"u")return!1;var r=qt(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function $_(e){var r=e.state;Object.keys(r.elements).forEach(function(n){var o=r.styles[n]||{},a=r.attributes[n]||{},u=r.elements[n];!nn(u)||!Rn(u)||(Object.assign(u.style,o),Object.keys(a).forEach(function(l){var f=a[l];f===!1?u.removeAttribute(l):u.setAttribute(l,f===!0?"":f)}))})}function F_(e){var r=e.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow),function(){Object.keys(r.elements).forEach(function(o){var a=r.elements[o],u=r.attributes[o]||{},l=Object.keys(r.styles.hasOwnProperty(o)?r.styles[o]:n[o]),f=l.reduce(function(p,m){return p[m]="",p},{});!nn(a)||!Rn(a)||(Object.assign(a.style,f),Object.keys(u).forEach(function(p){a.removeAttribute(p)}))})}}const W_={name:"applyStyles",enabled:!0,phase:"write",fn:$_,effect:F_,requires:["computeStyles"]};function Pn(e){return e.split("-")[0]}var Rr=Math.max,Ta=Math.min,oi=Math.round;function Xu(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function Gp(){return!/^((?!chrome|android).)*safari/i.test(Xu())}function ai(e,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),a=1,u=1;r&&nn(e)&&(a=e.offsetWidth>0&&oi(o.width)/e.offsetWidth||1,u=e.offsetHeight>0&&oi(o.height)/e.offsetHeight||1);var l=Lr(e)?qt(e):window,f=l.visualViewport,p=!Gp()&&n,m=(o.left+(p&&f?f.offsetLeft:0))/a,w=(o.top+(p&&f?f.offsetTop:0))/u,b=o.width/a,C=o.height/u;return{width:b,height:C,top:w,right:m+b,bottom:w+C,left:m,x:m,y:w}}function yl(e){var r=ai(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(r.width-n)<=1&&(n=r.width),Math.abs(r.height-o)<=1&&(o=r.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Yp(e,r){var n=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(n&&gl(n)){var o=r;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function qn(e){return qt(e).getComputedStyle(e)}function j_(e){return["table","td","th"].indexOf(Rn(e))>=0}function lr(e){return((Lr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Na(e){return Rn(e)==="html"?e:e.assignedSlot||e.parentNode||(gl(e)?e.host:null)||lr(e)}function wd(e){return!nn(e)||qn(e).position==="fixed"?null:e.offsetParent}function B_(e){var r=/firefox/i.test(Xu()),n=/Trident/i.test(Xu());if(n&&nn(e)){var o=qn(e);if(o.position==="fixed")return null}var a=Na(e);for(gl(a)&&(a=a.host);nn(a)&&["html","body"].indexOf(Rn(a))<0;){var u=qn(a);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||r&&u.willChange==="filter"||r&&u.filter&&u.filter!=="none")return a;a=a.parentNode}return null}function Xi(e){for(var r=qt(e),n=wd(e);n&&j_(n)&&qn(n).position==="static";)n=wd(n);return n&&(Rn(n)==="html"||Rn(n)==="body"&&qn(n).position==="static")?r:n||B_(e)||r}function wl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ni(e,r,n){return Rr(e,Ta(r,n))}function H_(e,r,n){var o=Ni(e,r,n);return o>n?n:o}function Xp(){return{top:0,right:0,bottom:0,left:0}}function Vp(e){return Object.assign({},Xp(),e)}function Jp(e,r){return r.reduce(function(n,o){return n[o]=e,n},{})}var U_=function(r,n){return r=typeof r=="function"?r(Object.assign({},n.rects,{placement:n.placement})):r,Vp(typeof r!="number"?r:Jp(r,Yi))};function z_(e){var r,n=e.state,o=e.name,a=e.options,u=n.elements.arrow,l=n.modifiersData.popperOffsets,f=Pn(n.placement),p=wl(f),m=[Nt,on].indexOf(f)>=0,w=m?"height":"width";if(!(!u||!l)){var b=U_(a.padding,n),C=yl(u),h=p==="y"?kt:Nt,S=p==="y"?rn:on,y=n.rects.reference[w]+n.rects.reference[p]-l[p]-n.rects.popper[w],O=l[p]-n.rects.reference[p],M=Xi(u),L=M?p==="y"?M.clientHeight||0:M.clientWidth||0:0,P=y/2-O/2,D=b[h],E=L-C[w]-b[S],N=L/2-C[w]/2+P,F=Ni(D,N,E),$=p;n.modifiersData[o]=(r={},r[$]=F,r.centerOffset=F-N,r)}}function q_(e){var r=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=r.elements.popper.querySelector(a),!a)||Yp(r.elements.popper,a)&&(r.elements.arrow=a))}const K_={name:"arrow",enabled:!0,phase:"main",fn:z_,effect:q_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function si(e){return e.split("-")[1]}var G_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Y_(e,r){var n=e.x,o=e.y,a=r.devicePixelRatio||1;return{x:oi(n*a)/a||0,y:oi(o*a)/a||0}}function bd(e){var r,n=e.popper,o=e.popperRect,a=e.placement,u=e.variation,l=e.offsets,f=e.position,p=e.gpuAcceleration,m=e.adaptive,w=e.roundOffsets,b=e.isFixed,C=l.x,h=C===void 0?0:C,S=l.y,y=S===void 0?0:S,O=typeof w=="function"?w({x:h,y}):{x:h,y};h=O.x,y=O.y;var M=l.hasOwnProperty("x"),L=l.hasOwnProperty("y"),P=Nt,D=kt,E=window;if(m){var N=Xi(n),F="clientHeight",$="clientWidth";if(N===qt(n)&&(N=lr(n),qn(N).position!=="static"&&f==="absolute"&&(F="scrollHeight",$="scrollWidth")),N=N,a===kt||(a===Nt||a===on)&&u===ji){D=rn;var J=b&&N===E&&E.visualViewport?E.visualViewport.height:N[F];y-=J-o.height,y*=p?1:-1}if(a===Nt||(a===kt||a===rn)&&u===ji){P=on;var Q=b&&N===E&&E.visualViewport?E.visualViewport.width:N[$];h-=Q-o.width,h*=p?1:-1}}var pe=Object.assign({position:f},m&&G_),Ie=w===!0?Y_({x:h,y},qt(n)):{x:h,y};if(h=Ie.x,y=Ie.y,p){var Ee;return Object.assign({},pe,(Ee={},Ee[D]=L?"0":"",Ee[P]=M?"0":"",Ee.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",Ee))}return Object.assign({},pe,(r={},r[D]=L?y+"px":"",r[P]=M?h+"px":"",r.transform="",r))}function X_(e){var r=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,u=n.adaptive,l=u===void 0?!0:u,f=n.roundOffsets,p=f===void 0?!0:f,m={placement:Pn(r.placement),variation:si(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:a,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,bd(Object.assign({},m,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:l,roundOffsets:p})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,bd(Object.assign({},m,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const V_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:X_,data:{}};var ta={passive:!0};function J_(e){var r=e.state,n=e.instance,o=e.options,a=o.scroll,u=a===void 0?!0:a,l=o.resize,f=l===void 0?!0:l,p=qt(r.elements.popper),m=[].concat(r.scrollParents.reference,r.scrollParents.popper);return u&&m.forEach(function(w){w.addEventListener("scroll",n.update,ta)}),f&&p.addEventListener("resize",n.update,ta),function(){u&&m.forEach(function(w){w.removeEventListener("scroll",n.update,ta)}),f&&p.removeEventListener("resize",n.update,ta)}}const Z_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:J_,data:{}};var Q_={left:"right",right:"left",bottom:"top",top:"bottom"};function wa(e){return e.replace(/left|right|bottom|top/g,function(r){return Q_[r]})}var eS={start:"end",end:"start"};function _d(e){return e.replace(/start|end/g,function(r){return eS[r]})}function bl(e){var r=qt(e),n=r.pageXOffset,o=r.pageYOffset;return{scrollLeft:n,scrollTop:o}}function _l(e){return ai(lr(e)).left+bl(e).scrollLeft}function tS(e,r){var n=qt(e),o=lr(e),a=n.visualViewport,u=o.clientWidth,l=o.clientHeight,f=0,p=0;if(a){u=a.width,l=a.height;var m=Gp();(m||!m&&r==="fixed")&&(f=a.offsetLeft,p=a.offsetTop)}return{width:u,height:l,x:f+_l(e),y:p}}function nS(e){var r,n=lr(e),o=bl(e),a=(r=e.ownerDocument)==null?void 0:r.body,u=Rr(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Rr(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),f=-o.scrollLeft+_l(e),p=-o.scrollTop;return qn(a||n).direction==="rtl"&&(f+=Rr(n.clientWidth,a?a.clientWidth:0)-u),{width:u,height:l,x:f,y:p}}function Sl(e){var r=qn(e),n=r.overflow,o=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function Zp(e){return["html","body","#document"].indexOf(Rn(e))>=0?e.ownerDocument.body:nn(e)&&Sl(e)?e:Zp(Na(e))}function $i(e,r){var n;r===void 0&&(r=[]);var o=Zp(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),u=qt(o),l=a?[u].concat(u.visualViewport||[],Sl(o)?o:[]):o,f=r.concat(l);return a?f:f.concat($i(Na(l)))}function Vu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rS(e,r){var n=ai(e,!1,r==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Sd(e,r,n){return r===qp?Vu(tS(e,n)):Lr(r)?rS(r,n):Vu(nS(lr(e)))}function iS(e){var r=$i(Na(e)),n=["absolute","fixed"].indexOf(qn(e).position)>=0,o=n&&nn(e)?Xi(e):e;return Lr(o)?r.filter(function(a){return Lr(a)&&Yp(a,o)&&Rn(a)!=="body"}):[]}function oS(e,r,n,o){var a=r==="clippingParents"?iS(e):[].concat(r),u=[].concat(a,[n]),l=u[0],f=u.reduce(function(p,m){var w=Sd(e,m,o);return p.top=Rr(w.top,p.top),p.right=Ta(w.right,p.right),p.bottom=Ta(w.bottom,p.bottom),p.left=Rr(w.left,p.left),p},Sd(e,l,o));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function Qp(e){var r=e.reference,n=e.element,o=e.placement,a=o?Pn(o):null,u=o?si(o):null,l=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,p;switch(a){case kt:p={x:l,y:r.y-n.height};break;case rn:p={x:l,y:r.y+r.height};break;case on:p={x:r.x+r.width,y:f};break;case Nt:p={x:r.x-n.width,y:f};break;default:p={x:r.x,y:r.y}}var m=a?wl(a):null;if(m!=null){var w=m==="y"?"height":"width";switch(u){case ii:p[m]=p[m]-(r[w]/2-n[w]/2);break;case ji:p[m]=p[m]+(r[w]/2-n[w]/2);break}}return p}function Bi(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=o===void 0?e.placement:o,u=n.strategy,l=u===void 0?e.strategy:u,f=n.boundary,p=f===void 0?O_:f,m=n.rootBoundary,w=m===void 0?qp:m,b=n.elementContext,C=b===void 0?Mi:b,h=n.altBoundary,S=h===void 0?!1:h,y=n.padding,O=y===void 0?0:y,M=Vp(typeof O!="number"?O:Jp(O,Yi)),L=C===Mi?T_:Mi,P=e.rects.popper,D=e.elements[S?L:C],E=oS(Lr(D)?D:D.contextElement||lr(e.elements.popper),p,w,l),N=ai(e.elements.reference),F=Qp({reference:N,element:P,strategy:"absolute",placement:a}),$=Vu(Object.assign({},P,F)),J=C===Mi?$:N,Q={top:E.top-J.top+M.top,bottom:J.bottom-E.bottom+M.bottom,left:E.left-J.left+M.left,right:J.right-E.right+M.right},pe=e.modifiersData.offset;if(C===Mi&&pe){var Ie=pe[a];Object.keys(Q).forEach(function(Ee){var he=[on,rn].indexOf(Ee)>=0?1:-1,$e=[kt,rn].indexOf(Ee)>=0?"y":"x";Q[Ee]+=Ie[$e]*he})}return Q}function aS(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=n.boundary,u=n.rootBoundary,l=n.padding,f=n.flipVariations,p=n.allowedAutoPlacements,m=p===void 0?Kp:p,w=si(o),b=w?f?yd:yd.filter(function(S){return si(S)===w}):Yi,C=b.filter(function(S){return m.indexOf(S)>=0});C.length===0&&(C=b);var h=C.reduce(function(S,y){return S[y]=Bi(e,{placement:y,boundary:a,rootBoundary:u,padding:l})[Pn(y)],S},{});return Object.keys(h).sort(function(S,y){return h[S]-h[y]})}function sS(e){if(Pn(e)===ml)return[];var r=wa(e);return[_d(e),r,_d(r)]}function uS(e){var r=e.state,n=e.options,o=e.name;if(!r.modifiersData[o]._skip){for(var a=n.mainAxis,u=a===void 0?!0:a,l=n.altAxis,f=l===void 0?!0:l,p=n.fallbackPlacements,m=n.padding,w=n.boundary,b=n.rootBoundary,C=n.altBoundary,h=n.flipVariations,S=h===void 0?!0:h,y=n.allowedAutoPlacements,O=r.options.placement,M=Pn(O),L=M===O,P=p||(L||!S?[wa(O)]:sS(O)),D=[O].concat(P).reduce(function(ne,oe){return ne.concat(Pn(oe)===ml?aS(r,{placement:oe,boundary:w,rootBoundary:b,padding:m,flipVariations:S,allowedAutoPlacements:y}):oe)},[]),E=r.rects.reference,N=r.rects.popper,F=new Map,$=!0,J=D[0],Q=0;Q<D.length;Q++){var pe=D[Q],Ie=Pn(pe),Ee=si(pe)===ii,he=[kt,rn].indexOf(Ie)>=0,$e=he?"width":"height",ge=Bi(r,{placement:pe,boundary:w,rootBoundary:b,altBoundary:C,padding:m}),Le=he?Ee?on:Nt:Ee?rn:kt;E[$e]>N[$e]&&(Le=wa(Le));var Ke=wa(Le),gt=[];if(u&>.push(ge[Ie]<=0),f&>.push(ge[Le]<=0,ge[Ke]<=0),gt.every(function(ne){return ne})){J=pe,$=!1;break}F.set(pe,gt)}if($)for(var q=S?3:1,G=function(oe){var te=D.find(function(le){var re=F.get(le);if(re)return re.slice(0,oe).every(function(ve){return ve})});if(te)return J=te,"break"},ce=q;ce>0;ce--){var fe=G(ce);if(fe==="break")break}r.placement!==J&&(r.modifiersData[o]._skip=!0,r.placement=J,r.reset=!0)}}const lS={name:"flip",enabled:!0,phase:"main",fn:uS,requiresIfExists:["offset"],data:{_skip:!1}};function Ed(e,r,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-r.height-n.y,right:e.right-r.width+n.x,bottom:e.bottom-r.height+n.y,left:e.left-r.width-n.x}}function xd(e){return[kt,on,rn,Nt].some(function(r){return e[r]>=0})}function cS(e){var r=e.state,n=e.name,o=r.rects.reference,a=r.rects.popper,u=r.modifiersData.preventOverflow,l=Bi(r,{elementContext:"reference"}),f=Bi(r,{altBoundary:!0}),p=Ed(l,o),m=Ed(f,a,u),w=xd(p),b=xd(m);r.modifiersData[n]={referenceClippingOffsets:p,popperEscapeOffsets:m,isReferenceHidden:w,hasPopperEscaped:b},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":w,"data-popper-escaped":b})}const fS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cS};function dS(e,r,n){var o=Pn(e),a=[Nt,kt].indexOf(o)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},r,{placement:e})):n,l=u[0],f=u[1];return l=l||0,f=(f||0)*a,[Nt,on].indexOf(o)>=0?{x:f,y:l}:{x:l,y:f}}function pS(e){var r=e.state,n=e.options,o=e.name,a=n.offset,u=a===void 0?[0,0]:a,l=Kp.reduce(function(w,b){return w[b]=dS(b,r.rects,u),w},{}),f=l[r.placement],p=f.x,m=f.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=p,r.modifiersData.popperOffsets.y+=m),r.modifiersData[o]=l}const hS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pS};function vS(e){var r=e.state,n=e.name;r.modifiersData[n]=Qp({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const mS={name:"popperOffsets",enabled:!0,phase:"read",fn:vS,data:{}};function gS(e){return e==="x"?"y":"x"}function yS(e){var r=e.state,n=e.options,o=e.name,a=n.mainAxis,u=a===void 0?!0:a,l=n.altAxis,f=l===void 0?!1:l,p=n.boundary,m=n.rootBoundary,w=n.altBoundary,b=n.padding,C=n.tether,h=C===void 0?!0:C,S=n.tetherOffset,y=S===void 0?0:S,O=Bi(r,{boundary:p,rootBoundary:m,padding:b,altBoundary:w}),M=Pn(r.placement),L=si(r.placement),P=!L,D=wl(M),E=gS(D),N=r.modifiersData.popperOffsets,F=r.rects.reference,$=r.rects.popper,J=typeof y=="function"?y(Object.assign({},r.rects,{placement:r.placement})):y,Q=typeof J=="number"?{mainAxis:J,altAxis:J}:Object.assign({mainAxis:0,altAxis:0},J),pe=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,Ie={x:0,y:0};if(N){if(u){var Ee,he=D==="y"?kt:Nt,$e=D==="y"?rn:on,ge=D==="y"?"height":"width",Le=N[D],Ke=Le+O[he],gt=Le-O[$e],q=h?-$[ge]/2:0,G=L===ii?F[ge]:$[ge],ce=L===ii?-$[ge]:-F[ge],fe=r.elements.arrow,ne=h&&fe?yl(fe):{width:0,height:0},oe=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Xp(),te=oe[he],le=oe[$e],re=Ni(0,F[ge],ne[ge]),ve=P?F[ge]/2-q-re-te-Q.mainAxis:G-re-te-Q.mainAxis,ye=P?-F[ge]/2+q+re+le+Q.mainAxis:ce+re+le+Q.mainAxis,Ge=r.elements.arrow&&Xi(r.elements.arrow),Y=Ge?D==="y"?Ge.clientTop||0:Ge.clientLeft||0:0,ot=(Ee=pe==null?void 0:pe[D])!=null?Ee:0,rt=Le+ve-ot-Y,Ot=Le+ye-ot,cr=Ni(h?Ta(Ke,rt):Ke,Le,h?Rr(gt,Ot):gt);N[D]=cr,Ie[D]=cr-Le}if(f){var Tt,Ln=D==="x"?kt:Nt,di=D==="x"?rn:on,at=N[E],it=E==="y"?"height":"width",yn=at+O[Ln],wn=at-O[di],Kn=[kt,Nt].indexOf(M)!==-1,Kt=(Tt=pe==null?void 0:pe[E])!=null?Tt:0,Nr=Kn?yn:at-F[it]-$[it]-Kt+Q.altAxis,bn=Kn?at+F[it]+$[it]-Kt-Q.altAxis:wn,sn=h&&Kn?H_(Nr,at,bn):Ni(h?Nr:yn,at,h?bn:wn);N[E]=sn,Ie[E]=sn-at}r.modifiersData[o]=Ie}}const wS={name:"preventOverflow",enabled:!0,phase:"main",fn:yS,requiresIfExists:["offset"]};function bS(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function _S(e){return e===qt(e)||!nn(e)?bl(e):bS(e)}function SS(e){var r=e.getBoundingClientRect(),n=oi(r.width)/e.offsetWidth||1,o=oi(r.height)/e.offsetHeight||1;return n!==1||o!==1}function ES(e,r,n){n===void 0&&(n=!1);var o=nn(r),a=nn(r)&&SS(r),u=lr(r),l=ai(e,a,n),f={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(o||!o&&!n)&&((Rn(r)!=="body"||Sl(u))&&(f=_S(r)),nn(r)?(p=ai(r,!0),p.x+=r.clientLeft,p.y+=r.clientTop):u&&(p.x=_l(u))),{x:l.left+f.scrollLeft-p.x,y:l.top+f.scrollTop-p.y,width:l.width,height:l.height}}function xS(e){var r=new Map,n=new Set,o=[];e.forEach(function(u){r.set(u.name,u)});function a(u){n.add(u.name);var l=[].concat(u.requires||[],u.requiresIfExists||[]);l.forEach(function(f){if(!n.has(f)){var p=r.get(f);p&&a(p)}}),o.push(u)}return e.forEach(function(u){n.has(u.name)||a(u)}),o}function OS(e){var r=xS(e);return N_.reduce(function(n,o){return n.concat(r.filter(function(a){return a.phase===o}))},[])}function TS(e){var r;return function(){return r||(r=new Promise(function(n){Promise.resolve().then(function(){r=void 0,n(e())})})),r}}function CS(e){var r=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(r).map(function(n){return r[n]})}var Od={placement:"bottom",modifiers:[],strategy:"absolute"};function Td(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return!r.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function PS(e){e===void 0&&(e={});var r=e,n=r.defaultModifiers,o=n===void 0?[]:n,a=r.defaultOptions,u=a===void 0?Od:a;return function(f,p,m){m===void 0&&(m=u);var w={placement:"bottom",orderedModifiers:[],options:Object.assign({},Od,u),modifiersData:{},elements:{reference:f,popper:p},attributes:{},styles:{}},b=[],C=!1,h={state:w,setOptions:function(M){var L=typeof M=="function"?M(w.options):M;y(),w.options=Object.assign({},u,w.options,L),w.scrollParents={reference:Lr(f)?$i(f):f.contextElement?$i(f.contextElement):[],popper:$i(p)};var P=OS(CS([].concat(o,w.options.modifiers)));return w.orderedModifiers=P.filter(function(D){return D.enabled}),S(),h.update()},forceUpdate:function(){if(!C){var M=w.elements,L=M.reference,P=M.popper;if(Td(L,P)){w.rects={reference:ES(L,Xi(P),w.options.strategy==="fixed"),popper:yl(P)},w.reset=!1,w.placement=w.options.placement,w.orderedModifiers.forEach(function(Q){return w.modifiersData[Q.name]=Object.assign({},Q.data)});for(var D=0;D<w.orderedModifiers.length;D++){if(w.reset===!0){w.reset=!1,D=-1;continue}var E=w.orderedModifiers[D],N=E.fn,F=E.options,$=F===void 0?{}:F,J=E.name;typeof N=="function"&&(w=N({state:w,options:$,name:J,instance:h})||w)}}}},update:TS(function(){return new Promise(function(O){h.forceUpdate(),O(w)})}),destroy:function(){y(),C=!0}};if(!Td(f,p))return h;h.setOptions(m).then(function(O){!C&&m.onFirstUpdate&&m.onFirstUpdate(O)});function S(){w.orderedModifiers.forEach(function(O){var M=O.name,L=O.options,P=L===void 0?{}:L,D=O.effect;if(typeof D=="function"){var E=D({state:w,name:M,instance:h,options:P}),N=function(){};b.push(E||N)}})}function y(){b.forEach(function(O){return O()}),b=[]}return h}}var RS=[Z_,mS,V_,W_,hS,lS,wS,K_,fS],AS=PS({defaultModifiers:RS}),IS=typeof Element<"u",LS=typeof Map=="function",MS=typeof Set=="function",DS=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function ba(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!ba(e[o],r[o]))return!1;return!0}var u;if(LS&&e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(u=e.entries();!(o=u.next()).done;)if(!r.has(o.value[0]))return!1;for(u=e.entries();!(o=u.next()).done;)if(!ba(o.value[1],r.get(o.value[0])))return!1;return!0}if(MS&&e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(u=e.entries();!(o=u.next()).done;)if(!r.has(o.value[0]))return!1;return!0}if(DS&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(e[o]!==r[o])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof r.valueOf=="function")return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof r.toString=="function")return e.toString()===r.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;if(IS&&e instanceof Element)return!1;for(o=n;o--!==0;)if(!((a[o]==="_owner"||a[o]==="__v"||a[o]==="__o")&&e.$$typeof)&&!ba(e[a[o]],r[a[o]]))return!1;return!0}return e!==e&&r!==r}var kS=function(r,n){try{return ba(r,n)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const NS=Up(kS);var $S=[],eh=function(r,n,o){o===void 0&&(o={});var a=A.useRef(null),u={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||$S},l=A.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),f=l[0],p=l[1],m=A.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var S=h.state,y=Object.keys(S.elements);__.flushSync(function(){p({styles:md(y.map(function(O){return[O,S.styles[O]||{}]})),attributes:md(y.map(function(O){return[O,S.attributes[O]]}))})})},requires:["computeStyles"]}},[]),w=A.useMemo(function(){var C={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[m,{name:"applyStyles",enabled:!1}])};return NS(a.current,C)?a.current||C:(a.current=C,C)},[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,m]),b=A.useRef();return gd(function(){b.current&&b.current.setOptions(w)},[w]),gd(function(){if(!(r==null||n==null)){var C=o.createPopper||AS,h=C(r,n,w);return b.current=h,function(){h.destroy(),b.current=null}}},[r,n,o.createPopper]),{state:b.current?b.current.state:null,styles:f.styles,attributes:f.attributes,update:b.current?b.current.update:null,forceUpdate:b.current?b.current.forceUpdate:null}};const th=e=>W.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),nh=U.forwardRef(({children:e,style:r,attributes:n},o)=>W.jsx("div",{style:{...r,zIndex:2e3},...n,ref:o,className:"w-60 rounded border border-grey-900 bg-fd-gray-light shadow-2xl","data-cy":"dialogBody",children:e})),FS=({referenceElement:e,placement:r,isOpen:n,children:o,onClose:a})=>{const[u,l]=U.useState(null),{styles:f,attributes:p}=eh(e,u,{placement:r||"bottom-start"}),m=U.useCallback(()=>{a&&a()},[a]);return n?W.jsxs(zp,{children:[W.jsx(th,{onClick:()=>m()}),W.jsx(nh,{ref:l,style:f.popper,attributes:p.popper,children:o})]}):null};var rh={exports:{}};/*!
|
|
29
|
+
Check the top-level render call using <`+$+">.")}return P}}function er(d,P){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var $=Xr(P);if(Er[$])return;Er[$]=!0;var Y="";d&&d._owner&&d._owner!==gn.current&&(Y=" It was passed a child from "+ue(d._owner.type)+"."),yt(d),N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',$,Y),yt(null)}}function xr(d,P){{if(typeof d!="object")return;if(Array.isArray(d))for(var $=0;$<d.length;$++){var Y=d[$];wn(Y)&&er(Y,P)}else if(wn(d))d._store&&(d._store.validated=!0);else if(d){var ie=W(d);if(typeof ie=="function"&&ie!==d.entries)for(var oe=ie.call(d),ee;!(ee=oe.next()).done;)wn(ee.value)&&er(ee.value,P)}}}function Ci(d){{var P=d.type;if(P==null||typeof P=="string")return;var $;if(typeof P=="function")$=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===m||P.$$typeof===O))$=P.propTypes;else return;if($){var Y=ue(P);gr($,d.props,"prop",Y,d)}else if(P.PropTypes!==void 0&&!yn){yn=!0;var ie=ue(P);N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ie||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ri(d){{for(var P=Object.keys(d.props),$=0;$<P.length;$++){var Y=P[$];if(Y!=="children"&&Y!=="key"){yt(d),N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),yt(null);break}}d.ref!==null&&(yt(d),N("Invalid attribute `ref` supplied to `React.Fragment`."),yt(null))}}function Or(d,P,$,Y,ie,oe){{var ee=we(d);if(!ee){var Q="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=Ti(ie);je?Q+=je:Q+=Sr();var be;d===null?be="null":Array.isArray(d)?be="array":d!==void 0&&d.$$typeof===o?(be="<"+(ue(d.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):be=typeof d,N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,Q)}var Ee=_r(d,P,$,ie,oe);if(Ee==null)return Ee;if(ee){var it=P.children;if(it!==void 0)if(Y)if(Array.isArray(it)){for(var It=0;It<it.length;It++)xr(it[It],d);Object.freeze&&Object.freeze(it)}else N("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 xr(it,d)}return d===e.Fragment?Ri(Ee):Ci(Ee),Ee}}function Vr(d,P,$){return Or(d,P,$,!0)}function Pi(d,P,$){return Or(d,P,$,!1)}var Ai=Pi,Ii=Vr;e.jsx=Ai,e.jsxs=Ii}()}(pu)),pu}process.env.NODE_ENV==="production"?Ju.exports=I_():Ju.exports=L_();var B=Ju.exports;const Jp=({children:e})=>Ba.createPortal(e,document.querySelector("body"));var bd=function(r){return r.reduce(function(n,o){var a=o[0],u=o[1];return n[a]=u,n},{})},_d=typeof window<"u"&&window.document&&window.document.createElement?I.useLayoutEffect:I.useEffect,Bt="top",pn="bottom",hn="right",Ht="left",bc="auto",uo=[Bt,pn,hn,Ht],yi="start",eo="end",M_="clippingParents",Zp="viewport",Gi="popper",D_="reference",Sd=uo.reduce(function(e,r){return e.concat([r+"-"+yi,r+"-"+eo])},[]),Qp=[].concat(uo,[bc]).reduce(function(e,r){return e.concat([r,r+"-"+yi,r+"-"+eo])},[]),k_="beforeRead",$_="read",N_="afterRead",j_="beforeMain",F_="main",W_="afterMain",U_="beforeWrite",B_="write",H_="afterWrite",z_=[k_,$_,N_,j_,F_,W_,U_,B_,H_];function Nn(e){return e?(e.nodeName||"").toLowerCase():null}function en(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var r=e.ownerDocument;return r&&r.defaultView||window}return e}function qr(e){var r=en(e).Element;return e instanceof r||e instanceof Element}function dn(e){var r=en(e).HTMLElement;return e instanceof r||e instanceof HTMLElement}function _c(e){if(typeof ShadowRoot>"u")return!1;var r=en(e).ShadowRoot;return e instanceof r||e instanceof ShadowRoot}function q_(e){var r=e.state;Object.keys(r.elements).forEach(function(n){var o=r.styles[n]||{},a=r.attributes[n]||{},u=r.elements[n];!dn(u)||!Nn(u)||(Object.assign(u.style,o),Object.keys(a).forEach(function(c){var f=a[c];f===!1?u.removeAttribute(c):u.setAttribute(c,f===!0?"":f)}))})}function K_(e){var r=e.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow),function(){Object.keys(r.elements).forEach(function(o){var a=r.elements[o],u=r.attributes[o]||{},c=Object.keys(r.styles.hasOwnProperty(o)?r.styles[o]:n[o]),f=c.reduce(function(h,m){return h[m]="",h},{});!dn(a)||!Nn(a)||(Object.assign(a.style,f),Object.keys(u).forEach(function(h){a.removeAttribute(h)}))})}}const G_={name:"applyStyles",enabled:!0,phase:"write",fn:q_,effect:K_,requires:["computeStyles"]};function $n(e){return e.split("-")[0]}var Br=Math.max,Ma=Math.min,wi=Math.round;function Zu(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function eh(){return!/^((?!chrome|android).)*safari/i.test(Zu())}function bi(e,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),a=1,u=1;r&&dn(e)&&(a=e.offsetWidth>0&&wi(o.width)/e.offsetWidth||1,u=e.offsetHeight>0&&wi(o.height)/e.offsetHeight||1);var c=qr(e)?en(e):window,f=c.visualViewport,h=!eh()&&n,m=(o.left+(h&&f?f.offsetLeft:0))/a,y=(o.top+(h&&f?f.offsetTop:0))/u,_=o.width/a,O=o.height/u;return{width:_,height:O,top:y,right:m+_,bottom:y+O,left:m,x:m,y}}function Sc(e){var r=bi(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(r.width-n)<=1&&(n=r.width),Math.abs(r.height-o)<=1&&(o=r.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function th(e,r){var n=r.getRootNode&&r.getRootNode();if(e.contains(r))return!0;if(n&&_c(n)){var o=r;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Zn(e){return en(e).getComputedStyle(e)}function Y_(e){return["table","td","th"].indexOf(Nn(e))>=0}function mr(e){return((qr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ha(e){return Nn(e)==="html"?e:e.assignedSlot||e.parentNode||(_c(e)?e.host:null)||mr(e)}function Ed(e){return!dn(e)||Zn(e).position==="fixed"?null:e.offsetParent}function X_(e){var r=/firefox/i.test(Zu()),n=/Trident/i.test(Zu());if(n&&dn(e)){var o=Zn(e);if(o.position==="fixed")return null}var a=Ha(e);for(_c(a)&&(a=a.host);dn(a)&&["html","body"].indexOf(Nn(a))<0;){var u=Zn(a);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||r&&u.willChange==="filter"||r&&u.filter&&u.filter!=="none")return a;a=a.parentNode}return null}function co(e){for(var r=en(e),n=Ed(e);n&&Y_(n)&&Zn(n).position==="static";)n=Ed(n);return n&&(Nn(n)==="html"||Nn(n)==="body"&&Zn(n).position==="static")?r:n||X_(e)||r}function Ec(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Vi(e,r,n){return Br(e,Ma(r,n))}function V_(e,r,n){var o=Vi(e,r,n);return o>n?n:o}function nh(){return{top:0,right:0,bottom:0,left:0}}function rh(e){return Object.assign({},nh(),e)}function ih(e,r){return r.reduce(function(n,o){return n[o]=e,n},{})}var J_=function(r,n){return r=typeof r=="function"?r(Object.assign({},n.rects,{placement:n.placement})):r,rh(typeof r!="number"?r:ih(r,uo))};function Z_(e){var r,n=e.state,o=e.name,a=e.options,u=n.elements.arrow,c=n.modifiersData.popperOffsets,f=$n(n.placement),h=Ec(f),m=[Ht,hn].indexOf(f)>=0,y=m?"height":"width";if(!(!u||!c)){var _=J_(a.padding,n),O=Sc(u),v=h==="y"?Bt:Ht,S=h==="y"?pn:hn,w=n.rects.reference[y]+n.rects.reference[h]-c[h]-n.rects.popper[y],T=c[h]-n.rects.reference[h],D=co(u),M=D?h==="y"?D.clientHeight||0:D.clientWidth||0:0,R=w/2-T/2,k=_[v],x=M-O[y]-_[S],W=M/2-O[y]/2+R,F=Vi(k,W,x),N=h;n.modifiersData[o]=(r={},r[N]=F,r.centerOffset=F-W,r)}}function Q_(e){var r=e.state,n=e.options,o=n.element,a=o===void 0?"[data-popper-arrow]":o;a!=null&&(typeof a=="string"&&(a=r.elements.popper.querySelector(a),!a)||th(r.elements.popper,a)&&(r.elements.arrow=a))}const eS={name:"arrow",enabled:!0,phase:"main",fn:Z_,effect:Q_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _i(e){return e.split("-")[1]}var tS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nS(e,r){var n=e.x,o=e.y,a=r.devicePixelRatio||1;return{x:wi(n*a)/a||0,y:wi(o*a)/a||0}}function xd(e){var r,n=e.popper,o=e.popperRect,a=e.placement,u=e.variation,c=e.offsets,f=e.position,h=e.gpuAcceleration,m=e.adaptive,y=e.roundOffsets,_=e.isFixed,O=c.x,v=O===void 0?0:O,S=c.y,w=S===void 0?0:S,T=typeof y=="function"?y({x:v,y:w}):{x:v,y:w};v=T.x,w=T.y;var D=c.hasOwnProperty("x"),M=c.hasOwnProperty("y"),R=Ht,k=Bt,x=window;if(m){var W=co(n),F="clientHeight",N="clientWidth";if(W===en(n)&&(W=mr(n),Zn(W).position!=="static"&&f==="absolute"&&(F="scrollHeight",N="scrollWidth")),W=W,a===Bt||(a===Ht||a===hn)&&u===eo){k=pn;var Z=_&&W===x&&x.visualViewport?x.visualViewport.height:W[F];w-=Z-o.height,w*=h?1:-1}if(a===Ht||(a===Bt||a===pn)&&u===eo){R=hn;var ne=_&&W===x&&x.visualViewport?x.visualViewport.width:W[N];v-=ne-o.width,v*=h?1:-1}}var we=Object.assign({position:f},m&&tS),Me=y===!0?nS({x:v,y:w},en(n)):{x:v,y:w};if(v=Me.x,w=Me.y,h){var Oe;return Object.assign({},we,(Oe={},Oe[k]=M?"0":"",Oe[R]=D?"0":"",Oe.transform=(x.devicePixelRatio||1)<=1?"translate("+v+"px, "+w+"px)":"translate3d("+v+"px, "+w+"px, 0)",Oe))}return Object.assign({},we,(r={},r[k]=M?w+"px":"",r[R]=D?v+"px":"",r.transform="",r))}function rS(e){var r=e.state,n=e.options,o=n.gpuAcceleration,a=o===void 0?!0:o,u=n.adaptive,c=u===void 0?!0:u,f=n.roundOffsets,h=f===void 0?!0:f,m={placement:$n(r.placement),variation:_i(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:a,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,xd(Object.assign({},m,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:c,roundOffsets:h})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,xd(Object.assign({},m,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const iS={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rS,data:{}};var ua={passive:!0};function oS(e){var r=e.state,n=e.instance,o=e.options,a=o.scroll,u=a===void 0?!0:a,c=o.resize,f=c===void 0?!0:c,h=en(r.elements.popper),m=[].concat(r.scrollParents.reference,r.scrollParents.popper);return u&&m.forEach(function(y){y.addEventListener("scroll",n.update,ua)}),f&&h.addEventListener("resize",n.update,ua),function(){u&&m.forEach(function(y){y.removeEventListener("scroll",n.update,ua)}),f&&h.removeEventListener("resize",n.update,ua)}}const aS={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oS,data:{}};var sS={left:"right",right:"left",bottom:"top",top:"bottom"};function Ta(e){return e.replace(/left|right|bottom|top/g,function(r){return sS[r]})}var uS={start:"end",end:"start"};function Od(e){return e.replace(/start|end/g,function(r){return uS[r]})}function xc(e){var r=en(e),n=r.pageXOffset,o=r.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Oc(e){return bi(mr(e)).left+xc(e).scrollLeft}function cS(e,r){var n=en(e),o=mr(e),a=n.visualViewport,u=o.clientWidth,c=o.clientHeight,f=0,h=0;if(a){u=a.width,c=a.height;var m=eh();(m||!m&&r==="fixed")&&(f=a.offsetLeft,h=a.offsetTop)}return{width:u,height:c,x:f+Oc(e),y:h}}function lS(e){var r,n=mr(e),o=xc(e),a=(r=e.ownerDocument)==null?void 0:r.body,u=Br(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),c=Br(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),f=-o.scrollLeft+Oc(e),h=-o.scrollTop;return Zn(a||n).direction==="rtl"&&(f+=Br(n.clientWidth,a?a.clientWidth:0)-u),{width:u,height:c,x:f,y:h}}function Tc(e){var r=Zn(e),n=r.overflow,o=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}function oh(e){return["html","body","#document"].indexOf(Nn(e))>=0?e.ownerDocument.body:dn(e)&&Tc(e)?e:oh(Ha(e))}function Ji(e,r){var n;r===void 0&&(r=[]);var o=oh(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),u=en(o),c=a?[u].concat(u.visualViewport||[],Tc(o)?o:[]):o,f=r.concat(c);return a?f:f.concat(Ji(Ha(c)))}function Qu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fS(e,r){var n=bi(e,!1,r==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Td(e,r,n){return r===Zp?Qu(cS(e,n)):qr(r)?fS(r,n):Qu(lS(mr(e)))}function dS(e){var r=Ji(Ha(e)),n=["absolute","fixed"].indexOf(Zn(e).position)>=0,o=n&&dn(e)?co(e):e;return qr(o)?r.filter(function(a){return qr(a)&&th(a,o)&&Nn(a)!=="body"}):[]}function pS(e,r,n,o){var a=r==="clippingParents"?dS(e):[].concat(r),u=[].concat(a,[n]),c=u[0],f=u.reduce(function(h,m){var y=Td(e,m,o);return h.top=Br(y.top,h.top),h.right=Ma(y.right,h.right),h.bottom=Ma(y.bottom,h.bottom),h.left=Br(y.left,h.left),h},Td(e,c,o));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function ah(e){var r=e.reference,n=e.element,o=e.placement,a=o?$n(o):null,u=o?_i(o):null,c=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,h;switch(a){case Bt:h={x:c,y:r.y-n.height};break;case pn:h={x:c,y:r.y+r.height};break;case hn:h={x:r.x+r.width,y:f};break;case Ht:h={x:r.x-n.width,y:f};break;default:h={x:r.x,y:r.y}}var m=a?Ec(a):null;if(m!=null){var y=m==="y"?"height":"width";switch(u){case yi:h[m]=h[m]-(r[y]/2-n[y]/2);break;case eo:h[m]=h[m]+(r[y]/2-n[y]/2);break}}return h}function to(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=o===void 0?e.placement:o,u=n.strategy,c=u===void 0?e.strategy:u,f=n.boundary,h=f===void 0?M_:f,m=n.rootBoundary,y=m===void 0?Zp:m,_=n.elementContext,O=_===void 0?Gi:_,v=n.altBoundary,S=v===void 0?!1:v,w=n.padding,T=w===void 0?0:w,D=rh(typeof T!="number"?T:ih(T,uo)),M=O===Gi?D_:Gi,R=e.rects.popper,k=e.elements[S?M:O],x=pS(qr(k)?k:k.contextElement||mr(e.elements.popper),h,y,c),W=bi(e.elements.reference),F=ah({reference:W,element:R,strategy:"absolute",placement:a}),N=Qu(Object.assign({},R,F)),Z=O===Gi?N:W,ne={top:x.top-Z.top+D.top,bottom:Z.bottom-x.bottom+D.bottom,left:x.left-Z.left+D.left,right:Z.right-x.right+D.right},we=e.modifiersData.offset;if(O===Gi&&we){var Me=we[a];Object.keys(ne).forEach(function(Oe){var ue=[hn,pn].indexOf(Oe)>=0?1:-1,ke=[Bt,pn].indexOf(Oe)>=0?"y":"x";ne[Oe]+=Me[ke]*ue})}return ne}function hS(e,r){r===void 0&&(r={});var n=r,o=n.placement,a=n.boundary,u=n.rootBoundary,c=n.padding,f=n.flipVariations,h=n.allowedAutoPlacements,m=h===void 0?Qp:h,y=_i(o),_=y?f?Sd:Sd.filter(function(S){return _i(S)===y}):uo,O=_.filter(function(S){return m.indexOf(S)>=0});O.length===0&&(O=_);var v=O.reduce(function(S,w){return S[w]=to(e,{placement:w,boundary:a,rootBoundary:u,padding:c})[$n(w)],S},{});return Object.keys(v).sort(function(S,w){return v[S]-v[w]})}function vS(e){if($n(e)===bc)return[];var r=Ta(e);return[Od(e),r,Od(r)]}function mS(e){var r=e.state,n=e.options,o=e.name;if(!r.modifiersData[o]._skip){for(var a=n.mainAxis,u=a===void 0?!0:a,c=n.altAxis,f=c===void 0?!0:c,h=n.fallbackPlacements,m=n.padding,y=n.boundary,_=n.rootBoundary,O=n.altBoundary,v=n.flipVariations,S=v===void 0?!0:v,w=n.allowedAutoPlacements,T=r.options.placement,D=$n(T),M=D===T,R=h||(M||!S?[Ta(T)]:vS(T)),k=[T].concat(R).reduce(function(ce,le){return ce.concat($n(le)===bc?hS(r,{placement:le,boundary:y,rootBoundary:_,padding:m,flipVariations:S,allowedAutoPlacements:w}):le)},[]),x=r.rects.reference,W=r.rects.popper,F=new Map,N=!0,Z=k[0],ne=0;ne<k.length;ne++){var we=k[ne],Me=$n(we),Oe=_i(we)===yi,ue=[Bt,pn].indexOf(Me)>=0,ke=ue?"width":"height",_e=to(r,{placement:we,boundary:y,rootBoundary:_,altBoundary:O,padding:m}),Ie=ue?Oe?hn:Ht:Oe?pn:Bt;x[ke]>W[ke]&&(Ie=Ta(Ie));var qe=Ta(Ie),ft=[];if(u&&ft.push(_e[Me]<=0),f&&ft.push(_e[Ie]<=0,_e[qe]<=0),ft.every(function(ce){return ce})){Z=we,N=!1;break}F.set(we,ft)}if(N)for(var G=S?3:1,X=function(le){var ae=k.find(function(fe){var se=F.get(fe);if(se)return se.slice(0,le).every(function(ge){return ge})});if(ae)return Z=ae,"break"},ve=G;ve>0;ve--){var me=X(ve);if(me==="break")break}r.placement!==Z&&(r.modifiersData[o]._skip=!0,r.placement=Z,r.reset=!0)}}const gS={name:"flip",enabled:!0,phase:"main",fn:mS,requiresIfExists:["offset"],data:{_skip:!1}};function Cd(e,r,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-r.height-n.y,right:e.right-r.width+n.x,bottom:e.bottom-r.height+n.y,left:e.left-r.width-n.x}}function Rd(e){return[Bt,hn,pn,Ht].some(function(r){return e[r]>=0})}function yS(e){var r=e.state,n=e.name,o=r.rects.reference,a=r.rects.popper,u=r.modifiersData.preventOverflow,c=to(r,{elementContext:"reference"}),f=to(r,{altBoundary:!0}),h=Cd(c,o),m=Cd(f,a,u),y=Rd(h),_=Rd(m);r.modifiersData[n]={referenceClippingOffsets:h,popperEscapeOffsets:m,isReferenceHidden:y,hasPopperEscaped:_},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":y,"data-popper-escaped":_})}const wS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:yS};function bS(e,r,n){var o=$n(e),a=[Ht,Bt].indexOf(o)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},r,{placement:e})):n,c=u[0],f=u[1];return c=c||0,f=(f||0)*a,[Ht,hn].indexOf(o)>=0?{x:f,y:c}:{x:c,y:f}}function _S(e){var r=e.state,n=e.options,o=e.name,a=n.offset,u=a===void 0?[0,0]:a,c=Qp.reduce(function(y,_){return y[_]=bS(_,r.rects,u),y},{}),f=c[r.placement],h=f.x,m=f.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=h,r.modifiersData.popperOffsets.y+=m),r.modifiersData[o]=c}const SS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_S};function ES(e){var r=e.state,n=e.name;r.modifiersData[n]=ah({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}const xS={name:"popperOffsets",enabled:!0,phase:"read",fn:ES,data:{}};function OS(e){return e==="x"?"y":"x"}function TS(e){var r=e.state,n=e.options,o=e.name,a=n.mainAxis,u=a===void 0?!0:a,c=n.altAxis,f=c===void 0?!1:c,h=n.boundary,m=n.rootBoundary,y=n.altBoundary,_=n.padding,O=n.tether,v=O===void 0?!0:O,S=n.tetherOffset,w=S===void 0?0:S,T=to(r,{boundary:h,rootBoundary:m,padding:_,altBoundary:y}),D=$n(r.placement),M=_i(r.placement),R=!M,k=Ec(D),x=OS(k),W=r.modifiersData.popperOffsets,F=r.rects.reference,N=r.rects.popper,Z=typeof w=="function"?w(Object.assign({},r.rects,{placement:r.placement})):w,ne=typeof Z=="number"?{mainAxis:Z,altAxis:Z}:Object.assign({mainAxis:0,altAxis:0},Z),we=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,Me={x:0,y:0};if(W){if(u){var Oe,ue=k==="y"?Bt:Ht,ke=k==="y"?pn:hn,_e=k==="y"?"height":"width",Ie=W[k],qe=Ie+T[ue],ft=Ie-T[ke],G=v?-N[_e]/2:0,X=M===yi?F[_e]:N[_e],ve=M===yi?-N[_e]:-F[_e],me=r.elements.arrow,ce=v&&me?Sc(me):{width:0,height:0},le=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:nh(),ae=le[ue],fe=le[ke],se=Vi(0,F[_e],ce[_e]),ge=R?F[_e]/2-G-se-ae-ne.mainAxis:X-se-ae-ne.mainAxis,ye=R?-F[_e]/2+G+se+fe+ne.mainAxis:ve+se+fe+ne.mainAxis,Ge=r.elements.arrow&&co(r.elements.arrow),V=Ge?k==="y"?Ge.clientTop||0:Ge.clientLeft||0:0,nt=(Oe=we==null?void 0:we[k])!=null?Oe:0,rt=Ie+ge-nt-V,lt=Ie+ye-nt,Pn=Vi(v?Ma(qe,rt):qe,Ie,v?Br(ft,lt):ft);W[k]=Pn,Me[k]=Pn-Ie}if(f){var vt,Nt=k==="x"?Bt:Ht,gr=k==="x"?pn:hn,Je=W[x],Qe=x==="y"?"height":"width",tn=Je+T[Nt],qt=Je-T[gr],mn=[Bt,Ht].indexOf(D)!==-1,Et=(vt=we==null?void 0:we[x])!=null?vt:0,Qn=mn?tn:Je-F[Qe]-N[Qe]-Et+ne.altAxis,nn=mn?Je+F[Qe]+N[Qe]-Et-ne.altAxis:qt,Kt=v&&mn?V_(Qn,Je,nn):Vi(v?Qn:tn,Je,v?nn:qt);W[x]=Kt,Me[x]=Kt-Je}r.modifiersData[o]=Me}}const CS={name:"preventOverflow",enabled:!0,phase:"main",fn:TS,requiresIfExists:["offset"]};function RS(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function PS(e){return e===en(e)||!dn(e)?xc(e):RS(e)}function AS(e){var r=e.getBoundingClientRect(),n=wi(r.width)/e.offsetWidth||1,o=wi(r.height)/e.offsetHeight||1;return n!==1||o!==1}function IS(e,r,n){n===void 0&&(n=!1);var o=dn(r),a=dn(r)&&AS(r),u=mr(r),c=bi(e,a,n),f={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!n)&&((Nn(r)!=="body"||Tc(u))&&(f=PS(r)),dn(r)?(h=bi(r,!0),h.x+=r.clientLeft,h.y+=r.clientTop):u&&(h.x=Oc(u))),{x:c.left+f.scrollLeft-h.x,y:c.top+f.scrollTop-h.y,width:c.width,height:c.height}}function LS(e){var r=new Map,n=new Set,o=[];e.forEach(function(u){r.set(u.name,u)});function a(u){n.add(u.name);var c=[].concat(u.requires||[],u.requiresIfExists||[]);c.forEach(function(f){if(!n.has(f)){var h=r.get(f);h&&a(h)}}),o.push(u)}return e.forEach(function(u){n.has(u.name)||a(u)}),o}function MS(e){var r=LS(e);return z_.reduce(function(n,o){return n.concat(r.filter(function(a){return a.phase===o}))},[])}function DS(e){var r;return function(){return r||(r=new Promise(function(n){Promise.resolve().then(function(){r=void 0,n(e())})})),r}}function kS(e){var r=e.reduce(function(n,o){var a=n[o.name];return n[o.name]=a?Object.assign({},a,o,{options:Object.assign({},a.options,o.options),data:Object.assign({},a.data,o.data)}):o,n},{});return Object.keys(r).map(function(n){return r[n]})}var Pd={placement:"bottom",modifiers:[],strategy:"absolute"};function Ad(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return!r.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function $S(e){e===void 0&&(e={});var r=e,n=r.defaultModifiers,o=n===void 0?[]:n,a=r.defaultOptions,u=a===void 0?Pd:a;return function(f,h,m){m===void 0&&(m=u);var y={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pd,u),modifiersData:{},elements:{reference:f,popper:h},attributes:{},styles:{}},_=[],O=!1,v={state:y,setOptions:function(D){var M=typeof D=="function"?D(y.options):D;w(),y.options=Object.assign({},u,y.options,M),y.scrollParents={reference:qr(f)?Ji(f):f.contextElement?Ji(f.contextElement):[],popper:Ji(h)};var R=MS(kS([].concat(o,y.options.modifiers)));return y.orderedModifiers=R.filter(function(k){return k.enabled}),S(),v.update()},forceUpdate:function(){if(!O){var D=y.elements,M=D.reference,R=D.popper;if(Ad(M,R)){y.rects={reference:IS(M,co(R),y.options.strategy==="fixed"),popper:Sc(R)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(ne){return y.modifiersData[ne.name]=Object.assign({},ne.data)});for(var k=0;k<y.orderedModifiers.length;k++){if(y.reset===!0){y.reset=!1,k=-1;continue}var x=y.orderedModifiers[k],W=x.fn,F=x.options,N=F===void 0?{}:F,Z=x.name;typeof W=="function"&&(y=W({state:y,options:N,name:Z,instance:v})||y)}}}},update:DS(function(){return new Promise(function(T){v.forceUpdate(),T(y)})}),destroy:function(){w(),O=!0}};if(!Ad(f,h))return v;v.setOptions(m).then(function(T){!O&&m.onFirstUpdate&&m.onFirstUpdate(T)});function S(){y.orderedModifiers.forEach(function(T){var D=T.name,M=T.options,R=M===void 0?{}:M,k=T.effect;if(typeof k=="function"){var x=k({state:y,name:D,instance:v,options:R}),W=function(){};_.push(x||W)}})}function w(){_.forEach(function(T){return T()}),_=[]}return v}}var NS=[aS,xS,iS,G_,SS,gS,CS,eS,wS],jS=$S({defaultModifiers:NS}),FS=typeof Element<"u",WS=typeof Map=="function",US=typeof Set=="function",BS=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ca(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!Ca(e[o],r[o]))return!1;return!0}var u;if(WS&&e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(u=e.entries();!(o=u.next()).done;)if(!r.has(o.value[0]))return!1;for(u=e.entries();!(o=u.next()).done;)if(!Ca(o.value[1],r.get(o.value[0])))return!1;return!0}if(US&&e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(u=e.entries();!(o=u.next()).done;)if(!r.has(o.value[0]))return!1;return!0}if(BS&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(r)){if(n=e.length,n!=r.length)return!1;for(o=n;o--!==0;)if(e[o]!==r[o])return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof r.valueOf=="function")return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof r.toString=="function")return e.toString()===r.toString();if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;if(FS&&e instanceof Element)return!1;for(o=n;o--!==0;)if(!((a[o]==="_owner"||a[o]==="__v"||a[o]==="__o")&&e.$$typeof)&&!Ca(e[a[o]],r[a[o]]))return!1;return!0}return e!==e&&r!==r}var HS=function(r,n){try{return Ca(r,n)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const zS=Vp(HS);var qS=[],sh=function(r,n,o){o===void 0&&(o={});var a=I.useRef(null),u={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||qS},c=I.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),f=c[0],h=c[1],m=I.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(v){var S=v.state,w=Object.keys(S.elements);P_.flushSync(function(){h({styles:bd(w.map(function(T){return[T,S.styles[T]||{}]})),attributes:bd(w.map(function(T){return[T,S.attributes[T]]}))})})},requires:["computeStyles"]}},[]),y=I.useMemo(function(){var O={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[m,{name:"applyStyles",enabled:!1}])};return zS(a.current,O)?a.current||O:(a.current=O,O)},[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,m]),_=I.useRef();return _d(function(){_.current&&_.current.setOptions(y)},[y]),_d(function(){if(!(r==null||n==null)){var O=o.createPopper||jS,v=O(r,n,y);return _.current=v,function(){v.destroy(),_.current=null}}},[r,n,o.createPopper]),{state:_.current?_.current.state:null,styles:f.styles,attributes:f.attributes,update:_.current?_.current.update:null,forceUpdate:_.current?_.current.forceUpdate:null}};const uh=e=>B.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),ch=q.forwardRef(({children:e,style:r,attributes:n},o)=>B.jsx("div",{style:{...r,zIndex:2e3},...n,ref:o,className:"w-60 rounded border border-grey-900 bg-fd-gray-light shadow-2xl","data-cy":"dialogBody",children:e})),KS=({referenceElement:e,placement:r,isOpen:n,children:o,onClose:a})=>{const[u,c]=q.useState(null),{styles:f,attributes:h}=sh(e,u,{placement:r||"bottom-start"}),m=q.useCallback(()=>{a&&a()},[a]);return n?B.jsxs(Jp,{children:[B.jsx(uh,{onClick:()=>m()}),B.jsx(ch,{ref:c,style:f.popper,attributes:h.popper,children:o})]}):null};var ec={exports:{}},di={};/*
|
|
30
|
+
object-assign
|
|
31
|
+
(c) Sindre Sorhus
|
|
32
|
+
@license MIT
|
|
33
|
+
*/var hu,Id;function lh(){if(Id)return hu;Id=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function a(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var c={},f=0;f<10;f++)c["_"+String.fromCharCode(f)]=f;var h=Object.getOwnPropertyNames(c).map(function(y){return c[y]});if(h.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(y){m[y]=y}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return hu=a()?Object.assign:function(u,c){for(var f,h=o(u),m,y=1;y<arguments.length;y++){f=Object(arguments[y]);for(var _ in f)r.call(f,_)&&(h[_]=f[_]);if(e){m=e(f);for(var O=0;O<m.length;O++)n.call(f,m[O])&&(h[m[O]]=f[m[O]])}}return h},hu}/** @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 Ld;function GS(){if(Ld)return di;Ld=1,lh();var e=q,r=60103;if(di.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;r=n("react.element"),di.Fragment=n("react.fragment")}var o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(f,h,m){var y,_={},O=null,v=null;m!==void 0&&(O=""+m),h.key!==void 0&&(O=""+h.key),h.ref!==void 0&&(v=h.ref);for(y in h)a.call(h,y)&&!u.hasOwnProperty(y)&&(_[y]=h[y]);if(f&&f.defaultProps)for(y in h=f.defaultProps,h)_[y]===void 0&&(_[y]=h[y]);return{$$typeof:r,type:f,key:O,ref:v,props:_,_owner:o.current}}return di.jsx=c,di.jsxs=c,di}var Md={};/** @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 Dd;function YS(){return Dd||(Dd=1,function(e){process.env.NODE_ENV!=="production"&&function(){var r=q,n=lh(),o=60103,a=60106;e.Fragment=60107;var u=60108,c=60114,f=60109,h=60110,m=60112,y=60113,_=60120,O=60115,v=60116,S=60121,w=60122,T=60117,D=60129,M=60131;if(typeof Symbol=="function"&&Symbol.for){var R=Symbol.for;o=R("react.element"),a=R("react.portal"),e.Fragment=R("react.fragment"),u=R("react.strict_mode"),c=R("react.profiler"),f=R("react.provider"),h=R("react.context"),m=R("react.forward_ref"),y=R("react.suspense"),_=R("react.suspense_list"),O=R("react.memo"),v=R("react.lazy"),S=R("react.block"),w=R("react.server.block"),T=R("react.fundamental"),R("react.scope"),R("react.opaque.id"),D=R("react.debug_trace_mode"),R("react.offscreen"),M=R("react.legacy_hidden")}var k=typeof Symbol=="function"&&Symbol.iterator,x="@@iterator";function W(d){if(d===null||typeof d!="object")return null;var P=k&&d[k]||d[x];return typeof P=="function"?P:null}var F=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function N(d){{for(var P=arguments.length,$=new Array(P>1?P-1:0),Y=1;Y<P;Y++)$[Y-1]=arguments[Y];Z("error",d,$)}}function Z(d,P,$){{var Y=F.ReactDebugCurrentFrame,ie=Y.getStackAddendum();ie!==""&&(P+="%s",$=$.concat([ie]));var oe=$.map(function(ee){return""+ee});oe.unshift("Warning: "+P),Function.prototype.apply.call(console[d],console,oe)}}var ne=!1;function we(d){return!!(typeof d=="string"||typeof d=="function"||d===e.Fragment||d===c||d===D||d===u||d===y||d===_||d===M||ne||typeof d=="object"&&d!==null&&(d.$$typeof===v||d.$$typeof===O||d.$$typeof===f||d.$$typeof===h||d.$$typeof===m||d.$$typeof===T||d.$$typeof===S||d[0]===w))}function Me(d,P,$){var Y=P.displayName||P.name||"";return d.displayName||(Y!==""?$+"("+Y+")":$)}function Oe(d){return d.displayName||"Context"}function ue(d){if(d==null)return null;if(typeof d.tag=="number"&&N("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case e.Fragment:return"Fragment";case a:return"Portal";case c:return"Profiler";case u:return"StrictMode";case y:return"Suspense";case _:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case h:var P=d;return Oe(P)+".Consumer";case f:var $=d;return Oe($._context)+".Provider";case m:return Me(d,d.render,"ForwardRef");case O:return ue(d.type);case S:return ue(d._render);case v:{var Y=d,ie=Y._payload,oe=Y._init;try{return ue(oe(ie))}catch{return null}}}return null}var ke=0,_e,Ie,qe,ft,G,X,ve;function me(){}me.__reactDisabledLog=!0;function ce(){{if(ke===0){_e=console.log,Ie=console.info,qe=console.warn,ft=console.error,G=console.group,X=console.groupCollapsed,ve=console.groupEnd;var d={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}ke++}}function le(){{if(ke--,ke===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},d,{value:_e}),info:n({},d,{value:Ie}),warn:n({},d,{value:qe}),error:n({},d,{value:ft}),group:n({},d,{value:G}),groupCollapsed:n({},d,{value:X}),groupEnd:n({},d,{value:ve})})}ke<0&&N("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ae=F.ReactCurrentDispatcher,fe;function se(d,P,$){{if(fe===void 0)try{throw Error()}catch(ie){var Y=ie.stack.trim().match(/\n( *(at )?)/);fe=Y&&Y[1]||""}return`
|
|
48
|
+
`+fe+d}}var ge=!1,ye;{var Ge=typeof WeakMap=="function"?WeakMap:Map;ye=new Ge}function V(d,P){if(!d||ge)return"";{var $=ye.get(d);if($!==void 0)return $}var Y;ge=!0;var ie=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=ae.current,ae.current=null,ce();try{if(P){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(st){Y=st}Reflect.construct(d,[],ee)}else{try{ee.call()}catch(st){Y=st}d.call(ee.prototype)}}else{try{throw Error()}catch(st){Y=st}d()}}catch(st){if(st&&Y&&typeof st.stack=="string"){for(var Q=st.stack.split(`
|
|
49
|
+
`),je=Y.stack.split(`
|
|
50
|
+
`),be=Q.length-1,Ee=je.length-1;be>=1&&Ee>=0&&Q[be]!==je[Ee];)Ee--;for(;be>=1&&Ee>=0;be--,Ee--)if(Q[be]!==je[Ee]){if(be!==1||Ee!==1)do if(be--,Ee--,Ee<0||Q[be]!==je[Ee]){var it=`
|
|
51
|
+
`+Q[be].replace(" at new "," at ");return typeof d=="function"&&ye.set(d,it),it}while(be>=1&&Ee>=0);break}}}finally{ge=!1,ae.current=oe,le(),Error.prepareStackTrace=ie}var It=d?d.displayName||d.name:"",Tr=It?se(It):"";return typeof d=="function"&&ye.set(d,Tr),Tr}function nt(d,P,$){return V(d,!1)}function rt(d){var P=d.prototype;return!!(P&&P.isReactComponent)}function lt(d,P,$){if(d==null)return"";if(typeof d=="function")return V(d,rt(d));if(typeof d=="string")return se(d);switch(d){case y:return se("Suspense");case _:return se("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case m:return nt(d.render);case O:return lt(d.type,P,$);case S:return nt(d._render);case v:{var Y=d,ie=Y._payload,oe=Y._init;try{return lt(oe(ie),P,$)}catch{}}}return""}var Pn={},vt=F.ReactDebugCurrentFrame;function Nt(d){if(d){var P=d._owner,$=lt(d.type,d._source,P?P.type:null);vt.setExtraStackFrame($)}else vt.setExtraStackFrame(null)}function gr(d,P,$,Y,ie){{var oe=Function.call.bind(Object.prototype.hasOwnProperty);for(var ee in d)if(oe(d,ee)){var Q=void 0;try{if(typeof d[ee]!="function"){var je=Error((Y||"React class")+": "+$+" type `"+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw je.name="Invariant Violation",je}Q=d[ee](P,ee,Y,$,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){Q=be}Q&&!(Q instanceof Error)&&(Nt(ie),N("%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).",Y||"React class",$,ee,typeof Q),Nt(null)),Q instanceof Error&&!(Q.message in Pn)&&(Pn[Q.message]=!0,Nt(ie),N("Failed %s type: %s",$,Q.message),Nt(null))}}}var Je=F.ReactCurrentOwner,Qe=Object.prototype.hasOwnProperty,tn={key:!0,ref:!0,__self:!0,__source:!0},qt,mn,Et;Et={};function Qn(d){if(Qe.call(d,"ref")){var P=Object.getOwnPropertyDescriptor(d,"ref").get;if(P&&P.isReactWarning)return!1}return d.ref!==void 0}function nn(d){if(Qe.call(d,"key")){var P=Object.getOwnPropertyDescriptor(d,"key").get;if(P&&P.isReactWarning)return!1}return d.key!==void 0}function Kt(d,P){if(typeof d.ref=="string"&&Je.current&&P&&Je.current.stateNode!==P){var $=ue(Je.current.type);Et[$]||(N('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',ue(Je.current.type),d.ref),Et[$]=!0)}}function yr(d,P){{var $=function(){qt||(qt=!0,N("%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)",P))};$.isReactWarning=!0,Object.defineProperty(d,"key",{get:$,configurable:!0})}}function wr(d,P){{var $=function(){mn||(mn=!0,N("%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)",P))};$.isReactWarning=!0,Object.defineProperty(d,"ref",{get:$,configurable:!0})}}var br=function(d,P,$,Y,ie,oe,ee){var Q={$$typeof:o,type:d,key:P,ref:$,props:ee,_owner:oe};return Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Y}),Object.defineProperty(Q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q};function _r(d,P,$,Y,ie){{var oe,ee={},Q=null,je=null;$!==void 0&&(Q=""+$),nn(P)&&(Q=""+P.key),Qn(P)&&(je=P.ref,Kt(P,ie));for(oe in P)Qe.call(P,oe)&&!tn.hasOwnProperty(oe)&&(ee[oe]=P[oe]);if(d&&d.defaultProps){var be=d.defaultProps;for(oe in be)ee[oe]===void 0&&(ee[oe]=be[oe])}if(Q||je){var Ee=typeof d=="function"?d.displayName||d.name||"Unknown":d;Q&&yr(ee,Ee),je&&wr(ee,Ee)}return br(d,Q,je,ie,Y,Je.current,ee)}}var gn=F.ReactCurrentOwner,Fn=F.ReactDebugCurrentFrame;function yt(d){if(d){var P=d._owner,$=lt(d.type,d._source,P?P.type:null);Fn.setExtraStackFrame($)}else Fn.setExtraStackFrame(null)}var yn;yn=!1;function wn(d){return typeof d=="object"&&d!==null&&d.$$typeof===o}function Sr(){{if(gn.current){var d=ue(gn.current.type);if(d)return`
|
|
52
|
+
|
|
53
|
+
Check the render method of \``+d+"`."}return""}}function Ti(d){{if(d!==void 0){var P=d.fileName.replace(/^.*[\\\/]/,""),$=d.lineNumber;return`
|
|
54
|
+
|
|
55
|
+
Check your code at `+P+":"+$+"."}return""}}var Er={};function Xr(d){{var P=Sr();if(!P){var $=typeof d=="string"?d:d.displayName||d.name;$&&(P=`
|
|
56
|
+
|
|
57
|
+
Check the top-level render call using <`+$+">.")}return P}}function er(d,P){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var $=Xr(P);if(Er[$])return;Er[$]=!0;var Y="";d&&d._owner&&d._owner!==gn.current&&(Y=" It was passed a child from "+ue(d._owner.type)+"."),yt(d),N('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',$,Y),yt(null)}}function xr(d,P){{if(typeof d!="object")return;if(Array.isArray(d))for(var $=0;$<d.length;$++){var Y=d[$];wn(Y)&&er(Y,P)}else if(wn(d))d._store&&(d._store.validated=!0);else if(d){var ie=W(d);if(typeof ie=="function"&&ie!==d.entries)for(var oe=ie.call(d),ee;!(ee=oe.next()).done;)wn(ee.value)&&er(ee.value,P)}}}function Ci(d){{var P=d.type;if(P==null||typeof P=="string")return;var $;if(typeof P=="function")$=P.propTypes;else if(typeof P=="object"&&(P.$$typeof===m||P.$$typeof===O))$=P.propTypes;else return;if($){var Y=ue(P);gr($,d.props,"prop",Y,d)}else if(P.PropTypes!==void 0&&!yn){yn=!0;var ie=ue(P);N("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ie||"Unknown")}typeof P.getDefaultProps=="function"&&!P.getDefaultProps.isReactClassApproved&&N("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ri(d){{for(var P=Object.keys(d.props),$=0;$<P.length;$++){var Y=P[$];if(Y!=="children"&&Y!=="key"){yt(d),N("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Y),yt(null);break}}d.ref!==null&&(yt(d),N("Invalid attribute `ref` supplied to `React.Fragment`."),yt(null))}}function Or(d,P,$,Y,ie,oe){{var ee=we(d);if(!ee){var Q="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var je=Ti(ie);je?Q+=je:Q+=Sr();var be;d===null?be="null":Array.isArray(d)?be="array":d!==void 0&&d.$$typeof===o?(be="<"+(ue(d.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):be=typeof d,N("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,Q)}var Ee=_r(d,P,$,ie,oe);if(Ee==null)return Ee;if(ee){var it=P.children;if(it!==void 0)if(Y)if(Array.isArray(it)){for(var It=0;It<it.length;It++)xr(it[It],d);Object.freeze&&Object.freeze(it)}else N("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 xr(it,d)}return d===e.Fragment?Ri(Ee):Ci(Ee),Ee}}function Vr(d,P,$){return Or(d,P,$,!0)}function Pi(d,P,$){return Or(d,P,$,!1)}var Ai=Pi,Ii=Vr;e.jsx=Ai,e.jsxs=Ii}()}(Md)),Md}process.env.NODE_ENV==="production"?ec.exports=GS():ec.exports=YS();var zt=ec.exports;const XS=e=>zt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zt.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"})}),kd=e=>zt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zt.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"})}),vu=e=>zt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zt.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"})}),$d=e=>zt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zt.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"})}),VS=e=>zt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zt.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"})}),JS=e=>zt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zt.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Zm1-15.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-7ZM11 17a1 1 0 1 0 2 0 1 1 0 0 0-2 0Z",fill:"currentColor"})}),ZS=e=>zt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:zt.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 fh={exports:{}};/*!
|
|
30
58
|
Copyright (c) 2018 Jed Watson.
|
|
31
59
|
Licensed under the MIT License (MIT), see
|
|
32
60
|
http://jedwatson.github.io/classnames
|
|
33
|
-
*/(function(e){(function(){var r={}.hasOwnProperty;function n(){for(var o=[],a=0;a<arguments.length;a++){var u=arguments[a];if(u){var
|
|
34
|
-
`).match(a);let
|
|
61
|
+
*/(function(e){(function(){var r={}.hasOwnProperty;function n(){for(var o=[],a=0;a<arguments.length;a++){var u=arguments[a];if(u){var c=typeof u;if(c==="string"||c==="number")o.push(u);else if(Array.isArray(u)){if(u.length){var f=n.apply(null,u);f&&o.push(f)}}else if(c==="object"){if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]")){o.push(u.toString());continue}for(var h in u)r.call(u,h)&&u[h]&&o.push(h)}}}return o.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(fh);var dh=fh.exports;const $t=Vp(dh);function Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Wr.apply(this,arguments)}const QS=["children","options"],Nd=["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,r)=>(e[r.toLowerCase()]=r,e),{for:"htmlFor"}),jd={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},eE=["style","script"],tE=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,nE=/mailto:/i,rE=/\n{2,}$/,ph=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,iE=/^ *> ?/gm,oE=/^ {2,}\n/,aE=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,hh=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,vh=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,sE=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,uE=/^(?:\n *)*\n/,cE=/\r\n?/g,lE=/^\[\^([^\]]+)](:.*)\n/,fE=/^\[\^([^\]]+)]/,dE=/\f/g,pE=/^\s*?\[(x|\s)\]/,mh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,gh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,yh=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,tc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,hE=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,wh=/^<!--[\s\S]*?(?:-->)/,vE=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,nc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,mE=/^\{.*\}$/,gE=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,yE=/^<([^ >]+@[^ >]+)>/,wE=/^<([^ >]+:\/[^ >]+)>/,bE=/-([a-z])?/gi,bh=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,_E=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,SE=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,EE=/^\[([^\]]*)\] ?\[([^\]]*)\]/,xE=/(\[|\])/g,OE=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,TE=/\t/g,CE=/^ *\| */,RE=/(^ *\||\| *$)/g,PE=/ *$/,AE=/^ *:-+: *$/,IE=/^ *:-+ *$/,LE=/^ *-+: *$/,ME=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,DE=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,kE=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,$E=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,NE=/^\\([^0-9A-Za-z\s])/,jE=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,FE=/^\n+/,WE=/^([ \t]*)/,UE=/\\([^\\])/g,Fd=/ *\n+$/,BE=/(?:^|\n)( *)$/,Cc="(?:\\d+\\.)",Rc="(?:[*+-])";function _h(e){return"( *)("+(e===1?Cc:Rc)+") +"}const Sh=_h(1),Eh=_h(2);function xh(e){return new RegExp("^"+(e===1?Sh:Eh))}const HE=xh(1),zE=xh(2);function Oh(e){return new RegExp("^"+(e===1?Sh:Eh)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Cc:Rc)+" )[^\\n]*)*(\\n|$)","gm")}const Th=Oh(1),Ch=Oh(2);function Rh(e){const r=e===1?Cc:Rc;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const Ph=Rh(1),Ah=Rh(2);function Wd(e,r){const n=r===1,o=n?Ph:Ah,a=n?Th:Ch,u=n?HE:zE;return{t(c,f,h){const m=BE.exec(h);return m&&(f.o||!f._&&!f.u)?o.exec(c=m[1]+c):null},i:Ne.HIGH,l(c,f,h){const m=n?+c[2]:void 0,y=c[0].replace(rE,`
|
|
62
|
+
`).match(a);let _=!1;return{p:y.map(function(O,v){const S=u.exec(O)[0].length,w=new RegExp("^ {1,"+S+"}","gm"),T=O.replace(w,"").replace(u,""),D=v===y.length-1,M=T.indexOf(`
|
|
35
63
|
|
|
36
|
-
`)!==-1||
|
|
64
|
+
`)!==-1||D&&_;_=M;const R=h._,k=h.o;let x;h.o=!0,M?(h._=!1,x=T.replace(Fd,`
|
|
37
65
|
|
|
38
|
-
`)):(
|
|
39
|
-
`).map(function(m){return
|
|
66
|
+
`)):(h._=!0,x=T.replace(Fd,""));const W=f(x,h);return h._=R,h.o=k,W}),m:n,g:m}},h:(c,f,h)=>e(c.m?"ol":"ul",{key:h.k,start:c.g},c.p.map(function(m,y){return e("li",{key:y},f(m,h))}))}}const qE=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,KE=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ih=[ph,hh,vh,mh,yh,gh,wh,bh,Th,Ph,Ch,Ah],GE=[...Ih,/^[^\n]+(?: \n|\n{2,})/,tc,nc];function YE(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 XE(e){return LE.test(e)?"right":AE.test(e)?"center":IE.test(e)?"left":null}function Ud(e,r,n){const o=n.$;n.$=!0;const a=r(e.trim(),n);n.$=o;let u=[[]];return a.forEach(function(c,f){c.type==="tableSeparator"?f!==0&&f!==a.length-1&&u.push([]):(c.type!=="text"||a[f+1]!=null&&a[f+1].type!=="tableSeparator"||(c.v=c.v.replace(PE,"")),u[u.length-1].push(c))}),u}function VE(e,r,n){n._=!0;const o=Ud(e[1],r,n),a=e[2].replace(RE,"").split("|").map(XE),u=function(c,f,h){return c.trim().split(`
|
|
67
|
+
`).map(function(m){return Ud(m,f,h)})}(e[3],r,n);return n._=!1,{S:a,A:u,L:o,type:"table"}}function Bd(e,r){return e.S[r]==null?{}:{textAlign:e.S[r]}}function lr(e){return function(r,n){return n._?e.exec(r):null}}function fr(e){return function(r,n){return n._||n.u?e.exec(r):null}}function Xn(e){return function(r,n){return n._||n.u?null:e.exec(r)}}function Yi(e){return function(r){return e.exec(r)}}function JE(e,r,n){if(r._||r.u||n&&!n.endsWith(`
|
|
40
68
|
`))return null;let o="";e.split(`
|
|
41
|
-
`).every(u=>!
|
|
42
|
-
`,u.trim()));const a=o.trimEnd();return a==""?null:[o,a]}function
|
|
69
|
+
`).every(u=>!Ih.some(c=>c.test(u))&&(o+=u+`
|
|
70
|
+
`,u.trim()));const a=o.trimEnd();return a==""?null:[o,a]}function pi(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 Hd(e){return e.replace(UE,"$1")}function Ra(e,r,n){const o=n._||!1,a=n.u||!1;n._=!0,n.u=!0;const u=e(r,n);return n._=o,n.u=a,u}function ZE(e,r,n){const o=n._||!1,a=n.u||!1;n._=!1,n.u=!0;const u=e(r,n);return n._=o,n.u=a,u}function QE(e,r,n){return n._=!1,e(r,n)}const mu=(e,r,n)=>({v:Ra(r,e[1],n)});function gu(){return{}}function yu(){return null}function ex(...e){return e.filter(Boolean).join(" ")}function wu(e,r,n){let o=e;const a=r.split(".");for(;a.length&&(o=o[a[0]],o!==void 0);)a.shift();return o||n}var Ne;function tx(e,r={}){r.overrides=r.overrides||{},r.slugify=r.slugify||YE,r.namedCodesToUnicode=r.namedCodesToUnicode?Wr({},jd,r.namedCodesToUnicode):jd;const n=r.createElement||I.createElement;function o(v,S,...w){const T=wu(r.overrides,`${v}.props`,{});return n(function(D,M){const R=wu(M,D);return R?typeof R=="function"||typeof R=="object"&&"render"in R?R:wu(M,`${D}.component`,D):D}(v,r.overrides),Wr({},S,T,{className:ex(S==null?void 0:S.className,T.className)||void 0}),...w)}function a(v){let S=!1;r.forceInline?S=!0:r.forceBlock||(S=OE.test(v)===!1);const w=y(m(S?v:`${v.trimEnd().replace(FE,"")}
|
|
43
71
|
|
|
44
|
-
`,{_:S}));for(;typeof
|
|
45
|
-
`},paragraph:{t
|
|
46
|
-
`).replace(ZS,"").replace(dE," ")}(O),M)}}(p),w=(b=function(h){return function(S,y,O){return h[S.type].h(S,y,O)}}(p),function h(S,y={}){if(Array.isArray(S)){const O=y.k,M=[];let L=!1;for(let P=0;P<S.length;P++){y.k=P;const D=h(S[P],y),E=typeof D=="string";E&&L?M[M.length-1]+=D:D!==null&&M.push(D),L=E}return y.k=O,M}return b(S,h,y)});var b;const C=a(e);return l.length?o("div",null,C,o("footer",{key:"footer"},l.map(function(h){return o("div",{id:r.slugify(h.j),key:h.j},h.j,w(m(h.I,{_:!0})))}))):C}(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"})(Ae||(Ae={}));const Ca=e=>{let{children:r,options:n}=e,o=function(a,u){if(a==null)return{};var l,f,p={},m=Object.keys(a);for(f=0;f<m.length;f++)u.indexOf(l=m[f])>=0||(p[l]=a[l]);return p}(e,WS);return A.cloneElement(BE(r,n),o)};var xh={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Dd=U.createContext&&U.createContext(xh),ur=globalThis&&globalThis.__assign||function(){return ur=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},ur.apply(this,arguments)},HE=globalThis&&globalThis.__rest||function(e,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};function Oh(e){return e&&e.map(function(r,n){return U.createElement(r.tag,ur({key:n},r.attr),Oh(r.child))})}function In(e){return function(r){return U.createElement(UE,ur({attr:ur({},e.attr)},r),Oh(e.child))}}function UE(e){var r=function(n){var o=e.attr,a=e.size,u=e.title,l=HE(e,["attr","size","title"]),f=a||n.size||"1em",p;return n.className&&(p=n.className),e.className&&(p=(p?p+" ":"")+e.className),U.createElement("svg",ur({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,l,{className:p,style:ur(ur({color:e.color||n.color},n.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&U.createElement("title",null,u),e.children)};return Dd!==void 0?U.createElement(Dd.Consumer,null,function(n){return r(n)}):r(xh)}function kd(e){return In({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"}}]})(e)}function Nd(e){return In({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"}}]})(e)}function zE(e){return In({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0080 446.25h340.89a32 32 0 0028.18-47.17zm-198.6-1.83a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.95a21.73 21.73 0 0121.5-22.69h.21a21.74 21.74 0 0121.73 22.7z"}}]})(e)}function qE(e){return In({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}}]})(e)}function KE(e){return In({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}}]})(e)}function GE(e){return In({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}}]})(e)}const $d=({kind:e})=>{switch(e){case"error":case"danger":return W.jsx(W.Fragment,{children:W.jsx(qE,{className:"flex-none mr-1 h-6 w-6"})});case"info":return W.jsx(W.Fragment,{children:W.jsx(kd,{className:"flex-none mr-1 h-5 w-5"})});case"warning":return W.jsx(W.Fragment,{children:W.jsx(zE,{className:"flex-none mr-1 h-6 w-6"})});case"message":return W.jsx(W.Fragment,{children:W.jsx(kd,{className:"flex-none mr-1 h-5 w-5"})});default:return null}},YE=({id:e,onClose:r,kind:n,message:o,markdown:a})=>W.jsx("div",{className:$t("relative flex items-center rounded-xl py-4 font-semibold",{"bg-yellow-100 text-yellow-400":n==="warning","bg-red-200 text-red-500":n==="danger"||n==="error","bg-blue-100 text-blue-900":n==="info","bg-green-200 text-green-500":n==="message","px-14":typeof o=="string","px-4":typeof o!="string"}),children:typeof o=="string"?W.jsxs(W.Fragment,{children:[W.jsx("button",{onClick:r,className:$t("absolute -right-1 -top-1 flex items-center justify-center rounded-full p-1",{"bg-yellow-400":n==="warning","bg-red-500":n==="danger"||n==="error","bg-blue-900":n==="info","bg-green-500":n==="message"}),children:W.jsx(Nd,{className:"h-2 w-2 stroke-current text-white"})}),W.jsx($d,{kind:n}),a?W.jsx(Ca,{children:o}):W.jsx(W.Fragment,{children:o})]}):W.jsxs("div",{className:"flex flex-col gap-2",children:[W.jsx("button",{onClick:r,className:$t("absolute right-3 top-3 flex items-center justify-center rounded-full p-1"),children:W.jsx(Nd,{className:"stroke-current font-bold"})}),o.map(u=>u.messages.length>0?W.jsxs(W.Fragment,{children:[W.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[W.jsx($d,{kind:n}),W.jsxs("span",{children:[u.title," :"]})]}),W.jsx("ul",{className:"list-disc px-12",children:u.messages.map(l=>W.jsx("li",{children:a?W.jsx(Ca,{children:l}):W.jsx(W.Fragment,{children:l})}))})]}):W.jsx(W.Fragment,{}))]})},e),Th=({children:e,size:r,className:n,...o})=>W.jsx("div",{style:{"--width":`${r||24}px`},className:$t("h-6 flex items-center pr-1 w-[--width]",n),...o,children:e});var na,XE=new Uint8Array(16);function Ch(){if(!na&&(na=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!na))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return na(XE)}const VE=/^(?:[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 $a(e){return typeof e=="string"&&VE.test(e)}var vt=[];for(var gu=0;gu<256;++gu)vt.push((gu+256).toString(16).substr(1));function Fa(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(vt[e[r+0]]+vt[e[r+1]]+vt[e[r+2]]+vt[e[r+3]]+"-"+vt[e[r+4]]+vt[e[r+5]]+"-"+vt[e[r+6]]+vt[e[r+7]]+"-"+vt[e[r+8]]+vt[e[r+9]]+"-"+vt[e[r+10]]+vt[e[r+11]]+vt[e[r+12]]+vt[e[r+13]]+vt[e[r+14]]+vt[e[r+15]]).toLowerCase();if(!$a(n))throw TypeError("Stringified UUID is invalid");return n}var Fd,yu,wu=0,bu=0;function JE(e,r,n){var o=r&&n||0,a=r||new Array(16);e=e||{};var u=e.node||Fd,l=e.clockseq!==void 0?e.clockseq:yu;if(u==null||l==null){var f=e.random||(e.rng||Ch)();u==null&&(u=Fd=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),l==null&&(l=yu=(f[6]<<8|f[7])&16383)}var p=e.msecs!==void 0?e.msecs:Date.now(),m=e.nsecs!==void 0?e.nsecs:bu+1,w=p-wu+(m-bu)/1e4;if(w<0&&e.clockseq===void 0&&(l=l+1&16383),(w<0||p>wu)&&e.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");wu=p,bu=m,yu=l,p+=122192928e5;var b=((p&268435455)*1e4+m)%4294967296;a[o++]=b>>>24&255,a[o++]=b>>>16&255,a[o++]=b>>>8&255,a[o++]=b&255;var C=p/4294967296*1e4&268435455;a[o++]=C>>>8&255,a[o++]=C&255,a[o++]=C>>>24&15|16,a[o++]=C>>>16&255,a[o++]=l>>>8|128,a[o++]=l&255;for(var h=0;h<6;++h)a[o+h]=u[h];return r||Fa(a)}function Ph(e){if(!$a(e))throw TypeError("Invalid UUID");var r,n=new Uint8Array(16);return n[0]=(r=parseInt(e.slice(0,8),16))>>>24,n[1]=r>>>16&255,n[2]=r>>>8&255,n[3]=r&255,n[4]=(r=parseInt(e.slice(9,13),16))>>>8,n[5]=r&255,n[6]=(r=parseInt(e.slice(14,18),16))>>>8,n[7]=r&255,n[8]=(r=parseInt(e.slice(19,23),16))>>>8,n[9]=r&255,n[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=r/4294967296&255,n[12]=r>>>24&255,n[13]=r>>>16&255,n[14]=r>>>8&255,n[15]=r&255,n}function ZE(e){e=unescape(encodeURIComponent(e));for(var r=[],n=0;n<e.length;++n)r.push(e.charCodeAt(n));return r}var QE="6ba7b810-9dad-11d1-80b4-00c04fd430c8",ex="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Rh(e,r,n){function o(a,u,l,f){if(typeof a=="string"&&(a=ZE(a)),typeof u=="string"&&(u=Ph(u)),u.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var p=new Uint8Array(16+a.length);if(p.set(u),p.set(a,u.length),p=n(p),p[6]=p[6]&15|r,p[8]=p[8]&63|128,l){f=f||0;for(var m=0;m<16;++m)l[f+m]=p[m];return l}return Fa(p)}try{o.name=e}catch{}return o.DNS=QE,o.URL=ex,o}function tx(e){if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var n=0;n<r.length;++n)e[n]=r.charCodeAt(n)}return nx(rx(ix(e),e.length*8))}function nx(e){for(var r=[],n=e.length*32,o="0123456789abcdef",a=0;a<n;a+=8){var u=e[a>>5]>>>a%32&255,l=parseInt(o.charAt(u>>>4&15)+o.charAt(u&15),16);r.push(l)}return r}function Ah(e){return(e+64>>>9<<4)+14+1}function rx(e,r){e[r>>5]|=128<<r%32,e[Ah(r)-1]=r;for(var n=1732584193,o=-271733879,a=-1732584194,u=271733878,l=0;l<e.length;l+=16){var f=n,p=o,m=a,w=u;n=bt(n,o,a,u,e[l],7,-680876936),u=bt(u,n,o,a,e[l+1],12,-389564586),a=bt(a,u,n,o,e[l+2],17,606105819),o=bt(o,a,u,n,e[l+3],22,-1044525330),n=bt(n,o,a,u,e[l+4],7,-176418897),u=bt(u,n,o,a,e[l+5],12,1200080426),a=bt(a,u,n,o,e[l+6],17,-1473231341),o=bt(o,a,u,n,e[l+7],22,-45705983),n=bt(n,o,a,u,e[l+8],7,1770035416),u=bt(u,n,o,a,e[l+9],12,-1958414417),a=bt(a,u,n,o,e[l+10],17,-42063),o=bt(o,a,u,n,e[l+11],22,-1990404162),n=bt(n,o,a,u,e[l+12],7,1804603682),u=bt(u,n,o,a,e[l+13],12,-40341101),a=bt(a,u,n,o,e[l+14],17,-1502002290),o=bt(o,a,u,n,e[l+15],22,1236535329),n=_t(n,o,a,u,e[l+1],5,-165796510),u=_t(u,n,o,a,e[l+6],9,-1069501632),a=_t(a,u,n,o,e[l+11],14,643717713),o=_t(o,a,u,n,e[l],20,-373897302),n=_t(n,o,a,u,e[l+5],5,-701558691),u=_t(u,n,o,a,e[l+10],9,38016083),a=_t(a,u,n,o,e[l+15],14,-660478335),o=_t(o,a,u,n,e[l+4],20,-405537848),n=_t(n,o,a,u,e[l+9],5,568446438),u=_t(u,n,o,a,e[l+14],9,-1019803690),a=_t(a,u,n,o,e[l+3],14,-187363961),o=_t(o,a,u,n,e[l+8],20,1163531501),n=_t(n,o,a,u,e[l+13],5,-1444681467),u=_t(u,n,o,a,e[l+2],9,-51403784),a=_t(a,u,n,o,e[l+7],14,1735328473),o=_t(o,a,u,n,e[l+12],20,-1926607734),n=St(n,o,a,u,e[l+5],4,-378558),u=St(u,n,o,a,e[l+8],11,-2022574463),a=St(a,u,n,o,e[l+11],16,1839030562),o=St(o,a,u,n,e[l+14],23,-35309556),n=St(n,o,a,u,e[l+1],4,-1530992060),u=St(u,n,o,a,e[l+4],11,1272893353),a=St(a,u,n,o,e[l+7],16,-155497632),o=St(o,a,u,n,e[l+10],23,-1094730640),n=St(n,o,a,u,e[l+13],4,681279174),u=St(u,n,o,a,e[l],11,-358537222),a=St(a,u,n,o,e[l+3],16,-722521979),o=St(o,a,u,n,e[l+6],23,76029189),n=St(n,o,a,u,e[l+9],4,-640364487),u=St(u,n,o,a,e[l+12],11,-421815835),a=St(a,u,n,o,e[l+15],16,530742520),o=St(o,a,u,n,e[l+2],23,-995338651),n=Et(n,o,a,u,e[l],6,-198630844),u=Et(u,n,o,a,e[l+7],10,1126891415),a=Et(a,u,n,o,e[l+14],15,-1416354905),o=Et(o,a,u,n,e[l+5],21,-57434055),n=Et(n,o,a,u,e[l+12],6,1700485571),u=Et(u,n,o,a,e[l+3],10,-1894986606),a=Et(a,u,n,o,e[l+10],15,-1051523),o=Et(o,a,u,n,e[l+1],21,-2054922799),n=Et(n,o,a,u,e[l+8],6,1873313359),u=Et(u,n,o,a,e[l+15],10,-30611744),a=Et(a,u,n,o,e[l+6],15,-1560198380),o=Et(o,a,u,n,e[l+13],21,1309151649),n=Et(n,o,a,u,e[l+4],6,-145523070),u=Et(u,n,o,a,e[l+11],10,-1120210379),a=Et(a,u,n,o,e[l+2],15,718787259),o=Et(o,a,u,n,e[l+9],21,-343485551),n=ar(n,f),o=ar(o,p),a=ar(a,m),u=ar(u,w)}return[n,o,a,u]}function ix(e){if(e.length===0)return[];for(var r=e.length*8,n=new Uint32Array(Ah(r)),o=0;o<r;o+=8)n[o>>5]|=(e[o/8]&255)<<o%32;return n}function ar(e,r){var n=(e&65535)+(r&65535),o=(e>>16)+(r>>16)+(n>>16);return o<<16|n&65535}function ox(e,r){return e<<r|e>>>32-r}function Wa(e,r,n,o,a,u){return ar(ox(ar(ar(r,e),ar(o,u)),a),n)}function bt(e,r,n,o,a,u,l){return Wa(r&n|~r&o,e,r,a,u,l)}function _t(e,r,n,o,a,u,l){return Wa(r&o|n&~o,e,r,a,u,l)}function St(e,r,n,o,a,u,l){return Wa(r^n^o,e,r,a,u,l)}function Et(e,r,n,o,a,u,l){return Wa(n^(r|~o),e,r,a,u,l)}var ax=Rh("v3",48,tx);const sx=ax;function ux(e,r,n){e=e||{};var o=e.random||(e.rng||Ch)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r){n=n||0;for(var a=0;a<16;++a)r[n+a]=o[a];return r}return Fa(o)}function lx(e,r,n,o){switch(e){case 0:return r&n^~r&o;case 1:return r^n^o;case 2:return r&n^r&o^n&o;case 3:return r^n^o}}function _u(e,r){return e<<r|e>>>32-r}function cx(e){var r=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var o=unescape(encodeURIComponent(e));e=[];for(var a=0;a<o.length;++a)e.push(o.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var u=e.length/4+2,l=Math.ceil(u/16),f=new Array(l),p=0;p<l;++p){for(var m=new Uint32Array(16),w=0;w<16;++w)m[w]=e[p*64+w*4]<<24|e[p*64+w*4+1]<<16|e[p*64+w*4+2]<<8|e[p*64+w*4+3];f[p]=m}f[l-1][14]=(e.length-1)*8/Math.pow(2,32),f[l-1][14]=Math.floor(f[l-1][14]),f[l-1][15]=(e.length-1)*8&4294967295;for(var b=0;b<l;++b){for(var C=new Uint32Array(80),h=0;h<16;++h)C[h]=f[b][h];for(var S=16;S<80;++S)C[S]=_u(C[S-3]^C[S-8]^C[S-14]^C[S-16],1);for(var y=n[0],O=n[1],M=n[2],L=n[3],P=n[4],D=0;D<80;++D){var E=Math.floor(D/20),N=_u(y,5)+lx(E,O,M,L)+P+r[E]+C[D]>>>0;P=L,L=M,M=_u(O,30)>>>0,O=y,y=N}n[0]=n[0]+y>>>0,n[1]=n[1]+O>>>0,n[2]=n[2]+M>>>0,n[3]=n[3]+L>>>0,n[4]=n[4]+P>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var fx=Rh("v5",80,cx);const dx=fx,px="00000000-0000-0000-0000-000000000000";function hx(e){if(!$a(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const vx=Object.freeze(Object.defineProperty({__proto__:null,NIL:px,parse:Ph,stringify:Fa,v1:JE,v3:sx,v4:ux,v5:dx,validate:$a,version:hx},Symbol.toStringTag,{value:"Module"})),mx=S_(vx);function Ol(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Ol.prototype.convert=function(e){var r,n,o,a={},u=this.srcAlphabet.length,l=this.dstAlphabet.length,f=e.length,p=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(r=0;r<f;r++)a[r]=this.srcAlphabet.indexOf(e[r]);do{for(n=0,o=0,r=0;r<f;r++)n=n*u+a[r],n>=l?(a[o++]=parseInt(n/l,10),n=n%l):o>0&&(a[o++]=0);f=o,p=this.dstAlphabet.slice(n,n+1).concat(p)}while(o!==0);return p};Ol.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var gx=Ol,yx=gx;function Vi(e,r){var n=new yx(e,r);return function(o){return n.convert(o)}}Vi.BIN="01";Vi.OCT="01234567";Vi.DEC="0123456789";Vi.HEX="0123456789abcdef";var wx=Vi;const{v4:Su}=mx,ra=wx,Eu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",bx="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",_x={consistentLength:!0};let xu;const Wd=(e,r,n)=>{const o=r(e.toLowerCase().replace(/-/g,""));return!n||!n.consistentLength?o:o.padStart(n.shortIdLength,n.paddingChar)},Sx=(e,r)=>{const o=r(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[o[1],o[2],o[3],o[4],o[5]].join("-")},Ex=e=>Math.ceil(Math.log(2**128)/Math.log(e));var xx=(()=>{const e=(r,n)=>{const o=r||Eu,a={..._x,...n};if([...new Set(Array.from(o))].length!==o.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const u=Ex(o.length),l={shortIdLength:u,consistentLength:a.consistentLength,paddingChar:o[0]},f=ra(ra.HEX,o),p=ra(o,ra.HEX),m=()=>Wd(Su(),f,l),w={new:m,generate:m,uuid:Su,fromUUID:b=>Wd(b,f,l),toUUID:b=>Sx(b,p),alphabet:o,maxLength:u};return Object.freeze(w),w};return e.constants={flickrBase58:Eu,cookieBase90:bx},e.uuid=Su,e.generate=()=>(xu||(xu=e(Eu).generate),xu()),e})();const Ih=({depth:e,height:r=24,width:n=14,showLines:o=!0})=>{const a=`indent_line_${xx.generate()}`;return W.jsxs("svg",{viewBox:`0 0 ${12*e} 24`,width:`${12*e}`,height:r,children:[W.jsx("defs",{children:W.jsx("pattern",{id:a,x:"0",y:"0",width:n,height:r,patternUnits:"userSpaceOnUse",children:W.jsx("line",{x1:n/2,y1:"0",x2:n/2,y2:r,stroke:"rgba(255,255,255,0.4)"})})}),o?W.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${12*e}`,height:r}):W.jsx("rect",{fill:o?`url(#${a})`:"",x:"0",y:"0",width:0,height:r})]})};function jd(e){return In({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"}}]})(e)}function Ox(e){return In({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"}}]})(e)}const Lh=({show:e,expanded:r,onClick:n,variant:o="arrow"})=>e?W.jsx("div",{className:"flex h-6 w-3 items-center",onClick:a=>n&&n(a),children:(()=>{switch(o){case"arrow":return r?W.jsx(jd,{}):W.jsx(Ox,{});case"caret":return r?W.jsx(KE,{}):W.jsx(GE,{});default:return W.jsx(jd,{})}})()}):W.jsx("div",{className:"flex h-6 w-3 items-center"}),Tl=({node:e,depth:r,expandedKeys:n,selectedKeys:o,actions:a,searchQuery:u,renderNode:l,onNodeClick:f})=>{var h;const{key:p,children:m}=e,w=U.useMemo(()=>({expanded:n.includes(e.key),selected:o.includes(e.key)}),[n,e.key,o]),b=l&&typeof l=="function"?l(e,r,w,a,u):Px(e,r,w,f);return!((h=e.options)!=null&&h.filterable)||!u||e.title.toLowerCase().includes(u.toLowerCase())?W.jsxs(W.Fragment,{children:[W.jsx("div",{className:"flex items-center space-x-2",children:b},p),Cx(m||[],r,u,n,o,w.expanded,a,f,l)]}):null},Tx=function(e,r){var l;const{title:n,icon:o,subtitle:a}=e;let u=null;return o&&(u=W.jsx(Th,{children:o})),W.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:()=>{r&&r(e)},children:[u,W.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:n}),a&&W.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},Cx=function(e,r,n,o,a,u,l,f,p){return e.length&&u?e.map(m=>W.jsx(Tl,{actions:l,node:m,searchQuery:n,depth:r+1,expandedKeys:o,selectedKeys:a,onNodeClick:f,renderNode:p},m.key)):null},Px=function(e,r,n,o){return W.jsxs(W.Fragment,{children:[W.jsx(Ih,{showLines:!0,depth:r}),W.jsx(Lh,{show:e.children&&e.children.length>0||!1,expanded:n.expanded}),Tx(e,o)]})},ia=e=>r=>e===r,Rx=function({treeData:r,renderNode:n,onNodeClick:o,onExpandNode:a,searchQuery:u,expandedKeys:l,expandCondition:f="always",encapsulated:p}){const[m,w]=U.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));U.useEffect(()=>{f==="when-collapsed"&&m.expandedKeys.length>0||w({...m,expandedKeys:l||m.expandedKeys})},[l]);const b=U.useCallback(O=>{if(!O)return;const M=m.expandedKeys.findIndex(ia(O.key));let L=[];M===-1?(L=[...m.expandedKeys,O.key],w(()=>({...m,expandedKeys:L})),a&&a(L)):(L=m.expandedKeys.filter(P=>P!==O.key),w(()=>({...m,expandedKeys:L})),a&&a(L))},[m]),C=U.useCallback(O=>{var L;if(!((L=O==null?void 0:O.options)!=null&&L.selectable))return;m.selectedKeys.findIndex(ia(O.key))===-1&&w({...m,selectedKeys:[...m.selectedKeys,O.key]})},[m]),h=U.useCallback(O=>{var L;if(!((L=O==null?void 0:O.options)!=null&&L.selectable))return;m.selectedKeys.findIndex(ia(O.key))===-1&&w({...m,selectedKeys:[O.key]})},[m]),S=U.useCallback(O=>{var L;if(!((L=O==null?void 0:O.options)!=null&&L.selectable)){w({...m,selectedKeys:[]});return}m.selectedKeys.findIndex(ia(O.key))!==-1&&w({...m,selectedKeys:m.selectedKeys.filter(P=>P!==O.key)})},[m]),y=U.useMemo(()=>({expand:b,select:C,selectSingle:h,deselect:S}),[S,b,C,h]);return W.jsx("div",{className:$t("fd-tree",{"mb-1 rounded border bg-grey-700 p-1":p}),children:r.map(O=>W.jsx(Tl,{node:O,searchQuery:u||"",depth:0,expandedKeys:m.expandedKeys,selectedKeys:m.selectedKeys,actions:y,renderNode:n,onNodeClick:o},O.key))})};function Ax(e){return e.of&&e.children?W.jsx(W.Fragment,{children:e.children}):null}function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ft.apply(this,arguments)}function Mh(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var Ix=/^((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)-.*))$/,Lx=Mh(function(e){return Ix.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Mx=!0;function Dx(e,r,n){var o="";return n.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):o+=a+" "}),o}var Dh=function(r,n,o){var a=r.key+"-"+n.name;(o===!1||Mx===!1)&&r.registered[a]===void 0&&(r.registered[a]=n.styles)},kx=function(r,n,o){Dh(r,n,o);var a=r.key+"-"+n.name;if(r.inserted[n.name]===void 0){var u=n;do r.insert(n===u?"."+a:"",u,r.sheet,!0),u=u.next;while(u!==void 0)}};function Nx(e){for(var r=0,n,o=0,a=e.length;a>=4;++o,a-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var $x={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},Bd=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
72
|
+
`,{_:S}));for(;typeof w[w.length-1]=="string"&&!w[w.length-1].trim();)w.pop();if(r.wrapper===null)return w;const T=r.wrapper||(S?"span":"div");let D;if(w.length>1||r.forceWrapper)D=w;else{if(w.length===1)return D=w[0],typeof D=="string"?o("span",{key:"outer"},D):D;D=null}return I.createElement(T,{key:"outer"},D)}function u(v){const S=v.match(tE);return S?S.reduce(function(w,T,D){const M=T.indexOf("=");if(M!==-1){const R=function(F){return F.indexOf("-")!==-1&&F.match(vE)===null&&(F=F.replace(bE,function(N,Z){return Z.toUpperCase()})),F}(T.slice(0,M)).trim(),k=function(F){const N=F[0];return(N==='"'||N==="'")&&F.length>=2&&F[F.length-1]===N?F.slice(1,-1):F}(T.slice(M+1).trim()),x=Nd[R]||R,W=w[x]=function(F,N){return F==="style"?N.split(/;\s?/).reduce(function(Z,ne){const we=ne.slice(0,ne.indexOf(":"));return Z[we.replace(/(-[a-z])/g,Me=>Me[1].toUpperCase())]=ne.slice(we.length+1).trim(),Z},{}):F==="href"?pi(N):(N.match(mE)&&(N=N.slice(1,N.length-1)),N==="true"||N!=="false"&&N)}(R,k);typeof W=="string"&&(tc.test(W)||nc.test(W))&&(w[x]=I.cloneElement(a(W.trim()),{key:D}))}else T!=="style"&&(w[Nd[T]||T]=!0);return w},{}):null}const c=[],f={},h={blockQuote:{t:Xn(ph),i:Ne.HIGH,l:(v,S,w)=>({v:S(v[0].replace(iE,""),w)}),h:(v,S,w)=>o("blockquote",{key:w.k},S(v.v,w))},breakLine:{t:Yi(oE),i:Ne.HIGH,l:gu,h:(v,S,w)=>o("br",{key:w.k})},breakThematic:{t:Xn(aE),i:Ne.HIGH,l:gu,h:(v,S,w)=>o("hr",{key:w.k})},codeBlock:{t:Xn(vh),i:Ne.MAX,l:v=>({v:v[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(v,S,w)=>o("pre",{key:w.k},o("code",Wr({},v.O,{className:v.M?`lang-${v.M}`:""}),v.v))},codeFenced:{t:Xn(hh),i:Ne.MAX,l:v=>({O:u(v[3]||""),v:v[4],M:v[2]||void 0,type:"codeBlock"})},codeInline:{t:fr(sE),i:Ne.LOW,l:v=>({v:v[2]}),h:(v,S,w)=>o("code",{key:w.k},v.v)},footnote:{t:Xn(lE),i:Ne.MAX,l:v=>(c.push({I:v[2],j:v[1]}),{}),h:yu},footnoteReference:{t:lr(fE),i:Ne.HIGH,l:v=>({v:v[1],B:`#${r.slugify(v[1])}`}),h:(v,S,w)=>o("a",{key:w.k,href:pi(v.B)},o("sup",{key:w.k},v.v))},gfmTask:{t:lr(pE),i:Ne.HIGH,l:v=>({R:v[1].toLowerCase()==="x"}),h:(v,S,w)=>o("input",{checked:v.R,key:w.k,readOnly:!0,type:"checkbox"})},heading:{t:Xn(r.enforceAtxHeadings?gh:mh),i:Ne.HIGH,l:(v,S,w)=>({v:Ra(S,v[2],w),T:r.slugify(v[2]),C:v[1].length}),h:(v,S,w)=>o(`h${v.C}`,{id:v.T,key:w.k},S(v.v,w))},headingSetext:{t:Xn(yh),i:Ne.MAX,l:(v,S,w)=>({v:Ra(S,v[1],w),C:v[2]==="="?1:2,type:"heading"})},htmlComment:{t:Yi(wh),i:Ne.HIGH,l:()=>({}),h:yu},image:{t:fr(KE),i:Ne.HIGH,l:v=>({D:v[1],B:Hd(v[2]),F:v[3]}),h:(v,S,w)=>o("img",{key:w.k,alt:v.D||void 0,title:v.F||void 0,src:pi(v.B)})},link:{t:lr(qE),i:Ne.LOW,l:(v,S,w)=>({v:ZE(S,v[1],w),B:Hd(v[2]),F:v[3]}),h:(v,S,w)=>o("a",{key:w.k,href:pi(v.B),title:v.F},S(v.v,w))},linkAngleBraceStyleDetector:{t:lr(wE),i:Ne.MAX,l:v=>({v:[{v:v[1],type:"text"}],B:v[1],type:"link"})},linkBareUrlDetector:{t:(v,S)=>S.N?null:lr(gE)(v,S),i:Ne.MAX,l:v=>({v:[{v:v[1],type:"text"}],B:v[1],F:void 0,type:"link"})},linkMailtoDetector:{t:lr(yE),i:Ne.MAX,l(v){let S=v[1],w=v[1];return nE.test(w)||(w="mailto:"+w),{v:[{v:S.replace("mailto:",""),type:"text"}],B:w,type:"link"}}},orderedList:Wd(o,1),unorderedList:Wd(o,2),newlineCoalescer:{t:Xn(uE),i:Ne.LOW,l:gu,h:()=>`
|
|
73
|
+
`},paragraph:{t:JE,i:Ne.LOW,l:mu,h:(v,S,w)=>o("p",{key:w.k},S(v.v,w))},ref:{t:lr(_E),i:Ne.MAX,l:v=>(f[v[1]]={B:v[2],F:v[4]},{}),h:yu},refImage:{t:fr(SE),i:Ne.MAX,l:v=>({D:v[1]||void 0,P:v[2]}),h:(v,S,w)=>o("img",{key:w.k,alt:v.D,src:pi(f[v.P].B),title:f[v.P].F})},refLink:{t:lr(EE),i:Ne.MAX,l:(v,S,w)=>({v:S(v[1],w),Z:S(v[0].replace(xE,"\\$1"),w),P:v[2]}),h:(v,S,w)=>f[v.P]?o("a",{key:w.k,href:pi(f[v.P].B),title:f[v.P].F},S(v.v,w)):o("span",{key:w.k},S(v.Z,w))},table:{t:Xn(bh),i:Ne.HIGH,l:VE,h:(v,S,w)=>o("table",{key:w.k},o("thead",null,o("tr",null,v.L.map(function(T,D){return o("th",{key:D,style:Bd(v,D)},S(T,w))}))),o("tbody",null,v.A.map(function(T,D){return o("tr",{key:D},T.map(function(M,R){return o("td",{key:R,style:Bd(v,R)},S(M,w))}))})))},tableSeparator:{t:function(v,S){return S.$?(S._=!0,CE.exec(v)):null},i:Ne.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Yi(jE),i:Ne.MIN,l:v=>({v:v[0].replace(hE,(S,w)=>r.namedCodesToUnicode[w]?r.namedCodesToUnicode[w]:S)}),h:v=>v.v},textBolded:{t:fr(ME),i:Ne.MED,l:(v,S,w)=>({v:S(v[2],w)}),h:(v,S,w)=>o("strong",{key:w.k},S(v.v,w))},textEmphasized:{t:fr(DE),i:Ne.LOW,l:(v,S,w)=>({v:S(v[2],w)}),h:(v,S,w)=>o("em",{key:w.k},S(v.v,w))},textEscaped:{t:fr(NE),i:Ne.HIGH,l:v=>({v:v[1],type:"text"})},textMarked:{t:fr(kE),i:Ne.LOW,l:mu,h:(v,S,w)=>o("mark",{key:w.k},S(v.v,w))},textStrikethroughed:{t:fr($E),i:Ne.LOW,l:mu,h:(v,S,w)=>o("del",{key:w.k},S(v.v,w))}};r.disableParsingRawHTML!==!0&&(h.htmlBlock={t:Yi(tc),i:Ne.HIGH,l(v,S,w){const[,T]=v[3].match(WE),D=new RegExp(`^${T}`,"gm"),M=v[3].replace(D,""),R=(k=M,GE.some(N=>N.test(k))?QE:Ra);var k;const x=v[1].toLowerCase(),W=eE.indexOf(x)!==-1;w.N=w.N||x==="a";const F=W?v[3]:R(S,M,w);return w.N=!1,{O:u(v[2]),v:F,G:W,H:W?x:v[1]}},h:(v,S,w)=>o(v.H,Wr({key:w.k},v.O),v.G?v.v:S(v.v,w))},h.htmlSelfClosing={t:Yi(nc),i:Ne.HIGH,l:v=>({O:u(v[2]||""),H:v[1]}),h:(v,S,w)=>o(v.H,Wr({},v.O,{key:w.k}))});const m=function(v){let S=Object.keys(v);function w(T,D){let M=[],R="";for(;T;){let k=0;for(;k<S.length;){const x=S[k],W=v[x],F=W.t(T,D,R);if(F){const N=F[0];T=T.substring(N.length);const Z=W.l(F,w,D);Z.type==null&&(Z.type=x),M.push(Z),R=N;break}k++}}return M}return S.sort(function(T,D){let M=v[T].i,R=v[D].i;return M!==R?M-R:T<D?-1:1}),function(T,D){return w(function(M){return M.replace(cE,`
|
|
74
|
+
`).replace(dE,"").replace(TE," ")}(T),D)}}(h),y=(_=function(v){return function(S,w,T){return v[S.type].h(S,w,T)}}(h),function v(S,w={}){if(Array.isArray(S)){const T=w.k,D=[];let M=!1;for(let R=0;R<S.length;R++){w.k=R;const k=v(S[R],w),x=typeof k=="string";x&&M?D[D.length-1]+=k:k!==null&&D.push(k),M=x}return w.k=T,D}return _(S,v,w)});var _;const O=a(e);return c.length?o("div",null,O,o("footer",{key:"footer"},c.map(function(v){return o("div",{id:r.slugify(v.j),key:v.j},v.j,y(m(v.I,{_:!0})))}))):O}(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"})(Ne||(Ne={}));const Da=e=>{let{children:r,options:n}=e,o=function(a,u){if(a==null)return{};var c,f,h={},m=Object.keys(a);for(f=0;f<m.length;f++)u.indexOf(c=m[f])>=0||(h[c]=a[c]);return h}(e,QS);return I.cloneElement(tx(r,n),o)},zd=({kind:e})=>{switch(e){case"error":case"danger":return B.jsx(B.Fragment,{children:B.jsx(JS,{className:"flex-none mr-1 h-6 w-6"})});case"info":return B.jsx(B.Fragment,{children:B.jsx($d,{className:"flex-none mr-1 h-5 w-5"})});case"warning":return B.jsx(B.Fragment,{children:B.jsx(ZS,{className:"flex-none mr-1 h-6 w-6"})});case"message":return B.jsx(B.Fragment,{children:B.jsx($d,{className:"flex-none mr-1 h-5 w-5"})});default:return null}},nx=({id:e,onClose:r,kind:n,message:o,markdown:a})=>B.jsx("div",{className:$t("relative flex items-center rounded-xl py-4 font-semibold",{"bg-yellow-100 text-yellow-400":n==="warning","bg-red-200 text-red-500":n==="danger"||n==="error","bg-blue-100 text-blue-900":n==="info","bg-green-200 text-green-500":n==="message","px-14":typeof o=="string","px-4":typeof o!="string"}),children:typeof o=="string"?B.jsxs(B.Fragment,{children:[B.jsx("button",{onClick:r,className:$t("absolute -right-1 -top-1 flex items-center justify-center rounded-full p-1",{"bg-yellow-400":n==="warning","bg-red-500":n==="danger"||n==="error","bg-blue-900":n==="info","bg-green-500":n==="message"}),children:B.jsx(kd,{className:"h-3 w-3 stroke-current text-white"})}),B.jsx(zd,{kind:n}),a?B.jsx(Da,{children:o}):B.jsx(B.Fragment,{children:o})]}):B.jsxs("div",{className:"flex flex-col gap-2",children:[B.jsx("button",{onClick:r,className:$t("absolute right-3 top-3 flex items-center justify-center rounded-full p-1"),children:B.jsx(kd,{className:"stroke-current font-bold"})}),o.map(u=>u.messages.length>0?B.jsxs(B.Fragment,{children:[B.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[B.jsx(zd,{kind:n}),B.jsxs("span",{children:[u.title," :"]})]}),B.jsx("ul",{className:"list-disc px-12",children:u.messages.map(c=>B.jsx("li",{children:a?B.jsx(Da,{children:c}):B.jsx(B.Fragment,{children:c})}))})]}):B.jsx(B.Fragment,{}))]})},e),Lh=({children:e,size:r,className:n,...o})=>B.jsx("div",{style:{"--width":`${r||24}px`},className:$t("h-6 flex items-center pr-1 w-[--width]",n),...o,children:e});var ca,rx=new Uint8Array(16);function Mh(){if(!ca&&(ca=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!ca))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ca(rx)}const ix=/^(?:[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 za(e){return typeof e=="string"&&ix.test(e)}var _t=[];for(var bu=0;bu<256;++bu)_t.push((bu+256).toString(16).substr(1));function qa(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(_t[e[r+0]]+_t[e[r+1]]+_t[e[r+2]]+_t[e[r+3]]+"-"+_t[e[r+4]]+_t[e[r+5]]+"-"+_t[e[r+6]]+_t[e[r+7]]+"-"+_t[e[r+8]]+_t[e[r+9]]+"-"+_t[e[r+10]]+_t[e[r+11]]+_t[e[r+12]]+_t[e[r+13]]+_t[e[r+14]]+_t[e[r+15]]).toLowerCase();if(!za(n))throw TypeError("Stringified UUID is invalid");return n}var qd,_u,Su=0,Eu=0;function ox(e,r,n){var o=r&&n||0,a=r||new Array(16);e=e||{};var u=e.node||qd,c=e.clockseq!==void 0?e.clockseq:_u;if(u==null||c==null){var f=e.random||(e.rng||Mh)();u==null&&(u=qd=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),c==null&&(c=_u=(f[6]<<8|f[7])&16383)}var h=e.msecs!==void 0?e.msecs:Date.now(),m=e.nsecs!==void 0?e.nsecs:Eu+1,y=h-Su+(m-Eu)/1e4;if(y<0&&e.clockseq===void 0&&(c=c+1&16383),(y<0||h>Su)&&e.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Su=h,Eu=m,_u=c,h+=122192928e5;var _=((h&268435455)*1e4+m)%4294967296;a[o++]=_>>>24&255,a[o++]=_>>>16&255,a[o++]=_>>>8&255,a[o++]=_&255;var O=h/4294967296*1e4&268435455;a[o++]=O>>>8&255,a[o++]=O&255,a[o++]=O>>>24&15|16,a[o++]=O>>>16&255,a[o++]=c>>>8|128,a[o++]=c&255;for(var v=0;v<6;++v)a[o+v]=u[v];return r||qa(a)}function Dh(e){if(!za(e))throw TypeError("Invalid UUID");var r,n=new Uint8Array(16);return n[0]=(r=parseInt(e.slice(0,8),16))>>>24,n[1]=r>>>16&255,n[2]=r>>>8&255,n[3]=r&255,n[4]=(r=parseInt(e.slice(9,13),16))>>>8,n[5]=r&255,n[6]=(r=parseInt(e.slice(14,18),16))>>>8,n[7]=r&255,n[8]=(r=parseInt(e.slice(19,23),16))>>>8,n[9]=r&255,n[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=r/4294967296&255,n[12]=r>>>24&255,n[13]=r>>>16&255,n[14]=r>>>8&255,n[15]=r&255,n}function ax(e){e=unescape(encodeURIComponent(e));for(var r=[],n=0;n<e.length;++n)r.push(e.charCodeAt(n));return r}var sx="6ba7b810-9dad-11d1-80b4-00c04fd430c8",ux="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function kh(e,r,n){function o(a,u,c,f){if(typeof a=="string"&&(a=ax(a)),typeof u=="string"&&(u=Dh(u)),u.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var h=new Uint8Array(16+a.length);if(h.set(u),h.set(a,u.length),h=n(h),h[6]=h[6]&15|r,h[8]=h[8]&63|128,c){f=f||0;for(var m=0;m<16;++m)c[f+m]=h[m];return c}return qa(h)}try{o.name=e}catch{}return o.DNS=sx,o.URL=ux,o}function cx(e){if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=new Uint8Array(r.length);for(var n=0;n<r.length;++n)e[n]=r.charCodeAt(n)}return lx(fx(dx(e),e.length*8))}function lx(e){for(var r=[],n=e.length*32,o="0123456789abcdef",a=0;a<n;a+=8){var u=e[a>>5]>>>a%32&255,c=parseInt(o.charAt(u>>>4&15)+o.charAt(u&15),16);r.push(c)}return r}function $h(e){return(e+64>>>9<<4)+14+1}function fx(e,r){e[r>>5]|=128<<r%32,e[$h(r)-1]=r;for(var n=1732584193,o=-271733879,a=-1732584194,u=271733878,c=0;c<e.length;c+=16){var f=n,h=o,m=a,y=u;n=Tt(n,o,a,u,e[c],7,-680876936),u=Tt(u,n,o,a,e[c+1],12,-389564586),a=Tt(a,u,n,o,e[c+2],17,606105819),o=Tt(o,a,u,n,e[c+3],22,-1044525330),n=Tt(n,o,a,u,e[c+4],7,-176418897),u=Tt(u,n,o,a,e[c+5],12,1200080426),a=Tt(a,u,n,o,e[c+6],17,-1473231341),o=Tt(o,a,u,n,e[c+7],22,-45705983),n=Tt(n,o,a,u,e[c+8],7,1770035416),u=Tt(u,n,o,a,e[c+9],12,-1958414417),a=Tt(a,u,n,o,e[c+10],17,-42063),o=Tt(o,a,u,n,e[c+11],22,-1990404162),n=Tt(n,o,a,u,e[c+12],7,1804603682),u=Tt(u,n,o,a,e[c+13],12,-40341101),a=Tt(a,u,n,o,e[c+14],17,-1502002290),o=Tt(o,a,u,n,e[c+15],22,1236535329),n=Ct(n,o,a,u,e[c+1],5,-165796510),u=Ct(u,n,o,a,e[c+6],9,-1069501632),a=Ct(a,u,n,o,e[c+11],14,643717713),o=Ct(o,a,u,n,e[c],20,-373897302),n=Ct(n,o,a,u,e[c+5],5,-701558691),u=Ct(u,n,o,a,e[c+10],9,38016083),a=Ct(a,u,n,o,e[c+15],14,-660478335),o=Ct(o,a,u,n,e[c+4],20,-405537848),n=Ct(n,o,a,u,e[c+9],5,568446438),u=Ct(u,n,o,a,e[c+14],9,-1019803690),a=Ct(a,u,n,o,e[c+3],14,-187363961),o=Ct(o,a,u,n,e[c+8],20,1163531501),n=Ct(n,o,a,u,e[c+13],5,-1444681467),u=Ct(u,n,o,a,e[c+2],9,-51403784),a=Ct(a,u,n,o,e[c+7],14,1735328473),o=Ct(o,a,u,n,e[c+12],20,-1926607734),n=Rt(n,o,a,u,e[c+5],4,-378558),u=Rt(u,n,o,a,e[c+8],11,-2022574463),a=Rt(a,u,n,o,e[c+11],16,1839030562),o=Rt(o,a,u,n,e[c+14],23,-35309556),n=Rt(n,o,a,u,e[c+1],4,-1530992060),u=Rt(u,n,o,a,e[c+4],11,1272893353),a=Rt(a,u,n,o,e[c+7],16,-155497632),o=Rt(o,a,u,n,e[c+10],23,-1094730640),n=Rt(n,o,a,u,e[c+13],4,681279174),u=Rt(u,n,o,a,e[c],11,-358537222),a=Rt(a,u,n,o,e[c+3],16,-722521979),o=Rt(o,a,u,n,e[c+6],23,76029189),n=Rt(n,o,a,u,e[c+9],4,-640364487),u=Rt(u,n,o,a,e[c+12],11,-421815835),a=Rt(a,u,n,o,e[c+15],16,530742520),o=Rt(o,a,u,n,e[c+2],23,-995338651),n=Pt(n,o,a,u,e[c],6,-198630844),u=Pt(u,n,o,a,e[c+7],10,1126891415),a=Pt(a,u,n,o,e[c+14],15,-1416354905),o=Pt(o,a,u,n,e[c+5],21,-57434055),n=Pt(n,o,a,u,e[c+12],6,1700485571),u=Pt(u,n,o,a,e[c+3],10,-1894986606),a=Pt(a,u,n,o,e[c+10],15,-1051523),o=Pt(o,a,u,n,e[c+1],21,-2054922799),n=Pt(n,o,a,u,e[c+8],6,1873313359),u=Pt(u,n,o,a,e[c+15],10,-30611744),a=Pt(a,u,n,o,e[c+6],15,-1560198380),o=Pt(o,a,u,n,e[c+13],21,1309151649),n=Pt(n,o,a,u,e[c+4],6,-145523070),u=Pt(u,n,o,a,e[c+11],10,-1120210379),a=Pt(a,u,n,o,e[c+2],15,718787259),o=Pt(o,a,u,n,e[c+9],21,-343485551),n=pr(n,f),o=pr(o,h),a=pr(a,m),u=pr(u,y)}return[n,o,a,u]}function dx(e){if(e.length===0)return[];for(var r=e.length*8,n=new Uint32Array($h(r)),o=0;o<r;o+=8)n[o>>5]|=(e[o/8]&255)<<o%32;return n}function pr(e,r){var n=(e&65535)+(r&65535),o=(e>>16)+(r>>16)+(n>>16);return o<<16|n&65535}function px(e,r){return e<<r|e>>>32-r}function Ka(e,r,n,o,a,u){return pr(px(pr(pr(r,e),pr(o,u)),a),n)}function Tt(e,r,n,o,a,u,c){return Ka(r&n|~r&o,e,r,a,u,c)}function Ct(e,r,n,o,a,u,c){return Ka(r&o|n&~o,e,r,a,u,c)}function Rt(e,r,n,o,a,u,c){return Ka(r^n^o,e,r,a,u,c)}function Pt(e,r,n,o,a,u,c){return Ka(n^(r|~o),e,r,a,u,c)}var hx=kh("v3",48,cx);const vx=hx;function mx(e,r,n){e=e||{};var o=e.random||(e.rng||Mh)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r){n=n||0;for(var a=0;a<16;++a)r[n+a]=o[a];return r}return qa(o)}function gx(e,r,n,o){switch(e){case 0:return r&n^~r&o;case 1:return r^n^o;case 2:return r&n^r&o^n&o;case 3:return r^n^o}}function xu(e,r){return e<<r|e>>>32-r}function yx(e){var r=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var o=unescape(encodeURIComponent(e));e=[];for(var a=0;a<o.length;++a)e.push(o.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var u=e.length/4+2,c=Math.ceil(u/16),f=new Array(c),h=0;h<c;++h){for(var m=new Uint32Array(16),y=0;y<16;++y)m[y]=e[h*64+y*4]<<24|e[h*64+y*4+1]<<16|e[h*64+y*4+2]<<8|e[h*64+y*4+3];f[h]=m}f[c-1][14]=(e.length-1)*8/Math.pow(2,32),f[c-1][14]=Math.floor(f[c-1][14]),f[c-1][15]=(e.length-1)*8&4294967295;for(var _=0;_<c;++_){for(var O=new Uint32Array(80),v=0;v<16;++v)O[v]=f[_][v];for(var S=16;S<80;++S)O[S]=xu(O[S-3]^O[S-8]^O[S-14]^O[S-16],1);for(var w=n[0],T=n[1],D=n[2],M=n[3],R=n[4],k=0;k<80;++k){var x=Math.floor(k/20),W=xu(w,5)+gx(x,T,D,M)+R+r[x]+O[k]>>>0;R=M,M=D,D=xu(T,30)>>>0,T=w,w=W}n[0]=n[0]+w>>>0,n[1]=n[1]+T>>>0,n[2]=n[2]+D>>>0,n[3]=n[3]+M>>>0,n[4]=n[4]+R>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var wx=kh("v5",80,yx);const bx=wx,_x="00000000-0000-0000-0000-000000000000";function Sx(e){if(!za(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Ex=Object.freeze(Object.defineProperty({__proto__:null,NIL:_x,parse:Dh,stringify:qa,v1:ox,v3:vx,v4:mx,v5:bx,validate:za,version:Sx},Symbol.toStringTag,{value:"Module"})),xx=A_(Ex);function Pc(e,r){if(!e||!r||!e.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=e,this.dstAlphabet=r}Pc.prototype.convert=function(e){var r,n,o,a={},u=this.srcAlphabet.length,c=this.dstAlphabet.length,f=e.length,h=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(r=0;r<f;r++)a[r]=this.srcAlphabet.indexOf(e[r]);do{for(n=0,o=0,r=0;r<f;r++)n=n*u+a[r],n>=c?(a[o++]=parseInt(n/c,10),n=n%c):o>0&&(a[o++]=0);f=o,h=this.dstAlphabet.slice(n,n+1).concat(h)}while(o!==0);return h};Pc.prototype.isValid=function(e){for(var r=0;r<e.length;++r)if(this.srcAlphabet.indexOf(e[r])===-1)return!1;return!0};var Ox=Pc,Tx=Ox;function lo(e,r){var n=new Tx(e,r);return function(o){return n.convert(o)}}lo.BIN="01";lo.OCT="01234567";lo.DEC="0123456789";lo.HEX="0123456789abcdef";var Cx=lo;const{v4:Ou}=xx,la=Cx,Tu="123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",Rx="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",Px={consistentLength:!0};let Cu;const Kd=(e,r,n)=>{const o=r(e.toLowerCase().replace(/-/g,""));return!n||!n.consistentLength?o:o.padStart(n.shortIdLength,n.paddingChar)},Ax=(e,r)=>{const o=r(e).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[o[1],o[2],o[3],o[4],o[5]].join("-")},Ix=e=>Math.ceil(Math.log(2**128)/Math.log(e));var Lx=(()=>{const e=(r,n)=>{const o=r||Tu,a={...Px,...n};if([...new Set(Array.from(o))].length!==o.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const u=Ix(o.length),c={shortIdLength:u,consistentLength:a.consistentLength,paddingChar:o[0]},f=la(la.HEX,o),h=la(o,la.HEX),m=()=>Kd(Ou(),f,c),y={new:m,generate:m,uuid:Ou,fromUUID:_=>Kd(_,f,c),toUUID:_=>Ax(_,h),alphabet:o,maxLength:u};return Object.freeze(y),y};return e.constants={flickrBase58:Tu,cookieBase90:Rx},e.uuid=Ou,e.generate=()=>(Cu||(Cu=e(Tu).generate),Cu()),e})();const Nh=({depth:e,height:r=24,width:n=14,showLines:o=!0})=>{const a=`indent_line_${Lx.generate()}`;return B.jsxs("svg",{viewBox:`0 0 ${12*e} 24`,width:`${12*e}`,height:r,children:[B.jsx("defs",{children:B.jsx("pattern",{id:a,x:"0",y:"0",width:n,height:r,patternUnits:"userSpaceOnUse",children:B.jsx("line",{x1:n/2,y1:"0",x2:n/2,y2:r,stroke:"rgba(255,255,255,0.4)"})})}),o?B.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${12*e}`,height:r}):B.jsx("rect",{fill:o?`url(#${a})`:"",x:"0",y:"0",width:0,height:r})]})},jh=({show:e,expanded:r,onClick:n,variant:o="arrow"})=>e?B.jsx("div",{className:"flex h-6 w-5 items-center",onClick:a=>n&&n(a),children:(()=>{switch(o){case"arrow":return B.jsx(vu,{className:$t(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":r,"-rotate-90":!r}])});case"caret":return r?B.jsx(vu,{}):B.jsx(VS,{});default:return B.jsx(vu,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):B.jsx("div",{className:"flex h-6 w-3 items-center"}),Ac=({node:e,depth:r,expandedKeys:n,selectedKeys:o,actions:a,searchQuery:u,renderNode:c,onNodeClick:f})=>{var v;const{key:h,children:m}=e,y=q.useMemo(()=>({expanded:n.includes(e.key),selected:o.includes(e.key)}),[n,e.key,o]),_=c&&typeof c=="function"?c(e,r,y,a,u):kx(e,r,y,f);return!((v=e.options)!=null&&v.filterable)||!u||e.title.toLowerCase().includes(u.toLowerCase())?B.jsxs(B.Fragment,{children:[B.jsx("div",{className:"flex items-center space-x-2",children:_},h),Dx(m||[],r,u,n,o,y.expanded,a,f,c)]}):null},Mx=function(e,r){var c;const{title:n,icon:o,subtitle:a}=e;let u=null;return o&&(u=B.jsx(Lh,{children:o})),B.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(c=e.options)==null?void 0:c.draggable,onClick:()=>{r&&r(e)},children:[u,B.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:n}),a&&B.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:a})]})},Dx=function(e,r,n,o,a,u,c,f,h){return e.length&&u?e.map(m=>B.jsx(Ac,{actions:c,node:m,searchQuery:n,depth:r+1,expandedKeys:o,selectedKeys:a,onNodeClick:f,renderNode:h},m.key)):null},kx=function(e,r,n,o){return B.jsxs(B.Fragment,{children:[B.jsx(Nh,{showLines:!0,depth:r}),B.jsx(jh,{show:e.children&&e.children.length>0||!1,expanded:n.expanded}),Mx(e,o)]})},fa=e=>r=>e===r,$x=function({treeData:r,renderNode:n,onNodeClick:o,onExpandNode:a,searchQuery:u,expandedKeys:c,expandCondition:f="always",encapsulated:h}){const[m,y]=q.useState(()=>({expandedKeys:c||[],selectedKeys:[]}));q.useEffect(()=>{f==="when-collapsed"&&m.expandedKeys.length>0||y({...m,expandedKeys:c||m.expandedKeys})},[c]);const _=q.useCallback(T=>{if(!T)return;const D=m.expandedKeys.findIndex(fa(T.key));let M=[];D===-1?(M=[...m.expandedKeys,T.key],y(()=>({...m,expandedKeys:M})),a&&a(M)):(M=m.expandedKeys.filter(R=>R!==T.key),y(()=>({...m,expandedKeys:M})),a&&a(M))},[m]),O=q.useCallback(T=>{var M;if(!((M=T==null?void 0:T.options)!=null&&M.selectable))return;m.selectedKeys.findIndex(fa(T.key))===-1&&y({...m,selectedKeys:[...m.selectedKeys,T.key]})},[m]),v=q.useCallback(T=>{var M;if(!((M=T==null?void 0:T.options)!=null&&M.selectable))return;m.selectedKeys.findIndex(fa(T.key))===-1&&y({...m,selectedKeys:[T.key]})},[m]),S=q.useCallback(T=>{var M;if(!((M=T==null?void 0:T.options)!=null&&M.selectable)){y({...m,selectedKeys:[]});return}m.selectedKeys.findIndex(fa(T.key))!==-1&&y({...m,selectedKeys:m.selectedKeys.filter(R=>R!==T.key)})},[m]),w=q.useMemo(()=>({expand:_,select:O,selectSingle:v,deselect:S}),[S,_,O,v]);return B.jsx("div",{className:$t("fd-tree",{"mb-1 rounded border bg-grey-900 p-1":h}),children:r.map(T=>B.jsx(Ac,{node:T,searchQuery:u||"",depth:0,expandedKeys:m.expandedKeys,selectedKeys:m.selectedKeys,actions:w,renderNode:n,onNodeClick:o},T.key))})};function Nx(e){return e.of&&e.children?B.jsx(B.Fragment,{children:e.children}):null}function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},gt.apply(this,arguments)}function Fh(e){var r=Object.create(null);return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var jx=/^((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)-.*))$/,Fx=Fh(function(e){return jx.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Wx=!0;function Ux(e,r,n){var o="";return n.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):o+=a+" "}),o}var Wh=function(r,n,o){var a=r.key+"-"+n.name;(o===!1||Wx===!1)&&r.registered[a]===void 0&&(r.registered[a]=n.styles)},Bx=function(r,n,o){Wh(r,n,o);var a=r.key+"-"+n.name;if(r.inserted[n.name]===void 0){var u=n;do r.insert(n===u?"."+a:"",u,r.sheet,!0),u=u.next;while(u!==void 0)}};function Hx(e){for(var r=0,n,o=0,a=e.length;a>=4;++o,a-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(o+2)&255)<<16;case 2:r^=(e.charCodeAt(o+1)&255)<<8;case 1:r^=e.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var zx={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},Gd=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
47
75
|
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';".
|
|
48
76
|
You can read more about this here:
|
|
49
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,
|
|
77
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,qx="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Kx=/[A-Z]|^ms/g,Uh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ic=function(r){return r.charCodeAt(1)===45},Yd=function(r){return r!=null&&typeof r!="boolean"},Ru=Fh(function(e){return Ic(e)?e:e.replace(Kx,"-$&").toLowerCase()}),ka=function(r,n){switch(r){case"animation":case"animationName":if(typeof n=="string")return n.replace(Uh,function(o,a,u){return Cn={name:a,styles:u,next:Cn},a})}return zx[r]!==1&&!Ic(r)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var Gx=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Yx=["normal","none","initial","inherit","unset"],Xx=ka,Vx=/^-ms-/,Jx=/-(.)/g,Xd={};ka=function(r,n){if(r==="content"&&(typeof n!="string"||Yx.indexOf(n)===-1&&!Gx.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var o=Xx(r,n);return o!==""&&!Ic(r)&&r.indexOf("-")!==-1&&Xd[r]===void 0&&(Xd[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(Vx,"ms-").replace(Jx,function(a,u){return u.toUpperCase()})+"?")),o}}var Bh="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function no(e,r,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Bh);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Cn={name:n.name,styles:n.styles,next:Cn},n.name;if(n.styles!==void 0){var o=n.next;if(o!==void 0)for(;o!==void 0;)Cn={name:o.name,styles:o.styles,next:Cn},o=o.next;var a=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(a+=n.map),a}return Zx(e,r,n)}case"function":{if(e!==void 0){var u=Cn,c=n(e);return Cn=u,no(e,r,c)}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 f=[],h=n.replace(Uh,function(y,_,O){var v="animation"+f.length;return f.push("const "+v+" = keyframes`"+O.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+v+"}"});f.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(f,["`"+h+"`"]).join(`
|
|
50
78
|
`)+`
|
|
51
79
|
|
|
52
80
|
You should wrap it with \`css\` like this:
|
|
53
81
|
|
|
54
|
-
`+("css`"+
|
|
82
|
+
`+("css`"+h+"`"))}break}if(r==null)return n;var m=r[n];return m!==void 0?m:n}function Zx(e,r,n){var o="";if(Array.isArray(n))for(var a=0;a<n.length;a++)o+=no(e,r,n[a])+";";else for(var u in n){var c=n[u];if(typeof c!="object")r!=null&&r[c]!==void 0?o+=u+"{"+r[c]+"}":Yd(c)&&(o+=Ru(u)+":"+ka(u,c)+";");else{if(u==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Bh);if(Array.isArray(c)&&typeof c[0]=="string"&&(r==null||r[c[0]]===void 0))for(var f=0;f<c.length;f++)Yd(c[f])&&(o+=Ru(u)+":"+ka(u,c[f])+";");else{var h=no(e,r,c);switch(u){case"animation":case"animationName":{o+=Ru(u)+":"+h+";";break}default:process.env.NODE_ENV!=="production"&&u==="undefined"&&console.error(qx),o+=u+"{"+h+"}"}}}}return o}var Vd=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Hh;process.env.NODE_ENV!=="production"&&(Hh=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Cn,Qx=function(r,n,o){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var a=!0,u="";Cn=void 0;var c=r[0];c==null||c.raw===void 0?(a=!1,u+=no(o,n,c)):(process.env.NODE_ENV!=="production"&&c[0]===void 0&&console.error(Gd),u+=c[0]);for(var f=1;f<r.length;f++)u+=no(o,n,r[f]),a&&(process.env.NODE_ENV!=="production"&&c[f]===void 0&&console.error(Gd),u+=c[f]);var h;process.env.NODE_ENV!=="production"&&(u=u.replace(Hh,function(O){return h=O,""})),Vd.lastIndex=0;for(var m="",y;(y=Vd.exec(u))!==null;)m+="-"+y[1];var _=Hx(u)+m;return process.env.NODE_ENV!=="production"?{name:_,styles:u,map:h,next:Cn,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:_,styles:u,next:Cn}},eO=function(r){return r()},tO=I["useInsertionEffect"]?I["useInsertionEffect"]:!1,nO=tO||eO,rO=Fx,iO=function(r){return r!=="theme"},Jd=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?rO:iO},Zd=function(r,n,o){var a;if(n){var u=n.shouldForwardProp;a=r.__emotion_forwardProp&&u?function(c){return r.__emotion_forwardProp(c)&&u(c)}:u}return typeof a!="function"&&o&&(a=r.__emotion_forwardProp),a},Qd=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
55
83
|
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';".
|
|
56
84
|
You can read more about this here:
|
|
57
|
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,
|
|
58
|
-
You may have forgotten to import it.`);var o=r.__emotion_real===r,a=o&&r.__emotion_base||r,u,
|
|
59
|
-
.`.concat(
|
|
85
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,oO=function(r){var n=r.cache,o=r.serialized,a=r.isStringTag;return Wh(n,o,a),nO(function(){return Bx(n,o,a)}),null},aO=function e(r,n){if(process.env.NODE_ENV!=="production"&&r===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
|
86
|
+
You may have forgotten to import it.`);var o=r.__emotion_real===r,a=o&&r.__emotion_base||r,u,c;n!==void 0&&(u=n.label,c=n.target);var f=Zd(r,n,o),h=f||Jd(a),m=!h("as");return function(){var y=arguments,_=o&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(u!==void 0&&_.push("label:"+u+";"),y[0]==null||y[0].raw===void 0)_.push.apply(_,y);else{process.env.NODE_ENV!=="production"&&y[0][0]===void 0&&console.error(Qd),_.push(y[0][0]);for(var O=y.length,v=1;v<O;v++)process.env.NODE_ENV!=="production"&&y[0][v]===void 0&&console.error(Qd),_.push(y[v],y[0][v])}var S=Vu.withEmotionCache(function(w,T,D){var M=m&&w.as||a,R="",k=[],x=w;if(w.theme==null){x={};for(var W in w)x[W]=w[W];x.theme=I.useContext(Vu.ThemeContext)}typeof w.className=="string"?R=Ux(T.registered,k,w.className):w.className!=null&&(R=w.className+" ");var F=Qx(_.concat(k),T.registered,x);R+=T.key+"-"+F.name,c!==void 0&&(R+=" "+c);var N=m&&f===void 0?Jd(M):h,Z={};for(var ne in w)m&&ne==="as"||N(ne)&&(Z[ne]=w[ne]);return Z.className=R,Z.ref=D,I.createElement(I.Fragment,null,I.createElement(oO,{cache:T,serialized:F,isStringTag:typeof M=="string"}),I.createElement(M,Z))});return S.displayName=u!==void 0?u:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",S.defaultProps=r.defaultProps,S.__emotion_real=S,S.__emotion_base=a,S.__emotion_styles=_,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return c===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+c}}),S.withComponent=function(w,T){return e(w,gt({},n,T,{shouldForwardProp:Zd(S,T,!0)})).apply(void 0,_)},S}},sO=["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"],$a=aO.bind();sO.forEach(function(e){$a[e]=$a(e)});var uO=function(e){if(typeof document>"u")return null;var r=Array.isArray(e)?e[0]:e;return r.ownerDocument.body},hi=new WeakMap,da=new WeakMap,pa={},Pu=0,zh=function(e){return e&&(e.host||zh(e.parentNode))},cO=function(e,r){return r.map(function(n){if(e.contains(n))return n;var o=zh(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},lO=function(e,r,n,o){var a=cO(r,Array.isArray(e)?e:[e]);pa[n]||(pa[n]=new WeakMap);var u=pa[n],c=[],f=new Set,h=new Set(a),m=function(_){!_||f.has(_)||(f.add(_),m(_.parentNode))};a.forEach(m);var y=function(_){!_||h.has(_)||Array.prototype.forEach.call(_.children,function(O){if(f.has(O))y(O);else{var v=O.getAttribute(o),S=v!==null&&v!=="false",w=(hi.get(O)||0)+1,T=(u.get(O)||0)+1;hi.set(O,w),u.set(O,T),c.push(O),w===1&&S&&da.set(O,!0),T===1&&O.setAttribute(n,"true"),S||O.setAttribute(o,"true")}})};return y(r),f.clear(),Pu++,function(){c.forEach(function(_){var O=hi.get(_)-1,v=u.get(_)-1;hi.set(_,O),u.set(_,v),O||(da.has(_)||_.removeAttribute(o),da.delete(_)),v||_.removeAttribute(n)}),Pu--,Pu||(hi=new WeakMap,hi=new WeakMap,da=new WeakMap,pa={})}},fO=function(e,r,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=r||uO(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),lO(o,a,n,"aria-hidden")):function(){return null}},rc=function(e,r){return rc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},rc(e,r)};function Ga(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");rc(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var Mn=function(){return Mn=Object.assign||function(r){for(var n,o=1,a=arguments.length;o<a;o++){n=arguments[o];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(r[u]=n[u])}return r},Mn.apply(this,arguments)};function qh(e,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n}function ic(e){var r=typeof Symbol=="function"&&Symbol.iterator,n=r&&e[r],o=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Na(e,r){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),a,u=[],c;try{for(;(r===void 0||r-- >0)&&!(a=o.next()).done;)u.push(a.value)}catch(f){c={error:f}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(c)throw c.error}}return u}function ro(e,r,n){if(n||arguments.length===2)for(var o=0,a=r.length,u;o<a;o++)(u||!(o in r))&&(u||(u=Array.prototype.slice.call(r,0,o)),u[o]=r[o]);return e.concat(u||Array.prototype.slice.call(r))}var Pa="right-scroll-bar-position",Aa="width-before-scroll-bar",dO="with-scroll-bars-hidden",pO="--removed-body-scroll-bar-size";function hO(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function vO(e,r){var n=q.useState(function(){return{value:e,callback:r,facade:{get current(){return n.value},set current(o){var a=n.value;a!==o&&(n.value=o,n.callback(o,a))}}}})[0];return n.callback=r,n.facade}function mO(e,r){return vO(r||null,function(n){return e.forEach(function(o){return hO(o,n)})})}function gO(e){return e}function yO(e,r){r===void 0&&(r=gO);var n=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(u){var c=r(u,o);return n.push(c),function(){n=n.filter(function(f){return f!==c})}},assignSyncMedium:function(u){for(o=!0;n.length;){var c=n;n=[],c.forEach(u)}n={push:function(f){return u(f)},filter:function(){return n}}},assignMedium:function(u){o=!0;var c=[];if(n.length){var f=n;n=[],f.forEach(u),c=n}var h=function(){var y=c;c=[],y.forEach(u)},m=function(){return Promise.resolve().then(h)};m(),n={push:function(y){c.push(y),m()},filter:function(y){return c=c.filter(y),n}}}};return a}function wO(e){e===void 0&&(e={});var r=yO(null);return r.options=Mn({async:!0,ssr:!1},e),r}var Kh=function(e){var r=e.sideCar,n=qh(e,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return I.createElement(o,Mn({},n))};Kh.isSideCarExport=!0;function bO(e,r){return e.useMedium(r),Kh}var Gh=wO(),Au=function(){},Ya=I.forwardRef(function(e,r){var n=I.useRef(null),o=I.useState({onScrollCapture:Au,onWheelCapture:Au,onTouchMoveCapture:Au}),a=o[0],u=o[1],c=e.forwardProps,f=e.children,h=e.className,m=e.removeScrollBar,y=e.enabled,_=e.shards,O=e.sideCar,v=e.noIsolation,S=e.inert,w=e.allowPinchZoom,T=e.as,D=T===void 0?"div":T,M=e.gapMode,R=qh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=O,x=mO([n,r]),W=Mn(Mn({},R),a);return I.createElement(I.Fragment,null,y&&I.createElement(k,{sideCar:Gh,removeScrollBar:m,shards:_,noIsolation:v,inert:S,setCallbacks:u,allowPinchZoom:!!w,lockRef:n,gapMode:M}),c?I.cloneElement(I.Children.only(f),Mn(Mn({},W),{ref:x})):I.createElement(D,Mn({},W,{className:h,ref:x}),f))});Ya.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ya.classNames={fullWidth:Aa,zeroRight:Pa};var ep,_O=function(){if(ep)return ep;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function SO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=_O();return r&&e.setAttribute("nonce",r),e}function EO(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function xO(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var OO=function(){var e=0,r=null;return{add:function(n){e==0&&(r=SO())&&(EO(r,n),xO(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},TO=function(){var e=OO();return function(r,n){I.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&n])}},Yh=function(){var e=TO(),r=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return r},CO={left:0,top:0,right:0,gap:0},Iu=function(e){return parseInt(e||"",10)||0},RO=function(e){var r=window.getComputedStyle(document.body),n=r[e==="padding"?"paddingLeft":"marginLeft"],o=r[e==="padding"?"paddingTop":"marginTop"],a=r[e==="padding"?"paddingRight":"marginRight"];return[Iu(n),Iu(o),Iu(a)]},PO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return CO;var r=RO(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},AO=Yh(),IO=function(e,r,n,o){var a=e.left,u=e.top,c=e.right,f=e.gap;return n===void 0&&(n="margin"),`
|
|
87
|
+
.`.concat(dO,` {
|
|
60
88
|
overflow: hidden `).concat(o,`;
|
|
61
89
|
padding-right: `).concat(f,"px ").concat(o,`;
|
|
62
90
|
}
|
|
@@ -66,65 +94,65 @@ You may have forgotten to import it.`);var o=r.__emotion_real===r,a=o&&r.__emoti
|
|
|
66
94
|
`).concat([r&&"position: relative ".concat(o,";"),n==="margin"&&`
|
|
67
95
|
padding-left: `.concat(a,`px;
|
|
68
96
|
padding-top: `).concat(u,`px;
|
|
69
|
-
padding-right: `).concat(
|
|
97
|
+
padding-right: `).concat(c,`px;
|
|
70
98
|
margin-left:0;
|
|
71
99
|
margin-top:0;
|
|
72
100
|
margin-right: `).concat(f,"px ").concat(o,`;
|
|
73
101
|
`),n==="padding"&&"padding-right: ".concat(f,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
74
102
|
}
|
|
75
103
|
|
|
76
|
-
.`).concat(
|
|
104
|
+
.`).concat(Pa,` {
|
|
77
105
|
right: `).concat(f,"px ").concat(o,`;
|
|
78
106
|
}
|
|
79
107
|
|
|
80
|
-
.`).concat(
|
|
108
|
+
.`).concat(Aa,` {
|
|
81
109
|
margin-right: `).concat(f,"px ").concat(o,`;
|
|
82
110
|
}
|
|
83
111
|
|
|
84
|
-
.`).concat(
|
|
112
|
+
.`).concat(Pa," .").concat(Pa,` {
|
|
85
113
|
right: 0 `).concat(o,`;
|
|
86
114
|
}
|
|
87
115
|
|
|
88
|
-
.`).concat(
|
|
116
|
+
.`).concat(Aa," .").concat(Aa,` {
|
|
89
117
|
margin-right: 0 `).concat(o,`;
|
|
90
118
|
}
|
|
91
119
|
|
|
92
120
|
body {
|
|
93
|
-
`).concat(
|
|
121
|
+
`).concat(pO,": ").concat(f,`px;
|
|
94
122
|
}
|
|
95
|
-
`)},
|
|
123
|
+
`)},LO=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o,u=I.useMemo(function(){return PO(a)},[a]);return I.createElement(AO,{styles:IO(u,!r,a,n?"":"!important")})},oc=!1;if(typeof window<"u")try{var ha=Object.defineProperty({},"passive",{get:function(){return oc=!0,!0}});window.addEventListener("test",ha,ha),window.removeEventListener("test",ha,ha)}catch{oc=!1}var vi=oc?{passive:!1}:!1,MO=function(e){return e.tagName==="TEXTAREA"},Xh=function(e,r){var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!MO(e)&&n[r]==="visible")},DO=function(e){return Xh(e,"overflowY")},kO=function(e){return Xh(e,"overflowX")},tp=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=Vh(e,o);if(a){var u=Jh(e,o),c=u[1],f=u[2];if(c>f)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},$O=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},NO=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},Vh=function(e,r){return e==="v"?DO(r):kO(r)},Jh=function(e,r){return e==="v"?$O(r):NO(r)},jO=function(e,r){return e==="h"&&r==="rtl"?-1:1},FO=function(e,r,n,o,a){var u=jO(e,window.getComputedStyle(r).direction),c=u*o,f=n.target,h=r.contains(f),m=!1,y=c>0,_=0,O=0;do{var v=Jh(e,f),S=v[0],w=v[1],T=v[2],D=w-T-u*S;(S||D)&&Vh(e,f)&&(_+=D,O+=S),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!h&&f!==document.body||h&&(r.contains(f)||r===f));return(y&&(a&&Math.abs(_)<1||!a&&c>_)||!y&&(a&&Math.abs(O)<1||!a&&-c>O))&&(m=!0),m},va=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},np=function(e){return[e.deltaX,e.deltaY]},rp=function(e){return e&&"current"in e?e.current:e},WO=function(e,r){return e[0]===r[0]&&e[1]===r[1]},UO=function(e){return`
|
|
96
124
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
97
125
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
98
|
-
`)},kO=0,ni=[];function NO(e){var r=A.useRef([]),n=A.useRef([0,0]),o=A.useRef(),a=A.useState(kO++)[0],u=A.useState(Hh)[0],l=A.useRef(e);A.useEffect(function(){l.current=e},[e]),A.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var y=Ui([e.lockRef.current],(e.shards||[]).map(Jd),!0).filter(Boolean);return y.forEach(function(O){return O.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(O){return O.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=A.useCallback(function(y,O){if("touches"in y&&y.touches.length===2)return!l.current.allowPinchZoom;var M=ua(y),L=n.current,P="deltaX"in y?y.deltaX:L[0]-M[0],D="deltaY"in y?y.deltaY:L[1]-M[1],E,N=y.target,F=Math.abs(P)>Math.abs(D)?"h":"v";if("touches"in y&&F==="h"&&N.type==="range")return!1;var $=Xd(F,N);if(!$)return!0;if($?E=F:(E=F==="v"?"h":"v",$=Xd(F,N)),!$)return!1;if(!o.current&&"changedTouches"in y&&(P||D)&&(o.current=E),!E)return!0;var J=o.current||E;return LO(J,O,y,J==="h"?P:D,!0)},[]),p=A.useCallback(function(y){var O=y;if(!(!ni.length||ni[ni.length-1]!==u)){var M="deltaY"in O?Vd(O):ua(O),L=r.current.filter(function(E){return E.name===O.type&&(E.target===O.target||O.target===E.shadowParent)&&MO(E.delta,M)})[0];if(L&&L.should){O.cancelable&&O.preventDefault();return}if(!L){var P=(l.current.shards||[]).map(Jd).filter(Boolean).filter(function(E){return E.contains(O.target)}),D=P.length>0?f(O,P[0]):!l.current.noIsolation;D&&O.cancelable&&O.preventDefault()}}},[]),m=A.useCallback(function(y,O,M,L){var P={name:y,delta:O,target:M,should:L,shadowParent:$O(M)};r.current.push(P),setTimeout(function(){r.current=r.current.filter(function(D){return D!==P})},1)},[]),w=A.useCallback(function(y){n.current=ua(y),o.current=void 0},[]),b=A.useCallback(function(y){m(y.type,Vd(y),y.target,f(y,e.lockRef.current))},[]),C=A.useCallback(function(y){m(y.type,ua(y),y.target,f(y,e.lockRef.current))},[]);A.useEffect(function(){return ni.push(u),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:C}),document.addEventListener("wheel",p,ti),document.addEventListener("touchmove",p,ti),document.addEventListener("touchstart",w,ti),function(){ni=ni.filter(function(y){return y!==u}),document.removeEventListener("wheel",p,ti),document.removeEventListener("touchmove",p,ti),document.removeEventListener("touchstart",w,ti)}},[]);var h=e.removeScrollBar,S=e.inert;return A.createElement(A.Fragment,null,S?A.createElement(u,{styles:DO(a)}):null,h?A.createElement(OO,{gapMode:e.gapMode}):null)}function $O(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const FO=pO(Bh,NO);var Kh=A.forwardRef(function(e,r){return A.createElement(Ba,On({},e,{ref:r,sideCar:FO}))});Kh.classNames=Ba.classNames;const WO=Kh,zi=globalThis!=null&&globalThis.document?A.useLayoutEffect:()=>{},jO=A["useId".toString()]||(()=>{});let BO=0;function HO(e){const[r,n]=A.useState(jO());return zi(()=>{e||n(o=>o??String(BO++))},[e]),e||(r?`radix-${r}`:"")}function Gh(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Dr(...e){return A.useCallback(Gh(...e),e)}const Yh=A.forwardRef((e,r)=>{const{children:n,...o}=e;return A.Children.toArray(n).some(Zd)?A.createElement(A.Fragment,null,A.Children.map(n,a=>Zd(a)?A.createElement(nl,ft({},o,{ref:r}),a.props.children):a)):A.createElement(nl,ft({},o,{ref:r}),n)});Yh.displayName="Slot";const nl=A.forwardRef((e,r)=>{const{children:n,...o}=e;return A.isValidElement(n)?A.cloneElement(n,{...zO(o,n.props),ref:Gh(r,n.ref)}):A.Children.count(n)>1?A.Children.only(null):null});nl.displayName="SlotClone";const UO=({children:e})=>A.createElement(A.Fragment,null,e);function Zd(e){return A.isValidElement(e)&&e.type===UO}function zO(e,r){const n={...r};for(const o in r){const a=e[o],u=r[o];/^on[A-Z]/.test(o)?n[o]=(...l)=>{u==null||u(...l),a==null||a(...l)}:o==="style"?n[o]={...a,...u}:o==="className"&&(n[o]=[a,u].filter(Boolean).join(" "))}return{...e,...n}}const li=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>({...e,[r]:A.forwardRef((n,o)=>{const{asChild:a,...u}=n,l=a?Yh:r;return A.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),A.createElement(l,ft({},u,{ref:o}))})}),{}),Xh=e=>{const{present:r,children:n}=e,o=function(l){const[f,p]=A.useState(),m=A.useRef({}),w=A.useRef(l),b=A.useRef("none"),C=l?"mounted":"unmounted",[h,S]=function(y,O){return A.useReducer((M,L)=>{const P=O[M][L];return P??M},y)}(C,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return A.useEffect(()=>{const y=la(m.current);b.current=h==="mounted"?y:"none"},[h]),zi(()=>{const y=m.current,O=w.current;if(O!==l){const M=b.current,L=la(y);l?S("MOUNT"):L==="none"||(y==null?void 0:y.display)==="none"?S("UNMOUNT"):S(O&&M!==L?"ANIMATION_OUT":"UNMOUNT"),w.current=l}},[l,S]),zi(()=>{if(f){const y=M=>{const L=la(m.current).includes(M.animationName);M.target===f&&L&&S("ANIMATION_END")},O=M=>{M.target===f&&(b.current=la(m.current))};return f.addEventListener("animationstart",O),f.addEventListener("animationcancel",y),f.addEventListener("animationend",y),()=>{f.removeEventListener("animationstart",O),f.removeEventListener("animationcancel",y),f.removeEventListener("animationend",y)}}S("ANIMATION_END")},[f,S]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:A.useCallback(y=>{y&&(m.current=getComputedStyle(y)),p(y)},[])}}(r),a=typeof n=="function"?n({present:o.isPresent}):A.Children.only(n),u=Dr(o.ref,a.ref);return typeof n=="function"||o.isPresent?A.cloneElement(a,{ref:u}):null};function la(e){return(e==null?void 0:e.animationName)||"none"}Xh.displayName="Presence";let Ru=0;function qO(){A.useEffect(()=>{var e,r;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Qd()),document.body.insertAdjacentElement("beforeend",(r=n[1])!==null&&r!==void 0?r:Qd()),Ru++,()=>{Ru===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ru--}},[])}function Qd(){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 Vh=A.forwardRef((e,r)=>{var n,o;const{containerRef:a,style:u,...l}=e,f=(n=a==null?void 0:a.current)!==null&&n!==void 0?n:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,p]=A.useState({});return zi(()=>{p({})},[]),f?ka.createPortal(A.createElement(li.div,ft({"data-radix-portal":""},l,{ref:r,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),f):null});function Mr(e){const r=A.useRef(e);return A.useEffect(()=>{r.current=e}),A.useMemo(()=>(...n)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...n)},[])}const ep={bubbles:!1,cancelable:!0},KO=A.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...l}=e,[f,p]=A.useState(null),m=Mr(a),w=Mr(u),b=A.useRef(null),C=Dr(r,y=>p(y)),h=A.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;A.useEffect(()=>{if(o){let y=function(M){if(h.paused||!f)return;const L=M.target;f.contains(L)?b.current=L:Er(b.current,{select:!0})},O=function(M){!h.paused&&f&&(f.contains(M.relatedTarget)||Er(b.current,{select:!0}))};return document.addEventListener("focusin",y),document.addEventListener("focusout",O),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",O)}}},[o,f,h.paused]),A.useEffect(()=>{if(f){rp.add(h);const O=document.activeElement;if(!f.contains(O)){const M=new Event("focusScope.autoFocusOnMount",ep);f.addEventListener("focusScope.autoFocusOnMount",m),f.dispatchEvent(M),M.defaultPrevented||(function(L,{select:P=!1}={}){const D=document.activeElement;for(const E of L)if(Er(E,{select:P}),document.activeElement!==D)return}((y=tp(f),y.filter(L=>L.tagName!=="A")),{select:!0}),document.activeElement===O&&Er(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout(()=>{const M=new Event("focusScope.autoFocusOnUnmount",ep);f.addEventListener("focusScope.autoFocusOnUnmount",w),f.dispatchEvent(M),M.defaultPrevented||Er(O??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",w),rp.remove(h)},0)}}var y},[f,m,w,h]);const S=A.useCallback(y=>{if(!n&&!o||h.paused)return;const O=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,M=document.activeElement;if(O&&M){const L=y.currentTarget,[P,D]=function(E){const N=tp(E),F=np(N,E),$=np(N.reverse(),E);return[F,$]}(L);P&&D?y.shiftKey||M!==D?y.shiftKey&&M===P&&(y.preventDefault(),n&&Er(D,{select:!0})):(y.preventDefault(),n&&Er(P,{select:!0})):M===L&&y.preventDefault()}},[n,o,h.paused]);return A.createElement(li.div,ft({tabIndex:-1},l,{ref:C,onKeyDown:S}))});function tp(e){const r=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function np(e,r){for(const n of e)if(!GO(n,{upTo:r}))return n}function GO(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Er(e,{select:r=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(o){return o instanceof HTMLInputElement&&"select"in o}(e)&&r&&e.select()}}const rp=function(){let e=[];return{add(r){const n=e[0];r!==n&&(n==null||n.pause()),e=ip(e,r),e.unshift(r)},remove(r){var n;e=ip(e,r),(n=e[0])===null||n===void 0||n.resume()}}}();function ip(e,r){const n=[...e],o=n.indexOf(r);return o!==-1&&n.splice(o,1),n}function YO(e){const r=Mr(e);A.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}let op,ca=0;function XO({disabled:e}){const r=A.useRef(!1);zi(()=>{if(e){let n=function(){ca--,ca===0&&(document.body.style.pointerEvents=op)},o=function(a){r.current=a.pointerType!=="mouse"};return ca===0&&(op=document.body.style.pointerEvents),document.body.style.pointerEvents="none",ca++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function Ar(e,r,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return r==null?void 0:r(o)}}const VO=A.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),JO=A.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:l,onDismiss:f,...p}=e,m=A.useContext(VO),[w,b]=A.useState(null),[,C]=A.useState({}),h=Dr(r,N=>b(N)),S=Array.from(m.layers),[y]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),O=S.indexOf(y),M=w?S.indexOf(w):-1,L=m.layersWithOutsidePointerEventsDisabled.size>0,P=M>=O,D=function(N){const F=Mr(N),$=A.useRef(!1);return A.useEffect(()=>{const J=pe=>{pe.target&&!$.current&&sp("dismissableLayer.pointerDownOutside",F,{originalEvent:pe}),$.current=!1},Q=window.setTimeout(()=>{document.addEventListener("pointerdown",J)},0);return()=>{window.clearTimeout(Q),document.removeEventListener("pointerdown",J)}},[F]),{onPointerDownCapture:()=>$.current=!0}}(N=>{const F=N.target,$=[...m.branches].some(J=>J.contains(F));P&&!$&&(a==null||a(N),l==null||l(N),N.defaultPrevented||f==null||f())}),E=function(N){const F=Mr(N),$=A.useRef(!1);return A.useEffect(()=>{const J=Q=>{Q.target&&!$.current&&sp("dismissableLayer.focusOutside",F,{originalEvent:Q})};return document.addEventListener("focusin",J),()=>document.removeEventListener("focusin",J)},[F]),{onFocusCapture:()=>$.current=!0,onBlurCapture:()=>$.current=!1}}(N=>{const F=N.target;[...m.branches].some($=>$.contains(F))||(u==null||u(N),l==null||l(N),N.defaultPrevented||f==null||f())});return YO(N=>{M===m.layers.size-1&&(o==null||o(N),N.defaultPrevented||f==null||f())}),XO({disabled:n}),A.useEffect(()=>{w&&(n&&m.layersWithOutsidePointerEventsDisabled.add(w),m.layers.add(w),ap())},[w,n,m]),A.useEffect(()=>()=>{w&&(m.layers.delete(w),m.layersWithOutsidePointerEventsDisabled.delete(w),ap())},[w,m]),A.useEffect(()=>{const N=()=>C({});return document.addEventListener("dismissableLayer.update",N),()=>document.removeEventListener("dismissableLayer.update",N)},[]),A.createElement(li.div,ft({},p,{ref:h,style:{pointerEvents:L?P?"auto":"none":void 0,...e.style},onFocusCapture:Ar(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Ar(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ar(e.onPointerDownCapture,D.onPointerDownCapture)}))});function ap(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function sp(e,r,n){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return r&&o.addEventListener(e,r,{once:!0}),!o.dispatchEvent(a)}function up(e){const[r,n]=A.useState(void 0);return A.useEffect(()=>{if(e){const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let l,f;if("borderBoxSize"in u){const p=u.borderBoxSize,m=Array.isArray(p)?p[0]:p;l=m.inlineSize,f=m.blockSize}else{const p=e.getBoundingClientRect();l=p.width,f=p.height}n({width:l,height:f})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}n(void 0)},[e]),r}function ZO(e,r){const n=Or.get(e);return n===void 0?(Or.set(e,{rect:{},callbacks:[r]}),Or.size===1&&(rl=requestAnimationFrame(Jh))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=Or.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(Or.delete(e),Or.size===0&&cancelAnimationFrame(rl))}}let rl;const Or=new Map;function Jh(){const e=[];Or.forEach((r,n)=>{const o=n.getBoundingClientRect();var a,u;a=r.rect,u=o,(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.right!==u.right||a.bottom!==u.bottom||a.left!==u.left)&&(r.rect=o,e.push(r))}),e.forEach(r=>{r.callbacks.forEach(n=>n(r.rect))}),rl=requestAnimationFrame(Jh)}function QO(e){const[r,n]=A.useState();return A.useEffect(()=>{if(e){const o=ZO(e,n);return()=>{n(void 0),o()}}},[e]),r}function Zh(e,r=[]){let n=[];const o=()=>{const a=n.map(u=>A.createContext(u));return function(u){const l=(u==null?void 0:u[e])||a;return A.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[function(a,u){const l=A.createContext(u),f=n.length;function p(m){const{scope:w,children:b,...C}=m,h=(w==null?void 0:w[e][f])||l,S=A.useMemo(()=>C,Object.values(C));return A.createElement(h.Provider,{value:S},b)}return n=[...n,u],p.displayName=a+"Provider",[p,function(m,w){const b=(w==null?void 0:w[e][f])||l,C=A.useContext(b);if(C)return C;if(u!==void 0)return u;throw new Error(`\`${m}\` must be used within \`${a}\``)}]},eT(o,...r)]}function eT(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const u=o.reduce((l,{useScope:f,scopeName:p})=>({...l,...f(a)[`__scope${p}`]}),{});return A.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])}};return n.scopeName=r.scopeName,n}function tT({anchorRect:e,popperSize:r,arrowSize:n,arrowOffset:o=0,side:a,sideOffset:u=0,align:l,alignOffset:f=0,shouldAvoidCollisions:p=!0,collisionBoundariesRect:m,collisionTolerance:w=0}){if(!e||!r||!m)return{popperStyles:nT,arrowStyles:Au};const b=function(F,$,J=0,Q=0,pe){const Ie=pe?pe.height:0,Ee=lp($,F,"x"),he=lp($,F,"y"),$e=he.before-J-Ie,ge=he.after+J+Ie,Le=Ee.before-J-Ie,Ke=Ee.after+J+Ie;return{top:{start:{x:Ee.start+Q,y:$e},center:{x:Ee.center,y:$e},end:{x:Ee.end-Q,y:$e}},right:{start:{x:Ke,y:he.start+Q},center:{x:Ke,y:he.center},end:{x:Ke,y:he.end-Q}},bottom:{start:{x:Ee.start+Q,y:ge},center:{x:Ee.center,y:ge},end:{x:Ee.end-Q,y:ge}},left:{start:{x:Le,y:he.start+Q},center:{x:Le,y:he.center},end:{x:Le,y:he.end-Q}}}}(r,e,u,f,n),C=b[a][l];if(p===!1){const F=cp(C);let $=Au;return n&&($=dp({popperSize:r,arrowSize:n,arrowOffset:o,side:a,align:l})),{popperStyles:{...F,"--radix-popper-transform-origin":fp(r,a,l,o,n)},arrowStyles:$,placedSide:a,placedAlign:l}}const h=DOMRect.fromRect({...r,...C}),S=(y=m,O=w,DOMRect.fromRect({width:y.width-2*O,height:y.height-2*O,x:y.left+O,y:y.top+O}));var y,O;const M=hp(h,S),L=b[pp(a)][l],P=function(F,$,J){const Q=pp(F);return $[F]&&!J[Q]?Q:F}(a,M,hp(DOMRect.fromRect({...r,...L}),S)),D=function(F,$,J,Q,pe){const Ie=J==="top"||J==="bottom",Ee=Ie?"left":"top",he=Ie?"right":"bottom",$e=Ie?"width":"height",ge=$[$e]>F[$e];return(Q==="start"||Q==="center")&&(pe[Ee]&&ge||pe[he]&&!ge)?"end":(Q==="end"||Q==="center")&&(pe[he]&&ge||pe[Ee]&&!ge)?"start":Q}(r,e,a,l,M),E=cp(b[P][D]);let N=Au;return n&&(N=dp({popperSize:r,arrowSize:n,arrowOffset:o,side:P,align:D})),{popperStyles:{...E,"--radix-popper-transform-origin":fp(r,P,D,o,n)},arrowStyles:N,placedSide:P,placedAlign:D}}function lp(e,r,n){const o=e[n==="x"?"left":"top"],a=n==="x"?"width":"height",u=e[a],l=r[a];return{before:o-l,start:o,center:o+(u-l)/2,end:o+u-l,after:o+u}}function cp(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 fp(e,r,n,o,a){const u=r==="top"||r==="bottom",l=a?a.width:0,f=a?a.height:0,p=l/2+o;let m="",w="";return u?(m={start:`${p}px`,center:"center",end:e.width-p+"px"}[n],w=r==="top"?`${e.height+f}px`:-f+"px"):(m=r==="left"?`${e.width+f}px`:-f+"px",w={start:`${p}px`,center:"center",end:e.height-p+"px"}[n]),`${m} ${w}`}const nT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Au={position:"absolute",opacity:0};function dp({popperSize:e,arrowSize:r,arrowOffset:n,side:o,align:a}){const u=(e.width-r.width)/2,l=(e.height-r.width)/2,f={top:0,right:90,bottom:180,left:-90}[o],p=Math.max(r.width,r.height),m={width:`${p}px`,height:`${p}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:rT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(m.left=`${n}px`),a==="center"&&(m.left=`${u}px`),a==="end"&&(m.right=`${n}px`)),o!=="left"&&o!=="right"||(a==="start"&&(m.top=`${n}px`),a==="center"&&(m.top=`${l}px`),a==="end"&&(m.bottom=`${n}px`)),m}function rT(e,r){return(e!=="top"&&e!=="right"||r!=="end")&&(e!=="bottom"&&e!=="left"||r==="end")?"ltr":"rtl"}function pp(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function hp(e,r){return{top:e.top<r.top,right:e.right>r.right,bottom:e.bottom>r.bottom,left:e.left<r.left}}const[Qh,ev]=Zh("Popper"),[iT,tv]=Qh("Popper"),oT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=A.useState(null);return A.createElement(iT,{scope:r,anchor:o,onAnchorChange:a},n)},aT=A.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=tv("PopperAnchor",n),l=A.useRef(null),f=Dr(r,l);return A.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:A.createElement(li.div,ft({},a,{ref:f}))}),[sT,fA]=Qh("PopperContent"),uT=A.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a,align:u="center",alignOffset:l,collisionTolerance:f,avoidCollisions:p=!0,...m}=e,w=tv("PopperContent",n),[b,C]=A.useState(),h=QO(w.anchor),[S,y]=A.useState(null),O=up(S),[M,L]=A.useState(null),P=up(M),D=Dr(r,Ie=>y(Ie)),E=function(){const[Ie,Ee]=A.useState(void 0);return A.useEffect(()=>{let he;function $e(){Ee({width:window.innerWidth,height:window.innerHeight})}function ge(){window.clearTimeout(he),he=window.setTimeout($e,100)}return $e(),window.addEventListener("resize",ge),()=>window.removeEventListener("resize",ge)},[]),Ie}(),N=E?DOMRect.fromRect({...E,x:0,y:0}):void 0,{popperStyles:F,arrowStyles:$,placedSide:J,placedAlign:Q}=tT({anchorRect:h,popperSize:O,arrowSize:P,arrowOffset:b,side:o,sideOffset:a,align:u,alignOffset:l,shouldAvoidCollisions:p,collisionBoundariesRect:N,collisionTolerance:f}),pe=J!==void 0;return A.createElement("div",{style:F,"data-radix-popper-content-wrapper":""},A.createElement(sT,{scope:n,arrowStyles:$,onArrowChange:L,onArrowOffsetChange:C},A.createElement(li.div,ft({"data-side":J,"data-align":Q},m,{style:{...m.style,animation:pe?void 0:"none"},ref:D}))))}),lT=oT,cT=aT,fT=uT;function dT({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:p,onChange:m}){const w=A.useState(p),[b]=w,C=A.useRef(b),h=Mr(m);return A.useEffect(()=>{C.current!==b&&(h(b),C.current=b)},[b,C,h]),w}({defaultProp:r,onChange:n}),u=e!==void 0,l=u?e:o,f=Mr(n);return[l,A.useCallback(p=>{if(u){const m=p,w=typeof p=="function"?m(e):p;w!==e&&f(w)}else a(p)},[u,e,a,f])]}const[pT,dA]=Zh("Popover",[ev]),Pl=ev(),[hT,Ji]=pT("Popover"),vT=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:u,modal:l=!1}=e,f=Pl(r),p=A.useRef(null),[m,w]=A.useState(!1),[b=!1,C]=dT({prop:o,defaultProp:a,onChange:u});return A.createElement(lT,f,A.createElement(hT,{scope:r,contentId:HO(),triggerRef:p,open:b,onOpenChange:C,onOpenToggle:A.useCallback(()=>C(h=>!h),[C]),hasCustomAnchor:m,onCustomAnchorAdd:A.useCallback(()=>w(!0),[]),onCustomAnchorRemove:A.useCallback(()=>w(!1),[]),modal:l},n))},mT=A.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=Ji("PopoverTrigger",n),u=Pl(n),l=Dr(r,a.triggerRef),f=A.createElement(li.button,ft({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":rv(a.open)},o,{ref:l,onClick:Ar(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:A.createElement(cT,ft({asChild:!0},u),f)}),gT=A.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=Ji("PopoverContent",e.__scopePopover);return A.createElement(Xh,{present:n||a.open},a.modal?A.createElement(yT,ft({},o,{ref:r})):A.createElement(wT,ft({},o,{ref:r})))}),yT=A.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=Ji("PopoverContent",e.__scopePopover),l=A.useRef(null),f=Dr(r,l),p=A.useRef(!1);A.useEffect(()=>{const w=l.current;if(w)return iO(w)},[]);const m=o?Vh:A.Fragment;return A.createElement(m,null,A.createElement(WO,{allowPinchZoom:n},A.createElement(nv,ft({},a,{ref:f,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ar(e.onCloseAutoFocus,w=>{var b;w.preventDefault(),p.current||(b=u.triggerRef.current)===null||b===void 0||b.focus()}),onPointerDownOutside:Ar(e.onPointerDownOutside,w=>{const b=w.detail.originalEvent,C=b.button===0&&b.ctrlKey===!0,h=b.button===2||C;p.current=h},{checkForDefaultPrevented:!1}),onFocusOutside:Ar(e.onFocusOutside,w=>w.preventDefault(),{checkForDefaultPrevented:!1})}))))}),wT=A.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=Ji("PopoverContent",e.__scopePopover),u=A.useRef(!1),l=n?Vh:A.Fragment;return A.createElement(l,null,A.createElement(nv,ft({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var p,m;(p=e.onCloseAutoFocus)===null||p===void 0||p.call(e,f),f.defaultPrevented||(u.current||(m=a.triggerRef.current)===null||m===void 0||m.focus(),f.preventDefault()),u.current=!1},onInteractOutside:f=>{var p,m;(p=e.onInteractOutside)===null||p===void 0||p.call(e,f),f.defaultPrevented||(u.current=!0);const w=f.target;!((m=a.triggerRef.current)===null||m===void 0)&&m.contains(w)&&f.preventDefault()}})))}),nv=A.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:w,...b}=e,C=Ji("PopoverContent",n),h=Pl(n);return qO(),A.createElement(KO,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},A.createElement(JO,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:w,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:m,onDismiss:()=>C.onOpenChange(!1)},A.createElement(fT,ft({"data-state":rv(C.open),role:"dialog",id:C.contentId},h,b,{ref:r,style:{...b.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function rv(e){return e?"open":"closed"}const bT=vT,_T=mT,ST=gT;function ET(e){return In({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M348 676.1C250 619.4 184 513.4 184 392c0-181.1 146.9-328 328-328s328 146.9 328 328c0 121.4-66 227.4-164 284.1V792c0 17.7-14.3 32-32 32H380c-17.7 0-32-14.3-32-32V676.1zM392 888h240c4.4 0 8 3.6 8 8v32c0 17.7-14.3 32-32 32H416c-17.7 0-32-14.3-32-32v-32c0-4.4 3.6-8 8-8z"}}]})(e)}var xa=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(xa||{});var iv={},Ha={},Rl={},Iu={},fa={exports:{}},da={exports:{}},ke={};/** @license React v16.13.1
|
|
126
|
+
`)},BO=0,mi=[];function HO(e){var r=I.useRef([]),n=I.useRef([0,0]),o=I.useRef(),a=I.useState(BO++)[0],u=I.useState(Yh)[0],c=I.useRef(e);I.useEffect(function(){c.current=e},[e]),I.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var w=ro([e.lockRef.current],(e.shards||[]).map(rp),!0).filter(Boolean);return w.forEach(function(T){return T.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),w.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=I.useCallback(function(w,T){if("touches"in w&&w.touches.length===2)return!c.current.allowPinchZoom;var D=va(w),M=n.current,R="deltaX"in w?w.deltaX:M[0]-D[0],k="deltaY"in w?w.deltaY:M[1]-D[1],x,W=w.target,F=Math.abs(R)>Math.abs(k)?"h":"v";if("touches"in w&&F==="h"&&W.type==="range")return!1;var N=tp(F,W);if(!N)return!0;if(N?x=F:(x=F==="v"?"h":"v",N=tp(F,W)),!N)return!1;if(!o.current&&"changedTouches"in w&&(R||k)&&(o.current=x),!x)return!0;var Z=o.current||x;return FO(Z,T,w,Z==="h"?R:k,!0)},[]),h=I.useCallback(function(w){var T=w;if(!(!mi.length||mi[mi.length-1]!==u)){var D="deltaY"in T?np(T):va(T),M=r.current.filter(function(x){return x.name===T.type&&(x.target===T.target||T.target===x.shadowParent)&&WO(x.delta,D)})[0];if(M&&M.should){T.cancelable&&T.preventDefault();return}if(!M){var R=(c.current.shards||[]).map(rp).filter(Boolean).filter(function(x){return x.contains(T.target)}),k=R.length>0?f(T,R[0]):!c.current.noIsolation;k&&T.cancelable&&T.preventDefault()}}},[]),m=I.useCallback(function(w,T,D,M){var R={name:w,delta:T,target:D,should:M,shadowParent:zO(D)};r.current.push(R),setTimeout(function(){r.current=r.current.filter(function(k){return k!==R})},1)},[]),y=I.useCallback(function(w){n.current=va(w),o.current=void 0},[]),_=I.useCallback(function(w){m(w.type,np(w),w.target,f(w,e.lockRef.current))},[]),O=I.useCallback(function(w){m(w.type,va(w),w.target,f(w,e.lockRef.current))},[]);I.useEffect(function(){return mi.push(u),e.setCallbacks({onScrollCapture:_,onWheelCapture:_,onTouchMoveCapture:O}),document.addEventListener("wheel",h,vi),document.addEventListener("touchmove",h,vi),document.addEventListener("touchstart",y,vi),function(){mi=mi.filter(function(w){return w!==u}),document.removeEventListener("wheel",h,vi),document.removeEventListener("touchmove",h,vi),document.removeEventListener("touchstart",y,vi)}},[]);var v=e.removeScrollBar,S=e.inert;return I.createElement(I.Fragment,null,S?I.createElement(u,{styles:UO(a)}):null,v?I.createElement(LO,{gapMode:e.gapMode}):null)}function zO(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const qO=bO(Gh,HO);var Zh=I.forwardRef(function(e,r){return I.createElement(Ya,Mn({},e,{ref:r,sideCar:qO}))});Zh.classNames=Ya.classNames;const KO=Zh,io=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{},GO=I["useId".toString()]||(()=>{});let YO=0;function XO(e){const[r,n]=I.useState(GO());return io(()=>{e||n(o=>o??String(YO++))},[e]),e||(r?`radix-${r}`:"")}function Qh(...e){return r=>e.forEach(n=>function(o,a){typeof o=="function"?o(a):o!=null&&(o.current=a)}(n,r))}function Gr(...e){return I.useCallback(Qh(...e),e)}const ev=I.forwardRef((e,r)=>{const{children:n,...o}=e;return I.Children.toArray(n).some(ip)?I.createElement(I.Fragment,null,I.Children.map(n,a=>ip(a)?I.createElement(ac,gt({},o,{ref:r}),a.props.children):a)):I.createElement(ac,gt({},o,{ref:r}),n)});ev.displayName="Slot";const ac=I.forwardRef((e,r)=>{const{children:n,...o}=e;return I.isValidElement(n)?I.cloneElement(n,{...JO(o,n.props),ref:Qh(r,n.ref)}):I.Children.count(n)>1?I.Children.only(null):null});ac.displayName="SlotClone";const VO=({children:e})=>I.createElement(I.Fragment,null,e);function ip(e){return I.isValidElement(e)&&e.type===VO}function JO(e,r){const n={...r};for(const o in r){const a=e[o],u=r[o];/^on[A-Z]/.test(o)?n[o]=(...c)=>{u==null||u(...c),a==null||a(...c)}:o==="style"?n[o]={...a,...u}:o==="className"&&(n[o]=[a,u].filter(Boolean).join(" "))}return{...e,...n}}const Ei=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,r)=>({...e,[r]:I.forwardRef((n,o)=>{const{asChild:a,...u}=n,c=a?ev:r;return I.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),I.createElement(c,gt({},u,{ref:o}))})}),{}),tv=e=>{const{present:r,children:n}=e,o=function(c){const[f,h]=I.useState(),m=I.useRef({}),y=I.useRef(c),_=I.useRef("none"),O=c?"mounted":"unmounted",[v,S]=function(w,T){return I.useReducer((D,M)=>{const R=T[D][M];return R??D},w)}(O,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I.useEffect(()=>{const w=ma(m.current);_.current=v==="mounted"?w:"none"},[v]),io(()=>{const w=m.current,T=y.current;if(T!==c){const D=_.current,M=ma(w);c?S("MOUNT"):M==="none"||(w==null?void 0:w.display)==="none"?S("UNMOUNT"):S(T&&D!==M?"ANIMATION_OUT":"UNMOUNT"),y.current=c}},[c,S]),io(()=>{if(f){const w=D=>{const M=ma(m.current).includes(D.animationName);D.target===f&&M&&S("ANIMATION_END")},T=D=>{D.target===f&&(_.current=ma(m.current))};return f.addEventListener("animationstart",T),f.addEventListener("animationcancel",w),f.addEventListener("animationend",w),()=>{f.removeEventListener("animationstart",T),f.removeEventListener("animationcancel",w),f.removeEventListener("animationend",w)}}S("ANIMATION_END")},[f,S]),{isPresent:["mounted","unmountSuspended"].includes(v),ref:I.useCallback(w=>{w&&(m.current=getComputedStyle(w)),h(w)},[])}}(r),a=typeof n=="function"?n({present:o.isPresent}):I.Children.only(n),u=Gr(o.ref,a.ref);return typeof n=="function"||o.isPresent?I.cloneElement(a,{ref:u}):null};function ma(e){return(e==null?void 0:e.animationName)||"none"}tv.displayName="Presence";let Lu=0;function ZO(){I.useEffect(()=>{var e,r;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:op()),document.body.insertAdjacentElement("beforeend",(r=n[1])!==null&&r!==void 0?r:op()),Lu++,()=>{Lu===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Lu--}},[])}function op(){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 nv=I.forwardRef((e,r)=>{var n,o;const{containerRef:a,style:u,...c}=e,f=(n=a==null?void 0:a.current)!==null&&n!==void 0?n:globalThis==null||(o=globalThis.document)===null||o===void 0?void 0:o.body,[,h]=I.useState({});return io(()=>{h({})},[]),f?Ba.createPortal(I.createElement(Ei.div,gt({"data-radix-portal":""},c,{ref:r,style:f===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...u}:void 0})),f):null});function Kr(e){const r=I.useRef(e);return I.useEffect(()=>{r.current=e}),I.useMemo(()=>(...n)=>{var o;return(o=r.current)===null||o===void 0?void 0:o.call(r,...n)},[])}const ap={bubbles:!1,cancelable:!0},QO=I.forwardRef((e,r)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...c}=e,[f,h]=I.useState(null),m=Kr(a),y=Kr(u),_=I.useRef(null),O=Gr(r,w=>h(w)),v=I.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I.useEffect(()=>{if(o){let w=function(D){if(v.paused||!f)return;const M=D.target;f.contains(M)?_.current=M:$r(_.current,{select:!0})},T=function(D){!v.paused&&f&&(f.contains(D.relatedTarget)||$r(_.current,{select:!0}))};return document.addEventListener("focusin",w),document.addEventListener("focusout",T),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",T)}}},[o,f,v.paused]),I.useEffect(()=>{if(f){cp.add(v);const T=document.activeElement;if(!f.contains(T)){const D=new Event("focusScope.autoFocusOnMount",ap);f.addEventListener("focusScope.autoFocusOnMount",m),f.dispatchEvent(D),D.defaultPrevented||(function(M,{select:R=!1}={}){const k=document.activeElement;for(const x of M)if($r(x,{select:R}),document.activeElement!==k)return}((w=sp(f),w.filter(M=>M.tagName!=="A")),{select:!0}),document.activeElement===T&&$r(f))}return()=>{f.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout(()=>{const D=new Event("focusScope.autoFocusOnUnmount",ap);f.addEventListener("focusScope.autoFocusOnUnmount",y),f.dispatchEvent(D),D.defaultPrevented||$r(T??document.body,{select:!0}),f.removeEventListener("focusScope.autoFocusOnUnmount",y),cp.remove(v)},0)}}var w},[f,m,y,v]);const S=I.useCallback(w=>{if(!n&&!o||v.paused)return;const T=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,D=document.activeElement;if(T&&D){const M=w.currentTarget,[R,k]=function(x){const W=sp(x),F=up(W,x),N=up(W.reverse(),x);return[F,N]}(M);R&&k?w.shiftKey||D!==k?w.shiftKey&&D===R&&(w.preventDefault(),n&&$r(k,{select:!0})):(w.preventDefault(),n&&$r(R,{select:!0})):D===M&&w.preventDefault()}},[n,o,v.paused]);return I.createElement(Ei.div,gt({tabIndex:-1},c,{ref:O,onKeyDown:S}))});function sp(e){const r=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)r.push(n.currentNode);return r}function up(e,r){for(const n of e)if(!eT(n,{upTo:r}))return n}function eT(e,{upTo:r}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(r!==void 0&&e===r)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function $r(e,{select:r=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(o){return o instanceof HTMLInputElement&&"select"in o}(e)&&r&&e.select()}}const cp=function(){let e=[];return{add(r){const n=e[0];r!==n&&(n==null||n.pause()),e=lp(e,r),e.unshift(r)},remove(r){var n;e=lp(e,r),(n=e[0])===null||n===void 0||n.resume()}}}();function lp(e,r){const n=[...e],o=n.indexOf(r);return o!==-1&&n.splice(o,1),n}function tT(e){const r=Kr(e);I.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r])}let fp,ga=0;function nT({disabled:e}){const r=I.useRef(!1);io(()=>{if(e){let n=function(){ga--,ga===0&&(document.body.style.pointerEvents=fp)},o=function(a){r.current=a.pointerType!=="mouse"};return ga===0&&(fp=document.body.style.pointerEvents),document.body.style.pointerEvents="none",ga++,document.addEventListener("pointerup",o),()=>{r.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",o)}}},[e])}function Hr(e,r,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return r==null?void 0:r(o)}}const rT=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),iT=I.forwardRef((e,r)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:c,onDismiss:f,...h}=e,m=I.useContext(rT),[y,_]=I.useState(null),[,O]=I.useState({}),v=Gr(r,W=>_(W)),S=Array.from(m.layers),[w]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),T=S.indexOf(w),D=y?S.indexOf(y):-1,M=m.layersWithOutsidePointerEventsDisabled.size>0,R=D>=T,k=function(W){const F=Kr(W),N=I.useRef(!1);return I.useEffect(()=>{const Z=we=>{we.target&&!N.current&&pp("dismissableLayer.pointerDownOutside",F,{originalEvent:we}),N.current=!1},ne=window.setTimeout(()=>{document.addEventListener("pointerdown",Z)},0);return()=>{window.clearTimeout(ne),document.removeEventListener("pointerdown",Z)}},[F]),{onPointerDownCapture:()=>N.current=!0}}(W=>{const F=W.target,N=[...m.branches].some(Z=>Z.contains(F));R&&!N&&(a==null||a(W),c==null||c(W),W.defaultPrevented||f==null||f())}),x=function(W){const F=Kr(W),N=I.useRef(!1);return I.useEffect(()=>{const Z=ne=>{ne.target&&!N.current&&pp("dismissableLayer.focusOutside",F,{originalEvent:ne})};return document.addEventListener("focusin",Z),()=>document.removeEventListener("focusin",Z)},[F]),{onFocusCapture:()=>N.current=!0,onBlurCapture:()=>N.current=!1}}(W=>{const F=W.target;[...m.branches].some(N=>N.contains(F))||(u==null||u(W),c==null||c(W),W.defaultPrevented||f==null||f())});return tT(W=>{D===m.layers.size-1&&(o==null||o(W),W.defaultPrevented||f==null||f())}),nT({disabled:n}),I.useEffect(()=>{y&&(n&&m.layersWithOutsidePointerEventsDisabled.add(y),m.layers.add(y),dp())},[y,n,m]),I.useEffect(()=>()=>{y&&(m.layers.delete(y),m.layersWithOutsidePointerEventsDisabled.delete(y),dp())},[y,m]),I.useEffect(()=>{const W=()=>O({});return document.addEventListener("dismissableLayer.update",W),()=>document.removeEventListener("dismissableLayer.update",W)},[]),I.createElement(Ei.div,gt({},h,{ref:v,style:{pointerEvents:M?R?"auto":"none":void 0,...e.style},onFocusCapture:Hr(e.onFocusCapture,x.onFocusCapture),onBlurCapture:Hr(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:Hr(e.onPointerDownCapture,k.onPointerDownCapture)}))});function dp(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function pp(e,r,n){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return r&&o.addEventListener(e,r,{once:!0}),!o.dispatchEvent(a)}function hp(e){const[r,n]=I.useState(void 0);return I.useEffect(()=>{if(e){const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let c,f;if("borderBoxSize"in u){const h=u.borderBoxSize,m=Array.isArray(h)?h[0]:h;c=m.inlineSize,f=m.blockSize}else{const h=e.getBoundingClientRect();c=h.width,f=h.height}n({width:c,height:f})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}n(void 0)},[e]),r}function oT(e,r){const n=jr.get(e);return n===void 0?(jr.set(e,{rect:{},callbacks:[r]}),jr.size===1&&(sc=requestAnimationFrame(rv))):(n.callbacks.push(r),r(e.getBoundingClientRect())),()=>{const o=jr.get(e);if(o===void 0)return;const a=o.callbacks.indexOf(r);a>-1&&o.callbacks.splice(a,1),o.callbacks.length===0&&(jr.delete(e),jr.size===0&&cancelAnimationFrame(sc))}}let sc;const jr=new Map;function rv(){const e=[];jr.forEach((r,n)=>{const o=n.getBoundingClientRect();var a,u;a=r.rect,u=o,(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.right!==u.right||a.bottom!==u.bottom||a.left!==u.left)&&(r.rect=o,e.push(r))}),e.forEach(r=>{r.callbacks.forEach(n=>n(r.rect))}),sc=requestAnimationFrame(rv)}function aT(e){const[r,n]=I.useState();return I.useEffect(()=>{if(e){const o=oT(e,n);return()=>{n(void 0),o()}}},[e]),r}function iv(e,r=[]){let n=[];const o=()=>{const a=n.map(u=>I.createContext(u));return function(u){const c=(u==null?void 0:u[e])||a;return I.useMemo(()=>({[`__scope${e}`]:{...u,[e]:c}}),[u,c])}};return o.scopeName=e,[function(a,u){const c=I.createContext(u),f=n.length;function h(m){const{scope:y,children:_,...O}=m,v=(y==null?void 0:y[e][f])||c,S=I.useMemo(()=>O,Object.values(O));return I.createElement(v.Provider,{value:S},_)}return n=[...n,u],h.displayName=a+"Provider",[h,function(m,y){const _=(y==null?void 0:y[e][f])||c,O=I.useContext(_);if(O)return O;if(u!==void 0)return u;throw new Error(`\`${m}\` must be used within \`${a}\``)}]},sT(o,...r)]}function sT(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){const u=o.reduce((c,{useScope:f,scopeName:h})=>({...c,...f(a)[`__scope${h}`]}),{});return I.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])}};return n.scopeName=r.scopeName,n}function uT({anchorRect:e,popperSize:r,arrowSize:n,arrowOffset:o=0,side:a,sideOffset:u=0,align:c,alignOffset:f=0,shouldAvoidCollisions:h=!0,collisionBoundariesRect:m,collisionTolerance:y=0}){if(!e||!r||!m)return{popperStyles:cT,arrowStyles:Mu};const _=function(F,N,Z=0,ne=0,we){const Me=we?we.height:0,Oe=vp(N,F,"x"),ue=vp(N,F,"y"),ke=ue.before-Z-Me,_e=ue.after+Z+Me,Ie=Oe.before-Z-Me,qe=Oe.after+Z+Me;return{top:{start:{x:Oe.start+ne,y:ke},center:{x:Oe.center,y:ke},end:{x:Oe.end-ne,y:ke}},right:{start:{x:qe,y:ue.start+ne},center:{x:qe,y:ue.center},end:{x:qe,y:ue.end-ne}},bottom:{start:{x:Oe.start+ne,y:_e},center:{x:Oe.center,y:_e},end:{x:Oe.end-ne,y:_e}},left:{start:{x:Ie,y:ue.start+ne},center:{x:Ie,y:ue.center},end:{x:Ie,y:ue.end-ne}}}}(r,e,u,f,n),O=_[a][c];if(h===!1){const F=mp(O);let N=Mu;return n&&(N=yp({popperSize:r,arrowSize:n,arrowOffset:o,side:a,align:c})),{popperStyles:{...F,"--radix-popper-transform-origin":gp(r,a,c,o,n)},arrowStyles:N,placedSide:a,placedAlign:c}}const v=DOMRect.fromRect({...r,...O}),S=(w=m,T=y,DOMRect.fromRect({width:w.width-2*T,height:w.height-2*T,x:w.left+T,y:w.top+T}));var w,T;const D=bp(v,S),M=_[wp(a)][c],R=function(F,N,Z){const ne=wp(F);return N[F]&&!Z[ne]?ne:F}(a,D,bp(DOMRect.fromRect({...r,...M}),S)),k=function(F,N,Z,ne,we){const Me=Z==="top"||Z==="bottom",Oe=Me?"left":"top",ue=Me?"right":"bottom",ke=Me?"width":"height",_e=N[ke]>F[ke];return(ne==="start"||ne==="center")&&(we[Oe]&&_e||we[ue]&&!_e)?"end":(ne==="end"||ne==="center")&&(we[ue]&&_e||we[Oe]&&!_e)?"start":ne}(r,e,a,c,D),x=mp(_[R][k]);let W=Mu;return n&&(W=yp({popperSize:r,arrowSize:n,arrowOffset:o,side:R,align:k})),{popperStyles:{...x,"--radix-popper-transform-origin":gp(r,R,k,o,n)},arrowStyles:W,placedSide:R,placedAlign:k}}function vp(e,r,n){const o=e[n==="x"?"left":"top"],a=n==="x"?"width":"height",u=e[a],c=r[a];return{before:o-c,start:o,center:o+(u-c)/2,end:o+u-c,after:o+u}}function mp(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 gp(e,r,n,o,a){const u=r==="top"||r==="bottom",c=a?a.width:0,f=a?a.height:0,h=c/2+o;let m="",y="";return u?(m={start:`${h}px`,center:"center",end:e.width-h+"px"}[n],y=r==="top"?`${e.height+f}px`:-f+"px"):(m=r==="left"?`${e.width+f}px`:-f+"px",y={start:`${h}px`,center:"center",end:e.height-h+"px"}[n]),`${m} ${y}`}const cT={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Mu={position:"absolute",opacity:0};function yp({popperSize:e,arrowSize:r,arrowOffset:n,side:o,align:a}){const u=(e.width-r.width)/2,c=(e.height-r.width)/2,f={top:0,right:90,bottom:180,left:-90}[o],h=Math.max(r.width,r.height),m={width:`${h}px`,height:`${h}px`,transform:`rotate(${f}deg)`,willChange:"transform",position:"absolute",[o]:"100%",direction:lT(o,a)};return o!=="top"&&o!=="bottom"||(a==="start"&&(m.left=`${n}px`),a==="center"&&(m.left=`${u}px`),a==="end"&&(m.right=`${n}px`)),o!=="left"&&o!=="right"||(a==="start"&&(m.top=`${n}px`),a==="center"&&(m.top=`${c}px`),a==="end"&&(m.bottom=`${n}px`)),m}function lT(e,r){return(e!=="top"&&e!=="right"||r!=="end")&&(e!=="bottom"&&e!=="left"||r==="end")?"ltr":"rtl"}function wp(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function bp(e,r){return{top:e.top<r.top,right:e.right>r.right,bottom:e.bottom>r.bottom,left:e.left<r.left}}const[ov,av]=iv("Popper"),[fT,sv]=ov("Popper"),dT=e=>{const{__scopePopper:r,children:n}=e,[o,a]=I.useState(null);return I.createElement(fT,{scope:r,anchor:o,onAnchorChange:a},n)},pT=I.forwardRef((e,r)=>{const{__scopePopper:n,virtualRef:o,...a}=e,u=sv("PopperAnchor",n),c=I.useRef(null),f=Gr(r,c);return I.useEffect(()=>{u.onAnchorChange((o==null?void 0:o.current)||c.current)}),o?null:I.createElement(Ei.div,gt({},a,{ref:f}))}),[hT,bA]=ov("PopperContent"),vT=I.forwardRef((e,r)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a,align:u="center",alignOffset:c,collisionTolerance:f,avoidCollisions:h=!0,...m}=e,y=sv("PopperContent",n),[_,O]=I.useState(),v=aT(y.anchor),[S,w]=I.useState(null),T=hp(S),[D,M]=I.useState(null),R=hp(D),k=Gr(r,Me=>w(Me)),x=function(){const[Me,Oe]=I.useState(void 0);return I.useEffect(()=>{let ue;function ke(){Oe({width:window.innerWidth,height:window.innerHeight})}function _e(){window.clearTimeout(ue),ue=window.setTimeout(ke,100)}return ke(),window.addEventListener("resize",_e),()=>window.removeEventListener("resize",_e)},[]),Me}(),W=x?DOMRect.fromRect({...x,x:0,y:0}):void 0,{popperStyles:F,arrowStyles:N,placedSide:Z,placedAlign:ne}=uT({anchorRect:v,popperSize:T,arrowSize:R,arrowOffset:_,side:o,sideOffset:a,align:u,alignOffset:c,shouldAvoidCollisions:h,collisionBoundariesRect:W,collisionTolerance:f}),we=Z!==void 0;return I.createElement("div",{style:F,"data-radix-popper-content-wrapper":""},I.createElement(hT,{scope:n,arrowStyles:N,onArrowChange:M,onArrowOffsetChange:O},I.createElement(Ei.div,gt({"data-side":Z,"data-align":ne},m,{style:{...m.style,animation:we?void 0:"none"},ref:k}))))}),mT=dT,gT=pT,yT=vT;function wT({prop:e,defaultProp:r,onChange:n=()=>{}}){const[o,a]=function({defaultProp:h,onChange:m}){const y=I.useState(h),[_]=y,O=I.useRef(_),v=Kr(m);return I.useEffect(()=>{O.current!==_&&(v(_),O.current=_)},[_,O,v]),y}({defaultProp:r,onChange:n}),u=e!==void 0,c=u?e:o,f=Kr(n);return[c,I.useCallback(h=>{if(u){const m=h,y=typeof h=="function"?m(e):h;y!==e&&f(y)}else a(h)},[u,e,a,f])]}const[bT,_A]=iv("Popover",[av]),Lc=av(),[_T,fo]=bT("Popover"),ST=e=>{const{__scopePopover:r,children:n,open:o,defaultOpen:a,onOpenChange:u,modal:c=!1}=e,f=Lc(r),h=I.useRef(null),[m,y]=I.useState(!1),[_=!1,O]=wT({prop:o,defaultProp:a,onChange:u});return I.createElement(mT,f,I.createElement(_T,{scope:r,contentId:XO(),triggerRef:h,open:_,onOpenChange:O,onOpenToggle:I.useCallback(()=>O(v=>!v),[O]),hasCustomAnchor:m,onCustomAnchorAdd:I.useCallback(()=>y(!0),[]),onCustomAnchorRemove:I.useCallback(()=>y(!1),[]),modal:c},n))},ET=I.forwardRef((e,r)=>{const{__scopePopover:n,...o}=e,a=fo("PopoverTrigger",n),u=Lc(n),c=Gr(r,a.triggerRef),f=I.createElement(Ei.button,gt({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":cv(a.open)},o,{ref:c,onClick:Hr(e.onClick,a.onOpenToggle)}));return a.hasCustomAnchor?f:I.createElement(gT,gt({asChild:!0},u),f)}),xT=I.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=fo("PopoverContent",e.__scopePopover);return I.createElement(tv,{present:n||a.open},a.modal?I.createElement(OT,gt({},o,{ref:r})):I.createElement(TT,gt({},o,{ref:r})))}),OT=I.forwardRef((e,r)=>{const{allowPinchZoom:n,portalled:o=!0,...a}=e,u=fo("PopoverContent",e.__scopePopover),c=I.useRef(null),f=Gr(r,c),h=I.useRef(!1);I.useEffect(()=>{const y=c.current;if(y)return fO(y)},[]);const m=o?nv:I.Fragment;return I.createElement(m,null,I.createElement(KO,{allowPinchZoom:n},I.createElement(uv,gt({},a,{ref:f,trapFocus:u.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Hr(e.onCloseAutoFocus,y=>{var _;y.preventDefault(),h.current||(_=u.triggerRef.current)===null||_===void 0||_.focus()}),onPointerDownOutside:Hr(e.onPointerDownOutside,y=>{const _=y.detail.originalEvent,O=_.button===0&&_.ctrlKey===!0,v=_.button===2||O;h.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:Hr(e.onFocusOutside,y=>y.preventDefault(),{checkForDefaultPrevented:!1})}))))}),TT=I.forwardRef((e,r)=>{const{portalled:n=!0,...o}=e,a=fo("PopoverContent",e.__scopePopover),u=I.useRef(!1),c=n?nv:I.Fragment;return I.createElement(c,null,I.createElement(uv,gt({},o,{ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:f=>{var h,m;(h=e.onCloseAutoFocus)===null||h===void 0||h.call(e,f),f.defaultPrevented||(u.current||(m=a.triggerRef.current)===null||m===void 0||m.focus(),f.preventDefault()),u.current=!1},onInteractOutside:f=>{var h,m;(h=e.onInteractOutside)===null||h===void 0||h.call(e,f),f.defaultPrevented||(u.current=!0);const y=f.target;!((m=a.triggerRef.current)===null||m===void 0)&&m.contains(y)&&f.preventDefault()}})))}),uv=I.forwardRef((e,r)=>{const{__scopePopover:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:y,..._}=e,O=fo("PopoverContent",n),v=Lc(n);return ZO(),I.createElement(QO,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u},I.createElement(iT,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:y,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:m,onDismiss:()=>O.onOpenChange(!1)},I.createElement(yT,gt({"data-state":cv(O.open),role:"dialog",id:O.contentId},v,_,{ref:r,style:{..._.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))});function cv(e){return e?"open":"closed"}const CT=ST,RT=ET,PT=xT;var Ia=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Ia||{});var lv={},Xa={},Mc={},Du={},ya={exports:{}},wa={exports:{}},Ue={};/** @license React v16.13.1
|
|
99
127
|
* react-is.production.min.js
|
|
100
128
|
*
|
|
101
129
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
102
130
|
*
|
|
103
131
|
* This source code is licensed under the MIT license found in the
|
|
104
132
|
* LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/var
|
|
133
|
+
*/var _p;function AT(){if(_p)return Ue;_p=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,O=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function R(x){if(typeof x=="object"&&x!==null){var W=x.$$typeof;switch(W){case r:switch(x=x.type,x){case h:case m:case o:case u:case a:case _:return x;default:switch(x=x&&x.$$typeof,x){case f:case y:case S:case v:case c:return x;default:return W}}case n:return W}}}function k(x){return R(x)===m}return Ue.AsyncMode=h,Ue.ConcurrentMode=m,Ue.ContextConsumer=f,Ue.ContextProvider=c,Ue.Element=r,Ue.ForwardRef=y,Ue.Fragment=o,Ue.Lazy=S,Ue.Memo=v,Ue.Portal=n,Ue.Profiler=u,Ue.StrictMode=a,Ue.Suspense=_,Ue.isAsyncMode=function(x){return k(x)||R(x)===h},Ue.isConcurrentMode=k,Ue.isContextConsumer=function(x){return R(x)===f},Ue.isContextProvider=function(x){return R(x)===c},Ue.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===r},Ue.isForwardRef=function(x){return R(x)===y},Ue.isFragment=function(x){return R(x)===o},Ue.isLazy=function(x){return R(x)===S},Ue.isMemo=function(x){return R(x)===v},Ue.isPortal=function(x){return R(x)===n},Ue.isProfiler=function(x){return R(x)===u},Ue.isStrictMode=function(x){return R(x)===a},Ue.isSuspense=function(x){return R(x)===_},Ue.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===o||x===m||x===u||x===a||x===_||x===O||typeof x=="object"&&x!==null&&(x.$$typeof===S||x.$$typeof===v||x.$$typeof===c||x.$$typeof===f||x.$$typeof===y||x.$$typeof===T||x.$$typeof===D||x.$$typeof===M||x.$$typeof===w)},Ue.typeOf=R,Ue}var Be={};/** @license React v16.13.1
|
|
106
134
|
* react-is.development.js
|
|
107
135
|
*
|
|
108
136
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
109
137
|
*
|
|
110
138
|
* This source code is licensed under the MIT license found in the
|
|
111
139
|
* LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/var mp;function OT(){return mp||(mp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,w=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,O=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,L=e?Symbol.for("react.scope"):60119;function P(Y){return typeof Y=="string"||typeof Y=="function"||Y===o||Y===m||Y===u||Y===a||Y===b||Y===C||typeof Y=="object"&&Y!==null&&(Y.$$typeof===S||Y.$$typeof===h||Y.$$typeof===l||Y.$$typeof===f||Y.$$typeof===w||Y.$$typeof===O||Y.$$typeof===M||Y.$$typeof===L||Y.$$typeof===y)}function D(Y){if(typeof Y=="object"&&Y!==null){var ot=Y.$$typeof;switch(ot){case r:var rt=Y.type;switch(rt){case p:case m:case o:case u:case a:case b:return rt;default:var Ot=rt&&rt.$$typeof;switch(Ot){case f:case w:case S:case h:case l:return Ot;default:return ot}}case n:return ot}}}var E=p,N=m,F=f,$=l,J=r,Q=w,pe=o,Ie=S,Ee=h,he=n,$e=u,ge=a,Le=b,Ke=!1;function gt(Y){return Ke||(Ke=!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.")),q(Y)||D(Y)===p}function q(Y){return D(Y)===m}function G(Y){return D(Y)===f}function ce(Y){return D(Y)===l}function fe(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===r}function ne(Y){return D(Y)===w}function oe(Y){return D(Y)===o}function te(Y){return D(Y)===S}function le(Y){return D(Y)===h}function re(Y){return D(Y)===n}function ve(Y){return D(Y)===u}function ye(Y){return D(Y)===a}function Ge(Y){return D(Y)===b}Ne.AsyncMode=E,Ne.ConcurrentMode=N,Ne.ContextConsumer=F,Ne.ContextProvider=$,Ne.Element=J,Ne.ForwardRef=Q,Ne.Fragment=pe,Ne.Lazy=Ie,Ne.Memo=Ee,Ne.Portal=he,Ne.Profiler=$e,Ne.StrictMode=ge,Ne.Suspense=Le,Ne.isAsyncMode=gt,Ne.isConcurrentMode=q,Ne.isContextConsumer=G,Ne.isContextProvider=ce,Ne.isElement=fe,Ne.isForwardRef=ne,Ne.isFragment=oe,Ne.isLazy=te,Ne.isMemo=le,Ne.isPortal=re,Ne.isProfiler=ve,Ne.isStrictMode=ye,Ne.isSuspense=Ge,Ne.isValidElementType=P,Ne.typeOf=D}()),Ne}var gp;function ov(){return gp||(gp=1,process.env.NODE_ENV==="production"?da.exports=xT():da.exports=OT()),da.exports}var Lu,yp;function Al(){if(yp)return Lu;yp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Lu=e,Lu}var Mu,wp;function av(){return wp||(wp=1,Mu=Function.call.bind(Object.prototype.hasOwnProperty)),Mu}var Du,bp;function TT(){if(bp)return Du;bp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=Al(),n={},o=av();e=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function a(u,l,f,p,m){if(process.env.NODE_ENV!=="production"){for(var w in u)if(o(u,w)){var b;try{if(typeof u[w]!="function"){var C=Error((p||"React class")+": "+f+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}b=u[w](l,w,p,f,null,r)}catch(S){b=S}if(b&&!(b instanceof Error)&&e((p||"React class")+": type specification of "+f+" `"+w+"` 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 n)){n[b.message]=!0;var h=m?m():"";e("Failed "+f+" type: "+b.message+(h??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Du=a,Du}var ku,_p;function CT(){if(_p)return ku;_p=1;var e=ov(),r=vl(),n=Al(),o=av(),a=TT(),u=function(){};process.env.NODE_ENV!=="production"&&(u=function(f){var p="Warning: "+f;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}});function l(){return null}return ku=function(f,p){var m=typeof Symbol=="function"&&Symbol.iterator,w="@@iterator";function b(q){var G=q&&(m&&q[m]||q[w]);if(typeof G=="function")return G}var C="<<anonymous>>",h={array:M("array"),bigint:M("bigint"),bool:M("boolean"),func:M("function"),number:M("number"),object:M("object"),string:M("string"),symbol:M("symbol"),any:L(),arrayOf:P,element:D(),elementType:E(),instanceOf:N,node:Q(),objectOf:$,oneOf:F,oneOfType:J,shape:Ie,exact:Ee};function S(q,G){return q===G?q!==0||1/q===1/G:q!==q&&G!==G}function y(q,G){this.message=q,this.data=G&&typeof G=="object"?G:{},this.stack=""}y.prototype=Error.prototype;function O(q){if(process.env.NODE_ENV!=="production")var G={},ce=0;function fe(oe,te,le,re,ve,ye,Ge){if(re=re||C,ye=ye||le,Ge!==n){if(p){var Y=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 Y.name="Invariant Violation",Y}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ot=re+":"+le;!G[ot]&&ce<3&&(u("You are manually calling a React.PropTypes validation function for the `"+ye+"` prop on `"+re+"`. 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."),G[ot]=!0,ce++)}}return te[le]==null?oe?te[le]===null?new y("The "+ve+" `"+ye+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new y("The "+ve+" `"+ye+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:q(te,le,re,ve,ye)}var ne=fe.bind(null,!1);return ne.isRequired=fe.bind(null,!0),ne}function M(q){function G(ce,fe,ne,oe,te,le){var re=ce[fe],ve=ge(re);if(ve!==q){var ye=Le(re);return new y("Invalid "+oe+" `"+te+"` of type "+("`"+ye+"` supplied to `"+ne+"`, expected ")+("`"+q+"`."),{expectedType:q})}return null}return O(G)}function L(){return O(l)}function P(q){function G(ce,fe,ne,oe,te){if(typeof q!="function")return new y("Property `"+te+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var le=ce[fe];if(!Array.isArray(le)){var re=ge(le);return new y("Invalid "+oe+" `"+te+"` of type "+("`"+re+"` supplied to `"+ne+"`, expected an array."))}for(var ve=0;ve<le.length;ve++){var ye=q(le,ve,ne,oe,te+"["+ve+"]",n);if(ye instanceof Error)return ye}return null}return O(G)}function D(){function q(G,ce,fe,ne,oe){var te=G[ce];if(!f(te)){var le=ge(te);return new y("Invalid "+ne+" `"+oe+"` of type "+("`"+le+"` supplied to `"+fe+"`, expected a single ReactElement."))}return null}return O(q)}function E(){function q(G,ce,fe,ne,oe){var te=G[ce];if(!e.isValidElementType(te)){var le=ge(te);return new y("Invalid "+ne+" `"+oe+"` of type "+("`"+le+"` supplied to `"+fe+"`, expected a single ReactElement type."))}return null}return O(q)}function N(q){function G(ce,fe,ne,oe,te){if(!(ce[fe]instanceof q)){var le=q.name||C,re=gt(ce[fe]);return new y("Invalid "+oe+" `"+te+"` of type "+("`"+re+"` supplied to `"+ne+"`, expected ")+("instance of `"+le+"`."))}return null}return O(G)}function F(q){if(!Array.isArray(q))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u("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])."):u("Invalid argument supplied to oneOf, expected an array.")),l;function G(ce,fe,ne,oe,te){for(var le=ce[fe],re=0;re<q.length;re++)if(S(le,q[re]))return null;var ve=JSON.stringify(q,function(Ge,Y){var ot=Le(Y);return ot==="symbol"?String(Y):Y});return new y("Invalid "+oe+" `"+te+"` of value `"+String(le)+"` "+("supplied to `"+ne+"`, expected one of "+ve+"."))}return O(G)}function $(q){function G(ce,fe,ne,oe,te){if(typeof q!="function")return new y("Property `"+te+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var le=ce[fe],re=ge(le);if(re!=="object")return new y("Invalid "+oe+" `"+te+"` of type "+("`"+re+"` supplied to `"+ne+"`, expected an object."));for(var ve in le)if(o(le,ve)){var ye=q(le,ve,ne,oe,te+"."+ve,n);if(ye instanceof Error)return ye}return null}return O(G)}function J(q){if(!Array.isArray(q))return process.env.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var G=0;G<q.length;G++){var ce=q[G];if(typeof ce!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ke(ce)+" at index "+G+"."),l}function fe(ne,oe,te,le,re){for(var ve=[],ye=0;ye<q.length;ye++){var Ge=q[ye],Y=Ge(ne,oe,te,le,re,n);if(Y==null)return null;Y.data&&o(Y.data,"expectedType")&&ve.push(Y.data.expectedType)}var ot=ve.length>0?", expected one of type ["+ve.join(", ")+"]":"";return new y("Invalid "+le+" `"+re+"` supplied to "+("`"+te+"`"+ot+"."))}return O(fe)}function Q(){function q(G,ce,fe,ne,oe){return he(G[ce])?null:new y("Invalid "+ne+" `"+oe+"` supplied to "+("`"+fe+"`, expected a ReactNode."))}return O(q)}function pe(q,G,ce,fe,ne){return new y((q||"React class")+": "+G+" type `"+ce+"."+fe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function Ie(q){function G(ce,fe,ne,oe,te){var le=ce[fe],re=ge(le);if(re!=="object")return new y("Invalid "+oe+" `"+te+"` of type `"+re+"` "+("supplied to `"+ne+"`, expected `object`."));for(var ve in q){var ye=q[ve];if(typeof ye!="function")return pe(ne,oe,te,ve,Le(ye));var Ge=ye(le,ve,ne,oe,te+"."+ve,n);if(Ge)return Ge}return null}return O(G)}function Ee(q){function G(ce,fe,ne,oe,te){var le=ce[fe],re=ge(le);if(re!=="object")return new y("Invalid "+oe+" `"+te+"` of type `"+re+"` "+("supplied to `"+ne+"`, expected `object`."));var ve=r({},ce[fe],q);for(var ye in ve){var Ge=q[ye];if(o(q,ye)&&typeof Ge!="function")return pe(ne,oe,te,ye,Le(Ge));if(!Ge)return new y("Invalid "+oe+" `"+te+"` key `"+ye+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(ce[fe],null," ")+`
|
|
113
|
-
Valid keys: `+JSON.stringify(Object.keys(q),null," "));var Y=Ge(le,ye,ne,oe,te+"."+ye,n);if(Y)return Y}return null}return O(G)}function he(q){switch(typeof q){case"number":case"string":case"undefined":return!0;case"boolean":return!q;case"object":if(Array.isArray(q))return q.every(he);if(q===null||f(q))return!0;var G=b(q);if(G){var ce=G.call(q),fe;if(G!==q.entries){for(;!(fe=ce.next()).done;)if(!he(fe.value))return!1}else for(;!(fe=ce.next()).done;){var ne=fe.value;if(ne&&!he(ne[1]))return!1}}else return!1;return!0;default:return!1}}function $e(q,G){return q==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function ge(q){var G=typeof q;return Array.isArray(q)?"array":q instanceof RegExp?"object":$e(G,q)?"symbol":G}function Le(q){if(typeof q>"u"||q===null)return""+q;var G=ge(q);if(G==="object"){if(q instanceof Date)return"date";if(q instanceof RegExp)return"regexp"}return G}function Ke(q){var G=Le(q);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function gt(q){return!q.constructor||!q.constructor.name?C:q.constructor.name}return h.checkPropTypes=a,h.resetWarningCache=a.resetWarningCache,h.PropTypes=h,h},ku}var Nu,Sp;function PT(){if(Sp)return Nu;Sp=1;var e=Al();function r(){}function n(){}return n.resetWarningCache=r,Nu=function(){function o(l,f,p,m,w,b){if(b!==e){var C=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 C.name="Invariant Violation",C}}o.isRequired=o;function a(){return o}var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return u.PropTypes=u,u},Nu}var Ep;function RT(){if(Ep)return fa.exports;if(Ep=1,process.env.NODE_ENV!=="production"){var e=ov(),r=!0;fa.exports=CT()(e.isElement,r)}else fa.exports=PT()();return fa.exports}var xp;function AT(){return xp||(xp=1,function(e){(function(r,n){n(e,U,RT())})(Tr,function(r,n,o){Object.defineProperty(r,"__esModule",{value:!0}),r.setHasSupportToCaptureOption=S;var a=l(n),u=l(o);function l(L){return L&&L.__esModule?L:{default:L}}var f=Object.assign||function(L){for(var P=1;P<arguments.length;P++){var D=arguments[P];for(var E in D)Object.prototype.hasOwnProperty.call(D,E)&&(L[E]=D[E])}return L};function p(L,P){var D={};for(var E in L)P.indexOf(E)>=0||Object.prototype.hasOwnProperty.call(L,E)&&(D[E]=L[E]);return D}function m(L,P){if(!(L instanceof P))throw new TypeError("Cannot call a class as a function")}var w=function(){function L(P,D){for(var E=0;E<D.length;E++){var N=D[E];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(P,N.key,N)}}return function(P,D,E){return D&&L(P.prototype,D),E&&L(P,E),P}}();function b(L,P){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:L}function C(L,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);L.prototype=Object.create(P&&P.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(L,P):L.__proto__=P)}var h=!1;function S(L){h=L}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function y(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return h?L:L.capture}function O(L){if("touches"in L){var P=L.touches[0],D=P.pageX,E=P.pageY;return{x:D,y:E}}var N=L.screenX,F=L.screenY;return{x:N,y:F}}var M=function(L){C(P,L);function P(){var D;m(this,P);for(var E=arguments.length,N=Array(E),F=0;F<E;F++)N[F]=arguments[F];var $=b(this,(D=P.__proto__||Object.getPrototypeOf(P)).call.apply(D,[this].concat(N)));return $._handleSwipeStart=$._handleSwipeStart.bind($),$._handleSwipeMove=$._handleSwipeMove.bind($),$._handleSwipeEnd=$._handleSwipeEnd.bind($),$._onMouseDown=$._onMouseDown.bind($),$._onMouseMove=$._onMouseMove.bind($),$._onMouseUp=$._onMouseUp.bind($),$._setSwiperRef=$._setSwiperRef.bind($),$}return w(P,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,y({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,y({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(E){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(E))}},{key:"_onMouseMove",value:function(E){this.mouseDown&&this._handleSwipeMove(E)}},{key:"_onMouseUp",value:function(E){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(E)}},{key:"_handleSwipeStart",value:function(E){var N=O(E),F=N.x,$=N.y;this.moveStart={x:F,y:$},this.props.onSwipeStart(E)}},{key:"_handleSwipeMove",value:function(E){if(this.moveStart){var N=O(E),F=N.x,$=N.y,J=F-this.moveStart.x,Q=$-this.moveStart.y;this.moving=!0;var pe=this.props.onSwipeMove({x:J,y:Q},E);pe&&E.cancelable&&E.preventDefault(),this.movePosition={deltaX:J,deltaY:Q}}}},{key:"_handleSwipeEnd",value:function(E){this.props.onSwipeEnd(E);var N=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-N?this.props.onSwipeLeft(1,E):this.movePosition.deltaX>N&&this.props.onSwipeRight(1,E),this.movePosition.deltaY<-N?this.props.onSwipeUp(1,E):this.movePosition.deltaY>N&&this.props.onSwipeDown(1,E)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(E){this.swiper=E,this.props.innerRef(E)}},{key:"render",value:function(){var E=this.props;E.tagName;var N=E.className,F=E.style,$=E.children;E.allowMouseEvents,E.onSwipeUp,E.onSwipeDown,E.onSwipeLeft,E.onSwipeRight,E.onSwipeStart,E.onSwipeMove,E.onSwipeEnd,E.innerRef,E.tolerance;var J=p(E,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,f({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:N,style:F},J),$)}}]),P}(n.Component);M.displayName="ReactSwipe",M.propTypes={tagName:u.default.string,className:u.default.string,style:u.default.object,children:u.default.node,allowMouseEvents:u.default.bool,onSwipeUp:u.default.func,onSwipeDown:u.default.func,onSwipeLeft:u.default.func,onSwipeRight:u.default.func,onSwipeStart:u.default.func,onSwipeMove:u.default.func,onSwipeEnd:u.default.func,innerRef:u.default.func,tolerance:u.default.number.isRequired},M.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},r.default=M})}(Iu)),Iu}(function(e){(function(r,n){n(e,AT())})(Tr,function(r,n){Object.defineProperty(r,"__esModule",{value:!0});var o=a(n);function a(u){return u&&u.__esModule?u:{default:u}}r.default=o.default})})(Rl);var Zi={};Object.defineProperty(Zi,"__esModule",{value:!0});Zi.default=void 0;var or=IT(ih);function IT(e){return e&&e.__esModule?e:{default:e}}function LT(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var MT={ROOT:function(r){return(0,or.default)(LT({"carousel-root":!0},r||"",!!r))},CAROUSEL:function(r){return(0,or.default)({carousel:!0,"carousel-slider":r})},WRAPPER:function(r,n){return(0,or.default)({"thumbs-wrapper":!r,"slider-wrapper":r,"axis-horizontal":n==="horizontal","axis-vertical":n!=="horizontal"})},SLIDER:function(r,n){return(0,or.default)({thumbs:!r,slider:r,animated:!n})},ITEM:function(r,n,o){return(0,or.default)({thumb:!r,slide:r,selected:n,previous:o})},ARROW_PREV:function(r){return(0,or.default)({"control-arrow control-prev":!0,"control-disabled":r})},ARROW_NEXT:function(r){return(0,or.default)({"control-arrow control-next":!0,"control-disabled":r})},DOT:function(r){return(0,or.default)({dot:!0,selected:r})}};Zi.default=MT;var Qi={},Ua={};Object.defineProperty(Ua,"__esModule",{value:!0});Ua.outerWidth=void 0;var DT=function(r){var n=r.offsetWidth,o=getComputedStyle(r);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight),n};Ua.outerWidth=DT;var ci={};Object.defineProperty(ci,"__esModule",{value:!0});ci.default=void 0;var kT=function(r,n,o){var a=r===0?r:r+n,u=o==="horizontal"?[a,0,0]:[0,a,0],l="translate3d",f="("+u.join(",")+")";return l+f};ci.default=kT;var eo={};Object.defineProperty(eo,"__esModule",{value:!0});eo.default=void 0;var NT=function(){return window};eo.default=NT;Object.defineProperty(Qi,"__esModule",{value:!0});Qi.default=void 0;var pn=WT(U),xr=za(Zi),$T=Ua,Op=za(ci),FT=za(Rl),pa=za(eo);function za(e){return e&&e.__esModule?e:{default:e}}function sv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return sv=function(){return e},e}function WT(e){if(e&&e.__esModule)return e;if(e===null||Fi(e)!=="object"&&typeof e!="function")return{default:e};var r=sv();if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function Fi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fi=function(n){return typeof n}:Fi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Fi(e)}function il(){return il=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},il.apply(this,arguments)}function jT(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Tp(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function BT(e,r,n){return r&&Tp(e.prototype,r),n&&Tp(e,n),e}function HT(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&ol(e,r)}function ol(e,r){return ol=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},ol(e,r)}function UT(e){var r=qT();return function(){var o=Ia(e),a;if(r){var u=Ia(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return zT(this,a)}}function zT(e,r){return r&&(Fi(r)==="object"||typeof r=="function")?r:At(e)}function At(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qT(){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 Ia(e){return Ia=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ia(e)}function xt(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var KT=function(r){return r.hasOwnProperty("key")},Il=function(e){HT(n,e);var r=UT(n);function n(o){var a;return jT(this,n),a=r.call(this,o),xt(At(a),"itemsWrapperRef",void 0),xt(At(a),"itemsListRef",void 0),xt(At(a),"thumbsRef",void 0),xt(At(a),"setItemsWrapperRef",function(u){a.itemsWrapperRef=u}),xt(At(a),"setItemsListRef",function(u){a.itemsListRef=u}),xt(At(a),"setThumbsRef",function(u,l){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[l]=u}),xt(At(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var u=pn.Children.count(a.props.children),l=a.itemsWrapperRef.clientWidth,f=a.props.thumbWidth?a.props.thumbWidth:(0,$T.outerWidth)(a.thumbsRef[0]),p=Math.floor(l/f),m=p<u,w=m?u-p:0;a.setState(function(b,C){return{itemSize:f,visibleItems:p,firstItem:m?a.getFirstItem(C.selectedItem):0,lastPosition:w,showArrows:m}})}}),xt(At(a),"handleClickItem",function(u,l,f){if(!KT(f)||f.key==="Enter"){var p=a.props.onSelectItem;typeof p=="function"&&p(u,l)}}),xt(At(a),"onSwipeStart",function(){a.setState({swiping:!0})}),xt(At(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),xt(At(a),"onSwipeMove",function(u){var l=u.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var f=0,p=pn.Children.count(a.props.children),m=-(a.state.firstItem*100)/a.state.visibleItems,w=Math.max(p-a.state.visibleItems,0),b=-w*100/a.state.visibleItems;m===f&&l>0&&(l=0),m===b&&l<0&&(l=0);var C=a.itemsWrapperRef.clientWidth,h=m+100/(C/l);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(S){a.itemsListRef.style[S]=(0,Op.default)(h,"%",a.props.axis)}),!0}),xt(At(a),"slideRight",function(u){a.moveTo(a.state.firstItem-(typeof u=="number"?u:1))}),xt(At(a),"slideLeft",function(u){a.moveTo(a.state.firstItem+(typeof u=="number"?u:1))}),xt(At(a),"moveTo",function(u){u=u<0?0:u,u=u>=a.state.lastPosition?a.state.lastPosition:u,a.setState({firstItem:u})}),a.state={selectedItem:o.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return BT(n,[{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,pa.default)().addEventListener("resize",this.updateSizes),(0,pa.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,pa.default)().removeEventListener("resize",this.updateSizes),(0,pa.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(a){var u=a;return a>=this.state.lastPosition&&(u=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(u=this.state.firstItem),a<this.state.firstItem&&(u=a),u}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(u,l){var f=xr.default.ITEM(!1,l===a.state.selectedItem),p={key:l,ref:function(w){return a.setThumbsRef(w,l)},className:f,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 pn.default.createElement("li",il({},p,{role:"button",tabIndex:0}),u)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var u=pn.Children.count(this.props.children)>1,l=this.state.showArrows&&this.state.firstItem>0,f=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,p={},m=-this.state.firstItem*(this.state.itemSize||0),w=(0,Op.default)(m,"px",this.props.axis),b=this.props.transitionTime+"ms";return p={WebkitTransform:w,MozTransform:w,MsTransform:w,OTransform:w,transform:w,msTransform:w,WebkitTransitionDuration:b,MozTransitionDuration:b,MsTransitionDuration:b,OTransitionDuration:b,transitionDuration:b,msTransitionDuration:b},pn.default.createElement("div",{className:xr.default.CAROUSEL(!1)},pn.default.createElement("div",{className:xr.default.WRAPPER(!1),ref:this.setItemsWrapperRef},pn.default.createElement("button",{type:"button",className:xr.default.ARROW_PREV(!l),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),u?pn.default.createElement(FT.default,{tagName:"ul",className:xr.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:p,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):pn.default.createElement("ul",{className:xr.default.SLIDER(!1,this.state.swiping),ref:function(h){return a.setItemsListRef(h)},style:p},this.renderItems()),pn.default.createElement("button",{type:"button",className:xr.default.ARROW_NEXT(!f),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),n}(pn.Component);Qi.default=Il;xt(Il,"displayName","Thumbs");xt(Il,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var qa={};Object.defineProperty(qa,"__esModule",{value:!0});qa.default=void 0;var GT=function(){return document};qa.default=GT;var zt={};Object.defineProperty(zt,"__esModule",{value:!0});zt.setPosition=zt.getPosition=zt.isKeyboardEvent=zt.defaultStatusFormatter=zt.noop=void 0;var YT=U,XT=VT(ci);function VT(e){return e&&e.__esModule?e:{default:e}}var JT=function(){};zt.noop=JT;var ZT=function(r,n){return"".concat(r," of ").concat(n)};zt.defaultStatusFormatter=ZT;var QT=function(r){return r?r.hasOwnProperty("key"):!1};zt.isKeyboardEvent=QT;var eC=function(r,n){if(n.infiniteLoop&&++r,r===0)return 0;var o=YT.Children.count(n.children);if(n.centerMode&&n.axis==="horizontal"){var a=-r*n.centerSlidePercentage,u=o-1;return r&&(r!==u||n.infiniteLoop)?a+=(100-n.centerSlidePercentage)/2:r===u&&(a+=100-n.centerSlidePercentage),a}return-r*100};zt.getPosition=eC;var tC=function(r,n){var o={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){o[a]=(0,XT.default)(r,"%",n)}),o};zt.setPosition=tC;var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.fadeAnimationHandler=Tn.slideStopSwipingHandler=Tn.slideSwipeAnimationHandler=Tn.slideAnimationHandler=void 0;var uv=U,nC=rC(ci),Cn=zt;function rC(e){return e&&e.__esModule?e:{default:e}}function Cp(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Pr(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Cp(Object(n),!0).forEach(function(o){iC(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cp(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function iC(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var oC=function(r,n){var o={},a=n.selectedItem,u=a,l=uv.Children.count(r.children)-1,f=r.infiniteLoop&&(a<0||a>l);if(f)return u<0?r.centerMode&&r.centerSlidePercentage&&r.axis==="horizontal"?o.itemListStyle=(0,Cn.setPosition)(-(l+2)*r.centerSlidePercentage-(100-r.centerSlidePercentage)/2,r.axis):o.itemListStyle=(0,Cn.setPosition)(-(l+2)*100,r.axis):u>l&&(o.itemListStyle=(0,Cn.setPosition)(0,r.axis)),o;var p=(0,Cn.getPosition)(a,r),m=(0,nC.default)(p,"%",r.axis),w=r.transitionTime+"ms";return o.itemListStyle={WebkitTransform:m,msTransform:m,OTransform:m,transform:m},n.swiping||(o.itemListStyle=Pr(Pr({},o.itemListStyle),{},{WebkitTransitionDuration:w,MozTransitionDuration:w,OTransitionDuration:w,transitionDuration:w,msTransitionDuration:w})),o};Tn.slideAnimationHandler=oC;var aC=function(r,n,o,a){var u={},l=n.axis==="horizontal",f=uv.Children.count(n.children),p=0,m=(0,Cn.getPosition)(o.selectedItem,n),w=n.infiniteLoop?(0,Cn.getPosition)(f-1,n)-100:(0,Cn.getPosition)(f-1,n),b=l?r.x:r.y,C=b;m===p&&b>0&&(C=0),m===w&&b<0&&(C=0);var h=m+100/(o.itemSize/C),S=Math.abs(b)>n.swipeScrollTolerance;return n.infiniteLoop&&S&&(o.selectedItem===0&&h>-100?h-=f*100:o.selectedItem===f-1&&h<-f*100&&(h+=f*100)),(!n.preventMovementUntilSwipeScrollTolerance||S||o.swipeMovementStarted)&&(o.swipeMovementStarted||a({swipeMovementStarted:!0}),u.itemListStyle=(0,Cn.setPosition)(h,n.axis)),S&&!o.cancelClick&&a({cancelClick:!0}),u};Tn.slideSwipeAnimationHandler=aC;var sC=function(r,n){var o=(0,Cn.getPosition)(n.selectedItem,r),a=(0,Cn.setPosition)(o,r.axis);return{itemListStyle:a}};Tn.slideStopSwipingHandler=sC;var uC=function(r,n){var o=r.transitionTime+"ms",a="ease-in-out",u={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 n.swiping||(u=Pr(Pr({},u),{},{WebkitTransitionDuration:o,MozTransitionDuration:o,OTransitionDuration:o,transitionDuration:o,msTransitionDuration:o})),{slideStyle:u,selectedStyle:Pr(Pr({},u),{},{opacity:1,position:"relative"}),prevStyle:Pr({},u)}};Tn.fadeAnimationHandler=uC;Object.defineProperty(Ha,"__esModule",{value:!0});Ha.default=void 0;var Be=fC(U),lC=to(Rl),Un=to(Zi),cC=to(Qi),ha=to(qa),va=to(eo),ki=zt,La=Tn;function to(e){return e&&e.__esModule?e:{default:e}}function lv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return lv=function(){return e},e}function fC(e){if(e&&e.__esModule)return e;if(e===null||Wi(e)!=="object"&&typeof e!="function")return{default:e};var r=lv();if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function Wi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wi=function(n){return typeof n}:Wi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wi(e)}function al(){return al=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},al.apply(this,arguments)}function Pp(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function hn(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Pp(Object(n),!0).forEach(function(o){Se(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pp(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function dC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Rp(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function pC(e,r,n){return r&&Rp(e.prototype,r),n&&Rp(e,n),e}function hC(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&sl(e,r)}function sl(e,r){return sl=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},sl(e,r)}function vC(e){var r=gC();return function(){var o=Ma(e),a;if(r){var u=Ma(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return mC(this,a)}}function mC(e,r){return r&&(Wi(r)==="object"||typeof r=="function")?r:xe(e)}function xe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gC(){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 Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Ma(e)}function Se(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var Ll=function(e){hC(n,e);var r=vC(n);function n(o){var a;dC(this,n),a=r.call(this,o),Se(xe(a),"thumbsRef",void 0),Se(xe(a),"carouselWrapperRef",void 0),Se(xe(a),"listRef",void 0),Se(xe(a),"itemsRef",void 0),Se(xe(a),"timer",void 0),Se(xe(a),"animationHandler",void 0),Se(xe(a),"setThumbsRef",function(l){a.thumbsRef=l}),Se(xe(a),"setCarouselWrapperRef",function(l){a.carouselWrapperRef=l}),Se(xe(a),"setListRef",function(l){a.listRef=l}),Se(xe(a),"setItemsRef",function(l,f){a.itemsRef||(a.itemsRef=[]),a.itemsRef[f]=l}),Se(xe(a),"autoPlay",function(){Be.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),Se(xe(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),Se(xe(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),Se(xe(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),Se(xe(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),Se(xe(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,ha.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,ha.default)().activeElement)):!1}),Se(xe(a),"navigateWithKeyboard",function(l){if(a.isFocusWithinTheCarousel()){var f=a.props.axis,p=f==="horizontal",m={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},w=p?m.ArrowRight:m.ArrowDown,b=p?m.ArrowLeft:m.ArrowUp;w===l.keyCode?a.increment():b===l.keyCode&&a.decrement()}}),Se(xe(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var l=a.props.axis==="horizontal",f=a.itemsRef[0];if(f){var p=l?f.clientWidth:f.clientHeight;a.setState({itemSize:p}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),Se(xe(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),Se(xe(a),"handleClickItem",function(l,f){if(Be.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(l,f),l!==a.state.selectedItem&&a.setState({selectedItem:l})}}),Se(xe(a),"handleOnChange",function(l,f){Be.Children.count(a.props.children)<=1||a.props.onChange(l,f)}),Se(xe(a),"handleClickThumb",function(l,f){a.props.onClickThumb(l,f),a.moveTo(l)}),Se(xe(a),"onSwipeStart",function(l){a.setState({swiping:!0}),a.props.onSwipeStart(l)}),Se(xe(a),"onSwipeEnd",function(l){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(l),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),Se(xe(a),"onSwipeMove",function(l,f){a.props.onSwipeMove(f);var p=a.props.swipeAnimationHandler(l,a.props,a.state,a.setState.bind(xe(a)));return a.setState(hn({},p)),!!Object.keys(p).length}),Se(xe(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))}),Se(xe(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))}),Se(xe(a),"moveTo",function(l){if(typeof l=="number"){var f=Be.Children.count(a.props.children)-1;l<0&&(l=a.props.infiniteLoop?f:0),l>f&&(l=a.props.infiniteLoop?0:f),a.selectItem({selectedItem:l}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),Se(xe(a),"onClickNext",function(){a.increment(1)}),Se(xe(a),"onClickPrev",function(){a.decrement(1)}),Se(xe(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Se(xe(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Se(xe(a),"changeItem",function(l){return function(f){(!(0,ki.isKeyboardEvent)(f)||f.key==="Enter")&&a.moveTo(l)}}),Se(xe(a),"selectItem",function(l){a.setState(hn({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])}),Se(xe(a),"getInitialImage",function(){var l=a.props.selectedItem,f=a.itemsRef&&a.itemsRef[l],p=f&&f.getElementsByTagName("img")||[];return p[0]}),Se(xe(a),"getVariableItemHeight",function(l){var f=a.itemsRef&&a.itemsRef[l];if(a.state.hasMount&&f&&f.children.length){var p=f.children[0].getElementsByTagName("img")||[];if(p.length>0){var m=p[0];if(!m.complete){var w=function h(){a.forceUpdate(),m.removeEventListener("load",h)};m.addEventListener("load",w)}}var b=p[0]||f.children[0],C=b.clientHeight;return C>0?C:null}return null});var u={initialized:!1,previousItem:o.selectedItem,selectedItem:o.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:o.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof o.animationHandler=="function"&&o.animationHandler||o.animationHandler==="fade"&&La.fadeAnimationHandler||La.slideAnimationHandler,a.state=hn(hn({},u),a.animationHandler(o,u)),a}return pC(n,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,u){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),u.swiping&&!this.state.swiping&&this.setState(hn({},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 u=a.getInitialImage();u&&!u.complete?u.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,va.default)().addEventListener("resize",this.updateSizes),(0,va.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,ha.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,va.default)().removeEventListener("resize",this.updateSizes),(0,va.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,ha.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 u=this;return this.props.children?Be.Children.map(this.props.children,function(l,f){var p=f===u.state.selectedItem,m=f===u.state.previousItem,w=p&&u.state.selectedStyle||m&&u.state.prevStyle||u.state.slideStyle||{};u.props.centerMode&&u.props.axis==="horizontal"&&(w=hn(hn({},w),{},{minWidth:u.props.centerSlidePercentage+"%"})),u.state.swiping&&u.state.swipeMovementStarted&&(w=hn(hn({},w),{},{pointerEvents:"none"}));var b={ref:function(h){return u.setItemsRef(h,f)},key:"itemKey"+f+(a?"clone":""),className:Un.default.ITEM(!0,f===u.state.selectedItem,f===u.state.previousItem),onClick:u.handleClickItem.bind(u,f,l),style:w};return Be.default.createElement("li",b,u.props.renderItem(l,{isSelected:f===u.state.selectedItem,isPrevious:f===u.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,u=this.props,l=u.showIndicators,f=u.labels,p=u.renderIndicator,m=u.children;return l?Be.default.createElement("ul",{className:"control-dots"},Be.Children.map(m,function(w,b){return p&&p(a.changeItem(b),b===a.state.selectedItem,b,f.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(cC.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 u=this.props.swipeable&&Be.Children.count(this.props.children)>1,l=this.props.axis==="horizontal",f=this.props.showArrows&&Be.Children.count(this.props.children)>1,p=f&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,m=f&&(this.state.selectedItem<Be.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,w=this.renderItems(!0),b=w.shift(),C=w.pop(),h={className:Un.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},S={};if(l){if(h.onSwipeLeft=this.onSwipeForward,h.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var y=this.getVariableItemHeight(this.state.selectedItem);S.height=y||"auto"}}else h.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,h.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,h.style=hn(hn({},h.style),{},{height:this.state.itemSize}),S.height=this.state.itemSize;return Be.default.createElement("div",{"aria-label":this.props.ariaLabel,className:Un.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},Be.default.createElement("div",{className:Un.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,p,this.props.labels.leftArrow),Be.default.createElement("div",{className:Un.default.WRAPPER(!0,this.props.axis),style:S},u?Be.default.createElement(lC.default,al({tagName:"ul",innerRef:this.setListRef},h,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&C,this.renderItems(),this.props.infiniteLoop&&b):Be.default.createElement("ul",{className:Un.default.SLIDER(!0,this.state.swiping),ref:function(M){return a.setListRef(M)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&C,this.renderItems(),this.props.infiniteLoop&&b)),this.props.renderArrowNext(this.onClickNext,m,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),n}(Be.default.Component);Ha.default=Ll;Se(Ll,"displayName","Carousel");Se(Ll,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:ki.noop,onClickThumb:ki.noop,onChange:ki.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(r,n,o){return Be.default.createElement("button",{type:"button","aria-label":o,className:Un.default.ARROW_PREV(!n),onClick:r})},renderArrowNext:function(r,n,o){return Be.default.createElement("button",{type:"button","aria-label":o,className:Un.default.ARROW_NEXT(!n),onClick:r})},renderIndicator:function(r,n,o,a){return Be.default.createElement("li",{className:Un.default.DOT(n),onClick:r,onKeyDown:r,value:o,key:o,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(o+1)})},renderItem:function(r){return r},renderThumbs:function(r){var n=Be.Children.map(r,function(o){var a=o;if(o.type!=="img"&&(a=Be.Children.toArray(o.props.children).find(function(u){return u.type==="img"})),!!a)return a});return n.filter(function(o){return o}).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"),[]):n},statusFormatter:ki.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:La.slideSwipeAnimationHandler,stopSwipingHandler:La.slideStopSwipingHandler});var yC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return n.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return o.default}});var r=a(Ha),n=yC,o=a(Qi);function a(u){return u&&u.__esModule?u:{default:u}}})(iv);const wC=({tip:e})=>W.jsx("div",{className:"px-8 pb-8",children:fv(e,!0)}),bC=({pages:e})=>W.jsx("div",{className:"min-h-[10rem] w-96",children:W.jsx(iv.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(r=>W.jsx(wC,{tip:r},r.key))})});function cv(e){return In({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}}]})(e)}const _C=({body:e,isInsideCarousel:r})=>W.jsx("article",{className:$t(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!r}]),children:W.jsx(Ca,{children:e,options:{overrides:{a:{component:({children:n,...o})=>W.jsxs("a",{...o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start",children:[n,W.jsx(cv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),SC=({video:e,body:r,title:n,isInsideCarousel:o})=>W.jsxs("div",{className:$t([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[W.jsx("div",{className:$t([{"mr-1":!o,"mb-1":o}]),children:W.jsx("iframe",{height:o?"auto":90,width:o?"100%":160,src:e==null?void 0:e.link,title:n,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),W.jsx("article",{className:$t(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!o,"-mt-6":o}]),children:W.jsx(Ca,{children:r||"",options:{overrides:{a:{component:({children:a,...u})=>W.jsxs("a",{...u,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,W.jsx(cv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),fv=(e,r)=>{switch(e.type){case xa.TEXT:return W.jsx(_C,{body:e.body,isInsideCarousel:r});case xa.VIDEO:return W.jsx(SC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:r});case xa.CAROUSEL:return W.jsx(bC,{pages:e.pages})}},dv=U.createContext(void 0);function Ap(e,r){const n=[];return e.forEach(o=>{o.key===r&&n.push(o)}),n}const EC=({children:e,enabled:r,baseUrl:n="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:a},u]=U.useState({tips:{},show:!0});U.useEffect(()=>{fetch(`${n}/tips.json`).then(f=>f.json()).then(f=>{const p=f.reduce((m,w)=>Ap(f,w.key).length>1?{...m,[w.key]:{type:"carousel",pages:Ap(f,w.key)}}:{...m,[w.key]:w},{});u(m=>({...m,tips:p}))})},[]);const l=()=>{u(f=>({...f,show:!a}))};return W.jsx(dv.Provider,{value:{tips:o,toggleTips:l,show:a,enabled:r},children:e})},pv=e=>{const r=U.useContext(dv);if(r===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?r.tips[e]:null,toggleTips:r.toggleTips,show:r.show,enabled:r.enabled}},xC=({side:e,children:r,...n})=>W.jsx("div",{...n,style:{top:"calc(50% - 0.25rem)",[e==="right"?"left":"right"]:"-5px"},children:r}),OC=Ra(_T)`
|
|
140
|
+
*/var Sp;function IT(){return Sp||(Sp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,_=e?Symbol.for("react.suspense"):60113,O=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,T=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function R(V){return typeof V=="string"||typeof V=="function"||V===o||V===m||V===u||V===a||V===_||V===O||typeof V=="object"&&V!==null&&(V.$$typeof===S||V.$$typeof===v||V.$$typeof===c||V.$$typeof===f||V.$$typeof===y||V.$$typeof===T||V.$$typeof===D||V.$$typeof===M||V.$$typeof===w)}function k(V){if(typeof V=="object"&&V!==null){var nt=V.$$typeof;switch(nt){case r:var rt=V.type;switch(rt){case h:case m:case o:case u:case a:case _:return rt;default:var lt=rt&&rt.$$typeof;switch(lt){case f:case y:case S:case v:case c:return lt;default:return nt}}case n:return nt}}}var x=h,W=m,F=f,N=c,Z=r,ne=y,we=o,Me=S,Oe=v,ue=n,ke=u,_e=a,Ie=_,qe=!1;function ft(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.")),G(V)||k(V)===h}function G(V){return k(V)===m}function X(V){return k(V)===f}function ve(V){return k(V)===c}function me(V){return typeof V=="object"&&V!==null&&V.$$typeof===r}function ce(V){return k(V)===y}function le(V){return k(V)===o}function ae(V){return k(V)===S}function fe(V){return k(V)===v}function se(V){return k(V)===n}function ge(V){return k(V)===u}function ye(V){return k(V)===a}function Ge(V){return k(V)===_}Be.AsyncMode=x,Be.ConcurrentMode=W,Be.ContextConsumer=F,Be.ContextProvider=N,Be.Element=Z,Be.ForwardRef=ne,Be.Fragment=we,Be.Lazy=Me,Be.Memo=Oe,Be.Portal=ue,Be.Profiler=ke,Be.StrictMode=_e,Be.Suspense=Ie,Be.isAsyncMode=ft,Be.isConcurrentMode=G,Be.isContextConsumer=X,Be.isContextProvider=ve,Be.isElement=me,Be.isForwardRef=ce,Be.isFragment=le,Be.isLazy=ae,Be.isMemo=fe,Be.isPortal=se,Be.isProfiler=ge,Be.isStrictMode=ye,Be.isSuspense=Ge,Be.isValidElementType=R,Be.typeOf=k}()),Be}var Ep;function fv(){return Ep||(Ep=1,process.env.NODE_ENV==="production"?wa.exports=AT():wa.exports=IT()),wa.exports}var ku,xp;function Dc(){if(xp)return ku;xp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ku=e,ku}var $u,Op;function dv(){return Op||(Op=1,$u=Function.call.bind(Object.prototype.hasOwnProperty)),$u}var Nu,Tp;function LT(){if(Tp)return Nu;Tp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=Dc(),n={},o=dv();e=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function a(u,c,f,h,m){if(process.env.NODE_ENV!=="production"){for(var y in u)if(o(u,y)){var _;try{if(typeof u[y]!="function"){var O=Error((h||"React class")+": "+f+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}_=u[y](c,y,h,f,null,r)}catch(S){_=S}if(_&&!(_ instanceof Error)&&e((h||"React class")+": type specification of "+f+" `"+y+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof _+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),_ instanceof Error&&!(_.message in n)){n[_.message]=!0;var v=m?m():"";e("Failed "+f+" type: "+_.message+(v??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Nu=a,Nu}var ju,Cp;function MT(){if(Cp)return ju;Cp=1;var e=fv(),r=wc(),n=Dc(),o=dv(),a=LT(),u=function(){};process.env.NODE_ENV!=="production"&&(u=function(f){var h="Warning: "+f;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}});function c(){return null}return ju=function(f,h){var m=typeof Symbol=="function"&&Symbol.iterator,y="@@iterator";function _(G){var X=G&&(m&&G[m]||G[y]);if(typeof X=="function")return X}var O="<<anonymous>>",v={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:M(),arrayOf:R,element:k(),elementType:x(),instanceOf:W,node:ne(),objectOf:N,oneOf:F,oneOfType:Z,shape:Me,exact:Oe};function S(G,X){return G===X?G!==0||1/G===1/X:G!==G&&X!==X}function w(G,X){this.message=G,this.data=X&&typeof X=="object"?X:{},this.stack=""}w.prototype=Error.prototype;function T(G){if(process.env.NODE_ENV!=="production")var X={},ve=0;function me(le,ae,fe,se,ge,ye,Ge){if(se=se||O,ye=ye||fe,Ge!==n){if(h){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 nt=se+":"+fe;!X[nt]&&ve<3&&(u("You are manually calling a React.PropTypes validation function for the `"+ye+"` 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."),X[nt]=!0,ve++)}}return ae[fe]==null?le?ae[fe]===null?new w("The "+ge+" `"+ye+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new w("The "+ge+" `"+ye+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:G(ae,fe,se,ge,ye)}var ce=me.bind(null,!1);return ce.isRequired=me.bind(null,!0),ce}function D(G){function X(ve,me,ce,le,ae,fe){var se=ve[me],ge=_e(se);if(ge!==G){var ye=Ie(se);return new w("Invalid "+le+" `"+ae+"` of type "+("`"+ye+"` supplied to `"+ce+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return T(X)}function M(){return T(c)}function R(G){function X(ve,me,ce,le,ae){if(typeof G!="function")return new w("Property `"+ae+"` of component `"+ce+"` has invalid PropType notation inside arrayOf.");var fe=ve[me];if(!Array.isArray(fe)){var se=_e(fe);return new w("Invalid "+le+" `"+ae+"` of type "+("`"+se+"` supplied to `"+ce+"`, expected an array."))}for(var ge=0;ge<fe.length;ge++){var ye=G(fe,ge,ce,le,ae+"["+ge+"]",n);if(ye instanceof Error)return ye}return null}return T(X)}function k(){function G(X,ve,me,ce,le){var ae=X[ve];if(!f(ae)){var fe=_e(ae);return new w("Invalid "+ce+" `"+le+"` of type "+("`"+fe+"` supplied to `"+me+"`, expected a single ReactElement."))}return null}return T(G)}function x(){function G(X,ve,me,ce,le){var ae=X[ve];if(!e.isValidElementType(ae)){var fe=_e(ae);return new w("Invalid "+ce+" `"+le+"` of type "+("`"+fe+"` supplied to `"+me+"`, expected a single ReactElement type."))}return null}return T(G)}function W(G){function X(ve,me,ce,le,ae){if(!(ve[me]instanceof G)){var fe=G.name||O,se=ft(ve[me]);return new w("Invalid "+le+" `"+ae+"` of type "+("`"+se+"` supplied to `"+ce+"`, expected ")+("instance of `"+fe+"`."))}return null}return T(X)}function F(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u("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])."):u("Invalid argument supplied to oneOf, expected an array.")),c;function X(ve,me,ce,le,ae){for(var fe=ve[me],se=0;se<G.length;se++)if(S(fe,G[se]))return null;var ge=JSON.stringify(G,function(Ge,V){var nt=Ie(V);return nt==="symbol"?String(V):V});return new w("Invalid "+le+" `"+ae+"` of value `"+String(fe)+"` "+("supplied to `"+ce+"`, expected one of "+ge+"."))}return T(X)}function N(G){function X(ve,me,ce,le,ae){if(typeof G!="function")return new w("Property `"+ae+"` of component `"+ce+"` has invalid PropType notation inside objectOf.");var fe=ve[me],se=_e(fe);if(se!=="object")return new w("Invalid "+le+" `"+ae+"` of type "+("`"+se+"` supplied to `"+ce+"`, expected an object."));for(var ge in fe)if(o(fe,ge)){var ye=G(fe,ge,ce,le,ae+"."+ge,n);if(ye instanceof Error)return ye}return null}return T(X)}function Z(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var X=0;X<G.length;X++){var ve=G[X];if(typeof ve!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+qe(ve)+" at index "+X+"."),c}function me(ce,le,ae,fe,se){for(var ge=[],ye=0;ye<G.length;ye++){var Ge=G[ye],V=Ge(ce,le,ae,fe,se,n);if(V==null)return null;V.data&&o(V.data,"expectedType")&&ge.push(V.data.expectedType)}var nt=ge.length>0?", expected one of type ["+ge.join(", ")+"]":"";return new w("Invalid "+fe+" `"+se+"` supplied to "+("`"+ae+"`"+nt+"."))}return T(me)}function ne(){function G(X,ve,me,ce,le){return ue(X[ve])?null:new w("Invalid "+ce+" `"+le+"` supplied to "+("`"+me+"`, expected a ReactNode."))}return T(G)}function we(G,X,ve,me,ce){return new w((G||"React class")+": "+X+" type `"+ve+"."+me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ce+"`.")}function Me(G){function X(ve,me,ce,le,ae){var fe=ve[me],se=_e(fe);if(se!=="object")return new w("Invalid "+le+" `"+ae+"` of type `"+se+"` "+("supplied to `"+ce+"`, expected `object`."));for(var ge in G){var ye=G[ge];if(typeof ye!="function")return we(ce,le,ae,ge,Ie(ye));var Ge=ye(fe,ge,ce,le,ae+"."+ge,n);if(Ge)return Ge}return null}return T(X)}function Oe(G){function X(ve,me,ce,le,ae){var fe=ve[me],se=_e(fe);if(se!=="object")return new w("Invalid "+le+" `"+ae+"` of type `"+se+"` "+("supplied to `"+ce+"`, expected `object`."));var ge=r({},ve[me],G);for(var ye in ge){var Ge=G[ye];if(o(G,ye)&&typeof Ge!="function")return we(ce,le,ae,ye,Ie(Ge));if(!Ge)return new w("Invalid "+le+" `"+ae+"` key `"+ye+"` supplied to `"+ce+"`.\nBad object: "+JSON.stringify(ve[me],null," ")+`
|
|
141
|
+
Valid keys: `+JSON.stringify(Object.keys(G),null," "));var V=Ge(fe,ye,ce,le,ae+"."+ye,n);if(V)return V}return null}return T(X)}function ue(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(ue);if(G===null||f(G))return!0;var X=_(G);if(X){var ve=X.call(G),me;if(X!==G.entries){for(;!(me=ve.next()).done;)if(!ue(me.value))return!1}else for(;!(me=ve.next()).done;){var ce=me.value;if(ce&&!ue(ce[1]))return!1}}else return!1;return!0;default:return!1}}function ke(G,X){return G==="symbol"?!0:X?X["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&X instanceof Symbol:!1}function _e(G){var X=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":ke(X,G)?"symbol":X}function Ie(G){if(typeof G>"u"||G===null)return""+G;var X=_e(G);if(X==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return X}function qe(G){var X=Ie(G);switch(X){case"array":case"object":return"an "+X;case"boolean":case"date":case"regexp":return"a "+X;default:return X}}function ft(G){return!G.constructor||!G.constructor.name?O:G.constructor.name}return v.checkPropTypes=a,v.resetWarningCache=a.resetWarningCache,v.PropTypes=v,v},ju}var Fu,Rp;function DT(){if(Rp)return Fu;Rp=1;var e=Dc();function r(){}function n(){}return n.resetWarningCache=r,Fu=function(){function o(c,f,h,m,y,_){if(_!==e){var O=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 O.name="Invariant Violation",O}}o.isRequired=o;function a(){return o}var u={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return u.PropTypes=u,u},Fu}var Pp;function kT(){if(Pp)return ya.exports;if(Pp=1,process.env.NODE_ENV!=="production"){var e=fv(),r=!0;ya.exports=MT()(e.isElement,r)}else ya.exports=DT()();return ya.exports}var Ap;function $T(){return Ap||(Ap=1,function(e){(function(r,n){n(e,q,kT())})(Fr,function(r,n,o){Object.defineProperty(r,"__esModule",{value:!0}),r.setHasSupportToCaptureOption=S;var a=c(n),u=c(o);function c(M){return M&&M.__esModule?M:{default:M}}var f=Object.assign||function(M){for(var R=1;R<arguments.length;R++){var k=arguments[R];for(var x in k)Object.prototype.hasOwnProperty.call(k,x)&&(M[x]=k[x])}return M};function h(M,R){var k={};for(var x in M)R.indexOf(x)>=0||Object.prototype.hasOwnProperty.call(M,x)&&(k[x]=M[x]);return k}function m(M,R){if(!(M instanceof R))throw new TypeError("Cannot call a class as a function")}var y=function(){function M(R,k){for(var x=0;x<k.length;x++){var W=k[x];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(R,W.key,W)}}return function(R,k,x){return k&&M(R.prototype,k),x&&M(R,x),R}}();function _(M,R){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:M}function O(M,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);M.prototype=Object.create(R&&R.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(M,R):M.__proto__=R)}var v=!1;function S(M){v=M}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function w(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return v?M:M.capture}function T(M){if("touches"in M){var R=M.touches[0],k=R.pageX,x=R.pageY;return{x:k,y:x}}var W=M.screenX,F=M.screenY;return{x:W,y:F}}var D=function(M){O(R,M);function R(){var k;m(this,R);for(var x=arguments.length,W=Array(x),F=0;F<x;F++)W[F]=arguments[F];var N=_(this,(k=R.__proto__||Object.getPrototypeOf(R)).call.apply(k,[this].concat(W)));return N._handleSwipeStart=N._handleSwipeStart.bind(N),N._handleSwipeMove=N._handleSwipeMove.bind(N),N._handleSwipeEnd=N._handleSwipeEnd.bind(N),N._onMouseDown=N._onMouseDown.bind(N),N._onMouseMove=N._onMouseMove.bind(N),N._onMouseUp=N._onMouseUp.bind(N),N._setSwiperRef=N._setSwiperRef.bind(N),N}return y(R,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,w({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,w({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(x){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(x))}},{key:"_onMouseMove",value:function(x){this.mouseDown&&this._handleSwipeMove(x)}},{key:"_onMouseUp",value:function(x){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(x)}},{key:"_handleSwipeStart",value:function(x){var W=T(x),F=W.x,N=W.y;this.moveStart={x:F,y:N},this.props.onSwipeStart(x)}},{key:"_handleSwipeMove",value:function(x){if(this.moveStart){var W=T(x),F=W.x,N=W.y,Z=F-this.moveStart.x,ne=N-this.moveStart.y;this.moving=!0;var we=this.props.onSwipeMove({x:Z,y:ne},x);we&&x.cancelable&&x.preventDefault(),this.movePosition={deltaX:Z,deltaY:ne}}}},{key:"_handleSwipeEnd",value:function(x){this.props.onSwipeEnd(x);var W=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-W?this.props.onSwipeLeft(1,x):this.movePosition.deltaX>W&&this.props.onSwipeRight(1,x),this.movePosition.deltaY<-W?this.props.onSwipeUp(1,x):this.movePosition.deltaY>W&&this.props.onSwipeDown(1,x)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(x){this.swiper=x,this.props.innerRef(x)}},{key:"render",value:function(){var x=this.props;x.tagName;var W=x.className,F=x.style,N=x.children;x.allowMouseEvents,x.onSwipeUp,x.onSwipeDown,x.onSwipeLeft,x.onSwipeRight,x.onSwipeStart,x.onSwipeMove,x.onSwipeEnd,x.innerRef,x.tolerance;var Z=h(x,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return a.default.createElement(this.props.tagName,f({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:W,style:F},Z),N)}}]),R}(n.Component);D.displayName="ReactSwipe",D.propTypes={tagName:u.default.string,className:u.default.string,style:u.default.object,children:u.default.node,allowMouseEvents:u.default.bool,onSwipeUp:u.default.func,onSwipeDown:u.default.func,onSwipeLeft:u.default.func,onSwipeRight:u.default.func,onSwipeStart:u.default.func,onSwipeMove:u.default.func,onSwipeEnd:u.default.func,innerRef:u.default.func,tolerance:u.default.number.isRequired},D.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},r.default=D})}(Du)),Du}(function(e){(function(r,n){n(e,$T())})(Fr,function(r,n){Object.defineProperty(r,"__esModule",{value:!0});var o=a(n);function a(u){return u&&u.__esModule?u:{default:u}}r.default=o.default})})(Mc);var po={};Object.defineProperty(po,"__esModule",{value:!0});po.default=void 0;var dr=NT(dh);function NT(e){return e&&e.__esModule?e:{default:e}}function jT(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var FT={ROOT:function(r){return(0,dr.default)(jT({"carousel-root":!0},r||"",!!r))},CAROUSEL:function(r){return(0,dr.default)({carousel:!0,"carousel-slider":r})},WRAPPER:function(r,n){return(0,dr.default)({"thumbs-wrapper":!r,"slider-wrapper":r,"axis-horizontal":n==="horizontal","axis-vertical":n!=="horizontal"})},SLIDER:function(r,n){return(0,dr.default)({thumbs:!r,slider:r,animated:!n})},ITEM:function(r,n,o){return(0,dr.default)({thumb:!r,slide:r,selected:n,previous:o})},ARROW_PREV:function(r){return(0,dr.default)({"control-arrow control-prev":!0,"control-disabled":r})},ARROW_NEXT:function(r){return(0,dr.default)({"control-arrow control-next":!0,"control-disabled":r})},DOT:function(r){return(0,dr.default)({dot:!0,selected:r})}};po.default=FT;var ho={},Va={};Object.defineProperty(Va,"__esModule",{value:!0});Va.outerWidth=void 0;var WT=function(r){var n=r.offsetWidth,o=getComputedStyle(r);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight),n};Va.outerWidth=WT;var xi={};Object.defineProperty(xi,"__esModule",{value:!0});xi.default=void 0;var UT=function(r,n,o){var a=r===0?r:r+n,u=o==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",f="("+u.join(",")+")";return c+f};xi.default=UT;var vo={};Object.defineProperty(vo,"__esModule",{value:!0});vo.default=void 0;var BT=function(){return window};vo.default=BT;Object.defineProperty(ho,"__esModule",{value:!0});ho.default=void 0;var xn=qT(q),Nr=Ja(po),HT=Va,Ip=Ja(xi),zT=Ja(Mc),ba=Ja(vo);function Ja(e){return e&&e.__esModule?e:{default:e}}function pv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return pv=function(){return e},e}function qT(e){if(e&&e.__esModule)return e;if(e===null||Zi(e)!=="object"&&typeof e!="function")return{default:e};var r=pv();if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function Zi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Zi=function(n){return typeof n}:Zi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Zi(e)}function uc(){return uc=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},uc.apply(this,arguments)}function KT(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Lp(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function GT(e,r,n){return r&&Lp(e.prototype,r),n&&Lp(e,n),e}function YT(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&cc(e,r)}function cc(e,r){return cc=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},cc(e,r)}function XT(e){var r=JT();return function(){var o=ja(e),a;if(r){var u=ja(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return VT(this,a)}}function VT(e,r){return r&&(Zi(r)==="object"||typeof r=="function")?r:kt(e)}function kt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JT(){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 ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},ja(e)}function At(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var ZT=function(r){return r.hasOwnProperty("key")},kc=function(e){YT(n,e);var r=XT(n);function n(o){var a;return KT(this,n),a=r.call(this,o),At(kt(a),"itemsWrapperRef",void 0),At(kt(a),"itemsListRef",void 0),At(kt(a),"thumbsRef",void 0),At(kt(a),"setItemsWrapperRef",function(u){a.itemsWrapperRef=u}),At(kt(a),"setItemsListRef",function(u){a.itemsListRef=u}),At(kt(a),"setThumbsRef",function(u,c){a.thumbsRef||(a.thumbsRef=[]),a.thumbsRef[c]=u}),At(kt(a),"updateSizes",function(){if(!(!a.props.children||!a.itemsWrapperRef||!a.thumbsRef)){var u=xn.Children.count(a.props.children),c=a.itemsWrapperRef.clientWidth,f=a.props.thumbWidth?a.props.thumbWidth:(0,HT.outerWidth)(a.thumbsRef[0]),h=Math.floor(c/f),m=h<u,y=m?u-h:0;a.setState(function(_,O){return{itemSize:f,visibleItems:h,firstItem:m?a.getFirstItem(O.selectedItem):0,lastPosition:y,showArrows:m}})}}),At(kt(a),"handleClickItem",function(u,c,f){if(!ZT(f)||f.key==="Enter"){var h=a.props.onSelectItem;typeof h=="function"&&h(u,c)}}),At(kt(a),"onSwipeStart",function(){a.setState({swiping:!0})}),At(kt(a),"onSwipeEnd",function(){a.setState({swiping:!1})}),At(kt(a),"onSwipeMove",function(u){var c=u.x;if(!a.state.itemSize||!a.itemsWrapperRef||!a.state.visibleItems)return!1;var f=0,h=xn.Children.count(a.props.children),m=-(a.state.firstItem*100)/a.state.visibleItems,y=Math.max(h-a.state.visibleItems,0),_=-y*100/a.state.visibleItems;m===f&&c>0&&(c=0),m===_&&c<0&&(c=0);var O=a.itemsWrapperRef.clientWidth,v=m+100/(O/c);return a.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(S){a.itemsListRef.style[S]=(0,Ip.default)(v,"%",a.props.axis)}),!0}),At(kt(a),"slideRight",function(u){a.moveTo(a.state.firstItem-(typeof u=="number"?u:1))}),At(kt(a),"slideLeft",function(u){a.moveTo(a.state.firstItem+(typeof u=="number"?u:1))}),At(kt(a),"moveTo",function(u){u=u<0?0:u,u=u>=a.state.lastPosition?a.state.lastPosition:u,a.setState({firstItem:u})}),a.state={selectedItem:o.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},a}return GT(n,[{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,ba.default)().addEventListener("resize",this.updateSizes),(0,ba.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,ba.default)().removeEventListener("resize",this.updateSizes),(0,ba.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(a){var u=a;return a>=this.state.lastPosition&&(u=this.state.lastPosition),a<this.state.firstItem+this.state.visibleItems&&(u=this.state.firstItem),a<this.state.firstItem&&(u=a),u}},{key:"renderItems",value:function(){var a=this;return this.props.children.map(function(u,c){var f=Nr.default.ITEM(!1,c===a.state.selectedItem),h={key:c,ref:function(y){return a.setThumbsRef(y,c)},className:f,onClick:a.handleClickItem.bind(a,c,a.props.children[c]),onKeyDown:a.handleClickItem.bind(a,c,a.props.children[c]),"aria-label":"".concat(a.props.labels.item," ").concat(c+1),style:{width:a.props.thumbWidth}};return xn.default.createElement("li",uc({},h,{role:"button",tabIndex:0}),u)})}},{key:"render",value:function(){var a=this;if(!this.props.children)return null;var u=xn.Children.count(this.props.children)>1,c=this.state.showArrows&&this.state.firstItem>0,f=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,h={},m=-this.state.firstItem*(this.state.itemSize||0),y=(0,Ip.default)(m,"px",this.props.axis),_=this.props.transitionTime+"ms";return h={WebkitTransform:y,MozTransform:y,MsTransform:y,OTransform:y,transform:y,msTransform:y,WebkitTransitionDuration:_,MozTransitionDuration:_,MsTransitionDuration:_,OTransitionDuration:_,transitionDuration:_,msTransitionDuration:_},xn.default.createElement("div",{className:Nr.default.CAROUSEL(!1)},xn.default.createElement("div",{className:Nr.default.WRAPPER(!1),ref:this.setItemsWrapperRef},xn.default.createElement("button",{type:"button",className:Nr.default.ARROW_PREV(!c),onClick:function(){return a.slideRight()},"aria-label":this.props.labels.leftArrow}),u?xn.default.createElement(zT.default,{tagName:"ul",className:Nr.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:h,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):xn.default.createElement("ul",{className:Nr.default.SLIDER(!1,this.state.swiping),ref:function(v){return a.setItemsListRef(v)},style:h},this.renderItems()),xn.default.createElement("button",{type:"button",className:Nr.default.ARROW_NEXT(!f),onClick:function(){return a.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),n}(xn.Component);ho.default=kc;At(kc,"displayName","Thumbs");At(kc,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350});var Za={};Object.defineProperty(Za,"__esModule",{value:!0});Za.default=void 0;var QT=function(){return document};Za.default=QT;var Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.setPosition=Qt.getPosition=Qt.isKeyboardEvent=Qt.defaultStatusFormatter=Qt.noop=void 0;var eC=q,tC=nC(xi);function nC(e){return e&&e.__esModule?e:{default:e}}var rC=function(){};Qt.noop=rC;var iC=function(r,n){return"".concat(r," of ").concat(n)};Qt.defaultStatusFormatter=iC;var oC=function(r){return r?r.hasOwnProperty("key"):!1};Qt.isKeyboardEvent=oC;var aC=function(r,n){if(n.infiniteLoop&&++r,r===0)return 0;var o=eC.Children.count(n.children);if(n.centerMode&&n.axis==="horizontal"){var a=-r*n.centerSlidePercentage,u=o-1;return r&&(r!==u||n.infiniteLoop)?a+=(100-n.centerSlidePercentage)/2:r===u&&(a+=100-n.centerSlidePercentage),a}return-r*100};Qt.getPosition=aC;var sC=function(r,n){var o={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(a){o[a]=(0,tC.default)(r,"%",n)}),o};Qt.setPosition=sC;var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.fadeAnimationHandler=Dn.slideStopSwipingHandler=Dn.slideSwipeAnimationHandler=Dn.slideAnimationHandler=void 0;var hv=q,uC=cC(xi),kn=Qt;function cC(e){return e&&e.__esModule?e:{default:e}}function Mp(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function Ur(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Mp(Object(n),!0).forEach(function(o){lC(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mp(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function lC(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var fC=function(r,n){var o={},a=n.selectedItem,u=a,c=hv.Children.count(r.children)-1,f=r.infiniteLoop&&(a<0||a>c);if(f)return u<0?r.centerMode&&r.centerSlidePercentage&&r.axis==="horizontal"?o.itemListStyle=(0,kn.setPosition)(-(c+2)*r.centerSlidePercentage-(100-r.centerSlidePercentage)/2,r.axis):o.itemListStyle=(0,kn.setPosition)(-(c+2)*100,r.axis):u>c&&(o.itemListStyle=(0,kn.setPosition)(0,r.axis)),o;var h=(0,kn.getPosition)(a,r),m=(0,uC.default)(h,"%",r.axis),y=r.transitionTime+"ms";return o.itemListStyle={WebkitTransform:m,msTransform:m,OTransform:m,transform:m},n.swiping||(o.itemListStyle=Ur(Ur({},o.itemListStyle),{},{WebkitTransitionDuration:y,MozTransitionDuration:y,OTransitionDuration:y,transitionDuration:y,msTransitionDuration:y})),o};Dn.slideAnimationHandler=fC;var dC=function(r,n,o,a){var u={},c=n.axis==="horizontal",f=hv.Children.count(n.children),h=0,m=(0,kn.getPosition)(o.selectedItem,n),y=n.infiniteLoop?(0,kn.getPosition)(f-1,n)-100:(0,kn.getPosition)(f-1,n),_=c?r.x:r.y,O=_;m===h&&_>0&&(O=0),m===y&&_<0&&(O=0);var v=m+100/(o.itemSize/O),S=Math.abs(_)>n.swipeScrollTolerance;return n.infiniteLoop&&S&&(o.selectedItem===0&&v>-100?v-=f*100:o.selectedItem===f-1&&v<-f*100&&(v+=f*100)),(!n.preventMovementUntilSwipeScrollTolerance||S||o.swipeMovementStarted)&&(o.swipeMovementStarted||a({swipeMovementStarted:!0}),u.itemListStyle=(0,kn.setPosition)(v,n.axis)),S&&!o.cancelClick&&a({cancelClick:!0}),u};Dn.slideSwipeAnimationHandler=dC;var pC=function(r,n){var o=(0,kn.getPosition)(n.selectedItem,r),a=(0,kn.setPosition)(o,r.axis);return{itemListStyle:a}};Dn.slideStopSwipingHandler=pC;var hC=function(r,n){var o=r.transitionTime+"ms",a="ease-in-out",u={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 n.swiping||(u=Ur(Ur({},u),{},{WebkitTransitionDuration:o,MozTransitionDuration:o,OTransitionDuration:o,transitionDuration:o,msTransitionDuration:o})),{slideStyle:u,selectedStyle:Ur(Ur({},u),{},{opacity:1,position:"relative"}),prevStyle:Ur({},u)}};Dn.fadeAnimationHandler=hC;Object.defineProperty(Xa,"__esModule",{value:!0});Xa.default=void 0;var ze=gC(q),vC=mo(Mc),Vn=mo(po),mC=mo(ho),_a=mo(Za),Sa=mo(vo),Xi=Qt,Fa=Dn;function mo(e){return e&&e.__esModule?e:{default:e}}function vv(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return vv=function(){return e},e}function gC(e){if(e&&e.__esModule)return e;if(e===null||Qi(e)!=="object"&&typeof e!="function")return{default:e};var r=vv();if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function Qi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qi=function(n){return typeof n}:Qi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Qi(e)}function lc(){return lc=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},lc.apply(this,arguments)}function Dp(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function On(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?Dp(Object(n),!0).forEach(function(o){Pe(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dp(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function yC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function kp(e,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function wC(e,r,n){return r&&kp(e.prototype,r),n&&kp(e,n),e}function bC(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&fc(e,r)}function fc(e,r){return fc=Object.setPrototypeOf||function(o,a){return o.__proto__=a,o},fc(e,r)}function _C(e){var r=EC();return function(){var o=Wa(e),a;if(r){var u=Wa(this).constructor;a=Reflect.construct(o,arguments,u)}else a=o.apply(this,arguments);return SC(this,a)}}function SC(e,r){return r&&(Qi(r)==="object"||typeof r=="function")?r:Ae(e)}function Ae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EC(){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 Wa(e){return Wa=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Wa(e)}function Pe(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var $c=function(e){bC(n,e);var r=_C(n);function n(o){var a;yC(this,n),a=r.call(this,o),Pe(Ae(a),"thumbsRef",void 0),Pe(Ae(a),"carouselWrapperRef",void 0),Pe(Ae(a),"listRef",void 0),Pe(Ae(a),"itemsRef",void 0),Pe(Ae(a),"timer",void 0),Pe(Ae(a),"animationHandler",void 0),Pe(Ae(a),"setThumbsRef",function(c){a.thumbsRef=c}),Pe(Ae(a),"setCarouselWrapperRef",function(c){a.carouselWrapperRef=c}),Pe(Ae(a),"setListRef",function(c){a.listRef=c}),Pe(Ae(a),"setItemsRef",function(c,f){a.itemsRef||(a.itemsRef=[]),a.itemsRef[f]=c}),Pe(Ae(a),"autoPlay",function(){ze.Children.count(a.props.children)<=1||(a.clearAutoPlay(),a.props.autoPlay&&(a.timer=setTimeout(function(){a.increment()},a.props.interval)))}),Pe(Ae(a),"clearAutoPlay",function(){a.timer&&clearTimeout(a.timer)}),Pe(Ae(a),"resetAutoPlay",function(){a.clearAutoPlay(),a.autoPlay()}),Pe(Ae(a),"stopOnHover",function(){a.setState({isMouseEntered:!0},a.clearAutoPlay)}),Pe(Ae(a),"startOnLeave",function(){a.setState({isMouseEntered:!1},a.autoPlay)}),Pe(Ae(a),"isFocusWithinTheCarousel",function(){return a.carouselWrapperRef?!!((0,_a.default)().activeElement===a.carouselWrapperRef||a.carouselWrapperRef.contains((0,_a.default)().activeElement)):!1}),Pe(Ae(a),"navigateWithKeyboard",function(c){if(a.isFocusWithinTheCarousel()){var f=a.props.axis,h=f==="horizontal",m={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},y=h?m.ArrowRight:m.ArrowDown,_=h?m.ArrowLeft:m.ArrowUp;y===c.keyCode?a.increment():_===c.keyCode&&a.decrement()}}),Pe(Ae(a),"updateSizes",function(){if(!(!a.state.initialized||!a.itemsRef||a.itemsRef.length===0)){var c=a.props.axis==="horizontal",f=a.itemsRef[0];if(f){var h=c?f.clientWidth:f.clientHeight;a.setState({itemSize:h}),a.thumbsRef&&a.thumbsRef.updateSizes()}}}),Pe(Ae(a),"setMountState",function(){a.setState({hasMount:!0}),a.updateSizes()}),Pe(Ae(a),"handleClickItem",function(c,f){if(ze.Children.count(a.props.children)!==0){if(a.state.cancelClick){a.setState({cancelClick:!1});return}a.props.onClickItem(c,f),c!==a.state.selectedItem&&a.setState({selectedItem:c})}}),Pe(Ae(a),"handleOnChange",function(c,f){ze.Children.count(a.props.children)<=1||a.props.onChange(c,f)}),Pe(Ae(a),"handleClickThumb",function(c,f){a.props.onClickThumb(c,f),a.moveTo(c)}),Pe(Ae(a),"onSwipeStart",function(c){a.setState({swiping:!0}),a.props.onSwipeStart(c)}),Pe(Ae(a),"onSwipeEnd",function(c){a.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),a.props.onSwipeEnd(c),a.clearAutoPlay(),a.state.autoPlay&&a.autoPlay()}),Pe(Ae(a),"onSwipeMove",function(c,f){a.props.onSwipeMove(f);var h=a.props.swipeAnimationHandler(c,a.props,a.state,a.setState.bind(Ae(a)));return a.setState(On({},h)),!!Object.keys(h).length}),Pe(Ae(a),"decrement",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem-(typeof c=="number"?c:1))}),Pe(Ae(a),"increment",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;a.moveTo(a.state.selectedItem+(typeof c=="number"?c:1))}),Pe(Ae(a),"moveTo",function(c){if(typeof c=="number"){var f=ze.Children.count(a.props.children)-1;c<0&&(c=a.props.infiniteLoop?f:0),c>f&&(c=a.props.infiniteLoop?0:f),a.selectItem({selectedItem:c}),a.state.autoPlay&&a.state.isMouseEntered===!1&&a.resetAutoPlay()}}),Pe(Ae(a),"onClickNext",function(){a.increment(1)}),Pe(Ae(a),"onClickPrev",function(){a.decrement(1)}),Pe(Ae(a),"onSwipeForward",function(){a.increment(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Pe(Ae(a),"onSwipeBackwards",function(){a.decrement(1),a.props.emulateTouch&&a.setState({cancelClick:!0})}),Pe(Ae(a),"changeItem",function(c){return function(f){(!(0,Xi.isKeyboardEvent)(f)||f.key==="Enter")&&a.moveTo(c)}}),Pe(Ae(a),"selectItem",function(c){a.setState(On({previousItem:a.state.selectedItem},c),function(){a.setState(a.animationHandler(a.props,a.state))}),a.handleOnChange(c.selectedItem,ze.Children.toArray(a.props.children)[c.selectedItem])}),Pe(Ae(a),"getInitialImage",function(){var c=a.props.selectedItem,f=a.itemsRef&&a.itemsRef[c],h=f&&f.getElementsByTagName("img")||[];return h[0]}),Pe(Ae(a),"getVariableItemHeight",function(c){var f=a.itemsRef&&a.itemsRef[c];if(a.state.hasMount&&f&&f.children.length){var h=f.children[0].getElementsByTagName("img")||[];if(h.length>0){var m=h[0];if(!m.complete){var y=function v(){a.forceUpdate(),m.removeEventListener("load",v)};m.addEventListener("load",y)}}var _=h[0]||f.children[0],O=_.clientHeight;return O>0?O:null}return null});var u={initialized:!1,previousItem:o.selectedItem,selectedItem:o.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:o.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return a.animationHandler=typeof o.animationHandler=="function"&&o.animationHandler||o.animationHandler==="fade"&&Fa.fadeAnimationHandler||Fa.slideAnimationHandler,a.state=On(On({},u),a.animationHandler(o,u)),a}return wC(n,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(a,u){!a.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!a.autoFocus&&this.props.autoFocus&&this.forceFocus(),u.swiping&&!this.state.swiping&&this.setState(On({},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&&ze.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var u=a.getInitialImage();u&&!u.complete?u.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,Sa.default)().addEventListener("resize",this.updateSizes),(0,Sa.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,_a.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,Sa.default)().removeEventListener("resize",this.updateSizes),(0,Sa.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var a=this.getInitialImage();a&&a.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,_a.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 u=this;return this.props.children?ze.Children.map(this.props.children,function(c,f){var h=f===u.state.selectedItem,m=f===u.state.previousItem,y=h&&u.state.selectedStyle||m&&u.state.prevStyle||u.state.slideStyle||{};u.props.centerMode&&u.props.axis==="horizontal"&&(y=On(On({},y),{},{minWidth:u.props.centerSlidePercentage+"%"})),u.state.swiping&&u.state.swipeMovementStarted&&(y=On(On({},y),{},{pointerEvents:"none"}));var _={ref:function(v){return u.setItemsRef(v,f)},key:"itemKey"+f+(a?"clone":""),className:Vn.default.ITEM(!0,f===u.state.selectedItem,f===u.state.previousItem),onClick:u.handleClickItem.bind(u,f,c),style:y};return ze.default.createElement("li",_,u.props.renderItem(c,{isSelected:f===u.state.selectedItem,isPrevious:f===u.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var a=this,u=this.props,c=u.showIndicators,f=u.labels,h=u.renderIndicator,m=u.children;return c?ze.default.createElement("ul",{className:"control-dots"},ze.Children.map(m,function(y,_){return h&&h(a.changeItem(_),_===a.state.selectedItem,_,f.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?ze.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,ze.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||ze.Children.count(this.props.children)===0?null:ze.default.createElement(mC.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||ze.Children.count(this.props.children)===0)return null;var u=this.props.swipeable&&ze.Children.count(this.props.children)>1,c=this.props.axis==="horizontal",f=this.props.showArrows&&ze.Children.count(this.props.children)>1,h=f&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,m=f&&(this.state.selectedItem<ze.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,y=this.renderItems(!0),_=y.shift(),O=y.pop(),v={className:Vn.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},S={};if(c){if(v.onSwipeLeft=this.onSwipeForward,v.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var w=this.getVariableItemHeight(this.state.selectedItem);S.height=w||"auto"}}else v.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,v.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,v.style=On(On({},v.style),{},{height:this.state.itemSize}),S.height=this.state.itemSize;return ze.default.createElement("div",{"aria-label":this.props.ariaLabel,className:Vn.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},ze.default.createElement("div",{className:Vn.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,h,this.props.labels.leftArrow),ze.default.createElement("div",{className:Vn.default.WRAPPER(!0,this.props.axis),style:S},u?ze.default.createElement(vC.default,lc({tagName:"ul",innerRef:this.setListRef},v,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&O,this.renderItems(),this.props.infiniteLoop&&_):ze.default.createElement("ul",{className:Vn.default.SLIDER(!0,this.state.swiping),ref:function(D){return a.setListRef(D)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&O,this.renderItems(),this.props.infiniteLoop&&_)),this.props.renderArrowNext(this.onClickNext,m,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),n}(ze.default.Component);Xa.default=$c;Pe($c,"displayName","Carousel");Pe($c,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:Xi.noop,onClickThumb:Xi.noop,onChange:Xi.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(r,n,o){return ze.default.createElement("button",{type:"button","aria-label":o,className:Vn.default.ARROW_PREV(!n),onClick:r})},renderArrowNext:function(r,n,o){return ze.default.createElement("button",{type:"button","aria-label":o,className:Vn.default.ARROW_NEXT(!n),onClick:r})},renderIndicator:function(r,n,o,a){return ze.default.createElement("li",{className:Vn.default.DOT(n),onClick:r,onKeyDown:r,value:o,key:o,role:"button",tabIndex:0,"aria-label":"".concat(a," ").concat(o+1)})},renderItem:function(r){return r},renderThumbs:function(r){var n=ze.Children.map(r,function(o){var a=o;if(o.type!=="img"&&(a=ze.Children.toArray(o.props.children).find(function(u){return u.type==="img"})),!!a)return a});return n.filter(function(o){return o}).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"),[]):n},statusFormatter:Xi.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:Fa.slideSwipeAnimationHandler,stopSwipingHandler:Fa.slideStopSwipingHandler});var xC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return n.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return o.default}});var r=a(Xa),n=xC,o=a(ho);function a(u){return u&&u.__esModule?u:{default:u}}})(lv);const OC=({tip:e})=>B.jsx("div",{className:"px-8 pb-8",children:wv(e,!0)}),TC=({pages:e})=>B.jsx("div",{className:"min-h-[10rem] w-96",children:B.jsx(lv.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(r=>B.jsx(OC,{tip:r},r.key))})});var mv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},$p=q.createContext&&q.createContext(mv),vr=globalThis&&globalThis.__assign||function(){return vr=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},vr.apply(this,arguments)},CC=globalThis&&globalThis.__rest||function(e,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};function gv(e){return e&&e.map(function(r,n){return q.createElement(r.tag,vr({key:n},r.attr),gv(r.child))})}function RC(e){return function(r){return q.createElement(PC,vr({attr:vr({},e.attr)},r),gv(e.child))}}function PC(e){var r=function(n){var o=e.attr,a=e.size,u=e.title,c=CC(e,["attr","size","title"]),f=a||n.size||"1em",h;return n.className&&(h=n.className),e.className&&(h=(h?h+" ":"")+e.className),q.createElement("svg",vr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,c,{className:h,style:vr(vr({color:e.color||n.color},n.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&q.createElement("title",null,u),e.children)};return $p!==void 0?q.createElement($p.Consumer,null,function(n){return r(n)}):r(mv)}function yv(e){return RC({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}}]})(e)}const AC=({body:e,isInsideCarousel:r})=>B.jsx("article",{className:$t(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!r}]),children:B.jsx(Da,{children:e,options:{overrides:{a:{component:({children:n,...o})=>B.jsxs("a",{...o,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[n,B.jsx(yv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),IC=({video:e,body:r,title:n,isInsideCarousel:o})=>B.jsxs("div",{className:$t([{"flex flex-row":!o,"flex max-h-[10rem] flex-col overflow-y-auto":o}]),children:[B.jsx("div",{className:$t([{"mr-1":!o,"mb-1":o}]),children:B.jsx("iframe",{height:o?"auto":90,width:o?"100%":160,src:e==null?void 0:e.link,title:n,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),B.jsx("article",{className:$t(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!o,"-mt-6":o}]),children:B.jsx(Da,{children:r||"",options:{overrides:{a:{component:({children:a,...u})=>B.jsxs("a",{...u,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[a,B.jsx(yv,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),wv=(e,r)=>{switch(e.type){case Ia.TEXT:return B.jsx(AC,{body:e.body,isInsideCarousel:r});case Ia.VIDEO:return B.jsx(IC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:r});case Ia.CAROUSEL:return B.jsx(TC,{pages:e.pages})}},bv=q.createContext(void 0);function Np(e,r){const n=[];return e.forEach(o=>{o.key===r&&n.push(o)}),n}const LC=({children:e,enabled:r,baseUrl:n="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:o,show:a},u]=q.useState({tips:{},show:!0});q.useEffect(()=>{fetch(`${n}/tips.json`).then(f=>f.json()).then(f=>{const h=f.reduce((m,y)=>Np(f,y.key).length>1?{...m,[y.key]:{type:"carousel",pages:Np(f,y.key)}}:{...m,[y.key]:y},{});u(m=>({...m,tips:h}))})},[]);const c=()=>{u(f=>({...f,show:!a}))};return B.jsx(bv.Provider,{value:{tips:o,toggleTips:c,show:a,enabled:r},children:e})},_v=e=>{const r=q.useContext(bv);if(r===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?r.tips[e]:null,toggleTips:r.toggleTips,show:r.show,enabled:r.enabled}},MC=({side:e,children:r,...n})=>B.jsx("div",{...n,style:{top:"calc(50% - 0.25rem)",[e==="right"?"left":"right"]:"-5px"},children:r}),DC=$a(RT)`
|
|
114
142
|
&[data-state='open'] > * {
|
|
115
143
|
display: block !important;
|
|
116
144
|
}
|
|
117
|
-
`,
|
|
145
|
+
`,kC=({tipKey:e,side:r="right",alwaysOn:n,asButton:o=!1})=>{const{tip:a,enabled:u}=_v(e),[c,f]=q.useState(!1),h=q.useRef(null);return q.useEffect(()=>{if(h.current){const m=new IntersectionObserver(y=>{y[0].isIntersecting||f(!1)});return m.observe(h.current),()=>{h.current&&m.unobserve(h.current)}}},[]),a&&u?B.jsxs(CT,{open:c,onOpenChange:f,children:[B.jsx(DC,{ref:h,className:$t("focus:outline-none",{"rounded-md p-1 text-gray-100 hover:bg-primary-dark hover:bg-opacity-40":o}),onClick:m=>m.stopPropagation(),children:B.jsx("span",{className:$t("group-hover:block",{hidden:!n}),children:B.jsx(XS,{className:"h-[0.6rem] w-[0.6rem] text-yellow-300"})})}),B.jsx(PT,{side:r,sideOffset:5,children:B.jsxs("div",{className:"relative rounded-md border border-grey-100 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:[wv(a),B.jsx(MC,{className:$t(["absolute h-2 w-2 rotate-45 transform border-grey-100 bg-grey-900",{"border-b border-l":r==="right","border-r border-t":r==="left"}]),side:r})]})})]}):null};var $C=Object.defineProperty,NC=(e,r,n)=>r in e?$C(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Wu=(e,r,n)=>(NC(e,typeof r!="symbol"?r+"":r,n),n);let jC=class{constructor(){Wu(this,"current",this.detect()),Wu(this,"handoffState","pending"),Wu(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}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"}},gi=new jC,Si=(e,r)=>{gi.isServer?q.useEffect(e,r):q.useLayoutEffect(e,r)};function FC(e){let r=q.useRef(e);return Si(()=>{r.current=e},[e]),r}function WC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(r=>setTimeout(()=>{throw r}))}function Sv(){let e=[],r={addEventListener(n,o,a,u){return n.addEventListener(o,a,u),r.add(()=>n.removeEventListener(o,a,u))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return r.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return r.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return WC(()=>{o.current&&n[0]()}),r.add(()=>{o.current=!1})},style(n,o,a){let u=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:a}),this.add(()=>{Object.assign(n.style,{[o]:u})})},group(n){let o=Sv();return n(o),this.add(()=>o.dispose())},add(n){return e.push(n),()=>{let o=e.indexOf(n);if(o>=0)for(let a of e.splice(o,1))a()}},dispose(){for(let n of e.splice(0))n()}};return r}function UC(){let[e]=q.useState(Sv);return q.useEffect(()=>()=>e.dispose(),[e]),e}let hr=function(e){let r=FC(e);return q.useCallback((...n)=>r.current(...n),[r])};function BC(){let e=typeof document>"u";return"useSyncExternalStore"in I?(r=>r.useSyncExternalStore)(I)(()=>()=>{},()=>!1,()=>!e):!1}function HC(){let e=BC(),[r,n]=I.useState(gi.isHandoffComplete);return r&&gi.isHandoffComplete===!1&&n(!1),I.useEffect(()=>{r!==!0&&n(!0)},[r]),I.useEffect(()=>gi.handoff(),[]),e?!1:r}var jp;let Nc=(jp=q.useId)!=null?jp:function(){let e=HC(),[r,n]=q.useState(e?()=>gi.nextId():null);return Si(()=>{r===null&&n(gi.nextId())},[r]),r!=null?""+r:void 0};function Ev(e,r,...n){if(e in r){let a=r[e];return typeof a=="function"?a(...n):a}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,Ev),o}function Fp(e){var r;if(e.type)return e.type;let n=(r=e.as)!=null?r:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function zC(e,r){let[n,o]=q.useState(()=>Fp(e));return Si(()=>{o(Fp(e))},[e.type,e.as]),Si(()=>{n||r.current&&r.current instanceof HTMLButtonElement&&!r.current.hasAttribute("type")&&o("button")},[n,r]),n}let qC=Symbol();function jc(...e){let r=q.useRef(e);q.useEffect(()=>{r.current=e},[e]);let n=hr(o=>{for(let a of r.current)a!=null&&(typeof a=="function"?a(o):a.current=o)});return e.every(o=>o==null||(o==null?void 0:o[qC]))?void 0:n}function Wp(...e){return Array.from(new Set(e.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}var KC=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(KC||{}),GC=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(GC||{});function go({ourProps:e,theirProps:r,slot:n,defaultTag:o,features:a,visible:u=!0,name:c}){let f=xv(r,e);if(u)return Ea(f,n,o,c);let h=a??0;if(h&2){let{static:m=!1,...y}=f;if(m)return Ea(y,n,o,c)}if(h&1){let{unmount:m=!0,...y}=f;return Ev(m?0:1,{0(){return null},1(){return Ea({...y,hidden:!0,style:{display:"none"}},n,o,c)}})}return Ea(f,n,o,c)}function Ea(e,r={},n,o){let{as:a=n,children:u,refName:c="ref",...f}=Uu(e,["unmount","static"]),h=e.ref!==void 0?{[c]:e.ref}:{},m=typeof u=="function"?u(r):u;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(r));let y={};if(r){let _=!1,O=[];for(let[v,S]of Object.entries(r))typeof S=="boolean"&&(_=!0),S===!0&&O.push(v);_&&(y["data-headlessui-state"]=O.join(" "))}if(a===q.Fragment&&Object.keys(dc(f)).length>0){if(!q.isValidElement(m)||Array.isArray(m)&&m.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map(S=>` - ${S}`).join(`
|
|
118
146
|
`),"","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(S=>` - ${S}`).join(`
|
|
119
147
|
`)].join(`
|
|
120
|
-
`));let
|
|
121
|
-
relative inline-flex shrink-0 ${
|
|
122
|
-
pointer-events-none inline-block ${
|
|
148
|
+
`));let _=m.props,O=typeof(_==null?void 0:_.className)=="function"?(...S)=>Wp(_==null?void 0:_.className(...S),f.className):Wp(_==null?void 0:_.className,f.className),v=O?{className:O}:{};return q.cloneElement(m,Object.assign({},xv(m.props,dc(Uu(f,["ref"]))),y,h,YC(m.ref,h.ref),v))}return q.createElement(a,Object.assign({},Uu(f,["ref"]),a!==q.Fragment&&h,a!==q.Fragment&&y),m)}function YC(...e){return{ref:e.every(r=>r==null)?void 0:r=>{for(let n of e)n!=null&&(typeof n=="function"?n(r):n.current=r)}}}function xv(...e){if(e.length===0)return{};if(e.length===1)return e[0];let r={},n={};for(let o of e)for(let a in o)a.startsWith("on")&&typeof o[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(o[a])):r[a]=o[a];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(r,{[o](a,...u){let c=n[o];for(let f of c){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;f(a,...u)}}});return r}function Qa(e){var r;return Object.assign(q.forwardRef(e),{displayName:(r=e.displayName)!=null?r:e.name})}function dc(e){let r=Object.assign({},e);for(let n in r)r[n]===void 0&&delete r[n];return r}function Uu(e,r=[]){let n=Object.assign({},e);for(let o of r)o in n&&delete n[o];return n}function XC(e){let r=e.parentElement,n=null;for(;r&&!(r instanceof HTMLFieldSetElement);)r instanceof HTMLLegendElement&&(n=r),r=r.parentElement;let o=(r==null?void 0:r.getAttribute("disabled"))==="";return o&&VC(n)?!1:o}function VC(e){if(!e)return!1;let r=e.previousElementSibling;for(;r!==null;){if(r instanceof HTMLLegendElement)return!1;r=r.previousElementSibling}return!0}function JC(e){var r,n;let o=(r=e==null?void 0:e.form)!=null?r:e.closest("form");if(o){for(let a of o.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}(n=o.requestSubmit)==null||n.call(o)}}let ZC="div";var Ov=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ov||{});function QC(e,r){let{features:n=1,...o}=e,a={ref:r,"aria-hidden":(n&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",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return go({ourProps:a,theirProps:o,slot:{},defaultTag:ZC,name:"Hidden"})}let eR=Qa(QC);var pc=(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))(pc||{});function tR(e,r,n){let[o,a]=q.useState(n),u=e!==void 0,c=q.useRef(u),f=q.useRef(!1),h=q.useRef(!1);return u&&!c.current&&!f.current?(f.current=!0,c.current=u,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.")):!u&&c.current&&!h.current&&(h.current=!0,c.current=u,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.")),[u?e:o,hr(m=>(u||a(m),r==null?void 0:r(m)))]}let Tv=q.createContext(null);function Cv(){let e=q.useContext(Tv);if(e===null){let r=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,Cv),r}return e}function nR(){let[e,r]=q.useState([]);return[e.length>0?e.join(" "):void 0,q.useMemo(()=>function(n){let o=hr(u=>(r(c=>[...c,u]),()=>r(c=>{let f=c.slice(),h=f.indexOf(u);return h!==-1&&f.splice(h,1),f}))),a=q.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return q.createElement(Tv.Provider,{value:a},n.children)},[r])]}let rR="p";function iR(e,r){let n=Nc(),{id:o=`headlessui-description-${n}`,...a}=e,u=Cv(),c=jc(r);Si(()=>u.register(o),[o,u.register]);let f={ref:c,...u.props,id:o};return go({ourProps:f,theirProps:a,slot:u.slot||{},defaultTag:rR,name:u.name||"Description"})}let oR=Qa(iR),aR=Object.assign(oR,{}),Rv=q.createContext(null);function Pv(){let e=q.useContext(Rv);if(e===null){let r=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,Pv),r}return e}function sR(){let[e,r]=q.useState([]);return[e.length>0?e.join(" "):void 0,q.useMemo(()=>function(n){let o=hr(u=>(r(c=>[...c,u]),()=>r(c=>{let f=c.slice(),h=f.indexOf(u);return h!==-1&&f.splice(h,1),f}))),a=q.useMemo(()=>({register:o,slot:n.slot,name:n.name,props:n.props}),[o,n.slot,n.name,n.props]);return q.createElement(Rv.Provider,{value:a},n.children)},[r])]}let uR="label";function cR(e,r){let n=Nc(),{id:o=`headlessui-label-${n}`,passive:a=!1,...u}=e,c=Pv(),f=jc(r);Si(()=>c.register(o),[o,c.register]);let h={ref:f,...c.props,id:o};return a&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in u&&delete u.onClick),go({ourProps:h,theirProps:u,slot:c.slot||{},defaultTag:uR,name:c.name||"Label"})}let lR=Qa(cR),fR=Object.assign(lR,{}),Fc=q.createContext(null);Fc.displayName="GroupContext";let dR=q.Fragment;function pR(e){var r;let[n,o]=q.useState(null),[a,u]=sR(),[c,f]=nR(),h=q.useMemo(()=>({switch:n,setSwitch:o,labelledby:a,describedby:c}),[n,o,a,c]),m={},y=e;return q.createElement(f,{name:"Switch.Description"},q.createElement(u,{name:"Switch.Label",props:{htmlFor:(r=h.switch)==null?void 0:r.id,onClick(_){n&&(_.currentTarget.tagName==="LABEL"&&_.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},q.createElement(Fc.Provider,{value:h},go({ourProps:m,theirProps:y,defaultTag:dR,name:"Switch.Group"}))))}let hR="button";function vR(e,r){let n=Nc(),{id:o=`headlessui-switch-${n}`,checked:a,defaultChecked:u=!1,onChange:c,name:f,value:h,form:m,...y}=e,_=q.useContext(Fc),O=q.useRef(null),v=jc(O,r,_===null?null:_.setSwitch),[S,w]=tR(a,c,u),T=hr(()=>w==null?void 0:w(!S)),D=hr(F=>{if(XC(F.currentTarget))return F.preventDefault();F.preventDefault(),T()}),M=hr(F=>{F.key===pc.Space?(F.preventDefault(),T()):F.key===pc.Enter&&JC(F.currentTarget)}),R=hr(F=>F.preventDefault()),k=q.useMemo(()=>({checked:S}),[S]),x={id:o,ref:v,role:"switch",type:zC(e,O),tabIndex:0,"aria-checked":S,"aria-labelledby":_==null?void 0:_.labelledby,"aria-describedby":_==null?void 0:_.describedby,onClick:D,onKeyUp:M,onKeyPress:R},W=UC();return q.useEffect(()=>{var F;let N=(F=O.current)==null?void 0:F.closest("form");N&&u!==void 0&&W.addEventListener(N,"reset",()=>{w(u)})},[O,w]),q.createElement(q.Fragment,null,f!=null&&S&&q.createElement(eR,{features:Ov.Hidden,...dc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:m,checked:S,name:f,value:h})}),go({ourProps:x,theirProps:y,slot:k,defaultTag:hR,name:"Switch"}))}let mR=Qa(vR),gR=pR,yR=Object.assign(mR,{Group:gR,Label:fR,Description:aR});const Bu={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"}},wR=q.forwardRef(({onChange:e,value:r,size:n="md",className:o="ml-auto"},a)=>{const u=c=>{e(c)};return B.jsx("div",{className:$t("flex items-center",o),children:B.jsx(yR,{ref:a,checked:r,onChange:u,onKeyDown:c=>{c.key==="Enter"&&u(!r)},className:`${r?"bg-primary-dark":"bg-grey-200"}
|
|
149
|
+
relative inline-flex shrink-0 ${Bu[n].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:B.jsx("span",{"aria-hidden":"true",className:`${r?Bu[n].translate:"translate-x-0"}
|
|
150
|
+
pointer-events-none inline-block ${Bu[n].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})}),bR=({children:e,label:r,placement:n="top",className:o})=>{const[a,u]=q.useState(null),[c,f]=q.useState(null),[h,m]=q.useState(!1),{styles:y,attributes:_}=sh(a,c,{placement:n,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),O=q.Children.map(e,v=>q.isValidElement(v)?q.cloneElement(v,{ref:u,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1)}):v);return B.jsxs(B.Fragment,{children:[O,h&&Ba.createPortal(B.jsx("div",{ref:f,style:y.popper,..._.popper,className:$t("z-10 select-none rounded-sm bg-gray-50 px-2 py-1 text-xs text-gray-800",o),children:r}),document.querySelector("body"))]})},_R=Vu.keyframes`
|
|
123
151
|
to {
|
|
124
152
|
fill: url(#d);
|
|
125
153
|
stroke-dashoffset: 0;
|
|
126
154
|
}
|
|
127
|
-
`,
|
|
155
|
+
`,Av=$a.svg`
|
|
128
156
|
& .e {
|
|
129
157
|
fill: url(#d);
|
|
130
158
|
}
|
|
@@ -135,7 +163,7 @@ pointer-events-none inline-block ${Wu[n].switch} transform rounded-full bg-white
|
|
|
135
163
|
fill: transparent;
|
|
136
164
|
stroke-dasharray: 700;
|
|
137
165
|
stroke-dashoffset: 700;
|
|
138
|
-
animation: ${
|
|
166
|
+
animation: ${_R} 1.5s ease-in-out infinite alternate-reverse;
|
|
139
167
|
}
|
|
140
168
|
|
|
141
169
|
& #circle {
|
|
@@ -145,34 +173,34 @@ pointer-events-none inline-block ${Wu[n].switch} transform rounded-full bg-white
|
|
|
145
173
|
stroke-dasharray: 700;
|
|
146
174
|
stroke-dashoffset: 700;
|
|
147
175
|
}
|
|
148
|
-
`,pP=({message:e,version:r})=>W.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:W.jsxs("div",{className:"flex flex-col text-center",children:[W.jsx("div",{className:"relative mr-4 self-center",children:W.jsx("div",{className:"flex items-center justify-center rounded-md",children:W.jsxs(Sv,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[W.jsx("defs",{children:W.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[W.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:W.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),W.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:W.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),W.jsx("g",{id:"a"}),W.jsx("g",{id:"b",children:W.jsx("g",{id:"c",children:W.jsxs("g",{children:[W.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"}),W.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"})]})})})]})})}),W.jsxs("div",{children:[W.jsx("span",{className:"text-xs text-grey-200",children:r}),W.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});function hP(e,r){const n=U.useRef(!1);U.useEffect(()=>{if(n.current)return e();n.current=!0},r)}var ju=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Bu(e,r,n,o){e.addEventListener?e.addEventListener(r,n,o):e.attachEvent&&e.attachEvent("on".concat(r),function(){n(window.event)})}function Ev(e,r){for(var n=r.slice(0,r.length-1),o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function xv(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var r=e.split(","),n=r.lastIndexOf("");n>=0;)r[n-1]+=",",r.splice(n,1),n=r.lastIndexOf("");return r}function vP(e,r){for(var n=e.length>=r.length?e:r,o=e.length>=r.length?r:e,a=!0,u=0;u<n.length;u++)o.indexOf(n[u])===-1&&(a=!1);return a}var qi={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,"-":ju?173:189,"=":ju?61:187,";":ju?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},cl={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},mt={16:!1,18:!1,17:!1,91:!1},et={};for(var ga=1;ga<20;ga++)qi["f".concat(ga)]=111+ga;var qe=[],Dp=!1,Ov="all",Tv=[],ro=function(r){return qi[r.toLowerCase()]||An[r.toLowerCase()]||r.toUpperCase().charCodeAt(0)},mP=function(r){return Object.keys(qi).find(function(n){return qi[n]===r})},gP=function(r){return Object.keys(An).find(function(n){return An[n]===r})};function Cv(e){Ov=e||"all"}function Ki(){return Ov||"all"}function yP(){return qe.slice(0)}function wP(){return qe.map(function(e){return mP(e)||gP(e)||String.fromCharCode(e)})}function bP(){var e=[];return Object.keys(et).forEach(function(r){et[r].forEach(function(n){var o=n.key,a=n.scope,u=n.mods,l=n.shortcut;e.push({scope:a,shortcut:l,mods:u,keys:o.split("+").map(function(f){return ro(f)})})})}),e}function _P(e){var r=e.target||e.srcElement,n=r.tagName,o=!0;return(r.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!r.readOnly)&&(o=!1),o}function SP(e){return typeof e=="string"&&(e=ro(e)),qe.indexOf(e)!==-1}function EP(e,r){var n,o;e||(e=Ki());for(var a in et)if(Object.prototype.hasOwnProperty.call(et,a))for(n=et[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;Ki()===e&&Cv(r||"all")}function xP(e){var r=e.keyCode||e.which||e.charCode,n=qe.indexOf(r);if(n>=0&&qe.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&qe.splice(0,qe.length),(r===93||r===224)&&(r=91),r in mt){mt[r]=!1;for(var o in An)An[o]===r&&(gn[o]=!1)}}function OP(e){if(typeof e>"u")Object.keys(et).forEach(function(l){return delete et[l]});else if(Array.isArray(e))e.forEach(function(l){l.key&&Hu(l)});else if(typeof e=="object")e.key&&Hu(e);else if(typeof e=="string"){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var a=n[0],u=n[1];typeof a=="function"&&(u=a,a=""),Hu({key:e,scope:a,method:u,splitKey:"+"})}}var Hu=function(r){var n=r.key,o=r.scope,a=r.method,u=r.splitKey,l=u===void 0?"+":u,f=xv(n);f.forEach(function(p){var m=p.split(l),w=m.length,b=m[w-1],C=b==="*"?"*":ro(b);if(et[C]){o||(o=Ki());var h=w>1?Ev(An,m):[];et[C]=et[C].filter(function(S){var y=a?S.method===a:!0;return!(y&&S.scope===o&&vP(S.mods,h))})}})};function kp(e,r,n,o){if(r.element===o){var a;if(r.scope===n||r.scope==="all"){a=r.mods.length>0;for(var u in mt)Object.prototype.hasOwnProperty.call(mt,u)&&(!mt[u]&&r.mods.indexOf(+u)>-1||mt[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!mt[16]&&!mt[18]&&!mt[17]&&!mt[91]||a||r.shortcut==="*")&&(r.keys=[],r.keys=r.keys.concat(qe),r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function Np(e,r){var n=et["*"],o=e.keyCode||e.which||e.charCode;if(gn.filter.call(this,e)){if((o===93||o===224)&&(o=91),qe.indexOf(o)===-1&&o!==229&&qe.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var y=cl[S];e[S]&&qe.indexOf(y)===-1?qe.push(y):!e[S]&&qe.indexOf(y)>-1?qe.splice(qe.indexOf(y),1):S==="metaKey"&&e[S]&&qe.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(qe=qe.slice(qe.indexOf(y))))}),o in mt){mt[o]=!0;for(var a in An)An[a]===o&&(gn[a]=!0);if(!n)return}for(var u in mt)Object.prototype.hasOwnProperty.call(mt,u)&&(mt[u]=e[cl[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(qe.indexOf(17)===-1&&qe.push(17),qe.indexOf(18)===-1&&qe.push(18),mt[17]=!0,mt[18]=!0);var l=Ki();if(n)for(var f=0;f<n.length;f++)n[f].scope===l&&(e.type==="keydown"&&n[f].keydown||e.type==="keyup"&&n[f].keyup)&&kp(e,n[f],l,r);if(o in et){for(var p=0;p<et[o].length;p++)if((e.type==="keydown"&&et[o][p].keydown||e.type==="keyup"&&et[o][p].keyup)&&et[o][p].key){for(var m=et[o][p],w=m.splitKey,b=m.key.split(w),C=[],h=0;h<b.length;h++)C.push(ro(b[h]));C.sort().join("")===qe.sort().join("")&&kp(e,m,l,r)}}}}function TP(e){return Tv.indexOf(e)>-1}function gn(e,r,n){qe=[];var o=xv(e),a=[],u="all",l=document,f=0,p=!1,m=!0,w="+",b=!1;for(n===void 0&&typeof r=="function"&&(n=r),Object.prototype.toString.call(r)==="[object Object]"&&(r.scope&&(u=r.scope),r.element&&(l=r.element),r.keyup&&(p=r.keyup),r.keydown!==void 0&&(m=r.keydown),r.capture!==void 0&&(b=r.capture),typeof r.splitKey=="string"&&(w=r.splitKey)),typeof r=="string"&&(u=r);f<o.length;f++)e=o[f].split(w),a=[],e.length>1&&(a=Ev(An,e)),e=e[e.length-1],e=e==="*"?"*":ro(e),e in et||(et[e]=[]),et[e].push({keyup:p,keydown:m,scope:u,mods:a,shortcut:o[f],method:n,key:o[f],splitKey:w,element:l});typeof l<"u"&&!TP(l)&&window&&(Tv.push(l),Bu(l,"keydown",function(C){Np(C,l)},b),Dp||(Dp=!0,Bu(window,"focus",function(){qe=[]},b)),Bu(l,"keyup",function(C){Np(C,l),xP(C)},b))}function CP(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(et).forEach(function(n){var o=et[n].filter(function(a){return a.scope===r&&a.shortcut===e});o.forEach(function(a){a&&a.method&&a.method()})})}var Uu={getPressedKeyString:wP,setScope:Cv,getScope:Ki,deleteScope:EP,getPressedKeyCodes:yP,getAllKeyCodes:bP,isPressed:SP,filter:_P,trigger:CP,unbind:OP,keyMap:qi,modifier:An,modifierMap:cl};for(var zu in Uu)Object.prototype.hasOwnProperty.call(Uu,zu)&&(gn[zu]=Uu[zu]);if(typeof window<"u"){var PP=window.hotkeys;gn.noConflict=function(e){return e&&window.hotkeys===gn&&(window.hotkeys=PP),gn},window.hotkeys=gn}gn.filter=()=>!0;function RP(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=U.useCallback((f,p)=>{a&&f.preventDefault(),setTimeout(()=>r(f,p))},o),l=()=>{gn.unbind(e,u)};U.useEffect(()=>(gn(e,n,u),l),[e,n,u])}const AP=e=>{const r=U.useRef(null);return U.useEffect(()=>{const n=o=>{r.current&&!r.current.contains(o.target)&&e(o)};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[e]),r};function IP(e){const r=U.useRef();return U.useEffect(()=>{r.current=e},[e]),r.current}function LP(e){const r=U.useRef(e);return U.useEffect(()=>{r.current=e},[e]),r}function MP(e){const r=U.useRef(null);return U.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}const DP={features:{debugger:{enabled:process.env.REACT_APP_DEBUGGER_ENABLED!=="false"},modelEditor:{enabled:process.env.REACT_APP_MODEL_EDITOR_ENABLED!=="false"},roles:{enabled:process.env.REACT_APP_ROLES_ENABLED!=="false"}}};function kP(){const[e,r]=U.useState(DP),n=(a,u)=>{r(l=>({...l,features:{...l.features,[a]:u}}))},o=U.useCallback((...a)=>a.every(u=>{var l;return(l=e.features[u])==null?void 0:l.enabled}),[e.features]);return{setFeature:n,isFeatureEnabled:o}}const Pv=U.createContext(""),NP=e=>W.jsx(Pv.Provider,{value:e.value,children:e.children}),$P=()=>{const e=U.useContext(Pv);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};var Da={exports:{}};/**
|
|
176
|
+
`,SR=({message:e,version:r})=>B.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:B.jsxs("div",{className:"flex flex-col text-center",children:[B.jsx("div",{className:"relative mr-4 self-center",children:B.jsx("div",{className:"flex items-center justify-center rounded-md",children:B.jsxs(Av,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[B.jsx("defs",{children:B.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[B.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:B.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),B.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:B.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),B.jsx("g",{id:"a"}),B.jsx("g",{id:"b",children:B.jsx("g",{id:"c",children:B.jsxs("g",{children:[B.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"}),B.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"})]})})})]})})}),B.jsxs("div",{children:[B.jsx("span",{className:"text-xs text-grey-200",children:r}),B.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});function ER(e,r){const n=q.useRef(!1);q.useEffect(()=>{if(n.current)return e();n.current=!0},r)}var Hu=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function zu(e,r,n,o){e.addEventListener?e.addEventListener(r,n,o):e.attachEvent&&e.attachEvent("on".concat(r),function(){n(window.event)})}function Iv(e,r){for(var n=r.slice(0,r.length-1),o=0;o<n.length;o++)n[o]=e[n[o].toLowerCase()];return n}function Lv(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var r=e.split(","),n=r.lastIndexOf("");n>=0;)r[n-1]+=",",r.splice(n,1),n=r.lastIndexOf("");return r}function xR(e,r){for(var n=e.length>=r.length?e:r,o=e.length>=r.length?r:e,a=!0,u=0;u<n.length;u++)o.indexOf(n[u])===-1&&(a=!1);return a}var oo={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,"-":Hu?173:189,"=":Hu?61:187,";":Hu?59:186,"'":222,"[":219,"]":221,"\\":220},jn={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},hc={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},St={16:!1,18:!1,17:!1,91:!1},at={};for(var xa=1;xa<20;xa++)oo["f".concat(xa)]=111+xa;var Ve=[],Up=!1,Mv="all",Dv=[],yo=function(r){return oo[r.toLowerCase()]||jn[r.toLowerCase()]||r.toUpperCase().charCodeAt(0)},OR=function(r){return Object.keys(oo).find(function(n){return oo[n]===r})},TR=function(r){return Object.keys(jn).find(function(n){return jn[n]===r})};function kv(e){Mv=e||"all"}function ao(){return Mv||"all"}function CR(){return Ve.slice(0)}function RR(){return Ve.map(function(e){return OR(e)||TR(e)||String.fromCharCode(e)})}function PR(){var e=[];return Object.keys(at).forEach(function(r){at[r].forEach(function(n){var o=n.key,a=n.scope,u=n.mods,c=n.shortcut;e.push({scope:a,shortcut:c,mods:u,keys:o.split("+").map(function(f){return yo(f)})})})}),e}function AR(e){var r=e.target||e.srcElement,n=r.tagName,o=!0;return(r.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!r.readOnly)&&(o=!1),o}function IR(e){return typeof e=="string"&&(e=yo(e)),Ve.indexOf(e)!==-1}function LR(e,r){var n,o;e||(e=ao());for(var a in at)if(Object.prototype.hasOwnProperty.call(at,a))for(n=at[a],o=0;o<n.length;)n[o].scope===e?n.splice(o,1):o++;ao()===e&&kv(r||"all")}function MR(e){var r=e.keyCode||e.which||e.charCode,n=Ve.indexOf(r);if(n>=0&&Ve.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&Ve.splice(0,Ve.length),(r===93||r===224)&&(r=91),r in St){St[r]=!1;for(var o in jn)jn[o]===r&&(Rn[o]=!1)}}function DR(e){if(typeof e>"u")Object.keys(at).forEach(function(c){return delete at[c]});else if(Array.isArray(e))e.forEach(function(c){c.key&&qu(c)});else if(typeof e=="object")e.key&&qu(e);else if(typeof e=="string"){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var a=n[0],u=n[1];typeof a=="function"&&(u=a,a=""),qu({key:e,scope:a,method:u,splitKey:"+"})}}var qu=function(r){var n=r.key,o=r.scope,a=r.method,u=r.splitKey,c=u===void 0?"+":u,f=Lv(n);f.forEach(function(h){var m=h.split(c),y=m.length,_=m[y-1],O=_==="*"?"*":yo(_);if(at[O]){o||(o=ao());var v=y>1?Iv(jn,m):[];at[O]=at[O].filter(function(S){var w=a?S.method===a:!0;return!(w&&S.scope===o&&xR(S.mods,v))})}})};function Bp(e,r,n,o){if(r.element===o){var a;if(r.scope===n||r.scope==="all"){a=r.mods.length>0;for(var u in St)Object.prototype.hasOwnProperty.call(St,u)&&(!St[u]&&r.mods.indexOf(+u)>-1||St[u]&&r.mods.indexOf(+u)===-1)&&(a=!1);(r.mods.length===0&&!St[16]&&!St[18]&&!St[17]&&!St[91]||a||r.shortcut==="*")&&(r.keys=[],r.keys=r.keys.concat(Ve),r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}}function Hp(e,r){var n=at["*"],o=e.keyCode||e.which||e.charCode;if(Rn.filter.call(this,e)){if((o===93||o===224)&&(o=91),Ve.indexOf(o)===-1&&o!==229&&Ve.push(o),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(S){var w=hc[S];e[S]&&Ve.indexOf(w)===-1?Ve.push(w):!e[S]&&Ve.indexOf(w)>-1?Ve.splice(Ve.indexOf(w),1):S==="metaKey"&&e[S]&&Ve.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(Ve=Ve.slice(Ve.indexOf(w))))}),o in St){St[o]=!0;for(var a in jn)jn[a]===o&&(Rn[a]=!0);if(!n)return}for(var u in St)Object.prototype.hasOwnProperty.call(St,u)&&(St[u]=e[hc[u]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ve.indexOf(17)===-1&&Ve.push(17),Ve.indexOf(18)===-1&&Ve.push(18),St[17]=!0,St[18]=!0);var c=ao();if(n)for(var f=0;f<n.length;f++)n[f].scope===c&&(e.type==="keydown"&&n[f].keydown||e.type==="keyup"&&n[f].keyup)&&Bp(e,n[f],c,r);if(o in at){for(var h=0;h<at[o].length;h++)if((e.type==="keydown"&&at[o][h].keydown||e.type==="keyup"&&at[o][h].keyup)&&at[o][h].key){for(var m=at[o][h],y=m.splitKey,_=m.key.split(y),O=[],v=0;v<_.length;v++)O.push(yo(_[v]));O.sort().join("")===Ve.sort().join("")&&Bp(e,m,c,r)}}}}function kR(e){return Dv.indexOf(e)>-1}function Rn(e,r,n){Ve=[];var o=Lv(e),a=[],u="all",c=document,f=0,h=!1,m=!0,y="+",_=!1;for(n===void 0&&typeof r=="function"&&(n=r),Object.prototype.toString.call(r)==="[object Object]"&&(r.scope&&(u=r.scope),r.element&&(c=r.element),r.keyup&&(h=r.keyup),r.keydown!==void 0&&(m=r.keydown),r.capture!==void 0&&(_=r.capture),typeof r.splitKey=="string"&&(y=r.splitKey)),typeof r=="string"&&(u=r);f<o.length;f++)e=o[f].split(y),a=[],e.length>1&&(a=Iv(jn,e)),e=e[e.length-1],e=e==="*"?"*":yo(e),e in at||(at[e]=[]),at[e].push({keyup:h,keydown:m,scope:u,mods:a,shortcut:o[f],method:n,key:o[f],splitKey:y,element:c});typeof c<"u"&&!kR(c)&&window&&(Dv.push(c),zu(c,"keydown",function(O){Hp(O,c)},_),Up||(Up=!0,zu(window,"focus",function(){Ve=[]},_)),zu(c,"keyup",function(O){Hp(O,c),MR(O)},_))}function $R(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(at).forEach(function(n){var o=at[n].filter(function(a){return a.scope===r&&a.shortcut===e});o.forEach(function(a){a&&a.method&&a.method()})})}var Ku={getPressedKeyString:RR,setScope:kv,getScope:ao,deleteScope:LR,getPressedKeyCodes:CR,getAllKeyCodes:PR,isPressed:IR,filter:AR,trigger:$R,unbind:DR,keyMap:oo,modifier:jn,modifierMap:hc};for(var Gu in Ku)Object.prototype.hasOwnProperty.call(Ku,Gu)&&(Rn[Gu]=Ku[Gu]);if(typeof window<"u"){var NR=window.hotkeys;Rn.noConflict=function(e){return e&&window.hotkeys===Rn&&(window.hotkeys=NR),Rn},window.hotkeys=Rn}Rn.filter=()=>!0;function jR(e,r,n,o){n instanceof Array&&(o=n,n=void 0),o=o||[],n=n||{};const{preventDefault:a=!0}=n,u=q.useCallback((f,h)=>{a&&f.preventDefault(),setTimeout(()=>r(f,h))},o),c=()=>{Rn.unbind(e,u)};q.useEffect(()=>(Rn(e,n,u),c),[e,n,u])}const FR=e=>{const r=q.useRef(null);return q.useEffect(()=>{const n=o=>{r.current&&!r.current.contains(o.target)&&e(o)};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}},[e]),r};function WR(e){const r=q.useRef();return q.useEffect(()=>{r.current=e},[e]),r.current}function UR(e){const r=q.useRef(e);return q.useEffect(()=>{r.current=e},[e]),r}function BR(e){const r=q.useRef(null);return q.useEffect(()=>{e&&(typeof e=="function"?e(r.current):e.current=r.current)}),r}const HR={features:{debugger:{enabled:process.env.REACT_APP_DEBUGGER_ENABLED!=="false"},modelEditor:{enabled:process.env.REACT_APP_MODEL_EDITOR_ENABLED!=="false"},roles:{enabled:process.env.REACT_APP_ROLES_ENABLED!=="false"}}};function zR(){const[e,r]=q.useState(HR),n=(a,u)=>{r(c=>({...c,features:{...c.features,[a]:u}}))},o=q.useCallback((...a)=>a.every(u=>{var c;return(c=e.features[u])==null?void 0:c.enabled}),[e.features]);return{setFeature:n,isFeatureEnabled:o}}const $v=q.createContext(""),qR=e=>B.jsx($v.Provider,{value:e.value,children:e.children}),KR=()=>{const e=q.useContext($v);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};var Ua={exports:{}};/**
|
|
149
177
|
* @license
|
|
150
178
|
* Lodash <https://lodash.com/>
|
|
151
179
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
152
180
|
* Released under MIT license <https://lodash.com/license>
|
|
153
181
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
154
182
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
155
|
-
*/Da.exports;(function(e,r){(function(){var n,o="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",m=500,w="__lodash_placeholder__",b=1,C=2,h=4,S=1,y=2,O=1,M=2,L=4,P=8,D=16,E=32,N=64,F=128,$=256,J=512,Q=30,pe="...",Ie=800,Ee=16,he=1,$e=2,ge=3,Le=1/0,Ke=9007199254740991,gt=17976931348623157e292,q=0/0,G=4294967295,ce=G-1,fe=G>>>1,ne=[["ary",F],["bind",O],["bindKey",M],["curry",P],["curryRight",D],["flip",J],["partial",E],["partialRight",N],["rearg",$]],oe="[object Arguments]",te="[object Array]",le="[object AsyncFunction]",re="[object Boolean]",ve="[object Date]",ye="[object DOMException]",Ge="[object Error]",Y="[object Function]",ot="[object GeneratorFunction]",rt="[object Map]",Ot="[object Number]",cr="[object Null]",Tt="[object Object]",Ln="[object Promise]",di="[object Proxy]",at="[object RegExp]",it="[object Set]",yn="[object String]",wn="[object Symbol]",Kn="[object Undefined]",Kt="[object WeakMap]",Nr="[object WeakSet]",bn="[object ArrayBuffer]",sn="[object DataView]",pi="[object Float32Array]",hi="[object Float64Array]",vi="[object Int8Array]",mi="[object Int16Array]",fr="[object Int32Array]",$r="[object Uint8Array]",_n="[object Uint8ClampedArray]",dr="[object Uint16Array]",pr="[object Uint32Array]",oo=/\b__p \+= '';/g,Xa=/\b(__p \+=) '' \+/g,ao=/(__e\(.*?\)|\b__t\)) \+\n'';/g,so=/&(?:amp|lt|gt|quot|#39);/g,gi=/[&<>"']/g,uo=RegExp(so.source),Va=RegExp(gi.source),Ja=/<%-([\s\S]+?)%>/g,lo=/<%([\s\S]+?)%>/g,co=/<%=([\s\S]+?)%>/g,Za=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qa=/^\w*$/,es=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/[\\^$.*+?()[\]{}|]/g,K=RegExp(x.source),V=/^\s+/,ue=/\s/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,We=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,Oe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dt=/[()=,{}\[\]\/\s]/,Ve=/\\(\\)?/g,Ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Gt=/\w*$/,Gn=/^[-+]0x[0-9a-f]+$/i,fo=/^0b[01]+$/i,un=/^\[object .+?Constructor\]$/,um=/^0o[0-7]+$/i,lm=/^(?:0|[1-9]\d*)$/,cm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,po=/($^)/,fm=/['\n\r\u2028\u2029\\]/g,ho="\\ud800-\\udfff",dm="\\u0300-\\u036f",pm="\\ufe20-\\ufe2f",hm="\\u20d0-\\u20ff",jl=dm+pm+hm,Bl="\\u2700-\\u27bf",Hl="a-z\\xdf-\\xf6\\xf8-\\xff",vm="\\xac\\xb1\\xd7\\xf7",mm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gm="\\u2000-\\u206f",ym=" \\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",Ul="A-Z\\xc0-\\xd6\\xd8-\\xde",zl="\\ufe0e\\ufe0f",ql=vm+mm+gm+ym,ts="['’]",wm="["+ho+"]",Kl="["+ql+"]",vo="["+jl+"]",Gl="\\d+",bm="["+Bl+"]",Yl="["+Hl+"]",Xl="[^"+ho+ql+Gl+Bl+Hl+Ul+"]",ns="\\ud83c[\\udffb-\\udfff]",_m="(?:"+vo+"|"+ns+")",Vl="[^"+ho+"]",rs="(?:\\ud83c[\\udde6-\\uddff]){2}",is="[\\ud800-\\udbff][\\udc00-\\udfff]",Fr="["+Ul+"]",Jl="\\u200d",Zl="(?:"+Yl+"|"+Xl+")",Sm="(?:"+Fr+"|"+Xl+")",Ql="(?:"+ts+"(?:d|ll|m|re|s|t|ve))?",ec="(?:"+ts+"(?:D|LL|M|RE|S|T|VE))?",tc=_m+"?",nc="["+zl+"]?",Em="(?:"+Jl+"(?:"+[Vl,rs,is].join("|")+")"+nc+tc+")*",xm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Om="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rc=nc+tc+Em,Tm="(?:"+[bm,rs,is].join("|")+")"+rc,Cm="(?:"+[Vl+vo+"?",vo,rs,is,wm].join("|")+")",Pm=RegExp(ts,"g"),Rm=RegExp(vo,"g"),os=RegExp(ns+"(?="+ns+")|"+Cm+rc,"g"),Am=RegExp([Fr+"?"+Yl+"+"+Ql+"(?="+[Kl,Fr,"$"].join("|")+")",Sm+"+"+ec+"(?="+[Kl,Fr+Zl,"$"].join("|")+")",Fr+"?"+Zl+"+"+Ql,Fr+"+"+ec,Om,xm,Gl,Tm].join("|"),"g"),Im=RegExp("["+Jl+ho+jl+zl+"]"),Lm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mm=["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"],Dm=-1,Ye={};Ye[pi]=Ye[hi]=Ye[vi]=Ye[mi]=Ye[fr]=Ye[$r]=Ye[_n]=Ye[dr]=Ye[pr]=!0,Ye[oe]=Ye[te]=Ye[bn]=Ye[re]=Ye[sn]=Ye[ve]=Ye[Ge]=Ye[Y]=Ye[rt]=Ye[Ot]=Ye[Tt]=Ye[at]=Ye[it]=Ye[yn]=Ye[Kt]=!1;var ze={};ze[oe]=ze[te]=ze[bn]=ze[sn]=ze[re]=ze[ve]=ze[pi]=ze[hi]=ze[vi]=ze[mi]=ze[fr]=ze[rt]=ze[Ot]=ze[Tt]=ze[at]=ze[it]=ze[yn]=ze[wn]=ze[$r]=ze[_n]=ze[dr]=ze[pr]=!0,ze[Ge]=ze[Y]=ze[Kt]=!1;var km={À:"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"},Nm={"&":"&","<":"<",">":">",'"':""","'":"'"},$m={"&":"&","<":"<",">":">",""":'"',"'":"'"},Fm={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wm=parseFloat,jm=parseInt,ic=typeof Tr=="object"&&Tr&&Tr.Object===Object&&Tr,Bm=typeof self=="object"&&self&&self.Object===Object&&self,pt=ic||Bm||Function("return this")(),as=r&&!r.nodeType&&r,hr=as&&!0&&e&&!e.nodeType&&e,oc=hr&&hr.exports===as,ss=oc&&ic.process,Yt=function(){try{var R=hr&&hr.require&&hr.require("util").types;return R||ss&&ss.binding&&ss.binding("util")}catch{}}(),ac=Yt&&Yt.isArrayBuffer,sc=Yt&&Yt.isDate,uc=Yt&&Yt.isMap,lc=Yt&&Yt.isRegExp,cc=Yt&&Yt.isSet,fc=Yt&&Yt.isTypedArray;function Ft(R,j,k){switch(k.length){case 0:return R.call(j);case 1:return R.call(j,k[0]);case 2:return R.call(j,k[0],k[1]);case 3:return R.call(j,k[0],k[1],k[2])}return R.apply(j,k)}function Hm(R,j,k,Z){for(var de=-1,Me=R==null?0:R.length;++de<Me;){var st=R[de];j(Z,st,k(st),R)}return Z}function Xt(R,j){for(var k=-1,Z=R==null?0:R.length;++k<Z&&j(R[k],k,R)!==!1;);return R}function Um(R,j){for(var k=R==null?0:R.length;k--&&j(R[k],k,R)!==!1;);return R}function dc(R,j){for(var k=-1,Z=R==null?0:R.length;++k<Z;)if(!j(R[k],k,R))return!1;return!0}function Yn(R,j){for(var k=-1,Z=R==null?0:R.length,de=0,Me=[];++k<Z;){var st=R[k];j(st,k,R)&&(Me[de++]=st)}return Me}function mo(R,j){var k=R==null?0:R.length;return!!k&&Wr(R,j,0)>-1}function us(R,j,k){for(var Z=-1,de=R==null?0:R.length;++Z<de;)if(k(j,R[Z]))return!0;return!1}function Xe(R,j){for(var k=-1,Z=R==null?0:R.length,de=Array(Z);++k<Z;)de[k]=j(R[k],k,R);return de}function Xn(R,j){for(var k=-1,Z=j.length,de=R.length;++k<Z;)R[de+k]=j[k];return R}function ls(R,j,k,Z){var de=-1,Me=R==null?0:R.length;for(Z&&Me&&(k=R[++de]);++de<Me;)k=j(k,R[de],de,R);return k}function zm(R,j,k,Z){var de=R==null?0:R.length;for(Z&&de&&(k=R[--de]);de--;)k=j(k,R[de],de,R);return k}function cs(R,j){for(var k=-1,Z=R==null?0:R.length;++k<Z;)if(j(R[k],k,R))return!0;return!1}var qm=fs("length");function Km(R){return R.split("")}function Gm(R){return R.match(Oe)||[]}function pc(R,j,k){var Z;return k(R,function(de,Me,st){if(j(de,Me,st))return Z=Me,!1}),Z}function go(R,j,k,Z){for(var de=R.length,Me=k+(Z?1:-1);Z?Me--:++Me<de;)if(j(R[Me],Me,R))return Me;return-1}function Wr(R,j,k){return j===j?og(R,j,k):go(R,hc,k)}function Ym(R,j,k,Z){for(var de=k-1,Me=R.length;++de<Me;)if(Z(R[de],j))return de;return-1}function hc(R){return R!==R}function vc(R,j){var k=R==null?0:R.length;return k?ps(R,j)/k:q}function fs(R){return function(j){return j==null?n:j[R]}}function ds(R){return function(j){return R==null?n:R[j]}}function mc(R,j,k,Z,de){return de(R,function(Me,st,Ue){k=Z?(Z=!1,Me):j(k,Me,st,Ue)}),k}function Xm(R,j){var k=R.length;for(R.sort(j);k--;)R[k]=R[k].value;return R}function ps(R,j){for(var k,Z=-1,de=R.length;++Z<de;){var Me=j(R[Z]);Me!==n&&(k=k===n?Me:k+Me)}return k}function hs(R,j){for(var k=-1,Z=Array(R);++k<R;)Z[k]=j(k);return Z}function Vm(R,j){return Xe(j,function(k){return[k,R[k]]})}function gc(R){return R&&R.slice(0,_c(R)+1).replace(V,"")}function Wt(R){return function(j){return R(j)}}function vs(R,j){return Xe(j,function(k){return R[k]})}function yi(R,j){return R.has(j)}function yc(R,j){for(var k=-1,Z=R.length;++k<Z&&Wr(j,R[k],0)>-1;);return k}function wc(R,j){for(var k=R.length;k--&&Wr(j,R[k],0)>-1;);return k}function Jm(R,j){for(var k=R.length,Z=0;k--;)R[k]===j&&++Z;return Z}var Zm=ds(km),Qm=ds(Nm);function eg(R){return"\\"+Fm[R]}function tg(R,j){return R==null?n:R[j]}function jr(R){return Im.test(R)}function ng(R){return Lm.test(R)}function rg(R){for(var j,k=[];!(j=R.next()).done;)k.push(j.value);return k}function ms(R){var j=-1,k=Array(R.size);return R.forEach(function(Z,de){k[++j]=[de,Z]}),k}function bc(R,j){return function(k){return R(j(k))}}function Vn(R,j){for(var k=-1,Z=R.length,de=0,Me=[];++k<Z;){var st=R[k];(st===j||st===w)&&(R[k]=w,Me[de++]=k)}return Me}function yo(R){var j=-1,k=Array(R.size);return R.forEach(function(Z){k[++j]=Z}),k}function ig(R){var j=-1,k=Array(R.size);return R.forEach(function(Z){k[++j]=[Z,Z]}),k}function og(R,j,k){for(var Z=k-1,de=R.length;++Z<de;)if(R[Z]===j)return Z;return-1}function ag(R,j,k){for(var Z=k+1;Z--;)if(R[Z]===j)return Z;return Z}function Br(R){return jr(R)?ug(R):qm(R)}function ln(R){return jr(R)?lg(R):Km(R)}function _c(R){for(var j=R.length;j--&&ue.test(R.charAt(j)););return j}var sg=ds($m);function ug(R){for(var j=os.lastIndex=0;os.test(R);)++j;return j}function lg(R){return R.match(os)||[]}function cg(R){return R.match(Am)||[]}var fg=function R(j){j=j==null?pt:Hr.defaults(pt.Object(),j,Hr.pick(pt,Mm));var k=j.Array,Z=j.Date,de=j.Error,Me=j.Function,st=j.Math,Ue=j.Object,gs=j.RegExp,dg=j.String,Vt=j.TypeError,wo=k.prototype,pg=Me.prototype,Ur=Ue.prototype,bo=j["__core-js_shared__"],_o=pg.toString,je=Ur.hasOwnProperty,hg=0,Sc=function(){var t=/[^.]+$/.exec(bo&&bo.keys&&bo.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),So=Ur.toString,vg=_o.call(Ue),mg=pt._,gg=gs("^"+_o.call(je).replace(x,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Eo=oc?j.Buffer:n,Jn=j.Symbol,xo=j.Uint8Array,Ec=Eo?Eo.allocUnsafe:n,Oo=bc(Ue.getPrototypeOf,Ue),xc=Ue.create,Oc=Ur.propertyIsEnumerable,To=wo.splice,Tc=Jn?Jn.isConcatSpreadable:n,wi=Jn?Jn.iterator:n,vr=Jn?Jn.toStringTag:n,Co=function(){try{var t=br(Ue,"defineProperty");return t({},"",{}),t}catch{}}(),yg=j.clearTimeout!==pt.clearTimeout&&j.clearTimeout,wg=Z&&Z.now!==pt.Date.now&&Z.now,bg=j.setTimeout!==pt.setTimeout&&j.setTimeout,Po=st.ceil,Ro=st.floor,ys=Ue.getOwnPropertySymbols,_g=Eo?Eo.isBuffer:n,Cc=j.isFinite,Sg=wo.join,Eg=bc(Ue.keys,Ue),ut=st.max,yt=st.min,xg=Z.now,Og=j.parseInt,Pc=st.random,Tg=wo.reverse,ws=br(j,"DataView"),bi=br(j,"Map"),bs=br(j,"Promise"),zr=br(j,"Set"),_i=br(j,"WeakMap"),Si=br(Ue,"create"),Ao=_i&&new _i,qr={},Cg=_r(ws),Pg=_r(bi),Rg=_r(bs),Ag=_r(zr),Ig=_r(_i),Io=Jn?Jn.prototype:n,Ei=Io?Io.valueOf:n,Rc=Io?Io.toString:n;function v(t){if(Qe(t)&&!me(t)&&!(t instanceof Ce)){if(t instanceof Jt)return t;if(je.call(t,"__wrapped__"))return If(t)}return new Jt(t)}var Kr=function(){function t(){}return function(i){if(!Je(i))return{};if(xc)return xc(i);t.prototype=i;var s=new t;return t.prototype=n,s}}();function Lo(){}function Jt(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}v.templateSettings={escape:Ja,evaluate:lo,interpolate:co,variable:"",imports:{_:v}},v.prototype=Lo.prototype,v.prototype.constructor=v,Jt.prototype=Kr(Lo.prototype),Jt.prototype.constructor=Jt;function Ce(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=G,this.__views__=[]}function Lg(){var t=new Ce(this.__wrapped__);return t.__actions__=It(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=It(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=It(this.__views__),t}function Mg(){if(this.__filtered__){var t=new Ce(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Dg(){var t=this.__wrapped__.value(),i=this.__dir__,s=me(t),c=i<0,d=s?t.length:0,g=K0(0,d,this.__views__),_=g.start,T=g.end,I=T-_,B=c?T:_-1,H=this.__iteratees__,z=H.length,X=0,ee=yt(I,this.__takeCount__);if(!s||!c&&d==I&&ee==I)return Qc(t,this.__actions__);var ae=[];e:for(;I--&&X<ee;){B+=i;for(var be=-1,se=t[B];++be<z;){var Te=H[be],Re=Te.iteratee,Ht=Te.type,Rt=Re(se);if(Ht==$e)se=Rt;else if(!Rt){if(Ht==he)continue e;break e}}ae[X++]=se}return ae}Ce.prototype=Kr(Lo.prototype),Ce.prototype.constructor=Ce;function mr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function kg(){this.__data__=Si?Si(null):{},this.size=0}function Ng(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function $g(t){var i=this.__data__;if(Si){var s=i[t];return s===p?n:s}return je.call(i,t)?i[t]:n}function Fg(t){var i=this.__data__;return Si?i[t]!==n:je.call(i,t)}function Wg(t,i){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=Si&&i===n?p:i,this}mr.prototype.clear=kg,mr.prototype.delete=Ng,mr.prototype.get=$g,mr.prototype.has=Fg,mr.prototype.set=Wg;function Mn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function jg(){this.__data__=[],this.size=0}function Bg(t){var i=this.__data__,s=Mo(i,t);if(s<0)return!1;var c=i.length-1;return s==c?i.pop():To.call(i,s,1),--this.size,!0}function Hg(t){var i=this.__data__,s=Mo(i,t);return s<0?n:i[s][1]}function Ug(t){return Mo(this.__data__,t)>-1}function zg(t,i){var s=this.__data__,c=Mo(s,t);return c<0?(++this.size,s.push([t,i])):s[c][1]=i,this}Mn.prototype.clear=jg,Mn.prototype.delete=Bg,Mn.prototype.get=Hg,Mn.prototype.has=Ug,Mn.prototype.set=zg;function Dn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var c=t[i];this.set(c[0],c[1])}}function qg(){this.size=0,this.__data__={hash:new mr,map:new(bi||Mn),string:new mr}}function Kg(t){var i=qo(this,t).delete(t);return this.size-=i?1:0,i}function Gg(t){return qo(this,t).get(t)}function Yg(t){return qo(this,t).has(t)}function Xg(t,i){var s=qo(this,t),c=s.size;return s.set(t,i),this.size+=s.size==c?0:1,this}Dn.prototype.clear=qg,Dn.prototype.delete=Kg,Dn.prototype.get=Gg,Dn.prototype.has=Yg,Dn.prototype.set=Xg;function gr(t){var i=-1,s=t==null?0:t.length;for(this.__data__=new Dn;++i<s;)this.add(t[i])}function Vg(t){return this.__data__.set(t,p),this}function Jg(t){return this.__data__.has(t)}gr.prototype.add=gr.prototype.push=Vg,gr.prototype.has=Jg;function cn(t){var i=this.__data__=new Mn(t);this.size=i.size}function Zg(){this.__data__=new Mn,this.size=0}function Qg(t){var i=this.__data__,s=i.delete(t);return this.size=i.size,s}function e0(t){return this.__data__.get(t)}function t0(t){return this.__data__.has(t)}function n0(t,i){var s=this.__data__;if(s instanceof Mn){var c=s.__data__;if(!bi||c.length<a-1)return c.push([t,i]),this.size=++s.size,this;s=this.__data__=new Dn(c)}return s.set(t,i),this.size=s.size,this}cn.prototype.clear=Zg,cn.prototype.delete=Qg,cn.prototype.get=e0,cn.prototype.has=t0,cn.prototype.set=n0;function Ac(t,i){var s=me(t),c=!s&&Sr(t),d=!s&&!c&&nr(t),g=!s&&!c&&!d&&Vr(t),_=s||c||d||g,T=_?hs(t.length,dg):[],I=T.length;for(var B in t)(i||je.call(t,B))&&!(_&&(B=="length"||d&&(B=="offset"||B=="parent")||g&&(B=="buffer"||B=="byteLength"||B=="byteOffset")||Fn(B,I)))&&T.push(B);return T}function Ic(t){var i=t.length;return i?t[Is(0,i-1)]:n}function r0(t,i){return Ko(It(t),yr(i,0,t.length))}function i0(t){return Ko(It(t))}function _s(t,i,s){(s!==n&&!fn(t[i],s)||s===n&&!(i in t))&&kn(t,i,s)}function xi(t,i,s){var c=t[i];(!(je.call(t,i)&&fn(c,s))||s===n&&!(i in t))&&kn(t,i,s)}function Mo(t,i){for(var s=t.length;s--;)if(fn(t[s][0],i))return s;return-1}function o0(t,i,s,c){return Zn(t,function(d,g,_){i(c,d,s(d),_)}),c}function Lc(t,i){return t&&En(i,ct(i),t)}function a0(t,i){return t&&En(i,Mt(i),t)}function kn(t,i,s){i=="__proto__"&&Co?Co(t,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[i]=s}function Ss(t,i){for(var s=-1,c=i.length,d=k(c),g=t==null;++s<c;)d[s]=g?n:nu(t,i[s]);return d}function yr(t,i,s){return t===t&&(s!==n&&(t=t<=s?t:s),i!==n&&(t=t>=i?t:i)),t}function Zt(t,i,s,c,d,g){var _,T=i&b,I=i&C,B=i&h;if(s&&(_=d?s(t,c,d,g):s(t)),_!==n)return _;if(!Je(t))return t;var H=me(t);if(H){if(_=Y0(t),!T)return It(t,_)}else{var z=wt(t),X=z==Y||z==ot;if(nr(t))return nf(t,T);if(z==Tt||z==oe||X&&!d){if(_=I||X?{}:Sf(t),!T)return I?$0(t,a0(_,t)):N0(t,Lc(_,t))}else{if(!ze[z])return d?t:{};_=X0(t,z,T)}}g||(g=new cn);var ee=g.get(t);if(ee)return ee;g.set(t,_),Jf(t)?t.forEach(function(se){_.add(Zt(se,i,s,se,t,g))}):Xf(t)&&t.forEach(function(se,Te){_.set(Te,Zt(se,i,s,Te,t,g))});var ae=B?I?Hs:Bs:I?Mt:ct,be=H?n:ae(t);return Xt(be||t,function(se,Te){be&&(Te=se,se=t[Te]),xi(_,Te,Zt(se,i,s,Te,t,g))}),_}function s0(t){var i=ct(t);return function(s){return Mc(s,t,i)}}function Mc(t,i,s){var c=s.length;if(t==null)return!c;for(t=Ue(t);c--;){var d=s[c],g=i[d],_=t[d];if(_===n&&!(d in t)||!g(_))return!1}return!0}function Dc(t,i,s){if(typeof t!="function")throw new Vt(l);return Ii(function(){t.apply(n,s)},i)}function Oi(t,i,s,c){var d=-1,g=mo,_=!0,T=t.length,I=[],B=i.length;if(!T)return I;s&&(i=Xe(i,Wt(s))),c?(g=us,_=!1):i.length>=a&&(g=yi,_=!1,i=new gr(i));e:for(;++d<T;){var H=t[d],z=s==null?H:s(H);if(H=c||H!==0?H:0,_&&z===z){for(var X=B;X--;)if(i[X]===z)continue e;I.push(H)}else g(i,z,c)||I.push(H)}return I}var Zn=uf(Sn),kc=uf(xs,!0);function u0(t,i){var s=!0;return Zn(t,function(c,d,g){return s=!!i(c,d,g),s}),s}function Do(t,i,s){for(var c=-1,d=t.length;++c<d;){var g=t[c],_=i(g);if(_!=null&&(T===n?_===_&&!Bt(_):s(_,T)))var T=_,I=g}return I}function l0(t,i,s,c){var d=t.length;for(s=we(s),s<0&&(s=-s>d?0:d+s),c=c===n||c>d?d:we(c),c<0&&(c+=d),c=s>c?0:Qf(c);s<c;)t[s++]=i;return t}function Nc(t,i){var s=[];return Zn(t,function(c,d,g){i(c,d,g)&&s.push(c)}),s}function ht(t,i,s,c,d){var g=-1,_=t.length;for(s||(s=J0),d||(d=[]);++g<_;){var T=t[g];i>0&&s(T)?i>1?ht(T,i-1,s,c,d):Xn(d,T):c||(d[d.length]=T)}return d}var Es=lf(),$c=lf(!0);function Sn(t,i){return t&&Es(t,i,ct)}function xs(t,i){return t&&$c(t,i,ct)}function ko(t,i){return Yn(i,function(s){return Wn(t[s])})}function wr(t,i){i=er(i,t);for(var s=0,c=i.length;t!=null&&s<c;)t=t[xn(i[s++])];return s&&s==c?t:n}function Fc(t,i,s){var c=i(t);return me(t)?c:Xn(c,s(t))}function Ct(t){return t==null?t===n?Kn:cr:vr&&vr in Ue(t)?q0(t):iy(t)}function Os(t,i){return t>i}function c0(t,i){return t!=null&&je.call(t,i)}function f0(t,i){return t!=null&&i in Ue(t)}function d0(t,i,s){return t>=yt(i,s)&&t<ut(i,s)}function Ts(t,i,s){for(var c=s?us:mo,d=t[0].length,g=t.length,_=g,T=k(g),I=1/0,B=[];_--;){var H=t[_];_&&i&&(H=Xe(H,Wt(i))),I=yt(H.length,I),T[_]=!s&&(i||d>=120&&H.length>=120)?new gr(_&&H):n}H=t[0];var z=-1,X=T[0];e:for(;++z<d&&B.length<I;){var ee=H[z],ae=i?i(ee):ee;if(ee=s||ee!==0?ee:0,!(X?yi(X,ae):c(B,ae,s))){for(_=g;--_;){var be=T[_];if(!(be?yi(be,ae):c(t[_],ae,s)))continue e}X&&X.push(ae),B.push(ee)}}return B}function p0(t,i,s,c){return Sn(t,function(d,g,_){i(c,s(d),g,_)}),c}function Ti(t,i,s){i=er(i,t),t=Tf(t,i);var c=t==null?t:t[xn(en(i))];return c==null?n:Ft(c,t,s)}function Wc(t){return Qe(t)&&Ct(t)==oe}function h0(t){return Qe(t)&&Ct(t)==bn}function v0(t){return Qe(t)&&Ct(t)==ve}function Ci(t,i,s,c,d){return t===i?!0:t==null||i==null||!Qe(t)&&!Qe(i)?t!==t&&i!==i:m0(t,i,s,c,Ci,d)}function m0(t,i,s,c,d,g){var _=me(t),T=me(i),I=_?te:wt(t),B=T?te:wt(i);I=I==oe?Tt:I,B=B==oe?Tt:B;var H=I==Tt,z=B==Tt,X=I==B;if(X&&nr(t)){if(!nr(i))return!1;_=!0,H=!1}if(X&&!H)return g||(g=new cn),_||Vr(t)?wf(t,i,s,c,d,g):U0(t,i,I,s,c,d,g);if(!(s&S)){var ee=H&&je.call(t,"__wrapped__"),ae=z&&je.call(i,"__wrapped__");if(ee||ae){var be=ee?t.value():t,se=ae?i.value():i;return g||(g=new cn),d(be,se,s,c,g)}}return X?(g||(g=new cn),z0(t,i,s,c,d,g)):!1}function g0(t){return Qe(t)&&wt(t)==rt}function Cs(t,i,s,c){var d=s.length,g=d,_=!c;if(t==null)return!g;for(t=Ue(t);d--;){var T=s[d];if(_&&T[2]?T[1]!==t[T[0]]:!(T[0]in t))return!1}for(;++d<g;){T=s[d];var I=T[0],B=t[I],H=T[1];if(_&&T[2]){if(B===n&&!(I in t))return!1}else{var z=new cn;if(c)var X=c(B,H,I,t,i,z);if(!(X===n?Ci(H,B,S|y,c,z):X))return!1}}return!0}function jc(t){if(!Je(t)||Q0(t))return!1;var i=Wn(t)?gg:un;return i.test(_r(t))}function y0(t){return Qe(t)&&Ct(t)==at}function w0(t){return Qe(t)&&wt(t)==it}function b0(t){return Qe(t)&&Zo(t.length)&&!!Ye[Ct(t)]}function Bc(t){return typeof t=="function"?t:t==null?Dt:typeof t=="object"?me(t)?zc(t[0],t[1]):Uc(t):cd(t)}function Ps(t){if(!Ai(t))return Eg(t);var i=[];for(var s in Ue(t))je.call(t,s)&&s!="constructor"&&i.push(s);return i}function _0(t){if(!Je(t))return ry(t);var i=Ai(t),s=[];for(var c in t)c=="constructor"&&(i||!je.call(t,c))||s.push(c);return s}function Rs(t,i){return t<i}function Hc(t,i){var s=-1,c=Lt(t)?k(t.length):[];return Zn(t,function(d,g,_){c[++s]=i(d,g,_)}),c}function Uc(t){var i=zs(t);return i.length==1&&i[0][2]?xf(i[0][0],i[0][1]):function(s){return s===t||Cs(s,t,i)}}function zc(t,i){return Ks(t)&&Ef(i)?xf(xn(t),i):function(s){var c=nu(s,t);return c===n&&c===i?ru(s,t):Ci(i,c,S|y)}}function No(t,i,s,c,d){t!==i&&Es(i,function(g,_){if(d||(d=new cn),Je(g))S0(t,i,_,s,No,c,d);else{var T=c?c(Ys(t,_),g,_+"",t,i,d):n;T===n&&(T=g),_s(t,_,T)}},Mt)}function S0(t,i,s,c,d,g,_){var T=Ys(t,s),I=Ys(i,s),B=_.get(I);if(B){_s(t,s,B);return}var H=g?g(T,I,s+"",t,i,_):n,z=H===n;if(z){var X=me(I),ee=!X&&nr(I),ae=!X&&!ee&&Vr(I);H=I,X||ee||ae?me(T)?H=T:tt(T)?H=It(T):ee?(z=!1,H=nf(I,!0)):ae?(z=!1,H=rf(I,!0)):H=[]:Li(I)||Sr(I)?(H=T,Sr(T)?H=ed(T):(!Je(T)||Wn(T))&&(H=Sf(I))):z=!1}z&&(_.set(I,H),d(H,I,c,g,_),_.delete(I)),_s(t,s,H)}function qc(t,i){var s=t.length;if(s)return i+=i<0?s:0,Fn(i,s)?t[i]:n}function Kc(t,i,s){i.length?i=Xe(i,function(g){return me(g)?function(_){return wr(_,g.length===1?g[0]:g)}:g}):i=[Dt];var c=-1;i=Xe(i,Wt(ie()));var d=Hc(t,function(g,_,T){var I=Xe(i,function(B){return B(g)});return{criteria:I,index:++c,value:g}});return Xm(d,function(g,_){return k0(g,_,s)})}function E0(t,i){return Gc(t,i,function(s,c){return ru(t,c)})}function Gc(t,i,s){for(var c=-1,d=i.length,g={};++c<d;){var _=i[c],T=wr(t,_);s(T,_)&&Pi(g,er(_,t),T)}return g}function x0(t){return function(i){return wr(i,t)}}function As(t,i,s,c){var d=c?Ym:Wr,g=-1,_=i.length,T=t;for(t===i&&(i=It(i)),s&&(T=Xe(t,Wt(s)));++g<_;)for(var I=0,B=i[g],H=s?s(B):B;(I=d(T,H,I,c))>-1;)T!==t&&To.call(T,I,1),To.call(t,I,1);return t}function Yc(t,i){for(var s=t?i.length:0,c=s-1;s--;){var d=i[s];if(s==c||d!==g){var g=d;Fn(d)?To.call(t,d,1):Ds(t,d)}}return t}function Is(t,i){return t+Ro(Pc()*(i-t+1))}function O0(t,i,s,c){for(var d=-1,g=ut(Po((i-t)/(s||1)),0),_=k(g);g--;)_[c?g:++d]=t,t+=s;return _}function Ls(t,i){var s="";if(!t||i<1||i>Ke)return s;do i%2&&(s+=t),i=Ro(i/2),i&&(t+=t);while(i);return s}function _e(t,i){return Xs(Of(t,i,Dt),t+"")}function T0(t){return Ic(Jr(t))}function C0(t,i){var s=Jr(t);return Ko(s,yr(i,0,s.length))}function Pi(t,i,s,c){if(!Je(t))return t;i=er(i,t);for(var d=-1,g=i.length,_=g-1,T=t;T!=null&&++d<g;){var I=xn(i[d]),B=s;if(I==="__proto__"||I==="constructor"||I==="prototype")return t;if(d!=_){var H=T[I];B=c?c(H,I,T):n,B===n&&(B=Je(H)?H:Fn(i[d+1])?[]:{})}xi(T,I,B),T=T[I]}return t}var Xc=Ao?function(t,i){return Ao.set(t,i),t}:Dt,P0=Co?function(t,i){return Co(t,"toString",{configurable:!0,enumerable:!1,value:ou(i),writable:!0})}:Dt;function R0(t){return Ko(Jr(t))}function Qt(t,i,s){var c=-1,d=t.length;i<0&&(i=-i>d?0:d+i),s=s>d?d:s,s<0&&(s+=d),d=i>s?0:s-i>>>0,i>>>=0;for(var g=k(d);++c<d;)g[c]=t[c+i];return g}function A0(t,i){var s;return Zn(t,function(c,d,g){return s=i(c,d,g),!s}),!!s}function $o(t,i,s){var c=0,d=t==null?c:t.length;if(typeof i=="number"&&i===i&&d<=fe){for(;c<d;){var g=c+d>>>1,_=t[g];_!==null&&!Bt(_)&&(s?_<=i:_<i)?c=g+1:d=g}return d}return Ms(t,i,Dt,s)}function Ms(t,i,s,c){var d=0,g=t==null?0:t.length;if(g===0)return 0;i=s(i);for(var _=i!==i,T=i===null,I=Bt(i),B=i===n;d<g;){var H=Ro((d+g)/2),z=s(t[H]),X=z!==n,ee=z===null,ae=z===z,be=Bt(z);if(_)var se=c||ae;else B?se=ae&&(c||X):T?se=ae&&X&&(c||!ee):I?se=ae&&X&&!ee&&(c||!be):ee||be?se=!1:se=c?z<=i:z<i;se?d=H+1:g=H}return yt(g,ce)}function Vc(t,i){for(var s=-1,c=t.length,d=0,g=[];++s<c;){var _=t[s],T=i?i(_):_;if(!s||!fn(T,I)){var I=T;g[d++]=_===0?0:_}}return g}function Jc(t){return typeof t=="number"?t:Bt(t)?q:+t}function jt(t){if(typeof t=="string")return t;if(me(t))return Xe(t,jt)+"";if(Bt(t))return Rc?Rc.call(t):"";var i=t+"";return i=="0"&&1/t==-Le?"-0":i}function Qn(t,i,s){var c=-1,d=mo,g=t.length,_=!0,T=[],I=T;if(s)_=!1,d=us;else if(g>=a){var B=i?null:B0(t);if(B)return yo(B);_=!1,d=yi,I=new gr}else I=i?[]:T;e:for(;++c<g;){var H=t[c],z=i?i(H):H;if(H=s||H!==0?H:0,_&&z===z){for(var X=I.length;X--;)if(I[X]===z)continue e;i&&I.push(z),T.push(H)}else d(I,z,s)||(I!==T&&I.push(z),T.push(H))}return T}function Ds(t,i){return i=er(i,t),t=Tf(t,i),t==null||delete t[xn(en(i))]}function Zc(t,i,s,c){return Pi(t,i,s(wr(t,i)),c)}function Fo(t,i,s,c){for(var d=t.length,g=c?d:-1;(c?g--:++g<d)&&i(t[g],g,t););return s?Qt(t,c?0:g,c?g+1:d):Qt(t,c?g+1:0,c?d:g)}function Qc(t,i){var s=t;return s instanceof Ce&&(s=s.value()),ls(i,function(c,d){return d.func.apply(d.thisArg,Xn([c],d.args))},s)}function ks(t,i,s){var c=t.length;if(c<2)return c?Qn(t[0]):[];for(var d=-1,g=k(c);++d<c;)for(var _=t[d],T=-1;++T<c;)T!=d&&(g[d]=Oi(g[d]||_,t[T],i,s));return Qn(ht(g,1),i,s)}function ef(t,i,s){for(var c=-1,d=t.length,g=i.length,_={};++c<d;){var T=c<g?i[c]:n;s(_,t[c],T)}return _}function Ns(t){return tt(t)?t:[]}function $s(t){return typeof t=="function"?t:Dt}function er(t,i){return me(t)?t:Ks(t,i)?[t]:Af(De(t))}var I0=_e;function tr(t,i,s){var c=t.length;return s=s===n?c:s,!i&&s>=c?t:Qt(t,i,s)}var tf=yg||function(t){return pt.clearTimeout(t)};function nf(t,i){if(i)return t.slice();var s=t.length,c=Ec?Ec(s):new t.constructor(s);return t.copy(c),c}function Fs(t){var i=new t.constructor(t.byteLength);return new xo(i).set(new xo(t)),i}function L0(t,i){var s=i?Fs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function M0(t){var i=new t.constructor(t.source,Gt.exec(t));return i.lastIndex=t.lastIndex,i}function D0(t){return Ei?Ue(Ei.call(t)):{}}function rf(t,i){var s=i?Fs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function of(t,i){if(t!==i){var s=t!==n,c=t===null,d=t===t,g=Bt(t),_=i!==n,T=i===null,I=i===i,B=Bt(i);if(!T&&!B&&!g&&t>i||g&&_&&I&&!T&&!B||c&&_&&I||!s&&I||!d)return 1;if(!c&&!g&&!B&&t<i||B&&s&&d&&!c&&!g||T&&s&&d||!_&&d||!I)return-1}return 0}function k0(t,i,s){for(var c=-1,d=t.criteria,g=i.criteria,_=d.length,T=s.length;++c<_;){var I=of(d[c],g[c]);if(I){if(c>=T)return I;var B=s[c];return I*(B=="desc"?-1:1)}}return t.index-i.index}function af(t,i,s,c){for(var d=-1,g=t.length,_=s.length,T=-1,I=i.length,B=ut(g-_,0),H=k(I+B),z=!c;++T<I;)H[T]=i[T];for(;++d<_;)(z||d<g)&&(H[s[d]]=t[d]);for(;B--;)H[T++]=t[d++];return H}function sf(t,i,s,c){for(var d=-1,g=t.length,_=-1,T=s.length,I=-1,B=i.length,H=ut(g-T,0),z=k(H+B),X=!c;++d<H;)z[d]=t[d];for(var ee=d;++I<B;)z[ee+I]=i[I];for(;++_<T;)(X||d<g)&&(z[ee+s[_]]=t[d++]);return z}function It(t,i){var s=-1,c=t.length;for(i||(i=k(c));++s<c;)i[s]=t[s];return i}function En(t,i,s,c){var d=!s;s||(s={});for(var g=-1,_=i.length;++g<_;){var T=i[g],I=c?c(s[T],t[T],T,s,t):n;I===n&&(I=t[T]),d?kn(s,T,I):xi(s,T,I)}return s}function N0(t,i){return En(t,qs(t),i)}function $0(t,i){return En(t,bf(t),i)}function Wo(t,i){return function(s,c){var d=me(s)?Hm:o0,g=i?i():{};return d(s,t,ie(c,2),g)}}function Gr(t){return _e(function(i,s){var c=-1,d=s.length,g=d>1?s[d-1]:n,_=d>2?s[2]:n;for(g=t.length>3&&typeof g=="function"?(d--,g):n,_&&Pt(s[0],s[1],_)&&(g=d<3?n:g,d=1),i=Ue(i);++c<d;){var T=s[c];T&&t(i,T,c,g)}return i})}function uf(t,i){return function(s,c){if(s==null)return s;if(!Lt(s))return t(s,c);for(var d=s.length,g=i?d:-1,_=Ue(s);(i?g--:++g<d)&&c(_[g],g,_)!==!1;);return s}}function lf(t){return function(i,s,c){for(var d=-1,g=Ue(i),_=c(i),T=_.length;T--;){var I=_[t?T:++d];if(s(g[I],I,g)===!1)break}return i}}function F0(t,i,s){var c=i&O,d=Ri(t);function g(){var _=this&&this!==pt&&this instanceof g?d:t;return _.apply(c?s:this,arguments)}return g}function cf(t){return function(i){i=De(i);var s=jr(i)?ln(i):n,c=s?s[0]:i.charAt(0),d=s?tr(s,1).join(""):i.slice(1);return c[t]()+d}}function Yr(t){return function(i){return ls(ud(sd(i).replace(Pm,"")),t,"")}}function Ri(t){return function(){var i=arguments;switch(i.length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3]);case 5:return new t(i[0],i[1],i[2],i[3],i[4]);case 6:return new t(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=Kr(t.prototype),c=t.apply(s,i);return Je(c)?c:s}}function W0(t,i,s){var c=Ri(t);function d(){for(var g=arguments.length,_=k(g),T=g,I=Xr(d);T--;)_[T]=arguments[T];var B=g<3&&_[0]!==I&&_[g-1]!==I?[]:Vn(_,I);if(g-=B.length,g<s)return vf(t,i,jo,d.placeholder,n,_,B,n,n,s-g);var H=this&&this!==pt&&this instanceof d?c:t;return Ft(H,this,_)}return d}function ff(t){return function(i,s,c){var d=Ue(i);if(!Lt(i)){var g=ie(s,3);i=ct(i),s=function(T){return g(d[T],T,d)}}var _=t(i,s,c);return _>-1?d[g?i[_]:_]:n}}function df(t){return $n(function(i){var s=i.length,c=s,d=Jt.prototype.thru;for(t&&i.reverse();c--;){var g=i[c];if(typeof g!="function")throw new Vt(l);if(d&&!_&&zo(g)=="wrapper")var _=new Jt([],!0)}for(c=_?c:s;++c<s;){g=i[c];var T=zo(g),I=T=="wrapper"?Us(g):n;I&&Gs(I[0])&&I[1]==(F|P|E|$)&&!I[4].length&&I[9]==1?_=_[zo(I[0])].apply(_,I[3]):_=g.length==1&&Gs(g)?_[T]():_.thru(g)}return function(){var B=arguments,H=B[0];if(_&&B.length==1&&me(H))return _.plant(H).value();for(var z=0,X=s?i[z].apply(this,B):H;++z<s;)X=i[z].call(this,X);return X}})}function jo(t,i,s,c,d,g,_,T,I,B){var H=i&F,z=i&O,X=i&M,ee=i&(P|D),ae=i&J,be=X?n:Ri(t);function se(){for(var Te=arguments.length,Re=k(Te),Ht=Te;Ht--;)Re[Ht]=arguments[Ht];if(ee)var Rt=Xr(se),Ut=Jm(Re,Rt);if(c&&(Re=af(Re,c,d,ee)),g&&(Re=sf(Re,g,_,ee)),Te-=Ut,ee&&Te<B){var nt=Vn(Re,Rt);return vf(t,i,jo,se.placeholder,s,Re,nt,T,I,B-Te)}var dn=z?s:this,Bn=X?dn[t]:t;return Te=Re.length,T?Re=oy(Re,T):ae&&Te>1&&Re.reverse(),H&&I<Te&&(Re.length=I),this&&this!==pt&&this instanceof se&&(Bn=be||Ri(Bn)),Bn.apply(dn,Re)}return se}function pf(t,i){return function(s,c){return p0(s,t,i(c),{})}}function Bo(t,i){return function(s,c){var d;if(s===n&&c===n)return i;if(s!==n&&(d=s),c!==n){if(d===n)return c;typeof s=="string"||typeof c=="string"?(s=jt(s),c=jt(c)):(s=Jc(s),c=Jc(c)),d=t(s,c)}return d}}function Ws(t){return $n(function(i){return i=Xe(i,Wt(ie())),_e(function(s){var c=this;return t(i,function(d){return Ft(d,c,s)})})})}function Ho(t,i){i=i===n?" ":jt(i);var s=i.length;if(s<2)return s?Ls(i,t):i;var c=Ls(i,Po(t/Br(i)));return jr(i)?tr(ln(c),0,t).join(""):c.slice(0,t)}function j0(t,i,s,c){var d=i&O,g=Ri(t);function _(){for(var T=-1,I=arguments.length,B=-1,H=c.length,z=k(H+I),X=this&&this!==pt&&this instanceof _?g:t;++B<H;)z[B]=c[B];for(;I--;)z[B++]=arguments[++T];return Ft(X,d?s:this,z)}return _}function hf(t){return function(i,s,c){return c&&typeof c!="number"&&Pt(i,s,c)&&(s=c=n),i=jn(i),s===n?(s=i,i=0):s=jn(s),c=c===n?i<s?1:-1:jn(c),O0(i,s,c,t)}}function Uo(t){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=tn(i),s=tn(s)),t(i,s)}}function vf(t,i,s,c,d,g,_,T,I,B){var H=i&P,z=H?_:n,X=H?n:_,ee=H?g:n,ae=H?n:g;i|=H?E:N,i&=~(H?N:E),i&L||(i&=~(O|M));var be=[t,i,d,ee,z,ae,X,T,I,B],se=s.apply(n,be);return Gs(t)&&Cf(se,be),se.placeholder=c,Pf(se,t,i)}function js(t){var i=st[t];return function(s,c){if(s=tn(s),c=c==null?0:yt(we(c),292),c&&Cc(s)){var d=(De(s)+"e").split("e"),g=i(d[0]+"e"+(+d[1]+c));return d=(De(g)+"e").split("e"),+(d[0]+"e"+(+d[1]-c))}return i(s)}}var B0=zr&&1/yo(new zr([,-0]))[1]==Le?function(t){return new zr(t)}:uu;function mf(t){return function(i){var s=wt(i);return s==rt?ms(i):s==it?ig(i):Vm(i,t(i))}}function Nn(t,i,s,c,d,g,_,T){var I=i&M;if(!I&&typeof t!="function")throw new Vt(l);var B=c?c.length:0;if(B||(i&=~(E|N),c=d=n),_=_===n?_:ut(we(_),0),T=T===n?T:we(T),B-=d?d.length:0,i&N){var H=c,z=d;c=d=n}var X=I?n:Us(t),ee=[t,i,s,c,d,H,z,g,_,T];if(X&&ny(ee,X),t=ee[0],i=ee[1],s=ee[2],c=ee[3],d=ee[4],T=ee[9]=ee[9]===n?I?0:t.length:ut(ee[9]-B,0),!T&&i&(P|D)&&(i&=~(P|D)),!i||i==O)var ae=F0(t,i,s);else i==P||i==D?ae=W0(t,i,T):(i==E||i==(O|E))&&!d.length?ae=j0(t,i,s,c):ae=jo.apply(n,ee);var be=X?Xc:Cf;return Pf(be(ae,ee),t,i)}function gf(t,i,s,c){return t===n||fn(t,Ur[s])&&!je.call(c,s)?i:t}function yf(t,i,s,c,d,g){return Je(t)&&Je(i)&&(g.set(i,t),No(t,i,n,yf,g),g.delete(i)),t}function H0(t){return Li(t)?n:t}function wf(t,i,s,c,d,g){var _=s&S,T=t.length,I=i.length;if(T!=I&&!(_&&I>T))return!1;var B=g.get(t),H=g.get(i);if(B&&H)return B==i&&H==t;var z=-1,X=!0,ee=s&y?new gr:n;for(g.set(t,i),g.set(i,t);++z<T;){var ae=t[z],be=i[z];if(c)var se=_?c(be,ae,z,i,t,g):c(ae,be,z,t,i,g);if(se!==n){if(se)continue;X=!1;break}if(ee){if(!cs(i,function(Te,Re){if(!yi(ee,Re)&&(ae===Te||d(ae,Te,s,c,g)))return ee.push(Re)})){X=!1;break}}else if(!(ae===be||d(ae,be,s,c,g))){X=!1;break}}return g.delete(t),g.delete(i),X}function U0(t,i,s,c,d,g,_){switch(s){case sn:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case bn:return!(t.byteLength!=i.byteLength||!g(new xo(t),new xo(i)));case re:case ve:case Ot:return fn(+t,+i);case Ge:return t.name==i.name&&t.message==i.message;case at:case yn:return t==i+"";case rt:var T=ms;case it:var I=c&S;if(T||(T=yo),t.size!=i.size&&!I)return!1;var B=_.get(t);if(B)return B==i;c|=y,_.set(t,i);var H=wf(T(t),T(i),c,d,g,_);return _.delete(t),H;case wn:if(Ei)return Ei.call(t)==Ei.call(i)}return!1}function z0(t,i,s,c,d,g){var _=s&S,T=Bs(t),I=T.length,B=Bs(i),H=B.length;if(I!=H&&!_)return!1;for(var z=I;z--;){var X=T[z];if(!(_?X in i:je.call(i,X)))return!1}var ee=g.get(t),ae=g.get(i);if(ee&&ae)return ee==i&&ae==t;var be=!0;g.set(t,i),g.set(i,t);for(var se=_;++z<I;){X=T[z];var Te=t[X],Re=i[X];if(c)var Ht=_?c(Re,Te,X,i,t,g):c(Te,Re,X,t,i,g);if(!(Ht===n?Te===Re||d(Te,Re,s,c,g):Ht)){be=!1;break}se||(se=X=="constructor")}if(be&&!se){var Rt=t.constructor,Ut=i.constructor;Rt!=Ut&&"constructor"in t&&"constructor"in i&&!(typeof Rt=="function"&&Rt instanceof Rt&&typeof Ut=="function"&&Ut instanceof Ut)&&(be=!1)}return g.delete(t),g.delete(i),be}function $n(t){return Xs(Of(t,n,Df),t+"")}function Bs(t){return Fc(t,ct,qs)}function Hs(t){return Fc(t,Mt,bf)}var Us=Ao?function(t){return Ao.get(t)}:uu;function zo(t){for(var i=t.name+"",s=qr[i],c=je.call(qr,i)?s.length:0;c--;){var d=s[c],g=d.func;if(g==null||g==t)return d.name}return i}function Xr(t){var i=je.call(v,"placeholder")?v:t;return i.placeholder}function ie(){var t=v.iteratee||au;return t=t===au?Bc:t,arguments.length?t(arguments[0],arguments[1]):t}function qo(t,i){var s=t.__data__;return Z0(i)?s[typeof i=="string"?"string":"hash"]:s.map}function zs(t){for(var i=ct(t),s=i.length;s--;){var c=i[s],d=t[c];i[s]=[c,d,Ef(d)]}return i}function br(t,i){var s=tg(t,i);return jc(s)?s:n}function q0(t){var i=je.call(t,vr),s=t[vr];try{t[vr]=n;var c=!0}catch{}var d=So.call(t);return c&&(i?t[vr]=s:delete t[vr]),d}var qs=ys?function(t){return t==null?[]:(t=Ue(t),Yn(ys(t),function(i){return Oc.call(t,i)}))}:lu,bf=ys?function(t){for(var i=[];t;)Xn(i,qs(t)),t=Oo(t);return i}:lu,wt=Ct;(ws&&wt(new ws(new ArrayBuffer(1)))!=sn||bi&&wt(new bi)!=rt||bs&&wt(bs.resolve())!=Ln||zr&&wt(new zr)!=it||_i&&wt(new _i)!=Kt)&&(wt=function(t){var i=Ct(t),s=i==Tt?t.constructor:n,c=s?_r(s):"";if(c)switch(c){case Cg:return sn;case Pg:return rt;case Rg:return Ln;case Ag:return it;case Ig:return Kt}return i});function K0(t,i,s){for(var c=-1,d=s.length;++c<d;){var g=s[c],_=g.size;switch(g.type){case"drop":t+=_;break;case"dropRight":i-=_;break;case"take":i=yt(i,t+_);break;case"takeRight":t=ut(t,i-_);break}}return{start:t,end:i}}function G0(t){var i=t.match(We);return i?i[1].split(Pe):[]}function _f(t,i,s){i=er(i,t);for(var c=-1,d=i.length,g=!1;++c<d;){var _=xn(i[c]);if(!(g=t!=null&&s(t,_)))break;t=t[_]}return g||++c!=d?g:(d=t==null?0:t.length,!!d&&Zo(d)&&Fn(_,d)&&(me(t)||Sr(t)))}function Y0(t){var i=t.length,s=new t.constructor(i);return i&&typeof t[0]=="string"&&je.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function Sf(t){return typeof t.constructor=="function"&&!Ai(t)?Kr(Oo(t)):{}}function X0(t,i,s){var c=t.constructor;switch(i){case bn:return Fs(t);case re:case ve:return new c(+t);case sn:return L0(t,s);case pi:case hi:case vi:case mi:case fr:case $r:case _n:case dr:case pr:return rf(t,s);case rt:return new c;case Ot:case yn:return new c(t);case at:return M0(t);case it:return new c;case wn:return D0(t)}}function V0(t,i){var s=i.length;if(!s)return t;var c=s-1;return i[c]=(s>1?"& ":"")+i[c],i=i.join(s>2?", ":" "),t.replace(Fe,`{
|
|
183
|
+
*/Ua.exports;(function(e,r){(function(){var n,o="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",m=500,y="__lodash_placeholder__",_=1,O=2,v=4,S=1,w=2,T=1,D=2,M=4,R=8,k=16,x=32,W=64,F=128,N=256,Z=512,ne=30,we="...",Me=800,Oe=16,ue=1,ke=2,_e=3,Ie=1/0,qe=9007199254740991,ft=17976931348623157e292,G=0/0,X=4294967295,ve=X-1,me=X>>>1,ce=[["ary",F],["bind",T],["bindKey",D],["curry",R],["curryRight",k],["flip",Z],["partial",x],["partialRight",W],["rearg",N]],le="[object Arguments]",ae="[object Array]",fe="[object AsyncFunction]",se="[object Boolean]",ge="[object Date]",ye="[object DOMException]",Ge="[object Error]",V="[object Function]",nt="[object GeneratorFunction]",rt="[object Map]",lt="[object Number]",Pn="[object Null]",vt="[object Object]",Nt="[object Promise]",gr="[object Proxy]",Je="[object RegExp]",Qe="[object Set]",tn="[object String]",qt="[object Symbol]",mn="[object Undefined]",Et="[object WeakMap]",Qn="[object WeakSet]",nn="[object ArrayBuffer]",Kt="[object DataView]",yr="[object Float32Array]",wr="[object Float64Array]",br="[object Int8Array]",_r="[object Int16Array]",gn="[object Int32Array]",Fn="[object Uint8Array]",yt="[object Uint8ClampedArray]",yn="[object Uint16Array]",wn="[object Uint32Array]",Sr=/\b__p \+= '';/g,Ti=/\b(__p \+=) '' \+/g,Er=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Xr=/&(?:amp|lt|gt|quot|#39);/g,er=/[&<>"']/g,xr=RegExp(Xr.source),Ci=RegExp(er.source),Ri=/<%-([\s\S]+?)%>/g,Or=/<%([\s\S]+?)%>/g,Vr=/<%=([\s\S]+?)%>/g,Pi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ai=/^\w*$/,Ii=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/[\\^$.*+?()[\]{}|]/g,P=RegExp(d.source),$=/^\s+/,Y=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ee=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,je=/[()=,{}\[\]\/\s]/,be=/\\(\\)?/g,Ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,it=/\w*$/,It=/^[-+]0x[0-9a-f]+$/i,Tr=/^0b[01]+$/i,st=/^\[object .+?Constructor\]$/,mm=/^0o[0-7]+$/i,gm=/^(?:0|[1-9]\d*)$/,ym=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bo=/($^)/,wm=/['\n\r\u2028\u2029\\]/g,_o="\\ud800-\\udfff",bm="\\u0300-\\u036f",_m="\\ufe20-\\ufe2f",Sm="\\u20d0-\\u20ff",zc=bm+_m+Sm,qc="\\u2700-\\u27bf",Kc="a-z\\xdf-\\xf6\\xf8-\\xff",Em="\\xac\\xb1\\xd7\\xf7",xm="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Om="\\u2000-\\u206f",Tm=" \\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",Gc="A-Z\\xc0-\\xd6\\xd8-\\xde",Yc="\\ufe0e\\ufe0f",Xc=Em+xm+Om+Tm,ns="['’]",Cm="["+_o+"]",Vc="["+Xc+"]",So="["+zc+"]",Jc="\\d+",Rm="["+qc+"]",Zc="["+Kc+"]",Qc="[^"+_o+Xc+Jc+qc+Kc+Gc+"]",rs="\\ud83c[\\udffb-\\udfff]",Pm="(?:"+So+"|"+rs+")",el="[^"+_o+"]",is="(?:\\ud83c[\\udde6-\\uddff]){2}",os="[\\ud800-\\udbff][\\udc00-\\udfff]",Jr="["+Gc+"]",tl="\\u200d",nl="(?:"+Zc+"|"+Qc+")",Am="(?:"+Jr+"|"+Qc+")",rl="(?:"+ns+"(?:d|ll|m|re|s|t|ve))?",il="(?:"+ns+"(?:D|LL|M|RE|S|T|VE))?",ol=Pm+"?",al="["+Yc+"]?",Im="(?:"+tl+"(?:"+[el,is,os].join("|")+")"+al+ol+")*",Lm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mm="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sl=al+ol+Im,Dm="(?:"+[Rm,is,os].join("|")+")"+sl,km="(?:"+[el+So+"?",So,is,os,Cm].join("|")+")",$m=RegExp(ns,"g"),Nm=RegExp(So,"g"),as=RegExp(rs+"(?="+rs+")|"+km+sl,"g"),jm=RegExp([Jr+"?"+Zc+"+"+rl+"(?="+[Vc,Jr,"$"].join("|")+")",Am+"+"+il+"(?="+[Vc,Jr+nl,"$"].join("|")+")",Jr+"?"+nl+"+"+rl,Jr+"+"+il,Mm,Lm,Jc,Dm].join("|"),"g"),Fm=RegExp("["+tl+_o+zc+Yc+"]"),Wm=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Um=["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"],Bm=-1,Ze={};Ze[yr]=Ze[wr]=Ze[br]=Ze[_r]=Ze[gn]=Ze[Fn]=Ze[yt]=Ze[yn]=Ze[wn]=!0,Ze[le]=Ze[ae]=Ze[nn]=Ze[se]=Ze[Kt]=Ze[ge]=Ze[Ge]=Ze[V]=Ze[rt]=Ze[lt]=Ze[vt]=Ze[Je]=Ze[Qe]=Ze[tn]=Ze[Et]=!1;var Xe={};Xe[le]=Xe[ae]=Xe[nn]=Xe[Kt]=Xe[se]=Xe[ge]=Xe[yr]=Xe[wr]=Xe[br]=Xe[_r]=Xe[gn]=Xe[rt]=Xe[lt]=Xe[vt]=Xe[Je]=Xe[Qe]=Xe[tn]=Xe[qt]=Xe[Fn]=Xe[yt]=Xe[yn]=Xe[wn]=!0,Xe[Ge]=Xe[V]=Xe[Et]=!1;var Hm={À:"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"},zm={"&":"&","<":"<",">":">",'"':""","'":"'"},qm={"&":"&","<":"<",">":">",""":'"',"'":"'"},Km={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gm=parseFloat,Ym=parseInt,ul=typeof Fr=="object"&&Fr&&Fr.Object===Object&&Fr,Xm=typeof self=="object"&&self&&self.Object===Object&&self,wt=ul||Xm||Function("return this")(),ss=r&&!r.nodeType&&r,Cr=ss&&!0&&e&&!e.nodeType&&e,cl=Cr&&Cr.exports===ss,us=cl&&ul.process,rn=function(){try{var A=Cr&&Cr.require&&Cr.require("util").types;return A||us&&us.binding&&us.binding("util")}catch{}}(),ll=rn&&rn.isArrayBuffer,fl=rn&&rn.isDate,dl=rn&&rn.isMap,pl=rn&&rn.isRegExp,hl=rn&&rn.isSet,vl=rn&&rn.isTypedArray;function Gt(A,U,j){switch(j.length){case 0:return A.call(U);case 1:return A.call(U,j[0]);case 2:return A.call(U,j[0],j[1]);case 3:return A.call(U,j[0],j[1],j[2])}return A.apply(U,j)}function Vm(A,U,j,te){for(var Se=-1,Fe=A==null?0:A.length;++Se<Fe;){var dt=A[Se];U(te,dt,j(dt),A)}return te}function on(A,U){for(var j=-1,te=A==null?0:A.length;++j<te&&U(A[j],j,A)!==!1;);return A}function Jm(A,U){for(var j=A==null?0:A.length;j--&&U(A[j],j,A)!==!1;);return A}function ml(A,U){for(var j=-1,te=A==null?0:A.length;++j<te;)if(!U(A[j],j,A))return!1;return!0}function tr(A,U){for(var j=-1,te=A==null?0:A.length,Se=0,Fe=[];++j<te;){var dt=A[j];U(dt,j,A)&&(Fe[Se++]=dt)}return Fe}function Eo(A,U){var j=A==null?0:A.length;return!!j&&Zr(A,U,0)>-1}function cs(A,U,j){for(var te=-1,Se=A==null?0:A.length;++te<Se;)if(j(U,A[te]))return!0;return!1}function et(A,U){for(var j=-1,te=A==null?0:A.length,Se=Array(te);++j<te;)Se[j]=U(A[j],j,A);return Se}function nr(A,U){for(var j=-1,te=U.length,Se=A.length;++j<te;)A[Se+j]=U[j];return A}function ls(A,U,j,te){var Se=-1,Fe=A==null?0:A.length;for(te&&Fe&&(j=A[++Se]);++Se<Fe;)j=U(j,A[Se],Se,A);return j}function Zm(A,U,j,te){var Se=A==null?0:A.length;for(te&&Se&&(j=A[--Se]);Se--;)j=U(j,A[Se],Se,A);return j}function fs(A,U){for(var j=-1,te=A==null?0:A.length;++j<te;)if(U(A[j],j,A))return!0;return!1}var Qm=ds("length");function eg(A){return A.split("")}function tg(A){return A.match(Q)||[]}function gl(A,U,j){var te;return j(A,function(Se,Fe,dt){if(U(Se,Fe,dt))return te=Fe,!1}),te}function xo(A,U,j,te){for(var Se=A.length,Fe=j+(te?1:-1);te?Fe--:++Fe<Se;)if(U(A[Fe],Fe,A))return Fe;return-1}function Zr(A,U,j){return U===U?pg(A,U,j):xo(A,yl,j)}function ng(A,U,j,te){for(var Se=j-1,Fe=A.length;++Se<Fe;)if(te(A[Se],U))return Se;return-1}function yl(A){return A!==A}function wl(A,U){var j=A==null?0:A.length;return j?hs(A,U)/j:G}function ds(A){return function(U){return U==null?n:U[A]}}function ps(A){return function(U){return A==null?n:A[U]}}function bl(A,U,j,te,Se){return Se(A,function(Fe,dt,Ye){j=te?(te=!1,Fe):U(j,Fe,dt,Ye)}),j}function rg(A,U){var j=A.length;for(A.sort(U);j--;)A[j]=A[j].value;return A}function hs(A,U){for(var j,te=-1,Se=A.length;++te<Se;){var Fe=U(A[te]);Fe!==n&&(j=j===n?Fe:j+Fe)}return j}function vs(A,U){for(var j=-1,te=Array(A);++j<A;)te[j]=U(j);return te}function ig(A,U){return et(U,function(j){return[j,A[j]]})}function _l(A){return A&&A.slice(0,Ol(A)+1).replace($,"")}function Yt(A){return function(U){return A(U)}}function ms(A,U){return et(U,function(j){return A[j]})}function Li(A,U){return A.has(U)}function Sl(A,U){for(var j=-1,te=A.length;++j<te&&Zr(U,A[j],0)>-1;);return j}function El(A,U){for(var j=A.length;j--&&Zr(U,A[j],0)>-1;);return j}function og(A,U){for(var j=A.length,te=0;j--;)A[j]===U&&++te;return te}var ag=ps(Hm),sg=ps(zm);function ug(A){return"\\"+Km[A]}function cg(A,U){return A==null?n:A[U]}function Qr(A){return Fm.test(A)}function lg(A){return Wm.test(A)}function fg(A){for(var U,j=[];!(U=A.next()).done;)j.push(U.value);return j}function gs(A){var U=-1,j=Array(A.size);return A.forEach(function(te,Se){j[++U]=[Se,te]}),j}function xl(A,U){return function(j){return A(U(j))}}function rr(A,U){for(var j=-1,te=A.length,Se=0,Fe=[];++j<te;){var dt=A[j];(dt===U||dt===y)&&(A[j]=y,Fe[Se++]=j)}return Fe}function Oo(A){var U=-1,j=Array(A.size);return A.forEach(function(te){j[++U]=te}),j}function dg(A){var U=-1,j=Array(A.size);return A.forEach(function(te){j[++U]=[te,te]}),j}function pg(A,U,j){for(var te=j-1,Se=A.length;++te<Se;)if(A[te]===U)return te;return-1}function hg(A,U,j){for(var te=j+1;te--;)if(A[te]===U)return te;return te}function ei(A){return Qr(A)?mg(A):Qm(A)}function bn(A){return Qr(A)?gg(A):eg(A)}function Ol(A){for(var U=A.length;U--&&Y.test(A.charAt(U)););return U}var vg=ps(qm);function mg(A){for(var U=as.lastIndex=0;as.test(A);)++U;return U}function gg(A){return A.match(as)||[]}function yg(A){return A.match(jm)||[]}var wg=function A(U){U=U==null?wt:ti.defaults(wt.Object(),U,ti.pick(wt,Um));var j=U.Array,te=U.Date,Se=U.Error,Fe=U.Function,dt=U.Math,Ye=U.Object,ys=U.RegExp,bg=U.String,an=U.TypeError,To=j.prototype,_g=Fe.prototype,ni=Ye.prototype,Co=U["__core-js_shared__"],Ro=_g.toString,He=ni.hasOwnProperty,Sg=0,Tl=function(){var t=/[^.]+$/.exec(Co&&Co.keys&&Co.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Po=ni.toString,Eg=Ro.call(Ye),xg=wt._,Og=ys("^"+Ro.call(He).replace(d,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ao=cl?U.Buffer:n,ir=U.Symbol,Io=U.Uint8Array,Cl=Ao?Ao.allocUnsafe:n,Lo=xl(Ye.getPrototypeOf,Ye),Rl=Ye.create,Pl=ni.propertyIsEnumerable,Mo=To.splice,Al=ir?ir.isConcatSpreadable:n,Mi=ir?ir.iterator:n,Rr=ir?ir.toStringTag:n,Do=function(){try{var t=Mr(Ye,"defineProperty");return t({},"",{}),t}catch{}}(),Tg=U.clearTimeout!==wt.clearTimeout&&U.clearTimeout,Cg=te&&te.now!==wt.Date.now&&te.now,Rg=U.setTimeout!==wt.setTimeout&&U.setTimeout,ko=dt.ceil,$o=dt.floor,ws=Ye.getOwnPropertySymbols,Pg=Ao?Ao.isBuffer:n,Il=U.isFinite,Ag=To.join,Ig=xl(Ye.keys,Ye),pt=dt.max,xt=dt.min,Lg=te.now,Mg=U.parseInt,Ll=dt.random,Dg=To.reverse,bs=Mr(U,"DataView"),Di=Mr(U,"Map"),_s=Mr(U,"Promise"),ri=Mr(U,"Set"),ki=Mr(U,"WeakMap"),$i=Mr(Ye,"create"),No=ki&&new ki,ii={},kg=Dr(bs),$g=Dr(Di),Ng=Dr(_s),jg=Dr(ri),Fg=Dr(ki),jo=ir?ir.prototype:n,Ni=jo?jo.valueOf:n,Ml=jo?jo.toString:n;function g(t){if(ot(t)&&!xe(t)&&!(t instanceof De)){if(t instanceof sn)return t;if(He.call(t,"__wrapped__"))return kf(t)}return new sn(t)}var oi=function(){function t(){}return function(i){if(!tt(i))return{};if(Rl)return Rl(i);t.prototype=i;var s=new t;return t.prototype=n,s}}();function Fo(){}function sn(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}g.templateSettings={escape:Ri,evaluate:Or,interpolate:Vr,variable:"",imports:{_:g}},g.prototype=Fo.prototype,g.prototype.constructor=g,sn.prototype=oi(Fo.prototype),sn.prototype.constructor=sn;function De(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=X,this.__views__=[]}function Wg(){var t=new De(this.__wrapped__);return t.__actions__=jt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=jt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=jt(this.__views__),t}function Ug(){if(this.__filtered__){var t=new De(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function Bg(){var t=this.__wrapped__.value(),i=this.__dir__,s=xe(t),l=i<0,p=s?t.length:0,b=ey(0,p,this.__views__),E=b.start,C=b.end,L=C-E,H=l?C:E-1,z=this.__iteratees__,K=z.length,J=0,re=xt(L,this.__takeCount__);if(!s||!l&&p==L&&re==L)return rf(t,this.__actions__);var pe=[];e:for(;L--&&J<re;){H+=i;for(var Ce=-1,he=t[H];++Ce<K;){var Le=z[Ce],$e=Le.iteratee,Jt=Le.type,Dt=$e(he);if(Jt==ke)he=Dt;else if(!Dt){if(Jt==ue)continue e;break e}}pe[J++]=he}return pe}De.prototype=oi(Fo.prototype),De.prototype.constructor=De;function Pr(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var l=t[i];this.set(l[0],l[1])}}function Hg(){this.__data__=$i?$i(null):{},this.size=0}function zg(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function qg(t){var i=this.__data__;if($i){var s=i[t];return s===h?n:s}return He.call(i,t)?i[t]:n}function Kg(t){var i=this.__data__;return $i?i[t]!==n:He.call(i,t)}function Gg(t,i){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=$i&&i===n?h:i,this}Pr.prototype.clear=Hg,Pr.prototype.delete=zg,Pr.prototype.get=qg,Pr.prototype.has=Kg,Pr.prototype.set=Gg;function Wn(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var l=t[i];this.set(l[0],l[1])}}function Yg(){this.__data__=[],this.size=0}function Xg(t){var i=this.__data__,s=Wo(i,t);if(s<0)return!1;var l=i.length-1;return s==l?i.pop():Mo.call(i,s,1),--this.size,!0}function Vg(t){var i=this.__data__,s=Wo(i,t);return s<0?n:i[s][1]}function Jg(t){return Wo(this.__data__,t)>-1}function Zg(t,i){var s=this.__data__,l=Wo(s,t);return l<0?(++this.size,s.push([t,i])):s[l][1]=i,this}Wn.prototype.clear=Yg,Wn.prototype.delete=Xg,Wn.prototype.get=Vg,Wn.prototype.has=Jg,Wn.prototype.set=Zg;function Un(t){var i=-1,s=t==null?0:t.length;for(this.clear();++i<s;){var l=t[i];this.set(l[0],l[1])}}function Qg(){this.size=0,this.__data__={hash:new Pr,map:new(Di||Wn),string:new Pr}}function e0(t){var i=Zo(this,t).delete(t);return this.size-=i?1:0,i}function t0(t){return Zo(this,t).get(t)}function n0(t){return Zo(this,t).has(t)}function r0(t,i){var s=Zo(this,t),l=s.size;return s.set(t,i),this.size+=s.size==l?0:1,this}Un.prototype.clear=Qg,Un.prototype.delete=e0,Un.prototype.get=t0,Un.prototype.has=n0,Un.prototype.set=r0;function Ar(t){var i=-1,s=t==null?0:t.length;for(this.__data__=new Un;++i<s;)this.add(t[i])}function i0(t){return this.__data__.set(t,h),this}function o0(t){return this.__data__.has(t)}Ar.prototype.add=Ar.prototype.push=i0,Ar.prototype.has=o0;function _n(t){var i=this.__data__=new Wn(t);this.size=i.size}function a0(){this.__data__=new Wn,this.size=0}function s0(t){var i=this.__data__,s=i.delete(t);return this.size=i.size,s}function u0(t){return this.__data__.get(t)}function c0(t){return this.__data__.has(t)}function l0(t,i){var s=this.__data__;if(s instanceof Wn){var l=s.__data__;if(!Di||l.length<a-1)return l.push([t,i]),this.size=++s.size,this;s=this.__data__=new Un(l)}return s.set(t,i),this.size=s.size,this}_n.prototype.clear=a0,_n.prototype.delete=s0,_n.prototype.get=u0,_n.prototype.has=c0,_n.prototype.set=l0;function Dl(t,i){var s=xe(t),l=!s&&kr(t),p=!s&&!l&&cr(t),b=!s&&!l&&!p&&ci(t),E=s||l||p||b,C=E?vs(t.length,bg):[],L=C.length;for(var H in t)(i||He.call(t,H))&&!(E&&(H=="length"||p&&(H=="offset"||H=="parent")||b&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||qn(H,L)))&&C.push(H);return C}function kl(t){var i=t.length;return i?t[Ls(0,i-1)]:n}function f0(t,i){return Qo(jt(t),Ir(i,0,t.length))}function d0(t){return Qo(jt(t))}function Ss(t,i,s){(s!==n&&!Sn(t[i],s)||s===n&&!(i in t))&&Bn(t,i,s)}function ji(t,i,s){var l=t[i];(!(He.call(t,i)&&Sn(l,s))||s===n&&!(i in t))&&Bn(t,i,s)}function Wo(t,i){for(var s=t.length;s--;)if(Sn(t[s][0],i))return s;return-1}function p0(t,i,s,l){return or(t,function(p,b,E){i(l,p,s(p),E)}),l}function $l(t,i){return t&&In(i,mt(i),t)}function h0(t,i){return t&&In(i,Wt(i),t)}function Bn(t,i,s){i=="__proto__"&&Do?Do(t,i,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[i]=s}function Es(t,i){for(var s=-1,l=i.length,p=j(l),b=t==null;++s<l;)p[s]=b?n:ru(t,i[s]);return p}function Ir(t,i,s){return t===t&&(s!==n&&(t=t<=s?t:s),i!==n&&(t=t>=i?t:i)),t}function un(t,i,s,l,p,b){var E,C=i&_,L=i&O,H=i&v;if(s&&(E=p?s(t,l,p,b):s(t)),E!==n)return E;if(!tt(t))return t;var z=xe(t);if(z){if(E=ny(t),!C)return jt(t,E)}else{var K=Ot(t),J=K==V||K==nt;if(cr(t))return sf(t,C);if(K==vt||K==le||J&&!p){if(E=L||J?{}:Tf(t),!C)return L?q0(t,h0(E,t)):z0(t,$l(E,t))}else{if(!Xe[K])return p?t:{};E=ry(t,K,C)}}b||(b=new _n);var re=b.get(t);if(re)return re;b.set(t,E),td(t)?t.forEach(function(he){E.add(un(he,i,s,he,t,b))}):Qf(t)&&t.forEach(function(he,Le){E.set(Le,un(he,i,s,Le,t,b))});var pe=H?L?Hs:Bs:L?Wt:mt,Ce=z?n:pe(t);return on(Ce||t,function(he,Le){Ce&&(Le=he,he=t[Le]),ji(E,Le,un(he,i,s,Le,t,b))}),E}function v0(t){var i=mt(t);return function(s){return Nl(s,t,i)}}function Nl(t,i,s){var l=s.length;if(t==null)return!l;for(t=Ye(t);l--;){var p=s[l],b=i[p],E=t[p];if(E===n&&!(p in t)||!b(E))return!1}return!0}function jl(t,i,s){if(typeof t!="function")throw new an(c);return qi(function(){t.apply(n,s)},i)}function Fi(t,i,s,l){var p=-1,b=Eo,E=!0,C=t.length,L=[],H=i.length;if(!C)return L;s&&(i=et(i,Yt(s))),l?(b=cs,E=!1):i.length>=a&&(b=Li,E=!1,i=new Ar(i));e:for(;++p<C;){var z=t[p],K=s==null?z:s(z);if(z=l||z!==0?z:0,E&&K===K){for(var J=H;J--;)if(i[J]===K)continue e;L.push(z)}else b(i,K,l)||L.push(z)}return L}var or=df(An),Fl=df(Os,!0);function m0(t,i){var s=!0;return or(t,function(l,p,b){return s=!!i(l,p,b),s}),s}function Uo(t,i,s){for(var l=-1,p=t.length;++l<p;){var b=t[l],E=i(b);if(E!=null&&(C===n?E===E&&!Vt(E):s(E,C)))var C=E,L=b}return L}function g0(t,i,s,l){var p=t.length;for(s=Te(s),s<0&&(s=-s>p?0:p+s),l=l===n||l>p?p:Te(l),l<0&&(l+=p),l=s>l?0:rd(l);s<l;)t[s++]=i;return t}function Wl(t,i){var s=[];return or(t,function(l,p,b){i(l,p,b)&&s.push(l)}),s}function bt(t,i,s,l,p){var b=-1,E=t.length;for(s||(s=oy),p||(p=[]);++b<E;){var C=t[b];i>0&&s(C)?i>1?bt(C,i-1,s,l,p):nr(p,C):l||(p[p.length]=C)}return p}var xs=pf(),Ul=pf(!0);function An(t,i){return t&&xs(t,i,mt)}function Os(t,i){return t&&Ul(t,i,mt)}function Bo(t,i){return tr(i,function(s){return Kn(t[s])})}function Lr(t,i){i=sr(i,t);for(var s=0,l=i.length;t!=null&&s<l;)t=t[Ln(i[s++])];return s&&s==l?t:n}function Bl(t,i,s){var l=i(t);return xe(t)?l:nr(l,s(t))}function Lt(t){return t==null?t===n?mn:Pn:Rr&&Rr in Ye(t)?Q0(t):dy(t)}function Ts(t,i){return t>i}function y0(t,i){return t!=null&&He.call(t,i)}function w0(t,i){return t!=null&&i in Ye(t)}function b0(t,i,s){return t>=xt(i,s)&&t<pt(i,s)}function Cs(t,i,s){for(var l=s?cs:Eo,p=t[0].length,b=t.length,E=b,C=j(b),L=1/0,H=[];E--;){var z=t[E];E&&i&&(z=et(z,Yt(i))),L=xt(z.length,L),C[E]=!s&&(i||p>=120&&z.length>=120)?new Ar(E&&z):n}z=t[0];var K=-1,J=C[0];e:for(;++K<p&&H.length<L;){var re=z[K],pe=i?i(re):re;if(re=s||re!==0?re:0,!(J?Li(J,pe):l(H,pe,s))){for(E=b;--E;){var Ce=C[E];if(!(Ce?Li(Ce,pe):l(t[E],pe,s)))continue e}J&&J.push(pe),H.push(re)}}return H}function _0(t,i,s,l){return An(t,function(p,b,E){i(l,s(p),b,E)}),l}function Wi(t,i,s){i=sr(i,t),t=Af(t,i);var l=t==null?t:t[Ln(ln(i))];return l==null?n:Gt(l,t,s)}function Hl(t){return ot(t)&&Lt(t)==le}function S0(t){return ot(t)&&Lt(t)==nn}function E0(t){return ot(t)&&Lt(t)==ge}function Ui(t,i,s,l,p){return t===i?!0:t==null||i==null||!ot(t)&&!ot(i)?t!==t&&i!==i:x0(t,i,s,l,Ui,p)}function x0(t,i,s,l,p,b){var E=xe(t),C=xe(i),L=E?ae:Ot(t),H=C?ae:Ot(i);L=L==le?vt:L,H=H==le?vt:H;var z=L==vt,K=H==vt,J=L==H;if(J&&cr(t)){if(!cr(i))return!1;E=!0,z=!1}if(J&&!z)return b||(b=new _n),E||ci(t)?Ef(t,i,s,l,p,b):J0(t,i,L,s,l,p,b);if(!(s&S)){var re=z&&He.call(t,"__wrapped__"),pe=K&&He.call(i,"__wrapped__");if(re||pe){var Ce=re?t.value():t,he=pe?i.value():i;return b||(b=new _n),p(Ce,he,s,l,b)}}return J?(b||(b=new _n),Z0(t,i,s,l,p,b)):!1}function O0(t){return ot(t)&&Ot(t)==rt}function Rs(t,i,s,l){var p=s.length,b=p,E=!l;if(t==null)return!b;for(t=Ye(t);p--;){var C=s[p];if(E&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++p<b;){C=s[p];var L=C[0],H=t[L],z=C[1];if(E&&C[2]){if(H===n&&!(L in t))return!1}else{var K=new _n;if(l)var J=l(H,z,L,t,i,K);if(!(J===n?Ui(z,H,S|w,l,K):J))return!1}}return!0}function zl(t){if(!tt(t)||sy(t))return!1;var i=Kn(t)?Og:st;return i.test(Dr(t))}function T0(t){return ot(t)&&Lt(t)==Je}function C0(t){return ot(t)&&Ot(t)==Qe}function R0(t){return ot(t)&&oa(t.length)&&!!Ze[Lt(t)]}function ql(t){return typeof t=="function"?t:t==null?Ut:typeof t=="object"?xe(t)?Yl(t[0],t[1]):Gl(t):hd(t)}function Ps(t){if(!zi(t))return Ig(t);var i=[];for(var s in Ye(t))He.call(t,s)&&s!="constructor"&&i.push(s);return i}function P0(t){if(!tt(t))return fy(t);var i=zi(t),s=[];for(var l in t)l=="constructor"&&(i||!He.call(t,l))||s.push(l);return s}function As(t,i){return t<i}function Kl(t,i){var s=-1,l=Ft(t)?j(t.length):[];return or(t,function(p,b,E){l[++s]=i(p,b,E)}),l}function Gl(t){var i=qs(t);return i.length==1&&i[0][2]?Rf(i[0][0],i[0][1]):function(s){return s===t||Rs(s,t,i)}}function Yl(t,i){return Gs(t)&&Cf(i)?Rf(Ln(t),i):function(s){var l=ru(s,t);return l===n&&l===i?iu(s,t):Ui(i,l,S|w)}}function Ho(t,i,s,l,p){t!==i&&xs(i,function(b,E){if(p||(p=new _n),tt(b))A0(t,i,E,s,Ho,l,p);else{var C=l?l(Xs(t,E),b,E+"",t,i,p):n;C===n&&(C=b),Ss(t,E,C)}},Wt)}function A0(t,i,s,l,p,b,E){var C=Xs(t,s),L=Xs(i,s),H=E.get(L);if(H){Ss(t,s,H);return}var z=b?b(C,L,s+"",t,i,E):n,K=z===n;if(K){var J=xe(L),re=!J&&cr(L),pe=!J&&!re&&ci(L);z=L,J||re||pe?xe(C)?z=C:ut(C)?z=jt(C):re?(K=!1,z=sf(L,!0)):pe?(K=!1,z=uf(L,!0)):z=[]:Ki(L)||kr(L)?(z=C,kr(C)?z=id(C):(!tt(C)||Kn(C))&&(z=Tf(L))):K=!1}K&&(E.set(L,z),p(z,L,l,b,E),E.delete(L)),Ss(t,s,z)}function Xl(t,i){var s=t.length;if(s)return i+=i<0?s:0,qn(i,s)?t[i]:n}function Vl(t,i,s){i.length?i=et(i,function(b){return xe(b)?function(E){return Lr(E,b.length===1?b[0]:b)}:b}):i=[Ut];var l=-1;i=et(i,Yt(de()));var p=Kl(t,function(b,E,C){var L=et(i,function(H){return H(b)});return{criteria:L,index:++l,value:b}});return rg(p,function(b,E){return H0(b,E,s)})}function I0(t,i){return Jl(t,i,function(s,l){return iu(t,l)})}function Jl(t,i,s){for(var l=-1,p=i.length,b={};++l<p;){var E=i[l],C=Lr(t,E);s(C,E)&&Bi(b,sr(E,t),C)}return b}function L0(t){return function(i){return Lr(i,t)}}function Is(t,i,s,l){var p=l?ng:Zr,b=-1,E=i.length,C=t;for(t===i&&(i=jt(i)),s&&(C=et(t,Yt(s)));++b<E;)for(var L=0,H=i[b],z=s?s(H):H;(L=p(C,z,L,l))>-1;)C!==t&&Mo.call(C,L,1),Mo.call(t,L,1);return t}function Zl(t,i){for(var s=t?i.length:0,l=s-1;s--;){var p=i[s];if(s==l||p!==b){var b=p;qn(p)?Mo.call(t,p,1):ks(t,p)}}return t}function Ls(t,i){return t+$o(Ll()*(i-t+1))}function M0(t,i,s,l){for(var p=-1,b=pt(ko((i-t)/(s||1)),0),E=j(b);b--;)E[l?b:++p]=t,t+=s;return E}function Ms(t,i){var s="";if(!t||i<1||i>qe)return s;do i%2&&(s+=t),i=$o(i/2),i&&(t+=t);while(i);return s}function Re(t,i){return Vs(Pf(t,i,Ut),t+"")}function D0(t){return kl(li(t))}function k0(t,i){var s=li(t);return Qo(s,Ir(i,0,s.length))}function Bi(t,i,s,l){if(!tt(t))return t;i=sr(i,t);for(var p=-1,b=i.length,E=b-1,C=t;C!=null&&++p<b;){var L=Ln(i[p]),H=s;if(L==="__proto__"||L==="constructor"||L==="prototype")return t;if(p!=E){var z=C[L];H=l?l(z,L,C):n,H===n&&(H=tt(z)?z:qn(i[p+1])?[]:{})}ji(C,L,H),C=C[L]}return t}var Ql=No?function(t,i){return No.set(t,i),t}:Ut,$0=Do?function(t,i){return Do(t,"toString",{configurable:!0,enumerable:!1,value:au(i),writable:!0})}:Ut;function N0(t){return Qo(li(t))}function cn(t,i,s){var l=-1,p=t.length;i<0&&(i=-i>p?0:p+i),s=s>p?p:s,s<0&&(s+=p),p=i>s?0:s-i>>>0,i>>>=0;for(var b=j(p);++l<p;)b[l]=t[l+i];return b}function j0(t,i){var s;return or(t,function(l,p,b){return s=i(l,p,b),!s}),!!s}function zo(t,i,s){var l=0,p=t==null?l:t.length;if(typeof i=="number"&&i===i&&p<=me){for(;l<p;){var b=l+p>>>1,E=t[b];E!==null&&!Vt(E)&&(s?E<=i:E<i)?l=b+1:p=b}return p}return Ds(t,i,Ut,s)}function Ds(t,i,s,l){var p=0,b=t==null?0:t.length;if(b===0)return 0;i=s(i);for(var E=i!==i,C=i===null,L=Vt(i),H=i===n;p<b;){var z=$o((p+b)/2),K=s(t[z]),J=K!==n,re=K===null,pe=K===K,Ce=Vt(K);if(E)var he=l||pe;else H?he=pe&&(l||J):C?he=pe&&J&&(l||!re):L?he=pe&&J&&!re&&(l||!Ce):re||Ce?he=!1:he=l?K<=i:K<i;he?p=z+1:b=z}return xt(b,ve)}function ef(t,i){for(var s=-1,l=t.length,p=0,b=[];++s<l;){var E=t[s],C=i?i(E):E;if(!s||!Sn(C,L)){var L=C;b[p++]=E===0?0:E}}return b}function tf(t){return typeof t=="number"?t:Vt(t)?G:+t}function Xt(t){if(typeof t=="string")return t;if(xe(t))return et(t,Xt)+"";if(Vt(t))return Ml?Ml.call(t):"";var i=t+"";return i=="0"&&1/t==-Ie?"-0":i}function ar(t,i,s){var l=-1,p=Eo,b=t.length,E=!0,C=[],L=C;if(s)E=!1,p=cs;else if(b>=a){var H=i?null:X0(t);if(H)return Oo(H);E=!1,p=Li,L=new Ar}else L=i?[]:C;e:for(;++l<b;){var z=t[l],K=i?i(z):z;if(z=s||z!==0?z:0,E&&K===K){for(var J=L.length;J--;)if(L[J]===K)continue e;i&&L.push(K),C.push(z)}else p(L,K,s)||(L!==C&&L.push(K),C.push(z))}return C}function ks(t,i){return i=sr(i,t),t=Af(t,i),t==null||delete t[Ln(ln(i))]}function nf(t,i,s,l){return Bi(t,i,s(Lr(t,i)),l)}function qo(t,i,s,l){for(var p=t.length,b=l?p:-1;(l?b--:++b<p)&&i(t[b],b,t););return s?cn(t,l?0:b,l?b+1:p):cn(t,l?b+1:0,l?p:b)}function rf(t,i){var s=t;return s instanceof De&&(s=s.value()),ls(i,function(l,p){return p.func.apply(p.thisArg,nr([l],p.args))},s)}function $s(t,i,s){var l=t.length;if(l<2)return l?ar(t[0]):[];for(var p=-1,b=j(l);++p<l;)for(var E=t[p],C=-1;++C<l;)C!=p&&(b[p]=Fi(b[p]||E,t[C],i,s));return ar(bt(b,1),i,s)}function of(t,i,s){for(var l=-1,p=t.length,b=i.length,E={};++l<p;){var C=l<b?i[l]:n;s(E,t[l],C)}return E}function Ns(t){return ut(t)?t:[]}function js(t){return typeof t=="function"?t:Ut}function sr(t,i){return xe(t)?t:Gs(t,i)?[t]:Df(We(t))}var F0=Re;function ur(t,i,s){var l=t.length;return s=s===n?l:s,!i&&s>=l?t:cn(t,i,s)}var af=Tg||function(t){return wt.clearTimeout(t)};function sf(t,i){if(i)return t.slice();var s=t.length,l=Cl?Cl(s):new t.constructor(s);return t.copy(l),l}function Fs(t){var i=new t.constructor(t.byteLength);return new Io(i).set(new Io(t)),i}function W0(t,i){var s=i?Fs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function U0(t){var i=new t.constructor(t.source,it.exec(t));return i.lastIndex=t.lastIndex,i}function B0(t){return Ni?Ye(Ni.call(t)):{}}function uf(t,i){var s=i?Fs(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function cf(t,i){if(t!==i){var s=t!==n,l=t===null,p=t===t,b=Vt(t),E=i!==n,C=i===null,L=i===i,H=Vt(i);if(!C&&!H&&!b&&t>i||b&&E&&L&&!C&&!H||l&&E&&L||!s&&L||!p)return 1;if(!l&&!b&&!H&&t<i||H&&s&&p&&!l&&!b||C&&s&&p||!E&&p||!L)return-1}return 0}function H0(t,i,s){for(var l=-1,p=t.criteria,b=i.criteria,E=p.length,C=s.length;++l<E;){var L=cf(p[l],b[l]);if(L){if(l>=C)return L;var H=s[l];return L*(H=="desc"?-1:1)}}return t.index-i.index}function lf(t,i,s,l){for(var p=-1,b=t.length,E=s.length,C=-1,L=i.length,H=pt(b-E,0),z=j(L+H),K=!l;++C<L;)z[C]=i[C];for(;++p<E;)(K||p<b)&&(z[s[p]]=t[p]);for(;H--;)z[C++]=t[p++];return z}function ff(t,i,s,l){for(var p=-1,b=t.length,E=-1,C=s.length,L=-1,H=i.length,z=pt(b-C,0),K=j(z+H),J=!l;++p<z;)K[p]=t[p];for(var re=p;++L<H;)K[re+L]=i[L];for(;++E<C;)(J||p<b)&&(K[re+s[E]]=t[p++]);return K}function jt(t,i){var s=-1,l=t.length;for(i||(i=j(l));++s<l;)i[s]=t[s];return i}function In(t,i,s,l){var p=!s;s||(s={});for(var b=-1,E=i.length;++b<E;){var C=i[b],L=l?l(s[C],t[C],C,s,t):n;L===n&&(L=t[C]),p?Bn(s,C,L):ji(s,C,L)}return s}function z0(t,i){return In(t,Ks(t),i)}function q0(t,i){return In(t,xf(t),i)}function Ko(t,i){return function(s,l){var p=xe(s)?Vm:p0,b=i?i():{};return p(s,t,de(l,2),b)}}function ai(t){return Re(function(i,s){var l=-1,p=s.length,b=p>1?s[p-1]:n,E=p>2?s[2]:n;for(b=t.length>3&&typeof b=="function"?(p--,b):n,E&&Mt(s[0],s[1],E)&&(b=p<3?n:b,p=1),i=Ye(i);++l<p;){var C=s[l];C&&t(i,C,l,b)}return i})}function df(t,i){return function(s,l){if(s==null)return s;if(!Ft(s))return t(s,l);for(var p=s.length,b=i?p:-1,E=Ye(s);(i?b--:++b<p)&&l(E[b],b,E)!==!1;);return s}}function pf(t){return function(i,s,l){for(var p=-1,b=Ye(i),E=l(i),C=E.length;C--;){var L=E[t?C:++p];if(s(b[L],L,b)===!1)break}return i}}function K0(t,i,s){var l=i&T,p=Hi(t);function b(){var E=this&&this!==wt&&this instanceof b?p:t;return E.apply(l?s:this,arguments)}return b}function hf(t){return function(i){i=We(i);var s=Qr(i)?bn(i):n,l=s?s[0]:i.charAt(0),p=s?ur(s,1).join(""):i.slice(1);return l[t]()+p}}function si(t){return function(i){return ls(dd(fd(i).replace($m,"")),t,"")}}function Hi(t){return function(){var i=arguments;switch(i.length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3]);case 5:return new t(i[0],i[1],i[2],i[3],i[4]);case 6:return new t(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=oi(t.prototype),l=t.apply(s,i);return tt(l)?l:s}}function G0(t,i,s){var l=Hi(t);function p(){for(var b=arguments.length,E=j(b),C=b,L=ui(p);C--;)E[C]=arguments[C];var H=b<3&&E[0]!==L&&E[b-1]!==L?[]:rr(E,L);if(b-=H.length,b<s)return wf(t,i,Go,p.placeholder,n,E,H,n,n,s-b);var z=this&&this!==wt&&this instanceof p?l:t;return Gt(z,this,E)}return p}function vf(t){return function(i,s,l){var p=Ye(i);if(!Ft(i)){var b=de(s,3);i=mt(i),s=function(C){return b(p[C],C,p)}}var E=t(i,s,l);return E>-1?p[b?i[E]:E]:n}}function mf(t){return zn(function(i){var s=i.length,l=s,p=sn.prototype.thru;for(t&&i.reverse();l--;){var b=i[l];if(typeof b!="function")throw new an(c);if(p&&!E&&Jo(b)=="wrapper")var E=new sn([],!0)}for(l=E?l:s;++l<s;){b=i[l];var C=Jo(b),L=C=="wrapper"?zs(b):n;L&&Ys(L[0])&&L[1]==(F|R|x|N)&&!L[4].length&&L[9]==1?E=E[Jo(L[0])].apply(E,L[3]):E=b.length==1&&Ys(b)?E[C]():E.thru(b)}return function(){var H=arguments,z=H[0];if(E&&H.length==1&&xe(z))return E.plant(z).value();for(var K=0,J=s?i[K].apply(this,H):z;++K<s;)J=i[K].call(this,J);return J}})}function Go(t,i,s,l,p,b,E,C,L,H){var z=i&F,K=i&T,J=i&D,re=i&(R|k),pe=i&Z,Ce=J?n:Hi(t);function he(){for(var Le=arguments.length,$e=j(Le),Jt=Le;Jt--;)$e[Jt]=arguments[Jt];if(re)var Dt=ui(he),Zt=og($e,Dt);if(l&&($e=lf($e,l,p,re)),b&&($e=ff($e,b,E,re)),Le-=Zt,re&&Le<H){var ct=rr($e,Dt);return wf(t,i,Go,he.placeholder,s,$e,ct,C,L,H-Le)}var En=K?s:this,Yn=J?En[t]:t;return Le=$e.length,C?$e=py($e,C):pe&&Le>1&&$e.reverse(),z&&L<Le&&($e.length=L),this&&this!==wt&&this instanceof he&&(Yn=Ce||Hi(Yn)),Yn.apply(En,$e)}return he}function gf(t,i){return function(s,l){return _0(s,t,i(l),{})}}function Yo(t,i){return function(s,l){var p;if(s===n&&l===n)return i;if(s!==n&&(p=s),l!==n){if(p===n)return l;typeof s=="string"||typeof l=="string"?(s=Xt(s),l=Xt(l)):(s=tf(s),l=tf(l)),p=t(s,l)}return p}}function Ws(t){return zn(function(i){return i=et(i,Yt(de())),Re(function(s){var l=this;return t(i,function(p){return Gt(p,l,s)})})})}function Xo(t,i){i=i===n?" ":Xt(i);var s=i.length;if(s<2)return s?Ms(i,t):i;var l=Ms(i,ko(t/ei(i)));return Qr(i)?ur(bn(l),0,t).join(""):l.slice(0,t)}function Y0(t,i,s,l){var p=i&T,b=Hi(t);function E(){for(var C=-1,L=arguments.length,H=-1,z=l.length,K=j(z+L),J=this&&this!==wt&&this instanceof E?b:t;++H<z;)K[H]=l[H];for(;L--;)K[H++]=arguments[++C];return Gt(J,p?s:this,K)}return E}function yf(t){return function(i,s,l){return l&&typeof l!="number"&&Mt(i,s,l)&&(s=l=n),i=Gn(i),s===n?(s=i,i=0):s=Gn(s),l=l===n?i<s?1:-1:Gn(l),M0(i,s,l,t)}}function Vo(t){return function(i,s){return typeof i=="string"&&typeof s=="string"||(i=fn(i),s=fn(s)),t(i,s)}}function wf(t,i,s,l,p,b,E,C,L,H){var z=i&R,K=z?E:n,J=z?n:E,re=z?b:n,pe=z?n:b;i|=z?x:W,i&=~(z?W:x),i&M||(i&=~(T|D));var Ce=[t,i,p,re,K,pe,J,C,L,H],he=s.apply(n,Ce);return Ys(t)&&If(he,Ce),he.placeholder=l,Lf(he,t,i)}function Us(t){var i=dt[t];return function(s,l){if(s=fn(s),l=l==null?0:xt(Te(l),292),l&&Il(s)){var p=(We(s)+"e").split("e"),b=i(p[0]+"e"+(+p[1]+l));return p=(We(b)+"e").split("e"),+(p[0]+"e"+(+p[1]-l))}return i(s)}}var X0=ri&&1/Oo(new ri([,-0]))[1]==Ie?function(t){return new ri(t)}:cu;function bf(t){return function(i){var s=Ot(i);return s==rt?gs(i):s==Qe?dg(i):ig(i,t(i))}}function Hn(t,i,s,l,p,b,E,C){var L=i&D;if(!L&&typeof t!="function")throw new an(c);var H=l?l.length:0;if(H||(i&=~(x|W),l=p=n),E=E===n?E:pt(Te(E),0),C=C===n?C:Te(C),H-=p?p.length:0,i&W){var z=l,K=p;l=p=n}var J=L?n:zs(t),re=[t,i,s,l,p,z,K,b,E,C];if(J&&ly(re,J),t=re[0],i=re[1],s=re[2],l=re[3],p=re[4],C=re[9]=re[9]===n?L?0:t.length:pt(re[9]-H,0),!C&&i&(R|k)&&(i&=~(R|k)),!i||i==T)var pe=K0(t,i,s);else i==R||i==k?pe=G0(t,i,C):(i==x||i==(T|x))&&!p.length?pe=Y0(t,i,s,l):pe=Go.apply(n,re);var Ce=J?Ql:If;return Lf(Ce(pe,re),t,i)}function _f(t,i,s,l){return t===n||Sn(t,ni[s])&&!He.call(l,s)?i:t}function Sf(t,i,s,l,p,b){return tt(t)&&tt(i)&&(b.set(i,t),Ho(t,i,n,Sf,b),b.delete(i)),t}function V0(t){return Ki(t)?n:t}function Ef(t,i,s,l,p,b){var E=s&S,C=t.length,L=i.length;if(C!=L&&!(E&&L>C))return!1;var H=b.get(t),z=b.get(i);if(H&&z)return H==i&&z==t;var K=-1,J=!0,re=s&w?new Ar:n;for(b.set(t,i),b.set(i,t);++K<C;){var pe=t[K],Ce=i[K];if(l)var he=E?l(Ce,pe,K,i,t,b):l(pe,Ce,K,t,i,b);if(he!==n){if(he)continue;J=!1;break}if(re){if(!fs(i,function(Le,$e){if(!Li(re,$e)&&(pe===Le||p(pe,Le,s,l,b)))return re.push($e)})){J=!1;break}}else if(!(pe===Ce||p(pe,Ce,s,l,b))){J=!1;break}}return b.delete(t),b.delete(i),J}function J0(t,i,s,l,p,b,E){switch(s){case Kt:if(t.byteLength!=i.byteLength||t.byteOffset!=i.byteOffset)return!1;t=t.buffer,i=i.buffer;case nn:return!(t.byteLength!=i.byteLength||!b(new Io(t),new Io(i)));case se:case ge:case lt:return Sn(+t,+i);case Ge:return t.name==i.name&&t.message==i.message;case Je:case tn:return t==i+"";case rt:var C=gs;case Qe:var L=l&S;if(C||(C=Oo),t.size!=i.size&&!L)return!1;var H=E.get(t);if(H)return H==i;l|=w,E.set(t,i);var z=Ef(C(t),C(i),l,p,b,E);return E.delete(t),z;case qt:if(Ni)return Ni.call(t)==Ni.call(i)}return!1}function Z0(t,i,s,l,p,b){var E=s&S,C=Bs(t),L=C.length,H=Bs(i),z=H.length;if(L!=z&&!E)return!1;for(var K=L;K--;){var J=C[K];if(!(E?J in i:He.call(i,J)))return!1}var re=b.get(t),pe=b.get(i);if(re&&pe)return re==i&&pe==t;var Ce=!0;b.set(t,i),b.set(i,t);for(var he=E;++K<L;){J=C[K];var Le=t[J],$e=i[J];if(l)var Jt=E?l($e,Le,J,i,t,b):l(Le,$e,J,t,i,b);if(!(Jt===n?Le===$e||p(Le,$e,s,l,b):Jt)){Ce=!1;break}he||(he=J=="constructor")}if(Ce&&!he){var Dt=t.constructor,Zt=i.constructor;Dt!=Zt&&"constructor"in t&&"constructor"in i&&!(typeof Dt=="function"&&Dt instanceof Dt&&typeof Zt=="function"&&Zt instanceof Zt)&&(Ce=!1)}return b.delete(t),b.delete(i),Ce}function zn(t){return Vs(Pf(t,n,jf),t+"")}function Bs(t){return Bl(t,mt,Ks)}function Hs(t){return Bl(t,Wt,xf)}var zs=No?function(t){return No.get(t)}:cu;function Jo(t){for(var i=t.name+"",s=ii[i],l=He.call(ii,i)?s.length:0;l--;){var p=s[l],b=p.func;if(b==null||b==t)return p.name}return i}function ui(t){var i=He.call(g,"placeholder")?g:t;return i.placeholder}function de(){var t=g.iteratee||su;return t=t===su?ql:t,arguments.length?t(arguments[0],arguments[1]):t}function Zo(t,i){var s=t.__data__;return ay(i)?s[typeof i=="string"?"string":"hash"]:s.map}function qs(t){for(var i=mt(t),s=i.length;s--;){var l=i[s],p=t[l];i[s]=[l,p,Cf(p)]}return i}function Mr(t,i){var s=cg(t,i);return zl(s)?s:n}function Q0(t){var i=He.call(t,Rr),s=t[Rr];try{t[Rr]=n;var l=!0}catch{}var p=Po.call(t);return l&&(i?t[Rr]=s:delete t[Rr]),p}var Ks=ws?function(t){return t==null?[]:(t=Ye(t),tr(ws(t),function(i){return Pl.call(t,i)}))}:lu,xf=ws?function(t){for(var i=[];t;)nr(i,Ks(t)),t=Lo(t);return i}:lu,Ot=Lt;(bs&&Ot(new bs(new ArrayBuffer(1)))!=Kt||Di&&Ot(new Di)!=rt||_s&&Ot(_s.resolve())!=Nt||ri&&Ot(new ri)!=Qe||ki&&Ot(new ki)!=Et)&&(Ot=function(t){var i=Lt(t),s=i==vt?t.constructor:n,l=s?Dr(s):"";if(l)switch(l){case kg:return Kt;case $g:return rt;case Ng:return Nt;case jg:return Qe;case Fg:return Et}return i});function ey(t,i,s){for(var l=-1,p=s.length;++l<p;){var b=s[l],E=b.size;switch(b.type){case"drop":t+=E;break;case"dropRight":i-=E;break;case"take":i=xt(i,t+E);break;case"takeRight":t=pt(t,i-E);break}}return{start:t,end:i}}function ty(t){var i=t.match(oe);return i?i[1].split(ee):[]}function Of(t,i,s){i=sr(i,t);for(var l=-1,p=i.length,b=!1;++l<p;){var E=Ln(i[l]);if(!(b=t!=null&&s(t,E)))break;t=t[E]}return b||++l!=p?b:(p=t==null?0:t.length,!!p&&oa(p)&&qn(E,p)&&(xe(t)||kr(t)))}function ny(t){var i=t.length,s=new t.constructor(i);return i&&typeof t[0]=="string"&&He.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function Tf(t){return typeof t.constructor=="function"&&!zi(t)?oi(Lo(t)):{}}function ry(t,i,s){var l=t.constructor;switch(i){case nn:return Fs(t);case se:case ge:return new l(+t);case Kt:return W0(t,s);case yr:case wr:case br:case _r:case gn:case Fn:case yt:case yn:case wn:return uf(t,s);case rt:return new l;case lt:case tn:return new l(t);case Je:return U0(t);case Qe:return new l;case qt:return B0(t)}}function iy(t,i){var s=i.length;if(!s)return t;var l=s-1;return i[l]=(s>1?"& ":"")+i[l],i=i.join(s>2?", ":" "),t.replace(ie,`{
|
|
156
184
|
/* [wrapped with `+i+`] */
|
|
157
|
-
`)}function J0(t){return me(t)||Sr(t)||!!(Tc&&t&&t[Tc])}function Fn(t,i){var s=typeof t;return i=i??Ke,!!i&&(s=="number"||s!="symbol"&&lm.test(t))&&t>-1&&t%1==0&&t<i}function Pt(t,i,s){if(!Je(s))return!1;var c=typeof i;return(c=="number"?Lt(s)&&Fn(i,s.length):c=="string"&&i in s)?fn(s[i],t):!1}function Ks(t,i){if(me(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||Bt(t)?!0:Qa.test(t)||!Za.test(t)||i!=null&&t in Ue(i)}function Z0(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function Gs(t){var i=zo(t),s=v[i];if(typeof s!="function"||!(i in Ce.prototype))return!1;if(t===s)return!0;var c=Us(s);return!!c&&t===c[0]}function Q0(t){return!!Sc&&Sc in t}var ey=bo?Wn:cu;function Ai(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||Ur;return t===s}function Ef(t){return t===t&&!Je(t)}function xf(t,i){return function(s){return s==null?!1:s[t]===i&&(i!==n||t in Ue(s))}}function ty(t){var i=Vo(t,function(c){return s.size===m&&s.clear(),c}),s=i.cache;return i}function ny(t,i){var s=t[1],c=i[1],d=s|c,g=d<(O|M|F),_=c==F&&s==P||c==F&&s==$&&t[7].length<=i[8]||c==(F|$)&&i[7].length<=i[8]&&s==P;if(!(g||_))return t;c&O&&(t[2]=i[2],d|=s&O?0:L);var T=i[3];if(T){var I=t[3];t[3]=I?af(I,T,i[4]):T,t[4]=I?Vn(t[3],w):i[4]}return T=i[5],T&&(I=t[5],t[5]=I?sf(I,T,i[6]):T,t[6]=I?Vn(t[5],w):i[6]),T=i[7],T&&(t[7]=T),c&F&&(t[8]=t[8]==null?i[8]:yt(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=d,t}function ry(t){var i=[];if(t!=null)for(var s in Ue(t))i.push(s);return i}function iy(t){return So.call(t)}function Of(t,i,s){return i=ut(i===n?t.length-1:i,0),function(){for(var c=arguments,d=-1,g=ut(c.length-i,0),_=k(g);++d<g;)_[d]=c[i+d];d=-1;for(var T=k(i+1);++d<i;)T[d]=c[d];return T[i]=s(_),Ft(t,this,T)}}function Tf(t,i){return i.length<2?t:wr(t,Qt(i,0,-1))}function oy(t,i){for(var s=t.length,c=yt(i.length,s),d=It(t);c--;){var g=i[c];t[c]=Fn(g,s)?d[g]:n}return t}function Ys(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var Cf=Rf(Xc),Ii=bg||function(t,i){return pt.setTimeout(t,i)},Xs=Rf(P0);function Pf(t,i,s){var c=i+"";return Xs(t,V0(c,ay(G0(c),s)))}function Rf(t){var i=0,s=0;return function(){var c=xg(),d=Ee-(c-s);if(s=c,d>0){if(++i>=Ie)return arguments[0]}else i=0;return t.apply(n,arguments)}}function Ko(t,i){var s=-1,c=t.length,d=c-1;for(i=i===n?c:i;++s<i;){var g=Is(s,d),_=t[g];t[g]=t[s],t[s]=_}return t.length=i,t}var Af=ty(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(es,function(s,c,d,g){i.push(d?g.replace(Ve,"$1"):c||s)}),i});function xn(t){if(typeof t=="string"||Bt(t))return t;var i=t+"";return i=="0"&&1/t==-Le?"-0":i}function _r(t){if(t!=null){try{return _o.call(t)}catch{}try{return t+""}catch{}}return""}function ay(t,i){return Xt(ne,function(s){var c="_."+s[0];i&s[1]&&!mo(t,c)&&t.push(c)}),t.sort()}function If(t){if(t instanceof Ce)return t.clone();var i=new Jt(t.__wrapped__,t.__chain__);return i.__actions__=It(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function sy(t,i,s){(s?Pt(t,i,s):i===n)?i=1:i=ut(we(i),0);var c=t==null?0:t.length;if(!c||i<1)return[];for(var d=0,g=0,_=k(Po(c/i));d<c;)_[g++]=Qt(t,d,d+=i);return _}function uy(t){for(var i=-1,s=t==null?0:t.length,c=0,d=[];++i<s;){var g=t[i];g&&(d[c++]=g)}return d}function ly(){var t=arguments.length;if(!t)return[];for(var i=k(t-1),s=arguments[0],c=t;c--;)i[c-1]=arguments[c];return Xn(me(s)?It(s):[s],ht(i,1))}var cy=_e(function(t,i){return tt(t)?Oi(t,ht(i,1,tt,!0)):[]}),fy=_e(function(t,i){var s=en(i);return tt(s)&&(s=n),tt(t)?Oi(t,ht(i,1,tt,!0),ie(s,2)):[]}),dy=_e(function(t,i){var s=en(i);return tt(s)&&(s=n),tt(t)?Oi(t,ht(i,1,tt,!0),n,s):[]});function py(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:we(i),Qt(t,i<0?0:i,c)):[]}function hy(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:we(i),i=c-i,Qt(t,0,i<0?0:i)):[]}function vy(t,i){return t&&t.length?Fo(t,ie(i,3),!0,!0):[]}function my(t,i){return t&&t.length?Fo(t,ie(i,3),!0):[]}function gy(t,i,s,c){var d=t==null?0:t.length;return d?(s&&typeof s!="number"&&Pt(t,i,s)&&(s=0,c=d),l0(t,i,s,c)):[]}function Lf(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var d=s==null?0:we(s);return d<0&&(d=ut(c+d,0)),go(t,ie(i,3),d)}function Mf(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var d=c-1;return s!==n&&(d=we(s),d=s<0?ut(c+d,0):yt(d,c-1)),go(t,ie(i,3),d,!0)}function Df(t){var i=t==null?0:t.length;return i?ht(t,1):[]}function yy(t){var i=t==null?0:t.length;return i?ht(t,Le):[]}function wy(t,i){var s=t==null?0:t.length;return s?(i=i===n?1:we(i),ht(t,i)):[]}function by(t){for(var i=-1,s=t==null?0:t.length,c={};++i<s;){var d=t[i];c[d[0]]=d[1]}return c}function kf(t){return t&&t.length?t[0]:n}function _y(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var d=s==null?0:we(s);return d<0&&(d=ut(c+d,0)),Wr(t,i,d)}function Sy(t){var i=t==null?0:t.length;return i?Qt(t,0,-1):[]}var Ey=_e(function(t){var i=Xe(t,Ns);return i.length&&i[0]===t[0]?Ts(i):[]}),xy=_e(function(t){var i=en(t),s=Xe(t,Ns);return i===en(s)?i=n:s.pop(),s.length&&s[0]===t[0]?Ts(s,ie(i,2)):[]}),Oy=_e(function(t){var i=en(t),s=Xe(t,Ns);return i=typeof i=="function"?i:n,i&&s.pop(),s.length&&s[0]===t[0]?Ts(s,n,i):[]});function Ty(t,i){return t==null?"":Sg.call(t,i)}function en(t){var i=t==null?0:t.length;return i?t[i-1]:n}function Cy(t,i,s){var c=t==null?0:t.length;if(!c)return-1;var d=c;return s!==n&&(d=we(s),d=d<0?ut(c+d,0):yt(d,c-1)),i===i?ag(t,i,d):go(t,hc,d,!0)}function Py(t,i){return t&&t.length?qc(t,we(i)):n}var Ry=_e(Nf);function Nf(t,i){return t&&t.length&&i&&i.length?As(t,i):t}function Ay(t,i,s){return t&&t.length&&i&&i.length?As(t,i,ie(s,2)):t}function Iy(t,i,s){return t&&t.length&&i&&i.length?As(t,i,n,s):t}var Ly=$n(function(t,i){var s=t==null?0:t.length,c=Ss(t,i);return Yc(t,Xe(i,function(d){return Fn(d,s)?+d:d}).sort(of)),c});function My(t,i){var s=[];if(!(t&&t.length))return s;var c=-1,d=[],g=t.length;for(i=ie(i,3);++c<g;){var _=t[c];i(_,c,t)&&(s.push(_),d.push(c))}return Yc(t,d),s}function Vs(t){return t==null?t:Tg.call(t)}function Dy(t,i,s){var c=t==null?0:t.length;return c?(s&&typeof s!="number"&&Pt(t,i,s)?(i=0,s=c):(i=i==null?0:we(i),s=s===n?c:we(s)),Qt(t,i,s)):[]}function ky(t,i){return $o(t,i)}function Ny(t,i,s){return Ms(t,i,ie(s,2))}function $y(t,i){var s=t==null?0:t.length;if(s){var c=$o(t,i);if(c<s&&fn(t[c],i))return c}return-1}function Fy(t,i){return $o(t,i,!0)}function Wy(t,i,s){return Ms(t,i,ie(s,2),!0)}function jy(t,i){var s=t==null?0:t.length;if(s){var c=$o(t,i,!0)-1;if(fn(t[c],i))return c}return-1}function By(t){return t&&t.length?Vc(t):[]}function Hy(t,i){return t&&t.length?Vc(t,ie(i,2)):[]}function Uy(t){var i=t==null?0:t.length;return i?Qt(t,1,i):[]}function zy(t,i,s){return t&&t.length?(i=s||i===n?1:we(i),Qt(t,0,i<0?0:i)):[]}function qy(t,i,s){var c=t==null?0:t.length;return c?(i=s||i===n?1:we(i),i=c-i,Qt(t,i<0?0:i,c)):[]}function Ky(t,i){return t&&t.length?Fo(t,ie(i,3),!1,!0):[]}function Gy(t,i){return t&&t.length?Fo(t,ie(i,3)):[]}var Yy=_e(function(t){return Qn(ht(t,1,tt,!0))}),Xy=_e(function(t){var i=en(t);return tt(i)&&(i=n),Qn(ht(t,1,tt,!0),ie(i,2))}),Vy=_e(function(t){var i=en(t);return i=typeof i=="function"?i:n,Qn(ht(t,1,tt,!0),n,i)});function Jy(t){return t&&t.length?Qn(t):[]}function Zy(t,i){return t&&t.length?Qn(t,ie(i,2)):[]}function Qy(t,i){return i=typeof i=="function"?i:n,t&&t.length?Qn(t,n,i):[]}function Js(t){if(!(t&&t.length))return[];var i=0;return t=Yn(t,function(s){if(tt(s))return i=ut(s.length,i),!0}),hs(i,function(s){return Xe(t,fs(s))})}function $f(t,i){if(!(t&&t.length))return[];var s=Js(t);return i==null?s:Xe(s,function(c){return Ft(i,n,c)})}var e1=_e(function(t,i){return tt(t)?Oi(t,i):[]}),t1=_e(function(t){return ks(Yn(t,tt))}),n1=_e(function(t){var i=en(t);return tt(i)&&(i=n),ks(Yn(t,tt),ie(i,2))}),r1=_e(function(t){var i=en(t);return i=typeof i=="function"?i:n,ks(Yn(t,tt),n,i)}),i1=_e(Js);function o1(t,i){return ef(t||[],i||[],xi)}function a1(t,i){return ef(t||[],i||[],Pi)}var s1=_e(function(t){var i=t.length,s=i>1?t[i-1]:n;return s=typeof s=="function"?(t.pop(),s):n,$f(t,s)});function Ff(t){var i=v(t);return i.__chain__=!0,i}function u1(t,i){return i(t),t}function Go(t,i){return i(t)}var l1=$n(function(t){var i=t.length,s=i?t[0]:0,c=this.__wrapped__,d=function(g){return Ss(g,t)};return i>1||this.__actions__.length||!(c instanceof Ce)||!Fn(s)?this.thru(d):(c=c.slice(s,+s+(i?1:0)),c.__actions__.push({func:Go,args:[d],thisArg:n}),new Jt(c,this.__chain__).thru(function(g){return i&&!g.length&&g.push(n),g}))});function c1(){return Ff(this)}function f1(){return new Jt(this.value(),this.__chain__)}function d1(){this.__values__===n&&(this.__values__=Zf(this.value()));var t=this.__index__>=this.__values__.length,i=t?n:this.__values__[this.__index__++];return{done:t,value:i}}function p1(){return this}function h1(t){for(var i,s=this;s instanceof Lo;){var c=If(s);c.__index__=0,c.__values__=n,i?d.__wrapped__=c:i=c;var d=c;s=s.__wrapped__}return d.__wrapped__=t,i}function v1(){var t=this.__wrapped__;if(t instanceof Ce){var i=t;return this.__actions__.length&&(i=new Ce(this)),i=i.reverse(),i.__actions__.push({func:Go,args:[Vs],thisArg:n}),new Jt(i,this.__chain__)}return this.thru(Vs)}function m1(){return Qc(this.__wrapped__,this.__actions__)}var g1=Wo(function(t,i,s){je.call(t,s)?++t[s]:kn(t,s,1)});function y1(t,i,s){var c=me(t)?dc:u0;return s&&Pt(t,i,s)&&(i=n),c(t,ie(i,3))}function w1(t,i){var s=me(t)?Yn:Nc;return s(t,ie(i,3))}var b1=ff(Lf),_1=ff(Mf);function S1(t,i){return ht(Yo(t,i),1)}function E1(t,i){return ht(Yo(t,i),Le)}function x1(t,i,s){return s=s===n?1:we(s),ht(Yo(t,i),s)}function Wf(t,i){var s=me(t)?Xt:Zn;return s(t,ie(i,3))}function jf(t,i){var s=me(t)?Um:kc;return s(t,ie(i,3))}var O1=Wo(function(t,i,s){je.call(t,s)?t[s].push(i):kn(t,s,[i])});function T1(t,i,s,c){t=Lt(t)?t:Jr(t),s=s&&!c?we(s):0;var d=t.length;return s<0&&(s=ut(d+s,0)),Qo(t)?s<=d&&t.indexOf(i,s)>-1:!!d&&Wr(t,i,s)>-1}var C1=_e(function(t,i,s){var c=-1,d=typeof i=="function",g=Lt(t)?k(t.length):[];return Zn(t,function(_){g[++c]=d?Ft(i,_,s):Ti(_,i,s)}),g}),P1=Wo(function(t,i,s){kn(t,s,i)});function Yo(t,i){var s=me(t)?Xe:Hc;return s(t,ie(i,3))}function R1(t,i,s,c){return t==null?[]:(me(i)||(i=i==null?[]:[i]),s=c?n:s,me(s)||(s=s==null?[]:[s]),Kc(t,i,s))}var A1=Wo(function(t,i,s){t[s?0:1].push(i)},function(){return[[],[]]});function I1(t,i,s){var c=me(t)?ls:mc,d=arguments.length<3;return c(t,ie(i,4),s,d,Zn)}function L1(t,i,s){var c=me(t)?zm:mc,d=arguments.length<3;return c(t,ie(i,4),s,d,kc)}function M1(t,i){var s=me(t)?Yn:Nc;return s(t,Jo(ie(i,3)))}function D1(t){var i=me(t)?Ic:T0;return i(t)}function k1(t,i,s){(s?Pt(t,i,s):i===n)?i=1:i=we(i);var c=me(t)?r0:C0;return c(t,i)}function N1(t){var i=me(t)?i0:R0;return i(t)}function $1(t){if(t==null)return 0;if(Lt(t))return Qo(t)?Br(t):t.length;var i=wt(t);return i==rt||i==it?t.size:Ps(t).length}function F1(t,i,s){var c=me(t)?cs:A0;return s&&Pt(t,i,s)&&(i=n),c(t,ie(i,3))}var W1=_e(function(t,i){if(t==null)return[];var s=i.length;return s>1&&Pt(t,i[0],i[1])?i=[]:s>2&&Pt(i[0],i[1],i[2])&&(i=[i[0]]),Kc(t,ht(i,1),[])}),Xo=wg||function(){return pt.Date.now()};function j1(t,i){if(typeof i!="function")throw new Vt(l);return t=we(t),function(){if(--t<1)return i.apply(this,arguments)}}function Bf(t,i,s){return i=s?n:i,i=t&&i==null?t.length:i,Nn(t,F,n,n,n,n,i)}function Hf(t,i){var s;if(typeof i!="function")throw new Vt(l);return t=we(t),function(){return--t>0&&(s=i.apply(this,arguments)),t<=1&&(i=n),s}}var Zs=_e(function(t,i,s){var c=O;if(s.length){var d=Vn(s,Xr(Zs));c|=E}return Nn(t,c,i,s,d)}),Uf=_e(function(t,i,s){var c=O|M;if(s.length){var d=Vn(s,Xr(Uf));c|=E}return Nn(i,c,t,s,d)});function zf(t,i,s){i=s?n:i;var c=Nn(t,P,n,n,n,n,n,i);return c.placeholder=zf.placeholder,c}function qf(t,i,s){i=s?n:i;var c=Nn(t,D,n,n,n,n,n,i);return c.placeholder=qf.placeholder,c}function Kf(t,i,s){var c,d,g,_,T,I,B=0,H=!1,z=!1,X=!0;if(typeof t!="function")throw new Vt(l);i=tn(i)||0,Je(s)&&(H=!!s.leading,z="maxWait"in s,g=z?ut(tn(s.maxWait)||0,i):g,X="trailing"in s?!!s.trailing:X);function ee(nt){var dn=c,Bn=d;return c=d=n,B=nt,_=t.apply(Bn,dn),_}function ae(nt){return B=nt,T=Ii(Te,i),H?ee(nt):_}function be(nt){var dn=nt-I,Bn=nt-B,fd=i-dn;return z?yt(fd,g-Bn):fd}function se(nt){var dn=nt-I,Bn=nt-B;return I===n||dn>=i||dn<0||z&&Bn>=g}function Te(){var nt=Xo();if(se(nt))return Re(nt);T=Ii(Te,be(nt))}function Re(nt){return T=n,X&&c?ee(nt):(c=d=n,_)}function Ht(){T!==n&&tf(T),B=0,c=I=d=T=n}function Rt(){return T===n?_:Re(Xo())}function Ut(){var nt=Xo(),dn=se(nt);if(c=arguments,d=this,I=nt,dn){if(T===n)return ae(I);if(z)return tf(T),T=Ii(Te,i),ee(I)}return T===n&&(T=Ii(Te,i)),_}return Ut.cancel=Ht,Ut.flush=Rt,Ut}var B1=_e(function(t,i){return Dc(t,1,i)}),H1=_e(function(t,i,s){return Dc(t,tn(i)||0,s)});function U1(t){return Nn(t,J)}function Vo(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new Vt(l);var s=function(){var c=arguments,d=i?i.apply(this,c):c[0],g=s.cache;if(g.has(d))return g.get(d);var _=t.apply(this,c);return s.cache=g.set(d,_)||g,_};return s.cache=new(Vo.Cache||Dn),s}Vo.Cache=Dn;function Jo(t){if(typeof t!="function")throw new Vt(l);return function(){var i=arguments;switch(i.length){case 0:return!t.call(this);case 1:return!t.call(this,i[0]);case 2:return!t.call(this,i[0],i[1]);case 3:return!t.call(this,i[0],i[1],i[2])}return!t.apply(this,i)}}function z1(t){return Hf(2,t)}var q1=I0(function(t,i){i=i.length==1&&me(i[0])?Xe(i[0],Wt(ie())):Xe(ht(i,1),Wt(ie()));var s=i.length;return _e(function(c){for(var d=-1,g=yt(c.length,s);++d<g;)c[d]=i[d].call(this,c[d]);return Ft(t,this,c)})}),Qs=_e(function(t,i){var s=Vn(i,Xr(Qs));return Nn(t,E,n,i,s)}),Gf=_e(function(t,i){var s=Vn(i,Xr(Gf));return Nn(t,N,n,i,s)}),K1=$n(function(t,i){return Nn(t,$,n,n,n,i)});function G1(t,i){if(typeof t!="function")throw new Vt(l);return i=i===n?i:we(i),_e(t,i)}function Y1(t,i){if(typeof t!="function")throw new Vt(l);return i=i==null?0:ut(we(i),0),_e(function(s){var c=s[i],d=tr(s,0,i);return c&&Xn(d,c),Ft(t,this,d)})}function X1(t,i,s){var c=!0,d=!0;if(typeof t!="function")throw new Vt(l);return Je(s)&&(c="leading"in s?!!s.leading:c,d="trailing"in s?!!s.trailing:d),Kf(t,i,{leading:c,maxWait:i,trailing:d})}function V1(t){return Bf(t,1)}function J1(t,i){return Qs($s(i),t)}function Z1(){if(!arguments.length)return[];var t=arguments[0];return me(t)?t:[t]}function Q1(t){return Zt(t,h)}function ew(t,i){return i=typeof i=="function"?i:n,Zt(t,h,i)}function tw(t){return Zt(t,b|h)}function nw(t,i){return i=typeof i=="function"?i:n,Zt(t,b|h,i)}function rw(t,i){return i==null||Mc(t,i,ct(i))}function fn(t,i){return t===i||t!==t&&i!==i}var iw=Uo(Os),ow=Uo(function(t,i){return t>=i}),Sr=Wc(function(){return arguments}())?Wc:function(t){return Qe(t)&&je.call(t,"callee")&&!Oc.call(t,"callee")},me=k.isArray,aw=ac?Wt(ac):h0;function Lt(t){return t!=null&&Zo(t.length)&&!Wn(t)}function tt(t){return Qe(t)&&Lt(t)}function sw(t){return t===!0||t===!1||Qe(t)&&Ct(t)==re}var nr=_g||cu,uw=sc?Wt(sc):v0;function lw(t){return Qe(t)&&t.nodeType===1&&!Li(t)}function cw(t){if(t==null)return!0;if(Lt(t)&&(me(t)||typeof t=="string"||typeof t.splice=="function"||nr(t)||Vr(t)||Sr(t)))return!t.length;var i=wt(t);if(i==rt||i==it)return!t.size;if(Ai(t))return!Ps(t).length;for(var s in t)if(je.call(t,s))return!1;return!0}function fw(t,i){return Ci(t,i)}function dw(t,i,s){s=typeof s=="function"?s:n;var c=s?s(t,i):n;return c===n?Ci(t,i,n,s):!!c}function eu(t){if(!Qe(t))return!1;var i=Ct(t);return i==Ge||i==ye||typeof t.message=="string"&&typeof t.name=="string"&&!Li(t)}function pw(t){return typeof t=="number"&&Cc(t)}function Wn(t){if(!Je(t))return!1;var i=Ct(t);return i==Y||i==ot||i==le||i==di}function Yf(t){return typeof t=="number"&&t==we(t)}function Zo(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Ke}function Je(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function Qe(t){return t!=null&&typeof t=="object"}var Xf=uc?Wt(uc):g0;function hw(t,i){return t===i||Cs(t,i,zs(i))}function vw(t,i,s){return s=typeof s=="function"?s:n,Cs(t,i,zs(i),s)}function mw(t){return Vf(t)&&t!=+t}function gw(t){if(ey(t))throw new de(u);return jc(t)}function yw(t){return t===null}function ww(t){return t==null}function Vf(t){return typeof t=="number"||Qe(t)&&Ct(t)==Ot}function Li(t){if(!Qe(t)||Ct(t)!=Tt)return!1;var i=Oo(t);if(i===null)return!0;var s=je.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&_o.call(s)==vg}var tu=lc?Wt(lc):y0;function bw(t){return Yf(t)&&t>=-Ke&&t<=Ke}var Jf=cc?Wt(cc):w0;function Qo(t){return typeof t=="string"||!me(t)&&Qe(t)&&Ct(t)==yn}function Bt(t){return typeof t=="symbol"||Qe(t)&&Ct(t)==wn}var Vr=fc?Wt(fc):b0;function _w(t){return t===n}function Sw(t){return Qe(t)&&wt(t)==Kt}function Ew(t){return Qe(t)&&Ct(t)==Nr}var xw=Uo(Rs),Ow=Uo(function(t,i){return t<=i});function Zf(t){if(!t)return[];if(Lt(t))return Qo(t)?ln(t):It(t);if(wi&&t[wi])return rg(t[wi]());var i=wt(t),s=i==rt?ms:i==it?yo:Jr;return s(t)}function jn(t){if(!t)return t===0?t:0;if(t=tn(t),t===Le||t===-Le){var i=t<0?-1:1;return i*gt}return t===t?t:0}function we(t){var i=jn(t),s=i%1;return i===i?s?i-s:i:0}function Qf(t){return t?yr(we(t),0,G):0}function tn(t){if(typeof t=="number")return t;if(Bt(t))return q;if(Je(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=Je(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=gc(t);var s=fo.test(t);return s||um.test(t)?jm(t.slice(2),s?2:8):Gn.test(t)?q:+t}function ed(t){return En(t,Mt(t))}function Tw(t){return t?yr(we(t),-Ke,Ke):t===0?t:0}function De(t){return t==null?"":jt(t)}var Cw=Gr(function(t,i){if(Ai(i)||Lt(i)){En(i,ct(i),t);return}for(var s in i)je.call(i,s)&&xi(t,s,i[s])}),td=Gr(function(t,i){En(i,Mt(i),t)}),ea=Gr(function(t,i,s,c){En(i,Mt(i),t,c)}),Pw=Gr(function(t,i,s,c){En(i,ct(i),t,c)}),Rw=$n(Ss);function Aw(t,i){var s=Kr(t);return i==null?s:Lc(s,i)}var Iw=_e(function(t,i){t=Ue(t);var s=-1,c=i.length,d=c>2?i[2]:n;for(d&&Pt(i[0],i[1],d)&&(c=1);++s<c;)for(var g=i[s],_=Mt(g),T=-1,I=_.length;++T<I;){var B=_[T],H=t[B];(H===n||fn(H,Ur[B])&&!je.call(t,B))&&(t[B]=g[B])}return t}),Lw=_e(function(t){return t.push(n,yf),Ft(nd,n,t)});function Mw(t,i){return pc(t,ie(i,3),Sn)}function Dw(t,i){return pc(t,ie(i,3),xs)}function kw(t,i){return t==null?t:Es(t,ie(i,3),Mt)}function Nw(t,i){return t==null?t:$c(t,ie(i,3),Mt)}function $w(t,i){return t&&Sn(t,ie(i,3))}function Fw(t,i){return t&&xs(t,ie(i,3))}function Ww(t){return t==null?[]:ko(t,ct(t))}function jw(t){return t==null?[]:ko(t,Mt(t))}function nu(t,i,s){var c=t==null?n:wr(t,i);return c===n?s:c}function Bw(t,i){return t!=null&&_f(t,i,c0)}function ru(t,i){return t!=null&&_f(t,i,f0)}var Hw=pf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=So.call(i)),t[i]=s},ou(Dt)),Uw=pf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=So.call(i)),je.call(t,i)?t[i].push(s):t[i]=[s]},ie),zw=_e(Ti);function ct(t){return Lt(t)?Ac(t):Ps(t)}function Mt(t){return Lt(t)?Ac(t,!0):_0(t)}function qw(t,i){var s={};return i=ie(i,3),Sn(t,function(c,d,g){kn(s,i(c,d,g),c)}),s}function Kw(t,i){var s={};return i=ie(i,3),Sn(t,function(c,d,g){kn(s,d,i(c,d,g))}),s}var Gw=Gr(function(t,i,s){No(t,i,s)}),nd=Gr(function(t,i,s,c){No(t,i,s,c)}),Yw=$n(function(t,i){var s={};if(t==null)return s;var c=!1;i=Xe(i,function(g){return g=er(g,t),c||(c=g.length>1),g}),En(t,Hs(t),s),c&&(s=Zt(s,b|C|h,H0));for(var d=i.length;d--;)Ds(s,i[d]);return s});function Xw(t,i){return rd(t,Jo(ie(i)))}var Vw=$n(function(t,i){return t==null?{}:E0(t,i)});function rd(t,i){if(t==null)return{};var s=Xe(Hs(t),function(c){return[c]});return i=ie(i),Gc(t,s,function(c,d){return i(c,d[0])})}function Jw(t,i,s){i=er(i,t);var c=-1,d=i.length;for(d||(d=1,t=n);++c<d;){var g=t==null?n:t[xn(i[c])];g===n&&(c=d,g=s),t=Wn(g)?g.call(t):g}return t}function Zw(t,i,s){return t==null?t:Pi(t,i,s)}function Qw(t,i,s,c){return c=typeof c=="function"?c:n,t==null?t:Pi(t,i,s,c)}var id=mf(ct),od=mf(Mt);function eb(t,i,s){var c=me(t),d=c||nr(t)||Vr(t);if(i=ie(i,4),s==null){var g=t&&t.constructor;d?s=c?new g:[]:Je(t)?s=Wn(g)?Kr(Oo(t)):{}:s={}}return(d?Xt:Sn)(t,function(_,T,I){return i(s,_,T,I)}),s}function tb(t,i){return t==null?!0:Ds(t,i)}function nb(t,i,s){return t==null?t:Zc(t,i,$s(s))}function rb(t,i,s,c){return c=typeof c=="function"?c:n,t==null?t:Zc(t,i,$s(s),c)}function Jr(t){return t==null?[]:vs(t,ct(t))}function ib(t){return t==null?[]:vs(t,Mt(t))}function ob(t,i,s){return s===n&&(s=i,i=n),s!==n&&(s=tn(s),s=s===s?s:0),i!==n&&(i=tn(i),i=i===i?i:0),yr(tn(t),i,s)}function ab(t,i,s){return i=jn(i),s===n?(s=i,i=0):s=jn(s),t=tn(t),d0(t,i,s)}function sb(t,i,s){if(s&&typeof s!="boolean"&&Pt(t,i,s)&&(i=s=n),s===n&&(typeof i=="boolean"?(s=i,i=n):typeof t=="boolean"&&(s=t,t=n)),t===n&&i===n?(t=0,i=1):(t=jn(t),i===n?(i=t,t=0):i=jn(i)),t>i){var c=t;t=i,i=c}if(s||t%1||i%1){var d=Pc();return yt(t+d*(i-t+Wm("1e-"+((d+"").length-1))),i)}return Is(t,i)}var ub=Yr(function(t,i,s){return i=i.toLowerCase(),t+(s?ad(i):i)});function ad(t){return iu(De(t).toLowerCase())}function sd(t){return t=De(t),t&&t.replace(cm,Zm).replace(Rm,"")}function lb(t,i,s){t=De(t),i=jt(i);var c=t.length;s=s===n?c:yr(we(s),0,c);var d=s;return s-=i.length,s>=0&&t.slice(s,d)==i}function cb(t){return t=De(t),t&&Va.test(t)?t.replace(gi,Qm):t}function fb(t){return t=De(t),t&&K.test(t)?t.replace(x,"\\$&"):t}var db=Yr(function(t,i,s){return t+(s?"-":"")+i.toLowerCase()}),pb=Yr(function(t,i,s){return t+(s?" ":"")+i.toLowerCase()}),hb=cf("toLowerCase");function vb(t,i,s){t=De(t),i=we(i);var c=i?Br(t):0;if(!i||c>=i)return t;var d=(i-c)/2;return Ho(Ro(d),s)+t+Ho(Po(d),s)}function mb(t,i,s){t=De(t),i=we(i);var c=i?Br(t):0;return i&&c<i?t+Ho(i-c,s):t}function gb(t,i,s){t=De(t),i=we(i);var c=i?Br(t):0;return i&&c<i?Ho(i-c,s)+t:t}function yb(t,i,s){return s||i==null?i=0:i&&(i=+i),Og(De(t).replace(V,""),i||0)}function wb(t,i,s){return(s?Pt(t,i,s):i===n)?i=1:i=we(i),Ls(De(t),i)}function bb(){var t=arguments,i=De(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var _b=Yr(function(t,i,s){return t+(s?"_":"")+i.toLowerCase()});function Sb(t,i,s){return s&&typeof s!="number"&&Pt(t,i,s)&&(i=s=n),s=s===n?G:s>>>0,s?(t=De(t),t&&(typeof i=="string"||i!=null&&!tu(i))&&(i=jt(i),!i&&jr(t))?tr(ln(t),0,s):t.split(i,s)):[]}var Eb=Yr(function(t,i,s){return t+(s?" ":"")+iu(i)});function xb(t,i,s){return t=De(t),s=s==null?0:yr(we(s),0,t.length),i=jt(i),t.slice(s,s+i.length)==i}function Ob(t,i,s){var c=v.templateSettings;s&&Pt(t,i,s)&&(i=n),t=De(t),i=ea({},i,c,gf);var d=ea({},i.imports,c.imports,gf),g=ct(d),_=vs(d,g),T,I,B=0,H=i.interpolate||po,z="__p += '",X=gs((i.escape||po).source+"|"+H.source+"|"+(H===co?Ze:po).source+"|"+(i.evaluate||po).source+"|$","g"),ee="//# sourceURL="+(je.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Dm+"]")+`
|
|
158
|
-
`;t.replace(
|
|
159
|
-
__e(`+
|
|
160
|
-
'`),
|
|
161
|
-
`+
|
|
162
|
-
__p += '`)
|
|
163
|
-
((__t = (
|
|
164
|
-
'`),
|
|
165
|
-
`;var
|
|
166
|
-
`+
|
|
185
|
+
`)}function oy(t){return xe(t)||kr(t)||!!(Al&&t&&t[Al])}function qn(t,i){var s=typeof t;return i=i??qe,!!i&&(s=="number"||s!="symbol"&&gm.test(t))&&t>-1&&t%1==0&&t<i}function Mt(t,i,s){if(!tt(s))return!1;var l=typeof i;return(l=="number"?Ft(s)&&qn(i,s.length):l=="string"&&i in s)?Sn(s[i],t):!1}function Gs(t,i){if(xe(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||Vt(t)?!0:Ai.test(t)||!Pi.test(t)||i!=null&&t in Ye(i)}function ay(t){var i=typeof t;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?t!=="__proto__":t===null}function Ys(t){var i=Jo(t),s=g[i];if(typeof s!="function"||!(i in De.prototype))return!1;if(t===s)return!0;var l=zs(s);return!!l&&t===l[0]}function sy(t){return!!Tl&&Tl in t}var uy=Co?Kn:fu;function zi(t){var i=t&&t.constructor,s=typeof i=="function"&&i.prototype||ni;return t===s}function Cf(t){return t===t&&!tt(t)}function Rf(t,i){return function(s){return s==null?!1:s[t]===i&&(i!==n||t in Ye(s))}}function cy(t){var i=ra(t,function(l){return s.size===m&&s.clear(),l}),s=i.cache;return i}function ly(t,i){var s=t[1],l=i[1],p=s|l,b=p<(T|D|F),E=l==F&&s==R||l==F&&s==N&&t[7].length<=i[8]||l==(F|N)&&i[7].length<=i[8]&&s==R;if(!(b||E))return t;l&T&&(t[2]=i[2],p|=s&T?0:M);var C=i[3];if(C){var L=t[3];t[3]=L?lf(L,C,i[4]):C,t[4]=L?rr(t[3],y):i[4]}return C=i[5],C&&(L=t[5],t[5]=L?ff(L,C,i[6]):C,t[6]=L?rr(t[5],y):i[6]),C=i[7],C&&(t[7]=C),l&F&&(t[8]=t[8]==null?i[8]:xt(t[8],i[8])),t[9]==null&&(t[9]=i[9]),t[0]=i[0],t[1]=p,t}function fy(t){var i=[];if(t!=null)for(var s in Ye(t))i.push(s);return i}function dy(t){return Po.call(t)}function Pf(t,i,s){return i=pt(i===n?t.length-1:i,0),function(){for(var l=arguments,p=-1,b=pt(l.length-i,0),E=j(b);++p<b;)E[p]=l[i+p];p=-1;for(var C=j(i+1);++p<i;)C[p]=l[p];return C[i]=s(E),Gt(t,this,C)}}function Af(t,i){return i.length<2?t:Lr(t,cn(i,0,-1))}function py(t,i){for(var s=t.length,l=xt(i.length,s),p=jt(t);l--;){var b=i[l];t[l]=qn(b,s)?p[b]:n}return t}function Xs(t,i){if(!(i==="constructor"&&typeof t[i]=="function")&&i!="__proto__")return t[i]}var If=Mf(Ql),qi=Rg||function(t,i){return wt.setTimeout(t,i)},Vs=Mf($0);function Lf(t,i,s){var l=i+"";return Vs(t,iy(l,hy(ty(l),s)))}function Mf(t){var i=0,s=0;return function(){var l=Lg(),p=Oe-(l-s);if(s=l,p>0){if(++i>=Me)return arguments[0]}else i=0;return t.apply(n,arguments)}}function Qo(t,i){var s=-1,l=t.length,p=l-1;for(i=i===n?l:i;++s<i;){var b=Ls(s,p),E=t[b];t[b]=t[s],t[s]=E}return t.length=i,t}var Df=cy(function(t){var i=[];return t.charCodeAt(0)===46&&i.push(""),t.replace(Ii,function(s,l,p,b){i.push(p?b.replace(be,"$1"):l||s)}),i});function Ln(t){if(typeof t=="string"||Vt(t))return t;var i=t+"";return i=="0"&&1/t==-Ie?"-0":i}function Dr(t){if(t!=null){try{return Ro.call(t)}catch{}try{return t+""}catch{}}return""}function hy(t,i){return on(ce,function(s){var l="_."+s[0];i&s[1]&&!Eo(t,l)&&t.push(l)}),t.sort()}function kf(t){if(t instanceof De)return t.clone();var i=new sn(t.__wrapped__,t.__chain__);return i.__actions__=jt(t.__actions__),i.__index__=t.__index__,i.__values__=t.__values__,i}function vy(t,i,s){(s?Mt(t,i,s):i===n)?i=1:i=pt(Te(i),0);var l=t==null?0:t.length;if(!l||i<1)return[];for(var p=0,b=0,E=j(ko(l/i));p<l;)E[b++]=cn(t,p,p+=i);return E}function my(t){for(var i=-1,s=t==null?0:t.length,l=0,p=[];++i<s;){var b=t[i];b&&(p[l++]=b)}return p}function gy(){var t=arguments.length;if(!t)return[];for(var i=j(t-1),s=arguments[0],l=t;l--;)i[l-1]=arguments[l];return nr(xe(s)?jt(s):[s],bt(i,1))}var yy=Re(function(t,i){return ut(t)?Fi(t,bt(i,1,ut,!0)):[]}),wy=Re(function(t,i){var s=ln(i);return ut(s)&&(s=n),ut(t)?Fi(t,bt(i,1,ut,!0),de(s,2)):[]}),by=Re(function(t,i){var s=ln(i);return ut(s)&&(s=n),ut(t)?Fi(t,bt(i,1,ut,!0),n,s):[]});function _y(t,i,s){var l=t==null?0:t.length;return l?(i=s||i===n?1:Te(i),cn(t,i<0?0:i,l)):[]}function Sy(t,i,s){var l=t==null?0:t.length;return l?(i=s||i===n?1:Te(i),i=l-i,cn(t,0,i<0?0:i)):[]}function Ey(t,i){return t&&t.length?qo(t,de(i,3),!0,!0):[]}function xy(t,i){return t&&t.length?qo(t,de(i,3),!0):[]}function Oy(t,i,s,l){var p=t==null?0:t.length;return p?(s&&typeof s!="number"&&Mt(t,i,s)&&(s=0,l=p),g0(t,i,s,l)):[]}function $f(t,i,s){var l=t==null?0:t.length;if(!l)return-1;var p=s==null?0:Te(s);return p<0&&(p=pt(l+p,0)),xo(t,de(i,3),p)}function Nf(t,i,s){var l=t==null?0:t.length;if(!l)return-1;var p=l-1;return s!==n&&(p=Te(s),p=s<0?pt(l+p,0):xt(p,l-1)),xo(t,de(i,3),p,!0)}function jf(t){var i=t==null?0:t.length;return i?bt(t,1):[]}function Ty(t){var i=t==null?0:t.length;return i?bt(t,Ie):[]}function Cy(t,i){var s=t==null?0:t.length;return s?(i=i===n?1:Te(i),bt(t,i)):[]}function Ry(t){for(var i=-1,s=t==null?0:t.length,l={};++i<s;){var p=t[i];l[p[0]]=p[1]}return l}function Ff(t){return t&&t.length?t[0]:n}function Py(t,i,s){var l=t==null?0:t.length;if(!l)return-1;var p=s==null?0:Te(s);return p<0&&(p=pt(l+p,0)),Zr(t,i,p)}function Ay(t){var i=t==null?0:t.length;return i?cn(t,0,-1):[]}var Iy=Re(function(t){var i=et(t,Ns);return i.length&&i[0]===t[0]?Cs(i):[]}),Ly=Re(function(t){var i=ln(t),s=et(t,Ns);return i===ln(s)?i=n:s.pop(),s.length&&s[0]===t[0]?Cs(s,de(i,2)):[]}),My=Re(function(t){var i=ln(t),s=et(t,Ns);return i=typeof i=="function"?i:n,i&&s.pop(),s.length&&s[0]===t[0]?Cs(s,n,i):[]});function Dy(t,i){return t==null?"":Ag.call(t,i)}function ln(t){var i=t==null?0:t.length;return i?t[i-1]:n}function ky(t,i,s){var l=t==null?0:t.length;if(!l)return-1;var p=l;return s!==n&&(p=Te(s),p=p<0?pt(l+p,0):xt(p,l-1)),i===i?hg(t,i,p):xo(t,yl,p,!0)}function $y(t,i){return t&&t.length?Xl(t,Te(i)):n}var Ny=Re(Wf);function Wf(t,i){return t&&t.length&&i&&i.length?Is(t,i):t}function jy(t,i,s){return t&&t.length&&i&&i.length?Is(t,i,de(s,2)):t}function Fy(t,i,s){return t&&t.length&&i&&i.length?Is(t,i,n,s):t}var Wy=zn(function(t,i){var s=t==null?0:t.length,l=Es(t,i);return Zl(t,et(i,function(p){return qn(p,s)?+p:p}).sort(cf)),l});function Uy(t,i){var s=[];if(!(t&&t.length))return s;var l=-1,p=[],b=t.length;for(i=de(i,3);++l<b;){var E=t[l];i(E,l,t)&&(s.push(E),p.push(l))}return Zl(t,p),s}function Js(t){return t==null?t:Dg.call(t)}function By(t,i,s){var l=t==null?0:t.length;return l?(s&&typeof s!="number"&&Mt(t,i,s)?(i=0,s=l):(i=i==null?0:Te(i),s=s===n?l:Te(s)),cn(t,i,s)):[]}function Hy(t,i){return zo(t,i)}function zy(t,i,s){return Ds(t,i,de(s,2))}function qy(t,i){var s=t==null?0:t.length;if(s){var l=zo(t,i);if(l<s&&Sn(t[l],i))return l}return-1}function Ky(t,i){return zo(t,i,!0)}function Gy(t,i,s){return Ds(t,i,de(s,2),!0)}function Yy(t,i){var s=t==null?0:t.length;if(s){var l=zo(t,i,!0)-1;if(Sn(t[l],i))return l}return-1}function Xy(t){return t&&t.length?ef(t):[]}function Vy(t,i){return t&&t.length?ef(t,de(i,2)):[]}function Jy(t){var i=t==null?0:t.length;return i?cn(t,1,i):[]}function Zy(t,i,s){return t&&t.length?(i=s||i===n?1:Te(i),cn(t,0,i<0?0:i)):[]}function Qy(t,i,s){var l=t==null?0:t.length;return l?(i=s||i===n?1:Te(i),i=l-i,cn(t,i<0?0:i,l)):[]}function e1(t,i){return t&&t.length?qo(t,de(i,3),!1,!0):[]}function t1(t,i){return t&&t.length?qo(t,de(i,3)):[]}var n1=Re(function(t){return ar(bt(t,1,ut,!0))}),r1=Re(function(t){var i=ln(t);return ut(i)&&(i=n),ar(bt(t,1,ut,!0),de(i,2))}),i1=Re(function(t){var i=ln(t);return i=typeof i=="function"?i:n,ar(bt(t,1,ut,!0),n,i)});function o1(t){return t&&t.length?ar(t):[]}function a1(t,i){return t&&t.length?ar(t,de(i,2)):[]}function s1(t,i){return i=typeof i=="function"?i:n,t&&t.length?ar(t,n,i):[]}function Zs(t){if(!(t&&t.length))return[];var i=0;return t=tr(t,function(s){if(ut(s))return i=pt(s.length,i),!0}),vs(i,function(s){return et(t,ds(s))})}function Uf(t,i){if(!(t&&t.length))return[];var s=Zs(t);return i==null?s:et(s,function(l){return Gt(i,n,l)})}var u1=Re(function(t,i){return ut(t)?Fi(t,i):[]}),c1=Re(function(t){return $s(tr(t,ut))}),l1=Re(function(t){var i=ln(t);return ut(i)&&(i=n),$s(tr(t,ut),de(i,2))}),f1=Re(function(t){var i=ln(t);return i=typeof i=="function"?i:n,$s(tr(t,ut),n,i)}),d1=Re(Zs);function p1(t,i){return of(t||[],i||[],ji)}function h1(t,i){return of(t||[],i||[],Bi)}var v1=Re(function(t){var i=t.length,s=i>1?t[i-1]:n;return s=typeof s=="function"?(t.pop(),s):n,Uf(t,s)});function Bf(t){var i=g(t);return i.__chain__=!0,i}function m1(t,i){return i(t),t}function ea(t,i){return i(t)}var g1=zn(function(t){var i=t.length,s=i?t[0]:0,l=this.__wrapped__,p=function(b){return Es(b,t)};return i>1||this.__actions__.length||!(l instanceof De)||!qn(s)?this.thru(p):(l=l.slice(s,+s+(i?1:0)),l.__actions__.push({func:ea,args:[p],thisArg:n}),new sn(l,this.__chain__).thru(function(b){return i&&!b.length&&b.push(n),b}))});function y1(){return Bf(this)}function w1(){return new sn(this.value(),this.__chain__)}function b1(){this.__values__===n&&(this.__values__=nd(this.value()));var t=this.__index__>=this.__values__.length,i=t?n:this.__values__[this.__index__++];return{done:t,value:i}}function _1(){return this}function S1(t){for(var i,s=this;s instanceof Fo;){var l=kf(s);l.__index__=0,l.__values__=n,i?p.__wrapped__=l:i=l;var p=l;s=s.__wrapped__}return p.__wrapped__=t,i}function E1(){var t=this.__wrapped__;if(t instanceof De){var i=t;return this.__actions__.length&&(i=new De(this)),i=i.reverse(),i.__actions__.push({func:ea,args:[Js],thisArg:n}),new sn(i,this.__chain__)}return this.thru(Js)}function x1(){return rf(this.__wrapped__,this.__actions__)}var O1=Ko(function(t,i,s){He.call(t,s)?++t[s]:Bn(t,s,1)});function T1(t,i,s){var l=xe(t)?ml:m0;return s&&Mt(t,i,s)&&(i=n),l(t,de(i,3))}function C1(t,i){var s=xe(t)?tr:Wl;return s(t,de(i,3))}var R1=vf($f),P1=vf(Nf);function A1(t,i){return bt(ta(t,i),1)}function I1(t,i){return bt(ta(t,i),Ie)}function L1(t,i,s){return s=s===n?1:Te(s),bt(ta(t,i),s)}function Hf(t,i){var s=xe(t)?on:or;return s(t,de(i,3))}function zf(t,i){var s=xe(t)?Jm:Fl;return s(t,de(i,3))}var M1=Ko(function(t,i,s){He.call(t,s)?t[s].push(i):Bn(t,s,[i])});function D1(t,i,s,l){t=Ft(t)?t:li(t),s=s&&!l?Te(s):0;var p=t.length;return s<0&&(s=pt(p+s,0)),aa(t)?s<=p&&t.indexOf(i,s)>-1:!!p&&Zr(t,i,s)>-1}var k1=Re(function(t,i,s){var l=-1,p=typeof i=="function",b=Ft(t)?j(t.length):[];return or(t,function(E){b[++l]=p?Gt(i,E,s):Wi(E,i,s)}),b}),$1=Ko(function(t,i,s){Bn(t,s,i)});function ta(t,i){var s=xe(t)?et:Kl;return s(t,de(i,3))}function N1(t,i,s,l){return t==null?[]:(xe(i)||(i=i==null?[]:[i]),s=l?n:s,xe(s)||(s=s==null?[]:[s]),Vl(t,i,s))}var j1=Ko(function(t,i,s){t[s?0:1].push(i)},function(){return[[],[]]});function F1(t,i,s){var l=xe(t)?ls:bl,p=arguments.length<3;return l(t,de(i,4),s,p,or)}function W1(t,i,s){var l=xe(t)?Zm:bl,p=arguments.length<3;return l(t,de(i,4),s,p,Fl)}function U1(t,i){var s=xe(t)?tr:Wl;return s(t,ia(de(i,3)))}function B1(t){var i=xe(t)?kl:D0;return i(t)}function H1(t,i,s){(s?Mt(t,i,s):i===n)?i=1:i=Te(i);var l=xe(t)?f0:k0;return l(t,i)}function z1(t){var i=xe(t)?d0:N0;return i(t)}function q1(t){if(t==null)return 0;if(Ft(t))return aa(t)?ei(t):t.length;var i=Ot(t);return i==rt||i==Qe?t.size:Ps(t).length}function K1(t,i,s){var l=xe(t)?fs:j0;return s&&Mt(t,i,s)&&(i=n),l(t,de(i,3))}var G1=Re(function(t,i){if(t==null)return[];var s=i.length;return s>1&&Mt(t,i[0],i[1])?i=[]:s>2&&Mt(i[0],i[1],i[2])&&(i=[i[0]]),Vl(t,bt(i,1),[])}),na=Cg||function(){return wt.Date.now()};function Y1(t,i){if(typeof i!="function")throw new an(c);return t=Te(t),function(){if(--t<1)return i.apply(this,arguments)}}function qf(t,i,s){return i=s?n:i,i=t&&i==null?t.length:i,Hn(t,F,n,n,n,n,i)}function Kf(t,i){var s;if(typeof i!="function")throw new an(c);return t=Te(t),function(){return--t>0&&(s=i.apply(this,arguments)),t<=1&&(i=n),s}}var Qs=Re(function(t,i,s){var l=T;if(s.length){var p=rr(s,ui(Qs));l|=x}return Hn(t,l,i,s,p)}),Gf=Re(function(t,i,s){var l=T|D;if(s.length){var p=rr(s,ui(Gf));l|=x}return Hn(i,l,t,s,p)});function Yf(t,i,s){i=s?n:i;var l=Hn(t,R,n,n,n,n,n,i);return l.placeholder=Yf.placeholder,l}function Xf(t,i,s){i=s?n:i;var l=Hn(t,k,n,n,n,n,n,i);return l.placeholder=Xf.placeholder,l}function Vf(t,i,s){var l,p,b,E,C,L,H=0,z=!1,K=!1,J=!0;if(typeof t!="function")throw new an(c);i=fn(i)||0,tt(s)&&(z=!!s.leading,K="maxWait"in s,b=K?pt(fn(s.maxWait)||0,i):b,J="trailing"in s?!!s.trailing:J);function re(ct){var En=l,Yn=p;return l=p=n,H=ct,E=t.apply(Yn,En),E}function pe(ct){return H=ct,C=qi(Le,i),z?re(ct):E}function Ce(ct){var En=ct-L,Yn=ct-H,vd=i-En;return K?xt(vd,b-Yn):vd}function he(ct){var En=ct-L,Yn=ct-H;return L===n||En>=i||En<0||K&&Yn>=b}function Le(){var ct=na();if(he(ct))return $e(ct);C=qi(Le,Ce(ct))}function $e(ct){return C=n,J&&l?re(ct):(l=p=n,E)}function Jt(){C!==n&&af(C),H=0,l=L=p=C=n}function Dt(){return C===n?E:$e(na())}function Zt(){var ct=na(),En=he(ct);if(l=arguments,p=this,L=ct,En){if(C===n)return pe(L);if(K)return af(C),C=qi(Le,i),re(L)}return C===n&&(C=qi(Le,i)),E}return Zt.cancel=Jt,Zt.flush=Dt,Zt}var X1=Re(function(t,i){return jl(t,1,i)}),V1=Re(function(t,i,s){return jl(t,fn(i)||0,s)});function J1(t){return Hn(t,Z)}function ra(t,i){if(typeof t!="function"||i!=null&&typeof i!="function")throw new an(c);var s=function(){var l=arguments,p=i?i.apply(this,l):l[0],b=s.cache;if(b.has(p))return b.get(p);var E=t.apply(this,l);return s.cache=b.set(p,E)||b,E};return s.cache=new(ra.Cache||Un),s}ra.Cache=Un;function ia(t){if(typeof t!="function")throw new an(c);return function(){var i=arguments;switch(i.length){case 0:return!t.call(this);case 1:return!t.call(this,i[0]);case 2:return!t.call(this,i[0],i[1]);case 3:return!t.call(this,i[0],i[1],i[2])}return!t.apply(this,i)}}function Z1(t){return Kf(2,t)}var Q1=F0(function(t,i){i=i.length==1&&xe(i[0])?et(i[0],Yt(de())):et(bt(i,1),Yt(de()));var s=i.length;return Re(function(l){for(var p=-1,b=xt(l.length,s);++p<b;)l[p]=i[p].call(this,l[p]);return Gt(t,this,l)})}),eu=Re(function(t,i){var s=rr(i,ui(eu));return Hn(t,x,n,i,s)}),Jf=Re(function(t,i){var s=rr(i,ui(Jf));return Hn(t,W,n,i,s)}),ew=zn(function(t,i){return Hn(t,N,n,n,n,i)});function tw(t,i){if(typeof t!="function")throw new an(c);return i=i===n?i:Te(i),Re(t,i)}function nw(t,i){if(typeof t!="function")throw new an(c);return i=i==null?0:pt(Te(i),0),Re(function(s){var l=s[i],p=ur(s,0,i);return l&&nr(p,l),Gt(t,this,p)})}function rw(t,i,s){var l=!0,p=!0;if(typeof t!="function")throw new an(c);return tt(s)&&(l="leading"in s?!!s.leading:l,p="trailing"in s?!!s.trailing:p),Vf(t,i,{leading:l,maxWait:i,trailing:p})}function iw(t){return qf(t,1)}function ow(t,i){return eu(js(i),t)}function aw(){if(!arguments.length)return[];var t=arguments[0];return xe(t)?t:[t]}function sw(t){return un(t,v)}function uw(t,i){return i=typeof i=="function"?i:n,un(t,v,i)}function cw(t){return un(t,_|v)}function lw(t,i){return i=typeof i=="function"?i:n,un(t,_|v,i)}function fw(t,i){return i==null||Nl(t,i,mt(i))}function Sn(t,i){return t===i||t!==t&&i!==i}var dw=Vo(Ts),pw=Vo(function(t,i){return t>=i}),kr=Hl(function(){return arguments}())?Hl:function(t){return ot(t)&&He.call(t,"callee")&&!Pl.call(t,"callee")},xe=j.isArray,hw=ll?Yt(ll):S0;function Ft(t){return t!=null&&oa(t.length)&&!Kn(t)}function ut(t){return ot(t)&&Ft(t)}function vw(t){return t===!0||t===!1||ot(t)&&Lt(t)==se}var cr=Pg||fu,mw=fl?Yt(fl):E0;function gw(t){return ot(t)&&t.nodeType===1&&!Ki(t)}function yw(t){if(t==null)return!0;if(Ft(t)&&(xe(t)||typeof t=="string"||typeof t.splice=="function"||cr(t)||ci(t)||kr(t)))return!t.length;var i=Ot(t);if(i==rt||i==Qe)return!t.size;if(zi(t))return!Ps(t).length;for(var s in t)if(He.call(t,s))return!1;return!0}function ww(t,i){return Ui(t,i)}function bw(t,i,s){s=typeof s=="function"?s:n;var l=s?s(t,i):n;return l===n?Ui(t,i,n,s):!!l}function tu(t){if(!ot(t))return!1;var i=Lt(t);return i==Ge||i==ye||typeof t.message=="string"&&typeof t.name=="string"&&!Ki(t)}function _w(t){return typeof t=="number"&&Il(t)}function Kn(t){if(!tt(t))return!1;var i=Lt(t);return i==V||i==nt||i==fe||i==gr}function Zf(t){return typeof t=="number"&&t==Te(t)}function oa(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=qe}function tt(t){var i=typeof t;return t!=null&&(i=="object"||i=="function")}function ot(t){return t!=null&&typeof t=="object"}var Qf=dl?Yt(dl):O0;function Sw(t,i){return t===i||Rs(t,i,qs(i))}function Ew(t,i,s){return s=typeof s=="function"?s:n,Rs(t,i,qs(i),s)}function xw(t){return ed(t)&&t!=+t}function Ow(t){if(uy(t))throw new Se(u);return zl(t)}function Tw(t){return t===null}function Cw(t){return t==null}function ed(t){return typeof t=="number"||ot(t)&&Lt(t)==lt}function Ki(t){if(!ot(t)||Lt(t)!=vt)return!1;var i=Lo(t);if(i===null)return!0;var s=He.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s instanceof s&&Ro.call(s)==Eg}var nu=pl?Yt(pl):T0;function Rw(t){return Zf(t)&&t>=-qe&&t<=qe}var td=hl?Yt(hl):C0;function aa(t){return typeof t=="string"||!xe(t)&&ot(t)&&Lt(t)==tn}function Vt(t){return typeof t=="symbol"||ot(t)&&Lt(t)==qt}var ci=vl?Yt(vl):R0;function Pw(t){return t===n}function Aw(t){return ot(t)&&Ot(t)==Et}function Iw(t){return ot(t)&&Lt(t)==Qn}var Lw=Vo(As),Mw=Vo(function(t,i){return t<=i});function nd(t){if(!t)return[];if(Ft(t))return aa(t)?bn(t):jt(t);if(Mi&&t[Mi])return fg(t[Mi]());var i=Ot(t),s=i==rt?gs:i==Qe?Oo:li;return s(t)}function Gn(t){if(!t)return t===0?t:0;if(t=fn(t),t===Ie||t===-Ie){var i=t<0?-1:1;return i*ft}return t===t?t:0}function Te(t){var i=Gn(t),s=i%1;return i===i?s?i-s:i:0}function rd(t){return t?Ir(Te(t),0,X):0}function fn(t){if(typeof t=="number")return t;if(Vt(t))return G;if(tt(t)){var i=typeof t.valueOf=="function"?t.valueOf():t;t=tt(i)?i+"":i}if(typeof t!="string")return t===0?t:+t;t=_l(t);var s=Tr.test(t);return s||mm.test(t)?Ym(t.slice(2),s?2:8):It.test(t)?G:+t}function id(t){return In(t,Wt(t))}function Dw(t){return t?Ir(Te(t),-qe,qe):t===0?t:0}function We(t){return t==null?"":Xt(t)}var kw=ai(function(t,i){if(zi(i)||Ft(i)){In(i,mt(i),t);return}for(var s in i)He.call(i,s)&&ji(t,s,i[s])}),od=ai(function(t,i){In(i,Wt(i),t)}),sa=ai(function(t,i,s,l){In(i,Wt(i),t,l)}),$w=ai(function(t,i,s,l){In(i,mt(i),t,l)}),Nw=zn(Es);function jw(t,i){var s=oi(t);return i==null?s:$l(s,i)}var Fw=Re(function(t,i){t=Ye(t);var s=-1,l=i.length,p=l>2?i[2]:n;for(p&&Mt(i[0],i[1],p)&&(l=1);++s<l;)for(var b=i[s],E=Wt(b),C=-1,L=E.length;++C<L;){var H=E[C],z=t[H];(z===n||Sn(z,ni[H])&&!He.call(t,H))&&(t[H]=b[H])}return t}),Ww=Re(function(t){return t.push(n,Sf),Gt(ad,n,t)});function Uw(t,i){return gl(t,de(i,3),An)}function Bw(t,i){return gl(t,de(i,3),Os)}function Hw(t,i){return t==null?t:xs(t,de(i,3),Wt)}function zw(t,i){return t==null?t:Ul(t,de(i,3),Wt)}function qw(t,i){return t&&An(t,de(i,3))}function Kw(t,i){return t&&Os(t,de(i,3))}function Gw(t){return t==null?[]:Bo(t,mt(t))}function Yw(t){return t==null?[]:Bo(t,Wt(t))}function ru(t,i,s){var l=t==null?n:Lr(t,i);return l===n?s:l}function Xw(t,i){return t!=null&&Of(t,i,y0)}function iu(t,i){return t!=null&&Of(t,i,w0)}var Vw=gf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Po.call(i)),t[i]=s},au(Ut)),Jw=gf(function(t,i,s){i!=null&&typeof i.toString!="function"&&(i=Po.call(i)),He.call(t,i)?t[i].push(s):t[i]=[s]},de),Zw=Re(Wi);function mt(t){return Ft(t)?Dl(t):Ps(t)}function Wt(t){return Ft(t)?Dl(t,!0):P0(t)}function Qw(t,i){var s={};return i=de(i,3),An(t,function(l,p,b){Bn(s,i(l,p,b),l)}),s}function eb(t,i){var s={};return i=de(i,3),An(t,function(l,p,b){Bn(s,p,i(l,p,b))}),s}var tb=ai(function(t,i,s){Ho(t,i,s)}),ad=ai(function(t,i,s,l){Ho(t,i,s,l)}),nb=zn(function(t,i){var s={};if(t==null)return s;var l=!1;i=et(i,function(b){return b=sr(b,t),l||(l=b.length>1),b}),In(t,Hs(t),s),l&&(s=un(s,_|O|v,V0));for(var p=i.length;p--;)ks(s,i[p]);return s});function rb(t,i){return sd(t,ia(de(i)))}var ib=zn(function(t,i){return t==null?{}:I0(t,i)});function sd(t,i){if(t==null)return{};var s=et(Hs(t),function(l){return[l]});return i=de(i),Jl(t,s,function(l,p){return i(l,p[0])})}function ob(t,i,s){i=sr(i,t);var l=-1,p=i.length;for(p||(p=1,t=n);++l<p;){var b=t==null?n:t[Ln(i[l])];b===n&&(l=p,b=s),t=Kn(b)?b.call(t):b}return t}function ab(t,i,s){return t==null?t:Bi(t,i,s)}function sb(t,i,s,l){return l=typeof l=="function"?l:n,t==null?t:Bi(t,i,s,l)}var ud=bf(mt),cd=bf(Wt);function ub(t,i,s){var l=xe(t),p=l||cr(t)||ci(t);if(i=de(i,4),s==null){var b=t&&t.constructor;p?s=l?new b:[]:tt(t)?s=Kn(b)?oi(Lo(t)):{}:s={}}return(p?on:An)(t,function(E,C,L){return i(s,E,C,L)}),s}function cb(t,i){return t==null?!0:ks(t,i)}function lb(t,i,s){return t==null?t:nf(t,i,js(s))}function fb(t,i,s,l){return l=typeof l=="function"?l:n,t==null?t:nf(t,i,js(s),l)}function li(t){return t==null?[]:ms(t,mt(t))}function db(t){return t==null?[]:ms(t,Wt(t))}function pb(t,i,s){return s===n&&(s=i,i=n),s!==n&&(s=fn(s),s=s===s?s:0),i!==n&&(i=fn(i),i=i===i?i:0),Ir(fn(t),i,s)}function hb(t,i,s){return i=Gn(i),s===n?(s=i,i=0):s=Gn(s),t=fn(t),b0(t,i,s)}function vb(t,i,s){if(s&&typeof s!="boolean"&&Mt(t,i,s)&&(i=s=n),s===n&&(typeof i=="boolean"?(s=i,i=n):typeof t=="boolean"&&(s=t,t=n)),t===n&&i===n?(t=0,i=1):(t=Gn(t),i===n?(i=t,t=0):i=Gn(i)),t>i){var l=t;t=i,i=l}if(s||t%1||i%1){var p=Ll();return xt(t+p*(i-t+Gm("1e-"+((p+"").length-1))),i)}return Ls(t,i)}var mb=si(function(t,i,s){return i=i.toLowerCase(),t+(s?ld(i):i)});function ld(t){return ou(We(t).toLowerCase())}function fd(t){return t=We(t),t&&t.replace(ym,ag).replace(Nm,"")}function gb(t,i,s){t=We(t),i=Xt(i);var l=t.length;s=s===n?l:Ir(Te(s),0,l);var p=s;return s-=i.length,s>=0&&t.slice(s,p)==i}function yb(t){return t=We(t),t&&Ci.test(t)?t.replace(er,sg):t}function wb(t){return t=We(t),t&&P.test(t)?t.replace(d,"\\$&"):t}var bb=si(function(t,i,s){return t+(s?"-":"")+i.toLowerCase()}),_b=si(function(t,i,s){return t+(s?" ":"")+i.toLowerCase()}),Sb=hf("toLowerCase");function Eb(t,i,s){t=We(t),i=Te(i);var l=i?ei(t):0;if(!i||l>=i)return t;var p=(i-l)/2;return Xo($o(p),s)+t+Xo(ko(p),s)}function xb(t,i,s){t=We(t),i=Te(i);var l=i?ei(t):0;return i&&l<i?t+Xo(i-l,s):t}function Ob(t,i,s){t=We(t),i=Te(i);var l=i?ei(t):0;return i&&l<i?Xo(i-l,s)+t:t}function Tb(t,i,s){return s||i==null?i=0:i&&(i=+i),Mg(We(t).replace($,""),i||0)}function Cb(t,i,s){return(s?Mt(t,i,s):i===n)?i=1:i=Te(i),Ms(We(t),i)}function Rb(){var t=arguments,i=We(t[0]);return t.length<3?i:i.replace(t[1],t[2])}var Pb=si(function(t,i,s){return t+(s?"_":"")+i.toLowerCase()});function Ab(t,i,s){return s&&typeof s!="number"&&Mt(t,i,s)&&(i=s=n),s=s===n?X:s>>>0,s?(t=We(t),t&&(typeof i=="string"||i!=null&&!nu(i))&&(i=Xt(i),!i&&Qr(t))?ur(bn(t),0,s):t.split(i,s)):[]}var Ib=si(function(t,i,s){return t+(s?" ":"")+ou(i)});function Lb(t,i,s){return t=We(t),s=s==null?0:Ir(Te(s),0,t.length),i=Xt(i),t.slice(s,s+i.length)==i}function Mb(t,i,s){var l=g.templateSettings;s&&Mt(t,i,s)&&(i=n),t=We(t),i=sa({},i,l,_f);var p=sa({},i.imports,l.imports,_f),b=mt(p),E=ms(p,b),C,L,H=0,z=i.interpolate||bo,K="__p += '",J=ys((i.escape||bo).source+"|"+z.source+"|"+(z===Vr?Ee:bo).source+"|"+(i.evaluate||bo).source+"|$","g"),re="//# sourceURL="+(He.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bm+"]")+`
|
|
186
|
+
`;t.replace(J,function(he,Le,$e,Jt,Dt,Zt){return $e||($e=Jt),K+=t.slice(H,Zt).replace(wm,ug),Le&&(C=!0,K+=`' +
|
|
187
|
+
__e(`+Le+`) +
|
|
188
|
+
'`),Dt&&(L=!0,K+=`';
|
|
189
|
+
`+Dt+`;
|
|
190
|
+
__p += '`),$e&&(K+=`' +
|
|
191
|
+
((__t = (`+$e+`)) == null ? '' : __t) +
|
|
192
|
+
'`),H=Zt+he.length,he}),K+=`';
|
|
193
|
+
`;var pe=He.call(i,"variable")&&i.variable;if(!pe)K=`with (obj) {
|
|
194
|
+
`+K+`
|
|
167
195
|
}
|
|
168
|
-
`;else if(
|
|
169
|
-
`+(
|
|
170
|
-
`)+"var __t, __p = ''"+(
|
|
196
|
+
`;else if(je.test(pe))throw new Se(f);K=(L?K.replace(Sr,""):K).replace(Ti,"$1").replace(Er,"$1;"),K="function("+(pe||"obj")+`) {
|
|
197
|
+
`+(pe?"":`obj || (obj = {});
|
|
198
|
+
`)+"var __t, __p = ''"+(C?", __e = _.escape":"")+(L?`, __j = Array.prototype.join;
|
|
171
199
|
function print() { __p += __j.call(arguments, '') }
|
|
172
200
|
`:`;
|
|
173
|
-
`)+
|
|
174
|
-
}`;var be=ld(function(){return Me(g,ee+"return "+z).apply(n,_)});if(be.source=z,eu(be))throw be;return be}function Tb(t){return De(t).toLowerCase()}function Cb(t){return De(t).toUpperCase()}function Pb(t,i,s){if(t=De(t),t&&(s||i===n))return gc(t);if(!t||!(i=jt(i)))return t;var c=ln(t),d=ln(i),g=yc(c,d),_=wc(c,d)+1;return tr(c,g,_).join("")}function Rb(t,i,s){if(t=De(t),t&&(s||i===n))return t.slice(0,_c(t)+1);if(!t||!(i=jt(i)))return t;var c=ln(t),d=wc(c,ln(i))+1;return tr(c,0,d).join("")}function Ab(t,i,s){if(t=De(t),t&&(s||i===n))return t.replace(V,"");if(!t||!(i=jt(i)))return t;var c=ln(t),d=yc(c,ln(i));return tr(c,d).join("")}function Ib(t,i){var s=Q,c=pe;if(Je(i)){var d="separator"in i?i.separator:d;s="length"in i?we(i.length):s,c="omission"in i?jt(i.omission):c}t=De(t);var g=t.length;if(jr(t)){var _=ln(t);g=_.length}if(s>=g)return t;var T=s-Br(c);if(T<1)return c;var I=_?tr(_,0,T).join(""):t.slice(0,T);if(d===n)return I+c;if(_&&(T+=I.length-T),tu(d)){if(t.slice(T).search(d)){var B,H=I;for(d.global||(d=gs(d.source,De(Gt.exec(d))+"g")),d.lastIndex=0;B=d.exec(H);)var z=B.index;I=I.slice(0,z===n?T:z)}}else if(t.indexOf(jt(d),T)!=T){var X=I.lastIndexOf(d);X>-1&&(I=I.slice(0,X))}return I+c}function Lb(t){return t=De(t),t&&uo.test(t)?t.replace(so,sg):t}var Mb=Yr(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),iu=cf("toUpperCase");function ud(t,i,s){return t=De(t),i=s?n:i,i===n?ng(t)?cg(t):Gm(t):t.match(i)||[]}var ld=_e(function(t,i){try{return Ft(t,n,i)}catch(s){return eu(s)?s:new de(s)}}),Db=$n(function(t,i){return Xt(i,function(s){s=xn(s),kn(t,s,Zs(t[s],t))}),t});function kb(t){var i=t==null?0:t.length,s=ie();return t=i?Xe(t,function(c){if(typeof c[1]!="function")throw new Vt(l);return[s(c[0]),c[1]]}):[],_e(function(c){for(var d=-1;++d<i;){var g=t[d];if(Ft(g[0],this,c))return Ft(g[1],this,c)}})}function Nb(t){return s0(Zt(t,b))}function ou(t){return function(){return t}}function $b(t,i){return t==null||t!==t?i:t}var Fb=df(),Wb=df(!0);function Dt(t){return t}function au(t){return Bc(typeof t=="function"?t:Zt(t,b))}function jb(t){return Uc(Zt(t,b))}function Bb(t,i){return zc(t,Zt(i,b))}var Hb=_e(function(t,i){return function(s){return Ti(s,t,i)}}),Ub=_e(function(t,i){return function(s){return Ti(t,s,i)}});function su(t,i,s){var c=ct(i),d=ko(i,c);s==null&&!(Je(i)&&(d.length||!c.length))&&(s=i,i=t,t=this,d=ko(i,ct(i)));var g=!(Je(s)&&"chain"in s)||!!s.chain,_=Wn(t);return Xt(d,function(T){var I=i[T];t[T]=I,_&&(t.prototype[T]=function(){var B=this.__chain__;if(g||B){var H=t(this.__wrapped__),z=H.__actions__=It(this.__actions__);return z.push({func:I,args:arguments,thisArg:t}),H.__chain__=B,H}return I.apply(t,Xn([this.value()],arguments))})}),t}function zb(){return pt._===this&&(pt._=mg),this}function uu(){}function qb(t){return t=we(t),_e(function(i){return qc(i,t)})}var Kb=Ws(Xe),Gb=Ws(dc),Yb=Ws(cs);function cd(t){return Ks(t)?fs(xn(t)):x0(t)}function Xb(t){return function(i){return t==null?n:wr(t,i)}}var Vb=hf(),Jb=hf(!0);function lu(){return[]}function cu(){return!1}function Zb(){return{}}function Qb(){return""}function e_(){return!0}function t_(t,i){if(t=we(t),t<1||t>Ke)return[];var s=G,c=yt(t,G);i=ie(i),t-=G;for(var d=hs(c,i);++s<t;)i(s);return d}function n_(t){return me(t)?Xe(t,xn):Bt(t)?[t]:It(Af(De(t)))}function r_(t){var i=++hg;return De(t)+i}var i_=Bo(function(t,i){return t+i},0),o_=js("ceil"),a_=Bo(function(t,i){return t/i},1),s_=js("floor");function u_(t){return t&&t.length?Do(t,Dt,Os):n}function l_(t,i){return t&&t.length?Do(t,ie(i,2),Os):n}function c_(t){return vc(t,Dt)}function f_(t,i){return vc(t,ie(i,2))}function d_(t){return t&&t.length?Do(t,Dt,Rs):n}function p_(t,i){return t&&t.length?Do(t,ie(i,2),Rs):n}var h_=Bo(function(t,i){return t*i},1),v_=js("round"),m_=Bo(function(t,i){return t-i},0);function g_(t){return t&&t.length?ps(t,Dt):0}function y_(t,i){return t&&t.length?ps(t,ie(i,2)):0}return v.after=j1,v.ary=Bf,v.assign=Cw,v.assignIn=td,v.assignInWith=ea,v.assignWith=Pw,v.at=Rw,v.before=Hf,v.bind=Zs,v.bindAll=Db,v.bindKey=Uf,v.castArray=Z1,v.chain=Ff,v.chunk=sy,v.compact=uy,v.concat=ly,v.cond=kb,v.conforms=Nb,v.constant=ou,v.countBy=g1,v.create=Aw,v.curry=zf,v.curryRight=qf,v.debounce=Kf,v.defaults=Iw,v.defaultsDeep=Lw,v.defer=B1,v.delay=H1,v.difference=cy,v.differenceBy=fy,v.differenceWith=dy,v.drop=py,v.dropRight=hy,v.dropRightWhile=vy,v.dropWhile=my,v.fill=gy,v.filter=w1,v.flatMap=S1,v.flatMapDeep=E1,v.flatMapDepth=x1,v.flatten=Df,v.flattenDeep=yy,v.flattenDepth=wy,v.flip=U1,v.flow=Fb,v.flowRight=Wb,v.fromPairs=by,v.functions=Ww,v.functionsIn=jw,v.groupBy=O1,v.initial=Sy,v.intersection=Ey,v.intersectionBy=xy,v.intersectionWith=Oy,v.invert=Hw,v.invertBy=Uw,v.invokeMap=C1,v.iteratee=au,v.keyBy=P1,v.keys=ct,v.keysIn=Mt,v.map=Yo,v.mapKeys=qw,v.mapValues=Kw,v.matches=jb,v.matchesProperty=Bb,v.memoize=Vo,v.merge=Gw,v.mergeWith=nd,v.method=Hb,v.methodOf=Ub,v.mixin=su,v.negate=Jo,v.nthArg=qb,v.omit=Yw,v.omitBy=Xw,v.once=z1,v.orderBy=R1,v.over=Kb,v.overArgs=q1,v.overEvery=Gb,v.overSome=Yb,v.partial=Qs,v.partialRight=Gf,v.partition=A1,v.pick=Vw,v.pickBy=rd,v.property=cd,v.propertyOf=Xb,v.pull=Ry,v.pullAll=Nf,v.pullAllBy=Ay,v.pullAllWith=Iy,v.pullAt=Ly,v.range=Vb,v.rangeRight=Jb,v.rearg=K1,v.reject=M1,v.remove=My,v.rest=G1,v.reverse=Vs,v.sampleSize=k1,v.set=Zw,v.setWith=Qw,v.shuffle=N1,v.slice=Dy,v.sortBy=W1,v.sortedUniq=By,v.sortedUniqBy=Hy,v.split=Sb,v.spread=Y1,v.tail=Uy,v.take=zy,v.takeRight=qy,v.takeRightWhile=Ky,v.takeWhile=Gy,v.tap=u1,v.throttle=X1,v.thru=Go,v.toArray=Zf,v.toPairs=id,v.toPairsIn=od,v.toPath=n_,v.toPlainObject=ed,v.transform=eb,v.unary=V1,v.union=Yy,v.unionBy=Xy,v.unionWith=Vy,v.uniq=Jy,v.uniqBy=Zy,v.uniqWith=Qy,v.unset=tb,v.unzip=Js,v.unzipWith=$f,v.update=nb,v.updateWith=rb,v.values=Jr,v.valuesIn=ib,v.without=e1,v.words=ud,v.wrap=J1,v.xor=t1,v.xorBy=n1,v.xorWith=r1,v.zip=i1,v.zipObject=o1,v.zipObjectDeep=a1,v.zipWith=s1,v.entries=id,v.entriesIn=od,v.extend=td,v.extendWith=ea,su(v,v),v.add=i_,v.attempt=ld,v.camelCase=ub,v.capitalize=ad,v.ceil=o_,v.clamp=ob,v.clone=Q1,v.cloneDeep=tw,v.cloneDeepWith=nw,v.cloneWith=ew,v.conformsTo=rw,v.deburr=sd,v.defaultTo=$b,v.divide=a_,v.endsWith=lb,v.eq=fn,v.escape=cb,v.escapeRegExp=fb,v.every=y1,v.find=b1,v.findIndex=Lf,v.findKey=Mw,v.findLast=_1,v.findLastIndex=Mf,v.findLastKey=Dw,v.floor=s_,v.forEach=Wf,v.forEachRight=jf,v.forIn=kw,v.forInRight=Nw,v.forOwn=$w,v.forOwnRight=Fw,v.get=nu,v.gt=iw,v.gte=ow,v.has=Bw,v.hasIn=ru,v.head=kf,v.identity=Dt,v.includes=T1,v.indexOf=_y,v.inRange=ab,v.invoke=zw,v.isArguments=Sr,v.isArray=me,v.isArrayBuffer=aw,v.isArrayLike=Lt,v.isArrayLikeObject=tt,v.isBoolean=sw,v.isBuffer=nr,v.isDate=uw,v.isElement=lw,v.isEmpty=cw,v.isEqual=fw,v.isEqualWith=dw,v.isError=eu,v.isFinite=pw,v.isFunction=Wn,v.isInteger=Yf,v.isLength=Zo,v.isMap=Xf,v.isMatch=hw,v.isMatchWith=vw,v.isNaN=mw,v.isNative=gw,v.isNil=ww,v.isNull=yw,v.isNumber=Vf,v.isObject=Je,v.isObjectLike=Qe,v.isPlainObject=Li,v.isRegExp=tu,v.isSafeInteger=bw,v.isSet=Jf,v.isString=Qo,v.isSymbol=Bt,v.isTypedArray=Vr,v.isUndefined=_w,v.isWeakMap=Sw,v.isWeakSet=Ew,v.join=Ty,v.kebabCase=db,v.last=en,v.lastIndexOf=Cy,v.lowerCase=pb,v.lowerFirst=hb,v.lt=xw,v.lte=Ow,v.max=u_,v.maxBy=l_,v.mean=c_,v.meanBy=f_,v.min=d_,v.minBy=p_,v.stubArray=lu,v.stubFalse=cu,v.stubObject=Zb,v.stubString=Qb,v.stubTrue=e_,v.multiply=h_,v.nth=Py,v.noConflict=zb,v.noop=uu,v.now=Xo,v.pad=vb,v.padEnd=mb,v.padStart=gb,v.parseInt=yb,v.random=sb,v.reduce=I1,v.reduceRight=L1,v.repeat=wb,v.replace=bb,v.result=Jw,v.round=v_,v.runInContext=R,v.sample=D1,v.size=$1,v.snakeCase=_b,v.some=F1,v.sortedIndex=ky,v.sortedIndexBy=Ny,v.sortedIndexOf=$y,v.sortedLastIndex=Fy,v.sortedLastIndexBy=Wy,v.sortedLastIndexOf=jy,v.startCase=Eb,v.startsWith=xb,v.subtract=m_,v.sum=g_,v.sumBy=y_,v.template=Ob,v.times=t_,v.toFinite=jn,v.toInteger=we,v.toLength=Qf,v.toLower=Tb,v.toNumber=tn,v.toSafeInteger=Tw,v.toString=De,v.toUpper=Cb,v.trim=Pb,v.trimEnd=Rb,v.trimStart=Ab,v.truncate=Ib,v.unescape=Lb,v.uniqueId=r_,v.upperCase=Mb,v.upperFirst=iu,v.each=Wf,v.eachRight=jf,v.first=kf,su(v,function(){var t={};return Sn(v,function(i,s){je.call(v.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),v.VERSION=o,Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){v[t].placeholder=v}),Xt(["drop","take"],function(t,i){Ce.prototype[t]=function(s){s=s===n?1:ut(we(s),0);var c=this.__filtered__&&!i?new Ce(this):this.clone();return c.__filtered__?c.__takeCount__=yt(s,c.__takeCount__):c.__views__.push({size:yt(s,G),type:t+(c.__dir__<0?"Right":"")}),c},Ce.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),Xt(["filter","map","takeWhile"],function(t,i){var s=i+1,c=s==he||s==ge;Ce.prototype[t]=function(d){var g=this.clone();return g.__iteratees__.push({iteratee:ie(d,3),type:s}),g.__filtered__=g.__filtered__||c,g}}),Xt(["head","last"],function(t,i){var s="take"+(i?"Right":"");Ce.prototype[t]=function(){return this[s](1).value()[0]}}),Xt(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");Ce.prototype[t]=function(){return this.__filtered__?new Ce(this):this[s](1)}}),Ce.prototype.compact=function(){return this.filter(Dt)},Ce.prototype.find=function(t){return this.filter(t).head()},Ce.prototype.findLast=function(t){return this.reverse().find(t)},Ce.prototype.invokeMap=_e(function(t,i){return typeof t=="function"?new Ce(this):this.map(function(s){return Ti(s,t,i)})}),Ce.prototype.reject=function(t){return this.filter(Jo(ie(t)))},Ce.prototype.slice=function(t,i){t=we(t);var s=this;return s.__filtered__&&(t>0||i<0)?new Ce(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==n&&(i=we(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},Ce.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ce.prototype.toArray=function(){return this.take(G)},Sn(Ce.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),c=/^(?:head|last)$/.test(i),d=v[c?"take"+(i=="last"?"Right":""):i],g=c||/^find/.test(i);d&&(v.prototype[i]=function(){var _=this.__wrapped__,T=c?[1]:arguments,I=_ instanceof Ce,B=T[0],H=I||me(_),z=function(Te){var Re=d.apply(v,Xn([Te],T));return c&&X?Re[0]:Re};H&&s&&typeof B=="function"&&B.length!=1&&(I=H=!1);var X=this.__chain__,ee=!!this.__actions__.length,ae=g&&!X,be=I&&!ee;if(!g&&H){_=be?_:new Ce(this);var se=t.apply(_,T);return se.__actions__.push({func:Go,args:[z],thisArg:n}),new Jt(se,X)}return ae&&be?t.apply(this,T):(se=this.thru(z),ae?c?se.value()[0]:se.value():se)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(t){var i=wo[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);v.prototype[t]=function(){var d=arguments;if(c&&!this.__chain__){var g=this.value();return i.apply(me(g)?g:[],d)}return this[s](function(_){return i.apply(me(_)?_:[],d)})}}),Sn(Ce.prototype,function(t,i){var s=v[i];if(s){var c=s.name+"";je.call(qr,c)||(qr[c]=[]),qr[c].push({name:i,func:s})}}),qr[jo(n,M).name]=[{name:"wrapper",func:n}],Ce.prototype.clone=Lg,Ce.prototype.reverse=Mg,Ce.prototype.value=Dg,v.prototype.at=l1,v.prototype.chain=c1,v.prototype.commit=f1,v.prototype.next=d1,v.prototype.plant=h1,v.prototype.reverse=v1,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=m1,v.prototype.first=v.prototype.head,wi&&(v.prototype[wi]=p1),v},Hr=fg();hr?((hr.exports=Hr)._=Hr,as._=Hr):pt._=Hr}).call(Tr)})(Da,Da.exports);var an=Da.exports;function FP(e){const[r,n]=U.useState(e),o=U.useMemo(()=>WP(r,n),[]);return{state:r,actions:{...o,set:n}}}function WP(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${an.upperFirst(a)}`]:u=>r(l=>({...l,[a]:u}))}),{})}const jP=(e,r,n={})=>{n={timeout:200,...n};const o=U.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return U.useCallback((u,...l)=>{a(),r&&u.detail===1&&(o.current=setTimeout(()=>{r(u,...l)},n.timeout)),u.detail%2===0&&e(u,...l)},[r,e,n.timeout])};function zn(e){return typeof e=="function"}function Rv(e){var r=function(o){Error.call(o),o.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var qu=Rv(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
201
|
+
`)+K+`return __p
|
|
202
|
+
}`;var Ce=pd(function(){return Fe(b,re+"return "+K).apply(n,E)});if(Ce.source=K,tu(Ce))throw Ce;return Ce}function Db(t){return We(t).toLowerCase()}function kb(t){return We(t).toUpperCase()}function $b(t,i,s){if(t=We(t),t&&(s||i===n))return _l(t);if(!t||!(i=Xt(i)))return t;var l=bn(t),p=bn(i),b=Sl(l,p),E=El(l,p)+1;return ur(l,b,E).join("")}function Nb(t,i,s){if(t=We(t),t&&(s||i===n))return t.slice(0,Ol(t)+1);if(!t||!(i=Xt(i)))return t;var l=bn(t),p=El(l,bn(i))+1;return ur(l,0,p).join("")}function jb(t,i,s){if(t=We(t),t&&(s||i===n))return t.replace($,"");if(!t||!(i=Xt(i)))return t;var l=bn(t),p=Sl(l,bn(i));return ur(l,p).join("")}function Fb(t,i){var s=ne,l=we;if(tt(i)){var p="separator"in i?i.separator:p;s="length"in i?Te(i.length):s,l="omission"in i?Xt(i.omission):l}t=We(t);var b=t.length;if(Qr(t)){var E=bn(t);b=E.length}if(s>=b)return t;var C=s-ei(l);if(C<1)return l;var L=E?ur(E,0,C).join(""):t.slice(0,C);if(p===n)return L+l;if(E&&(C+=L.length-C),nu(p)){if(t.slice(C).search(p)){var H,z=L;for(p.global||(p=ys(p.source,We(it.exec(p))+"g")),p.lastIndex=0;H=p.exec(z);)var K=H.index;L=L.slice(0,K===n?C:K)}}else if(t.indexOf(Xt(p),C)!=C){var J=L.lastIndexOf(p);J>-1&&(L=L.slice(0,J))}return L+l}function Wb(t){return t=We(t),t&&xr.test(t)?t.replace(Xr,vg):t}var Ub=si(function(t,i,s){return t+(s?" ":"")+i.toUpperCase()}),ou=hf("toUpperCase");function dd(t,i,s){return t=We(t),i=s?n:i,i===n?lg(t)?yg(t):tg(t):t.match(i)||[]}var pd=Re(function(t,i){try{return Gt(t,n,i)}catch(s){return tu(s)?s:new Se(s)}}),Bb=zn(function(t,i){return on(i,function(s){s=Ln(s),Bn(t,s,Qs(t[s],t))}),t});function Hb(t){var i=t==null?0:t.length,s=de();return t=i?et(t,function(l){if(typeof l[1]!="function")throw new an(c);return[s(l[0]),l[1]]}):[],Re(function(l){for(var p=-1;++p<i;){var b=t[p];if(Gt(b[0],this,l))return Gt(b[1],this,l)}})}function zb(t){return v0(un(t,_))}function au(t){return function(){return t}}function qb(t,i){return t==null||t!==t?i:t}var Kb=mf(),Gb=mf(!0);function Ut(t){return t}function su(t){return ql(typeof t=="function"?t:un(t,_))}function Yb(t){return Gl(un(t,_))}function Xb(t,i){return Yl(t,un(i,_))}var Vb=Re(function(t,i){return function(s){return Wi(s,t,i)}}),Jb=Re(function(t,i){return function(s){return Wi(t,s,i)}});function uu(t,i,s){var l=mt(i),p=Bo(i,l);s==null&&!(tt(i)&&(p.length||!l.length))&&(s=i,i=t,t=this,p=Bo(i,mt(i)));var b=!(tt(s)&&"chain"in s)||!!s.chain,E=Kn(t);return on(p,function(C){var L=i[C];t[C]=L,E&&(t.prototype[C]=function(){var H=this.__chain__;if(b||H){var z=t(this.__wrapped__),K=z.__actions__=jt(this.__actions__);return K.push({func:L,args:arguments,thisArg:t}),z.__chain__=H,z}return L.apply(t,nr([this.value()],arguments))})}),t}function Zb(){return wt._===this&&(wt._=xg),this}function cu(){}function Qb(t){return t=Te(t),Re(function(i){return Xl(i,t)})}var e_=Ws(et),t_=Ws(ml),n_=Ws(fs);function hd(t){return Gs(t)?ds(Ln(t)):L0(t)}function r_(t){return function(i){return t==null?n:Lr(t,i)}}var i_=yf(),o_=yf(!0);function lu(){return[]}function fu(){return!1}function a_(){return{}}function s_(){return""}function u_(){return!0}function c_(t,i){if(t=Te(t),t<1||t>qe)return[];var s=X,l=xt(t,X);i=de(i),t-=X;for(var p=vs(l,i);++s<t;)i(s);return p}function l_(t){return xe(t)?et(t,Ln):Vt(t)?[t]:jt(Df(We(t)))}function f_(t){var i=++Sg;return We(t)+i}var d_=Yo(function(t,i){return t+i},0),p_=Us("ceil"),h_=Yo(function(t,i){return t/i},1),v_=Us("floor");function m_(t){return t&&t.length?Uo(t,Ut,Ts):n}function g_(t,i){return t&&t.length?Uo(t,de(i,2),Ts):n}function y_(t){return wl(t,Ut)}function w_(t,i){return wl(t,de(i,2))}function b_(t){return t&&t.length?Uo(t,Ut,As):n}function __(t,i){return t&&t.length?Uo(t,de(i,2),As):n}var S_=Yo(function(t,i){return t*i},1),E_=Us("round"),x_=Yo(function(t,i){return t-i},0);function O_(t){return t&&t.length?hs(t,Ut):0}function T_(t,i){return t&&t.length?hs(t,de(i,2)):0}return g.after=Y1,g.ary=qf,g.assign=kw,g.assignIn=od,g.assignInWith=sa,g.assignWith=$w,g.at=Nw,g.before=Kf,g.bind=Qs,g.bindAll=Bb,g.bindKey=Gf,g.castArray=aw,g.chain=Bf,g.chunk=vy,g.compact=my,g.concat=gy,g.cond=Hb,g.conforms=zb,g.constant=au,g.countBy=O1,g.create=jw,g.curry=Yf,g.curryRight=Xf,g.debounce=Vf,g.defaults=Fw,g.defaultsDeep=Ww,g.defer=X1,g.delay=V1,g.difference=yy,g.differenceBy=wy,g.differenceWith=by,g.drop=_y,g.dropRight=Sy,g.dropRightWhile=Ey,g.dropWhile=xy,g.fill=Oy,g.filter=C1,g.flatMap=A1,g.flatMapDeep=I1,g.flatMapDepth=L1,g.flatten=jf,g.flattenDeep=Ty,g.flattenDepth=Cy,g.flip=J1,g.flow=Kb,g.flowRight=Gb,g.fromPairs=Ry,g.functions=Gw,g.functionsIn=Yw,g.groupBy=M1,g.initial=Ay,g.intersection=Iy,g.intersectionBy=Ly,g.intersectionWith=My,g.invert=Vw,g.invertBy=Jw,g.invokeMap=k1,g.iteratee=su,g.keyBy=$1,g.keys=mt,g.keysIn=Wt,g.map=ta,g.mapKeys=Qw,g.mapValues=eb,g.matches=Yb,g.matchesProperty=Xb,g.memoize=ra,g.merge=tb,g.mergeWith=ad,g.method=Vb,g.methodOf=Jb,g.mixin=uu,g.negate=ia,g.nthArg=Qb,g.omit=nb,g.omitBy=rb,g.once=Z1,g.orderBy=N1,g.over=e_,g.overArgs=Q1,g.overEvery=t_,g.overSome=n_,g.partial=eu,g.partialRight=Jf,g.partition=j1,g.pick=ib,g.pickBy=sd,g.property=hd,g.propertyOf=r_,g.pull=Ny,g.pullAll=Wf,g.pullAllBy=jy,g.pullAllWith=Fy,g.pullAt=Wy,g.range=i_,g.rangeRight=o_,g.rearg=ew,g.reject=U1,g.remove=Uy,g.rest=tw,g.reverse=Js,g.sampleSize=H1,g.set=ab,g.setWith=sb,g.shuffle=z1,g.slice=By,g.sortBy=G1,g.sortedUniq=Xy,g.sortedUniqBy=Vy,g.split=Ab,g.spread=nw,g.tail=Jy,g.take=Zy,g.takeRight=Qy,g.takeRightWhile=e1,g.takeWhile=t1,g.tap=m1,g.throttle=rw,g.thru=ea,g.toArray=nd,g.toPairs=ud,g.toPairsIn=cd,g.toPath=l_,g.toPlainObject=id,g.transform=ub,g.unary=iw,g.union=n1,g.unionBy=r1,g.unionWith=i1,g.uniq=o1,g.uniqBy=a1,g.uniqWith=s1,g.unset=cb,g.unzip=Zs,g.unzipWith=Uf,g.update=lb,g.updateWith=fb,g.values=li,g.valuesIn=db,g.without=u1,g.words=dd,g.wrap=ow,g.xor=c1,g.xorBy=l1,g.xorWith=f1,g.zip=d1,g.zipObject=p1,g.zipObjectDeep=h1,g.zipWith=v1,g.entries=ud,g.entriesIn=cd,g.extend=od,g.extendWith=sa,uu(g,g),g.add=d_,g.attempt=pd,g.camelCase=mb,g.capitalize=ld,g.ceil=p_,g.clamp=pb,g.clone=sw,g.cloneDeep=cw,g.cloneDeepWith=lw,g.cloneWith=uw,g.conformsTo=fw,g.deburr=fd,g.defaultTo=qb,g.divide=h_,g.endsWith=gb,g.eq=Sn,g.escape=yb,g.escapeRegExp=wb,g.every=T1,g.find=R1,g.findIndex=$f,g.findKey=Uw,g.findLast=P1,g.findLastIndex=Nf,g.findLastKey=Bw,g.floor=v_,g.forEach=Hf,g.forEachRight=zf,g.forIn=Hw,g.forInRight=zw,g.forOwn=qw,g.forOwnRight=Kw,g.get=ru,g.gt=dw,g.gte=pw,g.has=Xw,g.hasIn=iu,g.head=Ff,g.identity=Ut,g.includes=D1,g.indexOf=Py,g.inRange=hb,g.invoke=Zw,g.isArguments=kr,g.isArray=xe,g.isArrayBuffer=hw,g.isArrayLike=Ft,g.isArrayLikeObject=ut,g.isBoolean=vw,g.isBuffer=cr,g.isDate=mw,g.isElement=gw,g.isEmpty=yw,g.isEqual=ww,g.isEqualWith=bw,g.isError=tu,g.isFinite=_w,g.isFunction=Kn,g.isInteger=Zf,g.isLength=oa,g.isMap=Qf,g.isMatch=Sw,g.isMatchWith=Ew,g.isNaN=xw,g.isNative=Ow,g.isNil=Cw,g.isNull=Tw,g.isNumber=ed,g.isObject=tt,g.isObjectLike=ot,g.isPlainObject=Ki,g.isRegExp=nu,g.isSafeInteger=Rw,g.isSet=td,g.isString=aa,g.isSymbol=Vt,g.isTypedArray=ci,g.isUndefined=Pw,g.isWeakMap=Aw,g.isWeakSet=Iw,g.join=Dy,g.kebabCase=bb,g.last=ln,g.lastIndexOf=ky,g.lowerCase=_b,g.lowerFirst=Sb,g.lt=Lw,g.lte=Mw,g.max=m_,g.maxBy=g_,g.mean=y_,g.meanBy=w_,g.min=b_,g.minBy=__,g.stubArray=lu,g.stubFalse=fu,g.stubObject=a_,g.stubString=s_,g.stubTrue=u_,g.multiply=S_,g.nth=$y,g.noConflict=Zb,g.noop=cu,g.now=na,g.pad=Eb,g.padEnd=xb,g.padStart=Ob,g.parseInt=Tb,g.random=vb,g.reduce=F1,g.reduceRight=W1,g.repeat=Cb,g.replace=Rb,g.result=ob,g.round=E_,g.runInContext=A,g.sample=B1,g.size=q1,g.snakeCase=Pb,g.some=K1,g.sortedIndex=Hy,g.sortedIndexBy=zy,g.sortedIndexOf=qy,g.sortedLastIndex=Ky,g.sortedLastIndexBy=Gy,g.sortedLastIndexOf=Yy,g.startCase=Ib,g.startsWith=Lb,g.subtract=x_,g.sum=O_,g.sumBy=T_,g.template=Mb,g.times=c_,g.toFinite=Gn,g.toInteger=Te,g.toLength=rd,g.toLower=Db,g.toNumber=fn,g.toSafeInteger=Dw,g.toString=We,g.toUpper=kb,g.trim=$b,g.trimEnd=Nb,g.trimStart=jb,g.truncate=Fb,g.unescape=Wb,g.uniqueId=f_,g.upperCase=Ub,g.upperFirst=ou,g.each=Hf,g.eachRight=zf,g.first=Ff,uu(g,function(){var t={};return An(g,function(i,s){He.call(g.prototype,s)||(t[s]=i)}),t}(),{chain:!1}),g.VERSION=o,on(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){g[t].placeholder=g}),on(["drop","take"],function(t,i){De.prototype[t]=function(s){s=s===n?1:pt(Te(s),0);var l=this.__filtered__&&!i?new De(this):this.clone();return l.__filtered__?l.__takeCount__=xt(s,l.__takeCount__):l.__views__.push({size:xt(s,X),type:t+(l.__dir__<0?"Right":"")}),l},De.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),on(["filter","map","takeWhile"],function(t,i){var s=i+1,l=s==ue||s==_e;De.prototype[t]=function(p){var b=this.clone();return b.__iteratees__.push({iteratee:de(p,3),type:s}),b.__filtered__=b.__filtered__||l,b}}),on(["head","last"],function(t,i){var s="take"+(i?"Right":"");De.prototype[t]=function(){return this[s](1).value()[0]}}),on(["initial","tail"],function(t,i){var s="drop"+(i?"":"Right");De.prototype[t]=function(){return this.__filtered__?new De(this):this[s](1)}}),De.prototype.compact=function(){return this.filter(Ut)},De.prototype.find=function(t){return this.filter(t).head()},De.prototype.findLast=function(t){return this.reverse().find(t)},De.prototype.invokeMap=Re(function(t,i){return typeof t=="function"?new De(this):this.map(function(s){return Wi(s,t,i)})}),De.prototype.reject=function(t){return this.filter(ia(de(t)))},De.prototype.slice=function(t,i){t=Te(t);var s=this;return s.__filtered__&&(t>0||i<0)?new De(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),i!==n&&(i=Te(i),s=i<0?s.dropRight(-i):s.take(i-t)),s)},De.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},De.prototype.toArray=function(){return this.take(X)},An(De.prototype,function(t,i){var s=/^(?:filter|find|map|reject)|While$/.test(i),l=/^(?:head|last)$/.test(i),p=g[l?"take"+(i=="last"?"Right":""):i],b=l||/^find/.test(i);p&&(g.prototype[i]=function(){var E=this.__wrapped__,C=l?[1]:arguments,L=E instanceof De,H=C[0],z=L||xe(E),K=function(Le){var $e=p.apply(g,nr([Le],C));return l&&J?$e[0]:$e};z&&s&&typeof H=="function"&&H.length!=1&&(L=z=!1);var J=this.__chain__,re=!!this.__actions__.length,pe=b&&!J,Ce=L&&!re;if(!b&&z){E=Ce?E:new De(this);var he=t.apply(E,C);return he.__actions__.push({func:ea,args:[K],thisArg:n}),new sn(he,J)}return pe&&Ce?t.apply(this,C):(he=this.thru(K),pe?l?he.value()[0]:he.value():he)})}),on(["pop","push","shift","sort","splice","unshift"],function(t){var i=To[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",l=/^(?:pop|shift)$/.test(t);g.prototype[t]=function(){var p=arguments;if(l&&!this.__chain__){var b=this.value();return i.apply(xe(b)?b:[],p)}return this[s](function(E){return i.apply(xe(E)?E:[],p)})}}),An(De.prototype,function(t,i){var s=g[i];if(s){var l=s.name+"";He.call(ii,l)||(ii[l]=[]),ii[l].push({name:i,func:s})}}),ii[Go(n,D).name]=[{name:"wrapper",func:n}],De.prototype.clone=Wg,De.prototype.reverse=Ug,De.prototype.value=Bg,g.prototype.at=g1,g.prototype.chain=y1,g.prototype.commit=w1,g.prototype.next=b1,g.prototype.plant=S1,g.prototype.reverse=E1,g.prototype.toJSON=g.prototype.valueOf=g.prototype.value=x1,g.prototype.first=g.prototype.head,Mi&&(g.prototype[Mi]=_1),g},ti=wg();Cr?((Cr.exports=ti)._=ti,ss._=ti):wt._=ti}).call(Fr)})(Ua,Ua.exports);var vn=Ua.exports;function GR(e){const[r,n]=q.useState(e),o=q.useMemo(()=>YR(r,n),[]);return{state:r,actions:{...o,set:n}}}function YR(e,r=()=>{}){return Object.keys(e).reduce((o,a)=>({...o,[`set${vn.upperFirst(a)}`]:u=>r(c=>({...c,[a]:u}))}),{})}const XR=(e,r,n={})=>{n={timeout:200,...n};const o=q.useRef(),a=()=>{o.current&&(clearTimeout(o.current),o.current=null)};return q.useCallback((u,...c)=>{a(),r&&u.detail===1&&(o.current=setTimeout(()=>{r(u,...c)},n.timeout)),u.detail%2===0&&e(u,...c)},[r,e,n.timeout])};function Jn(e){return typeof e=="function"}function Nv(e){var r=function(o){Error.call(o),o.stack=new Error().stack},n=e(r);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Yu=Nv(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
175
203
|
`+n.map(function(o,a){return a+1+") "+o.toString()}).join(`
|
|
176
|
-
`):"",this.name="UnsubscriptionError",this.errors=n}});function fl(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var Ga=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,n,o,a,u;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var f=el(l),p=f.next();!p.done;p=f.next()){var m=p.value;m.remove(this)}}catch(y){r={error:y}}finally{try{p&&!p.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}else l.remove(this);var w=this.initialTeardown;if(zn(w))try{w()}catch(y){u=y instanceof qu?y.errors:[y]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var C=el(b),h=C.next();!h.done;h=C.next()){var S=h.value;try{$p(S)}catch(y){u=u??[],y instanceof qu?u=Ui(Ui([],Aa(u)),Aa(y.errors)):u.push(y)}}}catch(y){o={error:y}}finally{try{h&&!h.done&&(a=C.return)&&a.call(C)}finally{if(o)throw o.error}}}if(u)throw new qu(u)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)$p(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&fl(n,r)},e.prototype.remove=function(r){var n=this._finalizers;n&&fl(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),Av=Ga.EMPTY;function Iv(e){return e instanceof Ga||e&&"closed"in e&&zn(e.remove)&&zn(e.add)&&zn(e.unsubscribe)}function $p(e){zn(e)?e():e.unsubscribe()}var Lv={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},dl={setTimeout:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=dl.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,Ui([e,r],Aa(n))):setTimeout.apply(void 0,Ui([e,r],Aa(n)))},clearTimeout:function(e){var r=dl.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function BP(e){dl.setTimeout(function(){throw e})}function Fp(){}function Oa(e){e()}var Mv=function(e){ja(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,Iv(n)&&n.add(o)):o.destination=qP,o}return r.create=function(n,o,a){return new pl(n,o,a)},r.prototype.next=function(n){this.isStopped||this._next(n)},r.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Ga),HP=Function.prototype.bind;function Ku(e,r){return HP.call(e,r)}var UP=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var n=this.partialObserver;if(n.next)try{n.next(r)}catch(o){ya(o)}},e.prototype.error=function(r){var n=this.partialObserver;if(n.error)try{n.error(r)}catch(o){ya(o)}else ya(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(n){ya(n)}},e}(),pl=function(e){ja(r,e);function r(n,o,a){var u=e.call(this)||this,l;if(zn(n)||!n)l={next:n??void 0,error:o??void 0,complete:a??void 0};else{var f;u&&Lv.useDeprecatedNextContext?(f=Object.create(n),f.unsubscribe=function(){return u.unsubscribe()},l={next:n.next&&Ku(n.next,f),error:n.error&&Ku(n.error,f),complete:n.complete&&Ku(n.complete,f)}):l=n}return u.destination=new UP(l),u}return r}(Mv);function ya(e){BP(e)}function zP(e){throw e}var qP={closed:!0,next:Fp,error:zP,complete:Fp},KP=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function GP(e){return e}function YP(e){return e.length===0?GP:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var Wp=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var n=new e;return n.source=this,n.operator=r,n},e.prototype.subscribe=function(r,n,o){var a=this,u=VP(r)?r:new pl(r,n,o);return Oa(function(){var l=a,f=l.operator,p=l.source;u.add(f?f.call(u,p):p?a._subscribe(u):a._trySubscribe(u))}),u},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},e.prototype.forEach=function(r,n){var o=this;return n=jp(n),new n(function(a,u){var l=new pl({next:function(f){try{r(f)}catch(p){u(p),l.unsubscribe()}},error:u,complete:a});o.subscribe(l)})},e.prototype._subscribe=function(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)},e.prototype[KP]=function(){return this},e.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return YP(r)(this)},e.prototype.toPromise=function(r){var n=this;return r=jp(r),new r(function(o,a){var u;n.subscribe(function(l){return u=l},function(l){return a(l)},function(){return o(u)})})},e.create=function(r){return new e(r)},e}();function jp(e){var r;return(r=e??Lv.Promise)!==null&&r!==void 0?r:Promise}function XP(e){return e&&zn(e.next)&&zn(e.error)&&zn(e.complete)}function VP(e){return e&&e instanceof Mv||XP(e)&&Iv(e)}var JP=Rv(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),fi=function(e){ja(r,e);function r(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return r.prototype.lift=function(n){var o=new Bp(this,this);return o.operator=n,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new JP},r.prototype.next=function(n){var o=this;Oa(function(){var a,u;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var l=el(o.currentObservers),f=l.next();!f.done;f=l.next()){var p=f.value;p.next(n)}}catch(m){a={error:m}}finally{try{f&&!f.done&&(u=l.return)&&u.call(l)}finally{if(a)throw a.error}}}})},r.prototype.error=function(n){var o=this;Oa(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=n;for(var a=o.observers;a.length;)a.shift().error(n)}})},r.prototype.complete=function(){var n=this;Oa(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var o=n.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var o=this,a=this,u=a.hasError,l=a.isStopped,f=a.observers;return u||l?Av:(this.currentObservers=null,f.push(n),new Ga(function(){o.currentObservers=null,fl(f,n)}))},r.prototype._checkFinalizedStatuses=function(n){var o=this,a=o.hasError,u=o.thrownError,l=o.isStopped;a?n.error(u):l&&n.complete()},r.prototype.asObservable=function(){var n=new Wp;return n.source=this,n},r.create=function(n,o){return new Bp(n,o)},r}(Wp),Bp=function(e){ja(r,e);function r(n,o){var a=e.call(this)||this;return a.destination=n,a.source=o,a}return r.prototype.next=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,n)},r.prototype.error=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,n)},r.prototype.complete=function(){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||o===void 0||o.call(n)},r.prototype._subscribe=function(n){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(n))!==null&&a!==void 0?a:Av},r}(fi),Dv=(e=>(e.RELOAD="reload",e))(Dv||{}),kv=(e=>(e.RENAME="rename",e))(kv||{});const ZP=new fi,QP=new fi,eR=new fi;var Nv=(e=>(e.SAVE_ALL="save-all",e))(Nv||{});const tR=new fi;var $v=(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))($v||{});const nR=new fi;function Fv(e){if(e==="")throw new Error("Please enter a valid name");if(!/^[a-zA-Z]/i.test(e))throw new Error("The name can only start with a letter");if(!/^[\w-]+$/i.test(e))throw new Error("Invalid name");return!0}function rR(e){if(!e)return null;if(typeof e=="string")try{Fv(e)}catch(r){return r.message}}function Ya(e){const r=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"\\\\]*(?:\\\\.|"(?:[^"\\\\]*\\\\.)*[^"\\\\]*"))*[^"]*$)',"gm");return e.replace(r,"")}var Nl=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e))(Nl||{});const Ir={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms"};var vn=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.METHOD="method",e.CLASS="class",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.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e))(vn||{}),kr=(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))(kr||{}),$l=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))($l||{});const Wv="roles.json",jv="qodlyApp.json",iR="model.4DModel";function Bv(e){const r=e.split("."),n=r.pop(),o=r.join(".").split("/")[0];switch(!0){case n==="4DModel":return vn.MODEL;case n==="WebForm":return vn.WEBFORM;case(["4dm","4qs","4qm"].includes(n)&&o===Ir.METHODS):return vn.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===Ir.CLASSES):return vn.CLASS;case e===Wv:return vn.ROLES;case e===jv:return vn.SETTINGS;default:return vn.WEBFORM}}function oR(e,r=!1){switch(e){case Ir.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Ir.CLASSES:case Ir.METHODS:return r?"4qs":"4dm";default:return""}}function aR(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class Hv{constructor(){dd(this,"current",Promise.resolve())}lock(){let r;const n=new Promise(a=>{r=a}),o=this.current.then(()=>r);return this.current=n,o}}function Uv(){const e=new Hv;return async r=>{const n=await e.lock(),o=await r();return n(),o}}const zv=an.curry((e,r,n)=>e&&an.get(n,e)===r),sR=an.curry((e,r,n)=>an.get(n,e)!==r),uR=an.curry((e,r)=>an.get(r,"id")!==e),lR=an.curry((e,r)=>an.get(r,"id")===e),cR=an.curry((e,r)=>an.get(r,"path")===e);function fR(e="id",r,n){return n.findIndex(zv(e,r))!==-1}function dR(e){if(!e)return"";const{id:r,namespace:n}=e;return n?`${n}:${r}`:r}function qv(e){return!!["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function Kv(e){var r;return!!(e.kind==="relatedEntities"||(r=e.type)!=null&&r.includes("Selection")||e.behavior==="relatedEntities")}function Gv(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!qv(e)}function pR(e){return Kv(e)||Gv(e)}function hR(e){return e.applyTo==="dataStore"}function vR(e){return e.applyTo==="dataClass"}function mR(e){return e.applyTo==="entity"}function gR(e){return e.applyTo==="entityCollection"}function yR(e){return e.type==="entity"}function wR(e){return e.type==="entitysel"}function Yv(e){return e.dataType==="array"}function Xv(e){return e.dataType==="object"}function Vv(e){return e.type==="scalar"}function bR(e){return Yv(e)||Xv(e)||Vv(e)}const _R=e=>e!=null&&e.type==="entity",SR=e=>e.type==="entitysel",ER=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",xR=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",OR=e=>e.type==="scalar"&&e.dataType==="date";function TR(){return new Promise((e,r)=>{window.addEventListener("bundle:ready",n=>n.data?e():r(n.caughtErr))})}var Gi=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(Gi||{}),Jv=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(Jv||{}),Fl=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Fl||{});const CR={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function PR(e){var u;let r={};try{const l=((u=e.match(/\/\/%attributes = (.*)/))==null?void 0:u[1])||"";r=JSON.parse(l)}catch{}const{published4DMobile:n,...o}=r;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:Gi.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!n,publishedRestOptions:n||{table:"",scope:Fl.table}},...o}}function Zv(e){const r={};return e.invisible&&(r.invisible=!0),e.shared&&(r.shared=!0),e.executedOnServer&&(r.executedOnServer=!0),e.preemptive&&[Gi.capable,Gi.incapable].includes(e.preemptive)&&(r.preemptive=e.preemptive),e.publishedSoap&&(r.publishedSoap=!0,e.publishedWsdl&&(r.publishedWsdl=!0)),e.publishedWeb&&(r.publishedWeb=!0),e.publishedSql&&(r.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(r.published4DMobile=e.publishedRestOptions),JSON.stringify(r).replace(/"(true|false)"/g,"$1")}function RR(e,r,n=!1){const o=an.isString(r)?r:Zv(r);if(!n&&Qv(e))return e;const a=em(e);return`//%attributes = ${o}\r
|
|
177
|
-
${a}`}function Qv(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function em(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const lt="/rest/$designer",io="/rest/$designer-ext",Wl="/$shared";function AR(...e){return r=>{if(e.length===0)return r;const n={...r};return e.forEach(o=>{typeof n[o]=="string"&&(n[o]=new Date(n[o]))}),n}}class hl extends Error{constructor(r,n,o){super(),this.url=r,this.response=n,this.data=o}log(){console.error("Error while sending the request",this)}}async function He(e,r){const n=await window.fetch(e,r);if(/401/.test(n.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(n.status.toString())){let a;try{const u=await n.json();a=new hl(e,n,u)}catch{a=new hl(e,n)}throw a.log(),a}return await n.json()}function IR(e){return He(io,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function LR(e){return He(io,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const tm=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:$l.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function MR(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await He(lt,{method:"POST",body:JSON.stringify({verb:kr.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const l=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?f:l:a.webServerHTTPPort?l:f})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:u,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${u}/$lib/renderer/`,debugger:`ws${o?"s":""}://${r}/remoteDebugger`,lsp:`ws${o?"s":""}://${r}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),tm()}}async function nm(e){return await He(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function DR(...e){return(await Promise.all(e.map(o=>nm({root:o,verb:kr.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:l})=>({name:a,type:l,date:u,path:`${l}/${a}`}))).flat()}function kR(e){return He(`/rest/$getWebForm/${e}`,{method:"GET"})}function NR(e){return He(lt,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(r=>({...r,content:[vn.METHOD,vn.CLASS].includes(r.type)?Ya(r.content):r.content}))}function $R(e){return e.type==="folder"?He(io,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):He(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function FR(e){return e.type==="folder"?(await He(io,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await He(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function WR(e){return He(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function jR(e){return He(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function BR(e){return(await He(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function HR(...e){return await He(lt,{method:"POST",body:JSON.stringify({verb:kr.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function UR(e){const r=await He("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function zR(){return await He("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function qR({name:e,path:r="",root:n="root",asText:o=!1}){return He(lt,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function KR(){try{const e=await He(`${Wl}/shared_datasources.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{}}}async function GR(){try{const e=await He(`${Wl}/shared_css.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{classes:[]}}}async function YR(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const XR=Uv(),VR=async e=>{const r={verb:kr.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return XR(async()=>(await He(lt,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},rm=async e=>{const r=await He(lt,{method:"POST",body:JSON.stringify({...e,verb:kr.SET_FILE_CONTENT,root:Nl.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Bv(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},JR=async e=>await rm({name:"crafted_components.json",path:Ir.WEBFORMS,content:e});function ZR(e){return He(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function QR(e){return He(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function eA(e){return He(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function tA(e){return He(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(r=>Array.isArray(r)?r:{...r,content:["4dm","4qm","4qs"].includes(r.ext)?Ya(r.content):r.content})}function nA(e){return He(lt,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function rA(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function iA(e){const r=new RegExp(/(->)(.*)/gi).exec(e);if(r!==null)return r[0].replace("->","");const n=/:([^)]*)$/.exec(e);return n!==null?`result : ${n[1].trim()}`:""}function oA(e){const r=rA(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),l=a.split(":")[1].trim();return{name:u,type:l}}),n=iA(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function aA(e,r){const o=e.split(".").pop();try{const a=await He(lt,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=Ya(a.content);const{params:u,result:l}=oA(a.parameters);return{...a,params:u,returns:l}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var im=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(im||{});function sA(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}var om=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(om||{}),am=(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))(am||{}),sm=(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))(sm||{});const uA={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},lA={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=lt;exports.AppLoader=pP;exports.ControlledSwitch=cP;exports.DATASOURCE_THEMES=uA;exports.DatasourcesActions=kv;exports.DesignerRequestVerb=kr;exports.Dialog=FS;exports.DialogBody=nh;exports.EActivity=im;exports.EDITOR=lA;exports.EIDENTIFIERS=am;exports.ERROR_CODES=sm;exports.EWebFormStyleClassScope=om;exports.EXT_API_PREFIX=io;exports.FileFolderType=vn;exports.FolderRootPath=Ir;exports.FolderRootType=Nl;exports.HTTPError=hl;exports.IPreemptive=Gi;exports.IPublished=Jv;exports.IPublishedRestScope=Fl;exports.IdentityProvider=NP;exports.Incase=Ax;exports.IndentLines=Ih;exports.LogoSVG=Sv;exports.LspActions=$v;exports.MODEL_TAB_PATH=iR;exports.Mutex=Hv;exports.Overlay=th;exports.Portal=zp;exports.PublishOptions=CR;exports.ROLES_TAB_PATH=Wv;exports.RemoteDebuggerMode=$l;exports.SETTINGS_TAB_PATH=jv;exports.SHARED_API_PREFIX=Wl;exports.Switcher=Lh;exports.TabEventsActions=Nv;exports.Tip=TC;exports.TipsProvider=EC;exports.Toast=YE;exports.Tooltip=fP;exports.Tree=Rx;exports.TreeIcon=Th;exports.TreeNode=Tl;exports.WebformActions=Dv;exports._isArrayDatasource=ER;exports._isObjectDatasource=xR;exports.addAttributesToContent=RR;exports.addFolder=WR;exports.by=zv;exports.byId=lR;exports.byPath=cR;exports.checkUpdates=IR;exports.createFolder=ZR;exports.datasourcesSubject=ZP;exports.dropFile=FR;exports.dropFolder=BR;exports.exists=fR;exports.extractWebformName=aR;exports.getAppSettings=MR;exports.getCatalog=zR;exports.getDatasourceId=dR;exports.getDefaultAppSettings=tm;exports.getFile=NR;exports.getFileContent=qR;exports.getFileExtentionFromType=oR;exports.getFilesInfo=HR;exports.getFolder=nm;exports.getFolders=DR;exports.getFunctionContent=aA;exports.getMonacoTheme=YR;exports.getNodeInfo=tA;exports.getSharedCSS=GR;exports.getSharedDatasources=KR;exports.getTypeFromExtension=Bv;exports.getWebForm=kR;exports.hasAttributesString=Qv;exports.http=He;exports.installUpdates=LR;exports.isArrayDatasource=Yv;exports.isDataClassMethod=vR;exports.isDataStoreMethod=hR;exports.isDateDatasource=OR;exports.isEntity=_R;exports.isEntityDatasource=yR;exports.isEntityMethod=mR;exports.isEntitySelection=SR;exports.isEntitySelectionDatasource=wR;exports.isEntitySelectionMethod=gR;exports.isObjectDatasource=Xv;exports.isRelatedAttribute=pR;exports.isRelatedEntitiesAttribute=Kv;exports.isRelatedEntityAttribute=Gv;exports.isScalarDatasource=Vv;exports.isSimpleAttribute=qv;exports.isSimpleDatasource=bR;exports.loadDS=TR;exports.log=sA;exports.login=UR;exports.lspSubject=nR;exports.moveItem=eA;exports.outBy=sR;exports.outById=uR;exports.parseAttributes=PR;exports.queue=Uv;exports.removeAttributesString=em;exports.removeItem=QR;exports.renameFile=$R;exports.renameFolder=jR;exports.sanitizeContent=Ya;exports.saveContent=nA;exports.setCraftedComponents=JR;exports.setFileContent=rm;exports.setSharedSources=VR;exports.stringifyAttributes=Zv;exports.tabEventsSubject=tR;exports.toastSubject=eR;exports.transformDates=AR;exports.useDidMountEffect=hP;exports.useDoubleClick=jP;exports.useFeatureFlags=kP;exports.useForwardedRef=MP;exports.useHotkeys=RP;exports.useIdentity=$P;exports.useOutsideClick=AP;exports.usePrevious=IP;exports.useStateObject=FP;exports.useStateRef=LP;exports.useTip=pv;exports.validateName=Fv;exports.validateServerSide=rR;exports.webformSubject=QP;
|
|
204
|
+
`):"",this.name="UnsubscriptionError",this.errors=n}});function vc(e,r){if(e){var n=e.indexOf(r);0<=n&&e.splice(n,1)}}var es=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,n,o,a,u;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var f=ic(c),h=f.next();!h.done;h=f.next()){var m=h.value;m.remove(this)}}catch(w){r={error:w}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}else c.remove(this);var y=this.initialTeardown;if(Jn(y))try{y()}catch(w){u=w instanceof Yu?w.errors:[w]}var _=this._finalizers;if(_){this._finalizers=null;try{for(var O=ic(_),v=O.next();!v.done;v=O.next()){var S=v.value;try{zp(S)}catch(w){u=u??[],w instanceof Yu?u=ro(ro([],Na(u)),Na(w.errors)):u.push(w)}}}catch(w){o={error:w}}finally{try{v&&!v.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}}if(u)throw new Yu(u)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)zp(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&vc(n,r)},e.prototype.remove=function(r){var n=this._finalizers;n&&vc(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}(),jv=es.EMPTY;function Fv(e){return e instanceof es||e&&"closed"in e&&Jn(e.remove)&&Jn(e.add)&&Jn(e.unsubscribe)}function zp(e){Jn(e)?e():e.unsubscribe()}var Wv={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},mc={setTimeout:function(e,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var a=mc.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,ro([e,r],Na(n))):setTimeout.apply(void 0,ro([e,r],Na(n)))},clearTimeout:function(e){var r=mc.delegate;return((r==null?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0};function VR(e){mc.setTimeout(function(){throw e})}function qp(){}function La(e){e()}var Uv=function(e){Ga(r,e);function r(n){var o=e.call(this)||this;return o.isStopped=!1,n?(o.destination=n,Fv(n)&&n.add(o)):o.destination=eP,o}return r.create=function(n,o,a){return new gc(n,o,a)},r.prototype.next=function(n){this.isStopped||this._next(n)},r.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(n){this.destination.next(n)},r.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(es),JR=Function.prototype.bind;function Xu(e,r){return JR.call(e,r)}var ZR=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var n=this.partialObserver;if(n.next)try{n.next(r)}catch(o){Oa(o)}},e.prototype.error=function(r){var n=this.partialObserver;if(n.error)try{n.error(r)}catch(o){Oa(o)}else Oa(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(n){Oa(n)}},e}(),gc=function(e){Ga(r,e);function r(n,o,a){var u=e.call(this)||this,c;if(Jn(n)||!n)c={next:n??void 0,error:o??void 0,complete:a??void 0};else{var f;u&&Wv.useDeprecatedNextContext?(f=Object.create(n),f.unsubscribe=function(){return u.unsubscribe()},c={next:n.next&&Xu(n.next,f),error:n.error&&Xu(n.error,f),complete:n.complete&&Xu(n.complete,f)}):c=n}return u.destination=new ZR(c),u}return r}(Uv);function Oa(e){VR(e)}function QR(e){throw e}var eP={closed:!0,next:qp,error:QR,complete:qp},tP=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function nP(e){return e}function rP(e){return e.length===0?nP:e.length===1?e[0]:function(n){return e.reduce(function(o,a){return a(o)},n)}}var Kp=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var n=new e;return n.source=this,n.operator=r,n},e.prototype.subscribe=function(r,n,o){var a=this,u=oP(r)?r:new gc(r,n,o);return La(function(){var c=a,f=c.operator,h=c.source;u.add(f?f.call(u,h):h?a._subscribe(u):a._trySubscribe(u))}),u},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(n){r.error(n)}},e.prototype.forEach=function(r,n){var o=this;return n=Gp(n),new n(function(a,u){var c=new gc({next:function(f){try{r(f)}catch(h){u(h),c.unsubscribe()}},error:u,complete:a});o.subscribe(c)})},e.prototype._subscribe=function(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)},e.prototype[tP]=function(){return this},e.prototype.pipe=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return rP(r)(this)},e.prototype.toPromise=function(r){var n=this;return r=Gp(r),new r(function(o,a){var u;n.subscribe(function(c){return u=c},function(c){return a(c)},function(){return o(u)})})},e.create=function(r){return new e(r)},e}();function Gp(e){var r;return(r=e??Wv.Promise)!==null&&r!==void 0?r:Promise}function iP(e){return e&&Jn(e.next)&&Jn(e.error)&&Jn(e.complete)}function oP(e){return e&&e instanceof Uv||iP(e)&&Fv(e)}var aP=Nv(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Oi=function(e){Ga(r,e);function r(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return r.prototype.lift=function(n){var o=new Yp(this,this);return o.operator=n,o},r.prototype._throwIfClosed=function(){if(this.closed)throw new aP},r.prototype.next=function(n){var o=this;La(function(){var a,u;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var c=ic(o.currentObservers),f=c.next();!f.done;f=c.next()){var h=f.value;h.next(n)}}catch(m){a={error:m}}finally{try{f&&!f.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}}})},r.prototype.error=function(n){var o=this;La(function(){if(o._throwIfClosed(),!o.isStopped){o.hasError=o.isStopped=!0,o.thrownError=n;for(var a=o.observers;a.length;)a.shift().error(n)}})},r.prototype.complete=function(){var n=this;La(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var o=n.observers;o.length;)o.shift().complete()}})},r.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(r.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),r.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},r.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},r.prototype._innerSubscribe=function(n){var o=this,a=this,u=a.hasError,c=a.isStopped,f=a.observers;return u||c?jv:(this.currentObservers=null,f.push(n),new es(function(){o.currentObservers=null,vc(f,n)}))},r.prototype._checkFinalizedStatuses=function(n){var o=this,a=o.hasError,u=o.thrownError,c=o.isStopped;a?n.error(u):c&&n.complete()},r.prototype.asObservable=function(){var n=new Kp;return n.source=this,n},r.create=function(n,o){return new Yp(n,o)},r}(Kp),Yp=function(e){Ga(r,e);function r(n,o){var a=e.call(this)||this;return a.destination=n,a.source=o,a}return r.prototype.next=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.next)===null||a===void 0||a.call(o,n)},r.prototype.error=function(n){var o,a;(a=(o=this.destination)===null||o===void 0?void 0:o.error)===null||a===void 0||a.call(o,n)},r.prototype.complete=function(){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||o===void 0||o.call(n)},r.prototype._subscribe=function(n){var o,a;return(a=(o=this.source)===null||o===void 0?void 0:o.subscribe(n))!==null&&a!==void 0?a:jv},r}(Oi),Bv=(e=>(e.RELOAD="reload",e))(Bv||{}),Hv=(e=>(e.RENAME="rename",e))(Hv||{});const sP=new Oi,uP=new Oi,cP=new Oi;var zv=(e=>(e.SAVE_ALL="save-all",e))(zv||{});const lP=new Oi;var qv=(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))(qv||{});const fP=new Oi;function Kv(e){if(e==="")throw new Error("Please enter a valid name");if(!/^[a-zA-Z]/i.test(e))throw new Error("The name can only start with a letter");if(!/^[\w-]+$/i.test(e))throw new Error("Invalid name");return!0}function dP(e){if(!e)return null;if(typeof e=="string")try{Kv(e)}catch(r){return r.message}}function ts(e){const r=new RegExp(':(?!4D\\.\\w+)[CPK]?\\d+(?=(?:[^"\\\\]*(?:\\\\.|"(?:[^"\\\\]*\\\\.)*[^"\\\\]*"))*[^"]*$)',"gm");return e.replace(r,"")}var Wc=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e))(Wc||{});const zr={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms"};var Tn=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.METHOD="method",e.CLASS="class",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.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e))(Tn||{}),Yr=(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))(Yr||{}),Uc=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Uc||{});const Gv="roles.json",Yv="qodlyApp.json",pP="model.4DModel";function Xv(e){const r=e.split("."),n=r.pop(),o=r.join(".").split("/")[0];switch(!0){case n==="4DModel":return Tn.MODEL;case n==="WebForm":return Tn.WEBFORM;case(["4dm","4qs","4qm"].includes(n)&&o===zr.METHODS):return Tn.METHOD;case(["4dm","4qs","4qm"].includes(n)&&o===zr.CLASSES):return Tn.CLASS;case e===Gv:return Tn.ROLES;case e===Yv:return Tn.SETTINGS;default:return Tn.WEBFORM}}function hP(e,r=!1){switch(e){case zr.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case zr.CLASSES:case zr.METHODS:return r?"4qs":"4dm";default:return""}}function vP(e,r=""){const n=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return n?n[1]:r}class Vv{constructor(){md(this,"current",Promise.resolve())}lock(){let r;const n=new Promise(a=>{r=a}),o=this.current.then(()=>r);return this.current=n,o}}function Jv(){const e=new Vv;return async r=>{const n=await e.lock(),o=await r();return n(),o}}const Zv=vn.curry((e,r,n)=>e&&vn.get(n,e)===r),mP=vn.curry((e,r,n)=>vn.get(n,e)!==r),gP=vn.curry((e,r)=>vn.get(r,"id")!==e),yP=vn.curry((e,r)=>vn.get(r,"id")===e),wP=vn.curry((e,r)=>vn.get(r,"path")===e);function bP(e="id",r,n){return n.findIndex(Zv(e,r))!==-1}function _P(e){if(!e)return"";const{id:r,namespace:n}=e;return n?`${n}:${r}`:r}function Qv(e){return!!["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function em(e){var r;return!!(e.kind==="relatedEntities"||(r=e.type)!=null&&r.includes("Selection")||e.behavior==="relatedEntities")}function tm(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!Qv(e)}function SP(e){return em(e)||tm(e)}function EP(e){return e.applyTo==="dataStore"}function xP(e){return e.applyTo==="dataClass"}function OP(e){return e.applyTo==="entity"}function TP(e){return e.applyTo==="entityCollection"}function CP(e){return e.type==="entity"}function RP(e){return e.type==="entitysel"}function nm(e){return e.dataType==="array"}function rm(e){return e.dataType==="object"}function im(e){return e.type==="scalar"}function PP(e){return nm(e)||rm(e)||im(e)}const AP=e=>e!=null&&e.type==="entity",IP=e=>e.type==="entitysel",LP=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",MP=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",DP=e=>e.type==="scalar"&&e.dataType==="date";function kP(){return new Promise((e,r)=>{window.addEventListener("bundle:ready",n=>n.data?e():r(n.caughtErr))})}var so=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(so||{}),om=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(om||{}),Bc=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Bc||{});const $P={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function NP(e){var u;let r={};try{const c=((u=e.match(/\/\/%attributes = (.*)/))==null?void 0:u[1])||"";r=JSON.parse(c)}catch{}const{published4DMobile:n,...o}=r;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:so.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!n,publishedRestOptions:n||{table:"",scope:Bc.table}},...o}}function am(e){const r={};return e.invisible&&(r.invisible=!0),e.shared&&(r.shared=!0),e.executedOnServer&&(r.executedOnServer=!0),e.preemptive&&[so.capable,so.incapable].includes(e.preemptive)&&(r.preemptive=e.preemptive),e.publishedSoap&&(r.publishedSoap=!0,e.publishedWsdl&&(r.publishedWsdl=!0)),e.publishedWeb&&(r.publishedWeb=!0),e.publishedSql&&(r.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(r.published4DMobile=e.publishedRestOptions),JSON.stringify(r).replace(/"(true|false)"/g,"$1")}function jP(e,r,n=!1){const o=vn.isString(r)?r:am(r);if(!n&&sm(e))return e;const a=um(e);return`//%attributes = ${o}\r
|
|
205
|
+
${a}`}function sm(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function um(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const ht="/rest/$designer",wo="/rest/$designer-ext",Hc="/$shared";function FP(...e){return r=>{if(e.length===0)return r;const n={...r};return e.forEach(o=>{typeof n[o]=="string"&&(n[o]=new Date(n[o]))}),n}}class yc extends Error{constructor(r,n,o){super(),this.url=r,this.response=n,this.data=o}log(){console.error("Error while sending the request",this)}}async function Ke(e,r){const n=await window.fetch(e,r);if(/401/.test(n.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(n.status.toString())){let a;try{const u=await n.json();a=new yc(e,n,u)}catch{a=new yc(e,n)}throw a.log(),a}return await n.json()}function WP(e){return Ke(wo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function UP(e){return Ke(wo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const cm=()=>{const{host:e,protocol:r}=window.location,n=r==="https:";return{projectOpened:!1,remoteDebuggerMode:Uc.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${n?"s":""}://${e}/remoteDebugger`,lsp:`ws${n?"s":""}://${e}/LSP`},isRestActive:!0}};async function BP(){const{hostname:e,host:r,protocol:n}=window.location,o=n==="https:";try{const a=await Ke(ht,{method:"POST",body:JSON.stringify({verb:Yr.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),u=(()=>{if(a.rendererPath)return a.rendererPath;const c=`http://${e}:${a.webServerHTTPPort}`,f=`https://${e}:${a.webServerHTTPSPort}`;return a.webServerHTTPPort&&a.webServerHTTPSPort?o?f:c:a.webServerHTTPPort?c:f})();return{projectOpened:a.webServerHTTPSPort>0||a.webServerHTTPPort>0,remoteDebuggerMode:a.remoteDebuggerMode,baseUrl:u,qodly:typeof a.qodly>"u"?!0:a.qodly,urls:{renderer:a.rendererPath||`${u}/$lib/renderer/`,debugger:`ws${o?"s":""}://${r}/remoteDebugger`,lsp:`ws${o?"s":""}://${r}/LSP`},isRestActive:a.isRESTActive}}catch(a){return console.error(a),cm()}}async function lm(e){return await Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function HP(...e){return(await Promise.all(e.map(o=>lm({root:o,verb:Yr.GET_FOLDER})))).map(({children:o})=>o.map(({name:a,date:u,type:c})=>({name:a,type:c,date:u,path:`${c}/${a}`}))).flat()}function zP(e){return Ke(`/rest/$getWebForm/${e}`,{method:"GET"})}function qP(e){return Ke(ht,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(r=>({...r,content:[Tn.METHOD,Tn.CLASS].includes(r.type)?ts(r.content):r.content}))}function KP(e){return e.type==="folder"?Ke(wo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function GP(e){return e.type==="folder"?(await Ke(wo,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function YP(e){return Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function XP(e){return Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function VP(e){return(await Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function JP(...e){return await Ke(ht,{method:"POST",body:JSON.stringify({verb:Yr.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function ZP(e){const r=await Ke("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return r.isLogged&&r.success}async function QP(){return await Ke("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function eA({name:e,path:r="",root:n="root",asText:o=!1}){return Ke(ht,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:n,path:r,name:e,asText:o}),headers:new Headers({"Content-Type":"application/json"})})}async function tA(){try{const e=await Ke(`${Hc}/shared_datasources.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{}}}async function nA(){try{const e=await Ke(`${Hc}/shared_css.json?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})});return typeof e=="string"?JSON.parse(e):e}catch{return{classes:[]}}}async function rA(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const iA=Jv(),oA=async e=>{const r={verb:Yr.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:e};return iA(async()=>(await Ke(ht,{method:"POST",body:JSON.stringify(r),headers:new Headers({"Content-Type":"application/json"})}),e))},fm=async e=>{const r=await Ke(ht,{method:"POST",body:JSON.stringify({...e,verb:Yr.SET_FILE_CONTENT,root:Wc.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),n=Xv(`${e.path||"Sources"}/${e.name}`);return{...r,type:n,size:0}},aA=async e=>await fm({name:"crafted_components.json",path:zr.WEBFORMS,content:e});function sA(e){return Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function uA(e){return Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function cA(e){return Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function lA(e){return Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(r=>Array.isArray(r)?r:{...r,content:["4dm","4qm","4qs"].includes(r.ext)?ts(r.content):r.content})}function fA(e){return Ke(ht,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function dA(e){const r=new RegExp(/^\((.+)(?=\))/gi).exec(e);return r!==null?r[1]:""}function pA(e){const r=new RegExp(/(->)(.*)/gi).exec(e);if(r!==null)return r[0].replace("->","");const n=/:([^)]*)$/.exec(e);return n!==null?`result : ${n[1].trim()}`:""}function hA(e){const r=dA(e).split(/[;,]/g).filter(Boolean).map(a=>{const u=a.split(":")[0].trim(),c=a.split(":")[1].trim();return{name:u,type:c}}),n=pA(e),o=n?{name:n.split(":")[0].trim(),type:n.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:r,result:o}}async function vA(e,r){const o=e.split(".").pop();try{const a=await Ke(ht,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:r,functionName:o}),headers:new Headers({"Content-Type":"application/json"})});a.content=ts(a.content);const{params:u,result:c}=hA(a.parameters);return{...a,params:u,returns:c}}catch(a){return console.error(a),{className:r,functionName:o,filePath:e,content:"",params:[]}}}var dm=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(dm||{});function mA(e,r){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...r}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(n=>{})}var pm=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(pm||{}),hm=(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))(hm||{}),vm=(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))(vm||{});const gA={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},yA={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=ht;exports.AppLoader=SR;exports.ControlledSwitch=wR;exports.DATASOURCE_THEMES=gA;exports.DatasourcesActions=Hv;exports.DesignerRequestVerb=Yr;exports.Dialog=KS;exports.DialogBody=ch;exports.EActivity=dm;exports.EDITOR=yA;exports.EIDENTIFIERS=hm;exports.ERROR_CODES=vm;exports.EWebFormStyleClassScope=pm;exports.EXT_API_PREFIX=wo;exports.FileFolderType=Tn;exports.FolderRootPath=zr;exports.FolderRootType=Wc;exports.HTTPError=yc;exports.IPreemptive=so;exports.IPublished=om;exports.IPublishedRestScope=Bc;exports.IdentityProvider=qR;exports.Incase=Nx;exports.IndentLines=Nh;exports.LogoSVG=Av;exports.LspActions=qv;exports.MODEL_TAB_PATH=pP;exports.Mutex=Vv;exports.Overlay=uh;exports.Portal=Jp;exports.PublishOptions=$P;exports.ROLES_TAB_PATH=Gv;exports.RemoteDebuggerMode=Uc;exports.SETTINGS_TAB_PATH=Yv;exports.SHARED_API_PREFIX=Hc;exports.Switcher=jh;exports.TabEventsActions=zv;exports.Tip=kC;exports.TipsProvider=LC;exports.Toast=nx;exports.Tooltip=bR;exports.Tree=$x;exports.TreeIcon=Lh;exports.TreeNode=Ac;exports.WebformActions=Bv;exports._isArrayDatasource=LP;exports._isObjectDatasource=MP;exports.addAttributesToContent=jP;exports.addFolder=YP;exports.by=Zv;exports.byId=yP;exports.byPath=wP;exports.checkUpdates=WP;exports.createFolder=sA;exports.datasourcesSubject=sP;exports.dropFile=GP;exports.dropFolder=VP;exports.exists=bP;exports.extractWebformName=vP;exports.getAppSettings=BP;exports.getCatalog=QP;exports.getDatasourceId=_P;exports.getDefaultAppSettings=cm;exports.getFile=qP;exports.getFileContent=eA;exports.getFileExtentionFromType=hP;exports.getFilesInfo=JP;exports.getFolder=lm;exports.getFolders=HP;exports.getFunctionContent=vA;exports.getMonacoTheme=rA;exports.getNodeInfo=lA;exports.getSharedCSS=nA;exports.getSharedDatasources=tA;exports.getTypeFromExtension=Xv;exports.getWebForm=zP;exports.hasAttributesString=sm;exports.http=Ke;exports.installUpdates=UP;exports.isArrayDatasource=nm;exports.isDataClassMethod=xP;exports.isDataStoreMethod=EP;exports.isDateDatasource=DP;exports.isEntity=AP;exports.isEntityDatasource=CP;exports.isEntityMethod=OP;exports.isEntitySelection=IP;exports.isEntitySelectionDatasource=RP;exports.isEntitySelectionMethod=TP;exports.isObjectDatasource=rm;exports.isRelatedAttribute=SP;exports.isRelatedEntitiesAttribute=em;exports.isRelatedEntityAttribute=tm;exports.isScalarDatasource=im;exports.isSimpleAttribute=Qv;exports.isSimpleDatasource=PP;exports.loadDS=kP;exports.log=mA;exports.login=ZP;exports.lspSubject=fP;exports.moveItem=cA;exports.outBy=mP;exports.outById=gP;exports.parseAttributes=NP;exports.queue=Jv;exports.removeAttributesString=um;exports.removeItem=uA;exports.renameFile=KP;exports.renameFolder=XP;exports.sanitizeContent=ts;exports.saveContent=fA;exports.setCraftedComponents=aA;exports.setFileContent=fm;exports.setSharedSources=oA;exports.stringifyAttributes=am;exports.tabEventsSubject=lP;exports.toastSubject=cP;exports.transformDates=FP;exports.useDidMountEffect=ER;exports.useDoubleClick=XR;exports.useFeatureFlags=zR;exports.useForwardedRef=BR;exports.useHotkeys=jR;exports.useIdentity=KR;exports.useOutsideClick=FR;exports.usePrevious=WR;exports.useStateObject=GR;exports.useStateRef=UR;exports.useTip=_v;exports.validateName=Kv;exports.validateServerSide=dP;exports.webformSubject=uP;
|
|
178
206
|
//# sourceMappingURL=index.cjs.js.map
|