@indigoai/indigo-design-system 0.10.19 → 0.10.21
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/components/input/text-field-multiline/text-field-multiline.stories.d.ts +1 -0
- package/dist/components/input/text-field-multiline/types.d.ts +3 -0
- package/dist/components/tag/constants.d.ts +7 -2
- package/dist/components/tag/types.d.ts +2 -1
- package/dist/indigo-design-system.js +4886 -4845
- package/dist/indigo-design-system.js.map +1 -1
- package/dist/indigo-design-system.umd.cjs +30 -30
- package/dist/indigo-design-system.umd.cjs.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
(function(fe,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],p):(fe=typeof globalThis<"u"?globalThis:fe||self,p(fe["@indigoai/indigo-design-system"]={},fe.React,fe.ReactDOM))})(this,function(fe,p,$n){"use strict";function
|
|
1
|
+
(function(fe,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],p):(fe=typeof globalThis<"u"?globalThis:fe||self,p(fe["@indigoai/indigo-design-system"]={},fe.React,fe.ReactDOM))})(this,function(fe,p,$n){"use strict";function i1(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ve=i1(p),k_=i1($n);var cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nc={exports:{}},go={};/*
|
|
2
2
|
object-assign
|
|
3
3
|
(c) Sindre Sorhus
|
|
4
4
|
@license MIT
|
|
5
|
-
*/var
|
|
5
|
+
*/var Rc,o1;function Lc(){if(o1)return Rc;o1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(l).map(function(m){return l[m]});if(d.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(m){f[m]=m}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Rc=i()?Object.assign:function(s,l){for(var c,d=r(s),f,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var g in c)t.call(c,g)&&(d[g]=c[g]);if(e){f=e(c);for(var v=0;v<f.length;v++)n.call(c,f[v])&&(d[f[v]]=c[f[v]])}}return d},Rc}/** @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 s1;function F_(){if(s1)return go;s1=1,Lc();var e=p,t=60103;if(go.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;t=n("react.element"),go.Fragment=n("react.fragment")}var r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(c,d,f){var m,g={},v=null,b=null;f!==void 0&&(v=""+f),d.key!==void 0&&(v=""+d.key),d.ref!==void 0&&(b=d.ref);for(m in d)i.call(d,m)&&!s.hasOwnProperty(m)&&(g[m]=d[m]);if(c&&c.defaultProps)for(m in d=c.defaultProps,d)g[m]===void 0&&(g[m]=d[m]);return{$$typeof:t,type:c,key:v,ref:b,props:g,_owner:r.current}}return go.jsx=l,go.jsxs=l,go}var jc={};/** @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
|
-
`+le+j}}var be=!1,he;{var We=typeof WeakMap=="function"?WeakMap:Map;he=new We}function de(j,
|
|
19
|
+
*/var a1;function B_(){return a1||(a1=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=p,n=Lc(),r=60103,i=60106;e.Fragment=60107;var s=60108,l=60114,c=60109,d=60110,f=60112,m=60113,g=60120,v=60115,b=60116,w=60121,_=60122,E=60117,y=60129,T=60131;if(typeof Symbol=="function"&&Symbol.for){var S=Symbol.for;r=S("react.element"),i=S("react.portal"),e.Fragment=S("react.fragment"),s=S("react.strict_mode"),l=S("react.profiler"),c=S("react.provider"),d=S("react.context"),f=S("react.forward_ref"),m=S("react.suspense"),g=S("react.suspense_list"),v=S("react.memo"),b=S("react.lazy"),w=S("react.block"),_=S("react.server.block"),E=S("react.fundamental"),S("react.scope"),S("react.opaque.id"),y=S("react.debug_trace_mode"),S("react.offscreen"),T=S("react.legacy_hidden")}var O=typeof Symbol=="function"&&Symbol.iterator,I="@@iterator";function M(j){if(j===null||typeof j!="object")return null;var oe=O&&j[O]||j[I];return typeof oe=="function"?oe:null}var N=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(j){{for(var oe=arguments.length,_e=new Array(oe>1?oe-1:0),Te=1;Te<oe;Te++)_e[Te-1]=arguments[Te];k("error",j,_e)}}function k(j,oe,_e){{var Te=N.ReactDebugCurrentFrame,qe=Te.getStackAddendum();qe!==""&&(oe+="%s",_e=_e.concat([qe]));var Be=_e.map(function(Me){return""+Me});Be.unshift("Warning: "+oe),Function.prototype.apply.call(console[j],console,Be)}}var Y=!1;function L(j){return!!(typeof j=="string"||typeof j=="function"||j===e.Fragment||j===l||j===y||j===s||j===m||j===g||j===T||Y||typeof j=="object"&&j!==null&&(j.$$typeof===b||j.$$typeof===v||j.$$typeof===c||j.$$typeof===d||j.$$typeof===f||j.$$typeof===E||j.$$typeof===w||j[0]===_))}function G(j,oe,_e){var Te=oe.displayName||oe.name||"";return j.displayName||(Te!==""?_e+"("+Te+")":_e)}function Z(j){return j.displayName||"Context"}function R(j){if(j==null)return null;if(typeof j.tag=="number"&&D("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof j=="function")return j.displayName||j.name||null;if(typeof j=="string")return j;switch(j){case e.Fragment:return"Fragment";case i:return"Portal";case l:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case g:return"SuspenseList"}if(typeof j=="object")switch(j.$$typeof){case d:var oe=j;return Z(oe)+".Consumer";case c:var _e=j;return Z(_e._context)+".Provider";case f:return G(j,j.render,"ForwardRef");case v:return R(j.type);case w:return R(j._render);case b:{var Te=j,qe=Te._payload,Be=Te._init;try{return R(Be(qe))}catch{return null}}}return null}var K=0,B,W,J,q,U,V,ce;function ue(){}ue.__reactDisabledLog=!0;function pe(){{if(K===0){B=console.log,W=console.info,J=console.warn,q=console.error,U=console.group,V=console.groupCollapsed,ce=console.groupEnd;var j={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:j,log:j,warn:j,error:j,group:j,groupCollapsed:j,groupEnd:j})}K++}}function Ee(){{if(K--,K===0){var j={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:n({},j,{value:B}),info:n({},j,{value:W}),warn:n({},j,{value:J}),error:n({},j,{value:q}),group:n({},j,{value:U}),groupCollapsed:n({},j,{value:V}),groupEnd:n({},j,{value:ce})})}K<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ne=N.ReactCurrentDispatcher,le;function ge(j,oe,_e){{if(le===void 0)try{throw Error()}catch(qe){var Te=qe.stack.trim().match(/\n( *(at )?)/);le=Te&&Te[1]||""}return`
|
|
20
|
+
`+le+j}}var be=!1,he;{var We=typeof WeakMap=="function"?WeakMap:Map;he=new We}function de(j,oe){if(!j||be)return"";{var _e=he.get(j);if(_e!==void 0)return _e}var Te;be=!0;var qe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Be;Be=ne.current,ne.current=null,pe();try{if(oe){var Me=function(){throw Error()};if(Object.defineProperty(Me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Me,[])}catch(dr){Te=dr}Reflect.construct(j,[],Me)}else{try{Me.call()}catch(dr){Te=dr}j.call(Me.prototype)}}else{try{throw Error()}catch(dr){Te=dr}j()}}catch(dr){if(dr&&Te&&typeof dr.stack=="string"){for(var Pe=dr.stack.split(`
|
|
21
21
|
`),kt=Te.stack.split(`
|
|
22
|
-
`),
|
|
23
|
-
`+Pe[
|
|
22
|
+
`),ct=Pe.length-1,ht=kt.length-1;ct>=1&&ht>=0&&Pe[ct]!==kt[ht];)ht--;for(;ct>=1&&ht>=0;ct--,ht--)if(Pe[ct]!==kt[ht]){if(ct!==1||ht!==1)do if(ct--,ht--,ht<0||Pe[ct]!==kt[ht]){var cr=`
|
|
23
|
+
`+Pe[ct].replace(" at new "," at ");return typeof j=="function"&&he.set(j,cr),cr}while(ct>=1&&ht>=0);break}}}finally{be=!1,ne.current=Be,Ee(),Error.prepareStackTrace=qe}var zr=j?j.displayName||j.name:"",Ul=zr?ge(zr):"";return typeof j=="function"&&he.set(j,Ul),Ul}function _t(j,oe,_e){return de(j,!1)}function Ke(j){var oe=j.prototype;return!!(oe&&oe.isReactComponent)}function yt(j,oe,_e){if(j==null)return"";if(typeof j=="function")return de(j,Ke(j));if(typeof j=="string")return ge(j);switch(j){case m:return ge("Suspense");case g:return ge("SuspenseList")}if(typeof j=="object")switch(j.$$typeof){case f:return _t(j.render);case v:return yt(j.type,oe,_e);case w:return _t(j._render);case b:{var Te=j,qe=Te._payload,Be=Te._init;try{return yt(Be(qe),oe,_e)}catch{}}}return""}var yn={},Rt=N.ReactDebugCurrentFrame;function Fn(j){if(j){var oe=j._owner,_e=yt(j.type,j._source,oe?oe.type:null);Rt.setExtraStackFrame(_e)}else Rt.setExtraStackFrame(null)}function jr(j,oe,_e,Te,qe){{var Be=Function.call.bind(Object.prototype.hasOwnProperty);for(var Me in j)if(Be(j,Me)){var Pe=void 0;try{if(typeof j[Me]!="function"){var kt=Error((Te||"React class")+": "+_e+" type `"+Me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof j[Me]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw kt.name="Invariant Violation",kt}Pe=j[Me](oe,Me,Te,_e,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ct){Pe=ct}Pe&&!(Pe instanceof Error)&&(Fn(qe),D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Te||"React class",_e,Me,typeof Pe),Fn(null)),Pe instanceof Error&&!(Pe.message in yn)&&(yn[Pe.message]=!0,Fn(qe),D("Failed %s type: %s",_e,Pe.message),Fn(null))}}}var pt=N.ReactCurrentOwner,Ct=Object.prototype.hasOwnProperty,Bn={key:!0,ref:!0,__self:!0,__source:!0},Er,io;function kr(j){if(Ct.call(j,"ref")){var oe=Object.getOwnPropertyDescriptor(j,"ref").get;if(oe&&oe.isReactWarning)return!1}return j.ref!==void 0}function qs(j){if(Ct.call(j,"key")){var oe=Object.getOwnPropertyDescriptor(j,"key").get;if(oe&&oe.isReactWarning)return!1}return j.key!==void 0}function dn(j,oe){typeof j.ref=="string"&&pt.current}function Kt(j,oe){{var _e=function(){Er||(Er=!0,D("%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)",oe))};_e.isReactWarning=!0,Object.defineProperty(j,"key",{get:_e,configurable:!0})}}function lr(j,oe){{var _e=function(){io||(io=!0,D("%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)",oe))};_e.isReactWarning=!0,Object.defineProperty(j,"ref",{get:_e,configurable:!0})}}var mi=function(j,oe,_e,Te,qe,Be,Me){var Pe={$$typeof:r,type:j,key:oe,ref:_e,props:Me,_owner:Be};return Pe._store={},Object.defineProperty(Pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Pe,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.defineProperty(Pe,"_source",{configurable:!1,enumerable:!1,writable:!1,value:qe}),Object.freeze&&(Object.freeze(Pe.props),Object.freeze(Pe)),Pe};function un(j,oe,_e,Te,qe){{var Be,Me={},Pe=null,kt=null;_e!==void 0&&(Pe=""+_e),qs(oe)&&(Pe=""+oe.key),kr(oe)&&(kt=oe.ref,dn(oe,qe));for(Be in oe)Ct.call(oe,Be)&&!Bn.hasOwnProperty(Be)&&(Me[Be]=oe[Be]);if(j&&j.defaultProps){var ct=j.defaultProps;for(Be in ct)Me[Be]===void 0&&(Me[Be]=ct[Be])}if(Pe||kt){var ht=typeof j=="function"?j.displayName||j.name||"Unknown":j;Pe&&Kt(Me,ht),kt&&lr(Me,ht)}return mi(j,Pe,kt,qe,Te,pt.current,Me)}}var yr=N.ReactCurrentOwner,vi=N.ReactDebugCurrentFrame;function zn(j){if(j){var oe=j._owner,_e=yt(j.type,j._source,oe?oe.type:null);vi.setExtraStackFrame(_e)}else vi.setExtraStackFrame(null)}var Cr;Cr=!1;function Fr(j){return typeof j=="object"&&j!==null&&j.$$typeof===r}function Br(){{if(yr.current){var j=R(yr.current.type);if(j)return`
|
|
24
24
|
|
|
25
|
-
Check the render method of \``+j+"`."}return""}}function Ys(j){return""}var Yo={};function Zs(j){{var
|
|
25
|
+
Check the render method of \``+j+"`."}return""}}function Ys(j){return""}var Yo={};function Zs(j){{var oe=Br();if(!oe){var _e=typeof j=="string"?j:j.displayName||j.name;_e&&(oe=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+_e+">.")}return se}}function at(j,se){{if(!j._store||j._store.validated||j.key!=null)return;j._store.validated=!0;var _e=Zs(se);if(Yo[_e])return;Yo[_e]=!0;var Te="";j&&j._owner&&j._owner!==yr.current&&(Te=" It was passed a child from "+R(j._owner.type)+"."),Bn(j),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_e,Te),Bn(null)}}function St(j,se){{if(typeof j!="object")return;if(Array.isArray(j))for(var _e=0;_e<j.length;_e++){var Te=j[_e];Fr(Te)&&at(Te,se)}else if(Fr(j))j._store&&(j._store.validated=!0);else if(j){var qe=M(j);if(typeof qe=="function"&&qe!==j.entries)for(var Be=qe.call(j),Me;!(Me=Be.next()).done;)Fr(Me.value)&&at(Me.value,se)}}}function Lt(j){{var se=j.type;if(se==null||typeof se=="string")return;var _e;if(typeof se=="function")_e=se.propTypes;else if(typeof se=="object"&&(se.$$typeof===f||se.$$typeof===v))_e=se.propTypes;else return;if(_e){var Te=R(se);jr(_e,j.props,"prop",Te,j)}else if(se.PropTypes!==void 0&&!Cr){Cr=!0;var qe=R(se);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",qe||"Unknown")}typeof se.getDefaultProps=="function"&&!se.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function zn(j){{for(var se=Object.keys(j.props),_e=0;_e<se.length;_e++){var Te=se[_e];if(Te!=="children"&&Te!=="key"){Bn(j),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),Bn(null);break}}j.ref!==null&&(Bn(j),D("Invalid attribute `ref` supplied to `React.Fragment`."),Bn(null))}}function jt(j,se,_e,Te,qe,Be){{var Me=L(j);if(!Me){var Pe="";(j===void 0||typeof j=="object"&&j!==null&&Object.keys(j).length===0)&&(Pe+=" 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 kt=Ys();kt?Pe+=kt:Pe+=Br();var lt;j===null?lt="null":Array.isArray(j)?lt="array":j!==void 0&&j.$$typeof===r?(lt="<"+(R(j.type)||"Unknown")+" />",Pe=" Did you accidentally export a JSX literal instead of a component?"):lt=typeof j,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",lt,Pe)}var pt=un(j,se,_e,qe,Be);if(pt==null)return pt;if(Me){var cr=se.children;if(cr!==void 0)if(Te)if(Array.isArray(cr)){for(var zr=0;zr<cr.length;zr++)St(cr[zr],j);Object.freeze&&Object.freeze(cr)}else D("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 St(cr,j)}return j===e.Fragment?zn(pt):Lt(pt),pt}}function Qt(j,se,_e){return jt(j,se,_e,!0)}function Jt(j,se,_e){return jt(j,se,_e,!1)}var Tr=Jt,en=Qt;e.jsx=Tr,e.jsxs=en}()}(kc)),kc}process.env.NODE_ENV==="production"?Rc.exports=B_():Rc.exports=z_();var u=Rc.exports;function cp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=cp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function oe(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=cp(e))&&(r&&(r+=" "),r+=t);return r}const ua={divider:"_divider_11gi1_1","sand-drag":"_sand-drag_11gi1_7","black-drag":"_black-drag_11gi1_13","vertical-divider":"_vertical-divider_11gi1_19"},G_={xl:"24px",lg:"16px",md:"12px",sm:"8px",xs:"4px"},H_={default:"","sand-drag":ua["sand-drag"],"black-drag":ua["black-drag"]},gr=p.forwardRef((e,t)=>{const{color:n="gray-300",horizontalMargin:r=!0,verticalMargin:i="xs",variant:s="default",className:l,...c}=e,d=p.useMemo(()=>({margin:`${G_[i]} ${r?"8px":0}`}),[i,r]);return u.jsx("div",{ref:t,className:oe(ua.divider,`bg--${n}`,H_[s],r&&ua["vertical-divider"],l),style:d,...c})});gr.displayName="Divider";const dp={text:"_text_1n5gj_1","text--size-lg":"_text--size-lg_1n5gj_6","text--size-md":"_text--size-md_1n5gj_12","text--size-sm":"_text--size-sm_1n5gj_18","text--size-xs":"_text--size-xs_1n5gj_24"},ye=p.forwardRef((e,t)=>{const{size:n="md",fontWeight:r="regular",color:i="gray-900",className:s,...l}=e;return u.jsx("p",{ref:t,className:oe(dp.text,dp[`text--size-${n}`],`text--weight-${r}`,`text--${i}`,s),...l})});ye.displayName="Text";const U_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M21 17.397v1.646a2 2 0 0 1-2 2c-8.837 0-16-7.163-16-16a2 2 0 0 1 2-2h1.646A2 2 0 0 1 8.503 4.3l.814 2.034a2 2 0 0 1-.963 2.532L8 9.043s.5 2.5 2.5 4.5 4.5 2.5 4.5 2.5l.177-.354a2 2 0 0 1 2.532-.963l2.034.814A2 2 0 0 1 21 17.397ZM15.938 8.09 14.426 6.2A1.944 1.944 0 0 1 14 4.986V4.9a1.856 1.856 0 0 1 3.169-1.312l.331.331.331-.331A1.856 1.856 0 0 1 21 4.899v.087c0 .442-.15.87-.426 1.214l-1.512 1.89a2 2 0 0 1-3.124 0Z"})}),V_=(()=>{const e=p.forwardRef(U_);return e.displayName="SvgCallLove",e})(),W_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M21 19.043v-1.646a2 2 0 0 0-1.257-1.857l-2.034-.814a2 2 0 0 0-2.532.963l-.177.354s-2.5-.5-4.5-2.5-2.5-4.5-2.5-4.5l.354-.177a2 2 0 0 0 .963-2.532L8.503 4.3a2 2 0 0 0-1.857-1.257H5a2 2 0 0 0-2 2c0 8.837 7.163 16 16 16a2 2 0 0 0 2-2Z"})}),fa=(()=>{const e=p.forwardRef(W_);return e.displayName="SvgCall",e})(),q_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M18 2H6a4 4 0 0 0-4 4v12a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4V6a4 4 0 0 0-4-4Zm-1.408 7.46a.75.75 0 0 0-1.184-.92l-4.007 5.151a.25.25 0 0 1-.365.033l-2.534-2.281a.75.75 0 1 0-1.004 1.114l2.535 2.282a1.75 1.75 0 0 0 2.552-.227l4.007-5.152Z",clipRule:"evenodd"})}),Fc=(()=>{const e=p.forwardRef(q_);return e.displayName="SvgCheckRectangle",e})(),Y_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M22 7.292h-6.543l3.641-5.097A4.002 4.002 0 0 1 22 6.042v1.25Z"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 8.792h20v9.25a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4v-9.25Zm8 5.053v2.394c0 1.198 1.335 1.913 2.332 1.248l1.796-1.197a1.5 1.5 0 0 0 0-2.496l-1.796-1.197c-.997-.665-2.332.05-2.332 1.248Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",d:"M5.614 7.292H2v-1.25a4 4 0 0 1 4-4h3.364l-3.75 5.25Zm1.843 0 3.75-5.25h6.157l-3.75 5.25H7.457Z"})]}),up=(()=>{const e=p.forwardRef(Y_);return e.displayName="SvgClapperboard1",e})(),Z_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 12 12",ref:t,...e,children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.91424 9.84645C8.77924 10.0229 8.53299 10.0515 8.36424 9.91034L6 7.93298L3.63576 9.91034C3.46701 10.0515 3.22076 10.0229 3.08576 9.84645C2.95076 9.67003 2.97812 9.41259 3.14687 9.27145L5.75555 7.08964C5.89847 6.97012 6.10153 6.97012 6.24444 7.08964L8.85313 9.27145C9.02188 9.41259 9.04924 9.67003 8.91424 9.84645Z",fill:"currentColor"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.08576 2.15355C3.22076 1.97712 3.46701 1.94852 3.63576 2.08966L6 4.06702L8.36424 2.08966C8.53299 1.94852 8.77924 1.97712 8.91424 2.15355C9.04924 2.32997 9.02188 2.58741 8.85313 2.72855L6.24445 4.91036C6.10153 5.02988 5.89847 5.02988 5.75556 4.91036L3.14687 2.72855C2.97812 2.58741 2.95076 2.32997 3.08576 2.15355Z",fill:"currentColor"})]}),X_=(()=>{const e=p.forwardRef(Z_);return e.displayName="SvgCollapse",e})(),K_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M6 5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1H6V5ZM4 9.5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1H4v-1Z"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 14a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v3a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4v-3Zm7.25 1a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"})]}),Q_=(()=>{const e=p.forwardRef(K_);return e.displayName="SvgCollection",e})(),J_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm2.861-13.954-6.27 2.09c-.788.263-.788 1.377 0 1.64l2.315.771c.258.086.46.289.547.547l.772 2.315c.262.788 1.377.788 1.64 0l2.09-6.27a.864.864 0 0 0-1.094-1.093Z",clipRule:"evenodd"})}),fp=(()=>{const e=p.forwardRef(J_);return e.displayName="SvgCompass",e})(),e7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.225 8.65C21.055 7.604 22 6.166 22 5.043c0-2-1.343-3-3-3s-3 1-3 3.21c0 1.204.892 2.519 1.703 3.466.68.795 1.871.75 2.522-.07ZM19 6.043a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-13 16c2 0 4-3.79 4-6a4 4 0 1 0-8 0c0 2.21 2 6 4 6Zm0-4.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",d:"M17.53 12.073a.75.75 0 0 0-1.06-1.06l-.161.16a.75.75 0 1 0 1.06 1.061l.161-.16Zm-2.089 2.09a.75.75 0 0 0-1.06-1.061l-.322.321a.75.75 0 1 0 1.06 1.061l.322-.321Zm-2.25 2.25a.75.75 0 0 0-1.06-1.061l-.161.16a.75.75 0 0 0 1.06 1.061l.161-.16Z"})]}),Bc=(()=>{const e=p.forwardRef(e7);return e.displayName="SvgDestination0200",e})(),t7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.414 9.574a.75.75 0 0 1 1.055-.117L12 13.082l4.532-3.625a.75.75 0 0 1 .936 1.172l-5 4a.75.75 0 0 1-.937 0l-5-4a.75.75 0 0 1-.117-1.055Z",clipRule:"evenodd"})}),pp=(()=>{const e=p.forwardRef(t7);return e.displayName="SvgDirectionDown01Chevron",e})(),n7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.469 6.457a.75.75 0 0 1 .117 1.055l-3.626 4.531 3.626 4.532a.75.75 0 1 1-1.172.937l-4-5a.75.75 0 0 1 0-.938l4-5a.75.75 0 0 1 1.055-.117Z",clipRule:"evenodd"})}),r7=(()=>{const e=p.forwardRef(n7);return e.displayName="SvgDirectionLeft01Chevron",e})(),i7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.532 6.457a.75.75 0 0 0-.118 1.055l3.626 4.531-3.626 4.532a.75.75 0 1 0 1.172.937l4-5a.75.75 0 0 0 0-.938l-4-5a.75.75 0 0 0-1.054-.117Z",clipRule:"evenodd"})}),pa=(()=>{const e=p.forwardRef(i7);return e.displayName="SvgDirectionRightChevron",e})(),o7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M11.289 3H8.123a4 4 0 0 0-3.88 3.03L2.62 12.515A2 2 0 0 0 4.561 15H9.5l-1.307 2.24c-.972 1.667.23 3.76 2.16 3.76H11.5l3.868-6.77a1 1 0 0 0 .132-.496V5.535a1 1 0 0 0-.445-.832l-1.547-1.031A4 4 0 0 0 11.288 3ZM20 15h-1a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2Z"})}),s7=(()=>{const e=p.forwardRef(o7);return e.displayName="SvgDislike",e})(),a7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M2.75 6A3.25 3.25 0 0 1 6 2.75h6a.75.75 0 0 0 0-1.5H6A4.75 4.75 0 0 0 1.25 6v12A4.75 4.75 0 0 0 6 22.75h12A4.75 4.75 0 0 0 22.75 18v-6a.75.75 0 0 0-1.5 0v6A3.25 3.25 0 0 1 18 21.25H6A3.25 3.25 0 0 1 2.75 18V6Z"}),u.jsx("path",{fill:"currentColor",d:"M16.419 2.677a2.312 2.312 0 0 1 3.27 0l1.634 1.635a2.312 2.312 0 0 1 0 3.269l-1.45 1.45a16.081 16.081 0 0 1-.357-.183c-.835-.44-1.827-1.057-2.567-1.797-.74-.74-1.357-1.732-1.797-2.567a16.251 16.251 0 0 1-.182-.358l1.449-1.449Zm-.53 5.434c.875.876 1.989 1.565 2.87 2.033l-5.699 5.7a2.312 2.312 0 0 1-1.308.654l-3.432.49a1.156 1.156 0 0 1-1.308-1.308l.49-3.432c.071-.495.3-.954.654-1.308l5.7-5.7c.468.882 1.157 1.996 2.033 2.871Z"})]}),hp=(()=>{const e=p.forwardRef(a7);return e.displayName="SvgEditRectangle",e})(),l7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 12 12",ref:t,...e,children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.08576 7.15355C3.22076 6.97713 3.46701 6.94852 3.63576 7.08966L6 9.06702L8.36424 7.08966C8.53299 6.94852 8.77924 6.97712 8.91424 7.15355C9.04924 7.32997 9.02188 7.58741 8.85313 7.72855L6.24444 9.91036C6.10153 10.0299 5.89847 10.0299 5.75556 9.91036L3.14687 7.72855C2.97812 7.58741 2.95076 7.32997 3.08576 7.15355Z",fill:"currentColor"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.91424 4.84645C8.77924 5.02288 8.53299 5.05148 8.36424 4.91034L6 2.93298L3.63576 4.91034C3.46701 5.05148 3.22076 5.02288 3.08576 4.84645C2.95076 4.67003 2.97812 4.41259 3.14687 4.27145L5.75555 2.08964C5.89847 1.97012 6.10153 1.97012 6.24444 2.08964L8.85313 4.27145C9.02188 4.41259 9.04924 4.67003 8.91424 4.84645Z",fill:"currentColor"})]}),c7=(()=>{const e=p.forwardRef(l7);return e.displayName="SvgExpand",e})(),d7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M2.5 5.793a3.25 3.25 0 0 1 3.25-3.25h2a.75.75 0 0 0 0-1.5h-2A4.75 4.75 0 0 0 1 5.793v2a.75.75 0 0 0 1.5 0v-2Zm13.25-4.75a.75.75 0 0 0 0 1.5h2A3.25 3.25 0 0 1 21 5.793v2a.75.75 0 0 0 1.5 0v-2a4.75 4.75 0 0 0-4.75-4.75h-2Zm6.75 14.75a.75.75 0 0 0-1.5 0v2a3.25 3.25 0 0 1-3.25 3.25h-2a.75.75 0 0 0 0 1.5h2a4.75 4.75 0 0 0 4.75-4.75v-2Zm-20 .556a.75.75 0 0 0-1.5 0v1.444a4.75 4.75 0 0 0 4.75 4.75h2a.75.75 0 0 0 0-1.5h-2a3.25 3.25 0 0 1-3.25-3.25v-1.444Zm16.79-3.455c-1.423 1.473-4.265 3.899-7.54 3.899-3.274 0-6.117-2.426-7.54-3.899-.613-.634-.613-1.568 0-2.202 1.423-1.473 4.266-3.899 7.54-3.899s6.117 2.426 7.54 3.899c.613.634.613 1.568 0 2.202Z"})}),gp=(()=>{const e=p.forwardRef(d7);return e.displayName="SvgEyeScannerSmart",e})(),u7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M14 5h2a3 3 0 0 1 2.905 2.25H21a.75.75 0 0 1 0 1.5h-2.095A3.001 3.001 0 0 1 16 11h-2a3 3 0 1 1 0-6ZM3 7.25a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5H3Zm13 8a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5h-5ZM10 13H8a3.001 3.001 0 0 0-2.905 2.25H3a.75.75 0 0 0 0 1.5h2.095A3.001 3.001 0 0 0 8 19h2a3 3 0 1 0 0-6Z"})}),mp=(()=>{const e=p.forwardRef(u7);return e.displayName="SvgFilter01",e})(),f7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M22 17.042v-7a4 4 0 0 0-4-4h-2.667a4 4 0 0 1-2.4-.8l-1.866-1.4a4 4 0 0 0-2.4-.8H6a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4Z"})}),p7=(()=>{const e=p.forwardRef(f7);return e.displayName="SvgFolder03",e})(),h7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M2 6.417v11.25c0 .222.02.439.06.649l2.835-6.449c.923-2.15 3-3.575 5.334-3.575h9.076c-.18-1.687-1.557-3-3.229-3h-3.353c-.578 0-1.146-.16-1.644-.464L8.91 3.506a3.156 3.156 0 0 0-1.643-.464H5.248C3.454 3.042 2 4.553 2 6.417Z"}),u.jsx("path",{fill:"currentColor",d:"M10.229 9.792h9.602c1.683 0 2.723 1.908 1.857 3.408l-3.267 5.657c-.783 1.356-2.193 2.185-3.714 2.185H5.248a3.18 3.18 0 0 1-2.308-1l3.33-7.578c.696-1.625 2.247-2.672 3.959-2.672Z"})]}),g7=(()=>{const e=p.forwardRef(h7);return e.displayName="SvgFolder",e})(),m7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M12 3.792a8.25 8.25 0 0 0-8.25 8.25v1a3.75 3.75 0 0 1 6 3v2a3.75 3.75 0 1 1-7.5 0v-6c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75v6a3.75 3.75 0 1 1-7.5 0v-2a3.75 3.75 0 0 1 6-3v-1A8.25 8.25 0 0 0 12 3.792Z"})}),vp=(()=>{const e=p.forwardRef(m7);return e.displayName="SvgHeadphones1",e})(),v7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M8.5 11.042a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.25 6.042A4.75 4.75 0 0 1 6 1.292h12a4.75 4.75 0 0 1 4.75 4.75v12a4.75 4.75 0 0 1-4.75 4.75H6a4.75 4.75 0 0 1-4.75-4.75v-12ZM6 2.792a3.25 3.25 0 0 0-3.25 3.25v8.5l2.522 1.681a4 4 0 0 0 5.047-.5l3.362-3.362a4 4 0 0 1 5.048-.5l2.38 1.587c.049.033.096.067.141.103V6.042A3.25 3.25 0 0 0 18 2.792H6Z",clipRule:"evenodd"})]}),bp=(()=>{const e=p.forwardRef(v7);return e.displayName="SvgImage1",e})(),b7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M12.711 21h3.166a4 4 0 0 0 3.88-3.03l1.622-6.485A2 2 0 0 0 19.439 9H14.5l1.307-2.24c.972-1.667-.23-3.76-2.16-3.76H12.5L8.632 9.77a1 1 0 0 0-.132.496v8.199a1 1 0 0 0 .445.832l1.547 1.031a4 4 0 0 0 2.22.672ZM4 9h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z"})}),_7=(()=>{const e=p.forwardRef(b7);return e.displayName="SvgLike",e})(),x7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M18.137 5.907a3.964 3.964 0 0 0-5.606 0l-1.667 1.667a.75.75 0 1 1-1.06-1.06l1.666-1.668a5.464 5.464 0 1 1 7.728 7.728L17.53 14.24a.75.75 0 0 1-1.06-1.061l1.666-1.667a3.964 3.964 0 0 0 0-5.606Z"}),u.jsx("path",{fill:"currentColor",d:"M14.652 9.392a.75.75 0 0 1 0 1.06l-4.242 4.243a.75.75 0 1 1-1.06-1.06l4.242-4.243a.75.75 0 0 1 1.06 0Z"}),u.jsx("path",{fill:"currentColor",d:"M11.47 18.18a3.964 3.964 0 1 1-5.606-5.606l1.667-1.667a.75.75 0 0 0-1.06-1.06l-1.667 1.666a5.464 5.464 0 0 0 7.727 7.728l1.667-1.667a.75.75 0 0 0-1.061-1.06L11.47 18.18Z"})]}),ha=(()=>{const e=p.forwardRef(x7);return e.displayName="SvgLink",e})(),E7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M12 6a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm7.929-12.268a2 2 0 1 1-2-3.464 2 2 0 0 1 2 3.464ZM3.34 17a2 2 0 1 0 3.465-2 2 2 0 0 0-3.464 2Zm14.589.732a2 2 0 1 1 2-3.464 2 2 0 0 1-2 3.464ZM3.34 7a2 2 0 1 0 3.465 2A2 2 0 0 0 3.34 7Z"})}),ga=(()=>{const e=p.forwardRef(E7);return e.displayName="SvgLoading",e})(),w7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.75 6.75a3.25 3.25 0 0 1 6.5 0V8h-6.5V6.75Zm-1.5 1.32V6.75a4.75 4.75 0 0 1 9.5 0v1.32A4.001 4.001 0 0 1 20 12v6a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4v-6c0-1.953 1.4-3.579 3.25-3.93ZM14 15a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})}),y7=(()=>{const e=p.forwardRef(w7);return e.displayName="SvgLock",e})(),C7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 3.043a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4v-10a4 4 0 0 0-4-4H6Zm.416 4.376a.75.75 0 1 0-.832 1.248l3.781 2.52a4.75 4.75 0 0 0 5.27 0l3.781-2.52a.75.75 0 1 0-.832-1.248l-3.781 2.52a3.25 3.25 0 0 1-3.606 0L6.416 7.42Z",clipRule:"evenodd"})}),zc=(()=>{const e=p.forwardRef(C7);return e.displayName="SvgMail",e})(),T7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M21 2.293h-6a.75.75 0 0 0 0 1.5h4.19l-9.72 9.72a.75.75 0 0 0 1.06 1.06l9.72-9.72v4.19a.75.75 0 0 0 1.5 0v-6a.75.75 0 0 0-.75-.75Z"}),u.jsx("path",{fill:"currentColor",d:"M7 4.293a4.75 4.75 0 0 0-4.75 4.75v8A4.75 4.75 0 0 0 7 21.793h8a4.75 4.75 0 0 0 4.75-4.75v-5a.75.75 0 0 0-1.5 0v5a3.25 3.25 0 0 1-3.25 3.25H7a3.25 3.25 0 0 1-3.25-3.25v-8A3.25 3.25 0 0 1 7 5.793h5a.75.75 0 0 0 0-1.5H7Z"})]}),S7=(()=>{const e=p.forwardRef(T7);return e.displayName="SvgMaximize",e})(),I7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("g",{clipPath:"url(#notes_01_svg__a)",children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.281.793a.75.75 0 0 1 .75.75v1.5h.25a4 4 0 0 1 4 4v10.5a4 4 0 0 1-4 4h-10a4 4 0 0 1-4-4v-10.5a4 4 0 0 1 4-4h.25v-1.5a.75.75 0 0 1 1.5 0v1.5h6.5v-1.5a.75.75 0 0 1 .75-.75Zm1.75 11.75a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Zm-.75-3.25a.75.75 0 1 0 0-1.5h-6a.75.75 0 0 0 0 1.5h6Zm.75 7.25a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Zm-9.25-8a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"})}),u.jsx("defs",{children:u.jsx("clipPath",{id:"notes_01_svg__a",children:u.jsx("path",{fill:"#fff",d:"M0 .043h24v24H0z"})})})]}),A7=(()=>{const e=p.forwardRef(I7);return e.displayName="SvgNotes01",e})(),O7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M20 3H8a2 2 0 0 0-2 2v3a1 1 0 0 1-1 1 3 3 0 1 0 0 6 1 1 0 0 1 1 1v3a2 2 0 0 0 2 2h2a1 1 0 0 0 1-1 3 3 0 1 1 6 0 1 1 0 0 0 1 1h2a2 2 0 0 0 2-2v-3a1 1 0 0 0-1-1 3 3 0 1 1 0-6 1 1 0 0 0 1-1V5a2 2 0 0 0-2-2Z"})}),_p=(()=>{const e=p.forwardRef(O7);return e.displayName="SvgPlugin",e})(),$7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.75 6a.75.75 0 0 0-1.5 0v5.25H6a.75.75 0 0 0 0 1.5h5.25V18a.75.75 0 0 0 1.5 0v-5.25H18a.75.75 0 0 0 0-1.5h-5.25V6Z",clipRule:"evenodd"})}),D7=(()=>{const e=p.forwardRef($7);return e.displayName="SvgPlus",e})(),M7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M7.5 6.043a3 3 0 0 1 3-3h3a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3h-3a3 3 0 0 1-3-3v-12Zm10.5 1h1a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-1v-10Zm-13 10h1v-10H5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2Z"})}),xp=(()=>{const e=p.forwardRef(M7);return e.displayName="SvgPotrait02Grid",e})(),P7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 2h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4Zm9.359 6.641a.75.75 0 0 1 0 1.061L13.06 12l2.298 2.298a.75.75 0 0 1-1.06 1.06L12 13.062 9.702 15.36a.75.75 0 1 1-1.06-1.06l2.296-2.3-2.297-2.298a.75.75 0 0 1 1.06-1.06l2.3 2.297 2.297-2.298a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"})}),Gc=(()=>{const e=p.forwardRef(P7);return e.displayName="SvgRemoveRectangle",e})(),N7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.75 11.5a8.75 8.75 0 1 0 17.5 0 8.75 8.75 0 0 0-17.5 0Zm8.75 10.25c-5.66 0-10.25-4.59-10.25-10.25S5.84 1.25 11.5 1.25 21.75 5.84 21.75 11.5c0 2.56-.939 4.902-2.491 6.698l3.271 3.272a.75.75 0 1 1-1.06 1.06l-3.272-3.271A10.21 10.21 0 0 1 11.5 21.75Z",clipRule:"evenodd"})}),R7=(()=>{const e=p.forwardRef(N7);return e.displayName="SvgSearch02",e})(),L7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"m9.454 4.303 11.23 5.612c1.755.877 1.755 3.379 0 4.256l-11.23 5.612c-1.998.998-4.147-1.055-3.24-3.094l1.636-3.68c.032-.07.06-.143.084-.216H12a.75.75 0 0 0 0-1.5H7.934a2.376 2.376 0 0 0-.084-.216l-1.636-3.68c-.907-2.04 1.242-4.092 3.24-3.094Zm-8.204 5.74a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75Zm.75 3.25a.75.75 0 0 0 0 1.5h2a.75.75 0 0 0 0-1.5H2Z"})}),j7=(()=>{const e=p.forwardRef(L7);return e.displayName="SvgSentFast",e})(),k7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M11.5 2.043a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-18a1 1 0 0 0-1-1h-1Zm-2 10H5.414a1 1 0 0 1-.707-.293l-2-2a1 1 0 0 1 0-1.414l2-2a1 1 0 0 1 .707-.293H9.5v6Zm5 0H19l3 3-3 3h-4.5v-6Z"})}),Ep=(()=>{const e=p.forwardRef(k7);return e.displayName="SvgSignpost00",e})(),F7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.027 3.297a4.281 4.281 0 0 0-6.054 0l-5.72 5.719a4.281 4.281 0 0 0 0 6.054l5.72 5.719a4.281 4.281 0 0 0 6.054 0l5.72-5.719a4.281 4.281 0 0 0 0-6.054l-5.72-5.72Zm-5.91 6.276a.75.75 0 0 0-1.062-1.06L6.763 9.806a1.75 1.75 0 0 0 0 2.474l1.292 1.293a.75.75 0 1 0 1.061-1.06l-.72-.72H10c.69 0 1.25.56 1.25 1.25v3a.75.75 0 0 0 1.5 0v-3c0-.69.56-1.25 1.25-1.25h1.604l-.72.72a.75.75 0 0 0 1.06 1.06l1.293-1.293a1.75 1.75 0 0 0 0-2.474l-1.292-1.293a.75.75 0 1 0-1.061 1.06l.72.72H14c-.788 0-1.499.331-2 .863a2.742 2.742 0 0 0-2-.863H8.396l.72-.72Z",clipRule:"evenodd"})}),B7=(()=>{const e=p.forwardRef(F7);return e.displayName="SvgTurn0100",e})(),z7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.184 5.126A3.25 3.25 0 0 1 15.25 6.75V8H8a4 4 0 0 0-4 4v6a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4v-6c0-1.953-1.4-3.579-3.25-3.93V6.75a4.75 4.75 0 0 0-8.864-2.376.75.75 0 0 0 1.298.752ZM14 15a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})}),G7=(()=>{const e=p.forwardRef(z7);return e.displayName="SvgUnlock",e})(),H7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M2.25 17.043A4.75 4.75 0 0 0 7 21.793h10a4.75 4.75 0 0 0 4.75-4.75v-4A4.75 4.75 0 0 0 17 8.293h-.5a.75.75 0 0 0 0 1.5h.5a3.25 3.25 0 0 1 3.25 3.25v4a3.25 3.25 0 0 1-3.25 3.25H7a3.25 3.25 0 0 1-3.25-3.25v-4A3.25 3.25 0 0 1 7 9.793h.5a.75.75 0 0 0 0-1.5H7a4.75 4.75 0 0 0-4.75 4.75v4Z"}),u.jsx("path",{fill:"currentColor",d:"M8.47 5.513a.75.75 0 0 0 1.06 1.06l1.72-1.72v10.19a.75.75 0 0 0 1.5 0V4.853l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3Z"})]}),U7=(()=>{const e=p.forwardRef(H7);return e.displayName="SvgUpload",e})(),V7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.968 4.166c.886-1.555 3.178-1.555 4.064 0l7.672 13.466c.86 1.511-.26 3.368-2.032 3.368H4.328c-1.773 0-2.893-1.857-2.032-3.368L9.968 4.166ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8a.75.75 0 1 0-1.5 0v5a.75.75 0 0 0 1.5 0V9Z",clipRule:"evenodd"})}),W7=(()=>{const e=p.forwardRef(V7);return e.displayName="SvgWarningError",e})();function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ae.apply(this,arguments)}function q7(e,t){const n=p.createContext(t);function r(s){const{children:l,...c}=s,d=p.useMemo(()=>c,Object.values(c));return p.createElement(n.Provider,{value:d},l)}function i(s){const l=p.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,i]}function zt(e,t=[]){let n=[];function r(s,l){const c=p.createContext(l),d=n.length;n=[...n,l];function f(g){const{scope:v,children:b,...E}=g,_=(v==null?void 0:v[e][d])||c,w=p.useMemo(()=>E,Object.values(E));return p.createElement(_.Provider,{value:w},b)}function m(g,v){const b=(v==null?void 0:v[e][d])||c,E=p.useContext(b);if(E)return E;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${s}\``)}return f.displayName=s+"Provider",[f,m]}const i=()=>{const s=n.map(l=>p.createContext(l));return function(c){const d=(c==null?void 0:c[e])||s;return p.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return i.scopeName=e,[r,Y7(i,...t)]}function Y7(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const l=r.reduce((c,{useScope:d,scopeName:f})=>{const g=d(s)[`__scope${f}`];return{...c,...g}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function Z7(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Hc(...e){return t=>e.forEach(n=>Z7(n,t))}function et(...e){return p.useCallback(Hc(...e),e)}const Ii=p.forwardRef((e,t)=>{const{children:n,...r}=e,i=p.Children.toArray(n),s=i.find(X7);if(s){const l=s.props.children,c=i.map(d=>d===s?p.Children.count(l)>1?p.Children.only(null):p.isValidElement(l)?l.props.children:null:d);return p.createElement(Uc,ae({},r,{ref:t}),p.isValidElement(l)?p.cloneElement(l,void 0,c):null)}return p.createElement(Uc,ae({},r,{ref:t}),n)});Ii.displayName="Slot";const Uc=p.forwardRef((e,t)=>{const{children:n,...r}=e;return p.isValidElement(n)?p.cloneElement(n,{...K7(r,n.props),ref:t?Hc(t,n.ref):n.ref}):p.Children.count(n)>1?p.Children.only(null):null});Uc.displayName="SlotClone";const wp=({children:e})=>p.createElement(p.Fragment,null,e);function X7(e){return p.isValidElement(e)&&e.type===wp}function K7(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...c)=>{s(...c),i(...c)}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function ma(e){const t=e+"CollectionProvider",[n,r]=zt(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=b=>{const{scope:E,children:_}=b,w=p.useRef(null),y=p.useRef(new Map).current;return p.createElement(i,{scope:E,itemMap:y,collectionRef:w},_)},c=e+"CollectionSlot",d=p.forwardRef((b,E)=>{const{scope:_,children:w}=b,y=s(c,_),T=et(E,y.collectionRef);return p.createElement(Ii,{ref:T},w)}),f=e+"CollectionItemSlot",m="data-radix-collection-item",g=p.forwardRef((b,E)=>{const{scope:_,children:w,...y}=b,T=p.useRef(null),S=et(E,T),O=s(f,_);return p.useEffect(()=>(O.itemMap.set(T,{ref:T,...y}),()=>void O.itemMap.delete(T))),p.createElement(Ii,{[m]:"",ref:S},w)});function v(b){const E=s(e+"CollectionConsumer",b);return p.useCallback(()=>{const w=E.collectionRef.current;if(!w)return[];const y=Array.from(w.querySelectorAll(`[${m}]`));return Array.from(E.itemMap.values()).sort((O,I)=>y.indexOf(O.ref.current)-y.indexOf(I.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:l,Slot:d,ItemSlot:g},v,r]}function Ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function on(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function mn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=Q7({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:r,c=on(n),d=p.useCallback(f=>{if(s){const g=typeof f=="function"?f(e):f;g!==e&&c(g)}else i(f)},[s,e,i,c]);return[l,d]}function Q7({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,i=p.useRef(r),s=on(t);return p.useEffect(()=>{i.current!==r&&(s(r),i.current=r)},[r,i,s]),n}const Re=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=p.forwardRef((r,i)=>{const{asChild:s,...l}=r,c=s?Ii:t;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(c,ae({},l,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Vc(e,t){e&&$n.flushSync(()=>e.dispatchEvent(t))}const Qr=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{};function J7(e,t){return p.useReducer((n,r)=>{const i=t[n][r];return i??n},e)}const sn=e=>{const{present:t,children:n}=e,r=e3(t),i=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),s=et(r.ref,i.ref);return typeof n=="function"||r.isPresent?p.cloneElement(i,{ref:s}):null};sn.displayName="Presence";function e3(e){const[t,n]=p.useState(),r=p.useRef({}),i=p.useRef(e),s=p.useRef("none"),l=e?"mounted":"unmounted",[c,d]=J7(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const f=va(r.current);s.current=c==="mounted"?f:"none"},[c]),Qr(()=>{const f=r.current,m=i.current;if(m!==e){const v=s.current,b=va(f);e?d("MOUNT"):b==="none"||(f==null?void 0:f.display)==="none"?d("UNMOUNT"):d(m&&v!==b?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,d]),Qr(()=>{if(t){const f=g=>{const b=va(r.current).includes(g.animationName);g.target===t&&b&&$n.flushSync(()=>d("ANIMATION_END"))},m=g=>{g.target===t&&(s.current=va(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:p.useCallback(f=>{f&&(r.current=getComputedStyle(f)),n(f)},[])}}function va(e){return(e==null?void 0:e.animationName)||"none"}const t3=ve.useId||(()=>{});let n3=0;function Xn(e){const[t,n]=ve.useState(t3());return Qr(()=>{n(r=>r??String(n3++))},[e]),t?`radix-${t}`:""}const yp="Collapsible",[r3,Cp]=zt(yp),[i3,Wc]=r3(yp),o3=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:s,onOpenChange:l,...c}=e,[d=!1,f]=mn({prop:r,defaultProp:i,onChange:l});return p.createElement(i3,{scope:n,disabled:s,contentId:Xn(),open:d,onOpenToggle:p.useCallback(()=>f(m=>!m),[f])},p.createElement(Re.div,ae({"data-state":qc(d),"data-disabled":s?"":void 0},c,{ref:t})))}),s3="CollapsibleTrigger",a3=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=Wc(s3,n);return p.createElement(Re.button,ae({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":qc(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},r,{ref:t,onClick:Ee(e.onClick,i.onOpenToggle)}))}),Tp="CollapsibleContent",l3=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Wc(Tp,e.__scopeCollapsible);return p.createElement(sn,{present:n||i.open},({present:s})=>p.createElement(c3,ae({},r,{ref:t,present:s})))}),c3=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...s}=e,l=Wc(Tp,n),[c,d]=p.useState(r),f=p.useRef(null),m=et(t,f),g=p.useRef(0),v=g.current,b=p.useRef(0),E=b.current,_=l.open||c,w=p.useRef(_),y=p.useRef();return p.useEffect(()=>{const T=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(T)},[]),Qr(()=>{const T=f.current;if(T){y.current=y.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const S=T.getBoundingClientRect();g.current=S.height,b.current=S.width,w.current||(T.style.transitionDuration=y.current.transitionDuration,T.style.animationName=y.current.animationName),d(r)}},[l.open,r]),p.createElement(Re.div,ae({"data-state":qc(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!_},s,{ref:m,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style}}),_&&i)});function qc(e){return e?"open":"closed"}const d3=o3,u3=a3,f3=l3,p3=p.createContext(void 0);function ds(e){const t=p.useContext(p3);return e||t||"ltr"}const Jr="Accordion",h3=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Yc,g3,m3]=ma(Jr),[ba,_k]=zt(Jr,[m3,Cp]),Zc=Cp(),Sp=p.forwardRef((e,t)=>{const{type:n,...r}=e,i=r,s=r;return p.createElement(Yc.Provider,{scope:e.__scopeAccordion},n==="multiple"?p.createElement(x3,ae({},s,{ref:t})):p.createElement(_3,ae({},i,{ref:t})))});Sp.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[Ip,v3]=ba(Jr),[Ap,b3]=ba(Jr,{collapsible:!1}),_3=p.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:s=!1,...l}=e,[c,d]=mn({prop:n,defaultProp:r,onChange:i});return p.createElement(Ip,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:d,onItemClose:p.useCallback(()=>s&&d(""),[s,d])},p.createElement(Ap,{scope:e.__scopeAccordion,collapsible:s},p.createElement(Op,ae({},l,{ref:t}))))}),x3=p.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[l=[],c]=mn({prop:n,defaultProp:r,onChange:i}),d=p.useCallback(m=>c((g=[])=>[...g,m]),[c]),f=p.useCallback(m=>c((g=[])=>g.filter(v=>v!==m)),[c]);return p.createElement(Ip,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:f},p.createElement(Ap,{scope:e.__scopeAccordion,collapsible:!0},p.createElement(Op,ae({},s,{ref:t}))))}),[E3,_a]=ba(Jr),Op=p.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:s="vertical",...l}=e,c=p.useRef(null),d=et(c,t),f=g3(n),g=ds(i)==="ltr",v=Ee(e.onKeyDown,b=>{var E;if(!h3.includes(b.key))return;const _=b.target,w=f().filter(k=>{var Y;return!((Y=k.ref.current)!==null&&Y!==void 0&&Y.disabled)}),y=w.findIndex(k=>k.ref.current===_),T=w.length;if(y===-1)return;b.preventDefault();let S=y;const O=0,I=T-1,M=()=>{S=y+1,S>I&&(S=O)},N=()=>{S=y-1,S<O&&(S=I)};switch(b.key){case"Home":S=O;break;case"End":S=I;break;case"ArrowRight":s==="horizontal"&&(g?M():N());break;case"ArrowDown":s==="vertical"&&M();break;case"ArrowLeft":s==="horizontal"&&(g?N():M());break;case"ArrowUp":s==="vertical"&&N();break}const D=S%T;(E=w[D].ref.current)===null||E===void 0||E.focus()});return p.createElement(E3,{scope:n,disabled:r,direction:i,orientation:s},p.createElement(Yc.Slot,{scope:n},p.createElement(Re.div,ae({},l,{"data-orientation":s,ref:d,onKeyDown:r?void 0:v}))))}),Xc="AccordionItem",[w3,Kc]=ba(Xc),y3=p.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...i}=e,s=_a(Xc,n),l=v3(Xc,n),c=Zc(n),d=Xn(),f=r&&l.value.includes(r)||!1,m=s.disabled||e.disabled;return p.createElement(w3,{scope:n,open:f,disabled:m,triggerId:d},p.createElement(d3,ae({"data-orientation":s.orientation,"data-state":Dp(f)},c,i,{ref:t,disabled:m,open:f,onOpenChange:g=>{g?l.onItemOpen(r):l.onItemClose(r)}})))}),C3="AccordionHeader",T3=p.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=_a(Jr,n),s=Kc(C3,n);return p.createElement(Re.h3,ae({"data-orientation":i.orientation,"data-state":Dp(s.open),"data-disabled":s.disabled?"":void 0},r,{ref:t}))}),$p="AccordionTrigger",S3=p.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=_a(Jr,n),s=Kc($p,n),l=b3($p,n),c=Zc(n);return p.createElement(Yc.ItemSlot,{scope:n},p.createElement(u3,ae({"aria-disabled":s.open&&!l.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId},c,r,{ref:t})))}),I3="AccordionContent",A3=p.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=_a(Jr,n),s=Kc(I3,n),l=Zc(n);return p.createElement(f3,ae({role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation},l,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function Dp(e){return e?"open":"closed"}const Qc=Sp,Jc=y3,ed=T3,td=S3,nd=A3,Ai={"accordion--root":"_accordion--root_qw4g3_1","accordion--item":"_accordion--item_qw4g3_11","accordion--icon":"_accordion--icon_qw4g3_26","accordion--trigger":"_accordion--trigger_qw4g3_32",divider:"_divider_qw4g3_46","accordion--content":"_accordion--content_qw4g3_51"},Mp=p.forwardRef((e,t)=>{const{children:n,collapsible:r=!0,...i}=e;return u.jsx(Qc,{...i,collapsible:r,ref:t,className:Ai["accordion--root"],type:"single",children:n})});Mp.displayName="Accordion";const Pp=p.forwardRef(({label:e,children:t,value:n,className:r,contentClassName:i,...s},l)=>u.jsxs(Jc,{className:oe(Ai["accordion--item"],r),value:n,...s,children:[u.jsx(ed,{className:Ai["accordion--header"],children:u.jsxs(td,{className:Ai["accordion--trigger"],children:[typeof e=="string"?u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-1000",children:e}):e,u.jsx(pp,{className:Ai["accordion--icon"],"aria-hidden":!0})]})}),u.jsxs(nd,{ref:l,className:oe(Ai["accordion--content"],i),children:[u.jsx(gr,{className:Ai.divider,color:"gray-300"}),t]})]}));Pp.displayName="AccordionPanel";function O3(e,t=globalThis==null?void 0:globalThis.document){const n=on(e);p.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const rd="dismissableLayer.update",$3="dismissableLayer.pointerDownOutside",D3="dismissableLayer.focusOutside";let Np;const Rp=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),us=p.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:c,onDismiss:d,...f}=e,m=p.useContext(Rp),[g,v]=p.useState(null),b=(n=g==null?void 0:g.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,E]=p.useState({}),_=et(t,D=>v(D)),w=Array.from(m.layers),[y]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),T=w.indexOf(y),S=g?w.indexOf(g):-1,O=m.layersWithOutsidePointerEventsDisabled.size>0,I=S>=T,M=P3(D=>{const k=D.target,Y=[...m.branches].some(L=>L.contains(k));!I||Y||(s==null||s(D),c==null||c(D),D.defaultPrevented||d==null||d())},b),N=N3(D=>{const k=D.target;[...m.branches].some(L=>L.contains(k))||(l==null||l(D),c==null||c(D),D.defaultPrevented||d==null||d())},b);return O3(D=>{S===m.layers.size-1&&(i==null||i(D),!D.defaultPrevented&&d&&(D.preventDefault(),d()))},b),p.useEffect(()=>{if(g)return r&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(Np=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),Lp(),()=>{r&&m.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Np)}},[g,b,r,m]),p.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),Lp())},[g,m]),p.useEffect(()=>{const D=()=>E({});return document.addEventListener(rd,D),()=>document.removeEventListener(rd,D)},[]),p.createElement(Re.div,ae({},f,{ref:_,style:{pointerEvents:O?I?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,N.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,M.onPointerDownCapture)}))}),M3=p.forwardRef((e,t)=>{const n=p.useContext(Rp),r=p.useRef(null),i=et(t,r);return p.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.createElement(Re.div,ae({},e,{ref:i}))});function P3(e,t=globalThis==null?void 0:globalThis.document){const n=on(e),r=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let f=function(){jp($3,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=f,t.addEventListener("click",i.current,{once:!0})):f()}r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function N3(e,t=globalThis==null?void 0:globalThis.document){const n=on(e),r=p.useRef(!1);return p.useEffect(()=>{const i=s=>{s.target&&!r.current&&jp(D3,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Lp(){const e=new CustomEvent(rd);document.dispatchEvent(e)}function jp(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Vc(i,s):i.dispatchEvent(s)}const R3=us,L3=M3;let id=0;function od(){p.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:kp()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:kp()),id++,()=>{id===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),id--}},[])}function kp(){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 sd="focusScope.autoFocusOnMount",ad="focusScope.autoFocusOnUnmount",Fp={bubbles:!1,cancelable:!0},ld=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[c,d]=p.useState(null),f=on(i),m=on(s),g=p.useRef(null),v=et(t,_=>d(_)),b=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let _=function(S){if(b.paused||!c)return;const O=S.target;c.contains(O)?g.current=O:ei(g.current,{select:!0})},w=function(S){if(b.paused||!c)return;const O=S.relatedTarget;O!==null&&(c.contains(O)||ei(g.current,{select:!0}))},y=function(S){const O=document.activeElement;for(const I of S)I.removedNodes.length>0&&(c!=null&&c.contains(O)||ei(c))};document.addEventListener("focusin",_),document.addEventListener("focusout",w);const T=new MutationObserver(y);return c&&T.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",w),T.disconnect()}}},[r,c,b.paused]),p.useEffect(()=>{if(c){Gp.add(b);const _=document.activeElement;if(!c.contains(_)){const y=new CustomEvent(sd,Fp);c.addEventListener(sd,f),c.dispatchEvent(y),y.defaultPrevented||(j3(G3(Bp(c)),{select:!0}),document.activeElement===_&&ei(c))}return()=>{c.removeEventListener(sd,f),setTimeout(()=>{const y=new CustomEvent(ad,Fp);c.addEventListener(ad,m),c.dispatchEvent(y),y.defaultPrevented||ei(_??document.body,{select:!0}),c.removeEventListener(ad,m),Gp.remove(b)},0)}}},[c,f,m,b]);const E=p.useCallback(_=>{if(!n&&!r||b.paused)return;const w=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,y=document.activeElement;if(w&&y){const T=_.currentTarget,[S,O]=k3(T);S&&O?!_.shiftKey&&y===O?(_.preventDefault(),n&&ei(S,{select:!0})):_.shiftKey&&y===S&&(_.preventDefault(),n&&ei(O,{select:!0})):y===T&&_.preventDefault()}},[n,r,b.paused]);return p.createElement(Re.div,ae({tabIndex:-1},l,{ref:v,onKeyDown:E}))});function j3(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ei(r,{select:t}),document.activeElement!==n)return}function k3(e){const t=Bp(e),n=zp(t,e),r=zp(t.reverse(),e);return[n,r]}function Bp(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zp(e,t){for(const n of e)if(!F3(n,{upTo:t}))return n}function F3(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function B3(e){return e instanceof HTMLInputElement&&"select"in e}function ei(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&B3(e)&&t&&e.select()}}const Gp=z3();function z3(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Hp(e,t),e.unshift(t)},remove(t){var n;e=Hp(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Hp(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function G3(e){return e.filter(t=>t.tagName!=="A")}function mo(e){return e.split("-")[1]}function cd(e){return e==="y"?"height":"width"}function Or(e){return e.split("-")[0]}function Oi(e){return["top","bottom"].includes(Or(e))?"x":"y"}function Up(e,t,n){let{reference:r,floating:i}=e;const s=r.x+r.width/2-i.width/2,l=r.y+r.height/2-i.height/2,c=Oi(t),d=cd(c),f=r[d]/2-i[d]/2,m=c==="x";let g;switch(Or(t)){case"top":g={x:s,y:r.y-i.height};break;case"bottom":g={x:s,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:l};break;case"left":g={x:r.x-i.width,y:l};break;default:g={x:r.x,y:r.y}}switch(mo(t)){case"start":g[c]-=f*(n&&m?-1:1);break;case"end":g[c]+=f*(n&&m?-1:1)}return g}const H3=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,c=s.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:g}=Up(f,r,d),v=r,b={},E=0;for(let _=0;_<c.length;_++){const{name:w,fn:y}=c[_],{x:T,y:S,data:O,reset:I}=await y({x:m,y:g,initialPlacement:r,placement:v,strategy:i,middlewareData:b,rects:f,platform:l,elements:{reference:e,floating:t}});m=T??m,g=S??g,b={...b,[w]:{...b[w],...O}},I&&E<=50&&(E++,typeof I=="object"&&(I.placement&&(v=I.placement),I.rects&&(f=I.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:m,y:g}=Up(f,v,d)),_=-1)}return{x:m,y:g,placement:v,strategy:i,middlewareData:b}};function Vp(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function xa(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function fs(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:l,elements:c,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:v=!1,padding:b=0}=t,E=Vp(b),_=c[v?g==="floating"?"reference":"floating":g],w=xa(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:f,rootBoundary:m,strategy:d})),y=g==="floating"?{...l.floating,x:r,y:i}:l.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),S=await(s.isElement==null?void 0:s.isElement(T))&&await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1},O=xa(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:T,strategy:d}):y);return{top:(w.top-O.top+E.top)/S.y,bottom:(O.bottom-w.bottom+E.bottom)/S.y,left:(w.left-O.left+E.left)/S.x,right:(O.right-w.right+E.right)/S.x}}const dd=Math.min,$i=Math.max;function ud(e,t,n){return $i(e,dd(t,n))}const Wp=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e||{},{x:i,y:s,placement:l,rects:c,platform:d,elements:f}=t;if(n==null)return{};const m=Vp(r),g={x:i,y:s},v=Oi(l),b=cd(v),E=await d.getDimensions(n),_=v==="y",w=_?"top":"left",y=_?"bottom":"right",T=_?"clientHeight":"clientWidth",S=c.reference[b]+c.reference[v]-g[v]-c.floating[b],O=g[v]-c.reference[v],I=await(d.getOffsetParent==null?void 0:d.getOffsetParent(n));let M=I?I[T]:0;M&&await(d.isElement==null?void 0:d.isElement(I))||(M=f.floating[T]||c.floating[b]);const N=S/2-O/2,D=m[w],k=M-E[b]-m[y],Y=M/2-E[b]/2+N,L=ud(D,Y,k),G=mo(l)!=null&&Y!=L&&c.reference[b]/2-(Y<D?m[w]:m[y])-E[b]/2<0;return{[v]:g[v]-(G?Y<D?D-Y:k-Y:0),data:{[v]:L,centerOffset:Y-L}}}}),qp=["top","right","bottom","left"];qp.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const U3={left:"right",right:"left",bottom:"top",top:"bottom"};function Ea(e){return e.replace(/left|right|bottom|top/g,t=>U3[t])}function V3(e,t,n){n===void 0&&(n=!1);const r=mo(e),i=Oi(e),s=cd(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=Ea(l)),{main:l,cross:Ea(l)}}const W3={start:"end",end:"start"};function fd(e){return e.replace(/start|end/g,t=>W3[t])}const q3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:E=!0,..._}=e,w=Or(r),y=Or(l)===l,T=await(c.isRTL==null?void 0:c.isRTL(d.floating)),S=g||(y||!E?[Ea(l)]:function(L){const G=Ea(L);return[fd(L),G,fd(G)]}(l));g||b==="none"||S.push(...function(L,G,X,R){const K=mo(L);let B=function(W,J,q){const U=["left","right"],V=["right","left"],ce=["top","bottom"],ue=["bottom","top"];switch(W){case"top":case"bottom":return q?J?V:U:J?U:V;case"left":case"right":return J?ce:ue;default:return[]}}(Or(L),X==="start",R);return K&&(B=B.map(W=>W+"-"+K),G&&(B=B.concat(B.map(fd)))),B}(l,E,b,T));const O=[l,...S],I=await fs(t,_),M=[];let N=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&M.push(I[w]),m){const{main:L,cross:G}=V3(r,s,T);M.push(I[L],I[G])}if(N=[...N,{placement:r,overflows:M}],!M.every(L=>L<=0)){var D,k;const L=(((D=i.flip)==null?void 0:D.index)||0)+1,G=O[L];if(G)return{data:{index:L,overflows:N},reset:{placement:G}};let X=(k=N.filter(R=>R.overflows[0]<=0).sort((R,K)=>R.overflows[1]-K.overflows[1])[0])==null?void 0:k.placement;if(!X)switch(v){case"bestFit":{var Y;const R=(Y=N.map(K=>[K.placement,K.overflows.filter(B=>B>0).reduce((B,W)=>B+W,0)]).sort((K,B)=>K[1]-B[1])[0])==null?void 0:Y[0];R&&(X=R);break}case"initialPlacement":X=l}if(r!==X)return{reset:{placement:X}}}return{}}}};function Yp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zp(e){return qp.some(t=>e[t]>=0)}const Y3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{strategy:n="referenceHidden",...r}=e,{rects:i}=t;switch(n){case"referenceHidden":{const s=Yp(await fs(t,{...r,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Zp(s)}}}case"escaped":{const s=Yp(await fs(t,{...r,altBoundary:!0}),i.floating);return{data:{escapedOffsets:s,escaped:Zp(s)}}}default:return{}}}}},Z3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(s,l){const{placement:c,platform:d,elements:f}=s,m=await(d.isRTL==null?void 0:d.isRTL(f.floating)),g=Or(c),v=mo(c),b=Oi(c)==="x",E=["left","top"].includes(g)?-1:1,_=m&&b?-1:1,w=typeof l=="function"?l(s):l;let{mainAxis:y,crossAxis:T,alignmentAxis:S}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...w};return v&&typeof S=="number"&&(T=v==="end"?-1*S:S),b?{x:T*_,y:y*E}:{x:y*E,y:T*_}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function Xp(e){return e==="x"?"y":"x"}const X3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:w=>{let{x:y,y:T}=w;return{x:y,y:T}}},...d}=e,f={x:n,y:r},m=await fs(t,d),g=Oi(Or(i)),v=Xp(g);let b=f[g],E=f[v];if(s){const w=g==="y"?"bottom":"right";b=ud(b+m[g==="y"?"top":"left"],b,b-m[w])}if(l){const w=v==="y"?"bottom":"right";E=ud(E+m[v==="y"?"top":"left"],E,E-m[w])}const _=c.fn({...t,[g]:b,[v]:E});return{..._,data:{x:_.x-n,y:_.y-r}}}}},K3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:l}=t,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=e,m={x:n,y:r},g=Oi(i),v=Xp(g);let b=m[g],E=m[v];const _=typeof c=="function"?c(t):c,w=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(d){const S=g==="y"?"height":"width",O=s.reference[g]-s.floating[S]+w.mainAxis,I=s.reference[g]+s.reference[S]-w.mainAxis;b<O?b=O:b>I&&(b=I)}if(f){var y,T;const S=g==="y"?"width":"height",O=["top","left"].includes(Or(i)),I=s.reference[v]-s.floating[S]+(O&&((y=l.offset)==null?void 0:y[v])||0)+(O?0:w.crossAxis),M=s.reference[v]+s.reference[S]+(O?0:((T=l.offset)==null?void 0:T[v])||0)-(O?w.crossAxis:0);E<I?E=I:E>M&&(E=M)}return{[g]:b,[v]:E}}}},Q3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:s}=t,{apply:l=()=>{},...c}=e,d=await fs(t,c),f=Or(n),m=mo(n),g=Oi(n)==="x",{width:v,height:b}=r.floating;let E,_;f==="top"||f==="bottom"?(E=f,_=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(_=f,E=m==="end"?"top":"bottom");const w=b-d[E],y=v-d[_],T=!t.middlewareData.shift;let S=w,O=y;if(g){const M=v-d.left-d.right;O=m||T?dd(y,M):M}else{const M=b-d.top-d.bottom;S=m||T?dd(w,M):M}if(T&&!m){const M=$i(d.left,0),N=$i(d.right,0),D=$i(d.top,0),k=$i(d.bottom,0);g?O=v-2*(M!==0||N!==0?M+N:$i(d.left,d.right)):S=b-2*(D!==0||k!==0?D+k:$i(d.top,d.bottom))}await l({...t,availableWidth:O,availableHeight:S});const I=await i.getDimensions(s.floating);return v!==I.width||b!==I.height?{reset:{rects:!0}}:{}}}};function Dn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kn(e){return Dn(e).getComputedStyle(e)}function Kp(e){return e instanceof Dn(e).Node}function ti(e){return Kp(e)?(e.nodeName||"").toLowerCase():""}function Qn(e){return e instanceof Dn(e).HTMLElement}function vn(e){return e instanceof Dn(e).Element}function Qp(e){return typeof ShadowRoot>"u"?!1:e instanceof Dn(e).ShadowRoot||e instanceof ShadowRoot}function ps(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Kn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function J3(e){return["table","td","th"].includes(ti(e))}function pd(e){const t=hd(),n=Kn(e);return n.transform!=="none"||n.perspective!=="none"||!t&&!!n.backdropFilter&&n.backdropFilter!=="none"||!t&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function hd(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function wa(e){return["html","body","#document"].includes(ti(e))}const Jp=Math.min,hs=Math.max,ya=Math.round;function e0(e){const t=Kn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Qn(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:r,c=ya(n)!==s||ya(r)!==l;return c&&(n=s,r=l),{width:n,height:r,fallback:c}}function t0(e){return vn(e)?e:e.contextElement}const n0={x:1,y:1};function vo(e){const t=t0(e);if(!Qn(t))return n0;const n=t.getBoundingClientRect(),{width:r,height:i,fallback:s}=e0(t);let l=(s?ya(n.width):n.width)/r,c=(s?ya(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const r0={x:0,y:0};function i0(e,t,n){var r,i;if(t===void 0&&(t=!0),!hd())return r0;const s=e?Dn(e):window;return!n||t&&n!==s?r0:{x:((r=s.visualViewport)==null?void 0:r.offsetLeft)||0,y:((i=s.visualViewport)==null?void 0:i.offsetTop)||0}}function Di(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=t0(e);let l=n0;t&&(r?vn(r)&&(l=vo(r)):l=vo(e));const c=i0(s,n,r);let d=(i.left+c.x)/l.x,f=(i.top+c.y)/l.y,m=i.width/l.x,g=i.height/l.y;if(s){const v=Dn(s),b=r&&vn(r)?Dn(r):r;let E=v.frameElement;for(;E&&r&&b!==v;){const _=vo(E),w=E.getBoundingClientRect(),y=getComputedStyle(E);w.x+=(E.clientLeft+parseFloat(y.paddingLeft))*_.x,w.y+=(E.clientTop+parseFloat(y.paddingTop))*_.y,d*=_.x,f*=_.y,m*=_.x,g*=_.y,d+=w.x,f+=w.y,E=Dn(E).frameElement}}return xa({width:m,height:g,x:d,y:f})}function ni(e){return((Kp(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ca(e){return vn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function o0(e){return Di(ni(e)).left+Ca(e).scrollLeft}function bo(e){if(ti(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qp(e)&&e.host||ni(e);return Qp(t)?t.host:t}function s0(e){const t=bo(e);return wa(t)?t.ownerDocument.body:Qn(t)&&ps(t)?t:s0(t)}function gs(e,t){var n;t===void 0&&(t=[]);const r=s0(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=Dn(r);return i?t.concat(s,s.visualViewport||[],ps(r)?r:[]):t.concat(r,gs(r))}function a0(e,t,n){let r;if(t==="viewport")r=function(i,s){const l=Dn(i),c=ni(i),d=l.visualViewport;let f=c.clientWidth,m=c.clientHeight,g=0,v=0;if(d){f=d.width,m=d.height;const b=hd();(!b||b&&s==="fixed")&&(g=d.offsetLeft,v=d.offsetTop)}return{width:f,height:m,x:g,y:v}}(e,n);else if(t==="document")r=function(i){const s=ni(i),l=Ca(i),c=i.ownerDocument.body,d=hs(s.scrollWidth,s.clientWidth,c.scrollWidth,c.clientWidth),f=hs(s.scrollHeight,s.clientHeight,c.scrollHeight,c.clientHeight);let m=-l.scrollLeft+o0(i);const g=-l.scrollTop;return Kn(c).direction==="rtl"&&(m+=hs(s.clientWidth,c.clientWidth)-d),{width:d,height:f,x:m,y:g}}(ni(e));else if(vn(t))r=function(i,s){const l=Di(i,!0,s==="fixed"),c=l.top+i.clientTop,d=l.left+i.clientLeft,f=Qn(i)?vo(i):{x:1,y:1};return{width:i.clientWidth*f.x,height:i.clientHeight*f.y,x:d*f.x,y:c*f.y}}(t,n);else{const i=i0(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return xa(r)}function l0(e,t){const n=bo(e);return!(n===t||!vn(n)||wa(n))&&(Kn(n).position==="fixed"||l0(n,t))}function c0(e,t){return Qn(e)&&Kn(e).position!=="fixed"?t?t(e):e.offsetParent:null}function d0(e,t){const n=Dn(e);if(!Qn(e))return n;let r=c0(e,t);for(;r&&J3(r)&&Kn(r).position==="static";)r=c0(r,t);return r&&(ti(r)==="html"||ti(r)==="body"&&Kn(r).position==="static"&&!pd(r))?n:r||function(i){let s=bo(i);for(;Qn(s)&&!wa(s);){if(pd(s))return s;s=bo(s)}return null}(e)||n}function e4(e,t,n){const r=Qn(t),i=ni(t),s=n==="fixed",l=Di(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(r||!r&&!s)if((ti(t)!=="body"||ps(i))&&(c=Ca(t)),Qn(t)){const f=Di(t,!0,s,t);d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}else i&&(d.x=o0(i));return{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}const t4={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=n==="clippingAncestors"?function(f,m){const g=m.get(f);if(g)return g;let v=gs(f).filter(w=>vn(w)&&ti(w)!=="body"),b=null;const E=Kn(f).position==="fixed";let _=E?bo(f):f;for(;vn(_)&&!wa(_);){const w=Kn(_),y=pd(_);y||w.position!=="fixed"||(b=null),(E?!y&&!b:!y&&w.position==="static"&&b&&["absolute","fixed"].includes(b.position)||ps(_)&&!y&&l0(f,_))?v=v.filter(T=>T!==_):b=w,_=bo(_)}return m.set(f,v),v}(t,this._c):[].concat(n),l=[...s,r],c=l[0],d=l.reduce((f,m)=>{const g=a0(t,m,i);return f.top=hs(g.top,f.top),f.right=Jp(g.right,f.right),f.bottom=Jp(g.bottom,f.bottom),f.left=hs(g.left,f.left),f},a0(t,c,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Qn(n),s=ni(n);if(n===s)return t;let l={scrollLeft:0,scrollTop:0},c={x:1,y:1};const d={x:0,y:0};if((i||!i&&r!=="fixed")&&((ti(n)!=="body"||ps(s))&&(l=Ca(n)),Qn(n))){const f=Di(n);c=vo(n),d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-l.scrollLeft*c.x+d.x,y:t.y*c.y-l.scrollTop*c.y+d.y}},isElement:vn,getDimensions:function(e){return e0(e)},getOffsetParent:d0,getDocumentElement:ni,getScale:vo,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||d0,s=this.getDimensions;return{reference:e4(t,await i(n),r),floating:{x:0,y:0,...await s(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Kn(e).direction==="rtl"};function n4(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=!0,animationFrame:c=!1}=r,d=i||s?[...vn(e)?gs(e):e.contextElement?gs(e.contextElement):[],...gs(t)]:[];d.forEach(v=>{const b=!vn(v)&&v.toString().includes("V");!i||c&&!b||v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});let f,m=null;l&&(m=new ResizeObserver(()=>{n()}),vn(e)&&!c&&m.observe(e),vn(e)||!e.contextElement||c||m.observe(e.contextElement),m.observe(t));let g=c?Di(e):null;return c&&function v(){const b=Di(e);!g||b.x===g.x&&b.y===g.y&&b.width===g.width&&b.height===g.height||n(),g=b,f=requestAnimationFrame(v)}(),n(),()=>{var v;d.forEach(b=>{i&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),(v=m)==null||v.disconnect(),m=null,c&&cancelAnimationFrame(f)}}const r4=(e,t,n)=>{const r=new Map,i={platform:t4,...n},s={...i.platform,_c:r};return H3(e,t,{...i,platform:s})},i4=e=>{const{element:t,padding:n}=e;function r(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){return t&&r(t)?t.current!=null?Wp({element:t.current,padding:n}).fn(i):{}:t?Wp({element:t,padding:n}).fn(i):{}}}};var Ta=typeof document<"u"?p.useLayoutEffect:p.useEffect;function Sa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Sa(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Sa(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function u0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function f0(e,t){const n=u0(e);return Math.round(t*n)/n}function p0(e){const t=ve.useRef(e);return Ta(()=>{t.current=e}),t}function o4(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:d,open:f}=e,[m,g]=ve.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,b]=ve.useState(r);Sa(v,r)||b(r);const[E,_]=ve.useState(null),[w,y]=ve.useState(null),T=ve.useCallback(B=>{B!=M.current&&(M.current=B,_(B))},[_]),S=ve.useCallback(B=>{B!==N.current&&(N.current=B,y(B))},[y]),O=s||E,I=l||w,M=ve.useRef(null),N=ve.useRef(null),D=ve.useRef(m),k=p0(d),Y=p0(i),L=ve.useCallback(()=>{if(!M.current||!N.current)return;const B={placement:t,strategy:n,middleware:v};Y.current&&(B.platform=Y.current),r4(M.current,N.current,B).then(W=>{const J={...W,isPositioned:!0};G.current&&!Sa(D.current,J)&&(D.current=J,F_.flushSync(()=>{g(J)}))})},[v,t,n,Y]);Ta(()=>{f===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,g(B=>({...B,isPositioned:!1})))},[f]);const G=ve.useRef(!1);Ta(()=>(G.current=!0,()=>{G.current=!1}),[]),Ta(()=>{if(O&&(M.current=O),I&&(N.current=I),O&&I){if(k.current)return k.current(O,I,L);L()}},[O,I,L,k]);const X=ve.useMemo(()=>({reference:M,floating:N,setReference:T,setFloating:S}),[T,S]),R=ve.useMemo(()=>({reference:O,floating:I}),[O,I]),K=ve.useMemo(()=>{const B={position:n,left:0,top:0};if(!R.floating)return B;const W=f0(R.floating,m.x),J=f0(R.floating,m.y);return c?{...B,transform:"translate("+W+"px, "+J+"px)",...u0(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:J}},[n,c,R.floating,m.x,m.y]);return ve.useMemo(()=>({...m,update:L,refs:X,elements:R,floatingStyles:K}),[m,L,X,R,K])}const s4=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return p.createElement(Re.svg,ae({},s,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:p.createElement("polygon",{points:"0,0 30,0 15,10"}))});function Ia(e){const[t,n]=p.useState(void 0);return Qr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let l,c;if("borderBoxSize"in s){const d=s.borderBoxSize,f=Array.isArray(d)?d[0]:d;l=f.inlineSize,c=f.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const h0="Popper",[g0,_o]=zt(h0),[a4,m0]=g0(h0),l4=e=>{const{__scopePopper:t,children:n}=e,[r,i]=p.useState(null);return p.createElement(a4,{scope:t,anchor:r,onAnchorChange:i},n)},c4="PopperAnchor",d4=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=m0(c4,n),l=p.useRef(null),c=et(t,l);return p.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:p.createElement(Re.div,ae({},i,{ref:c}))}),v0="PopperContent",[u4,f4]=g0(v0),p4=p.forwardRef((e,t)=>{var n,r,i,s,l,c,d,f;const{__scopePopper:m,side:g="bottom",sideOffset:v=0,align:b="center",alignOffset:E=0,arrowPadding:_=0,collisionBoundary:w=[],collisionPadding:y=0,sticky:T="partial",hideWhenDetached:S=!1,avoidCollisions:O=!0,onPlaced:I,...M}=e,N=m0(v0,m),[D,k]=p.useState(null),Y=et(t,Ke=>k(Ke)),[L,G]=p.useState(null),X=Ia(L),R=(n=X==null?void 0:X.width)!==null&&n!==void 0?n:0,K=(r=X==null?void 0:X.height)!==null&&r!==void 0?r:0,B=g+(b!=="center"?"-"+b:""),W=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},J=Array.isArray(w)?w:[w],q=J.length>0,U={padding:W,boundary:J.filter(m4),altBoundary:q},{refs:V,floatingStyles:ce,placement:ue,isPositioned:pe,middlewareData:we}=o4({strategy:"fixed",placement:B,whileElementsMounted:n4,elements:{reference:N.anchor},middleware:[Z3({mainAxis:v+K,alignmentAxis:E}),O&&X3({mainAxis:!0,crossAxis:!1,limiter:T==="partial"?K3():void 0,...U}),O&&q3({...U}),Q3({...U,apply:({elements:Ke,rects:yt,availableWidth:yn,availableHeight:Rt})=>{const{width:kn,height:jr}=yt.reference,ft=Ke.floating.style;ft.setProperty("--radix-popper-available-width",`${yn}px`),ft.setProperty("--radix-popper-available-height",`${Rt}px`),ft.setProperty("--radix-popper-anchor-width",`${kn}px`),ft.setProperty("--radix-popper-anchor-height",`${jr}px`)}}),L&&i4({element:L,padding:_}),v4({arrowWidth:R,arrowHeight:K}),S&&Y3({strategy:"referenceHidden"})]}),[ne,le]=_0(ue),ge=on(I);Qr(()=>{pe&&(ge==null||ge())},[pe,ge]);const be=(i=we.arrow)===null||i===void 0?void 0:i.x,he=(s=we.arrow)===null||s===void 0?void 0:s.y,We=((l=we.arrow)===null||l===void 0?void 0:l.centerOffset)!==0,[de,_t]=p.useState();return Qr(()=>{D&&_t(window.getComputedStyle(D).zIndex)},[D]),p.createElement("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:pe?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(c=we.transformOrigin)===null||c===void 0?void 0:c.x,(d=we.transformOrigin)===null||d===void 0?void 0:d.y].join(" ")},dir:e.dir},p.createElement(u4,{scope:m,placedSide:ne,onArrowChange:G,arrowX:be,arrowY:he,shouldHideArrow:We},p.createElement(Re.div,ae({"data-side":ne,"data-align":le},M,{ref:Y,style:{...M.style,animation:pe?void 0:"none",opacity:(f=we.hide)!==null&&f!==void 0&&f.referenceHidden?0:void 0}}))))}),b0="PopperArrow",h4={top:"bottom",right:"left",bottom:"top",left:"right"},g4=p.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=f4(b0,r),l=h4[s.placedSide];return p.createElement("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0}},p.createElement(s4,ae({},i,{ref:n,style:{...i.style,display:"block"}})))});function m4(e){return e!==null}const v4=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,s,l;const{placement:c,rects:d,middlewareData:f}=t,g=((n=f.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,v=g?0:e.arrowWidth,b=g?0:e.arrowHeight,[E,_]=_0(c),w={start:"0%",center:"50%",end:"100%"}[_],y=((r=(i=f.arrow)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)+v/2,T=((s=(l=f.arrow)===null||l===void 0?void 0:l.y)!==null&&s!==void 0?s:0)+b/2;let S="",O="";return E==="bottom"?(S=g?w:`${y}px`,O=`${-b}px`):E==="top"?(S=g?w:`${y}px`,O=`${d.floating.height+b}px`):E==="right"?(S=`${-b}px`,O=g?w:`${T}px`):E==="left"&&(S=`${d.floating.width+b}px`,O=g?w:`${T}px`),{data:{x:S,y:O}}}});function _0(e){const[t,n="center"]=e.split("-");return[t,n]}const gd=l4,md=d4,vd=p4,Aa=p.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return r?$n.createPortal(p.createElement(Re.div,ae({},i,{ref:t})),r):null}),bd="rovingFocusGroup.onEntryFocus",b4={bubbles:!1,cancelable:!0},_d="RovingFocusGroup",[xd,x0,_4]=ma(_d),[x4,xo]=zt(_d,[_4]),[E4,w4]=x4(_d),y4=p.forwardRef((e,t)=>p.createElement(xd.Provider,{scope:e.__scopeRovingFocusGroup},p.createElement(xd.Slot,{scope:e.__scopeRovingFocusGroup},p.createElement(C4,ae({},e,{ref:t}))))),C4=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:f,...m}=e,g=p.useRef(null),v=et(t,g),b=ds(s),[E=null,_]=mn({prop:l,defaultProp:c,onChange:d}),[w,y]=p.useState(!1),T=on(f),S=x0(n),O=p.useRef(!1),[I,M]=p.useState(0);return p.useEffect(()=>{const N=g.current;if(N)return N.addEventListener(bd,T),()=>N.removeEventListener(bd,T)},[T]),p.createElement(E4,{scope:n,orientation:r,dir:b,loop:i,currentTabStopId:E,onItemFocus:p.useCallback(N=>_(N),[_]),onItemShiftTab:p.useCallback(()=>y(!0),[]),onFocusableItemAdd:p.useCallback(()=>M(N=>N+1),[]),onFocusableItemRemove:p.useCallback(()=>M(N=>N-1),[])},p.createElement(Re.div,ae({tabIndex:w||I===0?-1:0,"data-orientation":r},m,{ref:v,style:{outline:"none",...e.style},onMouseDown:Ee(e.onMouseDown,()=>{O.current=!0}),onFocus:Ee(e.onFocus,N=>{const D=!O.current;if(N.target===N.currentTarget&&D&&!w){const k=new CustomEvent(bd,b4);if(N.currentTarget.dispatchEvent(k),!k.defaultPrevented){const Y=S().filter(K=>K.focusable),L=Y.find(K=>K.active),G=Y.find(K=>K.id===E),R=[L,G,...Y].filter(Boolean).map(K=>K.ref.current);E0(R)}}O.current=!1}),onBlur:Ee(e.onBlur,()=>y(!1))})))}),T4="RovingFocusGroupItem",S4=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,...l}=e,c=Xn(),d=s||c,f=w4(T4,n),m=f.currentTabStopId===d,g=x0(n),{onFocusableItemAdd:v,onFocusableItemRemove:b}=f;return p.useEffect(()=>{if(r)return v(),()=>b()},[r,v,b]),p.createElement(xd.ItemSlot,{scope:n,id:d,focusable:r,active:i},p.createElement(Re.span,ae({tabIndex:m?0:-1,"data-orientation":f.orientation},l,{ref:t,onMouseDown:Ee(e.onMouseDown,E=>{r?f.onItemFocus(d):E.preventDefault()}),onFocus:Ee(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:Ee(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){f.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const _=O4(E,f.orientation,f.dir);if(_!==void 0){E.preventDefault();let y=g().filter(T=>T.focusable).map(T=>T.ref.current);if(_==="last")y.reverse();else if(_==="prev"||_==="next"){_==="prev"&&y.reverse();const T=y.indexOf(E.currentTarget);y=f.loop?$4(y,T+1):y.slice(T+1)}setTimeout(()=>E0(y))}})})))}),I4={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function A4(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function O4(e,t,n){const r=A4(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return I4[r]}function E0(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function $4(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Ed=y4,wd=S4;var D4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Eo=new WeakMap,Oa=new WeakMap,$a={},yd=0,w0=function(e){return e&&(e.host||w0(e.parentNode))},M4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=w0(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},P4=function(e,t,n,r){var i=M4(t,Array.isArray(e)?e:[e]);$a[n]||($a[n]=new WeakMap);var s=$a[n],l=[],c=new Set,d=new Set(i),f=function(g){!g||c.has(g)||(c.add(g),f(g.parentNode))};i.forEach(f);var m=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(v){if(c.has(v))m(v);else{var b=v.getAttribute(r),E=b!==null&&b!=="false",_=(Eo.get(v)||0)+1,w=(s.get(v)||0)+1;Eo.set(v,_),s.set(v,w),l.push(v),_===1&&E&&Oa.set(v,!0),w===1&&v.setAttribute(n,"true"),E||v.setAttribute(r,"true")}})};return m(t),c.clear(),yd++,function(){l.forEach(function(g){var v=Eo.get(g)-1,b=s.get(g)-1;Eo.set(g,v),s.set(g,b),v||(Oa.has(g)||g.removeAttribute(r),Oa.delete(g)),b||g.removeAttribute(n)}),yd--,yd||(Eo=new WeakMap,Eo=new WeakMap,Oa=new WeakMap,$a={})}},Cd=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=D4(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),P4(r,i,n,"aria-hidden")):function(){return null}},mr=function(){return mr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},mr.apply(this,arguments)};function y0(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function N4(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Da="right-scroll-bar-position",Ma="width-before-scroll-bar",R4="with-scroll-bars-hidden",L4="--removed-body-scroll-bar-size";function j4(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function k4(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}function F4(e,t){return k4(null,function(n){return e.forEach(function(r){return j4(r,n)})})}function B4(e){return e}function z4(e,t){t===void 0&&(t=B4);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(s),l=n}var d=function(){var m=l;l=[],m.forEach(s)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(m){l.push(m),f()},filter:function(m){return l=l.filter(m),n}}}};return i}function G4(e){e===void 0&&(e={});var t=z4(null);return t.options=mr({async:!0,ssr:!1},e),t}var C0=function(e){var t=e.sideCar,n=y0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return ve.createElement(r,mr({},n))};C0.isSideCarExport=!0;function H4(e,t){return e.useMedium(t),C0}var T0=G4(),Td=function(){},Pa=ve.forwardRef(function(e,t){var n=ve.useRef(null),r=ve.useState({onScrollCapture:Td,onWheelCapture:Td,onTouchMoveCapture:Td}),i=r[0],s=r[1],l=e.forwardProps,c=e.children,d=e.className,f=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,b=e.noIsolation,E=e.inert,_=e.allowPinchZoom,w=e.as,y=w===void 0?"div":w,T=y0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=v,O=F4([n,t]),I=mr(mr({},T),i);return ve.createElement(ve.Fragment,null,m&&ve.createElement(S,{sideCar:T0,removeScrollBar:f,shards:g,noIsolation:b,inert:E,setCallbacks:s,allowPinchZoom:!!_,lockRef:n}),l?ve.cloneElement(ve.Children.only(c),mr(mr({},I),{ref:O})):ve.createElement(y,mr({},I,{className:d,ref:O}),c))});Pa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Pa.classNames={fullWidth:Ma,zeroRight:Da};var U4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function V4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=U4();return t&&e.setAttribute("nonce",t),e}function W4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function q4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Y4=function(){var e=0,t=null;return{add:function(n){e==0&&(t=V4())&&(W4(t,n),q4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Z4=function(){var e=Y4();return function(t,n){ve.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},S0=function(){var e=Z4(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},X4={left:0,top:0,right:0,gap:0},Sd=function(e){return parseInt(e||"",10)||0},K4=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Sd(n),Sd(r),Sd(i)]},Q4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return X4;var t=K4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},J4=S0(),e6=function(e,t,n,r){var i=e.left,s=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
28
|
-
.`.concat(
|
|
27
|
+
Check the top-level render call using <`+_e+">.")}return oe}}function lt(j,oe){{if(!j._store||j._store.validated||j.key!=null)return;j._store.validated=!0;var _e=Zs(oe);if(Yo[_e])return;Yo[_e]=!0;var Te="";j&&j._owner&&j._owner!==yr.current&&(Te=" It was passed a child from "+R(j._owner.type)+"."),zn(j),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_e,Te),zn(null)}}function St(j,oe){{if(typeof j!="object")return;if(Array.isArray(j))for(var _e=0;_e<j.length;_e++){var Te=j[_e];Fr(Te)&<(Te,oe)}else if(Fr(j))j._store&&(j._store.validated=!0);else if(j){var qe=M(j);if(typeof qe=="function"&&qe!==j.entries)for(var Be=qe.call(j),Me;!(Me=Be.next()).done;)Fr(Me.value)&<(Me.value,oe)}}}function Lt(j){{var oe=j.type;if(oe==null||typeof oe=="string")return;var _e;if(typeof oe=="function")_e=oe.propTypes;else if(typeof oe=="object"&&(oe.$$typeof===f||oe.$$typeof===v))_e=oe.propTypes;else return;if(_e){var Te=R(oe);jr(_e,j.props,"prop",Te,j)}else if(oe.PropTypes!==void 0&&!Cr){Cr=!0;var qe=R(oe);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",qe||"Unknown")}typeof oe.getDefaultProps=="function"&&!oe.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Gn(j){{for(var oe=Object.keys(j.props),_e=0;_e<oe.length;_e++){var Te=oe[_e];if(Te!=="children"&&Te!=="key"){zn(j),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),zn(null);break}}j.ref!==null&&(zn(j),D("Invalid attribute `ref` supplied to `React.Fragment`."),zn(null))}}function jt(j,oe,_e,Te,qe,Be){{var Me=L(j);if(!Me){var Pe="";(j===void 0||typeof j=="object"&&j!==null&&Object.keys(j).length===0)&&(Pe+=" 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 kt=Ys();kt?Pe+=kt:Pe+=Br();var ct;j===null?ct="null":Array.isArray(j)?ct="array":j!==void 0&&j.$$typeof===r?(ct="<"+(R(j.type)||"Unknown")+" />",Pe=" Did you accidentally export a JSX literal instead of a component?"):ct=typeof j,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ct,Pe)}var ht=un(j,oe,_e,qe,Be);if(ht==null)return ht;if(Me){var cr=oe.children;if(cr!==void 0)if(Te)if(Array.isArray(cr)){for(var zr=0;zr<cr.length;zr++)St(cr[zr],j);Object.freeze&&Object.freeze(cr)}else D("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 St(cr,j)}return j===e.Fragment?Gn(ht):Lt(ht),ht}}function Qt(j,oe,_e){return jt(j,oe,_e,!0)}function Jt(j,oe,_e){return jt(j,oe,_e,!1)}var Tr=Jt,en=Qt;e.jsx=Tr,e.jsxs=en}()}(jc)),jc}process.env.NODE_ENV==="production"?Nc.exports=F_():Nc.exports=B_();var u=Nc.exports;function l1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=l1(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function se(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=l1(e))&&(r&&(r+=" "),r+=t);return r}const ua={divider:"_divider_11gi1_1","sand-drag":"_sand-drag_11gi1_7","black-drag":"_black-drag_11gi1_13","vertical-divider":"_vertical-divider_11gi1_19"},z_={xl:"24px",lg:"16px",md:"12px",sm:"8px",xs:"4px"},G_={default:"","sand-drag":ua["sand-drag"],"black-drag":ua["black-drag"]},gr=p.forwardRef((e,t)=>{const{color:n="gray-300",horizontalMargin:r=!0,verticalMargin:i="xs",variant:s="default",className:l,...c}=e,d=p.useMemo(()=>({margin:`${z_[i]} ${r?"8px":0}`}),[i,r]);return u.jsx("div",{ref:t,className:se(ua.divider,`bg--${n}`,G_[s],r&&ua["vertical-divider"],l),style:d,...c})});gr.displayName="Divider";const c1={text:"_text_1n5gj_1","text--size-lg":"_text--size-lg_1n5gj_6","text--size-md":"_text--size-md_1n5gj_12","text--size-sm":"_text--size-sm_1n5gj_18","text--size-xs":"_text--size-xs_1n5gj_24"},ye=p.forwardRef((e,t)=>{const{size:n="md",fontWeight:r="regular",color:i="gray-900",className:s,...l}=e;return u.jsx("p",{ref:t,className:se(c1.text,c1[`text--size-${n}`],`text--weight-${r}`,`text--${i}`,s),...l})});ye.displayName="Text";const H_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M21 17.397v1.646a2 2 0 0 1-2 2c-8.837 0-16-7.163-16-16a2 2 0 0 1 2-2h1.646A2 2 0 0 1 8.503 4.3l.814 2.034a2 2 0 0 1-.963 2.532L8 9.043s.5 2.5 2.5 4.5 4.5 2.5 4.5 2.5l.177-.354a2 2 0 0 1 2.532-.963l2.034.814A2 2 0 0 1 21 17.397ZM15.938 8.09 14.426 6.2A1.944 1.944 0 0 1 14 4.986V4.9a1.856 1.856 0 0 1 3.169-1.312l.331.331.331-.331A1.856 1.856 0 0 1 21 4.899v.087c0 .442-.15.87-.426 1.214l-1.512 1.89a2 2 0 0 1-3.124 0Z"})}),U_=(()=>{const e=p.forwardRef(H_);return e.displayName="SvgCallLove",e})(),V_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M21 19.043v-1.646a2 2 0 0 0-1.257-1.857l-2.034-.814a2 2 0 0 0-2.532.963l-.177.354s-2.5-.5-4.5-2.5-2.5-4.5-2.5-4.5l.354-.177a2 2 0 0 0 .963-2.532L8.503 4.3a2 2 0 0 0-1.857-1.257H5a2 2 0 0 0-2 2c0 8.837 7.163 16 16 16a2 2 0 0 0 2-2Z"})}),fa=(()=>{const e=p.forwardRef(V_);return e.displayName="SvgCall",e})(),W_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M18 2H6a4 4 0 0 0-4 4v12a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4V6a4 4 0 0 0-4-4Zm-1.408 7.46a.75.75 0 0 0-1.184-.92l-4.007 5.151a.25.25 0 0 1-.365.033l-2.534-2.281a.75.75 0 1 0-1.004 1.114l2.535 2.282a1.75 1.75 0 0 0 2.552-.227l4.007-5.152Z",clipRule:"evenodd"})}),kc=(()=>{const e=p.forwardRef(W_);return e.displayName="SvgCheckRectangle",e})(),q_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M22 7.292h-6.543l3.641-5.097A4.002 4.002 0 0 1 22 6.042v1.25Z"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 8.792h20v9.25a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4v-9.25Zm8 5.053v2.394c0 1.198 1.335 1.913 2.332 1.248l1.796-1.197a1.5 1.5 0 0 0 0-2.496l-1.796-1.197c-.997-.665-2.332.05-2.332 1.248Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",d:"M5.614 7.292H2v-1.25a4 4 0 0 1 4-4h3.364l-3.75 5.25Zm1.843 0 3.75-5.25h6.157l-3.75 5.25H7.457Z"})]}),d1=(()=>{const e=p.forwardRef(q_);return e.displayName="SvgClapperboard1",e})(),Y_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 12 12",ref:t,...e,children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.91424 9.84645C8.77924 10.0229 8.53299 10.0515 8.36424 9.91034L6 7.93298L3.63576 9.91034C3.46701 10.0515 3.22076 10.0229 3.08576 9.84645C2.95076 9.67003 2.97812 9.41259 3.14687 9.27145L5.75555 7.08964C5.89847 6.97012 6.10153 6.97012 6.24444 7.08964L8.85313 9.27145C9.02188 9.41259 9.04924 9.67003 8.91424 9.84645Z",fill:"currentColor"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.08576 2.15355C3.22076 1.97712 3.46701 1.94852 3.63576 2.08966L6 4.06702L8.36424 2.08966C8.53299 1.94852 8.77924 1.97712 8.91424 2.15355C9.04924 2.32997 9.02188 2.58741 8.85313 2.72855L6.24445 4.91036C6.10153 5.02988 5.89847 5.02988 5.75556 4.91036L3.14687 2.72855C2.97812 2.58741 2.95076 2.32997 3.08576 2.15355Z",fill:"currentColor"})]}),Z_=(()=>{const e=p.forwardRef(Y_);return e.displayName="SvgCollapse",e})(),X_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M6 5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1H6V5ZM4 9.5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v1H4v-1Z"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 14a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v3a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4v-3Zm7.25 1a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"})]}),K_=(()=>{const e=p.forwardRef(X_);return e.displayName="SvgCollection",e})(),Q_=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm2.861-13.954-6.27 2.09c-.788.263-.788 1.377 0 1.64l2.315.771c.258.086.46.289.547.547l.772 2.315c.262.788 1.377.788 1.64 0l2.09-6.27a.864.864 0 0 0-1.094-1.093Z",clipRule:"evenodd"})}),u1=(()=>{const e=p.forwardRef(Q_);return e.displayName="SvgCompass",e})(),J_=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.225 8.65C21.055 7.604 22 6.166 22 5.043c0-2-1.343-3-3-3s-3 1-3 3.21c0 1.204.892 2.519 1.703 3.466.68.795 1.871.75 2.522-.07ZM19 6.043a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-13 16c2 0 4-3.79 4-6a4 4 0 1 0-8 0c0 2.21 2 6 4 6Zm0-4.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",d:"M17.53 12.073a.75.75 0 0 0-1.06-1.06l-.161.16a.75.75 0 1 0 1.06 1.061l.161-.16Zm-2.089 2.09a.75.75 0 0 0-1.06-1.061l-.322.321a.75.75 0 1 0 1.06 1.061l.322-.321Zm-2.25 2.25a.75.75 0 0 0-1.06-1.061l-.161.16a.75.75 0 0 0 1.06 1.061l.161-.16Z"})]}),Fc=(()=>{const e=p.forwardRef(J_);return e.displayName="SvgDestination0200",e})(),e7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.414 9.574a.75.75 0 0 1 1.055-.117L12 13.082l4.532-3.625a.75.75 0 0 1 .936 1.172l-5 4a.75.75 0 0 1-.937 0l-5-4a.75.75 0 0 1-.117-1.055Z",clipRule:"evenodd"})}),f1=(()=>{const e=p.forwardRef(e7);return e.displayName="SvgDirectionDown01Chevron",e})(),t7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.469 6.457a.75.75 0 0 1 .117 1.055l-3.626 4.531 3.626 4.532a.75.75 0 1 1-1.172.937l-4-5a.75.75 0 0 1 0-.938l4-5a.75.75 0 0 1 1.055-.117Z",clipRule:"evenodd"})}),n7=(()=>{const e=p.forwardRef(t7);return e.displayName="SvgDirectionLeft01Chevron",e})(),r7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.532 6.457a.75.75 0 0 0-.118 1.055l3.626 4.531-3.626 4.532a.75.75 0 1 0 1.172.937l4-5a.75.75 0 0 0 0-.938l-4-5a.75.75 0 0 0-1.054-.117Z",clipRule:"evenodd"})}),pa=(()=>{const e=p.forwardRef(r7);return e.displayName="SvgDirectionRightChevron",e})(),i7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M11.289 3H8.123a4 4 0 0 0-3.88 3.03L2.62 12.515A2 2 0 0 0 4.561 15H9.5l-1.307 2.24c-.972 1.667.23 3.76 2.16 3.76H11.5l3.868-6.77a1 1 0 0 0 .132-.496V5.535a1 1 0 0 0-.445-.832l-1.547-1.031A4 4 0 0 0 11.288 3ZM20 15h-1a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2Z"})}),o7=(()=>{const e=p.forwardRef(i7);return e.displayName="SvgDislike",e})(),s7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M2.75 6A3.25 3.25 0 0 1 6 2.75h6a.75.75 0 0 0 0-1.5H6A4.75 4.75 0 0 0 1.25 6v12A4.75 4.75 0 0 0 6 22.75h12A4.75 4.75 0 0 0 22.75 18v-6a.75.75 0 0 0-1.5 0v6A3.25 3.25 0 0 1 18 21.25H6A3.25 3.25 0 0 1 2.75 18V6Z"}),u.jsx("path",{fill:"currentColor",d:"M16.419 2.677a2.312 2.312 0 0 1 3.27 0l1.634 1.635a2.312 2.312 0 0 1 0 3.269l-1.45 1.45a16.081 16.081 0 0 1-.357-.183c-.835-.44-1.827-1.057-2.567-1.797-.74-.74-1.357-1.732-1.797-2.567a16.251 16.251 0 0 1-.182-.358l1.449-1.449Zm-.53 5.434c.875.876 1.989 1.565 2.87 2.033l-5.699 5.7a2.312 2.312 0 0 1-1.308.654l-3.432.49a1.156 1.156 0 0 1-1.308-1.308l.49-3.432c.071-.495.3-.954.654-1.308l5.7-5.7c.468.882 1.157 1.996 2.033 2.871Z"})]}),p1=(()=>{const e=p.forwardRef(s7);return e.displayName="SvgEditRectangle",e})(),a7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 12 12",ref:t,...e,children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.08576 7.15355C3.22076 6.97713 3.46701 6.94852 3.63576 7.08966L6 9.06702L8.36424 7.08966C8.53299 6.94852 8.77924 6.97712 8.91424 7.15355C9.04924 7.32997 9.02188 7.58741 8.85313 7.72855L6.24444 9.91036C6.10153 10.0299 5.89847 10.0299 5.75556 9.91036L3.14687 7.72855C2.97812 7.58741 2.95076 7.32997 3.08576 7.15355Z",fill:"currentColor"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.91424 4.84645C8.77924 5.02288 8.53299 5.05148 8.36424 4.91034L6 2.93298L3.63576 4.91034C3.46701 5.05148 3.22076 5.02288 3.08576 4.84645C2.95076 4.67003 2.97812 4.41259 3.14687 4.27145L5.75555 2.08964C5.89847 1.97012 6.10153 1.97012 6.24444 2.08964L8.85313 4.27145C9.02188 4.41259 9.04924 4.67003 8.91424 4.84645Z",fill:"currentColor"})]}),l7=(()=>{const e=p.forwardRef(a7);return e.displayName="SvgExpand",e})(),c7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M2.5 5.793a3.25 3.25 0 0 1 3.25-3.25h2a.75.75 0 0 0 0-1.5h-2A4.75 4.75 0 0 0 1 5.793v2a.75.75 0 0 0 1.5 0v-2Zm13.25-4.75a.75.75 0 0 0 0 1.5h2A3.25 3.25 0 0 1 21 5.793v2a.75.75 0 0 0 1.5 0v-2a4.75 4.75 0 0 0-4.75-4.75h-2Zm6.75 14.75a.75.75 0 0 0-1.5 0v2a3.25 3.25 0 0 1-3.25 3.25h-2a.75.75 0 0 0 0 1.5h2a4.75 4.75 0 0 0 4.75-4.75v-2Zm-20 .556a.75.75 0 0 0-1.5 0v1.444a4.75 4.75 0 0 0 4.75 4.75h2a.75.75 0 0 0 0-1.5h-2a3.25 3.25 0 0 1-3.25-3.25v-1.444Zm16.79-3.455c-1.423 1.473-4.265 3.899-7.54 3.899-3.274 0-6.117-2.426-7.54-3.899-.613-.634-.613-1.568 0-2.202 1.423-1.473 4.266-3.899 7.54-3.899s6.117 2.426 7.54 3.899c.613.634.613 1.568 0 2.202Z"})}),h1=(()=>{const e=p.forwardRef(c7);return e.displayName="SvgEyeScannerSmart",e})(),d7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M14 5h2a3 3 0 0 1 2.905 2.25H21a.75.75 0 0 1 0 1.5h-2.095A3.001 3.001 0 0 1 16 11h-2a3 3 0 1 1 0-6ZM3 7.25a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5H3Zm13 8a.75.75 0 0 0 0 1.5h5a.75.75 0 0 0 0-1.5h-5ZM10 13H8a3.001 3.001 0 0 0-2.905 2.25H3a.75.75 0 0 0 0 1.5h2.095A3.001 3.001 0 0 0 8 19h2a3 3 0 1 0 0-6Z"})}),g1=(()=>{const e=p.forwardRef(d7);return e.displayName="SvgFilter01",e})(),u7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M22 17.042v-7a4 4 0 0 0-4-4h-2.667a4 4 0 0 1-2.4-.8l-1.866-1.4a4 4 0 0 0-2.4-.8H6a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4Z"})}),f7=(()=>{const e=p.forwardRef(u7);return e.displayName="SvgFolder03",e})(),p7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M2 6.417v11.25c0 .222.02.439.06.649l2.835-6.449c.923-2.15 3-3.575 5.334-3.575h9.076c-.18-1.687-1.557-3-3.229-3h-3.353c-.578 0-1.146-.16-1.644-.464L8.91 3.506a3.156 3.156 0 0 0-1.643-.464H5.248C3.454 3.042 2 4.553 2 6.417Z"}),u.jsx("path",{fill:"currentColor",d:"M10.229 9.792h9.602c1.683 0 2.723 1.908 1.857 3.408l-3.267 5.657c-.783 1.356-2.193 2.185-3.714 2.185H5.248a3.18 3.18 0 0 1-2.308-1l3.33-7.578c.696-1.625 2.247-2.672 3.959-2.672Z"})]}),h7=(()=>{const e=p.forwardRef(p7);return e.displayName="SvgFolder",e})(),g7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M12 3.792a8.25 8.25 0 0 0-8.25 8.25v1a3.75 3.75 0 0 1 6 3v2a3.75 3.75 0 1 1-7.5 0v-6c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75v6a3.75 3.75 0 1 1-7.5 0v-2a3.75 3.75 0 0 1 6-3v-1A8.25 8.25 0 0 0 12 3.792Z"})}),m1=(()=>{const e=p.forwardRef(g7);return e.displayName="SvgHeadphones1",e})(),m7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M8.5 11.042a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.25 6.042A4.75 4.75 0 0 1 6 1.292h12a4.75 4.75 0 0 1 4.75 4.75v12a4.75 4.75 0 0 1-4.75 4.75H6a4.75 4.75 0 0 1-4.75-4.75v-12ZM6 2.792a3.25 3.25 0 0 0-3.25 3.25v8.5l2.522 1.681a4 4 0 0 0 5.047-.5l3.362-3.362a4 4 0 0 1 5.048-.5l2.38 1.587c.049.033.096.067.141.103V6.042A3.25 3.25 0 0 0 18 2.792H6Z",clipRule:"evenodd"})]}),v1=(()=>{const e=p.forwardRef(m7);return e.displayName="SvgImage1",e})(),v7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M12.711 21h3.166a4 4 0 0 0 3.88-3.03l1.622-6.485A2 2 0 0 0 19.439 9H14.5l1.307-2.24c.972-1.667-.23-3.76-2.16-3.76H12.5L8.632 9.77a1 1 0 0 0-.132.496v8.199a1 1 0 0 0 .445.832l1.547 1.031a4 4 0 0 0 2.22.672ZM4 9h1a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z"})}),b7=(()=>{const e=p.forwardRef(v7);return e.displayName="SvgLike",e})(),_7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M18.137 5.907a3.964 3.964 0 0 0-5.606 0l-1.667 1.667a.75.75 0 1 1-1.06-1.06l1.666-1.668a5.464 5.464 0 1 1 7.728 7.728L17.53 14.24a.75.75 0 0 1-1.06-1.061l1.666-1.667a3.964 3.964 0 0 0 0-5.606Z"}),u.jsx("path",{fill:"currentColor",d:"M14.652 9.392a.75.75 0 0 1 0 1.06l-4.242 4.243a.75.75 0 1 1-1.06-1.06l4.242-4.243a.75.75 0 0 1 1.06 0Z"}),u.jsx("path",{fill:"currentColor",d:"M11.47 18.18a3.964 3.964 0 1 1-5.606-5.606l1.667-1.667a.75.75 0 0 0-1.06-1.06l-1.667 1.666a5.464 5.464 0 0 0 7.727 7.728l1.667-1.667a.75.75 0 0 0-1.061-1.06L11.47 18.18Z"})]}),ha=(()=>{const e=p.forwardRef(_7);return e.displayName="SvgLink",e})(),x7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M12 6a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm7.929-12.268a2 2 0 1 1-2-3.464 2 2 0 0 1 2 3.464ZM3.34 17a2 2 0 1 0 3.465-2 2 2 0 0 0-3.464 2Zm14.589.732a2 2 0 1 1 2-3.464 2 2 0 0 1-2 3.464ZM3.34 7a2 2 0 1 0 3.465 2A2 2 0 0 0 3.34 7Z"})}),ga=(()=>{const e=p.forwardRef(x7);return e.displayName="SvgLoading",e})(),w7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.75 6.75a3.25 3.25 0 0 1 6.5 0V8h-6.5V6.75Zm-1.5 1.32V6.75a4.75 4.75 0 0 1 9.5 0v1.32A4.001 4.001 0 0 1 20 12v6a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4v-6c0-1.953 1.4-3.579 3.25-3.93ZM14 15a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})}),E7=(()=>{const e=p.forwardRef(w7);return e.displayName="SvgLock",e})(),y7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 3.043a4 4 0 0 0-4 4v10a4 4 0 0 0 4 4h12a4 4 0 0 0 4-4v-10a4 4 0 0 0-4-4H6Zm.416 4.376a.75.75 0 1 0-.832 1.248l3.781 2.52a4.75 4.75 0 0 0 5.27 0l3.781-2.52a.75.75 0 1 0-.832-1.248l-3.781 2.52a3.25 3.25 0 0 1-3.606 0L6.416 7.42Z",clipRule:"evenodd"})}),Bc=(()=>{const e=p.forwardRef(y7);return e.displayName="SvgMail",e})(),C7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M21 2.293h-6a.75.75 0 0 0 0 1.5h4.19l-9.72 9.72a.75.75 0 0 0 1.06 1.06l9.72-9.72v4.19a.75.75 0 0 0 1.5 0v-6a.75.75 0 0 0-.75-.75Z"}),u.jsx("path",{fill:"currentColor",d:"M7 4.293a4.75 4.75 0 0 0-4.75 4.75v8A4.75 4.75 0 0 0 7 21.793h8a4.75 4.75 0 0 0 4.75-4.75v-5a.75.75 0 0 0-1.5 0v5a3.25 3.25 0 0 1-3.25 3.25H7a3.25 3.25 0 0 1-3.25-3.25v-8A3.25 3.25 0 0 1 7 5.793h5a.75.75 0 0 0 0-1.5H7Z"})]}),T7=(()=>{const e=p.forwardRef(C7);return e.displayName="SvgMaximize",e})(),S7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("g",{clipPath:"url(#notes_01_svg__a)",children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.281.793a.75.75 0 0 1 .75.75v1.5h.25a4 4 0 0 1 4 4v10.5a4 4 0 0 1-4 4h-10a4 4 0 0 1-4-4v-10.5a4 4 0 0 1 4-4h.25v-1.5a.75.75 0 0 1 1.5 0v1.5h6.5v-1.5a.75.75 0 0 1 .75-.75Zm1.75 11.75a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Zm-.75-3.25a.75.75 0 1 0 0-1.5h-6a.75.75 0 0 0 0 1.5h6Zm.75 7.25a.75.75 0 0 1-.75.75h-6a.75.75 0 0 1 0-1.5h6a.75.75 0 0 1 .75.75Zm-9.25-8a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"})}),u.jsx("defs",{children:u.jsx("clipPath",{id:"notes_01_svg__a",children:u.jsx("path",{fill:"#fff",d:"M0 .043h24v24H0z"})})})]}),I7=(()=>{const e=p.forwardRef(S7);return e.displayName="SvgNotes01",e})(),A7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M20 3H8a2 2 0 0 0-2 2v3a1 1 0 0 1-1 1 3 3 0 1 0 0 6 1 1 0 0 1 1 1v3a2 2 0 0 0 2 2h2a1 1 0 0 0 1-1 3 3 0 1 1 6 0 1 1 0 0 0 1 1h2a2 2 0 0 0 2-2v-3a1 1 0 0 0-1-1 3 3 0 1 1 0-6 1 1 0 0 0 1-1V5a2 2 0 0 0-2-2Z"})}),b1=(()=>{const e=p.forwardRef(A7);return e.displayName="SvgPlugin",e})(),O7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.75 6a.75.75 0 0 0-1.5 0v5.25H6a.75.75 0 0 0 0 1.5h5.25V18a.75.75 0 0 0 1.5 0v-5.25H18a.75.75 0 0 0 0-1.5h-5.25V6Z",clipRule:"evenodd"})}),$7=(()=>{const e=p.forwardRef(O7);return e.displayName="SvgPlus",e})(),D7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M7.5 6.043a3 3 0 0 1 3-3h3a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3h-3a3 3 0 0 1-3-3v-12Zm10.5 1h1a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-1v-10Zm-13 10h1v-10H5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2Z"})}),_1=(()=>{const e=p.forwardRef(D7);return e.displayName="SvgPotrait02Grid",e})(),M7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 2h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4Zm9.359 6.641a.75.75 0 0 1 0 1.061L13.06 12l2.298 2.298a.75.75 0 0 1-1.06 1.06L12 13.062 9.702 15.36a.75.75 0 1 1-1.06-1.06l2.296-2.3-2.297-2.298a.75.75 0 0 1 1.06-1.06l2.3 2.297 2.297-2.298a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"})}),zc=(()=>{const e=p.forwardRef(M7);return e.displayName="SvgRemoveRectangle",e})(),P7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.75 11.5a8.75 8.75 0 1 0 17.5 0 8.75 8.75 0 0 0-17.5 0Zm8.75 10.25c-5.66 0-10.25-4.59-10.25-10.25S5.84 1.25 11.5 1.25 21.75 5.84 21.75 11.5c0 2.56-.939 4.902-2.491 6.698l3.271 3.272a.75.75 0 1 1-1.06 1.06l-3.272-3.271A10.21 10.21 0 0 1 11.5 21.75Z",clipRule:"evenodd"})}),N7=(()=>{const e=p.forwardRef(P7);return e.displayName="SvgSearch02",e})(),R7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"m9.454 4.303 11.23 5.612c1.755.877 1.755 3.379 0 4.256l-11.23 5.612c-1.998.998-4.147-1.055-3.24-3.094l1.636-3.68c.032-.07.06-.143.084-.216H12a.75.75 0 0 0 0-1.5H7.934a2.376 2.376 0 0 0-.084-.216l-1.636-3.68c-.907-2.04 1.242-4.092 3.24-3.094Zm-8.204 5.74a.75.75 0 0 1 .75-.75h2a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75Zm.75 3.25a.75.75 0 0 0 0 1.5h2a.75.75 0 0 0 0-1.5H2Z"})}),L7=(()=>{const e=p.forwardRef(R7);return e.displayName="SvgSentFast",e})(),j7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M11.5 2.043a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-18a1 1 0 0 0-1-1h-1Zm-2 10H5.414a1 1 0 0 1-.707-.293l-2-2a1 1 0 0 1 0-1.414l2-2a1 1 0 0 1 .707-.293H9.5v6Zm5 0H19l3 3-3 3h-4.5v-6Z"})}),x1=(()=>{const e=p.forwardRef(j7);return e.displayName="SvgSignpost00",e})(),k7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.027 3.297a4.281 4.281 0 0 0-6.054 0l-5.72 5.719a4.281 4.281 0 0 0 0 6.054l5.72 5.719a4.281 4.281 0 0 0 6.054 0l5.72-5.719a4.281 4.281 0 0 0 0-6.054l-5.72-5.72Zm-5.91 6.276a.75.75 0 0 0-1.062-1.06L6.763 9.806a1.75 1.75 0 0 0 0 2.474l1.292 1.293a.75.75 0 1 0 1.061-1.06l-.72-.72H10c.69 0 1.25.56 1.25 1.25v3a.75.75 0 0 0 1.5 0v-3c0-.69.56-1.25 1.25-1.25h1.604l-.72.72a.75.75 0 0 0 1.06 1.06l1.293-1.293a1.75 1.75 0 0 0 0-2.474l-1.292-1.293a.75.75 0 1 0-1.061 1.06l.72.72H14c-.788 0-1.499.331-2 .863a2.742 2.742 0 0 0-2-.863H8.396l.72-.72Z",clipRule:"evenodd"})}),F7=(()=>{const e=p.forwardRef(k7);return e.displayName="SvgTurn0100",e})(),B7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.184 5.126A3.25 3.25 0 0 1 15.25 6.75V8H8a4 4 0 0 0-4 4v6a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4v-6c0-1.953-1.4-3.579-3.25-3.93V6.75a4.75 4.75 0 0 0-8.864-2.376.75.75 0 0 0 1.298.752ZM14 15a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})}),z7=(()=>{const e=p.forwardRef(B7);return e.displayName="SvgUnlock",e})(),G7=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M2.25 17.043A4.75 4.75 0 0 0 7 21.793h10a4.75 4.75 0 0 0 4.75-4.75v-4A4.75 4.75 0 0 0 17 8.293h-.5a.75.75 0 0 0 0 1.5h.5a3.25 3.25 0 0 1 3.25 3.25v4a3.25 3.25 0 0 1-3.25 3.25H7a3.25 3.25 0 0 1-3.25-3.25v-4A3.25 3.25 0 0 1 7 9.793h.5a.75.75 0 0 0 0-1.5H7a4.75 4.75 0 0 0-4.75 4.75v4Z"}),u.jsx("path",{fill:"currentColor",d:"M8.47 5.513a.75.75 0 0 0 1.06 1.06l1.72-1.72v10.19a.75.75 0 0 0 1.5 0V4.853l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3Z"})]}),H7=(()=>{const e=p.forwardRef(G7);return e.displayName="SvgUpload",e})(),U7=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.968 4.166c.886-1.555 3.178-1.555 4.064 0l7.672 13.466c.86 1.511-.26 3.368-2.032 3.368H4.328c-1.773 0-2.893-1.857-2.032-3.368L9.968 4.166ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8a.75.75 0 1 0-1.5 0v5a.75.75 0 0 0 1.5 0V9Z",clipRule:"evenodd"})}),V7=(()=>{const e=p.forwardRef(U7);return e.displayName="SvgWarningError",e})();function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ae.apply(this,arguments)}function W7(e,t){const n=p.createContext(t);function r(s){const{children:l,...c}=s,d=p.useMemo(()=>c,Object.values(c));return p.createElement(n.Provider,{value:d},l)}function i(s){const l=p.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,i]}function zt(e,t=[]){let n=[];function r(s,l){const c=p.createContext(l),d=n.length;n=[...n,l];function f(g){const{scope:v,children:b,...w}=g,_=(v==null?void 0:v[e][d])||c,E=p.useMemo(()=>w,Object.values(w));return p.createElement(_.Provider,{value:E},b)}function m(g,v){const b=(v==null?void 0:v[e][d])||c,w=p.useContext(b);if(w)return w;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${s}\``)}return f.displayName=s+"Provider",[f,m]}const i=()=>{const s=n.map(l=>p.createContext(l));return function(c){const d=(c==null?void 0:c[e])||s;return p.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return i.scopeName=e,[r,q7(i,...t)]}function q7(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const l=r.reduce((c,{useScope:d,scopeName:f})=>{const g=d(s)[`__scope${f}`];return{...c,...g}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function Y7(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Gc(...e){return t=>e.forEach(n=>Y7(n,t))}function et(...e){return p.useCallback(Gc(...e),e)}const Ii=p.forwardRef((e,t)=>{const{children:n,...r}=e,i=p.Children.toArray(n),s=i.find(Z7);if(s){const l=s.props.children,c=i.map(d=>d===s?p.Children.count(l)>1?p.Children.only(null):p.isValidElement(l)?l.props.children:null:d);return p.createElement(Hc,ae({},r,{ref:t}),p.isValidElement(l)?p.cloneElement(l,void 0,c):null)}return p.createElement(Hc,ae({},r,{ref:t}),n)});Ii.displayName="Slot";const Hc=p.forwardRef((e,t)=>{const{children:n,...r}=e;return p.isValidElement(n)?p.cloneElement(n,{...X7(r,n.props),ref:t?Gc(t,n.ref):n.ref}):p.Children.count(n)>1?p.Children.only(null):null});Hc.displayName="SlotClone";const w1=({children:e})=>p.createElement(p.Fragment,null,e);function Z7(e){return p.isValidElement(e)&&e.type===w1}function X7(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...c)=>{s(...c),i(...c)}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function ma(e){const t=e+"CollectionProvider",[n,r]=zt(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=b=>{const{scope:w,children:_}=b,E=p.useRef(null),y=p.useRef(new Map).current;return p.createElement(i,{scope:w,itemMap:y,collectionRef:E},_)},c=e+"CollectionSlot",d=p.forwardRef((b,w)=>{const{scope:_,children:E}=b,y=s(c,_),T=et(w,y.collectionRef);return p.createElement(Ii,{ref:T},E)}),f=e+"CollectionItemSlot",m="data-radix-collection-item",g=p.forwardRef((b,w)=>{const{scope:_,children:E,...y}=b,T=p.useRef(null),S=et(w,T),O=s(f,_);return p.useEffect(()=>(O.itemMap.set(T,{ref:T,...y}),()=>void O.itemMap.delete(T))),p.createElement(Ii,{[m]:"",ref:S},E)});function v(b){const w=s(e+"CollectionConsumer",b);return p.useCallback(()=>{const E=w.collectionRef.current;if(!E)return[];const y=Array.from(E.querySelectorAll(`[${m}]`));return Array.from(w.itemMap.values()).sort((O,I)=>y.indexOf(O.ref.current)-y.indexOf(I.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:l,Slot:d,ItemSlot:g},v,r]}function we(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function on(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function mn({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=K7({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:r,c=on(n),d=p.useCallback(f=>{if(s){const g=typeof f=="function"?f(e):f;g!==e&&c(g)}else i(f)},[s,e,i,c]);return[l,d]}function K7({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,i=p.useRef(r),s=on(t);return p.useEffect(()=>{i.current!==r&&(s(r),i.current=r)},[r,i,s]),n}const Re=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=p.forwardRef((r,i)=>{const{asChild:s,...l}=r,c=s?Ii:t;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(c,ae({},l,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Uc(e,t){e&&$n.flushSync(()=>e.dispatchEvent(t))}const Qr=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{};function Q7(e,t){return p.useReducer((n,r)=>{const i=t[n][r];return i??n},e)}const sn=e=>{const{present:t,children:n}=e,r=J7(t),i=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),s=et(r.ref,i.ref);return typeof n=="function"||r.isPresent?p.cloneElement(i,{ref:s}):null};sn.displayName="Presence";function J7(e){const[t,n]=p.useState(),r=p.useRef({}),i=p.useRef(e),s=p.useRef("none"),l=e?"mounted":"unmounted",[c,d]=Q7(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const f=va(r.current);s.current=c==="mounted"?f:"none"},[c]),Qr(()=>{const f=r.current,m=i.current;if(m!==e){const v=s.current,b=va(f);e?d("MOUNT"):b==="none"||(f==null?void 0:f.display)==="none"?d("UNMOUNT"):d(m&&v!==b?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,d]),Qr(()=>{if(t){const f=g=>{const b=va(r.current).includes(g.animationName);g.target===t&&b&&$n.flushSync(()=>d("ANIMATION_END"))},m=g=>{g.target===t&&(s.current=va(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:p.useCallback(f=>{f&&(r.current=getComputedStyle(f)),n(f)},[])}}function va(e){return(e==null?void 0:e.animationName)||"none"}const e3=ve.useId||(()=>{});let t3=0;function Kn(e){const[t,n]=ve.useState(e3());return Qr(()=>{n(r=>r??String(t3++))},[e]),t?`radix-${t}`:""}const E1="Collapsible",[n3,y1]=zt(E1),[r3,Vc]=n3(E1),i3=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:s,onOpenChange:l,...c}=e,[d=!1,f]=mn({prop:r,defaultProp:i,onChange:l});return p.createElement(r3,{scope:n,disabled:s,contentId:Kn(),open:d,onOpenToggle:p.useCallback(()=>f(m=>!m),[f])},p.createElement(Re.div,ae({"data-state":Wc(d),"data-disabled":s?"":void 0},c,{ref:t})))}),o3="CollapsibleTrigger",s3=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=Vc(o3,n);return p.createElement(Re.button,ae({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Wc(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},r,{ref:t,onClick:we(e.onClick,i.onOpenToggle)}))}),C1="CollapsibleContent",a3=p.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Vc(C1,e.__scopeCollapsible);return p.createElement(sn,{present:n||i.open},({present:s})=>p.createElement(l3,ae({},r,{ref:t,present:s})))}),l3=p.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...s}=e,l=Vc(C1,n),[c,d]=p.useState(r),f=p.useRef(null),m=et(t,f),g=p.useRef(0),v=g.current,b=p.useRef(0),w=b.current,_=l.open||c,E=p.useRef(_),y=p.useRef();return p.useEffect(()=>{const T=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(T)},[]),Qr(()=>{const T=f.current;if(T){y.current=y.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const S=T.getBoundingClientRect();g.current=S.height,b.current=S.width,E.current||(T.style.transitionDuration=y.current.transitionDuration,T.style.animationName=y.current.animationName),d(r)}},[l.open,r]),p.createElement(Re.div,ae({"data-state":Wc(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!_},s,{ref:m,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style}}),_&&i)});function Wc(e){return e?"open":"closed"}const c3=i3,d3=s3,u3=a3,f3=p.createContext(void 0);function ds(e){const t=p.useContext(f3);return e||t||"ltr"}const Jr="Accordion",p3=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[qc,h3,g3]=ma(Jr),[ba,_k]=zt(Jr,[g3,y1]),Yc=y1(),T1=p.forwardRef((e,t)=>{const{type:n,...r}=e,i=r,s=r;return p.createElement(qc.Provider,{scope:e.__scopeAccordion},n==="multiple"?p.createElement(_3,ae({},s,{ref:t})):p.createElement(b3,ae({},i,{ref:t})))});T1.propTypes={type(e){const t=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):e.type==="multiple"&&typeof t=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):e.type==="single"&&Array.isArray(t)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[S1,m3]=ba(Jr),[I1,v3]=ba(Jr,{collapsible:!1}),b3=p.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:s=!1,...l}=e,[c,d]=mn({prop:n,defaultProp:r,onChange:i});return p.createElement(S1,{scope:e.__scopeAccordion,value:c?[c]:[],onItemOpen:d,onItemClose:p.useCallback(()=>s&&d(""),[s,d])},p.createElement(I1,{scope:e.__scopeAccordion,collapsible:s},p.createElement(A1,ae({},l,{ref:t}))))}),_3=p.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[l=[],c]=mn({prop:n,defaultProp:r,onChange:i}),d=p.useCallback(m=>c((g=[])=>[...g,m]),[c]),f=p.useCallback(m=>c((g=[])=>g.filter(v=>v!==m)),[c]);return p.createElement(S1,{scope:e.__scopeAccordion,value:l,onItemOpen:d,onItemClose:f},p.createElement(I1,{scope:e.__scopeAccordion,collapsible:!0},p.createElement(A1,ae({},s,{ref:t}))))}),[x3,_a]=ba(Jr),A1=p.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:s="vertical",...l}=e,c=p.useRef(null),d=et(c,t),f=h3(n),g=ds(i)==="ltr",v=we(e.onKeyDown,b=>{var w;if(!p3.includes(b.key))return;const _=b.target,E=f().filter(k=>{var Y;return!((Y=k.ref.current)!==null&&Y!==void 0&&Y.disabled)}),y=E.findIndex(k=>k.ref.current===_),T=E.length;if(y===-1)return;b.preventDefault();let S=y;const O=0,I=T-1,M=()=>{S=y+1,S>I&&(S=O)},N=()=>{S=y-1,S<O&&(S=I)};switch(b.key){case"Home":S=O;break;case"End":S=I;break;case"ArrowRight":s==="horizontal"&&(g?M():N());break;case"ArrowDown":s==="vertical"&&M();break;case"ArrowLeft":s==="horizontal"&&(g?N():M());break;case"ArrowUp":s==="vertical"&&N();break}const D=S%T;(w=E[D].ref.current)===null||w===void 0||w.focus()});return p.createElement(x3,{scope:n,disabled:r,direction:i,orientation:s},p.createElement(qc.Slot,{scope:n},p.createElement(Re.div,ae({},l,{"data-orientation":s,ref:d,onKeyDown:r?void 0:v}))))}),Zc="AccordionItem",[w3,Xc]=ba(Zc),E3=p.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...i}=e,s=_a(Zc,n),l=m3(Zc,n),c=Yc(n),d=Kn(),f=r&&l.value.includes(r)||!1,m=s.disabled||e.disabled;return p.createElement(w3,{scope:n,open:f,disabled:m,triggerId:d},p.createElement(c3,ae({"data-orientation":s.orientation,"data-state":$1(f)},c,i,{ref:t,disabled:m,open:f,onOpenChange:g=>{g?l.onItemOpen(r):l.onItemClose(r)}})))}),y3="AccordionHeader",C3=p.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=_a(Jr,n),s=Xc(y3,n);return p.createElement(Re.h3,ae({"data-orientation":i.orientation,"data-state":$1(s.open),"data-disabled":s.disabled?"":void 0},r,{ref:t}))}),O1="AccordionTrigger",T3=p.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=_a(Jr,n),s=Xc(O1,n),l=v3(O1,n),c=Yc(n);return p.createElement(qc.ItemSlot,{scope:n},p.createElement(d3,ae({"aria-disabled":s.open&&!l.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId},c,r,{ref:t})))}),S3="AccordionContent",I3=p.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=_a(Jr,n),s=Xc(S3,n),l=Yc(n);return p.createElement(u3,ae({role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation},l,r,{ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))});function $1(e){return e?"open":"closed"}const Kc=T1,Qc=E3,Jc=C3,ed=T3,td=I3,Ai={"accordion--root":"_accordion--root_qw4g3_1","accordion--item":"_accordion--item_qw4g3_11","accordion--icon":"_accordion--icon_qw4g3_26","accordion--trigger":"_accordion--trigger_qw4g3_32",divider:"_divider_qw4g3_46","accordion--content":"_accordion--content_qw4g3_51"},D1=p.forwardRef((e,t)=>{const{children:n,collapsible:r=!0,...i}=e;return u.jsx(Kc,{...i,collapsible:r,ref:t,className:Ai["accordion--root"],type:"single",children:n})});D1.displayName="Accordion";const M1=p.forwardRef(({label:e,children:t,value:n,className:r,contentClassName:i,...s},l)=>u.jsxs(Qc,{className:se(Ai["accordion--item"],r),value:n,...s,children:[u.jsx(Jc,{className:Ai["accordion--header"],children:u.jsxs(ed,{className:Ai["accordion--trigger"],children:[typeof e=="string"?u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-1000",children:e}):e,u.jsx(f1,{className:Ai["accordion--icon"],"aria-hidden":!0})]})}),u.jsxs(td,{ref:l,className:se(Ai["accordion--content"],i),children:[u.jsx(gr,{className:Ai.divider,color:"gray-300"}),t]})]}));M1.displayName="AccordionPanel";function A3(e,t=globalThis==null?void 0:globalThis.document){const n=on(e);p.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const nd="dismissableLayer.update",O3="dismissableLayer.pointerDownOutside",$3="dismissableLayer.focusOutside";let P1;const N1=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),us=p.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:l,onInteractOutside:c,onDismiss:d,...f}=e,m=p.useContext(N1),[g,v]=p.useState(null),b=(n=g==null?void 0:g.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,w]=p.useState({}),_=et(t,D=>v(D)),E=Array.from(m.layers),[y]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),T=E.indexOf(y),S=g?E.indexOf(g):-1,O=m.layersWithOutsidePointerEventsDisabled.size>0,I=S>=T,M=M3(D=>{const k=D.target,Y=[...m.branches].some(L=>L.contains(k));!I||Y||(s==null||s(D),c==null||c(D),D.defaultPrevented||d==null||d())},b),N=P3(D=>{const k=D.target;[...m.branches].some(L=>L.contains(k))||(l==null||l(D),c==null||c(D),D.defaultPrevented||d==null||d())},b);return A3(D=>{S===m.layers.size-1&&(i==null||i(D),!D.defaultPrevented&&d&&(D.preventDefault(),d()))},b),p.useEffect(()=>{if(g)return r&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(P1=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),R1(),()=>{r&&m.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=P1)}},[g,b,r,m]),p.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),R1())},[g,m]),p.useEffect(()=>{const D=()=>w({});return document.addEventListener(nd,D),()=>document.removeEventListener(nd,D)},[]),p.createElement(Re.div,ae({},f,{ref:_,style:{pointerEvents:O?I?"auto":"none":void 0,...e.style},onFocusCapture:we(e.onFocusCapture,N.onFocusCapture),onBlurCapture:we(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:we(e.onPointerDownCapture,M.onPointerDownCapture)}))}),D3=p.forwardRef((e,t)=>{const n=p.useContext(N1),r=p.useRef(null),i=et(t,r);return p.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.createElement(Re.div,ae({},e,{ref:i}))});function M3(e,t=globalThis==null?void 0:globalThis.document){const n=on(e),r=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let f=function(){L1(O3,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=f,t.addEventListener("click",i.current,{once:!0})):f()}r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function P3(e,t=globalThis==null?void 0:globalThis.document){const n=on(e),r=p.useRef(!1);return p.useEffect(()=>{const i=s=>{s.target&&!r.current&&L1($3,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function R1(){const e=new CustomEvent(nd);document.dispatchEvent(e)}function L1(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Uc(i,s):i.dispatchEvent(s)}const N3=us,R3=D3;let rd=0;function id(){p.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:j1()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:j1()),rd++,()=>{rd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),rd--}},[])}function j1(){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 od="focusScope.autoFocusOnMount",sd="focusScope.autoFocusOnUnmount",k1={bubbles:!1,cancelable:!0},ad=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[c,d]=p.useState(null),f=on(i),m=on(s),g=p.useRef(null),v=et(t,_=>d(_)),b=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let _=function(S){if(b.paused||!c)return;const O=S.target;c.contains(O)?g.current=O:ei(g.current,{select:!0})},E=function(S){if(b.paused||!c)return;const O=S.relatedTarget;O!==null&&(c.contains(O)||ei(g.current,{select:!0}))},y=function(S){const O=document.activeElement;for(const I of S)I.removedNodes.length>0&&(c!=null&&c.contains(O)||ei(c))};document.addEventListener("focusin",_),document.addEventListener("focusout",E);const T=new MutationObserver(y);return c&&T.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",E),T.disconnect()}}},[r,c,b.paused]),p.useEffect(()=>{if(c){z1.add(b);const _=document.activeElement;if(!c.contains(_)){const y=new CustomEvent(od,k1);c.addEventListener(od,f),c.dispatchEvent(y),y.defaultPrevented||(L3(z3(F1(c)),{select:!0}),document.activeElement===_&&ei(c))}return()=>{c.removeEventListener(od,f),setTimeout(()=>{const y=new CustomEvent(sd,k1);c.addEventListener(sd,m),c.dispatchEvent(y),y.defaultPrevented||ei(_??document.body,{select:!0}),c.removeEventListener(sd,m),z1.remove(b)},0)}}},[c,f,m,b]);const w=p.useCallback(_=>{if(!n&&!r||b.paused)return;const E=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,y=document.activeElement;if(E&&y){const T=_.currentTarget,[S,O]=j3(T);S&&O?!_.shiftKey&&y===O?(_.preventDefault(),n&&ei(S,{select:!0})):_.shiftKey&&y===S&&(_.preventDefault(),n&&ei(O,{select:!0})):y===T&&_.preventDefault()}},[n,r,b.paused]);return p.createElement(Re.div,ae({tabIndex:-1},l,{ref:v,onKeyDown:w}))});function L3(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ei(r,{select:t}),document.activeElement!==n)return}function j3(e){const t=F1(e),n=B1(t,e),r=B1(t.reverse(),e);return[n,r]}function F1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function B1(e,t){for(const n of e)if(!k3(n,{upTo:t}))return n}function k3(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function F3(e){return e instanceof HTMLInputElement&&"select"in e}function ei(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&F3(e)&&t&&e.select()}}const z1=B3();function B3(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=G1(e,t),e.unshift(t)},remove(t){var n;e=G1(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function G1(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function z3(e){return e.filter(t=>t.tagName!=="A")}function mo(e){return e.split("-")[1]}function ld(e){return e==="y"?"height":"width"}function Or(e){return e.split("-")[0]}function Oi(e){return["top","bottom"].includes(Or(e))?"x":"y"}function H1(e,t,n){let{reference:r,floating:i}=e;const s=r.x+r.width/2-i.width/2,l=r.y+r.height/2-i.height/2,c=Oi(t),d=ld(c),f=r[d]/2-i[d]/2,m=c==="x";let g;switch(Or(t)){case"top":g={x:s,y:r.y-i.height};break;case"bottom":g={x:s,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:l};break;case"left":g={x:r.x-i.width,y:l};break;default:g={x:r.x,y:r.y}}switch(mo(t)){case"start":g[c]-=f*(n&&m?-1:1);break;case"end":g[c]+=f*(n&&m?-1:1)}return g}const G3=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,c=s.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:g}=H1(f,r,d),v=r,b={},w=0;for(let _=0;_<c.length;_++){const{name:E,fn:y}=c[_],{x:T,y:S,data:O,reset:I}=await y({x:m,y:g,initialPlacement:r,placement:v,strategy:i,middlewareData:b,rects:f,platform:l,elements:{reference:e,floating:t}});m=T??m,g=S??g,b={...b,[E]:{...b[E],...O}},I&&w<=50&&(w++,typeof I=="object"&&(I.placement&&(v=I.placement),I.rects&&(f=I.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:m,y:g}=H1(f,v,d)),_=-1)}return{x:m,y:g,placement:v,strategy:i,middlewareData:b}};function U1(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function xa(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function fs(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:l,elements:c,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:v=!1,padding:b=0}=t,w=U1(b),_=c[v?g==="floating"?"reference":"floating":g],E=xa(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:f,rootBoundary:m,strategy:d})),y=g==="floating"?{...l.floating,x:r,y:i}:l.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),S=await(s.isElement==null?void 0:s.isElement(T))&&await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1},O=xa(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:T,strategy:d}):y);return{top:(E.top-O.top+w.top)/S.y,bottom:(O.bottom-E.bottom+w.bottom)/S.y,left:(E.left-O.left+w.left)/S.x,right:(O.right-E.right+w.right)/S.x}}const cd=Math.min,$i=Math.max;function dd(e,t,n){return $i(e,cd(t,n))}const V1=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e||{},{x:i,y:s,placement:l,rects:c,platform:d,elements:f}=t;if(n==null)return{};const m=U1(r),g={x:i,y:s},v=Oi(l),b=ld(v),w=await d.getDimensions(n),_=v==="y",E=_?"top":"left",y=_?"bottom":"right",T=_?"clientHeight":"clientWidth",S=c.reference[b]+c.reference[v]-g[v]-c.floating[b],O=g[v]-c.reference[v],I=await(d.getOffsetParent==null?void 0:d.getOffsetParent(n));let M=I?I[T]:0;M&&await(d.isElement==null?void 0:d.isElement(I))||(M=f.floating[T]||c.floating[b]);const N=S/2-O/2,D=m[E],k=M-w[b]-m[y],Y=M/2-w[b]/2+N,L=dd(D,Y,k),G=mo(l)!=null&&Y!=L&&c.reference[b]/2-(Y<D?m[E]:m[y])-w[b]/2<0;return{[v]:g[v]-(G?Y<D?D-Y:k-Y:0),data:{[v]:L,centerOffset:Y-L}}}}),W1=["top","right","bottom","left"];W1.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const H3={left:"right",right:"left",bottom:"top",top:"bottom"};function wa(e){return e.replace(/left|right|bottom|top/g,t=>H3[t])}function U3(e,t,n){n===void 0&&(n=!1);const r=mo(e),i=Oi(e),s=ld(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=wa(l)),{main:l,cross:wa(l)}}const V3={start:"end",end:"start"};function ud(e){return e.replace(/start|end/g,t=>V3[t])}const W3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,..._}=e,E=Or(r),y=Or(l)===l,T=await(c.isRTL==null?void 0:c.isRTL(d.floating)),S=g||(y||!w?[wa(l)]:function(L){const G=wa(L);return[ud(L),G,ud(G)]}(l));g||b==="none"||S.push(...function(L,G,Z,R){const K=mo(L);let B=function(W,J,q){const U=["left","right"],V=["right","left"],ce=["top","bottom"],ue=["bottom","top"];switch(W){case"top":case"bottom":return q?J?V:U:J?U:V;case"left":case"right":return J?ce:ue;default:return[]}}(Or(L),Z==="start",R);return K&&(B=B.map(W=>W+"-"+K),G&&(B=B.concat(B.map(ud)))),B}(l,w,b,T));const O=[l,...S],I=await fs(t,_),M=[];let N=((n=i.flip)==null?void 0:n.overflows)||[];if(f&&M.push(I[E]),m){const{main:L,cross:G}=U3(r,s,T);M.push(I[L],I[G])}if(N=[...N,{placement:r,overflows:M}],!M.every(L=>L<=0)){var D,k;const L=(((D=i.flip)==null?void 0:D.index)||0)+1,G=O[L];if(G)return{data:{index:L,overflows:N},reset:{placement:G}};let Z=(k=N.filter(R=>R.overflows[0]<=0).sort((R,K)=>R.overflows[1]-K.overflows[1])[0])==null?void 0:k.placement;if(!Z)switch(v){case"bestFit":{var Y;const R=(Y=N.map(K=>[K.placement,K.overflows.filter(B=>B>0).reduce((B,W)=>B+W,0)]).sort((K,B)=>K[1]-B[1])[0])==null?void 0:Y[0];R&&(Z=R);break}case"initialPlacement":Z=l}if(r!==Z)return{reset:{placement:Z}}}return{}}}};function q1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Y1(e){return W1.some(t=>e[t]>=0)}const q3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{strategy:n="referenceHidden",...r}=e,{rects:i}=t;switch(n){case"referenceHidden":{const s=q1(await fs(t,{...r,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Y1(s)}}}case"escaped":{const s=q1(await fs(t,{...r,altBoundary:!0}),i.floating);return{data:{escapedOffsets:s,escaped:Y1(s)}}}default:return{}}}}},Y3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(s,l){const{placement:c,platform:d,elements:f}=s,m=await(d.isRTL==null?void 0:d.isRTL(f.floating)),g=Or(c),v=mo(c),b=Oi(c)==="x",w=["left","top"].includes(g)?-1:1,_=m&&b?-1:1,E=typeof l=="function"?l(s):l;let{mainAxis:y,crossAxis:T,alignmentAxis:S}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...E};return v&&typeof S=="number"&&(T=v==="end"?-1*S:S),b?{x:T*_,y:y*w}:{x:y*w,y:T*_}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function Z1(e){return e==="x"?"y":"x"}const Z3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:E=>{let{x:y,y:T}=E;return{x:y,y:T}}},...d}=e,f={x:n,y:r},m=await fs(t,d),g=Oi(Or(i)),v=Z1(g);let b=f[g],w=f[v];if(s){const E=g==="y"?"bottom":"right";b=dd(b+m[g==="y"?"top":"left"],b,b-m[E])}if(l){const E=v==="y"?"bottom":"right";w=dd(w+m[v==="y"?"top":"left"],w,w-m[E])}const _=c.fn({...t,[g]:b,[v]:w});return{..._,data:{x:_.x-n,y:_.y-r}}}}},X3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:l}=t,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=e,m={x:n,y:r},g=Oi(i),v=Z1(g);let b=m[g],w=m[v];const _=typeof c=="function"?c(t):c,E=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(d){const S=g==="y"?"height":"width",O=s.reference[g]-s.floating[S]+E.mainAxis,I=s.reference[g]+s.reference[S]-E.mainAxis;b<O?b=O:b>I&&(b=I)}if(f){var y,T;const S=g==="y"?"width":"height",O=["top","left"].includes(Or(i)),I=s.reference[v]-s.floating[S]+(O&&((y=l.offset)==null?void 0:y[v])||0)+(O?0:E.crossAxis),M=s.reference[v]+s.reference[S]+(O?0:((T=l.offset)==null?void 0:T[v])||0)-(O?E.crossAxis:0);w<I?w=I:w>M&&(w=M)}return{[g]:b,[v]:w}}}},K3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:s}=t,{apply:l=()=>{},...c}=e,d=await fs(t,c),f=Or(n),m=mo(n),g=Oi(n)==="x",{width:v,height:b}=r.floating;let w,_;f==="top"||f==="bottom"?(w=f,_=m===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(_=f,w=m==="end"?"top":"bottom");const E=b-d[w],y=v-d[_],T=!t.middlewareData.shift;let S=E,O=y;if(g){const M=v-d.left-d.right;O=m||T?cd(y,M):M}else{const M=b-d.top-d.bottom;S=m||T?cd(E,M):M}if(T&&!m){const M=$i(d.left,0),N=$i(d.right,0),D=$i(d.top,0),k=$i(d.bottom,0);g?O=v-2*(M!==0||N!==0?M+N:$i(d.left,d.right)):S=b-2*(D!==0||k!==0?D+k:$i(d.top,d.bottom))}await l({...t,availableWidth:O,availableHeight:S});const I=await i.getDimensions(s.floating);return v!==I.width||b!==I.height?{reset:{rects:!0}}:{}}}};function Dn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qn(e){return Dn(e).getComputedStyle(e)}function X1(e){return e instanceof Dn(e).Node}function ti(e){return X1(e)?(e.nodeName||"").toLowerCase():""}function Jn(e){return e instanceof Dn(e).HTMLElement}function vn(e){return e instanceof Dn(e).Element}function K1(e){return typeof ShadowRoot>"u"?!1:e instanceof Dn(e).ShadowRoot||e instanceof ShadowRoot}function ps(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Qn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Q3(e){return["table","td","th"].includes(ti(e))}function fd(e){const t=pd(),n=Qn(e);return n.transform!=="none"||n.perspective!=="none"||!t&&!!n.backdropFilter&&n.backdropFilter!=="none"||!t&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function pd(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ea(e){return["html","body","#document"].includes(ti(e))}const Q1=Math.min,hs=Math.max,ya=Math.round;function J1(e){const t=Qn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Jn(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:r,c=ya(n)!==s||ya(r)!==l;return c&&(n=s,r=l),{width:n,height:r,fallback:c}}function e0(e){return vn(e)?e:e.contextElement}const t0={x:1,y:1};function vo(e){const t=e0(e);if(!Jn(t))return t0;const n=t.getBoundingClientRect(),{width:r,height:i,fallback:s}=J1(t);let l=(s?ya(n.width):n.width)/r,c=(s?ya(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const n0={x:0,y:0};function r0(e,t,n){var r,i;if(t===void 0&&(t=!0),!pd())return n0;const s=e?Dn(e):window;return!n||t&&n!==s?n0:{x:((r=s.visualViewport)==null?void 0:r.offsetLeft)||0,y:((i=s.visualViewport)==null?void 0:i.offsetTop)||0}}function Di(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=e0(e);let l=t0;t&&(r?vn(r)&&(l=vo(r)):l=vo(e));const c=r0(s,n,r);let d=(i.left+c.x)/l.x,f=(i.top+c.y)/l.y,m=i.width/l.x,g=i.height/l.y;if(s){const v=Dn(s),b=r&&vn(r)?Dn(r):r;let w=v.frameElement;for(;w&&r&&b!==v;){const _=vo(w),E=w.getBoundingClientRect(),y=getComputedStyle(w);E.x+=(w.clientLeft+parseFloat(y.paddingLeft))*_.x,E.y+=(w.clientTop+parseFloat(y.paddingTop))*_.y,d*=_.x,f*=_.y,m*=_.x,g*=_.y,d+=E.x,f+=E.y,w=Dn(w).frameElement}}return xa({width:m,height:g,x:d,y:f})}function ni(e){return((X1(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ca(e){return vn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function i0(e){return Di(ni(e)).left+Ca(e).scrollLeft}function bo(e){if(ti(e)==="html")return e;const t=e.assignedSlot||e.parentNode||K1(e)&&e.host||ni(e);return K1(t)?t.host:t}function o0(e){const t=bo(e);return Ea(t)?t.ownerDocument.body:Jn(t)&&ps(t)?t:o0(t)}function gs(e,t){var n;t===void 0&&(t=[]);const r=o0(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=Dn(r);return i?t.concat(s,s.visualViewport||[],ps(r)?r:[]):t.concat(r,gs(r))}function s0(e,t,n){let r;if(t==="viewport")r=function(i,s){const l=Dn(i),c=ni(i),d=l.visualViewport;let f=c.clientWidth,m=c.clientHeight,g=0,v=0;if(d){f=d.width,m=d.height;const b=pd();(!b||b&&s==="fixed")&&(g=d.offsetLeft,v=d.offsetTop)}return{width:f,height:m,x:g,y:v}}(e,n);else if(t==="document")r=function(i){const s=ni(i),l=Ca(i),c=i.ownerDocument.body,d=hs(s.scrollWidth,s.clientWidth,c.scrollWidth,c.clientWidth),f=hs(s.scrollHeight,s.clientHeight,c.scrollHeight,c.clientHeight);let m=-l.scrollLeft+i0(i);const g=-l.scrollTop;return Qn(c).direction==="rtl"&&(m+=hs(s.clientWidth,c.clientWidth)-d),{width:d,height:f,x:m,y:g}}(ni(e));else if(vn(t))r=function(i,s){const l=Di(i,!0,s==="fixed"),c=l.top+i.clientTop,d=l.left+i.clientLeft,f=Jn(i)?vo(i):{x:1,y:1};return{width:i.clientWidth*f.x,height:i.clientHeight*f.y,x:d*f.x,y:c*f.y}}(t,n);else{const i=r0(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return xa(r)}function a0(e,t){const n=bo(e);return!(n===t||!vn(n)||Ea(n))&&(Qn(n).position==="fixed"||a0(n,t))}function l0(e,t){return Jn(e)&&Qn(e).position!=="fixed"?t?t(e):e.offsetParent:null}function c0(e,t){const n=Dn(e);if(!Jn(e))return n;let r=l0(e,t);for(;r&&Q3(r)&&Qn(r).position==="static";)r=l0(r,t);return r&&(ti(r)==="html"||ti(r)==="body"&&Qn(r).position==="static"&&!fd(r))?n:r||function(i){let s=bo(i);for(;Jn(s)&&!Ea(s);){if(fd(s))return s;s=bo(s)}return null}(e)||n}function J3(e,t,n){const r=Jn(t),i=ni(t),s=n==="fixed",l=Di(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(r||!r&&!s)if((ti(t)!=="body"||ps(i))&&(c=Ca(t)),Jn(t)){const f=Di(t,!0,s,t);d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}else i&&(d.x=i0(i));return{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}const e4={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=n==="clippingAncestors"?function(f,m){const g=m.get(f);if(g)return g;let v=gs(f).filter(E=>vn(E)&&ti(E)!=="body"),b=null;const w=Qn(f).position==="fixed";let _=w?bo(f):f;for(;vn(_)&&!Ea(_);){const E=Qn(_),y=fd(_);y||E.position!=="fixed"||(b=null),(w?!y&&!b:!y&&E.position==="static"&&b&&["absolute","fixed"].includes(b.position)||ps(_)&&!y&&a0(f,_))?v=v.filter(T=>T!==_):b=E,_=bo(_)}return m.set(f,v),v}(t,this._c):[].concat(n),l=[...s,r],c=l[0],d=l.reduce((f,m)=>{const g=s0(t,m,i);return f.top=hs(g.top,f.top),f.right=Q1(g.right,f.right),f.bottom=Q1(g.bottom,f.bottom),f.left=hs(g.left,f.left),f},s0(t,c,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=Jn(n),s=ni(n);if(n===s)return t;let l={scrollLeft:0,scrollTop:0},c={x:1,y:1};const d={x:0,y:0};if((i||!i&&r!=="fixed")&&((ti(n)!=="body"||ps(s))&&(l=Ca(n)),Jn(n))){const f=Di(n);c=vo(n),d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-l.scrollLeft*c.x+d.x,y:t.y*c.y-l.scrollTop*c.y+d.y}},isElement:vn,getDimensions:function(e){return J1(e)},getOffsetParent:c0,getDocumentElement:ni,getScale:vo,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||c0,s=this.getDimensions;return{reference:J3(t,await i(n),r),floating:{x:0,y:0,...await s(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Qn(e).direction==="rtl"};function t4(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=!0,animationFrame:c=!1}=r,d=i||s?[...vn(e)?gs(e):e.contextElement?gs(e.contextElement):[],...gs(t)]:[];d.forEach(v=>{const b=!vn(v)&&v.toString().includes("V");!i||c&&!b||v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});let f,m=null;l&&(m=new ResizeObserver(()=>{n()}),vn(e)&&!c&&m.observe(e),vn(e)||!e.contextElement||c||m.observe(e.contextElement),m.observe(t));let g=c?Di(e):null;return c&&function v(){const b=Di(e);!g||b.x===g.x&&b.y===g.y&&b.width===g.width&&b.height===g.height||n(),g=b,f=requestAnimationFrame(v)}(),n(),()=>{var v;d.forEach(b=>{i&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),(v=m)==null||v.disconnect(),m=null,c&&cancelAnimationFrame(f)}}const n4=(e,t,n)=>{const r=new Map,i={platform:e4,...n},s={...i.platform,_c:r};return G3(e,t,{...i,platform:s})},r4=e=>{const{element:t,padding:n}=e;function r(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){return t&&r(t)?t.current!=null?V1({element:t.current,padding:n}).fn(i):{}:t?V1({element:t,padding:n}).fn(i):{}}}};var Ta=typeof document<"u"?p.useLayoutEffect:p.useEffect;function Sa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Sa(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Sa(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function d0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u0(e,t){const n=d0(e);return Math.round(t*n)/n}function f0(e){const t=ve.useRef(e);return Ta(()=>{t.current=e}),t}function i4(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:d,open:f}=e,[m,g]=ve.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,b]=ve.useState(r);Sa(v,r)||b(r);const[w,_]=ve.useState(null),[E,y]=ve.useState(null),T=ve.useCallback(B=>{B!=M.current&&(M.current=B,_(B))},[_]),S=ve.useCallback(B=>{B!==N.current&&(N.current=B,y(B))},[y]),O=s||w,I=l||E,M=ve.useRef(null),N=ve.useRef(null),D=ve.useRef(m),k=f0(d),Y=f0(i),L=ve.useCallback(()=>{if(!M.current||!N.current)return;const B={placement:t,strategy:n,middleware:v};Y.current&&(B.platform=Y.current),n4(M.current,N.current,B).then(W=>{const J={...W,isPositioned:!0};G.current&&!Sa(D.current,J)&&(D.current=J,k_.flushSync(()=>{g(J)}))})},[v,t,n,Y]);Ta(()=>{f===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,g(B=>({...B,isPositioned:!1})))},[f]);const G=ve.useRef(!1);Ta(()=>(G.current=!0,()=>{G.current=!1}),[]),Ta(()=>{if(O&&(M.current=O),I&&(N.current=I),O&&I){if(k.current)return k.current(O,I,L);L()}},[O,I,L,k]);const Z=ve.useMemo(()=>({reference:M,floating:N,setReference:T,setFloating:S}),[T,S]),R=ve.useMemo(()=>({reference:O,floating:I}),[O,I]),K=ve.useMemo(()=>{const B={position:n,left:0,top:0};if(!R.floating)return B;const W=u0(R.floating,m.x),J=u0(R.floating,m.y);return c?{...B,transform:"translate("+W+"px, "+J+"px)",...d0(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:J}},[n,c,R.floating,m.x,m.y]);return ve.useMemo(()=>({...m,update:L,refs:Z,elements:R,floatingStyles:K}),[m,L,Z,R,K])}const o4=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return p.createElement(Re.svg,ae({},s,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:p.createElement("polygon",{points:"0,0 30,0 15,10"}))});function Ia(e){const[t,n]=p.useState(void 0);return Qr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let l,c;if("borderBoxSize"in s){const d=s.borderBoxSize,f=Array.isArray(d)?d[0]:d;l=f.inlineSize,c=f.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const p0="Popper",[h0,_o]=zt(p0),[s4,g0]=h0(p0),a4=e=>{const{__scopePopper:t,children:n}=e,[r,i]=p.useState(null);return p.createElement(s4,{scope:t,anchor:r,onAnchorChange:i},n)},l4="PopperAnchor",c4=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=g0(l4,n),l=p.useRef(null),c=et(t,l);return p.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:p.createElement(Re.div,ae({},i,{ref:c}))}),m0="PopperContent",[d4,u4]=h0(m0),f4=p.forwardRef((e,t)=>{var n,r,i,s,l,c,d,f;const{__scopePopper:m,side:g="bottom",sideOffset:v=0,align:b="center",alignOffset:w=0,arrowPadding:_=0,collisionBoundary:E=[],collisionPadding:y=0,sticky:T="partial",hideWhenDetached:S=!1,avoidCollisions:O=!0,onPlaced:I,...M}=e,N=g0(m0,m),[D,k]=p.useState(null),Y=et(t,Ke=>k(Ke)),[L,G]=p.useState(null),Z=Ia(L),R=(n=Z==null?void 0:Z.width)!==null&&n!==void 0?n:0,K=(r=Z==null?void 0:Z.height)!==null&&r!==void 0?r:0,B=g+(b!=="center"?"-"+b:""),W=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},J=Array.isArray(E)?E:[E],q=J.length>0,U={padding:W,boundary:J.filter(g4),altBoundary:q},{refs:V,floatingStyles:ce,placement:ue,isPositioned:pe,middlewareData:Ee}=i4({strategy:"fixed",placement:B,whileElementsMounted:t4,elements:{reference:N.anchor},middleware:[Y3({mainAxis:v+K,alignmentAxis:w}),O&&Z3({mainAxis:!0,crossAxis:!1,limiter:T==="partial"?X3():void 0,...U}),O&&W3({...U}),K3({...U,apply:({elements:Ke,rects:yt,availableWidth:yn,availableHeight:Rt})=>{const{width:Fn,height:jr}=yt.reference,pt=Ke.floating.style;pt.setProperty("--radix-popper-available-width",`${yn}px`),pt.setProperty("--radix-popper-available-height",`${Rt}px`),pt.setProperty("--radix-popper-anchor-width",`${Fn}px`),pt.setProperty("--radix-popper-anchor-height",`${jr}px`)}}),L&&r4({element:L,padding:_}),m4({arrowWidth:R,arrowHeight:K}),S&&q3({strategy:"referenceHidden"})]}),[ne,le]=b0(ue),ge=on(I);Qr(()=>{pe&&(ge==null||ge())},[pe,ge]);const be=(i=Ee.arrow)===null||i===void 0?void 0:i.x,he=(s=Ee.arrow)===null||s===void 0?void 0:s.y,We=((l=Ee.arrow)===null||l===void 0?void 0:l.centerOffset)!==0,[de,_t]=p.useState();return Qr(()=>{D&&_t(window.getComputedStyle(D).zIndex)},[D]),p.createElement("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:pe?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(c=Ee.transformOrigin)===null||c===void 0?void 0:c.x,(d=Ee.transformOrigin)===null||d===void 0?void 0:d.y].join(" ")},dir:e.dir},p.createElement(d4,{scope:m,placedSide:ne,onArrowChange:G,arrowX:be,arrowY:he,shouldHideArrow:We},p.createElement(Re.div,ae({"data-side":ne,"data-align":le},M,{ref:Y,style:{...M.style,animation:pe?void 0:"none",opacity:(f=Ee.hide)!==null&&f!==void 0&&f.referenceHidden?0:void 0}}))))}),v0="PopperArrow",p4={top:"bottom",right:"left",bottom:"top",left:"right"},h4=p.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=u4(v0,r),l=p4[s.placedSide];return p.createElement("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0}},p.createElement(o4,ae({},i,{ref:n,style:{...i.style,display:"block"}})))});function g4(e){return e!==null}const m4=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,s,l;const{placement:c,rects:d,middlewareData:f}=t,g=((n=f.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,v=g?0:e.arrowWidth,b=g?0:e.arrowHeight,[w,_]=b0(c),E={start:"0%",center:"50%",end:"100%"}[_],y=((r=(i=f.arrow)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)+v/2,T=((s=(l=f.arrow)===null||l===void 0?void 0:l.y)!==null&&s!==void 0?s:0)+b/2;let S="",O="";return w==="bottom"?(S=g?E:`${y}px`,O=`${-b}px`):w==="top"?(S=g?E:`${y}px`,O=`${d.floating.height+b}px`):w==="right"?(S=`${-b}px`,O=g?E:`${T}px`):w==="left"&&(S=`${d.floating.width+b}px`,O=g?E:`${T}px`),{data:{x:S,y:O}}}});function b0(e){const[t,n="center"]=e.split("-");return[t,n]}const hd=a4,gd=c4,md=f4,Aa=p.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return r?$n.createPortal(p.createElement(Re.div,ae({},i,{ref:t})),r):null}),vd="rovingFocusGroup.onEntryFocus",v4={bubbles:!1,cancelable:!0},bd="RovingFocusGroup",[_d,_0,b4]=ma(bd),[_4,xo]=zt(bd,[b4]),[x4,w4]=_4(bd),E4=p.forwardRef((e,t)=>p.createElement(_d.Provider,{scope:e.__scopeRovingFocusGroup},p.createElement(_d.Slot,{scope:e.__scopeRovingFocusGroup},p.createElement(y4,ae({},e,{ref:t}))))),y4=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:f,...m}=e,g=p.useRef(null),v=et(t,g),b=ds(s),[w=null,_]=mn({prop:l,defaultProp:c,onChange:d}),[E,y]=p.useState(!1),T=on(f),S=_0(n),O=p.useRef(!1),[I,M]=p.useState(0);return p.useEffect(()=>{const N=g.current;if(N)return N.addEventListener(vd,T),()=>N.removeEventListener(vd,T)},[T]),p.createElement(x4,{scope:n,orientation:r,dir:b,loop:i,currentTabStopId:w,onItemFocus:p.useCallback(N=>_(N),[_]),onItemShiftTab:p.useCallback(()=>y(!0),[]),onFocusableItemAdd:p.useCallback(()=>M(N=>N+1),[]),onFocusableItemRemove:p.useCallback(()=>M(N=>N-1),[])},p.createElement(Re.div,ae({tabIndex:E||I===0?-1:0,"data-orientation":r},m,{ref:v,style:{outline:"none",...e.style},onMouseDown:we(e.onMouseDown,()=>{O.current=!0}),onFocus:we(e.onFocus,N=>{const D=!O.current;if(N.target===N.currentTarget&&D&&!E){const k=new CustomEvent(vd,v4);if(N.currentTarget.dispatchEvent(k),!k.defaultPrevented){const Y=S().filter(K=>K.focusable),L=Y.find(K=>K.active),G=Y.find(K=>K.id===w),R=[L,G,...Y].filter(Boolean).map(K=>K.ref.current);x0(R)}}O.current=!1}),onBlur:we(e.onBlur,()=>y(!1))})))}),C4="RovingFocusGroupItem",T4=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,...l}=e,c=Kn(),d=s||c,f=w4(C4,n),m=f.currentTabStopId===d,g=_0(n),{onFocusableItemAdd:v,onFocusableItemRemove:b}=f;return p.useEffect(()=>{if(r)return v(),()=>b()},[r,v,b]),p.createElement(_d.ItemSlot,{scope:n,id:d,focusable:r,active:i},p.createElement(Re.span,ae({tabIndex:m?0:-1,"data-orientation":f.orientation},l,{ref:t,onMouseDown:we(e.onMouseDown,w=>{r?f.onItemFocus(d):w.preventDefault()}),onFocus:we(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:we(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){f.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const _=A4(w,f.orientation,f.dir);if(_!==void 0){w.preventDefault();let y=g().filter(T=>T.focusable).map(T=>T.ref.current);if(_==="last")y.reverse();else if(_==="prev"||_==="next"){_==="prev"&&y.reverse();const T=y.indexOf(w.currentTarget);y=f.loop?O4(y,T+1):y.slice(T+1)}setTimeout(()=>x0(y))}})})))}),S4={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function I4(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function A4(e,t,n){const r=I4(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return S4[r]}function x0(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function O4(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const xd=E4,wd=T4;var $4=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},wo=new WeakMap,Oa=new WeakMap,$a={},Ed=0,w0=function(e){return e&&(e.host||w0(e.parentNode))},D4=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=w0(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},M4=function(e,t,n,r){var i=D4(t,Array.isArray(e)?e:[e]);$a[n]||($a[n]=new WeakMap);var s=$a[n],l=[],c=new Set,d=new Set(i),f=function(g){!g||c.has(g)||(c.add(g),f(g.parentNode))};i.forEach(f);var m=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(v){if(c.has(v))m(v);else{var b=v.getAttribute(r),w=b!==null&&b!=="false",_=(wo.get(v)||0)+1,E=(s.get(v)||0)+1;wo.set(v,_),s.set(v,E),l.push(v),_===1&&w&&Oa.set(v,!0),E===1&&v.setAttribute(n,"true"),w||v.setAttribute(r,"true")}})};return m(t),c.clear(),Ed++,function(){l.forEach(function(g){var v=wo.get(g)-1,b=s.get(g)-1;wo.set(g,v),s.set(g,b),v||(Oa.has(g)||g.removeAttribute(r),Oa.delete(g)),b||g.removeAttribute(n)}),Ed--,Ed||(wo=new WeakMap,wo=new WeakMap,Oa=new WeakMap,$a={})}},yd=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=$4(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),M4(r,i,n,"aria-hidden")):function(){return null}},mr=function(){return mr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},mr.apply(this,arguments)};function E0(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function P4(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Da="right-scroll-bar-position",Ma="width-before-scroll-bar",N4="with-scroll-bars-hidden",R4="--removed-body-scroll-bar-size";function L4(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function j4(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}function k4(e,t){return j4(null,function(n){return e.forEach(function(r){return L4(r,n)})})}function F4(e){return e}function B4(e,t){t===void 0&&(t=F4);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(s),l=n}var d=function(){var m=l;l=[],m.forEach(s)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(m){l.push(m),f()},filter:function(m){return l=l.filter(m),n}}}};return i}function z4(e){e===void 0&&(e={});var t=B4(null);return t.options=mr({async:!0,ssr:!1},e),t}var y0=function(e){var t=e.sideCar,n=E0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return ve.createElement(r,mr({},n))};y0.isSideCarExport=!0;function G4(e,t){return e.useMedium(t),y0}var C0=z4(),Cd=function(){},Pa=ve.forwardRef(function(e,t){var n=ve.useRef(null),r=ve.useState({onScrollCapture:Cd,onWheelCapture:Cd,onTouchMoveCapture:Cd}),i=r[0],s=r[1],l=e.forwardProps,c=e.children,d=e.className,f=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,b=e.noIsolation,w=e.inert,_=e.allowPinchZoom,E=e.as,y=E===void 0?"div":E,T=E0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),S=v,O=k4([n,t]),I=mr(mr({},T),i);return ve.createElement(ve.Fragment,null,m&&ve.createElement(S,{sideCar:C0,removeScrollBar:f,shards:g,noIsolation:b,inert:w,setCallbacks:s,allowPinchZoom:!!_,lockRef:n}),l?ve.cloneElement(ve.Children.only(c),mr(mr({},I),{ref:O})):ve.createElement(y,mr({},I,{className:d,ref:O}),c))});Pa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Pa.classNames={fullWidth:Ma,zeroRight:Da};var H4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function U4(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=H4();return t&&e.setAttribute("nonce",t),e}function V4(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function W4(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var q4=function(){var e=0,t=null;return{add:function(n){e==0&&(t=U4())&&(V4(t,n),W4(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Y4=function(){var e=q4();return function(t,n){ve.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},T0=function(){var e=Y4(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Z4={left:0,top:0,right:0,gap:0},Td=function(e){return parseInt(e||"",10)||0},X4=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Td(n),Td(r),Td(i)]},K4=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Z4;var t=X4(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Q4=T0(),J4=function(e,t,n,r){var i=e.left,s=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
28
|
+
.`.concat(N4,` {
|
|
29
29
|
overflow: hidden `).concat(r,`;
|
|
30
30
|
padding-right: `).concat(c,"px ").concat(r,`;
|
|
31
31
|
}
|
|
@@ -59,29 +59,29 @@ Check the top-level render call using <`+_e+">.")}return se}}function at(j,se){{
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
body {
|
|
62
|
-
`).concat(
|
|
62
|
+
`).concat(R4,": ").concat(c,`px;
|
|
63
63
|
}
|
|
64
|
-
`)},
|
|
64
|
+
`)},e6=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,s=ve.useMemo(function(){return K4(i)},[i]);return ve.createElement(Q4,{styles:J4(s,!t,i,n?"":"!important")})},Sd=!1;if(typeof window<"u")try{var Na=Object.defineProperty({},"passive",{get:function(){return Sd=!0,!0}});window.addEventListener("test",Na,Na),window.removeEventListener("test",Na,Na)}catch{Sd=!1}var Eo=Sd?{passive:!1}:!1,t6=function(e){return e.tagName==="TEXTAREA"},S0=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!t6(e)&&n[t]==="visible")},n6=function(e){return S0(e,"overflowY")},r6=function(e){return S0(e,"overflowX")},I0=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=A0(e,n);if(r){var i=O0(e,n),s=i[1],l=i[2];if(s>l)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},i6=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},o6=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},A0=function(e,t){return e==="v"?n6(t):r6(t)},O0=function(e,t){return e==="v"?i6(t):o6(t)},s6=function(e,t){return e==="h"&&t==="rtl"?-1:1},a6=function(e,t,n,r,i){var s=s6(e,window.getComputedStyle(t).direction),l=s*r,c=n.target,d=t.contains(c),f=!1,m=l>0,g=0,v=0;do{var b=O0(e,c),w=b[0],_=b[1],E=b[2],y=_-E-s*w;(w||y)&&A0(e,c)&&(g+=y,v+=w),c=c.parentNode}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(m&&g===0||!m&&v===0)&&(f=!0),f},Ra=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$0=function(e){return[e.deltaX,e.deltaY]},D0=function(e){return e&&"current"in e?e.current:e},l6=function(e,t){return e[0]===t[0]&&e[1]===t[1]},c6=function(e){return`
|
|
65
65
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
66
66
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
67
|
-
`)},u6=0,yo=[];function f6(e){var t=ve.useRef([]),n=ve.useRef([0,0]),r=ve.useRef(),i=ve.useState(u6++)[0],s=ve.useState(function(){return S0()})[0],l=ve.useRef(e);ve.useEffect(function(){l.current=e},[e]),ve.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var _=N4([e.lockRef.current],(e.shards||[]).map(M0),!0).filter(Boolean);return _.forEach(function(w){return w.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),_.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=ve.useCallback(function(_,w){if("touches"in _&&_.touches.length===2)return!l.current.allowPinchZoom;var y=Ra(_),T=n.current,S="deltaX"in _?_.deltaX:T[0]-y[0],O="deltaY"in _?_.deltaY:T[1]-y[1],I,M=_.target,N=Math.abs(S)>Math.abs(O)?"h":"v";if("touches"in _&&N==="h"&&M.type==="range")return!1;var D=A0(N,M);if(!D)return!0;if(D?I=N:(I=N==="v"?"h":"v",D=A0(N,M)),!D)return!1;if(!r.current&&"changedTouches"in _&&(S||O)&&(r.current=I),!I)return!0;var k=r.current||I;return l6(k,w,_,k==="h"?S:O)},[]),d=ve.useCallback(function(_){var w=_;if(!(!yo.length||yo[yo.length-1]!==s)){var y="deltaY"in w?D0(w):Ra(w),T=t.current.filter(function(I){return I.name===w.type&&I.target===w.target&&c6(I.delta,y)})[0];if(T&&T.should){w.cancelable&&w.preventDefault();return}if(!T){var S=(l.current.shards||[]).map(M0).filter(Boolean).filter(function(I){return I.contains(w.target)}),O=S.length>0?c(w,S[0]):!l.current.noIsolation;O&&w.cancelable&&w.preventDefault()}}},[]),f=ve.useCallback(function(_,w,y,T){var S={name:_,delta:w,target:y,should:T};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(O){return O!==S})},1)},[]),m=ve.useCallback(function(_){n.current=Ra(_),r.current=void 0},[]),g=ve.useCallback(function(_){f(_.type,D0(_),_.target,c(_,e.lockRef.current))},[]),v=ve.useCallback(function(_){f(_.type,Ra(_),_.target,c(_,e.lockRef.current))},[]);ve.useEffect(function(){return yo.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",d,wo),document.addEventListener("touchmove",d,wo),document.addEventListener("touchstart",m,wo),function(){yo=yo.filter(function(_){return _!==s}),document.removeEventListener("wheel",d,wo),document.removeEventListener("touchmove",d,wo),document.removeEventListener("touchstart",m,wo)}},[]);var b=e.removeScrollBar,E=e.inert;return ve.createElement(ve.Fragment,null,E?ve.createElement(s,{styles:d6(i)}):null,b?ve.createElement(t6,{gapMode:"margin"}):null)}const p6=H4(T0,f6);var La=ve.forwardRef(function(e,t){return ve.createElement(Pa,mr({},e,{ref:t,sideCar:p6}))});La.classNames=Pa.classNames;const h6=["Enter"," "],g6=["ArrowDown","PageUp","Home"],P0=["ArrowUp","PageDown","End"],m6=[...g6,...P0],ja="Menu",[Ad,v6,b6]=ma(ja),[Mi,N0]=zt(ja,[b6,_o,xo]),Od=_o(),R0=xo(),[_6,ms]=Mi(ja),[x6,$d]=Mi(ja),E6=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:s,modal:l=!0}=e,c=Od(t),[d,f]=p.useState(null),m=p.useRef(!1),g=on(s),v=ds(i);return p.useEffect(()=>{const b=()=>{m.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>m.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),p.createElement(gd,c,p.createElement(_6,{scope:t,open:n,onOpenChange:g,content:d,onContentChange:f},p.createElement(x6,{scope:t,onClose:p.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:m,dir:v,modal:l},r)))},w6=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Od(n);return p.createElement(md,ae({},i,r,{ref:t}))}),L0="MenuPortal",[y6,C6]=Mi(L0,{forceMount:void 0}),T6=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,s=ms(L0,t);return p.createElement(y6,{scope:t,forceMount:n},p.createElement(sn,{present:n||s.open},p.createElement(Aa,{asChild:!0,container:i},r)))},ri="MenuContent",[S6,j0]=Mi(ri),I6=p.forwardRef((e,t)=>{const n=C6(ri,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=ms(ri,e.__scopeMenu),l=$d(ri,e.__scopeMenu);return p.createElement(Ad.Provider,{scope:e.__scopeMenu},p.createElement(sn,{present:r||s.open},p.createElement(Ad.Slot,{scope:e.__scopeMenu},l.modal?p.createElement(A6,ae({},i,{ref:t})):p.createElement(O6,ae({},i,{ref:t})))))}),A6=p.forwardRef((e,t)=>{const n=ms(ri,e.__scopeMenu),r=p.useRef(null),i=et(t,r);return p.useEffect(()=>{const s=r.current;if(s)return Cd(s)},[]),p.createElement(k0,ae({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ee(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),O6=p.forwardRef((e,t)=>{const n=ms(ri,e.__scopeMenu);return p.createElement(k0,ae({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),k0=p.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:b,disableOutsideScroll:E,..._}=e,w=ms(ri,n),y=$d(ri,n),T=Od(n),S=R0(n),O=v6(n),[I,M]=p.useState(null),N=p.useRef(null),D=et(t,N,w.onContentChange),k=p.useRef(0),Y=p.useRef(""),L=p.useRef(0),G=p.useRef(null),X=p.useRef("right"),R=p.useRef(0),K=E?La:p.Fragment,B=E?{as:Ii,allowPinchZoom:!0}:void 0,W=q=>{var U,V;const ce=Y.current+q,ue=O().filter(be=>!be.disabled),pe=document.activeElement,we=(U=ue.find(be=>be.ref.current===pe))===null||U===void 0?void 0:U.textValue,ne=ue.map(be=>be.textValue),le=k6(ne,ce,we),ge=(V=ue.find(be=>be.textValue===le))===null||V===void 0?void 0:V.ref.current;(function be(he){Y.current=he,window.clearTimeout(k.current),he!==""&&(k.current=window.setTimeout(()=>be(""),1e3))})(ce),ge&&setTimeout(()=>ge.focus())};p.useEffect(()=>()=>window.clearTimeout(k.current),[]),od();const J=p.useCallback(q=>{var U,V;return X.current===((U=G.current)===null||U===void 0?void 0:U.side)&&B6(q,(V=G.current)===null||V===void 0?void 0:V.area)},[]);return p.createElement(S6,{scope:n,searchRef:Y,onItemEnter:p.useCallback(q=>{J(q)&&q.preventDefault()},[J]),onItemLeave:p.useCallback(q=>{var U;J(q)||((U=N.current)===null||U===void 0||U.focus(),M(null))},[J]),onTriggerLeave:p.useCallback(q=>{J(q)&&q.preventDefault()},[J]),pointerGraceTimerRef:L,onPointerGraceIntentChange:p.useCallback(q=>{G.current=q},[])},p.createElement(K,B,p.createElement(ld,{asChild:!0,trapped:i,onMountAutoFocus:Ee(s,q=>{var U;q.preventDefault(),(U=N.current)===null||U===void 0||U.focus()}),onUnmountAutoFocus:l},p.createElement(us,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:b},p.createElement(Ed,ae({asChild:!0},S,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:I,onCurrentTabStopIdChange:M,onEntryFocus:Ee(d,q=>{y.isUsingKeyboardRef.current||q.preventDefault()})}),p.createElement(vd,ae({role:"menu","aria-orientation":"vertical","data-state":R6(w.open),"data-radix-menu-content":"",dir:y.dir},T,_,{ref:D,style:{outline:"none",..._.style},onKeyDown:Ee(_.onKeyDown,q=>{const V=q.target.closest("[data-radix-menu-content]")===q.currentTarget,ce=q.ctrlKey||q.altKey||q.metaKey,ue=q.key.length===1;V&&(q.key==="Tab"&&q.preventDefault(),!ce&&ue&&W(q.key));const pe=N.current;if(q.target!==pe||!m6.includes(q.key))return;q.preventDefault();const ne=O().filter(le=>!le.disabled).map(le=>le.ref.current);P0.includes(q.key)&&ne.reverse(),L6(ne)}),onBlur:Ee(e.onBlur,q=>{q.currentTarget.contains(q.target)||(window.clearTimeout(k.current),Y.current="")}),onPointerMove:Ee(e.onPointerMove,Md(q=>{const U=q.target,V=R.current!==q.clientX;if(q.currentTarget.contains(U)&&V){const ce=q.clientX>R.current?"right":"left";X.current=ce,R.current=q.clientX}}))})))))))}),Dd="MenuItem",F0="menu.itemSelect",$6=p.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,s=p.useRef(null),l=$d(Dd,e.__scopeMenu),c=j0(Dd,e.__scopeMenu),d=et(t,s),f=p.useRef(!1),m=()=>{const g=s.current;if(!n&&g){const v=new CustomEvent(F0,{bubbles:!0,cancelable:!0});g.addEventListener(F0,b=>r==null?void 0:r(b),{once:!0}),Vc(g,v),v.defaultPrevented?f.current=!1:l.onClose()}};return p.createElement(D6,ae({},i,{ref:d,disabled:n,onClick:Ee(e.onClick,m),onPointerDown:g=>{var v;(v=e.onPointerDown)===null||v===void 0||v.call(e,g),f.current=!0},onPointerUp:Ee(e.onPointerUp,g=>{var v;f.current||(v=g.currentTarget)===null||v===void 0||v.click()}),onKeyDown:Ee(e.onKeyDown,g=>{const v=c.searchRef.current!=="";n||v&&g.key===" "||h6.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})}))}),D6=p.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...s}=e,l=j0(Dd,n),c=R0(n),d=p.useRef(null),f=et(t,d),[m,g]=p.useState(!1),[v,b]=p.useState("");return p.useEffect(()=>{const E=d.current;if(E){var _;b(((_=E.textContent)!==null&&_!==void 0?_:"").trim())}},[s.children]),p.createElement(Ad.ItemSlot,{scope:n,disabled:r,textValue:i??v},p.createElement(wd,ae({asChild:!0},c,{focusable:!r}),p.createElement(Re.div,ae({role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},s,{ref:f,onPointerMove:Ee(e.onPointerMove,Md(E=>{r?l.onItemLeave(E):(l.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus())})),onPointerLeave:Ee(e.onPointerLeave,Md(E=>l.onItemLeave(E))),onFocus:Ee(e.onFocus,()=>g(!0)),onBlur:Ee(e.onBlur,()=>g(!1))}))))}),M6="MenuRadioGroup",[wk,yk]=Mi(M6,{value:void 0,onValueChange:()=>{}}),P6="MenuItemIndicator",[Ck,Tk]=Mi(P6,{checked:!1}),N6="MenuSub",[Sk,Ik]=Mi(N6);function R6(e){return e?"open":"closed"}function L6(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function j6(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function k6(e,t,n){const i=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=j6(e,Math.max(s,0));i.length===1&&(l=l.filter(f=>f!==n));const d=l.find(f=>f.toLowerCase().startsWith(i.toLowerCase()));return d!==n?d:void 0}function F6(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const c=t[s].x,d=t[s].y,f=t[l].x,m=t[l].y;d>r!=m>r&&n<(f-c)*(r-d)/(m-d)+c&&(i=!i)}return i}function B6(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return F6(n,t)}function Md(e){return t=>t.pointerType==="mouse"?e(t):void 0}const z6=E6,G6=w6,H6=T6,U6=I6,V6=$6,B0="DropdownMenu",[W6,Ak]=zt(B0,[N0]),vs=N0(),[q6,z0]=W6(B0),Y6=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:s,onOpenChange:l,modal:c=!0}=e,d=vs(t),f=p.useRef(null),[m=!1,g]=mn({prop:i,defaultProp:s,onChange:l});return p.createElement(q6,{scope:t,triggerId:Xn(),triggerRef:f,contentId:Xn(),open:m,onOpenChange:g,onOpenToggle:p.useCallback(()=>g(v=>!v),[g]),modal:c},p.createElement(z6,ae({},d,{open:m,onOpenChange:g,dir:r,modal:c}),n))},Z6="DropdownMenuTrigger",X6=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,s=z0(Z6,n),l=vs(n);return p.createElement(G6,ae({asChild:!0},l),p.createElement(Re.button,ae({type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:Hc(t,s.triggerRef),onPointerDown:Ee(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:Ee(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})))}),K6=e=>{const{__scopeDropdownMenu:t,...n}=e,r=vs(t);return p.createElement(H6,ae({},r,n))},Q6="DropdownMenuContent",J6=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=z0(Q6,n),s=vs(n),l=p.useRef(!1);return p.createElement(U6,ae({id:i.contentId,"aria-labelledby":i.triggerId},s,r,{ref:t,onCloseAutoFocus:Ee(e.onCloseAutoFocus,c=>{var d;l.current||(d=i.triggerRef.current)===null||d===void 0||d.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:Ee(e.onInteractOutside,c=>{const d=c.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0,m=d.button===2||f;(!i.modal||m)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),ex=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=vs(n);return p.createElement(V6,ae({},i,r,{ref:t}))}),Pd=Y6,Nd=X6,tx=K6,Rd=J6,Ld=ex;var nx=typeof global=="object"&&global&&global.Object===Object&&global,rx=typeof self=="object"&&self&&self.Object===Object&&self,G0=nx||rx||Function("return this")(),ka=G0.Symbol,H0=Object.prototype,ix=H0.hasOwnProperty,ox=H0.toString,bs=ka?ka.toStringTag:void 0;function sx(e){var t=ix.call(e,bs),n=e[bs];try{e[bs]=void 0;var r=!0}catch{}var i=ox.call(e);return r&&(t?e[bs]=n:delete e[bs]),i}var ax=Object.prototype,lx=ax.toString;function cx(e){return lx.call(e)}var dx="[object Null]",ux="[object Undefined]",U0=ka?ka.toStringTag:void 0;function fx(e){return e==null?e===void 0?ux:dx:U0&&U0 in Object(e)?sx(e):cx(e)}function px(e){return e!=null&&typeof e=="object"}var hx="[object Symbol]";function gx(e){return typeof e=="symbol"||px(e)&&fx(e)==hx}var mx=/\s/;function vx(e){for(var t=e.length;t--&&mx.test(e.charAt(t)););return t}var bx=/^\s+/;function _x(e){return e&&e.slice(0,vx(e)+1).replace(bx,"")}function Fa(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var V0=NaN,xx=/^[-+]0x[0-9a-f]+$/i,Ex=/^0b[01]+$/i,wx=/^0o[0-7]+$/i,yx=parseInt;function W0(e){if(typeof e=="number")return e;if(gx(e))return V0;if(Fa(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fa(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=_x(e);var n=Ex.test(e);return n||wx.test(e)?yx(e.slice(2),n?2:8):xx.test(e)?V0:+e}var jd=function(){return G0.Date.now()},Cx="Expected a function",Tx=Math.max,Sx=Math.min;function Ba(e,t,n){var r,i,s,l,c,d,f=0,m=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(Cx);t=W0(t)||0,Fa(n)&&(m=!!n.leading,g="maxWait"in n,s=g?Tx(W0(n.maxWait)||0,t):s,v="trailing"in n?!!n.trailing:v);function b(M){var N=r,D=i;return r=i=void 0,f=M,l=e.apply(D,N),l}function E(M){return f=M,c=setTimeout(y,t),m?b(M):l}function _(M){var N=M-d,D=M-f,k=t-N;return g?Sx(k,s-D):k}function w(M){var N=M-d,D=M-f;return d===void 0||N>=t||N<0||g&&D>=s}function y(){var M=jd();if(w(M))return T(M);c=setTimeout(y,_(M))}function T(M){return c=void 0,v&&r?b(M):(r=i=void 0,l)}function S(){c!==void 0&&clearTimeout(c),f=0,r=d=i=c=void 0}function O(){return c===void 0?l:T(jd())}function I(){var M=jd(),N=w(M);if(r=arguments,i=this,d=M,N){if(c===void 0)return E(d);if(g)return clearTimeout(c),c=setTimeout(y,t),b(d)}return c===void 0&&(c=setTimeout(y,t)),l}return I.cancel=S,I.flush=O,I}var Ix="Expected a function";function Ax(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Ix);return Fa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ba(e,t,{leading:r,maxWait:t,trailing:i})}var Ox=!!(typeof window<"u"&&window.document&&window.document.createElement),$x=Ox;const q0=Nc($x);var Co=function(){return Co=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Co.apply(this,arguments)},To=null,Y0=null;q0&&window.addEventListener("resize",function(){Y0!==window.devicePixelRatio&&(Y0=window.devicePixelRatio,To=null)});function Z0(){if(To===null){if(typeof document>"u")return To=0,To;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),To=n}return To}function X0(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function K0(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Q0=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var s=i.name.match(/data-simplebar-(.+)/);if(s){var l=s[1].replace(/\W+(.)/g,function(c,d){return d.toUpperCase()});switch(i.value){case"true":r[l]=!0;break;case"false":r[l]=!1;break;case void 0:r[l]=!0;break;default:r[l]=i.value}}return r},t);return n};function J0(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function eh(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function th(e){return".".concat(e.split(" ").join("."))}var Dx=Object.freeze({__proto__:null,getElementWindow:X0,getElementDocument:K0,getOptions:Q0,addClasses:J0,removeClasses:eh,classNamesToQuery:th}),ii=X0,kd=K0,Mx=Q0,oi=J0,si=eh,an=th,za=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=ii(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,oi(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){si(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(oi(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){si(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var s,l;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(s=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(l=r.isWithinBounds(r.axis.y.track.rect)),(s||l)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(s&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),l&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var s,l,c,d,f,m,g,v,b,E,_;if(!(!r.draggedAxis||!r.contentWrapperEl)){var w,y=r.axis[r.draggedAxis].track,T=(l=(s=y.rect)===null||s===void 0?void 0:s[r.axis[r.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,S=r.axis[r.draggedAxis].scrollbar,O=(d=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&d!==void 0?d:0,I=parseInt((m=(f=r.elStyles)===null||f===void 0?void 0:f[r.axis[r.draggedAxis].sizeAttr])!==null&&m!==void 0?m:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?w=i.pageY:w=i.pageX;var M=w-((v=(g=y.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&v!==void 0?v:0)-r.axis[r.draggedAxis].dragOffset;M=r.draggedAxis==="x"&&r.isRtl?((E=(b=y.rect)===null||b===void 0?void 0:b[r.axis[r.draggedAxis].sizeAttr])!==null&&E!==void 0?E:0)-S.size-M:M;var N=M/(T-S.size),D=N*(O-I);r.draggedAxis==="x"&&r.isRtl&&(D=!((_=e.getRtlHelpers())===null||_===void 0)&&_.isScrollingToNegative?-D:D),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=D}},this.onEndDrag=function(i){var s=kd(r.el),l=ii(r.el);i.preventDefault(),i.stopPropagation(),si(r.el,r.classNames.dragging),s.removeEventListener("mousemove",r.drag,!0),s.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=l.setTimeout(function(){s.removeEventListener("click",r.preventClick,!0),s.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=Co(Co({},e.defaultOptions),n),this.classNames=Co(Co({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Ax(this._onMouseMove,64),this.onWindowResize=Ba(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Ba(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ba(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),s=e.getOffset(r);n.scrollLeft=-999;var l=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==s.left,isScrollingToNegative:s.left!==l.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Z0()}catch{return Z0()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=kd(t),i=ii(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){q0&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(an(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(an(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(an(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(an(this.classNames.offset)),this.maskEl=this.el.querySelector(an(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,an(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(an(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(an(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(an(this.classNames.track)).concat(an(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(an(this.classNames.track)).concat(an(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(an(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(an(this.classNames.scrollbar)))||null,this.options.autoHide||(oi(this.axis.x.scrollbar.el,this.classNames.visible),oi(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=ii(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,s=r.ResizeObserver||ResizeObserver;this.resizeObserver=new s(function(){i&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=ii(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,s=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var d=this.contentEl.scrollHeight,f=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||f,"px"):"auto",this.placeholderEl.style.height="".concat(d,"px");var m=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&f>n,this.axis.y.isOverflowing=d>m,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var g=this.axis.x.isOverflowing?this.scrollbarWidth:0,v=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&f>s-v,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&d>m-g,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],s=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,l=s/i,c;return c=Math.max(~~(l*s),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var s=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!s.el||!this.elStyles)){var l=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,d=parseInt(this.elStyles[this.axis[t].sizeAttr],10),f=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];f=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-f:f,t==="x"&&this.isRtl&&(f=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?f:-f);var m=f/(l-d),g=~~((c-s.size)*m);g=t==="x"&&this.isRtl?-g+(c-s.size):g,s.el.style.transform=t==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(oi(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(si(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),oi(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?oi(n.scrollbar.el,this.classNames.hover):si(n.scrollbar.el,this.classNames.hover)):(si(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),si(this.axis[t].track.el,this.classNames.hover),si(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y");var i=kd(this.el),s=ii(this.el),l=this.axis[n].scrollbar,c=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=c-(((r=l.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,oi(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,s,l,c;n===void 0&&(n="y");var d=this.axis[n];if(!(!this.options.clickOnTrack||!d.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var f=ii(this.el);this.axis[n].scrollbar.rect=d.scrollbar.el.getBoundingClientRect();var m=this.axis[n].scrollbar,g=(s=(i=m.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&s!==void 0?s:0,v=parseInt((c=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),b=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],E=n==="y"?this.mouseY-g:this.mouseX-g,_=E<0?-1:1,w=_===-1?b-v:b+v,y=40,T=function(){r.contentWrapperEl&&(_===-1?b>w&&(b-=y,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=b,f.requestAnimationFrame(T)):b<w&&(b+=y,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=b,f.requestAnimationFrame(T)))};T()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=ii(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Mx,e.helpers=Dx,e}(),bn=function(){return bn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},bn.apply(this,arguments)};function Px(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Fd=ve.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,s=Px(e,["children","scrollableNodeProps"]),l=ve.useRef(),c=ve.useRef(),d=ve.useRef(),f={},m={};Object.keys(s).forEach(function(b){Object.prototype.hasOwnProperty.call(za.defaultOptions,b)?f[b]=s[b]:m[b]=s[b]});var g=bn(bn({},za.defaultOptions.classNames),f.classNames),v=bn(bn({},i),{className:"".concat(g.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":f.ariaLabel||za.defaultOptions.ariaLabel});return ve.useEffect(function(){var b;return c.current=v.ref?v.ref.current:c.current,l.current&&(b=new za(l.current,bn(bn(bn({},f),c.current&&{scrollableNode:c.current}),d.current&&{contentNode:d.current})),typeof t=="function"?t(b):t&&(t.current=b)),function(){b==null||b.unMount(),b=null,typeof t=="function"&&t(null)}},[]),ve.createElement("div",bn({"data-simplebar":"init",ref:l},m),ve.createElement("div",{className:g.wrapper},ve.createElement("div",{className:g.heightAutoObserverWrapperEl},ve.createElement("div",{className:g.heightAutoObserverEl})),ve.createElement("div",{className:g.mask},ve.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:bn(bn({},v),{ref:c}),contentNodeRef:d,contentNodeProps:{className:g.contentEl,ref:d}}):ve.createElement("div",bn({},v),ve.createElement("div",{className:g.contentEl},n)))),ve.createElement("div",{className:g.placeholder})),ve.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},ve.createElement("div",{className:g.scrollbar})),ve.createElement("div",{className:"".concat(g.track," simplebar-vertical")},ve.createElement("div",{className:g.scrollbar})))});Fd.displayName="SimpleBar";const nh={label:"_label_12r8p_1","label--button-lg":"_label--button-lg_12r8p_5","label--button-md":"_label--button-md_12r8p_12","label--button-sm":"_label--button-sm_12r8p_19","label--button-xs":"_label--button-xs_12r8p_26","label--tag":"_label--tag_12r8p_33"},Pi=p.forwardRef((e,t)=>{const{variant:n="button-md",fontWeight:r="semibold",color:i,className:s,...l}=e;return u.jsx("label",{ref:t,className:oe(nh.label,nh[`label--${n}`],`text--weight-${r}`,i?`text--${i}`:"current-color",s),...l})});Pi.displayName="Label";const _n={button:"_button_1845z_1","button--full-width":"_button--full-width_1845z_23","button--size-lg":"_button--size-lg_1845z_28","button--size-md":"_button--size-md_1845z_36","button--size-sm":"_button--size-sm_1845z_44","button--size-xs":"_button--size-xs_1845z_52","button--label":"_button--label_1845z_60","button--label-sm":"_button--label-sm_1845z_64","button--children":"_button--children_1845z_68","button--icon":"_button--icon_1845z_74","button-icon-left":"_button-icon-left_1845z_79","button-icon-right":"_button-icon-right_1845z_83","button--loading":"_button--loading_1845z_87","button--loading-icon":"_button--loading-icon_1845z_91",rotation:"_rotation_1845z_1","button--primary-filled":"_button--primary-filled_1845z_106","button--primary-filled-disabled":"_button--primary-filled-disabled_1845z_119","button--primary-outlined":"_button--primary-outlined_1845z_131","button--primary-outlined-disabled":"_button--primary-outlined-disabled_1845z_147","button--primary-text":"_button--primary-text_1845z_160","button--primary-text-disabled":"_button--primary-text-disabled_1845z_173","button--green-filled":"_button--green-filled_1845z_186","button--green-filled-disabled":"_button--green-filled-disabled_1845z_199","button--green-outlined":"_button--green-outlined_1845z_212","button--green-outlined-disabled":"_button--green-outlined-disabled_1845z_230","button--green-text":"_button--green-text_1845z_244","button--green-text-disabled":"_button--green-text-disabled_1845z_259","button--red-filled":"_button--red-filled_1845z_274","button--red-filled-disabled":"_button--red-filled-disabled_1845z_287","button--red-outlined":"_button--red-outlined_1845z_300","button--red-outlined-disabled":"_button--red-outlined-disabled_1845z_318","button--red-text":"_button--red-text_1845z_332","button--red-text-disabled":"_button--red-text-disabled_1845z_347","button--sand-filled":"_button--sand-filled_1845z_362","button--sand-filled-disabled":"_button--sand-filled-disabled_1845z_375","button--sand-outlined":"_button--sand-outlined_1845z_388","button--sand-outlined-disabled":"_button--sand-outlined-disabled_1845z_404","button--sand-text":"_button--sand-text_1845z_417","button--sand-text-disabled":"_button--sand-text-disabled_1845z_430"},Nx={lg:"button-lg",md:"button-lg",sm:"button-md",xs:"button-sm"},gt=p.forwardRef((e,t)=>{const{color:n="primary",variant:r="filled",size:i="lg",endIcon:s,startIcon:l,disabled:c=!1,fullWidth:d=!1,children:f,isLoading:m,loadingPosition:g="right",className:v,label:b,...E}=e,_=Nx[i],w=i==="lg"||i==="md"?"button--label":"button--label-sm",y=!!(m&&g==="left"),T=!!(m&&g==="right"),S=f!==void 0&&typeof f=="string";return u.jsx("button",{ref:t,disabled:c,className:oe(_n.button,d&&_n["button--full-width"],_n[`button--size-${i}`],_n[`button--${n}-${r}`],c&&_n[`button--${n}-${r}-disabled`],m&&_n["button--loading"],v),"data-loading":m?"true":"false",...E,children:u.jsxs("span",{className:_n["button--children"],children:[(y||l)&&u.jsx("span",{className:oe("flex",!S&&_n["button-icon-left"],y&&_n["button--loading-icon"]),children:u.jsx(u.Fragment,{children:y?u.jsx(ga,{}):l})}),f!==void 0?S?u.jsx("span",{children:u.jsx(Pi,{className:oe(_n[w],c?"cursor-not-allowed":"cursor-pointer"),variant:_,children:f})}):f:b&&u.jsx(Pi,{className:oe(_n[w],c?"cursor-not-allowed":"cursor-pointer"),variant:_,children:b}),(T||s)&&u.jsx("span",{className:oe("flex",!S&&_n["button-icon-right"],T&&_n["button--loading-icon"]),children:u.jsx(u.Fragment,{children:T?u.jsx(ga,{}):s})})]})})});gt.displayName="Button";const dt={"input-text-field--container":"_input-text-field--container_wv7xg_1","input-text-field--input":"_input-text-field--input_wv7xg_9","input-text-field--input-error":"_input-text-field--input-error_wv7xg_28","input-text-field--content":"_input-text-field--content_wv7xg_40","input-text-field--fluid":"_input-text-field--fluid_wv7xg_48","input-text-field--outlined":"_input-text-field--outlined_wv7xg_61","input-text-field--filled":"_input-text-field--filled_wv7xg_67","input-text-field--size-lg":"_input-text-field--size-lg_wv7xg_73","input-text-field--size-md":"_input-text-field--size-md_wv7xg_77","input-text-field--size-sm":"_input-text-field--size-sm_wv7xg_81","input-text-field--helper-text":"_input-text-field--helper-text_wv7xg_85","input-text-field--label-text":"_input-text-field--label-text_wv7xg_89","input-text-field--addon":"_input-text-field--addon_wv7xg_93","input-text-field--disabled":"_input-text-field--disabled_wv7xg_102","input-text-field--icon-container":"_input-text-field--icon-container_wv7xg_107","input-text-field--icon":"_input-text-field--icon_wv7xg_107","input-text-field--left-icon":"_input-text-field--left-icon_wv7xg_122","input-text-field--right-icon":"_input-text-field--right-icon_wv7xg_126"},Bd={caption:"_caption_9nluj_1","caption--size-md":"_caption--size-md_9nluj_6","caption--size-sm":"_caption--size-sm_9nluj_12","caption--size-xs":"_caption--size-xs_9nluj_17","caption--size-xxs":"_caption--size-xxs_9nluj_22","caption--weight-bold":"_caption--weight-bold_9nluj_27","caption--weight-regular":"_caption--weight-regular_9nluj_31","caption--capitalize":"_caption--capitalize_9nluj_35"},He=p.forwardRef((e,t)=>{const{size:n="md",fontWeight:r="regular",color:i="gray-900",isUppercase:s=!1,className:l,...c}=e;return u.jsx("p",{ref:t,className:oe(Bd.caption,Bd[`caption--size-${n}`],`text--weight-${r}`,`text--${i}`,s&&Bd["caption--capitalize"],l),...c})});He.displayName="Caption";const Rx={fluid:"_fluid_xnl5i_1"},Lx=["font","letterSpacing","textTransform","fontKerning","fontOpticalSizing","fontSizeAdjust","fontStretch","fontVariant","fontVariationSettings","fontSynthesis","textIndent"],jx={all:"initial",position:"absolute",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden",overflow:"scroll",whiteSpace:"pre"};function kx(e){let t=document.createElement("span");t.innerText=e.value===""?e.placeholder:e.value;let n=window.getComputedStyle(e);Object.assign(t.style,jx),Lx.forEach(i=>{t.style[i]=n[i]}),document.body.appendChild(t);let r=Fx(t.scrollWidth,n);return document.body.removeChild(t),r}function Fx(e,t){let n="calc(";return n+=`${e}px`,t.boxSizing==="border-box"&&(n+=` + ${t.paddingLeft} + ${t.paddingRight}`,n+=` + ${t.borderLeftWidth} + ${t.borderRightWidth}`),n+=")",n}function Bx(e){return e==null?"":typeof e=="number"?`${e}px`:e}const zx=p.forwardRef(function(t,n){var l;let{fieldSizing:r,...i}=t,s=p.useRef(null);return p.useLayoutEffect(()=>{let c=s.current;function d(){r==="content"&&(c.style.width=kx(c))}return d(),c.addEventListener("input",d),()=>{var f;c.style.width=Bx((f=t.style)==null?void 0:f.width),c.removeEventListener("input",d)}},[t.value,r,(l=t.style)==null?void 0:l.width]),u.jsx("input",{ref:c=>{s.current=c,typeof n=="function"?n(c):n!=null&&(n.current=c)},...i})}),Gx=p.forwardRef(({fieldSizing:e,...t},n)=>e!=="content"?u.jsx("input",{ref:n,...t}):CSS.supports("field-sizing:content")?u.jsx("input",{ref:n,...t,className:oe(Rx.fluid,t.className)}):u.jsx(zx,{ref:n,...t,fieldSizing:e})),ln=p.forwardRef((e,t)=>{const{size:n="md",error:r,disabled:i,variant:s="outlined",label:l,placeholder:c,helperText:d,leftAddon:f,rightAddon:m,leftIcon:g,leftIconTwo:v,rightIcon:b,rightIconTwo:E,className:_,contentClassName:w,autoResize:y=!1,...T}=e,S=(O,I)=>{switch(I){case"lg":return u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:dt["input-text-field--label-text"],children:O});default:case"md":return u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-800",className:dt["input-text-field--label-text"],children:O});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:dt["input-text-field--label-text"],children:O})}};return u.jsxs("div",{className:oe(dt["input-text-field--container"],i&&dt["input-text-field--disabled"],_),children:[l?S(l,n):null,u.jsxs("div",{className:oe(dt["input-text-field--content"],dt[`input-text-field--size-${n}`],dt[`input-text-field--${s}`],y?dt["input-text-field--fluid"]:null,w),children:[f?u.jsx("div",{className:dt["input-text-field--addon"],children:u.jsx(ye,{size:"xs",fontWeight:"regular",children:f})}):null,g||v?u.jsxs("div",{className:oe(dt["input-text-field--icon-container"],dt["input-text-field--left-icon"]),children:[g?u.jsx("span",{className:dt["input-text-field--icon"],children:g}):null,v?u.jsx("span",{className:oe(dt["input-text-field--icon"]),children:v}):null]}):null,u.jsx(Gx,{ref:t,type:"text",className:oe(dt["input-text-field--input"],r&&dt["input-text-field--input-error"],s==="filled"&&"bg--sand-200",i&&"cursor-not-allowed"),placeholder:c,disabled:i,...T,fieldSizing:y?"content":"fixed"}),b||E?u.jsxs("div",{className:oe(dt["input-text-field--icon-container"],dt["input-text-field--right-icon"]),children:[b?u.jsx("span",{className:dt["input-text-field--icon"],children:b}):null,E?u.jsx("span",{className:oe(dt["input-text-field--icon"]),children:E}):null]}):null,m?u.jsx("div",{className:dt["input-text-field--addon"],children:u.jsx(ye,{size:"xs",fontWeight:"regular",children:m})}):null]}),d?u.jsx(He,{size:n!=="sm"?"md":"sm",fontWeight:"regular",color:r?"red-500":"gray-700",className:dt["input-text-field--helper-text"],children:d}):null]})});ln.displayName="TextField";const So={"icon-button":"_icon-button_10wie_1","icon-button--size-md":"_icon-button--size-md_10wie_18","icon-button--size-sm":"_icon-button--size-sm_10wie_24","icon-button--size-xs":"_icon-button--size-xs_10wie_30","icon-button--size-xxs":"_icon-button--size-xxs_10wie_36","icon-button--children":"_icon-button--children_10wie_42","icon-button--icon":"_icon-button--icon_10wie_48","icon-button--primary-filled":"_icon-button--primary-filled_10wie_54","icon-button--primary-filled-disabled":"_icon-button--primary-filled-disabled_10wie_67","icon-button--primary-outlined":"_icon-button--primary-outlined_10wie_79","icon-button--primary-outlined-disabled":"_icon-button--primary-outlined-disabled_10wie_95","icon-button--primary-ghost":"_icon-button--primary-ghost_10wie_108","icon-button--primary-ghost-disabled":"_icon-button--primary-ghost-disabled_10wie_121","icon-button--green-filled":"_icon-button--green-filled_10wie_134","icon-button--green-filled-disabled":"_icon-button--green-filled-disabled_10wie_147","icon-button--green-outlined":"_icon-button--green-outlined_10wie_160","icon-button--green-outlined-disabled":"_icon-button--green-outlined-disabled_10wie_178","icon-button--green-ghost":"_icon-button--green-ghost_10wie_192","icon-button--green-ghost-disabled":"_icon-button--green-ghost-disabled_10wie_207","icon-button--red-filled":"_icon-button--red-filled_10wie_222","icon-button--red-filled-disabled":"_icon-button--red-filled-disabled_10wie_235","icon-button--red-outlined":"_icon-button--red-outlined_10wie_248","icon-button--red-outlined-disabled":"_icon-button--red-outlined-disabled_10wie_266","icon-button--red-ghost":"_icon-button--red-ghost_10wie_280","icon-button--red-ghost-disabled":"_icon-button--red-ghost-disabled_10wie_295","icon-button--sand-filled":"_icon-button--sand-filled_10wie_310","icon-button--sand-filled-disabled":"_icon-button--sand-filled-disabled_10wie_323","icon-button--sand-outlined":"_icon-button--sand-outlined_10wie_336","icon-button--sand-outlined-disabled":"_icon-button--sand-outlined-disabled_10wie_354","icon-button--sand-ghost":"_icon-button--sand-ghost_10wie_368","icon-button--sand-ghost-disabled":"_icon-button--sand-ghost-disabled_10wie_383","icon-button--rsanded-ghost-disabled":"_icon-button--rsanded-ghost-disabled_10wie_389"},st=p.forwardRef((e,t)=>{const{color:n="primary",variant:r="filled",size:i="lg",disabled:s=!1,children:l,className:c,...d}=e;return u.jsx("button",{ref:t,disabled:s,className:oe(So["icon-button"],So[`icon-button--size-${i}`],So[`icon-button--${n}-${r}`],s&&So[`icon-button--${n}-${r}-disabled`],c),...d,children:u.jsx("span",{className:oe("flex",So["icon-button--icon"],So["icon-button--children"]),children:l})})}),_s={tag:"_tag_10cmb_1","tag--icon-container":"_tag--icon-container_10cmb_20","tag--label":"_tag--label_10cmb_28","tag-close":"_tag-close_10cmb_36","tag--gray-soft":"_tag--gray-soft_10cmb_52","tag--gray-filled":"_tag--gray-filled_10cmb_59","tag--gray-outlined":"_tag--gray-outlined_10cmb_66","tag--sand-soft":"_tag--sand-soft_10cmb_77","tag--sand-filled":"_tag--sand-filled_10cmb_84","tag--sand-outlined":"_tag--sand-outlined_10cmb_91","tag--purple-soft":"_tag--purple-soft_10cmb_103","tag--purple-filled":"_tag--purple-filled_10cmb_110","tag--purple-outlined":"_tag--purple-outlined_10cmb_117","tag--green-soft":"_tag--green-soft_10cmb_129","tag--green-filled":"_tag--green-filled_10cmb_136","tag--green-outlined":"_tag--green-outlined_10cmb_143","tag--red-soft":"_tag--red-soft_10cmb_155","tag--red-filled":"_tag--red-filled_10cmb_162","tag--red-outlined":"_tag--red-outlined_10cmb_169","tag--salmon-soft":"_tag--salmon-soft_10cmb_181","tag--salmon-filled":"_tag--salmon-filled_10cmb_188","tag--salmon-outlined":"_tag--salmon-outlined_10cmb_195","tag--orange-soft":"_tag--orange-soft_10cmb_207","tag--orange-filled":"_tag--orange-filled_10cmb_214","tag--orange-outlined":"_tag--orange-outlined_10cmb_221","tag--pink-soft":"_tag--pink-soft_10cmb_233","tag--pink-filled":"_tag--pink-filled_10cmb_240","tag--pink-outlined":"_tag--pink-outlined_10cmb_247","tag--yellow-soft":"_tag--yellow-soft_10cmb_259","tag--yellow-filled":"_tag--yellow-filled_10cmb_266","tag--yellow-outlined":"_tag--yellow-outlined_10cmb_274","tag--darkblue-soft":"_tag--darkblue-soft_10cmb_286","tag--darkblue-filled":"_tag--darkblue-filled_10cmb_293","tag--darkblue-outlined":"_tag--darkblue-outlined_10cmb_300","tag--lightblue-soft":"_tag--lightblue-soft_10cmb_312","tag--lightblue-filled":"_tag--lightblue-filled_10cmb_319","tag--lightblue-outlined":"_tag--lightblue-outlined_10cmb_327","tag--mint-soft":"_tag--mint-soft_10cmb_339","tag--mint-filled":"_tag--mint-filled_10cmb_346","tag--mint-outlined":"_tag--mint-outlined_10cmb_354"},Ga=12,Hx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 4.793a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.75 2.25a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0Zm10-1A2.75 2.75 0 0 1 16 3.293h2a2.75 2.75 0 0 1 2.75 2.75v2a2.75 2.75 0 0 1-2.75 2.75h-2a2.75 2.75 0 0 1-2.75-2.75v-2ZM16 4.793c-.69 0-1.25.56-1.25 1.25v2c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25v-2c0-.69-.56-1.25-1.25-1.25h-2ZM3.25 16.043A2.75 2.75 0 0 1 6 13.293h2a2.75 2.75 0 0 1 2.75 2.75v2A2.75 2.75 0 0 1 8 20.793H6a2.75 2.75 0 0 1-2.75-2.75v-2ZM6 14.793c-.69 0-1.25.56-1.25 1.25v2c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25v-2c0-.69-.56-1.25-1.25-1.25H6Zm11 0a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.75 2.25a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0Z",clipRule:"evenodd"})}),Ux=(()=>{const e=p.forwardRef(Hx);return e.displayName="SvgAppsMenu",e})(),Vx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.25 6A4.75 4.75 0 0 1 12 1.25h6A4.75 4.75 0 0 1 22.75 6v6A4.75 4.75 0 0 1 18 16.75h-1.25V18A4.75 4.75 0 0 1 12 22.75H6A4.75 4.75 0 0 1 1.25 18v-6A4.75 4.75 0 0 1 6 7.25h1.25V6Zm1.5 1.25H12A4.75 4.75 0 0 1 16.75 12v3.25H18A3.25 3.25 0 0 0 21.25 12V6A3.25 3.25 0 0 0 18 2.75h-6A3.25 3.25 0 0 0 8.75 6v1.25ZM6 8.75A3.25 3.25 0 0 0 2.75 12v6A3.25 3.25 0 0 0 6 21.25h6A3.25 3.25 0 0 0 15.25 18v-6A3.25 3.25 0 0 0 12 8.75H6Z",clipRule:"evenodd"})}),Wx=(()=>{const e=p.forwardRef(Vx);return e.displayName="SvgCopy",e})(),qx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.414 9.574a.75.75 0 0 1 1.055-.117L12 13.082l4.532-3.625a.75.75 0 0 1 .936 1.172l-5 4a.75.75 0 0 1-.937 0l-5-4a.75.75 0 0 1-.117-1.055Z",clipRule:"evenodd"})}),rh=(()=>{const e=p.forwardRef(qx);return e.displayName="SvgDirectionDown01Chevron",e})(),Yx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.468 6.457a.75.75 0 0 1 .118 1.055l-3.625 4.531 3.625 4.532a.75.75 0 1 1-1.172.937l-4-5a.75.75 0 0 1 0-.938l4-5a.75.75 0 0 1 1.054-.117Zm-5.999 0a.75.75 0 0 1 .117 1.055L7.96 12.043l3.626 4.532a.75.75 0 1 1-1.172.937l-4-5a.75.75 0 0 1 0-.938l4-5a.75.75 0 0 1 1.055-.117Z",clipRule:"evenodd"})}),Zx=(()=>{const e=p.forwardRef(Yx);return e.displayName="SvgDirectionLeft",e})(),Xx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.532 6.457a.75.75 0 0 0-.118 1.055l3.626 4.531-3.626 4.532a.75.75 0 1 0 1.172.937l4-5a.75.75 0 0 0 0-.938l-4-5a.75.75 0 0 0-1.054-.117Zm5.999 0a.75.75 0 0 0-.117 1.055l3.626 4.531-3.626 4.532a.75.75 0 1 0 1.172.937l4-5a.75.75 0 0 0 0-.938l-4-5a.75.75 0 0 0-1.055-.117Z",clipRule:"evenodd"})}),Kx=(()=>{const e=p.forwardRef(Xx);return e.displayName="SvgDirectionRight",e})(),Qx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.586 14.511a.75.75 0 0 1-1.054.118L12 11.003 7.469 14.63a.75.75 0 1 1-.937-1.172l5-4a.75.75 0 0 1 .937 0l5 4a.75.75 0 0 1 .117 1.054Z",clipRule:"evenodd"})}),ih=(()=>{const e=p.forwardRef(Qx);return e.displayName="SvgDirectionUp01Chevron",e})(),Jx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.515 5.848A4.75 4.75 0 0 1 8.123 2.25h3.666a4.75 4.75 0 0 1 2.635.798l1.547 1.031.037.025A2.742 2.742 0 0 1 18 3.25h2A2.75 2.75 0 0 1 22.75 6v7A2.75 2.75 0 0 1 20 15.75h-2c-.673 0-1.29-.242-1.768-.644l-3.58 6.266a.75.75 0 0 1-.652.378h-1.328c-2.596 0-4.144-2.893-2.705-5.053l.632-.947H4.562a2.75 2.75 0 0 1-2.668-3.417l1.621-6.485ZM16.75 13c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25V6c0-.69-.56-1.25-1.25-1.25h-2c-.69 0-1.25.56-1.25 1.25v7Zm-1.5-7.465a.25.25 0 0 0-.111-.208l-1.547-1.031a3.25 3.25 0 0 0-1.803-.546H8.123A3.25 3.25 0 0 0 4.97 6.212l-1.62 6.485a1.25 1.25 0 0 0 1.212 1.553H10a.75.75 0 0 1 .624 1.166l-1.408 2.113c-.776 1.163.058 2.721 1.456 2.721h.893l3.652-6.392a.25.25 0 0 0 .033-.124V5.535Z",clipRule:"evenodd"})}),oh=(()=>{const e=p.forwardRef(Jx);return e.displayName="SvgDislike",e})(),eE=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M10.9 6.908a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm6.75-11a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Z"})}),tE=(()=>{const e=p.forwardRef(eE);return e.displayName="SvgDragCustom",e})(),nE=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.75a9.25 9.25 0 1 0 0 18.5 9.25 9.25 0 0 0 0-18.5ZM1.25 12C1.25 6.063 6.063 1.25 12 1.25S22.75 6.063 22.75 12 17.937 22.75 12 22.75 1.25 17.937 1.25 12ZM12 7.75c-.69 0-1.25.56-1.25 1.25a.75.75 0 0 1-1.5 0 2.75 2.75 0 1 1 5.064 1.487 8.991 8.991 0 0 1-.562.757 64.1 64.1 0 0 1-.1.124c-.155.192-.297.367-.428.548-.324.444-.474.779-.474 1.084v.5a.75.75 0 0 1-1.5 0V13c0-.8.392-1.46.761-1.967a15.396 15.396 0 0 1 .573-.73c.185-.23.343-.432.468-.628A1.25 1.25 0 0 0 12 7.75Zm0 7.5a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"})}),sh=(()=>{const e=p.forwardRef(nE);return e.displayName="SvgHelp",e})(),rE=(e,t)=>u.jsxs("svg",{width:"140",height:"132",viewBox:"0 0 140 132",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M70.462 115.665C102.296 115.665 128.102 89.8399 128.102 57.9834C128.102 26.127 102.296 0.302246 70.462 0.302246C38.6285 0.302246 12.8223 26.127 12.8223 57.9834C12.8223 89.8399 38.6285 115.665 70.462 115.665Z",fill:"#F3F1ED"}),u.jsx("g",{filter:"url(#filter0_d_355_44078)",children:u.jsx("path",{d:"M117.694 21.9143V93.6056C117.694 96.1993 115.56 98.3353 112.968 98.3353H27.1316C24.5398 98.3353 22.4053 96.1993 22.4053 93.6056V21.9143C22.4053 19.3206 24.5398 17.1846 27.1316 17.1846H112.968C115.56 17.1846 117.694 19.3206 117.694 21.9143Z",fill:"url(#paint0_linear_355_44078)"})}),u.jsx("path",{d:"M117.694 21.9143V25.3472H22.4053V21.9143C22.4053 19.3206 24.5398 17.1846 27.1316 17.1846H112.968C115.56 17.1846 117.694 19.3206 117.694 21.9143Z",fill:"url(#paint1_linear_355_44078)"}),u.jsx("path",{d:"M27.3599 22.7536C28.1598 22.7536 28.8083 22.1047 28.8083 21.3042C28.8083 20.5037 28.1598 19.8547 27.3599 19.8547C26.56 19.8547 25.9115 20.5037 25.9115 21.3042C25.9115 22.1047 26.56 22.7536 27.3599 22.7536Z",fill:"#F3F1ED"}),u.jsx("path",{opacity:"0.6",d:"M31.8576 22.7536C32.6575 22.7536 33.306 22.1047 33.306 21.3042C33.306 20.5037 32.6575 19.8547 31.8576 19.8547C31.0576 19.8547 30.4092 20.5037 30.4092 21.3042C30.4092 22.1047 31.0576 22.7536 31.8576 22.7536Z",fill:"#F3F1ED"}),u.jsx("path",{opacity:"0.4",d:"M36.4314 22.7536C37.2314 22.7536 37.8798 22.1047 37.8798 21.3042C37.8798 20.5037 37.2314 19.8547 36.4314 19.8547C35.6315 19.8547 34.983 20.5037 34.983 21.3042C34.983 22.1047 35.6315 22.7536 36.4314 22.7536Z",fill:"#F3F1ED"}),u.jsx("path",{d:"M95.5253 57.9033H44.8824C43.3771 57.9033 42.0868 56.3142 42.0868 54.4602V37.5099C42.0868 35.656 43.3771 34.0669 44.8824 34.0669H95.5253C97.0306 34.0669 98.3209 35.656 98.3209 37.5099V54.4602C98.3209 56.3142 97.0306 57.9033 95.5253 57.9033Z",fill:"white"}),u.jsx("path",{d:"M75.538 43.9123H49.1297C48.3012 43.9123 47.5763 43.1869 47.5763 42.3578C47.5763 41.5287 48.3012 40.8032 49.1297 40.8032H75.538C76.3665 40.8032 77.0914 41.5287 77.0914 42.3578C76.9879 43.1869 76.3665 43.9123 75.538 43.9123Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M91.2787 43.9123H80.8189C79.9904 43.9123 79.2655 43.1869 79.2655 42.3578C79.2655 41.5287 79.9904 40.8032 80.8189 40.8032H91.2787C92.1072 40.8032 92.8321 41.5287 92.8321 42.3578C92.7285 43.1869 92.1072 43.9123 91.2787 43.9123Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M70.8776 51.0632H49.1296C48.3011 51.0632 47.5762 50.3377 47.5762 49.5086C47.5762 48.6796 48.3011 47.9541 49.1296 47.9541H70.8776C71.7061 47.9541 72.431 48.6796 72.431 49.5086C72.431 50.3377 71.7061 51.0632 70.8776 51.0632Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M95.5253 88.5639H44.8824C43.3771 88.5639 42.0868 86.9748 42.0868 85.1209V68.1706C42.0868 66.3166 43.3771 64.7275 44.8824 64.7275H95.5253C97.0306 64.7275 98.3209 66.3166 98.3209 68.1706V85.1209C98.3209 87.1072 97.0306 88.5639 95.5253 88.5639Z",fill:"white"}),u.jsx("path",{d:"M75.538 74.573H49.1297C48.3012 74.573 47.5763 73.8475 47.5763 73.0184C47.5763 72.1893 48.3012 71.4639 49.1297 71.4639H75.538C76.3665 71.4639 77.0914 72.1893 77.0914 73.0184C76.9879 73.9511 76.3665 74.573 75.538 74.573Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M91.2787 74.573H80.8189C79.9904 74.573 79.2655 73.8475 79.2655 73.0184C79.2655 72.1893 79.9904 71.4639 80.8189 71.4639H91.2787C92.1072 71.4639 92.8321 72.1893 92.8321 73.0184C92.7285 73.9511 92.1072 74.573 91.2787 74.573Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M70.8776 81.7238H49.1296C48.3011 81.7238 47.5762 80.9984 47.5762 80.1693C47.5762 79.3402 48.3011 78.6147 49.1296 78.6147H70.8776C71.7061 78.6147 72.431 79.3402 72.431 80.1693C72.431 81.102 71.7061 81.7238 70.8776 81.7238Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M90.788 110.64C90.4128 112.234 89.8501 113.923 89.1936 115.329C87.4115 118.8 84.5978 121.52 81.1276 123.302C77.5635 125.084 73.343 125.834 69.1224 124.896C59.1806 122.833 52.8028 113.078 54.8662 103.137C56.9296 93.1949 66.59 86.7233 76.5318 88.8805C80.0959 89.6308 83.191 91.4128 85.8171 93.8514C90.2253 98.2595 92.1011 104.637 90.788 110.64Z",fill:"url(#paint2_linear_355_44078)"}),u.jsx("path",{d:"M78.6888 105.294H74.4682V101.073C74.4682 100.229 73.8117 99.479 72.8738 99.479C72.0297 99.479 71.2794 100.136 71.2794 101.073V105.294H67.0588C66.2147 105.294 65.4644 105.951 65.4644 106.888C65.4644 107.826 66.1209 108.483 67.0588 108.483H71.2794V112.703C71.2794 113.548 71.9359 114.298 72.8738 114.298C73.7179 114.298 74.4682 113.641 74.4682 112.703V108.483H78.6888C79.5329 108.483 80.2833 107.826 80.2833 106.888C80.2833 105.951 79.5329 105.294 78.6888 105.294Z",fill:"white"}),u.jsxs("defs",{children:[u.jsxs("filter",{id:"filter0_d_355_44078",x:"0.405273",y:"6.18457",width:"139.289",height:"125.151",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44078"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44078",result:"shape"})]}),u.jsxs("linearGradient",{id:"paint0_linear_355_44078",x1:"70.0188",y1:"15.3075",x2:"70.0188",y2:"99.2101",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint1_linear_355_44078",x1:"113.915",y1:"17.1846",x2:"25.456",y2:"20.7799",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint2_linear_355_44078",x1:"89.7428",y1:"88.4654",x2:"55.5982",y2:"88.5839",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]})]})]}),iE=(()=>{const e=p.forwardRef(rE);return e.displayName="SvgIllustrationCard",e})(),oE=(e,t)=>u.jsxs("svg",{width:"178",height:"140",viewBox:"0 0 178 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[u.jsx("path",{d:"M79.2856 125C113.779 125 141.741 97.0178 141.741 62.5C141.741 27.9822 113.779 0 79.2856 0C44.7927 0 16.8306 27.9822 16.8306 62.5C16.8306 97.0178 44.7927 125 79.2856 125Z",fill:"#F3F1ED"}),u.jsx("g",{filter:"url(#filter0_d_355_44030)",children:u.jsx("path",{d:"M136.899 25.2617V101.676C136.899 104.37 134.688 106.589 132.003 106.589H27.537C24.8518 106.589 22.6404 104.37 22.6404 101.676V25.2617C22.6404 22.5676 24.8518 20.3489 27.537 20.3489H132.003C134.688 20.3489 136.899 22.5676 136.899 25.2617Z",fill:"url(#paint0_linear_355_44030)"})}),u.jsx("path",{d:"M101.244 57.0718C100.636 54.8258 99.2185 52.8862 97.1932 51.6611C94.9654 50.334 92.6363 50.1298 90.1047 49.9256C85.649 49.4152 81.092 49.3131 76.5351 49.5173C72.4845 49.6194 67.8263 49.4152 64.0794 51.1507C58.7124 53.4987 58.0035 58.7052 57.801 64.32C57.5985 68.5055 57.5985 73.5078 58.7124 77.5913C59.6238 80.8581 62.1554 83.4103 65.4972 84.1249C69.7503 85.1458 78.8642 85.35 83.3199 85.2479C83.7249 85.2479 84.13 85.2479 84.5351 85.2479C88.0793 85.1458 91.8262 85.1458 95.0667 83.9207C97.8008 83.0019 99.4211 81.3686 100.434 79.3268C101.649 76.8767 101.953 73.8141 102.054 70.4452C102.459 66.0554 102.358 61.0532 101.244 57.0718Z",fill:"url(#paint1_linear_355_44030)"}),u.jsx("path",{d:"M76.1088 61.4951C76.1088 60.1481 76.789 59.6991 77.8944 60.4175C80.8705 62.3033 83.9316 64.2788 86.9076 66.1646C88.013 66.883 88.013 67.6911 86.9076 68.4993C83.9316 70.3851 80.9555 72.3606 77.9794 74.2464C76.789 74.9648 76.1938 74.6056 76.1088 73.3484C76.1088 72.8096 76.1088 62.7522 76.1088 61.4951Z",fill:"white"}),u.jsx("path",{d:"M136.899 25.647V29.1937H22.6404V25.647C22.6404 22.9673 24.8518 20.7605 27.537 20.7605H132.003C134.688 20.7605 136.899 22.9673 136.899 25.647Z",fill:"url(#paint2_linear_355_44030)"}),u.jsx("path",{d:"M27.4345 26.514C28.261 26.514 28.9309 25.8436 28.9309 25.0165C28.9309 24.1895 28.261 23.519 27.4345 23.519C26.6081 23.519 25.9381 24.1895 25.9381 25.0165C25.9381 25.8436 26.6081 26.514 27.4345 26.514Z",fill:"#F3F1ED"}),u.jsx("path",{opacity:"0.6",d:"M32.0812 26.514C32.9077 26.514 33.5776 25.8436 33.5776 25.0165C33.5776 24.1895 32.9077 23.519 32.0812 23.519C31.2548 23.519 30.5848 24.1895 30.5848 25.0165C30.5848 25.8436 31.2548 26.514 32.0812 26.514Z",fill:"#F3F1ED"}),u.jsx("path",{opacity:"0.4",d:"M36.8068 26.514C37.6333 26.514 38.3032 25.8436 38.3032 25.0165C38.3032 24.1895 37.6333 23.519 36.8068 23.519C35.9804 23.519 35.3104 24.1895 35.3104 25.0165C35.3104 25.8436 35.9804 26.514 36.8068 26.514Z",fill:"#F3F1ED"}),u.jsx("g",{filter:"url(#filter1_d_355_44030)",children:u.jsx("rect",{x:"109.054",y:"40.6978",width:"46.5116",height:"46.5116",rx:"6",fill:"url(#paint3_linear_355_44030)"})}),u.jsx("rect",{x:"114.003",y:"45.6458",width:"36.6155",height:"36.6155",rx:"2",fill:"#EEECE6"}),u.jsx("path",{d:"M136.504 59.6813C137.352 59.6813 138.039 58.9959 138.039 58.1503C138.039 57.3048 137.352 56.6194 136.504 56.6194C135.656 56.6194 134.969 57.3048 134.969 58.1503C134.969 58.9959 135.656 59.6813 136.504 59.6813Z",fill:"#D2C8B1"}),u.jsx("path",{d:"M136.593 69.6213H124.882C124.126 69.6213 123.686 68.7468 124.126 68.1847L129.982 60.0645C130.36 59.5648 131.115 59.5648 131.493 60.0645L137.349 68.1847C137.789 68.8093 137.349 69.6213 136.593 69.6213Z",fill:"#D2C8B1"}),u.jsx("path",{opacity:"0.7",d:"M140.67 69.4556H134.907C134.031 69.4556 133.593 68.5477 134.031 67.9192L136.877 64.078C137.314 63.5193 138.117 63.5193 138.555 64.078L141.4 67.9192C142.057 68.5477 141.546 69.4556 140.67 69.4556Z",fill:"#D2C8B1"}),u.jsxs("defs",{children:[u.jsxs("filter",{id:"filter0_d_355_44030",x:"0.640381",y:"9.34888",width:"158.259",height:"130.24",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44030"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44030",result:"shape"})]}),u.jsxs("filter",{id:"filter1_d_355_44030",x:"87.0544",y:"29.6978",width:"90.5116",height:"90.5117",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44030"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44030",result:"shape"})]}),u.jsxs("linearGradient",{id:"paint0_linear_355_44030",x1:"79.7326",y1:"18.3541",x2:"79.7326",y2:"107.519",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint1_linear_355_44030",x1:"100.504",y1:"49.4188",x2:"59.0575",y2:"49.5982",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint2_linear_355_44030",x1:"132.367",y1:"20.7605",x2:"26.3591",y2:"25.7611",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint3_linear_355_44030",x1:"132.295",y1:"39.6219",x2:"132.295",y2:"87.7108",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]})]})]}),sE=(()=>{const e=p.forwardRef(oE);return e.displayName="SvgIllustrationMedia",e})(),aE=(e,t)=>u.jsxs("svg",{width:"129",height:"142",viewBox:"0 0 129 142",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[u.jsx("path",{d:"M64.5351 141.268C99.4733 141.268 127.796 112.771 127.796 77.619C127.796 42.4665 99.4733 13.9697 64.5351 13.9697C29.5969 13.9697 1.27393 42.4665 1.27393 77.619C1.27393 112.771 29.5969 141.268 64.5351 141.268Z",fill:"#F3F1ED"}),u.jsx("mask",{id:"mask0_355_44054",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"11",width:"129",height:"131",children:u.jsx("path",{d:"M64.5351 140.268C99.4733 140.268 127.796 111.771 127.796 76.619C127.796 41.4665 99.4733 12.9697 64.5351 12.9697C29.5969 12.9697 1.27393 41.4665 1.27393 76.619C1.27393 111.771 29.5969 140.268 64.5351 140.268Z",fill:"#F1F3F9",stroke:"#D6DCE8","stroke-width":"2","stroke-miterlimit":"10"})}),u.jsxs("g",{mask:"url(#mask0_355_44054)",children:[u.jsx("path",{d:"M115.351 133.619H136.97C137.369 132.335 137.688 130.971 137.848 129.686C137.848 129.526 137.928 129.285 137.928 129.125C137.928 128.964 137.928 128.804 138.007 128.643C138.406 122.864 136.412 117.085 132.662 112.831C132.583 112.751 132.583 112.751 132.503 112.671C129.232 109.059 124.685 106.49 119.181 105.928C119.021 105.928 118.861 105.928 118.702 105.848C118.542 105.848 118.383 105.848 118.144 105.848C117.745 105.848 117.426 105.848 117.027 105.848C114.394 105.848 111.841 106.33 109.528 107.213C108.73 107.534 107.932 107.855 107.214 108.256C106.975 108.417 106.736 108.497 106.496 108.657C106.257 108.818 106.098 108.898 105.858 109.059C105.699 109.139 105.539 109.299 105.38 109.38C105.22 109.46 105.06 109.62 104.901 109.701C104.662 109.861 104.422 110.102 104.103 110.263C102.587 111.467 101.231 112.831 100.114 114.356C99.9549 114.597 99.7156 114.838 99.5561 115.159C99.4763 115.319 99.3167 115.48 99.237 115.64C99.1572 115.801 98.9976 115.961 98.9179 116.202C98.7583 116.443 98.6785 116.603 98.5988 116.844C98.519 116.924 98.519 117.005 98.4392 117.085C98.3594 117.246 98.1999 117.486 98.1201 117.727C98.0403 117.888 97.9606 118.048 97.8808 118.209C94.9291 118.369 92.137 119.332 86.2337 123.265L85.2764 101.835H77.8574L77.2192 115.159C74.826 113.313 72.5125 113.553 70.917 113.634L71.3159 113.553L70.6777 100.39H58.552L57.834 116.042C55.7598 114.436 55.1216 115.239 54.4834 115.239C53.2071 115.239 52.0902 115.56 51.0531 116.122L50.4149 101.835H43.0757L42.597 113.152C39.2465 111.145 35.3376 110.022 31.2691 110.022C26.2433 110.022 21.6163 111.707 17.8669 114.517C11.0861 111.306 4.06594 112.028 -1.43851 115.159C-1.67783 115.319 -1.83738 115.399 -2.0767 115.56C-2.15648 115.64 -2.31603 115.721 -2.3958 115.721C-2.55535 115.801 -2.63512 115.881 -2.79467 115.961C-2.95422 116.042 -3.11377 116.122 -3.19355 116.282C-5.02836 117.567 -6.62385 119.092 -7.90024 120.857C-7.98002 121.018 -8.13957 121.098 -8.21934 121.259C-8.29912 121.419 -8.45867 121.5 -8.53844 121.66C-8.61821 121.821 -8.69799 121.901 -8.85754 122.061C-8.93731 122.222 -9.01709 122.382 -9.09686 122.463C-9.17664 122.543 -9.25641 122.703 -9.25641 122.784C-11.171 125.994 -12.2081 129.686 -12.2081 133.619L86.2337 143.733L115.351 133.619Z",fill:"white"}),u.jsx("path",{d:"M51.0533 116.042L50.4151 101.755H43.0759L42.5972 113.072",fill:"white"}),u.jsx("path",{d:"M51.0533 116.042L50.4151 101.755H43.0759L42.5972 113.072",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M86.1541 123.667L85.117 101.675H77.8575L77.2193 114.999L86.1541 123.667Z",fill:"white"}),u.jsx("path",{d:"M86.1541 123.667L85.117 101.675H77.8575L77.2193 114.999",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M71.3955 113.473L70.7573 100.31H58.5518L57.8338 115.721V115.962",fill:"white"}),u.jsx("path",{d:"M71.3955 113.473L70.7573 100.31H58.5518L57.8338 115.721V115.962",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M50.0162 116.764C51.2128 115.721 52.8083 115.159 54.4836 115.159C57.2757 115.159 59.6689 116.764 60.7858 119.092",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M8.85248 132.415C8.85248 119.974 18.8243 109.941 31.1894 109.941C41.4803 109.941 50.1757 116.924 52.7285 126.476",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M52.9677 126.396C53.207 122.302 56.5576 119.092 60.7058 119.092C62.2216 119.092 63.6575 119.573 64.8541 120.296",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M68.2048 114.758C69.4812 113.875 70.9171 113.393 72.5924 113.393C75.1452 113.393 77.3788 114.677 78.8148 116.523",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M115.351 133.138C115.192 131.131 114.634 129.205 113.756 127.52",stroke:"#DFDFDF","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M85.2765 125.192C88.3079 120.858 93.2539 118.048 98.8382 118.048C104.183 118.048 108.97 120.617 112.001 124.55",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M64.6944 132.897C63.8967 128.884 60.3866 125.834 56.1586 125.834C54.962 125.834 53.8451 126.075 52.808 126.556C50.8137 127.359 49.2182 128.964 48.3407 130.891",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M17.8669 114.436C17.7872 114.436 17.7872 114.436 17.8669 114.436C11.5647 111.467 4.06594 111.707 -2.0767 115.48C-2.15648 115.56 -2.31603 115.64 -2.3958 115.64C-2.55535 115.721 -2.63512 115.801 -2.79467 115.881C-3.51264 116.363 -4.15084 116.844 -4.78904 117.406C-6.22498 118.69 -7.50137 120.055 -8.53844 121.58C-8.61821 121.74 -8.69799 121.821 -8.85754 121.981C-8.93731 122.142 -9.01709 122.302 -9.09686 122.382C-9.17664 122.463 -9.25641 122.623 -9.25641 122.703C-11.0912 125.834 -12.0485 129.365 -12.2081 132.977",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M97.8012 118.048C97.881 117.888 97.9607 117.727 98.0405 117.567C99.9551 113.554 103.146 110.263 107.055 108.176C107.773 107.775 108.571 107.454 109.368 107.133C111.682 106.25 114.235 105.768 116.867 105.768C117.266 105.768 117.585 105.768 117.984 105.768C118.144 105.768 118.303 105.768 118.543 105.768C118.702 105.768 118.862 105.768 119.021 105.848C124.286 106.41 128.993 108.898 132.344 112.59C132.423 112.671 132.423 112.671 132.503 112.751C135.854 116.523 137.928 121.5 137.928 126.958C137.928 127.52 137.928 128.001 137.848 128.563C137.848 128.724 137.848 128.884 137.768 129.045C137.768 129.205 137.688 129.446 137.688 129.606C137.529 130.73 137.29 131.854 136.97 132.978",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})]}),u.jsx("path",{d:"M32.4655 68.1476H32.1464C31.7475 68.1476 31.3487 67.8266 31.3487 67.345V67.0239C31.3487 66.7029 31.0296 66.3818 30.7105 66.3818C30.3914 66.3818 30.0723 66.7029 30.0723 67.0239V67.345C30.0723 67.7463 29.7532 68.1476 29.2745 68.1476H29.0352C28.7161 68.1476 28.397 68.4687 28.397 68.7898C28.397 69.1108 28.7161 69.4319 29.0352 69.4319H29.3543C29.7532 69.4319 30.152 69.7529 30.152 70.2345V70.5556C30.152 70.8766 30.4711 71.1977 30.7902 71.1977C31.1093 71.1977 31.4284 70.8766 31.4284 70.5556V70.2345C31.4284 69.8332 31.7475 69.4319 32.2262 69.4319H32.5453C32.8644 69.4319 33.1835 69.1108 33.1835 68.7898C33.1037 68.4687 32.8644 68.1476 32.4655 68.1476Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M28.6367 44.4702H28.3176C27.7591 44.4702 27.3603 44.0688 27.3603 43.507V43.1859C27.3603 42.7846 27.0412 42.3833 26.5625 42.3833C26.0839 42.3833 25.7648 42.7044 25.7648 43.1859V43.507C25.7648 44.0688 25.3659 44.4702 24.8075 44.4702H24.4086C24.0097 44.4702 23.6109 44.7912 23.6109 45.2728C23.6109 45.6741 23.93 46.0754 24.4086 46.0754H24.7277C25.2861 46.0754 25.685 46.4768 25.685 47.0386V47.3597C25.685 47.761 26.0041 48.1623 26.4828 48.1623C26.9614 48.1623 27.2805 47.8412 27.2805 47.3597V47.0386C27.2805 46.4768 27.6794 46.0754 28.2378 46.0754H28.5569C28.9558 46.0754 29.3546 45.7544 29.3546 45.2728C29.4344 44.8715 29.1153 44.4702 28.6367 44.4702Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M103.385 41.8215H103.146C102.827 41.8215 102.508 41.5005 102.508 41.1794V40.9386C102.508 40.6176 102.268 40.457 102.029 40.457C101.71 40.457 101.471 40.6978 101.471 40.9386V41.1794C101.471 41.5005 101.152 41.8215 100.832 41.8215H100.593C100.274 41.8215 100.114 42.0623 100.114 42.3031C100.114 42.6242 100.354 42.7847 100.593 42.7847H100.832C101.152 42.7847 101.471 43.1057 101.471 43.4268V43.6676C101.471 43.9886 101.71 44.1492 102.029 44.1492C102.348 44.1492 102.508 43.9084 102.508 43.6676V43.4268C102.508 43.1057 102.827 42.7847 103.146 42.7847H103.385C103.704 42.7847 103.864 42.5439 103.864 42.3031C103.944 42.1426 103.625 41.8215 103.385 41.8215Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M102.667 103.063H102.428C102.109 103.063 101.79 102.742 101.79 102.421V102.18C101.79 101.859 101.551 101.698 101.311 101.698C100.992 101.698 100.753 101.939 100.753 102.18V102.421C100.753 102.742 100.434 103.063 100.115 103.063H99.8754C99.5563 103.063 99.3967 103.304 99.3967 103.544C99.3967 103.785 99.636 104.026 99.8754 104.026H100.115C100.434 104.026 100.753 104.347 100.753 104.668V104.909C100.753 105.23 100.992 105.39 101.311 105.39C101.63 105.39 101.79 105.15 101.79 104.909V104.668C101.79 104.347 102.109 104.026 102.428 104.026H102.667C102.987 104.026 103.146 103.785 103.146 103.544C103.146 103.304 102.907 103.063 102.667 103.063Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M28.8758 102.581H28.6365C28.3174 102.581 27.9983 102.26 27.9983 101.939V101.698C27.9983 101.377 27.759 101.217 27.5196 101.217C27.2005 101.217 26.9612 101.458 26.9612 101.698V101.939C26.9612 102.26 26.6421 102.581 26.323 102.581H26.0837C25.7646 102.581 25.605 102.822 25.605 103.063C25.605 103.384 25.8444 103.544 26.0837 103.544H26.323C26.6421 103.544 26.9612 103.866 26.9612 104.187V104.427C26.9612 104.748 27.2005 104.909 27.5196 104.909C27.8387 104.909 27.9983 104.668 27.9983 104.427V104.187C27.9983 103.866 28.3174 103.544 28.6365 103.544H28.8758C29.1949 103.544 29.3544 103.304 29.3544 103.063C29.4342 102.822 29.1151 102.581 28.8758 102.581Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M16.0323 77.619C15.075 77.619 14.2773 76.8164 14.2773 75.8532C14.2773 74.89 15.075 74.0874 16.0323 74.0874C16.9896 74.0874 17.7873 74.89 17.7873 75.8532C17.7873 76.8164 16.9896 77.619 16.0323 77.619ZM16.0323 75.0506C15.6334 75.0506 15.2345 75.3716 15.2345 75.8532C15.2345 76.2545 15.5536 76.6558 16.0323 76.6558C16.4312 76.6558 16.83 76.3348 16.83 75.8532C16.9098 75.4519 16.5109 75.0506 16.0323 75.0506Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M97.8008 65.6597C96.2851 65.6597 95.1683 64.4558 95.1683 63.011C95.1683 61.5663 96.3649 60.3623 97.8008 60.3623C99.3166 60.3623 100.433 61.5663 100.433 63.011C100.433 64.4558 99.2368 65.6597 97.8008 65.6597ZM97.8008 61.8071C97.1626 61.8071 96.5244 62.3689 96.5244 63.0913C96.5244 63.8136 97.0829 64.3755 97.8008 64.3755C98.439 64.3755 99.0772 63.8136 99.0772 63.0913C99.0772 62.3689 98.5188 61.8071 97.8008 61.8071Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M113.756 56.9912C113.118 56.9912 112.559 57.4728 112.559 58.1952C112.559 58.9175 113.038 59.3991 113.756 59.3991C114.394 59.3991 114.952 58.9175 114.952 58.1952C114.952 57.4728 114.394 56.9912 113.756 56.9912Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M113.836 84.6019H113.517C113.038 84.6019 112.719 84.2006 112.719 83.7993V83.4782C112.719 83.0769 112.4 82.7559 112.001 82.7559C111.602 82.7559 111.283 83.0769 111.283 83.4782V83.7993C111.283 84.2809 110.884 84.6019 110.485 84.6019H110.166C109.767 84.6019 109.448 84.923 109.448 85.3243C109.448 85.7256 109.767 86.0467 110.166 86.0467H110.485C110.964 86.0467 111.283 86.448 111.283 86.8493V87.1704C111.283 87.5717 111.602 87.8927 112.001 87.8927C112.4 87.8927 112.719 87.5717 112.719 87.1704V86.8493C112.719 86.3677 113.118 86.0467 113.517 86.0467H113.836C114.235 86.0467 114.554 85.7256 114.554 85.3243C114.474 84.923 114.235 84.6019 113.836 84.6019Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M69.4811 95.6543H59.5093L57.4352 97.0188C57.0363 97.3398 56.797 97.7412 56.797 98.303V99.6675H72.5126V98.3833C72.5126 97.8214 72.2732 97.3398 71.7946 97.099L69.4811 95.6543Z",fill:"url(#paint0_linear_355_44054)"}),u.jsx("path",{d:"M73.1505 100.31C73.1505 100.631 72.9112 100.952 72.5123 100.952H56.5574C56.2383 100.952 55.9192 100.711 55.9192 100.31C55.9192 99.989 56.1585 99.668 56.5574 99.668H72.5123C72.8314 99.668 73.1505 99.989 73.1505 100.31Z",fill:"white",stroke:"#DFDFDF","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M51.5317 101.755H41.7992C41.5599 101.755 41.4003 101.594 41.4003 101.353C41.4003 101.113 41.5599 100.952 41.7992 100.952H51.5317C51.771 100.952 51.9306 101.113 51.9306 101.353C51.8508 101.594 51.6912 101.755 51.5317 101.755Z",fill:"url(#paint1_linear_355_44054)"}),u.jsx("path",{d:"M50.9733 99.427C51.2126 99.5875 51.4519 99.9086 51.4519 100.23V101.032H41.879V100.23C41.879 99.9086 42.0385 99.5875 42.2779 99.427L43.5543 98.5441V95.0928H49.6171V98.6244L50.9733 99.427Z",fill:"url(#paint2_linear_355_44054)"}),u.jsx("path",{d:"M47.3039 17.6383C46.905 17.3172 46.3466 17.3172 46.0275 17.6383C44.2725 19.1633 41.4803 24.5409 41.4803 30.2397V97.4205C41.4803 98.0627 41.959 98.5442 42.5972 98.5442H46.6657H50.7342C51.3724 98.5442 51.851 98.0627 51.851 97.4205V30.3199C51.851 24.5409 49.0589 19.2435 47.3039 17.6383Z",fill:"url(#paint3_linear_355_44054)"}),u.jsx("path",{d:"M65.6518 0.30099C64.7743 -0.10033 63.4979 -0.10033 62.6204 0.30099C58.4721 2.38785 51.8508 12.2603 51.8508 20.0459C51.8508 28.8749 51.8508 94.4505 51.8508 94.4505H64.1361H76.4214C76.4214 94.4505 76.4214 28.8749 76.4214 20.0459C76.3416 12.2603 69.8001 2.46811 65.6518 0.30099Z",fill:"url(#paint4_linear_355_44054)"}),u.jsx("path",{d:"M57.2756 28.9551H76.4215",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M51.8508 28.9551H54.1643",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M46.9047 31.2026H51.8507",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M41.4003 31.2026H43.5542",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M45.3892 45.0884H51.8509",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M86.4729 101.755H76.7404C76.501 101.755 76.3415 101.594 76.3415 101.353C76.3415 101.113 76.501 100.952 76.7404 100.952H86.4729C86.7122 100.952 86.8717 101.113 86.8717 101.353C86.792 101.594 86.6324 101.755 86.4729 101.755Z",fill:"url(#paint5_linear_355_44054)"}),u.jsx("path",{d:"M85.9945 99.427C86.2338 99.5875 86.4731 99.9086 86.4731 100.23V101.032H76.9002V100.23C76.9002 99.9086 77.0597 99.5875 77.299 99.427L78.5754 98.5441V95.0928H84.6383V98.6244L85.9945 99.427Z",fill:"url(#paint6_linear_355_44054)"}),u.jsx("path",{d:"M82.2451 17.6383C81.8462 17.3172 81.2878 17.3172 80.9687 17.6383C79.2137 19.1633 76.4215 24.5409 76.4215 30.2397V97.4205C76.4215 98.0627 76.9002 98.5442 77.5384 98.5442H81.6069H85.6754C86.3136 98.5442 86.7922 98.0627 86.7922 97.4205V30.3199C86.7922 24.5409 84.0001 19.2435 82.2451 17.6383Z",fill:"url(#paint7_linear_355_44054)"}),u.jsx("path",{d:"M80.5699 31.2026H86.8721",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M81.0486 45.0884H86.7923",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M76.3415 45.0884H78.5752",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("g",{filter:"url(#filter0_d_355_44054)",children:u.jsx("path",{d:"M57.0362 40.192L57.5149 38.2657L58.7913 37.9447L60.9452 37.4631L61.1845 37.3828L61.344 40.192L64.4552 86.3438L57.7542 95.6544L55.1216 95.1728L36.6139 91.9623C35.4971 91.8017 34.6196 90.7583 34.6196 89.6346V80.8858C34.6196 79.8424 35.0184 78.799 35.7364 78.0766L48.1812 65.3949C50.1756 63.308 51.6913 60.7396 52.4093 58.0106L55.0419 47.8974L57.0362 40.192Z",fill:"url(#paint8_linear_355_44054)"})}),u.jsx("g",{filter:"url(#filter1_d_355_44054)",children:u.jsx("path",{d:"M94.53 80.8858V89.6346C94.53 90.7583 93.7323 91.8017 92.5357 91.9623L78.6549 94.3702L71.3954 95.6544L64.6146 86.3438L67.9651 37.3828L68.2044 37.4631L70.3584 37.9447L71.6347 38.2657L76.2617 55.8435L76.8201 58.0106C77.5381 60.8199 78.974 63.3883 81.0481 65.3949L93.493 78.0766C94.1312 78.799 94.53 79.8424 94.53 80.8858Z",fill:"url(#paint9_linear_355_44054)"})}),u.jsx("g",{filter:"url(#filter2_d_355_44054)",children:u.jsx("path",{d:"M71.6351 35.6974V94.5308H57.2756V35.6974C57.2756 33.1289 57.8341 30.6407 58.8711 28.3131C59.1104 27.9118 59.27 27.4302 59.5093 27.0289L62.5408 21.9722C63.4183 20.5275 65.4126 20.5275 66.2902 21.9722L69.3216 27.0289C69.5609 27.4302 69.8002 27.9118 69.9598 28.3131C71.0766 30.6407 71.6351 33.2092 71.6351 35.6974Z",fill:"url(#paint10_linear_355_44054)"})}),u.jsx("path",{d:"M70.0396 28.3131C69.5609 27.5104 68.6834 27.0289 67.6464 27.0289H61.2644C60.3071 27.0289 59.4296 27.5104 58.8712 28.3131C59.1105 27.9118 59.27 27.4302 59.5094 27.0289L62.5408 21.9722C63.4183 20.5275 65.4127 20.5275 66.2902 21.9722L69.3216 27.0289C69.5609 27.4302 69.88 27.9118 70.0396 28.3131Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M68.1248 35.1354C68.1248 35.3762 67.8057 35.5367 67.6462 35.2959C67.2473 34.8144 66.6889 34.5736 65.9709 34.5736H62.8597C62.2215 34.5736 61.6631 34.8144 61.2642 35.2959C61.2642 35.2959 61.2642 35.2959 61.1844 35.3762C61.0249 35.617 60.7058 35.4565 60.7058 35.2157C60.7058 34.9749 60.7058 34.7341 60.7058 34.413C60.7058 33.2091 61.6631 32.3262 62.8597 32.3262H65.9709C66.0507 32.3262 66.1305 32.3262 66.2102 32.3262C66.5293 32.3262 66.7686 32.4867 67.0877 32.567C67.7259 32.9683 68.1248 33.6104 68.1248 34.413C68.1248 34.6538 68.1248 34.8946 68.1248 35.1354Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M60.7056 82.0098H58.9506C56.7967 82.0098 55.1214 83.7756 55.1214 85.8624V95.6546H64.6146V85.8624C64.5348 83.7756 62.7798 82.0098 60.7056 82.0098Z",fill:"url(#paint11_linear_355_44054)"}),u.jsx("path",{d:"M70.1193 82.0098H68.3642C66.2103 82.0098 64.5351 83.7756 64.5351 85.8624V95.6546H74.0282V85.8624C73.9485 83.7756 72.1934 82.0098 70.1193 82.0098Z",fill:"url(#paint12_linear_355_44054)"}),u.jsx("path",{d:"M69.4811 95.6543H59.5093L57.4352 97.0188C57.0363 97.3398 56.797 97.7412 56.797 98.303V99.6675H72.5126V98.3833C72.5126 97.8214 72.2732 97.3398 71.7946 97.099L69.4811 95.6543Z",fill:"url(#paint13_linear_355_44054)"}),u.jsx("path",{d:"M73.1505 100.31C73.1505 100.631 72.9112 100.952 72.5123 100.952H56.5574C56.2383 100.952 55.9192 100.711 55.9192 100.31C55.9192 99.989 56.1585 99.668 56.5574 99.668H72.5123C72.8314 99.668 73.1505 99.989 73.1505 100.31Z",fill:"url(#paint14_linear_355_44054)"}),u.jsx("rect",{x:"64.5083",y:"75",width:"2",height:"21",rx:"1",fill:"#DFDFDF"}),u.jsxs("defs",{children:[u.jsxs("filter",{id:"filter0_d_355_44054",x:"12.6196",y:"26.3828",width:"73.8357",height:"102.271",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44054"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44054",result:"shape"})]}),u.jsxs("filter",{id:"filter1_d_355_44054",x:"42.6146",y:"26.3828",width:"73.9154",height:"102.271",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44054"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44054",result:"shape"})]}),u.jsxs("filter",{id:"filter2_d_355_44054",x:"35.2756",y:"9.88867",width:"58.3594",height:"117.642",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44054"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44054",result:"shape"})]}),u.jsxs("linearGradient",{id:"paint0_linear_355_44054",x1:"71.8892",y1:"95.6543",x2:"57.2787",y2:"95.8535",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint1_linear_355_44054",x1:"51.5129",y1:"100.952",x2:"41.7417",y2:"101.398",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint2_linear_355_44054",x1:"51.0722",y1:"95.0928",x2:"42.1711",y2:"95.1427",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint3_linear_355_44054",x1:"51.4397",y1:"17.3976",x2:"41.7965",y2:"17.4019",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint4_linear_355_44054",x1:"75.4467",y1:"0.000197722",x2:"52.5998",y2:"0.0208906",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint5_linear_355_44054",x1:"86.454",y1:"100.952",x2:"76.6829",y2:"101.398",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint6_linear_355_44054",x1:"86.0934",y1:"95.0928",x2:"77.1923",y2:"95.1427",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint7_linear_355_44054",x1:"86.3809",y1:"17.3976",x2:"76.7377",y2:"17.4019",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint8_linear_355_44054",x1:"49.5277",y1:"36.0349",x2:"49.5277",y2:"96.2826",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint9_linear_355_44054",x1:"79.5626",y1:"36.0349",x2:"79.5626",y2:"96.2826",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint10_linear_355_44054",x1:"64.4507",y1:"19.1853",x2:"64.4507",y2:"95.3247",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint11_linear_355_44054",x1:"59.8649",y1:"81.6941",x2:"59.8649",y2:"95.8017",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint12_linear_355_44054",x1:"69.2786",y1:"81.6941",x2:"69.2786",y2:"95.8017",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint13_linear_355_44054",x1:"71.8892",y1:"95.6543",x2:"57.2787",y2:"95.8535",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint14_linear_355_44054",x1:"72.467",y1:"99.668",x2:"56.4793",y2:"100.415",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]})]})]}),lE=(()=>{const e=p.forwardRef(aE);return e.displayName="SvgIllustrationLaunch",e})(),cE=(e,t)=>u.jsxs("svg",{width:"143",height:"154",viewBox:"0 0 143 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[u.jsx("path",{d:"M60.2972 119.867C93.3732 119.867 120.187 93.1019 120.187 60.0849C120.187 27.0678 93.3732 0.302246 60.2972 0.302246C27.2211 0.302246 0.407715 27.0678 0.407715 60.0849C0.407715 93.1019 27.2211 119.867 60.2972 119.867Z",fill:"#F3F1ED"}),u.jsx("path",{d:"M31.679 85.172C30.9662 85.172 30.2863 85.03 29.6649 84.7735L29.2833 85.6979C27.7504 85.0651 26.5176 83.846 25.8749 82.3283L26.7958 81.9384C26.5342 81.3205 26.3895 80.6443 26.3895 79.9357V77.4544H25.3895V72.4917H26.3895V67.529H25.3895V62.5663H26.3895V57.6037H25.3895V52.641H26.3895V47.6783H25.3895V42.7157H26.3895V40.2343C26.3895 39.5257 26.5342 38.8495 26.7958 38.2316L25.8749 37.8417C26.5176 36.324 27.7504 35.1049 29.2833 34.4722L29.6649 35.3965C30.2863 35.14 30.9662 34.998 31.679 34.998H34.0966V33.998H38.9318V34.998H43.767V33.998H48.6022V34.998H53.4374V33.998H58.2726V34.998H63.1078V33.998H67.943V34.998H72.7782V33.998H77.6134V34.998H82.4487V33.998H87.2839V34.998H89.7015C90.4142 34.998 91.0942 35.14 91.7156 35.3965L92.0971 34.4722C93.63 35.1049 94.8629 36.324 95.5055 37.8417L94.5847 38.2316C94.8463 38.8495 94.9909 39.5257 94.9909 40.2343V42.7212H95.9909V47.6948H94.9909V52.6684H95.9909V57.6421H94.9909V62.6157H95.9909V67.5894H94.9909V72.5631H95.9909V77.5367H94.9909V80.0235C94.9909 80.7383 94.8492 81.4119 94.5933 82.0212L95.5153 82.4085C94.8806 83.9197 93.6532 85.1161 92.0944 85.7269L91.7296 84.7958C91.1131 85.0373 90.4302 85.172 89.7015 85.172H87.2839V86.172H82.4487V85.172H77.6134V86.172H72.7782V85.172H67.943V86.172H63.1078V85.172H58.2726V86.172H53.4374V85.172H48.6022V86.172H43.767V85.172H38.9318V86.172H34.0966V85.172H31.679Z",fill:"#EEECE6",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-dasharray":"5.01 5.01"}),u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M54.7164 65.4389C54.7164 64.7939 55.264 64.271 55.9394 64.271H66.5274C67.2029 64.271 67.7505 64.7939 67.7505 65.4389C67.7505 66.0839 67.2029 66.6068 66.5274 66.6068H55.9394C55.264 66.6068 54.7164 66.0839 54.7164 65.4389Z",fill:"#D2C8B1"}),u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M61.1886 51.7284C61.8641 51.7284 62.4117 52.2513 62.4117 52.8963V61.1168C62.4117 61.7618 61.8641 62.2847 61.1886 62.2847C60.5131 62.2847 59.9655 61.7618 59.9655 61.1168V52.8963C59.9655 52.2513 60.5131 51.7284 61.1886 51.7284Z",fill:"#D2C8B1"}),u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M60.3252 51.7304C60.7997 51.2784 61.5669 51.2754 62.0454 51.7235L67.3839 56.7236C67.8661 57.1753 67.8736 57.9147 67.4005 58.3752C66.9275 58.8357 66.1532 58.8428 65.6709 58.3912L61.1962 54.2L56.8032 58.3843C56.325 58.8398 55.5506 58.8389 55.0735 58.3822C54.5965 57.9255 54.5974 57.1861 55.0757 56.7305L60.3252 51.7304Z",fill:"#D2C8B1"}),u.jsx("g",{filter:"url(#filter0_d_355_44074)",children:u.jsx("path",{d:"M115.05 120.656H60.406C57.1524 120.656 54.4828 117.991 54.4828 114.743V77.0186C54.4828 73.7708 57.1524 71.106 60.406 71.106H115.05C118.304 71.106 120.973 73.7708 120.973 77.0186V114.743C120.973 117.991 118.304 120.656 115.05 120.656Z",fill:"url(#paint0_linear_355_44074)"})}),u.jsx("path",{d:"M120.29 107.6C121.273 107.6 122.059 108.387 122.059 109.37V120.778C122.059 123.335 120.094 125.302 117.539 125.302H110.07C109.284 125.302 108.498 125.105 108.105 124.515C106.336 122.942 102.601 119.795 101.815 118.615C101.619 118.221 101.422 118.025 101.422 117.631V115.074C101.422 113.501 102.601 112.321 104.174 112.321H105.156V117.238H105.746V107.01C105.746 106.027 106.532 105.24 107.515 105.24C108.498 105.24 109.284 106.027 109.284 107.01V108.977H109.873V106.42C109.873 105.437 110.66 104.65 111.642 104.65C112.625 104.65 113.411 105.437 113.411 106.42V108.977H114.197V107.6C114.197 106.617 114.984 105.83 115.966 105.83C116.949 105.83 117.735 106.617 117.735 107.6V108.977H118.521C118.718 108.19 119.308 107.6 120.29 107.6Z",fill:"white",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M92.1912 93.3411C93.3431 93.3411 94.2768 92.409 94.2768 91.2592C94.2768 90.1094 93.3431 89.1772 92.1912 89.1772C91.0393 89.1772 90.1055 90.1094 90.1055 91.2592C90.1055 92.409 91.0393 93.3411 92.1912 93.3411Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M92.5252 104.417H77.0079C76.0068 104.417 75.4229 103.251 76.0068 102.501L83.7655 91.6754C84.266 91.0092 85.2671 91.0092 85.7677 91.6754L93.5263 102.501C94.1103 103.334 93.5263 104.417 92.5252 104.417Z",fill:"#DFDFDF"}),u.jsx("path",{opacity:"0.7",d:"M97.8643 104.25H91.2736C90.2725 104.25 89.7719 103.168 90.2725 102.418L93.5261 97.838C94.0267 97.1718 94.9443 97.1718 95.4449 97.838L98.6985 102.418C99.4494 103.168 98.8654 104.25 97.8643 104.25Z",fill:"#D2C8B1"}),u.jsxs("defs",{children:[u.jsxs("filter",{id:"filter0_d_355_44074",x:"32.4828",y:"60.106",width:"110.491",height:"93.55",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44074"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44074",result:"shape"})]}),u.jsxs("linearGradient",{id:"paint0_linear_355_44074",x1:"87.7064",y1:"69.9598",x2:"87.7064",y2:"121.19",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]})]})]}),dE=(()=>{const e=p.forwardRef(cE);return e.displayName="SvgIllustrationUpload",e})(),uE=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 2.792a3.25 3.25 0 0 0-3.25 3.25v7.616l2.627 1.891a3.25 3.25 0 0 0 4.073-.221l4.096-3.687a4.75 4.75 0 0 1 5.953-.324l1.751 1.26v-2.535a.75.75 0 1 1 1.5 0v8a4.75 4.75 0 0 1-4.75 4.75H6a4.75 4.75 0 0 1-4.75-4.75v-12A4.75 4.75 0 0 1 6 1.292h8a.75.75 0 0 1 0 1.5H6ZM2.75 15.506v2.536A3.25 3.25 0 0 0 6 21.292h12a3.25 3.25 0 0 0 3.25-3.25v-3.616l-2.627-1.891a3.25 3.25 0 0 0-4.073.221l-4.096 3.687a4.75 4.75 0 0 1-5.953.324l-1.75-1.26ZM17.763 2.22a1.75 1.75 0 0 1 2.474 0l1.293 1.293a.75.75 0 1 1-1.06 1.06l-.72-.72v4.19a.75.75 0 0 1-1.5 0v-4.19l-.72.72a.75.75 0 0 1-1.06-1.06l1.293-1.293ZM8.5 6.792a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5Zm-3.25 1.75a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Z",clipRule:"evenodd"})}),fE=(()=>{const e=p.forwardRef(uE);return e.displayName="SvgImageUpload00",e})(),pE=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.349 2.628A.75.75 0 0 1 12 2.25h1.329c2.595 0 4.144 2.893 2.704 5.053l-.632.947h4.037a2.75 2.75 0 0 1 2.668 3.417l-1.62 6.485a4.75 4.75 0 0 1-4.61 3.598h-3.665a4.75 4.75 0 0 1-2.635-.798l-1.108-.738A2.75 2.75 0 0 1 6 21.75H4A2.75 2.75 0 0 1 1.25 19v-9A2.75 2.75 0 0 1 4 7.25h2c.859 0 1.626.394 2.13 1.01l3.219-5.632ZM8.75 10.266v8.199a.25.25 0 0 0 .111.208l1.547 1.031a3.25 3.25 0 0 0 1.803.546h3.666a3.25 3.25 0 0 0 3.153-2.462l1.621-6.485a1.25 1.25 0 0 0-1.213-1.553H14a.75.75 0 0 1-.624-1.166l1.409-2.113c.775-1.163-.059-2.721-1.456-2.721h-.894l-3.652 6.392a.25.25 0 0 0-.033.124ZM7.25 10c0-.69-.56-1.25-1.25-1.25H4c-.69 0-1.25.56-1.25 1.25v9c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25v-9Z",clipRule:"evenodd"})}),ah=(()=>{const e=p.forwardRef(pE);return e.displayName="SvgLike",e})(),hE=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.65 9.392a.75.75 0 0 1 0 1.06l-4.242 4.243a.75.75 0 0 1-1.06-1.06l4.242-4.243a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.136 5.907a3.964 3.964 0 0 0-5.606 0l-1.666 1.667a.75.75 0 1 1-1.061-1.06l1.666-1.668a5.464 5.464 0 0 1 7.728 7.728L17.53 14.24a.75.75 0 1 1-1.06-1.061l1.666-1.667a3.964 3.964 0 0 0 0-5.606ZM5.862 18.18a3.964 3.964 0 0 0 5.606 0l1.667-1.667a.75.75 0 0 1 1.06 1.06L12.53 19.24a5.464 5.464 0 1 1-7.727-7.727l1.666-1.667a.75.75 0 1 1 1.06 1.06l-1.666 1.667a3.964 3.964 0 0 0 0 5.607Z",clipRule:"evenodd"})]}),lh=(()=>{const e=p.forwardRef(hE);return e.displayName="SvgLink",e})(),gE=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M18.82 4.12a.75.75 0 0 1 1.133.976l-.072.084-.72.72a.75.75 0 0 1-1.134-.976l.073-.084.72-.72Zm-.737 8.966a.75.75 0 0 1 .977-.066l.084.073.76.77a.75.75 0 0 1-.984 1.127l-.084-.073-.76-.77a.75.75 0 0 1 .007-1.06ZM9.11 4.12a.75.75 0 0 1 .976-.073l.085.073.72.72a.75.75 0 0 1-.977 1.133L9.83 5.9l-.72-.72a.75.75 0 0 1 0-1.06Z"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m2.263 17.849 9.577-9.581a1.749 1.749 0 0 1 2.475 0l1.412 1.413a1.75 1.75 0 0 1 0 2.475l-9.577 9.58a1.749 1.749 0 0 1-2.475.001l-1.412-1.413a1.75 1.75 0 0 1 0-2.475Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",d:"M14.49 1.75a.75.75 0 0 1 .743.648l.007.102v1.02a.75.75 0 0 1-1.493.102l-.007-.102V2.5a.75.75 0 0 1 .75-.75Zm7.01 7.01a.75.75 0 0 1 .102 1.493l-.102.007h-1.02a.75.75 0 0 1-.102-1.493l.102-.007h1.02Z"})]}),ch=(()=>{const e=p.forwardRef(gE);return e.displayName="SvgMagicWandGenerativeCustom",e})(),mE=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.793a9.25 9.25 0 1 0 0 18.5 9.25 9.25 0 0 0 0-18.5Zm-10.75 9.25c0-5.937 4.813-10.75 10.75-10.75s10.75 4.813 10.75 10.75-4.813 10.75-10.75 10.75S1.25 17.98 1.25 12.043Zm7.391-3.359a.75.75 0 0 1 1.061 0L12 10.982l2.298-2.298a.75.75 0 0 1 1.06 1.06l-2.297 2.299 2.298 2.298a.75.75 0 1 1-1.06 1.06L12 13.105l-2.298 2.298a.75.75 0 0 1-1.06-1.06l2.297-2.3-2.298-2.297a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})}),vE=(()=>{const e=p.forwardRef(mE);return e.displayName="SvgMultiplyCircleEdu",e})(),bE=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.712 3.329a3.537 3.537 0 0 1 5.002 5.002L9.26 19.786a4.702 4.702 0 0 1-2.446 1.295l-3.673.699a.75.75 0 0 1-.877-.877l.7-3.673a4.702 4.702 0 0 1 1.294-2.446L15.712 3.33Zm3.941 1.06a2.037 2.037 0 0 0-2.88 0l-1.405 1.406 2.88 2.88 1.405-1.405a2.037 2.037 0 0 0 0-2.88Zm-2.465 5.347-2.881-2.88-8.99 8.99a3.202 3.202 0 0 0-.881 1.664l-.493 2.59 2.59-.493a3.202 3.202 0 0 0 1.665-.881l8.99-8.99Z",clipRule:"evenodd"})}),_E=(()=>{const e=p.forwardRef(bE);return e.displayName="SvgPencilEdu",e})(),xE=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 5.25a.75.75 0 0 1 .75.75v5.25H18a.75.75 0 0 1 0 1.5h-5.25V18a.75.75 0 0 1-1.5 0v-5.25H6a.75.75 0 0 1 0-1.5h5.25V6a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"})}),EE=(()=>{const e=p.forwardRef(xE);return e.displayName="SvgPlusAdd",e})(),wE=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.227 7.227a.75.75 0 0 1 1.061 0l3.713 3.713 3.712-3.712a.75.75 0 1 1 1.06 1.06l-3.712 3.713 3.712 3.712a.75.75 0 1 1-1.06 1.06L12 13.061l-3.713 3.712a.75.75 0 1 1-1.06-1.06L10.94 12 7.227 8.288a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})}),zd=(()=>{const e=p.forwardRef(wE);return e.displayName="SvgRemoveClose",e})(),yE=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.782 2.475A2.75 2.75 0 0 1 11.07 1.25h1.86c.92 0 1.778.46 2.288 1.225L16.4 4.25H21a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1 0-1.5h4.599l1.183-1.775Zm.62 1.775h5.197l-.63-.943a1.25 1.25 0 0 0-1.04-.557H11.07a1.25 1.25 0 0 0-1.04.557l-.629.943ZM5 7.25a.75.75 0 0 1 .75.75v10A3.25 3.25 0 0 0 9 21.25h6A3.25 3.25 0 0 0 18.25 18V8a.75.75 0 0 1 1.5 0v10A4.75 4.75 0 0 1 15 22.75H9A4.75 4.75 0 0 1 4.25 18V8A.75.75 0 0 1 5 7.25Zm5 3a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75Zm4 0a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"})}),Gd=(()=>{const e=p.forwardRef(yE);return e.displayName="SvgTrash",e})(),CE=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.47 6.573a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1-1.06 1.06l-1.72-1.72v10.19a.75.75 0 0 1-1.5 0V4.853l-1.72 1.72a.75.75 0 0 1-1.06 0Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 21.793a4.75 4.75 0 0 1-4.75-4.75v-4A4.75 4.75 0 0 1 7 8.293h.5a.75.75 0 0 1 0 1.5H7a3.25 3.25 0 0 0-3.25 3.25v4A3.25 3.25 0 0 0 7 20.293h10a3.25 3.25 0 0 0 3.25-3.25v-4A3.25 3.25 0 0 0 17 9.793h-.5a.75.75 0 0 1 0-1.5h.5a4.75 4.75 0 0 1 4.75 4.75v4a4.75 4.75 0 0 1-4.75 4.75H7Z",clipRule:"evenodd"})]}),TE=(()=>{const e=p.forwardRef(CE);return e.displayName="SvgUpload",e})(),Jn=p.forwardRef((e,t)=>{const{label:n,color:r="gray",variant:i="soft",fontWeight:s="semibold",closeIcon:l=!0,renderIcon:c,onCloseIconClicked:d,className:f,...m}=e;return u.jsxs("div",{ref:t,className:oe(_s.tag,_s[`tag--${r}-${i}`],f),...m,children:[c&&u.jsx("span",{className:_s["tag--icon-container"],children:c({width:Ga,height:Ga})}),u.jsx(Pi,{variant:"tag",fontWeight:s,className:_s["tag--label"],children:n}),l?u.jsx("button",{className:_s["tag-close"],onClick:d,children:u.jsx(zd,{width:Ga,height:Ga,className:"cursor-pointer"})}):null]})});Jn.displayName="Tag";const Hd=p.forwardRef((e,t)=>p.createElement(Re.span,ae({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),SE=Hd,[Ha,Rk]=zt("Tooltip",[_o]),Ud=_o(),IE="TooltipProvider",AE=700,Vd="tooltip.open",[OE,Wd]=Ha(IE),$E=e=>{const{__scopeTooltip:t,delayDuration:n=AE,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,[l,c]=p.useState(!0),d=p.useRef(!1),f=p.useRef(0);return p.useEffect(()=>{const m=f.current;return()=>window.clearTimeout(m)},[]),p.createElement(OE,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(f.current),c(!1)},[]),onClose:p.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:p.useCallback(m=>{d.current=m},[]),disableHoverableContent:i},s)},qd="Tooltip",[DE,Ua]=Ha(qd),ME=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:l,delayDuration:c}=e,d=Wd(qd,e.__scopeTooltip),f=Ud(t),[m,g]=p.useState(null),v=Xn(),b=p.useRef(0),E=l??d.disableHoverableContent,_=c??d.delayDuration,w=p.useRef(!1),[y=!1,T]=mn({prop:r,defaultProp:i,onChange:N=>{N?(d.onOpen(),document.dispatchEvent(new CustomEvent(Vd))):d.onClose(),s==null||s(N)}}),S=p.useMemo(()=>y?w.current?"delayed-open":"instant-open":"closed",[y]),O=p.useCallback(()=>{window.clearTimeout(b.current),w.current=!1,T(!0)},[T]),I=p.useCallback(()=>{window.clearTimeout(b.current),T(!1)},[T]),M=p.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{w.current=!0,T(!0)},_)},[_,T]);return p.useEffect(()=>()=>window.clearTimeout(b.current),[]),p.createElement(gd,f,p.createElement(DE,{scope:t,contentId:v,open:y,stateAttribute:S,trigger:m,onTriggerChange:g,onTriggerEnter:p.useCallback(()=>{d.isOpenDelayed?M():O()},[d.isOpenDelayed,M,O]),onTriggerLeave:p.useCallback(()=>{E?I():window.clearTimeout(b.current)},[I,E]),onOpen:O,onClose:I,disableHoverableContent:E},n))},dh="TooltipTrigger",uh=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Ua(dh,n),s=Wd(dh,n),l=Ud(n),c=p.useRef(null),d=et(t,c,i.onTriggerChange),f=p.useRef(!1),m=p.useRef(!1),g=p.useCallback(()=>f.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),p.createElement(md,ae({asChild:!0},l),p.createElement(Re.button,ae({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:d,onPointerMove:Ee(e.onPointerMove,v=>{v.pointerType!=="touch"&&!m.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:Ee(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:Ee(e.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Ee(e.onFocus,()=>{f.current||i.onOpen()}),onBlur:Ee(e.onBlur,i.onClose),onClick:Ee(e.onClick,i.onClose)})))}),PE="TooltipPortal",[Lk,NE]=Ha(PE,{forceMount:void 0}),xs="TooltipContent",RE=p.forwardRef((e,t)=>{const n=NE(xs,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,l=Ua(xs,e.__scopeTooltip);return p.createElement(sn,{present:r||l.open},l.disableHoverableContent?p.createElement(fh,ae({side:i},s,{ref:t})):p.createElement(LE,ae({side:i},s,{ref:t})))}),LE=p.forwardRef((e,t)=>{const n=Ua(xs,e.__scopeTooltip),r=Wd(xs,e.__scopeTooltip),i=p.useRef(null),s=et(t,i),[l,c]=p.useState(null),{trigger:d,onClose:f}=n,m=i.current,{onPointerInTransitChange:g}=r,v=p.useCallback(()=>{c(null),g(!1)},[g]),b=p.useCallback((E,_)=>{const w=E.currentTarget,y={x:E.clientX,y:E.clientY},T=kE(y,w.getBoundingClientRect()),S=FE(y,T),O=BE(_.getBoundingClientRect()),I=GE([...S,...O]);c(I),g(!0)},[g]);return p.useEffect(()=>()=>v(),[v]),p.useEffect(()=>{if(d&&m){const E=w=>b(w,m),_=w=>b(w,d);return d.addEventListener("pointerleave",E),m.addEventListener("pointerleave",_),()=>{d.removeEventListener("pointerleave",E),m.removeEventListener("pointerleave",_)}}},[d,m,b,v]),p.useEffect(()=>{if(l){const E=_=>{const w=_.target,y={x:_.clientX,y:_.clientY},T=(d==null?void 0:d.contains(w))||(m==null?void 0:m.contains(w)),S=!zE(y,l);T?v():S&&(v(),f())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[d,m,l,f,v]),p.createElement(fh,ae({},e,{ref:s}))}),[jE,jk]=Ha(qd,{isInside:!1}),fh=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=e,d=Ua(xs,n),f=Ud(n),{onClose:m}=d;return p.useEffect(()=>(document.addEventListener(Vd,m),()=>document.removeEventListener(Vd,m)),[m]),p.useEffect(()=>{if(d.trigger){const g=v=>{const b=v.target;b!=null&&b.contains(d.trigger)&&m()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[d.trigger,m]),p.createElement(us,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:g=>g.preventDefault(),onDismiss:m},p.createElement(vd,ae({"data-state":d.stateAttribute},f,c,{ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),p.createElement(wp,null,r),p.createElement(jE,{scope:n,isInside:!0},p.createElement(SE,{id:d.contentId,role:"tooltip"},i||r))))});function kE(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function FE(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function BE(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function zE(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const c=t[s].x,d=t[s].y,f=t[l].x,m=t[l].y;d>r!=m>r&&n<(f-c)*(r-d)/(m-d)+c&&(i=!i)}return i}function GE(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),HE(t)}function HE(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(i.y-l.y)>=(s.y-l.y)*(i.x-l.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],l=n[n.length-2];if((s.x-l.x)*(i.y-l.y)>=(s.y-l.y)*(i.x-l.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const UE=$E,VE=ME,WE=uh,Yd=RE,Mn={"tooltip--container":"_tooltip--container_1i4jw_1","tooltip--dark":"_tooltip--dark_1i4jw_18","tooltip--image-preview":"_tooltip--image-preview_1i4jw_52","tooltip--image":"_tooltip--image_1i4jw_52","tooltip--title":"_tooltip--title_1i4jw_69","tooltip--suggestion":"_tooltip--suggestion_1i4jw_74","tooltip--description":"_tooltip--description_1i4jw_79","tooltip--feedback-container":"_tooltip--feedback-container_1i4jw_84","tooltip--feedback":"_tooltip--feedback_1i4jw_84","tooltip--feedback-icon":"_tooltip--feedback-icon_1i4jw_103"},Ni=p.forwardRef(({title:e,suggestion:t,description:n,image:r,imageAlt:i,feedbackOptions:s,isDark:l,sideOffset:c=8,children:d,className:f,...m},g)=>u.jsx(Yd,{ref:g,sideOffset:c,className:oe(Mn["tooltip--container"],l&&Mn["tooltip--dark"],f),...m,children:d||u.jsxs("div",{children:[r&&u.jsx("div",{className:Mn["tooltip--image-preview"],children:u.jsx("img",{src:r,alt:i||"preview",className:Mn["tooltip--image"]})}),e&&(typeof e=="string"?u.jsx(He,{size:"md",fontWeight:"bold",color:l?"white-alpha-1000":"gray-1000",className:Mn["tooltip--title"],children:e}):e),t&&(typeof t=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-700",className:Mn["tooltip--suggestion"],children:t}):t),n&&(typeof n=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-800",className:Mn["tooltip--description"],children:n}):n),s&&u.jsxs("div",{className:Mn["tooltip--feedback-container"],children:[u.jsxs("div",{className:Mn["tooltip--feedback"],onClick:()=>s.onClick(!0),children:[u.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-800",children:s.positiveLabel}),u.jsx("div",{className:Mn["tooltip--feedback-icon"],children:u.jsx(_7,{className:"text--gray-700"})})]}),u.jsxs("div",{className:Mn["tooltip--feedback"],onClick:()=>s.onClick(!1),children:[u.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-800",children:s.negativeLabel}),u.jsx("div",{className:Mn["tooltip--feedback-icon"],children:u.jsx(s7,{className:"text--gray-700"})})]})]})]})}));Ni.displayName=Yd.displayName;const Io=({children:e,providerProps:t,rootProps:n})=>u.jsx(UE,{...t,children:u.jsx(VE,{...n,children:e})}),Ri=p.forwardRef(({children:e,...t},n)=>u.jsx(WE,{ref:n,asChild:!0,...t,children:e}));Ri.displayName=uh.displayName;const ph="Popover",[hh,kk]=zt(ph,[_o]),Zd=_o(),[qE,Li]=hh(ph),YE=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:l=!1}=e,c=Zd(t),d=p.useRef(null),[f,m]=p.useState(!1),[g=!1,v]=mn({prop:r,defaultProp:i,onChange:s});return p.createElement(gd,c,p.createElement(qE,{scope:t,contentId:Xn(),triggerRef:d,open:g,onOpenChange:v,onOpenToggle:p.useCallback(()=>v(b=>!b),[v]),hasCustomAnchor:f,onCustomAnchorAdd:p.useCallback(()=>m(!0),[]),onCustomAnchorRemove:p.useCallback(()=>m(!1),[]),modal:l},n))},ZE="PopoverTrigger",XE=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Li(ZE,n),s=Zd(n),l=et(t,i.triggerRef),c=p.createElement(Re.button,ae({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":vh(i.open)},r,{ref:l,onClick:Ee(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?c:p.createElement(md,ae({asChild:!0},s),c)}),gh="PopoverPortal",[KE,QE]=hh(gh,{forceMount:void 0}),JE=e=>{const{__scopePopover:t,forceMount:n,children:r,container:i}=e,s=Li(gh,t);return p.createElement(KE,{scope:t,forceMount:n},p.createElement(sn,{present:n||s.open},p.createElement(Aa,{asChild:!0,container:i},r)))},Es="PopoverContent",ew=p.forwardRef((e,t)=>{const n=QE(Es,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,s=Li(Es,e.__scopePopover);return p.createElement(sn,{present:r||s.open},s.modal?p.createElement(tw,ae({},i,{ref:t})):p.createElement(nw,ae({},i,{ref:t})))}),tw=p.forwardRef((e,t)=>{const n=Li(Es,e.__scopePopover),r=p.useRef(null),i=et(t,r),s=p.useRef(!1);return p.useEffect(()=>{const l=r.current;if(l)return Cd(l)},[]),p.createElement(La,{as:Ii,allowPinchZoom:!0},p.createElement(mh,ae({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),s.current||(c=n.triggerRef.current)===null||c===void 0||c.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,f=c.button===2||d;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:Ee(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})))}),nw=p.forwardRef((e,t)=>{const n=Li(Es,e.__scopePopover),r=p.useRef(!1),i=p.useRef(!1);return p.createElement(mh,ae({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l;if((l=e.onCloseAutoFocus)===null||l===void 0||l.call(e,s),!s.defaultPrevented){var c;r.current||(c=n.triggerRef.current)===null||c===void 0||c.focus(),s.preventDefault()}r.current=!1,i.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)===null||l===void 0||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const d=s.target;((c=n.triggerRef.current)===null||c===void 0?void 0:c.contains(d))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}}))}),mh=p.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,...g}=e,v=Li(Es,n),b=Zd(n);return od(),p.createElement(ld,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s},p.createElement(us,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:m,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onDismiss:()=>v.onOpenChange(!1)},p.createElement(vd,ae({"data-state":vh(v.open),role:"dialog",id:v.contentId},b,g,{ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}),rw="PopoverClose",iw=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Li(rw,n);return p.createElement(Re.button,ae({type:"button"},r,{ref:t,onClick:Ee(e.onClick,()=>i.onOpenChange(!1))}))});function vh(e){return e?"open":"closed"}const ws=YE,ys=XE,ow=JE,Cs=ew,sw=iw,er={"atom-top-ai-dropdown":"_atom-top-ai-dropdown_1f7wa_1","atom-top-ai-dropdown--text-field":"_atom-top-ai-dropdown--text-field_1f7wa_9","atom-top-ai-dropdown--container":"_atom-top-ai-dropdown--container_1f7wa_15","atom-top-ai-dropdown--text-container":"_atom-top-ai-dropdown--text-container_1f7wa_28","atom-top-ai-dropdown--selected-answer":"_atom-top-ai-dropdown--selected-answer_1f7wa_33","atom-top-ai-dropdown--popover-content":"_atom-top-ai-dropdown--popover-content_1f7wa_37","atom-top-ai-dropdown--popover-content--input":"_atom-top-ai-dropdown--popover-content--input_1f7wa_50","atom-top-ai-dropdown--popover-content--icons":"_atom-top-ai-dropdown--popover-content--icons_1f7wa_54"};function aw({value:e,tooltip:t,selectAnswer:n}){const[r,i]=p.useState(!1),s=p.useRef(null),l=p.useCallback(()=>{var m;let f=((m=s.current)==null?void 0:m.value)??"";f=f.startsWith("http://")||f.startsWith("https://")||f.startsWith("mailto:")||f.startsWith("{{")?f:"https://"+f,n({url:f})},[]),c=p.useCallback(()=>{i(!1)},[]),d=p.useCallback(f=>{f.key==="Enter"&&l(),f.key==="Escape"&&c()},[l,c]);return u.jsxs(ws,{open:r,onOpenChange:i,children:[u.jsx(ys,{asChild:!0,children:u.jsx("span",{children:u.jsxs(Io,{rootProps:{open:t?void 0:!1},children:[u.jsx(Ri,{children:u.jsx(st,{color:"sand",variant:"outlined",size:"sm",children:u.jsx(ha,{className:"text--gray-700"})})}),u.jsx(Ni,{isDark:!0,description:t})]})})}),u.jsxs(Cs,{side:"top",sideOffset:8,className:er["atom-top-ai-dropdown--popover-content"],children:[u.jsx(ln,{ref:s,autoFocus:!0,placeholder:"https://",className:er["atom-top-ai-dropdown--popover-content--input"],onKeyDown:d,defaultValue:e}),u.jsxs("div",{className:er["atom-top-ai-dropdown--popover-content--icons"],children:[u.jsx(st,{color:"primary",size:"sm",variant:"ghost",onClick:l,"aria-label":"Confirm",children:u.jsx(Fc,{color:"var(--color-green-600)"})}),u.jsx(st,{color:"primary",size:"sm",variant:"ghost",onClick:c,"aria-label":"Cancel",children:u.jsx(Gc,{color:"var(--color-red-600)"})})]})]})]})}function lw({value:e,tooltip:t,selectAnswer:n}){const[r,i]=p.useState(!1),s=p.useRef(null),l=p.useCallback(()=>{var f;const d=((f=s.current)==null?void 0:f.value)??"";n({url:d?`tel: ${d}`:""})},[]),c=p.useCallback(()=>{i(!1)},[]);return u.jsxs(ws,{open:r,onOpenChange:i,children:[u.jsx(ys,{asChild:!0,children:u.jsx("span",{children:u.jsxs(Io,{rootProps:{open:t?void 0:!1},children:[u.jsx(Ri,{children:u.jsx(st,{color:"sand",variant:"outlined",size:"sm",children:u.jsx(fa,{className:"text--gray-700"})})}),u.jsx(Ni,{isDark:!0,description:t})]})})}),u.jsxs(Cs,{side:"top",sideOffset:8,className:er["atom-top-ai-dropdown--popover-content"],children:[u.jsx(ln,{ref:s,autoFocus:!0,placeholder:"+39",className:er["atom-top-ai-dropdown--popover-content--input"],defaultValue:e==null?void 0:e.replace(/tel:\s*/,"")}),u.jsxs("div",{className:er["atom-top-ai-dropdown--popover-content--icons"],children:[u.jsx(st,{color:"primary",size:"sm",variant:"ghost",onClick:l,"aria-label":"Confirm",children:u.jsx(Fc,{color:"var(--color-green-600)"})}),u.jsx(st,{color:"primary",size:"sm",variant:"ghost",onClick:c,"aria-label":"Cancel",children:u.jsx(Gc,{color:"var(--color-red-600)"})})]})]})]})}function cw(e){return e==="url"?u.jsx(ha,{}):e==="phone"?u.jsx(fa,{}):null}function dw(e,t){return e==="variable"?u.jsxs(u.Fragment,{children:[u.jsx("b",{children:"{{ "}),t,u.jsx("b",{children:" }}"})]}):t}function uw({type:e,label:t,onRemove:n}){const r=cw(e);return u.jsx(Jn,{renderIcon:r?()=>r:null,label:dw(e,t),onCloseIconClicked:n})}const bh=p.forwardRef(({currentValue:e,showPhoneButton:t,phoneTooltip:n,showUrlButton:r,urlTooltip:i,selectedAnswer:s,selectAnswer:l,onRemove:c,...d},f)=>u.jsx("div",{className:er["atom-top-ai-dropdown"],children:u.jsxs("div",{ref:f,className:er["atom-top-ai-dropdown--container"],children:[e?u.jsx("div",{className:er["atom-top-ai-dropdown--selected-answer"],children:u.jsx(uw,{...e,onRemove:c})}):u.jsx(ln,{...d,contentClassName:er["atom-top-ai-dropdown--text-field"],className:er["atom-top-ai-dropdown--text-container"],size:"sm",placeholder:"Search"}),r&&u.jsx(aw,{value:(e==null?void 0:e.type)==="url"?e==null?void 0:e.label:void 0,tooltip:i,selectAnswer:l}),t&&u.jsx(lw,{value:(e==null?void 0:e.type)==="phone"?e==null?void 0:e.label:void 0,tooltip:n,selectAnswer:l})]})}));bh.displayName="AtomTopAiDropdown";const _h={"atom-head-item-ai-dropdown":"_atom-head-item-ai-dropdown_10v1a_1","atom-head-item-ai-dropdown--header":"_atom-head-item-ai-dropdown--header_10v1a_7"},Xd=p.forwardRef((e,t)=>{const{label:n,onNew:r}=e;return u.jsx("div",{ref:t,className:_h["atom-head-item-ai-dropdown"],children:u.jsxs("div",{className:_h["atom-head-item-ai-dropdown--header"],children:[u.jsx(ye,{fontWeight:"bold",size:"xs",children:n}),u.jsx(gt,{variant:"text",color:"primary",size:"sm",startIcon:u.jsx(D7,{}),onClick:r,children:"New"})]})})});Xd.displayName="AtomHeadItemAiDropdown";const tr={"atom-item-ai-dropdown--root":"_atom-item-ai-dropdown--root_1wqx4_1","atom-item-ai-dropdown--trigger":"_atom-item-ai-dropdown--trigger_1wqx4_14","atom-item-ai-dropdown--header":"_atom-item-ai-dropdown--header_1wqx4_35","atom-item-ai-dropdown--icon":"_atom-item-ai-dropdown--icon_1wqx4_39","atom-item-ai-dropdown--label":"_atom-item-ai-dropdown--label_1wqx4_56","atom-item-ai-dropdown--icon-closed":"_atom-item-ai-dropdown--icon-closed_1wqx4_60","atom-item-ai-dropdown--icon-opened":"_atom-item-ai-dropdown--icon-opened_1wqx4_61","atom-item-ai-dropdown--content":"_atom-item-ai-dropdown--content_1wqx4_65"},Ts={"atom-item-tag-ai-dropdown--container":"_atom-item-tag-ai-dropdown--container_4lwl5_1","atom-item-tag-ai-dropdown--content":"_atom-item-tag-ai-dropdown--content_4lwl5_9","atom-item-tag-ai-dropdown--add-button":"_atom-item-tag-ai-dropdown--add-button_4lwl5_16","atom-item-tag-ai-dropdown--answers":"_atom-item-tag-ai-dropdown--answers_4lwl5_20","atom-item-tag-ai-dropdown--tag":"_atom-item-tag-ai-dropdown--tag_4lwl5_26"},fw=p.forwardRef(({id:e,label:t,selectAnswer:n},r)=>{const i=p.useCallback(()=>{n==null||n({intentId:e})},[e]);return u.jsx(Jn,{ref:r,label:t,closeIcon:!1,color:"sand",className:Ts["atom-item-tag-ai-dropdown--tag"],onClick:i},e)}),xh=p.forwardRef(({answers:e,onAdd:t,selectAnswer:n},r)=>u.jsx("div",{ref:r,className:Ts["atom-item-tag-ai-dropdown--container"],children:u.jsx("div",{className:Ts["atom-item-tag-ai-dropdown--content"],children:u.jsxs("div",{className:Ts["atom-item-tag-ai-dropdown--answers"],children:[u.jsx(st,{variant:"outlined",color:"sand",size:"sm",onClick:t,className:Ts["atom-item-tag-ai-dropdown--add-button"],children:u.jsx(EE,{color:"text--gray-700"})}),e==null?void 0:e.map(i=>u.jsx(fw,{...i,selectAnswer:n},i==null?void 0:i.id))]})})}));xh.displayName="AtomItemTagAiDropdown";const Kd=p.forwardRef(({answers:e,...t},n)=>e?u.jsx(wh,{ref:n,...t,answers:e}):u.jsx(Eh,{ref:n,...t}));Kd.displayName="AtomItemAiDropdown";const Eh=p.forwardRef(({id:e,label:t,fontWeight:n,selectAnswer:r},i)=>{const s=p.useCallback(()=>{r==null||r({intentId:e})},[e]);return u.jsx("div",{ref:i,className:tr["atom-item-ai-dropdown--trigger"],onClick:s,children:u.jsx("span",{className:tr["atom-item-ai-dropdown--label"],children:typeof t=="string"?u.jsx(ye,{size:"sm",fontWeight:n,color:"gray-1000",children:t}):t})})});Eh.displayName="AtomItemSingleAiDropdown";const wh=p.forwardRef(({id:e,draft:t,path:n,label:r,answers:i,fontWeight:s="regular",className:l,contentClassname:c,onNewAnswer:d,selectAnswer:f,hasSearch:m},g)=>{const v=p.useCallback(()=>{d==null||d(t,n)},[d,t,n]),[b,E]=p.useState([]);return p.useEffect(()=>{E(m?[e]:[])},[m,e]),u.jsx(Qc,{type:"multiple",className:oe(tr["atom-item-ai-dropdown--root"],l),value:b,onValueChange:E,children:u.jsxs(Jc,{value:e,children:[u.jsx(ed,{className:tr["atom-item-ai-dropdown--header"],children:u.jsx(td,{asChild:!0,children:u.jsxs("div",{className:tr["atom-item-ai-dropdown--trigger"],children:[u.jsxs(st,{variant:"ghost",color:"primary",size:"xs",children:[u.jsx(g7,{className:oe(tr["atom-item-ai-dropdown--icon"],tr["atom-item-ai-dropdown--icon-opened"]),"aria-hidden":!0}),u.jsx(p7,{className:oe(tr["atom-item-ai-dropdown--icon"],tr["atom-item-ai-dropdown--icon-closed"]),"aria-hidden":!0})]}),u.jsx("span",{className:tr["atom-item-ai-dropdown--label"],children:typeof r=="string"?u.jsx(ye,{size:"sm",fontWeight:s,color:"gray-1000",children:r}):r})]})})}),u.jsx(nd,{ref:g,className:oe(tr["atom-item-ai-dropdown--content"],c),children:u.jsx(xh,{answers:i,selectAnswer:f,onAdd:v})})]})})});wh.displayName="AtomItemFolderAiDropdown";const Qd={"atom-sub-ai-dropdown--trigger":"_atom-sub-ai-dropdown--trigger_j4p1d_1","atom-sub-ai-dropdown--label":"_atom-sub-ai-dropdown--label_j4p1d_26","atom-sub-ai-dropdown--chevron":"_atom-sub-ai-dropdown--chevron_j4p1d_33"},yh=p.forwardRef(({label:e,closeDelay:t=300,size:n="sm",fontWeight:r="bold",color:i="gray-1000",children:s},l)=>{const[c,d]=p.useState(!1),f=p.useRef(),m=()=>{f.current=setTimeout(()=>{d(!1)},t)},g=()=>{f.current&&clearTimeout(f.current),d(!0)};return u.jsxs(ws,{open:c,children:[u.jsx(ys,{asChild:!0,children:u.jsx("div",{ref:l,className:Qd["atom-sub-ai-dropdown--trigger"],onMouseEnter:g,onMouseLeave:m,children:u.jsxs("div",{className:Qd["atom-sub-ai-dropdown--label"],children:[u.jsx(ye,{size:n,fontWeight:r,color:i,children:e}),u.jsx(pa,{className:Qd["atom-sub-ai-dropdown--chevron"]})]})})}),u.jsx(Cs,{side:"right",sideOffset:8,align:"start",alignOffset:-10,onMouseEnter:g,onMouseLeave:m,children:s})]})});yh.displayName="AtomItemAiDropdown";const nr={"ai-dropdown":"_ai-dropdown_wbkpw_1",header:"_header_wbkpw_14","main-container":"_main-container_wbkpw_21",container:"_container_wbkpw_26","inner-container":"_inner-container_wbkpw_27",open:"_open_wbkpw_34",url:"_url_wbkpw_38","url-full":"_url-full_wbkpw_45",trigger:"_trigger_wbkpw_49"},pw=({type:e,label:t})=>{if(e==="url"||e==="phone"){const n=(t==null?void 0:t.replace(/tel:\s*/,""))??"";return u.jsxs(Io,{children:[u.jsx(Ri,{children:u.jsx(Jn,{color:"sand",renderIcon:()=>t!=null&&t.includes("tel:")?u.jsx(fa,{}):u.jsx(S7,{}),label:(n==null?void 0:n.length)>26?`${n==null?void 0:n.slice(0,23)}...`:n,closeIcon:!1})}),u.jsx(Ni,{isDark:!0,description:u.jsxs("a",{className:nr.url,href:t,target:"_blank",rel:"noreferrer",children:[t!=null&&t.includes("tel:")?u.jsx(fa,{}):u.jsx(ha,{}),u.jsx("span",{className:oe(nr["url-full"],"clamp-1"),children:n})]})})]})}return e==="variable"?u.jsx(Jn,{color:"sand",renderIcon:null,label:u.jsxs(u.Fragment,{children:[u.jsx("b",{children:"{{ "}),t,u.jsx("b",{children:" }}"})]}),closeIcon:!1}):u.jsx(Jn,{color:"sand",renderIcon:null,label:t,closeIcon:!1})};function Ch(){return u.jsx(ye,{size:"sm",color:"gray-900",children:"No contents yet"})}function Th({currentValue:e,showPhoneButton:t,phoneTooltip:n,showUrlButton:r,urlTooltip:i,showVariables:s,selectAnswer:l,liveAnswers:c,draftAnswers:d,onNewLive:f,onNewDraft:m,onNewAnswer:g,variablesContent:v,searchProps:b,hasSearch:E,closeDelay:_}){const w=p.useCallback(()=>{l(null)},[l]);return u.jsxs("div",{className:nr["ai-dropdown"],children:[u.jsxs("div",{className:nr.header,children:[u.jsx(bh,{currentValue:e,showPhoneButton:t,phoneTooltip:n,showUrlButton:r,urlTooltip:i,selectAnswer:l,onRemove:w,...b}),s?u.jsx(yh,{closeDelay:_,label:"Variables",children:v}):null]}),u.jsx(gr,{className:"",color:"gray-300",horizontalMargin:!1,variant:"default",verticalMargin:"sm"}),u.jsxs(Fd,{className:nr["main-container"],children:[u.jsxs("div",{className:nr.container,children:[u.jsx(Xd,{label:"LIVE",onNew:f}),u.jsx("div",{className:nr["inner-container"],children:(c==null?void 0:c.length)>0?c.map(y=>u.jsx(Kd,{...y,onNewAnswer:g,selectAnswer:l,hasSearch:E},y==null?void 0:y.id)):u.jsx(Ch,{})})]}),u.jsx(gr,{className:"",color:"gray-300",horizontalMargin:!1,variant:"default",verticalMargin:"lg"}),u.jsxs("div",{className:nr.container,children:[u.jsx(Xd,{label:"DRAFT",onNew:m}),u.jsx("div",{className:nr["inner-container"],children:(d==null?void 0:d.length)>0?d==null?void 0:d.map(y=>u.jsx(Kd,{...y,onNewAnswer:g,selectAnswer:l,hasSearch:E},y==null?void 0:y.id)):u.jsx(Ch,{})})]})]})]})}const Ao=p.forwardRef(({disabled:e,align:t="start",onOpenChange:n,label:r="Choose Agent",broken:i=!1,liveAnswers:s,draftAnswers:l,onNewLive:c,onNewDraft:d,onNewAnswer:f,variablesContent:m,currentValue:g,showPhoneButton:v=!0,phoneTooltip:b="You can connect a phone number",showUrlButton:E=!0,urlTooltip:_="You can connect any link",showVariables:w=!0,selectAnswer:y,searchProps:T,hasSearch:S=!1,closeDelay:O},I)=>{const[M,N]=p.useState(!1),D=p.useCallback(()=>{N(!1)},[]);p.useImperativeHandle(I,()=>({close:D}));const k=p.useCallback(L=>{N(L),n==null||n(L)},[n]),Y=p.useCallback(L=>{y==null||y(L),(L==null?void 0:L.id)!==-1&&N(!1)},[y]);return u.jsxs(Pd,{open:M,onOpenChange:k,children:[u.jsx(Nd,{asChild:!0,disabled:e,children:g?u.jsx("button",{className:nr.trigger,children:u.jsx(pw,{...g})}):u.jsx(gt,{size:"sm",color:i?"red":"sand",className:oe(M&&nr.open),startIcon:i?u.jsx(W7,{}):null,endIcon:M?u.jsx(ih,{}):u.jsx(rh,{}),children:i?"Missing Connection":r})}),u.jsx(Rd,{align:t,sideOffset:5,children:u.jsx(Th,{liveAnswers:s,draftAnswers:l,onNewLive:c,onNewDraft:d,onNewAnswer:f,variablesContent:m,currentValue:g,showPhoneButton:v,phoneTooltip:b,showUrlButton:E,urlTooltip:_,showVariables:w,selectAnswer:Y,searchProps:T,hasSearch:S,closeDelay:O})})]})});Ao.displayName="AiDropdown";const ji={"document-dropdown":"_document-dropdown_b7676_1",header:"_header_b7676_19","cta-container":"_cta-container_b7676_26","tags-container":"_tags-container_b7676_47","variables-container":"_variables-container_b7676_56","empty-container":"_empty-container_b7676_72","apply-cta":"_apply-cta_b7676_80"},Va={"atom-top-document-dropdown":"_atom-top-document-dropdown_10rle_1","atom-top-document-dropdown--text-field":"_atom-top-document-dropdown--text-field_10rle_9","atom-top-document-dropdown--container":"_atom-top-document-dropdown--container_10rle_16","atom-top-document-dropdown--text-container":"_atom-top-document-dropdown--text-container_10rle_28"},Sh=p.forwardRef(({...e},t)=>u.jsx("div",{className:Va["atom-top-document-dropdown"],children:u.jsx("div",{ref:t,className:Va["atom-top-document-dropdown--container"],children:u.jsx(ln,{...e,leftIcon:u.jsx(R7,{}),contentClassName:Va["atom-top-document-dropdown--text-field"],className:Va["atom-top-document-dropdown--text-container"],placeholder:"Search"})})}));Sh.displayName="AtomTopDocumentDropdown";const Jd={"atom-sub-document-dropdown--trigger":"_atom-sub-document-dropdown--trigger_1klrd_1","atom-sub-document-dropdown--label":"_atom-sub-document-dropdown--label_1klrd_26","atom-sub-document-dropdown--chevron":"_atom-sub-document-dropdown--chevron_1klrd_33"},Ih=p.forwardRef(({label:e,closeDelay:t=300,size:n="sm",fontWeight:r="bold",color:i="gray-1000",children:s},l)=>{const[c,d]=p.useState(!1),f=p.useRef(),m=()=>{f.current=setTimeout(()=>{d(!1)},t)},g=()=>{f.current&&clearTimeout(f.current),d(!0)};return u.jsxs(ws,{open:c,children:[u.jsx(ys,{asChild:!0,children:u.jsx("div",{ref:l,className:Jd["atom-sub-document-dropdown--trigger"],onMouseEnter:g,onMouseLeave:m,children:u.jsxs("div",{className:Jd["atom-sub-document-dropdown--label"],children:[u.jsx(ye,{size:n,fontWeight:r,color:i,children:e}),u.jsx(pa,{className:Jd["atom-sub-document-dropdown--chevron"]})]})})}),u.jsx(Cs,{side:"right",sideOffset:8,align:"start",alignOffset:-10,onMouseEnter:g,onMouseLeave:m,children:s})]})});Ih.displayName="AtomItemDocumentDropdown";const hw={"atom-item-document-dropdown--trigger":"_atom-item-document-dropdown--trigger_1ttij_1"};function eu(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const Ah="Checkbox",[gw,Vk]=zt(Ah),[mw,vw]=gw(Ah),bw=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:s,required:l,disabled:c,value:d="on",onCheckedChange:f,...m}=e,[g,v]=p.useState(null),b=et(t,S=>v(S)),E=p.useRef(!1),_=g?!!g.closest("form"):!0,[w=!1,y]=mn({prop:i,defaultProp:s,onChange:f}),T=p.useRef(w);return p.useEffect(()=>{const S=g==null?void 0:g.form;if(S){const O=()=>y(T.current);return S.addEventListener("reset",O),()=>S.removeEventListener("reset",O)}},[g,y]),p.createElement(mw,{scope:n,state:w,disabled:c},p.createElement(Re.button,ae({type:"button",role:"checkbox","aria-checked":ki(w)?"mixed":w,"aria-required":l,"data-state":Oh(w),"data-disabled":c?"":void 0,disabled:c,value:d},m,{ref:b,onKeyDown:Ee(e.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:Ee(e.onClick,S=>{y(O=>ki(O)?!0:!O),_&&(E.current=S.isPropagationStopped(),E.current||S.stopPropagation())})})),_&&p.createElement(Ew,{control:g,bubbles:!E.current,name:r,value:d,checked:w,required:l,disabled:c,style:{transform:"translateX(-100%)"}}))}),_w="CheckboxIndicator",xw=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,s=vw(_w,n);return p.createElement(sn,{present:r||ki(s.state)||s.state===!0},p.createElement(Re.span,ae({"data-state":Oh(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:t,style:{pointerEvents:"none",...e.style}})))}),Ew=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,s=p.useRef(null),l=eu(n),c=Ia(t);return p.useEffect(()=>{const d=s.current,f=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&g){const v=new Event("click",{bubbles:r});d.indeterminate=ki(n),g.call(d,ki(n)?!1:n),d.dispatchEvent(v)}},[l,n,r]),p.createElement("input",ae({type:"checkbox","aria-hidden":!0,defaultChecked:ki(n)?!1:n},i,{tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ki(e){return e==="indeterminate"}function Oh(e){return ki(e)?"indeterminate":e?"checked":"unchecked"}const ww=bw,yw=xw;function Wa(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Cw=["color"],Tw=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=Wa(e,Cw);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),p.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Sw=["color"],Iw=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=Wa(e,Sw);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),p.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Aw=["color"],Ow=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=Wa(e,Aw);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),p.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),$w=["color"],Dw=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=Wa(e,$w);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),p.createElement("path",{d:"M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const vr={checkbox:"_checkbox_1lymw_1","checkbox--root":"_checkbox--root_1lymw_11","checkbox--root-size-sm":"_checkbox--root-size-sm_1lymw_21","checkbox--indicator":"_checkbox--indicator_1lymw_69","checkbox--label":"_checkbox--label_1lymw_78","checkbox--label-size-sm":"_checkbox--label-size-sm_1lymw_79","checkbox--label--disabled":"_checkbox--label--disabled_1lymw_94"},$h=e=>{const{label:t,small:n,disabled:r,id:i,children:s}=e;return t?u.jsx("label",{className:oe(n?vr["checkbox--label-size-sm"]:vr["checkbox--label"],r&&vr["checkbox--label--disabled"]),htmlFor:i,children:t}):s?u.jsx("label",{className:oe(n?vr["checkbox--label-size-sm"]:vr["checkbox--label"],r&&vr["checkbox--label--disabled"]),htmlFor:i,children:s}):null},Fi=p.forwardRef((e,t)=>{const{id:n=`ch-${Math.random()}`,small:r,checked:i,label:s,labelPosition:l="start",children:c,onCheckedChange:d,disabled:f,className:m,...g}=e;return u.jsxs("div",{className:oe(vr.checkbox,m),children:[l==="end"?u.jsx($h,{id:n,label:s,small:r,disabled:f,children:c}):null,u.jsx(ww,{ref:t,id:n,className:oe(r&&vr["checkbox--root-size-sm"],vr["checkbox--root"]),onCheckedChange:d,disabled:f,checked:i,...g,children:u.jsxs(yw,{className:vr["checkbox--indicator"],children:[i==="indeterminate"&&u.jsx(Dw,{}),i===!0&&u.jsx(Tw,{})]})}),l==="start"?u.jsx($h,{id:n,label:s,small:r,disabled:f,children:c}):null]})});Fi.displayName="Checkbox";const tu=p.forwardRef(({...e},t)=>u.jsx(Dh,{ref:t,...e}));tu.displayName="AtomItemDocumentDropdown";const Dh=p.forwardRef(({label:e,value:t,onSelect:n,isSelected:r},i)=>{const s=p.useCallback(()=>{n&&n({label:e,value:t})},[t]);return u.jsxs("div",{ref:i,className:hw["atom-item-document-dropdown--trigger"],onClick:s,children:[u.jsx(Fi,{checked:r,small:!0}),u.jsx(ye,{size:"xs",children:e})]})});Dh.displayName="AtomItemSingleDocumentDropdown";const Oo={button:"_button_ktp2c_1","button--full-width":"_button--full-width_ktp2c_24","--button-size":"_--button-size_ktp2c_29","button--label":"_button--label_ktp2c_37","button--children":"_button--children_ktp2c_45","button-disabled":"_button-disabled_ktp2c_62","button--outlined":"_button--outlined_ktp2c_74","button--outlined-disabled":"_button--outlined-disabled_ktp2c_90","button--text":"_button--text_ktp2c_102","button--text-disabled":"_button--text-disabled_ktp2c_115",icon:"_icon_ktp2c_126"},Mh=p.forwardRef(({color:e="sand",variant:t="filled",size:n="lg",disabled:r=!1,children:i,label:s,isOpen:l,fullWidth:c,...d},f)=>u.jsx("button",{ref:f,disabled:r,className:oe(Oo.button,r&&Oo["button-disabled"],c&&Oo["button--full-width"]),...d,children:u.jsxs("span",{className:Oo["button--children"],children:[u.jsx(Pi,{className:oe(Oo["button--label"],r?"cursor-not-allowed":"cursor-pointer"),variant:"button-sm",children:i}),u.jsx("div",{className:Oo.icon,children:l?u.jsx(ih,{}):u.jsx(rh,{})})]})}));Mh.displayName="AtomTriggerDocumentDropdown";function Mw(){return u.jsx("div",{className:ji["empty-container"],children:u.jsx(ye,{size:"sm",color:"gray-900",children:"No contents yet"})})}function Ph({tags:e,selectedTags:t,variables:n,showVariables:r,selectedVariables:i,onConfirmSelection:s,onLabelChange:l,searchProps:c,closeDelay:d}){const[f,m]=p.useState({tags:t??[],variables:i??[]}),g=w=>{if(!w||!w.value)return;const y=w.value;m(T=>{if(typeof T.tags=="string")return{...T,tags:[w.value],variables:typeof T.variables=="string"?[]:T.variables};{const S=T.tags.includes(y)?T.tags.filter(O=>O!==y):[...T.tags,w.value];return{...T,tags:S,variables:typeof T.variables=="string"?[]:T.variables}}})},v=w=>{if(!w||!w.value)return;const y=w.value;m(T=>{if(typeof T.variables=="string")return{...T,variables:[w.value],tags:typeof T.tags=="string"?[]:T.tags};{const S=T.variables.includes(y)?T.variables.filter(O=>O!==y):[...T.variables,w.value];return{...T,variables:S,tags:typeof T.tags=="string"?[]:T.tags}}})},b=()=>{s("any","any"),l("Use all docs")},E=()=>{s("none","none"),l("Don't use docs")},_=()=>{s(f.tags,f.variables);const w=typeof f.tags!="string"?f.tags:[],y=typeof f.tags!="string"?f.variables.map(T=>`{{${T}}}`):[];l([...w,...y].join(", "))};return u.jsxs("div",{className:ji["document-dropdown"],children:[u.jsxs("div",{className:ji.header,children:[u.jsx(Sh,{...c}),u.jsxs("div",{className:ji["cta-container"],children:[u.jsx("div",{children:u.jsx(gt,{onClick:b,size:"sm",variant:"text",color:"sand",children:"Use all docs"})}),u.jsx("div",{children:u.jsx(gt,{onClick:E,size:"sm",variant:"text",color:"sand",children:"Don't use docs"})})]})]}),u.jsx(gr,{color:"gray-300",horizontalMargin:!1,variant:"default",verticalMargin:"sm"}),r&&u.jsx(Ih,{closeDelay:d,label:"Variables",children:u.jsx("div",{className:ji["variables-container"],children:n.map(w=>{const y=f.variables.includes(w.value);return u.jsx(tu,{isSelected:y,label:w.label,value:w.value,onSelect:v},`document_variables_${w.value}`)})})}),u.jsx("div",{className:ji["tags-container"],children:(e==null?void 0:e.length)>0?e.map(w=>{const y=f.tags.includes(w.value);return u.jsx(tu,{isSelected:y,label:w.label,value:w.value,onSelect:g},`document_tag_${w.value}`)}):u.jsx(Mw,{})}),u.jsx("div",{className:ji["apply-cta"],children:u.jsx(gt,{variant:"filled",color:"primary",size:"sm",onClick:_,disabled:f.tags.length===0&&f.variables.length===0,children:"Apply"})})]})}const Nh=p.forwardRef(({disabled:e,align:t="center",onOpenChange:n,variables:r,showVariables:i,selectedVariables:s,onConfirmSelection:l,tags:c,selectedTags:d,fullWidth:f},m)=>{const[g,v]=p.useState(!1),[b,E]=p.useState(""),[_,w]=p.useState("Choose document");p.useEffect(()=>{if(s||d)if(d==="any"||s==="any")w("Use all docs");else if(d==="none"||s==="none")w("Don't use docs");else{const I=typeof d!="string"?d:[],M=typeof s!="string"?s.map(N=>`{{${N}}}`):[];w([...I,...M].join(", "))}},[d,s]);const y=p.useCallback(()=>{v(!1)},[]);p.useImperativeHandle(m,()=>({close:y}));const T=p.useCallback(I=>{v(I),n==null||n(I)},[n]),S={onChange(I){const M=I.target.value;E(M)}},O=p.useMemo(()=>(c??[]).filter(I=>{var M;return(M=I.label)==null?void 0:M.toUpperCase().includes(b.toUpperCase())}),[c,b]);return u.jsxs(Pd,{modal:!1,open:g,onOpenChange:T,children:[u.jsx(Nd,{asChild:!0,disabled:e,children:u.jsx(Mh,{size:"sm",color:"sand",isOpen:g,fullWidth:f,children:_||"Choose document"})}),u.jsx(Rd,{align:t,sideOffset:5,children:u.jsx(Ph,{tags:O,selectedTags:d,variables:r,showVariables:i,selectedVariables:s,onConfirmSelection:(I,M)=>{l(I,M),y()},onLabelChange:w,searchProps:S})})]})});Nh.displayName="DocumentDropdown";const Bi={"avatar-bot":"_avatar-bot_1x2kl_1","avatar-bot--image-bg":"_avatar-bot--image-bg_1x2kl_18","avatar-bot--active":"_avatar-bot--active_1x2kl_27","avatar-bot--active-icon":"_avatar-bot--active-icon_1x2kl_31","avatar-bot--image":"_avatar-bot--image_1x2kl_18","avatar-bot--image-active":"_avatar-bot--image-active_1x2kl_43","avatar-bot--custom-icon":"_avatar-bot--custom-icon_1x2kl_51"},nu=p.forwardRef((e,t)=>{const{icon:n,image:r,active:i,className:s,onClick:l}=e;return u.jsxs("div",{ref:t,onClick:l,className:oe(Bi["avatar-bot"],i&&Bi["avatar-bot--active"],r&&Bi["avatar-bot--image-bg"],s),children:[i?u.jsx(pp,{width:"2.4rem",height:"2.4rem",className:Bi["avatar-bot--active-icon"]}):n&&u.jsx("span",{className:Bi["avatar-bot--custom-icon"],children:n}),r&&u.jsx("img",{src:r.url,alt:r.alt,className:oe(Bi["avatar-bot--image"],i&&Bi["avatar-bot--image-active"])})]})});nu.displayName="AvatarBot";const qa={avatar:"_avatar_u6yy9_1","avatar--size-md":"_avatar--size-md_u6yy9_15","avatar--size-sm":"_avatar--size-sm_u6yy9_23","avatar--size-xs":"_avatar--size-xs_u6yy9_31","avatar--size-xxs":"_avatar--size-xxs_u6yy9_39","avatar--disabled":"_avatar--disabled_u6yy9_47","avatar--badge":"_avatar--badge_u6yy9_51","avatar--badge-size-sm":"_avatar--badge-size-sm_u6yy9_62","avatar--image":"_avatar--image_u6yy9_67"},ru={badge:"_badge_1y0vz_1","badge--size-sm":"_badge--size-sm_1y0vz_11","badge--green":"_badge--green_1y0vz_16","badge--red":"_badge--red_1y0vz_20"},iu=p.forwardRef((e,t)=>{const{small:n=!1,color:r,className:i}=e;return u.jsx("div",{ref:t,className:oe(ru.badge,ru[`badge--${r}`],n&&ru["badge--size-sm"],i)})});iu.displayName="Badge";const Rh=e=>{const[t,n]=e.split(" ");return t&&n?`${t.charAt(0)}${n.charAt(0)}`:t.charAt(0)},$o=p.forwardRef((e,t)=>{const{icon:n=!1,size:r="md",name:i,disabled:s,badge:l,image:c,status:d,className:f,children:m,...g}=e,v=()=>c?u.jsx("img",{src:c.url,alt:c.alt,className:qa["avatar--image"]}):n?m:u.jsx(He,{size:r,color:"white",children:Rh(i??"")}),b=p.useMemo(()=>({backgroundColor:e.color}),[e.color]);return u.jsxs("div",{ref:t,style:b,className:oe(qa.avatar,qa[`avatar--size-${r}`],s&&qa["avatar--disabled"],f),...g,children:[v(),l?u.jsx(iu,{color:d&&d==="online"?"green":"red",small:r==="xs"||r==="xxs"}):null]})});$o.displayName="Avatar";const ou={"avatar-workspace":"_avatar-workspace_jxkxx_1","avatar-workspace--size-md":"_avatar-workspace--size-md_jxkxx_15","avatar-workspace--size-sm":"_avatar-workspace--size-sm_jxkxx_24","avatar-workspace--purple":"_avatar-workspace--purple_jxkxx_33","avatar-workspace--gray":"_avatar-workspace--gray_jxkxx_37"},Lh=p.forwardRef((e,t)=>{const{icon:n=!1,size:r="md",name:i,color:s="purple",className:l,children:c}=e;return u.jsx("div",{ref:t,className:oe(ou["avatar-workspace"],ou[`avatar-workspace--size-${r}`],ou[`avatar--${s}`],l),children:n?c:u.jsx(He,{size:r,color:"white",children:Rh(i)})})});Lh.displayName="AvatarWorkspace";const su={editor:"_editor_183tc_9","editor-text-field":"_editor-text-field_183tc_16","icon-button-gray":"_icon-button-gray_183tc_24"},Ya=p.forwardRef((e,t)=>{const{initialLabel:n,onSaveLabel:r}=e,[i,s]=p.useState(n),[l,c]=p.useState(n),[d,f]=p.useState(!1),m=()=>{f(b=>!b)},g=b=>{c(b.target.value)},v=()=>{r&&l&&(s(l),r(l)),f(!1)};return u.jsx(u.Fragment,{children:d?u.jsxs("div",{className:su["editor-text-field"],ref:t,children:[u.jsx(ln,{value:l,onChange:g,placeholder:"Change name...",size:"sm",variant:"filled"}),u.jsxs("div",{children:[u.jsx(st,{onClick:v,color:"green",size:"sm",variant:"ghost",children:u.jsx(Fc,{})}),u.jsx(st,{onClick:m,color:"red",size:"sm",variant:"ghost",children:u.jsx(Gc,{})})]})]}):u.jsxs("div",{className:su.editor,ref:t,children:[u.jsx(ye,{fontWeight:"bold",color:"black",size:"md",children:i}),u.jsx(st,{onClick:m,color:"primary",size:"xs",variant:"ghost",children:u.jsx(_E,{className:su["icon-button-gray"]})})]})})});Ya.displayName="AtomNameDivBlockModule";const jh={"title-block-module":"_title-block-module_1v5qg_1","drag-icon":"_drag-icon_1v5qg_9"},au={"icon-button":"_icon-button_7unaa_1","icon-button--size-lg":"_icon-button--size-lg_7unaa_14","icon-button--size-md":"_icon-button--size-md_7unaa_19","icon-button--size-sm":"_icon-button--size-sm_7unaa_24","icon-button--children":"_icon-button--children_7unaa_29","icon-button--icon":"_icon-button--icon_7unaa_35","icon-button--message":"_icon-button--message_7unaa_40","icon-button--logic":"_icon-button--logic_7unaa_45","icon-button--utility":"_icon-button--utility_7unaa_50","icon-button--action":"_icon-button--action_7unaa_55"},kh={text:{icon:u.jsx(hp,{}),category:"message"},image:{icon:u.jsx(bp,{}),category:"message"},video:{icon:u.jsx(up,{}),category:"message"},agent:{icon:u.jsx(ch,{}),category:"message"},card:{icon:u.jsx(xp,{}),category:"message"},handover:{icon:u.jsx(vp,{}),category:"logic"},contact_request:{icon:u.jsx(zc,{}),category:"logic"},quick_reply:{icon:u.jsx(fp,{}),category:"logic"},reroute:{icon:u.jsx(Bc,{}),category:"logic"},api:{icon:u.jsx(_p,{}),category:"logic"},capture:{icon:u.jsx(gp,{}),category:"logic"},set_values:{icon:u.jsx(mp,{}),category:"logic"},condition:{icon:u.jsx(Ep,{}),category:"logic"},notes:{icon:u.jsx(A7,{}),category:"utility"},mail:{icon:u.jsx(zc,{}),category:"action"},upload:{icon:u.jsx(U7,{}),category:"action"}},Fh=p.forwardRef((e,t)=>{const{size:n="md",block:r="text",className:i,...s}=e,l=kh[r].category,c=kh[r].icon;return u.jsx("div",{ref:t,className:oe(au["icon-button"],au[`icon-button--size-${n}`],au[`icon-button--${l}`],i),...s,children:c})}),Pw={text:{label:"Text"},image:{label:"Image"},video:{label:"Video"},agent:{label:"Agent"},card:{label:"Card"},handover:{label:"Handover"},contact_request:{label:"Contact Request"},quick_reply:{label:"Quick Reply"},reroute:{label:"Reroute"},api:{label:"API"},capture:{label:"Capture"},set_values:{label:"Set Values"},condition:{label:"Condition"},notes:{label:"Notes"},mail:{label:"Mail"},upload:{label:"Upload"}},lu=p.forwardRef((e,t)=>{const{block:n="text",...r}=e,i=Pw[n].label;return u.jsxs("div",{className:jh["title-block-module"],ref:t,...r,children:[u.jsx(tE,{className:jh["drag-icon"]}),u.jsx(Fh,{block:n,size:"md"}),u.jsx(ye,{size:"sm",children:i})]})});lu.displayName="TitleBlockModule";const cu={"atom-top-modulo":"_atom-top-modulo_vojtq_1","atom-top-modulo-button":"_atom-top-modulo-button_vojtq_11","atom-top-modulo-button-copy":"_atom-top-modulo-button-copy_vojtq_17"},du=p.forwardRef((e,t)=>{const{block:n="text",dragHandlerProps:r,isCollapsed:i,onDelete:s,onCopy:l,onCollapse:c,showCopy:d=!1,className:f}=e;return u.jsxs("div",{ref:t,className:oe(cu["atom-top-modulo"],f),children:[u.jsx(lu,{block:n,...r}),u.jsxs("div",{className:cu["atom-top-modulo-button"],children:[d?u.jsx(gt,{color:"primary",size:"sm",startIcon:u.jsx(Wx,{className:cu["atom-top-modulo-button-copy"]}),variant:"text",onClick:l,children:"Copy"}):null,u.jsx(gt,{color:"primary",size:"sm",variant:"outlined",startIcon:i?u.jsx(c7,{}):u.jsx(X_,{}),onClick:c,children:i?"Expand":"Collapse"}),u.jsx(st,{onClick:()=>{s()},variant:"ghost",children:u.jsx(Gd,{})})]})]})});du.displayName="AtomTopModulo";var Bh={exports:{}};/*!
|
|
67
|
+
`)},d6=0,yo=[];function u6(e){var t=ve.useRef([]),n=ve.useRef([0,0]),r=ve.useRef(),i=ve.useState(d6++)[0],s=ve.useState(function(){return T0()})[0],l=ve.useRef(e);ve.useEffect(function(){l.current=e},[e]),ve.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var _=P4([e.lockRef.current],(e.shards||[]).map(D0),!0).filter(Boolean);return _.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),_.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=ve.useCallback(function(_,E){if("touches"in _&&_.touches.length===2)return!l.current.allowPinchZoom;var y=Ra(_),T=n.current,S="deltaX"in _?_.deltaX:T[0]-y[0],O="deltaY"in _?_.deltaY:T[1]-y[1],I,M=_.target,N=Math.abs(S)>Math.abs(O)?"h":"v";if("touches"in _&&N==="h"&&M.type==="range")return!1;var D=I0(N,M);if(!D)return!0;if(D?I=N:(I=N==="v"?"h":"v",D=I0(N,M)),!D)return!1;if(!r.current&&"changedTouches"in _&&(S||O)&&(r.current=I),!I)return!0;var k=r.current||I;return a6(k,E,_,k==="h"?S:O)},[]),d=ve.useCallback(function(_){var E=_;if(!(!yo.length||yo[yo.length-1]!==s)){var y="deltaY"in E?$0(E):Ra(E),T=t.current.filter(function(I){return I.name===E.type&&I.target===E.target&&l6(I.delta,y)})[0];if(T&&T.should){E.cancelable&&E.preventDefault();return}if(!T){var S=(l.current.shards||[]).map(D0).filter(Boolean).filter(function(I){return I.contains(E.target)}),O=S.length>0?c(E,S[0]):!l.current.noIsolation;O&&E.cancelable&&E.preventDefault()}}},[]),f=ve.useCallback(function(_,E,y,T){var S={name:_,delta:E,target:y,should:T};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(O){return O!==S})},1)},[]),m=ve.useCallback(function(_){n.current=Ra(_),r.current=void 0},[]),g=ve.useCallback(function(_){f(_.type,$0(_),_.target,c(_,e.lockRef.current))},[]),v=ve.useCallback(function(_){f(_.type,Ra(_),_.target,c(_,e.lockRef.current))},[]);ve.useEffect(function(){return yo.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",d,Eo),document.addEventListener("touchmove",d,Eo),document.addEventListener("touchstart",m,Eo),function(){yo=yo.filter(function(_){return _!==s}),document.removeEventListener("wheel",d,Eo),document.removeEventListener("touchmove",d,Eo),document.removeEventListener("touchstart",m,Eo)}},[]);var b=e.removeScrollBar,w=e.inert;return ve.createElement(ve.Fragment,null,w?ve.createElement(s,{styles:c6(i)}):null,b?ve.createElement(e6,{gapMode:"margin"}):null)}const f6=G4(C0,u6);var La=ve.forwardRef(function(e,t){return ve.createElement(Pa,mr({},e,{ref:t,sideCar:f6}))});La.classNames=Pa.classNames;const p6=["Enter"," "],h6=["ArrowDown","PageUp","Home"],M0=["ArrowUp","PageDown","End"],g6=[...h6,...M0],ja="Menu",[Id,m6,v6]=ma(ja),[Mi,P0]=zt(ja,[v6,_o,xo]),Ad=_o(),N0=xo(),[b6,ms]=Mi(ja),[_6,Od]=Mi(ja),x6=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:s,modal:l=!0}=e,c=Ad(t),[d,f]=p.useState(null),m=p.useRef(!1),g=on(s),v=ds(i);return p.useEffect(()=>{const b=()=>{m.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>m.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),p.createElement(hd,c,p.createElement(b6,{scope:t,open:n,onOpenChange:g,content:d,onContentChange:f},p.createElement(_6,{scope:t,onClose:p.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:m,dir:v,modal:l},r)))},w6=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Ad(n);return p.createElement(gd,ae({},i,r,{ref:t}))}),R0="MenuPortal",[E6,y6]=Mi(R0,{forceMount:void 0}),C6=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,s=ms(R0,t);return p.createElement(E6,{scope:t,forceMount:n},p.createElement(sn,{present:n||s.open},p.createElement(Aa,{asChild:!0,container:i},r)))},ri="MenuContent",[T6,L0]=Mi(ri),S6=p.forwardRef((e,t)=>{const n=y6(ri,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=ms(ri,e.__scopeMenu),l=Od(ri,e.__scopeMenu);return p.createElement(Id.Provider,{scope:e.__scopeMenu},p.createElement(sn,{present:r||s.open},p.createElement(Id.Slot,{scope:e.__scopeMenu},l.modal?p.createElement(I6,ae({},i,{ref:t})):p.createElement(A6,ae({},i,{ref:t})))))}),I6=p.forwardRef((e,t)=>{const n=ms(ri,e.__scopeMenu),r=p.useRef(null),i=et(t,r);return p.useEffect(()=>{const s=r.current;if(s)return yd(s)},[]),p.createElement(j0,ae({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:we(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),A6=p.forwardRef((e,t)=>{const n=ms(ri,e.__scopeMenu);return p.createElement(j0,ae({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),j0=p.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:b,disableOutsideScroll:w,..._}=e,E=ms(ri,n),y=Od(ri,n),T=Ad(n),S=N0(n),O=m6(n),[I,M]=p.useState(null),N=p.useRef(null),D=et(t,N,E.onContentChange),k=p.useRef(0),Y=p.useRef(""),L=p.useRef(0),G=p.useRef(null),Z=p.useRef("right"),R=p.useRef(0),K=w?La:p.Fragment,B=w?{as:Ii,allowPinchZoom:!0}:void 0,W=q=>{var U,V;const ce=Y.current+q,ue=O().filter(be=>!be.disabled),pe=document.activeElement,Ee=(U=ue.find(be=>be.ref.current===pe))===null||U===void 0?void 0:U.textValue,ne=ue.map(be=>be.textValue),le=j6(ne,ce,Ee),ge=(V=ue.find(be=>be.textValue===le))===null||V===void 0?void 0:V.ref.current;(function be(he){Y.current=he,window.clearTimeout(k.current),he!==""&&(k.current=window.setTimeout(()=>be(""),1e3))})(ce),ge&&setTimeout(()=>ge.focus())};p.useEffect(()=>()=>window.clearTimeout(k.current),[]),id();const J=p.useCallback(q=>{var U,V;return Z.current===((U=G.current)===null||U===void 0?void 0:U.side)&&F6(q,(V=G.current)===null||V===void 0?void 0:V.area)},[]);return p.createElement(T6,{scope:n,searchRef:Y,onItemEnter:p.useCallback(q=>{J(q)&&q.preventDefault()},[J]),onItemLeave:p.useCallback(q=>{var U;J(q)||((U=N.current)===null||U===void 0||U.focus(),M(null))},[J]),onTriggerLeave:p.useCallback(q=>{J(q)&&q.preventDefault()},[J]),pointerGraceTimerRef:L,onPointerGraceIntentChange:p.useCallback(q=>{G.current=q},[])},p.createElement(K,B,p.createElement(ad,{asChild:!0,trapped:i,onMountAutoFocus:we(s,q=>{var U;q.preventDefault(),(U=N.current)===null||U===void 0||U.focus()}),onUnmountAutoFocus:l},p.createElement(us,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:b},p.createElement(xd,ae({asChild:!0},S,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:I,onCurrentTabStopIdChange:M,onEntryFocus:we(d,q=>{y.isUsingKeyboardRef.current||q.preventDefault()})}),p.createElement(md,ae({role:"menu","aria-orientation":"vertical","data-state":N6(E.open),"data-radix-menu-content":"",dir:y.dir},T,_,{ref:D,style:{outline:"none",..._.style},onKeyDown:we(_.onKeyDown,q=>{const V=q.target.closest("[data-radix-menu-content]")===q.currentTarget,ce=q.ctrlKey||q.altKey||q.metaKey,ue=q.key.length===1;V&&(q.key==="Tab"&&q.preventDefault(),!ce&&ue&&W(q.key));const pe=N.current;if(q.target!==pe||!g6.includes(q.key))return;q.preventDefault();const ne=O().filter(le=>!le.disabled).map(le=>le.ref.current);M0.includes(q.key)&&ne.reverse(),R6(ne)}),onBlur:we(e.onBlur,q=>{q.currentTarget.contains(q.target)||(window.clearTimeout(k.current),Y.current="")}),onPointerMove:we(e.onPointerMove,Dd(q=>{const U=q.target,V=R.current!==q.clientX;if(q.currentTarget.contains(U)&&V){const ce=q.clientX>R.current?"right":"left";Z.current=ce,R.current=q.clientX}}))})))))))}),$d="MenuItem",k0="menu.itemSelect",O6=p.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,s=p.useRef(null),l=Od($d,e.__scopeMenu),c=L0($d,e.__scopeMenu),d=et(t,s),f=p.useRef(!1),m=()=>{const g=s.current;if(!n&&g){const v=new CustomEvent(k0,{bubbles:!0,cancelable:!0});g.addEventListener(k0,b=>r==null?void 0:r(b),{once:!0}),Uc(g,v),v.defaultPrevented?f.current=!1:l.onClose()}};return p.createElement($6,ae({},i,{ref:d,disabled:n,onClick:we(e.onClick,m),onPointerDown:g=>{var v;(v=e.onPointerDown)===null||v===void 0||v.call(e,g),f.current=!0},onPointerUp:we(e.onPointerUp,g=>{var v;f.current||(v=g.currentTarget)===null||v===void 0||v.click()}),onKeyDown:we(e.onKeyDown,g=>{const v=c.searchRef.current!=="";n||v&&g.key===" "||p6.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})}))}),$6=p.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...s}=e,l=L0($d,n),c=N0(n),d=p.useRef(null),f=et(t,d),[m,g]=p.useState(!1),[v,b]=p.useState("");return p.useEffect(()=>{const w=d.current;if(w){var _;b(((_=w.textContent)!==null&&_!==void 0?_:"").trim())}},[s.children]),p.createElement(Id.ItemSlot,{scope:n,disabled:r,textValue:i??v},p.createElement(wd,ae({asChild:!0},c,{focusable:!r}),p.createElement(Re.div,ae({role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},s,{ref:f,onPointerMove:we(e.onPointerMove,Dd(w=>{r?l.onItemLeave(w):(l.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus())})),onPointerLeave:we(e.onPointerLeave,Dd(w=>l.onItemLeave(w))),onFocus:we(e.onFocus,()=>g(!0)),onBlur:we(e.onBlur,()=>g(!1))}))))}),D6="MenuRadioGroup",[Ek,yk]=Mi(D6,{value:void 0,onValueChange:()=>{}}),M6="MenuItemIndicator",[Ck,Tk]=Mi(M6,{checked:!1}),P6="MenuSub",[Sk,Ik]=Mi(P6);function N6(e){return e?"open":"closed"}function R6(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function L6(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function j6(e,t,n){const i=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=L6(e,Math.max(s,0));i.length===1&&(l=l.filter(f=>f!==n));const d=l.find(f=>f.toLowerCase().startsWith(i.toLowerCase()));return d!==n?d:void 0}function k6(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const c=t[s].x,d=t[s].y,f=t[l].x,m=t[l].y;d>r!=m>r&&n<(f-c)*(r-d)/(m-d)+c&&(i=!i)}return i}function F6(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return k6(n,t)}function Dd(e){return t=>t.pointerType==="mouse"?e(t):void 0}const B6=x6,z6=w6,G6=C6,H6=S6,U6=O6,F0="DropdownMenu",[V6,Ak]=zt(F0,[P0]),vs=P0(),[W6,B0]=V6(F0),q6=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:s,onOpenChange:l,modal:c=!0}=e,d=vs(t),f=p.useRef(null),[m=!1,g]=mn({prop:i,defaultProp:s,onChange:l});return p.createElement(W6,{scope:t,triggerId:Kn(),triggerRef:f,contentId:Kn(),open:m,onOpenChange:g,onOpenToggle:p.useCallback(()=>g(v=>!v),[g]),modal:c},p.createElement(B6,ae({},d,{open:m,onOpenChange:g,dir:r,modal:c}),n))},Y6="DropdownMenuTrigger",Z6=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,s=B0(Y6,n),l=vs(n);return p.createElement(z6,ae({asChild:!0},l),p.createElement(Re.button,ae({type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},i,{ref:Gc(t,s.triggerRef),onPointerDown:we(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:we(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})))}),X6=e=>{const{__scopeDropdownMenu:t,...n}=e,r=vs(t);return p.createElement(G6,ae({},r,n))},K6="DropdownMenuContent",Q6=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=B0(K6,n),s=vs(n),l=p.useRef(!1);return p.createElement(H6,ae({id:i.contentId,"aria-labelledby":i.triggerId},s,r,{ref:t,onCloseAutoFocus:we(e.onCloseAutoFocus,c=>{var d;l.current||(d=i.triggerRef.current)===null||d===void 0||d.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:we(e.onInteractOutside,c=>{const d=c.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0,m=d.button===2||f;(!i.modal||m)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),J6=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=vs(n);return p.createElement(U6,ae({},i,r,{ref:t}))}),Md=q6,Pd=Z6,ex=X6,Nd=Q6,Rd=J6;var tx=typeof global=="object"&&global&&global.Object===Object&&global,nx=typeof self=="object"&&self&&self.Object===Object&&self,z0=tx||nx||Function("return this")(),ka=z0.Symbol,G0=Object.prototype,rx=G0.hasOwnProperty,ix=G0.toString,bs=ka?ka.toStringTag:void 0;function ox(e){var t=rx.call(e,bs),n=e[bs];try{e[bs]=void 0;var r=!0}catch{}var i=ix.call(e);return r&&(t?e[bs]=n:delete e[bs]),i}var sx=Object.prototype,ax=sx.toString;function lx(e){return ax.call(e)}var cx="[object Null]",dx="[object Undefined]",H0=ka?ka.toStringTag:void 0;function ux(e){return e==null?e===void 0?dx:cx:H0&&H0 in Object(e)?ox(e):lx(e)}function fx(e){return e!=null&&typeof e=="object"}var px="[object Symbol]";function hx(e){return typeof e=="symbol"||fx(e)&&ux(e)==px}var gx=/\s/;function mx(e){for(var t=e.length;t--&&gx.test(e.charAt(t)););return t}var vx=/^\s+/;function bx(e){return e&&e.slice(0,mx(e)+1).replace(vx,"")}function Fa(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var U0=NaN,_x=/^[-+]0x[0-9a-f]+$/i,xx=/^0b[01]+$/i,wx=/^0o[0-7]+$/i,Ex=parseInt;function V0(e){if(typeof e=="number")return e;if(hx(e))return U0;if(Fa(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fa(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=bx(e);var n=xx.test(e);return n||wx.test(e)?Ex(e.slice(2),n?2:8):_x.test(e)?U0:+e}var Ld=function(){return z0.Date.now()},yx="Expected a function",Cx=Math.max,Tx=Math.min;function Ba(e,t,n){var r,i,s,l,c,d,f=0,m=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(yx);t=V0(t)||0,Fa(n)&&(m=!!n.leading,g="maxWait"in n,s=g?Cx(V0(n.maxWait)||0,t):s,v="trailing"in n?!!n.trailing:v);function b(M){var N=r,D=i;return r=i=void 0,f=M,l=e.apply(D,N),l}function w(M){return f=M,c=setTimeout(y,t),m?b(M):l}function _(M){var N=M-d,D=M-f,k=t-N;return g?Tx(k,s-D):k}function E(M){var N=M-d,D=M-f;return d===void 0||N>=t||N<0||g&&D>=s}function y(){var M=Ld();if(E(M))return T(M);c=setTimeout(y,_(M))}function T(M){return c=void 0,v&&r?b(M):(r=i=void 0,l)}function S(){c!==void 0&&clearTimeout(c),f=0,r=d=i=c=void 0}function O(){return c===void 0?l:T(Ld())}function I(){var M=Ld(),N=E(M);if(r=arguments,i=this,d=M,N){if(c===void 0)return w(d);if(g)return clearTimeout(c),c=setTimeout(y,t),b(d)}return c===void 0&&(c=setTimeout(y,t)),l}return I.cancel=S,I.flush=O,I}var Sx="Expected a function";function Ix(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Sx);return Fa(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ba(e,t,{leading:r,maxWait:t,trailing:i})}var Ax=!!(typeof window<"u"&&window.document&&window.document.createElement),Ox=Ax;const W0=Pc(Ox);var Co=function(){return Co=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Co.apply(this,arguments)},To=null,q0=null;W0&&window.addEventListener("resize",function(){q0!==window.devicePixelRatio&&(q0=window.devicePixelRatio,To=null)});function Y0(){if(To===null){if(typeof document>"u")return To=0,To;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var n=t.getBoundingClientRect().right;e.removeChild(t),To=n}return To}function Z0(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function X0(e){return!e||!e.ownerDocument?document:e.ownerDocument}var K0=function(e){var t={},n=Array.prototype.reduce.call(e,function(r,i){var s=i.name.match(/data-simplebar-(.+)/);if(s){var l=s[1].replace(/\W+(.)/g,function(c,d){return d.toUpperCase()});switch(i.value){case"true":r[l]=!0;break;case"false":r[l]=!1;break;case void 0:r[l]=!0;break;default:r[l]=i.value}}return r},t);return n};function Q0(e,t){var n;e&&(n=e.classList).add.apply(n,t.split(" "))}function J0(e,t){e&&t.split(" ").forEach(function(n){e.classList.remove(n)})}function eh(e){return".".concat(e.split(" ").join("."))}var $x=Object.freeze({__proto__:null,getElementWindow:Z0,getElementDocument:X0,getOptions:K0,addClasses:Q0,removeClasses:J0,classNamesToQuery:eh}),ii=Z0,jd=X0,Dx=K0,oi=Q0,si=J0,an=eh,za=function(){function e(t,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=ii(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,oi(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){si(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(oi(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){si(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var s,l;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(s=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(l=r.isWithinBounds(r.axis.y.track.rect)),(s||l)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(s&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),l&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var s,l,c,d,f,m,g,v,b,w,_;if(!(!r.draggedAxis||!r.contentWrapperEl)){var E,y=r.axis[r.draggedAxis].track,T=(l=(s=y.rect)===null||s===void 0?void 0:s[r.axis[r.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,S=r.axis[r.draggedAxis].scrollbar,O=(d=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&d!==void 0?d:0,I=parseInt((m=(f=r.elStyles)===null||f===void 0?void 0:f[r.axis[r.draggedAxis].sizeAttr])!==null&&m!==void 0?m:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?E=i.pageY:E=i.pageX;var M=E-((v=(g=y.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&v!==void 0?v:0)-r.axis[r.draggedAxis].dragOffset;M=r.draggedAxis==="x"&&r.isRtl?((w=(b=y.rect)===null||b===void 0?void 0:b[r.axis[r.draggedAxis].sizeAttr])!==null&&w!==void 0?w:0)-S.size-M:M;var N=M/(T-S.size),D=N*(O-I);r.draggedAxis==="x"&&r.isRtl&&(D=!((_=e.getRtlHelpers())===null||_===void 0)&&_.isScrollingToNegative?-D:D),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=D}},this.onEndDrag=function(i){var s=jd(r.el),l=ii(r.el);i.preventDefault(),i.stopPropagation(),si(r.el,r.classNames.dragging),s.removeEventListener("mousemove",r.drag,!0),s.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=l.setTimeout(function(){s.removeEventListener("click",r.preventClick,!0),s.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=Co(Co({},e.defaultOptions),n),this.classNames=Co(Co({},e.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Ix(this._onMouseMove,64),this.onWindowResize=Ba(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Ba(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Ba(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=t.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=e.getOffset(n),s=e.getOffset(r);n.scrollLeft=-999;var l=e.getOffset(r);return document.body.removeChild(n),e.rtlHelpers={isScrollOriginAtZero:i.left!==s.left,isScrollingToNegative:s.left!==l.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Y0()}catch{return Y0()}},e.getOffset=function(t){var n=t.getBoundingClientRect(),r=jd(t),i=ii(t);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},e.prototype.init=function(){W0&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,n;this.wrapperEl=this.el.querySelector(an(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(an(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(an(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(an(this.classNames.offset)),this.maskEl=this.el.querySelector(an(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,an(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(an(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(an(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(an(this.classNames.track)).concat(an(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(an(this.classNames.track)).concat(an(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(an(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(an(this.classNames.scrollbar)))||null,this.options.autoHide||(oi(this.axis.x.scrollbar.el,this.classNames.visible),oi(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,n,r=ii(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,s=r.ResizeObserver||ResizeObserver;this.resizeObserver=new s(function(){i&&r.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=ii(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,s=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var d=this.contentEl.scrollHeight,f=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||f,"px"):"auto",this.placeholderEl.style.height="".concat(d,"px");var m=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&f>n,this.axis.y.isOverflowing=d>m,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var g=this.axis.x.isOverflowing?this.scrollbarWidth:0,v=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&f>s-v,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&d>m-g,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var n,r;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],s=(r=(n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])!==null&&r!==void 0?r:0,l=s/i,c;return c=Math.max(~~(l*s),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var n,r,i;t===void 0&&(t="y");var s=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!s.el||!this.elStyles)){var l=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((n=this.axis[t].track.el)===null||n===void 0?void 0:n[this.axis[t].offsetSizeAttr])||0,d=parseInt(this.elStyles[this.axis[t].sizeAttr],10),f=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];f=t==="x"&&this.isRtl&&(!((r=e.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-f:f,t==="x"&&this.isRtl&&(f=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?f:-f);var m=f/(l-d),g=~~((c-s.size)*m);g=t==="x"&&this.isRtl?-g+(c-s.size):g,s.el.style.transform=t==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var n=this.axis[t].track.el,r=this.axis[t].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?r.style.display="block":r.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(oi(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(si(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var n=this.axis[t];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(t),oi(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?oi(n.scrollbar.el,this.classNames.hover):si(n.scrollbar.el,this.classNames.hover)):(si(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),si(this.axis[t].track.el,this.classNames.hover),si(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,n){var r;n===void 0&&(n="y");var i=jd(this.el),s=ii(this.el),l=this.axis[n].scrollbar,c=n==="y"?t.pageY:t.pageX;this.axis[n].dragOffset=c-(((r=l.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,oi(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,n){var r=this,i,s,l,c;n===void 0&&(n="y");var d=this.axis[n];if(!(!this.options.clickOnTrack||!d.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var f=ii(this.el);this.axis[n].scrollbar.rect=d.scrollbar.el.getBoundingClientRect();var m=this.axis[n].scrollbar,g=(s=(i=m.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&s!==void 0?s:0,v=parseInt((c=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),b=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],w=n==="y"?this.mouseY-g:this.mouseX-g,_=w<0?-1:1,E=_===-1?b-v:b+v,y=40,T=function(){r.contentWrapperEl&&(_===-1?b>E&&(b-=y,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=b,f.requestAnimationFrame(T)):b<E&&(b+=y,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=b,f.requestAnimationFrame(T)))};T()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=ii(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return r.call(i,n)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=Dx,e.helpers=$x,e}(),bn=function(){return bn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},bn.apply(this,arguments)};function Mx(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var kd=ve.forwardRef(function(e,t){var n=e.children,r=e.scrollableNodeProps,i=r===void 0?{}:r,s=Mx(e,["children","scrollableNodeProps"]),l=ve.useRef(),c=ve.useRef(),d=ve.useRef(),f={},m={};Object.keys(s).forEach(function(b){Object.prototype.hasOwnProperty.call(za.defaultOptions,b)?f[b]=s[b]:m[b]=s[b]});var g=bn(bn({},za.defaultOptions.classNames),f.classNames),v=bn(bn({},i),{className:"".concat(g.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":f.ariaLabel||za.defaultOptions.ariaLabel});return ve.useEffect(function(){var b;return c.current=v.ref?v.ref.current:c.current,l.current&&(b=new za(l.current,bn(bn(bn({},f),c.current&&{scrollableNode:c.current}),d.current&&{contentNode:d.current})),typeof t=="function"?t(b):t&&(t.current=b)),function(){b==null||b.unMount(),b=null,typeof t=="function"&&t(null)}},[]),ve.createElement("div",bn({"data-simplebar":"init",ref:l},m),ve.createElement("div",{className:g.wrapper},ve.createElement("div",{className:g.heightAutoObserverWrapperEl},ve.createElement("div",{className:g.heightAutoObserverEl})),ve.createElement("div",{className:g.mask},ve.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:bn(bn({},v),{ref:c}),contentNodeRef:d,contentNodeProps:{className:g.contentEl,ref:d}}):ve.createElement("div",bn({},v),ve.createElement("div",{className:g.contentEl},n)))),ve.createElement("div",{className:g.placeholder})),ve.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},ve.createElement("div",{className:g.scrollbar})),ve.createElement("div",{className:"".concat(g.track," simplebar-vertical")},ve.createElement("div",{className:g.scrollbar})))});kd.displayName="SimpleBar";const th={label:"_label_12r8p_1","label--button-lg":"_label--button-lg_12r8p_5","label--button-md":"_label--button-md_12r8p_12","label--button-sm":"_label--button-sm_12r8p_19","label--button-xs":"_label--button-xs_12r8p_26","label--tag":"_label--tag_12r8p_33"},Pi=p.forwardRef((e,t)=>{const{variant:n="button-md",fontWeight:r="semibold",color:i,className:s,...l}=e;return u.jsx("label",{ref:t,className:se(th.label,th[`label--${n}`],`text--weight-${r}`,i?`text--${i}`:"current-color",s),...l})});Pi.displayName="Label";const _n={button:"_button_1pkws_1","button--full-width":"_button--full-width_1pkws_24","button--size-lg":"_button--size-lg_1pkws_29","button--size-md":"_button--size-md_1pkws_37","button--size-sm":"_button--size-sm_1pkws_45","button--size-xs":"_button--size-xs_1pkws_53","button--label":"_button--label_1pkws_61","button--label-sm":"_button--label-sm_1pkws_65","button--children":"_button--children_1pkws_69","button--icon":"_button--icon_1pkws_75","button-icon-left":"_button-icon-left_1pkws_80","button-icon-right":"_button-icon-right_1pkws_84","button--loading":"_button--loading_1pkws_88","button--loading-icon":"_button--loading-icon_1pkws_92",rotation:"_rotation_1pkws_1","button--primary-filled":"_button--primary-filled_1pkws_107","button--primary-filled-disabled":"_button--primary-filled-disabled_1pkws_120","button--primary-outlined":"_button--primary-outlined_1pkws_132","button--primary-outlined-disabled":"_button--primary-outlined-disabled_1pkws_148","button--primary-text":"_button--primary-text_1pkws_161","button--primary-text-disabled":"_button--primary-text-disabled_1pkws_174","button--green-filled":"_button--green-filled_1pkws_187","button--green-filled-disabled":"_button--green-filled-disabled_1pkws_200","button--green-outlined":"_button--green-outlined_1pkws_213","button--green-outlined-disabled":"_button--green-outlined-disabled_1pkws_231","button--green-text":"_button--green-text_1pkws_245","button--green-text-disabled":"_button--green-text-disabled_1pkws_260","button--red-filled":"_button--red-filled_1pkws_275","button--red-filled-disabled":"_button--red-filled-disabled_1pkws_288","button--red-outlined":"_button--red-outlined_1pkws_301","button--red-outlined-disabled":"_button--red-outlined-disabled_1pkws_319","button--red-text":"_button--red-text_1pkws_333","button--red-text-disabled":"_button--red-text-disabled_1pkws_348","button--sand-filled":"_button--sand-filled_1pkws_363","button--sand-filled-disabled":"_button--sand-filled-disabled_1pkws_376","button--sand-outlined":"_button--sand-outlined_1pkws_389","button--sand-outlined-disabled":"_button--sand-outlined-disabled_1pkws_405","button--sand-text":"_button--sand-text_1pkws_418","button--sand-text-disabled":"_button--sand-text-disabled_1pkws_431"},Px={lg:"button-lg",md:"button-lg",sm:"button-md",xs:"button-sm"},mt=p.forwardRef((e,t)=>{const{color:n="primary",variant:r="filled",size:i="lg",endIcon:s,startIcon:l,disabled:c=!1,fullWidth:d=!1,children:f,isLoading:m,loadingPosition:g="right",className:v,label:b,...w}=e,_=Px[i],E=i==="lg"||i==="md"?"button--label":"button--label-sm",y=!!(m&&g==="left"),T=!!(m&&g==="right"),S=f!==void 0&&typeof f=="string";return u.jsx("button",{ref:t,disabled:c,className:se(_n.button,d&&_n["button--full-width"],_n[`button--size-${i}`],_n[`button--${n}-${r}`],c&&_n[`button--${n}-${r}-disabled`],m&&_n["button--loading"],v),"data-loading":m?"true":"false",...w,children:u.jsxs("span",{className:_n["button--children"],children:[(y||l)&&u.jsx("span",{className:se("flex",!S&&_n["button-icon-left"],y&&_n["button--loading-icon"]),children:u.jsx(u.Fragment,{children:y?u.jsx(ga,{}):l})}),f!==void 0?S?u.jsx("span",{children:u.jsx(Pi,{className:se(_n[E],c?"cursor-not-allowed":"cursor-pointer"),variant:_,children:f})}):f:b&&u.jsx(Pi,{className:se(_n[E],c?"cursor-not-allowed":"cursor-pointer"),variant:_,children:b}),(T||s)&&u.jsx("span",{className:se("flex",!S&&_n["button-icon-right"],T&&_n["button--loading-icon"]),children:u.jsx(u.Fragment,{children:T?u.jsx(ga,{}):s})})]})})});mt.displayName="Button";const ut={"input-text-field--container":"_input-text-field--container_wv7xg_1","input-text-field--input":"_input-text-field--input_wv7xg_9","input-text-field--input-error":"_input-text-field--input-error_wv7xg_28","input-text-field--content":"_input-text-field--content_wv7xg_40","input-text-field--fluid":"_input-text-field--fluid_wv7xg_48","input-text-field--outlined":"_input-text-field--outlined_wv7xg_61","input-text-field--filled":"_input-text-field--filled_wv7xg_67","input-text-field--size-lg":"_input-text-field--size-lg_wv7xg_73","input-text-field--size-md":"_input-text-field--size-md_wv7xg_77","input-text-field--size-sm":"_input-text-field--size-sm_wv7xg_81","input-text-field--helper-text":"_input-text-field--helper-text_wv7xg_85","input-text-field--label-text":"_input-text-field--label-text_wv7xg_89","input-text-field--addon":"_input-text-field--addon_wv7xg_93","input-text-field--disabled":"_input-text-field--disabled_wv7xg_102","input-text-field--icon-container":"_input-text-field--icon-container_wv7xg_107","input-text-field--icon":"_input-text-field--icon_wv7xg_107","input-text-field--left-icon":"_input-text-field--left-icon_wv7xg_122","input-text-field--right-icon":"_input-text-field--right-icon_wv7xg_126"},Fd={caption:"_caption_9nluj_1","caption--size-md":"_caption--size-md_9nluj_6","caption--size-sm":"_caption--size-sm_9nluj_12","caption--size-xs":"_caption--size-xs_9nluj_17","caption--size-xxs":"_caption--size-xxs_9nluj_22","caption--weight-bold":"_caption--weight-bold_9nluj_27","caption--weight-regular":"_caption--weight-regular_9nluj_31","caption--capitalize":"_caption--capitalize_9nluj_35"},He=p.forwardRef((e,t)=>{const{size:n="md",fontWeight:r="regular",color:i="gray-900",isUppercase:s=!1,className:l,...c}=e;return u.jsx("p",{ref:t,className:se(Fd.caption,Fd[`caption--size-${n}`],`text--weight-${r}`,`text--${i}`,s&&Fd["caption--capitalize"],l),...c})});He.displayName="Caption";const Nx={fluid:"_fluid_xnl5i_1"},Rx=["font","letterSpacing","textTransform","fontKerning","fontOpticalSizing","fontSizeAdjust","fontStretch","fontVariant","fontVariationSettings","fontSynthesis","textIndent"],Lx={all:"initial",position:"absolute",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden",overflow:"scroll",whiteSpace:"pre"};function jx(e){let t=document.createElement("span");t.innerText=e.value===""?e.placeholder:e.value;let n=window.getComputedStyle(e);Object.assign(t.style,Lx),Rx.forEach(i=>{t.style[i]=n[i]}),document.body.appendChild(t);let r=kx(t.scrollWidth,n);return document.body.removeChild(t),r}function kx(e,t){let n="calc(";return n+=`${e}px`,t.boxSizing==="border-box"&&(n+=` + ${t.paddingLeft} + ${t.paddingRight}`,n+=` + ${t.borderLeftWidth} + ${t.borderRightWidth}`),n+=")",n}function Fx(e){return e==null?"":typeof e=="number"?`${e}px`:e}const Bx=p.forwardRef(function(t,n){var l;let{fieldSizing:r,...i}=t,s=p.useRef(null);return p.useLayoutEffect(()=>{let c=s.current;function d(){r==="content"&&(c.style.width=jx(c))}return d(),c.addEventListener("input",d),()=>{var f;c.style.width=Fx((f=t.style)==null?void 0:f.width),c.removeEventListener("input",d)}},[t.value,r,(l=t.style)==null?void 0:l.width]),u.jsx("input",{ref:c=>{s.current=c,typeof n=="function"?n(c):n!=null&&(n.current=c)},...i})}),zx=p.forwardRef(({fieldSizing:e,...t},n)=>e!=="content"?u.jsx("input",{ref:n,...t}):CSS.supports("field-sizing:content")?u.jsx("input",{ref:n,...t,className:se(Nx.fluid,t.className)}):u.jsx(Bx,{ref:n,...t,fieldSizing:e})),ln=p.forwardRef((e,t)=>{const{size:n="md",error:r,disabled:i,variant:s="outlined",label:l,placeholder:c,helperText:d,leftAddon:f,rightAddon:m,leftIcon:g,leftIconTwo:v,rightIcon:b,rightIconTwo:w,className:_,contentClassName:E,autoResize:y=!1,...T}=e,S=(O,I)=>{switch(I){case"lg":return u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:ut["input-text-field--label-text"],children:O});default:case"md":return u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-800",className:ut["input-text-field--label-text"],children:O});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:ut["input-text-field--label-text"],children:O})}};return u.jsxs("div",{className:se(ut["input-text-field--container"],i&&ut["input-text-field--disabled"],_),children:[l?S(l,n):null,u.jsxs("div",{className:se(ut["input-text-field--content"],ut[`input-text-field--size-${n}`],ut[`input-text-field--${s}`],y?ut["input-text-field--fluid"]:null,E),children:[f?u.jsx("div",{className:ut["input-text-field--addon"],children:u.jsx(ye,{size:"xs",fontWeight:"regular",children:f})}):null,g||v?u.jsxs("div",{className:se(ut["input-text-field--icon-container"],ut["input-text-field--left-icon"]),children:[g?u.jsx("span",{className:ut["input-text-field--icon"],children:g}):null,v?u.jsx("span",{className:se(ut["input-text-field--icon"]),children:v}):null]}):null,u.jsx(zx,{ref:t,type:"text",className:se(ut["input-text-field--input"],r&&ut["input-text-field--input-error"],s==="filled"&&"bg--sand-200",i&&"cursor-not-allowed"),placeholder:c,disabled:i,...T,fieldSizing:y?"content":"fixed"}),b||w?u.jsxs("div",{className:se(ut["input-text-field--icon-container"],ut["input-text-field--right-icon"]),children:[b?u.jsx("span",{className:ut["input-text-field--icon"],children:b}):null,w?u.jsx("span",{className:se(ut["input-text-field--icon"]),children:w}):null]}):null,m?u.jsx("div",{className:ut["input-text-field--addon"],children:u.jsx(ye,{size:"xs",fontWeight:"regular",children:m})}):null]}),d?u.jsx(He,{size:n!=="sm"?"md":"sm",fontWeight:"regular",color:r?"red-500":"gray-700",className:ut["input-text-field--helper-text"],children:d}):null]})});ln.displayName="TextField";const So={"icon-button":"_icon-button_10wie_1","icon-button--size-md":"_icon-button--size-md_10wie_18","icon-button--size-sm":"_icon-button--size-sm_10wie_24","icon-button--size-xs":"_icon-button--size-xs_10wie_30","icon-button--size-xxs":"_icon-button--size-xxs_10wie_36","icon-button--children":"_icon-button--children_10wie_42","icon-button--icon":"_icon-button--icon_10wie_48","icon-button--primary-filled":"_icon-button--primary-filled_10wie_54","icon-button--primary-filled-disabled":"_icon-button--primary-filled-disabled_10wie_67","icon-button--primary-outlined":"_icon-button--primary-outlined_10wie_79","icon-button--primary-outlined-disabled":"_icon-button--primary-outlined-disabled_10wie_95","icon-button--primary-ghost":"_icon-button--primary-ghost_10wie_108","icon-button--primary-ghost-disabled":"_icon-button--primary-ghost-disabled_10wie_121","icon-button--green-filled":"_icon-button--green-filled_10wie_134","icon-button--green-filled-disabled":"_icon-button--green-filled-disabled_10wie_147","icon-button--green-outlined":"_icon-button--green-outlined_10wie_160","icon-button--green-outlined-disabled":"_icon-button--green-outlined-disabled_10wie_178","icon-button--green-ghost":"_icon-button--green-ghost_10wie_192","icon-button--green-ghost-disabled":"_icon-button--green-ghost-disabled_10wie_207","icon-button--red-filled":"_icon-button--red-filled_10wie_222","icon-button--red-filled-disabled":"_icon-button--red-filled-disabled_10wie_235","icon-button--red-outlined":"_icon-button--red-outlined_10wie_248","icon-button--red-outlined-disabled":"_icon-button--red-outlined-disabled_10wie_266","icon-button--red-ghost":"_icon-button--red-ghost_10wie_280","icon-button--red-ghost-disabled":"_icon-button--red-ghost-disabled_10wie_295","icon-button--sand-filled":"_icon-button--sand-filled_10wie_310","icon-button--sand-filled-disabled":"_icon-button--sand-filled-disabled_10wie_323","icon-button--sand-outlined":"_icon-button--sand-outlined_10wie_336","icon-button--sand-outlined-disabled":"_icon-button--sand-outlined-disabled_10wie_354","icon-button--sand-ghost":"_icon-button--sand-ghost_10wie_368","icon-button--sand-ghost-disabled":"_icon-button--sand-ghost-disabled_10wie_383","icon-button--rsanded-ghost-disabled":"_icon-button--rsanded-ghost-disabled_10wie_389"},st=p.forwardRef((e,t)=>{const{color:n="primary",variant:r="filled",size:i="lg",disabled:s=!1,children:l,className:c,...d}=e;return u.jsx("button",{ref:t,disabled:s,className:se(So["icon-button"],So[`icon-button--size-${i}`],So[`icon-button--${n}-${r}`],s&&So[`icon-button--${n}-${r}-disabled`],c),...d,children:u.jsx("span",{className:se("flex",So["icon-button--icon"],So["icon-button--children"]),children:l})})}),_s={tag:"_tag_9w4m5_1","tag--icon-container":"_tag--icon-container_9w4m5_20","tag--label":"_tag--label_9w4m5_28","tag-close":"_tag-close_9w4m5_36","tag--gray-soft":"_tag--gray-soft_9w4m5_52","tag--gray-filled":"_tag--gray-filled_9w4m5_59","tag--gray-outlined":"_tag--gray-outlined_9w4m5_66","tag--gray-text":"_tag--gray-text_9w4m5_74","tag--sand-soft":"_tag--sand-soft_9w4m5_80","tag--sand-filled":"_tag--sand-filled_9w4m5_87","tag--sand-outlined":"_tag--sand-outlined_9w4m5_94","tag--sand-text":"_tag--sand-text_9w4m5_103","tag--purple-soft":"_tag--purple-soft_9w4m5_109","tag--purple-filled":"_tag--purple-filled_9w4m5_116","tag--purple-outlined":"_tag--purple-outlined_9w4m5_123","tag--green-soft":"_tag--green-soft_9w4m5_135","tag--green-filled":"_tag--green-filled_9w4m5_142","tag--green-outlined":"_tag--green-outlined_9w4m5_149","tag--green-text":"_tag--green-text_9w4m5_158","tag--red-soft":"_tag--red-soft_9w4m5_164","tag--red-filled":"_tag--red-filled_9w4m5_171","tag--red-outlined":"_tag--red-outlined_9w4m5_178","tag--red-text":"_tag--red-text_9w4m5_187","tag--salmon-soft":"_tag--salmon-soft_9w4m5_193","tag--salmon-filled":"_tag--salmon-filled_9w4m5_200","tag--salmon-outlined":"_tag--salmon-outlined_9w4m5_207","tag--salmon-text":"_tag--salmon-text_9w4m5_216","tag--orange-soft":"_tag--orange-soft_9w4m5_222","tag--orange-filled":"_tag--orange-filled_9w4m5_229","tag--orange-outlined":"_tag--orange-outlined_9w4m5_236","tag--orange-text":"_tag--orange-text_9w4m5_245","tag--pink-soft":"_tag--pink-soft_9w4m5_251","tag--pink-filled":"_tag--pink-filled_9w4m5_258","tag--pink-outlined":"_tag--pink-outlined_9w4m5_265","tag--pink-text":"_tag--pink-text_9w4m5_274","tag--yellow-soft":"_tag--yellow-soft_9w4m5_280","tag--yellow-filled":"_tag--yellow-filled_9w4m5_287","tag--yellow-outlined":"_tag--yellow-outlined_9w4m5_295","tag--yellow-text":"_tag--yellow-text_9w4m5_304","tag--darkblue-soft":"_tag--darkblue-soft_9w4m5_310","tag--darkblue-filled":"_tag--darkblue-filled_9w4m5_317","tag--darkblue-outlined":"_tag--darkblue-outlined_9w4m5_324","tag--darkblue-text":"_tag--darkblue-text_9w4m5_333","tag--lightblue-soft":"_tag--lightblue-soft_9w4m5_339","tag--lightblue-filled":"_tag--lightblue-filled_9w4m5_346","tag--lightblue-outlined":"_tag--lightblue-outlined_9w4m5_354","tag--lightblue-text":"_tag--lightblue-text_9w4m5_363","tag--mint-soft":"_tag--mint-soft_9w4m5_369","tag--mint-filled":"_tag--mint-filled_9w4m5_376","tag--mint-outlined":"_tag--mint-outlined_9w4m5_384","tag--mint-text":"_tag--mint-text_9w4m5_393"},Gx={sm:12,md:16,lg:20},Hx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 4.793a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.75 2.25a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0Zm10-1A2.75 2.75 0 0 1 16 3.293h2a2.75 2.75 0 0 1 2.75 2.75v2a2.75 2.75 0 0 1-2.75 2.75h-2a2.75 2.75 0 0 1-2.75-2.75v-2ZM16 4.793c-.69 0-1.25.56-1.25 1.25v2c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25v-2c0-.69-.56-1.25-1.25-1.25h-2ZM3.25 16.043A2.75 2.75 0 0 1 6 13.293h2a2.75 2.75 0 0 1 2.75 2.75v2A2.75 2.75 0 0 1 8 20.793H6a2.75 2.75 0 0 1-2.75-2.75v-2ZM6 14.793c-.69 0-1.25.56-1.25 1.25v2c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25v-2c0-.69-.56-1.25-1.25-1.25H6Zm11 0a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.75 2.25a3.75 3.75 0 1 1 7.5 0 3.75 3.75 0 0 1-7.5 0Z",clipRule:"evenodd"})}),Ux=(()=>{const e=p.forwardRef(Hx);return e.displayName="SvgAppsMenu",e})(),Vx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.25 6A4.75 4.75 0 0 1 12 1.25h6A4.75 4.75 0 0 1 22.75 6v6A4.75 4.75 0 0 1 18 16.75h-1.25V18A4.75 4.75 0 0 1 12 22.75H6A4.75 4.75 0 0 1 1.25 18v-6A4.75 4.75 0 0 1 6 7.25h1.25V6Zm1.5 1.25H12A4.75 4.75 0 0 1 16.75 12v3.25H18A3.25 3.25 0 0 0 21.25 12V6A3.25 3.25 0 0 0 18 2.75h-6A3.25 3.25 0 0 0 8.75 6v1.25ZM6 8.75A3.25 3.25 0 0 0 2.75 12v6A3.25 3.25 0 0 0 6 21.25h6A3.25 3.25 0 0 0 15.25 18v-6A3.25 3.25 0 0 0 12 8.75H6Z",clipRule:"evenodd"})}),Wx=(()=>{const e=p.forwardRef(Vx);return e.displayName="SvgCopy",e})(),qx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.414 9.574a.75.75 0 0 1 1.055-.117L12 13.082l4.532-3.625a.75.75 0 0 1 .936 1.172l-5 4a.75.75 0 0 1-.937 0l-5-4a.75.75 0 0 1-.117-1.055Z",clipRule:"evenodd"})}),nh=(()=>{const e=p.forwardRef(qx);return e.displayName="SvgDirectionDown01Chevron",e})(),Yx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.468 6.457a.75.75 0 0 1 .118 1.055l-3.625 4.531 3.625 4.532a.75.75 0 1 1-1.172.937l-4-5a.75.75 0 0 1 0-.938l4-5a.75.75 0 0 1 1.054-.117Zm-5.999 0a.75.75 0 0 1 .117 1.055L7.96 12.043l3.626 4.532a.75.75 0 1 1-1.172.937l-4-5a.75.75 0 0 1 0-.938l4-5a.75.75 0 0 1 1.055-.117Z",clipRule:"evenodd"})}),Zx=(()=>{const e=p.forwardRef(Yx);return e.displayName="SvgDirectionLeft",e})(),Xx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.532 6.457a.75.75 0 0 0-.118 1.055l3.626 4.531-3.626 4.532a.75.75 0 1 0 1.172.937l4-5a.75.75 0 0 0 0-.938l-4-5a.75.75 0 0 0-1.054-.117Zm5.999 0a.75.75 0 0 0-.117 1.055l3.626 4.531-3.626 4.532a.75.75 0 1 0 1.172.937l4-5a.75.75 0 0 0 0-.938l-4-5a.75.75 0 0 0-1.055-.117Z",clipRule:"evenodd"})}),Kx=(()=>{const e=p.forwardRef(Xx);return e.displayName="SvgDirectionRight",e})(),Qx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M17.586 14.511a.75.75 0 0 1-1.054.118L12 11.003 7.469 14.63a.75.75 0 1 1-.937-1.172l5-4a.75.75 0 0 1 .937 0l5 4a.75.75 0 0 1 .117 1.054Z",clipRule:"evenodd"})}),rh=(()=>{const e=p.forwardRef(Qx);return e.displayName="SvgDirectionUp01Chevron",e})(),Jx=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.515 5.848A4.75 4.75 0 0 1 8.123 2.25h3.666a4.75 4.75 0 0 1 2.635.798l1.547 1.031.037.025A2.742 2.742 0 0 1 18 3.25h2A2.75 2.75 0 0 1 22.75 6v7A2.75 2.75 0 0 1 20 15.75h-2c-.673 0-1.29-.242-1.768-.644l-3.58 6.266a.75.75 0 0 1-.652.378h-1.328c-2.596 0-4.144-2.893-2.705-5.053l.632-.947H4.562a2.75 2.75 0 0 1-2.668-3.417l1.621-6.485ZM16.75 13c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25V6c0-.69-.56-1.25-1.25-1.25h-2c-.69 0-1.25.56-1.25 1.25v7Zm-1.5-7.465a.25.25 0 0 0-.111-.208l-1.547-1.031a3.25 3.25 0 0 0-1.803-.546H8.123A3.25 3.25 0 0 0 4.97 6.212l-1.62 6.485a1.25 1.25 0 0 0 1.212 1.553H10a.75.75 0 0 1 .624 1.166l-1.408 2.113c-.776 1.163.058 2.721 1.456 2.721h.893l3.652-6.392a.25.25 0 0 0 .033-.124V5.535Z",clipRule:"evenodd"})}),ih=(()=>{const e=p.forwardRef(Jx);return e.displayName="SvgDislike",e})(),ew=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",d:"M10.9 6.908a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm6.75-11a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Zm0 5.5a1.95 1.95 0 1 1-3.9 0 1.95 1.95 0 0 1 3.9 0Z"})}),tw=(()=>{const e=p.forwardRef(ew);return e.displayName="SvgDragCustom",e})(),nw=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.75a9.25 9.25 0 1 0 0 18.5 9.25 9.25 0 0 0 0-18.5ZM1.25 12C1.25 6.063 6.063 1.25 12 1.25S22.75 6.063 22.75 12 17.937 22.75 12 22.75 1.25 17.937 1.25 12ZM12 7.75c-.69 0-1.25.56-1.25 1.25a.75.75 0 0 1-1.5 0 2.75 2.75 0 1 1 5.064 1.487 8.991 8.991 0 0 1-.562.757 64.1 64.1 0 0 1-.1.124c-.155.192-.297.367-.428.548-.324.444-.474.779-.474 1.084v.5a.75.75 0 0 1-1.5 0V13c0-.8.392-1.46.761-1.967a15.396 15.396 0 0 1 .573-.73c.185-.23.343-.432.468-.628A1.25 1.25 0 0 0 12 7.75Zm0 7.5a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"})}),oh=(()=>{const e=p.forwardRef(nw);return e.displayName="SvgHelp",e})(),rw=(e,t)=>u.jsxs("svg",{width:"140",height:"132",viewBox:"0 0 140 132",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{d:"M70.462 115.665C102.296 115.665 128.102 89.8399 128.102 57.9834C128.102 26.127 102.296 0.302246 70.462 0.302246C38.6285 0.302246 12.8223 26.127 12.8223 57.9834C12.8223 89.8399 38.6285 115.665 70.462 115.665Z",fill:"#F3F1ED"}),u.jsx("g",{filter:"url(#filter0_d_355_44078)",children:u.jsx("path",{d:"M117.694 21.9143V93.6056C117.694 96.1993 115.56 98.3353 112.968 98.3353H27.1316C24.5398 98.3353 22.4053 96.1993 22.4053 93.6056V21.9143C22.4053 19.3206 24.5398 17.1846 27.1316 17.1846H112.968C115.56 17.1846 117.694 19.3206 117.694 21.9143Z",fill:"url(#paint0_linear_355_44078)"})}),u.jsx("path",{d:"M117.694 21.9143V25.3472H22.4053V21.9143C22.4053 19.3206 24.5398 17.1846 27.1316 17.1846H112.968C115.56 17.1846 117.694 19.3206 117.694 21.9143Z",fill:"url(#paint1_linear_355_44078)"}),u.jsx("path",{d:"M27.3599 22.7536C28.1598 22.7536 28.8083 22.1047 28.8083 21.3042C28.8083 20.5037 28.1598 19.8547 27.3599 19.8547C26.56 19.8547 25.9115 20.5037 25.9115 21.3042C25.9115 22.1047 26.56 22.7536 27.3599 22.7536Z",fill:"#F3F1ED"}),u.jsx("path",{opacity:"0.6",d:"M31.8576 22.7536C32.6575 22.7536 33.306 22.1047 33.306 21.3042C33.306 20.5037 32.6575 19.8547 31.8576 19.8547C31.0576 19.8547 30.4092 20.5037 30.4092 21.3042C30.4092 22.1047 31.0576 22.7536 31.8576 22.7536Z",fill:"#F3F1ED"}),u.jsx("path",{opacity:"0.4",d:"M36.4314 22.7536C37.2314 22.7536 37.8798 22.1047 37.8798 21.3042C37.8798 20.5037 37.2314 19.8547 36.4314 19.8547C35.6315 19.8547 34.983 20.5037 34.983 21.3042C34.983 22.1047 35.6315 22.7536 36.4314 22.7536Z",fill:"#F3F1ED"}),u.jsx("path",{d:"M95.5253 57.9033H44.8824C43.3771 57.9033 42.0868 56.3142 42.0868 54.4602V37.5099C42.0868 35.656 43.3771 34.0669 44.8824 34.0669H95.5253C97.0306 34.0669 98.3209 35.656 98.3209 37.5099V54.4602C98.3209 56.3142 97.0306 57.9033 95.5253 57.9033Z",fill:"white"}),u.jsx("path",{d:"M75.538 43.9123H49.1297C48.3012 43.9123 47.5763 43.1869 47.5763 42.3578C47.5763 41.5287 48.3012 40.8032 49.1297 40.8032H75.538C76.3665 40.8032 77.0914 41.5287 77.0914 42.3578C76.9879 43.1869 76.3665 43.9123 75.538 43.9123Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M91.2787 43.9123H80.8189C79.9904 43.9123 79.2655 43.1869 79.2655 42.3578C79.2655 41.5287 79.9904 40.8032 80.8189 40.8032H91.2787C92.1072 40.8032 92.8321 41.5287 92.8321 42.3578C92.7285 43.1869 92.1072 43.9123 91.2787 43.9123Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M70.8776 51.0632H49.1296C48.3011 51.0632 47.5762 50.3377 47.5762 49.5086C47.5762 48.6796 48.3011 47.9541 49.1296 47.9541H70.8776C71.7061 47.9541 72.431 48.6796 72.431 49.5086C72.431 50.3377 71.7061 51.0632 70.8776 51.0632Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M95.5253 88.5639H44.8824C43.3771 88.5639 42.0868 86.9748 42.0868 85.1209V68.1706C42.0868 66.3166 43.3771 64.7275 44.8824 64.7275H95.5253C97.0306 64.7275 98.3209 66.3166 98.3209 68.1706V85.1209C98.3209 87.1072 97.0306 88.5639 95.5253 88.5639Z",fill:"white"}),u.jsx("path",{d:"M75.538 74.573H49.1297C48.3012 74.573 47.5763 73.8475 47.5763 73.0184C47.5763 72.1893 48.3012 71.4639 49.1297 71.4639H75.538C76.3665 71.4639 77.0914 72.1893 77.0914 73.0184C76.9879 73.9511 76.3665 74.573 75.538 74.573Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M91.2787 74.573H80.8189C79.9904 74.573 79.2655 73.8475 79.2655 73.0184C79.2655 72.1893 79.9904 71.4639 80.8189 71.4639H91.2787C92.1072 71.4639 92.8321 72.1893 92.8321 73.0184C92.7285 73.9511 92.1072 74.573 91.2787 74.573Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M70.8776 81.7238H49.1296C48.3011 81.7238 47.5762 80.9984 47.5762 80.1693C47.5762 79.3402 48.3011 78.6147 49.1296 78.6147H70.8776C71.7061 78.6147 72.431 79.3402 72.431 80.1693C72.431 81.102 71.7061 81.7238 70.8776 81.7238Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M90.788 110.64C90.4128 112.234 89.8501 113.923 89.1936 115.329C87.4115 118.8 84.5978 121.52 81.1276 123.302C77.5635 125.084 73.343 125.834 69.1224 124.896C59.1806 122.833 52.8028 113.078 54.8662 103.137C56.9296 93.1949 66.59 86.7233 76.5318 88.8805C80.0959 89.6308 83.191 91.4128 85.8171 93.8514C90.2253 98.2595 92.1011 104.637 90.788 110.64Z",fill:"url(#paint2_linear_355_44078)"}),u.jsx("path",{d:"M78.6888 105.294H74.4682V101.073C74.4682 100.229 73.8117 99.479 72.8738 99.479C72.0297 99.479 71.2794 100.136 71.2794 101.073V105.294H67.0588C66.2147 105.294 65.4644 105.951 65.4644 106.888C65.4644 107.826 66.1209 108.483 67.0588 108.483H71.2794V112.703C71.2794 113.548 71.9359 114.298 72.8738 114.298C73.7179 114.298 74.4682 113.641 74.4682 112.703V108.483H78.6888C79.5329 108.483 80.2833 107.826 80.2833 106.888C80.2833 105.951 79.5329 105.294 78.6888 105.294Z",fill:"white"}),u.jsxs("defs",{children:[u.jsxs("filter",{id:"filter0_d_355_44078",x:"0.405273",y:"6.18457",width:"139.289",height:"125.151",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44078"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44078",result:"shape"})]}),u.jsxs("linearGradient",{id:"paint0_linear_355_44078",x1:"70.0188",y1:"15.3075",x2:"70.0188",y2:"99.2101",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint1_linear_355_44078",x1:"113.915",y1:"17.1846",x2:"25.456",y2:"20.7799",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint2_linear_355_44078",x1:"89.7428",y1:"88.4654",x2:"55.5982",y2:"88.5839",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]})]})]}),iw=(()=>{const e=p.forwardRef(rw);return e.displayName="SvgIllustrationCard",e})(),ow=(e,t)=>u.jsxs("svg",{width:"178",height:"140",viewBox:"0 0 178 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[u.jsx("path",{d:"M79.2856 125C113.779 125 141.741 97.0178 141.741 62.5C141.741 27.9822 113.779 0 79.2856 0C44.7927 0 16.8306 27.9822 16.8306 62.5C16.8306 97.0178 44.7927 125 79.2856 125Z",fill:"#F3F1ED"}),u.jsx("g",{filter:"url(#filter0_d_355_44030)",children:u.jsx("path",{d:"M136.899 25.2617V101.676C136.899 104.37 134.688 106.589 132.003 106.589H27.537C24.8518 106.589 22.6404 104.37 22.6404 101.676V25.2617C22.6404 22.5676 24.8518 20.3489 27.537 20.3489H132.003C134.688 20.3489 136.899 22.5676 136.899 25.2617Z",fill:"url(#paint0_linear_355_44030)"})}),u.jsx("path",{d:"M101.244 57.0718C100.636 54.8258 99.2185 52.8862 97.1932 51.6611C94.9654 50.334 92.6363 50.1298 90.1047 49.9256C85.649 49.4152 81.092 49.3131 76.5351 49.5173C72.4845 49.6194 67.8263 49.4152 64.0794 51.1507C58.7124 53.4987 58.0035 58.7052 57.801 64.32C57.5985 68.5055 57.5985 73.5078 58.7124 77.5913C59.6238 80.8581 62.1554 83.4103 65.4972 84.1249C69.7503 85.1458 78.8642 85.35 83.3199 85.2479C83.7249 85.2479 84.13 85.2479 84.5351 85.2479C88.0793 85.1458 91.8262 85.1458 95.0667 83.9207C97.8008 83.0019 99.4211 81.3686 100.434 79.3268C101.649 76.8767 101.953 73.8141 102.054 70.4452C102.459 66.0554 102.358 61.0532 101.244 57.0718Z",fill:"url(#paint1_linear_355_44030)"}),u.jsx("path",{d:"M76.1088 61.4951C76.1088 60.1481 76.789 59.6991 77.8944 60.4175C80.8705 62.3033 83.9316 64.2788 86.9076 66.1646C88.013 66.883 88.013 67.6911 86.9076 68.4993C83.9316 70.3851 80.9555 72.3606 77.9794 74.2464C76.789 74.9648 76.1938 74.6056 76.1088 73.3484C76.1088 72.8096 76.1088 62.7522 76.1088 61.4951Z",fill:"white"}),u.jsx("path",{d:"M136.899 25.647V29.1937H22.6404V25.647C22.6404 22.9673 24.8518 20.7605 27.537 20.7605H132.003C134.688 20.7605 136.899 22.9673 136.899 25.647Z",fill:"url(#paint2_linear_355_44030)"}),u.jsx("path",{d:"M27.4345 26.514C28.261 26.514 28.9309 25.8436 28.9309 25.0165C28.9309 24.1895 28.261 23.519 27.4345 23.519C26.6081 23.519 25.9381 24.1895 25.9381 25.0165C25.9381 25.8436 26.6081 26.514 27.4345 26.514Z",fill:"#F3F1ED"}),u.jsx("path",{opacity:"0.6",d:"M32.0812 26.514C32.9077 26.514 33.5776 25.8436 33.5776 25.0165C33.5776 24.1895 32.9077 23.519 32.0812 23.519C31.2548 23.519 30.5848 24.1895 30.5848 25.0165C30.5848 25.8436 31.2548 26.514 32.0812 26.514Z",fill:"#F3F1ED"}),u.jsx("path",{opacity:"0.4",d:"M36.8068 26.514C37.6333 26.514 38.3032 25.8436 38.3032 25.0165C38.3032 24.1895 37.6333 23.519 36.8068 23.519C35.9804 23.519 35.3104 24.1895 35.3104 25.0165C35.3104 25.8436 35.9804 26.514 36.8068 26.514Z",fill:"#F3F1ED"}),u.jsx("g",{filter:"url(#filter1_d_355_44030)",children:u.jsx("rect",{x:"109.054",y:"40.6978",width:"46.5116",height:"46.5116",rx:"6",fill:"url(#paint3_linear_355_44030)"})}),u.jsx("rect",{x:"114.003",y:"45.6458",width:"36.6155",height:"36.6155",rx:"2",fill:"#EEECE6"}),u.jsx("path",{d:"M136.504 59.6813C137.352 59.6813 138.039 58.9959 138.039 58.1503C138.039 57.3048 137.352 56.6194 136.504 56.6194C135.656 56.6194 134.969 57.3048 134.969 58.1503C134.969 58.9959 135.656 59.6813 136.504 59.6813Z",fill:"#D2C8B1"}),u.jsx("path",{d:"M136.593 69.6213H124.882C124.126 69.6213 123.686 68.7468 124.126 68.1847L129.982 60.0645C130.36 59.5648 131.115 59.5648 131.493 60.0645L137.349 68.1847C137.789 68.8093 137.349 69.6213 136.593 69.6213Z",fill:"#D2C8B1"}),u.jsx("path",{opacity:"0.7",d:"M140.67 69.4556H134.907C134.031 69.4556 133.593 68.5477 134.031 67.9192L136.877 64.078C137.314 63.5193 138.117 63.5193 138.555 64.078L141.4 67.9192C142.057 68.5477 141.546 69.4556 140.67 69.4556Z",fill:"#D2C8B1"}),u.jsxs("defs",{children:[u.jsxs("filter",{id:"filter0_d_355_44030",x:"0.640381",y:"9.34888",width:"158.259",height:"130.24",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44030"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44030",result:"shape"})]}),u.jsxs("filter",{id:"filter1_d_355_44030",x:"87.0544",y:"29.6978",width:"90.5116",height:"90.5117",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44030"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44030",result:"shape"})]}),u.jsxs("linearGradient",{id:"paint0_linear_355_44030",x1:"79.7326",y1:"18.3541",x2:"79.7326",y2:"107.519",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint1_linear_355_44030",x1:"100.504",y1:"49.4188",x2:"59.0575",y2:"49.5982",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint2_linear_355_44030",x1:"132.367",y1:"20.7605",x2:"26.3591",y2:"25.7611",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint3_linear_355_44030",x1:"132.295",y1:"39.6219",x2:"132.295",y2:"87.7108",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]})]})]}),sw=(()=>{const e=p.forwardRef(ow);return e.displayName="SvgIllustrationMedia",e})(),aw=(e,t)=>u.jsxs("svg",{width:"129",height:"142",viewBox:"0 0 129 142",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[u.jsx("path",{d:"M64.5351 141.268C99.4733 141.268 127.796 112.771 127.796 77.619C127.796 42.4665 99.4733 13.9697 64.5351 13.9697C29.5969 13.9697 1.27393 42.4665 1.27393 77.619C1.27393 112.771 29.5969 141.268 64.5351 141.268Z",fill:"#F3F1ED"}),u.jsx("mask",{id:"mask0_355_44054",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"11",width:"129",height:"131",children:u.jsx("path",{d:"M64.5351 140.268C99.4733 140.268 127.796 111.771 127.796 76.619C127.796 41.4665 99.4733 12.9697 64.5351 12.9697C29.5969 12.9697 1.27393 41.4665 1.27393 76.619C1.27393 111.771 29.5969 140.268 64.5351 140.268Z",fill:"#F1F3F9",stroke:"#D6DCE8","stroke-width":"2","stroke-miterlimit":"10"})}),u.jsxs("g",{mask:"url(#mask0_355_44054)",children:[u.jsx("path",{d:"M115.351 133.619H136.97C137.369 132.335 137.688 130.971 137.848 129.686C137.848 129.526 137.928 129.285 137.928 129.125C137.928 128.964 137.928 128.804 138.007 128.643C138.406 122.864 136.412 117.085 132.662 112.831C132.583 112.751 132.583 112.751 132.503 112.671C129.232 109.059 124.685 106.49 119.181 105.928C119.021 105.928 118.861 105.928 118.702 105.848C118.542 105.848 118.383 105.848 118.144 105.848C117.745 105.848 117.426 105.848 117.027 105.848C114.394 105.848 111.841 106.33 109.528 107.213C108.73 107.534 107.932 107.855 107.214 108.256C106.975 108.417 106.736 108.497 106.496 108.657C106.257 108.818 106.098 108.898 105.858 109.059C105.699 109.139 105.539 109.299 105.38 109.38C105.22 109.46 105.06 109.62 104.901 109.701C104.662 109.861 104.422 110.102 104.103 110.263C102.587 111.467 101.231 112.831 100.114 114.356C99.9549 114.597 99.7156 114.838 99.5561 115.159C99.4763 115.319 99.3167 115.48 99.237 115.64C99.1572 115.801 98.9976 115.961 98.9179 116.202C98.7583 116.443 98.6785 116.603 98.5988 116.844C98.519 116.924 98.519 117.005 98.4392 117.085C98.3594 117.246 98.1999 117.486 98.1201 117.727C98.0403 117.888 97.9606 118.048 97.8808 118.209C94.9291 118.369 92.137 119.332 86.2337 123.265L85.2764 101.835H77.8574L77.2192 115.159C74.826 113.313 72.5125 113.553 70.917 113.634L71.3159 113.553L70.6777 100.39H58.552L57.834 116.042C55.7598 114.436 55.1216 115.239 54.4834 115.239C53.2071 115.239 52.0902 115.56 51.0531 116.122L50.4149 101.835H43.0757L42.597 113.152C39.2465 111.145 35.3376 110.022 31.2691 110.022C26.2433 110.022 21.6163 111.707 17.8669 114.517C11.0861 111.306 4.06594 112.028 -1.43851 115.159C-1.67783 115.319 -1.83738 115.399 -2.0767 115.56C-2.15648 115.64 -2.31603 115.721 -2.3958 115.721C-2.55535 115.801 -2.63512 115.881 -2.79467 115.961C-2.95422 116.042 -3.11377 116.122 -3.19355 116.282C-5.02836 117.567 -6.62385 119.092 -7.90024 120.857C-7.98002 121.018 -8.13957 121.098 -8.21934 121.259C-8.29912 121.419 -8.45867 121.5 -8.53844 121.66C-8.61821 121.821 -8.69799 121.901 -8.85754 122.061C-8.93731 122.222 -9.01709 122.382 -9.09686 122.463C-9.17664 122.543 -9.25641 122.703 -9.25641 122.784C-11.171 125.994 -12.2081 129.686 -12.2081 133.619L86.2337 143.733L115.351 133.619Z",fill:"white"}),u.jsx("path",{d:"M51.0533 116.042L50.4151 101.755H43.0759L42.5972 113.072",fill:"white"}),u.jsx("path",{d:"M51.0533 116.042L50.4151 101.755H43.0759L42.5972 113.072",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M86.1541 123.667L85.117 101.675H77.8575L77.2193 114.999L86.1541 123.667Z",fill:"white"}),u.jsx("path",{d:"M86.1541 123.667L85.117 101.675H77.8575L77.2193 114.999",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M71.3955 113.473L70.7573 100.31H58.5518L57.8338 115.721V115.962",fill:"white"}),u.jsx("path",{d:"M71.3955 113.473L70.7573 100.31H58.5518L57.8338 115.721V115.962",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M50.0162 116.764C51.2128 115.721 52.8083 115.159 54.4836 115.159C57.2757 115.159 59.6689 116.764 60.7858 119.092",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M8.85248 132.415C8.85248 119.974 18.8243 109.941 31.1894 109.941C41.4803 109.941 50.1757 116.924 52.7285 126.476",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M52.9677 126.396C53.207 122.302 56.5576 119.092 60.7058 119.092C62.2216 119.092 63.6575 119.573 64.8541 120.296",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M68.2048 114.758C69.4812 113.875 70.9171 113.393 72.5924 113.393C75.1452 113.393 77.3788 114.677 78.8148 116.523",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M115.351 133.138C115.192 131.131 114.634 129.205 113.756 127.52",stroke:"#DFDFDF","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M85.2765 125.192C88.3079 120.858 93.2539 118.048 98.8382 118.048C104.183 118.048 108.97 120.617 112.001 124.55",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M64.6944 132.897C63.8967 128.884 60.3866 125.834 56.1586 125.834C54.962 125.834 53.8451 126.075 52.808 126.556C50.8137 127.359 49.2182 128.964 48.3407 130.891",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M17.8669 114.436C17.7872 114.436 17.7872 114.436 17.8669 114.436C11.5647 111.467 4.06594 111.707 -2.0767 115.48C-2.15648 115.56 -2.31603 115.64 -2.3958 115.64C-2.55535 115.721 -2.63512 115.801 -2.79467 115.881C-3.51264 116.363 -4.15084 116.844 -4.78904 117.406C-6.22498 118.69 -7.50137 120.055 -8.53844 121.58C-8.61821 121.74 -8.69799 121.821 -8.85754 121.981C-8.93731 122.142 -9.01709 122.302 -9.09686 122.382C-9.17664 122.463 -9.25641 122.623 -9.25641 122.703C-11.0912 125.834 -12.0485 129.365 -12.2081 132.977",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M97.8012 118.048C97.881 117.888 97.9607 117.727 98.0405 117.567C99.9551 113.554 103.146 110.263 107.055 108.176C107.773 107.775 108.571 107.454 109.368 107.133C111.682 106.25 114.235 105.768 116.867 105.768C117.266 105.768 117.585 105.768 117.984 105.768C118.144 105.768 118.303 105.768 118.543 105.768C118.702 105.768 118.862 105.768 119.021 105.848C124.286 106.41 128.993 108.898 132.344 112.59C132.423 112.671 132.423 112.671 132.503 112.751C135.854 116.523 137.928 121.5 137.928 126.958C137.928 127.52 137.928 128.001 137.848 128.563C137.848 128.724 137.848 128.884 137.768 129.045C137.768 129.205 137.688 129.446 137.688 129.606C137.529 130.73 137.29 131.854 136.97 132.978",stroke:"#EEECE6","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"})]}),u.jsx("path",{d:"M32.4655 68.1476H32.1464C31.7475 68.1476 31.3487 67.8266 31.3487 67.345V67.0239C31.3487 66.7029 31.0296 66.3818 30.7105 66.3818C30.3914 66.3818 30.0723 66.7029 30.0723 67.0239V67.345C30.0723 67.7463 29.7532 68.1476 29.2745 68.1476H29.0352C28.7161 68.1476 28.397 68.4687 28.397 68.7898C28.397 69.1108 28.7161 69.4319 29.0352 69.4319H29.3543C29.7532 69.4319 30.152 69.7529 30.152 70.2345V70.5556C30.152 70.8766 30.4711 71.1977 30.7902 71.1977C31.1093 71.1977 31.4284 70.8766 31.4284 70.5556V70.2345C31.4284 69.8332 31.7475 69.4319 32.2262 69.4319H32.5453C32.8644 69.4319 33.1835 69.1108 33.1835 68.7898C33.1037 68.4687 32.8644 68.1476 32.4655 68.1476Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M28.6367 44.4702H28.3176C27.7591 44.4702 27.3603 44.0688 27.3603 43.507V43.1859C27.3603 42.7846 27.0412 42.3833 26.5625 42.3833C26.0839 42.3833 25.7648 42.7044 25.7648 43.1859V43.507C25.7648 44.0688 25.3659 44.4702 24.8075 44.4702H24.4086C24.0097 44.4702 23.6109 44.7912 23.6109 45.2728C23.6109 45.6741 23.93 46.0754 24.4086 46.0754H24.7277C25.2861 46.0754 25.685 46.4768 25.685 47.0386V47.3597C25.685 47.761 26.0041 48.1623 26.4828 48.1623C26.9614 48.1623 27.2805 47.8412 27.2805 47.3597V47.0386C27.2805 46.4768 27.6794 46.0754 28.2378 46.0754H28.5569C28.9558 46.0754 29.3546 45.7544 29.3546 45.2728C29.4344 44.8715 29.1153 44.4702 28.6367 44.4702Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M103.385 41.8215H103.146C102.827 41.8215 102.508 41.5005 102.508 41.1794V40.9386C102.508 40.6176 102.268 40.457 102.029 40.457C101.71 40.457 101.471 40.6978 101.471 40.9386V41.1794C101.471 41.5005 101.152 41.8215 100.832 41.8215H100.593C100.274 41.8215 100.114 42.0623 100.114 42.3031C100.114 42.6242 100.354 42.7847 100.593 42.7847H100.832C101.152 42.7847 101.471 43.1057 101.471 43.4268V43.6676C101.471 43.9886 101.71 44.1492 102.029 44.1492C102.348 44.1492 102.508 43.9084 102.508 43.6676V43.4268C102.508 43.1057 102.827 42.7847 103.146 42.7847H103.385C103.704 42.7847 103.864 42.5439 103.864 42.3031C103.944 42.1426 103.625 41.8215 103.385 41.8215Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M102.667 103.063H102.428C102.109 103.063 101.79 102.742 101.79 102.421V102.18C101.79 101.859 101.551 101.698 101.311 101.698C100.992 101.698 100.753 101.939 100.753 102.18V102.421C100.753 102.742 100.434 103.063 100.115 103.063H99.8754C99.5563 103.063 99.3967 103.304 99.3967 103.544C99.3967 103.785 99.636 104.026 99.8754 104.026H100.115C100.434 104.026 100.753 104.347 100.753 104.668V104.909C100.753 105.23 100.992 105.39 101.311 105.39C101.63 105.39 101.79 105.15 101.79 104.909V104.668C101.79 104.347 102.109 104.026 102.428 104.026H102.667C102.987 104.026 103.146 103.785 103.146 103.544C103.146 103.304 102.907 103.063 102.667 103.063Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M28.8758 102.581H28.6365C28.3174 102.581 27.9983 102.26 27.9983 101.939V101.698C27.9983 101.377 27.759 101.217 27.5196 101.217C27.2005 101.217 26.9612 101.458 26.9612 101.698V101.939C26.9612 102.26 26.6421 102.581 26.323 102.581H26.0837C25.7646 102.581 25.605 102.822 25.605 103.063C25.605 103.384 25.8444 103.544 26.0837 103.544H26.323C26.6421 103.544 26.9612 103.866 26.9612 104.187V104.427C26.9612 104.748 27.2005 104.909 27.5196 104.909C27.8387 104.909 27.9983 104.668 27.9983 104.427V104.187C27.9983 103.866 28.3174 103.544 28.6365 103.544H28.8758C29.1949 103.544 29.3544 103.304 29.3544 103.063C29.4342 102.822 29.1151 102.581 28.8758 102.581Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M16.0323 77.619C15.075 77.619 14.2773 76.8164 14.2773 75.8532C14.2773 74.89 15.075 74.0874 16.0323 74.0874C16.9896 74.0874 17.7873 74.89 17.7873 75.8532C17.7873 76.8164 16.9896 77.619 16.0323 77.619ZM16.0323 75.0506C15.6334 75.0506 15.2345 75.3716 15.2345 75.8532C15.2345 76.2545 15.5536 76.6558 16.0323 76.6558C16.4312 76.6558 16.83 76.3348 16.83 75.8532C16.9098 75.4519 16.5109 75.0506 16.0323 75.0506Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M97.8008 65.6597C96.2851 65.6597 95.1683 64.4558 95.1683 63.011C95.1683 61.5663 96.3649 60.3623 97.8008 60.3623C99.3166 60.3623 100.433 61.5663 100.433 63.011C100.433 64.4558 99.2368 65.6597 97.8008 65.6597ZM97.8008 61.8071C97.1626 61.8071 96.5244 62.3689 96.5244 63.0913C96.5244 63.8136 97.0829 64.3755 97.8008 64.3755C98.439 64.3755 99.0772 63.8136 99.0772 63.0913C99.0772 62.3689 98.5188 61.8071 97.8008 61.8071Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M113.756 56.9912C113.118 56.9912 112.559 57.4728 112.559 58.1952C112.559 58.9175 113.038 59.3991 113.756 59.3991C114.394 59.3991 114.952 58.9175 114.952 58.1952C114.952 57.4728 114.394 56.9912 113.756 56.9912Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M113.836 84.6019H113.517C113.038 84.6019 112.719 84.2006 112.719 83.7993V83.4782C112.719 83.0769 112.4 82.7559 112.001 82.7559C111.602 82.7559 111.283 83.0769 111.283 83.4782V83.7993C111.283 84.2809 110.884 84.6019 110.485 84.6019H110.166C109.767 84.6019 109.448 84.923 109.448 85.3243C109.448 85.7256 109.767 86.0467 110.166 86.0467H110.485C110.964 86.0467 111.283 86.448 111.283 86.8493V87.1704C111.283 87.5717 111.602 87.8927 112.001 87.8927C112.4 87.8927 112.719 87.5717 112.719 87.1704V86.8493C112.719 86.3677 113.118 86.0467 113.517 86.0467H113.836C114.235 86.0467 114.554 85.7256 114.554 85.3243C114.474 84.923 114.235 84.6019 113.836 84.6019Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M69.4811 95.6543H59.5093L57.4352 97.0188C57.0363 97.3398 56.797 97.7412 56.797 98.303V99.6675H72.5126V98.3833C72.5126 97.8214 72.2732 97.3398 71.7946 97.099L69.4811 95.6543Z",fill:"url(#paint0_linear_355_44054)"}),u.jsx("path",{d:"M73.1505 100.31C73.1505 100.631 72.9112 100.952 72.5123 100.952H56.5574C56.2383 100.952 55.9192 100.711 55.9192 100.31C55.9192 99.989 56.1585 99.668 56.5574 99.668H72.5123C72.8314 99.668 73.1505 99.989 73.1505 100.31Z",fill:"white",stroke:"#DFDFDF","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M51.5317 101.755H41.7992C41.5599 101.755 41.4003 101.594 41.4003 101.353C41.4003 101.113 41.5599 100.952 41.7992 100.952H51.5317C51.771 100.952 51.9306 101.113 51.9306 101.353C51.8508 101.594 51.6912 101.755 51.5317 101.755Z",fill:"url(#paint1_linear_355_44054)"}),u.jsx("path",{d:"M50.9733 99.427C51.2126 99.5875 51.4519 99.9086 51.4519 100.23V101.032H41.879V100.23C41.879 99.9086 42.0385 99.5875 42.2779 99.427L43.5543 98.5441V95.0928H49.6171V98.6244L50.9733 99.427Z",fill:"url(#paint2_linear_355_44054)"}),u.jsx("path",{d:"M47.3039 17.6383C46.905 17.3172 46.3466 17.3172 46.0275 17.6383C44.2725 19.1633 41.4803 24.5409 41.4803 30.2397V97.4205C41.4803 98.0627 41.959 98.5442 42.5972 98.5442H46.6657H50.7342C51.3724 98.5442 51.851 98.0627 51.851 97.4205V30.3199C51.851 24.5409 49.0589 19.2435 47.3039 17.6383Z",fill:"url(#paint3_linear_355_44054)"}),u.jsx("path",{d:"M65.6518 0.30099C64.7743 -0.10033 63.4979 -0.10033 62.6204 0.30099C58.4721 2.38785 51.8508 12.2603 51.8508 20.0459C51.8508 28.8749 51.8508 94.4505 51.8508 94.4505H64.1361H76.4214C76.4214 94.4505 76.4214 28.8749 76.4214 20.0459C76.3416 12.2603 69.8001 2.46811 65.6518 0.30099Z",fill:"url(#paint4_linear_355_44054)"}),u.jsx("path",{d:"M57.2756 28.9551H76.4215",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M51.8508 28.9551H54.1643",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M46.9047 31.2026H51.8507",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M41.4003 31.2026H43.5542",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M45.3892 45.0884H51.8509",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M86.4729 101.755H76.7404C76.501 101.755 76.3415 101.594 76.3415 101.353C76.3415 101.113 76.501 100.952 76.7404 100.952H86.4729C86.7122 100.952 86.8717 101.113 86.8717 101.353C86.792 101.594 86.6324 101.755 86.4729 101.755Z",fill:"url(#paint5_linear_355_44054)"}),u.jsx("path",{d:"M85.9945 99.427C86.2338 99.5875 86.4731 99.9086 86.4731 100.23V101.032H76.9002V100.23C76.9002 99.9086 77.0597 99.5875 77.299 99.427L78.5754 98.5441V95.0928H84.6383V98.6244L85.9945 99.427Z",fill:"url(#paint6_linear_355_44054)"}),u.jsx("path",{d:"M82.2451 17.6383C81.8462 17.3172 81.2878 17.3172 80.9687 17.6383C79.2137 19.1633 76.4215 24.5409 76.4215 30.2397V97.4205C76.4215 98.0627 76.9002 98.5442 77.5384 98.5442H81.6069H85.6754C86.3136 98.5442 86.7922 98.0627 86.7922 97.4205V30.3199C86.7922 24.5409 84.0001 19.2435 82.2451 17.6383Z",fill:"url(#paint7_linear_355_44054)"}),u.jsx("path",{d:"M80.5699 31.2026H86.8721",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M81.0486 45.0884H86.7923",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("path",{d:"M76.3415 45.0884H78.5752",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linejoin":"round"}),u.jsx("g",{filter:"url(#filter0_d_355_44054)",children:u.jsx("path",{d:"M57.0362 40.192L57.5149 38.2657L58.7913 37.9447L60.9452 37.4631L61.1845 37.3828L61.344 40.192L64.4552 86.3438L57.7542 95.6544L55.1216 95.1728L36.6139 91.9623C35.4971 91.8017 34.6196 90.7583 34.6196 89.6346V80.8858C34.6196 79.8424 35.0184 78.799 35.7364 78.0766L48.1812 65.3949C50.1756 63.308 51.6913 60.7396 52.4093 58.0106L55.0419 47.8974L57.0362 40.192Z",fill:"url(#paint8_linear_355_44054)"})}),u.jsx("g",{filter:"url(#filter1_d_355_44054)",children:u.jsx("path",{d:"M94.53 80.8858V89.6346C94.53 90.7583 93.7323 91.8017 92.5357 91.9623L78.6549 94.3702L71.3954 95.6544L64.6146 86.3438L67.9651 37.3828L68.2044 37.4631L70.3584 37.9447L71.6347 38.2657L76.2617 55.8435L76.8201 58.0106C77.5381 60.8199 78.974 63.3883 81.0481 65.3949L93.493 78.0766C94.1312 78.799 94.53 79.8424 94.53 80.8858Z",fill:"url(#paint9_linear_355_44054)"})}),u.jsx("g",{filter:"url(#filter2_d_355_44054)",children:u.jsx("path",{d:"M71.6351 35.6974V94.5308H57.2756V35.6974C57.2756 33.1289 57.8341 30.6407 58.8711 28.3131C59.1104 27.9118 59.27 27.4302 59.5093 27.0289L62.5408 21.9722C63.4183 20.5275 65.4126 20.5275 66.2902 21.9722L69.3216 27.0289C69.5609 27.4302 69.8002 27.9118 69.9598 28.3131C71.0766 30.6407 71.6351 33.2092 71.6351 35.6974Z",fill:"url(#paint10_linear_355_44054)"})}),u.jsx("path",{d:"M70.0396 28.3131C69.5609 27.5104 68.6834 27.0289 67.6464 27.0289H61.2644C60.3071 27.0289 59.4296 27.5104 58.8712 28.3131C59.1105 27.9118 59.27 27.4302 59.5094 27.0289L62.5408 21.9722C63.4183 20.5275 65.4127 20.5275 66.2902 21.9722L69.3216 27.0289C69.5609 27.4302 69.88 27.9118 70.0396 28.3131Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M68.1248 35.1354C68.1248 35.3762 67.8057 35.5367 67.6462 35.2959C67.2473 34.8144 66.6889 34.5736 65.9709 34.5736H62.8597C62.2215 34.5736 61.6631 34.8144 61.2642 35.2959C61.2642 35.2959 61.2642 35.2959 61.1844 35.3762C61.0249 35.617 60.7058 35.4565 60.7058 35.2157C60.7058 34.9749 60.7058 34.7341 60.7058 34.413C60.7058 33.2091 61.6631 32.3262 62.8597 32.3262H65.9709C66.0507 32.3262 66.1305 32.3262 66.2102 32.3262C66.5293 32.3262 66.7686 32.4867 67.0877 32.567C67.7259 32.9683 68.1248 33.6104 68.1248 34.413C68.1248 34.6538 68.1248 34.8946 68.1248 35.1354Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M60.7056 82.0098H58.9506C56.7967 82.0098 55.1214 83.7756 55.1214 85.8624V95.6546H64.6146V85.8624C64.5348 83.7756 62.7798 82.0098 60.7056 82.0098Z",fill:"url(#paint11_linear_355_44054)"}),u.jsx("path",{d:"M70.1193 82.0098H68.3642C66.2103 82.0098 64.5351 83.7756 64.5351 85.8624V95.6546H74.0282V85.8624C73.9485 83.7756 72.1934 82.0098 70.1193 82.0098Z",fill:"url(#paint12_linear_355_44054)"}),u.jsx("path",{d:"M69.4811 95.6543H59.5093L57.4352 97.0188C57.0363 97.3398 56.797 97.7412 56.797 98.303V99.6675H72.5126V98.3833C72.5126 97.8214 72.2732 97.3398 71.7946 97.099L69.4811 95.6543Z",fill:"url(#paint13_linear_355_44054)"}),u.jsx("path",{d:"M73.1505 100.31C73.1505 100.631 72.9112 100.952 72.5123 100.952H56.5574C56.2383 100.952 55.9192 100.711 55.9192 100.31C55.9192 99.989 56.1585 99.668 56.5574 99.668H72.5123C72.8314 99.668 73.1505 99.989 73.1505 100.31Z",fill:"url(#paint14_linear_355_44054)"}),u.jsx("rect",{x:"64.5083",y:"75",width:"2",height:"21",rx:"1",fill:"#DFDFDF"}),u.jsxs("defs",{children:[u.jsxs("filter",{id:"filter0_d_355_44054",x:"12.6196",y:"26.3828",width:"73.8357",height:"102.271",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44054"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44054",result:"shape"})]}),u.jsxs("filter",{id:"filter1_d_355_44054",x:"42.6146",y:"26.3828",width:"73.9154",height:"102.271",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44054"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44054",result:"shape"})]}),u.jsxs("filter",{id:"filter2_d_355_44054",x:"35.2756",y:"9.88867",width:"58.3594",height:"117.642",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44054"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44054",result:"shape"})]}),u.jsxs("linearGradient",{id:"paint0_linear_355_44054",x1:"71.8892",y1:"95.6543",x2:"57.2787",y2:"95.8535",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint1_linear_355_44054",x1:"51.5129",y1:"100.952",x2:"41.7417",y2:"101.398",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint2_linear_355_44054",x1:"51.0722",y1:"95.0928",x2:"42.1711",y2:"95.1427",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint3_linear_355_44054",x1:"51.4397",y1:"17.3976",x2:"41.7965",y2:"17.4019",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint4_linear_355_44054",x1:"75.4467",y1:"0.000197722",x2:"52.5998",y2:"0.0208906",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint5_linear_355_44054",x1:"86.454",y1:"100.952",x2:"76.6829",y2:"101.398",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint6_linear_355_44054",x1:"86.0934",y1:"95.0928",x2:"77.1923",y2:"95.1427",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint7_linear_355_44054",x1:"86.3809",y1:"17.3976",x2:"76.7377",y2:"17.4019",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint8_linear_355_44054",x1:"49.5277",y1:"36.0349",x2:"49.5277",y2:"96.2826",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint9_linear_355_44054",x1:"79.5626",y1:"36.0349",x2:"79.5626",y2:"96.2826",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint10_linear_355_44054",x1:"64.4507",y1:"19.1853",x2:"64.4507",y2:"95.3247",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint11_linear_355_44054",x1:"59.8649",y1:"81.6941",x2:"59.8649",y2:"95.8017",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint12_linear_355_44054",x1:"69.2786",y1:"81.6941",x2:"69.2786",y2:"95.8017",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]}),u.jsxs("linearGradient",{id:"paint13_linear_355_44054",x1:"71.8892",y1:"95.6543",x2:"57.2787",y2:"95.8535",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]}),u.jsxs("linearGradient",{id:"paint14_linear_355_44054",x1:"72.467",y1:"99.668",x2:"56.4793",y2:"100.415",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#DDD6C4"}),u.jsx("stop",{offset:"1","stop-color":"#C5BFB0"})]})]})]}),lw=(()=>{const e=p.forwardRef(aw);return e.displayName="SvgIllustrationLaunch",e})(),cw=(e,t)=>u.jsxs("svg",{width:"143",height:"154",viewBox:"0 0 143 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[u.jsx("path",{d:"M60.2972 119.867C93.3732 119.867 120.187 93.1019 120.187 60.0849C120.187 27.0678 93.3732 0.302246 60.2972 0.302246C27.2211 0.302246 0.407715 27.0678 0.407715 60.0849C0.407715 93.1019 27.2211 119.867 60.2972 119.867Z",fill:"#F3F1ED"}),u.jsx("path",{d:"M31.679 85.172C30.9662 85.172 30.2863 85.03 29.6649 84.7735L29.2833 85.6979C27.7504 85.0651 26.5176 83.846 25.8749 82.3283L26.7958 81.9384C26.5342 81.3205 26.3895 80.6443 26.3895 79.9357V77.4544H25.3895V72.4917H26.3895V67.529H25.3895V62.5663H26.3895V57.6037H25.3895V52.641H26.3895V47.6783H25.3895V42.7157H26.3895V40.2343C26.3895 39.5257 26.5342 38.8495 26.7958 38.2316L25.8749 37.8417C26.5176 36.324 27.7504 35.1049 29.2833 34.4722L29.6649 35.3965C30.2863 35.14 30.9662 34.998 31.679 34.998H34.0966V33.998H38.9318V34.998H43.767V33.998H48.6022V34.998H53.4374V33.998H58.2726V34.998H63.1078V33.998H67.943V34.998H72.7782V33.998H77.6134V34.998H82.4487V33.998H87.2839V34.998H89.7015C90.4142 34.998 91.0942 35.14 91.7156 35.3965L92.0971 34.4722C93.63 35.1049 94.8629 36.324 95.5055 37.8417L94.5847 38.2316C94.8463 38.8495 94.9909 39.5257 94.9909 40.2343V42.7212H95.9909V47.6948H94.9909V52.6684H95.9909V57.6421H94.9909V62.6157H95.9909V67.5894H94.9909V72.5631H95.9909V77.5367H94.9909V80.0235C94.9909 80.7383 94.8492 81.4119 94.5933 82.0212L95.5153 82.4085C94.8806 83.9197 93.6532 85.1161 92.0944 85.7269L91.7296 84.7958C91.1131 85.0373 90.4302 85.172 89.7015 85.172H87.2839V86.172H82.4487V85.172H77.6134V86.172H72.7782V85.172H67.943V86.172H63.1078V85.172H58.2726V86.172H53.4374V85.172H48.6022V86.172H43.767V85.172H38.9318V86.172H34.0966V85.172H31.679Z",fill:"#EEECE6",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-dasharray":"5.01 5.01"}),u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M54.7164 65.4389C54.7164 64.7939 55.264 64.271 55.9394 64.271H66.5274C67.2029 64.271 67.7505 64.7939 67.7505 65.4389C67.7505 66.0839 67.2029 66.6068 66.5274 66.6068H55.9394C55.264 66.6068 54.7164 66.0839 54.7164 65.4389Z",fill:"#D2C8B1"}),u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M61.1886 51.7284C61.8641 51.7284 62.4117 52.2513 62.4117 52.8963V61.1168C62.4117 61.7618 61.8641 62.2847 61.1886 62.2847C60.5131 62.2847 59.9655 61.7618 59.9655 61.1168V52.8963C59.9655 52.2513 60.5131 51.7284 61.1886 51.7284Z",fill:"#D2C8B1"}),u.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M60.3252 51.7304C60.7997 51.2784 61.5669 51.2754 62.0454 51.7235L67.3839 56.7236C67.8661 57.1753 67.8736 57.9147 67.4005 58.3752C66.9275 58.8357 66.1532 58.8428 65.6709 58.3912L61.1962 54.2L56.8032 58.3843C56.325 58.8398 55.5506 58.8389 55.0735 58.3822C54.5965 57.9255 54.5974 57.1861 55.0757 56.7305L60.3252 51.7304Z",fill:"#D2C8B1"}),u.jsx("g",{filter:"url(#filter0_d_355_44074)",children:u.jsx("path",{d:"M115.05 120.656H60.406C57.1524 120.656 54.4828 117.991 54.4828 114.743V77.0186C54.4828 73.7708 57.1524 71.106 60.406 71.106H115.05C118.304 71.106 120.973 73.7708 120.973 77.0186V114.743C120.973 117.991 118.304 120.656 115.05 120.656Z",fill:"url(#paint0_linear_355_44074)"})}),u.jsx("path",{d:"M120.29 107.6C121.273 107.6 122.059 108.387 122.059 109.37V120.778C122.059 123.335 120.094 125.302 117.539 125.302H110.07C109.284 125.302 108.498 125.105 108.105 124.515C106.336 122.942 102.601 119.795 101.815 118.615C101.619 118.221 101.422 118.025 101.422 117.631V115.074C101.422 113.501 102.601 112.321 104.174 112.321H105.156V117.238H105.746V107.01C105.746 106.027 106.532 105.24 107.515 105.24C108.498 105.24 109.284 106.027 109.284 107.01V108.977H109.873V106.42C109.873 105.437 110.66 104.65 111.642 104.65C112.625 104.65 113.411 105.437 113.411 106.42V108.977H114.197V107.6C114.197 106.617 114.984 105.83 115.966 105.83C116.949 105.83 117.735 106.617 117.735 107.6V108.977H118.521C118.718 108.19 119.308 107.6 120.29 107.6Z",fill:"white",stroke:"#D2C8B1","stroke-width":"2","stroke-miterlimit":"10","stroke-linecap":"round","stroke-linejoin":"round"}),u.jsx("path",{d:"M92.1912 93.3411C93.3431 93.3411 94.2768 92.409 94.2768 91.2592C94.2768 90.1094 93.3431 89.1772 92.1912 89.1772C91.0393 89.1772 90.1055 90.1094 90.1055 91.2592C90.1055 92.409 91.0393 93.3411 92.1912 93.3411Z",fill:"#DFDFDF"}),u.jsx("path",{d:"M92.5252 104.417H77.0079C76.0068 104.417 75.4229 103.251 76.0068 102.501L83.7655 91.6754C84.266 91.0092 85.2671 91.0092 85.7677 91.6754L93.5263 102.501C94.1103 103.334 93.5263 104.417 92.5252 104.417Z",fill:"#DFDFDF"}),u.jsx("path",{opacity:"0.7",d:"M97.8643 104.25H91.2736C90.2725 104.25 89.7719 103.168 90.2725 102.418L93.5261 97.838C94.0267 97.1718 94.9443 97.1718 95.4449 97.838L98.6985 102.418C99.4494 103.168 98.8654 104.25 97.8643 104.25Z",fill:"#D2C8B1"}),u.jsxs("defs",{children:[u.jsxs("filter",{id:"filter0_d_355_44074",x:"32.4828",y:"60.106",width:"110.491",height:"93.55",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[u.jsx("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),u.jsx("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),u.jsx("feOffset",{dy:"11"}),u.jsx("feGaussianBlur",{stdDeviation:"11"}),u.jsx("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0"}),u.jsx("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_355_44074"}),u.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_355_44074",result:"shape"})]}),u.jsxs("linearGradient",{id:"paint0_linear_355_44074",x1:"87.7064",y1:"69.9598",x2:"87.7064",y2:"121.19",gradientUnits:"userSpaceOnUse",children:[u.jsx("stop",{"stop-color":"#FCFCFC"}),u.jsx("stop",{offset:"0.9964","stop-color":"#F7F7F7"})]})]})]}),dw=(()=>{const e=p.forwardRef(cw);return e.displayName="SvgIllustrationUpload",e})(),uw=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 2.792a3.25 3.25 0 0 0-3.25 3.25v7.616l2.627 1.891a3.25 3.25 0 0 0 4.073-.221l4.096-3.687a4.75 4.75 0 0 1 5.953-.324l1.751 1.26v-2.535a.75.75 0 1 1 1.5 0v8a4.75 4.75 0 0 1-4.75 4.75H6a4.75 4.75 0 0 1-4.75-4.75v-12A4.75 4.75 0 0 1 6 1.292h8a.75.75 0 0 1 0 1.5H6ZM2.75 15.506v2.536A3.25 3.25 0 0 0 6 21.292h12a3.25 3.25 0 0 0 3.25-3.25v-3.616l-2.627-1.891a3.25 3.25 0 0 0-4.073.221l-4.096 3.687a4.75 4.75 0 0 1-5.953.324l-1.75-1.26ZM17.763 2.22a1.75 1.75 0 0 1 2.474 0l1.293 1.293a.75.75 0 1 1-1.06 1.06l-.72-.72v4.19a.75.75 0 0 1-1.5 0v-4.19l-.72.72a.75.75 0 0 1-1.06-1.06l1.293-1.293ZM8.5 6.792a1.75 1.75 0 1 0 0 3.5 1.75 1.75 0 0 0 0-3.5Zm-3.25 1.75a3.25 3.25 0 1 1 6.5 0 3.25 3.25 0 0 1-6.5 0Z",clipRule:"evenodd"})}),fw=(()=>{const e=p.forwardRef(uw);return e.displayName="SvgImageUpload00",e})(),pw=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.349 2.628A.75.75 0 0 1 12 2.25h1.329c2.595 0 4.144 2.893 2.704 5.053l-.632.947h4.037a2.75 2.75 0 0 1 2.668 3.417l-1.62 6.485a4.75 4.75 0 0 1-4.61 3.598h-3.665a4.75 4.75 0 0 1-2.635-.798l-1.108-.738A2.75 2.75 0 0 1 6 21.75H4A2.75 2.75 0 0 1 1.25 19v-9A2.75 2.75 0 0 1 4 7.25h2c.859 0 1.626.394 2.13 1.01l3.219-5.632ZM8.75 10.266v8.199a.25.25 0 0 0 .111.208l1.547 1.031a3.25 3.25 0 0 0 1.803.546h3.666a3.25 3.25 0 0 0 3.153-2.462l1.621-6.485a1.25 1.25 0 0 0-1.213-1.553H14a.75.75 0 0 1-.624-1.166l1.409-2.113c.775-1.163-.059-2.721-1.456-2.721h-.894l-3.652 6.392a.25.25 0 0 0-.033.124ZM7.25 10c0-.69-.56-1.25-1.25-1.25H4c-.69 0-1.25.56-1.25 1.25v9c0 .69.56 1.25 1.25 1.25h2c.69 0 1.25-.56 1.25-1.25v-9Z",clipRule:"evenodd"})}),sh=(()=>{const e=p.forwardRef(pw);return e.displayName="SvgLike",e})(),hw=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.65 9.392a.75.75 0 0 1 0 1.06l-4.242 4.243a.75.75 0 0 1-1.06-1.06l4.242-4.243a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M18.136 5.907a3.964 3.964 0 0 0-5.606 0l-1.666 1.667a.75.75 0 1 1-1.061-1.06l1.666-1.668a5.464 5.464 0 0 1 7.728 7.728L17.53 14.24a.75.75 0 1 1-1.06-1.061l1.666-1.667a3.964 3.964 0 0 0 0-5.606ZM5.862 18.18a3.964 3.964 0 0 0 5.606 0l1.667-1.667a.75.75 0 0 1 1.06 1.06L12.53 19.24a5.464 5.464 0 1 1-7.727-7.727l1.666-1.667a.75.75 0 1 1 1.06 1.06l-1.666 1.667a3.964 3.964 0 0 0 0 5.607Z",clipRule:"evenodd"})]}),ah=(()=>{const e=p.forwardRef(hw);return e.displayName="SvgLink",e})(),gw=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",d:"M18.82 4.12a.75.75 0 0 1 1.133.976l-.072.084-.72.72a.75.75 0 0 1-1.134-.976l.073-.084.72-.72Zm-.737 8.966a.75.75 0 0 1 .977-.066l.084.073.76.77a.75.75 0 0 1-.984 1.127l-.084-.073-.76-.77a.75.75 0 0 1 .007-1.06ZM9.11 4.12a.75.75 0 0 1 .976-.073l.085.073.72.72a.75.75 0 0 1-.977 1.133L9.83 5.9l-.72-.72a.75.75 0 0 1 0-1.06Z"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m2.263 17.849 9.577-9.581a1.749 1.749 0 0 1 2.475 0l1.412 1.413a1.75 1.75 0 0 1 0 2.475l-9.577 9.58a1.749 1.749 0 0 1-2.475.001l-1.412-1.413a1.75 1.75 0 0 1 0-2.475Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",d:"M14.49 1.75a.75.75 0 0 1 .743.648l.007.102v1.02a.75.75 0 0 1-1.493.102l-.007-.102V2.5a.75.75 0 0 1 .75-.75Zm7.01 7.01a.75.75 0 0 1 .102 1.493l-.102.007h-1.02a.75.75 0 0 1-.102-1.493l.102-.007h1.02Z"})]}),lh=(()=>{const e=p.forwardRef(gw);return e.displayName="SvgMagicWandGenerativeCustom",e})(),mw=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2.793a9.25 9.25 0 1 0 0 18.5 9.25 9.25 0 0 0 0-18.5Zm-10.75 9.25c0-5.937 4.813-10.75 10.75-10.75s10.75 4.813 10.75 10.75-4.813 10.75-10.75 10.75S1.25 17.98 1.25 12.043Zm7.391-3.359a.75.75 0 0 1 1.061 0L12 10.982l2.298-2.298a.75.75 0 0 1 1.06 1.06l-2.297 2.299 2.298 2.298a.75.75 0 1 1-1.06 1.06L12 13.105l-2.298 2.298a.75.75 0 0 1-1.06-1.06l2.297-2.3-2.298-2.297a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})}),vw=(()=>{const e=p.forwardRef(mw);return e.displayName="SvgMultiplyCircleEdu",e})(),bw=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15.712 3.329a3.537 3.537 0 0 1 5.002 5.002L9.26 19.786a4.702 4.702 0 0 1-2.446 1.295l-3.673.699a.75.75 0 0 1-.877-.877l.7-3.673a4.702 4.702 0 0 1 1.294-2.446L15.712 3.33Zm3.941 1.06a2.037 2.037 0 0 0-2.88 0l-1.405 1.406 2.88 2.88 1.405-1.405a2.037 2.037 0 0 0 0-2.88Zm-2.465 5.347-2.881-2.88-8.99 8.99a3.202 3.202 0 0 0-.881 1.664l-.493 2.59 2.59-.493a3.202 3.202 0 0 0 1.665-.881l8.99-8.99Z",clipRule:"evenodd"})}),_w=(()=>{const e=p.forwardRef(bw);return e.displayName="SvgPencilEdu",e})(),xw=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 5.25a.75.75 0 0 1 .75.75v5.25H18a.75.75 0 0 1 0 1.5h-5.25V18a.75.75 0 0 1-1.5 0v-5.25H6a.75.75 0 0 1 0-1.5h5.25V6a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"})}),ww=(()=>{const e=p.forwardRef(xw);return e.displayName="SvgPlusAdd",e})(),Ew=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.227 7.227a.75.75 0 0 1 1.061 0l3.713 3.713 3.712-3.712a.75.75 0 1 1 1.06 1.06l-3.712 3.713 3.712 3.712a.75.75 0 1 1-1.06 1.06L12 13.061l-3.713 3.712a.75.75 0 1 1-1.06-1.06L10.94 12 7.227 8.288a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})}),Bd=(()=>{const e=p.forwardRef(Ew);return e.displayName="SvgRemoveClose",e})(),yw=(e,t)=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.782 2.475A2.75 2.75 0 0 1 11.07 1.25h1.86c.92 0 1.778.46 2.288 1.225L16.4 4.25H21a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1 0-1.5h4.599l1.183-1.775Zm.62 1.775h5.197l-.63-.943a1.25 1.25 0 0 0-1.04-.557H11.07a1.25 1.25 0 0 0-1.04.557l-.629.943ZM5 7.25a.75.75 0 0 1 .75.75v10A3.25 3.25 0 0 0 9 21.25h6A3.25 3.25 0 0 0 18.25 18V8a.75.75 0 0 1 1.5 0v10A4.75 4.75 0 0 1 15 22.75H9A4.75 4.75 0 0 1 4.25 18V8A.75.75 0 0 1 5 7.25Zm5 3a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75Zm4 0a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"})}),zd=(()=>{const e=p.forwardRef(yw);return e.displayName="SvgTrash",e})(),Cw=(e,t)=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24",ref:t,...e,children:[u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.47 6.573a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1-1.06 1.06l-1.72-1.72v10.19a.75.75 0 0 1-1.5 0V4.853l-1.72 1.72a.75.75 0 0 1-1.06 0Z",clipRule:"evenodd"}),u.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 21.793a4.75 4.75 0 0 1-4.75-4.75v-4A4.75 4.75 0 0 1 7 8.293h.5a.75.75 0 0 1 0 1.5H7a3.25 3.25 0 0 0-3.25 3.25v4A3.25 3.25 0 0 0 7 20.293h10a3.25 3.25 0 0 0 3.25-3.25v-4A3.25 3.25 0 0 0 17 9.793h-.5a.75.75 0 0 1 0-1.5h.5a4.75 4.75 0 0 1 4.75 4.75v4a4.75 4.75 0 0 1-4.75 4.75H7Z",clipRule:"evenodd"})]}),Tw=(()=>{const e=p.forwardRef(Cw);return e.displayName="SvgUpload",e})(),Mn=p.forwardRef((e,t)=>{const{label:n,color:r="gray",variant:i="soft",fontWeight:s="semibold",closeIcon:l=!0,renderIcon:c,onCloseIconClicked:d,className:f,iconSize:m="sm",...g}=e,v=Gx[m];return u.jsxs("div",{ref:t,className:se(_s.tag,_s[`tag--${r}-${i}`],f),...g,children:[c&&u.jsx("span",{className:_s["tag--icon-container"],children:c({width:v,height:v})}),u.jsx(Pi,{variant:"tag",fontWeight:s,className:_s["tag--label"],children:n}),l?u.jsx("button",{className:_s["tag-close"],onClick:d,children:u.jsx(Bd,{width:12,height:12,className:"cursor-pointer"})}):null]})});Mn.displayName="Tag";const Gd=p.forwardRef((e,t)=>p.createElement(Re.span,ae({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Sw=Gd,[Ga,Rk]=zt("Tooltip",[_o]),Hd=_o(),Iw="TooltipProvider",Aw=700,Ud="tooltip.open",[Ow,Vd]=Ga(Iw),$w=e=>{const{__scopeTooltip:t,delayDuration:n=Aw,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,[l,c]=p.useState(!0),d=p.useRef(!1),f=p.useRef(0);return p.useEffect(()=>{const m=f.current;return()=>window.clearTimeout(m)},[]),p.createElement(Ow,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(f.current),c(!1)},[]),onClose:p.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:p.useCallback(m=>{d.current=m},[]),disableHoverableContent:i},s)},Wd="Tooltip",[Dw,Ha]=Ga(Wd),Mw=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:l,delayDuration:c}=e,d=Vd(Wd,e.__scopeTooltip),f=Hd(t),[m,g]=p.useState(null),v=Kn(),b=p.useRef(0),w=l??d.disableHoverableContent,_=c??d.delayDuration,E=p.useRef(!1),[y=!1,T]=mn({prop:r,defaultProp:i,onChange:N=>{N?(d.onOpen(),document.dispatchEvent(new CustomEvent(Ud))):d.onClose(),s==null||s(N)}}),S=p.useMemo(()=>y?E.current?"delayed-open":"instant-open":"closed",[y]),O=p.useCallback(()=>{window.clearTimeout(b.current),E.current=!1,T(!0)},[T]),I=p.useCallback(()=>{window.clearTimeout(b.current),T(!1)},[T]),M=p.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{E.current=!0,T(!0)},_)},[_,T]);return p.useEffect(()=>()=>window.clearTimeout(b.current),[]),p.createElement(hd,f,p.createElement(Dw,{scope:t,contentId:v,open:y,stateAttribute:S,trigger:m,onTriggerChange:g,onTriggerEnter:p.useCallback(()=>{d.isOpenDelayed?M():O()},[d.isOpenDelayed,M,O]),onTriggerLeave:p.useCallback(()=>{w?I():window.clearTimeout(b.current)},[I,w]),onOpen:O,onClose:I,disableHoverableContent:w},n))},ch="TooltipTrigger",dh=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Ha(ch,n),s=Vd(ch,n),l=Hd(n),c=p.useRef(null),d=et(t,c,i.onTriggerChange),f=p.useRef(!1),m=p.useRef(!1),g=p.useCallback(()=>f.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),p.createElement(gd,ae({asChild:!0},l),p.createElement(Re.button,ae({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r,{ref:d,onPointerMove:we(e.onPointerMove,v=>{v.pointerType!=="touch"&&!m.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:we(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:we(e.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:we(e.onFocus,()=>{f.current||i.onOpen()}),onBlur:we(e.onBlur,i.onClose),onClick:we(e.onClick,i.onClose)})))}),Pw="TooltipPortal",[Lk,Nw]=Ga(Pw,{forceMount:void 0}),xs="TooltipContent",Rw=p.forwardRef((e,t)=>{const n=Nw(xs,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,l=Ha(xs,e.__scopeTooltip);return p.createElement(sn,{present:r||l.open},l.disableHoverableContent?p.createElement(uh,ae({side:i},s,{ref:t})):p.createElement(Lw,ae({side:i},s,{ref:t})))}),Lw=p.forwardRef((e,t)=>{const n=Ha(xs,e.__scopeTooltip),r=Vd(xs,e.__scopeTooltip),i=p.useRef(null),s=et(t,i),[l,c]=p.useState(null),{trigger:d,onClose:f}=n,m=i.current,{onPointerInTransitChange:g}=r,v=p.useCallback(()=>{c(null),g(!1)},[g]),b=p.useCallback((w,_)=>{const E=w.currentTarget,y={x:w.clientX,y:w.clientY},T=kw(y,E.getBoundingClientRect()),S=Fw(y,T),O=Bw(_.getBoundingClientRect()),I=Gw([...S,...O]);c(I),g(!0)},[g]);return p.useEffect(()=>()=>v(),[v]),p.useEffect(()=>{if(d&&m){const w=E=>b(E,m),_=E=>b(E,d);return d.addEventListener("pointerleave",w),m.addEventListener("pointerleave",_),()=>{d.removeEventListener("pointerleave",w),m.removeEventListener("pointerleave",_)}}},[d,m,b,v]),p.useEffect(()=>{if(l){const w=_=>{const E=_.target,y={x:_.clientX,y:_.clientY},T=(d==null?void 0:d.contains(E))||(m==null?void 0:m.contains(E)),S=!zw(y,l);T?v():S&&(v(),f())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[d,m,l,f,v]),p.createElement(uh,ae({},e,{ref:s}))}),[jw,jk]=Ga(Wd,{isInside:!1}),uh=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=e,d=Ha(xs,n),f=Hd(n),{onClose:m}=d;return p.useEffect(()=>(document.addEventListener(Ud,m),()=>document.removeEventListener(Ud,m)),[m]),p.useEffect(()=>{if(d.trigger){const g=v=>{const b=v.target;b!=null&&b.contains(d.trigger)&&m()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[d.trigger,m]),p.createElement(us,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:g=>g.preventDefault(),onDismiss:m},p.createElement(md,ae({"data-state":d.stateAttribute},f,c,{ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),p.createElement(w1,null,r),p.createElement(jw,{scope:n,isInside:!0},p.createElement(Sw,{id:d.contentId,role:"tooltip"},i||r))))});function kw(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Fw(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Bw(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function zw(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const c=t[s].x,d=t[s].y,f=t[l].x,m=t[l].y;d>r!=m>r&&n<(f-c)*(r-d)/(m-d)+c&&(i=!i)}return i}function Gw(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Hw(t)}function Hw(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(i.y-l.y)>=(s.y-l.y)*(i.x-l.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],l=n[n.length-2];if((s.x-l.x)*(i.y-l.y)>=(s.y-l.y)*(i.x-l.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const Uw=$w,Vw=Mw,Ww=dh,qd=Rw,Pn={"tooltip--container":"_tooltip--container_1i4jw_1","tooltip--dark":"_tooltip--dark_1i4jw_18","tooltip--image-preview":"_tooltip--image-preview_1i4jw_52","tooltip--image":"_tooltip--image_1i4jw_52","tooltip--title":"_tooltip--title_1i4jw_69","tooltip--suggestion":"_tooltip--suggestion_1i4jw_74","tooltip--description":"_tooltip--description_1i4jw_79","tooltip--feedback-container":"_tooltip--feedback-container_1i4jw_84","tooltip--feedback":"_tooltip--feedback_1i4jw_84","tooltip--feedback-icon":"_tooltip--feedback-icon_1i4jw_103"},Ni=p.forwardRef(({title:e,suggestion:t,description:n,image:r,imageAlt:i,feedbackOptions:s,isDark:l,sideOffset:c=8,children:d,className:f,...m},g)=>u.jsx(qd,{ref:g,sideOffset:c,className:se(Pn["tooltip--container"],l&&Pn["tooltip--dark"],f),...m,children:d||u.jsxs("div",{children:[r&&u.jsx("div",{className:Pn["tooltip--image-preview"],children:u.jsx("img",{src:r,alt:i||"preview",className:Pn["tooltip--image"]})}),e&&(typeof e=="string"?u.jsx(He,{size:"md",fontWeight:"bold",color:l?"white-alpha-1000":"gray-1000",className:Pn["tooltip--title"],children:e}):e),t&&(typeof t=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-700",className:Pn["tooltip--suggestion"],children:t}):t),n&&(typeof n=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-800",className:Pn["tooltip--description"],children:n}):n),s&&u.jsxs("div",{className:Pn["tooltip--feedback-container"],children:[u.jsxs("div",{className:Pn["tooltip--feedback"],onClick:()=>s.onClick(!0),children:[u.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-800",children:s.positiveLabel}),u.jsx("div",{className:Pn["tooltip--feedback-icon"],children:u.jsx(b7,{className:"text--gray-700"})})]}),u.jsxs("div",{className:Pn["tooltip--feedback"],onClick:()=>s.onClick(!1),children:[u.jsx(He,{size:"sm",fontWeight:"regular",color:l?"white-alpha-800":"gray-800",children:s.negativeLabel}),u.jsx("div",{className:Pn["tooltip--feedback-icon"],children:u.jsx(o7,{className:"text--gray-700"})})]})]})]})}));Ni.displayName=qd.displayName;const Io=({children:e,providerProps:t,rootProps:n})=>u.jsx(Uw,{...t,children:u.jsx(Vw,{...n,children:e})}),Ri=p.forwardRef(({children:e,...t},n)=>u.jsx(Ww,{ref:n,asChild:!0,...t,children:e}));Ri.displayName=dh.displayName;const fh="Popover",[ph,kk]=zt(fh,[_o]),Yd=_o(),[qw,Li]=ph(fh),Yw=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:l=!1}=e,c=Yd(t),d=p.useRef(null),[f,m]=p.useState(!1),[g=!1,v]=mn({prop:r,defaultProp:i,onChange:s});return p.createElement(hd,c,p.createElement(qw,{scope:t,contentId:Kn(),triggerRef:d,open:g,onOpenChange:v,onOpenToggle:p.useCallback(()=>v(b=>!b),[v]),hasCustomAnchor:f,onCustomAnchorAdd:p.useCallback(()=>m(!0),[]),onCustomAnchorRemove:p.useCallback(()=>m(!1),[]),modal:l},n))},Zw="PopoverTrigger",Xw=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Li(Zw,n),s=Yd(n),l=et(t,i.triggerRef),c=p.createElement(Re.button,ae({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":mh(i.open)},r,{ref:l,onClick:we(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?c:p.createElement(gd,ae({asChild:!0},s),c)}),hh="PopoverPortal",[Kw,Qw]=ph(hh,{forceMount:void 0}),Jw=e=>{const{__scopePopover:t,forceMount:n,children:r,container:i}=e,s=Li(hh,t);return p.createElement(Kw,{scope:t,forceMount:n},p.createElement(sn,{present:n||s.open},p.createElement(Aa,{asChild:!0,container:i},r)))},ws="PopoverContent",eE=p.forwardRef((e,t)=>{const n=Qw(ws,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,s=Li(ws,e.__scopePopover);return p.createElement(sn,{present:r||s.open},s.modal?p.createElement(tE,ae({},i,{ref:t})):p.createElement(nE,ae({},i,{ref:t})))}),tE=p.forwardRef((e,t)=>{const n=Li(ws,e.__scopePopover),r=p.useRef(null),i=et(t,r),s=p.useRef(!1);return p.useEffect(()=>{const l=r.current;if(l)return yd(l)},[]),p.createElement(La,{as:Ii,allowPinchZoom:!0},p.createElement(gh,ae({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:we(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),s.current||(c=n.triggerRef.current)===null||c===void 0||c.focus()}),onPointerDownOutside:we(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,d=c.button===0&&c.ctrlKey===!0,f=c.button===2||d;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:we(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})))}),nE=p.forwardRef((e,t)=>{const n=Li(ws,e.__scopePopover),r=p.useRef(!1),i=p.useRef(!1);return p.createElement(gh,ae({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l;if((l=e.onCloseAutoFocus)===null||l===void 0||l.call(e,s),!s.defaultPrevented){var c;r.current||(c=n.triggerRef.current)===null||c===void 0||c.focus(),s.preventDefault()}r.current=!1,i.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)===null||l===void 0||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const d=s.target;((c=n.triggerRef.current)===null||c===void 0?void 0:c.contains(d))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}}))}),gh=p.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:m,...g}=e,v=Li(ws,n),b=Yd(n);return id(),p.createElement(ad,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s},p.createElement(us,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:m,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onDismiss:()=>v.onOpenChange(!1)},p.createElement(md,ae({"data-state":mh(v.open),role:"dialog",id:v.contentId},b,g,{ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}),rE="PopoverClose",iE=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Li(rE,n);return p.createElement(Re.button,ae({type:"button"},r,{ref:t,onClick:we(e.onClick,()=>i.onOpenChange(!1))}))});function mh(e){return e?"open":"closed"}const Es=Yw,ys=Xw,oE=Jw,Cs=eE,sE=iE,er={"atom-top-ai-dropdown":"_atom-top-ai-dropdown_1f7wa_1","atom-top-ai-dropdown--text-field":"_atom-top-ai-dropdown--text-field_1f7wa_9","atom-top-ai-dropdown--container":"_atom-top-ai-dropdown--container_1f7wa_15","atom-top-ai-dropdown--text-container":"_atom-top-ai-dropdown--text-container_1f7wa_28","atom-top-ai-dropdown--selected-answer":"_atom-top-ai-dropdown--selected-answer_1f7wa_33","atom-top-ai-dropdown--popover-content":"_atom-top-ai-dropdown--popover-content_1f7wa_37","atom-top-ai-dropdown--popover-content--input":"_atom-top-ai-dropdown--popover-content--input_1f7wa_50","atom-top-ai-dropdown--popover-content--icons":"_atom-top-ai-dropdown--popover-content--icons_1f7wa_54"};function aE({value:e,tooltip:t,selectAnswer:n}){const[r,i]=p.useState(!1),s=p.useRef(null),l=p.useCallback(()=>{var m;let f=((m=s.current)==null?void 0:m.value)??"";f=f.startsWith("http://")||f.startsWith("https://")||f.startsWith("mailto:")||f.startsWith("{{")?f:"https://"+f,n({url:f})},[]),c=p.useCallback(()=>{i(!1)},[]),d=p.useCallback(f=>{f.key==="Enter"&&l(),f.key==="Escape"&&c()},[l,c]);return u.jsxs(Es,{open:r,onOpenChange:i,children:[u.jsx(ys,{asChild:!0,children:u.jsx("span",{children:u.jsxs(Io,{rootProps:{open:t?void 0:!1},children:[u.jsx(Ri,{children:u.jsx(st,{color:"sand",variant:"outlined",size:"sm",children:u.jsx(ha,{className:"text--gray-700"})})}),u.jsx(Ni,{isDark:!0,description:t})]})})}),u.jsxs(Cs,{side:"top",sideOffset:8,className:er["atom-top-ai-dropdown--popover-content"],children:[u.jsx(ln,{ref:s,autoFocus:!0,placeholder:"https://",className:er["atom-top-ai-dropdown--popover-content--input"],onKeyDown:d,defaultValue:e}),u.jsxs("div",{className:er["atom-top-ai-dropdown--popover-content--icons"],children:[u.jsx(st,{color:"primary",size:"sm",variant:"ghost",onClick:l,"aria-label":"Confirm",children:u.jsx(kc,{color:"var(--color-green-600)"})}),u.jsx(st,{color:"primary",size:"sm",variant:"ghost",onClick:c,"aria-label":"Cancel",children:u.jsx(zc,{color:"var(--color-red-600)"})})]})]})]})}function lE({value:e,tooltip:t,selectAnswer:n}){const[r,i]=p.useState(!1),s=p.useRef(null),l=p.useCallback(()=>{var f;const d=((f=s.current)==null?void 0:f.value)??"";n({url:d?`tel: ${d}`:""})},[]),c=p.useCallback(()=>{i(!1)},[]);return u.jsxs(Es,{open:r,onOpenChange:i,children:[u.jsx(ys,{asChild:!0,children:u.jsx("span",{children:u.jsxs(Io,{rootProps:{open:t?void 0:!1},children:[u.jsx(Ri,{children:u.jsx(st,{color:"sand",variant:"outlined",size:"sm",children:u.jsx(fa,{className:"text--gray-700"})})}),u.jsx(Ni,{isDark:!0,description:t})]})})}),u.jsxs(Cs,{side:"top",sideOffset:8,className:er["atom-top-ai-dropdown--popover-content"],children:[u.jsx(ln,{ref:s,autoFocus:!0,placeholder:"+39",className:er["atom-top-ai-dropdown--popover-content--input"],defaultValue:e==null?void 0:e.replace(/tel:\s*/,"")}),u.jsxs("div",{className:er["atom-top-ai-dropdown--popover-content--icons"],children:[u.jsx(st,{color:"primary",size:"sm",variant:"ghost",onClick:l,"aria-label":"Confirm",children:u.jsx(kc,{color:"var(--color-green-600)"})}),u.jsx(st,{color:"primary",size:"sm",variant:"ghost",onClick:c,"aria-label":"Cancel",children:u.jsx(zc,{color:"var(--color-red-600)"})})]})]})]})}function cE(e){return e==="url"?u.jsx(ha,{}):e==="phone"?u.jsx(fa,{}):null}function dE(e,t){return e==="variable"?u.jsxs(u.Fragment,{children:[u.jsx("b",{children:"{{ "}),t,u.jsx("b",{children:" }}"})]}):t}function uE({type:e,label:t,onRemove:n}){const r=cE(e);return u.jsx(Mn,{renderIcon:r?()=>r:null,label:dE(e,t),onCloseIconClicked:n})}const vh=p.forwardRef(({currentValue:e,showPhoneButton:t,phoneTooltip:n,showUrlButton:r,urlTooltip:i,selectedAnswer:s,selectAnswer:l,onRemove:c,...d},f)=>u.jsx("div",{className:er["atom-top-ai-dropdown"],children:u.jsxs("div",{ref:f,className:er["atom-top-ai-dropdown--container"],children:[e?u.jsx("div",{className:er["atom-top-ai-dropdown--selected-answer"],children:u.jsx(uE,{...e,onRemove:c})}):u.jsx(ln,{...d,contentClassName:er["atom-top-ai-dropdown--text-field"],className:er["atom-top-ai-dropdown--text-container"],size:"sm",placeholder:"Search"}),r&&u.jsx(aE,{value:(e==null?void 0:e.type)==="url"?e==null?void 0:e.label:void 0,tooltip:i,selectAnswer:l}),t&&u.jsx(lE,{value:(e==null?void 0:e.type)==="phone"?e==null?void 0:e.label:void 0,tooltip:n,selectAnswer:l})]})}));vh.displayName="AtomTopAiDropdown";const bh={"atom-head-item-ai-dropdown":"_atom-head-item-ai-dropdown_10v1a_1","atom-head-item-ai-dropdown--header":"_atom-head-item-ai-dropdown--header_10v1a_7"},Zd=p.forwardRef((e,t)=>{const{label:n,onNew:r}=e;return u.jsx("div",{ref:t,className:bh["atom-head-item-ai-dropdown"],children:u.jsxs("div",{className:bh["atom-head-item-ai-dropdown--header"],children:[u.jsx(ye,{fontWeight:"bold",size:"xs",children:n}),u.jsx(mt,{variant:"text",color:"primary",size:"sm",startIcon:u.jsx($7,{}),onClick:r,children:"New"})]})})});Zd.displayName="AtomHeadItemAiDropdown";const tr={"atom-item-ai-dropdown--root":"_atom-item-ai-dropdown--root_1wqx4_1","atom-item-ai-dropdown--trigger":"_atom-item-ai-dropdown--trigger_1wqx4_14","atom-item-ai-dropdown--header":"_atom-item-ai-dropdown--header_1wqx4_35","atom-item-ai-dropdown--icon":"_atom-item-ai-dropdown--icon_1wqx4_39","atom-item-ai-dropdown--label":"_atom-item-ai-dropdown--label_1wqx4_56","atom-item-ai-dropdown--icon-closed":"_atom-item-ai-dropdown--icon-closed_1wqx4_60","atom-item-ai-dropdown--icon-opened":"_atom-item-ai-dropdown--icon-opened_1wqx4_61","atom-item-ai-dropdown--content":"_atom-item-ai-dropdown--content_1wqx4_65"},Ts={"atom-item-tag-ai-dropdown--container":"_atom-item-tag-ai-dropdown--container_4lwl5_1","atom-item-tag-ai-dropdown--content":"_atom-item-tag-ai-dropdown--content_4lwl5_9","atom-item-tag-ai-dropdown--add-button":"_atom-item-tag-ai-dropdown--add-button_4lwl5_16","atom-item-tag-ai-dropdown--answers":"_atom-item-tag-ai-dropdown--answers_4lwl5_20","atom-item-tag-ai-dropdown--tag":"_atom-item-tag-ai-dropdown--tag_4lwl5_26"},fE=p.forwardRef(({id:e,label:t,selectAnswer:n},r)=>{const i=p.useCallback(()=>{n==null||n({intentId:e})},[e]);return u.jsx(Mn,{ref:r,label:t,closeIcon:!1,color:"sand",className:Ts["atom-item-tag-ai-dropdown--tag"],onClick:i},e)}),_h=p.forwardRef(({answers:e,onAdd:t,selectAnswer:n},r)=>u.jsx("div",{ref:r,className:Ts["atom-item-tag-ai-dropdown--container"],children:u.jsx("div",{className:Ts["atom-item-tag-ai-dropdown--content"],children:u.jsxs("div",{className:Ts["atom-item-tag-ai-dropdown--answers"],children:[u.jsx(st,{variant:"outlined",color:"sand",size:"sm",onClick:t,className:Ts["atom-item-tag-ai-dropdown--add-button"],children:u.jsx(ww,{color:"text--gray-700"})}),e==null?void 0:e.map(i=>u.jsx(fE,{...i,selectAnswer:n},i==null?void 0:i.id))]})})}));_h.displayName="AtomItemTagAiDropdown";const Xd=p.forwardRef(({answers:e,...t},n)=>e?u.jsx(wh,{ref:n,...t,answers:e}):u.jsx(xh,{ref:n,...t}));Xd.displayName="AtomItemAiDropdown";const xh=p.forwardRef(({id:e,label:t,fontWeight:n,selectAnswer:r},i)=>{const s=p.useCallback(()=>{r==null||r({intentId:e})},[e]);return u.jsx("div",{ref:i,className:tr["atom-item-ai-dropdown--trigger"],onClick:s,children:u.jsx("span",{className:tr["atom-item-ai-dropdown--label"],children:typeof t=="string"?u.jsx(ye,{size:"sm",fontWeight:n,color:"gray-1000",children:t}):t})})});xh.displayName="AtomItemSingleAiDropdown";const wh=p.forwardRef(({id:e,draft:t,path:n,label:r,answers:i,fontWeight:s="regular",className:l,contentClassname:c,onNewAnswer:d,selectAnswer:f,hasSearch:m},g)=>{const v=p.useCallback(()=>{d==null||d(t,n)},[d,t,n]),[b,w]=p.useState([]);return p.useEffect(()=>{w(m?[e]:[])},[m,e]),u.jsx(Kc,{type:"multiple",className:se(tr["atom-item-ai-dropdown--root"],l),value:b,onValueChange:w,children:u.jsxs(Qc,{value:e,children:[u.jsx(Jc,{className:tr["atom-item-ai-dropdown--header"],children:u.jsx(ed,{asChild:!0,children:u.jsxs("div",{className:tr["atom-item-ai-dropdown--trigger"],children:[u.jsxs(st,{variant:"ghost",color:"primary",size:"xs",children:[u.jsx(h7,{className:se(tr["atom-item-ai-dropdown--icon"],tr["atom-item-ai-dropdown--icon-opened"]),"aria-hidden":!0}),u.jsx(f7,{className:se(tr["atom-item-ai-dropdown--icon"],tr["atom-item-ai-dropdown--icon-closed"]),"aria-hidden":!0})]}),u.jsx("span",{className:tr["atom-item-ai-dropdown--label"],children:typeof r=="string"?u.jsx(ye,{size:"sm",fontWeight:s,color:"gray-1000",children:r}):r})]})})}),u.jsx(td,{ref:g,className:se(tr["atom-item-ai-dropdown--content"],c),children:u.jsx(_h,{answers:i,selectAnswer:f,onAdd:v})})]})})});wh.displayName="AtomItemFolderAiDropdown";const Kd={"atom-sub-ai-dropdown--trigger":"_atom-sub-ai-dropdown--trigger_j4p1d_1","atom-sub-ai-dropdown--label":"_atom-sub-ai-dropdown--label_j4p1d_26","atom-sub-ai-dropdown--chevron":"_atom-sub-ai-dropdown--chevron_j4p1d_33"},Eh=p.forwardRef(({label:e,closeDelay:t=300,size:n="sm",fontWeight:r="bold",color:i="gray-1000",children:s},l)=>{const[c,d]=p.useState(!1),f=p.useRef(),m=()=>{f.current=setTimeout(()=>{d(!1)},t)},g=()=>{f.current&&clearTimeout(f.current),d(!0)};return u.jsxs(Es,{open:c,children:[u.jsx(ys,{asChild:!0,children:u.jsx("div",{ref:l,className:Kd["atom-sub-ai-dropdown--trigger"],onMouseEnter:g,onMouseLeave:m,children:u.jsxs("div",{className:Kd["atom-sub-ai-dropdown--label"],children:[u.jsx(ye,{size:n,fontWeight:r,color:i,children:e}),u.jsx(pa,{className:Kd["atom-sub-ai-dropdown--chevron"]})]})})}),u.jsx(Cs,{side:"right",sideOffset:8,align:"start",alignOffset:-10,onMouseEnter:g,onMouseLeave:m,children:s})]})});Eh.displayName="AtomItemAiDropdown";const nr={"ai-dropdown":"_ai-dropdown_wbkpw_1",header:"_header_wbkpw_14","main-container":"_main-container_wbkpw_21",container:"_container_wbkpw_26","inner-container":"_inner-container_wbkpw_27",open:"_open_wbkpw_34",url:"_url_wbkpw_38","url-full":"_url-full_wbkpw_45",trigger:"_trigger_wbkpw_49"},pE=({type:e,label:t})=>{if(e==="url"||e==="phone"){const n=(t==null?void 0:t.replace(/tel:\s*/,""))??"";return u.jsxs(Io,{children:[u.jsx(Ri,{children:u.jsx(Mn,{color:"sand",renderIcon:()=>t!=null&&t.includes("tel:")?u.jsx(fa,{}):u.jsx(T7,{}),label:(n==null?void 0:n.length)>26?`${n==null?void 0:n.slice(0,23)}...`:n,closeIcon:!1})}),u.jsx(Ni,{isDark:!0,description:u.jsxs("a",{className:nr.url,href:t,target:"_blank",rel:"noreferrer",children:[t!=null&&t.includes("tel:")?u.jsx(fa,{}):u.jsx(ha,{}),u.jsx("span",{className:se(nr["url-full"],"clamp-1"),children:n})]})})]})}return e==="variable"?u.jsx(Mn,{color:"sand",renderIcon:null,label:u.jsxs(u.Fragment,{children:[u.jsx("b",{children:"{{ "}),t,u.jsx("b",{children:" }}"})]}),closeIcon:!1}):u.jsx(Mn,{color:"sand",renderIcon:null,label:t,closeIcon:!1})};function yh(){return u.jsx(ye,{size:"sm",color:"gray-900",children:"No contents yet"})}function Ch({currentValue:e,showPhoneButton:t,phoneTooltip:n,showUrlButton:r,urlTooltip:i,showVariables:s,selectAnswer:l,liveAnswers:c,draftAnswers:d,onNewLive:f,onNewDraft:m,onNewAnswer:g,variablesContent:v,searchProps:b,hasSearch:w,closeDelay:_}){const E=p.useCallback(()=>{l(null)},[l]);return u.jsxs("div",{className:nr["ai-dropdown"],children:[u.jsxs("div",{className:nr.header,children:[u.jsx(vh,{currentValue:e,showPhoneButton:t,phoneTooltip:n,showUrlButton:r,urlTooltip:i,selectAnswer:l,onRemove:E,...b}),s?u.jsx(Eh,{closeDelay:_,label:"Variables",children:v}):null]}),u.jsx(gr,{className:"",color:"gray-300",horizontalMargin:!1,variant:"default",verticalMargin:"sm"}),u.jsxs(kd,{className:nr["main-container"],children:[u.jsxs("div",{className:nr.container,children:[u.jsx(Zd,{label:"LIVE",onNew:f}),u.jsx("div",{className:nr["inner-container"],children:(c==null?void 0:c.length)>0?c.map(y=>u.jsx(Xd,{...y,onNewAnswer:g,selectAnswer:l,hasSearch:w},y==null?void 0:y.id)):u.jsx(yh,{})})]}),u.jsx(gr,{className:"",color:"gray-300",horizontalMargin:!1,variant:"default",verticalMargin:"lg"}),u.jsxs("div",{className:nr.container,children:[u.jsx(Zd,{label:"DRAFT",onNew:m}),u.jsx("div",{className:nr["inner-container"],children:(d==null?void 0:d.length)>0?d==null?void 0:d.map(y=>u.jsx(Xd,{...y,onNewAnswer:g,selectAnswer:l,hasSearch:w},y==null?void 0:y.id)):u.jsx(yh,{})})]})]})]})}const Ao=p.forwardRef(({disabled:e,align:t="start",onOpenChange:n,label:r="Choose Agent",broken:i=!1,liveAnswers:s,draftAnswers:l,onNewLive:c,onNewDraft:d,onNewAnswer:f,variablesContent:m,currentValue:g,showPhoneButton:v=!0,phoneTooltip:b="You can connect a phone number",showUrlButton:w=!0,urlTooltip:_="You can connect any link",showVariables:E=!0,selectAnswer:y,searchProps:T,hasSearch:S=!1,closeDelay:O},I)=>{const[M,N]=p.useState(!1),D=p.useCallback(()=>{N(!1)},[]);p.useImperativeHandle(I,()=>({close:D}));const k=p.useCallback(L=>{N(L),n==null||n(L)},[n]),Y=p.useCallback(L=>{y==null||y(L),(L==null?void 0:L.id)!==-1&&N(!1)},[y]);return u.jsxs(Md,{open:M,onOpenChange:k,children:[u.jsx(Pd,{asChild:!0,disabled:e,children:g?u.jsx("button",{className:nr.trigger,children:u.jsx(pE,{...g})}):u.jsx(mt,{size:"sm",color:i?"red":"sand",className:se(M&&nr.open),startIcon:i?u.jsx(V7,{}):null,endIcon:M?u.jsx(rh,{}):u.jsx(nh,{}),children:i?"Missing Connection":r})}),u.jsx(Nd,{align:t,sideOffset:5,children:u.jsx(Ch,{liveAnswers:s,draftAnswers:l,onNewLive:c,onNewDraft:d,onNewAnswer:f,variablesContent:m,currentValue:g,showPhoneButton:v,phoneTooltip:b,showUrlButton:w,urlTooltip:_,showVariables:E,selectAnswer:Y,searchProps:T,hasSearch:S,closeDelay:O})})]})});Ao.displayName="AiDropdown";const ji={"document-dropdown":"_document-dropdown_b7676_1",header:"_header_b7676_19","cta-container":"_cta-container_b7676_26","tags-container":"_tags-container_b7676_47","variables-container":"_variables-container_b7676_56","empty-container":"_empty-container_b7676_72","apply-cta":"_apply-cta_b7676_80"},Ua={"atom-top-document-dropdown":"_atom-top-document-dropdown_10rle_1","atom-top-document-dropdown--text-field":"_atom-top-document-dropdown--text-field_10rle_9","atom-top-document-dropdown--container":"_atom-top-document-dropdown--container_10rle_16","atom-top-document-dropdown--text-container":"_atom-top-document-dropdown--text-container_10rle_28"},Th=p.forwardRef(({...e},t)=>u.jsx("div",{className:Ua["atom-top-document-dropdown"],children:u.jsx("div",{ref:t,className:Ua["atom-top-document-dropdown--container"],children:u.jsx(ln,{...e,leftIcon:u.jsx(N7,{}),contentClassName:Ua["atom-top-document-dropdown--text-field"],className:Ua["atom-top-document-dropdown--text-container"],placeholder:"Search"})})}));Th.displayName="AtomTopDocumentDropdown";const Qd={"atom-sub-document-dropdown--trigger":"_atom-sub-document-dropdown--trigger_1klrd_1","atom-sub-document-dropdown--label":"_atom-sub-document-dropdown--label_1klrd_26","atom-sub-document-dropdown--chevron":"_atom-sub-document-dropdown--chevron_1klrd_33"},Sh=p.forwardRef(({label:e,closeDelay:t=300,size:n="sm",fontWeight:r="bold",color:i="gray-1000",children:s},l)=>{const[c,d]=p.useState(!1),f=p.useRef(),m=()=>{f.current=setTimeout(()=>{d(!1)},t)},g=()=>{f.current&&clearTimeout(f.current),d(!0)};return u.jsxs(Es,{open:c,children:[u.jsx(ys,{asChild:!0,children:u.jsx("div",{ref:l,className:Qd["atom-sub-document-dropdown--trigger"],onMouseEnter:g,onMouseLeave:m,children:u.jsxs("div",{className:Qd["atom-sub-document-dropdown--label"],children:[u.jsx(ye,{size:n,fontWeight:r,color:i,children:e}),u.jsx(pa,{className:Qd["atom-sub-document-dropdown--chevron"]})]})})}),u.jsx(Cs,{side:"right",sideOffset:8,align:"start",alignOffset:-10,onMouseEnter:g,onMouseLeave:m,children:s})]})});Sh.displayName="AtomItemDocumentDropdown";const hE={"atom-item-document-dropdown--trigger":"_atom-item-document-dropdown--trigger_1ttij_1"};function Jd(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const Ih="Checkbox",[gE,Vk]=zt(Ih),[mE,vE]=gE(Ih),bE=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:s,required:l,disabled:c,value:d="on",onCheckedChange:f,...m}=e,[g,v]=p.useState(null),b=et(t,S=>v(S)),w=p.useRef(!1),_=g?!!g.closest("form"):!0,[E=!1,y]=mn({prop:i,defaultProp:s,onChange:f}),T=p.useRef(E);return p.useEffect(()=>{const S=g==null?void 0:g.form;if(S){const O=()=>y(T.current);return S.addEventListener("reset",O),()=>S.removeEventListener("reset",O)}},[g,y]),p.createElement(mE,{scope:n,state:E,disabled:c},p.createElement(Re.button,ae({type:"button",role:"checkbox","aria-checked":ki(E)?"mixed":E,"aria-required":l,"data-state":Ah(E),"data-disabled":c?"":void 0,disabled:c,value:d},m,{ref:b,onKeyDown:we(e.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:we(e.onClick,S=>{y(O=>ki(O)?!0:!O),_&&(w.current=S.isPropagationStopped(),w.current||S.stopPropagation())})})),_&&p.createElement(wE,{control:g,bubbles:!w.current,name:r,value:d,checked:E,required:l,disabled:c,style:{transform:"translateX(-100%)"}}))}),_E="CheckboxIndicator",xE=p.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,s=vE(_E,n);return p.createElement(sn,{present:r||ki(s.state)||s.state===!0},p.createElement(Re.span,ae({"data-state":Ah(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:t,style:{pointerEvents:"none",...e.style}})))}),wE=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,s=p.useRef(null),l=Jd(n),c=Ia(t);return p.useEffect(()=>{const d=s.current,f=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&g){const v=new Event("click",{bubbles:r});d.indeterminate=ki(n),g.call(d,ki(n)?!1:n),d.dispatchEvent(v)}},[l,n,r]),p.createElement("input",ae({type:"checkbox","aria-hidden":!0,defaultChecked:ki(n)?!1:n},i,{tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ki(e){return e==="indeterminate"}function Ah(e){return ki(e)?"indeterminate":e?"checked":"unchecked"}const EE=bE,yE=xE;function Va(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var CE=["color"],TE=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=Va(e,CE);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),p.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),SE=["color"],IE=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=Va(e,SE);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),p.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),AE=["color"],OE=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=Va(e,AE);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),p.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),$E=["color"],DE=p.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=Va(e,$E);return p.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),p.createElement("path",{d:"M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});const vr={checkbox:"_checkbox_1lymw_1","checkbox--root":"_checkbox--root_1lymw_11","checkbox--root-size-sm":"_checkbox--root-size-sm_1lymw_21","checkbox--indicator":"_checkbox--indicator_1lymw_69","checkbox--label":"_checkbox--label_1lymw_78","checkbox--label-size-sm":"_checkbox--label-size-sm_1lymw_79","checkbox--label--disabled":"_checkbox--label--disabled_1lymw_94"},Oh=e=>{const{label:t,small:n,disabled:r,id:i,children:s}=e;return t?u.jsx("label",{className:se(n?vr["checkbox--label-size-sm"]:vr["checkbox--label"],r&&vr["checkbox--label--disabled"]),htmlFor:i,children:t}):s?u.jsx("label",{className:se(n?vr["checkbox--label-size-sm"]:vr["checkbox--label"],r&&vr["checkbox--label--disabled"]),htmlFor:i,children:s}):null},Fi=p.forwardRef((e,t)=>{const{id:n=`ch-${Math.random()}`,small:r,checked:i,label:s,labelPosition:l="start",children:c,onCheckedChange:d,disabled:f,className:m,...g}=e;return u.jsxs("div",{className:se(vr.checkbox,m),children:[l==="end"?u.jsx(Oh,{id:n,label:s,small:r,disabled:f,children:c}):null,u.jsx(EE,{ref:t,id:n,className:se(r&&vr["checkbox--root-size-sm"],vr["checkbox--root"]),onCheckedChange:d,disabled:f,checked:i,...g,children:u.jsxs(yE,{className:vr["checkbox--indicator"],children:[i==="indeterminate"&&u.jsx(DE,{}),i===!0&&u.jsx(TE,{})]})}),l==="start"?u.jsx(Oh,{id:n,label:s,small:r,disabled:f,children:c}):null]})});Fi.displayName="Checkbox";const eu=p.forwardRef(({...e},t)=>u.jsx($h,{ref:t,...e}));eu.displayName="AtomItemDocumentDropdown";const $h=p.forwardRef(({label:e,value:t,onSelect:n,isSelected:r},i)=>{const s=p.useCallback(()=>{n&&n({label:e,value:t})},[t]);return u.jsxs("div",{ref:i,className:hE["atom-item-document-dropdown--trigger"],onClick:s,children:[u.jsx(Fi,{checked:r,small:!0}),u.jsx(ye,{size:"xs",children:e})]})});$h.displayName="AtomItemSingleDocumentDropdown";const Oo={button:"_button_ktp2c_1","button--full-width":"_button--full-width_ktp2c_24","--button-size":"_--button-size_ktp2c_29","button--label":"_button--label_ktp2c_37","button--children":"_button--children_ktp2c_45","button-disabled":"_button-disabled_ktp2c_62","button--outlined":"_button--outlined_ktp2c_74","button--outlined-disabled":"_button--outlined-disabled_ktp2c_90","button--text":"_button--text_ktp2c_102","button--text-disabled":"_button--text-disabled_ktp2c_115",icon:"_icon_ktp2c_126"},Dh=p.forwardRef(({color:e="sand",variant:t="filled",size:n="lg",disabled:r=!1,children:i,label:s,isOpen:l,fullWidth:c,...d},f)=>u.jsx("button",{ref:f,disabled:r,className:se(Oo.button,r&&Oo["button-disabled"],c&&Oo["button--full-width"]),...d,children:u.jsxs("span",{className:Oo["button--children"],children:[u.jsx(Pi,{className:se(Oo["button--label"],r?"cursor-not-allowed":"cursor-pointer"),variant:"button-sm",children:i}),u.jsx("div",{className:Oo.icon,children:l?u.jsx(rh,{}):u.jsx(nh,{})})]})}));Dh.displayName="AtomTriggerDocumentDropdown";function ME(){return u.jsx("div",{className:ji["empty-container"],children:u.jsx(ye,{size:"sm",color:"gray-900",children:"No contents yet"})})}function Mh({tags:e,selectedTags:t,variables:n,showVariables:r,selectedVariables:i,onConfirmSelection:s,onLabelChange:l,searchProps:c,closeDelay:d}){const[f,m]=p.useState({tags:t??[],variables:i??[]}),g=E=>{if(!E||!E.value)return;const y=E.value;m(T=>{if(typeof T.tags=="string")return{...T,tags:[E.value],variables:typeof T.variables=="string"?[]:T.variables};{const S=T.tags.includes(y)?T.tags.filter(O=>O!==y):[...T.tags,E.value];return{...T,tags:S,variables:typeof T.variables=="string"?[]:T.variables}}})},v=E=>{if(!E||!E.value)return;const y=E.value;m(T=>{if(typeof T.variables=="string")return{...T,variables:[E.value],tags:typeof T.tags=="string"?[]:T.tags};{const S=T.variables.includes(y)?T.variables.filter(O=>O!==y):[...T.variables,E.value];return{...T,variables:S,tags:typeof T.tags=="string"?[]:T.tags}}})},b=()=>{s("any","any"),l("Use all docs")},w=()=>{s("none","none"),l("Don't use docs")},_=()=>{s(f.tags,f.variables);const E=typeof f.tags!="string"?f.tags:[],y=typeof f.tags!="string"?f.variables.map(T=>`{{${T}}}`):[];l([...E,...y].join(", "))};return u.jsxs("div",{className:ji["document-dropdown"],children:[u.jsxs("div",{className:ji.header,children:[u.jsx(Th,{...c}),u.jsxs("div",{className:ji["cta-container"],children:[u.jsx("div",{children:u.jsx(mt,{onClick:b,size:"sm",variant:"text",color:"sand",children:"Use all docs"})}),u.jsx("div",{children:u.jsx(mt,{onClick:w,size:"sm",variant:"text",color:"sand",children:"Don't use docs"})})]})]}),u.jsx(gr,{color:"gray-300",horizontalMargin:!1,variant:"default",verticalMargin:"sm"}),r&&u.jsx(Sh,{closeDelay:d,label:"Variables",children:u.jsx("div",{className:ji["variables-container"],children:n.map(E=>{const y=f.variables.includes(E.value);return u.jsx(eu,{isSelected:y,label:E.label,value:E.value,onSelect:v},`document_variables_${E.value}`)})})}),u.jsx("div",{className:ji["tags-container"],children:(e==null?void 0:e.length)>0?e.map(E=>{const y=f.tags.includes(E.value);return u.jsx(eu,{isSelected:y,label:E.label,value:E.value,onSelect:g},`document_tag_${E.value}`)}):u.jsx(ME,{})}),u.jsx("div",{className:ji["apply-cta"],children:u.jsx(mt,{variant:"filled",color:"primary",size:"sm",onClick:_,disabled:f.tags.length===0&&f.variables.length===0,children:"Apply"})})]})}const Ph=p.forwardRef(({disabled:e,align:t="center",onOpenChange:n,variables:r,showVariables:i,selectedVariables:s,onConfirmSelection:l,tags:c,selectedTags:d,fullWidth:f},m)=>{const[g,v]=p.useState(!1),[b,w]=p.useState(""),[_,E]=p.useState("Choose document");p.useEffect(()=>{if(s||d)if(d==="any"||s==="any")E("Use all docs");else if(d==="none"||s==="none")E("Don't use docs");else{const I=typeof d!="string"?d:[],M=typeof s!="string"?s.map(N=>`{{${N}}}`):[];E([...I,...M].join(", "))}},[d,s]);const y=p.useCallback(()=>{v(!1)},[]);p.useImperativeHandle(m,()=>({close:y}));const T=p.useCallback(I=>{v(I),n==null||n(I)},[n]),S={onChange(I){const M=I.target.value;w(M)}},O=p.useMemo(()=>(c??[]).filter(I=>{var M;return(M=I.label)==null?void 0:M.toUpperCase().includes(b.toUpperCase())}),[c,b]);return u.jsxs(Md,{modal:!1,open:g,onOpenChange:T,children:[u.jsx(Pd,{asChild:!0,disabled:e,children:u.jsx(Dh,{size:"sm",color:"sand",isOpen:g,fullWidth:f,children:_||"Choose document"})}),u.jsx(Nd,{align:t,sideOffset:5,children:u.jsx(Mh,{tags:O,selectedTags:d,variables:r,showVariables:i,selectedVariables:s,onConfirmSelection:(I,M)=>{l(I,M),y()},onLabelChange:E,searchProps:S})})]})});Ph.displayName="DocumentDropdown";const Bi={"avatar-bot":"_avatar-bot_1x2kl_1","avatar-bot--image-bg":"_avatar-bot--image-bg_1x2kl_18","avatar-bot--active":"_avatar-bot--active_1x2kl_27","avatar-bot--active-icon":"_avatar-bot--active-icon_1x2kl_31","avatar-bot--image":"_avatar-bot--image_1x2kl_18","avatar-bot--image-active":"_avatar-bot--image-active_1x2kl_43","avatar-bot--custom-icon":"_avatar-bot--custom-icon_1x2kl_51"},tu=p.forwardRef((e,t)=>{const{icon:n,image:r,active:i,className:s,onClick:l}=e;return u.jsxs("div",{ref:t,onClick:l,className:se(Bi["avatar-bot"],i&&Bi["avatar-bot--active"],r&&Bi["avatar-bot--image-bg"],s),children:[i?u.jsx(f1,{width:"2.4rem",height:"2.4rem",className:Bi["avatar-bot--active-icon"]}):n&&u.jsx("span",{className:Bi["avatar-bot--custom-icon"],children:n}),r&&u.jsx("img",{src:r.url,alt:r.alt,className:se(Bi["avatar-bot--image"],i&&Bi["avatar-bot--image-active"])})]})});tu.displayName="AvatarBot";const Wa={avatar:"_avatar_u6yy9_1","avatar--size-md":"_avatar--size-md_u6yy9_15","avatar--size-sm":"_avatar--size-sm_u6yy9_23","avatar--size-xs":"_avatar--size-xs_u6yy9_31","avatar--size-xxs":"_avatar--size-xxs_u6yy9_39","avatar--disabled":"_avatar--disabled_u6yy9_47","avatar--badge":"_avatar--badge_u6yy9_51","avatar--badge-size-sm":"_avatar--badge-size-sm_u6yy9_62","avatar--image":"_avatar--image_u6yy9_67"},nu={badge:"_badge_1y0vz_1","badge--size-sm":"_badge--size-sm_1y0vz_11","badge--green":"_badge--green_1y0vz_16","badge--red":"_badge--red_1y0vz_20"},ru=p.forwardRef((e,t)=>{const{small:n=!1,color:r,className:i}=e;return u.jsx("div",{ref:t,className:se(nu.badge,nu[`badge--${r}`],n&&nu["badge--size-sm"],i)})});ru.displayName="Badge";const Nh=e=>{const[t,n]=e.split(" ");return t&&n?`${t.charAt(0)}${n.charAt(0)}`:t.charAt(0)},$o=p.forwardRef((e,t)=>{const{icon:n=!1,size:r="md",name:i,disabled:s,badge:l,image:c,status:d,className:f,children:m,...g}=e,v=()=>c?u.jsx("img",{src:c.url,alt:c.alt,className:Wa["avatar--image"]}):n?m:u.jsx(He,{size:r,color:"white",children:Nh(i??"")}),b=p.useMemo(()=>({backgroundColor:e.color}),[e.color]);return u.jsxs("div",{ref:t,style:b,className:se(Wa.avatar,Wa[`avatar--size-${r}`],s&&Wa["avatar--disabled"],f),...g,children:[v(),l?u.jsx(ru,{color:d&&d==="online"?"green":"red",small:r==="xs"||r==="xxs"}):null]})});$o.displayName="Avatar";const iu={"avatar-workspace":"_avatar-workspace_jxkxx_1","avatar-workspace--size-md":"_avatar-workspace--size-md_jxkxx_15","avatar-workspace--size-sm":"_avatar-workspace--size-sm_jxkxx_24","avatar-workspace--purple":"_avatar-workspace--purple_jxkxx_33","avatar-workspace--gray":"_avatar-workspace--gray_jxkxx_37"},Rh=p.forwardRef((e,t)=>{const{icon:n=!1,size:r="md",name:i,color:s="purple",className:l,children:c}=e;return u.jsx("div",{ref:t,className:se(iu["avatar-workspace"],iu[`avatar-workspace--size-${r}`],iu[`avatar--${s}`],l),children:n?c:u.jsx(He,{size:r,color:"white",children:Nh(i)})})});Rh.displayName="AvatarWorkspace";const ou={editor:"_editor_183tc_9","editor-text-field":"_editor-text-field_183tc_16","icon-button-gray":"_icon-button-gray_183tc_24"},qa=p.forwardRef((e,t)=>{const{initialLabel:n,onSaveLabel:r}=e,[i,s]=p.useState(n),[l,c]=p.useState(n),[d,f]=p.useState(!1),m=()=>{f(b=>!b)},g=b=>{c(b.target.value)},v=()=>{r&&l&&(s(l),r(l)),f(!1)};return u.jsx(u.Fragment,{children:d?u.jsxs("div",{className:ou["editor-text-field"],ref:t,children:[u.jsx(ln,{value:l,onChange:g,placeholder:"Change name...",size:"sm",variant:"filled"}),u.jsxs("div",{children:[u.jsx(st,{onClick:v,color:"green",size:"sm",variant:"ghost",children:u.jsx(kc,{})}),u.jsx(st,{onClick:m,color:"red",size:"sm",variant:"ghost",children:u.jsx(zc,{})})]})]}):u.jsxs("div",{className:ou.editor,ref:t,children:[u.jsx(ye,{fontWeight:"bold",color:"black",size:"md",children:i}),u.jsx(st,{onClick:m,color:"primary",size:"xs",variant:"ghost",children:u.jsx(_w,{className:ou["icon-button-gray"]})})]})})});qa.displayName="AtomNameDivBlockModule";const Lh={"title-block-module":"_title-block-module_1v5qg_1","drag-icon":"_drag-icon_1v5qg_9"},su={"icon-button":"_icon-button_7unaa_1","icon-button--size-lg":"_icon-button--size-lg_7unaa_14","icon-button--size-md":"_icon-button--size-md_7unaa_19","icon-button--size-sm":"_icon-button--size-sm_7unaa_24","icon-button--children":"_icon-button--children_7unaa_29","icon-button--icon":"_icon-button--icon_7unaa_35","icon-button--message":"_icon-button--message_7unaa_40","icon-button--logic":"_icon-button--logic_7unaa_45","icon-button--utility":"_icon-button--utility_7unaa_50","icon-button--action":"_icon-button--action_7unaa_55"},jh={text:{icon:u.jsx(p1,{}),category:"message"},image:{icon:u.jsx(v1,{}),category:"message"},video:{icon:u.jsx(d1,{}),category:"message"},agent:{icon:u.jsx(lh,{}),category:"message"},card:{icon:u.jsx(_1,{}),category:"message"},handover:{icon:u.jsx(m1,{}),category:"logic"},contact_request:{icon:u.jsx(Bc,{}),category:"logic"},quick_reply:{icon:u.jsx(u1,{}),category:"logic"},reroute:{icon:u.jsx(Fc,{}),category:"logic"},api:{icon:u.jsx(b1,{}),category:"logic"},capture:{icon:u.jsx(h1,{}),category:"logic"},set_values:{icon:u.jsx(g1,{}),category:"logic"},condition:{icon:u.jsx(x1,{}),category:"logic"},notes:{icon:u.jsx(I7,{}),category:"utility"},mail:{icon:u.jsx(Bc,{}),category:"action"},upload:{icon:u.jsx(H7,{}),category:"action"}},kh=p.forwardRef((e,t)=>{const{size:n="md",block:r="text",className:i,...s}=e,l=jh[r].category,c=jh[r].icon;return u.jsx("div",{ref:t,className:se(su["icon-button"],su[`icon-button--size-${n}`],su[`icon-button--${l}`],i),...s,children:c})}),PE={text:{label:"Text"},image:{label:"Image"},video:{label:"Video"},agent:{label:"Agent"},card:{label:"Card"},handover:{label:"Handover"},contact_request:{label:"Contact Request"},quick_reply:{label:"Quick Reply"},reroute:{label:"Reroute"},api:{label:"API"},capture:{label:"Capture"},set_values:{label:"Set Values"},condition:{label:"Condition"},notes:{label:"Notes"},mail:{label:"Mail"},upload:{label:"Upload"}},au=p.forwardRef((e,t)=>{const{block:n="text",...r}=e,i=PE[n].label;return u.jsxs("div",{className:Lh["title-block-module"],ref:t,...r,children:[u.jsx(tw,{className:Lh["drag-icon"]}),u.jsx(kh,{block:n,size:"md"}),u.jsx(ye,{size:"sm",children:i})]})});au.displayName="TitleBlockModule";const lu={"atom-top-modulo":"_atom-top-modulo_vojtq_1","atom-top-modulo-button":"_atom-top-modulo-button_vojtq_11","atom-top-modulo-button-copy":"_atom-top-modulo-button-copy_vojtq_17"},cu=p.forwardRef((e,t)=>{const{block:n="text",dragHandlerProps:r,isCollapsed:i,onDelete:s,onCopy:l,onCollapse:c,showCopy:d=!1,className:f}=e;return u.jsxs("div",{ref:t,className:se(lu["atom-top-modulo"],f),children:[u.jsx(au,{block:n,...r}),u.jsxs("div",{className:lu["atom-top-modulo-button"],children:[d?u.jsx(mt,{color:"primary",size:"sm",startIcon:u.jsx(Wx,{className:lu["atom-top-modulo-button-copy"]}),variant:"text",onClick:l,children:"Copy"}):null,u.jsx(mt,{color:"primary",size:"sm",variant:"outlined",startIcon:i?u.jsx(l7,{}):u.jsx(Z_,{}),onClick:c,children:i?"Expand":"Collapse"}),u.jsx(st,{onClick:()=>{s()},variant:"ghost",children:u.jsx(zd,{})})]})]})});cu.displayName="AtomTopModulo";var Fh={exports:{}};/*!
|
|
68
68
|
Copyright (c) 2018 Jed Watson.
|
|
69
69
|
Licensed under the MIT License (MIT), see
|
|
70
70
|
http://jedwatson.github.io/classnames
|
|
71
|
-
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=i(s,r(c)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=i(l,c));return l}function i(s,l){return l?s?s+" "+l:s+l:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(
|
|
71
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=i(s,r(c)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=i(l,c));return l}function i(s,l){return l?s?s+" "+l:s+l:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Fh);var NE=Fh.exports;const RE=Pc(NE),Do={block:"_block_b4jhb_1","is-dragging":"_is-dragging_b4jhb_6","block-children":"_block-children_b4jhb_11","block-collapse":"_block-collapse_b4jhb_20","block-is-dragging":"_block-is-dragging_b4jhb_25"},$r=p.forwardRef((e,t)=>{const{id:n,type:r,children:i,className:s,bodyClassName:l,isDragging:c,insertPosition:d,dragOverlay:f,dragListeners:m,dragAttributes:g,setDraggableNodeRef:v,headerClassName:b,onCopy:w,onDeleteBlock:_,isCollapsed:E,...y}=e,T=p.useRef(null),S=p.useCallback(D=>{T.current=D,typeof t=="function"?t(D):t!=null&&t.current&&(t.current=D)},[t]),[O,I]=p.useState(E);p.useEffect(()=>{E!==O&&I(E)},[E]);const M=()=>{I(!O)},N={...m,...g};return u.jsxs("div",{ref:S,tabIndex:-1,className:RE(Do.block,c&&Do["is-dragging"],!c&&d,s),"data-testid":`block-${n}`,"data-id":n,"data-block-type":r,children:[u.jsx(cu,{ref:v,className:se({[Do["block-collapse"]]:O},{[Do["block-is-dragging"]]:c}),isCollapsed:O,onCollapse:M,onCopy:w,onDelete:_,isDragging:c,dragHandlerProps:N,...y}),f?null:u.jsx(u.Fragment,{children:O?null:u.jsx("div",{className:se(Do["block-children"],{[Do["block-is-dragging"]]:c},l),children:i})})]},n)});$r.displayName="Block";const Ya={breadcrumb:"_breadcrumb_1685c_1","breadcrumb--list-item":"_breadcrumb--list-item_1685c_9","breadcrumb--link":"_breadcrumb--link_1685c_14","breadcrumb--separator":"_breadcrumb--separator_1685c_18"},Bh=p.forwardRef((e,t)=>{const{items:n,separator:r,className:i}=e,s=n.map((l,c)=>{const d=c+1===n.length;return u.jsxs("li",{onClick:l.onClick,className:se(Ya["breadcrumb--list-item"],l.className),children:[u.jsx("a",{href:l.href,className:Ya["breadcrumb--link"],children:typeof l.title=="string"?u.jsx(ye,{size:"xs",color:"gray-1000",children:l.title}):l.title}),!d&&u.jsx("span",{className:Ya["breadcrumb--separator"],children:r?u.jsx(ye,{size:"xs",color:"gray-700",children:r}):u.jsx(pa,{className:"text--gray-700"})})]},c)});return u.jsx("ul",{ref:t,className:se(Ya.breadcrumb,i),children:s})});Bh.displayName="Breadcrumb";const xn={"builder-block-toolbar--container":"_builder-block-toolbar--container_1td2q_1","hide-toolbar":"_hide-toolbar_1td2q_17",hideToolbar:"_hideToolbar_1td2q_1","show-toolbar":"_show-toolbar_1td2q_21",showToolbar:"_showToolbar_1td2q_1","builder-block-toolbar--header":"_builder-block-toolbar--header_1td2q_57","builder-block-toolbar--input":"_builder-block-toolbar--input_1td2q_63","builder-block-toolbar--block-container":"_builder-block-toolbar--block-container_1td2q_67","builder-block-toolbar--sections":"_builder-block-toolbar--sections_1td2q_75","builder-block-toolbar--block":"_builder-block-toolbar--block_1td2q_67","builder-block-toolbar--block-dragging":"_builder-block-toolbar--block-dragging_1td2q_103","builder-block-toolbar--block-icon":"_builder-block-toolbar--block-icon_1td2q_113","builder-block-toolbar--block-icon-message":"_builder-block-toolbar--block-icon-message_1td2q_123","builder-block-toolbar--block-icon-logic":"_builder-block-toolbar--block-icon-logic_1td2q_128","builder-block-toolbar-block-label":"_builder-block-toolbar-block-label_1td2q_133"},du={"quality-metric-icon":"_quality-metric-icon_1tcq8_1","quality-metric-icon--green":"_quality-metric-icon--green_1tcq8_10","quality-metric-icon--red":"_quality-metric-icon--red_1tcq8_14","quality-metric-icon--yellow":"_quality-metric-icon--yellow_1tcq8_18","quality-metric-icon--gray":"_quality-metric-icon--gray_1tcq8_22","filled--green":"_filled--green_1tcq8_26","filled--red":"_filled--red_1tcq8_30","filled--yellow":"_filled--yellow_1tcq8_34","filled--gray":"_filled--gray_1tcq8_38"},Za=p.forwardRef((e,t)=>{const{color:n,filled:r,className:i,...s}=e;return u.jsx("div",{ref:t,className:se(du["quality-metric-icon"],du[`quality-metric-icon--${n}`],r&&du[`filled--${n}`],i),...s})});Za.displayName="QualityMetricIcon";const Xa=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Mo(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function uu(e){return"nodeType"in e}function Vt(e){var t,n;return e?Mo(e)?e:uu(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function fu(e){const{Document:t}=Vt(e);return e instanceof t}function Ss(e){return Mo(e)?!1:e instanceof Vt(e).HTMLElement}function LE(e){return e instanceof Vt(e).SVGElement}function Po(e){return e?Mo(e)?e.document:uu(e)?fu(e)?e:Ss(e)?e.ownerDocument:document:document:document}const Dr=Xa?p.useLayoutEffect:p.useEffect;function Ka(e){const t=p.useRef(e);return Dr(()=>{t.current=e}),p.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function jE(){const e=p.useRef(null),t=p.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=p.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function pu(e,t){t===void 0&&(t=[e]);const n=p.useRef(e);return Dr(()=>{n.current!==e&&(n.current=e)},t),n}function Is(e,t){const n=p.useRef();return p.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function hu(e){const t=Ka(e),n=p.useRef(null),r=p.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function Qa(e){const t=p.useRef();return p.useEffect(()=>{t.current=e},[e]),t.current}let gu={};function mu(e,t){return p.useMemo(()=>{if(t)return t;const n=gu[e]==null?0:gu[e]+1;return gu[e]=n,e+"-"+n},[e,t])}function zh(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((s,l)=>{const c=Object.entries(l);for(const[d,f]of c){const m=s[d];m!=null&&(s[d]=m+e*f)}return s},{...t})}}const No=zh(1),Ja=zh(-1);function kE(e){return"clientX"in e&&"clientY"in e}function vu(e){if(!e)return!1;const{KeyboardEvent:t}=Vt(e.target);return t&&e instanceof t}function FE(e){if(!e)return!1;const{TouchEvent:t}=Vt(e.target);return t&&e instanceof t}function el(e){if(FE(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return kE(e)?{x:e.clientX,y:e.clientY}:null}const As=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[As.Translate.toString(e),As.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Gh="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function BE(e){return e.matches(Gh)?e:e.querySelector(Gh)}const zE={display:"none"};function GE(e){let{id:t,value:n}=e;return p.createElement("div",{id:t,style:zE},n)}const HE={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};function UE(e){let{id:t,announcement:n}=e;return p.createElement("div",{id:t,style:HE,role:"status","aria-live":"assertive","aria-atomic":!0},n)}function VE(){const[e,t]=p.useState("");return{announce:p.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const Hh=p.createContext(null);function Uh(e){const t=p.useContext(Hh);p.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function WE(){const[e]=p.useState(()=>new Set),t=p.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[p.useCallback(r=>{let{type:i,event:s}=r;e.forEach(l=>{var c;return(c=l[i])==null?void 0:c.call(l,s)})},[e]),t]}const qE={draggable:`
|
|
72
72
|
To pick up a draggable item, press the space bar.
|
|
73
73
|
While dragging, use the arrow keys to move the item.
|
|
74
74
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
75
|
-
`},Yw={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Zw(e){let{announcements:t=Yw,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=qw}=e;const{announce:s,announcement:l}=Vw(),c=vu("DndLiveRegion"),[d,f]=p.useState(!1);if(p.useEffect(()=>{f(!0)},[]),Vh(p.useMemo(()=>({onDragStart(g){let{active:v}=g;s(t.onDragStart({active:v}))},onDragMove(g){let{active:v,over:b}=g;t.onDragMove&&s(t.onDragMove({active:v,over:b}))},onDragOver(g){let{active:v,over:b}=g;s(t.onDragOver({active:v,over:b}))},onDragEnd(g){let{active:v,over:b}=g;s(t.onDragEnd({active:v,over:b}))},onDragCancel(g){let{active:v,over:b}=g;s(t.onDragCancel({active:v,over:b}))}}),[s,t])),!d)return null;const m=p.createElement(p.Fragment,null,p.createElement(Gw,{id:r,value:i.draggable}),p.createElement(Uw,{id:c,announcement:l}));return n?$n.createPortal(m,n):m}var Gt;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Gt||(Gt={}));function nl(){}const rr=Object.freeze({x:0,y:0});function Xw(e,t){const n=tl(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function Kw(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Qw(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Jw(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),l=i-r,c=s-n;if(r<i&&n<s){const d=t.width*t.height,f=e.width*e.height,m=l*c,g=m/(d+f-m);return Number(g.toFixed(4))}return 0}const e9=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const s of r){const{id:l}=s,c=n.get(l);if(c){const d=Jw(c,t);d>0&&i.push({id:l,data:{droppableContainer:s,value:d}})}}return i.sort(Kw)};function t9(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Wh(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:rr}function n9(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return i.reduce((l,c)=>({...l,top:l.top+e*c.y,bottom:l.bottom+e*c.y,left:l.left+e*c.x,right:l.right+e*c.x}),{...n})}}const r9=n9(1);function qh(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function i9(e,t,n){const r=qh(t);if(!r)return e;const{scaleX:i,scaleY:s,x:l,y:c}=r,d=e.left-l-(1-i)*parseFloat(n),f=e.top-c-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),m=i?e.width/i:e.width,g=s?e.height/s:e.height;return{width:m,height:g,top:f,right:d+m,bottom:f+g,left:d}}const o9={ignoreTransform:!1};function Os(e,t){t===void 0&&(t=o9);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:f,transformOrigin:m}=Vt(e).getComputedStyle(e);f&&(n=i9(n,f,m))}const{top:r,left:i,width:s,height:l,bottom:c,right:d}=n;return{top:r,left:i,width:s,height:l,bottom:c,right:d}}function Yh(e){return Os(e,{ignoreTransform:!0})}function s9(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function a9(e,t){return t===void 0&&(t=Vt(e).getComputedStyle(e)),t.position==="fixed"}function l9(e,t){t===void 0&&(t=Vt(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const s=t[i];return typeof s=="string"?n.test(s):!1})}function _u(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(pu(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Ss(i)||Lw(i)||n.includes(i))return n;const s=Vt(e).getComputedStyle(i);return i!==e&&l9(i,s)&&n.push(i),a9(i,s)?n:r(i.parentNode)}return e?r(e):n}function Zh(e){const[t]=_u(e,1);return t??null}function xu(e){return!Ka||!e?null:Mo(e)?e:fu(e)?pu(e)||e===Po(e).scrollingElement?window:Ss(e)?e:null:null}function Xh(e){return Mo(e)?e.scrollX:e.scrollLeft}function Kh(e){return Mo(e)?e.scrollY:e.scrollTop}function Eu(e){return{x:Xh(e),y:Kh(e)}}var Ot;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ot||(Ot={}));function Qh(e){return!Ka||!e?!1:e===document.scrollingElement}function Jh(e){const t={x:0,y:0},n=Qh(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,l=e.scrollTop>=r.y,c=e.scrollLeft>=r.x;return{isTop:i,isLeft:s,isBottom:l,isRight:c,maxScroll:r,minScroll:t}}const c9={x:.2,y:.2};function d9(e,t,n,r,i){let{top:s,left:l,right:c,bottom:d}=n;r===void 0&&(r=10),i===void 0&&(i=c9);const{isTop:f,isBottom:m,isLeft:g,isRight:v}=Jh(e),b={x:0,y:0},E={x:0,y:0},_={height:t.height*i.y,width:t.width*i.x};return!f&&s<=t.top+_.height?(b.y=Ot.Backward,E.y=r*Math.abs((t.top+_.height-s)/_.height)):!m&&d>=t.bottom-_.height&&(b.y=Ot.Forward,E.y=r*Math.abs((t.bottom-_.height-d)/_.height)),!v&&c>=t.right-_.width?(b.x=Ot.Forward,E.x=r*Math.abs((t.right-_.width-c)/_.width)):!g&&l<=t.left+_.width&&(b.x=Ot.Backward,E.x=r*Math.abs((t.left+_.width-l)/_.width)),{direction:b,speed:E}}function u9(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:l}=window;return{top:0,left:0,right:s,bottom:l,width:s,height:l}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function eg(e){return e.reduce((t,n)=>No(t,Eu(n)),rr)}function f9(e){return e.reduce((t,n)=>t+Xh(n),0)}function p9(e){return e.reduce((t,n)=>t+Kh(n),0)}function tg(e,t){if(t===void 0&&(t=Os),!e)return;const{top:n,left:r,bottom:i,right:s}=t(e);Zh(e)&&(i<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const h9=[["x",["left","right"],f9],["y",["top","bottom"],p9]];class wu{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=_u(n),i=eg(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,l,c]of h9)for(const d of l)Object.defineProperty(this,d,{get:()=>{const f=c(r),m=i[s]-f;return this.rect[d]+m},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class $s{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function g9(e){const{EventTarget:t}=Vt(e);return e instanceof t?e:Po(e)}function yu(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Pn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Pn||(Pn={}));function ng(e){e.preventDefault()}function m9(e){e.stopPropagation()}var nt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(nt||(nt={}));const rg={start:[nt.Space,nt.Enter],cancel:[nt.Esc],end:[nt.Space,nt.Enter]},v9=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case nt.Right:return{...n,x:n.x+25};case nt.Left:return{...n,x:n.x-25};case nt.Down:return{...n,y:n.y+25};case nt.Up:return{...n,y:n.y-25}}};class ig{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new $s(Po(n)),this.windowListeners=new $s(Vt(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Pn.Resize,this.handleCancel),this.windowListeners.add(Pn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Pn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&tg(r),n(rr)}handleKeyDown(t){if(bu(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:s=rg,coordinateGetter:l=v9,scrollBehavior:c="smooth"}=i,{code:d}=t;if(s.end.includes(d)){this.handleEnd(t);return}if(s.cancel.includes(d)){this.handleCancel(t);return}const{collisionRect:f}=r.current,m=f?{x:f.left,y:f.top}:rr;this.referenceCoordinates||(this.referenceCoordinates=m);const g=l(t,{active:n,context:r.current,currentCoordinates:m});if(g){const v=el(g,m),b={x:0,y:0},{scrollableAncestors:E}=r.current;for(const _ of E){const w=t.code,{isTop:y,isRight:T,isLeft:S,isBottom:O,maxScroll:I,minScroll:M}=Jh(_),N=u9(_),D={x:Math.min(w===nt.Right?N.right-N.width/2:N.right,Math.max(w===nt.Right?N.left:N.left+N.width/2,g.x)),y:Math.min(w===nt.Down?N.bottom-N.height/2:N.bottom,Math.max(w===nt.Down?N.top:N.top+N.height/2,g.y))},k=w===nt.Right&&!T||w===nt.Left&&!S,Y=w===nt.Down&&!O||w===nt.Up&&!y;if(k&&D.x!==g.x){const L=_.scrollLeft+v.x,G=w===nt.Right&&L<=I.x||w===nt.Left&&L>=M.x;if(G&&!v.y){_.scrollTo({left:L,behavior:c});return}G?b.x=_.scrollLeft-L:b.x=w===nt.Right?_.scrollLeft-I.x:_.scrollLeft-M.x,b.x&&_.scrollBy({left:-b.x,behavior:c});break}else if(Y&&D.y!==g.y){const L=_.scrollTop+v.y,G=w===nt.Down&&L<=I.y||w===nt.Up&&L>=M.y;if(G&&!v.x){_.scrollTo({top:L,behavior:c});return}G?b.y=_.scrollTop-L:b.y=w===nt.Down?_.scrollTop-I.y:_.scrollTop-M.y,b.y&&_.scrollBy({top:-b.y,behavior:c});break}}this.handleMove(t,No(el(g,this.referenceCoordinates),b))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}ig.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=rg,onActivation:i}=t,{active:s}=n;const{code:l}=e.nativeEvent;if(r.start.includes(l)){const c=s.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function og(e){return!!(e&&"distance"in e)}function sg(e){return!!(e&&"delay"in e)}class Cu{constructor(t,n,r){var i;r===void 0&&(r=g9(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:l}=s;this.props=t,this.events=n,this.document=Po(l),this.documentListeners=new $s(this.document),this.listeners=new $s(r),this.windowListeners=new $s(Vt(l)),this.initialCoordinates=(i=tl(s))!=null?i:rr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Pn.Resize,this.handleCancel),this.windowListeners.add(Pn.DragStart,ng),this.windowListeners.add(Pn.VisibilityChange,this.handleCancel),this.windowListeners.add(Pn.ContextMenu,ng),this.documentListeners.add(Pn.Keydown,this.handleKeydown),n){if(og(n))return;if(sg(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Pn.Click,m9,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Pn.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:s}=this,{onMove:l,options:{activationConstraint:c}}=s;if(!i)return;const d=(n=tl(t))!=null?n:rr,f=el(i,d);if(!r&&c){if(sg(c))return yu(f,c.tolerance)?this.handleCancel():void 0;if(og(c))return c.tolerance!=null&&yu(f,c.tolerance)?this.handleCancel():yu(f,c.distance)?this.handleStart():void 0}t.cancelable&&t.preventDefault(),l(d)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===nt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const b9={move:{name:"pointermove"},end:{name:"pointerup"}};class ag extends Cu{constructor(t){const{event:n}=t,r=Po(n.target);super(t,b9,r)}}ag.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const _9={move:{name:"mousemove"},end:{name:"mouseup"}};var Tu;(function(e){e[e.RightClick=2]="RightClick"})(Tu||(Tu={}));class x9 extends Cu{constructor(t){super(t,_9,Po(t.event.target))}}x9.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Tu.RightClick?!1:(r==null||r({event:n}),!0)}}];const Su={move:{name:"touchmove"},end:{name:"touchend"}};class E9 extends Cu{constructor(t){super(t,Su)}static setup(){return window.addEventListener(Su.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Su.move.name,t)};function t(){}}}E9.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var Ds;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ds||(Ds={}));var rl;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(rl||(rl={}));function w9(e){let{acceleration:t,activator:n=Ds.Pointer,canScroll:r,draggingRect:i,enabled:s,interval:l=5,order:c=rl.TreeOrder,pointerCoordinates:d,scrollableAncestors:f,scrollableAncestorRects:m,delta:g,threshold:v}=e;const b=C9({delta:g,disabled:!s}),[E,_]=jw(),w=p.useRef({x:0,y:0}),y=p.useRef({x:0,y:0}),T=p.useMemo(()=>{switch(n){case Ds.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case Ds.DraggableRect:return i}},[n,i,d]),S=p.useRef(null),O=p.useCallback(()=>{const M=S.current;if(!M)return;const N=w.current.x*y.current.x,D=w.current.y*y.current.y;M.scrollBy(N,D)},[]),I=p.useMemo(()=>c===rl.TreeOrder?[...f].reverse():f,[c,f]);p.useEffect(()=>{if(!s||!f.length||!T){_();return}for(const M of I){if((r==null?void 0:r(M))===!1)continue;const N=f.indexOf(M),D=m[N];if(!D)continue;const{direction:k,speed:Y}=d9(M,D,T,t,v);for(const L of["x","y"])b[L][k[L]]||(Y[L]=0,k[L]=0);if(Y.x>0||Y.y>0){_(),S.current=M,E(O,l),w.current=Y,y.current=k;return}}w.current={x:0,y:0},y.current={x:0,y:0},_()},[t,O,r,_,s,l,JSON.stringify(T),JSON.stringify(b),E,f,I,m,JSON.stringify(v)])}const y9={x:{[Ot.Backward]:!1,[Ot.Forward]:!1},y:{[Ot.Backward]:!1,[Ot.Forward]:!1}};function C9(e){let{delta:t,disabled:n}=e;const r=Ja(t);return Is(i=>{if(n||!r||!i)return y9;const s={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Ot.Backward]:i.x[Ot.Backward]||s.x===-1,[Ot.Forward]:i.x[Ot.Forward]||s.x===1},y:{[Ot.Backward]:i.y[Ot.Backward]||s.y===-1,[Ot.Forward]:i.y[Ot.Forward]||s.y===1}}},[n,t,r])}function T9(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Is(i=>{var s;return t===null?null:(s=r??i)!=null?s:null},[r,t])}function S9(e,t){return p.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,s=i.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,r)}));return[...n,...s]},[]),[e,t])}var Ms;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Ms||(Ms={}));var Iu;(function(e){e.Optimized="optimized"})(Iu||(Iu={}));const lg=new Map;function I9(e,t){let{dragging:n,dependencies:r,config:i}=t;const[s,l]=p.useState(null),{frequency:c,measure:d,strategy:f}=i,m=p.useRef(e),g=w(),v=hu(g),b=p.useCallback(function(y){y===void 0&&(y=[]),!v.current&&l(T=>T===null?y:T.concat(y.filter(S=>!T.includes(S))))},[v]),E=p.useRef(null),_=Is(y=>{if(g&&!n)return lg;if(!y||y===lg||m.current!==e||s!=null){const T=new Map;for(let S of e){if(!S)continue;if(s&&s.length>0&&!s.includes(S.id)&&S.rect.current){T.set(S.id,S.rect.current);continue}const O=S.node.current,I=O?new wu(d(O),O):null;S.rect.current=I,I&&T.set(S.id,I)}return T}return y},[e,s,n,g,d]);return p.useEffect(()=>{m.current=e},[e]),p.useEffect(()=>{g||b()},[n,g]),p.useEffect(()=>{s&&s.length>0&&l(null)},[JSON.stringify(s)]),p.useEffect(()=>{g||typeof c!="number"||E.current!==null||(E.current=setTimeout(()=>{b(),E.current=null},c))},[c,g,b,...r]),{droppableRects:_,measureDroppableContainers:b,measuringScheduled:s!=null};function w(){switch(f){case Ms.Always:return!1;case Ms.BeforeDragging:return n;default:return!n}}}function Au(e,t){return Is(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function A9(e,t){return Au(e,t)}function O9(e){let{callback:t,disabled:n}=e;const r=Qa(t),i=p.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return p.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Ou(e){let{callback:t,disabled:n}=e;const r=Qa(t),i=p.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return p.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function $9(e){return new wu(Os(e),e)}function cg(e,t,n){t===void 0&&(t=$9);const[r,i]=p.useReducer(c,null),s=O9({callback(d){if(e)for(const f of d){const{type:m,target:g}=f;if(m==="childList"&&g instanceof HTMLElement&&g.contains(e)){i();break}}}}),l=Ou({callback:i});return Dr(()=>{i(),e?(l==null||l.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),s==null||s.disconnect())},[e]),r;function c(d){if(!e)return null;if(e.isConnected===!1){var f;return(f=d??n)!=null?f:null}const m=t(e);return JSON.stringify(d)===JSON.stringify(m)?d:m}}function D9(e){const t=Au(e);return Wh(e,t)}const dg=[];function M9(e){const t=p.useRef(e),n=Is(r=>e?r&&r!==dg&&e&&t.current&&e.parentNode===t.current.parentNode?r:_u(e):dg,[e]);return p.useEffect(()=>{t.current=e},[e]),n}function P9(e){const[t,n]=p.useState(null),r=p.useRef(e),i=p.useCallback(s=>{const l=xu(s.target);l&&n(c=>c?(c.set(l,Eu(l)),new Map(c)):null)},[]);return p.useEffect(()=>{const s=r.current;if(e!==s){l(s);const c=e.map(d=>{const f=xu(d);return f?(f.addEventListener("scroll",i,{passive:!0}),[f,Eu(f)]):null}).filter(d=>d!=null);n(c.length?new Map(c):null),r.current=e}return()=>{l(e),l(s)};function l(c){c.forEach(d=>{const f=xu(d);f==null||f.removeEventListener("scroll",i)})}},[i,e]),p.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,l)=>No(s,l),rr):eg(e):rr,[e,t])}function ug(e,t){t===void 0&&(t=[]);const n=p.useRef(null);return p.useEffect(()=>{n.current=null},t),p.useEffect(()=>{const r=e!==rr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?el(e,n.current):rr}function N9(e){p.useEffect(()=>{if(!Ka)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function R9(e,t){return p.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:s}=r;return n[i]=l=>{s(l,t)},n},{}),[e,t])}function fg(e){return p.useMemo(()=>e?s9(e):null,[e])}const $u=[];function L9(e,t){t===void 0&&(t=Os);const[n]=e,r=fg(n?Vt(n):null),[i,s]=p.useReducer(c,$u),l=Ou({callback:s});return e.length>0&&i===$u&&s(),Dr(()=>{e.length?e.forEach(d=>l==null?void 0:l.observe(d)):(l==null||l.disconnect(),s())},[e]),i;function c(){return e.length?e.map(d=>Qh(d)?r:new wu(t(d),d)):$u}}function pg(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ss(t)?t:e}function j9(e){let{measure:t}=e;const[n,r]=p.useState(null),i=p.useCallback(f=>{for(const{target:m}of f)if(Ss(m)){r(g=>{const v=t(m);return g?{...g,width:v.width,height:v.height}:v});break}},[t]),s=Ou({callback:i}),l=p.useCallback(f=>{const m=pg(f);s==null||s.disconnect(),m&&(s==null||s.observe(m)),r(m?t(m):null)},[t,s]),[c,d]=gu(l);return p.useMemo(()=>({nodeRef:c,rect:n,setRef:d}),[n,c,d])}const k9=[{sensor:ag,options:{}},{sensor:ig,options:{}}],F9={current:{}},il={draggable:{measure:Yh},droppable:{measure:Yh,strategy:Ms.WhileDragging,frequency:Iu.Optimized},dragOverlay:{measure:Os}};class Ps extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const B9={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ps,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:nl},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:il,measureDroppableContainers:nl,windowRect:null,measuringScheduled:!1},hg={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:nl,draggableNodes:new Map,over:null,measureDroppableContainers:nl},ol=p.createContext(hg),gg=p.createContext(B9);function z9(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ps}}}function G9(e,t){switch(t.type){case Gt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Gt.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Gt.DragEnd:case Gt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Gt.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Ps(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Gt.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const l=new Ps(e.droppable.containers);return l.set(n,{...s,disabled:i}),{...e,droppable:{...e.droppable,containers:l}}}case Gt.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const s=new Ps(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function H9(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=p.useContext(ol),s=Ja(r),l=Ja(n==null?void 0:n.id);return p.useEffect(()=>{if(!t&&!r&&s&&l!=null){if(!bu(s)||document.activeElement===s.target)return;const c=i.get(l);if(!c)return;const{activatorNode:d,node:f}=c;if(!d.current&&!f.current)return;requestAnimationFrame(()=>{for(const m of[d.current,f.current]){if(!m)continue;const g=Bw(m);if(g){g.focus();break}}})}},[r,t,i,l,s]),null}function mg(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,s)=>s({transform:i,...r}),n):n}function U9(e){return p.useMemo(()=>({draggable:{...il.draggable,...e==null?void 0:e.draggable},droppable:{...il.droppable,...e==null?void 0:e.droppable},dragOverlay:{...il.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function V9(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const s=p.useRef(!1),{x:l,y:c}=typeof i=="boolean"?{x:i,y:i}:i;Dr(()=>{if(!l&&!c||!t){s.current=!1;return}if(s.current||!r)return;const f=t==null?void 0:t.node.current;if(!f||f.isConnected===!1)return;const m=n(f),g=Wh(m,r);if(l||(g.x=0),c||(g.y=0),s.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const v=Zh(f);v&&v.scrollBy({top:g.y,left:g.x})}},[t,l,c,r,n])}const sl=p.createContext({...rr,scaleX:1,scaleY:1});var ai;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(ai||(ai={}));const W9=p.memo(function(t){var n,r,i,s;let{id:l,accessibility:c,autoScroll:d=!0,children:f,sensors:m=k9,collisionDetection:g=e9,measuring:v,modifiers:b,...E}=t;const _=p.useReducer(G9,void 0,z9),[w,y]=_,[T,S]=Ww(),[O,I]=p.useState(ai.Uninitialized),M=O===ai.Initialized,{draggable:{active:N,nodes:D,translate:k},droppable:{containers:Y}}=w,L=N?D.get(N):null,G=p.useRef({initial:null,translated:null}),X=p.useMemo(()=>{var at;return N!=null?{id:N,data:(at=L==null?void 0:L.data)!=null?at:F9,rect:G}:null},[N,L]),R=p.useRef(null),[K,B]=p.useState(null),[W,J]=p.useState(null),q=hu(E,Object.values(E)),U=vu("DndDescribedBy",l),V=p.useMemo(()=>Y.getEnabled(),[Y]),ce=U9(v),{droppableRects:ue,measureDroppableContainers:pe,measuringScheduled:we}=I9(V,{dragging:M,dependencies:[k.x,k.y],config:ce.droppable}),ne=T9(D,N),le=p.useMemo(()=>W?tl(W):null,[W]),ge=Zs(),be=A9(ne,ce.draggable.measure);V9({activeNode:N?D.get(N):null,config:ge.layoutShiftCompensation,initialRect:be,measure:ce.draggable.measure});const he=cg(ne,ce.draggable.measure,be),We=cg(ne?ne.parentElement:null),de=p.useRef({activatorEvent:null,active:null,activeNode:ne,collisionRect:null,collisions:null,droppableRects:ue,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:Y,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),_t=Y.getNodeFor((n=de.current.over)==null?void 0:n.id),Ke=j9({measure:ce.dragOverlay.measure}),yt=(r=Ke.nodeRef.current)!=null?r:ne,yn=M?(i=Ke.rect)!=null?i:he:null,Rt=!!(Ke.nodeRef.current&&Ke.rect),kn=D9(Rt?null:he),jr=fg(yt?Vt(yt):null),ft=M9(M?_t??ne:null),Ct=L9(ft),Fn=mg(b,{transform:{x:k.x-kn.x,y:k.y-kn.y,scaleX:1,scaleY:1},activatorEvent:W,active:X,activeNodeRect:he,containerNodeRect:We,draggingNodeRect:yn,over:de.current.over,overlayNodeRect:Ke.rect,scrollableAncestors:ft,scrollableAncestorRects:Ct,windowRect:jr}),wr=le?No(le,k):null,io=P9(ft),kr=ug(io),qs=ug(io,[he]),dn=No(Fn,kr),Kt=yn?r9(yn,Fn):null,lr=X&&Kt?g({active:X,collisionRect:Kt,droppableRects:ue,droppableContainers:V,pointerCoordinates:wr}):null,mi=Qw(lr,"id"),[un,yr]=p.useState(null),vi=Rt?Fn:No(Fn,qs),Bn=t9(vi,(s=un==null?void 0:un.rect)!=null?s:null,he),Cr=p.useCallback((at,St)=>{let{sensor:Lt,options:zn}=St;if(R.current==null)return;const jt=D.get(R.current);if(!jt)return;const Qt=at.nativeEvent,Jt=new Lt({active:R.current,activeNode:jt,event:Qt,options:zn,context:de,onStart(en){const j=R.current;if(j==null)return;const se=D.get(j);if(!se)return;const{onDragStart:_e}=q.current,Te={active:{id:j,data:se.data,rect:G}};$n.unstable_batchedUpdates(()=>{_e==null||_e(Te),I(ai.Initializing),y({type:Gt.DragStart,initialCoordinates:en,active:j}),T({type:"onDragStart",event:Te})})},onMove(en){y({type:Gt.DragMove,coordinates:en})},onEnd:Tr(Gt.DragEnd),onCancel:Tr(Gt.DragCancel)});$n.unstable_batchedUpdates(()=>{B(Jt),J(at.nativeEvent)});function Tr(en){return async function(){const{active:se,collisions:_e,over:Te,scrollAdjustedTranslate:qe}=de.current;let Be=null;if(se&&qe){const{cancelDrop:Me}=q.current;Be={activatorEvent:Qt,active:se,collisions:_e,delta:qe,over:Te},en===Gt.DragEnd&&typeof Me=="function"&&await Promise.resolve(Me(Be))&&(en=Gt.DragCancel)}R.current=null,$n.unstable_batchedUpdates(()=>{y({type:en}),I(ai.Uninitialized),yr(null),B(null),J(null);const Me=en===Gt.DragEnd?"onDragEnd":"onDragCancel";if(Be){const Pe=q.current[Me];Pe==null||Pe(Be),T({type:Me,event:Be})}})}}},[D]),Fr=p.useCallback((at,St)=>(Lt,zn)=>{const jt=Lt.nativeEvent,Qt=D.get(zn);if(R.current!==null||!Qt||jt.dndKit||jt.defaultPrevented)return;const Jt={active:Qt};at(Lt,St.options,Jt)===!0&&(jt.dndKit={capturedBy:St.sensor},R.current=zn,Cr(Lt,St))},[D,Cr]),Br=S9(m,Fr);N9(m),Dr(()=>{he&&O===ai.Initializing&&I(ai.Initialized)},[he,O]),p.useEffect(()=>{const{onDragMove:at}=q.current,{active:St,activatorEvent:Lt,collisions:zn,over:jt}=de.current;if(!St||!Lt)return;const Qt={active:St,activatorEvent:Lt,collisions:zn,delta:{x:dn.x,y:dn.y},over:jt};$n.unstable_batchedUpdates(()=>{at==null||at(Qt),T({type:"onDragMove",event:Qt})})},[dn.x,dn.y]),p.useEffect(()=>{const{active:at,activatorEvent:St,collisions:Lt,droppableContainers:zn,scrollAdjustedTranslate:jt}=de.current;if(!at||R.current==null||!St||!jt)return;const{onDragOver:Qt}=q.current,Jt=zn.get(mi),Tr=Jt&&Jt.rect.current?{id:Jt.id,rect:Jt.rect.current,data:Jt.data,disabled:Jt.disabled}:null,en={active:at,activatorEvent:St,collisions:Lt,delta:{x:jt.x,y:jt.y},over:Tr};$n.unstable_batchedUpdates(()=>{yr(Tr),Qt==null||Qt(en),T({type:"onDragOver",event:en})})},[mi]),Dr(()=>{de.current={activatorEvent:W,active:X,activeNode:ne,collisionRect:Kt,collisions:lr,droppableRects:ue,draggableNodes:D,draggingNode:yt,draggingNodeRect:yn,droppableContainers:Y,over:un,scrollableAncestors:ft,scrollAdjustedTranslate:dn},G.current={initial:yn,translated:Kt}},[X,ne,lr,Kt,D,yt,yn,ue,Y,un,ft,dn]),w9({...ge,delta:k,draggingRect:Kt,pointerCoordinates:wr,scrollableAncestors:ft,scrollableAncestorRects:Ct});const Ys=p.useMemo(()=>({active:X,activeNode:ne,activeNodeRect:he,activatorEvent:W,collisions:lr,containerNodeRect:We,dragOverlay:Ke,draggableNodes:D,droppableContainers:Y,droppableRects:ue,over:un,measureDroppableContainers:pe,scrollableAncestors:ft,scrollableAncestorRects:Ct,measuringConfiguration:ce,measuringScheduled:we,windowRect:jr}),[X,ne,he,W,lr,We,Ke,D,Y,ue,un,pe,ft,Ct,ce,we,jr]),Yo=p.useMemo(()=>({activatorEvent:W,activators:Br,active:X,activeNodeRect:he,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:D,over:un,measureDroppableContainers:pe}),[W,Br,X,he,y,U,D,un,pe]);return p.createElement(Uh.Provider,{value:S},p.createElement(ol.Provider,{value:Yo},p.createElement(gg.Provider,{value:Ys},p.createElement(sl.Provider,{value:Bn},f)),p.createElement(H9,{disabled:(c==null?void 0:c.restoreFocus)===!1})),p.createElement(Zw,{...c,hiddenTextDescribedById:U}));function Zs(){const at=(K==null?void 0:K.autoScrollEnabled)===!1,St=typeof d=="object"?d.enabled===!1:d===!1,Lt=M&&!at&&!St;return typeof d=="object"?{...d,enabled:Lt}:{enabled:Lt}}}),q9=p.createContext(null),vg="button",Y9="Droppable";function Z9(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const s=vu(Y9),{activators:l,activatorEvent:c,active:d,activeNodeRect:f,ariaDescribedById:m,draggableNodes:g,over:v}=p.useContext(ol),{role:b=vg,roleDescription:E="draggable",tabIndex:_=0}=i??{},w=(d==null?void 0:d.id)===t,y=p.useContext(w?sl:q9),[T,S]=gu(),[O,I]=gu(),M=R9(l,t),N=hu(n);Dr(()=>(g.set(t,{id:t,key:s,node:T,activatorNode:O,data:N}),()=>{const k=g.get(t);k&&k.key===s&&g.delete(t)}),[g,t]);const D=p.useMemo(()=>({role:b,tabIndex:_,"aria-disabled":r,"aria-pressed":w&&b===vg?!0:void 0,"aria-roledescription":E,"aria-describedby":m.draggable}),[r,b,_,w,E,m.draggable]);return{active:d,activatorEvent:c,activeNodeRect:f,attributes:D,isDragging:w,listeners:r?void 0:M,node:T,over:v,setNodeRef:S,setActivatorNodeRef:I,transform:y}}function X9(){return p.useContext(gg)}function K9(e){let{animation:t,children:n}=e;const[r,i]=p.useState(null),[s,l]=p.useState(null),c=Ja(n);return!n&&!r&&c&&i(c),Dr(()=>{if(!s)return;const d=r==null?void 0:r.key,f=r==null?void 0:r.props.id;if(d==null||f==null){i(null);return}Promise.resolve(t(f,s)).then(()=>{i(null)})},[t,r,s]),p.createElement(p.Fragment,null,n,r?p.cloneElement(r,{ref:l}):null)}const Q9={x:0,y:0,scaleX:1,scaleY:1};function J9(e){let{children:t}=e;return p.createElement(ol.Provider,{value:hg},p.createElement(sl.Provider,{value:Q9},t))}const ey={position:"fixed",touchAction:"none"},ty=e=>bu(e)?"transform 250ms ease":void 0,ny=p.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:s,className:l,rect:c,style:d,transform:f,transition:m=ty}=e;if(!c)return null;const g=i?f:{...f,scaleX:1,scaleY:1},v={...ey,width:c.width,height:c.height,top:c.top,left:c.left,transform:As.Transform.toString(g),transformOrigin:i&&r?Xw(r,c):void 0,transition:typeof m=="function"?m(r):m,...d};return p.createElement(n,{className:l,style:v,ref:t},s)}),ry={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:As.Transform.toString(t)},{transform:As.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:s,className:l}=e;if(s!=null&&s.active)for(const[c,d]of Object.entries(s.active))d!==void 0&&(i[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,d));if(s!=null&&s.dragOverlay)for(const[c,d]of Object.entries(s.dragOverlay))d!==void 0&&r.node.style.setProperty(c,d);return l!=null&&l.active&&n.node.classList.add(l.active),l!=null&&l.dragOverlay&&r.node.classList.add(l.dragOverlay),function(){for(const[d,f]of Object.entries(i))n.node.style.setProperty(d,f);l!=null&&l.active&&n.node.classList.remove(l.active)}})({styles:{active:{opacity:"0"}}})};function iy(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Qa((s,l)=>{if(t===null)return;const c=n.get(s);if(!c)return;const d=c.node.current;if(!d)return;const f=pg(l);if(!f)return;const{transform:m}=Vt(l).getComputedStyle(l),g=qh(m);if(!g)return;const v=typeof t=="function"?t:oy(t);return tg(d,i.draggable.measure),v({active:{id:s,data:c.data,node:d,rect:i.draggable.measure(d)},draggableNodes:n,dragOverlay:{node:l,rect:i.dragOverlay.measure(f)},droppableContainers:r,measuringConfiguration:i,transform:g})})}function oy(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...ry,...e};return s=>{let{active:l,dragOverlay:c,transform:d,...f}=s;if(!t)return;const m={x:c.rect.left-l.rect.left,y:c.rect.top-l.rect.top},g={scaleX:d.scaleX!==1?l.rect.width*d.scaleX/c.rect.width:1,scaleY:d.scaleY!==1?l.rect.height*d.scaleY/c.rect.height:1},v={x:d.x-m.x,y:d.y-m.y,...g},b=i({...f,active:l,dragOverlay:c,transform:{initial:d,final:v}}),[E]=b,_=b[b.length-1];if(JSON.stringify(E)===JSON.stringify(_))return;const w=r==null?void 0:r({active:l,dragOverlay:c,...f}),y=c.node.animate(b,{duration:t,easing:n,fill:"forwards"});return new Promise(T=>{y.onfinish=()=>{w==null||w(),T()}})}}let bg=0;function sy(e){return p.useMemo(()=>{if(e!=null)return bg++,bg},[e])}const ay=p.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:s,modifiers:l,wrapperElement:c="div",className:d,zIndex:f=999}=e;const{activatorEvent:m,active:g,activeNodeRect:v,containerNodeRect:b,draggableNodes:E,droppableContainers:_,dragOverlay:w,over:y,measuringConfiguration:T,scrollableAncestors:S,scrollableAncestorRects:O,windowRect:I}=X9(),M=p.useContext(sl),N=sy(g==null?void 0:g.id),D=mg(l,{activatorEvent:m,active:g,activeNodeRect:v,containerNodeRect:b,draggingNodeRect:w.rect,over:y,overlayNodeRect:w.rect,scrollableAncestors:S,scrollableAncestorRects:O,transform:M,windowRect:I}),k=Au(v),Y=iy({config:r,draggableNodes:E,droppableContainers:_,measuringConfiguration:T}),L=k?w.setRef:void 0;return p.createElement(J9,null,p.createElement(K9,{animation:Y},g&&N?p.createElement(ny,{key:N,id:g.id,ref:L,as:c,activatorEvent:m,adjustScale:t,className:d,transition:s,rect:k,style:{zIndex:f,...i},transform:D},n):null))});var al={exports:{}};/**
|
|
75
|
+
`},YE={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function ZE(e){let{announcements:t=YE,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=qE}=e;const{announce:s,announcement:l}=VE(),c=mu("DndLiveRegion"),[d,f]=p.useState(!1);if(p.useEffect(()=>{f(!0)},[]),Uh(p.useMemo(()=>({onDragStart(g){let{active:v}=g;s(t.onDragStart({active:v}))},onDragMove(g){let{active:v,over:b}=g;t.onDragMove&&s(t.onDragMove({active:v,over:b}))},onDragOver(g){let{active:v,over:b}=g;s(t.onDragOver({active:v,over:b}))},onDragEnd(g){let{active:v,over:b}=g;s(t.onDragEnd({active:v,over:b}))},onDragCancel(g){let{active:v,over:b}=g;s(t.onDragCancel({active:v,over:b}))}}),[s,t])),!d)return null;const m=p.createElement(p.Fragment,null,p.createElement(GE,{id:r,value:i.draggable}),p.createElement(UE,{id:c,announcement:l}));return n?$n.createPortal(m,n):m}var Gt;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Gt||(Gt={}));function tl(){}const rr=Object.freeze({x:0,y:0});function XE(e,t){const n=el(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function KE(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function QE(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function JE(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),l=i-r,c=s-n;if(r<i&&n<s){const d=t.width*t.height,f=e.width*e.height,m=l*c,g=m/(d+f-m);return Number(g.toFixed(4))}return 0}const e9=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const s of r){const{id:l}=s,c=n.get(l);if(c){const d=JE(c,t);d>0&&i.push({id:l,data:{droppableContainer:s,value:d}})}}return i.sort(KE)};function t9(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Vh(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:rr}function n9(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return i.reduce((l,c)=>({...l,top:l.top+e*c.y,bottom:l.bottom+e*c.y,left:l.left+e*c.x,right:l.right+e*c.x}),{...n})}}const r9=n9(1);function Wh(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function i9(e,t,n){const r=Wh(t);if(!r)return e;const{scaleX:i,scaleY:s,x:l,y:c}=r,d=e.left-l-(1-i)*parseFloat(n),f=e.top-c-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),m=i?e.width/i:e.width,g=s?e.height/s:e.height;return{width:m,height:g,top:f,right:d+m,bottom:f+g,left:d}}const o9={ignoreTransform:!1};function Os(e,t){t===void 0&&(t=o9);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:f,transformOrigin:m}=Vt(e).getComputedStyle(e);f&&(n=i9(n,f,m))}const{top:r,left:i,width:s,height:l,bottom:c,right:d}=n;return{top:r,left:i,width:s,height:l,bottom:c,right:d}}function qh(e){return Os(e,{ignoreTransform:!0})}function s9(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function a9(e,t){return t===void 0&&(t=Vt(e).getComputedStyle(e)),t.position==="fixed"}function l9(e,t){t===void 0&&(t=Vt(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const s=t[i];return typeof s=="string"?n.test(s):!1})}function bu(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(fu(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!Ss(i)||LE(i)||n.includes(i))return n;const s=Vt(e).getComputedStyle(i);return i!==e&&l9(i,s)&&n.push(i),a9(i,s)?n:r(i.parentNode)}return e?r(e):n}function Yh(e){const[t]=bu(e,1);return t??null}function _u(e){return!Xa||!e?null:Mo(e)?e:uu(e)?fu(e)||e===Po(e).scrollingElement?window:Ss(e)?e:null:null}function Zh(e){return Mo(e)?e.scrollX:e.scrollLeft}function Xh(e){return Mo(e)?e.scrollY:e.scrollTop}function xu(e){return{x:Zh(e),y:Xh(e)}}var Ot;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ot||(Ot={}));function Kh(e){return!Xa||!e?!1:e===document.scrollingElement}function Qh(e){const t={x:0,y:0},n=Kh(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,l=e.scrollTop>=r.y,c=e.scrollLeft>=r.x;return{isTop:i,isLeft:s,isBottom:l,isRight:c,maxScroll:r,minScroll:t}}const c9={x:.2,y:.2};function d9(e,t,n,r,i){let{top:s,left:l,right:c,bottom:d}=n;r===void 0&&(r=10),i===void 0&&(i=c9);const{isTop:f,isBottom:m,isLeft:g,isRight:v}=Qh(e),b={x:0,y:0},w={x:0,y:0},_={height:t.height*i.y,width:t.width*i.x};return!f&&s<=t.top+_.height?(b.y=Ot.Backward,w.y=r*Math.abs((t.top+_.height-s)/_.height)):!m&&d>=t.bottom-_.height&&(b.y=Ot.Forward,w.y=r*Math.abs((t.bottom-_.height-d)/_.height)),!v&&c>=t.right-_.width?(b.x=Ot.Forward,w.x=r*Math.abs((t.right-_.width-c)/_.width)):!g&&l<=t.left+_.width&&(b.x=Ot.Backward,w.x=r*Math.abs((t.left+_.width-l)/_.width)),{direction:b,speed:w}}function u9(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:l}=window;return{top:0,left:0,right:s,bottom:l,width:s,height:l}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Jh(e){return e.reduce((t,n)=>No(t,xu(n)),rr)}function f9(e){return e.reduce((t,n)=>t+Zh(n),0)}function p9(e){return e.reduce((t,n)=>t+Xh(n),0)}function eg(e,t){if(t===void 0&&(t=Os),!e)return;const{top:n,left:r,bottom:i,right:s}=t(e);Yh(e)&&(i<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const h9=[["x",["left","right"],f9],["y",["top","bottom"],p9]];class wu{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=bu(n),i=Jh(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,l,c]of h9)for(const d of l)Object.defineProperty(this,d,{get:()=>{const f=c(r),m=i[s]-f;return this.rect[d]+m},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class $s{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function g9(e){const{EventTarget:t}=Vt(e);return e instanceof t?e:Po(e)}function Eu(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var Nn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Nn||(Nn={}));function tg(e){e.preventDefault()}function m9(e){e.stopPropagation()}var nt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(nt||(nt={}));const ng={start:[nt.Space,nt.Enter],cancel:[nt.Esc],end:[nt.Space,nt.Enter]},v9=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case nt.Right:return{...n,x:n.x+25};case nt.Left:return{...n,x:n.x-25};case nt.Down:return{...n,y:n.y+25};case nt.Up:return{...n,y:n.y-25}}};class rg{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new $s(Po(n)),this.windowListeners=new $s(Vt(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Nn.Resize,this.handleCancel),this.windowListeners.add(Nn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Nn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&eg(r),n(rr)}handleKeyDown(t){if(vu(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:s=ng,coordinateGetter:l=v9,scrollBehavior:c="smooth"}=i,{code:d}=t;if(s.end.includes(d)){this.handleEnd(t);return}if(s.cancel.includes(d)){this.handleCancel(t);return}const{collisionRect:f}=r.current,m=f?{x:f.left,y:f.top}:rr;this.referenceCoordinates||(this.referenceCoordinates=m);const g=l(t,{active:n,context:r.current,currentCoordinates:m});if(g){const v=Ja(g,m),b={x:0,y:0},{scrollableAncestors:w}=r.current;for(const _ of w){const E=t.code,{isTop:y,isRight:T,isLeft:S,isBottom:O,maxScroll:I,minScroll:M}=Qh(_),N=u9(_),D={x:Math.min(E===nt.Right?N.right-N.width/2:N.right,Math.max(E===nt.Right?N.left:N.left+N.width/2,g.x)),y:Math.min(E===nt.Down?N.bottom-N.height/2:N.bottom,Math.max(E===nt.Down?N.top:N.top+N.height/2,g.y))},k=E===nt.Right&&!T||E===nt.Left&&!S,Y=E===nt.Down&&!O||E===nt.Up&&!y;if(k&&D.x!==g.x){const L=_.scrollLeft+v.x,G=E===nt.Right&&L<=I.x||E===nt.Left&&L>=M.x;if(G&&!v.y){_.scrollTo({left:L,behavior:c});return}G?b.x=_.scrollLeft-L:b.x=E===nt.Right?_.scrollLeft-I.x:_.scrollLeft-M.x,b.x&&_.scrollBy({left:-b.x,behavior:c});break}else if(Y&&D.y!==g.y){const L=_.scrollTop+v.y,G=E===nt.Down&&L<=I.y||E===nt.Up&&L>=M.y;if(G&&!v.x){_.scrollTo({top:L,behavior:c});return}G?b.y=_.scrollTop-L:b.y=E===nt.Down?_.scrollTop-I.y:_.scrollTop-M.y,b.y&&_.scrollBy({top:-b.y,behavior:c});break}}this.handleMove(t,No(Ja(g,this.referenceCoordinates),b))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}rg.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ng,onActivation:i}=t,{active:s}=n;const{code:l}=e.nativeEvent;if(r.start.includes(l)){const c=s.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function ig(e){return!!(e&&"distance"in e)}function og(e){return!!(e&&"delay"in e)}class yu{constructor(t,n,r){var i;r===void 0&&(r=g9(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:l}=s;this.props=t,this.events=n,this.document=Po(l),this.documentListeners=new $s(this.document),this.listeners=new $s(r),this.windowListeners=new $s(Vt(l)),this.initialCoordinates=(i=el(s))!=null?i:rr,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(Nn.Resize,this.handleCancel),this.windowListeners.add(Nn.DragStart,tg),this.windowListeners.add(Nn.VisibilityChange,this.handleCancel),this.windowListeners.add(Nn.ContextMenu,tg),this.documentListeners.add(Nn.Keydown,this.handleKeydown),n){if(ig(n))return;if(og(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(Nn.Click,m9,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Nn.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:s}=this,{onMove:l,options:{activationConstraint:c}}=s;if(!i)return;const d=(n=el(t))!=null?n:rr,f=Ja(i,d);if(!r&&c){if(og(c))return Eu(f,c.tolerance)?this.handleCancel():void 0;if(ig(c))return c.tolerance!=null&&Eu(f,c.tolerance)?this.handleCancel():Eu(f,c.distance)?this.handleStart():void 0}t.cancelable&&t.preventDefault(),l(d)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===nt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const b9={move:{name:"pointermove"},end:{name:"pointerup"}};class sg extends yu{constructor(t){const{event:n}=t,r=Po(n.target);super(t,b9,r)}}sg.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const _9={move:{name:"mousemove"},end:{name:"mouseup"}};var Cu;(function(e){e[e.RightClick=2]="RightClick"})(Cu||(Cu={}));class x9 extends yu{constructor(t){super(t,_9,Po(t.event.target))}}x9.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Cu.RightClick?!1:(r==null||r({event:n}),!0)}}];const Tu={move:{name:"touchmove"},end:{name:"touchend"}};class w9 extends yu{constructor(t){super(t,Tu)}static setup(){return window.addEventListener(Tu.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Tu.move.name,t)};function t(){}}}w9.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var Ds;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ds||(Ds={}));var nl;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(nl||(nl={}));function E9(e){let{acceleration:t,activator:n=Ds.Pointer,canScroll:r,draggingRect:i,enabled:s,interval:l=5,order:c=nl.TreeOrder,pointerCoordinates:d,scrollableAncestors:f,scrollableAncestorRects:m,delta:g,threshold:v}=e;const b=C9({delta:g,disabled:!s}),[w,_]=jE(),E=p.useRef({x:0,y:0}),y=p.useRef({x:0,y:0}),T=p.useMemo(()=>{switch(n){case Ds.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case Ds.DraggableRect:return i}},[n,i,d]),S=p.useRef(null),O=p.useCallback(()=>{const M=S.current;if(!M)return;const N=E.current.x*y.current.x,D=E.current.y*y.current.y;M.scrollBy(N,D)},[]),I=p.useMemo(()=>c===nl.TreeOrder?[...f].reverse():f,[c,f]);p.useEffect(()=>{if(!s||!f.length||!T){_();return}for(const M of I){if((r==null?void 0:r(M))===!1)continue;const N=f.indexOf(M),D=m[N];if(!D)continue;const{direction:k,speed:Y}=d9(M,D,T,t,v);for(const L of["x","y"])b[L][k[L]]||(Y[L]=0,k[L]=0);if(Y.x>0||Y.y>0){_(),S.current=M,w(O,l),E.current=Y,y.current=k;return}}E.current={x:0,y:0},y.current={x:0,y:0},_()},[t,O,r,_,s,l,JSON.stringify(T),JSON.stringify(b),w,f,I,m,JSON.stringify(v)])}const y9={x:{[Ot.Backward]:!1,[Ot.Forward]:!1},y:{[Ot.Backward]:!1,[Ot.Forward]:!1}};function C9(e){let{delta:t,disabled:n}=e;const r=Qa(t);return Is(i=>{if(n||!r||!i)return y9;const s={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Ot.Backward]:i.x[Ot.Backward]||s.x===-1,[Ot.Forward]:i.x[Ot.Forward]||s.x===1},y:{[Ot.Backward]:i.y[Ot.Backward]||s.y===-1,[Ot.Forward]:i.y[Ot.Forward]||s.y===1}}},[n,t,r])}function T9(e,t){const n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Is(i=>{var s;return t===null?null:(s=r??i)!=null?s:null},[r,t])}function S9(e,t){return p.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,s=i.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,r)}));return[...n,...s]},[]),[e,t])}var Ms;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Ms||(Ms={}));var Su;(function(e){e.Optimized="optimized"})(Su||(Su={}));const ag=new Map;function I9(e,t){let{dragging:n,dependencies:r,config:i}=t;const[s,l]=p.useState(null),{frequency:c,measure:d,strategy:f}=i,m=p.useRef(e),g=E(),v=pu(g),b=p.useCallback(function(y){y===void 0&&(y=[]),!v.current&&l(T=>T===null?y:T.concat(y.filter(S=>!T.includes(S))))},[v]),w=p.useRef(null),_=Is(y=>{if(g&&!n)return ag;if(!y||y===ag||m.current!==e||s!=null){const T=new Map;for(let S of e){if(!S)continue;if(s&&s.length>0&&!s.includes(S.id)&&S.rect.current){T.set(S.id,S.rect.current);continue}const O=S.node.current,I=O?new wu(d(O),O):null;S.rect.current=I,I&&T.set(S.id,I)}return T}return y},[e,s,n,g,d]);return p.useEffect(()=>{m.current=e},[e]),p.useEffect(()=>{g||b()},[n,g]),p.useEffect(()=>{s&&s.length>0&&l(null)},[JSON.stringify(s)]),p.useEffect(()=>{g||typeof c!="number"||w.current!==null||(w.current=setTimeout(()=>{b(),w.current=null},c))},[c,g,b,...r]),{droppableRects:_,measureDroppableContainers:b,measuringScheduled:s!=null};function E(){switch(f){case Ms.Always:return!1;case Ms.BeforeDragging:return n;default:return!n}}}function Iu(e,t){return Is(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function A9(e,t){return Iu(e,t)}function O9(e){let{callback:t,disabled:n}=e;const r=Ka(t),i=p.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return p.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Au(e){let{callback:t,disabled:n}=e;const r=Ka(t),i=p.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return p.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function $9(e){return new wu(Os(e),e)}function lg(e,t,n){t===void 0&&(t=$9);const[r,i]=p.useReducer(c,null),s=O9({callback(d){if(e)for(const f of d){const{type:m,target:g}=f;if(m==="childList"&&g instanceof HTMLElement&&g.contains(e)){i();break}}}}),l=Au({callback:i});return Dr(()=>{i(),e?(l==null||l.observe(e),s==null||s.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),s==null||s.disconnect())},[e]),r;function c(d){if(!e)return null;if(e.isConnected===!1){var f;return(f=d??n)!=null?f:null}const m=t(e);return JSON.stringify(d)===JSON.stringify(m)?d:m}}function D9(e){const t=Iu(e);return Vh(e,t)}const cg=[];function M9(e){const t=p.useRef(e),n=Is(r=>e?r&&r!==cg&&e&&t.current&&e.parentNode===t.current.parentNode?r:bu(e):cg,[e]);return p.useEffect(()=>{t.current=e},[e]),n}function P9(e){const[t,n]=p.useState(null),r=p.useRef(e),i=p.useCallback(s=>{const l=_u(s.target);l&&n(c=>c?(c.set(l,xu(l)),new Map(c)):null)},[]);return p.useEffect(()=>{const s=r.current;if(e!==s){l(s);const c=e.map(d=>{const f=_u(d);return f?(f.addEventListener("scroll",i,{passive:!0}),[f,xu(f)]):null}).filter(d=>d!=null);n(c.length?new Map(c):null),r.current=e}return()=>{l(e),l(s)};function l(c){c.forEach(d=>{const f=_u(d);f==null||f.removeEventListener("scroll",i)})}},[i,e]),p.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,l)=>No(s,l),rr):Jh(e):rr,[e,t])}function dg(e,t){t===void 0&&(t=[]);const n=p.useRef(null);return p.useEffect(()=>{n.current=null},t),p.useEffect(()=>{const r=e!==rr;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Ja(e,n.current):rr}function N9(e){p.useEffect(()=>{if(!Xa)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function R9(e,t){return p.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:s}=r;return n[i]=l=>{s(l,t)},n},{}),[e,t])}function ug(e){return p.useMemo(()=>e?s9(e):null,[e])}const Ou=[];function L9(e,t){t===void 0&&(t=Os);const[n]=e,r=ug(n?Vt(n):null),[i,s]=p.useReducer(c,Ou),l=Au({callback:s});return e.length>0&&i===Ou&&s(),Dr(()=>{e.length?e.forEach(d=>l==null?void 0:l.observe(d)):(l==null||l.disconnect(),s())},[e]),i;function c(){return e.length?e.map(d=>Kh(d)?r:new wu(t(d),d)):Ou}}function fg(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ss(t)?t:e}function j9(e){let{measure:t}=e;const[n,r]=p.useState(null),i=p.useCallback(f=>{for(const{target:m}of f)if(Ss(m)){r(g=>{const v=t(m);return g?{...g,width:v.width,height:v.height}:v});break}},[t]),s=Au({callback:i}),l=p.useCallback(f=>{const m=fg(f);s==null||s.disconnect(),m&&(s==null||s.observe(m)),r(m?t(m):null)},[t,s]),[c,d]=hu(l);return p.useMemo(()=>({nodeRef:c,rect:n,setRef:d}),[n,c,d])}const k9=[{sensor:sg,options:{}},{sensor:rg,options:{}}],F9={current:{}},rl={draggable:{measure:qh},droppable:{measure:qh,strategy:Ms.WhileDragging,frequency:Su.Optimized},dragOverlay:{measure:Os}};class Ps extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const B9={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ps,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:tl},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:rl,measureDroppableContainers:tl,windowRect:null,measuringScheduled:!1},pg={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:tl,draggableNodes:new Map,over:null,measureDroppableContainers:tl},il=p.createContext(pg),hg=p.createContext(B9);function z9(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ps}}}function G9(e,t){switch(t.type){case Gt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Gt.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Gt.DragEnd:case Gt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Gt.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Ps(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Gt.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,s=e.droppable.containers.get(n);if(!s||r!==s.key)return e;const l=new Ps(e.droppable.containers);return l.set(n,{...s,disabled:i}),{...e,droppable:{...e.droppable,containers:l}}}case Gt.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const s=new Ps(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function H9(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=p.useContext(il),s=Qa(r),l=Qa(n==null?void 0:n.id);return p.useEffect(()=>{if(!t&&!r&&s&&l!=null){if(!vu(s)||document.activeElement===s.target)return;const c=i.get(l);if(!c)return;const{activatorNode:d,node:f}=c;if(!d.current&&!f.current)return;requestAnimationFrame(()=>{for(const m of[d.current,f.current]){if(!m)continue;const g=BE(m);if(g){g.focus();break}}})}},[r,t,i,l,s]),null}function gg(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,s)=>s({transform:i,...r}),n):n}function U9(e){return p.useMemo(()=>({draggable:{...rl.draggable,...e==null?void 0:e.draggable},droppable:{...rl.droppable,...e==null?void 0:e.droppable},dragOverlay:{...rl.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function V9(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const s=p.useRef(!1),{x:l,y:c}=typeof i=="boolean"?{x:i,y:i}:i;Dr(()=>{if(!l&&!c||!t){s.current=!1;return}if(s.current||!r)return;const f=t==null?void 0:t.node.current;if(!f||f.isConnected===!1)return;const m=n(f),g=Vh(m,r);if(l||(g.x=0),c||(g.y=0),s.current=!0,Math.abs(g.x)>0||Math.abs(g.y)>0){const v=Yh(f);v&&v.scrollBy({top:g.y,left:g.x})}},[t,l,c,r,n])}const ol=p.createContext({...rr,scaleX:1,scaleY:1});var ai;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(ai||(ai={}));const W9=p.memo(function(t){var n,r,i,s;let{id:l,accessibility:c,autoScroll:d=!0,children:f,sensors:m=k9,collisionDetection:g=e9,measuring:v,modifiers:b,...w}=t;const _=p.useReducer(G9,void 0,z9),[E,y]=_,[T,S]=WE(),[O,I]=p.useState(ai.Uninitialized),M=O===ai.Initialized,{draggable:{active:N,nodes:D,translate:k},droppable:{containers:Y}}=E,L=N?D.get(N):null,G=p.useRef({initial:null,translated:null}),Z=p.useMemo(()=>{var lt;return N!=null?{id:N,data:(lt=L==null?void 0:L.data)!=null?lt:F9,rect:G}:null},[N,L]),R=p.useRef(null),[K,B]=p.useState(null),[W,J]=p.useState(null),q=pu(w,Object.values(w)),U=mu("DndDescribedBy",l),V=p.useMemo(()=>Y.getEnabled(),[Y]),ce=U9(v),{droppableRects:ue,measureDroppableContainers:pe,measuringScheduled:Ee}=I9(V,{dragging:M,dependencies:[k.x,k.y],config:ce.droppable}),ne=T9(D,N),le=p.useMemo(()=>W?el(W):null,[W]),ge=Zs(),be=A9(ne,ce.draggable.measure);V9({activeNode:N?D.get(N):null,config:ge.layoutShiftCompensation,initialRect:be,measure:ce.draggable.measure});const he=lg(ne,ce.draggable.measure,be),We=lg(ne?ne.parentElement:null),de=p.useRef({activatorEvent:null,active:null,activeNode:ne,collisionRect:null,collisions:null,droppableRects:ue,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:Y,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),_t=Y.getNodeFor((n=de.current.over)==null?void 0:n.id),Ke=j9({measure:ce.dragOverlay.measure}),yt=(r=Ke.nodeRef.current)!=null?r:ne,yn=M?(i=Ke.rect)!=null?i:he:null,Rt=!!(Ke.nodeRef.current&&Ke.rect),Fn=D9(Rt?null:he),jr=ug(yt?Vt(yt):null),pt=M9(M?_t??ne:null),Ct=L9(pt),Bn=gg(b,{transform:{x:k.x-Fn.x,y:k.y-Fn.y,scaleX:1,scaleY:1},activatorEvent:W,active:Z,activeNodeRect:he,containerNodeRect:We,draggingNodeRect:yn,over:de.current.over,overlayNodeRect:Ke.rect,scrollableAncestors:pt,scrollableAncestorRects:Ct,windowRect:jr}),Er=le?No(le,k):null,io=P9(pt),kr=dg(io),qs=dg(io,[he]),dn=No(Bn,kr),Kt=yn?r9(yn,Bn):null,lr=Z&&Kt?g({active:Z,collisionRect:Kt,droppableRects:ue,droppableContainers:V,pointerCoordinates:Er}):null,mi=QE(lr,"id"),[un,yr]=p.useState(null),vi=Rt?Bn:No(Bn,qs),zn=t9(vi,(s=un==null?void 0:un.rect)!=null?s:null,he),Cr=p.useCallback((lt,St)=>{let{sensor:Lt,options:Gn}=St;if(R.current==null)return;const jt=D.get(R.current);if(!jt)return;const Qt=lt.nativeEvent,Jt=new Lt({active:R.current,activeNode:jt,event:Qt,options:Gn,context:de,onStart(en){const j=R.current;if(j==null)return;const oe=D.get(j);if(!oe)return;const{onDragStart:_e}=q.current,Te={active:{id:j,data:oe.data,rect:G}};$n.unstable_batchedUpdates(()=>{_e==null||_e(Te),I(ai.Initializing),y({type:Gt.DragStart,initialCoordinates:en,active:j}),T({type:"onDragStart",event:Te})})},onMove(en){y({type:Gt.DragMove,coordinates:en})},onEnd:Tr(Gt.DragEnd),onCancel:Tr(Gt.DragCancel)});$n.unstable_batchedUpdates(()=>{B(Jt),J(lt.nativeEvent)});function Tr(en){return async function(){const{active:oe,collisions:_e,over:Te,scrollAdjustedTranslate:qe}=de.current;let Be=null;if(oe&&qe){const{cancelDrop:Me}=q.current;Be={activatorEvent:Qt,active:oe,collisions:_e,delta:qe,over:Te},en===Gt.DragEnd&&typeof Me=="function"&&await Promise.resolve(Me(Be))&&(en=Gt.DragCancel)}R.current=null,$n.unstable_batchedUpdates(()=>{y({type:en}),I(ai.Uninitialized),yr(null),B(null),J(null);const Me=en===Gt.DragEnd?"onDragEnd":"onDragCancel";if(Be){const Pe=q.current[Me];Pe==null||Pe(Be),T({type:Me,event:Be})}})}}},[D]),Fr=p.useCallback((lt,St)=>(Lt,Gn)=>{const jt=Lt.nativeEvent,Qt=D.get(Gn);if(R.current!==null||!Qt||jt.dndKit||jt.defaultPrevented)return;const Jt={active:Qt};lt(Lt,St.options,Jt)===!0&&(jt.dndKit={capturedBy:St.sensor},R.current=Gn,Cr(Lt,St))},[D,Cr]),Br=S9(m,Fr);N9(m),Dr(()=>{he&&O===ai.Initializing&&I(ai.Initialized)},[he,O]),p.useEffect(()=>{const{onDragMove:lt}=q.current,{active:St,activatorEvent:Lt,collisions:Gn,over:jt}=de.current;if(!St||!Lt)return;const Qt={active:St,activatorEvent:Lt,collisions:Gn,delta:{x:dn.x,y:dn.y},over:jt};$n.unstable_batchedUpdates(()=>{lt==null||lt(Qt),T({type:"onDragMove",event:Qt})})},[dn.x,dn.y]),p.useEffect(()=>{const{active:lt,activatorEvent:St,collisions:Lt,droppableContainers:Gn,scrollAdjustedTranslate:jt}=de.current;if(!lt||R.current==null||!St||!jt)return;const{onDragOver:Qt}=q.current,Jt=Gn.get(mi),Tr=Jt&&Jt.rect.current?{id:Jt.id,rect:Jt.rect.current,data:Jt.data,disabled:Jt.disabled}:null,en={active:lt,activatorEvent:St,collisions:Lt,delta:{x:jt.x,y:jt.y},over:Tr};$n.unstable_batchedUpdates(()=>{yr(Tr),Qt==null||Qt(en),T({type:"onDragOver",event:en})})},[mi]),Dr(()=>{de.current={activatorEvent:W,active:Z,activeNode:ne,collisionRect:Kt,collisions:lr,droppableRects:ue,draggableNodes:D,draggingNode:yt,draggingNodeRect:yn,droppableContainers:Y,over:un,scrollableAncestors:pt,scrollAdjustedTranslate:dn},G.current={initial:yn,translated:Kt}},[Z,ne,lr,Kt,D,yt,yn,ue,Y,un,pt,dn]),E9({...ge,delta:k,draggingRect:Kt,pointerCoordinates:Er,scrollableAncestors:pt,scrollableAncestorRects:Ct});const Ys=p.useMemo(()=>({active:Z,activeNode:ne,activeNodeRect:he,activatorEvent:W,collisions:lr,containerNodeRect:We,dragOverlay:Ke,draggableNodes:D,droppableContainers:Y,droppableRects:ue,over:un,measureDroppableContainers:pe,scrollableAncestors:pt,scrollableAncestorRects:Ct,measuringConfiguration:ce,measuringScheduled:Ee,windowRect:jr}),[Z,ne,he,W,lr,We,Ke,D,Y,ue,un,pe,pt,Ct,ce,Ee,jr]),Yo=p.useMemo(()=>({activatorEvent:W,activators:Br,active:Z,activeNodeRect:he,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:D,over:un,measureDroppableContainers:pe}),[W,Br,Z,he,y,U,D,un,pe]);return p.createElement(Hh.Provider,{value:S},p.createElement(il.Provider,{value:Yo},p.createElement(hg.Provider,{value:Ys},p.createElement(ol.Provider,{value:zn},f)),p.createElement(H9,{disabled:(c==null?void 0:c.restoreFocus)===!1})),p.createElement(ZE,{...c,hiddenTextDescribedById:U}));function Zs(){const lt=(K==null?void 0:K.autoScrollEnabled)===!1,St=typeof d=="object"?d.enabled===!1:d===!1,Lt=M&&!lt&&!St;return typeof d=="object"?{...d,enabled:Lt}:{enabled:Lt}}}),q9=p.createContext(null),mg="button",Y9="Droppable";function Z9(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const s=mu(Y9),{activators:l,activatorEvent:c,active:d,activeNodeRect:f,ariaDescribedById:m,draggableNodes:g,over:v}=p.useContext(il),{role:b=mg,roleDescription:w="draggable",tabIndex:_=0}=i??{},E=(d==null?void 0:d.id)===t,y=p.useContext(E?ol:q9),[T,S]=hu(),[O,I]=hu(),M=R9(l,t),N=pu(n);Dr(()=>(g.set(t,{id:t,key:s,node:T,activatorNode:O,data:N}),()=>{const k=g.get(t);k&&k.key===s&&g.delete(t)}),[g,t]);const D=p.useMemo(()=>({role:b,tabIndex:_,"aria-disabled":r,"aria-pressed":E&&b===mg?!0:void 0,"aria-roledescription":w,"aria-describedby":m.draggable}),[r,b,_,E,w,m.draggable]);return{active:d,activatorEvent:c,activeNodeRect:f,attributes:D,isDragging:E,listeners:r?void 0:M,node:T,over:v,setNodeRef:S,setActivatorNodeRef:I,transform:y}}function X9(){return p.useContext(hg)}function K9(e){let{animation:t,children:n}=e;const[r,i]=p.useState(null),[s,l]=p.useState(null),c=Qa(n);return!n&&!r&&c&&i(c),Dr(()=>{if(!s)return;const d=r==null?void 0:r.key,f=r==null?void 0:r.props.id;if(d==null||f==null){i(null);return}Promise.resolve(t(f,s)).then(()=>{i(null)})},[t,r,s]),p.createElement(p.Fragment,null,n,r?p.cloneElement(r,{ref:l}):null)}const Q9={x:0,y:0,scaleX:1,scaleY:1};function J9(e){let{children:t}=e;return p.createElement(il.Provider,{value:pg},p.createElement(ol.Provider,{value:Q9},t))}const ey={position:"fixed",touchAction:"none"},ty=e=>vu(e)?"transform 250ms ease":void 0,ny=p.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:s,className:l,rect:c,style:d,transform:f,transition:m=ty}=e;if(!c)return null;const g=i?f:{...f,scaleX:1,scaleY:1},v={...ey,width:c.width,height:c.height,top:c.top,left:c.left,transform:As.Transform.toString(g),transformOrigin:i&&r?XE(r,c):void 0,transition:typeof m=="function"?m(r):m,...d};return p.createElement(n,{className:l,style:v,ref:t},s)}),ry={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:As.Transform.toString(t)},{transform:As.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:s,className:l}=e;if(s!=null&&s.active)for(const[c,d]of Object.entries(s.active))d!==void 0&&(i[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,d));if(s!=null&&s.dragOverlay)for(const[c,d]of Object.entries(s.dragOverlay))d!==void 0&&r.node.style.setProperty(c,d);return l!=null&&l.active&&n.node.classList.add(l.active),l!=null&&l.dragOverlay&&r.node.classList.add(l.dragOverlay),function(){for(const[d,f]of Object.entries(i))n.node.style.setProperty(d,f);l!=null&&l.active&&n.node.classList.remove(l.active)}})({styles:{active:{opacity:"0"}}})};function iy(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return Ka((s,l)=>{if(t===null)return;const c=n.get(s);if(!c)return;const d=c.node.current;if(!d)return;const f=fg(l);if(!f)return;const{transform:m}=Vt(l).getComputedStyle(l),g=Wh(m);if(!g)return;const v=typeof t=="function"?t:oy(t);return eg(d,i.draggable.measure),v({active:{id:s,data:c.data,node:d,rect:i.draggable.measure(d)},draggableNodes:n,dragOverlay:{node:l,rect:i.dragOverlay.measure(f)},droppableContainers:r,measuringConfiguration:i,transform:g})})}function oy(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...ry,...e};return s=>{let{active:l,dragOverlay:c,transform:d,...f}=s;if(!t)return;const m={x:c.rect.left-l.rect.left,y:c.rect.top-l.rect.top},g={scaleX:d.scaleX!==1?l.rect.width*d.scaleX/c.rect.width:1,scaleY:d.scaleY!==1?l.rect.height*d.scaleY/c.rect.height:1},v={x:d.x-m.x,y:d.y-m.y,...g},b=i({...f,active:l,dragOverlay:c,transform:{initial:d,final:v}}),[w]=b,_=b[b.length-1];if(JSON.stringify(w)===JSON.stringify(_))return;const E=r==null?void 0:r({active:l,dragOverlay:c,...f}),y=c.node.animate(b,{duration:t,easing:n,fill:"forwards"});return new Promise(T=>{y.onfinish=()=>{E==null||E(),T()}})}}let vg=0;function sy(e){return p.useMemo(()=>{if(e!=null)return vg++,vg},[e])}const ay=p.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:s,modifiers:l,wrapperElement:c="div",className:d,zIndex:f=999}=e;const{activatorEvent:m,active:g,activeNodeRect:v,containerNodeRect:b,draggableNodes:w,droppableContainers:_,dragOverlay:E,over:y,measuringConfiguration:T,scrollableAncestors:S,scrollableAncestorRects:O,windowRect:I}=X9(),M=p.useContext(ol),N=sy(g==null?void 0:g.id),D=gg(l,{activatorEvent:m,active:g,activeNodeRect:v,containerNodeRect:b,draggingNodeRect:E.rect,over:y,overlayNodeRect:E.rect,scrollableAncestors:S,scrollableAncestorRects:O,transform:M,windowRect:I}),k=Iu(v),Y=iy({config:r,draggableNodes:w,droppableContainers:_,measuringConfiguration:T}),L=k?E.setRef:void 0;return p.createElement(J9,null,p.createElement(K9,{animation:Y},g&&N?p.createElement(ny,{key:N,id:g.id,ref:L,as:c,activatorEvent:m,adjustScale:t,className:d,transition:s,rect:k,style:{zIndex:f,...i},transform:D},n):null))});var sl={exports:{}};/**
|
|
76
76
|
* @license
|
|
77
77
|
* Lodash <https://lodash.com/>
|
|
78
78
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
79
79
|
* Released under MIT license <https://lodash.com/license>
|
|
80
80
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
81
81
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
82
|
-
*/al.exports,function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",f=500,m="__lodash_placeholder__",g=1,v=2,b=4,E=1,_=2,w=1,y=2,T=4,S=8,O=16,I=32,M=64,N=128,D=256,k=512,Y=30,L="...",G=800,X=16,R=1,K=2,B=3,W=1/0,J=9007199254740991,q=17976931348623157e292,U=NaN,V=4294967295,ce=V-1,ue=V>>>1,pe=[["ary",N],["bind",w],["bindKey",y],["curry",S],["curryRight",O],["flip",k],["partial",I],["partialRight",M],["rearg",D]],we="[object Arguments]",ne="[object Array]",le="[object AsyncFunction]",ge="[object Boolean]",be="[object Date]",he="[object DOMException]",We="[object Error]",de="[object Function]",_t="[object GeneratorFunction]",Ke="[object Map]",yt="[object Number]",yn="[object Null]",Rt="[object Object]",kn="[object Promise]",jr="[object Proxy]",ft="[object RegExp]",Ct="[object Set]",Fn="[object String]",wr="[object Symbol]",io="[object Undefined]",kr="[object WeakMap]",qs="[object WeakSet]",dn="[object ArrayBuffer]",Kt="[object DataView]",lr="[object Float32Array]",mi="[object Float64Array]",un="[object Int8Array]",yr="[object Int16Array]",vi="[object Int32Array]",Bn="[object Uint8Array]",Cr="[object Uint8ClampedArray]",Fr="[object Uint16Array]",Br="[object Uint32Array]",Ys=/\b__p \+= '';/g,Yo=/\b(__p \+=) '' \+/g,Zs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,at=/&(?:amp|lt|gt|quot|#39);/g,St=/[&<>"']/g,Lt=RegExp(at.source),zn=RegExp(St.source),jt=/<%-([\s\S]+?)%>/g,Qt=/<%([\s\S]+?)%>/g,Jt=/<%=([\s\S]+?)%>/g,Tr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,en=/^\w*$/,j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,se=/[\\^$.*+?()[\]{}|]/g,_e=RegExp(se.source),Te=/^\s+/,qe=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Me=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,kt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,pt=/\\(\\)?/g,cr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zr=/\w*$/,Vl=/^[-+]0x[0-9a-f]+$/i,dr=/^0b[01]+$/i,iD=/^\[object .+?Constructor\]$/,oD=/^0o[0-7]+$/i,sD=/^(?:0|[1-9]\d*)$/,aD=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wl=/($^)/,lD=/['\n\r\u2028\u2029\\]/g,ql="\\ud800-\\udfff",cD="\\u0300-\\u036f",dD="\\ufe20-\\ufe2f",uD="\\u20d0-\\u20ff",h5=cD+dD+uD,g5="\\u2700-\\u27bf",m5="a-z\\xdf-\\xf6\\xf8-\\xff",fD="\\xac\\xb1\\xd7\\xf7",pD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hD="\\u2000-\\u206f",gD=" \\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",v5="A-Z\\xc0-\\xd6\\xd8-\\xde",b5="\\ufe0e\\ufe0f",_5=fD+pD+hD+gD,Zf="['’]",mD="["+ql+"]",x5="["+_5+"]",Yl="["+h5+"]",E5="\\d+",vD="["+g5+"]",w5="["+m5+"]",y5="[^"+ql+_5+E5+g5+m5+v5+"]",Xf="\\ud83c[\\udffb-\\udfff]",bD="(?:"+Yl+"|"+Xf+")",C5="[^"+ql+"]",Kf="(?:\\ud83c[\\udde6-\\uddff]){2}",Qf="[\\ud800-\\udbff][\\udc00-\\udfff]",Zo="["+v5+"]",T5="\\u200d",S5="(?:"+w5+"|"+y5+")",_D="(?:"+Zo+"|"+y5+")",I5="(?:"+Zf+"(?:d|ll|m|re|s|t|ve))?",A5="(?:"+Zf+"(?:D|LL|M|RE|S|T|VE))?",O5=bD+"?",$5="["+b5+"]?",xD="(?:"+T5+"(?:"+[C5,Kf,Qf].join("|")+")"+$5+O5+")*",ED="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",wD="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",D5=$5+O5+xD,yD="(?:"+[vD,Kf,Qf].join("|")+")"+D5,CD="(?:"+[C5+Yl+"?",Yl,Kf,Qf,mD].join("|")+")",TD=RegExp(Zf,"g"),SD=RegExp(Yl,"g"),Jf=RegExp(Xf+"(?="+Xf+")|"+CD+D5,"g"),ID=RegExp([Zo+"?"+w5+"+"+I5+"(?="+[x5,Zo,"$"].join("|")+")",_D+"+"+A5+"(?="+[x5,Zo+S5,"$"].join("|")+")",Zo+"?"+S5+"+"+I5,Zo+"+"+A5,wD,ED,E5,yD].join("|"),"g"),AD=RegExp("["+T5+ql+h5+b5+"]"),OD=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$D=["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"],DD=-1,it={};it[lr]=it[mi]=it[un]=it[yr]=it[vi]=it[Bn]=it[Cr]=it[Fr]=it[Br]=!0,it[we]=it[ne]=it[dn]=it[ge]=it[Kt]=it[be]=it[We]=it[de]=it[Ke]=it[yt]=it[Rt]=it[ft]=it[Ct]=it[Fn]=it[kr]=!1;var rt={};rt[we]=rt[ne]=rt[dn]=rt[Kt]=rt[ge]=rt[be]=rt[lr]=rt[mi]=rt[un]=rt[yr]=rt[vi]=rt[Ke]=rt[yt]=rt[Rt]=rt[ft]=rt[Ct]=rt[Fn]=rt[wr]=rt[Bn]=rt[Cr]=rt[Fr]=rt[Br]=!0,rt[We]=rt[de]=rt[kr]=!1;var MD={À:"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"},PD={"&":"&","<":"<",">":">",'"':""","'":"'"},ND={"&":"&","<":"<",">":">",""":'"',"'":"'"},RD={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},LD=parseFloat,jD=parseInt,M5=typeof cs=="object"&&cs&&cs.Object===Object&&cs,kD=typeof self=="object"&&self&&self.Object===Object&&self,Ft=M5||kD||Function("return this")(),e1=t&&!t.nodeType&&t,oo=e1&&!0&&e&&!e.nodeType&&e,P5=oo&&oo.exports===e1,t1=P5&&M5.process,Gn=function(){try{var z=oo&&oo.require&&oo.require("util").types;return z||t1&&t1.binding&&t1.binding("util")}catch{}}(),N5=Gn&&Gn.isArrayBuffer,R5=Gn&&Gn.isDate,L5=Gn&&Gn.isMap,j5=Gn&&Gn.isRegExp,k5=Gn&&Gn.isSet,F5=Gn&&Gn.isTypedArray;function Cn(z,Q,Z){switch(Z.length){case 0:return z.call(Q);case 1:return z.call(Q,Z[0]);case 2:return z.call(Q,Z[0],Z[1]);case 3:return z.call(Q,Z[0],Z[1],Z[2])}return z.apply(Q,Z)}function FD(z,Q,Z,xe){for(var $e=-1,Ye=z==null?0:z.length;++$e<Ye;){var It=z[$e];Q(xe,It,Z(It),z)}return xe}function Hn(z,Q){for(var Z=-1,xe=z==null?0:z.length;++Z<xe&&Q(z[Z],Z,z)!==!1;);return z}function BD(z,Q){for(var Z=z==null?0:z.length;Z--&&Q(z[Z],Z,z)!==!1;);return z}function B5(z,Q){for(var Z=-1,xe=z==null?0:z.length;++Z<xe;)if(!Q(z[Z],Z,z))return!1;return!0}function bi(z,Q){for(var Z=-1,xe=z==null?0:z.length,$e=0,Ye=[];++Z<xe;){var It=z[Z];Q(It,Z,z)&&(Ye[$e++]=It)}return Ye}function Zl(z,Q){var Z=z==null?0:z.length;return!!Z&&Xo(z,Q,0)>-1}function n1(z,Q,Z){for(var xe=-1,$e=z==null?0:z.length;++xe<$e;)if(Z(Q,z[xe]))return!0;return!1}function ot(z,Q){for(var Z=-1,xe=z==null?0:z.length,$e=Array(xe);++Z<xe;)$e[Z]=Q(z[Z],Z,z);return $e}function _i(z,Q){for(var Z=-1,xe=Q.length,$e=z.length;++Z<xe;)z[$e+Z]=Q[Z];return z}function r1(z,Q,Z,xe){var $e=-1,Ye=z==null?0:z.length;for(xe&&Ye&&(Z=z[++$e]);++$e<Ye;)Z=Q(Z,z[$e],$e,z);return Z}function zD(z,Q,Z,xe){var $e=z==null?0:z.length;for(xe&&$e&&(Z=z[--$e]);$e--;)Z=Q(Z,z[$e],$e,z);return Z}function i1(z,Q){for(var Z=-1,xe=z==null?0:z.length;++Z<xe;)if(Q(z[Z],Z,z))return!0;return!1}var GD=o1("length");function HD(z){return z.split("")}function UD(z){return z.match(kt)||[]}function z5(z,Q,Z){var xe;return Z(z,function($e,Ye,It){if(Q($e,Ye,It))return xe=Ye,!1}),xe}function Xl(z,Q,Z,xe){for(var $e=z.length,Ye=Z+(xe?1:-1);xe?Ye--:++Ye<$e;)if(Q(z[Ye],Ye,z))return Ye;return-1}function Xo(z,Q,Z){return Q===Q?nM(z,Q,Z):Xl(z,G5,Z)}function VD(z,Q,Z,xe){for(var $e=Z-1,Ye=z.length;++$e<Ye;)if(xe(z[$e],Q))return $e;return-1}function G5(z){return z!==z}function H5(z,Q){var Z=z==null?0:z.length;return Z?a1(z,Q)/Z:U}function o1(z){return function(Q){return Q==null?n:Q[z]}}function s1(z){return function(Q){return z==null?n:z[Q]}}function U5(z,Q,Z,xe,$e){return $e(z,function(Ye,It,tt){Z=xe?(xe=!1,Ye):Q(Z,Ye,It,tt)}),Z}function WD(z,Q){var Z=z.length;for(z.sort(Q);Z--;)z[Z]=z[Z].value;return z}function a1(z,Q){for(var Z,xe=-1,$e=z.length;++xe<$e;){var Ye=Q(z[xe]);Ye!==n&&(Z=Z===n?Ye:Z+Ye)}return Z}function l1(z,Q){for(var Z=-1,xe=Array(z);++Z<z;)xe[Z]=Q(Z);return xe}function qD(z,Q){return ot(Q,function(Z){return[Z,z[Z]]})}function V5(z){return z&&z.slice(0,Z5(z)+1).replace(Te,"")}function Tn(z){return function(Q){return z(Q)}}function c1(z,Q){return ot(Q,function(Z){return z[Z]})}function Xs(z,Q){return z.has(Q)}function W5(z,Q){for(var Z=-1,xe=z.length;++Z<xe&&Xo(Q,z[Z],0)>-1;);return Z}function q5(z,Q){for(var Z=z.length;Z--&&Xo(Q,z[Z],0)>-1;);return Z}function YD(z,Q){for(var Z=z.length,xe=0;Z--;)z[Z]===Q&&++xe;return xe}var ZD=s1(MD),XD=s1(PD);function KD(z){return"\\"+RD[z]}function QD(z,Q){return z==null?n:z[Q]}function Ko(z){return AD.test(z)}function JD(z){return OD.test(z)}function eM(z){for(var Q,Z=[];!(Q=z.next()).done;)Z.push(Q.value);return Z}function d1(z){var Q=-1,Z=Array(z.size);return z.forEach(function(xe,$e){Z[++Q]=[$e,xe]}),Z}function Y5(z,Q){return function(Z){return z(Q(Z))}}function xi(z,Q){for(var Z=-1,xe=z.length,$e=0,Ye=[];++Z<xe;){var It=z[Z];(It===Q||It===m)&&(z[Z]=m,Ye[$e++]=Z)}return Ye}function Kl(z){var Q=-1,Z=Array(z.size);return z.forEach(function(xe){Z[++Q]=xe}),Z}function tM(z){var Q=-1,Z=Array(z.size);return z.forEach(function(xe){Z[++Q]=[xe,xe]}),Z}function nM(z,Q,Z){for(var xe=Z-1,$e=z.length;++xe<$e;)if(z[xe]===Q)return xe;return-1}function rM(z,Q,Z){for(var xe=Z+1;xe--;)if(z[xe]===Q)return xe;return xe}function Qo(z){return Ko(z)?oM(z):GD(z)}function ur(z){return Ko(z)?sM(z):HD(z)}function Z5(z){for(var Q=z.length;Q--&&qe.test(z.charAt(Q)););return Q}var iM=s1(ND);function oM(z){for(var Q=Jf.lastIndex=0;Jf.test(z);)++Q;return Q}function sM(z){return z.match(Jf)||[]}function aM(z){return z.match(ID)||[]}var lM=function z(Q){Q=Q==null?Ft:Jo.defaults(Ft.Object(),Q,Jo.pick(Ft,$D));var Z=Q.Array,xe=Q.Date,$e=Q.Error,Ye=Q.Function,It=Q.Math,tt=Q.Object,u1=Q.RegExp,cM=Q.String,Un=Q.TypeError,Ql=Z.prototype,dM=Ye.prototype,es=tt.prototype,Jl=Q["__core-js_shared__"],ec=dM.toString,Je=es.hasOwnProperty,uM=0,X5=function(){var o=/[^.]+$/.exec(Jl&&Jl.keys&&Jl.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),tc=es.toString,fM=ec.call(tt),pM=Ft._,hM=u1("^"+ec.call(Je).replace(se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nc=P5?Q.Buffer:n,Ei=Q.Symbol,rc=Q.Uint8Array,K5=nc?nc.allocUnsafe:n,ic=Y5(tt.getPrototypeOf,tt),Q5=tt.create,J5=es.propertyIsEnumerable,oc=Ql.splice,eb=Ei?Ei.isConcatSpreadable:n,Ks=Ei?Ei.iterator:n,so=Ei?Ei.toStringTag:n,sc=function(){try{var o=fo(tt,"defineProperty");return o({},"",{}),o}catch{}}(),gM=Q.clearTimeout!==Ft.clearTimeout&&Q.clearTimeout,mM=xe&&xe.now!==Ft.Date.now&&xe.now,vM=Q.setTimeout!==Ft.setTimeout&&Q.setTimeout,ac=It.ceil,lc=It.floor,f1=tt.getOwnPropertySymbols,bM=nc?nc.isBuffer:n,tb=Q.isFinite,_M=Ql.join,xM=Y5(tt.keys,tt),At=It.max,Ht=It.min,EM=xe.now,wM=Q.parseInt,nb=It.random,yM=Ql.reverse,p1=fo(Q,"DataView"),Qs=fo(Q,"Map"),h1=fo(Q,"Promise"),ts=fo(Q,"Set"),Js=fo(Q,"WeakMap"),ea=fo(tt,"create"),cc=Js&&new Js,ns={},CM=po(p1),TM=po(Qs),SM=po(h1),IM=po(ts),AM=po(Js),dc=Ei?Ei.prototype:n,ta=dc?dc.valueOf:n,rb=dc?dc.toString:n;function A(o){if(ht(o)&&!De(o)&&!(o instanceof Fe)){if(o instanceof Vn)return o;if(Je.call(o,"__wrapped__"))return i_(o)}return new Vn(o)}var rs=function(){function o(){}return function(a){if(!ct(a))return{};if(Q5)return Q5(a);o.prototype=a;var h=new o;return o.prototype=n,h}}();function uc(){}function Vn(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=n}A.templateSettings={escape:jt,evaluate:Qt,interpolate:Jt,variable:"",imports:{_:A}},A.prototype=uc.prototype,A.prototype.constructor=A,Vn.prototype=rs(uc.prototype),Vn.prototype.constructor=Vn;function Fe(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function OM(){var o=new Fe(this.__wrapped__);return o.__actions__=fn(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=fn(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=fn(this.__views__),o}function $M(){if(this.__filtered__){var o=new Fe(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function DM(){var o=this.__wrapped__.value(),a=this.__dir__,h=De(o),x=a<0,C=h?o.length:0,$=HP(0,C,this.__views__),P=$.start,F=$.end,H=F-P,ee=x?F:P-1,te=this.__iteratees__,ie=te.length,me=0,Ce=Ht(H,this.__takeCount__);if(!h||!x&&C==H&&Ce==H)return Ib(o,this.__actions__);var Ie=[];e:for(;H--&&me<Ce;){ee+=a;for(var Le=-1,Ae=o[ee];++Le<ie;){var ke=te[Le],ze=ke.iteratee,An=ke.type,rn=ze(Ae);if(An==K)Ae=rn;else if(!rn){if(An==R)continue e;break e}}Ie[me++]=Ae}return Ie}Fe.prototype=rs(uc.prototype),Fe.prototype.constructor=Fe;function ao(o){var a=-1,h=o==null?0:o.length;for(this.clear();++a<h;){var x=o[a];this.set(x[0],x[1])}}function MM(){this.__data__=ea?ea(null):{},this.size=0}function PM(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}function NM(o){var a=this.__data__;if(ea){var h=a[o];return h===d?n:h}return Je.call(a,o)?a[o]:n}function RM(o){var a=this.__data__;return ea?a[o]!==n:Je.call(a,o)}function LM(o,a){var h=this.__data__;return this.size+=this.has(o)?0:1,h[o]=ea&&a===n?d:a,this}ao.prototype.clear=MM,ao.prototype.delete=PM,ao.prototype.get=NM,ao.prototype.has=RM,ao.prototype.set=LM;function Gr(o){var a=-1,h=o==null?0:o.length;for(this.clear();++a<h;){var x=o[a];this.set(x[0],x[1])}}function jM(){this.__data__=[],this.size=0}function kM(o){var a=this.__data__,h=fc(a,o);if(h<0)return!1;var x=a.length-1;return h==x?a.pop():oc.call(a,h,1),--this.size,!0}function FM(o){var a=this.__data__,h=fc(a,o);return h<0?n:a[h][1]}function BM(o){return fc(this.__data__,o)>-1}function zM(o,a){var h=this.__data__,x=fc(h,o);return x<0?(++this.size,h.push([o,a])):h[x][1]=a,this}Gr.prototype.clear=jM,Gr.prototype.delete=kM,Gr.prototype.get=FM,Gr.prototype.has=BM,Gr.prototype.set=zM;function Hr(o){var a=-1,h=o==null?0:o.length;for(this.clear();++a<h;){var x=o[a];this.set(x[0],x[1])}}function GM(){this.size=0,this.__data__={hash:new ao,map:new(Qs||Gr),string:new ao}}function HM(o){var a=Cc(this,o).delete(o);return this.size-=a?1:0,a}function UM(o){return Cc(this,o).get(o)}function VM(o){return Cc(this,o).has(o)}function WM(o,a){var h=Cc(this,o),x=h.size;return h.set(o,a),this.size+=h.size==x?0:1,this}Hr.prototype.clear=GM,Hr.prototype.delete=HM,Hr.prototype.get=UM,Hr.prototype.has=VM,Hr.prototype.set=WM;function lo(o){var a=-1,h=o==null?0:o.length;for(this.__data__=new Hr;++a<h;)this.add(o[a])}function qM(o){return this.__data__.set(o,d),this}function YM(o){return this.__data__.has(o)}lo.prototype.add=lo.prototype.push=qM,lo.prototype.has=YM;function fr(o){var a=this.__data__=new Gr(o);this.size=a.size}function ZM(){this.__data__=new Gr,this.size=0}function XM(o){var a=this.__data__,h=a.delete(o);return this.size=a.size,h}function KM(o){return this.__data__.get(o)}function QM(o){return this.__data__.has(o)}function JM(o,a){var h=this.__data__;if(h instanceof Gr){var x=h.__data__;if(!Qs||x.length<i-1)return x.push([o,a]),this.size=++h.size,this;h=this.__data__=new Hr(x)}return h.set(o,a),this.size=h.size,this}fr.prototype.clear=ZM,fr.prototype.delete=XM,fr.prototype.get=KM,fr.prototype.has=QM,fr.prototype.set=JM;function ib(o,a){var h=De(o),x=!h&&ho(o),C=!h&&!x&&Si(o),$=!h&&!x&&!C&&as(o),P=h||x||C||$,F=P?l1(o.length,cM):[],H=F.length;for(var ee in o)(a||Je.call(o,ee))&&!(P&&(ee=="length"||C&&(ee=="offset"||ee=="parent")||$&&(ee=="buffer"||ee=="byteLength"||ee=="byteOffset")||qr(ee,H)))&&F.push(ee);return F}function ob(o){var a=o.length;return a?o[T1(0,a-1)]:n}function eP(o,a){return Tc(fn(o),co(a,0,o.length))}function tP(o){return Tc(fn(o))}function g1(o,a,h){(h!==n&&!pr(o[a],h)||h===n&&!(a in o))&&Ur(o,a,h)}function na(o,a,h){var x=o[a];(!(Je.call(o,a)&&pr(x,h))||h===n&&!(a in o))&&Ur(o,a,h)}function fc(o,a){for(var h=o.length;h--;)if(pr(o[h][0],a))return h;return-1}function nP(o,a,h,x){return wi(o,function(C,$,P){a(x,C,h(C),P)}),x}function sb(o,a){return o&&Ir(a,Mt(a),o)}function rP(o,a){return o&&Ir(a,hn(a),o)}function Ur(o,a,h){a=="__proto__"&&sc?sc(o,a,{configurable:!0,enumerable:!0,value:h,writable:!0}):o[a]=h}function m1(o,a){for(var h=-1,x=a.length,C=Z(x),$=o==null;++h<x;)C[h]=$?n:X1(o,a[h]);return C}function co(o,a,h){return o===o&&(h!==n&&(o=o<=h?o:h),a!==n&&(o=o>=a?o:a)),o}function Wn(o,a,h,x,C,$){var P,F=a&g,H=a&v,ee=a&b;if(h&&(P=C?h(o,x,C,$):h(o)),P!==n)return P;if(!ct(o))return o;var te=De(o);if(te){if(P=VP(o),!F)return fn(o,P)}else{var ie=Ut(o),me=ie==de||ie==_t;if(Si(o))return $b(o,F);if(ie==Rt||ie==we||me&&!C){if(P=H||me?{}:Zb(o),!F)return H?NP(o,rP(P,o)):PP(o,sb(P,o))}else{if(!rt[ie])return C?o:{};P=WP(o,ie,F)}}$||($=new fr);var Ce=$.get(o);if(Ce)return Ce;$.set(o,P),C_(o)?o.forEach(function(Ae){P.add(Wn(Ae,a,h,Ae,o,$))}):w_(o)&&o.forEach(function(Ae,ke){P.set(ke,Wn(Ae,a,h,ke,o,$))});var Ie=ee?H?L1:R1:H?hn:Mt,Le=te?n:Ie(o);return Hn(Le||o,function(Ae,ke){Le&&(ke=Ae,Ae=o[ke]),na(P,ke,Wn(Ae,a,h,ke,o,$))}),P}function iP(o){var a=Mt(o);return function(h){return ab(h,o,a)}}function ab(o,a,h){var x=h.length;if(o==null)return!x;for(o=tt(o);x--;){var C=h[x],$=a[C],P=o[C];if(P===n&&!(C in o)||!$(P))return!1}return!0}function lb(o,a,h){if(typeof o!="function")throw new Un(l);return ca(function(){o.apply(n,h)},a)}function ra(o,a,h,x){var C=-1,$=Zl,P=!0,F=o.length,H=[],ee=a.length;if(!F)return H;h&&(a=ot(a,Tn(h))),x?($=n1,P=!1):a.length>=i&&($=Xs,P=!1,a=new lo(a));e:for(;++C<F;){var te=o[C],ie=h==null?te:h(te);if(te=x||te!==0?te:0,P&&ie===ie){for(var me=ee;me--;)if(a[me]===ie)continue e;H.push(te)}else $(a,ie,x)||H.push(te)}return H}var wi=Rb(Sr),cb=Rb(b1,!0);function oP(o,a){var h=!0;return wi(o,function(x,C,$){return h=!!a(x,C,$),h}),h}function pc(o,a,h){for(var x=-1,C=o.length;++x<C;){var $=o[x],P=a($);if(P!=null&&(F===n?P===P&&!In(P):h(P,F)))var F=P,H=$}return H}function sP(o,a,h,x){var C=o.length;for(h=Ne(h),h<0&&(h=-h>C?0:C+h),x=x===n||x>C?C:Ne(x),x<0&&(x+=C),x=h>x?0:S_(x);h<x;)o[h++]=a;return o}function db(o,a){var h=[];return wi(o,function(x,C,$){a(x,C,$)&&h.push(x)}),h}function Bt(o,a,h,x,C){var $=-1,P=o.length;for(h||(h=YP),C||(C=[]);++$<P;){var F=o[$];a>0&&h(F)?a>1?Bt(F,a-1,h,x,C):_i(C,F):x||(C[C.length]=F)}return C}var v1=Lb(),ub=Lb(!0);function Sr(o,a){return o&&v1(o,a,Mt)}function b1(o,a){return o&&ub(o,a,Mt)}function hc(o,a){return bi(a,function(h){return Yr(o[h])})}function uo(o,a){a=Ci(a,o);for(var h=0,x=a.length;o!=null&&h<x;)o=o[Ar(a[h++])];return h&&h==x?o:n}function fb(o,a,h){var x=a(o);return De(o)?x:_i(x,h(o))}function tn(o){return o==null?o===n?io:yn:so&&so in tt(o)?GP(o):tN(o)}function _1(o,a){return o>a}function aP(o,a){return o!=null&&Je.call(o,a)}function lP(o,a){return o!=null&&a in tt(o)}function cP(o,a,h){return o>=Ht(a,h)&&o<At(a,h)}function x1(o,a,h){for(var x=h?n1:Zl,C=o[0].length,$=o.length,P=$,F=Z($),H=1/0,ee=[];P--;){var te=o[P];P&&a&&(te=ot(te,Tn(a))),H=Ht(te.length,H),F[P]=!h&&(a||C>=120&&te.length>=120)?new lo(P&&te):n}te=o[0];var ie=-1,me=F[0];e:for(;++ie<C&&ee.length<H;){var Ce=te[ie],Ie=a?a(Ce):Ce;if(Ce=h||Ce!==0?Ce:0,!(me?Xs(me,Ie):x(ee,Ie,h))){for(P=$;--P;){var Le=F[P];if(!(Le?Xs(Le,Ie):x(o[P],Ie,h)))continue e}me&&me.push(Ie),ee.push(Ce)}}return ee}function dP(o,a,h,x){return Sr(o,function(C,$,P){a(x,h(C),$,P)}),x}function ia(o,a,h){a=Ci(a,o),o=Jb(o,a);var x=o==null?o:o[Ar(Yn(a))];return x==null?n:Cn(x,o,h)}function pb(o){return ht(o)&&tn(o)==we}function uP(o){return ht(o)&&tn(o)==dn}function fP(o){return ht(o)&&tn(o)==be}function oa(o,a,h,x,C){return o===a?!0:o==null||a==null||!ht(o)&&!ht(a)?o!==o&&a!==a:pP(o,a,h,x,oa,C)}function pP(o,a,h,x,C,$){var P=De(o),F=De(a),H=P?ne:Ut(o),ee=F?ne:Ut(a);H=H==we?Rt:H,ee=ee==we?Rt:ee;var te=H==Rt,ie=ee==Rt,me=H==ee;if(me&&Si(o)){if(!Si(a))return!1;P=!0,te=!1}if(me&&!te)return $||($=new fr),P||as(o)?Wb(o,a,h,x,C,$):BP(o,a,H,h,x,C,$);if(!(h&E)){var Ce=te&&Je.call(o,"__wrapped__"),Ie=ie&&Je.call(a,"__wrapped__");if(Ce||Ie){var Le=Ce?o.value():o,Ae=Ie?a.value():a;return $||($=new fr),C(Le,Ae,h,x,$)}}return me?($||($=new fr),zP(o,a,h,x,C,$)):!1}function hP(o){return ht(o)&&Ut(o)==Ke}function E1(o,a,h,x){var C=h.length,$=C,P=!x;if(o==null)return!$;for(o=tt(o);C--;){var F=h[C];if(P&&F[2]?F[1]!==o[F[0]]:!(F[0]in o))return!1}for(;++C<$;){F=h[C];var H=F[0],ee=o[H],te=F[1];if(P&&F[2]){if(ee===n&&!(H in o))return!1}else{var ie=new fr;if(x)var me=x(ee,te,H,o,a,ie);if(!(me===n?oa(te,ee,E|_,x,ie):me))return!1}}return!0}function hb(o){if(!ct(o)||XP(o))return!1;var a=Yr(o)?hM:iD;return a.test(po(o))}function gP(o){return ht(o)&&tn(o)==ft}function mP(o){return ht(o)&&Ut(o)==Ct}function vP(o){return ht(o)&&Dc(o.length)&&!!it[tn(o)]}function gb(o){return typeof o=="function"?o:o==null?gn:typeof o=="object"?De(o)?bb(o[0],o[1]):vb(o):j_(o)}function w1(o){if(!la(o))return xM(o);var a=[];for(var h in tt(o))Je.call(o,h)&&h!="constructor"&&a.push(h);return a}function bP(o){if(!ct(o))return eN(o);var a=la(o),h=[];for(var x in o)x=="constructor"&&(a||!Je.call(o,x))||h.push(x);return h}function y1(o,a){return o<a}function mb(o,a){var h=-1,x=pn(o)?Z(o.length):[];return wi(o,function(C,$,P){x[++h]=a(C,$,P)}),x}function vb(o){var a=k1(o);return a.length==1&&a[0][2]?Kb(a[0][0],a[0][1]):function(h){return h===o||E1(h,o,a)}}function bb(o,a){return B1(o)&&Xb(a)?Kb(Ar(o),a):function(h){var x=X1(h,o);return x===n&&x===a?K1(h,o):oa(a,x,E|_)}}function gc(o,a,h,x,C){o!==a&&v1(a,function($,P){if(C||(C=new fr),ct($))_P(o,a,P,h,gc,x,C);else{var F=x?x(G1(o,P),$,P+"",o,a,C):n;F===n&&(F=$),g1(o,P,F)}},hn)}function _P(o,a,h,x,C,$,P){var F=G1(o,h),H=G1(a,h),ee=P.get(H);if(ee){g1(o,h,ee);return}var te=$?$(F,H,h+"",o,a,P):n,ie=te===n;if(ie){var me=De(H),Ce=!me&&Si(H),Ie=!me&&!Ce&&as(H);te=H,me||Ce||Ie?De(F)?te=F:xt(F)?te=fn(F):Ce?(ie=!1,te=$b(H,!0)):Ie?(ie=!1,te=Db(H,!0)):te=[]:da(H)||ho(H)?(te=F,ho(F)?te=I_(F):(!ct(F)||Yr(F))&&(te=Zb(H))):ie=!1}ie&&(P.set(H,te),C(te,H,x,$,P),P.delete(H)),g1(o,h,te)}function _b(o,a){var h=o.length;if(h)return a+=a<0?h:0,qr(a,h)?o[a]:n}function xb(o,a,h){a.length?a=ot(a,function($){return De($)?function(P){return uo(P,$.length===1?$[0]:$)}:$}):a=[gn];var x=-1;a=ot(a,Tn(Se()));var C=mb(o,function($,P,F){var H=ot(a,function(ee){return ee($)});return{criteria:H,index:++x,value:$}});return WD(C,function($,P){return MP($,P,h)})}function xP(o,a){return Eb(o,a,function(h,x){return K1(o,x)})}function Eb(o,a,h){for(var x=-1,C=a.length,$={};++x<C;){var P=a[x],F=uo(o,P);h(F,P)&&sa($,Ci(P,o),F)}return $}function EP(o){return function(a){return uo(a,o)}}function C1(o,a,h,x){var C=x?VD:Xo,$=-1,P=a.length,F=o;for(o===a&&(a=fn(a)),h&&(F=ot(o,Tn(h)));++$<P;)for(var H=0,ee=a[$],te=h?h(ee):ee;(H=C(F,te,H,x))>-1;)F!==o&&oc.call(F,H,1),oc.call(o,H,1);return o}function wb(o,a){for(var h=o?a.length:0,x=h-1;h--;){var C=a[h];if(h==x||C!==$){var $=C;qr(C)?oc.call(o,C,1):A1(o,C)}}return o}function T1(o,a){return o+lc(nb()*(a-o+1))}function wP(o,a,h,x){for(var C=-1,$=At(ac((a-o)/(h||1)),0),P=Z($);$--;)P[x?$:++C]=o,o+=h;return P}function S1(o,a){var h="";if(!o||a<1||a>J)return h;do a%2&&(h+=o),a=lc(a/2),a&&(o+=o);while(a);return h}function je(o,a){return H1(Qb(o,a,gn),o+"")}function yP(o){return ob(ls(o))}function CP(o,a){var h=ls(o);return Tc(h,co(a,0,h.length))}function sa(o,a,h,x){if(!ct(o))return o;a=Ci(a,o);for(var C=-1,$=a.length,P=$-1,F=o;F!=null&&++C<$;){var H=Ar(a[C]),ee=h;if(H==="__proto__"||H==="constructor"||H==="prototype")return o;if(C!=P){var te=F[H];ee=x?x(te,H,F):n,ee===n&&(ee=ct(te)?te:qr(a[C+1])?[]:{})}na(F,H,ee),F=F[H]}return o}var yb=cc?function(o,a){return cc.set(o,a),o}:gn,TP=sc?function(o,a){return sc(o,"toString",{configurable:!0,enumerable:!1,value:J1(a),writable:!0})}:gn;function SP(o){return Tc(ls(o))}function qn(o,a,h){var x=-1,C=o.length;a<0&&(a=-a>C?0:C+a),h=h>C?C:h,h<0&&(h+=C),C=a>h?0:h-a>>>0,a>>>=0;for(var $=Z(C);++x<C;)$[x]=o[x+a];return $}function IP(o,a){var h;return wi(o,function(x,C,$){return h=a(x,C,$),!h}),!!h}function mc(o,a,h){var x=0,C=o==null?x:o.length;if(typeof a=="number"&&a===a&&C<=ue){for(;x<C;){var $=x+C>>>1,P=o[$];P!==null&&!In(P)&&(h?P<=a:P<a)?x=$+1:C=$}return C}return I1(o,a,gn,h)}function I1(o,a,h,x){var C=0,$=o==null?0:o.length;if($===0)return 0;a=h(a);for(var P=a!==a,F=a===null,H=In(a),ee=a===n;C<$;){var te=lc((C+$)/2),ie=h(o[te]),me=ie!==n,Ce=ie===null,Ie=ie===ie,Le=In(ie);if(P)var Ae=x||Ie;else ee?Ae=Ie&&(x||me):F?Ae=Ie&&me&&(x||!Ce):H?Ae=Ie&&me&&!Ce&&(x||!Le):Ce||Le?Ae=!1:Ae=x?ie<=a:ie<a;Ae?C=te+1:$=te}return Ht($,ce)}function Cb(o,a){for(var h=-1,x=o.length,C=0,$=[];++h<x;){var P=o[h],F=a?a(P):P;if(!h||!pr(F,H)){var H=F;$[C++]=P===0?0:P}}return $}function Tb(o){return typeof o=="number"?o:In(o)?U:+o}function Sn(o){if(typeof o=="string")return o;if(De(o))return ot(o,Sn)+"";if(In(o))return rb?rb.call(o):"";var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function yi(o,a,h){var x=-1,C=Zl,$=o.length,P=!0,F=[],H=F;if(h)P=!1,C=n1;else if($>=i){var ee=a?null:kP(o);if(ee)return Kl(ee);P=!1,C=Xs,H=new lo}else H=a?[]:F;e:for(;++x<$;){var te=o[x],ie=a?a(te):te;if(te=h||te!==0?te:0,P&&ie===ie){for(var me=H.length;me--;)if(H[me]===ie)continue e;a&&H.push(ie),F.push(te)}else C(H,ie,h)||(H!==F&&H.push(ie),F.push(te))}return F}function A1(o,a){return a=Ci(a,o),o=Jb(o,a),o==null||delete o[Ar(Yn(a))]}function Sb(o,a,h,x){return sa(o,a,h(uo(o,a)),x)}function vc(o,a,h,x){for(var C=o.length,$=x?C:-1;(x?$--:++$<C)&&a(o[$],$,o););return h?qn(o,x?0:$,x?$+1:C):qn(o,x?$+1:0,x?C:$)}function Ib(o,a){var h=o;return h instanceof Fe&&(h=h.value()),r1(a,function(x,C){return C.func.apply(C.thisArg,_i([x],C.args))},h)}function O1(o,a,h){var x=o.length;if(x<2)return x?yi(o[0]):[];for(var C=-1,$=Z(x);++C<x;)for(var P=o[C],F=-1;++F<x;)F!=C&&($[C]=ra($[C]||P,o[F],a,h));return yi(Bt($,1),a,h)}function Ab(o,a,h){for(var x=-1,C=o.length,$=a.length,P={};++x<C;){var F=x<$?a[x]:n;h(P,o[x],F)}return P}function $1(o){return xt(o)?o:[]}function D1(o){return typeof o=="function"?o:gn}function Ci(o,a){return De(o)?o:B1(o,a)?[o]:r_(Qe(o))}var AP=je;function Ti(o,a,h){var x=o.length;return h=h===n?x:h,!a&&h>=x?o:qn(o,a,h)}var Ob=gM||function(o){return Ft.clearTimeout(o)};function $b(o,a){if(a)return o.slice();var h=o.length,x=K5?K5(h):new o.constructor(h);return o.copy(x),x}function M1(o){var a=new o.constructor(o.byteLength);return new rc(a).set(new rc(o)),a}function OP(o,a){var h=a?M1(o.buffer):o.buffer;return new o.constructor(h,o.byteOffset,o.byteLength)}function $P(o){var a=new o.constructor(o.source,zr.exec(o));return a.lastIndex=o.lastIndex,a}function DP(o){return ta?tt(ta.call(o)):{}}function Db(o,a){var h=a?M1(o.buffer):o.buffer;return new o.constructor(h,o.byteOffset,o.length)}function Mb(o,a){if(o!==a){var h=o!==n,x=o===null,C=o===o,$=In(o),P=a!==n,F=a===null,H=a===a,ee=In(a);if(!F&&!ee&&!$&&o>a||$&&P&&H&&!F&&!ee||x&&P&&H||!h&&H||!C)return 1;if(!x&&!$&&!ee&&o<a||ee&&h&&C&&!x&&!$||F&&h&&C||!P&&C||!H)return-1}return 0}function MP(o,a,h){for(var x=-1,C=o.criteria,$=a.criteria,P=C.length,F=h.length;++x<P;){var H=Mb(C[x],$[x]);if(H){if(x>=F)return H;var ee=h[x];return H*(ee=="desc"?-1:1)}}return o.index-a.index}function Pb(o,a,h,x){for(var C=-1,$=o.length,P=h.length,F=-1,H=a.length,ee=At($-P,0),te=Z(H+ee),ie=!x;++F<H;)te[F]=a[F];for(;++C<P;)(ie||C<$)&&(te[h[C]]=o[C]);for(;ee--;)te[F++]=o[C++];return te}function Nb(o,a,h,x){for(var C=-1,$=o.length,P=-1,F=h.length,H=-1,ee=a.length,te=At($-F,0),ie=Z(te+ee),me=!x;++C<te;)ie[C]=o[C];for(var Ce=C;++H<ee;)ie[Ce+H]=a[H];for(;++P<F;)(me||C<$)&&(ie[Ce+h[P]]=o[C++]);return ie}function fn(o,a){var h=-1,x=o.length;for(a||(a=Z(x));++h<x;)a[h]=o[h];return a}function Ir(o,a,h,x){var C=!h;h||(h={});for(var $=-1,P=a.length;++$<P;){var F=a[$],H=x?x(h[F],o[F],F,h,o):n;H===n&&(H=o[F]),C?Ur(h,F,H):na(h,F,H)}return h}function PP(o,a){return Ir(o,F1(o),a)}function NP(o,a){return Ir(o,qb(o),a)}function bc(o,a){return function(h,x){var C=De(h)?FD:nP,$=a?a():{};return C(h,o,Se(x,2),$)}}function is(o){return je(function(a,h){var x=-1,C=h.length,$=C>1?h[C-1]:n,P=C>2?h[2]:n;for($=o.length>3&&typeof $=="function"?(C--,$):n,P&&nn(h[0],h[1],P)&&($=C<3?n:$,C=1),a=tt(a);++x<C;){var F=h[x];F&&o(a,F,x,$)}return a})}function Rb(o,a){return function(h,x){if(h==null)return h;if(!pn(h))return o(h,x);for(var C=h.length,$=a?C:-1,P=tt(h);(a?$--:++$<C)&&x(P[$],$,P)!==!1;);return h}}function Lb(o){return function(a,h,x){for(var C=-1,$=tt(a),P=x(a),F=P.length;F--;){var H=P[o?F:++C];if(h($[H],H,$)===!1)break}return a}}function RP(o,a,h){var x=a&w,C=aa(o);function $(){var P=this&&this!==Ft&&this instanceof $?C:o;return P.apply(x?h:this,arguments)}return $}function jb(o){return function(a){a=Qe(a);var h=Ko(a)?ur(a):n,x=h?h[0]:a.charAt(0),C=h?Ti(h,1).join(""):a.slice(1);return x[o]()+C}}function os(o){return function(a){return r1(R_(N_(a).replace(TD,"")),o,"")}}function aa(o){return function(){var a=arguments;switch(a.length){case 0:return new o;case 1:return new o(a[0]);case 2:return new o(a[0],a[1]);case 3:return new o(a[0],a[1],a[2]);case 4:return new o(a[0],a[1],a[2],a[3]);case 5:return new o(a[0],a[1],a[2],a[3],a[4]);case 6:return new o(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new o(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var h=rs(o.prototype),x=o.apply(h,a);return ct(x)?x:h}}function LP(o,a,h){var x=aa(o);function C(){for(var $=arguments.length,P=Z($),F=$,H=ss(C);F--;)P[F]=arguments[F];var ee=$<3&&P[0]!==H&&P[$-1]!==H?[]:xi(P,H);if($-=ee.length,$<h)return Gb(o,a,_c,C.placeholder,n,P,ee,n,n,h-$);var te=this&&this!==Ft&&this instanceof C?x:o;return Cn(te,this,P)}return C}function kb(o){return function(a,h,x){var C=tt(a);if(!pn(a)){var $=Se(h,3);a=Mt(a),h=function(F){return $(C[F],F,C)}}var P=o(a,h,x);return P>-1?C[$?a[P]:P]:n}}function Fb(o){return Wr(function(a){var h=a.length,x=h,C=Vn.prototype.thru;for(o&&a.reverse();x--;){var $=a[x];if(typeof $!="function")throw new Un(l);if(C&&!P&&yc($)=="wrapper")var P=new Vn([],!0)}for(x=P?x:h;++x<h;){$=a[x];var F=yc($),H=F=="wrapper"?j1($):n;H&&z1(H[0])&&H[1]==(N|S|I|D)&&!H[4].length&&H[9]==1?P=P[yc(H[0])].apply(P,H[3]):P=$.length==1&&z1($)?P[F]():P.thru($)}return function(){var ee=arguments,te=ee[0];if(P&&ee.length==1&&De(te))return P.plant(te).value();for(var ie=0,me=h?a[ie].apply(this,ee):te;++ie<h;)me=a[ie].call(this,me);return me}})}function _c(o,a,h,x,C,$,P,F,H,ee){var te=a&N,ie=a&w,me=a&y,Ce=a&(S|O),Ie=a&k,Le=me?n:aa(o);function Ae(){for(var ke=arguments.length,ze=Z(ke),An=ke;An--;)ze[An]=arguments[An];if(Ce)var rn=ss(Ae),On=YD(ze,rn);if(x&&(ze=Pb(ze,x,C,Ce)),$&&(ze=Nb(ze,$,P,Ce)),ke-=On,Ce&&ke<ee){var Et=xi(ze,rn);return Gb(o,a,_c,Ae.placeholder,h,ze,Et,F,H,ee-ke)}var hr=ie?h:this,Xr=me?hr[o]:o;return ke=ze.length,F?ze=nN(ze,F):Ie&&ke>1&&ze.reverse(),te&&H<ke&&(ze.length=H),this&&this!==Ft&&this instanceof Ae&&(Xr=Le||aa(Xr)),Xr.apply(hr,ze)}return Ae}function Bb(o,a){return function(h,x){return dP(h,o,a(x),{})}}function xc(o,a){return function(h,x){var C;if(h===n&&x===n)return a;if(h!==n&&(C=h),x!==n){if(C===n)return x;typeof h=="string"||typeof x=="string"?(h=Sn(h),x=Sn(x)):(h=Tb(h),x=Tb(x)),C=o(h,x)}return C}}function P1(o){return Wr(function(a){return a=ot(a,Tn(Se())),je(function(h){var x=this;return o(a,function(C){return Cn(C,x,h)})})})}function Ec(o,a){a=a===n?" ":Sn(a);var h=a.length;if(h<2)return h?S1(a,o):a;var x=S1(a,ac(o/Qo(a)));return Ko(a)?Ti(ur(x),0,o).join(""):x.slice(0,o)}function jP(o,a,h,x){var C=a&w,$=aa(o);function P(){for(var F=-1,H=arguments.length,ee=-1,te=x.length,ie=Z(te+H),me=this&&this!==Ft&&this instanceof P?$:o;++ee<te;)ie[ee]=x[ee];for(;H--;)ie[ee++]=arguments[++F];return Cn(me,C?h:this,ie)}return P}function zb(o){return function(a,h,x){return x&&typeof x!="number"&&nn(a,h,x)&&(h=x=n),a=Zr(a),h===n?(h=a,a=0):h=Zr(h),x=x===n?a<h?1:-1:Zr(x),wP(a,h,x,o)}}function wc(o){return function(a,h){return typeof a=="string"&&typeof h=="string"||(a=Zn(a),h=Zn(h)),o(a,h)}}function Gb(o,a,h,x,C,$,P,F,H,ee){var te=a&S,ie=te?P:n,me=te?n:P,Ce=te?$:n,Ie=te?n:$;a|=te?I:M,a&=~(te?M:I),a&T||(a&=-4);var Le=[o,a,C,Ce,ie,Ie,me,F,H,ee],Ae=h.apply(n,Le);return z1(o)&&e_(Ae,Le),Ae.placeholder=x,t_(Ae,o,a)}function N1(o){var a=It[o];return function(h,x){if(h=Zn(h),x=x==null?0:Ht(Ne(x),292),x&&tb(h)){var C=(Qe(h)+"e").split("e"),$=a(C[0]+"e"+(+C[1]+x));return C=(Qe($)+"e").split("e"),+(C[0]+"e"+(+C[1]-x))}return a(h)}}var kP=ts&&1/Kl(new ts([,-0]))[1]==W?function(o){return new ts(o)}:np;function Hb(o){return function(a){var h=Ut(a);return h==Ke?d1(a):h==Ct?tM(a):qD(a,o(a))}}function Vr(o,a,h,x,C,$,P,F){var H=a&y;if(!H&&typeof o!="function")throw new Un(l);var ee=x?x.length:0;if(ee||(a&=-97,x=C=n),P=P===n?P:At(Ne(P),0),F=F===n?F:Ne(F),ee-=C?C.length:0,a&M){var te=x,ie=C;x=C=n}var me=H?n:j1(o),Ce=[o,a,h,x,C,te,ie,$,P,F];if(me&&JP(Ce,me),o=Ce[0],a=Ce[1],h=Ce[2],x=Ce[3],C=Ce[4],F=Ce[9]=Ce[9]===n?H?0:o.length:At(Ce[9]-ee,0),!F&&a&(S|O)&&(a&=-25),!a||a==w)var Ie=RP(o,a,h);else a==S||a==O?Ie=LP(o,a,F):(a==I||a==(w|I))&&!C.length?Ie=jP(o,a,h,x):Ie=_c.apply(n,Ce);var Le=me?yb:e_;return t_(Le(Ie,Ce),o,a)}function Ub(o,a,h,x){return o===n||pr(o,es[h])&&!Je.call(x,h)?a:o}function Vb(o,a,h,x,C,$){return ct(o)&&ct(a)&&($.set(a,o),gc(o,a,n,Vb,$),$.delete(a)),o}function FP(o){return da(o)?n:o}function Wb(o,a,h,x,C,$){var P=h&E,F=o.length,H=a.length;if(F!=H&&!(P&&H>F))return!1;var ee=$.get(o),te=$.get(a);if(ee&&te)return ee==a&&te==o;var ie=-1,me=!0,Ce=h&_?new lo:n;for($.set(o,a),$.set(a,o);++ie<F;){var Ie=o[ie],Le=a[ie];if(x)var Ae=P?x(Le,Ie,ie,a,o,$):x(Ie,Le,ie,o,a,$);if(Ae!==n){if(Ae)continue;me=!1;break}if(Ce){if(!i1(a,function(ke,ze){if(!Xs(Ce,ze)&&(Ie===ke||C(Ie,ke,h,x,$)))return Ce.push(ze)})){me=!1;break}}else if(!(Ie===Le||C(Ie,Le,h,x,$))){me=!1;break}}return $.delete(o),$.delete(a),me}function BP(o,a,h,x,C,$,P){switch(h){case Kt:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case dn:return!(o.byteLength!=a.byteLength||!$(new rc(o),new rc(a)));case ge:case be:case yt:return pr(+o,+a);case We:return o.name==a.name&&o.message==a.message;case ft:case Fn:return o==a+"";case Ke:var F=d1;case Ct:var H=x&E;if(F||(F=Kl),o.size!=a.size&&!H)return!1;var ee=P.get(o);if(ee)return ee==a;x|=_,P.set(o,a);var te=Wb(F(o),F(a),x,C,$,P);return P.delete(o),te;case wr:if(ta)return ta.call(o)==ta.call(a)}return!1}function zP(o,a,h,x,C,$){var P=h&E,F=R1(o),H=F.length,ee=R1(a),te=ee.length;if(H!=te&&!P)return!1;for(var ie=H;ie--;){var me=F[ie];if(!(P?me in a:Je.call(a,me)))return!1}var Ce=$.get(o),Ie=$.get(a);if(Ce&&Ie)return Ce==a&&Ie==o;var Le=!0;$.set(o,a),$.set(a,o);for(var Ae=P;++ie<H;){me=F[ie];var ke=o[me],ze=a[me];if(x)var An=P?x(ze,ke,me,a,o,$):x(ke,ze,me,o,a,$);if(!(An===n?ke===ze||C(ke,ze,h,x,$):An)){Le=!1;break}Ae||(Ae=me=="constructor")}if(Le&&!Ae){var rn=o.constructor,On=a.constructor;rn!=On&&"constructor"in o&&"constructor"in a&&!(typeof rn=="function"&&rn instanceof rn&&typeof On=="function"&&On instanceof On)&&(Le=!1)}return $.delete(o),$.delete(a),Le}function Wr(o){return H1(Qb(o,n,a_),o+"")}function R1(o){return fb(o,Mt,F1)}function L1(o){return fb(o,hn,qb)}var j1=cc?function(o){return cc.get(o)}:np;function yc(o){for(var a=o.name+"",h=ns[a],x=Je.call(ns,a)?h.length:0;x--;){var C=h[x],$=C.func;if($==null||$==o)return C.name}return a}function ss(o){var a=Je.call(A,"placeholder")?A:o;return a.placeholder}function Se(){var o=A.iteratee||ep;return o=o===ep?gb:o,arguments.length?o(arguments[0],arguments[1]):o}function Cc(o,a){var h=o.__data__;return ZP(a)?h[typeof a=="string"?"string":"hash"]:h.map}function k1(o){for(var a=Mt(o),h=a.length;h--;){var x=a[h],C=o[x];a[h]=[x,C,Xb(C)]}return a}function fo(o,a){var h=QD(o,a);return hb(h)?h:n}function GP(o){var a=Je.call(o,so),h=o[so];try{o[so]=n;var x=!0}catch{}var C=tc.call(o);return x&&(a?o[so]=h:delete o[so]),C}var F1=f1?function(o){return o==null?[]:(o=tt(o),bi(f1(o),function(a){return J5.call(o,a)}))}:rp,qb=f1?function(o){for(var a=[];o;)_i(a,F1(o)),o=ic(o);return a}:rp,Ut=tn;(p1&&Ut(new p1(new ArrayBuffer(1)))!=Kt||Qs&&Ut(new Qs)!=Ke||h1&&Ut(h1.resolve())!=kn||ts&&Ut(new ts)!=Ct||Js&&Ut(new Js)!=kr)&&(Ut=function(o){var a=tn(o),h=a==Rt?o.constructor:n,x=h?po(h):"";if(x)switch(x){case CM:return Kt;case TM:return Ke;case SM:return kn;case IM:return Ct;case AM:return kr}return a});function HP(o,a,h){for(var x=-1,C=h.length;++x<C;){var $=h[x],P=$.size;switch($.type){case"drop":o+=P;break;case"dropRight":a-=P;break;case"take":a=Ht(a,o+P);break;case"takeRight":o=At(o,a-P);break}}return{start:o,end:a}}function UP(o){var a=o.match(Me);return a?a[1].split(Pe):[]}function Yb(o,a,h){a=Ci(a,o);for(var x=-1,C=a.length,$=!1;++x<C;){var P=Ar(a[x]);if(!($=o!=null&&h(o,P)))break;o=o[P]}return $||++x!=C?$:(C=o==null?0:o.length,!!C&&Dc(C)&&qr(P,C)&&(De(o)||ho(o)))}function VP(o){var a=o.length,h=new o.constructor(a);return a&&typeof o[0]=="string"&&Je.call(o,"index")&&(h.index=o.index,h.input=o.input),h}function Zb(o){return typeof o.constructor=="function"&&!la(o)?rs(ic(o)):{}}function WP(o,a,h){var x=o.constructor;switch(a){case dn:return M1(o);case ge:case be:return new x(+o);case Kt:return OP(o,h);case lr:case mi:case un:case yr:case vi:case Bn:case Cr:case Fr:case Br:return Db(o,h);case Ke:return new x;case yt:case Fn:return new x(o);case ft:return $P(o);case Ct:return new x;case wr:return DP(o)}}function qP(o,a){var h=a.length;if(!h)return o;var x=h-1;return a[x]=(h>1?"& ":"")+a[x],a=a.join(h>2?", ":" "),o.replace(Be,`{
|
|
82
|
+
*/sl.exports,function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",f=500,m="__lodash_placeholder__",g=1,v=2,b=4,w=1,_=2,E=1,y=2,T=4,S=8,O=16,I=32,M=64,N=128,D=256,k=512,Y=30,L="...",G=800,Z=16,R=1,K=2,B=3,W=1/0,J=9007199254740991,q=17976931348623157e292,U=NaN,V=4294967295,ce=V-1,ue=V>>>1,pe=[["ary",N],["bind",E],["bindKey",y],["curry",S],["curryRight",O],["flip",k],["partial",I],["partialRight",M],["rearg",D]],Ee="[object Arguments]",ne="[object Array]",le="[object AsyncFunction]",ge="[object Boolean]",be="[object Date]",he="[object DOMException]",We="[object Error]",de="[object Function]",_t="[object GeneratorFunction]",Ke="[object Map]",yt="[object Number]",yn="[object Null]",Rt="[object Object]",Fn="[object Promise]",jr="[object Proxy]",pt="[object RegExp]",Ct="[object Set]",Bn="[object String]",Er="[object Symbol]",io="[object Undefined]",kr="[object WeakMap]",qs="[object WeakSet]",dn="[object ArrayBuffer]",Kt="[object DataView]",lr="[object Float32Array]",mi="[object Float64Array]",un="[object Int8Array]",yr="[object Int16Array]",vi="[object Int32Array]",zn="[object Uint8Array]",Cr="[object Uint8ClampedArray]",Fr="[object Uint16Array]",Br="[object Uint32Array]",Ys=/\b__p \+= '';/g,Yo=/\b(__p \+=) '' \+/g,Zs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,lt=/&(?:amp|lt|gt|quot|#39);/g,St=/[&<>"']/g,Lt=RegExp(lt.source),Gn=RegExp(St.source),jt=/<%-([\s\S]+?)%>/g,Qt=/<%([\s\S]+?)%>/g,Jt=/<%=([\s\S]+?)%>/g,Tr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,en=/^\w*$/,j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,_e=RegExp(oe.source),Te=/^\s+/,qe=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Me=/\{\n\/\* \[wrapped with (.+)\] \*/,Pe=/,? & /,kt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ct=/[()=,{}\[\]\/\s]/,ht=/\\(\\)?/g,cr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zr=/\w*$/,Ul=/^[-+]0x[0-9a-f]+$/i,dr=/^0b[01]+$/i,iD=/^\[object .+?Constructor\]$/,oD=/^0o[0-7]+$/i,sD=/^(?:0|[1-9]\d*)$/,aD=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vl=/($^)/,lD=/['\n\r\u2028\u2029\\]/g,Wl="\\ud800-\\udfff",cD="\\u0300-\\u036f",dD="\\ufe20-\\ufe2f",uD="\\u20d0-\\u20ff",p5=cD+dD+uD,h5="\\u2700-\\u27bf",g5="a-z\\xdf-\\xf6\\xf8-\\xff",fD="\\xac\\xb1\\xd7\\xf7",pD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hD="\\u2000-\\u206f",gD=" \\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",m5="A-Z\\xc0-\\xd6\\xd8-\\xde",v5="\\ufe0e\\ufe0f",b5=fD+pD+hD+gD,Yf="['’]",mD="["+Wl+"]",_5="["+b5+"]",ql="["+p5+"]",x5="\\d+",vD="["+h5+"]",w5="["+g5+"]",E5="[^"+Wl+b5+x5+h5+g5+m5+"]",Zf="\\ud83c[\\udffb-\\udfff]",bD="(?:"+ql+"|"+Zf+")",y5="[^"+Wl+"]",Xf="(?:\\ud83c[\\udde6-\\uddff]){2}",Kf="[\\ud800-\\udbff][\\udc00-\\udfff]",Zo="["+m5+"]",C5="\\u200d",T5="(?:"+w5+"|"+E5+")",_D="(?:"+Zo+"|"+E5+")",S5="(?:"+Yf+"(?:d|ll|m|re|s|t|ve))?",I5="(?:"+Yf+"(?:D|LL|M|RE|S|T|VE))?",A5=bD+"?",O5="["+v5+"]?",xD="(?:"+C5+"(?:"+[y5,Xf,Kf].join("|")+")"+O5+A5+")*",wD="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ED="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$5=O5+A5+xD,yD="(?:"+[vD,Xf,Kf].join("|")+")"+$5,CD="(?:"+[y5+ql+"?",ql,Xf,Kf,mD].join("|")+")",TD=RegExp(Yf,"g"),SD=RegExp(ql,"g"),Qf=RegExp(Zf+"(?="+Zf+")|"+CD+$5,"g"),ID=RegExp([Zo+"?"+w5+"+"+S5+"(?="+[_5,Zo,"$"].join("|")+")",_D+"+"+I5+"(?="+[_5,Zo+T5,"$"].join("|")+")",Zo+"?"+T5+"+"+S5,Zo+"+"+I5,ED,wD,x5,yD].join("|"),"g"),AD=RegExp("["+C5+Wl+p5+v5+"]"),OD=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$D=["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"],DD=-1,it={};it[lr]=it[mi]=it[un]=it[yr]=it[vi]=it[zn]=it[Cr]=it[Fr]=it[Br]=!0,it[Ee]=it[ne]=it[dn]=it[ge]=it[Kt]=it[be]=it[We]=it[de]=it[Ke]=it[yt]=it[Rt]=it[pt]=it[Ct]=it[Bn]=it[kr]=!1;var rt={};rt[Ee]=rt[ne]=rt[dn]=rt[Kt]=rt[ge]=rt[be]=rt[lr]=rt[mi]=rt[un]=rt[yr]=rt[vi]=rt[Ke]=rt[yt]=rt[Rt]=rt[pt]=rt[Ct]=rt[Bn]=rt[Er]=rt[zn]=rt[Cr]=rt[Fr]=rt[Br]=!0,rt[We]=rt[de]=rt[kr]=!1;var MD={À:"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"},PD={"&":"&","<":"<",">":">",'"':""","'":"'"},ND={"&":"&","<":"<",">":">",""":'"',"'":"'"},RD={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},LD=parseFloat,jD=parseInt,D5=typeof cs=="object"&&cs&&cs.Object===Object&&cs,kD=typeof self=="object"&&self&&self.Object===Object&&self,Ft=D5||kD||Function("return this")(),Jf=t&&!t.nodeType&&t,oo=Jf&&!0&&e&&!e.nodeType&&e,M5=oo&&oo.exports===Jf,ep=M5&&D5.process,Hn=function(){try{var z=oo&&oo.require&&oo.require("util").types;return z||ep&&ep.binding&&ep.binding("util")}catch{}}(),P5=Hn&&Hn.isArrayBuffer,N5=Hn&&Hn.isDate,R5=Hn&&Hn.isMap,L5=Hn&&Hn.isRegExp,j5=Hn&&Hn.isSet,k5=Hn&&Hn.isTypedArray;function Cn(z,Q,X){switch(X.length){case 0:return z.call(Q);case 1:return z.call(Q,X[0]);case 2:return z.call(Q,X[0],X[1]);case 3:return z.call(Q,X[0],X[1],X[2])}return z.apply(Q,X)}function FD(z,Q,X,xe){for(var $e=-1,Ye=z==null?0:z.length;++$e<Ye;){var It=z[$e];Q(xe,It,X(It),z)}return xe}function Un(z,Q){for(var X=-1,xe=z==null?0:z.length;++X<xe&&Q(z[X],X,z)!==!1;);return z}function BD(z,Q){for(var X=z==null?0:z.length;X--&&Q(z[X],X,z)!==!1;);return z}function F5(z,Q){for(var X=-1,xe=z==null?0:z.length;++X<xe;)if(!Q(z[X],X,z))return!1;return!0}function bi(z,Q){for(var X=-1,xe=z==null?0:z.length,$e=0,Ye=[];++X<xe;){var It=z[X];Q(It,X,z)&&(Ye[$e++]=It)}return Ye}function Yl(z,Q){var X=z==null?0:z.length;return!!X&&Xo(z,Q,0)>-1}function tp(z,Q,X){for(var xe=-1,$e=z==null?0:z.length;++xe<$e;)if(X(Q,z[xe]))return!0;return!1}function ot(z,Q){for(var X=-1,xe=z==null?0:z.length,$e=Array(xe);++X<xe;)$e[X]=Q(z[X],X,z);return $e}function _i(z,Q){for(var X=-1,xe=Q.length,$e=z.length;++X<xe;)z[$e+X]=Q[X];return z}function np(z,Q,X,xe){var $e=-1,Ye=z==null?0:z.length;for(xe&&Ye&&(X=z[++$e]);++$e<Ye;)X=Q(X,z[$e],$e,z);return X}function zD(z,Q,X,xe){var $e=z==null?0:z.length;for(xe&&$e&&(X=z[--$e]);$e--;)X=Q(X,z[$e],$e,z);return X}function rp(z,Q){for(var X=-1,xe=z==null?0:z.length;++X<xe;)if(Q(z[X],X,z))return!0;return!1}var GD=ip("length");function HD(z){return z.split("")}function UD(z){return z.match(kt)||[]}function B5(z,Q,X){var xe;return X(z,function($e,Ye,It){if(Q($e,Ye,It))return xe=Ye,!1}),xe}function Zl(z,Q,X,xe){for(var $e=z.length,Ye=X+(xe?1:-1);xe?Ye--:++Ye<$e;)if(Q(z[Ye],Ye,z))return Ye;return-1}function Xo(z,Q,X){return Q===Q?nM(z,Q,X):Zl(z,z5,X)}function VD(z,Q,X,xe){for(var $e=X-1,Ye=z.length;++$e<Ye;)if(xe(z[$e],Q))return $e;return-1}function z5(z){return z!==z}function G5(z,Q){var X=z==null?0:z.length;return X?sp(z,Q)/X:U}function ip(z){return function(Q){return Q==null?n:Q[z]}}function op(z){return function(Q){return z==null?n:z[Q]}}function H5(z,Q,X,xe,$e){return $e(z,function(Ye,It,tt){X=xe?(xe=!1,Ye):Q(X,Ye,It,tt)}),X}function WD(z,Q){var X=z.length;for(z.sort(Q);X--;)z[X]=z[X].value;return z}function sp(z,Q){for(var X,xe=-1,$e=z.length;++xe<$e;){var Ye=Q(z[xe]);Ye!==n&&(X=X===n?Ye:X+Ye)}return X}function ap(z,Q){for(var X=-1,xe=Array(z);++X<z;)xe[X]=Q(X);return xe}function qD(z,Q){return ot(Q,function(X){return[X,z[X]]})}function U5(z){return z&&z.slice(0,Y5(z)+1).replace(Te,"")}function Tn(z){return function(Q){return z(Q)}}function lp(z,Q){return ot(Q,function(X){return z[X]})}function Xs(z,Q){return z.has(Q)}function V5(z,Q){for(var X=-1,xe=z.length;++X<xe&&Xo(Q,z[X],0)>-1;);return X}function W5(z,Q){for(var X=z.length;X--&&Xo(Q,z[X],0)>-1;);return X}function YD(z,Q){for(var X=z.length,xe=0;X--;)z[X]===Q&&++xe;return xe}var ZD=op(MD),XD=op(PD);function KD(z){return"\\"+RD[z]}function QD(z,Q){return z==null?n:z[Q]}function Ko(z){return AD.test(z)}function JD(z){return OD.test(z)}function eM(z){for(var Q,X=[];!(Q=z.next()).done;)X.push(Q.value);return X}function cp(z){var Q=-1,X=Array(z.size);return z.forEach(function(xe,$e){X[++Q]=[$e,xe]}),X}function q5(z,Q){return function(X){return z(Q(X))}}function xi(z,Q){for(var X=-1,xe=z.length,$e=0,Ye=[];++X<xe;){var It=z[X];(It===Q||It===m)&&(z[X]=m,Ye[$e++]=X)}return Ye}function Xl(z){var Q=-1,X=Array(z.size);return z.forEach(function(xe){X[++Q]=xe}),X}function tM(z){var Q=-1,X=Array(z.size);return z.forEach(function(xe){X[++Q]=[xe,xe]}),X}function nM(z,Q,X){for(var xe=X-1,$e=z.length;++xe<$e;)if(z[xe]===Q)return xe;return-1}function rM(z,Q,X){for(var xe=X+1;xe--;)if(z[xe]===Q)return xe;return xe}function Qo(z){return Ko(z)?oM(z):GD(z)}function ur(z){return Ko(z)?sM(z):HD(z)}function Y5(z){for(var Q=z.length;Q--&&qe.test(z.charAt(Q)););return Q}var iM=op(ND);function oM(z){for(var Q=Qf.lastIndex=0;Qf.test(z);)++Q;return Q}function sM(z){return z.match(Qf)||[]}function aM(z){return z.match(ID)||[]}var lM=function z(Q){Q=Q==null?Ft:Jo.defaults(Ft.Object(),Q,Jo.pick(Ft,$D));var X=Q.Array,xe=Q.Date,$e=Q.Error,Ye=Q.Function,It=Q.Math,tt=Q.Object,dp=Q.RegExp,cM=Q.String,Vn=Q.TypeError,Kl=X.prototype,dM=Ye.prototype,es=tt.prototype,Ql=Q["__core-js_shared__"],Jl=dM.toString,Je=es.hasOwnProperty,uM=0,Z5=function(){var o=/[^.]+$/.exec(Ql&&Ql.keys&&Ql.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),ec=es.toString,fM=Jl.call(tt),pM=Ft._,hM=dp("^"+Jl.call(Je).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tc=M5?Q.Buffer:n,wi=Q.Symbol,nc=Q.Uint8Array,X5=tc?tc.allocUnsafe:n,rc=q5(tt.getPrototypeOf,tt),K5=tt.create,Q5=es.propertyIsEnumerable,ic=Kl.splice,J5=wi?wi.isConcatSpreadable:n,Ks=wi?wi.iterator:n,so=wi?wi.toStringTag:n,oc=function(){try{var o=fo(tt,"defineProperty");return o({},"",{}),o}catch{}}(),gM=Q.clearTimeout!==Ft.clearTimeout&&Q.clearTimeout,mM=xe&&xe.now!==Ft.Date.now&&xe.now,vM=Q.setTimeout!==Ft.setTimeout&&Q.setTimeout,sc=It.ceil,ac=It.floor,up=tt.getOwnPropertySymbols,bM=tc?tc.isBuffer:n,eb=Q.isFinite,_M=Kl.join,xM=q5(tt.keys,tt),At=It.max,Ht=It.min,wM=xe.now,EM=Q.parseInt,tb=It.random,yM=Kl.reverse,fp=fo(Q,"DataView"),Qs=fo(Q,"Map"),pp=fo(Q,"Promise"),ts=fo(Q,"Set"),Js=fo(Q,"WeakMap"),ea=fo(tt,"create"),lc=Js&&new Js,ns={},CM=po(fp),TM=po(Qs),SM=po(pp),IM=po(ts),AM=po(Js),cc=wi?wi.prototype:n,ta=cc?cc.valueOf:n,nb=cc?cc.toString:n;function A(o){if(gt(o)&&!De(o)&&!(o instanceof Fe)){if(o instanceof Wn)return o;if(Je.call(o,"__wrapped__"))return r_(o)}return new Wn(o)}var rs=function(){function o(){}return function(a){if(!dt(a))return{};if(K5)return K5(a);o.prototype=a;var h=new o;return o.prototype=n,h}}();function dc(){}function Wn(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=n}A.templateSettings={escape:jt,evaluate:Qt,interpolate:Jt,variable:"",imports:{_:A}},A.prototype=dc.prototype,A.prototype.constructor=A,Wn.prototype=rs(dc.prototype),Wn.prototype.constructor=Wn;function Fe(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=V,this.__views__=[]}function OM(){var o=new Fe(this.__wrapped__);return o.__actions__=fn(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=fn(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=fn(this.__views__),o}function $M(){if(this.__filtered__){var o=new Fe(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function DM(){var o=this.__wrapped__.value(),a=this.__dir__,h=De(o),x=a<0,C=h?o.length:0,$=HP(0,C,this.__views__),P=$.start,F=$.end,H=F-P,ee=x?F:P-1,te=this.__iteratees__,ie=te.length,me=0,Ce=Ht(H,this.__takeCount__);if(!h||!x&&C==H&&Ce==H)return Sb(o,this.__actions__);var Ie=[];e:for(;H--&&me<Ce;){ee+=a;for(var Le=-1,Ae=o[ee];++Le<ie;){var ke=te[Le],ze=ke.iteratee,An=ke.type,rn=ze(Ae);if(An==K)Ae=rn;else if(!rn){if(An==R)continue e;break e}}Ie[me++]=Ae}return Ie}Fe.prototype=rs(dc.prototype),Fe.prototype.constructor=Fe;function ao(o){var a=-1,h=o==null?0:o.length;for(this.clear();++a<h;){var x=o[a];this.set(x[0],x[1])}}function MM(){this.__data__=ea?ea(null):{},this.size=0}function PM(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}function NM(o){var a=this.__data__;if(ea){var h=a[o];return h===d?n:h}return Je.call(a,o)?a[o]:n}function RM(o){var a=this.__data__;return ea?a[o]!==n:Je.call(a,o)}function LM(o,a){var h=this.__data__;return this.size+=this.has(o)?0:1,h[o]=ea&&a===n?d:a,this}ao.prototype.clear=MM,ao.prototype.delete=PM,ao.prototype.get=NM,ao.prototype.has=RM,ao.prototype.set=LM;function Gr(o){var a=-1,h=o==null?0:o.length;for(this.clear();++a<h;){var x=o[a];this.set(x[0],x[1])}}function jM(){this.__data__=[],this.size=0}function kM(o){var a=this.__data__,h=uc(a,o);if(h<0)return!1;var x=a.length-1;return h==x?a.pop():ic.call(a,h,1),--this.size,!0}function FM(o){var a=this.__data__,h=uc(a,o);return h<0?n:a[h][1]}function BM(o){return uc(this.__data__,o)>-1}function zM(o,a){var h=this.__data__,x=uc(h,o);return x<0?(++this.size,h.push([o,a])):h[x][1]=a,this}Gr.prototype.clear=jM,Gr.prototype.delete=kM,Gr.prototype.get=FM,Gr.prototype.has=BM,Gr.prototype.set=zM;function Hr(o){var a=-1,h=o==null?0:o.length;for(this.clear();++a<h;){var x=o[a];this.set(x[0],x[1])}}function GM(){this.size=0,this.__data__={hash:new ao,map:new(Qs||Gr),string:new ao}}function HM(o){var a=yc(this,o).delete(o);return this.size-=a?1:0,a}function UM(o){return yc(this,o).get(o)}function VM(o){return yc(this,o).has(o)}function WM(o,a){var h=yc(this,o),x=h.size;return h.set(o,a),this.size+=h.size==x?0:1,this}Hr.prototype.clear=GM,Hr.prototype.delete=HM,Hr.prototype.get=UM,Hr.prototype.has=VM,Hr.prototype.set=WM;function lo(o){var a=-1,h=o==null?0:o.length;for(this.__data__=new Hr;++a<h;)this.add(o[a])}function qM(o){return this.__data__.set(o,d),this}function YM(o){return this.__data__.has(o)}lo.prototype.add=lo.prototype.push=qM,lo.prototype.has=YM;function fr(o){var a=this.__data__=new Gr(o);this.size=a.size}function ZM(){this.__data__=new Gr,this.size=0}function XM(o){var a=this.__data__,h=a.delete(o);return this.size=a.size,h}function KM(o){return this.__data__.get(o)}function QM(o){return this.__data__.has(o)}function JM(o,a){var h=this.__data__;if(h instanceof Gr){var x=h.__data__;if(!Qs||x.length<i-1)return x.push([o,a]),this.size=++h.size,this;h=this.__data__=new Hr(x)}return h.set(o,a),this.size=h.size,this}fr.prototype.clear=ZM,fr.prototype.delete=XM,fr.prototype.get=KM,fr.prototype.has=QM,fr.prototype.set=JM;function rb(o,a){var h=De(o),x=!h&&ho(o),C=!h&&!x&&Si(o),$=!h&&!x&&!C&&as(o),P=h||x||C||$,F=P?ap(o.length,cM):[],H=F.length;for(var ee in o)(a||Je.call(o,ee))&&!(P&&(ee=="length"||C&&(ee=="offset"||ee=="parent")||$&&(ee=="buffer"||ee=="byteLength"||ee=="byteOffset")||qr(ee,H)))&&F.push(ee);return F}function ib(o){var a=o.length;return a?o[Cp(0,a-1)]:n}function eP(o,a){return Cc(fn(o),co(a,0,o.length))}function tP(o){return Cc(fn(o))}function hp(o,a,h){(h!==n&&!pr(o[a],h)||h===n&&!(a in o))&&Ur(o,a,h)}function na(o,a,h){var x=o[a];(!(Je.call(o,a)&&pr(x,h))||h===n&&!(a in o))&&Ur(o,a,h)}function uc(o,a){for(var h=o.length;h--;)if(pr(o[h][0],a))return h;return-1}function nP(o,a,h,x){return Ei(o,function(C,$,P){a(x,C,h(C),P)}),x}function ob(o,a){return o&&Ir(a,Mt(a),o)}function rP(o,a){return o&&Ir(a,hn(a),o)}function Ur(o,a,h){a=="__proto__"&&oc?oc(o,a,{configurable:!0,enumerable:!0,value:h,writable:!0}):o[a]=h}function gp(o,a){for(var h=-1,x=a.length,C=X(x),$=o==null;++h<x;)C[h]=$?n:Zp(o,a[h]);return C}function co(o,a,h){return o===o&&(h!==n&&(o=o<=h?o:h),a!==n&&(o=o>=a?o:a)),o}function qn(o,a,h,x,C,$){var P,F=a&g,H=a&v,ee=a&b;if(h&&(P=C?h(o,x,C,$):h(o)),P!==n)return P;if(!dt(o))return o;var te=De(o);if(te){if(P=VP(o),!F)return fn(o,P)}else{var ie=Ut(o),me=ie==de||ie==_t;if(Si(o))return Ob(o,F);if(ie==Rt||ie==Ee||me&&!C){if(P=H||me?{}:Yb(o),!F)return H?NP(o,rP(P,o)):PP(o,ob(P,o))}else{if(!rt[ie])return C?o:{};P=WP(o,ie,F)}}$||($=new fr);var Ce=$.get(o);if(Ce)return Ce;$.set(o,P),y_(o)?o.forEach(function(Ae){P.add(qn(Ae,a,h,Ae,o,$))}):w_(o)&&o.forEach(function(Ae,ke){P.set(ke,qn(Ae,a,h,ke,o,$))});var Ie=ee?H?Rp:Np:H?hn:Mt,Le=te?n:Ie(o);return Un(Le||o,function(Ae,ke){Le&&(ke=Ae,Ae=o[ke]),na(P,ke,qn(Ae,a,h,ke,o,$))}),P}function iP(o){var a=Mt(o);return function(h){return sb(h,o,a)}}function sb(o,a,h){var x=h.length;if(o==null)return!x;for(o=tt(o);x--;){var C=h[x],$=a[C],P=o[C];if(P===n&&!(C in o)||!$(P))return!1}return!0}function ab(o,a,h){if(typeof o!="function")throw new Vn(l);return ca(function(){o.apply(n,h)},a)}function ra(o,a,h,x){var C=-1,$=Yl,P=!0,F=o.length,H=[],ee=a.length;if(!F)return H;h&&(a=ot(a,Tn(h))),x?($=tp,P=!1):a.length>=i&&($=Xs,P=!1,a=new lo(a));e:for(;++C<F;){var te=o[C],ie=h==null?te:h(te);if(te=x||te!==0?te:0,P&&ie===ie){for(var me=ee;me--;)if(a[me]===ie)continue e;H.push(te)}else $(a,ie,x)||H.push(te)}return H}var Ei=Nb(Sr),lb=Nb(vp,!0);function oP(o,a){var h=!0;return Ei(o,function(x,C,$){return h=!!a(x,C,$),h}),h}function fc(o,a,h){for(var x=-1,C=o.length;++x<C;){var $=o[x],P=a($);if(P!=null&&(F===n?P===P&&!In(P):h(P,F)))var F=P,H=$}return H}function sP(o,a,h,x){var C=o.length;for(h=Ne(h),h<0&&(h=-h>C?0:C+h),x=x===n||x>C?C:Ne(x),x<0&&(x+=C),x=h>x?0:T_(x);h<x;)o[h++]=a;return o}function cb(o,a){var h=[];return Ei(o,function(x,C,$){a(x,C,$)&&h.push(x)}),h}function Bt(o,a,h,x,C){var $=-1,P=o.length;for(h||(h=YP),C||(C=[]);++$<P;){var F=o[$];a>0&&h(F)?a>1?Bt(F,a-1,h,x,C):_i(C,F):x||(C[C.length]=F)}return C}var mp=Rb(),db=Rb(!0);function Sr(o,a){return o&&mp(o,a,Mt)}function vp(o,a){return o&&db(o,a,Mt)}function pc(o,a){return bi(a,function(h){return Yr(o[h])})}function uo(o,a){a=Ci(a,o);for(var h=0,x=a.length;o!=null&&h<x;)o=o[Ar(a[h++])];return h&&h==x?o:n}function ub(o,a,h){var x=a(o);return De(o)?x:_i(x,h(o))}function tn(o){return o==null?o===n?io:yn:so&&so in tt(o)?GP(o):tN(o)}function bp(o,a){return o>a}function aP(o,a){return o!=null&&Je.call(o,a)}function lP(o,a){return o!=null&&a in tt(o)}function cP(o,a,h){return o>=Ht(a,h)&&o<At(a,h)}function _p(o,a,h){for(var x=h?tp:Yl,C=o[0].length,$=o.length,P=$,F=X($),H=1/0,ee=[];P--;){var te=o[P];P&&a&&(te=ot(te,Tn(a))),H=Ht(te.length,H),F[P]=!h&&(a||C>=120&&te.length>=120)?new lo(P&&te):n}te=o[0];var ie=-1,me=F[0];e:for(;++ie<C&&ee.length<H;){var Ce=te[ie],Ie=a?a(Ce):Ce;if(Ce=h||Ce!==0?Ce:0,!(me?Xs(me,Ie):x(ee,Ie,h))){for(P=$;--P;){var Le=F[P];if(!(Le?Xs(Le,Ie):x(o[P],Ie,h)))continue e}me&&me.push(Ie),ee.push(Ce)}}return ee}function dP(o,a,h,x){return Sr(o,function(C,$,P){a(x,h(C),$,P)}),x}function ia(o,a,h){a=Ci(a,o),o=Qb(o,a);var x=o==null?o:o[Ar(Zn(a))];return x==null?n:Cn(x,o,h)}function fb(o){return gt(o)&&tn(o)==Ee}function uP(o){return gt(o)&&tn(o)==dn}function fP(o){return gt(o)&&tn(o)==be}function oa(o,a,h,x,C){return o===a?!0:o==null||a==null||!gt(o)&&!gt(a)?o!==o&&a!==a:pP(o,a,h,x,oa,C)}function pP(o,a,h,x,C,$){var P=De(o),F=De(a),H=P?ne:Ut(o),ee=F?ne:Ut(a);H=H==Ee?Rt:H,ee=ee==Ee?Rt:ee;var te=H==Rt,ie=ee==Rt,me=H==ee;if(me&&Si(o)){if(!Si(a))return!1;P=!0,te=!1}if(me&&!te)return $||($=new fr),P||as(o)?Vb(o,a,h,x,C,$):BP(o,a,H,h,x,C,$);if(!(h&w)){var Ce=te&&Je.call(o,"__wrapped__"),Ie=ie&&Je.call(a,"__wrapped__");if(Ce||Ie){var Le=Ce?o.value():o,Ae=Ie?a.value():a;return $||($=new fr),C(Le,Ae,h,x,$)}}return me?($||($=new fr),zP(o,a,h,x,C,$)):!1}function hP(o){return gt(o)&&Ut(o)==Ke}function xp(o,a,h,x){var C=h.length,$=C,P=!x;if(o==null)return!$;for(o=tt(o);C--;){var F=h[C];if(P&&F[2]?F[1]!==o[F[0]]:!(F[0]in o))return!1}for(;++C<$;){F=h[C];var H=F[0],ee=o[H],te=F[1];if(P&&F[2]){if(ee===n&&!(H in o))return!1}else{var ie=new fr;if(x)var me=x(ee,te,H,o,a,ie);if(!(me===n?oa(te,ee,w|_,x,ie):me))return!1}}return!0}function pb(o){if(!dt(o)||XP(o))return!1;var a=Yr(o)?hM:iD;return a.test(po(o))}function gP(o){return gt(o)&&tn(o)==pt}function mP(o){return gt(o)&&Ut(o)==Ct}function vP(o){return gt(o)&&$c(o.length)&&!!it[tn(o)]}function hb(o){return typeof o=="function"?o:o==null?gn:typeof o=="object"?De(o)?vb(o[0],o[1]):mb(o):L_(o)}function wp(o){if(!la(o))return xM(o);var a=[];for(var h in tt(o))Je.call(o,h)&&h!="constructor"&&a.push(h);return a}function bP(o){if(!dt(o))return eN(o);var a=la(o),h=[];for(var x in o)x=="constructor"&&(a||!Je.call(o,x))||h.push(x);return h}function Ep(o,a){return o<a}function gb(o,a){var h=-1,x=pn(o)?X(o.length):[];return Ei(o,function(C,$,P){x[++h]=a(C,$,P)}),x}function mb(o){var a=jp(o);return a.length==1&&a[0][2]?Xb(a[0][0],a[0][1]):function(h){return h===o||xp(h,o,a)}}function vb(o,a){return Fp(o)&&Zb(a)?Xb(Ar(o),a):function(h){var x=Zp(h,o);return x===n&&x===a?Xp(h,o):oa(a,x,w|_)}}function hc(o,a,h,x,C){o!==a&&mp(a,function($,P){if(C||(C=new fr),dt($))_P(o,a,P,h,hc,x,C);else{var F=x?x(zp(o,P),$,P+"",o,a,C):n;F===n&&(F=$),hp(o,P,F)}},hn)}function _P(o,a,h,x,C,$,P){var F=zp(o,h),H=zp(a,h),ee=P.get(H);if(ee){hp(o,h,ee);return}var te=$?$(F,H,h+"",o,a,P):n,ie=te===n;if(ie){var me=De(H),Ce=!me&&Si(H),Ie=!me&&!Ce&&as(H);te=H,me||Ce||Ie?De(F)?te=F:xt(F)?te=fn(F):Ce?(ie=!1,te=Ob(H,!0)):Ie?(ie=!1,te=$b(H,!0)):te=[]:da(H)||ho(H)?(te=F,ho(F)?te=S_(F):(!dt(F)||Yr(F))&&(te=Yb(H))):ie=!1}ie&&(P.set(H,te),C(te,H,x,$,P),P.delete(H)),hp(o,h,te)}function bb(o,a){var h=o.length;if(h)return a+=a<0?h:0,qr(a,h)?o[a]:n}function _b(o,a,h){a.length?a=ot(a,function($){return De($)?function(P){return uo(P,$.length===1?$[0]:$)}:$}):a=[gn];var x=-1;a=ot(a,Tn(Se()));var C=gb(o,function($,P,F){var H=ot(a,function(ee){return ee($)});return{criteria:H,index:++x,value:$}});return WD(C,function($,P){return MP($,P,h)})}function xP(o,a){return xb(o,a,function(h,x){return Xp(o,x)})}function xb(o,a,h){for(var x=-1,C=a.length,$={};++x<C;){var P=a[x],F=uo(o,P);h(F,P)&&sa($,Ci(P,o),F)}return $}function wP(o){return function(a){return uo(a,o)}}function yp(o,a,h,x){var C=x?VD:Xo,$=-1,P=a.length,F=o;for(o===a&&(a=fn(a)),h&&(F=ot(o,Tn(h)));++$<P;)for(var H=0,ee=a[$],te=h?h(ee):ee;(H=C(F,te,H,x))>-1;)F!==o&&ic.call(F,H,1),ic.call(o,H,1);return o}function wb(o,a){for(var h=o?a.length:0,x=h-1;h--;){var C=a[h];if(h==x||C!==$){var $=C;qr(C)?ic.call(o,C,1):Ip(o,C)}}return o}function Cp(o,a){return o+ac(tb()*(a-o+1))}function EP(o,a,h,x){for(var C=-1,$=At(sc((a-o)/(h||1)),0),P=X($);$--;)P[x?$:++C]=o,o+=h;return P}function Tp(o,a){var h="";if(!o||a<1||a>J)return h;do a%2&&(h+=o),a=ac(a/2),a&&(o+=o);while(a);return h}function je(o,a){return Gp(Kb(o,a,gn),o+"")}function yP(o){return ib(ls(o))}function CP(o,a){var h=ls(o);return Cc(h,co(a,0,h.length))}function sa(o,a,h,x){if(!dt(o))return o;a=Ci(a,o);for(var C=-1,$=a.length,P=$-1,F=o;F!=null&&++C<$;){var H=Ar(a[C]),ee=h;if(H==="__proto__"||H==="constructor"||H==="prototype")return o;if(C!=P){var te=F[H];ee=x?x(te,H,F):n,ee===n&&(ee=dt(te)?te:qr(a[C+1])?[]:{})}na(F,H,ee),F=F[H]}return o}var Eb=lc?function(o,a){return lc.set(o,a),o}:gn,TP=oc?function(o,a){return oc(o,"toString",{configurable:!0,enumerable:!1,value:Qp(a),writable:!0})}:gn;function SP(o){return Cc(ls(o))}function Yn(o,a,h){var x=-1,C=o.length;a<0&&(a=-a>C?0:C+a),h=h>C?C:h,h<0&&(h+=C),C=a>h?0:h-a>>>0,a>>>=0;for(var $=X(C);++x<C;)$[x]=o[x+a];return $}function IP(o,a){var h;return Ei(o,function(x,C,$){return h=a(x,C,$),!h}),!!h}function gc(o,a,h){var x=0,C=o==null?x:o.length;if(typeof a=="number"&&a===a&&C<=ue){for(;x<C;){var $=x+C>>>1,P=o[$];P!==null&&!In(P)&&(h?P<=a:P<a)?x=$+1:C=$}return C}return Sp(o,a,gn,h)}function Sp(o,a,h,x){var C=0,$=o==null?0:o.length;if($===0)return 0;a=h(a);for(var P=a!==a,F=a===null,H=In(a),ee=a===n;C<$;){var te=ac((C+$)/2),ie=h(o[te]),me=ie!==n,Ce=ie===null,Ie=ie===ie,Le=In(ie);if(P)var Ae=x||Ie;else ee?Ae=Ie&&(x||me):F?Ae=Ie&&me&&(x||!Ce):H?Ae=Ie&&me&&!Ce&&(x||!Le):Ce||Le?Ae=!1:Ae=x?ie<=a:ie<a;Ae?C=te+1:$=te}return Ht($,ce)}function yb(o,a){for(var h=-1,x=o.length,C=0,$=[];++h<x;){var P=o[h],F=a?a(P):P;if(!h||!pr(F,H)){var H=F;$[C++]=P===0?0:P}}return $}function Cb(o){return typeof o=="number"?o:In(o)?U:+o}function Sn(o){if(typeof o=="string")return o;if(De(o))return ot(o,Sn)+"";if(In(o))return nb?nb.call(o):"";var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function yi(o,a,h){var x=-1,C=Yl,$=o.length,P=!0,F=[],H=F;if(h)P=!1,C=tp;else if($>=i){var ee=a?null:kP(o);if(ee)return Xl(ee);P=!1,C=Xs,H=new lo}else H=a?[]:F;e:for(;++x<$;){var te=o[x],ie=a?a(te):te;if(te=h||te!==0?te:0,P&&ie===ie){for(var me=H.length;me--;)if(H[me]===ie)continue e;a&&H.push(ie),F.push(te)}else C(H,ie,h)||(H!==F&&H.push(ie),F.push(te))}return F}function Ip(o,a){return a=Ci(a,o),o=Qb(o,a),o==null||delete o[Ar(Zn(a))]}function Tb(o,a,h,x){return sa(o,a,h(uo(o,a)),x)}function mc(o,a,h,x){for(var C=o.length,$=x?C:-1;(x?$--:++$<C)&&a(o[$],$,o););return h?Yn(o,x?0:$,x?$+1:C):Yn(o,x?$+1:0,x?C:$)}function Sb(o,a){var h=o;return h instanceof Fe&&(h=h.value()),np(a,function(x,C){return C.func.apply(C.thisArg,_i([x],C.args))},h)}function Ap(o,a,h){var x=o.length;if(x<2)return x?yi(o[0]):[];for(var C=-1,$=X(x);++C<x;)for(var P=o[C],F=-1;++F<x;)F!=C&&($[C]=ra($[C]||P,o[F],a,h));return yi(Bt($,1),a,h)}function Ib(o,a,h){for(var x=-1,C=o.length,$=a.length,P={};++x<C;){var F=x<$?a[x]:n;h(P,o[x],F)}return P}function Op(o){return xt(o)?o:[]}function $p(o){return typeof o=="function"?o:gn}function Ci(o,a){return De(o)?o:Fp(o,a)?[o]:n_(Qe(o))}var AP=je;function Ti(o,a,h){var x=o.length;return h=h===n?x:h,!a&&h>=x?o:Yn(o,a,h)}var Ab=gM||function(o){return Ft.clearTimeout(o)};function Ob(o,a){if(a)return o.slice();var h=o.length,x=X5?X5(h):new o.constructor(h);return o.copy(x),x}function Dp(o){var a=new o.constructor(o.byteLength);return new nc(a).set(new nc(o)),a}function OP(o,a){var h=a?Dp(o.buffer):o.buffer;return new o.constructor(h,o.byteOffset,o.byteLength)}function $P(o){var a=new o.constructor(o.source,zr.exec(o));return a.lastIndex=o.lastIndex,a}function DP(o){return ta?tt(ta.call(o)):{}}function $b(o,a){var h=a?Dp(o.buffer):o.buffer;return new o.constructor(h,o.byteOffset,o.length)}function Db(o,a){if(o!==a){var h=o!==n,x=o===null,C=o===o,$=In(o),P=a!==n,F=a===null,H=a===a,ee=In(a);if(!F&&!ee&&!$&&o>a||$&&P&&H&&!F&&!ee||x&&P&&H||!h&&H||!C)return 1;if(!x&&!$&&!ee&&o<a||ee&&h&&C&&!x&&!$||F&&h&&C||!P&&C||!H)return-1}return 0}function MP(o,a,h){for(var x=-1,C=o.criteria,$=a.criteria,P=C.length,F=h.length;++x<P;){var H=Db(C[x],$[x]);if(H){if(x>=F)return H;var ee=h[x];return H*(ee=="desc"?-1:1)}}return o.index-a.index}function Mb(o,a,h,x){for(var C=-1,$=o.length,P=h.length,F=-1,H=a.length,ee=At($-P,0),te=X(H+ee),ie=!x;++F<H;)te[F]=a[F];for(;++C<P;)(ie||C<$)&&(te[h[C]]=o[C]);for(;ee--;)te[F++]=o[C++];return te}function Pb(o,a,h,x){for(var C=-1,$=o.length,P=-1,F=h.length,H=-1,ee=a.length,te=At($-F,0),ie=X(te+ee),me=!x;++C<te;)ie[C]=o[C];for(var Ce=C;++H<ee;)ie[Ce+H]=a[H];for(;++P<F;)(me||C<$)&&(ie[Ce+h[P]]=o[C++]);return ie}function fn(o,a){var h=-1,x=o.length;for(a||(a=X(x));++h<x;)a[h]=o[h];return a}function Ir(o,a,h,x){var C=!h;h||(h={});for(var $=-1,P=a.length;++$<P;){var F=a[$],H=x?x(h[F],o[F],F,h,o):n;H===n&&(H=o[F]),C?Ur(h,F,H):na(h,F,H)}return h}function PP(o,a){return Ir(o,kp(o),a)}function NP(o,a){return Ir(o,Wb(o),a)}function vc(o,a){return function(h,x){var C=De(h)?FD:nP,$=a?a():{};return C(h,o,Se(x,2),$)}}function is(o){return je(function(a,h){var x=-1,C=h.length,$=C>1?h[C-1]:n,P=C>2?h[2]:n;for($=o.length>3&&typeof $=="function"?(C--,$):n,P&&nn(h[0],h[1],P)&&($=C<3?n:$,C=1),a=tt(a);++x<C;){var F=h[x];F&&o(a,F,x,$)}return a})}function Nb(o,a){return function(h,x){if(h==null)return h;if(!pn(h))return o(h,x);for(var C=h.length,$=a?C:-1,P=tt(h);(a?$--:++$<C)&&x(P[$],$,P)!==!1;);return h}}function Rb(o){return function(a,h,x){for(var C=-1,$=tt(a),P=x(a),F=P.length;F--;){var H=P[o?F:++C];if(h($[H],H,$)===!1)break}return a}}function RP(o,a,h){var x=a&E,C=aa(o);function $(){var P=this&&this!==Ft&&this instanceof $?C:o;return P.apply(x?h:this,arguments)}return $}function Lb(o){return function(a){a=Qe(a);var h=Ko(a)?ur(a):n,x=h?h[0]:a.charAt(0),C=h?Ti(h,1).join(""):a.slice(1);return x[o]()+C}}function os(o){return function(a){return np(N_(P_(a).replace(TD,"")),o,"")}}function aa(o){return function(){var a=arguments;switch(a.length){case 0:return new o;case 1:return new o(a[0]);case 2:return new o(a[0],a[1]);case 3:return new o(a[0],a[1],a[2]);case 4:return new o(a[0],a[1],a[2],a[3]);case 5:return new o(a[0],a[1],a[2],a[3],a[4]);case 6:return new o(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new o(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var h=rs(o.prototype),x=o.apply(h,a);return dt(x)?x:h}}function LP(o,a,h){var x=aa(o);function C(){for(var $=arguments.length,P=X($),F=$,H=ss(C);F--;)P[F]=arguments[F];var ee=$<3&&P[0]!==H&&P[$-1]!==H?[]:xi(P,H);if($-=ee.length,$<h)return zb(o,a,bc,C.placeholder,n,P,ee,n,n,h-$);var te=this&&this!==Ft&&this instanceof C?x:o;return Cn(te,this,P)}return C}function jb(o){return function(a,h,x){var C=tt(a);if(!pn(a)){var $=Se(h,3);a=Mt(a),h=function(F){return $(C[F],F,C)}}var P=o(a,h,x);return P>-1?C[$?a[P]:P]:n}}function kb(o){return Wr(function(a){var h=a.length,x=h,C=Wn.prototype.thru;for(o&&a.reverse();x--;){var $=a[x];if(typeof $!="function")throw new Vn(l);if(C&&!P&&Ec($)=="wrapper")var P=new Wn([],!0)}for(x=P?x:h;++x<h;){$=a[x];var F=Ec($),H=F=="wrapper"?Lp($):n;H&&Bp(H[0])&&H[1]==(N|S|I|D)&&!H[4].length&&H[9]==1?P=P[Ec(H[0])].apply(P,H[3]):P=$.length==1&&Bp($)?P[F]():P.thru($)}return function(){var ee=arguments,te=ee[0];if(P&&ee.length==1&&De(te))return P.plant(te).value();for(var ie=0,me=h?a[ie].apply(this,ee):te;++ie<h;)me=a[ie].call(this,me);return me}})}function bc(o,a,h,x,C,$,P,F,H,ee){var te=a&N,ie=a&E,me=a&y,Ce=a&(S|O),Ie=a&k,Le=me?n:aa(o);function Ae(){for(var ke=arguments.length,ze=X(ke),An=ke;An--;)ze[An]=arguments[An];if(Ce)var rn=ss(Ae),On=YD(ze,rn);if(x&&(ze=Mb(ze,x,C,Ce)),$&&(ze=Pb(ze,$,P,Ce)),ke-=On,Ce&&ke<ee){var wt=xi(ze,rn);return zb(o,a,bc,Ae.placeholder,h,ze,wt,F,H,ee-ke)}var hr=ie?h:this,Xr=me?hr[o]:o;return ke=ze.length,F?ze=nN(ze,F):Ie&&ke>1&&ze.reverse(),te&&H<ke&&(ze.length=H),this&&this!==Ft&&this instanceof Ae&&(Xr=Le||aa(Xr)),Xr.apply(hr,ze)}return Ae}function Fb(o,a){return function(h,x){return dP(h,o,a(x),{})}}function _c(o,a){return function(h,x){var C;if(h===n&&x===n)return a;if(h!==n&&(C=h),x!==n){if(C===n)return x;typeof h=="string"||typeof x=="string"?(h=Sn(h),x=Sn(x)):(h=Cb(h),x=Cb(x)),C=o(h,x)}return C}}function Mp(o){return Wr(function(a){return a=ot(a,Tn(Se())),je(function(h){var x=this;return o(a,function(C){return Cn(C,x,h)})})})}function xc(o,a){a=a===n?" ":Sn(a);var h=a.length;if(h<2)return h?Tp(a,o):a;var x=Tp(a,sc(o/Qo(a)));return Ko(a)?Ti(ur(x),0,o).join(""):x.slice(0,o)}function jP(o,a,h,x){var C=a&E,$=aa(o);function P(){for(var F=-1,H=arguments.length,ee=-1,te=x.length,ie=X(te+H),me=this&&this!==Ft&&this instanceof P?$:o;++ee<te;)ie[ee]=x[ee];for(;H--;)ie[ee++]=arguments[++F];return Cn(me,C?h:this,ie)}return P}function Bb(o){return function(a,h,x){return x&&typeof x!="number"&&nn(a,h,x)&&(h=x=n),a=Zr(a),h===n?(h=a,a=0):h=Zr(h),x=x===n?a<h?1:-1:Zr(x),EP(a,h,x,o)}}function wc(o){return function(a,h){return typeof a=="string"&&typeof h=="string"||(a=Xn(a),h=Xn(h)),o(a,h)}}function zb(o,a,h,x,C,$,P,F,H,ee){var te=a&S,ie=te?P:n,me=te?n:P,Ce=te?$:n,Ie=te?n:$;a|=te?I:M,a&=~(te?M:I),a&T||(a&=-4);var Le=[o,a,C,Ce,ie,Ie,me,F,H,ee],Ae=h.apply(n,Le);return Bp(o)&&Jb(Ae,Le),Ae.placeholder=x,e_(Ae,o,a)}function Pp(o){var a=It[o];return function(h,x){if(h=Xn(h),x=x==null?0:Ht(Ne(x),292),x&&eb(h)){var C=(Qe(h)+"e").split("e"),$=a(C[0]+"e"+(+C[1]+x));return C=(Qe($)+"e").split("e"),+(C[0]+"e"+(+C[1]-x))}return a(h)}}var kP=ts&&1/Xl(new ts([,-0]))[1]==W?function(o){return new ts(o)}:t1;function Gb(o){return function(a){var h=Ut(a);return h==Ke?cp(a):h==Ct?tM(a):qD(a,o(a))}}function Vr(o,a,h,x,C,$,P,F){var H=a&y;if(!H&&typeof o!="function")throw new Vn(l);var ee=x?x.length:0;if(ee||(a&=-97,x=C=n),P=P===n?P:At(Ne(P),0),F=F===n?F:Ne(F),ee-=C?C.length:0,a&M){var te=x,ie=C;x=C=n}var me=H?n:Lp(o),Ce=[o,a,h,x,C,te,ie,$,P,F];if(me&&JP(Ce,me),o=Ce[0],a=Ce[1],h=Ce[2],x=Ce[3],C=Ce[4],F=Ce[9]=Ce[9]===n?H?0:o.length:At(Ce[9]-ee,0),!F&&a&(S|O)&&(a&=-25),!a||a==E)var Ie=RP(o,a,h);else a==S||a==O?Ie=LP(o,a,F):(a==I||a==(E|I))&&!C.length?Ie=jP(o,a,h,x):Ie=bc.apply(n,Ce);var Le=me?Eb:Jb;return e_(Le(Ie,Ce),o,a)}function Hb(o,a,h,x){return o===n||pr(o,es[h])&&!Je.call(x,h)?a:o}function Ub(o,a,h,x,C,$){return dt(o)&&dt(a)&&($.set(a,o),hc(o,a,n,Ub,$),$.delete(a)),o}function FP(o){return da(o)?n:o}function Vb(o,a,h,x,C,$){var P=h&w,F=o.length,H=a.length;if(F!=H&&!(P&&H>F))return!1;var ee=$.get(o),te=$.get(a);if(ee&&te)return ee==a&&te==o;var ie=-1,me=!0,Ce=h&_?new lo:n;for($.set(o,a),$.set(a,o);++ie<F;){var Ie=o[ie],Le=a[ie];if(x)var Ae=P?x(Le,Ie,ie,a,o,$):x(Ie,Le,ie,o,a,$);if(Ae!==n){if(Ae)continue;me=!1;break}if(Ce){if(!rp(a,function(ke,ze){if(!Xs(Ce,ze)&&(Ie===ke||C(Ie,ke,h,x,$)))return Ce.push(ze)})){me=!1;break}}else if(!(Ie===Le||C(Ie,Le,h,x,$))){me=!1;break}}return $.delete(o),$.delete(a),me}function BP(o,a,h,x,C,$,P){switch(h){case Kt:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case dn:return!(o.byteLength!=a.byteLength||!$(new nc(o),new nc(a)));case ge:case be:case yt:return pr(+o,+a);case We:return o.name==a.name&&o.message==a.message;case pt:case Bn:return o==a+"";case Ke:var F=cp;case Ct:var H=x&w;if(F||(F=Xl),o.size!=a.size&&!H)return!1;var ee=P.get(o);if(ee)return ee==a;x|=_,P.set(o,a);var te=Vb(F(o),F(a),x,C,$,P);return P.delete(o),te;case Er:if(ta)return ta.call(o)==ta.call(a)}return!1}function zP(o,a,h,x,C,$){var P=h&w,F=Np(o),H=F.length,ee=Np(a),te=ee.length;if(H!=te&&!P)return!1;for(var ie=H;ie--;){var me=F[ie];if(!(P?me in a:Je.call(a,me)))return!1}var Ce=$.get(o),Ie=$.get(a);if(Ce&&Ie)return Ce==a&&Ie==o;var Le=!0;$.set(o,a),$.set(a,o);for(var Ae=P;++ie<H;){me=F[ie];var ke=o[me],ze=a[me];if(x)var An=P?x(ze,ke,me,a,o,$):x(ke,ze,me,o,a,$);if(!(An===n?ke===ze||C(ke,ze,h,x,$):An)){Le=!1;break}Ae||(Ae=me=="constructor")}if(Le&&!Ae){var rn=o.constructor,On=a.constructor;rn!=On&&"constructor"in o&&"constructor"in a&&!(typeof rn=="function"&&rn instanceof rn&&typeof On=="function"&&On instanceof On)&&(Le=!1)}return $.delete(o),$.delete(a),Le}function Wr(o){return Gp(Kb(o,n,s_),o+"")}function Np(o){return ub(o,Mt,kp)}function Rp(o){return ub(o,hn,Wb)}var Lp=lc?function(o){return lc.get(o)}:t1;function Ec(o){for(var a=o.name+"",h=ns[a],x=Je.call(ns,a)?h.length:0;x--;){var C=h[x],$=C.func;if($==null||$==o)return C.name}return a}function ss(o){var a=Je.call(A,"placeholder")?A:o;return a.placeholder}function Se(){var o=A.iteratee||Jp;return o=o===Jp?hb:o,arguments.length?o(arguments[0],arguments[1]):o}function yc(o,a){var h=o.__data__;return ZP(a)?h[typeof a=="string"?"string":"hash"]:h.map}function jp(o){for(var a=Mt(o),h=a.length;h--;){var x=a[h],C=o[x];a[h]=[x,C,Zb(C)]}return a}function fo(o,a){var h=QD(o,a);return pb(h)?h:n}function GP(o){var a=Je.call(o,so),h=o[so];try{o[so]=n;var x=!0}catch{}var C=ec.call(o);return x&&(a?o[so]=h:delete o[so]),C}var kp=up?function(o){return o==null?[]:(o=tt(o),bi(up(o),function(a){return Q5.call(o,a)}))}:n1,Wb=up?function(o){for(var a=[];o;)_i(a,kp(o)),o=rc(o);return a}:n1,Ut=tn;(fp&&Ut(new fp(new ArrayBuffer(1)))!=Kt||Qs&&Ut(new Qs)!=Ke||pp&&Ut(pp.resolve())!=Fn||ts&&Ut(new ts)!=Ct||Js&&Ut(new Js)!=kr)&&(Ut=function(o){var a=tn(o),h=a==Rt?o.constructor:n,x=h?po(h):"";if(x)switch(x){case CM:return Kt;case TM:return Ke;case SM:return Fn;case IM:return Ct;case AM:return kr}return a});function HP(o,a,h){for(var x=-1,C=h.length;++x<C;){var $=h[x],P=$.size;switch($.type){case"drop":o+=P;break;case"dropRight":a-=P;break;case"take":a=Ht(a,o+P);break;case"takeRight":o=At(o,a-P);break}}return{start:o,end:a}}function UP(o){var a=o.match(Me);return a?a[1].split(Pe):[]}function qb(o,a,h){a=Ci(a,o);for(var x=-1,C=a.length,$=!1;++x<C;){var P=Ar(a[x]);if(!($=o!=null&&h(o,P)))break;o=o[P]}return $||++x!=C?$:(C=o==null?0:o.length,!!C&&$c(C)&&qr(P,C)&&(De(o)||ho(o)))}function VP(o){var a=o.length,h=new o.constructor(a);return a&&typeof o[0]=="string"&&Je.call(o,"index")&&(h.index=o.index,h.input=o.input),h}function Yb(o){return typeof o.constructor=="function"&&!la(o)?rs(rc(o)):{}}function WP(o,a,h){var x=o.constructor;switch(a){case dn:return Dp(o);case ge:case be:return new x(+o);case Kt:return OP(o,h);case lr:case mi:case un:case yr:case vi:case zn:case Cr:case Fr:case Br:return $b(o,h);case Ke:return new x;case yt:case Bn:return new x(o);case pt:return $P(o);case Ct:return new x;case Er:return DP(o)}}function qP(o,a){var h=a.length;if(!h)return o;var x=h-1;return a[x]=(h>1?"& ":"")+a[x],a=a.join(h>2?", ":" "),o.replace(Be,`{
|
|
83
83
|
/* [wrapped with `+a+`] */
|
|
84
|
-
`)}function YP(o){return De(o)||ho(o)||!!(eb&&o&&o[eb])}function qr(o,a){var h=typeof o;return a=a??J,!!a&&(h=="number"||h!="symbol"&&sD.test(o))&&o>-1&&o%1==0&&o<a}function nn(o,a,h){if(!ct(h))return!1;var x=typeof a;return(x=="number"?pn(h)&&qr(a,h.length):x=="string"&&a in h)?pr(h[a],o):!1}function B1(o,a){if(De(o))return!1;var h=typeof o;return h=="number"||h=="symbol"||h=="boolean"||o==null||In(o)?!0:en.test(o)||!Tr.test(o)||a!=null&&o in tt(a)}function ZP(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}function z1(o){var a=yc(o),h=A[a];if(typeof h!="function"||!(a in Fe.prototype))return!1;if(o===h)return!0;var x=j1(h);return!!x&&o===x[0]}function XP(o){return!!X5&&X5 in o}var KP=Jl?Yr:ip;function la(o){var a=o&&o.constructor,h=typeof a=="function"&&a.prototype||es;return o===h}function Xb(o){return o===o&&!ct(o)}function Kb(o,a){return function(h){return h==null?!1:h[o]===a&&(a!==n||o in tt(h))}}function QP(o){var a=Oc(o,function(x){return h.size===f&&h.clear(),x}),h=a.cache;return a}function JP(o,a){var h=o[1],x=a[1],C=h|x,$=C<(w|y|N),P=x==N&&h==S||x==N&&h==D&&o[7].length<=a[8]||x==(N|D)&&a[7].length<=a[8]&&h==S;if(!($||P))return o;x&w&&(o[2]=a[2],C|=h&w?0:T);var F=a[3];if(F){var H=o[3];o[3]=H?Pb(H,F,a[4]):F,o[4]=H?xi(o[3],m):a[4]}return F=a[5],F&&(H=o[5],o[5]=H?Nb(H,F,a[6]):F,o[6]=H?xi(o[5],m):a[6]),F=a[7],F&&(o[7]=F),x&N&&(o[8]=o[8]==null?a[8]:Ht(o[8],a[8])),o[9]==null&&(o[9]=a[9]),o[0]=a[0],o[1]=C,o}function eN(o){var a=[];if(o!=null)for(var h in tt(o))a.push(h);return a}function tN(o){return tc.call(o)}function Qb(o,a,h){return a=At(a===n?o.length-1:a,0),function(){for(var x=arguments,C=-1,$=At(x.length-a,0),P=Z($);++C<$;)P[C]=x[a+C];C=-1;for(var F=Z(a+1);++C<a;)F[C]=x[C];return F[a]=h(P),Cn(o,this,F)}}function Jb(o,a){return a.length<2?o:uo(o,qn(a,0,-1))}function nN(o,a){for(var h=o.length,x=Ht(a.length,h),C=fn(o);x--;){var $=a[x];o[x]=qr($,h)?C[$]:n}return o}function G1(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var e_=n_(yb),ca=vM||function(o,a){return Ft.setTimeout(o,a)},H1=n_(TP);function t_(o,a,h){var x=a+"";return H1(o,qP(x,rN(UP(x),h)))}function n_(o){var a=0,h=0;return function(){var x=EM(),C=X-(x-h);if(h=x,C>0){if(++a>=G)return arguments[0]}else a=0;return o.apply(n,arguments)}}function Tc(o,a){var h=-1,x=o.length,C=x-1;for(a=a===n?x:a;++h<a;){var $=T1(h,C),P=o[$];o[$]=o[h],o[h]=P}return o.length=a,o}var r_=QP(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(j,function(h,x,C,$){a.push(C?$.replace(pt,"$1"):x||h)}),a});function Ar(o){if(typeof o=="string"||In(o))return o;var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function po(o){if(o!=null){try{return ec.call(o)}catch{}try{return o+""}catch{}}return""}function rN(o,a){return Hn(pe,function(h){var x="_."+h[0];a&h[1]&&!Zl(o,x)&&o.push(x)}),o.sort()}function i_(o){if(o instanceof Fe)return o.clone();var a=new Vn(o.__wrapped__,o.__chain__);return a.__actions__=fn(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function iN(o,a,h){(h?nn(o,a,h):a===n)?a=1:a=At(Ne(a),0);var x=o==null?0:o.length;if(!x||a<1)return[];for(var C=0,$=0,P=Z(ac(x/a));C<x;)P[$++]=qn(o,C,C+=a);return P}function oN(o){for(var a=-1,h=o==null?0:o.length,x=0,C=[];++a<h;){var $=o[a];$&&(C[x++]=$)}return C}function sN(){var o=arguments.length;if(!o)return[];for(var a=Z(o-1),h=arguments[0],x=o;x--;)a[x-1]=arguments[x];return _i(De(h)?fn(h):[h],Bt(a,1))}var aN=je(function(o,a){return xt(o)?ra(o,Bt(a,1,xt,!0)):[]}),lN=je(function(o,a){var h=Yn(a);return xt(h)&&(h=n),xt(o)?ra(o,Bt(a,1,xt,!0),Se(h,2)):[]}),cN=je(function(o,a){var h=Yn(a);return xt(h)&&(h=n),xt(o)?ra(o,Bt(a,1,xt,!0),n,h):[]});function dN(o,a,h){var x=o==null?0:o.length;return x?(a=h||a===n?1:Ne(a),qn(o,a<0?0:a,x)):[]}function uN(o,a,h){var x=o==null?0:o.length;return x?(a=h||a===n?1:Ne(a),a=x-a,qn(o,0,a<0?0:a)):[]}function fN(o,a){return o&&o.length?vc(o,Se(a,3),!0,!0):[]}function pN(o,a){return o&&o.length?vc(o,Se(a,3),!0):[]}function hN(o,a,h,x){var C=o==null?0:o.length;return C?(h&&typeof h!="number"&&nn(o,a,h)&&(h=0,x=C),sP(o,a,h,x)):[]}function o_(o,a,h){var x=o==null?0:o.length;if(!x)return-1;var C=h==null?0:Ne(h);return C<0&&(C=At(x+C,0)),Xl(o,Se(a,3),C)}function s_(o,a,h){var x=o==null?0:o.length;if(!x)return-1;var C=x-1;return h!==n&&(C=Ne(h),C=h<0?At(x+C,0):Ht(C,x-1)),Xl(o,Se(a,3),C,!0)}function a_(o){var a=o==null?0:o.length;return a?Bt(o,1):[]}function gN(o){var a=o==null?0:o.length;return a?Bt(o,W):[]}function mN(o,a){var h=o==null?0:o.length;return h?(a=a===n?1:Ne(a),Bt(o,a)):[]}function vN(o){for(var a=-1,h=o==null?0:o.length,x={};++a<h;){var C=o[a];x[C[0]]=C[1]}return x}function l_(o){return o&&o.length?o[0]:n}function bN(o,a,h){var x=o==null?0:o.length;if(!x)return-1;var C=h==null?0:Ne(h);return C<0&&(C=At(x+C,0)),Xo(o,a,C)}function _N(o){var a=o==null?0:o.length;return a?qn(o,0,-1):[]}var xN=je(function(o){var a=ot(o,$1);return a.length&&a[0]===o[0]?x1(a):[]}),EN=je(function(o){var a=Yn(o),h=ot(o,$1);return a===Yn(h)?a=n:h.pop(),h.length&&h[0]===o[0]?x1(h,Se(a,2)):[]}),wN=je(function(o){var a=Yn(o),h=ot(o,$1);return a=typeof a=="function"?a:n,a&&h.pop(),h.length&&h[0]===o[0]?x1(h,n,a):[]});function yN(o,a){return o==null?"":_M.call(o,a)}function Yn(o){var a=o==null?0:o.length;return a?o[a-1]:n}function CN(o,a,h){var x=o==null?0:o.length;if(!x)return-1;var C=x;return h!==n&&(C=Ne(h),C=C<0?At(x+C,0):Ht(C,x-1)),a===a?rM(o,a,C):Xl(o,G5,C,!0)}function TN(o,a){return o&&o.length?_b(o,Ne(a)):n}var SN=je(c_);function c_(o,a){return o&&o.length&&a&&a.length?C1(o,a):o}function IN(o,a,h){return o&&o.length&&a&&a.length?C1(o,a,Se(h,2)):o}function AN(o,a,h){return o&&o.length&&a&&a.length?C1(o,a,n,h):o}var ON=Wr(function(o,a){var h=o==null?0:o.length,x=m1(o,a);return wb(o,ot(a,function(C){return qr(C,h)?+C:C}).sort(Mb)),x});function $N(o,a){var h=[];if(!(o&&o.length))return h;var x=-1,C=[],$=o.length;for(a=Se(a,3);++x<$;){var P=o[x];a(P,x,o)&&(h.push(P),C.push(x))}return wb(o,C),h}function U1(o){return o==null?o:yM.call(o)}function DN(o,a,h){var x=o==null?0:o.length;return x?(h&&typeof h!="number"&&nn(o,a,h)?(a=0,h=x):(a=a==null?0:Ne(a),h=h===n?x:Ne(h)),qn(o,a,h)):[]}function MN(o,a){return mc(o,a)}function PN(o,a,h){return I1(o,a,Se(h,2))}function NN(o,a){var h=o==null?0:o.length;if(h){var x=mc(o,a);if(x<h&&pr(o[x],a))return x}return-1}function RN(o,a){return mc(o,a,!0)}function LN(o,a,h){return I1(o,a,Se(h,2),!0)}function jN(o,a){var h=o==null?0:o.length;if(h){var x=mc(o,a,!0)-1;if(pr(o[x],a))return x}return-1}function kN(o){return o&&o.length?Cb(o):[]}function FN(o,a){return o&&o.length?Cb(o,Se(a,2)):[]}function BN(o){var a=o==null?0:o.length;return a?qn(o,1,a):[]}function zN(o,a,h){return o&&o.length?(a=h||a===n?1:Ne(a),qn(o,0,a<0?0:a)):[]}function GN(o,a,h){var x=o==null?0:o.length;return x?(a=h||a===n?1:Ne(a),a=x-a,qn(o,a<0?0:a,x)):[]}function HN(o,a){return o&&o.length?vc(o,Se(a,3),!1,!0):[]}function UN(o,a){return o&&o.length?vc(o,Se(a,3)):[]}var VN=je(function(o){return yi(Bt(o,1,xt,!0))}),WN=je(function(o){var a=Yn(o);return xt(a)&&(a=n),yi(Bt(o,1,xt,!0),Se(a,2))}),qN=je(function(o){var a=Yn(o);return a=typeof a=="function"?a:n,yi(Bt(o,1,xt,!0),n,a)});function YN(o){return o&&o.length?yi(o):[]}function ZN(o,a){return o&&o.length?yi(o,Se(a,2)):[]}function XN(o,a){return a=typeof a=="function"?a:n,o&&o.length?yi(o,n,a):[]}function V1(o){if(!(o&&o.length))return[];var a=0;return o=bi(o,function(h){if(xt(h))return a=At(h.length,a),!0}),l1(a,function(h){return ot(o,o1(h))})}function d_(o,a){if(!(o&&o.length))return[];var h=V1(o);return a==null?h:ot(h,function(x){return Cn(a,n,x)})}var KN=je(function(o,a){return xt(o)?ra(o,a):[]}),QN=je(function(o){return O1(bi(o,xt))}),JN=je(function(o){var a=Yn(o);return xt(a)&&(a=n),O1(bi(o,xt),Se(a,2))}),eR=je(function(o){var a=Yn(o);return a=typeof a=="function"?a:n,O1(bi(o,xt),n,a)}),tR=je(V1);function nR(o,a){return Ab(o||[],a||[],na)}function rR(o,a){return Ab(o||[],a||[],sa)}var iR=je(function(o){var a=o.length,h=a>1?o[a-1]:n;return h=typeof h=="function"?(o.pop(),h):n,d_(o,h)});function u_(o){var a=A(o);return a.__chain__=!0,a}function oR(o,a){return a(o),o}function Sc(o,a){return a(o)}var sR=Wr(function(o){var a=o.length,h=a?o[0]:0,x=this.__wrapped__,C=function($){return m1($,o)};return a>1||this.__actions__.length||!(x instanceof Fe)||!qr(h)?this.thru(C):(x=x.slice(h,+h+(a?1:0)),x.__actions__.push({func:Sc,args:[C],thisArg:n}),new Vn(x,this.__chain__).thru(function($){return a&&!$.length&&$.push(n),$}))});function aR(){return u_(this)}function lR(){return new Vn(this.value(),this.__chain__)}function cR(){this.__values__===n&&(this.__values__=T_(this.value()));var o=this.__index__>=this.__values__.length,a=o?n:this.__values__[this.__index__++];return{done:o,value:a}}function dR(){return this}function uR(o){for(var a,h=this;h instanceof uc;){var x=i_(h);x.__index__=0,x.__values__=n,a?C.__wrapped__=x:a=x;var C=x;h=h.__wrapped__}return C.__wrapped__=o,a}function fR(){var o=this.__wrapped__;if(o instanceof Fe){var a=o;return this.__actions__.length&&(a=new Fe(this)),a=a.reverse(),a.__actions__.push({func:Sc,args:[U1],thisArg:n}),new Vn(a,this.__chain__)}return this.thru(U1)}function pR(){return Ib(this.__wrapped__,this.__actions__)}var hR=bc(function(o,a,h){Je.call(o,h)?++o[h]:Ur(o,h,1)});function gR(o,a,h){var x=De(o)?B5:oP;return h&&nn(o,a,h)&&(a=n),x(o,Se(a,3))}function mR(o,a){var h=De(o)?bi:db;return h(o,Se(a,3))}var vR=kb(o_),bR=kb(s_);function _R(o,a){return Bt(Ic(o,a),1)}function xR(o,a){return Bt(Ic(o,a),W)}function ER(o,a,h){return h=h===n?1:Ne(h),Bt(Ic(o,a),h)}function f_(o,a){var h=De(o)?Hn:wi;return h(o,Se(a,3))}function p_(o,a){var h=De(o)?BD:cb;return h(o,Se(a,3))}var wR=bc(function(o,a,h){Je.call(o,h)?o[h].push(a):Ur(o,h,[a])});function yR(o,a,h,x){o=pn(o)?o:ls(o),h=h&&!x?Ne(h):0;var C=o.length;return h<0&&(h=At(C+h,0)),Mc(o)?h<=C&&o.indexOf(a,h)>-1:!!C&&Xo(o,a,h)>-1}var CR=je(function(o,a,h){var x=-1,C=typeof a=="function",$=pn(o)?Z(o.length):[];return wi(o,function(P){$[++x]=C?Cn(a,P,h):ia(P,a,h)}),$}),TR=bc(function(o,a,h){Ur(o,h,a)});function Ic(o,a){var h=De(o)?ot:mb;return h(o,Se(a,3))}function SR(o,a,h,x){return o==null?[]:(De(a)||(a=a==null?[]:[a]),h=x?n:h,De(h)||(h=h==null?[]:[h]),xb(o,a,h))}var IR=bc(function(o,a,h){o[h?0:1].push(a)},function(){return[[],[]]});function AR(o,a,h){var x=De(o)?r1:U5,C=arguments.length<3;return x(o,Se(a,4),h,C,wi)}function OR(o,a,h){var x=De(o)?zD:U5,C=arguments.length<3;return x(o,Se(a,4),h,C,cb)}function $R(o,a){var h=De(o)?bi:db;return h(o,$c(Se(a,3)))}function DR(o){var a=De(o)?ob:yP;return a(o)}function MR(o,a,h){(h?nn(o,a,h):a===n)?a=1:a=Ne(a);var x=De(o)?eP:CP;return x(o,a)}function PR(o){var a=De(o)?tP:SP;return a(o)}function NR(o){if(o==null)return 0;if(pn(o))return Mc(o)?Qo(o):o.length;var a=Ut(o);return a==Ke||a==Ct?o.size:w1(o).length}function RR(o,a,h){var x=De(o)?i1:IP;return h&&nn(o,a,h)&&(a=n),x(o,Se(a,3))}var LR=je(function(o,a){if(o==null)return[];var h=a.length;return h>1&&nn(o,a[0],a[1])?a=[]:h>2&&nn(a[0],a[1],a[2])&&(a=[a[0]]),xb(o,Bt(a,1),[])}),Ac=mM||function(){return Ft.Date.now()};function jR(o,a){if(typeof a!="function")throw new Un(l);return o=Ne(o),function(){if(--o<1)return a.apply(this,arguments)}}function h_(o,a,h){return a=h?n:a,a=o&&a==null?o.length:a,Vr(o,N,n,n,n,n,a)}function g_(o,a){var h;if(typeof a!="function")throw new Un(l);return o=Ne(o),function(){return--o>0&&(h=a.apply(this,arguments)),o<=1&&(a=n),h}}var W1=je(function(o,a,h){var x=w;if(h.length){var C=xi(h,ss(W1));x|=I}return Vr(o,x,a,h,C)}),m_=je(function(o,a,h){var x=w|y;if(h.length){var C=xi(h,ss(m_));x|=I}return Vr(a,x,o,h,C)});function v_(o,a,h){a=h?n:a;var x=Vr(o,S,n,n,n,n,n,a);return x.placeholder=v_.placeholder,x}function b_(o,a,h){a=h?n:a;var x=Vr(o,O,n,n,n,n,n,a);return x.placeholder=b_.placeholder,x}function __(o,a,h){var x,C,$,P,F,H,ee=0,te=!1,ie=!1,me=!0;if(typeof o!="function")throw new Un(l);a=Zn(a)||0,ct(h)&&(te=!!h.leading,ie="maxWait"in h,$=ie?At(Zn(h.maxWait)||0,a):$,me="trailing"in h?!!h.trailing:me);function Ce(Et){var hr=x,Xr=C;return x=C=n,ee=Et,P=o.apply(Xr,hr),P}function Ie(Et){return ee=Et,F=ca(ke,a),te?Ce(Et):P}function Le(Et){var hr=Et-H,Xr=Et-ee,k_=a-hr;return ie?Ht(k_,$-Xr):k_}function Ae(Et){var hr=Et-H,Xr=Et-ee;return H===n||hr>=a||hr<0||ie&&Xr>=$}function ke(){var Et=Ac();if(Ae(Et))return ze(Et);F=ca(ke,Le(Et))}function ze(Et){return F=n,me&&x?Ce(Et):(x=C=n,P)}function An(){F!==n&&Ob(F),ee=0,x=H=C=F=n}function rn(){return F===n?P:ze(Ac())}function On(){var Et=Ac(),hr=Ae(Et);if(x=arguments,C=this,H=Et,hr){if(F===n)return Ie(H);if(ie)return Ob(F),F=ca(ke,a),Ce(H)}return F===n&&(F=ca(ke,a)),P}return On.cancel=An,On.flush=rn,On}var kR=je(function(o,a){return lb(o,1,a)}),FR=je(function(o,a,h){return lb(o,Zn(a)||0,h)});function BR(o){return Vr(o,k)}function Oc(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new Un(l);var h=function(){var x=arguments,C=a?a.apply(this,x):x[0],$=h.cache;if($.has(C))return $.get(C);var P=o.apply(this,x);return h.cache=$.set(C,P)||$,P};return h.cache=new(Oc.Cache||Hr),h}Oc.Cache=Hr;function $c(o){if(typeof o!="function")throw new Un(l);return function(){var a=arguments;switch(a.length){case 0:return!o.call(this);case 1:return!o.call(this,a[0]);case 2:return!o.call(this,a[0],a[1]);case 3:return!o.call(this,a[0],a[1],a[2])}return!o.apply(this,a)}}function zR(o){return g_(2,o)}var GR=AP(function(o,a){a=a.length==1&&De(a[0])?ot(a[0],Tn(Se())):ot(Bt(a,1),Tn(Se()));var h=a.length;return je(function(x){for(var C=-1,$=Ht(x.length,h);++C<$;)x[C]=a[C].call(this,x[C]);return Cn(o,this,x)})}),q1=je(function(o,a){var h=xi(a,ss(q1));return Vr(o,I,n,a,h)}),x_=je(function(o,a){var h=xi(a,ss(x_));return Vr(o,M,n,a,h)}),HR=Wr(function(o,a){return Vr(o,D,n,n,n,a)});function UR(o,a){if(typeof o!="function")throw new Un(l);return a=a===n?a:Ne(a),je(o,a)}function VR(o,a){if(typeof o!="function")throw new Un(l);return a=a==null?0:At(Ne(a),0),je(function(h){var x=h[a],C=Ti(h,0,a);return x&&_i(C,x),Cn(o,this,C)})}function WR(o,a,h){var x=!0,C=!0;if(typeof o!="function")throw new Un(l);return ct(h)&&(x="leading"in h?!!h.leading:x,C="trailing"in h?!!h.trailing:C),__(o,a,{leading:x,maxWait:a,trailing:C})}function qR(o){return h_(o,1)}function YR(o,a){return q1(D1(a),o)}function ZR(){if(!arguments.length)return[];var o=arguments[0];return De(o)?o:[o]}function XR(o){return Wn(o,b)}function KR(o,a){return a=typeof a=="function"?a:n,Wn(o,b,a)}function QR(o){return Wn(o,g|b)}function JR(o,a){return a=typeof a=="function"?a:n,Wn(o,g|b,a)}function eL(o,a){return a==null||ab(o,a,Mt(a))}function pr(o,a){return o===a||o!==o&&a!==a}var tL=wc(_1),nL=wc(function(o,a){return o>=a}),ho=pb(function(){return arguments}())?pb:function(o){return ht(o)&&Je.call(o,"callee")&&!J5.call(o,"callee")},De=Z.isArray,rL=N5?Tn(N5):uP;function pn(o){return o!=null&&Dc(o.length)&&!Yr(o)}function xt(o){return ht(o)&&pn(o)}function iL(o){return o===!0||o===!1||ht(o)&&tn(o)==ge}var Si=bM||ip,oL=R5?Tn(R5):fP;function sL(o){return ht(o)&&o.nodeType===1&&!da(o)}function aL(o){if(o==null)return!0;if(pn(o)&&(De(o)||typeof o=="string"||typeof o.splice=="function"||Si(o)||as(o)||ho(o)))return!o.length;var a=Ut(o);if(a==Ke||a==Ct)return!o.size;if(la(o))return!w1(o).length;for(var h in o)if(Je.call(o,h))return!1;return!0}function lL(o,a){return oa(o,a)}function cL(o,a,h){h=typeof h=="function"?h:n;var x=h?h(o,a):n;return x===n?oa(o,a,n,h):!!x}function Y1(o){if(!ht(o))return!1;var a=tn(o);return a==We||a==he||typeof o.message=="string"&&typeof o.name=="string"&&!da(o)}function dL(o){return typeof o=="number"&&tb(o)}function Yr(o){if(!ct(o))return!1;var a=tn(o);return a==de||a==_t||a==le||a==jr}function E_(o){return typeof o=="number"&&o==Ne(o)}function Dc(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=J}function ct(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function ht(o){return o!=null&&typeof o=="object"}var w_=L5?Tn(L5):hP;function uL(o,a){return o===a||E1(o,a,k1(a))}function fL(o,a,h){return h=typeof h=="function"?h:n,E1(o,a,k1(a),h)}function pL(o){return y_(o)&&o!=+o}function hL(o){if(KP(o))throw new $e(s);return hb(o)}function gL(o){return o===null}function mL(o){return o==null}function y_(o){return typeof o=="number"||ht(o)&&tn(o)==yt}function da(o){if(!ht(o)||tn(o)!=Rt)return!1;var a=ic(o);if(a===null)return!0;var h=Je.call(a,"constructor")&&a.constructor;return typeof h=="function"&&h instanceof h&&ec.call(h)==fM}var Z1=j5?Tn(j5):gP;function vL(o){return E_(o)&&o>=-9007199254740991&&o<=J}var C_=k5?Tn(k5):mP;function Mc(o){return typeof o=="string"||!De(o)&&ht(o)&&tn(o)==Fn}function In(o){return typeof o=="symbol"||ht(o)&&tn(o)==wr}var as=F5?Tn(F5):vP;function bL(o){return o===n}function _L(o){return ht(o)&&Ut(o)==kr}function xL(o){return ht(o)&&tn(o)==qs}var EL=wc(y1),wL=wc(function(o,a){return o<=a});function T_(o){if(!o)return[];if(pn(o))return Mc(o)?ur(o):fn(o);if(Ks&&o[Ks])return eM(o[Ks]());var a=Ut(o),h=a==Ke?d1:a==Ct?Kl:ls;return h(o)}function Zr(o){if(!o)return o===0?o:0;if(o=Zn(o),o===W||o===-1/0){var a=o<0?-1:1;return a*q}return o===o?o:0}function Ne(o){var a=Zr(o),h=a%1;return a===a?h?a-h:a:0}function S_(o){return o?co(Ne(o),0,V):0}function Zn(o){if(typeof o=="number")return o;if(In(o))return U;if(ct(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=ct(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=V5(o);var h=dr.test(o);return h||oD.test(o)?jD(o.slice(2),h?2:8):Vl.test(o)?U:+o}function I_(o){return Ir(o,hn(o))}function yL(o){return o?co(Ne(o),-9007199254740991,J):o===0?o:0}function Qe(o){return o==null?"":Sn(o)}var CL=is(function(o,a){if(la(a)||pn(a)){Ir(a,Mt(a),o);return}for(var h in a)Je.call(a,h)&&na(o,h,a[h])}),A_=is(function(o,a){Ir(a,hn(a),o)}),Pc=is(function(o,a,h,x){Ir(a,hn(a),o,x)}),TL=is(function(o,a,h,x){Ir(a,Mt(a),o,x)}),SL=Wr(m1);function IL(o,a){var h=rs(o);return a==null?h:sb(h,a)}var AL=je(function(o,a){o=tt(o);var h=-1,x=a.length,C=x>2?a[2]:n;for(C&&nn(a[0],a[1],C)&&(x=1);++h<x;)for(var $=a[h],P=hn($),F=-1,H=P.length;++F<H;){var ee=P[F],te=o[ee];(te===n||pr(te,es[ee])&&!Je.call(o,ee))&&(o[ee]=$[ee])}return o}),OL=je(function(o){return o.push(n,Vb),Cn(O_,n,o)});function $L(o,a){return z5(o,Se(a,3),Sr)}function DL(o,a){return z5(o,Se(a,3),b1)}function ML(o,a){return o==null?o:v1(o,Se(a,3),hn)}function PL(o,a){return o==null?o:ub(o,Se(a,3),hn)}function NL(o,a){return o&&Sr(o,Se(a,3))}function RL(o,a){return o&&b1(o,Se(a,3))}function LL(o){return o==null?[]:hc(o,Mt(o))}function jL(o){return o==null?[]:hc(o,hn(o))}function X1(o,a,h){var x=o==null?n:uo(o,a);return x===n?h:x}function kL(o,a){return o!=null&&Yb(o,a,aP)}function K1(o,a){return o!=null&&Yb(o,a,lP)}var FL=Bb(function(o,a,h){a!=null&&typeof a.toString!="function"&&(a=tc.call(a)),o[a]=h},J1(gn)),BL=Bb(function(o,a,h){a!=null&&typeof a.toString!="function"&&(a=tc.call(a)),Je.call(o,a)?o[a].push(h):o[a]=[h]},Se),zL=je(ia);function Mt(o){return pn(o)?ib(o):w1(o)}function hn(o){return pn(o)?ib(o,!0):bP(o)}function GL(o,a){var h={};return a=Se(a,3),Sr(o,function(x,C,$){Ur(h,a(x,C,$),x)}),h}function HL(o,a){var h={};return a=Se(a,3),Sr(o,function(x,C,$){Ur(h,C,a(x,C,$))}),h}var UL=is(function(o,a,h){gc(o,a,h)}),O_=is(function(o,a,h,x){gc(o,a,h,x)}),VL=Wr(function(o,a){var h={};if(o==null)return h;var x=!1;a=ot(a,function($){return $=Ci($,o),x||(x=$.length>1),$}),Ir(o,L1(o),h),x&&(h=Wn(h,g|v|b,FP));for(var C=a.length;C--;)A1(h,a[C]);return h});function WL(o,a){return $_(o,$c(Se(a)))}var qL=Wr(function(o,a){return o==null?{}:xP(o,a)});function $_(o,a){if(o==null)return{};var h=ot(L1(o),function(x){return[x]});return a=Se(a),Eb(o,h,function(x,C){return a(x,C[0])})}function YL(o,a,h){a=Ci(a,o);var x=-1,C=a.length;for(C||(C=1,o=n);++x<C;){var $=o==null?n:o[Ar(a[x])];$===n&&(x=C,$=h),o=Yr($)?$.call(o):$}return o}function ZL(o,a,h){return o==null?o:sa(o,a,h)}function XL(o,a,h,x){return x=typeof x=="function"?x:n,o==null?o:sa(o,a,h,x)}var D_=Hb(Mt),M_=Hb(hn);function KL(o,a,h){var x=De(o),C=x||Si(o)||as(o);if(a=Se(a,4),h==null){var $=o&&o.constructor;C?h=x?new $:[]:ct(o)?h=Yr($)?rs(ic(o)):{}:h={}}return(C?Hn:Sr)(o,function(P,F,H){return a(h,P,F,H)}),h}function QL(o,a){return o==null?!0:A1(o,a)}function JL(o,a,h){return o==null?o:Sb(o,a,D1(h))}function ej(o,a,h,x){return x=typeof x=="function"?x:n,o==null?o:Sb(o,a,D1(h),x)}function ls(o){return o==null?[]:c1(o,Mt(o))}function tj(o){return o==null?[]:c1(o,hn(o))}function nj(o,a,h){return h===n&&(h=a,a=n),h!==n&&(h=Zn(h),h=h===h?h:0),a!==n&&(a=Zn(a),a=a===a?a:0),co(Zn(o),a,h)}function rj(o,a,h){return a=Zr(a),h===n?(h=a,a=0):h=Zr(h),o=Zn(o),cP(o,a,h)}function ij(o,a,h){if(h&&typeof h!="boolean"&&nn(o,a,h)&&(a=h=n),h===n&&(typeof a=="boolean"?(h=a,a=n):typeof o=="boolean"&&(h=o,o=n)),o===n&&a===n?(o=0,a=1):(o=Zr(o),a===n?(a=o,o=0):a=Zr(a)),o>a){var x=o;o=a,a=x}if(h||o%1||a%1){var C=nb();return Ht(o+C*(a-o+LD("1e-"+((C+"").length-1))),a)}return T1(o,a)}var oj=os(function(o,a,h){return a=a.toLowerCase(),o+(h?P_(a):a)});function P_(o){return Q1(Qe(o).toLowerCase())}function N_(o){return o=Qe(o),o&&o.replace(aD,ZD).replace(SD,"")}function sj(o,a,h){o=Qe(o),a=Sn(a);var x=o.length;h=h===n?x:co(Ne(h),0,x);var C=h;return h-=a.length,h>=0&&o.slice(h,C)==a}function aj(o){return o=Qe(o),o&&zn.test(o)?o.replace(St,XD):o}function lj(o){return o=Qe(o),o&&_e.test(o)?o.replace(se,"\\$&"):o}var cj=os(function(o,a,h){return o+(h?"-":"")+a.toLowerCase()}),dj=os(function(o,a,h){return o+(h?" ":"")+a.toLowerCase()}),uj=jb("toLowerCase");function fj(o,a,h){o=Qe(o),a=Ne(a);var x=a?Qo(o):0;if(!a||x>=a)return o;var C=(a-x)/2;return Ec(lc(C),h)+o+Ec(ac(C),h)}function pj(o,a,h){o=Qe(o),a=Ne(a);var x=a?Qo(o):0;return a&&x<a?o+Ec(a-x,h):o}function hj(o,a,h){o=Qe(o),a=Ne(a);var x=a?Qo(o):0;return a&&x<a?Ec(a-x,h)+o:o}function gj(o,a,h){return h||a==null?a=0:a&&(a=+a),wM(Qe(o).replace(Te,""),a||0)}function mj(o,a,h){return(h?nn(o,a,h):a===n)?a=1:a=Ne(a),S1(Qe(o),a)}function vj(){var o=arguments,a=Qe(o[0]);return o.length<3?a:a.replace(o[1],o[2])}var bj=os(function(o,a,h){return o+(h?"_":"")+a.toLowerCase()});function _j(o,a,h){return h&&typeof h!="number"&&nn(o,a,h)&&(a=h=n),h=h===n?V:h>>>0,h?(o=Qe(o),o&&(typeof a=="string"||a!=null&&!Z1(a))&&(a=Sn(a),!a&&Ko(o))?Ti(ur(o),0,h):o.split(a,h)):[]}var xj=os(function(o,a,h){return o+(h?" ":"")+Q1(a)});function Ej(o,a,h){return o=Qe(o),h=h==null?0:co(Ne(h),0,o.length),a=Sn(a),o.slice(h,h+a.length)==a}function wj(o,a,h){var x=A.templateSettings;h&&nn(o,a,h)&&(a=n),o=Qe(o),a=Pc({},a,x,Ub);var C=Pc({},a.imports,x.imports,Ub),$=Mt(C),P=c1(C,$),F,H,ee=0,te=a.interpolate||Wl,ie="__p += '",me=u1((a.escape||Wl).source+"|"+te.source+"|"+(te===Jt?cr:Wl).source+"|"+(a.evaluate||Wl).source+"|$","g"),Ce="//# sourceURL="+(Je.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++DD+"]")+`
|
|
84
|
+
`)}function YP(o){return De(o)||ho(o)||!!(J5&&o&&o[J5])}function qr(o,a){var h=typeof o;return a=a??J,!!a&&(h=="number"||h!="symbol"&&sD.test(o))&&o>-1&&o%1==0&&o<a}function nn(o,a,h){if(!dt(h))return!1;var x=typeof a;return(x=="number"?pn(h)&&qr(a,h.length):x=="string"&&a in h)?pr(h[a],o):!1}function Fp(o,a){if(De(o))return!1;var h=typeof o;return h=="number"||h=="symbol"||h=="boolean"||o==null||In(o)?!0:en.test(o)||!Tr.test(o)||a!=null&&o in tt(a)}function ZP(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}function Bp(o){var a=Ec(o),h=A[a];if(typeof h!="function"||!(a in Fe.prototype))return!1;if(o===h)return!0;var x=Lp(h);return!!x&&o===x[0]}function XP(o){return!!Z5&&Z5 in o}var KP=Ql?Yr:r1;function la(o){var a=o&&o.constructor,h=typeof a=="function"&&a.prototype||es;return o===h}function Zb(o){return o===o&&!dt(o)}function Xb(o,a){return function(h){return h==null?!1:h[o]===a&&(a!==n||o in tt(h))}}function QP(o){var a=Ac(o,function(x){return h.size===f&&h.clear(),x}),h=a.cache;return a}function JP(o,a){var h=o[1],x=a[1],C=h|x,$=C<(E|y|N),P=x==N&&h==S||x==N&&h==D&&o[7].length<=a[8]||x==(N|D)&&a[7].length<=a[8]&&h==S;if(!($||P))return o;x&E&&(o[2]=a[2],C|=h&E?0:T);var F=a[3];if(F){var H=o[3];o[3]=H?Mb(H,F,a[4]):F,o[4]=H?xi(o[3],m):a[4]}return F=a[5],F&&(H=o[5],o[5]=H?Pb(H,F,a[6]):F,o[6]=H?xi(o[5],m):a[6]),F=a[7],F&&(o[7]=F),x&N&&(o[8]=o[8]==null?a[8]:Ht(o[8],a[8])),o[9]==null&&(o[9]=a[9]),o[0]=a[0],o[1]=C,o}function eN(o){var a=[];if(o!=null)for(var h in tt(o))a.push(h);return a}function tN(o){return ec.call(o)}function Kb(o,a,h){return a=At(a===n?o.length-1:a,0),function(){for(var x=arguments,C=-1,$=At(x.length-a,0),P=X($);++C<$;)P[C]=x[a+C];C=-1;for(var F=X(a+1);++C<a;)F[C]=x[C];return F[a]=h(P),Cn(o,this,F)}}function Qb(o,a){return a.length<2?o:uo(o,Yn(a,0,-1))}function nN(o,a){for(var h=o.length,x=Ht(a.length,h),C=fn(o);x--;){var $=a[x];o[x]=qr($,h)?C[$]:n}return o}function zp(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var Jb=t_(Eb),ca=vM||function(o,a){return Ft.setTimeout(o,a)},Gp=t_(TP);function e_(o,a,h){var x=a+"";return Gp(o,qP(x,rN(UP(x),h)))}function t_(o){var a=0,h=0;return function(){var x=wM(),C=Z-(x-h);if(h=x,C>0){if(++a>=G)return arguments[0]}else a=0;return o.apply(n,arguments)}}function Cc(o,a){var h=-1,x=o.length,C=x-1;for(a=a===n?x:a;++h<a;){var $=Cp(h,C),P=o[$];o[$]=o[h],o[h]=P}return o.length=a,o}var n_=QP(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(j,function(h,x,C,$){a.push(C?$.replace(ht,"$1"):x||h)}),a});function Ar(o){if(typeof o=="string"||In(o))return o;var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function po(o){if(o!=null){try{return Jl.call(o)}catch{}try{return o+""}catch{}}return""}function rN(o,a){return Un(pe,function(h){var x="_."+h[0];a&h[1]&&!Yl(o,x)&&o.push(x)}),o.sort()}function r_(o){if(o instanceof Fe)return o.clone();var a=new Wn(o.__wrapped__,o.__chain__);return a.__actions__=fn(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function iN(o,a,h){(h?nn(o,a,h):a===n)?a=1:a=At(Ne(a),0);var x=o==null?0:o.length;if(!x||a<1)return[];for(var C=0,$=0,P=X(sc(x/a));C<x;)P[$++]=Yn(o,C,C+=a);return P}function oN(o){for(var a=-1,h=o==null?0:o.length,x=0,C=[];++a<h;){var $=o[a];$&&(C[x++]=$)}return C}function sN(){var o=arguments.length;if(!o)return[];for(var a=X(o-1),h=arguments[0],x=o;x--;)a[x-1]=arguments[x];return _i(De(h)?fn(h):[h],Bt(a,1))}var aN=je(function(o,a){return xt(o)?ra(o,Bt(a,1,xt,!0)):[]}),lN=je(function(o,a){var h=Zn(a);return xt(h)&&(h=n),xt(o)?ra(o,Bt(a,1,xt,!0),Se(h,2)):[]}),cN=je(function(o,a){var h=Zn(a);return xt(h)&&(h=n),xt(o)?ra(o,Bt(a,1,xt,!0),n,h):[]});function dN(o,a,h){var x=o==null?0:o.length;return x?(a=h||a===n?1:Ne(a),Yn(o,a<0?0:a,x)):[]}function uN(o,a,h){var x=o==null?0:o.length;return x?(a=h||a===n?1:Ne(a),a=x-a,Yn(o,0,a<0?0:a)):[]}function fN(o,a){return o&&o.length?mc(o,Se(a,3),!0,!0):[]}function pN(o,a){return o&&o.length?mc(o,Se(a,3),!0):[]}function hN(o,a,h,x){var C=o==null?0:o.length;return C?(h&&typeof h!="number"&&nn(o,a,h)&&(h=0,x=C),sP(o,a,h,x)):[]}function i_(o,a,h){var x=o==null?0:o.length;if(!x)return-1;var C=h==null?0:Ne(h);return C<0&&(C=At(x+C,0)),Zl(o,Se(a,3),C)}function o_(o,a,h){var x=o==null?0:o.length;if(!x)return-1;var C=x-1;return h!==n&&(C=Ne(h),C=h<0?At(x+C,0):Ht(C,x-1)),Zl(o,Se(a,3),C,!0)}function s_(o){var a=o==null?0:o.length;return a?Bt(o,1):[]}function gN(o){var a=o==null?0:o.length;return a?Bt(o,W):[]}function mN(o,a){var h=o==null?0:o.length;return h?(a=a===n?1:Ne(a),Bt(o,a)):[]}function vN(o){for(var a=-1,h=o==null?0:o.length,x={};++a<h;){var C=o[a];x[C[0]]=C[1]}return x}function a_(o){return o&&o.length?o[0]:n}function bN(o,a,h){var x=o==null?0:o.length;if(!x)return-1;var C=h==null?0:Ne(h);return C<0&&(C=At(x+C,0)),Xo(o,a,C)}function _N(o){var a=o==null?0:o.length;return a?Yn(o,0,-1):[]}var xN=je(function(o){var a=ot(o,Op);return a.length&&a[0]===o[0]?_p(a):[]}),wN=je(function(o){var a=Zn(o),h=ot(o,Op);return a===Zn(h)?a=n:h.pop(),h.length&&h[0]===o[0]?_p(h,Se(a,2)):[]}),EN=je(function(o){var a=Zn(o),h=ot(o,Op);return a=typeof a=="function"?a:n,a&&h.pop(),h.length&&h[0]===o[0]?_p(h,n,a):[]});function yN(o,a){return o==null?"":_M.call(o,a)}function Zn(o){var a=o==null?0:o.length;return a?o[a-1]:n}function CN(o,a,h){var x=o==null?0:o.length;if(!x)return-1;var C=x;return h!==n&&(C=Ne(h),C=C<0?At(x+C,0):Ht(C,x-1)),a===a?rM(o,a,C):Zl(o,z5,C,!0)}function TN(o,a){return o&&o.length?bb(o,Ne(a)):n}var SN=je(l_);function l_(o,a){return o&&o.length&&a&&a.length?yp(o,a):o}function IN(o,a,h){return o&&o.length&&a&&a.length?yp(o,a,Se(h,2)):o}function AN(o,a,h){return o&&o.length&&a&&a.length?yp(o,a,n,h):o}var ON=Wr(function(o,a){var h=o==null?0:o.length,x=gp(o,a);return wb(o,ot(a,function(C){return qr(C,h)?+C:C}).sort(Db)),x});function $N(o,a){var h=[];if(!(o&&o.length))return h;var x=-1,C=[],$=o.length;for(a=Se(a,3);++x<$;){var P=o[x];a(P,x,o)&&(h.push(P),C.push(x))}return wb(o,C),h}function Hp(o){return o==null?o:yM.call(o)}function DN(o,a,h){var x=o==null?0:o.length;return x?(h&&typeof h!="number"&&nn(o,a,h)?(a=0,h=x):(a=a==null?0:Ne(a),h=h===n?x:Ne(h)),Yn(o,a,h)):[]}function MN(o,a){return gc(o,a)}function PN(o,a,h){return Sp(o,a,Se(h,2))}function NN(o,a){var h=o==null?0:o.length;if(h){var x=gc(o,a);if(x<h&&pr(o[x],a))return x}return-1}function RN(o,a){return gc(o,a,!0)}function LN(o,a,h){return Sp(o,a,Se(h,2),!0)}function jN(o,a){var h=o==null?0:o.length;if(h){var x=gc(o,a,!0)-1;if(pr(o[x],a))return x}return-1}function kN(o){return o&&o.length?yb(o):[]}function FN(o,a){return o&&o.length?yb(o,Se(a,2)):[]}function BN(o){var a=o==null?0:o.length;return a?Yn(o,1,a):[]}function zN(o,a,h){return o&&o.length?(a=h||a===n?1:Ne(a),Yn(o,0,a<0?0:a)):[]}function GN(o,a,h){var x=o==null?0:o.length;return x?(a=h||a===n?1:Ne(a),a=x-a,Yn(o,a<0?0:a,x)):[]}function HN(o,a){return o&&o.length?mc(o,Se(a,3),!1,!0):[]}function UN(o,a){return o&&o.length?mc(o,Se(a,3)):[]}var VN=je(function(o){return yi(Bt(o,1,xt,!0))}),WN=je(function(o){var a=Zn(o);return xt(a)&&(a=n),yi(Bt(o,1,xt,!0),Se(a,2))}),qN=je(function(o){var a=Zn(o);return a=typeof a=="function"?a:n,yi(Bt(o,1,xt,!0),n,a)});function YN(o){return o&&o.length?yi(o):[]}function ZN(o,a){return o&&o.length?yi(o,Se(a,2)):[]}function XN(o,a){return a=typeof a=="function"?a:n,o&&o.length?yi(o,n,a):[]}function Up(o){if(!(o&&o.length))return[];var a=0;return o=bi(o,function(h){if(xt(h))return a=At(h.length,a),!0}),ap(a,function(h){return ot(o,ip(h))})}function c_(o,a){if(!(o&&o.length))return[];var h=Up(o);return a==null?h:ot(h,function(x){return Cn(a,n,x)})}var KN=je(function(o,a){return xt(o)?ra(o,a):[]}),QN=je(function(o){return Ap(bi(o,xt))}),JN=je(function(o){var a=Zn(o);return xt(a)&&(a=n),Ap(bi(o,xt),Se(a,2))}),eR=je(function(o){var a=Zn(o);return a=typeof a=="function"?a:n,Ap(bi(o,xt),n,a)}),tR=je(Up);function nR(o,a){return Ib(o||[],a||[],na)}function rR(o,a){return Ib(o||[],a||[],sa)}var iR=je(function(o){var a=o.length,h=a>1?o[a-1]:n;return h=typeof h=="function"?(o.pop(),h):n,c_(o,h)});function d_(o){var a=A(o);return a.__chain__=!0,a}function oR(o,a){return a(o),o}function Tc(o,a){return a(o)}var sR=Wr(function(o){var a=o.length,h=a?o[0]:0,x=this.__wrapped__,C=function($){return gp($,o)};return a>1||this.__actions__.length||!(x instanceof Fe)||!qr(h)?this.thru(C):(x=x.slice(h,+h+(a?1:0)),x.__actions__.push({func:Tc,args:[C],thisArg:n}),new Wn(x,this.__chain__).thru(function($){return a&&!$.length&&$.push(n),$}))});function aR(){return d_(this)}function lR(){return new Wn(this.value(),this.__chain__)}function cR(){this.__values__===n&&(this.__values__=C_(this.value()));var o=this.__index__>=this.__values__.length,a=o?n:this.__values__[this.__index__++];return{done:o,value:a}}function dR(){return this}function uR(o){for(var a,h=this;h instanceof dc;){var x=r_(h);x.__index__=0,x.__values__=n,a?C.__wrapped__=x:a=x;var C=x;h=h.__wrapped__}return C.__wrapped__=o,a}function fR(){var o=this.__wrapped__;if(o instanceof Fe){var a=o;return this.__actions__.length&&(a=new Fe(this)),a=a.reverse(),a.__actions__.push({func:Tc,args:[Hp],thisArg:n}),new Wn(a,this.__chain__)}return this.thru(Hp)}function pR(){return Sb(this.__wrapped__,this.__actions__)}var hR=vc(function(o,a,h){Je.call(o,h)?++o[h]:Ur(o,h,1)});function gR(o,a,h){var x=De(o)?F5:oP;return h&&nn(o,a,h)&&(a=n),x(o,Se(a,3))}function mR(o,a){var h=De(o)?bi:cb;return h(o,Se(a,3))}var vR=jb(i_),bR=jb(o_);function _R(o,a){return Bt(Sc(o,a),1)}function xR(o,a){return Bt(Sc(o,a),W)}function wR(o,a,h){return h=h===n?1:Ne(h),Bt(Sc(o,a),h)}function u_(o,a){var h=De(o)?Un:Ei;return h(o,Se(a,3))}function f_(o,a){var h=De(o)?BD:lb;return h(o,Se(a,3))}var ER=vc(function(o,a,h){Je.call(o,h)?o[h].push(a):Ur(o,h,[a])});function yR(o,a,h,x){o=pn(o)?o:ls(o),h=h&&!x?Ne(h):0;var C=o.length;return h<0&&(h=At(C+h,0)),Dc(o)?h<=C&&o.indexOf(a,h)>-1:!!C&&Xo(o,a,h)>-1}var CR=je(function(o,a,h){var x=-1,C=typeof a=="function",$=pn(o)?X(o.length):[];return Ei(o,function(P){$[++x]=C?Cn(a,P,h):ia(P,a,h)}),$}),TR=vc(function(o,a,h){Ur(o,h,a)});function Sc(o,a){var h=De(o)?ot:gb;return h(o,Se(a,3))}function SR(o,a,h,x){return o==null?[]:(De(a)||(a=a==null?[]:[a]),h=x?n:h,De(h)||(h=h==null?[]:[h]),_b(o,a,h))}var IR=vc(function(o,a,h){o[h?0:1].push(a)},function(){return[[],[]]});function AR(o,a,h){var x=De(o)?np:H5,C=arguments.length<3;return x(o,Se(a,4),h,C,Ei)}function OR(o,a,h){var x=De(o)?zD:H5,C=arguments.length<3;return x(o,Se(a,4),h,C,lb)}function $R(o,a){var h=De(o)?bi:cb;return h(o,Oc(Se(a,3)))}function DR(o){var a=De(o)?ib:yP;return a(o)}function MR(o,a,h){(h?nn(o,a,h):a===n)?a=1:a=Ne(a);var x=De(o)?eP:CP;return x(o,a)}function PR(o){var a=De(o)?tP:SP;return a(o)}function NR(o){if(o==null)return 0;if(pn(o))return Dc(o)?Qo(o):o.length;var a=Ut(o);return a==Ke||a==Ct?o.size:wp(o).length}function RR(o,a,h){var x=De(o)?rp:IP;return h&&nn(o,a,h)&&(a=n),x(o,Se(a,3))}var LR=je(function(o,a){if(o==null)return[];var h=a.length;return h>1&&nn(o,a[0],a[1])?a=[]:h>2&&nn(a[0],a[1],a[2])&&(a=[a[0]]),_b(o,Bt(a,1),[])}),Ic=mM||function(){return Ft.Date.now()};function jR(o,a){if(typeof a!="function")throw new Vn(l);return o=Ne(o),function(){if(--o<1)return a.apply(this,arguments)}}function p_(o,a,h){return a=h?n:a,a=o&&a==null?o.length:a,Vr(o,N,n,n,n,n,a)}function h_(o,a){var h;if(typeof a!="function")throw new Vn(l);return o=Ne(o),function(){return--o>0&&(h=a.apply(this,arguments)),o<=1&&(a=n),h}}var Vp=je(function(o,a,h){var x=E;if(h.length){var C=xi(h,ss(Vp));x|=I}return Vr(o,x,a,h,C)}),g_=je(function(o,a,h){var x=E|y;if(h.length){var C=xi(h,ss(g_));x|=I}return Vr(a,x,o,h,C)});function m_(o,a,h){a=h?n:a;var x=Vr(o,S,n,n,n,n,n,a);return x.placeholder=m_.placeholder,x}function v_(o,a,h){a=h?n:a;var x=Vr(o,O,n,n,n,n,n,a);return x.placeholder=v_.placeholder,x}function b_(o,a,h){var x,C,$,P,F,H,ee=0,te=!1,ie=!1,me=!0;if(typeof o!="function")throw new Vn(l);a=Xn(a)||0,dt(h)&&(te=!!h.leading,ie="maxWait"in h,$=ie?At(Xn(h.maxWait)||0,a):$,me="trailing"in h?!!h.trailing:me);function Ce(wt){var hr=x,Xr=C;return x=C=n,ee=wt,P=o.apply(Xr,hr),P}function Ie(wt){return ee=wt,F=ca(ke,a),te?Ce(wt):P}function Le(wt){var hr=wt-H,Xr=wt-ee,j_=a-hr;return ie?Ht(j_,$-Xr):j_}function Ae(wt){var hr=wt-H,Xr=wt-ee;return H===n||hr>=a||hr<0||ie&&Xr>=$}function ke(){var wt=Ic();if(Ae(wt))return ze(wt);F=ca(ke,Le(wt))}function ze(wt){return F=n,me&&x?Ce(wt):(x=C=n,P)}function An(){F!==n&&Ab(F),ee=0,x=H=C=F=n}function rn(){return F===n?P:ze(Ic())}function On(){var wt=Ic(),hr=Ae(wt);if(x=arguments,C=this,H=wt,hr){if(F===n)return Ie(H);if(ie)return Ab(F),F=ca(ke,a),Ce(H)}return F===n&&(F=ca(ke,a)),P}return On.cancel=An,On.flush=rn,On}var kR=je(function(o,a){return ab(o,1,a)}),FR=je(function(o,a,h){return ab(o,Xn(a)||0,h)});function BR(o){return Vr(o,k)}function Ac(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new Vn(l);var h=function(){var x=arguments,C=a?a.apply(this,x):x[0],$=h.cache;if($.has(C))return $.get(C);var P=o.apply(this,x);return h.cache=$.set(C,P)||$,P};return h.cache=new(Ac.Cache||Hr),h}Ac.Cache=Hr;function Oc(o){if(typeof o!="function")throw new Vn(l);return function(){var a=arguments;switch(a.length){case 0:return!o.call(this);case 1:return!o.call(this,a[0]);case 2:return!o.call(this,a[0],a[1]);case 3:return!o.call(this,a[0],a[1],a[2])}return!o.apply(this,a)}}function zR(o){return h_(2,o)}var GR=AP(function(o,a){a=a.length==1&&De(a[0])?ot(a[0],Tn(Se())):ot(Bt(a,1),Tn(Se()));var h=a.length;return je(function(x){for(var C=-1,$=Ht(x.length,h);++C<$;)x[C]=a[C].call(this,x[C]);return Cn(o,this,x)})}),Wp=je(function(o,a){var h=xi(a,ss(Wp));return Vr(o,I,n,a,h)}),__=je(function(o,a){var h=xi(a,ss(__));return Vr(o,M,n,a,h)}),HR=Wr(function(o,a){return Vr(o,D,n,n,n,a)});function UR(o,a){if(typeof o!="function")throw new Vn(l);return a=a===n?a:Ne(a),je(o,a)}function VR(o,a){if(typeof o!="function")throw new Vn(l);return a=a==null?0:At(Ne(a),0),je(function(h){var x=h[a],C=Ti(h,0,a);return x&&_i(C,x),Cn(o,this,C)})}function WR(o,a,h){var x=!0,C=!0;if(typeof o!="function")throw new Vn(l);return dt(h)&&(x="leading"in h?!!h.leading:x,C="trailing"in h?!!h.trailing:C),b_(o,a,{leading:x,maxWait:a,trailing:C})}function qR(o){return p_(o,1)}function YR(o,a){return Wp($p(a),o)}function ZR(){if(!arguments.length)return[];var o=arguments[0];return De(o)?o:[o]}function XR(o){return qn(o,b)}function KR(o,a){return a=typeof a=="function"?a:n,qn(o,b,a)}function QR(o){return qn(o,g|b)}function JR(o,a){return a=typeof a=="function"?a:n,qn(o,g|b,a)}function eL(o,a){return a==null||sb(o,a,Mt(a))}function pr(o,a){return o===a||o!==o&&a!==a}var tL=wc(bp),nL=wc(function(o,a){return o>=a}),ho=fb(function(){return arguments}())?fb:function(o){return gt(o)&&Je.call(o,"callee")&&!Q5.call(o,"callee")},De=X.isArray,rL=P5?Tn(P5):uP;function pn(o){return o!=null&&$c(o.length)&&!Yr(o)}function xt(o){return gt(o)&&pn(o)}function iL(o){return o===!0||o===!1||gt(o)&&tn(o)==ge}var Si=bM||r1,oL=N5?Tn(N5):fP;function sL(o){return gt(o)&&o.nodeType===1&&!da(o)}function aL(o){if(o==null)return!0;if(pn(o)&&(De(o)||typeof o=="string"||typeof o.splice=="function"||Si(o)||as(o)||ho(o)))return!o.length;var a=Ut(o);if(a==Ke||a==Ct)return!o.size;if(la(o))return!wp(o).length;for(var h in o)if(Je.call(o,h))return!1;return!0}function lL(o,a){return oa(o,a)}function cL(o,a,h){h=typeof h=="function"?h:n;var x=h?h(o,a):n;return x===n?oa(o,a,n,h):!!x}function qp(o){if(!gt(o))return!1;var a=tn(o);return a==We||a==he||typeof o.message=="string"&&typeof o.name=="string"&&!da(o)}function dL(o){return typeof o=="number"&&eb(o)}function Yr(o){if(!dt(o))return!1;var a=tn(o);return a==de||a==_t||a==le||a==jr}function x_(o){return typeof o=="number"&&o==Ne(o)}function $c(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=J}function dt(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function gt(o){return o!=null&&typeof o=="object"}var w_=R5?Tn(R5):hP;function uL(o,a){return o===a||xp(o,a,jp(a))}function fL(o,a,h){return h=typeof h=="function"?h:n,xp(o,a,jp(a),h)}function pL(o){return E_(o)&&o!=+o}function hL(o){if(KP(o))throw new $e(s);return pb(o)}function gL(o){return o===null}function mL(o){return o==null}function E_(o){return typeof o=="number"||gt(o)&&tn(o)==yt}function da(o){if(!gt(o)||tn(o)!=Rt)return!1;var a=rc(o);if(a===null)return!0;var h=Je.call(a,"constructor")&&a.constructor;return typeof h=="function"&&h instanceof h&&Jl.call(h)==fM}var Yp=L5?Tn(L5):gP;function vL(o){return x_(o)&&o>=-9007199254740991&&o<=J}var y_=j5?Tn(j5):mP;function Dc(o){return typeof o=="string"||!De(o)&>(o)&&tn(o)==Bn}function In(o){return typeof o=="symbol"||gt(o)&&tn(o)==Er}var as=k5?Tn(k5):vP;function bL(o){return o===n}function _L(o){return gt(o)&&Ut(o)==kr}function xL(o){return gt(o)&&tn(o)==qs}var wL=wc(Ep),EL=wc(function(o,a){return o<=a});function C_(o){if(!o)return[];if(pn(o))return Dc(o)?ur(o):fn(o);if(Ks&&o[Ks])return eM(o[Ks]());var a=Ut(o),h=a==Ke?cp:a==Ct?Xl:ls;return h(o)}function Zr(o){if(!o)return o===0?o:0;if(o=Xn(o),o===W||o===-1/0){var a=o<0?-1:1;return a*q}return o===o?o:0}function Ne(o){var a=Zr(o),h=a%1;return a===a?h?a-h:a:0}function T_(o){return o?co(Ne(o),0,V):0}function Xn(o){if(typeof o=="number")return o;if(In(o))return U;if(dt(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=dt(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=U5(o);var h=dr.test(o);return h||oD.test(o)?jD(o.slice(2),h?2:8):Ul.test(o)?U:+o}function S_(o){return Ir(o,hn(o))}function yL(o){return o?co(Ne(o),-9007199254740991,J):o===0?o:0}function Qe(o){return o==null?"":Sn(o)}var CL=is(function(o,a){if(la(a)||pn(a)){Ir(a,Mt(a),o);return}for(var h in a)Je.call(a,h)&&na(o,h,a[h])}),I_=is(function(o,a){Ir(a,hn(a),o)}),Mc=is(function(o,a,h,x){Ir(a,hn(a),o,x)}),TL=is(function(o,a,h,x){Ir(a,Mt(a),o,x)}),SL=Wr(gp);function IL(o,a){var h=rs(o);return a==null?h:ob(h,a)}var AL=je(function(o,a){o=tt(o);var h=-1,x=a.length,C=x>2?a[2]:n;for(C&&nn(a[0],a[1],C)&&(x=1);++h<x;)for(var $=a[h],P=hn($),F=-1,H=P.length;++F<H;){var ee=P[F],te=o[ee];(te===n||pr(te,es[ee])&&!Je.call(o,ee))&&(o[ee]=$[ee])}return o}),OL=je(function(o){return o.push(n,Ub),Cn(A_,n,o)});function $L(o,a){return B5(o,Se(a,3),Sr)}function DL(o,a){return B5(o,Se(a,3),vp)}function ML(o,a){return o==null?o:mp(o,Se(a,3),hn)}function PL(o,a){return o==null?o:db(o,Se(a,3),hn)}function NL(o,a){return o&&Sr(o,Se(a,3))}function RL(o,a){return o&&vp(o,Se(a,3))}function LL(o){return o==null?[]:pc(o,Mt(o))}function jL(o){return o==null?[]:pc(o,hn(o))}function Zp(o,a,h){var x=o==null?n:uo(o,a);return x===n?h:x}function kL(o,a){return o!=null&&qb(o,a,aP)}function Xp(o,a){return o!=null&&qb(o,a,lP)}var FL=Fb(function(o,a,h){a!=null&&typeof a.toString!="function"&&(a=ec.call(a)),o[a]=h},Qp(gn)),BL=Fb(function(o,a,h){a!=null&&typeof a.toString!="function"&&(a=ec.call(a)),Je.call(o,a)?o[a].push(h):o[a]=[h]},Se),zL=je(ia);function Mt(o){return pn(o)?rb(o):wp(o)}function hn(o){return pn(o)?rb(o,!0):bP(o)}function GL(o,a){var h={};return a=Se(a,3),Sr(o,function(x,C,$){Ur(h,a(x,C,$),x)}),h}function HL(o,a){var h={};return a=Se(a,3),Sr(o,function(x,C,$){Ur(h,C,a(x,C,$))}),h}var UL=is(function(o,a,h){hc(o,a,h)}),A_=is(function(o,a,h,x){hc(o,a,h,x)}),VL=Wr(function(o,a){var h={};if(o==null)return h;var x=!1;a=ot(a,function($){return $=Ci($,o),x||(x=$.length>1),$}),Ir(o,Rp(o),h),x&&(h=qn(h,g|v|b,FP));for(var C=a.length;C--;)Ip(h,a[C]);return h});function WL(o,a){return O_(o,Oc(Se(a)))}var qL=Wr(function(o,a){return o==null?{}:xP(o,a)});function O_(o,a){if(o==null)return{};var h=ot(Rp(o),function(x){return[x]});return a=Se(a),xb(o,h,function(x,C){return a(x,C[0])})}function YL(o,a,h){a=Ci(a,o);var x=-1,C=a.length;for(C||(C=1,o=n);++x<C;){var $=o==null?n:o[Ar(a[x])];$===n&&(x=C,$=h),o=Yr($)?$.call(o):$}return o}function ZL(o,a,h){return o==null?o:sa(o,a,h)}function XL(o,a,h,x){return x=typeof x=="function"?x:n,o==null?o:sa(o,a,h,x)}var $_=Gb(Mt),D_=Gb(hn);function KL(o,a,h){var x=De(o),C=x||Si(o)||as(o);if(a=Se(a,4),h==null){var $=o&&o.constructor;C?h=x?new $:[]:dt(o)?h=Yr($)?rs(rc(o)):{}:h={}}return(C?Un:Sr)(o,function(P,F,H){return a(h,P,F,H)}),h}function QL(o,a){return o==null?!0:Ip(o,a)}function JL(o,a,h){return o==null?o:Tb(o,a,$p(h))}function ej(o,a,h,x){return x=typeof x=="function"?x:n,o==null?o:Tb(o,a,$p(h),x)}function ls(o){return o==null?[]:lp(o,Mt(o))}function tj(o){return o==null?[]:lp(o,hn(o))}function nj(o,a,h){return h===n&&(h=a,a=n),h!==n&&(h=Xn(h),h=h===h?h:0),a!==n&&(a=Xn(a),a=a===a?a:0),co(Xn(o),a,h)}function rj(o,a,h){return a=Zr(a),h===n?(h=a,a=0):h=Zr(h),o=Xn(o),cP(o,a,h)}function ij(o,a,h){if(h&&typeof h!="boolean"&&nn(o,a,h)&&(a=h=n),h===n&&(typeof a=="boolean"?(h=a,a=n):typeof o=="boolean"&&(h=o,o=n)),o===n&&a===n?(o=0,a=1):(o=Zr(o),a===n?(a=o,o=0):a=Zr(a)),o>a){var x=o;o=a,a=x}if(h||o%1||a%1){var C=tb();return Ht(o+C*(a-o+LD("1e-"+((C+"").length-1))),a)}return Cp(o,a)}var oj=os(function(o,a,h){return a=a.toLowerCase(),o+(h?M_(a):a)});function M_(o){return Kp(Qe(o).toLowerCase())}function P_(o){return o=Qe(o),o&&o.replace(aD,ZD).replace(SD,"")}function sj(o,a,h){o=Qe(o),a=Sn(a);var x=o.length;h=h===n?x:co(Ne(h),0,x);var C=h;return h-=a.length,h>=0&&o.slice(h,C)==a}function aj(o){return o=Qe(o),o&&Gn.test(o)?o.replace(St,XD):o}function lj(o){return o=Qe(o),o&&_e.test(o)?o.replace(oe,"\\$&"):o}var cj=os(function(o,a,h){return o+(h?"-":"")+a.toLowerCase()}),dj=os(function(o,a,h){return o+(h?" ":"")+a.toLowerCase()}),uj=Lb("toLowerCase");function fj(o,a,h){o=Qe(o),a=Ne(a);var x=a?Qo(o):0;if(!a||x>=a)return o;var C=(a-x)/2;return xc(ac(C),h)+o+xc(sc(C),h)}function pj(o,a,h){o=Qe(o),a=Ne(a);var x=a?Qo(o):0;return a&&x<a?o+xc(a-x,h):o}function hj(o,a,h){o=Qe(o),a=Ne(a);var x=a?Qo(o):0;return a&&x<a?xc(a-x,h)+o:o}function gj(o,a,h){return h||a==null?a=0:a&&(a=+a),EM(Qe(o).replace(Te,""),a||0)}function mj(o,a,h){return(h?nn(o,a,h):a===n)?a=1:a=Ne(a),Tp(Qe(o),a)}function vj(){var o=arguments,a=Qe(o[0]);return o.length<3?a:a.replace(o[1],o[2])}var bj=os(function(o,a,h){return o+(h?"_":"")+a.toLowerCase()});function _j(o,a,h){return h&&typeof h!="number"&&nn(o,a,h)&&(a=h=n),h=h===n?V:h>>>0,h?(o=Qe(o),o&&(typeof a=="string"||a!=null&&!Yp(a))&&(a=Sn(a),!a&&Ko(o))?Ti(ur(o),0,h):o.split(a,h)):[]}var xj=os(function(o,a,h){return o+(h?" ":"")+Kp(a)});function wj(o,a,h){return o=Qe(o),h=h==null?0:co(Ne(h),0,o.length),a=Sn(a),o.slice(h,h+a.length)==a}function Ej(o,a,h){var x=A.templateSettings;h&&nn(o,a,h)&&(a=n),o=Qe(o),a=Mc({},a,x,Hb);var C=Mc({},a.imports,x.imports,Hb),$=Mt(C),P=lp(C,$),F,H,ee=0,te=a.interpolate||Vl,ie="__p += '",me=dp((a.escape||Vl).source+"|"+te.source+"|"+(te===Jt?cr:Vl).source+"|"+(a.evaluate||Vl).source+"|$","g"),Ce="//# sourceURL="+(Je.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++DD+"]")+`
|
|
85
85
|
`;o.replace(me,function(Ae,ke,ze,An,rn,On){return ze||(ze=An),ie+=o.slice(ee,On).replace(lD,KD),ke&&(F=!0,ie+=`' +
|
|
86
86
|
__e(`+ke+`) +
|
|
87
87
|
'`),rn&&(H=!0,ie+=`';
|
|
@@ -92,18 +92,18 @@ __p += '`),ze&&(ie+=`' +
|
|
|
92
92
|
`;var Ie=Je.call(a,"variable")&&a.variable;if(!Ie)ie=`with (obj) {
|
|
93
93
|
`+ie+`
|
|
94
94
|
}
|
|
95
|
-
`;else if(
|
|
95
|
+
`;else if(ct.test(Ie))throw new $e(c);ie=(H?ie.replace(Ys,""):ie).replace(Yo,"$1").replace(Zs,"$1;"),ie="function("+(Ie||"obj")+`) {
|
|
96
96
|
`+(Ie?"":`obj || (obj = {});
|
|
97
97
|
`)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(H?`, __j = Array.prototype.join;
|
|
98
98
|
function print() { __p += __j.call(arguments, '') }
|
|
99
99
|
`:`;
|
|
100
100
|
`)+ie+`return __p
|
|
101
|
-
}`;var Le=L_(function(){return Ye($,Ce+"return "+ie).apply(n,P)});if(Le.source=ie,Y1(Le))throw Le;return Le}function yj(o){return Qe(o).toLowerCase()}function Cj(o){return Qe(o).toUpperCase()}function Tj(o,a,h){if(o=Qe(o),o&&(h||a===n))return V5(o);if(!o||!(a=Sn(a)))return o;var x=ur(o),C=ur(a),$=W5(x,C),P=q5(x,C)+1;return Ti(x,$,P).join("")}function Sj(o,a,h){if(o=Qe(o),o&&(h||a===n))return o.slice(0,Z5(o)+1);if(!o||!(a=Sn(a)))return o;var x=ur(o),C=q5(x,ur(a))+1;return Ti(x,0,C).join("")}function Ij(o,a,h){if(o=Qe(o),o&&(h||a===n))return o.replace(Te,"");if(!o||!(a=Sn(a)))return o;var x=ur(o),C=W5(x,ur(a));return Ti(x,C).join("")}function Aj(o,a){var h=Y,x=L;if(ct(a)){var C="separator"in a?a.separator:C;h="length"in a?Ne(a.length):h,x="omission"in a?Sn(a.omission):x}o=Qe(o);var $=o.length;if(Ko(o)){var P=ur(o);$=P.length}if(h>=$)return o;var F=h-Qo(x);if(F<1)return x;var H=P?Ti(P,0,F).join(""):o.slice(0,F);if(C===n)return H+x;if(P&&(F+=H.length-F),Z1(C)){if(o.slice(F).search(C)){var ee,te=H;for(C.global||(C=u1(C.source,Qe(zr.exec(C))+"g")),C.lastIndex=0;ee=C.exec(te);)var ie=ee.index;H=H.slice(0,ie===n?F:ie)}}else if(o.indexOf(Sn(C),F)!=F){var me=H.lastIndexOf(C);me>-1&&(H=H.slice(0,me))}return H+x}function Oj(o){return o=Qe(o),o&&Lt.test(o)?o.replace(at,iM):o}var $j=os(function(o,a,h){return o+(h?" ":"")+a.toUpperCase()}),Q1=jb("toUpperCase");function R_(o,a,h){return o=Qe(o),a=h?n:a,a===n?JD(o)?aM(o):UD(o):o.match(a)||[]}var L_=je(function(o,a){try{return Cn(o,n,a)}catch(h){return Y1(h)?h:new $e(h)}}),Dj=Wr(function(o,a){return Hn(a,function(h){h=Ar(h),Ur(o,h,W1(o[h],o))}),o});function Mj(o){var a=o==null?0:o.length,h=Se();return o=a?ot(o,function(x){if(typeof x[1]!="function")throw new Un(l);return[h(x[0]),x[1]]}):[],je(function(x){for(var C=-1;++C<a;){var $=o[C];if(Cn($[0],this,x))return Cn($[1],this,x)}})}function Pj(o){return iP(Wn(o,g))}function J1(o){return function(){return o}}function Nj(o,a){return o==null||o!==o?a:o}var Rj=Fb(),Lj=Fb(!0);function gn(o){return o}function ep(o){return gb(typeof o=="function"?o:Wn(o,g))}function jj(o){return vb(Wn(o,g))}function kj(o,a){return bb(o,Wn(a,g))}var Fj=je(function(o,a){return function(h){return ia(h,o,a)}}),Bj=je(function(o,a){return function(h){return ia(o,h,a)}});function tp(o,a,h){var x=Mt(a),C=hc(a,x);h==null&&!(ct(a)&&(C.length||!x.length))&&(h=a,a=o,o=this,C=hc(a,Mt(a)));var $=!(ct(h)&&"chain"in h)||!!h.chain,P=Yr(o);return Hn(C,function(F){var H=a[F];o[F]=H,P&&(o.prototype[F]=function(){var ee=this.__chain__;if($||ee){var te=o(this.__wrapped__),ie=te.__actions__=fn(this.__actions__);return ie.push({func:H,args:arguments,thisArg:o}),te.__chain__=ee,te}return H.apply(o,_i([this.value()],arguments))})}),o}function zj(){return Ft._===this&&(Ft._=pM),this}function np(){}function Gj(o){return o=Ne(o),je(function(a){return _b(a,o)})}var Hj=P1(ot),Uj=P1(B5),Vj=P1(i1);function j_(o){return B1(o)?o1(Ar(o)):EP(o)}function Wj(o){return function(a){return o==null?n:uo(o,a)}}var qj=zb(),Yj=zb(!0);function rp(){return[]}function ip(){return!1}function Zj(){return{}}function Xj(){return""}function Kj(){return!0}function Qj(o,a){if(o=Ne(o),o<1||o>J)return[];var h=V,x=Ht(o,V);a=Se(a),o-=V;for(var C=l1(x,a);++h<o;)a(h);return C}function Jj(o){return De(o)?ot(o,Ar):In(o)?[o]:fn(r_(Qe(o)))}function ek(o){var a=++uM;return Qe(o)+a}var tk=xc(function(o,a){return o+a},0),nk=N1("ceil"),rk=xc(function(o,a){return o/a},1),ik=N1("floor");function ok(o){return o&&o.length?pc(o,gn,_1):n}function sk(o,a){return o&&o.length?pc(o,Se(a,2),_1):n}function ak(o){return H5(o,gn)}function lk(o,a){return H5(o,Se(a,2))}function ck(o){return o&&o.length?pc(o,gn,y1):n}function dk(o,a){return o&&o.length?pc(o,Se(a,2),y1):n}var uk=xc(function(o,a){return o*a},1),fk=N1("round"),pk=xc(function(o,a){return o-a},0);function hk(o){return o&&o.length?a1(o,gn):0}function gk(o,a){return o&&o.length?a1(o,Se(a,2)):0}return A.after=jR,A.ary=h_,A.assign=CL,A.assignIn=A_,A.assignInWith=Pc,A.assignWith=TL,A.at=SL,A.before=g_,A.bind=W1,A.bindAll=Dj,A.bindKey=m_,A.castArray=ZR,A.chain=u_,A.chunk=iN,A.compact=oN,A.concat=sN,A.cond=Mj,A.conforms=Pj,A.constant=J1,A.countBy=hR,A.create=IL,A.curry=v_,A.curryRight=b_,A.debounce=__,A.defaults=AL,A.defaultsDeep=OL,A.defer=kR,A.delay=FR,A.difference=aN,A.differenceBy=lN,A.differenceWith=cN,A.drop=dN,A.dropRight=uN,A.dropRightWhile=fN,A.dropWhile=pN,A.fill=hN,A.filter=mR,A.flatMap=_R,A.flatMapDeep=xR,A.flatMapDepth=ER,A.flatten=a_,A.flattenDeep=gN,A.flattenDepth=mN,A.flip=BR,A.flow=Rj,A.flowRight=Lj,A.fromPairs=vN,A.functions=LL,A.functionsIn=jL,A.groupBy=wR,A.initial=_N,A.intersection=xN,A.intersectionBy=EN,A.intersectionWith=wN,A.invert=FL,A.invertBy=BL,A.invokeMap=CR,A.iteratee=ep,A.keyBy=TR,A.keys=Mt,A.keysIn=hn,A.map=Ic,A.mapKeys=GL,A.mapValues=HL,A.matches=jj,A.matchesProperty=kj,A.memoize=Oc,A.merge=UL,A.mergeWith=O_,A.method=Fj,A.methodOf=Bj,A.mixin=tp,A.negate=$c,A.nthArg=Gj,A.omit=VL,A.omitBy=WL,A.once=zR,A.orderBy=SR,A.over=Hj,A.overArgs=GR,A.overEvery=Uj,A.overSome=Vj,A.partial=q1,A.partialRight=x_,A.partition=IR,A.pick=qL,A.pickBy=$_,A.property=j_,A.propertyOf=Wj,A.pull=SN,A.pullAll=c_,A.pullAllBy=IN,A.pullAllWith=AN,A.pullAt=ON,A.range=qj,A.rangeRight=Yj,A.rearg=HR,A.reject=$R,A.remove=$N,A.rest=UR,A.reverse=U1,A.sampleSize=MR,A.set=ZL,A.setWith=XL,A.shuffle=PR,A.slice=DN,A.sortBy=LR,A.sortedUniq=kN,A.sortedUniqBy=FN,A.split=_j,A.spread=VR,A.tail=BN,A.take=zN,A.takeRight=GN,A.takeRightWhile=HN,A.takeWhile=UN,A.tap=oR,A.throttle=WR,A.thru=Sc,A.toArray=T_,A.toPairs=D_,A.toPairsIn=M_,A.toPath=Jj,A.toPlainObject=I_,A.transform=KL,A.unary=qR,A.union=VN,A.unionBy=WN,A.unionWith=qN,A.uniq=YN,A.uniqBy=ZN,A.uniqWith=XN,A.unset=QL,A.unzip=V1,A.unzipWith=d_,A.update=JL,A.updateWith=ej,A.values=ls,A.valuesIn=tj,A.without=KN,A.words=R_,A.wrap=YR,A.xor=QN,A.xorBy=JN,A.xorWith=eR,A.zip=tR,A.zipObject=nR,A.zipObjectDeep=rR,A.zipWith=iR,A.entries=D_,A.entriesIn=M_,A.extend=A_,A.extendWith=Pc,tp(A,A),A.add=tk,A.attempt=L_,A.camelCase=oj,A.capitalize=P_,A.ceil=nk,A.clamp=nj,A.clone=XR,A.cloneDeep=QR,A.cloneDeepWith=JR,A.cloneWith=KR,A.conformsTo=eL,A.deburr=N_,A.defaultTo=Nj,A.divide=rk,A.endsWith=sj,A.eq=pr,A.escape=aj,A.escapeRegExp=lj,A.every=gR,A.find=vR,A.findIndex=o_,A.findKey=$L,A.findLast=bR,A.findLastIndex=s_,A.findLastKey=DL,A.floor=ik,A.forEach=f_,A.forEachRight=p_,A.forIn=ML,A.forInRight=PL,A.forOwn=NL,A.forOwnRight=RL,A.get=X1,A.gt=tL,A.gte=nL,A.has=kL,A.hasIn=K1,A.head=l_,A.identity=gn,A.includes=yR,A.indexOf=bN,A.inRange=rj,A.invoke=zL,A.isArguments=ho,A.isArray=De,A.isArrayBuffer=rL,A.isArrayLike=pn,A.isArrayLikeObject=xt,A.isBoolean=iL,A.isBuffer=Si,A.isDate=oL,A.isElement=sL,A.isEmpty=aL,A.isEqual=lL,A.isEqualWith=cL,A.isError=Y1,A.isFinite=dL,A.isFunction=Yr,A.isInteger=E_,A.isLength=Dc,A.isMap=w_,A.isMatch=uL,A.isMatchWith=fL,A.isNaN=pL,A.isNative=hL,A.isNil=mL,A.isNull=gL,A.isNumber=y_,A.isObject=ct,A.isObjectLike=ht,A.isPlainObject=da,A.isRegExp=Z1,A.isSafeInteger=vL,A.isSet=C_,A.isString=Mc,A.isSymbol=In,A.isTypedArray=as,A.isUndefined=bL,A.isWeakMap=_L,A.isWeakSet=xL,A.join=yN,A.kebabCase=cj,A.last=Yn,A.lastIndexOf=CN,A.lowerCase=dj,A.lowerFirst=uj,A.lt=EL,A.lte=wL,A.max=ok,A.maxBy=sk,A.mean=ak,A.meanBy=lk,A.min=ck,A.minBy=dk,A.stubArray=rp,A.stubFalse=ip,A.stubObject=Zj,A.stubString=Xj,A.stubTrue=Kj,A.multiply=uk,A.nth=TN,A.noConflict=zj,A.noop=np,A.now=Ac,A.pad=fj,A.padEnd=pj,A.padStart=hj,A.parseInt=gj,A.random=ij,A.reduce=AR,A.reduceRight=OR,A.repeat=mj,A.replace=vj,A.result=YL,A.round=fk,A.runInContext=z,A.sample=DR,A.size=NR,A.snakeCase=bj,A.some=RR,A.sortedIndex=MN,A.sortedIndexBy=PN,A.sortedIndexOf=NN,A.sortedLastIndex=RN,A.sortedLastIndexBy=LN,A.sortedLastIndexOf=jN,A.startCase=xj,A.startsWith=Ej,A.subtract=pk,A.sum=hk,A.sumBy=gk,A.template=wj,A.times=Qj,A.toFinite=Zr,A.toInteger=Ne,A.toLength=S_,A.toLower=yj,A.toNumber=Zn,A.toSafeInteger=yL,A.toString=Qe,A.toUpper=Cj,A.trim=Tj,A.trimEnd=Sj,A.trimStart=Ij,A.truncate=Aj,A.unescape=Oj,A.uniqueId=ek,A.upperCase=$j,A.upperFirst=Q1,A.each=f_,A.eachRight=p_,A.first=l_,tp(A,function(){var o={};return Sr(A,function(a,h){Je.call(A.prototype,h)||(o[h]=a)}),o}(),{chain:!1}),A.VERSION=r,Hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){A[o].placeholder=A}),Hn(["drop","take"],function(o,a){Fe.prototype[o]=function(h){h=h===n?1:At(Ne(h),0);var x=this.__filtered__&&!a?new Fe(this):this.clone();return x.__filtered__?x.__takeCount__=Ht(h,x.__takeCount__):x.__views__.push({size:Ht(h,V),type:o+(x.__dir__<0?"Right":"")}),x},Fe.prototype[o+"Right"]=function(h){return this.reverse()[o](h).reverse()}}),Hn(["filter","map","takeWhile"],function(o,a){var h=a+1,x=h==R||h==B;Fe.prototype[o]=function(C){var $=this.clone();return $.__iteratees__.push({iteratee:Se(C,3),type:h}),$.__filtered__=$.__filtered__||x,$}}),Hn(["head","last"],function(o,a){var h="take"+(a?"Right":"");Fe.prototype[o]=function(){return this[h](1).value()[0]}}),Hn(["initial","tail"],function(o,a){var h="drop"+(a?"":"Right");Fe.prototype[o]=function(){return this.__filtered__?new Fe(this):this[h](1)}}),Fe.prototype.compact=function(){return this.filter(gn)},Fe.prototype.find=function(o){return this.filter(o).head()},Fe.prototype.findLast=function(o){return this.reverse().find(o)},Fe.prototype.invokeMap=je(function(o,a){return typeof o=="function"?new Fe(this):this.map(function(h){return ia(h,o,a)})}),Fe.prototype.reject=function(o){return this.filter($c(Se(o)))},Fe.prototype.slice=function(o,a){o=Ne(o);var h=this;return h.__filtered__&&(o>0||a<0)?new Fe(h):(o<0?h=h.takeRight(-o):o&&(h=h.drop(o)),a!==n&&(a=Ne(a),h=a<0?h.dropRight(-a):h.take(a-o)),h)},Fe.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Fe.prototype.toArray=function(){return this.take(V)},Sr(Fe.prototype,function(o,a){var h=/^(?:filter|find|map|reject)|While$/.test(a),x=/^(?:head|last)$/.test(a),C=A[x?"take"+(a=="last"?"Right":""):a],$=x||/^find/.test(a);C&&(A.prototype[a]=function(){var P=this.__wrapped__,F=x?[1]:arguments,H=P instanceof Fe,ee=F[0],te=H||De(P),ie=function(ke){var ze=C.apply(A,_i([ke],F));return x&&me?ze[0]:ze};te&&h&&typeof ee=="function"&&ee.length!=1&&(H=te=!1);var me=this.__chain__,Ce=!!this.__actions__.length,Ie=$&&!me,Le=H&&!Ce;if(!$&&te){P=Le?P:new Fe(this);var Ae=o.apply(P,F);return Ae.__actions__.push({func:Sc,args:[ie],thisArg:n}),new Vn(Ae,me)}return Ie&&Le?o.apply(this,F):(Ae=this.thru(ie),Ie?x?Ae.value()[0]:Ae.value():Ae)})}),Hn(["pop","push","shift","sort","splice","unshift"],function(o){var a=Ql[o],h=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",x=/^(?:pop|shift)$/.test(o);A.prototype[o]=function(){var C=arguments;if(x&&!this.__chain__){var $=this.value();return a.apply(De($)?$:[],C)}return this[h](function(P){return a.apply(De(P)?P:[],C)})}}),Sr(Fe.prototype,function(o,a){var h=A[a];if(h){var x=h.name+"";Je.call(ns,x)||(ns[x]=[]),ns[x].push({name:a,func:h})}}),ns[_c(n,y).name]=[{name:"wrapper",func:n}],Fe.prototype.clone=OM,Fe.prototype.reverse=$M,Fe.prototype.value=DM,A.prototype.at=sR,A.prototype.chain=aR,A.prototype.commit=lR,A.prototype.next=cR,A.prototype.plant=uR,A.prototype.reverse=fR,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=pR,A.prototype.first=A.prototype.head,Ks&&(A.prototype[Ks]=dR),A},Jo=lM();oo?((oo.exports=Jo)._=Jo,e1._=Jo):Ft._=Jo}).call(cs)}(al,al.exports);var Du=al.exports;const _g=W9;_g.displayName="BuilderBlockToolbarContext";const xg=p.forwardRef((e,t)=>{const{sections:n,qualityMetricIcon:r,isToolbarLocked:i=!0,inputPlaceholder:s="Search Block",onToggleToolbarLock:l,className:c}=e,[d,f]=p.useState(null),[m,g]=p.useState(null),[v,b]=p.useState(i),[E,_]=p.useState(!0);Vh({onDragStart(I){f(I.active.data.current),document.body.style.setProperty("cursor","grabbing")},onDragEnd(){f(null),document.body.style.setProperty("cursor","")}});const w=()=>{l==null||l(!v),b(I=>!I)},y=I=>{const M=I.target.value;g(M)},S=m?(I=>{const M=n.filter(N=>N.blocks&&N.blocks.some(D=>D.type.includes(I)));return Du.isEmpty(M)?[]:M.map(N=>{var k;const D=(k=N==null?void 0:N.blocks)==null?void 0:k.filter(Y=>Y.type.includes(I));return{name:N.name,label:N.label,blocks:D}})})(m):n,O=Du.debounce(_,500);return u.jsxs("div",{ref:t,className:oe(xn["builder-block-toolbar--container"],!v&&!E?xn["hide-toolbar"]:xn["show-toolbar"],c),onMouseEnter:()=>!v&&O(!0),onMouseLeave:()=>!v&&O(!1),children:[u.jsxs("div",{className:oe(xn["builder-block-toolbar--header"]),children:[r&&u.jsx(st,{variant:"ghost",color:"primary",children:u.jsx(Xa,{...r})}),u.jsx(st,{variant:"ghost",color:"primary",style:{marginLeft:"auto"},onClick:w,children:v?u.jsx(y7,{}):u.jsx(G7,{})})]}),u.jsx(ln,{placeholder:s,className:xn["builder-block-toolbar--input"],onChange:y}),u.jsx("div",{className:xn["builder-block-toolbar--sections"],children:Du.isEmpty(S.length)&&u.jsx(Qc,{type:"multiple",children:S.map(I=>{var M;return u.jsxs(Jc,{value:I.name,children:[u.jsx(ed,{children:u.jsx(td,{children:u.jsx(ye,{children:I.label})})}),u.jsx(nd,{className:xn["builder-block-toolbar--block-container"],children:(M=I.blocks)==null?void 0:M.map((N,D)=>u.jsx(Eg,{block:N,name:I.name},D))})]},I.name)})})}),$n.createPortal(u.jsx(ay,{children:d&&u.jsx(Eg,{block:d.block,name:d.name,isOverlay:!0})}),document.body)]})});xg.displayName="BuilderBlockToolbar";const Eg=({block:e,name:t,isOverlay:n})=>{const{attributes:r,listeners:i,setNodeRef:s,isDragging:l}=Z9({id:e.type,data:{block:e,name:t}});return u.jsxs("button",{ref:s,className:oe(xn["builder-block-toolbar--block"],l&&xn["builder-block-toolbar--block-dragging"],n&&xn["builder-block-toolbar--block-overlay"]),...i,...r,children:[u.jsx("div",{className:oe(xn["builder-block-toolbar--block-icon"],xn[`builder-block-toolbar--block-icon-${t}`]),children:ly(e.type)}),u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-1000",className:xn["builder-block-toolbar-block-label"],children:e.label})]})};function ly(e){switch(e){case"text":return u.jsx(hp,{});case"image":return u.jsx(bp,{});case"video":return u.jsx(up,{});case"variant":return u.jsx(Q_,{});case"entities":return u.jsx(B7,{});case"generative":return u.jsx(ch,{});case"card":return u.jsx(xp,{});case"quickReplies":return u.jsx(fp,{});case"reroute":return u.jsx(Bc,{});case"api":return u.jsx(_p,{});case"conditional":return u.jsx(Ep,{});case"capture":return u.jsx(gp,{});case"redirect":return u.jsx(Bc,{});case"setValues":return u.jsx(mp,{});case"contactRequest":return u.jsx(zc,{});case"agentTakeover":return u.jsx(vp,{});default:console.warn("Unknown block type:",e)}}const wg={"root-container":"_root-container_1hesv_1","atom-quick-replies-input-container":"_atom-quick-replies-input-container_1hesv_20"},cy=32,Mu=p.forwardRef((e,t)=>{const{buttonLabel:n,buttonLabelMaxLength:r=cy,selectorProps:i,setButtonLabel:s}=e,[l,c]=p.useState(!1),[d,f]=p.useState(()=>n??"");p.useEffect(()=>{n!=null&&f(n)},[n]);const m=p.useRef(),g=p.useCallback(()=>{m.current!==null&&clearTimeout(m.current)},[]);return p.useEffect(()=>{d.length>r&&(c(!0),g(),m.current=setTimeout(()=>{c(!1)},3e3)),f(v=>v.slice(0,r)??"")},[d]),u.jsx("div",{className:wg["root-container"],children:u.jsxs("div",{className:wg["atom-quick-replies-input-container"],children:[u.jsxs(Io,{rootProps:{open:l},children:[u.jsx(Ri,{children:u.jsx(ln,{variant:"filled",value:d,onChange:v=>f(v.target.value),onBlur:v=>s(v.target.value),size:"sm",autoComplete:"off",autoResize:!0})}),u.jsx(Ni,{isDark:!0,title:"Sooo long...",description:`Maximum length is ${r} character${r>1&&"s"}`})]}),u.jsx(Ao,{label:"Choose destination",...i})]})})});Mu.displayName="AtomQuickRepliesInput";const Pu={"ai-chat--trigger":"_ai-chat--trigger_17efd_1","ai-chat":"_ai-chat_17efd_1","ai-chat--container":"_ai-chat--container_17efd_11"},yg=ws;yg.displayName="ChatRoot";const Cg=p.forwardRef((e,t)=>u.jsx(ys,{ref:t,className:Pu["ai-chat--trigger"],onClick:n=>n.preventDefault,children:u.jsx(nu,{image:e.avatarBot.image,active:e.active,onClick:e.onClick})}));Cg.displayName="ChatTrigger";const Tg=p.forwardRef(({children:e},t)=>u.jsx(ow,{children:u.jsx(Cs,{ref:t,side:"top",align:"end",avoidCollisions:!1,sideOffset:16,className:Pu["ai-chat--container"],children:u.jsx("div",{className:Pu["ai-chat"],children:e})})}));Tg.displayName="ChatContainer";const ll={"chat-header":"_chat-header_2piic_1","chat-header--purple":"_chat-header--purple_2piic_14","chat-header--white":"_chat-header--white_2piic_18","chat-header--label":"_chat-header--label_2piic_22","chat-header--close":"_chat-header--close_2piic_27"},dy=({botName:e,avatar:t,repliesInstantlyLabel:n="Replies instantly",type:r})=>{const i=r==="purple"?"white":"gray-1000";return u.jsxs("div",{className:oe(ll["chat-header"],ll[`chat-header--${r}`]),children:[u.jsx("div",{children:u.jsx($o,{...t})}),u.jsxs("div",{className:ll["chat-header--label"],children:[u.jsx(ye,{fontWeight:"bold",size:"md",color:i,children:e}),u.jsx(ye,{fontWeight:"regular",size:"xs",color:i,children:n})]}),u.jsx(sw,{className:ll["chat-header--close"],children:u.jsx(zd,{color:i,height:"3.2rem",width:"3.2rem"})})]})},Sg={"chat-content":"_chat-content_1yrah_1","chat-messages":"_chat-messages_1yrah_16"},Ro={"chat-input--container":"_chat-input--container_vv57m_1","chat-input--disabled":"_chat-input--disabled_vv57m_13","chat-input--input":"_chat-input--input_vv57m_18","chat-input--icon":"_chat-input--icon_vv57m_42","chat-input--content":"_chat-input--content_vv57m_53","send-button":"_send-button_vv57m_70"},uy=(e,t)=>{p.useEffect(()=>{if(e){e.style.height="0px";const n=e.scrollHeight;e.style.height=n+"px"}},[e,t])},Ig=p.forwardRef((e,t)=>{const{disabled:n,placeholder:r,className:i,onChange:s,value:l,...c}=e,d=p.useRef(null),[f,m]=p.useState(l);uy(d.current,f);const g=v=>{var E;const b=(E=v.target)==null?void 0:E.value;m(b),s==null||s(v)};return u.jsx("div",{className:oe(Ro["chat-input--container"],n&&Ro["chat-input--disabled"],i),children:u.jsxs("div",{className:Ro["chat-input--content"],children:[u.jsx("textarea",{ref:d,className:oe(Ro["chat-input--input"],n&&"cursor-not-allowed"),placeholder:r,disabled:n,value:f,onChange:g,rows:1,...c}),u.jsx("span",{className:Ro["chat-input--icon"],children:u.jsx(st,{className:Ro["send-button"],variant:"ghost",color:"primary",size:"md",children:u.jsx(j7,{className:"text--purple-600"})})})]})})});Ig.displayName="ChatInput";const Ve={"chat-item":"_chat-item_1oblk_1","chat-item--bot":"_chat-item--bot_1oblk_6","chat-item--user":"_chat-item--user_1oblk_10","chat-item--avatar-container":"_chat-item--avatar-container_1oblk_14","chat-item--chat":"_chat-item--chat_1oblk_20","chat-item--typing":"_chat-item--typing_1oblk_28","chat-item--chat-bot":"_chat-item--chat-bot_1oblk_37","chat-item--chat-user":"_chat-item--chat-user_1oblk_43","chat-item--feedback-requested":"_chat-item--feedback-requested_1oblk_49","chat-item--media":"_chat-item--media_1oblk_53","chat-item--image":"_chat-item--image_1oblk_57","chat-item--video":"_chat-item--video_1oblk_62","chat-item--button-container":"_chat-item--button-container_1oblk_67","chat-item--caption":"_chat-item--caption_1oblk_76","chat-item--icon":"_chat-item--icon_1oblk_80","chat-item--feedback":"_chat-item--feedback_1oblk_49","chat-item-feedback-icons":"_chat-item-feedback-icons_1oblk_102","chat-item--feedback-given":"_chat-item--feedback-given_1oblk_107","chat-item--card":"_chat-item--card_1oblk_114","chat-item--card-image":"_chat-item--card-image_1oblk_123","chat-item--card-content":"_chat-item--card-content_1oblk_127","chat-item--card-buttons":"_chat-item--card-buttons_1oblk_134","chat-item--carousel":"_chat-item--carousel_1oblk_138","chat-item--carousel-card":"_chat-item--carousel-card_1oblk_147","chat-item--carousel-left-navigation":"_chat-item--carousel-left-navigation_1oblk_155","chat-item--carousel-right-navigation":"_chat-item--carousel-right-navigation_1oblk_162","swiper-wrapper":"_swiper-wrapper_1oblk_169"};function Ag(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Nu(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Ag(t[n])&&Ag(e[n])&&Object.keys(t[n]).length>0&&Nu(e[n],t[n])})}const Og={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Mr(){const e=typeof document<"u"?document:{};return Nu(e,Og),e}const fy={document:Og,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Wt(){const e=typeof window<"u"?window:{};return Nu(e,fy),e}function py(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Ru(e,t=0){return setTimeout(e,t)}function cl(){return Date.now()}function hy(e){const t=Wt();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function gy(e,t="x"){const n=Wt();let r,i,s;const l=hy(e);return n.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(c=>c.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(i==="none"?"":i)):(s=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=s.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=s.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function dl(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function my(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function En(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const i=e[r];if(i!=null&&!my(i)){const s=Object.keys(Object(i)).filter(l=>n.indexOf(l)<0);for(let l=0,c=s.length;l<c;l+=1){const d=s[l],f=Object.getOwnPropertyDescriptor(i,d);f!==void 0&&f.enumerable&&(dl(t[d])&&dl(i[d])?i[d].__swiper__?t[d]=i[d]:En(t[d],i[d]):!dl(t[d])&&dl(i[d])?(t[d]={},i[d].__swiper__?t[d]=i[d]:En(t[d],i[d])):t[d]=i[d])}}}return t}function ul(e,t,n){e.style.setProperty(t,n)}function $g({swiper:e,targetPosition:t,side:n}){const r=Wt(),i=-e.translate;let s=null,l;const c=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const d=t>i?"next":"prev",f=(g,v)=>d==="next"&&g>=v||d==="prev"&&g<=v,m=()=>{l=new Date().getTime(),s===null&&(s=l);const g=Math.max(Math.min((l-s)/c,1),0),v=.5-Math.cos(g*Math.PI)/2;let b=i+v*(t-i);if(f(b,t)&&(b=t),e.wrapperEl.scrollTo({[n]:b}),f(b,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:b})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(m)};m()}function br(e,t=""){return[...e.children].filter(n=>n.matches(t))}function Dg(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function vy(e){const t=Wt(),n=Mr(),r=e.getBoundingClientRect(),i=n.body,s=e.clientTop||i.clientTop||0,l=e.clientLeft||i.clientLeft||0,c=e===t?t.scrollY:e.scrollTop,d=e===t?t.scrollX:e.scrollLeft;return{top:r.top+c-s,left:r.left+d-l}}function by(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function _y(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function li(e,t){return Wt().getComputedStyle(e,null).getPropertyValue(t)}function Mg(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Lu(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Pg(e,t,n){const r=Wt();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}let ju;function xy(){const e=Wt(),t=Mr();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Ng(){return ju||(ju=xy()),ju}let ku;function Ey({userAgent:e}={}){const t=Ng(),n=Wt(),r=n.navigator.platform,i=e||n.navigator.userAgent,s={ios:!1,android:!1},l=n.screen.width,c=n.screen.height,d=i.match(/(Android);?[\s\/]+([\d.]+)?/);let f=i.match(/(iPad).*OS\s([\d_]+)/);const m=i.match(/(iPod)(.*OS\s([\d_]+))?/),g=!f&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=r==="Win32";let b=r==="MacIntel";const E=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!f&&b&&t.touch&&E.indexOf(`${l}x${c}`)>=0&&(f=i.match(/(Version)\/([\d.]+)/),f||(f=[0,1,"13_0_0"]),b=!1),d&&!v&&(s.os="android",s.android=!0),(f||g||m)&&(s.os="ios",s.ios=!0),s}function wy(e={}){return ku||(ku=Ey(e)),ku}let Fu;function yy(){const e=Wt();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[i,s]=r.split("Version/")[1].split(" ")[0].split(".").map(l=>Number(l));t=i<16||i===16&&s<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function Cy(){return Fu||(Fu=yy()),Fu}function Ty({swiper:e,on:t,emit:n}){const r=Wt();let i=null,s=null;const l=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},c=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(m=>{s=r.requestAnimationFrame(()=>{const{width:g,height:v}=e;let b=g,E=v;m.forEach(({contentBoxSize:_,contentRect:w,target:y})=>{y&&y!==e.el||(b=w?w.width:(_[0]||_).inlineSize,E=w?w.height:(_[0]||_).blockSize)}),(b!==g||E!==v)&&l()})}),i.observe(e.el))},d=()=>{s&&r.cancelAnimationFrame(s),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},f=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){c();return}r.addEventListener("resize",l),r.addEventListener("orientationchange",f)}),t("destroy",()=>{d(),r.removeEventListener("resize",l),r.removeEventListener("orientationchange",f)})}function Sy({swiper:e,extendParams:t,on:n,emit:r}){const i=[],s=Wt(),l=(f,m={})=>{const g=s.MutationObserver||s.WebkitMutationObserver,v=new g(b=>{if(e.__preventObserver__)return;if(b.length===1){r("observerUpdate",b[0]);return}const E=function(){r("observerUpdate",b[0])};s.requestAnimationFrame?s.requestAnimationFrame(E):s.setTimeout(E,0)});v.observe(f,{attributes:typeof m.attributes>"u"?!0:m.attributes,childList:typeof m.childList>"u"?!0:m.childList,characterData:typeof m.characterData>"u"?!0:m.characterData}),i.push(v)},c=()=>{if(e.params.observer){if(e.params.observeParents){const f=Lu(e.el);for(let m=0;m<f.length;m+=1)l(f[m])}l(e.el,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},d=()=>{i.forEach(f=>{f.disconnect()}),i.splice(0,i.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",c),n("destroy",d)}const Iy={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(...s){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,s)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(s,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(l=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(i,[l,...r])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(c=>{c.apply(i,r)})}),t}};function Ay(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(li(r,"padding-left")||0,10)-parseInt(li(r,"padding-right")||0,10),n=n-parseInt(li(r,"padding-top")||0,10)-parseInt(li(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function Oy(){const e=this;function t(L){return e.isHorizontal()?L:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[L]}function n(L,G){return parseFloat(L.getPropertyValue(t(G))||0)}const r=e.params,{wrapperEl:i,slidesEl:s,size:l,rtlTranslate:c,wrongRTL:d}=e,f=e.virtual&&r.virtual.enabled,m=f?e.virtual.slides.length:e.slides.length,g=br(s,`.${e.params.slideClass}, swiper-slide`),v=f?e.virtual.slides.length:g.length;let b=[];const E=[],_=[];let w=r.slidesOffsetBefore;typeof w=="function"&&(w=r.slidesOffsetBefore.call(e));let y=r.slidesOffsetAfter;typeof y=="function"&&(y=r.slidesOffsetAfter.call(e));const T=e.snapGrid.length,S=e.slidesGrid.length;let O=r.spaceBetween,I=-w,M=0,N=0;if(typeof l>"u")return;typeof O=="string"&&O.indexOf("%")>=0?O=parseFloat(O.replace("%",""))/100*l:typeof O=="string"&&(O=parseFloat(O)),e.virtualSize=-O,g.forEach(L=>{c?L.style.marginLeft="":L.style.marginRight="",L.style.marginBottom="",L.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(ul(i,"--swiper-centered-offset-before",""),ul(i,"--swiper-centered-offset-after",""));const D=r.grid&&r.grid.rows>1&&e.grid;D&&e.grid.initSlides(v);let k;const Y=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(L=>typeof r.breakpoints[L].slidesPerView<"u").length>0;for(let L=0;L<v;L+=1){k=0;let G;if(g[L]&&(G=g[L]),D&&e.grid.updateSlide(L,G,v,t),!(g[L]&&li(G,"display")==="none")){if(r.slidesPerView==="auto"){Y&&(g[L].style[t("width")]="");const X=getComputedStyle(G),R=G.style.transform,K=G.style.webkitTransform;if(R&&(G.style.transform="none"),K&&(G.style.webkitTransform="none"),r.roundLengths)k=e.isHorizontal()?Pg(G,"width"):Pg(G,"height");else{const B=n(X,"width"),W=n(X,"padding-left"),J=n(X,"padding-right"),q=n(X,"margin-left"),U=n(X,"margin-right"),V=X.getPropertyValue("box-sizing");if(V&&V==="border-box")k=B+q+U;else{const{clientWidth:ce,offsetWidth:ue}=G;k=B+W+J+q+U+(ue-ce)}}R&&(G.style.transform=R),K&&(G.style.webkitTransform=K),r.roundLengths&&(k=Math.floor(k))}else k=(l-(r.slidesPerView-1)*O)/r.slidesPerView,r.roundLengths&&(k=Math.floor(k)),g[L]&&(g[L].style[t("width")]=`${k}px`);g[L]&&(g[L].swiperSlideSize=k),_.push(k),r.centeredSlides?(I=I+k/2+M/2+O,M===0&&L!==0&&(I=I-l/2-O),L===0&&(I=I-l/2-O),Math.abs(I)<1/1e3&&(I=0),r.roundLengths&&(I=Math.floor(I)),N%r.slidesPerGroup===0&&b.push(I),E.push(I)):(r.roundLengths&&(I=Math.floor(I)),(N-Math.min(e.params.slidesPerGroupSkip,N))%e.params.slidesPerGroup===0&&b.push(I),E.push(I),I=I+k+O),e.virtualSize+=k+O,M=k,N+=1}}if(e.virtualSize=Math.max(e.virtualSize,l)+y,c&&d&&(r.effect==="slide"||r.effect==="coverflow")&&(i.style.width=`${e.virtualSize+O}px`),r.setWrapperSize&&(i.style[t("width")]=`${e.virtualSize+O}px`),D&&e.grid.updateWrapperSize(k,b,t),!r.centeredSlides){const L=[];for(let G=0;G<b.length;G+=1){let X=b[G];r.roundLengths&&(X=Math.floor(X)),b[G]<=e.virtualSize-l&&L.push(X)}b=L,Math.floor(e.virtualSize-l)-Math.floor(b[b.length-1])>1&&b.push(e.virtualSize-l)}if(f&&r.loop){const L=_[0]+O;if(r.slidesPerGroup>1){const G=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),X=L*r.slidesPerGroup;for(let R=0;R<G;R+=1)b.push(b[b.length-1]+X)}for(let G=0;G<e.virtual.slidesBefore+e.virtual.slidesAfter;G+=1)r.slidesPerGroup===1&&b.push(b[b.length-1]+L),E.push(E[E.length-1]+L),e.virtualSize+=L}if(b.length===0&&(b=[0]),O!==0){const L=e.isHorizontal()&&c?"marginLeft":t("marginRight");g.filter((G,X)=>!r.cssMode||r.loop?!0:X!==g.length-1).forEach(G=>{G.style[L]=`${O}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let L=0;_.forEach(X=>{L+=X+(O||0)}),L-=O;const G=L-l;b=b.map(X=>X<=0?-w:X>G?G+y:X)}if(r.centerInsufficientSlides){let L=0;if(_.forEach(G=>{L+=G+(O||0)}),L-=O,L<l){const G=(l-L)/2;b.forEach((X,R)=>{b[R]=X-G}),E.forEach((X,R)=>{E[R]=X+G})}}if(Object.assign(e,{slides:g,snapGrid:b,slidesGrid:E,slidesSizesGrid:_}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){ul(i,"--swiper-centered-offset-before",`${-b[0]}px`),ul(i,"--swiper-centered-offset-after",`${e.size/2-_[_.length-1]/2}px`);const L=-e.snapGrid[0],G=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(X=>X+L),e.slidesGrid=e.slidesGrid.map(X=>X+G)}if(v!==m&&e.emit("slidesLengthChange"),b.length!==T&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),E.length!==S&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!f&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const L=`${r.containerModifierClass}backface-hidden`,G=e.el.classList.contains(L);v<=r.maxBackfaceHiddenSlides?G||e.el.classList.add(L):G&&e.el.classList.remove(L)}}function $y(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const l=c=>r?t.slides[t.getSlideIndexByData(c)]:t.slides[c];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(c=>{n.push(c)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const c=t.activeIndex+s;if(c>t.slides.length&&!r)break;n.push(l(c))}else n.push(l(t.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const c=n[s].offsetHeight;i=c>i?c:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function Dy(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function My(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:s}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let l=-e;i&&(l=e),r.forEach(d=>{d.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let c=n.spaceBetween;typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*t.size:typeof c=="string"&&(c=parseFloat(c));for(let d=0;d<r.length;d+=1){const f=r[d];let m=f.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(m-=r[0].swiperSlideOffset);const g=(l+(n.centeredSlides?t.minTranslate():0)-m)/(f.swiperSlideSize+c),v=(l-s[0]+(n.centeredSlides?t.minTranslate():0)-m)/(f.swiperSlideSize+c),b=-(l-m),E=b+t.slidesSizesGrid[d];(b>=0&&b<t.size-1||E>1&&E<=t.size||b<=0&&E>=t.size)&&(t.visibleSlides.push(f),t.visibleSlidesIndexes.push(d),r[d].classList.add(n.slideVisibleClass)),f.progress=i?-g:g,f.originalProgress=i?-v:v}}function Py(e){const t=this;if(typeof e>"u"){const m=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*m||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:s,isEnd:l,progressLoop:c}=t;const d=s,f=l;if(r===0)i=0,s=!0,l=!0;else{i=(e-t.minTranslate())/r;const m=Math.abs(e-t.minTranslate())<1,g=Math.abs(e-t.maxTranslate())<1;s=m||i<=0,l=g||i>=1,m&&(i=0),g&&(i=1)}if(n.loop){const m=t.getSlideIndexByData(0),g=t.getSlideIndexByData(t.slides.length-1),v=t.slidesGrid[m],b=t.slidesGrid[g],E=t.slidesGrid[t.slidesGrid.length-1],_=Math.abs(e);_>=v?c=(_-v)/E:c=(_+E-b)/E,c>1&&(c-=1)}Object.assign(t,{progress:i,progressLoop:c,isBeginning:s,isEnd:l}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!d&&t.emit("reachBeginning toEdge"),l&&!f&&t.emit("reachEnd toEdge"),(d&&!s||f&&!l)&&t.emit("fromEdge"),t.emit("progress",i)}function Ny(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,s=e.virtual&&n.virtual.enabled,l=d=>br(r,`.${n.slideClass}${d}, swiper-slide${d}`)[0];t.forEach(d=>{d.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let c;if(s)if(n.loop){let d=i-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),c=l(`[data-swiper-slide-index="${d}"]`)}else c=l(`[data-swiper-slide-index="${i}"]`);else c=t[i];if(c){c.classList.add(n.slideActiveClass);let d=_y(c,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!d&&(d=t[0]),d&&d.classList.add(n.slideNextClass);let f=by(c,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!f===0&&(f=t[t.length-1]),f&&f.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const fl=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const i=r.querySelector(`.${e.params.lazyPreloaderClass}`);i&&i.remove()}},Bu=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},zu=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const l=i,c=[l-t];c.push(...Array.from({length:t}).map((d,f)=>l+r+f)),e.slides.forEach((d,f)=>{c.includes(d.column)&&Bu(e,f)});return}const s=i+r-1;if(e.params.rewind||e.params.loop)for(let l=i-t;l<=s+t;l+=1){const c=(l%n+n)%n;(c<i||c>s)&&Bu(e,c)}else for(let l=Math.max(i-t,0);l<=Math.min(s+t,n-1);l+=1)l!==i&&(l>s||l<i)&&Bu(e,l)};function Ry(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let s=0;s<t.length;s+=1)typeof t[s+1]<"u"?r>=t[s]&&r<t[s+1]-(t[s+1]-t[s])/2?i=s:r>=t[s]&&r<t[s+1]&&(i=s+1):r>=t[s]&&(i=s);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function Ly(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:s,realIndex:l,snapIndex:c}=t;let d=e,f;const m=v=>{let b=v-t.virtual.slidesBefore;return b<0&&(b=t.virtual.slides.length+b),b>=t.virtual.slides.length&&(b-=t.virtual.slides.length),b};if(typeof d>"u"&&(d=Ry(t)),r.indexOf(n)>=0)f=r.indexOf(n);else{const v=Math.min(i.slidesPerGroupSkip,d);f=v+Math.floor((d-v)/i.slidesPerGroup)}if(f>=r.length&&(f=r.length-1),d===s){f!==c&&(t.snapIndex=f,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=m(d));return}let g;t.virtual&&i.virtual.enabled&&i.loop?g=m(d):t.slides[d]?g=parseInt(t.slides[d].getAttribute("data-swiper-slide-index")||d,10):g=d,Object.assign(t,{previousSnapIndex:c,snapIndex:f,previousRealIndex:l,realIndex:g,previousIndex:s,activeIndex:d}),t.initialized&&zu(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==g&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function jy(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let i=!1,s;if(r){for(let l=0;l<t.slides.length;l+=1)if(t.slides[l]===r){i=!0,s=l;break}}if(r&&i)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=s;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const ky={updateSize:Ay,updateSlides:Oy,updateAutoHeight:$y,updateSlidesOffset:Dy,updateSlidesProgress:My,updateProgress:Py,updateSlidesClasses:Ny,updateActiveIndex:Ly,updateClickedSlide:jy};function Fy(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:s}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let l=gy(s,e);return l+=t.cssOverflowAdjustment(),r&&(l=-l),l||0}function By(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:s,progress:l}=n;let c=0,d=0;const f=0;n.isHorizontal()?c=r?-e:e:d=e,i.roundLengths&&(c=Math.floor(c),d=Math.floor(d)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?c:d,i.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-c:-d:i.virtualTranslate||(n.isHorizontal()?c-=n.cssOverflowAdjustment():d-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${c}px, ${d}px, ${f}px)`);let m;const g=n.maxTranslate()-n.minTranslate();g===0?m=0:m=(e-n.minTranslate())/g,m!==l&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function zy(){return-this.snapGrid[0]}function Gy(){return-this.snapGrid[this.snapGrid.length-1]}function Hy(e=0,t=this.params.speed,n=!0,r=!0,i){const s=this,{params:l,wrapperEl:c}=s;if(s.animating&&l.preventInteractionOnTransition)return!1;const d=s.minTranslate(),f=s.maxTranslate();let m;if(r&&e>d?m=d:r&&e<f?m=f:m=e,s.updateProgress(m),l.cssMode){const g=s.isHorizontal();if(t===0)c[g?"scrollLeft":"scrollTop"]=-m;else{if(!s.support.smoothScroll)return $g({swiper:s,targetPosition:-m,side:g?"left":"top"}),!0;c.scrollTo({[g?"left":"top"]:-m,behavior:"smooth"})}return!0}return t===0?(s.setTransition(0),s.setTranslate(m),n&&(s.emit("beforeTransitionStart",t,i),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(m),n&&(s.emit("beforeTransitionStart",t,i),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(v){!s||s.destroyed||v.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}const Uy={getTranslate:Fy,setTranslate:By,minTranslate:zy,maxTranslate:Gy,translateTo:Hy};function Vy(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function Rg({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:i,previousIndex:s}=e;let l=n;if(l||(i>s?l="next":i<s?l="prev":l="reset"),e.emit(`transition${r}`),t&&i!==s){if(l==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),l==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function Wy(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Rg({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function qy(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),Rg({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const Yy={setTransition:Vy,transitionStart:Wy,transitionEnd:qy};function Zy(e=0,t=this.params.speed,n=!0,r,i){typeof e=="string"&&(e=parseInt(e,10));const s=this;let l=e;l<0&&(l=0);const{params:c,snapGrid:d,slidesGrid:f,previousIndex:m,activeIndex:g,rtlTranslate:v,wrapperEl:b,enabled:E}=s;if(s.animating&&c.preventInteractionOnTransition||!E&&!r&&!i)return!1;const _=Math.min(s.params.slidesPerGroupSkip,l);let w=_+Math.floor((l-_)/s.params.slidesPerGroup);w>=d.length&&(w=d.length-1);const y=-d[w];if(c.normalizeSlideIndex)for(let S=0;S<f.length;S+=1){const O=-Math.floor(y*100),I=Math.floor(f[S]*100),M=Math.floor(f[S+1]*100);typeof f[S+1]<"u"?O>=I&&O<M-(M-I)/2?l=S:O>=I&&O<M&&(l=S+1):O>=I&&(l=S)}if(s.initialized&&l!==g&&(!s.allowSlideNext&&(v?y>s.translate&&y>s.minTranslate():y<s.translate&&y<s.minTranslate())||!s.allowSlidePrev&&y>s.translate&&y>s.maxTranslate()&&(g||0)!==l))return!1;l!==(m||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(y);let T;if(l>g?T="next":l<g?T="prev":T="reset",v&&-y===s.translate||!v&&y===s.translate)return s.updateActiveIndex(l),c.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),c.effect!=="slide"&&s.setTranslate(y),T!=="reset"&&(s.transitionStart(n,T),s.transitionEnd(n,T)),!1;if(c.cssMode){const S=s.isHorizontal(),O=v?y:-y;if(t===0){const I=s.virtual&&s.params.virtual.enabled;I&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),I&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{b[S?"scrollLeft":"scrollTop"]=O})):b[S?"scrollLeft":"scrollTop"]=O,I&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return $g({swiper:s,targetPosition:O,side:S?"left":"top"}),!0;b.scrollTo({[S?"left":"top"]:O,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(y),s.updateActiveIndex(l),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,T),t===0?s.transitionEnd(n,T):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(O){!s||s.destroyed||O.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,T))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function Xy(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const i=this;let s=e;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?s=s+i.virtual.slidesBefore:s=i.getSlideIndexByData(s)),i.slideTo(s,t,n,r)}function Ky(e=this.params.speed,t=!0,n){const r=this,{enabled:i,params:s,animating:l}=r;if(!i)return r;let c=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(c=Math.max(r.slidesPerViewDynamic("current",!0),1));const d=r.activeIndex<s.slidesPerGroupSkip?1:c,f=r.virtual&&s.virtual.enabled;if(s.loop){if(l&&!f&&s.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return s.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+d,e,t,n)}function Qy(e=this.params.speed,t=!0,n){const r=this,{params:i,snapGrid:s,slidesGrid:l,rtlTranslate:c,enabled:d,animating:f}=r;if(!d)return r;const m=r.virtual&&i.virtual.enabled;if(i.loop){if(f&&!m&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const g=c?r.translate:-r.translate;function v(y){return y<0?-Math.floor(Math.abs(y)):Math.floor(y)}const b=v(g),E=s.map(y=>v(y));let _=s[E.indexOf(b)-1];if(typeof _>"u"&&i.cssMode){let y;s.forEach((T,S)=>{b>=T&&(y=S)}),typeof y<"u"&&(_=s[y>0?y-1:y])}let w=0;if(typeof _<"u"&&(w=l.indexOf(_),w<0&&(w=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(w=w-r.slidesPerViewDynamic("previous",!0)+1,w=Math.max(w,0))),i.rewind&&r.isBeginning){const y=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(y,e,t,n)}return r.slideTo(w,e,t,n)}function Jy(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function e8(e=this.params.speed,t=!0,n,r=.5){const i=this;let s=i.activeIndex;const l=Math.min(i.params.slidesPerGroupSkip,s),c=l+Math.floor((s-l)/i.params.slidesPerGroup),d=i.rtlTranslate?i.translate:-i.translate;if(d>=i.snapGrid[c]){const f=i.snapGrid[c],m=i.snapGrid[c+1];d-f>(m-f)*r&&(s+=i.params.slidesPerGroup)}else{const f=i.snapGrid[c-1],m=i.snapGrid[c];d-f<=(m-f)*r&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,e,t,n)}function t8(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,s;const l=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?i<e.loopedSlides-r/2||i>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(br(n,`${l}[data-swiper-slide-index="${s}"]`)[0]),Ru(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(br(n,`${l}[data-swiper-slide-index="${s}"]`)[0]),Ru(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}const n8={slideTo:Zy,slideToLoop:Xy,slideNext:Ky,slidePrev:Qy,slideReset:Jy,slideToClosest:e8,slideToClickedSlide:t8};function r8(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;br(r,`.${n.slideClass}, swiper-slide`).forEach((s,l)=>{s.setAttribute("data-swiper-slide-index",l)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function i8({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,byController:s,byMousewheel:l}={}){const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:d,allowSlidePrev:f,allowSlideNext:m,slidesEl:g,params:v}=c;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&v.virtual.enabled){t&&(!v.centeredSlides&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):v.centeredSlides&&c.snapIndex<v.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=f,c.allowSlideNext=m,c.emit("loopFix");return}const b=v.slidesPerView==="auto"?c.slidesPerViewDynamic():Math.ceil(parseFloat(v.slidesPerView,10));let E=v.loopedSlides||b;E%v.slidesPerGroup!==0&&(E+=v.slidesPerGroup-E%v.slidesPerGroup),c.loopedSlides=E;const _=[],w=[];let y=c.activeIndex;typeof i>"u"?i=c.getSlideIndex(c.slides.filter(M=>M.classList.contains(v.slideActiveClass))[0]):y=i;const T=n==="next"||!n,S=n==="prev"||!n;let O=0,I=0;if(i<E){O=Math.max(E-i,v.slidesPerGroup);for(let M=0;M<E-i;M+=1){const N=M-Math.floor(M/d.length)*d.length;_.push(d.length-N-1)}}else if(i>c.slides.length-E*2){I=Math.max(i-(c.slides.length-E*2),v.slidesPerGroup);for(let M=0;M<I;M+=1){const N=M-Math.floor(M/d.length)*d.length;w.push(N)}}if(S&&_.forEach(M=>{c.slides[M].swiperLoopMoveDOM=!0,g.prepend(c.slides[M]),c.slides[M].swiperLoopMoveDOM=!1}),T&&w.forEach(M=>{c.slides[M].swiperLoopMoveDOM=!0,g.append(c.slides[M]),c.slides[M].swiperLoopMoveDOM=!1}),c.recalcSlides(),v.slidesPerView==="auto"&&c.updateSlides(),v.watchSlidesProgress&&c.updateSlidesOffset(),t){if(_.length>0&&S)if(typeof e>"u"){const M=c.slidesGrid[y],D=c.slidesGrid[y+O]-M;l?c.setTranslate(c.translate-D):(c.slideTo(y+O,0,!1,!0),r&&(c.touches[c.isHorizontal()?"startX":"startY"]+=D))}else r&&c.slideToLoop(e,0,!1,!0);else if(w.length>0&&T)if(typeof e>"u"){const M=c.slidesGrid[y],D=c.slidesGrid[y-I]-M;l?c.setTranslate(c.translate-D):(c.slideTo(y-I,0,!1,!0),r&&(c.touches[c.isHorizontal()?"startX":"startY"]+=D))}else c.slideToLoop(e,0,!1,!0)}if(c.allowSlidePrev=f,c.allowSlideNext=m,c.controller&&c.controller.control&&!s){const M={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(N=>{!N.destroyed&&N.params.loop&&N.loopFix(M)}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix(M)}c.emit("loopFix")}function o8(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const s=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[s]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const s8={loopCreate:r8,loopFix:i8,loopDestroy:o8};function a8(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function l8(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const c8={setGrabCursor:a8,unsetGrabCursor:l8};function d8(e,t=this){function n(r){if(!r||r===Mr()||r===Wt())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function u8(e){const t=this,n=Mr(),r=Wt(),i=t.touchEventsData;i.evCache.push(e);const{params:s,touches:l,enabled:c}=t;if(!c||!s.simulateTouch&&e.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let d=e;d.originalEvent&&(d=d.originalEvent);let f=d.target;if(s.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(f)||"which"in d&&d.which===3||"button"in d&&d.button>0||i.isTouched&&i.isMoved)return;const m=!!s.noSwipingClass&&s.noSwipingClass!=="",g=e.composedPath?e.composedPath():e.path;m&&d.target&&d.target.shadowRoot&&g&&(f=g[0]);const v=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,b=!!(d.target&&d.target.shadowRoot);if(s.noSwiping&&(b?d8(v,f):f.closest(v))){t.allowClick=!0;return}if(s.swipeHandler&&!f.closest(s.swipeHandler))return;l.currentX=d.pageX,l.currentY=d.pageY;const E=l.currentX,_=l.currentY,w=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,y=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(w&&(E<=y||E>=r.innerWidth-y))if(w==="prevent")e.preventDefault();else return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=E,l.startY=_,i.touchStartTime=cl(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let T=!0;f.matches(i.focusableElements)&&(T=!1,f.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==f&&n.activeElement.blur();const S=T&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||S)&&!f.isContentEditable&&d.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",d)}function f8(e){const t=Mr(),n=this,r=n.touchEventsData,{params:i,touches:s,rtlTranslate:l,enabled:c}=n;if(!c||!i.simulateTouch&&e.pointerType==="mouse")return;let d=e;if(d.originalEvent&&(d=d.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",d);return}const f=r.evCache.findIndex(M=>M.pointerId===d.pointerId);f>=0&&(r.evCache[f]=d);const m=r.evCache.length>1?r.evCache[0]:d,g=m.pageX,v=m.pageY;if(d.preventedByNestedSwiper){s.startX=g,s.startY=v;return}if(!n.allowTouchMove){d.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:g,startY:v,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:g,currentY:v}),r.touchStartTime=cl());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(v<s.startY&&n.translate<=n.maxTranslate()||v>s.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(g<s.startX&&n.translate<=n.maxTranslate()||g>s.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&d.target===t.activeElement&&d.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",d),d.targetTouches&&d.targetTouches.length>1)return;s.currentX=g,s.currentY=v;const b=s.currentX-s.startX,E=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(b**2+E**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let M;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:b*b+E*E>=25&&(M=Math.atan2(Math.abs(E),Math.abs(b))*180/Math.PI,r.isScrolling=n.isHorizontal()?M>i.touchAngle:90-M>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",d),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&d.cancelable&&d.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&d.stopPropagation();let _=n.isHorizontal()?b:E,w=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(_=Math.abs(_)*(l?1:-1),w=Math.abs(w)*(l?1:-1)),s.diff=_,_*=i.touchRatio,l&&(_=-_,w=-w);const y=n.touchesDirection;n.swipeDirection=_>0?"prev":"next",n.touchesDirection=w>0?"prev":"next";const T=n.params.loop&&!i.cssMode;if(!r.isMoved){if(T&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const M=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(M)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",d)}let S;r.isMoved&&y!==n.touchesDirection&&T&&Math.abs(_)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),S=!0),n.emit("sliderMove",d),r.isMoved=!0,r.currentTranslate=_+r.startTranslate;let O=!0,I=i.resistanceRatio;if(i.touchReleaseOnEdges&&(I=0),_>0?(T&&!S&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(O=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+_)**I))):_<0&&(T&&!S&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(O=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-_)**I))),O&&(d.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(_)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function p8(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(S=>S.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:i,touches:s,rtlTranslate:l,slidesGrid:c,enabled:d}=t;if(!d||!i.simulateTouch&&e.pointerType==="mouse")return;let f=e;if(f.originalEvent&&(f=f.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",f),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const m=cl(),g=m-n.touchStartTime;if(t.allowClick){const S=f.path||f.composedPath&&f.composedPath();t.updateClickedSlide(S&&S[0]||f.target),t.emit("tap click",f),g<300&&m-n.lastClickTime<300&&t.emit("doubleTap doubleClick",f)}if(n.lastClickTime=cl(),Ru(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||s.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let v;if(i.followFinger?v=l?t.translate:-t.translate:v=-n.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:v});return}let b=0,E=t.slidesSizesGrid[0];for(let S=0;S<c.length;S+=S<i.slidesPerGroupSkip?1:i.slidesPerGroup){const O=S<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof c[S+O]<"u"?v>=c[S]&&v<c[S+O]&&(b=S,E=c[S+O]-c[S]):v>=c[S]&&(b=S,E=c[c.length-1]-c[c.length-2])}let _=null,w=null;i.rewind&&(t.isBeginning?w=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(_=0));const y=(v-c[b])/E,T=b<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(g>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?_:b+T):t.slideTo(b)),t.swipeDirection==="prev"&&(y>1-i.longSwipesRatio?t.slideTo(b+T):w!==null&&y<0&&Math.abs(y)>i.longSwipesRatio?t.slideTo(w):t.slideTo(b))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(f.target===t.navigation.nextEl||f.target===t.navigation.prevEl)?f.target===t.navigation.nextEl?t.slideTo(b+T):t.slideTo(b):(t.swipeDirection==="next"&&t.slideTo(_!==null?_:b+T),t.swipeDirection==="prev"&&t.slideTo(w!==null?w:b))}}function Lg(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:s}=e,l=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const c=l&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!c?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!l?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function h8(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function g8(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const s=e.maxTranslate()-e.minTranslate();s===0?i=0:i=(e.translate-e.minTranslate())/s,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function m8(e){const t=this;fl(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let jg=!1;function v8(){}const kg=(e,t)=>{const n=Mr(),{params:r,el:i,wrapperEl:s,device:l}=e,c=!!r.nested,d=t==="on"?"addEventListener":"removeEventListener",f=t;i[d]("pointerdown",e.onTouchStart,{passive:!1}),n[d]("pointermove",e.onTouchMove,{passive:!1,capture:c}),n[d]("pointerup",e.onTouchEnd,{passive:!0}),n[d]("pointercancel",e.onTouchEnd,{passive:!0}),n[d]("pointerout",e.onTouchEnd,{passive:!0}),n[d]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[d]("click",e.onClick,!0),r.cssMode&&s[d]("scroll",e.onScroll),r.updateOnWindowResize?e[f](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",Lg,!0):e[f]("observerUpdate",Lg,!0),i[d]("load",e.onLoad,{capture:!0})};function b8(){const e=this,t=Mr(),{params:n}=e;e.onTouchStart=u8.bind(e),e.onTouchMove=f8.bind(e),e.onTouchEnd=p8.bind(e),n.cssMode&&(e.onScroll=g8.bind(e)),e.onClick=h8.bind(e),e.onLoad=m8.bind(e),jg||(t.addEventListener("touchstart",v8),jg=!0),kg(e,"on")}function _8(){kg(this,"off")}const x8={attachEvents:b8,detachEvents:_8},Fg=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function E8(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const l=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!l||e.currentBreakpoint===l)return;const d=(l in s?s[l]:void 0)||e.originalParams,f=Fg(e,r),m=Fg(e,d),g=r.enabled;f&&!m?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!f&&m&&(i.classList.add(`${r.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(_=>{if(typeof d[_]>"u")return;const w=r[_]&&r[_].enabled,y=d[_]&&d[_].enabled;w&&!y&&e[_].disable(),!w&&y&&e[_].enable()});const v=d.direction&&d.direction!==r.direction,b=r.loop&&(d.slidesPerView!==r.slidesPerView||v);v&&n&&e.changeDirection(),En(e.params,d);const E=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),g&&!E?e.disable():!g&&E&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",d),b&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",d)}function w8(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const i=Wt(),s=t==="window"?i.innerHeight:n.clientHeight,l=Object.keys(e).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const d=parseFloat(c.substr(1));return{value:s*d,point:c}}return{value:c,point:c}});l.sort((c,d)=>parseInt(c.value,10)-parseInt(d.value,10));for(let c=0;c<l.length;c+=1){const{point:d,value:f}=l[c];t==="window"?i.matchMedia(`(min-width: ${f}px)`).matches&&(r=d):f<=n.clientWidth&&(r=d)}return r||"max"}const y8={setBreakpoint:E8,getBreakpoint:w8};function C8(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function T8(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:s}=e,l=C8(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...l),i.classList.add(...t),e.emitContainerClasses()}function S8(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const I8={addClasses:T8,removeClasses:S8};function A8(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,s=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const O8={checkOverflow:A8},Bg={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function $8(e,t){return function(r={}){const i=Object.keys(r)[0],s=r[i];if(typeof s!="object"||s===null){En(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&e[i]===!0&&(e[i]={auto:!0}),!(i in e&&"enabled"in s)){En(t,r);return}e[i]===!0&&(e[i]={enabled:!0}),typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),En(t,r)}}const Gu={eventsEmitter:Iy,update:ky,translate:Uy,transition:Yy,slide:n8,loop:s8,grabCursor:c8,events:x8,breakpoints:y8,checkOverflow:O8,classes:I8},Hu={};let Ns=class Kr{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=En({},r),n&&!r.el&&(r.el=n);const i=Mr();if(r.el&&typeof r.el=="string"&&i.querySelectorAll(r.el).length>1){const d=[];return i.querySelectorAll(r.el).forEach(f=>{const m=En({},r,{el:f});d.push(new Kr(m))}),d}const s=this;s.__swiper__=!0,s.support=Ng(),s.device=wy({userAgent:r.userAgent}),s.browser=Cy(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],r.modules&&Array.isArray(r.modules)&&s.modules.push(...r.modules);const l={};s.modules.forEach(d=>{d({params:r,swiper:s,extendParams:$8(r,l),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const c=En({},Bg,l);return s.params=En({},c,Hu,r),s.originalParams=En({},s.params),s.passedParams=En({},r),s.params&&s.params.on&&Object.keys(s.params.on).forEach(d=>{s.on(d,s.params.on[d])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return s.params.direction==="horizontal"},isVertical(){return s.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=br(n,`.${r.slideClass}, swiper-slide`),s=Mg(i[0]);return Mg(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=br(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),l=(r.maxTranslate()-i)*t+i;r.translateTo(l,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:i,slides:s,slidesGrid:l,slidesSizesGrid:c,size:d,activeIndex:f}=r;let m=1;if(i.centeredSlides){let g=s[f]?s[f].swiperSlideSize:0,v;for(let b=f+1;b<s.length;b+=1)s[b]&&!v&&(g+=s[b].swiperSlideSize,m+=1,g>d&&(v=!0));for(let b=f-1;b>=0;b-=1)s[b]&&!v&&(g+=s[b].swiperSlideSize,m+=1,g>d&&(v=!0))}else if(t==="current")for(let g=f+1;g<s.length;g+=1)(n?l[g]+c[g]-l[f]<d:l[g]-l[f]<d)&&(m+=1);else for(let g=f-1;g>=0;g-=1)l[f]-l[g]<d&&(m+=1);return m}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(l=>{l.complete&&fl(t,l)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const l=t.rtlTranslate?t.translate*-1:t.translate,c=Math.min(Math.max(l,t.maxTranslate()),t.minTranslate());t.setTranslate(c),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const l=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(l.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):br(r,i())[0];return!l&&n.params.createElements&&(l=Dg("div",n.params.wrapperClass),r.append(l),br(r,`.${n.params.slideClass}`).forEach(c=>{l.append(c)})),Object.assign(n,{el:r,wrapperEl:l,slidesEl:n.isElement?r:l,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||li(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||li(r,"direction")==="rtl"),wrongRTL:li(l,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete?fl(n,i):i.addEventListener("load",s=>{fl(n,s.target)})}),zu(n),n.initialized=!0,zu(n),n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:i,el:s,wrapperEl:l,slides:c}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),s.removeAttribute("style"),l.removeAttribute("style"),c&&c.length&&c.forEach(d=>{d.classList.remove(i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),d.removeAttribute("style"),d.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(d=>{r.off(d)}),t!==!1&&(r.el.swiper=null,py(r)),r.destroyed=!0),null}static extendDefaults(t){En(Hu,t)}static get extendedDefaults(){return Hu}static get defaults(){return Bg}static installModule(t){Kr.prototype.__modules__||(Kr.prototype.__modules__=[]);const n=Kr.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Kr.installModule(n)),Kr):(Kr.installModule(t),Kr)}};Object.keys(Gu).forEach(e=>{Object.keys(Gu[e]).forEach(t=>{Ns.prototype[t]=Gu[e][t]})}),Ns.use([Ty,Sy]);function D8({swiper:e,extendParams:t,on:n,emit:r}){const i=Mr(),s=Wt();e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function l(f){if(!e.enabled)return;const{rtlTranslate:m}=e;let g=f;g.originalEvent&&(g=g.originalEvent);const v=g.keyCode||g.charCode,b=e.params.keyboard.pageUpDown,E=b&&v===33,_=b&&v===34,w=v===37,y=v===39,T=v===38,S=v===40;if(!e.allowSlideNext&&(e.isHorizontal()&&y||e.isVertical()&&S||_)||!e.allowSlidePrev&&(e.isHorizontal()&&w||e.isVertical()&&T||E))return!1;if(!(g.shiftKey||g.altKey||g.ctrlKey||g.metaKey)&&!(i.activeElement&&i.activeElement.nodeName&&(i.activeElement.nodeName.toLowerCase()==="input"||i.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(E||_||w||y||T||S)){let O=!1;if(Lu(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Lu(e.el,`.${e.params.slideActiveClass}`).length===0)return;const I=e.el,M=I.clientWidth,N=I.clientHeight,D=s.innerWidth,k=s.innerHeight,Y=vy(I);m&&(Y.left-=I.scrollLeft);const L=[[Y.left,Y.top],[Y.left+M,Y.top],[Y.left,Y.top+N],[Y.left+M,Y.top+N]];for(let G=0;G<L.length;G+=1){const X=L[G];if(X[0]>=0&&X[0]<=D&&X[1]>=0&&X[1]<=k){if(X[0]===0&&X[1]===0)continue;O=!0}}if(!O)return}e.isHorizontal()?((E||_||w||y)&&(g.preventDefault?g.preventDefault():g.returnValue=!1),((_||y)&&!m||(E||w)&&m)&&e.slideNext(),((E||w)&&!m||(_||y)&&m)&&e.slidePrev()):((E||_||T||S)&&(g.preventDefault?g.preventDefault():g.returnValue=!1),(_||S)&&e.slideNext(),(E||T)&&e.slidePrev()),r("keyPress",v)}}function c(){e.keyboard.enabled||(i.addEventListener("keydown",l),e.keyboard.enabled=!0)}function d(){e.keyboard.enabled&&(i.removeEventListener("keydown",l),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&c()}),n("destroy",()=>{e.keyboard.enabled&&d()}),Object.assign(e.keyboard,{enable:c,disable:d})}function M8(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let s=br(e.el,`.${r[i]}`)[0];s||(s=Dg("div",r[i]),s.className=r[i],e.el.append(s)),n[i]=s,t[i]=s}}),n}function P8({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const i=E=>(Array.isArray(E)||(E=[E].filter(_=>!!_)),E);function s(E){let _;return E&&typeof E=="string"&&e.isElement&&(_=e.el.shadowRoot.querySelector(E),_)?_:(E&&(typeof E=="string"&&(_=[...document.querySelectorAll(E)]),e.params.uniqueNavElements&&typeof E=="string"&&_.length>1&&e.el.querySelectorAll(E).length===1&&(_=e.el.querySelector(E))),E&&!_?E:_)}function l(E,_){const w=e.params.navigation;E=i(E),E.forEach(y=>{y&&(y.classList[_?"add":"remove"](...w.disabledClass.split(" ")),y.tagName==="BUTTON"&&(y.disabled=_),e.params.watchOverflow&&e.enabled&&y.classList[e.isLocked?"add":"remove"](w.lockClass))})}function c(){const{nextEl:E,prevEl:_}=e.navigation;if(e.params.loop){l(_,!1),l(E,!1);return}l(_,e.isBeginning&&!e.params.rewind),l(E,e.isEnd&&!e.params.rewind)}function d(E){E.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function f(E){E.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function m(){const E=e.params.navigation;if(e.params.navigation=M8(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(E.nextEl||E.prevEl))return;let _=s(E.nextEl),w=s(E.prevEl);Object.assign(e.navigation,{nextEl:_,prevEl:w}),_=i(_),w=i(w);const y=(T,S)=>{T&&T.addEventListener("click",S==="next"?f:d),!e.enabled&&T&&T.classList.add(...E.lockClass.split(" "))};_.forEach(T=>y(T,"next")),w.forEach(T=>y(T,"prev"))}function g(){let{nextEl:E,prevEl:_}=e.navigation;E=i(E),_=i(_);const w=(y,T)=>{y.removeEventListener("click",T==="next"?f:d),y.classList.remove(...e.params.navigation.disabledClass.split(" "))};E.forEach(y=>w(y,"next")),_.forEach(y=>w(y,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?b():(m(),c())}),n("toEdge fromEdge lock unlock",()=>{c()}),n("destroy",()=>{g()}),n("enable disable",()=>{let{nextEl:E,prevEl:_}=e.navigation;E=i(E),_=i(_),[...E,..._].filter(w=>!!w).forEach(w=>w.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(E,_)=>{let{nextEl:w,prevEl:y}=e.navigation;w=i(w),y=i(y);const T=_.target;if(e.params.navigation.hideOnClick&&!y.includes(T)&&!w.includes(T)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===T||e.pagination.el.contains(T)))return;let S;w.length?S=w[0].classList.contains(e.params.navigation.hiddenClass):y.length&&(S=y[0].classList.contains(e.params.navigation.hiddenClass)),r(S===!0?"navigationShow":"navigationHide"),[...w,...y].filter(O=>!!O).forEach(O=>O.classList.toggle(e.params.navigation.hiddenClass))}});const v=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),m(),c()},b=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),g()};Object.assign(e.navigation,{enable:v,disable:b,update:c,init:m,destroy:g})}function zi(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function ci(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:zi(t[r])&&zi(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:ci(e[r],t[r]):e[r]=t[r]})}function zg(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Gg(e={}){return e.pagination&&typeof e.pagination.el>"u"}function Hg(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function Ug(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function N8(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const Vg=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function R8(e={},t=!0){const n={on:{}},r={},i={};ci(n,Ns.defaults),ci(n,Ns.extendedDefaults),n._emitClasses=!0,n.init=!1;const s={},l=Vg.map(d=>d.replace(/_/,"")),c=Object.assign({},e);return Object.keys(c).forEach(d=>{typeof e[d]>"u"||(l.indexOf(d)>=0?zi(e[d])?(n[d]={},i[d]={},ci(n[d],e[d]),ci(i[d],e[d])):(n[d]=e[d],i[d]=e[d]):d.search(/on[A-Z]/)===0&&typeof e[d]=="function"?t?r[`${d[2].toLowerCase()}${d.substr(3)}`]=e[d]:n.on[`${d[2].toLowerCase()}${d.substr(3)}`]=e[d]:s[d]=e[d])}),["navigation","pagination","scrollbar"].forEach(d=>{n[d]===!0&&(n[d]={}),n[d]===!1&&delete n[d]}),{params:n,passedParams:i,rest:s,events:r}}function L8({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:s},l){zg(l)&&t&&n&&(s.params.navigation.nextEl=t,s.originalParams.navigation.nextEl=t,s.params.navigation.prevEl=n,s.originalParams.navigation.prevEl=n),Gg(l)&&r&&(s.params.pagination.el=r,s.originalParams.pagination.el=r),Hg(l)&&i&&(s.params.scrollbar.el=i,s.originalParams.scrollbar.el=i),s.init(e)}function j8(e,t,n,r,i){const s=[];if(!t)return s;const l=d=>{s.indexOf(d)<0&&s.push(d)};if(n&&r){const d=r.map(i),f=n.map(i);d.join("")!==f.join("")&&l("children"),r.length!==n.length&&l("children")}return Vg.filter(d=>d[0]==="_").map(d=>d.replace(/_/,"")).forEach(d=>{if(d in e&&d in t)if(zi(e[d])&&zi(t[d])){const f=Object.keys(e[d]),m=Object.keys(t[d]);f.length!==m.length?l(d):(f.forEach(g=>{e[d][g]!==t[d][g]&&l(d)}),m.forEach(g=>{e[d][g]!==t[d][g]&&l(d)}))}else e[d]!==t[d]&&l(d)}),s}function Wg(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function qg(e){const t=[];return p.Children.toArray(e).forEach(n=>{Wg(n)?t.push(n):n.props&&n.props.children&&qg(n.props.children).forEach(r=>t.push(r))}),t}function k8(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return p.Children.toArray(e).forEach(r=>{if(Wg(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=qg(r.props.children);i.length>0?i.forEach(s=>t.push(s)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function F8({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:s,scrollbarEl:l,paginationEl:c}){const d=r.filter(D=>D!=="children"&&D!=="direction"&&D!=="wrapperClass"),{params:f,pagination:m,navigation:g,scrollbar:v,virtual:b,thumbs:E}=e;let _,w,y,T,S,O,I,M;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&f.thumbs&&!f.thumbs.swiper&&(_=!0),r.includes("controller")&&n.controller&&n.controller.control&&f.controller&&!f.controller.control&&(w=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||c)&&(f.pagination||f.pagination===!1)&&m&&!m.el&&(y=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||l)&&(f.scrollbar||f.scrollbar===!1)&&v&&!v.el&&(T=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||s)&&(n.navigation.nextEl||i)&&(f.navigation||f.navigation===!1)&&g&&!g.prevEl&&!g.nextEl&&(S=!0);const N=D=>{e[D]&&(e[D].destroy(),D==="navigation"?(e.isElement&&(e[D].prevEl.remove(),e[D].nextEl.remove()),f[D].prevEl=void 0,f[D].nextEl=void 0,e[D].prevEl=void 0,e[D].nextEl=void 0):(e.isElement&&e[D].el.remove(),f[D].el=void 0,e[D].el=void 0))};r.includes("loop")&&e.isElement&&(f.loop&&!n.loop?O=!0:!f.loop&&n.loop?I=!0:M=!0),d.forEach(D=>{if(zi(f[D])&&zi(n[D]))ci(f[D],n[D]),(D==="navigation"||D==="pagination"||D==="scrollbar")&&"enabled"in n[D]&&!n[D].enabled&&N(D);else{const k=n[D];(k===!0||k===!1)&&(D==="navigation"||D==="pagination"||D==="scrollbar")?k===!1&&N(D):f[D]=n[D]}}),d.includes("controller")&&!w&&e.controller&&e.controller.control&&f.controller&&f.controller.control&&(e.controller.control=f.controller.control),r.includes("children")&&t&&b&&f.virtual.enabled&&(b.slides=t,b.update(!0)),r.includes("children")&&t&&f.loop&&(M=!0),_&&E.init()&&E.update(!0),w&&(e.controller.control=f.controller.control),y&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(c)),c&&(f.pagination.el=c),m.init(),m.render(),m.update()),T&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(l)),l&&(f.scrollbar.el=l),v.init(),v.updateSize(),v.setTranslate()),S&&(e.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(i)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(s))),i&&(f.navigation.nextEl=i),s&&(f.navigation.prevEl=s),g.init(),g.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(O||M)&&e.loopDestroy(),(I||M)&&e.loopCreate(),e.update()}function B8(e,t,n){if(!n)return null;const r=m=>{let g=m;return m<0?g=t.length+m:g>=t.length&&(g=g-t.length),g},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:l}=n,c=e.params.loop?-t.length:0,d=e.params.loop?t.length*2:t.length,f=[];for(let m=c;m<d;m+=1)m>=s&&m<=l&&f.push(t[r(m)]);return f.map((m,g)=>p.cloneElement(m,{swiper:e,style:i,key:`slide-${g}`}))}const z8=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Rs(e,t){return typeof window>"u"?p.useEffect(e,t):p.useLayoutEffect(e,t)}const Yg=p.createContext(null),G8=p.createContext(null);function Uu(){return Uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uu.apply(this,arguments)}const Zg=p.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:s,onSwiper:l,...c}=e===void 0?{}:e,d=!1;const[f,m]=p.useState("swiper"),[g,v]=p.useState(null),[b,E]=p.useState(!1),_=p.useRef(!1),w=p.useRef(null),y=p.useRef(null),T=p.useRef(null),S=p.useRef(null),O=p.useRef(null),I=p.useRef(null),M=p.useRef(null),N=p.useRef(null),{params:D,passedParams:k,rest:Y,events:L}=R8(c),{slides:G,slots:X}=k8(s),R=()=>{E(!b)};Object.assign(D.on,{_containerClasses(q,U){m(U)}});const K=()=>{Object.assign(D.on,L),d=!0;const q={...D};if(delete q.wrapperClass,y.current=new Ns(q),y.current.virtual&&y.current.params.virtual.enabled){y.current.virtual.slides=G;const U={cache:!1,slides:G,renderExternal:v,renderExternalUpdate:!1};ci(y.current.params.virtual,U),ci(y.current.originalParams.virtual,U)}};w.current||K(),y.current&&y.current.on("_beforeBreakpoint",R);const B=()=>{d||!L||!y.current||Object.keys(L).forEach(q=>{y.current.on(q,L[q])})},W=()=>{!L||!y.current||Object.keys(L).forEach(q=>{y.current.off(q,L[q])})};p.useEffect(()=>()=>{y.current&&y.current.off("_beforeBreakpoint",R)}),p.useEffect(()=>{!_.current&&y.current&&(y.current.emitSlidesClasses(),_.current=!0)}),Rs(()=>{if(t&&(t.current=w.current),!!w.current)return y.current.destroyed&&K(),L8({el:w.current,nextEl:O.current,prevEl:I.current,paginationEl:M.current,scrollbarEl:N.current,swiper:y.current},D),l&&l(y.current),()=>{y.current&&!y.current.destroyed&&y.current.destroy(!0,!1)}},[]),Rs(()=>{B();const q=j8(k,T.current,G,S.current,U=>U.key);return T.current=k,S.current=G,q.length&&y.current&&!y.current.destroyed&&F8({swiper:y.current,slides:G,passedParams:k,changedParams:q,nextEl:O.current,prevEl:I.current,scrollbarEl:N.current,paginationEl:M.current}),()=>{W()}}),Rs(()=>{z8(y.current)},[g]);function J(){return D.virtual?B8(y.current,G,g):G.map((q,U)=>p.cloneElement(q,{swiper:y.current,swiperSlideIndex:U}))}return p.createElement(r,Uu({ref:w,className:Ug(`${f}${n?` ${n}`:""}`)},Y),p.createElement(G8.Provider,{value:y.current},X["container-start"],p.createElement(i,{className:N8(D.wrapperClass)},X["wrapper-start"],J(),X["wrapper-end"]),zg(D)&&p.createElement(p.Fragment,null,p.createElement("div",{ref:I,className:"swiper-button-prev"}),p.createElement("div",{ref:O,className:"swiper-button-next"})),Hg(D)&&p.createElement("div",{ref:N,className:"swiper-scrollbar"}),Gg(D)&&p.createElement("div",{ref:M,className:"swiper-pagination"}),X["container-end"]))});Zg.displayName="Swiper";function Vu(){return Vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vu.apply(this,arguments)}const Xg=p.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:s,zoom:l,lazy:c,virtualIndex:d,swiperSlideIndex:f,...m}=e===void 0?{}:e;const g=p.useRef(null),[v,b]=p.useState("swiper-slide"),[E,_]=p.useState(!1);function w(O,I,M){I===g.current&&b(M)}Rs(()=>{if(typeof f<"u"&&(g.current.swiperSlideIndex=f),t&&(t.current=g.current),!(!g.current||!s)){if(s.destroyed){v!=="swiper-slide"&&b("swiper-slide");return}return s.on("_slideClass",w),()=>{s&&s.off("_slideClass",w)}}}),Rs(()=>{s&&g.current&&!s.destroyed&&b(s.getSlideClasses(g.current))},[s]);const y={isActive:v.indexOf("swiper-slide-active")>=0,isVisible:v.indexOf("swiper-slide-visible")>=0,isPrev:v.indexOf("swiper-slide-prev")>=0,isNext:v.indexOf("swiper-slide-next")>=0},T=()=>typeof r=="function"?r(y):r,S=()=>{_(!0)};return p.createElement(n,Vu({ref:g,className:Ug(`${v}${i?` ${i}`:""}`),"data-swiper-slide-index":d,onLoad:S},m),l&&p.createElement(Yg.Provider,{value:y},p.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof l=="number"?l:void 0},T(),c&&!E&&p.createElement("div",{className:"swiper-lazy-preloader"}))),!l&&p.createElement(Yg.Provider,{value:y},T(),c&&!E&&p.createElement("div",{className:"swiper-lazy-preloader"})))});Xg.displayName="SwiperSlide";const H8=e=>{const{avatar:t,message:n,feedbackRequested:r,onFeedbackClicked:i,onMessageButtonClicked:s}=e,[l,c]=p.useState(null),[d,f]=p.useState(null),[m,g]=p.useState(),v=_=>_.isPositive?u.jsx("div",{className:oe(Ve["chat-item--icon"],Ve["chat-item--feedback-given"]),children:u.jsx(ah,{className:"text--purple-800"})}):u.jsx("div",{className:oe(Ve["chat-item--icon"],Ve["chat-item--feedback-given"]),children:u.jsx(oh,{className:"text--purple-800"})}),b=_=>u.jsxs("div",{className:Ve["chat-item--feedback"],children:[u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-700",children:_||"Was it helpful?"}),u.jsxs("div",{className:Ve["chat-item-feedback-icons"],children:[u.jsx("button",{className:oe(Ve["chat-item--icon"],"cursor-pointer"),onClick:()=>i==null?void 0:i(!0),children:u.jsx(ah,{className:"text--gray-700"})}),u.jsx("button",{className:oe(Ve["chat-item--icon"],"cursor-pointer"),onClick:()=>i==null?void 0:i(!1),children:u.jsx(oh,{className:"text--gray-700"})})]})]}),E=_=>{switch(_.type){case"chat":return u.jsxs("div",{children:[u.jsxs("div",{className:oe(Ve["chat-item--chat"],Ve[`chat-item--chat-${_.whoSent}`]),children:[u.jsx(ye,{size:"xs",fontWeight:"regular",color:_.whoSent==="bot"?"gray-1000":"white",children:_.text}),r&&v(r)]}),_.whoSent==="bot"&&_.caption&&u.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:Ve["chat-item--caption"],children:_.caption}),_.whoSent==="bot"&&_.feedbackRequest&&!r&&b(_.feedbackRequestLabel)]});case"jpg":return u.jsxs("div",{className:Ve["chat-item--media"],children:[u.jsxs("div",{className:Ve["chat-item--feedback-requested"],children:[u.jsx("img",{src:_.imageUrl,alt:_.imageAlt,className:Ve["chat-item--image"]}),r&&v(r)]}),_.whoSent==="bot"&&_.caption&&u.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:Ve["chat-item--caption"],children:_.caption}),_.whoSent==="bot"&&_.feedbackRequest&&!r&&b(_.feedbackRequestLabel)]});case"mp4":return u.jsxs("div",{className:Ve["chat-item--media"],children:[u.jsxs("div",{className:Ve["chat-item--feedback-requested"],children:[u.jsx("iframe",{src:_.videoPreviewUrl,className:Ve["chat-item--video"],title:"Video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}),r&&v(r)]}),_.whoSent==="bot"&&_.caption&&u.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:Ve["chat-item--caption"],children:_.caption}),_.whoSent==="bot"&&_.feedbackRequest&&!r&&b(_.feedbackRequestLabel)]});case"button":return u.jsx("div",{className:Ve["chat-item--button-container"],children:_.buttons.map((w,y)=>u.jsx(gt,{onClick:()=>s==null?void 0:s((w==null?void 0:w.label)||""),...w},(w==null?void 0:w.id)??y))});case"typing":return u.jsx("div",{className:Ve["chat-item--typing"],children:u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-1000",children:"..."})});case"cards":return u.jsxs("div",{className:Ve["chat-item--carousel"],children:[u.jsx(Zg,{slidesPerView:"auto",modules:[P8,D8],onSlideChange:w=>g(w.activeIndex),navigation:{prevEl:l,nextEl:d},keyboard:{enabled:!0},className:Ve["swiper-wrapper"],children:_.cards.map((w,y)=>u.jsx(Xg,{children:u.jsxs("div",{className:Ve["chat-item--carousel-card"],children:[w.imageUrl&&u.jsx("img",{src:w.imageUrl,alt:w.imageAlt,className:Ve["chat-item--card-image"]}),u.jsxs("div",{className:Ve["chat-item--card-content"],children:[u.jsx(ye,{fontWeight:"bold",size:"sm",color:"gray-1000",children:w.title}),u.jsx(ye,{fontWeight:"regular",size:"xs",color:"gray-800",children:w.title}),w.buttons&&u.jsx("div",{className:Ve["chat-item--card-buttons"],children:w.buttons.map((T,S)=>u.jsx(gt,{...T,fullWidth:!0},(T==null?void 0:T.id)??S))})]})]})},y))}),_.cards.length>1&&u.jsxs(u.Fragment,{children:[u.jsx("div",{ref:w=>c(w),className:Ve["chat-item--carousel-left-navigation"],children:u.jsx(st,{color:"primary",variant:"outlined",disabled:m===0,children:u.jsx(Zx,{})})}),u.jsx("div",{ref:w=>f(w),className:Ve["chat-item--carousel-right-navigation"],children:u.jsx(st,{color:"primary",variant:"outlined",disabled:m===_.cards.length-1,children:u.jsx(Kx,{})})})]})]})}};return u.jsxs("div",{className:oe(Ve["chat-item"],Ve[`chat-item--${n.whoSent}`]),children:[n.whoSent==="bot"&&u.jsx("div",{className:Ve["chat-item--avatar-container"],children:u.jsx($o,{...t})}),E(n)]})},U8=e=>{const{avatar:t,messages:n,isTyping:r=!1,feedbackRequested:i=[],onMessageButtonClicked:s,onInputChange:l,onFeedbackClicked:c}=e,d=[...n,...r?[{type:"typing",whoSent:"bot"}]:[]],f=(g,v)=>{g.whoSent==="bot"&&g.type!=="typing"&&!i.find(b=>b.id===g.id)&&(c==null||c(g,v))},m=d[d.length-1].type==="button";return u.jsxs("div",{className:Sg["chat-content"],children:[u.jsx("div",{className:Sg["chat-messages"],children:d.map((g,v)=>{const b="id"in g?i.find(E=>E.id===g.id):void 0;return u.jsx(H8,{avatar:t,message:g,feedbackRequested:b,onMessageButtonClicked:s,onFeedbackClicked:E=>f(g,E)},(g==null?void 0:g.id)??v)})}),m?u.jsx("div",{children:u.jsx(Jn,{variant:"soft",color:"gray",label:"Choose an option to continue",closeIcon:!1})}):u.jsx(Ig,{placeholder:"Chat input",onChange:l})]})};/*!
|
|
101
|
+
}`;var Le=R_(function(){return Ye($,Ce+"return "+ie).apply(n,P)});if(Le.source=ie,qp(Le))throw Le;return Le}function yj(o){return Qe(o).toLowerCase()}function Cj(o){return Qe(o).toUpperCase()}function Tj(o,a,h){if(o=Qe(o),o&&(h||a===n))return U5(o);if(!o||!(a=Sn(a)))return o;var x=ur(o),C=ur(a),$=V5(x,C),P=W5(x,C)+1;return Ti(x,$,P).join("")}function Sj(o,a,h){if(o=Qe(o),o&&(h||a===n))return o.slice(0,Y5(o)+1);if(!o||!(a=Sn(a)))return o;var x=ur(o),C=W5(x,ur(a))+1;return Ti(x,0,C).join("")}function Ij(o,a,h){if(o=Qe(o),o&&(h||a===n))return o.replace(Te,"");if(!o||!(a=Sn(a)))return o;var x=ur(o),C=V5(x,ur(a));return Ti(x,C).join("")}function Aj(o,a){var h=Y,x=L;if(dt(a)){var C="separator"in a?a.separator:C;h="length"in a?Ne(a.length):h,x="omission"in a?Sn(a.omission):x}o=Qe(o);var $=o.length;if(Ko(o)){var P=ur(o);$=P.length}if(h>=$)return o;var F=h-Qo(x);if(F<1)return x;var H=P?Ti(P,0,F).join(""):o.slice(0,F);if(C===n)return H+x;if(P&&(F+=H.length-F),Yp(C)){if(o.slice(F).search(C)){var ee,te=H;for(C.global||(C=dp(C.source,Qe(zr.exec(C))+"g")),C.lastIndex=0;ee=C.exec(te);)var ie=ee.index;H=H.slice(0,ie===n?F:ie)}}else if(o.indexOf(Sn(C),F)!=F){var me=H.lastIndexOf(C);me>-1&&(H=H.slice(0,me))}return H+x}function Oj(o){return o=Qe(o),o&&Lt.test(o)?o.replace(lt,iM):o}var $j=os(function(o,a,h){return o+(h?" ":"")+a.toUpperCase()}),Kp=Lb("toUpperCase");function N_(o,a,h){return o=Qe(o),a=h?n:a,a===n?JD(o)?aM(o):UD(o):o.match(a)||[]}var R_=je(function(o,a){try{return Cn(o,n,a)}catch(h){return qp(h)?h:new $e(h)}}),Dj=Wr(function(o,a){return Un(a,function(h){h=Ar(h),Ur(o,h,Vp(o[h],o))}),o});function Mj(o){var a=o==null?0:o.length,h=Se();return o=a?ot(o,function(x){if(typeof x[1]!="function")throw new Vn(l);return[h(x[0]),x[1]]}):[],je(function(x){for(var C=-1;++C<a;){var $=o[C];if(Cn($[0],this,x))return Cn($[1],this,x)}})}function Pj(o){return iP(qn(o,g))}function Qp(o){return function(){return o}}function Nj(o,a){return o==null||o!==o?a:o}var Rj=kb(),Lj=kb(!0);function gn(o){return o}function Jp(o){return hb(typeof o=="function"?o:qn(o,g))}function jj(o){return mb(qn(o,g))}function kj(o,a){return vb(o,qn(a,g))}var Fj=je(function(o,a){return function(h){return ia(h,o,a)}}),Bj=je(function(o,a){return function(h){return ia(o,h,a)}});function e1(o,a,h){var x=Mt(a),C=pc(a,x);h==null&&!(dt(a)&&(C.length||!x.length))&&(h=a,a=o,o=this,C=pc(a,Mt(a)));var $=!(dt(h)&&"chain"in h)||!!h.chain,P=Yr(o);return Un(C,function(F){var H=a[F];o[F]=H,P&&(o.prototype[F]=function(){var ee=this.__chain__;if($||ee){var te=o(this.__wrapped__),ie=te.__actions__=fn(this.__actions__);return ie.push({func:H,args:arguments,thisArg:o}),te.__chain__=ee,te}return H.apply(o,_i([this.value()],arguments))})}),o}function zj(){return Ft._===this&&(Ft._=pM),this}function t1(){}function Gj(o){return o=Ne(o),je(function(a){return bb(a,o)})}var Hj=Mp(ot),Uj=Mp(F5),Vj=Mp(rp);function L_(o){return Fp(o)?ip(Ar(o)):wP(o)}function Wj(o){return function(a){return o==null?n:uo(o,a)}}var qj=Bb(),Yj=Bb(!0);function n1(){return[]}function r1(){return!1}function Zj(){return{}}function Xj(){return""}function Kj(){return!0}function Qj(o,a){if(o=Ne(o),o<1||o>J)return[];var h=V,x=Ht(o,V);a=Se(a),o-=V;for(var C=ap(x,a);++h<o;)a(h);return C}function Jj(o){return De(o)?ot(o,Ar):In(o)?[o]:fn(n_(Qe(o)))}function ek(o){var a=++uM;return Qe(o)+a}var tk=_c(function(o,a){return o+a},0),nk=Pp("ceil"),rk=_c(function(o,a){return o/a},1),ik=Pp("floor");function ok(o){return o&&o.length?fc(o,gn,bp):n}function sk(o,a){return o&&o.length?fc(o,Se(a,2),bp):n}function ak(o){return G5(o,gn)}function lk(o,a){return G5(o,Se(a,2))}function ck(o){return o&&o.length?fc(o,gn,Ep):n}function dk(o,a){return o&&o.length?fc(o,Se(a,2),Ep):n}var uk=_c(function(o,a){return o*a},1),fk=Pp("round"),pk=_c(function(o,a){return o-a},0);function hk(o){return o&&o.length?sp(o,gn):0}function gk(o,a){return o&&o.length?sp(o,Se(a,2)):0}return A.after=jR,A.ary=p_,A.assign=CL,A.assignIn=I_,A.assignInWith=Mc,A.assignWith=TL,A.at=SL,A.before=h_,A.bind=Vp,A.bindAll=Dj,A.bindKey=g_,A.castArray=ZR,A.chain=d_,A.chunk=iN,A.compact=oN,A.concat=sN,A.cond=Mj,A.conforms=Pj,A.constant=Qp,A.countBy=hR,A.create=IL,A.curry=m_,A.curryRight=v_,A.debounce=b_,A.defaults=AL,A.defaultsDeep=OL,A.defer=kR,A.delay=FR,A.difference=aN,A.differenceBy=lN,A.differenceWith=cN,A.drop=dN,A.dropRight=uN,A.dropRightWhile=fN,A.dropWhile=pN,A.fill=hN,A.filter=mR,A.flatMap=_R,A.flatMapDeep=xR,A.flatMapDepth=wR,A.flatten=s_,A.flattenDeep=gN,A.flattenDepth=mN,A.flip=BR,A.flow=Rj,A.flowRight=Lj,A.fromPairs=vN,A.functions=LL,A.functionsIn=jL,A.groupBy=ER,A.initial=_N,A.intersection=xN,A.intersectionBy=wN,A.intersectionWith=EN,A.invert=FL,A.invertBy=BL,A.invokeMap=CR,A.iteratee=Jp,A.keyBy=TR,A.keys=Mt,A.keysIn=hn,A.map=Sc,A.mapKeys=GL,A.mapValues=HL,A.matches=jj,A.matchesProperty=kj,A.memoize=Ac,A.merge=UL,A.mergeWith=A_,A.method=Fj,A.methodOf=Bj,A.mixin=e1,A.negate=Oc,A.nthArg=Gj,A.omit=VL,A.omitBy=WL,A.once=zR,A.orderBy=SR,A.over=Hj,A.overArgs=GR,A.overEvery=Uj,A.overSome=Vj,A.partial=Wp,A.partialRight=__,A.partition=IR,A.pick=qL,A.pickBy=O_,A.property=L_,A.propertyOf=Wj,A.pull=SN,A.pullAll=l_,A.pullAllBy=IN,A.pullAllWith=AN,A.pullAt=ON,A.range=qj,A.rangeRight=Yj,A.rearg=HR,A.reject=$R,A.remove=$N,A.rest=UR,A.reverse=Hp,A.sampleSize=MR,A.set=ZL,A.setWith=XL,A.shuffle=PR,A.slice=DN,A.sortBy=LR,A.sortedUniq=kN,A.sortedUniqBy=FN,A.split=_j,A.spread=VR,A.tail=BN,A.take=zN,A.takeRight=GN,A.takeRightWhile=HN,A.takeWhile=UN,A.tap=oR,A.throttle=WR,A.thru=Tc,A.toArray=C_,A.toPairs=$_,A.toPairsIn=D_,A.toPath=Jj,A.toPlainObject=S_,A.transform=KL,A.unary=qR,A.union=VN,A.unionBy=WN,A.unionWith=qN,A.uniq=YN,A.uniqBy=ZN,A.uniqWith=XN,A.unset=QL,A.unzip=Up,A.unzipWith=c_,A.update=JL,A.updateWith=ej,A.values=ls,A.valuesIn=tj,A.without=KN,A.words=N_,A.wrap=YR,A.xor=QN,A.xorBy=JN,A.xorWith=eR,A.zip=tR,A.zipObject=nR,A.zipObjectDeep=rR,A.zipWith=iR,A.entries=$_,A.entriesIn=D_,A.extend=I_,A.extendWith=Mc,e1(A,A),A.add=tk,A.attempt=R_,A.camelCase=oj,A.capitalize=M_,A.ceil=nk,A.clamp=nj,A.clone=XR,A.cloneDeep=QR,A.cloneDeepWith=JR,A.cloneWith=KR,A.conformsTo=eL,A.deburr=P_,A.defaultTo=Nj,A.divide=rk,A.endsWith=sj,A.eq=pr,A.escape=aj,A.escapeRegExp=lj,A.every=gR,A.find=vR,A.findIndex=i_,A.findKey=$L,A.findLast=bR,A.findLastIndex=o_,A.findLastKey=DL,A.floor=ik,A.forEach=u_,A.forEachRight=f_,A.forIn=ML,A.forInRight=PL,A.forOwn=NL,A.forOwnRight=RL,A.get=Zp,A.gt=tL,A.gte=nL,A.has=kL,A.hasIn=Xp,A.head=a_,A.identity=gn,A.includes=yR,A.indexOf=bN,A.inRange=rj,A.invoke=zL,A.isArguments=ho,A.isArray=De,A.isArrayBuffer=rL,A.isArrayLike=pn,A.isArrayLikeObject=xt,A.isBoolean=iL,A.isBuffer=Si,A.isDate=oL,A.isElement=sL,A.isEmpty=aL,A.isEqual=lL,A.isEqualWith=cL,A.isError=qp,A.isFinite=dL,A.isFunction=Yr,A.isInteger=x_,A.isLength=$c,A.isMap=w_,A.isMatch=uL,A.isMatchWith=fL,A.isNaN=pL,A.isNative=hL,A.isNil=mL,A.isNull=gL,A.isNumber=E_,A.isObject=dt,A.isObjectLike=gt,A.isPlainObject=da,A.isRegExp=Yp,A.isSafeInteger=vL,A.isSet=y_,A.isString=Dc,A.isSymbol=In,A.isTypedArray=as,A.isUndefined=bL,A.isWeakMap=_L,A.isWeakSet=xL,A.join=yN,A.kebabCase=cj,A.last=Zn,A.lastIndexOf=CN,A.lowerCase=dj,A.lowerFirst=uj,A.lt=wL,A.lte=EL,A.max=ok,A.maxBy=sk,A.mean=ak,A.meanBy=lk,A.min=ck,A.minBy=dk,A.stubArray=n1,A.stubFalse=r1,A.stubObject=Zj,A.stubString=Xj,A.stubTrue=Kj,A.multiply=uk,A.nth=TN,A.noConflict=zj,A.noop=t1,A.now=Ic,A.pad=fj,A.padEnd=pj,A.padStart=hj,A.parseInt=gj,A.random=ij,A.reduce=AR,A.reduceRight=OR,A.repeat=mj,A.replace=vj,A.result=YL,A.round=fk,A.runInContext=z,A.sample=DR,A.size=NR,A.snakeCase=bj,A.some=RR,A.sortedIndex=MN,A.sortedIndexBy=PN,A.sortedIndexOf=NN,A.sortedLastIndex=RN,A.sortedLastIndexBy=LN,A.sortedLastIndexOf=jN,A.startCase=xj,A.startsWith=wj,A.subtract=pk,A.sum=hk,A.sumBy=gk,A.template=Ej,A.times=Qj,A.toFinite=Zr,A.toInteger=Ne,A.toLength=T_,A.toLower=yj,A.toNumber=Xn,A.toSafeInteger=yL,A.toString=Qe,A.toUpper=Cj,A.trim=Tj,A.trimEnd=Sj,A.trimStart=Ij,A.truncate=Aj,A.unescape=Oj,A.uniqueId=ek,A.upperCase=$j,A.upperFirst=Kp,A.each=u_,A.eachRight=f_,A.first=a_,e1(A,function(){var o={};return Sr(A,function(a,h){Je.call(A.prototype,h)||(o[h]=a)}),o}(),{chain:!1}),A.VERSION=r,Un(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){A[o].placeholder=A}),Un(["drop","take"],function(o,a){Fe.prototype[o]=function(h){h=h===n?1:At(Ne(h),0);var x=this.__filtered__&&!a?new Fe(this):this.clone();return x.__filtered__?x.__takeCount__=Ht(h,x.__takeCount__):x.__views__.push({size:Ht(h,V),type:o+(x.__dir__<0?"Right":"")}),x},Fe.prototype[o+"Right"]=function(h){return this.reverse()[o](h).reverse()}}),Un(["filter","map","takeWhile"],function(o,a){var h=a+1,x=h==R||h==B;Fe.prototype[o]=function(C){var $=this.clone();return $.__iteratees__.push({iteratee:Se(C,3),type:h}),$.__filtered__=$.__filtered__||x,$}}),Un(["head","last"],function(o,a){var h="take"+(a?"Right":"");Fe.prototype[o]=function(){return this[h](1).value()[0]}}),Un(["initial","tail"],function(o,a){var h="drop"+(a?"":"Right");Fe.prototype[o]=function(){return this.__filtered__?new Fe(this):this[h](1)}}),Fe.prototype.compact=function(){return this.filter(gn)},Fe.prototype.find=function(o){return this.filter(o).head()},Fe.prototype.findLast=function(o){return this.reverse().find(o)},Fe.prototype.invokeMap=je(function(o,a){return typeof o=="function"?new Fe(this):this.map(function(h){return ia(h,o,a)})}),Fe.prototype.reject=function(o){return this.filter(Oc(Se(o)))},Fe.prototype.slice=function(o,a){o=Ne(o);var h=this;return h.__filtered__&&(o>0||a<0)?new Fe(h):(o<0?h=h.takeRight(-o):o&&(h=h.drop(o)),a!==n&&(a=Ne(a),h=a<0?h.dropRight(-a):h.take(a-o)),h)},Fe.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},Fe.prototype.toArray=function(){return this.take(V)},Sr(Fe.prototype,function(o,a){var h=/^(?:filter|find|map|reject)|While$/.test(a),x=/^(?:head|last)$/.test(a),C=A[x?"take"+(a=="last"?"Right":""):a],$=x||/^find/.test(a);C&&(A.prototype[a]=function(){var P=this.__wrapped__,F=x?[1]:arguments,H=P instanceof Fe,ee=F[0],te=H||De(P),ie=function(ke){var ze=C.apply(A,_i([ke],F));return x&&me?ze[0]:ze};te&&h&&typeof ee=="function"&&ee.length!=1&&(H=te=!1);var me=this.__chain__,Ce=!!this.__actions__.length,Ie=$&&!me,Le=H&&!Ce;if(!$&&te){P=Le?P:new Fe(this);var Ae=o.apply(P,F);return Ae.__actions__.push({func:Tc,args:[ie],thisArg:n}),new Wn(Ae,me)}return Ie&&Le?o.apply(this,F):(Ae=this.thru(ie),Ie?x?Ae.value()[0]:Ae.value():Ae)})}),Un(["pop","push","shift","sort","splice","unshift"],function(o){var a=Kl[o],h=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",x=/^(?:pop|shift)$/.test(o);A.prototype[o]=function(){var C=arguments;if(x&&!this.__chain__){var $=this.value();return a.apply(De($)?$:[],C)}return this[h](function(P){return a.apply(De(P)?P:[],C)})}}),Sr(Fe.prototype,function(o,a){var h=A[a];if(h){var x=h.name+"";Je.call(ns,x)||(ns[x]=[]),ns[x].push({name:a,func:h})}}),ns[bc(n,y).name]=[{name:"wrapper",func:n}],Fe.prototype.clone=OM,Fe.prototype.reverse=$M,Fe.prototype.value=DM,A.prototype.at=sR,A.prototype.chain=aR,A.prototype.commit=lR,A.prototype.next=cR,A.prototype.plant=uR,A.prototype.reverse=fR,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=pR,A.prototype.first=A.prototype.head,Ks&&(A.prototype[Ks]=dR),A},Jo=lM();oo?((oo.exports=Jo)._=Jo,Jf._=Jo):Ft._=Jo}).call(cs)}(sl,sl.exports);var $u=sl.exports;const bg=W9;bg.displayName="BuilderBlockToolbarContext";const _g=p.forwardRef((e,t)=>{const{sections:n,qualityMetricIcon:r,isToolbarLocked:i=!0,inputPlaceholder:s="Search Block",onToggleToolbarLock:l,className:c}=e,[d,f]=p.useState(null),[m,g]=p.useState(null),[v,b]=p.useState(i),[w,_]=p.useState(!0);Uh({onDragStart(I){f(I.active.data.current),document.body.style.setProperty("cursor","grabbing")},onDragEnd(){f(null),document.body.style.setProperty("cursor","")}});const E=()=>{l==null||l(!v),b(I=>!I)},y=I=>{const M=I.target.value;g(M)},S=m?(I=>{const M=n.filter(N=>N.blocks&&N.blocks.some(D=>D.type.includes(I)));return $u.isEmpty(M)?[]:M.map(N=>{var k;const D=(k=N==null?void 0:N.blocks)==null?void 0:k.filter(Y=>Y.type.includes(I));return{name:N.name,label:N.label,blocks:D}})})(m):n,O=$u.debounce(_,500);return u.jsxs("div",{ref:t,className:se(xn["builder-block-toolbar--container"],!v&&!w?xn["hide-toolbar"]:xn["show-toolbar"],c),onMouseEnter:()=>!v&&O(!0),onMouseLeave:()=>!v&&O(!1),children:[u.jsxs("div",{className:se(xn["builder-block-toolbar--header"]),children:[r&&u.jsx(st,{variant:"ghost",color:"primary",children:u.jsx(Za,{...r})}),u.jsx(st,{variant:"ghost",color:"primary",style:{marginLeft:"auto"},onClick:E,children:v?u.jsx(E7,{}):u.jsx(z7,{})})]}),u.jsx(ln,{placeholder:s,className:xn["builder-block-toolbar--input"],onChange:y}),u.jsx("div",{className:xn["builder-block-toolbar--sections"],children:$u.isEmpty(S.length)&&u.jsx(Kc,{type:"multiple",children:S.map(I=>{var M;return u.jsxs(Qc,{value:I.name,children:[u.jsx(Jc,{children:u.jsx(ed,{children:u.jsx(ye,{children:I.label})})}),u.jsx(td,{className:xn["builder-block-toolbar--block-container"],children:(M=I.blocks)==null?void 0:M.map((N,D)=>u.jsx(xg,{block:N,name:I.name},D))})]},I.name)})})}),$n.createPortal(u.jsx(ay,{children:d&&u.jsx(xg,{block:d.block,name:d.name,isOverlay:!0})}),document.body)]})});_g.displayName="BuilderBlockToolbar";const xg=({block:e,name:t,isOverlay:n})=>{const{attributes:r,listeners:i,setNodeRef:s,isDragging:l}=Z9({id:e.type,data:{block:e,name:t}});return u.jsxs("button",{ref:s,className:se(xn["builder-block-toolbar--block"],l&&xn["builder-block-toolbar--block-dragging"],n&&xn["builder-block-toolbar--block-overlay"]),...i,...r,children:[u.jsx("div",{className:se(xn["builder-block-toolbar--block-icon"],xn[`builder-block-toolbar--block-icon-${t}`]),children:ly(e.type)}),u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-1000",className:xn["builder-block-toolbar-block-label"],children:e.label})]})};function ly(e){switch(e){case"text":return u.jsx(p1,{});case"image":return u.jsx(v1,{});case"video":return u.jsx(d1,{});case"variant":return u.jsx(K_,{});case"entities":return u.jsx(F7,{});case"generative":return u.jsx(lh,{});case"card":return u.jsx(_1,{});case"quickReplies":return u.jsx(u1,{});case"reroute":return u.jsx(Fc,{});case"api":return u.jsx(b1,{});case"conditional":return u.jsx(x1,{});case"capture":return u.jsx(h1,{});case"redirect":return u.jsx(Fc,{});case"setValues":return u.jsx(g1,{});case"contactRequest":return u.jsx(Bc,{});case"agentTakeover":return u.jsx(m1,{});default:console.warn("Unknown block type:",e)}}const wg={"root-container":"_root-container_1hesv_1","atom-quick-replies-input-container":"_atom-quick-replies-input-container_1hesv_20"},cy=32,Du=p.forwardRef((e,t)=>{const{buttonLabel:n,buttonLabelMaxLength:r=cy,selectorProps:i,setButtonLabel:s}=e,[l,c]=p.useState(!1),[d,f]=p.useState(()=>n??"");p.useEffect(()=>{n!=null&&f(n)},[n]);const m=p.useRef(),g=p.useCallback(()=>{m.current!==null&&clearTimeout(m.current)},[]);return p.useEffect(()=>{d.length>r&&(c(!0),g(),m.current=setTimeout(()=>{c(!1)},3e3)),f(v=>v.slice(0,r)??"")},[d]),u.jsx("div",{className:wg["root-container"],children:u.jsxs("div",{className:wg["atom-quick-replies-input-container"],children:[u.jsxs(Io,{rootProps:{open:l},children:[u.jsx(Ri,{children:u.jsx(ln,{variant:"filled",value:d,onChange:v=>f(v.target.value),onBlur:v=>s(v.target.value),size:"sm",autoComplete:"off",autoResize:!0})}),u.jsx(Ni,{isDark:!0,title:"Sooo long...",description:`Maximum length is ${r} character${r>1&&"s"}`})]}),u.jsx(Ao,{label:"Choose destination",...i})]})})});Du.displayName="AtomQuickRepliesInput";const Mu={"ai-chat--trigger":"_ai-chat--trigger_17efd_1","ai-chat":"_ai-chat_17efd_1","ai-chat--container":"_ai-chat--container_17efd_11"},Eg=Es;Eg.displayName="ChatRoot";const yg=p.forwardRef((e,t)=>u.jsx(ys,{ref:t,className:Mu["ai-chat--trigger"],onClick:n=>n.preventDefault,children:u.jsx(tu,{image:e.avatarBot.image,active:e.active,onClick:e.onClick})}));yg.displayName="ChatTrigger";const Cg=p.forwardRef(({children:e},t)=>u.jsx(oE,{children:u.jsx(Cs,{ref:t,side:"top",align:"end",avoidCollisions:!1,sideOffset:16,className:Mu["ai-chat--container"],children:u.jsx("div",{className:Mu["ai-chat"],children:e})})}));Cg.displayName="ChatContainer";const al={"chat-header":"_chat-header_2piic_1","chat-header--purple":"_chat-header--purple_2piic_14","chat-header--white":"_chat-header--white_2piic_18","chat-header--label":"_chat-header--label_2piic_22","chat-header--close":"_chat-header--close_2piic_27"},dy=({botName:e,avatar:t,repliesInstantlyLabel:n="Replies instantly",type:r})=>{const i=r==="purple"?"white":"gray-1000";return u.jsxs("div",{className:se(al["chat-header"],al[`chat-header--${r}`]),children:[u.jsx("div",{children:u.jsx($o,{...t})}),u.jsxs("div",{className:al["chat-header--label"],children:[u.jsx(ye,{fontWeight:"bold",size:"md",color:i,children:e}),u.jsx(ye,{fontWeight:"regular",size:"xs",color:i,children:n})]}),u.jsx(sE,{className:al["chat-header--close"],children:u.jsx(Bd,{color:i,height:"3.2rem",width:"3.2rem"})})]})},Tg={"chat-content":"_chat-content_1yrah_1","chat-messages":"_chat-messages_1yrah_16"},Ro={"chat-input--container":"_chat-input--container_vv57m_1","chat-input--disabled":"_chat-input--disabled_vv57m_13","chat-input--input":"_chat-input--input_vv57m_18","chat-input--icon":"_chat-input--icon_vv57m_42","chat-input--content":"_chat-input--content_vv57m_53","send-button":"_send-button_vv57m_70"},uy=(e,t)=>{p.useEffect(()=>{if(e){e.style.height="0px";const n=e.scrollHeight;e.style.height=n+"px"}},[e,t])},Sg=p.forwardRef((e,t)=>{const{disabled:n,placeholder:r,className:i,onChange:s,value:l,...c}=e,d=p.useRef(null),[f,m]=p.useState(l);uy(d.current,f);const g=v=>{var w;const b=(w=v.target)==null?void 0:w.value;m(b),s==null||s(v)};return u.jsx("div",{className:se(Ro["chat-input--container"],n&&Ro["chat-input--disabled"],i),children:u.jsxs("div",{className:Ro["chat-input--content"],children:[u.jsx("textarea",{ref:d,className:se(Ro["chat-input--input"],n&&"cursor-not-allowed"),placeholder:r,disabled:n,value:f,onChange:g,rows:1,...c}),u.jsx("span",{className:Ro["chat-input--icon"],children:u.jsx(st,{className:Ro["send-button"],variant:"ghost",color:"primary",size:"md",children:u.jsx(L7,{className:"text--purple-600"})})})]})})});Sg.displayName="ChatInput";const Ve={"chat-item":"_chat-item_1oblk_1","chat-item--bot":"_chat-item--bot_1oblk_6","chat-item--user":"_chat-item--user_1oblk_10","chat-item--avatar-container":"_chat-item--avatar-container_1oblk_14","chat-item--chat":"_chat-item--chat_1oblk_20","chat-item--typing":"_chat-item--typing_1oblk_28","chat-item--chat-bot":"_chat-item--chat-bot_1oblk_37","chat-item--chat-user":"_chat-item--chat-user_1oblk_43","chat-item--feedback-requested":"_chat-item--feedback-requested_1oblk_49","chat-item--media":"_chat-item--media_1oblk_53","chat-item--image":"_chat-item--image_1oblk_57","chat-item--video":"_chat-item--video_1oblk_62","chat-item--button-container":"_chat-item--button-container_1oblk_67","chat-item--caption":"_chat-item--caption_1oblk_76","chat-item--icon":"_chat-item--icon_1oblk_80","chat-item--feedback":"_chat-item--feedback_1oblk_49","chat-item-feedback-icons":"_chat-item-feedback-icons_1oblk_102","chat-item--feedback-given":"_chat-item--feedback-given_1oblk_107","chat-item--card":"_chat-item--card_1oblk_114","chat-item--card-image":"_chat-item--card-image_1oblk_123","chat-item--card-content":"_chat-item--card-content_1oblk_127","chat-item--card-buttons":"_chat-item--card-buttons_1oblk_134","chat-item--carousel":"_chat-item--carousel_1oblk_138","chat-item--carousel-card":"_chat-item--carousel-card_1oblk_147","chat-item--carousel-left-navigation":"_chat-item--carousel-left-navigation_1oblk_155","chat-item--carousel-right-navigation":"_chat-item--carousel-right-navigation_1oblk_162","swiper-wrapper":"_swiper-wrapper_1oblk_169"};function Ig(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Pu(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Ig(t[n])&&Ig(e[n])&&Object.keys(t[n]).length>0&&Pu(e[n],t[n])})}const Ag={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Mr(){const e=typeof document<"u"?document:{};return Pu(e,Ag),e}const fy={document:Ag,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Wt(){const e=typeof window<"u"?window:{};return Pu(e,fy),e}function py(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Nu(e,t=0){return setTimeout(e,t)}function ll(){return Date.now()}function hy(e){const t=Wt();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function gy(e,t="x"){const n=Wt();let r,i,s;const l=hy(e);return n.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(c=>c.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(i==="none"?"":i)):(s=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=s.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=s.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function cl(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function my(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function wn(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const i=e[r];if(i!=null&&!my(i)){const s=Object.keys(Object(i)).filter(l=>n.indexOf(l)<0);for(let l=0,c=s.length;l<c;l+=1){const d=s[l],f=Object.getOwnPropertyDescriptor(i,d);f!==void 0&&f.enumerable&&(cl(t[d])&&cl(i[d])?i[d].__swiper__?t[d]=i[d]:wn(t[d],i[d]):!cl(t[d])&&cl(i[d])?(t[d]={},i[d].__swiper__?t[d]=i[d]:wn(t[d],i[d])):t[d]=i[d])}}}return t}function dl(e,t,n){e.style.setProperty(t,n)}function Og({swiper:e,targetPosition:t,side:n}){const r=Wt(),i=-e.translate;let s=null,l;const c=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const d=t>i?"next":"prev",f=(g,v)=>d==="next"&&g>=v||d==="prev"&&g<=v,m=()=>{l=new Date().getTime(),s===null&&(s=l);const g=Math.max(Math.min((l-s)/c,1),0),v=.5-Math.cos(g*Math.PI)/2;let b=i+v*(t-i);if(f(b,t)&&(b=t),e.wrapperEl.scrollTo({[n]:b}),f(b,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:b})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(m)};m()}function br(e,t=""){return[...e.children].filter(n=>n.matches(t))}function $g(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function vy(e){const t=Wt(),n=Mr(),r=e.getBoundingClientRect(),i=n.body,s=e.clientTop||i.clientTop||0,l=e.clientLeft||i.clientLeft||0,c=e===t?t.scrollY:e.scrollTop,d=e===t?t.scrollX:e.scrollLeft;return{top:r.top+c-s,left:r.left+d-l}}function by(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function _y(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function li(e,t){return Wt().getComputedStyle(e,null).getPropertyValue(t)}function Dg(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Ru(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Mg(e,t,n){const r=Wt();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}let Lu;function xy(){const e=Wt(),t=Mr();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Pg(){return Lu||(Lu=xy()),Lu}let ju;function wy({userAgent:e}={}){const t=Pg(),n=Wt(),r=n.navigator.platform,i=e||n.navigator.userAgent,s={ios:!1,android:!1},l=n.screen.width,c=n.screen.height,d=i.match(/(Android);?[\s\/]+([\d.]+)?/);let f=i.match(/(iPad).*OS\s([\d_]+)/);const m=i.match(/(iPod)(.*OS\s([\d_]+))?/),g=!f&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),v=r==="Win32";let b=r==="MacIntel";const w=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!f&&b&&t.touch&&w.indexOf(`${l}x${c}`)>=0&&(f=i.match(/(Version)\/([\d.]+)/),f||(f=[0,1,"13_0_0"]),b=!1),d&&!v&&(s.os="android",s.android=!0),(f||g||m)&&(s.os="ios",s.ios=!0),s}function Ey(e={}){return ju||(ju=wy(e)),ju}let ku;function yy(){const e=Wt();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[i,s]=r.split("Version/")[1].split(" ")[0].split(".").map(l=>Number(l));t=i<16||i===16&&s<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function Cy(){return ku||(ku=yy()),ku}function Ty({swiper:e,on:t,emit:n}){const r=Wt();let i=null,s=null;const l=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},c=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(m=>{s=r.requestAnimationFrame(()=>{const{width:g,height:v}=e;let b=g,w=v;m.forEach(({contentBoxSize:_,contentRect:E,target:y})=>{y&&y!==e.el||(b=E?E.width:(_[0]||_).inlineSize,w=E?E.height:(_[0]||_).blockSize)}),(b!==g||w!==v)&&l()})}),i.observe(e.el))},d=()=>{s&&r.cancelAnimationFrame(s),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},f=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){c();return}r.addEventListener("resize",l),r.addEventListener("orientationchange",f)}),t("destroy",()=>{d(),r.removeEventListener("resize",l),r.removeEventListener("orientationchange",f)})}function Sy({swiper:e,extendParams:t,on:n,emit:r}){const i=[],s=Wt(),l=(f,m={})=>{const g=s.MutationObserver||s.WebkitMutationObserver,v=new g(b=>{if(e.__preventObserver__)return;if(b.length===1){r("observerUpdate",b[0]);return}const w=function(){r("observerUpdate",b[0])};s.requestAnimationFrame?s.requestAnimationFrame(w):s.setTimeout(w,0)});v.observe(f,{attributes:typeof m.attributes>"u"?!0:m.attributes,childList:typeof m.childList>"u"?!0:m.childList,characterData:typeof m.characterData>"u"?!0:m.characterData}),i.push(v)},c=()=>{if(e.params.observer){if(e.params.observeParents){const f=Ru(e.el);for(let m=0;m<f.length;m+=1)l(f[m])}l(e.el,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},d=()=>{i.forEach(f=>{f.disconnect()}),i.splice(0,i.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",c),n("destroy",d)}const Iy={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(...s){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,s)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(s,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(l=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(c=>{c.apply(i,[l,...r])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(c=>{c.apply(i,r)})}),t}};function Ay(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(li(r,"padding-left")||0,10)-parseInt(li(r,"padding-right")||0,10),n=n-parseInt(li(r,"padding-top")||0,10)-parseInt(li(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function Oy(){const e=this;function t(L){return e.isHorizontal()?L:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[L]}function n(L,G){return parseFloat(L.getPropertyValue(t(G))||0)}const r=e.params,{wrapperEl:i,slidesEl:s,size:l,rtlTranslate:c,wrongRTL:d}=e,f=e.virtual&&r.virtual.enabled,m=f?e.virtual.slides.length:e.slides.length,g=br(s,`.${e.params.slideClass}, swiper-slide`),v=f?e.virtual.slides.length:g.length;let b=[];const w=[],_=[];let E=r.slidesOffsetBefore;typeof E=="function"&&(E=r.slidesOffsetBefore.call(e));let y=r.slidesOffsetAfter;typeof y=="function"&&(y=r.slidesOffsetAfter.call(e));const T=e.snapGrid.length,S=e.slidesGrid.length;let O=r.spaceBetween,I=-E,M=0,N=0;if(typeof l>"u")return;typeof O=="string"&&O.indexOf("%")>=0?O=parseFloat(O.replace("%",""))/100*l:typeof O=="string"&&(O=parseFloat(O)),e.virtualSize=-O,g.forEach(L=>{c?L.style.marginLeft="":L.style.marginRight="",L.style.marginBottom="",L.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(dl(i,"--swiper-centered-offset-before",""),dl(i,"--swiper-centered-offset-after",""));const D=r.grid&&r.grid.rows>1&&e.grid;D&&e.grid.initSlides(v);let k;const Y=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(L=>typeof r.breakpoints[L].slidesPerView<"u").length>0;for(let L=0;L<v;L+=1){k=0;let G;if(g[L]&&(G=g[L]),D&&e.grid.updateSlide(L,G,v,t),!(g[L]&&li(G,"display")==="none")){if(r.slidesPerView==="auto"){Y&&(g[L].style[t("width")]="");const Z=getComputedStyle(G),R=G.style.transform,K=G.style.webkitTransform;if(R&&(G.style.transform="none"),K&&(G.style.webkitTransform="none"),r.roundLengths)k=e.isHorizontal()?Mg(G,"width"):Mg(G,"height");else{const B=n(Z,"width"),W=n(Z,"padding-left"),J=n(Z,"padding-right"),q=n(Z,"margin-left"),U=n(Z,"margin-right"),V=Z.getPropertyValue("box-sizing");if(V&&V==="border-box")k=B+q+U;else{const{clientWidth:ce,offsetWidth:ue}=G;k=B+W+J+q+U+(ue-ce)}}R&&(G.style.transform=R),K&&(G.style.webkitTransform=K),r.roundLengths&&(k=Math.floor(k))}else k=(l-(r.slidesPerView-1)*O)/r.slidesPerView,r.roundLengths&&(k=Math.floor(k)),g[L]&&(g[L].style[t("width")]=`${k}px`);g[L]&&(g[L].swiperSlideSize=k),_.push(k),r.centeredSlides?(I=I+k/2+M/2+O,M===0&&L!==0&&(I=I-l/2-O),L===0&&(I=I-l/2-O),Math.abs(I)<1/1e3&&(I=0),r.roundLengths&&(I=Math.floor(I)),N%r.slidesPerGroup===0&&b.push(I),w.push(I)):(r.roundLengths&&(I=Math.floor(I)),(N-Math.min(e.params.slidesPerGroupSkip,N))%e.params.slidesPerGroup===0&&b.push(I),w.push(I),I=I+k+O),e.virtualSize+=k+O,M=k,N+=1}}if(e.virtualSize=Math.max(e.virtualSize,l)+y,c&&d&&(r.effect==="slide"||r.effect==="coverflow")&&(i.style.width=`${e.virtualSize+O}px`),r.setWrapperSize&&(i.style[t("width")]=`${e.virtualSize+O}px`),D&&e.grid.updateWrapperSize(k,b,t),!r.centeredSlides){const L=[];for(let G=0;G<b.length;G+=1){let Z=b[G];r.roundLengths&&(Z=Math.floor(Z)),b[G]<=e.virtualSize-l&&L.push(Z)}b=L,Math.floor(e.virtualSize-l)-Math.floor(b[b.length-1])>1&&b.push(e.virtualSize-l)}if(f&&r.loop){const L=_[0]+O;if(r.slidesPerGroup>1){const G=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),Z=L*r.slidesPerGroup;for(let R=0;R<G;R+=1)b.push(b[b.length-1]+Z)}for(let G=0;G<e.virtual.slidesBefore+e.virtual.slidesAfter;G+=1)r.slidesPerGroup===1&&b.push(b[b.length-1]+L),w.push(w[w.length-1]+L),e.virtualSize+=L}if(b.length===0&&(b=[0]),O!==0){const L=e.isHorizontal()&&c?"marginLeft":t("marginRight");g.filter((G,Z)=>!r.cssMode||r.loop?!0:Z!==g.length-1).forEach(G=>{G.style[L]=`${O}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let L=0;_.forEach(Z=>{L+=Z+(O||0)}),L-=O;const G=L-l;b=b.map(Z=>Z<=0?-E:Z>G?G+y:Z)}if(r.centerInsufficientSlides){let L=0;if(_.forEach(G=>{L+=G+(O||0)}),L-=O,L<l){const G=(l-L)/2;b.forEach((Z,R)=>{b[R]=Z-G}),w.forEach((Z,R)=>{w[R]=Z+G})}}if(Object.assign(e,{slides:g,snapGrid:b,slidesGrid:w,slidesSizesGrid:_}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){dl(i,"--swiper-centered-offset-before",`${-b[0]}px`),dl(i,"--swiper-centered-offset-after",`${e.size/2-_[_.length-1]/2}px`);const L=-e.snapGrid[0],G=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(Z=>Z+L),e.slidesGrid=e.slidesGrid.map(Z=>Z+G)}if(v!==m&&e.emit("slidesLengthChange"),b.length!==T&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),w.length!==S&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!f&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const L=`${r.containerModifierClass}backface-hidden`,G=e.el.classList.contains(L);v<=r.maxBackfaceHiddenSlides?G||e.el.classList.add(L):G&&e.el.classList.remove(L)}}function $y(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,s;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const l=c=>r?t.slides[t.getSlideIndexByData(c)]:t.slides[c];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(c=>{n.push(c)});else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const c=t.activeIndex+s;if(c>t.slides.length&&!r)break;n.push(l(c))}else n.push(l(t.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const c=n[s].offsetHeight;i=c>i?c:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function Dy(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function My(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:s}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let l=-e;i&&(l=e),r.forEach(d=>{d.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let c=n.spaceBetween;typeof c=="string"&&c.indexOf("%")>=0?c=parseFloat(c.replace("%",""))/100*t.size:typeof c=="string"&&(c=parseFloat(c));for(let d=0;d<r.length;d+=1){const f=r[d];let m=f.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(m-=r[0].swiperSlideOffset);const g=(l+(n.centeredSlides?t.minTranslate():0)-m)/(f.swiperSlideSize+c),v=(l-s[0]+(n.centeredSlides?t.minTranslate():0)-m)/(f.swiperSlideSize+c),b=-(l-m),w=b+t.slidesSizesGrid[d];(b>=0&&b<t.size-1||w>1&&w<=t.size||b<=0&&w>=t.size)&&(t.visibleSlides.push(f),t.visibleSlidesIndexes.push(d),r[d].classList.add(n.slideVisibleClass)),f.progress=i?-g:g,f.originalProgress=i?-v:v}}function Py(e){const t=this;if(typeof e>"u"){const m=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*m||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:s,isEnd:l,progressLoop:c}=t;const d=s,f=l;if(r===0)i=0,s=!0,l=!0;else{i=(e-t.minTranslate())/r;const m=Math.abs(e-t.minTranslate())<1,g=Math.abs(e-t.maxTranslate())<1;s=m||i<=0,l=g||i>=1,m&&(i=0),g&&(i=1)}if(n.loop){const m=t.getSlideIndexByData(0),g=t.getSlideIndexByData(t.slides.length-1),v=t.slidesGrid[m],b=t.slidesGrid[g],w=t.slidesGrid[t.slidesGrid.length-1],_=Math.abs(e);_>=v?c=(_-v)/w:c=(_+w-b)/w,c>1&&(c-=1)}Object.assign(t,{progress:i,progressLoop:c,isBeginning:s,isEnd:l}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!d&&t.emit("reachBeginning toEdge"),l&&!f&&t.emit("reachEnd toEdge"),(d&&!s||f&&!l)&&t.emit("fromEdge"),t.emit("progress",i)}function Ny(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,s=e.virtual&&n.virtual.enabled,l=d=>br(r,`.${n.slideClass}${d}, swiper-slide${d}`)[0];t.forEach(d=>{d.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let c;if(s)if(n.loop){let d=i-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),c=l(`[data-swiper-slide-index="${d}"]`)}else c=l(`[data-swiper-slide-index="${i}"]`);else c=t[i];if(c){c.classList.add(n.slideActiveClass);let d=_y(c,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!d&&(d=t[0]),d&&d.classList.add(n.slideNextClass);let f=by(c,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!f===0&&(f=t[t.length-1]),f&&f.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const ul=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const i=r.querySelector(`.${e.params.lazyPreloaderClass}`);i&&i.remove()}},Fu=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Bu=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const l=i,c=[l-t];c.push(...Array.from({length:t}).map((d,f)=>l+r+f)),e.slides.forEach((d,f)=>{c.includes(d.column)&&Fu(e,f)});return}const s=i+r-1;if(e.params.rewind||e.params.loop)for(let l=i-t;l<=s+t;l+=1){const c=(l%n+n)%n;(c<i||c>s)&&Fu(e,c)}else for(let l=Math.max(i-t,0);l<=Math.min(s+t,n-1);l+=1)l!==i&&(l>s||l<i)&&Fu(e,l)};function Ry(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let s=0;s<t.length;s+=1)typeof t[s+1]<"u"?r>=t[s]&&r<t[s+1]-(t[s+1]-t[s])/2?i=s:r>=t[s]&&r<t[s+1]&&(i=s+1):r>=t[s]&&(i=s);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function Ly(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:s,realIndex:l,snapIndex:c}=t;let d=e,f;const m=v=>{let b=v-t.virtual.slidesBefore;return b<0&&(b=t.virtual.slides.length+b),b>=t.virtual.slides.length&&(b-=t.virtual.slides.length),b};if(typeof d>"u"&&(d=Ry(t)),r.indexOf(n)>=0)f=r.indexOf(n);else{const v=Math.min(i.slidesPerGroupSkip,d);f=v+Math.floor((d-v)/i.slidesPerGroup)}if(f>=r.length&&(f=r.length-1),d===s){f!==c&&(t.snapIndex=f,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=m(d));return}let g;t.virtual&&i.virtual.enabled&&i.loop?g=m(d):t.slides[d]?g=parseInt(t.slides[d].getAttribute("data-swiper-slide-index")||d,10):g=d,Object.assign(t,{previousSnapIndex:c,snapIndex:f,previousRealIndex:l,realIndex:g,previousIndex:s,activeIndex:d}),t.initialized&&Bu(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),l!==g&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function jy(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let i=!1,s;if(r){for(let l=0;l<t.slides.length;l+=1)if(t.slides[l]===r){i=!0,s=l;break}}if(r&&i)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=s;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const ky={updateSize:Ay,updateSlides:Oy,updateAutoHeight:$y,updateSlidesOffset:Dy,updateSlidesProgress:My,updateProgress:Py,updateSlidesClasses:Ny,updateActiveIndex:Ly,updateClickedSlide:jy};function Fy(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:s}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let l=gy(s,e);return l+=t.cssOverflowAdjustment(),r&&(l=-l),l||0}function By(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:s,progress:l}=n;let c=0,d=0;const f=0;n.isHorizontal()?c=r?-e:e:d=e,i.roundLengths&&(c=Math.floor(c),d=Math.floor(d)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?c:d,i.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-c:-d:i.virtualTranslate||(n.isHorizontal()?c-=n.cssOverflowAdjustment():d-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${c}px, ${d}px, ${f}px)`);let m;const g=n.maxTranslate()-n.minTranslate();g===0?m=0:m=(e-n.minTranslate())/g,m!==l&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function zy(){return-this.snapGrid[0]}function Gy(){return-this.snapGrid[this.snapGrid.length-1]}function Hy(e=0,t=this.params.speed,n=!0,r=!0,i){const s=this,{params:l,wrapperEl:c}=s;if(s.animating&&l.preventInteractionOnTransition)return!1;const d=s.minTranslate(),f=s.maxTranslate();let m;if(r&&e>d?m=d:r&&e<f?m=f:m=e,s.updateProgress(m),l.cssMode){const g=s.isHorizontal();if(t===0)c[g?"scrollLeft":"scrollTop"]=-m;else{if(!s.support.smoothScroll)return Og({swiper:s,targetPosition:-m,side:g?"left":"top"}),!0;c.scrollTo({[g?"left":"top"]:-m,behavior:"smooth"})}return!0}return t===0?(s.setTransition(0),s.setTranslate(m),n&&(s.emit("beforeTransitionStart",t,i),s.emit("transitionEnd"))):(s.setTransition(t),s.setTranslate(m),n&&(s.emit("beforeTransitionStart",t,i),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(v){!s||s.destroyed||v.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}const Uy={getTranslate:Fy,setTranslate:By,minTranslate:zy,maxTranslate:Gy,translateTo:Hy};function Vy(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function Ng({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:i,previousIndex:s}=e;let l=n;if(l||(i>s?l="next":i<s?l="prev":l="reset"),e.emit(`transition${r}`),t&&i!==s){if(l==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),l==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function Wy(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Ng({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function qy(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),Ng({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const Yy={setTransition:Vy,transitionStart:Wy,transitionEnd:qy};function Zy(e=0,t=this.params.speed,n=!0,r,i){typeof e=="string"&&(e=parseInt(e,10));const s=this;let l=e;l<0&&(l=0);const{params:c,snapGrid:d,slidesGrid:f,previousIndex:m,activeIndex:g,rtlTranslate:v,wrapperEl:b,enabled:w}=s;if(s.animating&&c.preventInteractionOnTransition||!w&&!r&&!i)return!1;const _=Math.min(s.params.slidesPerGroupSkip,l);let E=_+Math.floor((l-_)/s.params.slidesPerGroup);E>=d.length&&(E=d.length-1);const y=-d[E];if(c.normalizeSlideIndex)for(let S=0;S<f.length;S+=1){const O=-Math.floor(y*100),I=Math.floor(f[S]*100),M=Math.floor(f[S+1]*100);typeof f[S+1]<"u"?O>=I&&O<M-(M-I)/2?l=S:O>=I&&O<M&&(l=S+1):O>=I&&(l=S)}if(s.initialized&&l!==g&&(!s.allowSlideNext&&(v?y>s.translate&&y>s.minTranslate():y<s.translate&&y<s.minTranslate())||!s.allowSlidePrev&&y>s.translate&&y>s.maxTranslate()&&(g||0)!==l))return!1;l!==(m||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(y);let T;if(l>g?T="next":l<g?T="prev":T="reset",v&&-y===s.translate||!v&&y===s.translate)return s.updateActiveIndex(l),c.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),c.effect!=="slide"&&s.setTranslate(y),T!=="reset"&&(s.transitionStart(n,T),s.transitionEnd(n,T)),!1;if(c.cssMode){const S=s.isHorizontal(),O=v?y:-y;if(t===0){const I=s.virtual&&s.params.virtual.enabled;I&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),I&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{b[S?"scrollLeft":"scrollTop"]=O})):b[S?"scrollLeft":"scrollTop"]=O,I&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return Og({swiper:s,targetPosition:O,side:S?"left":"top"}),!0;b.scrollTo({[S?"left":"top"]:O,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(y),s.updateActiveIndex(l),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,r),s.transitionStart(n,T),t===0?s.transitionEnd(n,T):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(O){!s||s.destroyed||O.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,T))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function Xy(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const i=this;let s=e;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?s=s+i.virtual.slidesBefore:s=i.getSlideIndexByData(s)),i.slideTo(s,t,n,r)}function Ky(e=this.params.speed,t=!0,n){const r=this,{enabled:i,params:s,animating:l}=r;if(!i)return r;let c=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(c=Math.max(r.slidesPerViewDynamic("current",!0),1));const d=r.activeIndex<s.slidesPerGroupSkip?1:c,f=r.virtual&&s.virtual.enabled;if(s.loop){if(l&&!f&&s.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return s.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+d,e,t,n)}function Qy(e=this.params.speed,t=!0,n){const r=this,{params:i,snapGrid:s,slidesGrid:l,rtlTranslate:c,enabled:d,animating:f}=r;if(!d)return r;const m=r.virtual&&i.virtual.enabled;if(i.loop){if(f&&!m&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const g=c?r.translate:-r.translate;function v(y){return y<0?-Math.floor(Math.abs(y)):Math.floor(y)}const b=v(g),w=s.map(y=>v(y));let _=s[w.indexOf(b)-1];if(typeof _>"u"&&i.cssMode){let y;s.forEach((T,S)=>{b>=T&&(y=S)}),typeof y<"u"&&(_=s[y>0?y-1:y])}let E=0;if(typeof _<"u"&&(E=l.indexOf(_),E<0&&(E=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(E=E-r.slidesPerViewDynamic("previous",!0)+1,E=Math.max(E,0))),i.rewind&&r.isBeginning){const y=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(y,e,t,n)}return r.slideTo(E,e,t,n)}function Jy(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function e8(e=this.params.speed,t=!0,n,r=.5){const i=this;let s=i.activeIndex;const l=Math.min(i.params.slidesPerGroupSkip,s),c=l+Math.floor((s-l)/i.params.slidesPerGroup),d=i.rtlTranslate?i.translate:-i.translate;if(d>=i.snapGrid[c]){const f=i.snapGrid[c],m=i.snapGrid[c+1];d-f>(m-f)*r&&(s+=i.params.slidesPerGroup)}else{const f=i.snapGrid[c-1],m=i.snapGrid[c];d-f<=(m-f)*r&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,e,t,n)}function t8(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,s;const l=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?i<e.loopedSlides-r/2||i>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(br(n,`${l}[data-swiper-slide-index="${s}"]`)[0]),Nu(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(br(n,`${l}[data-swiper-slide-index="${s}"]`)[0]),Nu(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}const n8={slideTo:Zy,slideToLoop:Xy,slideNext:Ky,slidePrev:Qy,slideReset:Jy,slideToClosest:e8,slideToClickedSlide:t8};function r8(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;br(r,`.${n.slideClass}, swiper-slide`).forEach((s,l)=>{s.setAttribute("data-swiper-slide-index",l)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function i8({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,byController:s,byMousewheel:l}={}){const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:d,allowSlidePrev:f,allowSlideNext:m,slidesEl:g,params:v}=c;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&v.virtual.enabled){t&&(!v.centeredSlides&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):v.centeredSlides&&c.snapIndex<v.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=f,c.allowSlideNext=m,c.emit("loopFix");return}const b=v.slidesPerView==="auto"?c.slidesPerViewDynamic():Math.ceil(parseFloat(v.slidesPerView,10));let w=v.loopedSlides||b;w%v.slidesPerGroup!==0&&(w+=v.slidesPerGroup-w%v.slidesPerGroup),c.loopedSlides=w;const _=[],E=[];let y=c.activeIndex;typeof i>"u"?i=c.getSlideIndex(c.slides.filter(M=>M.classList.contains(v.slideActiveClass))[0]):y=i;const T=n==="next"||!n,S=n==="prev"||!n;let O=0,I=0;if(i<w){O=Math.max(w-i,v.slidesPerGroup);for(let M=0;M<w-i;M+=1){const N=M-Math.floor(M/d.length)*d.length;_.push(d.length-N-1)}}else if(i>c.slides.length-w*2){I=Math.max(i-(c.slides.length-w*2),v.slidesPerGroup);for(let M=0;M<I;M+=1){const N=M-Math.floor(M/d.length)*d.length;E.push(N)}}if(S&&_.forEach(M=>{c.slides[M].swiperLoopMoveDOM=!0,g.prepend(c.slides[M]),c.slides[M].swiperLoopMoveDOM=!1}),T&&E.forEach(M=>{c.slides[M].swiperLoopMoveDOM=!0,g.append(c.slides[M]),c.slides[M].swiperLoopMoveDOM=!1}),c.recalcSlides(),v.slidesPerView==="auto"&&c.updateSlides(),v.watchSlidesProgress&&c.updateSlidesOffset(),t){if(_.length>0&&S)if(typeof e>"u"){const M=c.slidesGrid[y],D=c.slidesGrid[y+O]-M;l?c.setTranslate(c.translate-D):(c.slideTo(y+O,0,!1,!0),r&&(c.touches[c.isHorizontal()?"startX":"startY"]+=D))}else r&&c.slideToLoop(e,0,!1,!0);else if(E.length>0&&T)if(typeof e>"u"){const M=c.slidesGrid[y],D=c.slidesGrid[y-I]-M;l?c.setTranslate(c.translate-D):(c.slideTo(y-I,0,!1,!0),r&&(c.touches[c.isHorizontal()?"startX":"startY"]+=D))}else c.slideToLoop(e,0,!1,!0)}if(c.allowSlidePrev=f,c.allowSlideNext=m,c.controller&&c.controller.control&&!s){const M={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(N=>{!N.destroyed&&N.params.loop&&N.loopFix(M)}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix(M)}c.emit("loopFix")}function o8(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const s=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[s]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const s8={loopCreate:r8,loopFix:i8,loopDestroy:o8};function a8(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function l8(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const c8={setGrabCursor:a8,unsetGrabCursor:l8};function d8(e,t=this){function n(r){if(!r||r===Mr()||r===Wt())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function u8(e){const t=this,n=Mr(),r=Wt(),i=t.touchEventsData;i.evCache.push(e);const{params:s,touches:l,enabled:c}=t;if(!c||!s.simulateTouch&&e.pointerType==="mouse"||t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let d=e;d.originalEvent&&(d=d.originalEvent);let f=d.target;if(s.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(f)||"which"in d&&d.which===3||"button"in d&&d.button>0||i.isTouched&&i.isMoved)return;const m=!!s.noSwipingClass&&s.noSwipingClass!=="",g=e.composedPath?e.composedPath():e.path;m&&d.target&&d.target.shadowRoot&&g&&(f=g[0]);const v=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,b=!!(d.target&&d.target.shadowRoot);if(s.noSwiping&&(b?d8(v,f):f.closest(v))){t.allowClick=!0;return}if(s.swipeHandler&&!f.closest(s.swipeHandler))return;l.currentX=d.pageX,l.currentY=d.pageY;const w=l.currentX,_=l.currentY,E=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,y=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(E&&(w<=y||w>=r.innerWidth-y))if(E==="prevent")e.preventDefault();else return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=w,l.startY=_,i.touchStartTime=ll(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let T=!0;f.matches(i.focusableElements)&&(T=!1,f.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==f&&n.activeElement.blur();const S=T&&t.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||S)&&!f.isContentEditable&&d.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",d)}function f8(e){const t=Mr(),n=this,r=n.touchEventsData,{params:i,touches:s,rtlTranslate:l,enabled:c}=n;if(!c||!i.simulateTouch&&e.pointerType==="mouse")return;let d=e;if(d.originalEvent&&(d=d.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",d);return}const f=r.evCache.findIndex(M=>M.pointerId===d.pointerId);f>=0&&(r.evCache[f]=d);const m=r.evCache.length>1?r.evCache[0]:d,g=m.pageX,v=m.pageY;if(d.preventedByNestedSwiper){s.startX=g,s.startY=v;return}if(!n.allowTouchMove){d.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:g,startY:v,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:g,currentY:v}),r.touchStartTime=ll());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(v<s.startY&&n.translate<=n.maxTranslate()||v>s.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(g<s.startX&&n.translate<=n.maxTranslate()||g>s.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&d.target===t.activeElement&&d.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",d),d.targetTouches&&d.targetTouches.length>1)return;s.currentX=g,s.currentY=v;const b=s.currentX-s.startX,w=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(b**2+w**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let M;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:b*b+w*w>=25&&(M=Math.atan2(Math.abs(w),Math.abs(b))*180/Math.PI,r.isScrolling=n.isHorizontal()?M>i.touchAngle:90-M>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",d),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&d.cancelable&&d.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&d.stopPropagation();let _=n.isHorizontal()?b:w,E=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(_=Math.abs(_)*(l?1:-1),E=Math.abs(E)*(l?1:-1)),s.diff=_,_*=i.touchRatio,l&&(_=-_,E=-E);const y=n.touchesDirection;n.swipeDirection=_>0?"prev":"next",n.touchesDirection=E>0?"prev":"next";const T=n.params.loop&&!i.cssMode;if(!r.isMoved){if(T&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const M=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(M)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",d)}let S;r.isMoved&&y!==n.touchesDirection&&T&&Math.abs(_)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),S=!0),n.emit("sliderMove",d),r.isMoved=!0,r.currentTranslate=_+r.startTranslate;let O=!0,I=i.resistanceRatio;if(i.touchReleaseOnEdges&&(I=0),_>0?(T&&!S&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(O=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+_)**I))):_<0&&(T&&!S&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(O=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-_)**I))),O&&(d.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(_)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function p8(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(S=>S.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:i,touches:s,rtlTranslate:l,slidesGrid:c,enabled:d}=t;if(!d||!i.simulateTouch&&e.pointerType==="mouse")return;let f=e;if(f.originalEvent&&(f=f.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",f),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const m=ll(),g=m-n.touchStartTime;if(t.allowClick){const S=f.path||f.composedPath&&f.composedPath();t.updateClickedSlide(S&&S[0]||f.target),t.emit("tap click",f),g<300&&m-n.lastClickTime<300&&t.emit("doubleTap doubleClick",f)}if(n.lastClickTime=ll(),Nu(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||s.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let v;if(i.followFinger?v=l?t.translate:-t.translate:v=-n.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:v});return}let b=0,w=t.slidesSizesGrid[0];for(let S=0;S<c.length;S+=S<i.slidesPerGroupSkip?1:i.slidesPerGroup){const O=S<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof c[S+O]<"u"?v>=c[S]&&v<c[S+O]&&(b=S,w=c[S+O]-c[S]):v>=c[S]&&(b=S,w=c[c.length-1]-c[c.length-2])}let _=null,E=null;i.rewind&&(t.isBeginning?E=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(_=0));const y=(v-c[b])/w,T=b<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(g>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(y>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?_:b+T):t.slideTo(b)),t.swipeDirection==="prev"&&(y>1-i.longSwipesRatio?t.slideTo(b+T):E!==null&&y<0&&Math.abs(y)>i.longSwipesRatio?t.slideTo(E):t.slideTo(b))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(f.target===t.navigation.nextEl||f.target===t.navigation.prevEl)?f.target===t.navigation.nextEl?t.slideTo(b+T):t.slideTo(b):(t.swipeDirection==="next"&&t.slideTo(_!==null?_:b+T),t.swipeDirection==="prev"&&t.slideTo(E!==null?E:b))}}function Rg(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:s}=e,l=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const c=l&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!c?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!l?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function h8(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function g8(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const s=e.maxTranslate()-e.minTranslate();s===0?i=0:i=(e.translate-e.minTranslate())/s,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function m8(e){const t=this;ul(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let Lg=!1;function v8(){}const jg=(e,t)=>{const n=Mr(),{params:r,el:i,wrapperEl:s,device:l}=e,c=!!r.nested,d=t==="on"?"addEventListener":"removeEventListener",f=t;i[d]("pointerdown",e.onTouchStart,{passive:!1}),n[d]("pointermove",e.onTouchMove,{passive:!1,capture:c}),n[d]("pointerup",e.onTouchEnd,{passive:!0}),n[d]("pointercancel",e.onTouchEnd,{passive:!0}),n[d]("pointerout",e.onTouchEnd,{passive:!0}),n[d]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[d]("click",e.onClick,!0),r.cssMode&&s[d]("scroll",e.onScroll),r.updateOnWindowResize?e[f](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",Rg,!0):e[f]("observerUpdate",Rg,!0),i[d]("load",e.onLoad,{capture:!0})};function b8(){const e=this,t=Mr(),{params:n}=e;e.onTouchStart=u8.bind(e),e.onTouchMove=f8.bind(e),e.onTouchEnd=p8.bind(e),n.cssMode&&(e.onScroll=g8.bind(e)),e.onClick=h8.bind(e),e.onLoad=m8.bind(e),Lg||(t.addEventListener("touchstart",v8),Lg=!0),jg(e,"on")}function _8(){jg(this,"off")}const x8={attachEvents:b8,detachEvents:_8},kg=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function w8(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const l=e.getBreakpoint(s,e.params.breakpointsBase,e.el);if(!l||e.currentBreakpoint===l)return;const d=(l in s?s[l]:void 0)||e.originalParams,f=kg(e,r),m=kg(e,d),g=r.enabled;f&&!m?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!f&&m&&(i.classList.add(`${r.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(_=>{if(typeof d[_]>"u")return;const E=r[_]&&r[_].enabled,y=d[_]&&d[_].enabled;E&&!y&&e[_].disable(),!E&&y&&e[_].enable()});const v=d.direction&&d.direction!==r.direction,b=r.loop&&(d.slidesPerView!==r.slidesPerView||v);v&&n&&e.changeDirection(),wn(e.params,d);const w=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),g&&!w?e.disable():!g&&w&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",d),b&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",d)}function E8(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const i=Wt(),s=t==="window"?i.innerHeight:n.clientHeight,l=Object.keys(e).map(c=>{if(typeof c=="string"&&c.indexOf("@")===0){const d=parseFloat(c.substr(1));return{value:s*d,point:c}}return{value:c,point:c}});l.sort((c,d)=>parseInt(c.value,10)-parseInt(d.value,10));for(let c=0;c<l.length;c+=1){const{point:d,value:f}=l[c];t==="window"?i.matchMedia(`(min-width: ${f}px)`).matches&&(r=d):f<=n.clientWidth&&(r=d)}return r||"max"}const y8={setBreakpoint:w8,getBreakpoint:E8};function C8(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function T8(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:s}=e,l=C8(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...l),i.classList.add(...t),e.emitContainerClasses()}function S8(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const I8={addClasses:T8,removeClasses:S8};function A8(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,s=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>s}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const O8={checkOverflow:A8},Fg={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function $8(e,t){return function(r={}){const i=Object.keys(r)[0],s=r[i];if(typeof s!="object"||s===null){wn(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&e[i]===!0&&(e[i]={auto:!0}),!(i in e&&"enabled"in s)){wn(t,r);return}e[i]===!0&&(e[i]={enabled:!0}),typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),wn(t,r)}}const zu={eventsEmitter:Iy,update:ky,translate:Uy,transition:Yy,slide:n8,loop:s8,grabCursor:c8,events:x8,breakpoints:y8,checkOverflow:O8,classes:I8},Gu={};let Ns=class Kr{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=wn({},r),n&&!r.el&&(r.el=n);const i=Mr();if(r.el&&typeof r.el=="string"&&i.querySelectorAll(r.el).length>1){const d=[];return i.querySelectorAll(r.el).forEach(f=>{const m=wn({},r,{el:f});d.push(new Kr(m))}),d}const s=this;s.__swiper__=!0,s.support=Pg(),s.device=Ey({userAgent:r.userAgent}),s.browser=Cy(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],r.modules&&Array.isArray(r.modules)&&s.modules.push(...r.modules);const l={};s.modules.forEach(d=>{d({params:r,swiper:s,extendParams:$8(r,l),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const c=wn({},Fg,l);return s.params=wn({},c,Gu,r),s.originalParams=wn({},s.params),s.passedParams=wn({},r),s.params&&s.params.on&&Object.keys(s.params.on).forEach(d=>{s.on(d,s.params.on[d])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return s.params.direction==="horizontal"},isVertical(){return s.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=br(n,`.${r.slideClass}, swiper-slide`),s=Dg(i[0]);return Dg(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=br(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),l=(r.maxTranslate()-i)*t+i;r.translateTo(l,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:i,slides:s,slidesGrid:l,slidesSizesGrid:c,size:d,activeIndex:f}=r;let m=1;if(i.centeredSlides){let g=s[f]?s[f].swiperSlideSize:0,v;for(let b=f+1;b<s.length;b+=1)s[b]&&!v&&(g+=s[b].swiperSlideSize,m+=1,g>d&&(v=!0));for(let b=f-1;b>=0;b-=1)s[b]&&!v&&(g+=s[b].swiperSlideSize,m+=1,g>d&&(v=!0))}else if(t==="current")for(let g=f+1;g<s.length;g+=1)(n?l[g]+c[g]-l[f]<d:l[g]-l[f]<d)&&(m+=1);else for(let g=f-1;g>=0;g-=1)l[f]-l[g]<d&&(m+=1);return m}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(l=>{l.complete&&ul(t,l)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const l=t.rtlTranslate?t.translate*-1:t.translate,c=Math.min(Math.max(l,t.maxTranslate()),t.minTranslate());t.setTranslate(c),t.updateActiveIndex(),t.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const l=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;s=t.slideTo(l.length-1,0,!1,!0)}else s=t.slideTo(t.activeIndex,0,!1,!0);s||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(s=>{t==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):br(r,i())[0];return!l&&n.params.createElements&&(l=$g("div",n.params.wrapperClass),r.append(l),br(r,`.${n.params.slideClass}`).forEach(c=>{l.append(c)})),Object.assign(n,{el:r,wrapperEl:l,slidesEl:n.isElement?r:l,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||li(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||li(r,"direction")==="rtl"),wrongRTL:li(l,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete?ul(n,i):i.addEventListener("load",s=>{ul(n,s.target)})}),Bu(n),n.initialized=!0,Bu(n),n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:i,el:s,wrapperEl:l,slides:c}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),s.removeAttribute("style"),l.removeAttribute("style"),c&&c.length&&c.forEach(d=>{d.classList.remove(i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),d.removeAttribute("style"),d.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(d=>{r.off(d)}),t!==!1&&(r.el.swiper=null,py(r)),r.destroyed=!0),null}static extendDefaults(t){wn(Gu,t)}static get extendedDefaults(){return Gu}static get defaults(){return Fg}static installModule(t){Kr.prototype.__modules__||(Kr.prototype.__modules__=[]);const n=Kr.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Kr.installModule(n)),Kr):(Kr.installModule(t),Kr)}};Object.keys(zu).forEach(e=>{Object.keys(zu[e]).forEach(t=>{Ns.prototype[t]=zu[e][t]})}),Ns.use([Ty,Sy]);function D8({swiper:e,extendParams:t,on:n,emit:r}){const i=Mr(),s=Wt();e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function l(f){if(!e.enabled)return;const{rtlTranslate:m}=e;let g=f;g.originalEvent&&(g=g.originalEvent);const v=g.keyCode||g.charCode,b=e.params.keyboard.pageUpDown,w=b&&v===33,_=b&&v===34,E=v===37,y=v===39,T=v===38,S=v===40;if(!e.allowSlideNext&&(e.isHorizontal()&&y||e.isVertical()&&S||_)||!e.allowSlidePrev&&(e.isHorizontal()&&E||e.isVertical()&&T||w))return!1;if(!(g.shiftKey||g.altKey||g.ctrlKey||g.metaKey)&&!(i.activeElement&&i.activeElement.nodeName&&(i.activeElement.nodeName.toLowerCase()==="input"||i.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(w||_||E||y||T||S)){let O=!1;if(Ru(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Ru(e.el,`.${e.params.slideActiveClass}`).length===0)return;const I=e.el,M=I.clientWidth,N=I.clientHeight,D=s.innerWidth,k=s.innerHeight,Y=vy(I);m&&(Y.left-=I.scrollLeft);const L=[[Y.left,Y.top],[Y.left+M,Y.top],[Y.left,Y.top+N],[Y.left+M,Y.top+N]];for(let G=0;G<L.length;G+=1){const Z=L[G];if(Z[0]>=0&&Z[0]<=D&&Z[1]>=0&&Z[1]<=k){if(Z[0]===0&&Z[1]===0)continue;O=!0}}if(!O)return}e.isHorizontal()?((w||_||E||y)&&(g.preventDefault?g.preventDefault():g.returnValue=!1),((_||y)&&!m||(w||E)&&m)&&e.slideNext(),((w||E)&&!m||(_||y)&&m)&&e.slidePrev()):((w||_||T||S)&&(g.preventDefault?g.preventDefault():g.returnValue=!1),(_||S)&&e.slideNext(),(w||T)&&e.slidePrev()),r("keyPress",v)}}function c(){e.keyboard.enabled||(i.addEventListener("keydown",l),e.keyboard.enabled=!0)}function d(){e.keyboard.enabled&&(i.removeEventListener("keydown",l),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&c()}),n("destroy",()=>{e.keyboard.enabled&&d()}),Object.assign(e.keyboard,{enable:c,disable:d})}function M8(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let s=br(e.el,`.${r[i]}`)[0];s||(s=$g("div",r[i]),s.className=r[i],e.el.append(s)),n[i]=s,t[i]=s}}),n}function P8({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const i=w=>(Array.isArray(w)||(w=[w].filter(_=>!!_)),w);function s(w){let _;return w&&typeof w=="string"&&e.isElement&&(_=e.el.shadowRoot.querySelector(w),_)?_:(w&&(typeof w=="string"&&(_=[...document.querySelectorAll(w)]),e.params.uniqueNavElements&&typeof w=="string"&&_.length>1&&e.el.querySelectorAll(w).length===1&&(_=e.el.querySelector(w))),w&&!_?w:_)}function l(w,_){const E=e.params.navigation;w=i(w),w.forEach(y=>{y&&(y.classList[_?"add":"remove"](...E.disabledClass.split(" ")),y.tagName==="BUTTON"&&(y.disabled=_),e.params.watchOverflow&&e.enabled&&y.classList[e.isLocked?"add":"remove"](E.lockClass))})}function c(){const{nextEl:w,prevEl:_}=e.navigation;if(e.params.loop){l(_,!1),l(w,!1);return}l(_,e.isBeginning&&!e.params.rewind),l(w,e.isEnd&&!e.params.rewind)}function d(w){w.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function f(w){w.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function m(){const w=e.params.navigation;if(e.params.navigation=M8(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(w.nextEl||w.prevEl))return;let _=s(w.nextEl),E=s(w.prevEl);Object.assign(e.navigation,{nextEl:_,prevEl:E}),_=i(_),E=i(E);const y=(T,S)=>{T&&T.addEventListener("click",S==="next"?f:d),!e.enabled&&T&&T.classList.add(...w.lockClass.split(" "))};_.forEach(T=>y(T,"next")),E.forEach(T=>y(T,"prev"))}function g(){let{nextEl:w,prevEl:_}=e.navigation;w=i(w),_=i(_);const E=(y,T)=>{y.removeEventListener("click",T==="next"?f:d),y.classList.remove(...e.params.navigation.disabledClass.split(" "))};w.forEach(y=>E(y,"next")),_.forEach(y=>E(y,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?b():(m(),c())}),n("toEdge fromEdge lock unlock",()=>{c()}),n("destroy",()=>{g()}),n("enable disable",()=>{let{nextEl:w,prevEl:_}=e.navigation;w=i(w),_=i(_),[...w,..._].filter(E=>!!E).forEach(E=>E.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(w,_)=>{let{nextEl:E,prevEl:y}=e.navigation;E=i(E),y=i(y);const T=_.target;if(e.params.navigation.hideOnClick&&!y.includes(T)&&!E.includes(T)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===T||e.pagination.el.contains(T)))return;let S;E.length?S=E[0].classList.contains(e.params.navigation.hiddenClass):y.length&&(S=y[0].classList.contains(e.params.navigation.hiddenClass)),r(S===!0?"navigationShow":"navigationHide"),[...E,...y].filter(O=>!!O).forEach(O=>O.classList.toggle(e.params.navigation.hiddenClass))}});const v=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),m(),c()},b=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),g()};Object.assign(e.navigation,{enable:v,disable:b,update:c,init:m,destroy:g})}function zi(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function ci(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:zi(t[r])&&zi(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:ci(e[r],t[r]):e[r]=t[r]})}function Bg(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function zg(e={}){return e.pagination&&typeof e.pagination.el>"u"}function Gg(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function Hg(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function N8(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const Ug=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function R8(e={},t=!0){const n={on:{}},r={},i={};ci(n,Ns.defaults),ci(n,Ns.extendedDefaults),n._emitClasses=!0,n.init=!1;const s={},l=Ug.map(d=>d.replace(/_/,"")),c=Object.assign({},e);return Object.keys(c).forEach(d=>{typeof e[d]>"u"||(l.indexOf(d)>=0?zi(e[d])?(n[d]={},i[d]={},ci(n[d],e[d]),ci(i[d],e[d])):(n[d]=e[d],i[d]=e[d]):d.search(/on[A-Z]/)===0&&typeof e[d]=="function"?t?r[`${d[2].toLowerCase()}${d.substr(3)}`]=e[d]:n.on[`${d[2].toLowerCase()}${d.substr(3)}`]=e[d]:s[d]=e[d])}),["navigation","pagination","scrollbar"].forEach(d=>{n[d]===!0&&(n[d]={}),n[d]===!1&&delete n[d]}),{params:n,passedParams:i,rest:s,events:r}}function L8({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:s},l){Bg(l)&&t&&n&&(s.params.navigation.nextEl=t,s.originalParams.navigation.nextEl=t,s.params.navigation.prevEl=n,s.originalParams.navigation.prevEl=n),zg(l)&&r&&(s.params.pagination.el=r,s.originalParams.pagination.el=r),Gg(l)&&i&&(s.params.scrollbar.el=i,s.originalParams.scrollbar.el=i),s.init(e)}function j8(e,t,n,r,i){const s=[];if(!t)return s;const l=d=>{s.indexOf(d)<0&&s.push(d)};if(n&&r){const d=r.map(i),f=n.map(i);d.join("")!==f.join("")&&l("children"),r.length!==n.length&&l("children")}return Ug.filter(d=>d[0]==="_").map(d=>d.replace(/_/,"")).forEach(d=>{if(d in e&&d in t)if(zi(e[d])&&zi(t[d])){const f=Object.keys(e[d]),m=Object.keys(t[d]);f.length!==m.length?l(d):(f.forEach(g=>{e[d][g]!==t[d][g]&&l(d)}),m.forEach(g=>{e[d][g]!==t[d][g]&&l(d)}))}else e[d]!==t[d]&&l(d)}),s}function Vg(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function Wg(e){const t=[];return p.Children.toArray(e).forEach(n=>{Vg(n)?t.push(n):n.props&&n.props.children&&Wg(n.props.children).forEach(r=>t.push(r))}),t}function k8(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return p.Children.toArray(e).forEach(r=>{if(Vg(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=Wg(r.props.children);i.length>0?i.forEach(s=>t.push(s)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function F8({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:s,scrollbarEl:l,paginationEl:c}){const d=r.filter(D=>D!=="children"&&D!=="direction"&&D!=="wrapperClass"),{params:f,pagination:m,navigation:g,scrollbar:v,virtual:b,thumbs:w}=e;let _,E,y,T,S,O,I,M;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&f.thumbs&&!f.thumbs.swiper&&(_=!0),r.includes("controller")&&n.controller&&n.controller.control&&f.controller&&!f.controller.control&&(E=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||c)&&(f.pagination||f.pagination===!1)&&m&&!m.el&&(y=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||l)&&(f.scrollbar||f.scrollbar===!1)&&v&&!v.el&&(T=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||s)&&(n.navigation.nextEl||i)&&(f.navigation||f.navigation===!1)&&g&&!g.prevEl&&!g.nextEl&&(S=!0);const N=D=>{e[D]&&(e[D].destroy(),D==="navigation"?(e.isElement&&(e[D].prevEl.remove(),e[D].nextEl.remove()),f[D].prevEl=void 0,f[D].nextEl=void 0,e[D].prevEl=void 0,e[D].nextEl=void 0):(e.isElement&&e[D].el.remove(),f[D].el=void 0,e[D].el=void 0))};r.includes("loop")&&e.isElement&&(f.loop&&!n.loop?O=!0:!f.loop&&n.loop?I=!0:M=!0),d.forEach(D=>{if(zi(f[D])&&zi(n[D]))ci(f[D],n[D]),(D==="navigation"||D==="pagination"||D==="scrollbar")&&"enabled"in n[D]&&!n[D].enabled&&N(D);else{const k=n[D];(k===!0||k===!1)&&(D==="navigation"||D==="pagination"||D==="scrollbar")?k===!1&&N(D):f[D]=n[D]}}),d.includes("controller")&&!E&&e.controller&&e.controller.control&&f.controller&&f.controller.control&&(e.controller.control=f.controller.control),r.includes("children")&&t&&b&&f.virtual.enabled&&(b.slides=t,b.update(!0)),r.includes("children")&&t&&f.loop&&(M=!0),_&&w.init()&&w.update(!0),E&&(e.controller.control=f.controller.control),y&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(c)),c&&(f.pagination.el=c),m.init(),m.render(),m.update()),T&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(l)),l&&(f.scrollbar.el=l),v.init(),v.updateSize(),v.setTranslate()),S&&(e.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(i)),(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(s))),i&&(f.navigation.nextEl=i),s&&(f.navigation.prevEl=s),g.init(),g.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(O||M)&&e.loopDestroy(),(I||M)&&e.loopCreate(),e.update()}function B8(e,t,n){if(!n)return null;const r=m=>{let g=m;return m<0?g=t.length+m:g>=t.length&&(g=g-t.length),g},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:s,to:l}=n,c=e.params.loop?-t.length:0,d=e.params.loop?t.length*2:t.length,f=[];for(let m=c;m<d;m+=1)m>=s&&m<=l&&f.push(t[r(m)]);return f.map((m,g)=>p.cloneElement(m,{swiper:e,style:i,key:`slide-${g}`}))}const z8=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Rs(e,t){return typeof window>"u"?p.useEffect(e,t):p.useLayoutEffect(e,t)}const qg=p.createContext(null),G8=p.createContext(null);function Hu(){return Hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hu.apply(this,arguments)}const Yg=p.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:s,onSwiper:l,...c}=e===void 0?{}:e,d=!1;const[f,m]=p.useState("swiper"),[g,v]=p.useState(null),[b,w]=p.useState(!1),_=p.useRef(!1),E=p.useRef(null),y=p.useRef(null),T=p.useRef(null),S=p.useRef(null),O=p.useRef(null),I=p.useRef(null),M=p.useRef(null),N=p.useRef(null),{params:D,passedParams:k,rest:Y,events:L}=R8(c),{slides:G,slots:Z}=k8(s),R=()=>{w(!b)};Object.assign(D.on,{_containerClasses(q,U){m(U)}});const K=()=>{Object.assign(D.on,L),d=!0;const q={...D};if(delete q.wrapperClass,y.current=new Ns(q),y.current.virtual&&y.current.params.virtual.enabled){y.current.virtual.slides=G;const U={cache:!1,slides:G,renderExternal:v,renderExternalUpdate:!1};ci(y.current.params.virtual,U),ci(y.current.originalParams.virtual,U)}};E.current||K(),y.current&&y.current.on("_beforeBreakpoint",R);const B=()=>{d||!L||!y.current||Object.keys(L).forEach(q=>{y.current.on(q,L[q])})},W=()=>{!L||!y.current||Object.keys(L).forEach(q=>{y.current.off(q,L[q])})};p.useEffect(()=>()=>{y.current&&y.current.off("_beforeBreakpoint",R)}),p.useEffect(()=>{!_.current&&y.current&&(y.current.emitSlidesClasses(),_.current=!0)}),Rs(()=>{if(t&&(t.current=E.current),!!E.current)return y.current.destroyed&&K(),L8({el:E.current,nextEl:O.current,prevEl:I.current,paginationEl:M.current,scrollbarEl:N.current,swiper:y.current},D),l&&l(y.current),()=>{y.current&&!y.current.destroyed&&y.current.destroy(!0,!1)}},[]),Rs(()=>{B();const q=j8(k,T.current,G,S.current,U=>U.key);return T.current=k,S.current=G,q.length&&y.current&&!y.current.destroyed&&F8({swiper:y.current,slides:G,passedParams:k,changedParams:q,nextEl:O.current,prevEl:I.current,scrollbarEl:N.current,paginationEl:M.current}),()=>{W()}}),Rs(()=>{z8(y.current)},[g]);function J(){return D.virtual?B8(y.current,G,g):G.map((q,U)=>p.cloneElement(q,{swiper:y.current,swiperSlideIndex:U}))}return p.createElement(r,Hu({ref:E,className:Hg(`${f}${n?` ${n}`:""}`)},Y),p.createElement(G8.Provider,{value:y.current},Z["container-start"],p.createElement(i,{className:N8(D.wrapperClass)},Z["wrapper-start"],J(),Z["wrapper-end"]),Bg(D)&&p.createElement(p.Fragment,null,p.createElement("div",{ref:I,className:"swiper-button-prev"}),p.createElement("div",{ref:O,className:"swiper-button-next"})),Gg(D)&&p.createElement("div",{ref:N,className:"swiper-scrollbar"}),zg(D)&&p.createElement("div",{ref:M,className:"swiper-pagination"}),Z["container-end"]))});Yg.displayName="Swiper";function Uu(){return Uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uu.apply(this,arguments)}const Zg=p.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:s,zoom:l,lazy:c,virtualIndex:d,swiperSlideIndex:f,...m}=e===void 0?{}:e;const g=p.useRef(null),[v,b]=p.useState("swiper-slide"),[w,_]=p.useState(!1);function E(O,I,M){I===g.current&&b(M)}Rs(()=>{if(typeof f<"u"&&(g.current.swiperSlideIndex=f),t&&(t.current=g.current),!(!g.current||!s)){if(s.destroyed){v!=="swiper-slide"&&b("swiper-slide");return}return s.on("_slideClass",E),()=>{s&&s.off("_slideClass",E)}}}),Rs(()=>{s&&g.current&&!s.destroyed&&b(s.getSlideClasses(g.current))},[s]);const y={isActive:v.indexOf("swiper-slide-active")>=0,isVisible:v.indexOf("swiper-slide-visible")>=0,isPrev:v.indexOf("swiper-slide-prev")>=0,isNext:v.indexOf("swiper-slide-next")>=0},T=()=>typeof r=="function"?r(y):r,S=()=>{_(!0)};return p.createElement(n,Uu({ref:g,className:Hg(`${v}${i?` ${i}`:""}`),"data-swiper-slide-index":d,onLoad:S},m),l&&p.createElement(qg.Provider,{value:y},p.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof l=="number"?l:void 0},T(),c&&!w&&p.createElement("div",{className:"swiper-lazy-preloader"}))),!l&&p.createElement(qg.Provider,{value:y},T(),c&&!w&&p.createElement("div",{className:"swiper-lazy-preloader"})))});Zg.displayName="SwiperSlide";const H8=e=>{const{avatar:t,message:n,feedbackRequested:r,onFeedbackClicked:i,onMessageButtonClicked:s}=e,[l,c]=p.useState(null),[d,f]=p.useState(null),[m,g]=p.useState(),v=_=>_.isPositive?u.jsx("div",{className:se(Ve["chat-item--icon"],Ve["chat-item--feedback-given"]),children:u.jsx(sh,{className:"text--purple-800"})}):u.jsx("div",{className:se(Ve["chat-item--icon"],Ve["chat-item--feedback-given"]),children:u.jsx(ih,{className:"text--purple-800"})}),b=_=>u.jsxs("div",{className:Ve["chat-item--feedback"],children:[u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-700",children:_||"Was it helpful?"}),u.jsxs("div",{className:Ve["chat-item-feedback-icons"],children:[u.jsx("button",{className:se(Ve["chat-item--icon"],"cursor-pointer"),onClick:()=>i==null?void 0:i(!0),children:u.jsx(sh,{className:"text--gray-700"})}),u.jsx("button",{className:se(Ve["chat-item--icon"],"cursor-pointer"),onClick:()=>i==null?void 0:i(!1),children:u.jsx(ih,{className:"text--gray-700"})})]})]}),w=_=>{switch(_.type){case"chat":return u.jsxs("div",{children:[u.jsxs("div",{className:se(Ve["chat-item--chat"],Ve[`chat-item--chat-${_.whoSent}`]),children:[u.jsx(ye,{size:"xs",fontWeight:"regular",color:_.whoSent==="bot"?"gray-1000":"white",children:_.text}),r&&v(r)]}),_.whoSent==="bot"&&_.caption&&u.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:Ve["chat-item--caption"],children:_.caption}),_.whoSent==="bot"&&_.feedbackRequest&&!r&&b(_.feedbackRequestLabel)]});case"jpg":return u.jsxs("div",{className:Ve["chat-item--media"],children:[u.jsxs("div",{className:Ve["chat-item--feedback-requested"],children:[u.jsx("img",{src:_.imageUrl,alt:_.imageAlt,className:Ve["chat-item--image"]}),r&&v(r)]}),_.whoSent==="bot"&&_.caption&&u.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:Ve["chat-item--caption"],children:_.caption}),_.whoSent==="bot"&&_.feedbackRequest&&!r&&b(_.feedbackRequestLabel)]});case"mp4":return u.jsxs("div",{className:Ve["chat-item--media"],children:[u.jsxs("div",{className:Ve["chat-item--feedback-requested"],children:[u.jsx("iframe",{src:_.videoPreviewUrl,className:Ve["chat-item--video"],title:"Video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0}),r&&v(r)]}),_.whoSent==="bot"&&_.caption&&u.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:Ve["chat-item--caption"],children:_.caption}),_.whoSent==="bot"&&_.feedbackRequest&&!r&&b(_.feedbackRequestLabel)]});case"button":return u.jsx("div",{className:Ve["chat-item--button-container"],children:_.buttons.map((E,y)=>u.jsx(mt,{onClick:()=>s==null?void 0:s((E==null?void 0:E.label)||""),...E},(E==null?void 0:E.id)??y))});case"typing":return u.jsx("div",{className:Ve["chat-item--typing"],children:u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-1000",children:"..."})});case"cards":return u.jsxs("div",{className:Ve["chat-item--carousel"],children:[u.jsx(Yg,{slidesPerView:"auto",modules:[P8,D8],onSlideChange:E=>g(E.activeIndex),navigation:{prevEl:l,nextEl:d},keyboard:{enabled:!0},className:Ve["swiper-wrapper"],children:_.cards.map((E,y)=>u.jsx(Zg,{children:u.jsxs("div",{className:Ve["chat-item--carousel-card"],children:[E.imageUrl&&u.jsx("img",{src:E.imageUrl,alt:E.imageAlt,className:Ve["chat-item--card-image"]}),u.jsxs("div",{className:Ve["chat-item--card-content"],children:[u.jsx(ye,{fontWeight:"bold",size:"sm",color:"gray-1000",children:E.title}),u.jsx(ye,{fontWeight:"regular",size:"xs",color:"gray-800",children:E.title}),E.buttons&&u.jsx("div",{className:Ve["chat-item--card-buttons"],children:E.buttons.map((T,S)=>u.jsx(mt,{...T,fullWidth:!0},(T==null?void 0:T.id)??S))})]})]})},y))}),_.cards.length>1&&u.jsxs(u.Fragment,{children:[u.jsx("div",{ref:E=>c(E),className:Ve["chat-item--carousel-left-navigation"],children:u.jsx(st,{color:"primary",variant:"outlined",disabled:m===0,children:u.jsx(Zx,{})})}),u.jsx("div",{ref:E=>f(E),className:Ve["chat-item--carousel-right-navigation"],children:u.jsx(st,{color:"primary",variant:"outlined",disabled:m===_.cards.length-1,children:u.jsx(Kx,{})})})]})]})}};return u.jsxs("div",{className:se(Ve["chat-item"],Ve[`chat-item--${n.whoSent}`]),children:[n.whoSent==="bot"&&u.jsx("div",{className:Ve["chat-item--avatar-container"],children:u.jsx($o,{...t})}),w(n)]})},U8=e=>{const{avatar:t,messages:n,isTyping:r=!1,feedbackRequested:i=[],onMessageButtonClicked:s,onInputChange:l,onFeedbackClicked:c}=e,d=[...n,...r?[{type:"typing",whoSent:"bot"}]:[]],f=(g,v)=>{g.whoSent==="bot"&&g.type!=="typing"&&!i.find(b=>b.id===g.id)&&(c==null||c(g,v))},m=d[d.length-1].type==="button";return u.jsxs("div",{className:Tg["chat-content"],children:[u.jsx("div",{className:Tg["chat-messages"],children:d.map((g,v)=>{const b="id"in g?i.find(w=>w.id===g.id):void 0;return u.jsx(H8,{avatar:t,message:g,feedbackRequested:b,onMessageButtonClicked:s,onFeedbackClicked:w=>f(g,w)},(g==null?void 0:g.id)??v)})}),m?u.jsx("div",{children:u.jsx(Mn,{variant:"soft",color:"gray",label:"Choose an option to continue",closeIcon:!1})}):u.jsx(Sg,{placeholder:"Chat input",onChange:l})]})};/*!
|
|
102
102
|
* FilePond 4.32.7
|
|
103
103
|
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
104
104
|
* Please visit https://pqina.nl/filepond/ for details.
|
|
105
|
-
*/const V8=e=>e instanceof HTMLElement,W8=(e,t=[],n=[])=>{const r={...e},i=[],s=[],l=()=>({...r}),c=()=>{const E=[...i];return i.length=0,E},d=()=>{const E=[...s];s.length=0,E.forEach(({type:_,data:w})=>{f(_,w)})},f=(E,_,w)=>{if(w&&!document.hidden){s.push({type:E,data:_});return}b[E]&&b[E](_),i.push({type:E,data:_})},m=(E,..._)=>v[E]?v[E](..._):null,g={getState:l,processActionQueue:c,processDispatchQueue:d,dispatch:f,query:m};let v={};t.forEach(E=>{v={...E(r),...v}});let b={};return n.forEach(E=>{b={...E(f,m,r),...b}}),g},q8=(e,t,n)=>{if(typeof n=="function"){e[t]=n;return}Object.defineProperty(e,t,{...n})},ut=(e,t)=>{for(const n in e)e.hasOwnProperty(n)&&t(n,e[n])},di=e=>{const t={};return ut(e,n=>{q8(t,n,e[n])}),t},Tt=(e,t,n=null)=>{if(n===null)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},Y8="http://www.w3.org/2000/svg",Z8=["svg","path"],Kg=e=>Z8.includes(e),pl=(e,t,n={})=>{typeof t=="object"&&(n=t,t=null);const r=Kg(e)?document.createElementNS(Y8,e):document.createElement(e);return t&&(Kg(e)?Tt(r,"class",t):r.className=t),ut(n,(i,s)=>{Tt(r,i,s)}),r},X8=e=>(t,n)=>{typeof n<"u"&&e.children[n]?e.insertBefore(t,e.children[n]):e.appendChild(t)},K8=(e,t)=>(n,r)=>(typeof r<"u"?t.splice(r,0,n):t.push(n),n),Q8=(e,t)=>n=>(t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n),J8=typeof window<"u"&&typeof window.document<"u",Qg=()=>J8,eC="children"in(Qg()?pl("svg"):{})?e=>e.children.length:e=>e.childNodes.length,Jg=(e,t,n,r)=>{const i=n[0]||e.left,s=n[1]||e.top,l=i+e.width,c=s+e.height*(r[1]||1),d={element:{...e},inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:i,top:s,right:l,bottom:c}};return t.filter(f=>!f.isRectIgnored()).map(f=>f.rect).forEach(f=>{em(d.inner,{...f.inner}),em(d.outer,{...f.outer})}),tm(d.inner),d.outer.bottom+=d.element.marginBottom,d.outer.right+=d.element.marginRight,tm(d.outer),d},em=(e,t)=>{t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},tm=e=>{e.width=e.right-e.left,e.height=e.bottom-e.top},Gi=e=>typeof e=="number",tC=(e,t,n,r=.001)=>Math.abs(e-t)<r&&Math.abs(n)<r,nC=({stiffness:e=.5,damping:t=.75,mass:n=10}={})=>{let r=null,i=null,s=0,l=!1;const f=di({interpolate:(m,g)=>{if(l)return;if(!(Gi(r)&&Gi(i))){l=!0,s=0;return}const v=-(i-r)*e;s+=v/n,i+=s,s*=t,tC(i,r,s)||g?(i=r,s=0,l=!0,f.onupdate(i),f.oncomplete(i)):f.onupdate(i)},target:{set:m=>{if(Gi(m)&&!Gi(i)&&(i=m),r===null&&(r=m,i=m),r=m,i===r||typeof r>"u"){l=!0,s=0,f.onupdate(i),f.oncomplete(i);return}l=!1},get:()=>r},resting:{get:()=>l},onupdate:m=>{},oncomplete:m=>{}});return f},rC=e=>e<.5?2*e*e:-1+(4-2*e)*e,nm={spring:nC,tween:({duration:e=500,easing:t=rC,delay:n=0}={})=>{let r=null,i,s,l=!0,c=!1,d=null;const m=di({interpolate:(g,v)=>{l||d===null||(r===null&&(r=g),!(g-r<n)&&(i=g-r-n,i>=e||v?(i=1,s=c?0:1,m.onupdate(s*d),m.oncomplete(s*d),l=!0):(s=i/e,m.onupdate((i>=0?t(c?1-s:s):0)*d))))},target:{get:()=>c?0:d,set:g=>{if(d===null){d=g,m.onupdate(g),m.oncomplete(g);return}g<d?(d=1,c=!0):(c=!1,d=g),l=!1,r=null}},resting:{get:()=>l},onupdate:g=>{},oncomplete:g=>{}});return m}},iC=(e,t,n)=>{const r=e[t]&&typeof e[t][n]=="object"?e[t][n]:e[t]||e,i=typeof r=="string"?r:r.type,s=typeof r=="object"?{...r}:{};return nm[i]?nm[i](s):null},Wu=(e,t,n,r=!1)=>{t=Array.isArray(t)?t:[t],t.forEach(i=>{e.forEach(s=>{let l=s,c=()=>n[s],d=f=>n[s]=f;typeof s=="object"&&(l=s.key,c=s.getter||c,d=s.setter||d),!(i[l]&&!r)&&(i[l]={get:c,set:d})})})},oC=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r})=>{const i={...t},s=[];return ut(e,(l,c)=>{const d=iC(c);if(!d)return;d.onupdate=m=>{t[l]=m},d.target=i[l],Wu([{key:l,setter:m=>{d.target!==m&&(d.target=m)},getter:()=>t[l]}],[n,r],t,!0),s.push(d)}),{write:l=>{let c=document.hidden,d=!0;return s.forEach(f=>{f.resting||(d=!1),f.interpolate(l,c)}),d},destroy:()=>{}}},sC=e=>(t,n)=>{e.addEventListener(t,n)},aC=e=>(t,n)=>{e.removeEventListener(t,n)},lC=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r,viewState:i,view:s})=>{const l=[],c=sC(s.element),d=aC(s.element);return r.on=(f,m)=>{l.push({type:f,fn:m}),c(f,m)},r.off=(f,m)=>{l.splice(l.findIndex(g=>g.type===f&&g.fn===m),1),d(f,m)},{write:()=>!0,destroy:()=>{l.forEach(f=>{d(f.type,f.fn)})}}},cC=({mixinConfig:e,viewProps:t,viewExternalAPI:n})=>{Wu(e,n,t)},qt=e=>e!=null,dC={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},uC=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r,view:i})=>{const s={...t},l={};Wu(e,[n,r],t);const c=()=>[t.translateX||0,t.translateY||0],d=()=>[t.scaleX||0,t.scaleY||0],f=()=>i.rect?Jg(i.rect,i.childViews,c(),d()):null;return n.rect={get:f},r.rect={get:f},e.forEach(m=>{t[m]=typeof s[m]>"u"?dC[m]:s[m]}),{write:()=>{if(fC(l,t))return pC(i.element,t),Object.assign(l,{...t}),!0},destroy:()=>{}}},fC=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const n in t)if(t[n]!==e[n])return!0;return!1},pC=(e,{opacity:t,perspective:n,translateX:r,translateY:i,scaleX:s,scaleY:l,rotateX:c,rotateY:d,rotateZ:f,originX:m,originY:g,width:v,height:b})=>{let E="",_="";(qt(m)||qt(g))&&(_+=`transform-origin: ${m||0}px ${g||0}px;`),qt(n)&&(E+=`perspective(${n}px) `),(qt(r)||qt(i))&&(E+=`translate3d(${r||0}px, ${i||0}px, 0) `),(qt(s)||qt(l))&&(E+=`scale3d(${qt(s)?s:1}, ${qt(l)?l:1}, 1) `),qt(f)&&(E+=`rotateZ(${f}rad) `),qt(c)&&(E+=`rotateX(${c}rad) `),qt(d)&&(E+=`rotateY(${d}rad) `),E.length&&(_+=`transform:${E};`),qt(t)&&(_+=`opacity:${t};`,t===0&&(_+="visibility:hidden;"),t<1&&(_+="pointer-events:none;")),qt(b)&&(_+=`height:${b}px;`),qt(v)&&(_+=`width:${v}px;`);const w=e.elementCurrentStyle||"";(_.length!==w.length||_!==w)&&(e.style.cssText=_,e.elementCurrentStyle=_)},hC={styles:uC,listeners:lC,animations:oC,apis:cC},rm=(e={},t={},n={})=>(t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=t.offsetParent===null,e),wt=({tag:e="div",name:t=null,attributes:n={},read:r=()=>{},write:i=()=>{},create:s=()=>{},destroy:l=()=>{},filterFrameActionsForChild:c=(b,E)=>E,didCreateView:d=()=>{},didWriteView:f=()=>{},ignoreRect:m=!1,ignoreRectUpdate:g=!1,mixins:v=[]}={})=>(b,E={})=>{const _=pl(e,`filepond--${t}`,n),w=window.getComputedStyle(_,null),y=rm();let T=null,S=!1;const O=[],I=[],M={},N={},D=[i],k=[r],Y=[l],L=()=>_,G=()=>O.concat(),X=()=>M,R=ne=>(le,ge)=>le(ne,ge),K=()=>T||(T=Jg(y,O,[0,0],[1,1]),T),B=()=>w,W=()=>{T=null,O.forEach(ge=>ge._read()),!(g&&y.width&&y.height)&&rm(y,_,w);const le={root:pe,props:E,rect:y};k.forEach(ge=>ge(le))},J=(ne,le,ge)=>{let be=le.length===0;return D.forEach(he=>{he({props:E,root:pe,actions:le,timestamp:ne,shouldOptimize:ge})===!1&&(be=!1)}),I.forEach(he=>{he.write(ne)===!1&&(be=!1)}),O.filter(he=>!!he.element.parentNode).forEach(he=>{he._write(ne,c(he,le),ge)||(be=!1)}),O.forEach((he,We)=>{he.element.parentNode||(pe.appendChild(he.element,We),he._read(),he._write(ne,c(he,le),ge),be=!1)}),S=be,f({props:E,root:pe,actions:le,timestamp:ne}),be},q=()=>{I.forEach(ne=>ne.destroy()),Y.forEach(ne=>{ne({root:pe,props:E})}),O.forEach(ne=>ne._destroy())},U={element:{get:L},style:{get:B},childViews:{get:G}},V={...U,rect:{get:K},ref:{get:X},is:ne=>t===ne,appendChild:X8(_),createChildView:R(b),linkView:ne=>(O.push(ne),ne),unlinkView:ne=>{O.splice(O.indexOf(ne),1)},appendChildView:K8(_,O),removeChildView:Q8(_,O),registerWriter:ne=>D.push(ne),registerReader:ne=>k.push(ne),registerDestroyer:ne=>Y.push(ne),invalidateLayout:()=>_.layoutCalculated=!1,dispatch:b.dispatch,query:b.query},ce={element:{get:L},childViews:{get:G},rect:{get:K},resting:{get:()=>S},isRectIgnored:()=>m,_read:W,_write:J,_destroy:q},ue={...U,rect:{get:()=>y}};Object.keys(v).sort((ne,le)=>ne==="styles"?1:le==="styles"?-1:0).forEach(ne=>{const le=hC[ne]({mixinConfig:v[ne],viewProps:E,viewState:N,viewInternalAPI:V,viewExternalAPI:ce,view:di(ue)});le&&I.push(le)});const pe=di(V);s({root:pe,props:E});const we=eC(_);return O.forEach((ne,le)=>{pe.appendChild(ne.element,we+le)}),d(pe),di(ce)},gC=(e,t,n=60)=>{const r="__framePainter";if(window[r]){window[r].readers.push(e),window[r].writers.push(t);return}window[r]={readers:[e],writers:[t]};const i=window[r],s=1e3/n;let l=null,c=null,d=null,f=null;const m=()=>{document.hidden?(d=()=>window.setTimeout(()=>g(performance.now()),s),f=()=>window.clearTimeout(c)):(d=()=>window.requestAnimationFrame(g),f=()=>window.cancelAnimationFrame(c))};document.addEventListener("visibilitychange",()=>{f&&f(),m(),g(performance.now())});const g=v=>{c=d(g),l||(l=v);const b=v-l;b<=s||(l=v-b%s,i.readers.forEach(E=>E()),i.writers.forEach(E=>E(v)))};return m(),g(performance.now()),{pause:()=>{f(c)}}},Yt=(e,t)=>({root:n,props:r,actions:i=[],timestamp:s,shouldOptimize:l})=>{i.filter(c=>e[c.type]).forEach(c=>e[c.type]({root:n,props:r,action:c.data,timestamp:s,shouldOptimize:l})),t&&t({root:n,props:r,actions:i,timestamp:s,shouldOptimize:l})},im=(e,t)=>t.parentNode.insertBefore(e,t),om=(e,t)=>t.parentNode.insertBefore(e,t.nextSibling),hl=e=>Array.isArray(e),Pr=e=>e==null,mC=e=>e.trim(),gl=e=>""+e,vC=(e,t=",")=>Pr(e)?[]:hl(e)?e:gl(e).split(t).map(mC).filter(n=>n.length),sm=e=>typeof e=="boolean",am=e=>sm(e)?e:e==="true",Zt=e=>typeof e=="string",lm=e=>Gi(e)?e:Zt(e)?gl(e).replace(/[a-z]+/gi,""):0,ml=e=>parseInt(lm(e),10),cm=e=>parseFloat(lm(e)),Lo=e=>Gi(e)&&isFinite(e)&&Math.floor(e)===e,dm=(e,t=1e3)=>{if(Lo(e))return e;let n=gl(e).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),ml(n)*t*t):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),ml(n)*t):ml(n)},Hi=e=>typeof e=="function",bC=e=>{let t=self,n=e.split("."),r=null;for(;r=n.shift();)if(t=t[r],!t)return null;return t},um={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},_C=e=>{const t={};return t.url=Zt(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},ut(um,n=>{t[n]=xC(n,e[n],um[n],t.timeout,t.headers)}),t.process=e.process||Zt(e)||e.url?t.process:null,t.remove=e.remove||null,delete t.headers,t},xC=(e,t,n,r,i)=>{if(t===null)return null;if(typeof t=="function")return t;const s={url:n==="GET"||n==="PATCH"?`?${e}=`:"",method:n,headers:i,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(Zt(t))return s.url=t,s;if(Object.assign(s,t),Zt(s.headers)){const l=s.headers.split(/:(.+)/);s.headers={header:l[0],value:l[1]}}return s.withCredentials=am(s.withCredentials),s},EC=e=>_C(e),wC=e=>e===null,$t=e=>typeof e=="object"&&e!==null,yC=e=>$t(e)&&Zt(e.url)&&$t(e.process)&&$t(e.revert)&&$t(e.restore)&&$t(e.fetch),qu=e=>hl(e)?"array":wC(e)?"null":Lo(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":yC(e)?"api":typeof e,CC=e=>e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",'),TC={array:vC,boolean:am,int:e=>qu(e)==="bytes"?dm(e):ml(e),number:cm,float:cm,bytes:dm,string:e=>Hi(e)?e:gl(e),function:e=>bC(e),serverapi:EC,object:e=>{try{return JSON.parse(CC(e))}catch{return null}}},SC=(e,t)=>TC[t](e),fm=(e,t,n)=>{if(e===t)return e;let r=qu(e);if(r!==n){const i=SC(e,n);if(r=qu(i),i===null)throw`Trying to assign value with incorrect type to "${option}", allowed type: "${n}"`;e=i}return e},IC=(e,t)=>{let n=e;return{enumerable:!0,get:()=>n,set:r=>{n=fm(r,e,t)}}},AC=e=>{const t={};return ut(e,n=>{const r=e[n];t[n]=IC(r[0],r[1])}),di(t)},OC=e=>({items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:AC(e)}),vl=(e,t="-")=>e.split(/(?=[A-Z])/).map(n=>n.toLowerCase()).join(t),$C=(e,t)=>{const n={};return ut(t,r=>{n[r]={get:()=>e.getState().options[r],set:i=>{e.dispatch(`SET_${vl(r,"_").toUpperCase()}`,{value:i})}}}),n},DC=e=>(t,n,r)=>{const i={};return ut(e,s=>{const l=vl(s,"_").toUpperCase();i[`SET_${l}`]=c=>{try{r.options[s]=c.value}catch{}t(`DID_SET_${l}`,{value:r.options[s]})}}),i},MC=e=>t=>{const n={};return ut(e,r=>{n[`GET_${vl(r,"_").toUpperCase()}`]=i=>t.options[r]}),n},Nn={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},Yu=()=>Math.random().toString(36).substring(2,11),Zu=(e,t)=>e.splice(t,1),PC=(e,t)=>{t?e():document.hidden?Promise.resolve(1).then(e):setTimeout(e,0)},bl=()=>{const e=[],t=(r,i)=>{Zu(e,e.findIndex(s=>s.event===r&&(s.cb===i||!i)))},n=(r,i,s)=>{e.filter(l=>l.event===r).map(l=>l.cb).forEach(l=>PC(()=>l(...i),s))};return{fireSync:(r,...i)=>{n(r,i,!0)},fire:(r,...i)=>{n(r,i,!1)},on:(r,i)=>{e.push({event:r,cb:i})},onOnce:(r,i)=>{e.push({event:r,cb:(...s)=>{t(r,i),i(...s)}})},off:t}},pm=(e,t,n)=>{Object.getOwnPropertyNames(e).filter(r=>!n.includes(r)).forEach(r=>Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r)))},NC=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],cn=e=>{const t={};return pm(e,t,NC),t},RC=e=>{e.forEach((t,n)=>{t.released&&Zu(e,n)})},Oe={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},Dt={INPUT:1,LIMBO:2,LOCAL:3},hm=e=>/[^0-9]+/.exec(e),gm=()=>hm(1.1.toLocaleString())[0],LC=()=>{const e=gm(),t=1e3.toLocaleString();return t!=="1000"?hm(t)[0]:e==="."?",":"."},re={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},Xu=[],ir=(e,t,n)=>new Promise((r,i)=>{const s=Xu.filter(c=>c.key===e).map(c=>c.cb);if(s.length===0){r(t);return}const l=s.shift();s.reduce((c,d)=>c.then(f=>d(f,n)),l(t,n)).then(c=>r(c)).catch(c=>i(c))}),Ui=(e,t,n)=>Xu.filter(r=>r.key===e).map(r=>r.cb(t,n)),jC=(e,t)=>Xu.push({key:e,cb:t}),kC=e=>Object.assign(jo,e),_l=()=>({...jo}),FC=e=>{ut(e,(t,n)=>{jo[t]&&(jo[t][0]=fm(n,jo[t][0],jo[t][1]))})},jo={id:[null,re.STRING],name:["filepond",re.STRING],disabled:[!1,re.BOOLEAN],className:[null,re.STRING],required:[!1,re.BOOLEAN],captureMethod:[null,re.STRING],allowSyncAcceptAttribute:[!0,re.BOOLEAN],allowDrop:[!0,re.BOOLEAN],allowBrowse:[!0,re.BOOLEAN],allowPaste:[!0,re.BOOLEAN],allowMultiple:[!1,re.BOOLEAN],allowReplace:[!0,re.BOOLEAN],allowRevert:[!0,re.BOOLEAN],allowRemove:[!0,re.BOOLEAN],allowProcess:[!0,re.BOOLEAN],allowReorder:[!1,re.BOOLEAN],allowDirectoriesOnly:[!1,re.BOOLEAN],storeAsFile:[!1,re.BOOLEAN],forceRevert:[!1,re.BOOLEAN],maxFiles:[null,re.INT],checkValidity:[!1,re.BOOLEAN],itemInsertLocationFreedom:[!0,re.BOOLEAN],itemInsertLocation:["before",re.STRING],itemInsertInterval:[75,re.INT],dropOnPage:[!1,re.BOOLEAN],dropOnElement:[!0,re.BOOLEAN],dropValidation:[!1,re.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],re.ARRAY],instantUpload:[!0,re.BOOLEAN],maxParallelUploads:[2,re.INT],allowMinimumUploadDuration:[!0,re.BOOLEAN],chunkUploads:[!1,re.BOOLEAN],chunkForce:[!1,re.BOOLEAN],chunkSize:[5e6,re.INT],chunkRetryDelays:[[500,1e3,3e3],re.ARRAY],server:[null,re.SERVER_API],fileSizeBase:[1e3,re.INT],labelFileSizeBytes:["bytes",re.STRING],labelFileSizeKilobytes:["KB",re.STRING],labelFileSizeMegabytes:["MB",re.STRING],labelFileSizeGigabytes:["GB",re.STRING],labelDecimalSeparator:[gm(),re.STRING],labelThousandsSeparator:[LC(),re.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',re.STRING],labelInvalidField:["Field contains invalid files",re.STRING],labelFileWaitingForSize:["Waiting for size",re.STRING],labelFileSizeNotAvailable:["Size not available",re.STRING],labelFileCountSingular:["file in list",re.STRING],labelFileCountPlural:["files in list",re.STRING],labelFileLoading:["Loading",re.STRING],labelFileAdded:["Added",re.STRING],labelFileLoadError:["Error during load",re.STRING],labelFileRemoved:["Removed",re.STRING],labelFileRemoveError:["Error during remove",re.STRING],labelFileProcessing:["Uploading",re.STRING],labelFileProcessingComplete:["Upload complete",re.STRING],labelFileProcessingAborted:["Upload cancelled",re.STRING],labelFileProcessingError:["Error during upload",re.STRING],labelFileProcessingRevertError:["Error during revert",re.STRING],labelTapToCancel:["tap to cancel",re.STRING],labelTapToRetry:["tap to retry",re.STRING],labelTapToUndo:["tap to undo",re.STRING],labelButtonRemoveItem:["Remove",re.STRING],labelButtonAbortItemLoad:["Abort",re.STRING],labelButtonRetryItemLoad:["Retry",re.STRING],labelButtonAbortItemProcessing:["Cancel",re.STRING],labelButtonUndoItemProcessing:["Undo",re.STRING],labelButtonRetryItemProcessing:["Retry",re.STRING],labelButtonProcessItem:["Upload",re.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',re.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],oninit:[null,re.FUNCTION],onwarning:[null,re.FUNCTION],onerror:[null,re.FUNCTION],onactivatefile:[null,re.FUNCTION],oninitfile:[null,re.FUNCTION],onaddfilestart:[null,re.FUNCTION],onaddfileprogress:[null,re.FUNCTION],onaddfile:[null,re.FUNCTION],onprocessfilestart:[null,re.FUNCTION],onprocessfileprogress:[null,re.FUNCTION],onprocessfileabort:[null,re.FUNCTION],onprocessfilerevert:[null,re.FUNCTION],onprocessfile:[null,re.FUNCTION],onprocessfiles:[null,re.FUNCTION],onremovefile:[null,re.FUNCTION],onpreparefile:[null,re.FUNCTION],onupdatefiles:[null,re.FUNCTION],onreorderfiles:[null,re.FUNCTION],beforeDropFile:[null,re.FUNCTION],beforeAddFile:[null,re.FUNCTION],beforeRemoveFile:[null,re.FUNCTION],beforePrepareFile:[null,re.FUNCTION],stylePanelLayout:[null,re.STRING],stylePanelAspectRatio:[null,re.STRING],styleItemPanelAspectRatio:[null,re.STRING],styleButtonRemoveItemPosition:["left",re.STRING],styleButtonProcessItemPosition:["right",re.STRING],styleLoadIndicatorPosition:["right",re.STRING],styleProgressIndicatorPosition:["right",re.STRING],styleButtonRemoveItemAlign:[!1,re.BOOLEAN],files:[[],re.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],re.ARRAY]},Vi=(e,t)=>Pr(t)?e[0]||null:Lo(t)?e[t]||null:(typeof t=="object"&&(t=t.id),e.find(n=>n.id===t)||null),mm=e=>{if(Pr(e))return e;if(/:/.test(e)){const t=e.split(":");return t[1]/t[0]}return parseFloat(e)},or=e=>e.filter(t=>!t.archived),BC={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4};let xl=null;const zC=()=>{if(xl===null)try{const e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));const t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,xl=t.files.length===1}catch{xl=!1}return xl},GC=[Oe.LOAD_ERROR,Oe.PROCESSING_ERROR,Oe.PROCESSING_REVERT_ERROR],HC=[Oe.LOADING,Oe.PROCESSING,Oe.PROCESSING_QUEUED,Oe.INIT],UC=[Oe.PROCESSING_COMPLETE],VC=e=>GC.includes(e.status),WC=e=>HC.includes(e.status),qC=e=>UC.includes(e.status),vm=e=>$t(e.options.server)&&($t(e.options.server.process)||Hi(e.options.server.process)),YC=e=>({GET_STATUS:()=>{const t=or(e.items),{EMPTY:n,ERROR:r,BUSY:i,IDLE:s,READY:l}=BC;return t.length===0?n:t.some(VC)?r:t.some(WC)?i:t.some(qC)?l:s},GET_ITEM:t=>Vi(e.items,t),GET_ACTIVE_ITEM:t=>Vi(or(e.items),t),GET_ACTIVE_ITEMS:()=>or(e.items),GET_ITEMS:()=>e.items,GET_ITEM_NAME:t=>{const n=Vi(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:t=>{const n=Vi(e.items,t);return n?n.fileSize:null},GET_STYLES:()=>Object.keys(e.options).filter(t=>/^style/.test(t)).map(t=>({name:t,value:e.options[t]})),GET_PANEL_ASPECT_RATIO:()=>/circle/.test(e.options.stylePanelLayout)?1:mm(e.options.stylePanelAspectRatio),GET_ITEM_PANEL_ASPECT_RATIO:()=>e.options.styleItemPanelAspectRatio,GET_ITEMS_BY_STATUS:t=>or(e.items).filter(n=>n.status===t),GET_TOTAL_ITEMS:()=>or(e.items).length,SHOULD_UPDATE_FILE_INPUT:()=>e.options.storeAsFile&&zC()&&!vm(e),IS_ASYNC:()=>vm(e),GET_FILE_SIZE_LABELS:t=>({labelBytes:t("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:t("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:t("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:t("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0})}),ZC=e=>{const t=or(e.items).length;if(!e.options.allowMultiple)return t===0;const n=e.options.maxFiles;return n===null||t<n},bm=(e,t,n)=>Math.max(Math.min(n,e),t),XC=(e,t,n)=>e.splice(t,0,n),KC=(e,t,n)=>Pr(t)?null:typeof n>"u"?(e.push(t),t):(n=bm(n,0,e.length),XC(e,n,t),t),Ku=e=>/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e),Ls=e=>`${e}`.split("/").pop().split("?").shift(),El=e=>e.split(".").pop(),QC=e=>{if(typeof e!="string")return"";const t=e.split("/").pop();return/svg/.test(t)?"svg":/zip|compressed/.test(t)?"zip":/plain/.test(t)?"txt":/msword/.test(t)?"doc":/[a-z]+/.test(t)?t==="jpeg"?"jpg":t:""},js=(e,t="")=>(t+e).slice(-t.length),_m=(e=new Date)=>`${e.getFullYear()}-${js(e.getMonth()+1,"00")}-${js(e.getDate(),"00")}_${js(e.getHours(),"00")}-${js(e.getMinutes(),"00")}-${js(e.getSeconds(),"00")}`,ko=(e,t,n=null,r=null)=>{const i=typeof n=="string"?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return i.lastModifiedDate=new Date,e._relativePath&&(i._relativePath=e._relativePath),Zt(t)||(t=_m()),t&&r===null&&El(t)?i.name=t:(r=r||QC(i.type),i.name=t+(r?"."+r:"")),i},JC=()=>window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,xm=(e,t)=>{const n=JC();if(n){const r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},eT=(e,t)=>{const n=new ArrayBuffer(e.length),r=new Uint8Array(n);for(let i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return xm(n,t)},Em=e=>(/^data:(.+);/.exec(e)||[])[1]||null,tT=e=>e.split(",")[1].replace(/\s/g,""),nT=e=>atob(tT(e)),rT=e=>{const t=Em(e),n=nT(e);return eT(n,t)},iT=(e,t,n)=>ko(rT(e),t,null,n),oT=e=>{if(!/^content-disposition:/i.test(e))return null;const t=e.split(/filename=|filename\*=.+''/).splice(1).map(n=>n.trim().replace(/^["']|[;"']{0,2}$/g,"")).filter(n=>n.length);return t.length?decodeURI(t[t.length-1]):null},sT=e=>{if(/content-length:/i.test(e)){const t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},aT=e=>/x-content-transfer-id:/i.test(e)&&(e.split(":")[1]||"").trim()||null,Qu=e=>{const t={source:null,name:null,size:null},n=e.split(`
|
|
106
|
-
`);for(let r of n){const i=oT(r);if(i){t.name=i;continue}const s=sT(r);if(s){t.size=s;continue}const l=aT(r);if(l){t.source=l;continue}}return t},lT=e=>{const t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},n=()=>t.progress,r=()=>{t.request&&t.request.abort&&t.request.abort()},i=()=>{const c=t.source;l.fire("init",c),c instanceof File?l.fire("load",c):c instanceof Blob?l.fire("load",ko(c,c.name)):Ku(c)?l.fire("load",iT(c)):s(c)},s=c=>{if(!e){l.fire("error",{type:"error",body:"Can't load URL",code:400});return}t.timestamp=Date.now(),t.request=e(c,d=>{t.duration=Date.now()-t.timestamp,t.complete=!0,d instanceof Blob&&(d=ko(d,d.name||Ls(c))),l.fire("load",d instanceof Blob?d:d?d.body:null)},d=>{l.fire("error",typeof d=="string"?{type:"error",code:0,body:d}:d)},(d,f,m)=>{if(m&&(t.size=m),t.duration=Date.now()-t.timestamp,!d){t.progress=null;return}t.progress=f/m,l.fire("progress",t.progress)},()=>{l.fire("abort")},d=>{const f=Qu(typeof d=="string"?d:d.headers);l.fire("meta",{size:t.size||f.size,filename:f.name,source:f.source})})},l={...bl(),setSource:c=>t.source=c,getProgress:n,abort:r,load:i};return l},wm=e=>/GET|HEAD/.test(e),Wi=(e,t,n)=>{const r={onheaders:()=>{},onprogress:()=>{},onload:()=>{},ontimeout:()=>{},onerror:()=>{},onabort:()=>{},abort:()=>{i=!0,l.abort()}};let i=!1,s=!1;n={method:"POST",headers:{},withCredentials:!1,...n},t=encodeURI(t),wm(n.method)&&e&&(t=`${t}${encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))}`);const l=new XMLHttpRequest,c=wm(n.method)?l:l.upload;return c.onprogress=d=>{i||r.onprogress(d.lengthComputable,d.loaded,d.total)},l.onreadystatechange=()=>{l.readyState<2||l.readyState===4&&l.status===0||s||(s=!0,r.onheaders(l))},l.onload=()=>{l.status>=200&&l.status<300?r.onload(l):r.onerror(l)},l.onerror=()=>r.onerror(l),l.onabort=()=>{i=!0,r.onabort()},l.ontimeout=()=>r.ontimeout(l),l.open(n.method,t,!0),Lo(n.timeout)&&(l.timeout=n.timeout),Object.keys(n.headers).forEach(d=>{const f=unescape(encodeURIComponent(n.headers[d]));l.setRequestHeader(d,f)}),n.responseType&&(l.responseType=n.responseType),n.withCredentials&&(l.withCredentials=!0),l.send(e),r},mt=(e,t,n,r)=>({type:e,code:t,body:n,headers:r}),qi=e=>t=>{e(mt("error",0,"Timeout",t.getAllResponseHeaders()))},ym=e=>/\?/.test(e),ks=(...e)=>{let t="";return e.forEach(n=>{t+=ym(t)&&ym(n)?n.replace(/\?/,"&"):n}),t},Ju=(e="",t)=>{if(typeof t=="function")return t;if(!t||!Zt(t.url))return null;const n=t.onload||(i=>i),r=t.onerror||(i=>null);return(i,s,l,c,d,f)=>{const m=Wi(i,ks(e,t.url),{...t,responseType:"blob"});return m.onload=g=>{const v=g.getAllResponseHeaders(),b=Qu(v).name||Ls(i);s(mt("load",g.status,t.method==="HEAD"?null:ko(n(g.response),b),v))},m.onerror=g=>{l(mt("error",g.status,r(g.response)||g.statusText,g.getAllResponseHeaders()))},m.onheaders=g=>{f(mt("headers",g.status,null,g.getAllResponseHeaders()))},m.ontimeout=qi(l),m.onprogress=c,m.onabort=d,m}},Rn={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},cT=(e,t,n,r,i,s,l,c,d,f,m)=>{const g=[],{chunkTransferId:v,chunkServer:b,chunkSize:E,chunkRetryDelays:_}=m,w={serverId:v,aborted:!1},y=t.ondata||(R=>R),T=t.onload||((R,K)=>K==="HEAD"?R.getResponseHeader("Upload-Offset"):R.response),S=t.onerror||(R=>null),O=R=>{const K=new FormData;$t(i)&&K.append(n,JSON.stringify(i));const B=typeof t.headers=="function"?t.headers(r,i):{...t.headers,"Upload-Length":r.size},W={...t,headers:B},J=Wi(y(K),ks(e,t.url),W);J.onload=q=>R(T(q,W.method)),J.onerror=q=>l(mt("error",q.status,S(q.response)||q.statusText,q.getAllResponseHeaders())),J.ontimeout=qi(l)},I=R=>{const K=ks(e,b.url,w.serverId),W={headers:typeof t.headers=="function"?t.headers(w.serverId):{...t.headers},method:"HEAD"},J=Wi(null,K,W);J.onload=q=>R(T(q,W.method)),J.onerror=q=>l(mt("error",q.status,S(q.response)||q.statusText,q.getAllResponseHeaders())),J.ontimeout=qi(l)},M=Math.floor(r.size/E);for(let R=0;R<=M;R++){const K=R*E,B=r.slice(K,K+E,"application/offset+octet-stream");g[R]={index:R,size:B.size,offset:K,data:B,file:r,progress:0,retries:[..._],status:Rn.QUEUED,error:null,request:null,timeout:null}}const N=()=>s(w.serverId),D=R=>R.status===Rn.QUEUED||R.status===Rn.ERROR,k=R=>{if(w.aborted)return;if(R=R||g.find(D),!R){g.every(V=>V.status===Rn.COMPLETE)&&N();return}R.status=Rn.PROCESSING,R.progress=null;const K=b.ondata||(V=>V),B=b.onerror||(V=>null),W=b.onload||(()=>{}),J=ks(e,b.url,w.serverId),q=typeof b.headers=="function"?b.headers(R):{...b.headers,"Content-Type":"application/offset+octet-stream","Upload-Offset":R.offset,"Upload-Length":r.size,"Upload-Name":r.name},U=R.request=Wi(K(R.data),J,{...b,headers:q});U.onload=V=>{W(V,R.index,g.length),R.status=Rn.COMPLETE,R.request=null,G()},U.onprogress=(V,ce,ue)=>{R.progress=V?ce:null,L()},U.onerror=V=>{R.status=Rn.ERROR,R.request=null,R.error=B(V.response)||V.statusText,Y(R)||l(mt("error",V.status,B(V.response)||V.statusText,V.getAllResponseHeaders()))},U.ontimeout=V=>{R.status=Rn.ERROR,R.request=null,Y(R)||qi(l)(V)},U.onabort=()=>{R.status=Rn.QUEUED,R.request=null,d()}},Y=R=>R.retries.length===0?!1:(R.status=Rn.WAITING,clearTimeout(R.timeout),R.timeout=setTimeout(()=>{k(R)},R.retries.shift()),!0),L=()=>{const R=g.reduce((B,W)=>B===null||W.progress===null?null:B+W.progress,0);if(R===null)return c(!1,0,0);const K=g.reduce((B,W)=>B+W.size,0);c(!0,R,K)},G=()=>{g.filter(K=>K.status===Rn.PROCESSING).length>=1||k()},X=()=>{g.forEach(R=>{clearTimeout(R.timeout),R.request&&R.request.abort()})};return w.serverId?I(R=>{w.aborted||(g.filter(K=>K.offset<R).forEach(K=>{K.status=Rn.COMPLETE,K.progress=K.size}),G())}):O(R=>{w.aborted||(f(R),w.serverId=R,G())}),{abort:()=>{w.aborted=!0,X()}}},dT=(e,t,n,r)=>(i,s,l,c,d,f,m)=>{if(!i)return;const g=r.chunkUploads,v=g&&i.size>r.chunkSize,b=g&&(v||r.chunkForce);if(i instanceof Blob&&b)return cT(e,t,n,i,s,l,c,d,f,m,r);const E=t.ondata||(I=>I),_=t.onload||(I=>I),w=t.onerror||(I=>null),y=typeof t.headers=="function"?t.headers(i,s)||{}:{...t.headers},T={...t,headers:y};var S=new FormData;$t(s)&&S.append(n,JSON.stringify(s)),(i instanceof Blob?[{name:null,file:i}]:i).forEach(I=>{S.append(n,I.file,I.name===null?I.file.name:`${I.name}${I.file.name}`)});const O=Wi(E(S),ks(e,t.url),T);return O.onload=I=>{l(mt("load",I.status,_(I.response),I.getAllResponseHeaders()))},O.onerror=I=>{c(mt("error",I.status,w(I.response)||I.statusText,I.getAllResponseHeaders()))},O.ontimeout=qi(c),O.onprogress=d,O.onabort=f,O},uT=(e="",t,n,r)=>typeof t=="function"?(...i)=>t(n,...i,r):!t||!Zt(t.url)?null:dT(e,t,n,r),Fs=(e="",t)=>{if(typeof t=="function")return t;if(!t||!Zt(t.url))return(i,s)=>s();const n=t.onload||(i=>i),r=t.onerror||(i=>null);return(i,s,l)=>{const c=Wi(i,e+t.url,t);return c.onload=d=>{s(mt("load",d.status,n(d.response),d.getAllResponseHeaders()))},c.onerror=d=>{l(mt("error",d.status,r(d.response)||d.statusText,d.getAllResponseHeaders()))},c.ontimeout=qi(l),c}},Cm=(e=0,t=1)=>e+Math.random()*(t-e),fT=(e,t=1e3,n=0,r=25,i=250)=>{let s=null;const l=Date.now(),c=()=>{let d=Date.now()-l,f=Cm(r,i);d+f>t&&(f=d+f-t);let m=d/t;if(m>=1||document.hidden){e(1);return}e(m),s=setTimeout(c,f)};return t>0&&c(),{clear:()=>{clearTimeout(s)}}},pT=(e,t)=>{const n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},{allowMinimumUploadDuration:r}=t,i=(m,g)=>{const v=()=>{n.duration===0||n.progress===null||f.fire("progress",f.getProgress())},b=()=>{n.complete=!0,f.fire("load-perceived",n.response.body)};f.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=fT(E=>{n.perceivedProgress=E,n.perceivedDuration=Date.now()-n.timestamp,v(),n.response&&n.perceivedProgress===1&&!n.complete&&b()},r?Cm(750,1500):0),n.request=e(m,g,E=>{n.response=$t(E)?E:{type:"load",code:200,body:`${E}`,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,f.fire("load",n.response.body),(!r||r&&n.perceivedProgress===1)&&b()},E=>{n.perceivedPerformanceUpdater.clear(),f.fire("error",$t(E)?E:{type:"error",code:0,body:`${E}`})},(E,_,w)=>{n.duration=Date.now()-n.timestamp,n.progress=E?_/w:null,v()},()=>{n.perceivedPerformanceUpdater.clear(),f.fire("abort",n.response?n.response.body:null)},E=>{f.fire("transfer",E)})},s=()=>{n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},l=()=>{s(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null},c=r?()=>n.progress?Math.min(n.progress,n.perceivedProgress):null:()=>n.progress||null,d=r?()=>Math.min(n.duration,n.perceivedDuration):()=>n.duration,f={...bl(),process:i,abort:s,getProgress:c,getDuration:d,reset:l};return f},Tm=e=>e.substring(0,e.lastIndexOf("."))||e,hT=e=>{let t=[e.name,e.size,e.type];return e instanceof Blob||Ku(e)?t[0]=e.name||_m():Ku(e)?(t[1]=e.length,t[2]=Em(e)):Zt(e)&&(t[0]=Ls(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},Yi=e=>!!(e instanceof File||e instanceof Blob&&e.name),Sm=e=>{if(!$t(e))return e;const t=hl(e)?[]:{};for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];t[n]=r&&$t(r)?Sm(r):r}return t},gT=(e=null,t=null,n=null)=>{const r=Yu(),i={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:t,transferId:null,processingAborted:!1,status:t?Oe.PROCESSING_COMPLETE:Oe.INIT,activeLoader:null,activeProcessor:null};let s=null;const l={},c=D=>i.status=D,d=(D,...k)=>{i.released||i.frozen||M.fire(D,...k)},f=()=>El(i.file.name),m=()=>i.file.type,g=()=>i.file.size,v=()=>i.file,b=(D,k,Y)=>{if(i.source=D,M.fireSync("init"),i.file){M.fireSync("load-skip");return}i.file=hT(D),k.on("init",()=>{d("load-init")}),k.on("meta",L=>{i.file.size=L.size,i.file.filename=L.filename,L.source&&(e=Dt.LIMBO,i.serverFileReference=L.source,i.status=Oe.PROCESSING_COMPLETE),d("load-meta")}),k.on("progress",L=>{c(Oe.LOADING),d("load-progress",L)}),k.on("error",L=>{c(Oe.LOAD_ERROR),d("load-request-error",L)}),k.on("abort",()=>{c(Oe.INIT),d("load-abort")}),k.on("load",L=>{i.activeLoader=null;const G=R=>{i.file=Yi(R)?R:i.file,e===Dt.LIMBO&&i.serverFileReference?c(Oe.PROCESSING_COMPLETE):c(Oe.IDLE),d("load")},X=R=>{i.file=L,d("load-meta"),c(Oe.LOAD_ERROR),d("load-file-error",R)};if(i.serverFileReference){G(L);return}Y(L,G,X)}),k.setSource(D),i.activeLoader=k,k.load()},E=()=>{i.activeLoader&&i.activeLoader.load()},_=()=>{if(i.activeLoader){i.activeLoader.abort();return}c(Oe.INIT),d("load-abort")},w=(D,k)=>{if(i.processingAborted){i.processingAborted=!1;return}if(c(Oe.PROCESSING),s=null,!(i.file instanceof Blob)){M.on("load",()=>{w(D,k)});return}D.on("load",G=>{i.transferId=null,i.serverFileReference=G}),D.on("transfer",G=>{i.transferId=G}),D.on("load-perceived",G=>{i.activeProcessor=null,i.transferId=null,i.serverFileReference=G,c(Oe.PROCESSING_COMPLETE),d("process-complete",G)}),D.on("start",()=>{d("process-start")}),D.on("error",G=>{i.activeProcessor=null,c(Oe.PROCESSING_ERROR),d("process-error",G)}),D.on("abort",G=>{i.activeProcessor=null,i.serverFileReference=G,c(Oe.IDLE),d("process-abort"),s&&s()}),D.on("progress",G=>{d("process-progress",G)});const Y=G=>{i.archived||D.process(G,{...l})},L=console.error;k(i.file,Y,L),i.activeProcessor=D},y=()=>{i.processingAborted=!1,c(Oe.PROCESSING_QUEUED)},T=()=>new Promise(D=>{if(!i.activeProcessor){i.processingAborted=!0,c(Oe.IDLE),d("process-abort"),D();return}s=()=>{D()},i.activeProcessor.abort()}),S=(D,k)=>new Promise((Y,L)=>{const G=i.serverFileReference!==null?i.serverFileReference:i.transferId;if(G===null){Y();return}D(G,()=>{i.serverFileReference=null,i.transferId=null,Y()},X=>{if(!k){Y();return}c(Oe.PROCESSING_REVERT_ERROR),d("process-revert-error"),L(X)}),c(Oe.IDLE),d("process-revert")}),O=(D,k,Y)=>{const L=D.split("."),G=L[0],X=L.pop();let R=l;L.forEach(K=>R=R[K]),JSON.stringify(R[X])!==JSON.stringify(k)&&(R[X]=k,d("metadata-update",{key:G,value:l[G],silent:Y}))},M={id:{get:()=>r},origin:{get:()=>e,set:D=>e=D},serverId:{get:()=>i.serverFileReference},transferId:{get:()=>i.transferId},status:{get:()=>i.status},filename:{get:()=>i.file.name},filenameWithoutExtension:{get:()=>Tm(i.file.name)},fileExtension:{get:f},fileType:{get:m},fileSize:{get:g},file:{get:v},relativePath:{get:()=>i.file._relativePath},source:{get:()=>i.source},getMetadata:D=>Sm(D?l[D]:l),setMetadata:(D,k,Y)=>{if($t(D)){const L=D;return Object.keys(L).forEach(G=>{O(G,L[G],k)}),D}return O(D,k,Y),k},extend:(D,k)=>N[D]=k,abortLoad:_,retryLoad:E,requestProcessing:y,abortProcessing:T,load:b,process:w,revert:S,...bl(),freeze:()=>i.frozen=!0,release:()=>i.released=!0,released:{get:()=>i.released},archive:()=>i.archived=!0,archived:{get:()=>i.archived},setFile:D=>i.file=D},N=di(M);return N},mT=(e,t)=>Pr(t)?0:Zt(t)?e.findIndex(n=>n.id===t):-1,Im=(e,t)=>{const n=mT(e,t);if(!(n<0))return e[n]||null},Am=(e,t,n,r,i,s)=>{const l=Wi(null,e,{method:"GET",responseType:"blob"});return l.onload=c=>{const d=c.getAllResponseHeaders(),f=Qu(d).name||Ls(e);t(mt("load",c.status,ko(c.response,f),d))},l.onerror=c=>{n(mt("error",c.status,c.statusText,c.getAllResponseHeaders()))},l.onheaders=c=>{s(mt("headers",c.status,null,c.getAllResponseHeaders()))},l.ontimeout=qi(n),l.onprogress=r,l.onabort=i,l},Om=e=>(e.indexOf("//")===0&&(e=location.protocol+e),e.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]),vT=e=>(e.indexOf(":")>-1||e.indexOf("//")>-1)&&Om(location.href)!==Om(e),wl=e=>(...t)=>Hi(e)?e(...t):e,bT=e=>!Yi(e.file),ef=(e,t)=>{clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout(()=>{e("DID_UPDATE_ITEMS",{items:or(t.items)})},0)},$m=(e,...t)=>new Promise(n=>{if(!e)return n(!0);const r=e(...t);if(r==null)return n(!0);if(typeof r=="boolean")return n(r);typeof r.then=="function"&&r.then(n)}),tf=(e,t)=>{e.items.sort((n,r)=>t(cn(n),cn(r)))},Ln=(e,t)=>({query:n,success:r=()=>{},failure:i=()=>{},...s}={})=>{const l=Vi(e.items,n);if(!l){i({error:mt("error",0,"Item not found"),file:null});return}t(l,r,i,s||{})},_T=(e,t,n)=>({ABORT_ALL:()=>{or(n.items).forEach(r=>{r.freeze(),r.abortLoad(),r.abortProcessing()})},DID_SET_FILES:({value:r=[]})=>{const i=r.map(l=>({source:l.source?l.source:l,options:l.options}));let s=or(n.items);s.forEach(l=>{i.find(c=>c.source===l.source||c.source===l.file)||e("REMOVE_ITEM",{query:l,remove:!1})}),s=or(n.items),i.forEach((l,c)=>{s.find(d=>d.source===l.source||d.file===l.source)||e("ADD_ITEM",{...l,interactionMethod:Nn.NONE,index:c})})},DID_UPDATE_ITEM_METADATA:({id:r,action:i,change:s})=>{s.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout(()=>{const l=Im(n.items,r);if(!t("IS_ASYNC")){ir("SHOULD_PREPARE_OUTPUT",!1,{item:l,query:t,action:i,change:s}).then(m=>{const g=t("GET_BEFORE_PREPARE_FILE");g&&(m=g(l,m)),m&&e("REQUEST_PREPARE_OUTPUT",{query:r,item:l,success:v=>{e("DID_PREPARE_OUTPUT",{id:r,file:v})}},!0)});return}l.origin===Dt.LOCAL&&e("DID_LOAD_ITEM",{id:l.id,error:null,serverFileReference:l.source});const c=()=>{setTimeout(()=>{e("REQUEST_ITEM_PROCESSING",{query:r})},32)},d=m=>{l.revert(Fs(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(m?c:()=>{}).catch(()=>{})},f=m=>{l.abortProcessing().then(m?c:()=>{})};if(l.status===Oe.PROCESSING_COMPLETE)return d(n.options.instantUpload);if(l.status===Oe.PROCESSING)return f(n.options.instantUpload);n.options.instantUpload&&c()},0))},MOVE_ITEM:({query:r,index:i})=>{const s=Vi(n.items,r);if(!s)return;const l=n.items.indexOf(s);i=bm(i,0,n.items.length-1),l!==i&&n.items.splice(i,0,n.items.splice(l,1)[0])},SORT:({compare:r})=>{tf(n,r),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:({items:r,index:i,interactionMethod:s,success:l=()=>{},failure:c=()=>{}})=>{let d=i;if(i===-1||typeof i>"u"){const b=t("GET_ITEM_INSERT_LOCATION"),E=t("GET_TOTAL_ITEMS");d=b==="before"?0:E}const f=t("GET_IGNORED_FILES"),m=b=>Yi(b)?!f.includes(b.name.toLowerCase()):!Pr(b),v=r.filter(m).map(b=>new Promise((E,_)=>{e("ADD_ITEM",{interactionMethod:s,source:b.source||b,success:E,failure:_,index:d++,options:b.options||{}})}));Promise.all(v).then(l).catch(c)},ADD_ITEM:({source:r,index:i=-1,interactionMethod:s,success:l=()=>{},failure:c=()=>{},options:d={}})=>{if(Pr(r)){c({error:mt("error",0,"No source"),file:null});return}if(Yi(r)&&n.options.ignoredFiles.includes(r.name.toLowerCase()))return;if(!ZC(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){const T=mt("warning",0,"Max files");e("DID_THROW_MAX_FILES",{source:r,error:T}),c({error:T,file:null});return}const y=or(n.items)[0];if(y.status===Oe.PROCESSING_COMPLETE||y.status===Oe.PROCESSING_REVERT_ERROR){const T=t("GET_FORCE_REVERT");if(y.revert(Fs(n.options.server.url,n.options.server.revert),T).then(()=>{T&&e("ADD_ITEM",{source:r,index:i,interactionMethod:s,success:l,failure:c,options:d})}).catch(()=>{}),T)return}e("REMOVE_ITEM",{query:y.id})}const f=d.type==="local"?Dt.LOCAL:d.type==="limbo"?Dt.LIMBO:Dt.INPUT,m=gT(f,f===Dt.INPUT?null:r,d.file);Object.keys(d.metadata||{}).forEach(y=>{m.setMetadata(y,d.metadata[y])}),Ui("DID_CREATE_ITEM",m,{query:t,dispatch:e});const g=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(i=g==="before"?-1:n.items.length),KC(n.items,m,i),Hi(g)&&r&&tf(n,g);const v=m.id;m.on("init",()=>{e("DID_INIT_ITEM",{id:v})}),m.on("load-init",()=>{e("DID_START_ITEM_LOAD",{id:v})}),m.on("load-meta",()=>{e("DID_UPDATE_ITEM_META",{id:v})}),m.on("load-progress",y=>{e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:v,progress:y})}),m.on("load-request-error",y=>{const T=wl(n.options.labelFileLoadError)(y);if(y.code>=400&&y.code<500){e("DID_THROW_ITEM_INVALID",{id:v,error:y,status:{main:T,sub:`${y.code} (${y.body})`}}),c({error:y,file:cn(m)});return}e("DID_THROW_ITEM_LOAD_ERROR",{id:v,error:y,status:{main:T,sub:n.options.labelTapToRetry}})}),m.on("load-file-error",y=>{e("DID_THROW_ITEM_INVALID",{id:v,error:y.status,status:y.status}),c({error:y.status,file:cn(m)})}),m.on("load-abort",()=>{e("REMOVE_ITEM",{query:v})}),m.on("load-skip",()=>{m.on("metadata-update",y=>{Yi(m.file)&&e("DID_UPDATE_ITEM_METADATA",{id:v,change:y})}),e("COMPLETE_LOAD_ITEM",{query:v,item:m,data:{source:r,success:l}})}),m.on("load",()=>{const y=T=>{if(!T){e("REMOVE_ITEM",{query:v});return}m.on("metadata-update",S=>{e("DID_UPDATE_ITEM_METADATA",{id:v,change:S})}),ir("SHOULD_PREPARE_OUTPUT",!1,{item:m,query:t}).then(S=>{const O=t("GET_BEFORE_PREPARE_FILE");O&&(S=O(m,S));const I=()=>{e("COMPLETE_LOAD_ITEM",{query:v,item:m,data:{source:r,success:l}}),ef(e,n)};if(S){e("REQUEST_PREPARE_OUTPUT",{query:v,item:m,success:M=>{e("DID_PREPARE_OUTPUT",{id:v,file:M}),I()}},!0);return}I()})};ir("DID_LOAD_ITEM",m,{query:t,dispatch:e}).then(()=>{$m(t("GET_BEFORE_ADD_FILE"),cn(m)).then(y)}).catch(T=>{if(!T||!T.error||!T.status)return y(!1);e("DID_THROW_ITEM_INVALID",{id:v,error:T.error,status:T.status})})}),m.on("process-start",()=>{e("DID_START_ITEM_PROCESSING",{id:v})}),m.on("process-progress",y=>{e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:v,progress:y})}),m.on("process-error",y=>{e("DID_THROW_ITEM_PROCESSING_ERROR",{id:v,error:y,status:{main:wl(n.options.labelFileProcessingError)(y),sub:n.options.labelTapToRetry}})}),m.on("process-revert-error",y=>{e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:v,error:y,status:{main:wl(n.options.labelFileProcessingRevertError)(y),sub:n.options.labelTapToRetry}})}),m.on("process-complete",y=>{e("DID_COMPLETE_ITEM_PROCESSING",{id:v,error:null,serverFileReference:y}),e("DID_DEFINE_VALUE",{id:v,value:y})}),m.on("process-abort",()=>{e("DID_ABORT_ITEM_PROCESSING",{id:v})}),m.on("process-revert",()=>{e("DID_REVERT_ITEM_PROCESSING",{id:v}),e("DID_DEFINE_VALUE",{id:v,value:null})}),e("DID_ADD_ITEM",{id:v,index:i,interactionMethod:s}),ef(e,n);const{url:b,load:E,restore:_,fetch:w}=n.options.server||{};m.load(r,lT(f===Dt.INPUT?Zt(r)&&vT(r)&&w?Ju(b,w):Am:f===Dt.LIMBO?Ju(b,_):Ju(b,E)),(y,T,S)=>{ir("LOAD_FILE",y,{query:t}).then(T).catch(S)})},REQUEST_PREPARE_OUTPUT:({item:r,success:i,failure:s=()=>{}})=>{const l={error:mt("error",0,"Item not found"),file:null};if(r.archived)return s(l);ir("PREPARE_OUTPUT",r.file,{query:t,item:r}).then(c=>{ir("COMPLETE_PREPARE_OUTPUT",c,{query:t,item:r}).then(d=>{if(r.archived)return s(l);i(d)})})},COMPLETE_LOAD_ITEM:({item:r,data:i})=>{const{success:s,source:l}=i,c=t("GET_ITEM_INSERT_LOCATION");if(Hi(c)&&l&&tf(n,c),e("DID_LOAD_ITEM",{id:r.id,error:null,serverFileReference:r.origin===Dt.INPUT?null:l}),s(cn(r)),r.origin===Dt.LOCAL){e("DID_LOAD_LOCAL_ITEM",{id:r.id});return}if(r.origin===Dt.LIMBO){e("DID_COMPLETE_ITEM_PROCESSING",{id:r.id,error:null,serverFileReference:l}),e("DID_DEFINE_VALUE",{id:r.id,value:r.serverId||l});return}t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:r.id})},RETRY_ITEM_LOAD:Ln(n,r=>{r.retryLoad()}),REQUEST_ITEM_PREPARE:Ln(n,(r,i,s)=>{e("REQUEST_PREPARE_OUTPUT",{query:r.id,item:r,success:l=>{e("DID_PREPARE_OUTPUT",{id:r.id,file:l}),i({file:r,output:l})},failure:s},!0)}),REQUEST_ITEM_PROCESSING:Ln(n,(r,i,s)=>{if(!(r.status===Oe.IDLE||r.status===Oe.PROCESSING_ERROR)){const c=()=>e("REQUEST_ITEM_PROCESSING",{query:r,success:i,failure:s}),d=()=>document.hidden?c():setTimeout(c,32);r.status===Oe.PROCESSING_COMPLETE||r.status===Oe.PROCESSING_REVERT_ERROR?r.revert(Fs(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(d).catch(()=>{}):r.status===Oe.PROCESSING&&r.abortProcessing().then(d);return}r.status!==Oe.PROCESSING_QUEUED&&(r.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:r.id}),e("PROCESS_ITEM",{query:r,success:i,failure:s},!0))}),PROCESS_ITEM:Ln(n,(r,i,s)=>{const l=t("GET_MAX_PARALLEL_UPLOADS");if(t("GET_ITEMS_BY_STATUS",Oe.PROCESSING).length===l){n.processingQueue.push({id:r.id,success:i,failure:s});return}if(r.status===Oe.PROCESSING)return;const d=()=>{const m=n.processingQueue.shift();if(!m)return;const{id:g,success:v,failure:b}=m,E=Vi(n.items,g);if(!E||E.archived){d();return}e("PROCESS_ITEM",{query:g,success:v,failure:b},!0)};r.onOnce("process-complete",()=>{i(cn(r)),d();const m=n.options.server;if(n.options.instantUpload&&r.origin===Dt.LOCAL&&Hi(m.remove)){const b=()=>{};r.origin=Dt.LIMBO,n.options.server.remove(r.source,b,b)}t("GET_ITEMS_BY_STATUS",Oe.PROCESSING_COMPLETE).length===n.items.length&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")}),r.onOnce("process-error",m=>{s({error:m,file:cn(r)}),d()});const f=n.options;r.process(pT(uT(f.server.url,f.server.process,f.name,{chunkTransferId:r.transferId,chunkServer:f.server.patch,chunkUploads:f.chunkUploads,chunkForce:f.chunkForce,chunkSize:f.chunkSize,chunkRetryDelays:f.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(m,g,v)=>{ir("PREPARE_OUTPUT",m,{query:t,item:r}).then(b=>{e("DID_PREPARE_OUTPUT",{id:r.id,file:b}),g(b)}).catch(v)})}),RETRY_ITEM_PROCESSING:Ln(n,r=>{e("REQUEST_ITEM_PROCESSING",{query:r})}),REQUEST_REMOVE_ITEM:Ln(n,r=>{$m(t("GET_BEFORE_REMOVE_FILE"),cn(r)).then(i=>{i&&e("REMOVE_ITEM",{query:r})})}),RELEASE_ITEM:Ln(n,r=>{r.release()}),REMOVE_ITEM:Ln(n,(r,i,s,l)=>{const c=()=>{const f=r.id;Im(n.items,f).archive(),e("DID_REMOVE_ITEM",{error:null,id:f,item:r}),ef(e,n),i(cn(r))},d=n.options.server;r.origin===Dt.LOCAL&&d&&Hi(d.remove)&&l.remove!==!1?(e("DID_START_ITEM_REMOVE",{id:r.id}),d.remove(r.source,()=>c(),f=>{e("DID_THROW_ITEM_REMOVE_ERROR",{id:r.id,error:mt("error",0,f,null),status:{main:wl(n.options.labelFileRemoveError)(f),sub:n.options.labelTapToRetry}})})):((l.revert&&r.origin!==Dt.LOCAL&&r.serverId!==null||n.options.chunkUploads&&r.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&r.revert(Fs(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),c())}),ABORT_ITEM_LOAD:Ln(n,r=>{r.abortLoad()}),ABORT_ITEM_PROCESSING:Ln(n,r=>{if(r.serverId){e("REVERT_ITEM_PROCESSING",{id:r.id});return}r.abortProcessing().then(()=>{n.options.instantUpload&&e("REMOVE_ITEM",{query:r.id})})}),REQUEST_REVERT_ITEM_PROCESSING:Ln(n,r=>{if(!n.options.instantUpload){e("REVERT_ITEM_PROCESSING",{query:r});return}const i=c=>{c&&e("REVERT_ITEM_PROCESSING",{query:r})},s=t("GET_BEFORE_REMOVE_FILE");if(!s)return i(!0);const l=s(cn(r));if(l==null)return i(!0);if(typeof l=="boolean")return i(l);typeof l.then=="function"&&l.then(i)}),REVERT_ITEM_PROCESSING:Ln(n,r=>{r.revert(Fs(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(()=>{(n.options.instantUpload||bT(r))&&e("REMOVE_ITEM",{query:r.id})}).catch(()=>{})}),SET_OPTIONS:({options:r})=>{const i=Object.keys(r),s=xT.filter(c=>i.includes(c));[...s,...Object.keys(r).filter(c=>!s.includes(c))].forEach(c=>{e(`SET_${vl(c,"_").toUpperCase()}`,{value:r[c]})})}}),xT=["server"],nf=e=>e,Nr=e=>document.createElement(e),vt=(e,t)=>{let n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},Dm=(e,t,n,r)=>{const i=(r%360-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},ET=(e,t,n,r,i,s)=>{const l=Dm(e,t,n,i),c=Dm(e,t,n,r);return["M",l.x,l.y,"A",n,n,0,s,0,c.x,c.y].join(" ")},wT=(e,t,n,r,i)=>{let s=1;return i>r&&i-r<=.5&&(s=0),r>i&&r-i>=.5&&(s=0),ET(e,t,n,Math.min(.9999,r)*360,Math.min(.9999,i)*360,s)},Mm=wt({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:({root:e,props:t})=>{t.spin=!1,t.progress=0,t.opacity=0;const n=pl("svg");e.ref.path=pl("path",{"stroke-width":2,"stroke-linecap":"round"}),n.appendChild(e.ref.path),e.ref.svg=n,e.appendChild(n)},write:({root:e,props:t})=>{if(t.opacity===0)return;t.align&&(e.element.dataset.align=t.align);const n=parseInt(Tt(e.ref.path,"stroke-width"),10),r=e.rect.element.width*.5;let i=0,s=0;t.spin?(i=0,s=.5):(i=0,s=t.progress);const l=wT(r,r,r-n,i,s);Tt(e.ref.path,"d",l),Tt(e.ref.path,"stroke-opacity",t.spin||t.progress>0?1:0)},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),Pm=wt({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:({root:e,props:t})=>{e.element.innerHTML=(t.icon||"")+`<span>${t.label}</span>`,t.isDisabled=!1},write:({root:e,props:t})=>{const{isDisabled:n}=t,r=e.query("GET_DISABLED")||t.opacity===0;r&&!n?(t.isDisabled=!0,Tt(e.element,"disabled","disabled")):!r&&n&&(t.isDisabled=!1,e.element.removeAttribute("disabled"))}}),Nm=(e,t=".",n=1e3,r={})=>{const{labelBytes:i="bytes",labelKilobytes:s="KB",labelMegabytes:l="MB",labelGigabytes:c="GB"}=r;e=Math.round(Math.abs(e));const d=n,f=n*n,m=n*n*n;return e<d?`${e} ${i}`:e<f?`${Math.floor(e/d)} ${s}`:e<m?`${Rm(e/f,1,t)} ${l}`:`${Rm(e/m,2,t)} ${c}`},Rm=(e,t,n)=>e.toFixed(t).split(".").filter(r=>r!=="0").join(n),yT=({root:e,props:t})=>{const n=Nr("span");n.className="filepond--file-info-main",Tt(n,"aria-hidden","true"),e.appendChild(n),e.ref.fileName=n;const r=Nr("span");r.className="filepond--file-info-sub",e.appendChild(r),e.ref.fileSize=r,vt(r,e.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),vt(n,nf(e.query("GET_ITEM_NAME",t.id)))},rf=({root:e,props:t})=>{vt(e.ref.fileSize,Nm(e.query("GET_ITEM_SIZE",t.id),".",e.query("GET_FILE_SIZE_BASE"),e.query("GET_FILE_SIZE_LABELS",e.query))),vt(e.ref.fileName,nf(e.query("GET_ITEM_NAME",t.id)))},Lm=({root:e,props:t})=>{if(Lo(e.query("GET_ITEM_SIZE",t.id))){rf({root:e,props:t});return}vt(e.ref.fileSize,e.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},CT=wt({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:Yt({DID_LOAD_ITEM:rf,DID_UPDATE_ITEM_META:rf,DID_THROW_ITEM_LOAD_ERROR:Lm,DID_THROW_ITEM_INVALID:Lm}),didCreateView:e=>{Ui("CREATE_VIEW",{...e,view:e})},create:yT,mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),jm=e=>Math.round(e*100),TT=({root:e})=>{const t=Nr("span");t.className="filepond--file-status-main",e.appendChild(t),e.ref.main=t;const n=Nr("span");n.className="filepond--file-status-sub",e.appendChild(n),e.ref.sub=n,km({root:e,action:{progress:null}})},km=({root:e,action:t})=>{const n=t.progress===null?e.query("GET_LABEL_FILE_LOADING"):`${e.query("GET_LABEL_FILE_LOADING")} ${jm(t.progress)}%`;vt(e.ref.main,n),vt(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},ST=({root:e,action:t})=>{const n=t.progress===null?e.query("GET_LABEL_FILE_PROCESSING"):`${e.query("GET_LABEL_FILE_PROCESSING")} ${jm(t.progress)}%`;vt(e.ref.main,n),vt(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},IT=({root:e})=>{vt(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING")),vt(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},AT=({root:e})=>{vt(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING_ABORTED")),vt(e.ref.sub,e.query("GET_LABEL_TAP_TO_RETRY"))},OT=({root:e})=>{vt(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),vt(e.ref.sub,e.query("GET_LABEL_TAP_TO_UNDO"))},Fm=({root:e})=>{vt(e.ref.main,""),vt(e.ref.sub,"")},Bs=({root:e,action:t})=>{vt(e.ref.main,t.status.main),vt(e.ref.sub,t.status.sub)},$T=wt({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:Yt({DID_LOAD_ITEM:Fm,DID_REVERT_ITEM_PROCESSING:Fm,DID_REQUEST_ITEM_PROCESSING:IT,DID_ABORT_ITEM_PROCESSING:AT,DID_COMPLETE_ITEM_PROCESSING:OT,DID_UPDATE_ITEM_PROCESS_PROGRESS:ST,DID_UPDATE_ITEM_LOAD_PROGRESS:km,DID_THROW_ITEM_LOAD_ERROR:Bs,DID_THROW_ITEM_INVALID:Bs,DID_THROW_ITEM_PROCESSING_ERROR:Bs,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:Bs,DID_THROW_ITEM_REMOVE_ERROR:Bs}),didCreateView:e=>{Ui("CREATE_VIEW",{...e,view:e})},create:TT,mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),of={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},sf=[];ut(of,e=>{sf.push(e)});const wn=e=>{if(af(e)==="right")return 0;const t=e.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},DT=e=>e.ref.buttonAbortItemLoad.rect.element.width,yl=e=>Math.floor(e.ref.buttonRemoveItem.rect.element.height/4),MT=e=>Math.floor(e.ref.buttonRemoveItem.rect.element.left/2),PT=e=>e.query("GET_STYLE_LOAD_INDICATOR_POSITION"),NT=e=>e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION"),af=e=>e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION"),RT={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:PT},processProgressIndicator:{opacity:0,align:NT},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},Bm={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:wn},status:{translateX:wn}},lf={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},Fo={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:wn},status:{translateX:wn,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:wn},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:af},info:{translateX:wn},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:af},buttonRemoveItem:{opacity:1},info:{translateX:wn},status:{opacity:1,translateX:wn}},DID_LOAD_ITEM:Bm,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:wn},status:{translateX:wn}},DID_START_ITEM_PROCESSING:lf,DID_REQUEST_ITEM_PROCESSING:lf,DID_UPDATE_ITEM_PROCESS_PROGRESS:lf,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:wn}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:wn},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:Bm},LT=wt({create:({root:e})=>{e.element.innerHTML=e.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),jT=({root:e,props:t})=>{const n=Object.keys(of).reduce((E,_)=>(E[_]={...of[_]},E),{}),{id:r}=t,i=e.query("GET_ALLOW_REVERT"),s=e.query("GET_ALLOW_REMOVE"),l=e.query("GET_ALLOW_PROCESS"),c=e.query("GET_INSTANT_UPLOAD"),d=e.query("IS_ASYNC"),f=e.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");let m;d?l&&!i?m=E=>!/RevertItemProcessing/.test(E):!l&&i?m=E=>!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(E):!l&&!i&&(m=E=>!/Process/.test(E)):m=E=>!/Process/.test(E);const g=m?sf.filter(m):sf.concat();if(c&&i&&(n.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",n.RevertItemProcessing.icon="GET_ICON_REMOVE"),d&&!i){const E=Fo.DID_COMPLETE_ITEM_PROCESSING;E.info.translateX=MT,E.info.translateY=yl,E.status.translateY=yl,E.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(d&&!l&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach(E=>{Fo[E].status.translateY=yl}),Fo.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=DT),f&&i){n.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";const E=Fo.DID_COMPLETE_ITEM_PROCESSING;E.info.translateX=wn,E.status.translateY=yl,E.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}s||(n.RemoveItem.disabled=!0),ut(n,(E,_)=>{const w=e.createChildView(Pm,{label:e.query(_.label),icon:e.query(_.icon),opacity:0});g.includes(E)&&e.appendChildView(w),_.disabled&&(w.element.setAttribute("disabled","disabled"),w.element.setAttribute("hidden","hidden")),w.element.dataset.align=e.query(`GET_STYLE_${_.align}`),w.element.classList.add(_.className),w.on("click",y=>{y.stopPropagation(),!_.disabled&&e.dispatch(_.action,{query:r})}),e.ref[`button${E}`]=w}),e.ref.processingCompleteIndicator=e.appendChildView(e.createChildView(LT)),e.ref.processingCompleteIndicator.element.dataset.align=e.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),e.ref.info=e.appendChildView(e.createChildView(CT,{id:r})),e.ref.status=e.appendChildView(e.createChildView($T,{id:r}));const v=e.appendChildView(e.createChildView(Mm,{opacity:0,align:e.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));v.element.classList.add("filepond--load-indicator"),e.ref.loadProgressIndicator=v;const b=e.appendChildView(e.createChildView(Mm,{opacity:0,align:e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));b.element.classList.add("filepond--process-indicator"),e.ref.processProgressIndicator=b,e.ref.activeStyles=[]},kT=({root:e,actions:t,props:n})=>{FT({root:e,actions:t,props:n});let r=t.concat().filter(i=>/^DID_/.test(i.type)).reverse().find(i=>Fo[i.type]);if(r){e.ref.activeStyles=[];const i=Fo[r.type];ut(RT,(s,l)=>{const c=e.ref[s];ut(l,(d,f)=>{const m=i[s]&&typeof i[s][d]<"u"?i[s][d]:f;e.ref.activeStyles.push({control:c,key:d,value:m})})})}e.ref.activeStyles.forEach(({control:i,key:s,value:l})=>{i[s]=typeof l=="function"?l(e):l})},FT=Yt({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:({root:e,action:t})=>{e.ref.buttonAbortItemProcessing.label=t.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:({root:e,action:t})=>{e.ref.buttonAbortItemLoad.label=t.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:({root:e,action:t})=>{e.ref.buttonAbortItemRemoval.label=t.value},DID_REQUEST_ITEM_PROCESSING:({root:e})=>{e.ref.processProgressIndicator.spin=!0,e.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:({root:e})=>{e.ref.loadProgressIndicator.spin=!0,e.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:({root:e})=>{e.ref.processProgressIndicator.spin=!0,e.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:({root:e,action:t})=>{e.ref.loadProgressIndicator.spin=!1,e.ref.loadProgressIndicator.progress=t.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:({root:e,action:t})=>{e.ref.processProgressIndicator.spin=!1,e.ref.processProgressIndicator.progress=t.progress}}),BT=wt({create:jT,write:kT,didCreateView:e=>{Ui("CREATE_VIEW",{...e,view:e})},name:"file"}),zT=wt({create:({root:e,props:t})=>{e.ref.fileName=Nr("legend"),e.appendChild(e.ref.fileName),e.ref.file=e.appendChildView(e.createChildView(BT,{id:t.id})),e.ref.data=!1},ignoreRect:!0,write:Yt({DID_LOAD_ITEM:({root:e,props:t})=>{vt(e.ref.fileName,nf(e.query("GET_ITEM_NAME",t.id)))}}),didCreateView:e=>{Ui("CREATE_VIEW",{...e,view:e})},tag:"fieldset",name:"file-wrapper"}),zm={type:"spring",damping:.6,mass:7},GT=({root:e,props:t})=>{[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:zm},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:zm},styles:["translateY"]}}].forEach(n=>{HT(e,n,t.name)}),e.element.classList.add(`filepond--${t.name}`),e.ref.scalable=null},HT=(e,t,n)=>{const r=wt({name:`panel-${t.name} filepond--${n}`,mixins:t.mixins,ignoreRectUpdate:!0}),i=e.createChildView(r,t.props);e.ref[t.name]=e.appendChildView(i)},Gm=wt({name:"panel",read:({root:e,props:t})=>t.heightCurrent=e.ref.bottom.translateY,write:({root:e,props:t})=>{if((e.ref.scalable===null||t.scalable!==e.ref.scalable)&&(e.ref.scalable=sm(t.scalable)?t.scalable:!0,e.element.dataset.scalable=e.ref.scalable),!t.height)return;const n=e.ref.top.rect.element,r=e.ref.bottom.rect.element,i=Math.max(n.height+r.height,t.height);e.ref.center.translateY=n.height,e.ref.center.scaleY=(i-n.height-r.height)/100,e.ref.bottom.translateY=i-r.height},create:GT,ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}),UT=e=>{const t=e.map(r=>r.id);let n;return{setIndex:r=>{n=r},getIndex:()=>n,getItemIndex:r=>t.indexOf(r.id)}},Hm={type:"spring",stiffness:.75,damping:.45,mass:10},Um="spring",Vm={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},VT=({root:e,props:t})=>{if(e.ref.handleClick=r=>e.dispatch("DID_ACTIVATE_ITEM",{id:t.id}),e.element.id=`filepond--item-${t.id}`,e.element.addEventListener("click",e.ref.handleClick),e.ref.container=e.appendChildView(e.createChildView(zT,{id:t.id})),e.ref.panel=e.appendChildView(e.createChildView(Gm,{name:"item-panel"})),e.ref.panel.height=null,t.markedForRemoval=!1,!e.query("GET_ALLOW_REORDER"))return;e.element.dataset.dragState="idle";const n=r=>{if(!r.isPrimary)return;let i=!1;const s={x:r.pageX,y:r.pageY};t.dragOrigin={x:e.translateX,y:e.translateY},t.dragCenter={x:r.offsetX,y:r.offsetY};const l=UT(e.query("GET_ACTIVE_ITEMS"));e.dispatch("DID_GRAB_ITEM",{id:t.id,dragState:l});const c=g=>{if(!g.isPrimary)return;g.stopPropagation(),g.preventDefault(),t.dragOffset={x:g.pageX-s.x,y:g.pageY-s.y},t.dragOffset.x*t.dragOffset.x+t.dragOffset.y*t.dragOffset.y>16&&!i&&(i=!0,e.element.removeEventListener("click",e.ref.handleClick)),e.dispatch("DID_DRAG_ITEM",{id:t.id,dragState:l})},d=g=>{g.isPrimary&&(t.dragOffset={x:g.pageX-s.x,y:g.pageY-s.y},m())},f=()=>{m()},m=()=>{document.removeEventListener("pointercancel",f),document.removeEventListener("pointermove",c),document.removeEventListener("pointerup",d),e.dispatch("DID_DROP_ITEM",{id:t.id,dragState:l}),i&&setTimeout(()=>e.element.addEventListener("click",e.ref.handleClick),0)};document.addEventListener("pointercancel",f),document.addEventListener("pointermove",c),document.addEventListener("pointerup",d)};e.element.addEventListener("pointerdown",n)},WT=Yt({DID_UPDATE_PANEL_HEIGHT:({root:e,action:t})=>{e.height=t.height}}),qT=Yt({DID_GRAB_ITEM:({root:e,props:t})=>{t.dragOrigin={x:e.translateX,y:e.translateY}},DID_DRAG_ITEM:({root:e})=>{e.element.dataset.dragState="drag"},DID_DROP_ITEM:({root:e,props:t})=>{t.dragOffset=null,t.dragOrigin=null,e.element.dataset.dragState="drop"}},({root:e,actions:t,props:n,shouldOptimize:r})=>{e.element.dataset.dragState==="drop"&&e.scaleX<=1&&(e.element.dataset.dragState="idle");let i=t.concat().filter(l=>/^DID_/.test(l.type)).reverse().find(l=>Vm[l.type]);i&&i.type!==n.currentState&&(n.currentState=i.type,e.element.dataset.filepondItemState=Vm[n.currentState]||"");const s=e.query("GET_ITEM_PANEL_ASPECT_RATIO")||e.query("GET_PANEL_ASPECT_RATIO");s?r||(e.height=e.rect.element.width*s):(WT({root:e,actions:t,props:n}),!e.height&&e.ref.container.rect.element.height>0&&(e.height=e.ref.container.rect.element.height)),r&&(e.ref.panel.height=null),e.ref.panel.height=e.height}),YT=wt({create:VT,write:qT,destroy:({root:e,props:t})=>{e.element.removeEventListener("click",e.ref.handleClick),e.dispatch("RELEASE_ITEM",{query:t.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:Um,scaleY:Um,translateX:Hm,translateY:Hm,opacity:{type:"tween",duration:150}}}});var cf=(e,t)=>Math.max(1,Math.floor((e+1)/t));const df=(e,t,n)=>{if(!n)return;const r=e.rect.element.width,i=t.length;let s=null;if(i===0||n.top<t[0].rect.element.top)return-1;const c=t[0].rect.element,d=c.marginLeft+c.marginRight,f=c.width+d,m=cf(r,f);if(m===1){for(let b=0;b<i;b++){const E=t[b],_=E.rect.outer.top+E.rect.element.height*.5;if(n.top<_)return b}return i}const g=c.marginTop+c.marginBottom,v=c.height+g;for(let b=0;b<i;b++){const E=b%m,_=Math.floor(b/m),w=E*f,y=_*v,T=y-c.marginTop,S=w+f,O=y+v+c.marginBottom;if(n.top<O&&n.top>T){if(n.left<S)return b;b!==i-1?s=b:s=null}}return s!==null?s:i},Cl={height:0,width:0,get getHeight(){return this.height},set setHeight(e){(this.height===0||e===0)&&(this.height=e)},get getWidth(){return this.width},set setWidth(e){(this.width===0||e===0)&&(this.width=e)}},ZT=({root:e})=>{Tt(e.element,"role","list"),e.ref.lastItemSpanwDate=Date.now()},XT=({root:e,action:t})=>{const{id:n,index:r,interactionMethod:i}=t;e.ref.addIndex=r;const s=Date.now();let l=s,c=1;if(i!==Nn.NONE){c=0;const d=e.query("GET_ITEM_INSERT_INTERVAL"),f=s-e.ref.lastItemSpanwDate;l=f<d?s+(d-f):s}e.ref.lastItemSpanwDate=l,e.appendChildView(e.createChildView(YT,{spawnDate:l,id:n,opacity:c,interactionMethod:i}),r)},Wm=(e,t,n,r=0,i=1)=>{e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(e.opacity===0&&KT(e,t,n,r,i),e.scaleX=1,e.scaleY=1,e.opacity=1))},KT=(e,t,n,r,i)=>{e.interactionMethod===Nn.NONE?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===Nn.DROP?(e.translateX=null,e.translateX=t-r*20,e.translateY=null,e.translateY=n-i*10,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===Nn.BROWSE?(e.translateY=null,e.translateY=n-30):e.interactionMethod===Nn.API&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},QT=({root:e,action:t})=>{const{id:n}=t,r=e.childViews.find(i=>i.id===n);r&&(r.scaleX=.9,r.scaleY=.9,r.opacity=0,r.markedForRemoval=!0)},uf=e=>e.rect.element.height+e.rect.element.marginBottom*.5+e.rect.element.marginTop*.5,JT=e=>e.rect.element.width+e.rect.element.marginLeft*.5+e.rect.element.marginRight*.5,eS=Yt({DID_ADD_ITEM:XT,DID_REMOVE_ITEM:QT,DID_DRAG_ITEM:({root:e,action:t})=>{const{id:n,dragState:r}=t,i=e.query("GET_ITEM",{id:n}),s=e.childViews.find(w=>w.id===n),l=e.childViews.length,c=r.getItemIndex(i);if(!s)return;const d={x:s.dragOrigin.x+s.dragOffset.x+s.dragCenter.x,y:s.dragOrigin.y+s.dragOffset.y+s.dragCenter.y},f=uf(s),m=JT(s);let g=Math.floor(e.rect.outer.width/m);g>l&&(g=l);const v=Math.floor(l/g+1);Cl.setHeight=f*v,Cl.setWidth=m*g;var b={y:Math.floor(d.y/f),x:Math.floor(d.x/m),getGridIndex:function(){return d.y>Cl.getHeight||d.y<0||d.x>Cl.getWidth||d.x<0?c:this.y*g+this.x},getColIndex:function(){const y=e.query("GET_ACTIVE_ITEMS"),T=e.childViews.filter(L=>L.rect.element.height),S=y.map(L=>T.find(G=>G.id===L.id)),O=S.findIndex(L=>L===s),I=uf(s),M=S.length;let N=M,D=0,k=0,Y=0;for(let L=0;L<M;L++)if(D=uf(S[L]),Y=k,k=Y+D,d.y<k){if(O>L){if(d.y<Y+I){N=L;break}continue}N=L;break}return N}};const E=g>1?b.getGridIndex():b.getColIndex();e.dispatch("MOVE_ITEM",{query:s,index:E});const _=r.getIndex();if(_===void 0||_!==E){if(r.setIndex(E),_===void 0)return;e.dispatch("DID_REORDER_ITEMS",{items:e.query("GET_ACTIVE_ITEMS"),origin:c,target:E})}}}),tS=wt({create:ZT,write:({root:e,props:t,actions:n,shouldOptimize:r})=>{eS({root:e,props:t,actions:n});const{dragCoordinates:i}=t,s=e.rect.element.width,l=e.childViews.filter(S=>S.rect.element.height),c=e.query("GET_ACTIVE_ITEMS").map(S=>l.find(O=>O.id===S.id)).filter(S=>S),d=i?df(e,c,i):null,f=e.ref.addIndex||null;e.ref.addIndex=null;let m=0,g=0,v=0;if(c.length===0)return;const b=c[0].rect.element,E=b.marginTop+b.marginBottom,_=b.marginLeft+b.marginRight,w=b.width+_,y=b.height+E,T=cf(s,w);if(T===1){let S=0,O=0;c.forEach((I,M)=>{if(d){let k=M-d;k===-2?O=-E*.25:k===-1?O=-E*.75:k===0?O=E*.75:k===1?O=E*.25:O=0}r&&(I.translateX=null,I.translateY=null),I.markedForRemoval||Wm(I,0,S+O);let D=(I.rect.element.height+E)*(I.markedForRemoval?I.opacity:1);S+=D})}else{let S=0,O=0;c.forEach((I,M)=>{M===d&&(m=1),M===f&&(v+=1),I.markedForRemoval&&I.opacity<.5&&(g-=1);const N=M+v+m+g,D=N%T,k=Math.floor(N/T),Y=D*w,L=k*y,G=Math.sign(Y-S),X=Math.sign(L-O);S=Y,O=L,!I.markedForRemoval&&(r&&(I.translateX=null,I.translateY=null),Wm(I,Y,L,G,X))})}},tag:"ul",name:"list",didWriteView:({root:e})=>{e.childViews.filter(t=>t.markedForRemoval&&t.opacity===0&&t.resting).forEach(t=>{t._destroy(),e.removeChildView(t)})},filterFrameActionsForChild:(e,t)=>t.filter(n=>n.data&&n.data.id?e.id===n.data.id:!0),mixins:{apis:["dragCoordinates"]}}),nS=({root:e,props:t})=>{e.ref.list=e.appendChildView(e.createChildView(tS)),t.dragCoordinates=null,t.overflowing=!1},rS=Yt({DID_DRAG:({root:e,props:t,action:n})=>{e.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(t.dragCoordinates={left:n.position.scopeLeft-e.ref.list.rect.element.left,top:n.position.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},DID_END_DRAG:({props:e})=>{e.dragCoordinates=null}}),iS=wt({create:nS,write:({root:e,props:t,actions:n})=>{if(rS({root:e,props:t,actions:n}),e.ref.list.dragCoordinates=t.dragCoordinates,t.overflowing&&!t.overflow&&(t.overflowing=!1,e.element.dataset.state="",e.height=null),t.overflow){const r=Math.round(t.overflow);r!==e.height&&(t.overflowing=!0,e.element.dataset.state="overflow",e.height=r)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),sr=(e,t,n,r="")=>{n?Tt(e,t,r):e.removeAttribute(t)},oS=e=>{if(!(!e||e.value==="")){try{e.value=""}catch{}if(e.value){const t=Nr("form"),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}},sS=({root:e,props:t})=>{e.element.id=`filepond--browser-${t.id}`,Tt(e.element,"name",e.query("GET_NAME")),Tt(e.element,"aria-controls",`filepond--assistant-${t.id}`),Tt(e.element,"aria-labelledby",`filepond--drop-label-${t.id}`),qm({root:e,action:{value:e.query("GET_ACCEPTED_FILE_TYPES")}}),Ym({root:e,action:{value:e.query("GET_ALLOW_MULTIPLE")}}),Zm({root:e,action:{value:e.query("GET_ALLOW_DIRECTORIES_ONLY")}}),ff({root:e}),Xm({root:e,action:{value:e.query("GET_REQUIRED")}}),Km({root:e,action:{value:e.query("GET_CAPTURE_METHOD")}}),e.ref.handleChange=n=>{if(!e.element.value)return;const r=Array.from(e.element.files).map(i=>(i._relativePath=i.webkitRelativePath,i));setTimeout(()=>{t.onload(r),oS(e.element)},250)},e.element.addEventListener("change",e.ref.handleChange)},qm=({root:e,action:t})=>{e.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&sr(e.element,"accept",!!t.value,t.value?t.value.join(","):"")},Ym=({root:e,action:t})=>{sr(e.element,"multiple",t.value)},Zm=({root:e,action:t})=>{sr(e.element,"webkitdirectory",t.value)},ff=({root:e})=>{const t=e.query("GET_DISABLED"),n=e.query("GET_ALLOW_BROWSE"),r=t||!n;sr(e.element,"disabled",r)},Xm=({root:e,action:t})=>{t.value?e.query("GET_TOTAL_ITEMS")===0&&sr(e.element,"required",!0):sr(e.element,"required",!1)},Km=({root:e,action:t})=>{sr(e.element,"capture",!!t.value,t.value===!0?"":t.value)},Qm=({root:e})=>{const{element:t}=e;if(e.query("GET_TOTAL_ITEMS")>0){sr(t,"required",!1),sr(t,"name",!1);const n=e.query("GET_ACTIVE_ITEMS");let r=!1;for(let i=0;i<n.length;i++)n[i].status===Oe.LOAD_ERROR&&(r=!0);e.element.setCustomValidity(r?e.query("GET_LABEL_INVALID_FIELD"):"")}else sr(t,"name",!0,e.query("GET_NAME")),e.query("GET_CHECK_VALIDITY")&&t.setCustomValidity(""),e.query("GET_REQUIRED")&&sr(t,"required",!0)},aS=wt({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:sS,destroy:({root:e})=>{e.element.removeEventListener("change",e.ref.handleChange)},write:Yt({DID_LOAD_ITEM:Qm,DID_REMOVE_ITEM:Qm,DID_THROW_ITEM_INVALID:({root:e})=>{e.query("GET_CHECK_VALIDITY")&&e.element.setCustomValidity(e.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:ff,DID_SET_ALLOW_BROWSE:ff,DID_SET_ALLOW_DIRECTORIES_ONLY:Zm,DID_SET_ALLOW_MULTIPLE:Ym,DID_SET_ACCEPTED_FILE_TYPES:qm,DID_SET_CAPTURE_METHOD:Km,DID_SET_REQUIRED:Xm})}),Jm={ENTER:13,SPACE:32},lS=({root:e,props:t})=>{const n=Nr("label");Tt(n,"for",`filepond--browser-${t.id}`),Tt(n,"id",`filepond--drop-label-${t.id}`),e.ref.handleKeyDown=r=>{(r.keyCode===Jm.ENTER||r.keyCode===Jm.SPACE)&&(r.preventDefault(),e.ref.label.click())},e.ref.handleClick=r=>{r.target===n||n.contains(r.target)||e.ref.label.click()},n.addEventListener("keydown",e.ref.handleKeyDown),e.element.addEventListener("click",e.ref.handleClick),ev(n,t.caption),e.appendChild(n),e.ref.label=n},ev=(e,t)=>{e.innerHTML=t;const n=e.querySelector(".filepond--label-action");return n&&Tt(n,"tabindex","0"),t},cS=wt({name:"drop-label",ignoreRect:!0,create:lS,destroy:({root:e})=>{e.ref.label.addEventListener("keydown",e.ref.handleKeyDown),e.element.removeEventListener("click",e.ref.handleClick)},write:Yt({DID_SET_LABEL_IDLE:({root:e,action:t})=>{ev(e.ref.label,t.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),dS=wt({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),uS=({root:e})=>{const t=e.rect.element.width*.5,n=e.rect.element.height*.5;e.ref.blob=e.appendChildView(e.createChildView(dS,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:t,translateY:n}))},fS=({root:e,action:t})=>{if(!e.ref.blob){uS({root:e});return}e.ref.blob.translateX=t.position.scopeLeft,e.ref.blob.translateY=t.position.scopeTop,e.ref.blob.scaleX=1,e.ref.blob.scaleY=1,e.ref.blob.opacity=1},pS=({root:e})=>{e.ref.blob&&(e.ref.blob.opacity=0)},hS=({root:e})=>{e.ref.blob&&(e.ref.blob.scaleX=2.5,e.ref.blob.scaleY=2.5,e.ref.blob.opacity=0)},gS=({root:e,props:t,actions:n})=>{mS({root:e,props:t,actions:n});const{blob:r}=e.ref;n.length===0&&r&&r.opacity===0&&(e.removeChildView(r),e.ref.blob=null)},mS=Yt({DID_DRAG:fS,DID_DROP:hS,DID_END_DRAG:pS}),vS=wt({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:gS}),tv=(e,t)=>{try{const n=new DataTransfer;t.forEach(r=>{r instanceof File?n.items.add(r):n.items.add(new File([r],r.name,{type:r.type}))}),e.files=n.files}catch{return!1}return!0},bS=({root:e})=>{e.ref.fields={};const t=document.createElement("legend");t.textContent="Files",e.element.appendChild(t)},Tl=(e,t)=>e.ref.fields[t],pf=e=>{e.query("GET_ACTIVE_ITEMS").forEach(t=>{e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])})},nv=({root:e})=>pf(e),_S=Yt({DID_SET_DISABLED:({root:e})=>{e.element.disabled=e.query("GET_DISABLED")},DID_ADD_ITEM:({root:e,action:t})=>{const i=!(e.query("GET_ITEM",t.id).origin===Dt.LOCAL)&&e.query("SHOULD_UPDATE_FILE_INPUT"),s=Nr("input");s.type=i?"file":"hidden",s.name=e.query("GET_NAME"),e.ref.fields[t.id]=s,pf(e)},DID_LOAD_ITEM:({root:e,action:t})=>{const n=Tl(e,t.id);if(!n||(t.serverFileReference!==null&&(n.value=t.serverFileReference),!e.query("SHOULD_UPDATE_FILE_INPUT")))return;const r=e.query("GET_ITEM",t.id);tv(n,[r.file])},DID_REMOVE_ITEM:({root:e,action:t})=>{const n=Tl(e,t.id);n&&(n.parentNode&&n.parentNode.removeChild(n),delete e.ref.fields[t.id])},DID_DEFINE_VALUE:({root:e,action:t})=>{const n=Tl(e,t.id);n&&(t.value===null?n.removeAttribute("value"):n.type!="file"&&(n.value=t.value),pf(e))},DID_PREPARE_OUTPUT:({root:e,action:t})=>{e.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout(()=>{const n=Tl(e,t.id);n&&tv(n,[t.file])},0)},DID_REORDER_ITEMS:nv,DID_SORT_ITEMS:nv}),xS=wt({tag:"fieldset",name:"data",create:bS,write:_S,ignoreRect:!0}),ES=e=>"getRootNode"in e?e.getRootNode():document,wS=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],yS=["css","csv","html","txt"],CS={zip:"zip|compressed",epub:"application/epub+zip"},rv=(e="")=>(e=e.toLowerCase(),wS.includes(e)?"image/"+(e==="jpg"?"jpeg":e==="svg"?"svg+xml":e):yS.includes(e)?"text/"+e:CS[e]||""),hf=e=>new Promise((t,n)=>{const r=MS(e);if(r.length&&!TS(e))return t(r);SS(e).then(t)}),TS=e=>e.files?e.files.length>0:!1,SS=e=>new Promise((t,n)=>{const r=(e.items?Array.from(e.items):[]).filter(i=>IS(i)).map(i=>AS(i));if(!r.length){t(e.files?Array.from(e.files):[]);return}Promise.all(r).then(i=>{const s=[];i.forEach(l=>{s.push.apply(s,l)}),t(s.filter(l=>l).map(l=>(l._relativePath||(l._relativePath=l.webkitRelativePath),l)))}).catch(console.error)}),IS=e=>{if(iv(e)){const t=gf(e);if(t)return t.isFile||t.isDirectory}return e.kind==="file"},AS=e=>new Promise((t,n)=>{if(DS(e)){OS(gf(e)).then(t).catch(n);return}t([e.getAsFile()])}),OS=e=>new Promise((t,n)=>{const r=[];let i=0,s=0;const l=()=>{s===0&&i===0&&t(r)},c=d=>{i++;const f=d.createReader(),m=()=>{f.readEntries(g=>{if(g.length===0){i--,l();return}g.forEach(v=>{v.isDirectory?c(v):(s++,v.file(b=>{const E=$S(b);v.fullPath&&(E._relativePath=v.fullPath),r.push(E),s--,l()}))}),m()},n)};m()};c(e)}),$S=e=>{if(e.type.length)return e;const t=e.lastModifiedDate,n=e.name,r=rv(El(e.name));return r.length&&(e=e.slice(0,e.size,r),e.name=n,e.lastModifiedDate=t),e},DS=e=>iv(e)&&(gf(e)||{}).isDirectory,iv=e=>"webkitGetAsEntry"in e,gf=e=>e.webkitGetAsEntry(),MS=e=>{let t=[];try{if(t=NS(e),t.length)return t;t=PS(e)}catch{}return t},PS=e=>{let t=e.getData("url");return typeof t=="string"&&t.length?[t]:[]},NS=e=>{let t=e.getData("text/html");if(typeof t=="string"&&t.length){const n=t.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},Sl=[],Zi=e=>({pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}),RS=(e,t,n)=>{const r=LS(t),i={element:e,filterElement:n,state:null,ondrop:()=>{},onenter:()=>{},ondrag:()=>{},onexit:()=>{},onload:()=>{},allowdrop:()=>{}};return i.destroy=r.addListener(i),i},LS=e=>{const t=Sl.find(r=>r.element===e);if(t)return t;const n=jS(e);return Sl.push(n),n},jS=e=>{const t=[],n={dragenter:FS,dragover:BS,dragleave:GS,drop:zS},r={};ut(n,(s,l)=>{r[s]=l(e,t),e.addEventListener(s,r[s],!1)});const i={element:e,addListener:s=>(t.push(s),()=>{t.splice(t.indexOf(s),1),t.length===0&&(Sl.splice(Sl.indexOf(i),1),ut(n,l=>{e.removeEventListener(l,r[l],!1)}))})};return i},kS=(e,t)=>("elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)),mf=(e,t)=>{const n=ES(t),r=kS(n,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return r===t||t.contains(r)};let ov=null;const Il=(e,t)=>{try{e.dropEffect=t}catch{}},FS=(e,t)=>n=>{n.preventDefault(),ov=n.target,t.forEach(r=>{const{element:i,onenter:s}=r;mf(n,i)&&(r.state="enter",s(Zi(n)))})},BS=(e,t)=>n=>{n.preventDefault();const r=n.dataTransfer;hf(r).then(i=>{let s=!1;t.some(l=>{const{filterElement:c,element:d,onenter:f,onexit:m,ondrag:g,allowdrop:v}=l;Il(r,"copy");const b=v(i);if(!b){Il(r,"none");return}if(mf(n,d)){if(s=!0,l.state===null){l.state="enter",f(Zi(n));return}if(l.state="over",c&&!b){Il(r,"none");return}g(Zi(n))}else c&&!s&&Il(r,"none"),l.state&&(l.state=null,m(Zi(n)))})})},zS=(e,t)=>n=>{n.preventDefault();const r=n.dataTransfer;hf(r).then(i=>{t.forEach(s=>{const{filterElement:l,element:c,ondrop:d,onexit:f,allowdrop:m}=s;if(s.state=null,!(l&&!mf(n,c))){if(!m(i))return f(Zi(n));d(Zi(n),i)}})})},GS=(e,t)=>n=>{ov===n.target&&t.forEach(r=>{const{onexit:i}=r;r.state=null,i(Zi(n))})},HS=(e,t,n)=>{e.classList.add("filepond--hopper");const{catchesDropsOnPage:r,requiresDropOnElement:i,filterItems:s=m=>m}=n,l=RS(e,r?document.documentElement:e,i);let c="",d="";l.allowdrop=m=>t(s(m)),l.ondrop=(m,g)=>{const v=s(g);if(!t(v)){f.ondragend(m);return}d="drag-drop",f.onload(v,m)},l.ondrag=m=>{f.ondrag(m)},l.onenter=m=>{d="drag-over",f.ondragstart(m)},l.onexit=m=>{d="drag-exit",f.ondragend(m)};const f={updateHopperState:()=>{c!==d&&(e.dataset.hopperState=d,c=d)},onload:()=>{},ondragstart:()=>{},ondrag:()=>{},ondragend:()=>{},destroy:()=>{l.destroy()}};return f};let vf=!1;const Bo=[],sv=e=>{const t=document.activeElement;if(t&&(/textarea|input/i.test(t.nodeName)||t.getAttribute("contenteditable")==="true")){let r=!1,i=t;for(;i!==document.body;){if(i.classList.contains("filepond--root")){r=!0;break}i=i.parentNode}if(!r)return}hf(e.clipboardData).then(r=>{r.length&&Bo.forEach(i=>i(r))})},US=e=>{Bo.includes(e)||(Bo.push(e),!vf&&(vf=!0,document.addEventListener("paste",sv)))},VS=e=>{Zu(Bo,Bo.indexOf(e)),Bo.length===0&&(document.removeEventListener("paste",sv),vf=!1)},WS=()=>{const e=n=>{t.onload(n)},t={destroy:()=>{VS(e)},onload:()=>{}};return US(e),t},qS=({root:e,props:t})=>{e.element.id=`filepond--assistant-${t.id}`,Tt(e.element,"role","alert"),Tt(e.element,"aria-live","polite"),Tt(e.element,"aria-relevant","additions")};let av=null,lv=null;const bf=[],Al=(e,t)=>{e.element.textContent=t},YS=e=>{e.element.textContent=""},cv=(e,t,n)=>{const r=e.query("GET_TOTAL_ITEMS");Al(e,`${n} ${t}, ${r} ${r===1?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL")}`),clearTimeout(lv),lv=setTimeout(()=>{YS(e)},1500)},dv=e=>e.element.parentNode.contains(document.activeElement),ZS=({root:e,action:t})=>{if(!dv(e))return;e.element.textContent="";const n=e.query("GET_ITEM",t.id);bf.push(n.filename),clearTimeout(av),av=setTimeout(()=>{cv(e,bf.join(", "),e.query("GET_LABEL_FILE_ADDED")),bf.length=0},750)},XS=({root:e,action:t})=>{if(!dv(e))return;const n=t.item;cv(e,n.filename,e.query("GET_LABEL_FILE_REMOVED"))},KS=({root:e,action:t})=>{const r=e.query("GET_ITEM",t.id).filename,i=e.query("GET_LABEL_FILE_PROCESSING_COMPLETE");Al(e,`${r} ${i}`)},uv=({root:e,action:t})=>{const r=e.query("GET_ITEM",t.id).filename,i=e.query("GET_LABEL_FILE_PROCESSING_ABORTED");Al(e,`${r} ${i}`)},Ol=({root:e,action:t})=>{const r=e.query("GET_ITEM",t.id).filename;Al(e,`${t.status.main} ${r} ${t.status.sub}`)},QS=wt({create:qS,ignoreRect:!0,ignoreRectUpdate:!0,write:Yt({DID_LOAD_ITEM:ZS,DID_REMOVE_ITEM:XS,DID_COMPLETE_ITEM_PROCESSING:KS,DID_ABORT_ITEM_PROCESSING:uv,DID_REVERT_ITEM_PROCESSING:uv,DID_THROW_ITEM_REMOVE_ERROR:Ol,DID_THROW_ITEM_LOAD_ERROR:Ol,DID_THROW_ITEM_INVALID:Ol,DID_THROW_ITEM_PROCESSING_ERROR:Ol}),tag:"span",name:"assistant"}),fv=(e,t="-")=>e.replace(new RegExp(`${t}.`,"g"),n=>n.charAt(1).toUpperCase()),pv=(e,t=16,n=!0)=>{let r=Date.now(),i=null;return(...s)=>{clearTimeout(i);const l=Date.now()-r,c=()=>{r=Date.now(),e(...s)};l<t?n||(i=setTimeout(c,t-l)):c()}},JS=1e6,$l=e=>e.preventDefault(),eI=({root:e,props:t})=>{const n=e.query("GET_ID");n&&(e.element.id=n);const r=e.query("GET_CLASS_NAME");r&&r.split(" ").filter(d=>d.length).forEach(d=>{e.element.classList.add(d)}),e.ref.label=e.appendChildView(e.createChildView(cS,{...t,translateY:null,caption:e.query("GET_LABEL_IDLE")})),e.ref.list=e.appendChildView(e.createChildView(iS,{translateY:null})),e.ref.panel=e.appendChildView(e.createChildView(Gm,{name:"panel-root"})),e.ref.assistant=e.appendChildView(e.createChildView(QS,{...t})),e.ref.data=e.appendChildView(e.createChildView(xS,{...t})),e.ref.measure=Nr("div"),e.ref.measure.style.height="100%",e.element.appendChild(e.ref.measure),e.ref.bounds=null,e.query("GET_STYLES").filter(d=>!Pr(d.value)).map(({name:d,value:f})=>{e.element.dataset[d]=f}),e.ref.widthPrevious=null,e.ref.widthUpdated=pv(()=>{e.ref.updateHistory=[],e.dispatch("DID_RESIZE_ROOT")},250),e.ref.previousAspectRatio=null,e.ref.updateHistory=[];const i=window.matchMedia("(pointer: fine) and (hover: hover)").matches,s="PointerEvent"in window;e.query("GET_ALLOW_REORDER")&&s&&!i&&(e.element.addEventListener("touchmove",$l,{passive:!1}),e.element.addEventListener("gesturestart",$l));const l=e.query("GET_CREDITS");if(l.length===2){const d=document.createElement("a");d.className="filepond--credits",d.href=l[0],d.tabIndex=-1,d.target="_blank",d.rel="noopener noreferrer nofollow",d.textContent=l[1],e.element.appendChild(d),e.ref.credits=d}},tI=({root:e,props:t,actions:n})=>{if(sI({root:e,props:t,actions:n}),n.filter(M=>/^DID_SET_STYLE_/.test(M.type)).filter(M=>!Pr(M.data.value)).map(({type:M,data:N})=>{const D=fv(M.substring(8).toLowerCase(),"_");e.element.dataset[D]=N.value,e.invalidateLayout()}),e.rect.element.hidden)return;e.rect.element.width!==e.ref.widthPrevious&&(e.ref.widthPrevious=e.rect.element.width,e.ref.widthUpdated());let r=e.ref.bounds;r||(r=e.ref.bounds=iI(e),e.element.removeChild(e.ref.measure),e.ref.measure=null);const{hopper:i,label:s,list:l,panel:c}=e.ref;i&&i.updateHopperState();const d=e.query("GET_PANEL_ASPECT_RATIO"),f=e.query("GET_ALLOW_MULTIPLE"),m=e.query("GET_TOTAL_ITEMS"),g=f?e.query("GET_MAX_FILES")||JS:1,v=m===g,b=n.find(M=>M.type==="DID_ADD_ITEM");if(v&&b){const M=b.data.interactionMethod;s.opacity=0,f?s.translateY=-40:M===Nn.API?s.translateX=40:M===Nn.BROWSE?s.translateY=40:s.translateY=30}else v||(s.opacity=1,s.translateX=0,s.translateY=0);const E=nI(e),_=rI(e),w=s.rect.element.height,y=!f||v?0:w,T=v?l.rect.element.marginTop:0,S=m===0?0:l.rect.element.marginBottom,O=y+T+_.visual+S,I=y+T+_.bounds+S;if(l.translateY=Math.max(0,y-l.rect.element.marginTop)-E.top,d){const M=e.rect.element.width,N=M*d;d!==e.ref.previousAspectRatio&&(e.ref.previousAspectRatio=d,e.ref.updateHistory=[]);const D=e.ref.updateHistory;D.push(M);const k=2;if(D.length>k*2){const L=D.length,G=L-10;let X=0;for(let R=L;R>=G;R--)if(D[R]===D[R-2]&&X++,X>=k)return}c.scalable=!1,c.height=N;const Y=N-y-(S-E.bottom)-(v?T:0);_.visual>Y?l.overflow=Y:l.overflow=null,e.height=N}else if(r.fixedHeight){c.scalable=!1;const M=r.fixedHeight-y-(S-E.bottom)-(v?T:0);_.visual>M?l.overflow=M:l.overflow=null}else if(r.cappedHeight){const M=O>=r.cappedHeight,N=Math.min(r.cappedHeight,O);c.scalable=!0,c.height=M?N:N-E.top-E.bottom;const D=N-y-(S-E.bottom)-(v?T:0);O>r.cappedHeight&&_.visual>D?l.overflow=D:l.overflow=null,e.height=Math.min(r.cappedHeight,I-E.top-E.bottom)}else{const M=m>0?E.top+E.bottom:0;c.scalable=!0,c.height=Math.max(w,O-M),e.height=Math.max(w,I-M)}e.ref.credits&&c.heightCurrent&&(e.ref.credits.style.transform=`translateY(${c.heightCurrent}px)`)},nI=e=>{const t=e.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},rI=e=>{let t=0,n=0;const r=e.ref.list,i=r.childViews[0],s=i.childViews.filter(T=>T.rect.element.height),l=e.query("GET_ACTIVE_ITEMS").map(T=>s.find(S=>S.id===T.id)).filter(T=>T);if(l.length===0)return{visual:t,bounds:n};const c=i.rect.element.width,d=df(i,l,r.dragCoordinates),f=l[0].rect.element,m=f.marginTop+f.marginBottom,g=f.marginLeft+f.marginRight,v=f.width+g,b=f.height+m,E=typeof d<"u"&&d>=0?1:0,_=l.find(T=>T.markedForRemoval&&T.opacity<.45)?-1:0,w=l.length+E+_,y=cf(c,v);return y===1?l.forEach(T=>{const S=T.rect.element.height+m;n+=S,t+=S*T.opacity}):(n=Math.ceil(w/y)*b,t=n),{visual:t,bounds:n}},iI=e=>{const t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:t===0?null:t}},_f=(e,t)=>{const n=e.query("GET_ALLOW_REPLACE"),r=e.query("GET_ALLOW_MULTIPLE"),i=e.query("GET_TOTAL_ITEMS");let s=e.query("GET_MAX_FILES");const l=t.length;return!r&&l>1?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:mt("warning",0,"Max files")}),!0):(s=r?s:1,!r&&n?!1:Lo(s)&&i+l>s?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:mt("warning",0,"Max files")}),!0):!1)},oI=(e,t,n)=>{const r=e.childViews[0];return df(r,t,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},hv=e=>{const t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),r=t&&!n;if(r&&!e.ref.hopper){const i=HS(e.element,s=>{const l=e.query("GET_BEFORE_DROP_FILE")||(()=>!0);return e.query("GET_DROP_VALIDATION")?s.every(d=>Ui("ALLOW_HOPPER_ITEM",d,{query:e.query}).every(f=>f===!0)&&l(d)):!0},{filterItems:s=>{const l=e.query("GET_IGNORED_FILES");return s.filter(c=>Yi(c)?!l.includes(c.name.toLowerCase()):!0)},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});i.onload=(s,l)=>{const d=e.ref.list.childViews[0].childViews.filter(m=>m.rect.element.height),f=e.query("GET_ACTIVE_ITEMS").map(m=>d.find(g=>g.id===m.id)).filter(m=>m);ir("ADD_ITEMS",s,{dispatch:e.dispatch}).then(m=>{if(_f(e,m))return!1;e.dispatch("ADD_ITEMS",{items:m,index:oI(e.ref.list,f,l),interactionMethod:Nn.DROP})}),e.dispatch("DID_DROP",{position:l}),e.dispatch("DID_END_DRAG",{position:l})},i.ondragstart=s=>{e.dispatch("DID_START_DRAG",{position:s})},i.ondrag=pv(s=>{e.dispatch("DID_DRAG",{position:s})}),i.ondragend=s=>{e.dispatch("DID_END_DRAG",{position:s})},e.ref.hopper=i,e.ref.drip=e.appendChildView(e.createChildView(vS))}else!r&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},gv=(e,t)=>{const n=e.query("GET_ALLOW_BROWSE"),r=e.query("GET_DISABLED"),i=n&&!r;i&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(aS,{...t,onload:s=>{ir("ADD_ITEMS",s,{dispatch:e.dispatch}).then(l=>{if(_f(e,l))return!1;e.dispatch("ADD_ITEMS",{items:l,index:-1,interactionMethod:Nn.BROWSE})})}}),0):!i&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},mv=e=>{const t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),r=t&&!n;r&&!e.ref.paster?(e.ref.paster=WS(),e.ref.paster.onload=i=>{ir("ADD_ITEMS",i,{dispatch:e.dispatch}).then(s=>{if(_f(e,s))return!1;e.dispatch("ADD_ITEMS",{items:s,index:-1,interactionMethod:Nn.PASTE})})}):!r&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},sI=Yt({DID_SET_ALLOW_BROWSE:({root:e,props:t})=>{gv(e,t)},DID_SET_ALLOW_DROP:({root:e})=>{hv(e)},DID_SET_ALLOW_PASTE:({root:e})=>{mv(e)},DID_SET_DISABLED:({root:e,props:t})=>{hv(e),mv(e),gv(e,t),e.query("GET_DISABLED")?e.element.dataset.disabled="disabled":e.element.removeAttribute("data-disabled")}}),aI=wt({name:"root",read:({root:e})=>{e.ref.measure&&(e.ref.measureHeight=e.ref.measure.offsetHeight)},create:eI,write:tI,destroy:({root:e})=>{e.ref.paster&&e.ref.paster.destroy(),e.ref.hopper&&e.ref.hopper.destroy(),e.element.removeEventListener("touchmove",$l),e.element.removeEventListener("gesturestart",$l)},mixins:{styles:["height"]}}),lI=(e={})=>{let t=null;const n=_l(),r=W8(OC(n),[YC,MC(n)],[_T,DC(n)]);r.dispatch("SET_OPTIONS",{options:e});const i=()=>{document.hidden||r.dispatch("KICK")};document.addEventListener("visibilitychange",i);let s=null,l=!1,c=!1,d=null,f=null;const m=()=>{l||(l=!0),clearTimeout(s),s=setTimeout(()=>{l=!1,d=null,f=null,c&&(c=!1,r.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",m);const g=aI(r,{id:Yu()});let v=!1,b=!1;const E={_read:()=>{l&&(f=window.innerWidth,d||(d=f),!c&&f!==d&&(r.dispatch("DID_START_RESIZE"),c=!0)),b&&v&&(v=g.element.offsetParent===null),!v&&(g._read(),b=g.rect.element.hidden)},_write:B=>{const W=r.processActionQueue().filter(J=>!/^SET_/.test(J.type));v&&!W.length||(T(W),v=g._write(B,W,c),RC(r.query("GET_ITEMS")),v&&r.processDispatchQueue())}},_=B=>W=>{const J={type:B};if(!W)return J;if(W.hasOwnProperty("error")&&(J.error=W.error?{...W.error}:null),W.status&&(J.status={...W.status}),W.file&&(J.output=W.file),W.source)J.file=W.source;else if(W.item||W.id){const q=W.item?W.item:r.query("GET_ITEM",W.id);J.file=q?cn(q):null}return W.items&&(J.items=W.items.map(cn)),/progress/.test(B)&&(J.progress=W.progress),W.hasOwnProperty("origin")&&W.hasOwnProperty("target")&&(J.origin=W.origin,J.target=W.target),J},w={DID_DESTROY:_("destroy"),DID_INIT:_("init"),DID_THROW_MAX_FILES:_("warning"),DID_INIT_ITEM:_("initfile"),DID_START_ITEM_LOAD:_("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:_("addfileprogress"),DID_LOAD_ITEM:_("addfile"),DID_THROW_ITEM_INVALID:[_("error"),_("addfile")],DID_THROW_ITEM_LOAD_ERROR:[_("error"),_("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[_("error"),_("removefile")],DID_PREPARE_OUTPUT:_("preparefile"),DID_START_ITEM_PROCESSING:_("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:_("processfileprogress"),DID_ABORT_ITEM_PROCESSING:_("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:_("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:_("processfiles"),DID_REVERT_ITEM_PROCESSING:_("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[_("error"),_("processfile")],DID_REMOVE_ITEM:_("removefile"),DID_UPDATE_ITEMS:_("updatefiles"),DID_ACTIVATE_ITEM:_("activatefile"),DID_REORDER_ITEMS:_("reorderfiles")},y=B=>{const W={pond:K,...B};delete W.type,g.element.dispatchEvent(new CustomEvent(`FilePond:${B.type}`,{detail:W,bubbles:!0,cancelable:!0,composed:!0}));const J=[];B.hasOwnProperty("error")&&J.push(B.error),B.hasOwnProperty("file")&&J.push(B.file);const q=["type","error","file"];Object.keys(B).filter(V=>!q.includes(V)).forEach(V=>J.push(B[V])),K.fire(B.type,...J);const U=r.query(`GET_ON${B.type.toUpperCase()}`);U&&U(...J)},T=B=>{B.length&&B.filter(W=>w[W.type]).forEach(W=>{const J=w[W.type];(Array.isArray(J)?J:[J]).forEach(q=>{W.type==="DID_INIT_ITEM"?y(q(W.data)):setTimeout(()=>{y(q(W.data))},0)})})},S=B=>r.dispatch("SET_OPTIONS",{options:B}),O=B=>r.query("GET_ACTIVE_ITEM",B),I=B=>new Promise((W,J)=>{r.dispatch("REQUEST_ITEM_PREPARE",{query:B,success:q=>{W(q)},failure:q=>{J(q)}})}),M=(B,W={})=>new Promise((J,q)=>{k([{source:B,options:W}],{index:W.index}).then(U=>J(U&&U[0])).catch(q)}),N=B=>B.file&&B.id,D=(B,W)=>(typeof B=="object"&&!N(B)&&!W&&(W=B,B=void 0),r.dispatch("REMOVE_ITEM",{...W,query:B}),r.query("GET_ACTIVE_ITEM",B)===null),k=(...B)=>new Promise((W,J)=>{const q=[],U={};if(hl(B[0]))q.push.apply(q,B[0]),Object.assign(U,B[1]||{});else{const V=B[B.length-1];typeof V=="object"&&!(V instanceof Blob)&&Object.assign(U,B.pop()),q.push(...B)}r.dispatch("ADD_ITEMS",{items:q,index:U.index,interactionMethod:Nn.API,success:W,failure:J})}),Y=()=>r.query("GET_ACTIVE_ITEMS"),L=B=>new Promise((W,J)=>{r.dispatch("REQUEST_ITEM_PROCESSING",{query:B,success:q=>{W(q)},failure:q=>{J(q)}})}),G=(...B)=>{const W=Array.isArray(B[0])?B[0]:B,J=W.length?W:Y();return Promise.all(J.map(I))},X=(...B)=>{const W=Array.isArray(B[0])?B[0]:B;if(!W.length){const J=Y().filter(q=>!(q.status===Oe.IDLE&&q.origin===Dt.LOCAL)&&q.status!==Oe.PROCESSING&&q.status!==Oe.PROCESSING_COMPLETE&&q.status!==Oe.PROCESSING_REVERT_ERROR);return Promise.all(J.map(L))}return Promise.all(W.map(L))},R=(...B)=>{const W=Array.isArray(B[0])?B[0]:B;let J;typeof W[W.length-1]=="object"?J=W.pop():Array.isArray(B[0])&&(J=B[1]);const q=Y();return W.length?W.map(V=>Gi(V)?q[V]?q[V].id:null:V).filter(V=>V).map(V=>D(V,J)):Promise.all(q.map(V=>D(V,J)))},K={...bl(),...E,...$C(r,n),setOptions:S,addFile:M,addFiles:k,getFile:O,processFile:L,prepareFile:I,removeFile:D,moveFile:(B,W)=>r.dispatch("MOVE_ITEM",{query:B,index:W}),getFiles:Y,processFiles:X,removeFiles:R,prepareFiles:G,sort:B=>r.dispatch("SORT",{compare:B}),browse:()=>{var B=g.element.querySelector("input[type=file]");B&&B.click()},destroy:()=>{K.fire("destroy",g.element),r.dispatch("ABORT_ALL"),g._destroy(),window.removeEventListener("resize",m),document.removeEventListener("visibilitychange",i),r.dispatch("DID_DESTROY")},insertBefore:B=>im(g.element,B),insertAfter:B=>om(g.element,B),appendTo:B=>B.appendChild(g.element),replaceElement:B=>{im(g.element,B),B.parentNode.removeChild(B),t=B},restoreElement:()=>{t&&(om(t,g.element),g.element.parentNode.removeChild(g.element),t=null)},isAttachedTo:B=>g.element===B||t===B,element:{get:()=>g.element},status:{get:()=>r.query("GET_STATUS")}};return r.dispatch("DID_INIT"),di(K)},vv=(e={})=>{const t={};return ut(_l(),(r,i)=>{t[r]=i[0]}),lI({...t,...e})},cI=e=>e.charAt(0).toLowerCase()+e.slice(1),dI=e=>fv(e.replace(/^data-/,"")),bv=(e,t)=>{ut(t,(n,r)=>{ut(e,(i,s)=>{const l=new RegExp(n);if(!l.test(i)||(delete e[i],r===!1))return;if(Zt(r)){e[r]=s;return}const d=r.group;$t(r)&&!e[d]&&(e[d]={}),e[d][cI(i.replace(l,""))]=s}),r.mapping&&bv(e[r.group],r.mapping)})},uI=(e,t={})=>{const n=[];ut(e.attributes,i=>{n.push(e.attributes[i])});const r=n.filter(i=>i.name).reduce((i,s)=>{const l=Tt(e,s.name);return i[dI(s.name)]=l===s.name?!0:l,i},{});return bv(r,t),r},fI=(e,t={})=>{const n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};Ui("SET_ATTRIBUTE_TO_OPTION_MAP",n);const r={...t},i=uI(e.nodeName==="FIELDSET"?e.querySelector("input[type=file]"):e,n);Object.keys(i).forEach(l=>{$t(i[l])?($t(r[l])||(r[l]={}),Object.assign(r[l],i[l])):r[l]=i[l]}),r.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map(l=>({source:l.value,options:{type:l.dataset.type}})));const s=vv(r);return e.files&&Array.from(e.files).forEach(l=>{s.addFile(l)}),s.replaceElement(e),s},pI=(...e)=>V8(e[0])?fI(...e):vv(...e),hI=["fire","_read","_write"],_v=e=>{const t={};return pm(e,t,hI),t},gI=(e,t)=>e.replace(/(?:{([a-zA-Z]+)})/g,(n,r)=>t[r]),mI=e=>{const t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n);return{transfer:(i,s)=>{},post:(i,s,l)=>{const c=Yu();r.onmessage=d=>{d.data.id===c&&s(d.data.message)},r.postMessage({id:c,message:i},l)},terminate:()=>{r.terminate(),URL.revokeObjectURL(n)}}},vI=e=>new Promise((t,n)=>{const r=new Image;r.onload=()=>{t(r)},r.onerror=i=>{n(i)},r.src=e}),xv=(e,t)=>{const n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},bI=e=>xv(e,e.name),Ev=[],_I=e=>{if(Ev.includes(e))return;Ev.push(e);const t=e({addFilter:jC,utils:{Type:re,forin:ut,isString:Zt,isFile:Yi,toNaturalFileSize:Nm,replaceInString:gI,getExtensionFromFilename:El,getFilenameWithoutExtension:Tm,guesstimateMimeType:rv,getFileFromBlob:ko,getFilenameFromURL:Ls,createRoute:Yt,createWorker:mI,createView:wt,createItemAPI:cn,loadImage:vI,copyFile:bI,renameFile:xv,createBlob:xm,applyFilterChain:ir,text:vt,getNumericAspectRatioFromString:mm},views:{fileActionButton:Pm}});kC(t.options)},xI=()=>Object.prototype.toString.call(window.operamini)==="[object OperaMini]",EI=()=>"Promise"in window,wI=()=>"slice"in Blob.prototype,yI=()=>"URL"in window&&"createObjectURL"in window.URL,CI=()=>"visibilityState"in document,TI=()=>"performance"in window,SI=()=>"supports"in(window.CSS||{}),II=()=>/MSIE|Trident/.test(window.navigator.userAgent),xf=(()=>{const e=Qg()&&!xI()&&CI()&&EI()&&wI()&&yI()&&TI()&&(SI()||II());return()=>e})(),ui={apps:[]},AI="filepond",Xi=()=>{};let wv={},Dl=Xi,Ef=Xi,yv=Xi,Cv=Xi,wf=Xi,Tv=Xi,Sv=Xi;if(xf()){gC(()=>{ui.apps.forEach(n=>n._read())},n=>{ui.apps.forEach(r=>r._write(n))});const e=()=>{document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:xf,create:Dl,destroy:Ef,parse:yv,find:Cv,registerPlugin:wf,setOptions:Sv}})),document.removeEventListener("DOMContentLoaded",e)};document.readyState!=="loading"?setTimeout(()=>e(),0):document.addEventListener("DOMContentLoaded",e);const t=()=>ut(_l(),(n,r)=>{wv[n]=r[1]});wv={},t(),Dl=(...n)=>{const r=pI(...n);return r.on("destroy",Ef),ui.apps.push(r),_v(r)},Ef=n=>{const r=ui.apps.findIndex(i=>i.isAttachedTo(n));return r>=0?(ui.apps.splice(r,1)[0].restoreElement(),!0):!1},yv=n=>Array.from(n.querySelectorAll(`.${AI}`)).filter(s=>!ui.apps.find(l=>l.isAttachedTo(s))).map(s=>Dl(s)),Cv=n=>{const r=ui.apps.find(i=>i.isAttachedTo(n));return r?_v(r):null},wf=(...n)=>{n.forEach(_I),t()},Tv=()=>{const n={};return ut(_l(),(r,i)=>{n[r]=i[0]}),n},Sv=n=>($t(n)&&(ui.apps.forEach(r=>{r.setOptions(n)}),FC(n)),Tv())}/*!
|
|
105
|
+
*/const V8=e=>e instanceof HTMLElement,W8=(e,t=[],n=[])=>{const r={...e},i=[],s=[],l=()=>({...r}),c=()=>{const w=[...i];return i.length=0,w},d=()=>{const w=[...s];s.length=0,w.forEach(({type:_,data:E})=>{f(_,E)})},f=(w,_,E)=>{if(E&&!document.hidden){s.push({type:w,data:_});return}b[w]&&b[w](_),i.push({type:w,data:_})},m=(w,..._)=>v[w]?v[w](..._):null,g={getState:l,processActionQueue:c,processDispatchQueue:d,dispatch:f,query:m};let v={};t.forEach(w=>{v={...w(r),...v}});let b={};return n.forEach(w=>{b={...w(f,m,r),...b}}),g},q8=(e,t,n)=>{if(typeof n=="function"){e[t]=n;return}Object.defineProperty(e,t,{...n})},ft=(e,t)=>{for(const n in e)e.hasOwnProperty(n)&&t(n,e[n])},di=e=>{const t={};return ft(e,n=>{q8(t,n,e[n])}),t},Tt=(e,t,n=null)=>{if(n===null)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},Y8="http://www.w3.org/2000/svg",Z8=["svg","path"],Xg=e=>Z8.includes(e),fl=(e,t,n={})=>{typeof t=="object"&&(n=t,t=null);const r=Xg(e)?document.createElementNS(Y8,e):document.createElement(e);return t&&(Xg(e)?Tt(r,"class",t):r.className=t),ft(n,(i,s)=>{Tt(r,i,s)}),r},X8=e=>(t,n)=>{typeof n<"u"&&e.children[n]?e.insertBefore(t,e.children[n]):e.appendChild(t)},K8=(e,t)=>(n,r)=>(typeof r<"u"?t.splice(r,0,n):t.push(n),n),Q8=(e,t)=>n=>(t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n),J8=typeof window<"u"&&typeof window.document<"u",Kg=()=>J8,eC="children"in(Kg()?fl("svg"):{})?e=>e.children.length:e=>e.childNodes.length,Qg=(e,t,n,r)=>{const i=n[0]||e.left,s=n[1]||e.top,l=i+e.width,c=s+e.height*(r[1]||1),d={element:{...e},inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:i,top:s,right:l,bottom:c}};return t.filter(f=>!f.isRectIgnored()).map(f=>f.rect).forEach(f=>{Jg(d.inner,{...f.inner}),Jg(d.outer,{...f.outer})}),em(d.inner),d.outer.bottom+=d.element.marginBottom,d.outer.right+=d.element.marginRight,em(d.outer),d},Jg=(e,t)=>{t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},em=e=>{e.width=e.right-e.left,e.height=e.bottom-e.top},Gi=e=>typeof e=="number",tC=(e,t,n,r=.001)=>Math.abs(e-t)<r&&Math.abs(n)<r,nC=({stiffness:e=.5,damping:t=.75,mass:n=10}={})=>{let r=null,i=null,s=0,l=!1;const f=di({interpolate:(m,g)=>{if(l)return;if(!(Gi(r)&&Gi(i))){l=!0,s=0;return}const v=-(i-r)*e;s+=v/n,i+=s,s*=t,tC(i,r,s)||g?(i=r,s=0,l=!0,f.onupdate(i),f.oncomplete(i)):f.onupdate(i)},target:{set:m=>{if(Gi(m)&&!Gi(i)&&(i=m),r===null&&(r=m,i=m),r=m,i===r||typeof r>"u"){l=!0,s=0,f.onupdate(i),f.oncomplete(i);return}l=!1},get:()=>r},resting:{get:()=>l},onupdate:m=>{},oncomplete:m=>{}});return f},rC=e=>e<.5?2*e*e:-1+(4-2*e)*e,tm={spring:nC,tween:({duration:e=500,easing:t=rC,delay:n=0}={})=>{let r=null,i,s,l=!0,c=!1,d=null;const m=di({interpolate:(g,v)=>{l||d===null||(r===null&&(r=g),!(g-r<n)&&(i=g-r-n,i>=e||v?(i=1,s=c?0:1,m.onupdate(s*d),m.oncomplete(s*d),l=!0):(s=i/e,m.onupdate((i>=0?t(c?1-s:s):0)*d))))},target:{get:()=>c?0:d,set:g=>{if(d===null){d=g,m.onupdate(g),m.oncomplete(g);return}g<d?(d=1,c=!0):(c=!1,d=g),l=!1,r=null}},resting:{get:()=>l},onupdate:g=>{},oncomplete:g=>{}});return m}},iC=(e,t,n)=>{const r=e[t]&&typeof e[t][n]=="object"?e[t][n]:e[t]||e,i=typeof r=="string"?r:r.type,s=typeof r=="object"?{...r}:{};return tm[i]?tm[i](s):null},Vu=(e,t,n,r=!1)=>{t=Array.isArray(t)?t:[t],t.forEach(i=>{e.forEach(s=>{let l=s,c=()=>n[s],d=f=>n[s]=f;typeof s=="object"&&(l=s.key,c=s.getter||c,d=s.setter||d),!(i[l]&&!r)&&(i[l]={get:c,set:d})})})},oC=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r})=>{const i={...t},s=[];return ft(e,(l,c)=>{const d=iC(c);if(!d)return;d.onupdate=m=>{t[l]=m},d.target=i[l],Vu([{key:l,setter:m=>{d.target!==m&&(d.target=m)},getter:()=>t[l]}],[n,r],t,!0),s.push(d)}),{write:l=>{let c=document.hidden,d=!0;return s.forEach(f=>{f.resting||(d=!1),f.interpolate(l,c)}),d},destroy:()=>{}}},sC=e=>(t,n)=>{e.addEventListener(t,n)},aC=e=>(t,n)=>{e.removeEventListener(t,n)},lC=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r,viewState:i,view:s})=>{const l=[],c=sC(s.element),d=aC(s.element);return r.on=(f,m)=>{l.push({type:f,fn:m}),c(f,m)},r.off=(f,m)=>{l.splice(l.findIndex(g=>g.type===f&&g.fn===m),1),d(f,m)},{write:()=>!0,destroy:()=>{l.forEach(f=>{d(f.type,f.fn)})}}},cC=({mixinConfig:e,viewProps:t,viewExternalAPI:n})=>{Vu(e,n,t)},qt=e=>e!=null,dC={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},uC=({mixinConfig:e,viewProps:t,viewInternalAPI:n,viewExternalAPI:r,view:i})=>{const s={...t},l={};Vu(e,[n,r],t);const c=()=>[t.translateX||0,t.translateY||0],d=()=>[t.scaleX||0,t.scaleY||0],f=()=>i.rect?Qg(i.rect,i.childViews,c(),d()):null;return n.rect={get:f},r.rect={get:f},e.forEach(m=>{t[m]=typeof s[m]>"u"?dC[m]:s[m]}),{write:()=>{if(fC(l,t))return pC(i.element,t),Object.assign(l,{...t}),!0},destroy:()=>{}}},fC=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const n in t)if(t[n]!==e[n])return!0;return!1},pC=(e,{opacity:t,perspective:n,translateX:r,translateY:i,scaleX:s,scaleY:l,rotateX:c,rotateY:d,rotateZ:f,originX:m,originY:g,width:v,height:b})=>{let w="",_="";(qt(m)||qt(g))&&(_+=`transform-origin: ${m||0}px ${g||0}px;`),qt(n)&&(w+=`perspective(${n}px) `),(qt(r)||qt(i))&&(w+=`translate3d(${r||0}px, ${i||0}px, 0) `),(qt(s)||qt(l))&&(w+=`scale3d(${qt(s)?s:1}, ${qt(l)?l:1}, 1) `),qt(f)&&(w+=`rotateZ(${f}rad) `),qt(c)&&(w+=`rotateX(${c}rad) `),qt(d)&&(w+=`rotateY(${d}rad) `),w.length&&(_+=`transform:${w};`),qt(t)&&(_+=`opacity:${t};`,t===0&&(_+="visibility:hidden;"),t<1&&(_+="pointer-events:none;")),qt(b)&&(_+=`height:${b}px;`),qt(v)&&(_+=`width:${v}px;`);const E=e.elementCurrentStyle||"";(_.length!==E.length||_!==E)&&(e.style.cssText=_,e.elementCurrentStyle=_)},hC={styles:uC,listeners:lC,animations:oC,apis:cC},nm=(e={},t={},n={})=>(t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=t.offsetParent===null,e),Et=({tag:e="div",name:t=null,attributes:n={},read:r=()=>{},write:i=()=>{},create:s=()=>{},destroy:l=()=>{},filterFrameActionsForChild:c=(b,w)=>w,didCreateView:d=()=>{},didWriteView:f=()=>{},ignoreRect:m=!1,ignoreRectUpdate:g=!1,mixins:v=[]}={})=>(b,w={})=>{const _=fl(e,`filepond--${t}`,n),E=window.getComputedStyle(_,null),y=nm();let T=null,S=!1;const O=[],I=[],M={},N={},D=[i],k=[r],Y=[l],L=()=>_,G=()=>O.concat(),Z=()=>M,R=ne=>(le,ge)=>le(ne,ge),K=()=>T||(T=Qg(y,O,[0,0],[1,1]),T),B=()=>E,W=()=>{T=null,O.forEach(ge=>ge._read()),!(g&&y.width&&y.height)&&nm(y,_,E);const le={root:pe,props:w,rect:y};k.forEach(ge=>ge(le))},J=(ne,le,ge)=>{let be=le.length===0;return D.forEach(he=>{he({props:w,root:pe,actions:le,timestamp:ne,shouldOptimize:ge})===!1&&(be=!1)}),I.forEach(he=>{he.write(ne)===!1&&(be=!1)}),O.filter(he=>!!he.element.parentNode).forEach(he=>{he._write(ne,c(he,le),ge)||(be=!1)}),O.forEach((he,We)=>{he.element.parentNode||(pe.appendChild(he.element,We),he._read(),he._write(ne,c(he,le),ge),be=!1)}),S=be,f({props:w,root:pe,actions:le,timestamp:ne}),be},q=()=>{I.forEach(ne=>ne.destroy()),Y.forEach(ne=>{ne({root:pe,props:w})}),O.forEach(ne=>ne._destroy())},U={element:{get:L},style:{get:B},childViews:{get:G}},V={...U,rect:{get:K},ref:{get:Z},is:ne=>t===ne,appendChild:X8(_),createChildView:R(b),linkView:ne=>(O.push(ne),ne),unlinkView:ne=>{O.splice(O.indexOf(ne),1)},appendChildView:K8(_,O),removeChildView:Q8(_,O),registerWriter:ne=>D.push(ne),registerReader:ne=>k.push(ne),registerDestroyer:ne=>Y.push(ne),invalidateLayout:()=>_.layoutCalculated=!1,dispatch:b.dispatch,query:b.query},ce={element:{get:L},childViews:{get:G},rect:{get:K},resting:{get:()=>S},isRectIgnored:()=>m,_read:W,_write:J,_destroy:q},ue={...U,rect:{get:()=>y}};Object.keys(v).sort((ne,le)=>ne==="styles"?1:le==="styles"?-1:0).forEach(ne=>{const le=hC[ne]({mixinConfig:v[ne],viewProps:w,viewState:N,viewInternalAPI:V,viewExternalAPI:ce,view:di(ue)});le&&I.push(le)});const pe=di(V);s({root:pe,props:w});const Ee=eC(_);return O.forEach((ne,le)=>{pe.appendChild(ne.element,Ee+le)}),d(pe),di(ce)},gC=(e,t,n=60)=>{const r="__framePainter";if(window[r]){window[r].readers.push(e),window[r].writers.push(t);return}window[r]={readers:[e],writers:[t]};const i=window[r],s=1e3/n;let l=null,c=null,d=null,f=null;const m=()=>{document.hidden?(d=()=>window.setTimeout(()=>g(performance.now()),s),f=()=>window.clearTimeout(c)):(d=()=>window.requestAnimationFrame(g),f=()=>window.cancelAnimationFrame(c))};document.addEventListener("visibilitychange",()=>{f&&f(),m(),g(performance.now())});const g=v=>{c=d(g),l||(l=v);const b=v-l;b<=s||(l=v-b%s,i.readers.forEach(w=>w()),i.writers.forEach(w=>w(v)))};return m(),g(performance.now()),{pause:()=>{f(c)}}},Yt=(e,t)=>({root:n,props:r,actions:i=[],timestamp:s,shouldOptimize:l})=>{i.filter(c=>e[c.type]).forEach(c=>e[c.type]({root:n,props:r,action:c.data,timestamp:s,shouldOptimize:l})),t&&t({root:n,props:r,actions:i,timestamp:s,shouldOptimize:l})},rm=(e,t)=>t.parentNode.insertBefore(e,t),im=(e,t)=>t.parentNode.insertBefore(e,t.nextSibling),pl=e=>Array.isArray(e),Pr=e=>e==null,mC=e=>e.trim(),hl=e=>""+e,vC=(e,t=",")=>Pr(e)?[]:pl(e)?e:hl(e).split(t).map(mC).filter(n=>n.length),om=e=>typeof e=="boolean",sm=e=>om(e)?e:e==="true",Zt=e=>typeof e=="string",am=e=>Gi(e)?e:Zt(e)?hl(e).replace(/[a-z]+/gi,""):0,gl=e=>parseInt(am(e),10),lm=e=>parseFloat(am(e)),Lo=e=>Gi(e)&&isFinite(e)&&Math.floor(e)===e,cm=(e,t=1e3)=>{if(Lo(e))return e;let n=hl(e).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),gl(n)*t*t):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),gl(n)*t):gl(n)},Hi=e=>typeof e=="function",bC=e=>{let t=self,n=e.split("."),r=null;for(;r=n.shift();)if(t=t[r],!t)return null;return t},dm={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},_C=e=>{const t={};return t.url=Zt(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},ft(dm,n=>{t[n]=xC(n,e[n],dm[n],t.timeout,t.headers)}),t.process=e.process||Zt(e)||e.url?t.process:null,t.remove=e.remove||null,delete t.headers,t},xC=(e,t,n,r,i)=>{if(t===null)return null;if(typeof t=="function")return t;const s={url:n==="GET"||n==="PATCH"?`?${e}=`:"",method:n,headers:i,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(Zt(t))return s.url=t,s;if(Object.assign(s,t),Zt(s.headers)){const l=s.headers.split(/:(.+)/);s.headers={header:l[0],value:l[1]}}return s.withCredentials=sm(s.withCredentials),s},wC=e=>_C(e),EC=e=>e===null,$t=e=>typeof e=="object"&&e!==null,yC=e=>$t(e)&&Zt(e.url)&&$t(e.process)&&$t(e.revert)&&$t(e.restore)&&$t(e.fetch),Wu=e=>pl(e)?"array":EC(e)?"null":Lo(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":yC(e)?"api":typeof e,CC=e=>e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",'),TC={array:vC,boolean:sm,int:e=>Wu(e)==="bytes"?cm(e):gl(e),number:lm,float:lm,bytes:cm,string:e=>Hi(e)?e:hl(e),function:e=>bC(e),serverapi:wC,object:e=>{try{return JSON.parse(CC(e))}catch{return null}}},SC=(e,t)=>TC[t](e),um=(e,t,n)=>{if(e===t)return e;let r=Wu(e);if(r!==n){const i=SC(e,n);if(r=Wu(i),i===null)throw`Trying to assign value with incorrect type to "${option}", allowed type: "${n}"`;e=i}return e},IC=(e,t)=>{let n=e;return{enumerable:!0,get:()=>n,set:r=>{n=um(r,e,t)}}},AC=e=>{const t={};return ft(e,n=>{const r=e[n];t[n]=IC(r[0],r[1])}),di(t)},OC=e=>({items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:AC(e)}),ml=(e,t="-")=>e.split(/(?=[A-Z])/).map(n=>n.toLowerCase()).join(t),$C=(e,t)=>{const n={};return ft(t,r=>{n[r]={get:()=>e.getState().options[r],set:i=>{e.dispatch(`SET_${ml(r,"_").toUpperCase()}`,{value:i})}}}),n},DC=e=>(t,n,r)=>{const i={};return ft(e,s=>{const l=ml(s,"_").toUpperCase();i[`SET_${l}`]=c=>{try{r.options[s]=c.value}catch{}t(`DID_SET_${l}`,{value:r.options[s]})}}),i},MC=e=>t=>{const n={};return ft(e,r=>{n[`GET_${ml(r,"_").toUpperCase()}`]=i=>t.options[r]}),n},Rn={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},qu=()=>Math.random().toString(36).substring(2,11),Yu=(e,t)=>e.splice(t,1),PC=(e,t)=>{t?e():document.hidden?Promise.resolve(1).then(e):setTimeout(e,0)},vl=()=>{const e=[],t=(r,i)=>{Yu(e,e.findIndex(s=>s.event===r&&(s.cb===i||!i)))},n=(r,i,s)=>{e.filter(l=>l.event===r).map(l=>l.cb).forEach(l=>PC(()=>l(...i),s))};return{fireSync:(r,...i)=>{n(r,i,!0)},fire:(r,...i)=>{n(r,i,!1)},on:(r,i)=>{e.push({event:r,cb:i})},onOnce:(r,i)=>{e.push({event:r,cb:(...s)=>{t(r,i),i(...s)}})},off:t}},fm=(e,t,n)=>{Object.getOwnPropertyNames(e).filter(r=>!n.includes(r)).forEach(r=>Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r)))},NC=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],cn=e=>{const t={};return fm(e,t,NC),t},RC=e=>{e.forEach((t,n)=>{t.released&&Yu(e,n)})},Oe={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},Dt={INPUT:1,LIMBO:2,LOCAL:3},pm=e=>/[^0-9]+/.exec(e),hm=()=>pm(1.1.toLocaleString())[0],LC=()=>{const e=hm(),t=1e3.toLocaleString();return t!=="1000"?pm(t)[0]:e==="."?",":"."},re={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},Zu=[],ir=(e,t,n)=>new Promise((r,i)=>{const s=Zu.filter(c=>c.key===e).map(c=>c.cb);if(s.length===0){r(t);return}const l=s.shift();s.reduce((c,d)=>c.then(f=>d(f,n)),l(t,n)).then(c=>r(c)).catch(c=>i(c))}),Ui=(e,t,n)=>Zu.filter(r=>r.key===e).map(r=>r.cb(t,n)),jC=(e,t)=>Zu.push({key:e,cb:t}),kC=e=>Object.assign(jo,e),bl=()=>({...jo}),FC=e=>{ft(e,(t,n)=>{jo[t]&&(jo[t][0]=um(n,jo[t][0],jo[t][1]))})},jo={id:[null,re.STRING],name:["filepond",re.STRING],disabled:[!1,re.BOOLEAN],className:[null,re.STRING],required:[!1,re.BOOLEAN],captureMethod:[null,re.STRING],allowSyncAcceptAttribute:[!0,re.BOOLEAN],allowDrop:[!0,re.BOOLEAN],allowBrowse:[!0,re.BOOLEAN],allowPaste:[!0,re.BOOLEAN],allowMultiple:[!1,re.BOOLEAN],allowReplace:[!0,re.BOOLEAN],allowRevert:[!0,re.BOOLEAN],allowRemove:[!0,re.BOOLEAN],allowProcess:[!0,re.BOOLEAN],allowReorder:[!1,re.BOOLEAN],allowDirectoriesOnly:[!1,re.BOOLEAN],storeAsFile:[!1,re.BOOLEAN],forceRevert:[!1,re.BOOLEAN],maxFiles:[null,re.INT],checkValidity:[!1,re.BOOLEAN],itemInsertLocationFreedom:[!0,re.BOOLEAN],itemInsertLocation:["before",re.STRING],itemInsertInterval:[75,re.INT],dropOnPage:[!1,re.BOOLEAN],dropOnElement:[!0,re.BOOLEAN],dropValidation:[!1,re.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],re.ARRAY],instantUpload:[!0,re.BOOLEAN],maxParallelUploads:[2,re.INT],allowMinimumUploadDuration:[!0,re.BOOLEAN],chunkUploads:[!1,re.BOOLEAN],chunkForce:[!1,re.BOOLEAN],chunkSize:[5e6,re.INT],chunkRetryDelays:[[500,1e3,3e3],re.ARRAY],server:[null,re.SERVER_API],fileSizeBase:[1e3,re.INT],labelFileSizeBytes:["bytes",re.STRING],labelFileSizeKilobytes:["KB",re.STRING],labelFileSizeMegabytes:["MB",re.STRING],labelFileSizeGigabytes:["GB",re.STRING],labelDecimalSeparator:[hm(),re.STRING],labelThousandsSeparator:[LC(),re.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',re.STRING],labelInvalidField:["Field contains invalid files",re.STRING],labelFileWaitingForSize:["Waiting for size",re.STRING],labelFileSizeNotAvailable:["Size not available",re.STRING],labelFileCountSingular:["file in list",re.STRING],labelFileCountPlural:["files in list",re.STRING],labelFileLoading:["Loading",re.STRING],labelFileAdded:["Added",re.STRING],labelFileLoadError:["Error during load",re.STRING],labelFileRemoved:["Removed",re.STRING],labelFileRemoveError:["Error during remove",re.STRING],labelFileProcessing:["Uploading",re.STRING],labelFileProcessingComplete:["Upload complete",re.STRING],labelFileProcessingAborted:["Upload cancelled",re.STRING],labelFileProcessingError:["Error during upload",re.STRING],labelFileProcessingRevertError:["Error during revert",re.STRING],labelTapToCancel:["tap to cancel",re.STRING],labelTapToRetry:["tap to retry",re.STRING],labelTapToUndo:["tap to undo",re.STRING],labelButtonRemoveItem:["Remove",re.STRING],labelButtonAbortItemLoad:["Abort",re.STRING],labelButtonRetryItemLoad:["Retry",re.STRING],labelButtonAbortItemProcessing:["Cancel",re.STRING],labelButtonUndoItemProcessing:["Undo",re.STRING],labelButtonRetryItemProcessing:["Retry",re.STRING],labelButtonProcessItem:["Upload",re.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',re.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',re.STRING],oninit:[null,re.FUNCTION],onwarning:[null,re.FUNCTION],onerror:[null,re.FUNCTION],onactivatefile:[null,re.FUNCTION],oninitfile:[null,re.FUNCTION],onaddfilestart:[null,re.FUNCTION],onaddfileprogress:[null,re.FUNCTION],onaddfile:[null,re.FUNCTION],onprocessfilestart:[null,re.FUNCTION],onprocessfileprogress:[null,re.FUNCTION],onprocessfileabort:[null,re.FUNCTION],onprocessfilerevert:[null,re.FUNCTION],onprocessfile:[null,re.FUNCTION],onprocessfiles:[null,re.FUNCTION],onremovefile:[null,re.FUNCTION],onpreparefile:[null,re.FUNCTION],onupdatefiles:[null,re.FUNCTION],onreorderfiles:[null,re.FUNCTION],beforeDropFile:[null,re.FUNCTION],beforeAddFile:[null,re.FUNCTION],beforeRemoveFile:[null,re.FUNCTION],beforePrepareFile:[null,re.FUNCTION],stylePanelLayout:[null,re.STRING],stylePanelAspectRatio:[null,re.STRING],styleItemPanelAspectRatio:[null,re.STRING],styleButtonRemoveItemPosition:["left",re.STRING],styleButtonProcessItemPosition:["right",re.STRING],styleLoadIndicatorPosition:["right",re.STRING],styleProgressIndicatorPosition:["right",re.STRING],styleButtonRemoveItemAlign:[!1,re.BOOLEAN],files:[[],re.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],re.ARRAY]},Vi=(e,t)=>Pr(t)?e[0]||null:Lo(t)?e[t]||null:(typeof t=="object"&&(t=t.id),e.find(n=>n.id===t)||null),gm=e=>{if(Pr(e))return e;if(/:/.test(e)){const t=e.split(":");return t[1]/t[0]}return parseFloat(e)},or=e=>e.filter(t=>!t.archived),BC={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4};let _l=null;const zC=()=>{if(_l===null)try{const e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));const t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,_l=t.files.length===1}catch{_l=!1}return _l},GC=[Oe.LOAD_ERROR,Oe.PROCESSING_ERROR,Oe.PROCESSING_REVERT_ERROR],HC=[Oe.LOADING,Oe.PROCESSING,Oe.PROCESSING_QUEUED,Oe.INIT],UC=[Oe.PROCESSING_COMPLETE],VC=e=>GC.includes(e.status),WC=e=>HC.includes(e.status),qC=e=>UC.includes(e.status),mm=e=>$t(e.options.server)&&($t(e.options.server.process)||Hi(e.options.server.process)),YC=e=>({GET_STATUS:()=>{const t=or(e.items),{EMPTY:n,ERROR:r,BUSY:i,IDLE:s,READY:l}=BC;return t.length===0?n:t.some(VC)?r:t.some(WC)?i:t.some(qC)?l:s},GET_ITEM:t=>Vi(e.items,t),GET_ACTIVE_ITEM:t=>Vi(or(e.items),t),GET_ACTIVE_ITEMS:()=>or(e.items),GET_ITEMS:()=>e.items,GET_ITEM_NAME:t=>{const n=Vi(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:t=>{const n=Vi(e.items,t);return n?n.fileSize:null},GET_STYLES:()=>Object.keys(e.options).filter(t=>/^style/.test(t)).map(t=>({name:t,value:e.options[t]})),GET_PANEL_ASPECT_RATIO:()=>/circle/.test(e.options.stylePanelLayout)?1:gm(e.options.stylePanelAspectRatio),GET_ITEM_PANEL_ASPECT_RATIO:()=>e.options.styleItemPanelAspectRatio,GET_ITEMS_BY_STATUS:t=>or(e.items).filter(n=>n.status===t),GET_TOTAL_ITEMS:()=>or(e.items).length,SHOULD_UPDATE_FILE_INPUT:()=>e.options.storeAsFile&&zC()&&!mm(e),IS_ASYNC:()=>mm(e),GET_FILE_SIZE_LABELS:t=>({labelBytes:t("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:t("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:t("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:t("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0})}),ZC=e=>{const t=or(e.items).length;if(!e.options.allowMultiple)return t===0;const n=e.options.maxFiles;return n===null||t<n},vm=(e,t,n)=>Math.max(Math.min(n,e),t),XC=(e,t,n)=>e.splice(t,0,n),KC=(e,t,n)=>Pr(t)?null:typeof n>"u"?(e.push(t),t):(n=vm(n,0,e.length),XC(e,n,t),t),Xu=e=>/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e),Ls=e=>`${e}`.split("/").pop().split("?").shift(),xl=e=>e.split(".").pop(),QC=e=>{if(typeof e!="string")return"";const t=e.split("/").pop();return/svg/.test(t)?"svg":/zip|compressed/.test(t)?"zip":/plain/.test(t)?"txt":/msword/.test(t)?"doc":/[a-z]+/.test(t)?t==="jpeg"?"jpg":t:""},js=(e,t="")=>(t+e).slice(-t.length),bm=(e=new Date)=>`${e.getFullYear()}-${js(e.getMonth()+1,"00")}-${js(e.getDate(),"00")}_${js(e.getHours(),"00")}-${js(e.getMinutes(),"00")}-${js(e.getSeconds(),"00")}`,ko=(e,t,n=null,r=null)=>{const i=typeof n=="string"?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return i.lastModifiedDate=new Date,e._relativePath&&(i._relativePath=e._relativePath),Zt(t)||(t=bm()),t&&r===null&&xl(t)?i.name=t:(r=r||QC(i.type),i.name=t+(r?"."+r:"")),i},JC=()=>window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,_m=(e,t)=>{const n=JC();if(n){const r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},eT=(e,t)=>{const n=new ArrayBuffer(e.length),r=new Uint8Array(n);for(let i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return _m(n,t)},xm=e=>(/^data:(.+);/.exec(e)||[])[1]||null,tT=e=>e.split(",")[1].replace(/\s/g,""),nT=e=>atob(tT(e)),rT=e=>{const t=xm(e),n=nT(e);return eT(n,t)},iT=(e,t,n)=>ko(rT(e),t,null,n),oT=e=>{if(!/^content-disposition:/i.test(e))return null;const t=e.split(/filename=|filename\*=.+''/).splice(1).map(n=>n.trim().replace(/^["']|[;"']{0,2}$/g,"")).filter(n=>n.length);return t.length?decodeURI(t[t.length-1]):null},sT=e=>{if(/content-length:/i.test(e)){const t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},aT=e=>/x-content-transfer-id:/i.test(e)&&(e.split(":")[1]||"").trim()||null,Ku=e=>{const t={source:null,name:null,size:null},n=e.split(`
|
|
106
|
+
`);for(let r of n){const i=oT(r);if(i){t.name=i;continue}const s=sT(r);if(s){t.size=s;continue}const l=aT(r);if(l){t.source=l;continue}}return t},lT=e=>{const t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},n=()=>t.progress,r=()=>{t.request&&t.request.abort&&t.request.abort()},i=()=>{const c=t.source;l.fire("init",c),c instanceof File?l.fire("load",c):c instanceof Blob?l.fire("load",ko(c,c.name)):Xu(c)?l.fire("load",iT(c)):s(c)},s=c=>{if(!e){l.fire("error",{type:"error",body:"Can't load URL",code:400});return}t.timestamp=Date.now(),t.request=e(c,d=>{t.duration=Date.now()-t.timestamp,t.complete=!0,d instanceof Blob&&(d=ko(d,d.name||Ls(c))),l.fire("load",d instanceof Blob?d:d?d.body:null)},d=>{l.fire("error",typeof d=="string"?{type:"error",code:0,body:d}:d)},(d,f,m)=>{if(m&&(t.size=m),t.duration=Date.now()-t.timestamp,!d){t.progress=null;return}t.progress=f/m,l.fire("progress",t.progress)},()=>{l.fire("abort")},d=>{const f=Ku(typeof d=="string"?d:d.headers);l.fire("meta",{size:t.size||f.size,filename:f.name,source:f.source})})},l={...vl(),setSource:c=>t.source=c,getProgress:n,abort:r,load:i};return l},wm=e=>/GET|HEAD/.test(e),Wi=(e,t,n)=>{const r={onheaders:()=>{},onprogress:()=>{},onload:()=>{},ontimeout:()=>{},onerror:()=>{},onabort:()=>{},abort:()=>{i=!0,l.abort()}};let i=!1,s=!1;n={method:"POST",headers:{},withCredentials:!1,...n},t=encodeURI(t),wm(n.method)&&e&&(t=`${t}${encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))}`);const l=new XMLHttpRequest,c=wm(n.method)?l:l.upload;return c.onprogress=d=>{i||r.onprogress(d.lengthComputable,d.loaded,d.total)},l.onreadystatechange=()=>{l.readyState<2||l.readyState===4&&l.status===0||s||(s=!0,r.onheaders(l))},l.onload=()=>{l.status>=200&&l.status<300?r.onload(l):r.onerror(l)},l.onerror=()=>r.onerror(l),l.onabort=()=>{i=!0,r.onabort()},l.ontimeout=()=>r.ontimeout(l),l.open(n.method,t,!0),Lo(n.timeout)&&(l.timeout=n.timeout),Object.keys(n.headers).forEach(d=>{const f=unescape(encodeURIComponent(n.headers[d]));l.setRequestHeader(d,f)}),n.responseType&&(l.responseType=n.responseType),n.withCredentials&&(l.withCredentials=!0),l.send(e),r},vt=(e,t,n,r)=>({type:e,code:t,body:n,headers:r}),qi=e=>t=>{e(vt("error",0,"Timeout",t.getAllResponseHeaders()))},Em=e=>/\?/.test(e),ks=(...e)=>{let t="";return e.forEach(n=>{t+=Em(t)&&Em(n)?n.replace(/\?/,"&"):n}),t},Qu=(e="",t)=>{if(typeof t=="function")return t;if(!t||!Zt(t.url))return null;const n=t.onload||(i=>i),r=t.onerror||(i=>null);return(i,s,l,c,d,f)=>{const m=Wi(i,ks(e,t.url),{...t,responseType:"blob"});return m.onload=g=>{const v=g.getAllResponseHeaders(),b=Ku(v).name||Ls(i);s(vt("load",g.status,t.method==="HEAD"?null:ko(n(g.response),b),v))},m.onerror=g=>{l(vt("error",g.status,r(g.response)||g.statusText,g.getAllResponseHeaders()))},m.onheaders=g=>{f(vt("headers",g.status,null,g.getAllResponseHeaders()))},m.ontimeout=qi(l),m.onprogress=c,m.onabort=d,m}},Ln={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},cT=(e,t,n,r,i,s,l,c,d,f,m)=>{const g=[],{chunkTransferId:v,chunkServer:b,chunkSize:w,chunkRetryDelays:_}=m,E={serverId:v,aborted:!1},y=t.ondata||(R=>R),T=t.onload||((R,K)=>K==="HEAD"?R.getResponseHeader("Upload-Offset"):R.response),S=t.onerror||(R=>null),O=R=>{const K=new FormData;$t(i)&&K.append(n,JSON.stringify(i));const B=typeof t.headers=="function"?t.headers(r,i):{...t.headers,"Upload-Length":r.size},W={...t,headers:B},J=Wi(y(K),ks(e,t.url),W);J.onload=q=>R(T(q,W.method)),J.onerror=q=>l(vt("error",q.status,S(q.response)||q.statusText,q.getAllResponseHeaders())),J.ontimeout=qi(l)},I=R=>{const K=ks(e,b.url,E.serverId),W={headers:typeof t.headers=="function"?t.headers(E.serverId):{...t.headers},method:"HEAD"},J=Wi(null,K,W);J.onload=q=>R(T(q,W.method)),J.onerror=q=>l(vt("error",q.status,S(q.response)||q.statusText,q.getAllResponseHeaders())),J.ontimeout=qi(l)},M=Math.floor(r.size/w);for(let R=0;R<=M;R++){const K=R*w,B=r.slice(K,K+w,"application/offset+octet-stream");g[R]={index:R,size:B.size,offset:K,data:B,file:r,progress:0,retries:[..._],status:Ln.QUEUED,error:null,request:null,timeout:null}}const N=()=>s(E.serverId),D=R=>R.status===Ln.QUEUED||R.status===Ln.ERROR,k=R=>{if(E.aborted)return;if(R=R||g.find(D),!R){g.every(V=>V.status===Ln.COMPLETE)&&N();return}R.status=Ln.PROCESSING,R.progress=null;const K=b.ondata||(V=>V),B=b.onerror||(V=>null),W=b.onload||(()=>{}),J=ks(e,b.url,E.serverId),q=typeof b.headers=="function"?b.headers(R):{...b.headers,"Content-Type":"application/offset+octet-stream","Upload-Offset":R.offset,"Upload-Length":r.size,"Upload-Name":r.name},U=R.request=Wi(K(R.data),J,{...b,headers:q});U.onload=V=>{W(V,R.index,g.length),R.status=Ln.COMPLETE,R.request=null,G()},U.onprogress=(V,ce,ue)=>{R.progress=V?ce:null,L()},U.onerror=V=>{R.status=Ln.ERROR,R.request=null,R.error=B(V.response)||V.statusText,Y(R)||l(vt("error",V.status,B(V.response)||V.statusText,V.getAllResponseHeaders()))},U.ontimeout=V=>{R.status=Ln.ERROR,R.request=null,Y(R)||qi(l)(V)},U.onabort=()=>{R.status=Ln.QUEUED,R.request=null,d()}},Y=R=>R.retries.length===0?!1:(R.status=Ln.WAITING,clearTimeout(R.timeout),R.timeout=setTimeout(()=>{k(R)},R.retries.shift()),!0),L=()=>{const R=g.reduce((B,W)=>B===null||W.progress===null?null:B+W.progress,0);if(R===null)return c(!1,0,0);const K=g.reduce((B,W)=>B+W.size,0);c(!0,R,K)},G=()=>{g.filter(K=>K.status===Ln.PROCESSING).length>=1||k()},Z=()=>{g.forEach(R=>{clearTimeout(R.timeout),R.request&&R.request.abort()})};return E.serverId?I(R=>{E.aborted||(g.filter(K=>K.offset<R).forEach(K=>{K.status=Ln.COMPLETE,K.progress=K.size}),G())}):O(R=>{E.aborted||(f(R),E.serverId=R,G())}),{abort:()=>{E.aborted=!0,Z()}}},dT=(e,t,n,r)=>(i,s,l,c,d,f,m)=>{if(!i)return;const g=r.chunkUploads,v=g&&i.size>r.chunkSize,b=g&&(v||r.chunkForce);if(i instanceof Blob&&b)return cT(e,t,n,i,s,l,c,d,f,m,r);const w=t.ondata||(I=>I),_=t.onload||(I=>I),E=t.onerror||(I=>null),y=typeof t.headers=="function"?t.headers(i,s)||{}:{...t.headers},T={...t,headers:y};var S=new FormData;$t(s)&&S.append(n,JSON.stringify(s)),(i instanceof Blob?[{name:null,file:i}]:i).forEach(I=>{S.append(n,I.file,I.name===null?I.file.name:`${I.name}${I.file.name}`)});const O=Wi(w(S),ks(e,t.url),T);return O.onload=I=>{l(vt("load",I.status,_(I.response),I.getAllResponseHeaders()))},O.onerror=I=>{c(vt("error",I.status,E(I.response)||I.statusText,I.getAllResponseHeaders()))},O.ontimeout=qi(c),O.onprogress=d,O.onabort=f,O},uT=(e="",t,n,r)=>typeof t=="function"?(...i)=>t(n,...i,r):!t||!Zt(t.url)?null:dT(e,t,n,r),Fs=(e="",t)=>{if(typeof t=="function")return t;if(!t||!Zt(t.url))return(i,s)=>s();const n=t.onload||(i=>i),r=t.onerror||(i=>null);return(i,s,l)=>{const c=Wi(i,e+t.url,t);return c.onload=d=>{s(vt("load",d.status,n(d.response),d.getAllResponseHeaders()))},c.onerror=d=>{l(vt("error",d.status,r(d.response)||d.statusText,d.getAllResponseHeaders()))},c.ontimeout=qi(l),c}},ym=(e=0,t=1)=>e+Math.random()*(t-e),fT=(e,t=1e3,n=0,r=25,i=250)=>{let s=null;const l=Date.now(),c=()=>{let d=Date.now()-l,f=ym(r,i);d+f>t&&(f=d+f-t);let m=d/t;if(m>=1||document.hidden){e(1);return}e(m),s=setTimeout(c,f)};return t>0&&c(),{clear:()=>{clearTimeout(s)}}},pT=(e,t)=>{const n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},{allowMinimumUploadDuration:r}=t,i=(m,g)=>{const v=()=>{n.duration===0||n.progress===null||f.fire("progress",f.getProgress())},b=()=>{n.complete=!0,f.fire("load-perceived",n.response.body)};f.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=fT(w=>{n.perceivedProgress=w,n.perceivedDuration=Date.now()-n.timestamp,v(),n.response&&n.perceivedProgress===1&&!n.complete&&b()},r?ym(750,1500):0),n.request=e(m,g,w=>{n.response=$t(w)?w:{type:"load",code:200,body:`${w}`,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,f.fire("load",n.response.body),(!r||r&&n.perceivedProgress===1)&&b()},w=>{n.perceivedPerformanceUpdater.clear(),f.fire("error",$t(w)?w:{type:"error",code:0,body:`${w}`})},(w,_,E)=>{n.duration=Date.now()-n.timestamp,n.progress=w?_/E:null,v()},()=>{n.perceivedPerformanceUpdater.clear(),f.fire("abort",n.response?n.response.body:null)},w=>{f.fire("transfer",w)})},s=()=>{n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},l=()=>{s(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null},c=r?()=>n.progress?Math.min(n.progress,n.perceivedProgress):null:()=>n.progress||null,d=r?()=>Math.min(n.duration,n.perceivedDuration):()=>n.duration,f={...vl(),process:i,abort:s,getProgress:c,getDuration:d,reset:l};return f},Cm=e=>e.substring(0,e.lastIndexOf("."))||e,hT=e=>{let t=[e.name,e.size,e.type];return e instanceof Blob||Xu(e)?t[0]=e.name||bm():Xu(e)?(t[1]=e.length,t[2]=xm(e)):Zt(e)&&(t[0]=Ls(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},Yi=e=>!!(e instanceof File||e instanceof Blob&&e.name),Tm=e=>{if(!$t(e))return e;const t=pl(e)?[]:{};for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];t[n]=r&&$t(r)?Tm(r):r}return t},gT=(e=null,t=null,n=null)=>{const r=qu(),i={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:t,transferId:null,processingAborted:!1,status:t?Oe.PROCESSING_COMPLETE:Oe.INIT,activeLoader:null,activeProcessor:null};let s=null;const l={},c=D=>i.status=D,d=(D,...k)=>{i.released||i.frozen||M.fire(D,...k)},f=()=>xl(i.file.name),m=()=>i.file.type,g=()=>i.file.size,v=()=>i.file,b=(D,k,Y)=>{if(i.source=D,M.fireSync("init"),i.file){M.fireSync("load-skip");return}i.file=hT(D),k.on("init",()=>{d("load-init")}),k.on("meta",L=>{i.file.size=L.size,i.file.filename=L.filename,L.source&&(e=Dt.LIMBO,i.serverFileReference=L.source,i.status=Oe.PROCESSING_COMPLETE),d("load-meta")}),k.on("progress",L=>{c(Oe.LOADING),d("load-progress",L)}),k.on("error",L=>{c(Oe.LOAD_ERROR),d("load-request-error",L)}),k.on("abort",()=>{c(Oe.INIT),d("load-abort")}),k.on("load",L=>{i.activeLoader=null;const G=R=>{i.file=Yi(R)?R:i.file,e===Dt.LIMBO&&i.serverFileReference?c(Oe.PROCESSING_COMPLETE):c(Oe.IDLE),d("load")},Z=R=>{i.file=L,d("load-meta"),c(Oe.LOAD_ERROR),d("load-file-error",R)};if(i.serverFileReference){G(L);return}Y(L,G,Z)}),k.setSource(D),i.activeLoader=k,k.load()},w=()=>{i.activeLoader&&i.activeLoader.load()},_=()=>{if(i.activeLoader){i.activeLoader.abort();return}c(Oe.INIT),d("load-abort")},E=(D,k)=>{if(i.processingAborted){i.processingAborted=!1;return}if(c(Oe.PROCESSING),s=null,!(i.file instanceof Blob)){M.on("load",()=>{E(D,k)});return}D.on("load",G=>{i.transferId=null,i.serverFileReference=G}),D.on("transfer",G=>{i.transferId=G}),D.on("load-perceived",G=>{i.activeProcessor=null,i.transferId=null,i.serverFileReference=G,c(Oe.PROCESSING_COMPLETE),d("process-complete",G)}),D.on("start",()=>{d("process-start")}),D.on("error",G=>{i.activeProcessor=null,c(Oe.PROCESSING_ERROR),d("process-error",G)}),D.on("abort",G=>{i.activeProcessor=null,i.serverFileReference=G,c(Oe.IDLE),d("process-abort"),s&&s()}),D.on("progress",G=>{d("process-progress",G)});const Y=G=>{i.archived||D.process(G,{...l})},L=console.error;k(i.file,Y,L),i.activeProcessor=D},y=()=>{i.processingAborted=!1,c(Oe.PROCESSING_QUEUED)},T=()=>new Promise(D=>{if(!i.activeProcessor){i.processingAborted=!0,c(Oe.IDLE),d("process-abort"),D();return}s=()=>{D()},i.activeProcessor.abort()}),S=(D,k)=>new Promise((Y,L)=>{const G=i.serverFileReference!==null?i.serverFileReference:i.transferId;if(G===null){Y();return}D(G,()=>{i.serverFileReference=null,i.transferId=null,Y()},Z=>{if(!k){Y();return}c(Oe.PROCESSING_REVERT_ERROR),d("process-revert-error"),L(Z)}),c(Oe.IDLE),d("process-revert")}),O=(D,k,Y)=>{const L=D.split("."),G=L[0],Z=L.pop();let R=l;L.forEach(K=>R=R[K]),JSON.stringify(R[Z])!==JSON.stringify(k)&&(R[Z]=k,d("metadata-update",{key:G,value:l[G],silent:Y}))},M={id:{get:()=>r},origin:{get:()=>e,set:D=>e=D},serverId:{get:()=>i.serverFileReference},transferId:{get:()=>i.transferId},status:{get:()=>i.status},filename:{get:()=>i.file.name},filenameWithoutExtension:{get:()=>Cm(i.file.name)},fileExtension:{get:f},fileType:{get:m},fileSize:{get:g},file:{get:v},relativePath:{get:()=>i.file._relativePath},source:{get:()=>i.source},getMetadata:D=>Tm(D?l[D]:l),setMetadata:(D,k,Y)=>{if($t(D)){const L=D;return Object.keys(L).forEach(G=>{O(G,L[G],k)}),D}return O(D,k,Y),k},extend:(D,k)=>N[D]=k,abortLoad:_,retryLoad:w,requestProcessing:y,abortProcessing:T,load:b,process:E,revert:S,...vl(),freeze:()=>i.frozen=!0,release:()=>i.released=!0,released:{get:()=>i.released},archive:()=>i.archived=!0,archived:{get:()=>i.archived},setFile:D=>i.file=D},N=di(M);return N},mT=(e,t)=>Pr(t)?0:Zt(t)?e.findIndex(n=>n.id===t):-1,Sm=(e,t)=>{const n=mT(e,t);if(!(n<0))return e[n]||null},Im=(e,t,n,r,i,s)=>{const l=Wi(null,e,{method:"GET",responseType:"blob"});return l.onload=c=>{const d=c.getAllResponseHeaders(),f=Ku(d).name||Ls(e);t(vt("load",c.status,ko(c.response,f),d))},l.onerror=c=>{n(vt("error",c.status,c.statusText,c.getAllResponseHeaders()))},l.onheaders=c=>{s(vt("headers",c.status,null,c.getAllResponseHeaders()))},l.ontimeout=qi(n),l.onprogress=r,l.onabort=i,l},Am=e=>(e.indexOf("//")===0&&(e=location.protocol+e),e.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]),vT=e=>(e.indexOf(":")>-1||e.indexOf("//")>-1)&&Am(location.href)!==Am(e),wl=e=>(...t)=>Hi(e)?e(...t):e,bT=e=>!Yi(e.file),Ju=(e,t)=>{clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout(()=>{e("DID_UPDATE_ITEMS",{items:or(t.items)})},0)},Om=(e,...t)=>new Promise(n=>{if(!e)return n(!0);const r=e(...t);if(r==null)return n(!0);if(typeof r=="boolean")return n(r);typeof r.then=="function"&&r.then(n)}),ef=(e,t)=>{e.items.sort((n,r)=>t(cn(n),cn(r)))},jn=(e,t)=>({query:n,success:r=()=>{},failure:i=()=>{},...s}={})=>{const l=Vi(e.items,n);if(!l){i({error:vt("error",0,"Item not found"),file:null});return}t(l,r,i,s||{})},_T=(e,t,n)=>({ABORT_ALL:()=>{or(n.items).forEach(r=>{r.freeze(),r.abortLoad(),r.abortProcessing()})},DID_SET_FILES:({value:r=[]})=>{const i=r.map(l=>({source:l.source?l.source:l,options:l.options}));let s=or(n.items);s.forEach(l=>{i.find(c=>c.source===l.source||c.source===l.file)||e("REMOVE_ITEM",{query:l,remove:!1})}),s=or(n.items),i.forEach((l,c)=>{s.find(d=>d.source===l.source||d.file===l.source)||e("ADD_ITEM",{...l,interactionMethod:Rn.NONE,index:c})})},DID_UPDATE_ITEM_METADATA:({id:r,action:i,change:s})=>{s.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout(()=>{const l=Sm(n.items,r);if(!t("IS_ASYNC")){ir("SHOULD_PREPARE_OUTPUT",!1,{item:l,query:t,action:i,change:s}).then(m=>{const g=t("GET_BEFORE_PREPARE_FILE");g&&(m=g(l,m)),m&&e("REQUEST_PREPARE_OUTPUT",{query:r,item:l,success:v=>{e("DID_PREPARE_OUTPUT",{id:r,file:v})}},!0)});return}l.origin===Dt.LOCAL&&e("DID_LOAD_ITEM",{id:l.id,error:null,serverFileReference:l.source});const c=()=>{setTimeout(()=>{e("REQUEST_ITEM_PROCESSING",{query:r})},32)},d=m=>{l.revert(Fs(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(m?c:()=>{}).catch(()=>{})},f=m=>{l.abortProcessing().then(m?c:()=>{})};if(l.status===Oe.PROCESSING_COMPLETE)return d(n.options.instantUpload);if(l.status===Oe.PROCESSING)return f(n.options.instantUpload);n.options.instantUpload&&c()},0))},MOVE_ITEM:({query:r,index:i})=>{const s=Vi(n.items,r);if(!s)return;const l=n.items.indexOf(s);i=vm(i,0,n.items.length-1),l!==i&&n.items.splice(i,0,n.items.splice(l,1)[0])},SORT:({compare:r})=>{ef(n,r),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:({items:r,index:i,interactionMethod:s,success:l=()=>{},failure:c=()=>{}})=>{let d=i;if(i===-1||typeof i>"u"){const b=t("GET_ITEM_INSERT_LOCATION"),w=t("GET_TOTAL_ITEMS");d=b==="before"?0:w}const f=t("GET_IGNORED_FILES"),m=b=>Yi(b)?!f.includes(b.name.toLowerCase()):!Pr(b),v=r.filter(m).map(b=>new Promise((w,_)=>{e("ADD_ITEM",{interactionMethod:s,source:b.source||b,success:w,failure:_,index:d++,options:b.options||{}})}));Promise.all(v).then(l).catch(c)},ADD_ITEM:({source:r,index:i=-1,interactionMethod:s,success:l=()=>{},failure:c=()=>{},options:d={}})=>{if(Pr(r)){c({error:vt("error",0,"No source"),file:null});return}if(Yi(r)&&n.options.ignoredFiles.includes(r.name.toLowerCase()))return;if(!ZC(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){const T=vt("warning",0,"Max files");e("DID_THROW_MAX_FILES",{source:r,error:T}),c({error:T,file:null});return}const y=or(n.items)[0];if(y.status===Oe.PROCESSING_COMPLETE||y.status===Oe.PROCESSING_REVERT_ERROR){const T=t("GET_FORCE_REVERT");if(y.revert(Fs(n.options.server.url,n.options.server.revert),T).then(()=>{T&&e("ADD_ITEM",{source:r,index:i,interactionMethod:s,success:l,failure:c,options:d})}).catch(()=>{}),T)return}e("REMOVE_ITEM",{query:y.id})}const f=d.type==="local"?Dt.LOCAL:d.type==="limbo"?Dt.LIMBO:Dt.INPUT,m=gT(f,f===Dt.INPUT?null:r,d.file);Object.keys(d.metadata||{}).forEach(y=>{m.setMetadata(y,d.metadata[y])}),Ui("DID_CREATE_ITEM",m,{query:t,dispatch:e});const g=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(i=g==="before"?-1:n.items.length),KC(n.items,m,i),Hi(g)&&r&&ef(n,g);const v=m.id;m.on("init",()=>{e("DID_INIT_ITEM",{id:v})}),m.on("load-init",()=>{e("DID_START_ITEM_LOAD",{id:v})}),m.on("load-meta",()=>{e("DID_UPDATE_ITEM_META",{id:v})}),m.on("load-progress",y=>{e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:v,progress:y})}),m.on("load-request-error",y=>{const T=wl(n.options.labelFileLoadError)(y);if(y.code>=400&&y.code<500){e("DID_THROW_ITEM_INVALID",{id:v,error:y,status:{main:T,sub:`${y.code} (${y.body})`}}),c({error:y,file:cn(m)});return}e("DID_THROW_ITEM_LOAD_ERROR",{id:v,error:y,status:{main:T,sub:n.options.labelTapToRetry}})}),m.on("load-file-error",y=>{e("DID_THROW_ITEM_INVALID",{id:v,error:y.status,status:y.status}),c({error:y.status,file:cn(m)})}),m.on("load-abort",()=>{e("REMOVE_ITEM",{query:v})}),m.on("load-skip",()=>{m.on("metadata-update",y=>{Yi(m.file)&&e("DID_UPDATE_ITEM_METADATA",{id:v,change:y})}),e("COMPLETE_LOAD_ITEM",{query:v,item:m,data:{source:r,success:l}})}),m.on("load",()=>{const y=T=>{if(!T){e("REMOVE_ITEM",{query:v});return}m.on("metadata-update",S=>{e("DID_UPDATE_ITEM_METADATA",{id:v,change:S})}),ir("SHOULD_PREPARE_OUTPUT",!1,{item:m,query:t}).then(S=>{const O=t("GET_BEFORE_PREPARE_FILE");O&&(S=O(m,S));const I=()=>{e("COMPLETE_LOAD_ITEM",{query:v,item:m,data:{source:r,success:l}}),Ju(e,n)};if(S){e("REQUEST_PREPARE_OUTPUT",{query:v,item:m,success:M=>{e("DID_PREPARE_OUTPUT",{id:v,file:M}),I()}},!0);return}I()})};ir("DID_LOAD_ITEM",m,{query:t,dispatch:e}).then(()=>{Om(t("GET_BEFORE_ADD_FILE"),cn(m)).then(y)}).catch(T=>{if(!T||!T.error||!T.status)return y(!1);e("DID_THROW_ITEM_INVALID",{id:v,error:T.error,status:T.status})})}),m.on("process-start",()=>{e("DID_START_ITEM_PROCESSING",{id:v})}),m.on("process-progress",y=>{e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:v,progress:y})}),m.on("process-error",y=>{e("DID_THROW_ITEM_PROCESSING_ERROR",{id:v,error:y,status:{main:wl(n.options.labelFileProcessingError)(y),sub:n.options.labelTapToRetry}})}),m.on("process-revert-error",y=>{e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:v,error:y,status:{main:wl(n.options.labelFileProcessingRevertError)(y),sub:n.options.labelTapToRetry}})}),m.on("process-complete",y=>{e("DID_COMPLETE_ITEM_PROCESSING",{id:v,error:null,serverFileReference:y}),e("DID_DEFINE_VALUE",{id:v,value:y})}),m.on("process-abort",()=>{e("DID_ABORT_ITEM_PROCESSING",{id:v})}),m.on("process-revert",()=>{e("DID_REVERT_ITEM_PROCESSING",{id:v}),e("DID_DEFINE_VALUE",{id:v,value:null})}),e("DID_ADD_ITEM",{id:v,index:i,interactionMethod:s}),Ju(e,n);const{url:b,load:w,restore:_,fetch:E}=n.options.server||{};m.load(r,lT(f===Dt.INPUT?Zt(r)&&vT(r)&&E?Qu(b,E):Im:f===Dt.LIMBO?Qu(b,_):Qu(b,w)),(y,T,S)=>{ir("LOAD_FILE",y,{query:t}).then(T).catch(S)})},REQUEST_PREPARE_OUTPUT:({item:r,success:i,failure:s=()=>{}})=>{const l={error:vt("error",0,"Item not found"),file:null};if(r.archived)return s(l);ir("PREPARE_OUTPUT",r.file,{query:t,item:r}).then(c=>{ir("COMPLETE_PREPARE_OUTPUT",c,{query:t,item:r}).then(d=>{if(r.archived)return s(l);i(d)})})},COMPLETE_LOAD_ITEM:({item:r,data:i})=>{const{success:s,source:l}=i,c=t("GET_ITEM_INSERT_LOCATION");if(Hi(c)&&l&&ef(n,c),e("DID_LOAD_ITEM",{id:r.id,error:null,serverFileReference:r.origin===Dt.INPUT?null:l}),s(cn(r)),r.origin===Dt.LOCAL){e("DID_LOAD_LOCAL_ITEM",{id:r.id});return}if(r.origin===Dt.LIMBO){e("DID_COMPLETE_ITEM_PROCESSING",{id:r.id,error:null,serverFileReference:l}),e("DID_DEFINE_VALUE",{id:r.id,value:r.serverId||l});return}t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:r.id})},RETRY_ITEM_LOAD:jn(n,r=>{r.retryLoad()}),REQUEST_ITEM_PREPARE:jn(n,(r,i,s)=>{e("REQUEST_PREPARE_OUTPUT",{query:r.id,item:r,success:l=>{e("DID_PREPARE_OUTPUT",{id:r.id,file:l}),i({file:r,output:l})},failure:s},!0)}),REQUEST_ITEM_PROCESSING:jn(n,(r,i,s)=>{if(!(r.status===Oe.IDLE||r.status===Oe.PROCESSING_ERROR)){const c=()=>e("REQUEST_ITEM_PROCESSING",{query:r,success:i,failure:s}),d=()=>document.hidden?c():setTimeout(c,32);r.status===Oe.PROCESSING_COMPLETE||r.status===Oe.PROCESSING_REVERT_ERROR?r.revert(Fs(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(d).catch(()=>{}):r.status===Oe.PROCESSING&&r.abortProcessing().then(d);return}r.status!==Oe.PROCESSING_QUEUED&&(r.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:r.id}),e("PROCESS_ITEM",{query:r,success:i,failure:s},!0))}),PROCESS_ITEM:jn(n,(r,i,s)=>{const l=t("GET_MAX_PARALLEL_UPLOADS");if(t("GET_ITEMS_BY_STATUS",Oe.PROCESSING).length===l){n.processingQueue.push({id:r.id,success:i,failure:s});return}if(r.status===Oe.PROCESSING)return;const d=()=>{const m=n.processingQueue.shift();if(!m)return;const{id:g,success:v,failure:b}=m,w=Vi(n.items,g);if(!w||w.archived){d();return}e("PROCESS_ITEM",{query:g,success:v,failure:b},!0)};r.onOnce("process-complete",()=>{i(cn(r)),d();const m=n.options.server;if(n.options.instantUpload&&r.origin===Dt.LOCAL&&Hi(m.remove)){const b=()=>{};r.origin=Dt.LIMBO,n.options.server.remove(r.source,b,b)}t("GET_ITEMS_BY_STATUS",Oe.PROCESSING_COMPLETE).length===n.items.length&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")}),r.onOnce("process-error",m=>{s({error:m,file:cn(r)}),d()});const f=n.options;r.process(pT(uT(f.server.url,f.server.process,f.name,{chunkTransferId:r.transferId,chunkServer:f.server.patch,chunkUploads:f.chunkUploads,chunkForce:f.chunkForce,chunkSize:f.chunkSize,chunkRetryDelays:f.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(m,g,v)=>{ir("PREPARE_OUTPUT",m,{query:t,item:r}).then(b=>{e("DID_PREPARE_OUTPUT",{id:r.id,file:b}),g(b)}).catch(v)})}),RETRY_ITEM_PROCESSING:jn(n,r=>{e("REQUEST_ITEM_PROCESSING",{query:r})}),REQUEST_REMOVE_ITEM:jn(n,r=>{Om(t("GET_BEFORE_REMOVE_FILE"),cn(r)).then(i=>{i&&e("REMOVE_ITEM",{query:r})})}),RELEASE_ITEM:jn(n,r=>{r.release()}),REMOVE_ITEM:jn(n,(r,i,s,l)=>{const c=()=>{const f=r.id;Sm(n.items,f).archive(),e("DID_REMOVE_ITEM",{error:null,id:f,item:r}),Ju(e,n),i(cn(r))},d=n.options.server;r.origin===Dt.LOCAL&&d&&Hi(d.remove)&&l.remove!==!1?(e("DID_START_ITEM_REMOVE",{id:r.id}),d.remove(r.source,()=>c(),f=>{e("DID_THROW_ITEM_REMOVE_ERROR",{id:r.id,error:vt("error",0,f,null),status:{main:wl(n.options.labelFileRemoveError)(f),sub:n.options.labelTapToRetry}})})):((l.revert&&r.origin!==Dt.LOCAL&&r.serverId!==null||n.options.chunkUploads&&r.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&r.revert(Fs(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),c())}),ABORT_ITEM_LOAD:jn(n,r=>{r.abortLoad()}),ABORT_ITEM_PROCESSING:jn(n,r=>{if(r.serverId){e("REVERT_ITEM_PROCESSING",{id:r.id});return}r.abortProcessing().then(()=>{n.options.instantUpload&&e("REMOVE_ITEM",{query:r.id})})}),REQUEST_REVERT_ITEM_PROCESSING:jn(n,r=>{if(!n.options.instantUpload){e("REVERT_ITEM_PROCESSING",{query:r});return}const i=c=>{c&&e("REVERT_ITEM_PROCESSING",{query:r})},s=t("GET_BEFORE_REMOVE_FILE");if(!s)return i(!0);const l=s(cn(r));if(l==null)return i(!0);if(typeof l=="boolean")return i(l);typeof l.then=="function"&&l.then(i)}),REVERT_ITEM_PROCESSING:jn(n,r=>{r.revert(Fs(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(()=>{(n.options.instantUpload||bT(r))&&e("REMOVE_ITEM",{query:r.id})}).catch(()=>{})}),SET_OPTIONS:({options:r})=>{const i=Object.keys(r),s=xT.filter(c=>i.includes(c));[...s,...Object.keys(r).filter(c=>!s.includes(c))].forEach(c=>{e(`SET_${ml(c,"_").toUpperCase()}`,{value:r[c]})})}}),xT=["server"],tf=e=>e,Nr=e=>document.createElement(e),bt=(e,t)=>{let n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},$m=(e,t,n,r)=>{const i=(r%360-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},wT=(e,t,n,r,i,s)=>{const l=$m(e,t,n,i),c=$m(e,t,n,r);return["M",l.x,l.y,"A",n,n,0,s,0,c.x,c.y].join(" ")},ET=(e,t,n,r,i)=>{let s=1;return i>r&&i-r<=.5&&(s=0),r>i&&r-i>=.5&&(s=0),wT(e,t,n,Math.min(.9999,r)*360,Math.min(.9999,i)*360,s)},Dm=Et({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:({root:e,props:t})=>{t.spin=!1,t.progress=0,t.opacity=0;const n=fl("svg");e.ref.path=fl("path",{"stroke-width":2,"stroke-linecap":"round"}),n.appendChild(e.ref.path),e.ref.svg=n,e.appendChild(n)},write:({root:e,props:t})=>{if(t.opacity===0)return;t.align&&(e.element.dataset.align=t.align);const n=parseInt(Tt(e.ref.path,"stroke-width"),10),r=e.rect.element.width*.5;let i=0,s=0;t.spin?(i=0,s=.5):(i=0,s=t.progress);const l=ET(r,r,r-n,i,s);Tt(e.ref.path,"d",l),Tt(e.ref.path,"stroke-opacity",t.spin||t.progress>0?1:0)},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),Mm=Et({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:({root:e,props:t})=>{e.element.innerHTML=(t.icon||"")+`<span>${t.label}</span>`,t.isDisabled=!1},write:({root:e,props:t})=>{const{isDisabled:n}=t,r=e.query("GET_DISABLED")||t.opacity===0;r&&!n?(t.isDisabled=!0,Tt(e.element,"disabled","disabled")):!r&&n&&(t.isDisabled=!1,e.element.removeAttribute("disabled"))}}),Pm=(e,t=".",n=1e3,r={})=>{const{labelBytes:i="bytes",labelKilobytes:s="KB",labelMegabytes:l="MB",labelGigabytes:c="GB"}=r;e=Math.round(Math.abs(e));const d=n,f=n*n,m=n*n*n;return e<d?`${e} ${i}`:e<f?`${Math.floor(e/d)} ${s}`:e<m?`${Nm(e/f,1,t)} ${l}`:`${Nm(e/m,2,t)} ${c}`},Nm=(e,t,n)=>e.toFixed(t).split(".").filter(r=>r!=="0").join(n),yT=({root:e,props:t})=>{const n=Nr("span");n.className="filepond--file-info-main",Tt(n,"aria-hidden","true"),e.appendChild(n),e.ref.fileName=n;const r=Nr("span");r.className="filepond--file-info-sub",e.appendChild(r),e.ref.fileSize=r,bt(r,e.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),bt(n,tf(e.query("GET_ITEM_NAME",t.id)))},nf=({root:e,props:t})=>{bt(e.ref.fileSize,Pm(e.query("GET_ITEM_SIZE",t.id),".",e.query("GET_FILE_SIZE_BASE"),e.query("GET_FILE_SIZE_LABELS",e.query))),bt(e.ref.fileName,tf(e.query("GET_ITEM_NAME",t.id)))},Rm=({root:e,props:t})=>{if(Lo(e.query("GET_ITEM_SIZE",t.id))){nf({root:e,props:t});return}bt(e.ref.fileSize,e.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},CT=Et({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:Yt({DID_LOAD_ITEM:nf,DID_UPDATE_ITEM_META:nf,DID_THROW_ITEM_LOAD_ERROR:Rm,DID_THROW_ITEM_INVALID:Rm}),didCreateView:e=>{Ui("CREATE_VIEW",{...e,view:e})},create:yT,mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),Lm=e=>Math.round(e*100),TT=({root:e})=>{const t=Nr("span");t.className="filepond--file-status-main",e.appendChild(t),e.ref.main=t;const n=Nr("span");n.className="filepond--file-status-sub",e.appendChild(n),e.ref.sub=n,jm({root:e,action:{progress:null}})},jm=({root:e,action:t})=>{const n=t.progress===null?e.query("GET_LABEL_FILE_LOADING"):`${e.query("GET_LABEL_FILE_LOADING")} ${Lm(t.progress)}%`;bt(e.ref.main,n),bt(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},ST=({root:e,action:t})=>{const n=t.progress===null?e.query("GET_LABEL_FILE_PROCESSING"):`${e.query("GET_LABEL_FILE_PROCESSING")} ${Lm(t.progress)}%`;bt(e.ref.main,n),bt(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},IT=({root:e})=>{bt(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING")),bt(e.ref.sub,e.query("GET_LABEL_TAP_TO_CANCEL"))},AT=({root:e})=>{bt(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING_ABORTED")),bt(e.ref.sub,e.query("GET_LABEL_TAP_TO_RETRY"))},OT=({root:e})=>{bt(e.ref.main,e.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),bt(e.ref.sub,e.query("GET_LABEL_TAP_TO_UNDO"))},km=({root:e})=>{bt(e.ref.main,""),bt(e.ref.sub,"")},Bs=({root:e,action:t})=>{bt(e.ref.main,t.status.main),bt(e.ref.sub,t.status.sub)},$T=Et({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:Yt({DID_LOAD_ITEM:km,DID_REVERT_ITEM_PROCESSING:km,DID_REQUEST_ITEM_PROCESSING:IT,DID_ABORT_ITEM_PROCESSING:AT,DID_COMPLETE_ITEM_PROCESSING:OT,DID_UPDATE_ITEM_PROCESS_PROGRESS:ST,DID_UPDATE_ITEM_LOAD_PROGRESS:jm,DID_THROW_ITEM_LOAD_ERROR:Bs,DID_THROW_ITEM_INVALID:Bs,DID_THROW_ITEM_PROCESSING_ERROR:Bs,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:Bs,DID_THROW_ITEM_REMOVE_ERROR:Bs}),didCreateView:e=>{Ui("CREATE_VIEW",{...e,view:e})},create:TT,mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),rf={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},of=[];ft(rf,e=>{of.push(e)});const En=e=>{if(sf(e)==="right")return 0;const t=e.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},DT=e=>e.ref.buttonAbortItemLoad.rect.element.width,El=e=>Math.floor(e.ref.buttonRemoveItem.rect.element.height/4),MT=e=>Math.floor(e.ref.buttonRemoveItem.rect.element.left/2),PT=e=>e.query("GET_STYLE_LOAD_INDICATOR_POSITION"),NT=e=>e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION"),sf=e=>e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION"),RT={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:PT},processProgressIndicator:{opacity:0,align:NT},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},Fm={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:En},status:{translateX:En}},af={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},Fo={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:En},status:{translateX:En,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:En},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:sf},info:{translateX:En},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:sf},buttonRemoveItem:{opacity:1},info:{translateX:En},status:{opacity:1,translateX:En}},DID_LOAD_ITEM:Fm,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:En},status:{translateX:En}},DID_START_ITEM_PROCESSING:af,DID_REQUEST_ITEM_PROCESSING:af,DID_UPDATE_ITEM_PROCESS_PROGRESS:af,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:En}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:En},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:Fm},LT=Et({create:({root:e})=>{e.element.innerHTML=e.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),jT=({root:e,props:t})=>{const n=Object.keys(rf).reduce((w,_)=>(w[_]={...rf[_]},w),{}),{id:r}=t,i=e.query("GET_ALLOW_REVERT"),s=e.query("GET_ALLOW_REMOVE"),l=e.query("GET_ALLOW_PROCESS"),c=e.query("GET_INSTANT_UPLOAD"),d=e.query("IS_ASYNC"),f=e.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");let m;d?l&&!i?m=w=>!/RevertItemProcessing/.test(w):!l&&i?m=w=>!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(w):!l&&!i&&(m=w=>!/Process/.test(w)):m=w=>!/Process/.test(w);const g=m?of.filter(m):of.concat();if(c&&i&&(n.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",n.RevertItemProcessing.icon="GET_ICON_REMOVE"),d&&!i){const w=Fo.DID_COMPLETE_ITEM_PROCESSING;w.info.translateX=MT,w.info.translateY=El,w.status.translateY=El,w.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(d&&!l&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach(w=>{Fo[w].status.translateY=El}),Fo.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=DT),f&&i){n.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";const w=Fo.DID_COMPLETE_ITEM_PROCESSING;w.info.translateX=En,w.status.translateY=El,w.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}s||(n.RemoveItem.disabled=!0),ft(n,(w,_)=>{const E=e.createChildView(Mm,{label:e.query(_.label),icon:e.query(_.icon),opacity:0});g.includes(w)&&e.appendChildView(E),_.disabled&&(E.element.setAttribute("disabled","disabled"),E.element.setAttribute("hidden","hidden")),E.element.dataset.align=e.query(`GET_STYLE_${_.align}`),E.element.classList.add(_.className),E.on("click",y=>{y.stopPropagation(),!_.disabled&&e.dispatch(_.action,{query:r})}),e.ref[`button${w}`]=E}),e.ref.processingCompleteIndicator=e.appendChildView(e.createChildView(LT)),e.ref.processingCompleteIndicator.element.dataset.align=e.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),e.ref.info=e.appendChildView(e.createChildView(CT,{id:r})),e.ref.status=e.appendChildView(e.createChildView($T,{id:r}));const v=e.appendChildView(e.createChildView(Dm,{opacity:0,align:e.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));v.element.classList.add("filepond--load-indicator"),e.ref.loadProgressIndicator=v;const b=e.appendChildView(e.createChildView(Dm,{opacity:0,align:e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));b.element.classList.add("filepond--process-indicator"),e.ref.processProgressIndicator=b,e.ref.activeStyles=[]},kT=({root:e,actions:t,props:n})=>{FT({root:e,actions:t,props:n});let r=t.concat().filter(i=>/^DID_/.test(i.type)).reverse().find(i=>Fo[i.type]);if(r){e.ref.activeStyles=[];const i=Fo[r.type];ft(RT,(s,l)=>{const c=e.ref[s];ft(l,(d,f)=>{const m=i[s]&&typeof i[s][d]<"u"?i[s][d]:f;e.ref.activeStyles.push({control:c,key:d,value:m})})})}e.ref.activeStyles.forEach(({control:i,key:s,value:l})=>{i[s]=typeof l=="function"?l(e):l})},FT=Yt({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:({root:e,action:t})=>{e.ref.buttonAbortItemProcessing.label=t.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:({root:e,action:t})=>{e.ref.buttonAbortItemLoad.label=t.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:({root:e,action:t})=>{e.ref.buttonAbortItemRemoval.label=t.value},DID_REQUEST_ITEM_PROCESSING:({root:e})=>{e.ref.processProgressIndicator.spin=!0,e.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:({root:e})=>{e.ref.loadProgressIndicator.spin=!0,e.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:({root:e})=>{e.ref.processProgressIndicator.spin=!0,e.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:({root:e,action:t})=>{e.ref.loadProgressIndicator.spin=!1,e.ref.loadProgressIndicator.progress=t.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:({root:e,action:t})=>{e.ref.processProgressIndicator.spin=!1,e.ref.processProgressIndicator.progress=t.progress}}),BT=Et({create:jT,write:kT,didCreateView:e=>{Ui("CREATE_VIEW",{...e,view:e})},name:"file"}),zT=Et({create:({root:e,props:t})=>{e.ref.fileName=Nr("legend"),e.appendChild(e.ref.fileName),e.ref.file=e.appendChildView(e.createChildView(BT,{id:t.id})),e.ref.data=!1},ignoreRect:!0,write:Yt({DID_LOAD_ITEM:({root:e,props:t})=>{bt(e.ref.fileName,tf(e.query("GET_ITEM_NAME",t.id)))}}),didCreateView:e=>{Ui("CREATE_VIEW",{...e,view:e})},tag:"fieldset",name:"file-wrapper"}),Bm={type:"spring",damping:.6,mass:7},GT=({root:e,props:t})=>{[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:Bm},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:Bm},styles:["translateY"]}}].forEach(n=>{HT(e,n,t.name)}),e.element.classList.add(`filepond--${t.name}`),e.ref.scalable=null},HT=(e,t,n)=>{const r=Et({name:`panel-${t.name} filepond--${n}`,mixins:t.mixins,ignoreRectUpdate:!0}),i=e.createChildView(r,t.props);e.ref[t.name]=e.appendChildView(i)},zm=Et({name:"panel",read:({root:e,props:t})=>t.heightCurrent=e.ref.bottom.translateY,write:({root:e,props:t})=>{if((e.ref.scalable===null||t.scalable!==e.ref.scalable)&&(e.ref.scalable=om(t.scalable)?t.scalable:!0,e.element.dataset.scalable=e.ref.scalable),!t.height)return;const n=e.ref.top.rect.element,r=e.ref.bottom.rect.element,i=Math.max(n.height+r.height,t.height);e.ref.center.translateY=n.height,e.ref.center.scaleY=(i-n.height-r.height)/100,e.ref.bottom.translateY=i-r.height},create:GT,ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}),UT=e=>{const t=e.map(r=>r.id);let n;return{setIndex:r=>{n=r},getIndex:()=>n,getItemIndex:r=>t.indexOf(r.id)}},Gm={type:"spring",stiffness:.75,damping:.45,mass:10},Hm="spring",Um={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},VT=({root:e,props:t})=>{if(e.ref.handleClick=r=>e.dispatch("DID_ACTIVATE_ITEM",{id:t.id}),e.element.id=`filepond--item-${t.id}`,e.element.addEventListener("click",e.ref.handleClick),e.ref.container=e.appendChildView(e.createChildView(zT,{id:t.id})),e.ref.panel=e.appendChildView(e.createChildView(zm,{name:"item-panel"})),e.ref.panel.height=null,t.markedForRemoval=!1,!e.query("GET_ALLOW_REORDER"))return;e.element.dataset.dragState="idle";const n=r=>{if(!r.isPrimary)return;let i=!1;const s={x:r.pageX,y:r.pageY};t.dragOrigin={x:e.translateX,y:e.translateY},t.dragCenter={x:r.offsetX,y:r.offsetY};const l=UT(e.query("GET_ACTIVE_ITEMS"));e.dispatch("DID_GRAB_ITEM",{id:t.id,dragState:l});const c=g=>{if(!g.isPrimary)return;g.stopPropagation(),g.preventDefault(),t.dragOffset={x:g.pageX-s.x,y:g.pageY-s.y},t.dragOffset.x*t.dragOffset.x+t.dragOffset.y*t.dragOffset.y>16&&!i&&(i=!0,e.element.removeEventListener("click",e.ref.handleClick)),e.dispatch("DID_DRAG_ITEM",{id:t.id,dragState:l})},d=g=>{g.isPrimary&&(t.dragOffset={x:g.pageX-s.x,y:g.pageY-s.y},m())},f=()=>{m()},m=()=>{document.removeEventListener("pointercancel",f),document.removeEventListener("pointermove",c),document.removeEventListener("pointerup",d),e.dispatch("DID_DROP_ITEM",{id:t.id,dragState:l}),i&&setTimeout(()=>e.element.addEventListener("click",e.ref.handleClick),0)};document.addEventListener("pointercancel",f),document.addEventListener("pointermove",c),document.addEventListener("pointerup",d)};e.element.addEventListener("pointerdown",n)},WT=Yt({DID_UPDATE_PANEL_HEIGHT:({root:e,action:t})=>{e.height=t.height}}),qT=Yt({DID_GRAB_ITEM:({root:e,props:t})=>{t.dragOrigin={x:e.translateX,y:e.translateY}},DID_DRAG_ITEM:({root:e})=>{e.element.dataset.dragState="drag"},DID_DROP_ITEM:({root:e,props:t})=>{t.dragOffset=null,t.dragOrigin=null,e.element.dataset.dragState="drop"}},({root:e,actions:t,props:n,shouldOptimize:r})=>{e.element.dataset.dragState==="drop"&&e.scaleX<=1&&(e.element.dataset.dragState="idle");let i=t.concat().filter(l=>/^DID_/.test(l.type)).reverse().find(l=>Um[l.type]);i&&i.type!==n.currentState&&(n.currentState=i.type,e.element.dataset.filepondItemState=Um[n.currentState]||"");const s=e.query("GET_ITEM_PANEL_ASPECT_RATIO")||e.query("GET_PANEL_ASPECT_RATIO");s?r||(e.height=e.rect.element.width*s):(WT({root:e,actions:t,props:n}),!e.height&&e.ref.container.rect.element.height>0&&(e.height=e.ref.container.rect.element.height)),r&&(e.ref.panel.height=null),e.ref.panel.height=e.height}),YT=Et({create:VT,write:qT,destroy:({root:e,props:t})=>{e.element.removeEventListener("click",e.ref.handleClick),e.dispatch("RELEASE_ITEM",{query:t.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:Hm,scaleY:Hm,translateX:Gm,translateY:Gm,opacity:{type:"tween",duration:150}}}});var lf=(e,t)=>Math.max(1,Math.floor((e+1)/t));const cf=(e,t,n)=>{if(!n)return;const r=e.rect.element.width,i=t.length;let s=null;if(i===0||n.top<t[0].rect.element.top)return-1;const c=t[0].rect.element,d=c.marginLeft+c.marginRight,f=c.width+d,m=lf(r,f);if(m===1){for(let b=0;b<i;b++){const w=t[b],_=w.rect.outer.top+w.rect.element.height*.5;if(n.top<_)return b}return i}const g=c.marginTop+c.marginBottom,v=c.height+g;for(let b=0;b<i;b++){const w=b%m,_=Math.floor(b/m),E=w*f,y=_*v,T=y-c.marginTop,S=E+f,O=y+v+c.marginBottom;if(n.top<O&&n.top>T){if(n.left<S)return b;b!==i-1?s=b:s=null}}return s!==null?s:i},yl={height:0,width:0,get getHeight(){return this.height},set setHeight(e){(this.height===0||e===0)&&(this.height=e)},get getWidth(){return this.width},set setWidth(e){(this.width===0||e===0)&&(this.width=e)}},ZT=({root:e})=>{Tt(e.element,"role","list"),e.ref.lastItemSpanwDate=Date.now()},XT=({root:e,action:t})=>{const{id:n,index:r,interactionMethod:i}=t;e.ref.addIndex=r;const s=Date.now();let l=s,c=1;if(i!==Rn.NONE){c=0;const d=e.query("GET_ITEM_INSERT_INTERVAL"),f=s-e.ref.lastItemSpanwDate;l=f<d?s+(d-f):s}e.ref.lastItemSpanwDate=l,e.appendChildView(e.createChildView(YT,{spawnDate:l,id:n,opacity:c,interactionMethod:i}),r)},Vm=(e,t,n,r=0,i=1)=>{e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(e.opacity===0&&KT(e,t,n,r,i),e.scaleX=1,e.scaleY=1,e.opacity=1))},KT=(e,t,n,r,i)=>{e.interactionMethod===Rn.NONE?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===Rn.DROP?(e.translateX=null,e.translateX=t-r*20,e.translateY=null,e.translateY=n-i*10,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===Rn.BROWSE?(e.translateY=null,e.translateY=n-30):e.interactionMethod===Rn.API&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},QT=({root:e,action:t})=>{const{id:n}=t,r=e.childViews.find(i=>i.id===n);r&&(r.scaleX=.9,r.scaleY=.9,r.opacity=0,r.markedForRemoval=!0)},df=e=>e.rect.element.height+e.rect.element.marginBottom*.5+e.rect.element.marginTop*.5,JT=e=>e.rect.element.width+e.rect.element.marginLeft*.5+e.rect.element.marginRight*.5,eS=Yt({DID_ADD_ITEM:XT,DID_REMOVE_ITEM:QT,DID_DRAG_ITEM:({root:e,action:t})=>{const{id:n,dragState:r}=t,i=e.query("GET_ITEM",{id:n}),s=e.childViews.find(E=>E.id===n),l=e.childViews.length,c=r.getItemIndex(i);if(!s)return;const d={x:s.dragOrigin.x+s.dragOffset.x+s.dragCenter.x,y:s.dragOrigin.y+s.dragOffset.y+s.dragCenter.y},f=df(s),m=JT(s);let g=Math.floor(e.rect.outer.width/m);g>l&&(g=l);const v=Math.floor(l/g+1);yl.setHeight=f*v,yl.setWidth=m*g;var b={y:Math.floor(d.y/f),x:Math.floor(d.x/m),getGridIndex:function(){return d.y>yl.getHeight||d.y<0||d.x>yl.getWidth||d.x<0?c:this.y*g+this.x},getColIndex:function(){const y=e.query("GET_ACTIVE_ITEMS"),T=e.childViews.filter(L=>L.rect.element.height),S=y.map(L=>T.find(G=>G.id===L.id)),O=S.findIndex(L=>L===s),I=df(s),M=S.length;let N=M,D=0,k=0,Y=0;for(let L=0;L<M;L++)if(D=df(S[L]),Y=k,k=Y+D,d.y<k){if(O>L){if(d.y<Y+I){N=L;break}continue}N=L;break}return N}};const w=g>1?b.getGridIndex():b.getColIndex();e.dispatch("MOVE_ITEM",{query:s,index:w});const _=r.getIndex();if(_===void 0||_!==w){if(r.setIndex(w),_===void 0)return;e.dispatch("DID_REORDER_ITEMS",{items:e.query("GET_ACTIVE_ITEMS"),origin:c,target:w})}}}),tS=Et({create:ZT,write:({root:e,props:t,actions:n,shouldOptimize:r})=>{eS({root:e,props:t,actions:n});const{dragCoordinates:i}=t,s=e.rect.element.width,l=e.childViews.filter(S=>S.rect.element.height),c=e.query("GET_ACTIVE_ITEMS").map(S=>l.find(O=>O.id===S.id)).filter(S=>S),d=i?cf(e,c,i):null,f=e.ref.addIndex||null;e.ref.addIndex=null;let m=0,g=0,v=0;if(c.length===0)return;const b=c[0].rect.element,w=b.marginTop+b.marginBottom,_=b.marginLeft+b.marginRight,E=b.width+_,y=b.height+w,T=lf(s,E);if(T===1){let S=0,O=0;c.forEach((I,M)=>{if(d){let k=M-d;k===-2?O=-w*.25:k===-1?O=-w*.75:k===0?O=w*.75:k===1?O=w*.25:O=0}r&&(I.translateX=null,I.translateY=null),I.markedForRemoval||Vm(I,0,S+O);let D=(I.rect.element.height+w)*(I.markedForRemoval?I.opacity:1);S+=D})}else{let S=0,O=0;c.forEach((I,M)=>{M===d&&(m=1),M===f&&(v+=1),I.markedForRemoval&&I.opacity<.5&&(g-=1);const N=M+v+m+g,D=N%T,k=Math.floor(N/T),Y=D*E,L=k*y,G=Math.sign(Y-S),Z=Math.sign(L-O);S=Y,O=L,!I.markedForRemoval&&(r&&(I.translateX=null,I.translateY=null),Vm(I,Y,L,G,Z))})}},tag:"ul",name:"list",didWriteView:({root:e})=>{e.childViews.filter(t=>t.markedForRemoval&&t.opacity===0&&t.resting).forEach(t=>{t._destroy(),e.removeChildView(t)})},filterFrameActionsForChild:(e,t)=>t.filter(n=>n.data&&n.data.id?e.id===n.data.id:!0),mixins:{apis:["dragCoordinates"]}}),nS=({root:e,props:t})=>{e.ref.list=e.appendChildView(e.createChildView(tS)),t.dragCoordinates=null,t.overflowing=!1},rS=Yt({DID_DRAG:({root:e,props:t,action:n})=>{e.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(t.dragCoordinates={left:n.position.scopeLeft-e.ref.list.rect.element.left,top:n.position.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},DID_END_DRAG:({props:e})=>{e.dragCoordinates=null}}),iS=Et({create:nS,write:({root:e,props:t,actions:n})=>{if(rS({root:e,props:t,actions:n}),e.ref.list.dragCoordinates=t.dragCoordinates,t.overflowing&&!t.overflow&&(t.overflowing=!1,e.element.dataset.state="",e.height=null),t.overflow){const r=Math.round(t.overflow);r!==e.height&&(t.overflowing=!0,e.element.dataset.state="overflow",e.height=r)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),sr=(e,t,n,r="")=>{n?Tt(e,t,r):e.removeAttribute(t)},oS=e=>{if(!(!e||e.value==="")){try{e.value=""}catch{}if(e.value){const t=Nr("form"),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}},sS=({root:e,props:t})=>{e.element.id=`filepond--browser-${t.id}`,Tt(e.element,"name",e.query("GET_NAME")),Tt(e.element,"aria-controls",`filepond--assistant-${t.id}`),Tt(e.element,"aria-labelledby",`filepond--drop-label-${t.id}`),Wm({root:e,action:{value:e.query("GET_ACCEPTED_FILE_TYPES")}}),qm({root:e,action:{value:e.query("GET_ALLOW_MULTIPLE")}}),Ym({root:e,action:{value:e.query("GET_ALLOW_DIRECTORIES_ONLY")}}),uf({root:e}),Zm({root:e,action:{value:e.query("GET_REQUIRED")}}),Xm({root:e,action:{value:e.query("GET_CAPTURE_METHOD")}}),e.ref.handleChange=n=>{if(!e.element.value)return;const r=Array.from(e.element.files).map(i=>(i._relativePath=i.webkitRelativePath,i));setTimeout(()=>{t.onload(r),oS(e.element)},250)},e.element.addEventListener("change",e.ref.handleChange)},Wm=({root:e,action:t})=>{e.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&sr(e.element,"accept",!!t.value,t.value?t.value.join(","):"")},qm=({root:e,action:t})=>{sr(e.element,"multiple",t.value)},Ym=({root:e,action:t})=>{sr(e.element,"webkitdirectory",t.value)},uf=({root:e})=>{const t=e.query("GET_DISABLED"),n=e.query("GET_ALLOW_BROWSE"),r=t||!n;sr(e.element,"disabled",r)},Zm=({root:e,action:t})=>{t.value?e.query("GET_TOTAL_ITEMS")===0&&sr(e.element,"required",!0):sr(e.element,"required",!1)},Xm=({root:e,action:t})=>{sr(e.element,"capture",!!t.value,t.value===!0?"":t.value)},Km=({root:e})=>{const{element:t}=e;if(e.query("GET_TOTAL_ITEMS")>0){sr(t,"required",!1),sr(t,"name",!1);const n=e.query("GET_ACTIVE_ITEMS");let r=!1;for(let i=0;i<n.length;i++)n[i].status===Oe.LOAD_ERROR&&(r=!0);e.element.setCustomValidity(r?e.query("GET_LABEL_INVALID_FIELD"):"")}else sr(t,"name",!0,e.query("GET_NAME")),e.query("GET_CHECK_VALIDITY")&&t.setCustomValidity(""),e.query("GET_REQUIRED")&&sr(t,"required",!0)},aS=Et({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:sS,destroy:({root:e})=>{e.element.removeEventListener("change",e.ref.handleChange)},write:Yt({DID_LOAD_ITEM:Km,DID_REMOVE_ITEM:Km,DID_THROW_ITEM_INVALID:({root:e})=>{e.query("GET_CHECK_VALIDITY")&&e.element.setCustomValidity(e.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:uf,DID_SET_ALLOW_BROWSE:uf,DID_SET_ALLOW_DIRECTORIES_ONLY:Ym,DID_SET_ALLOW_MULTIPLE:qm,DID_SET_ACCEPTED_FILE_TYPES:Wm,DID_SET_CAPTURE_METHOD:Xm,DID_SET_REQUIRED:Zm})}),Qm={ENTER:13,SPACE:32},lS=({root:e,props:t})=>{const n=Nr("label");Tt(n,"for",`filepond--browser-${t.id}`),Tt(n,"id",`filepond--drop-label-${t.id}`),e.ref.handleKeyDown=r=>{(r.keyCode===Qm.ENTER||r.keyCode===Qm.SPACE)&&(r.preventDefault(),e.ref.label.click())},e.ref.handleClick=r=>{r.target===n||n.contains(r.target)||e.ref.label.click()},n.addEventListener("keydown",e.ref.handleKeyDown),e.element.addEventListener("click",e.ref.handleClick),Jm(n,t.caption),e.appendChild(n),e.ref.label=n},Jm=(e,t)=>{e.innerHTML=t;const n=e.querySelector(".filepond--label-action");return n&&Tt(n,"tabindex","0"),t},cS=Et({name:"drop-label",ignoreRect:!0,create:lS,destroy:({root:e})=>{e.ref.label.addEventListener("keydown",e.ref.handleKeyDown),e.element.removeEventListener("click",e.ref.handleClick)},write:Yt({DID_SET_LABEL_IDLE:({root:e,action:t})=>{Jm(e.ref.label,t.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),dS=Et({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),uS=({root:e})=>{const t=e.rect.element.width*.5,n=e.rect.element.height*.5;e.ref.blob=e.appendChildView(e.createChildView(dS,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:t,translateY:n}))},fS=({root:e,action:t})=>{if(!e.ref.blob){uS({root:e});return}e.ref.blob.translateX=t.position.scopeLeft,e.ref.blob.translateY=t.position.scopeTop,e.ref.blob.scaleX=1,e.ref.blob.scaleY=1,e.ref.blob.opacity=1},pS=({root:e})=>{e.ref.blob&&(e.ref.blob.opacity=0)},hS=({root:e})=>{e.ref.blob&&(e.ref.blob.scaleX=2.5,e.ref.blob.scaleY=2.5,e.ref.blob.opacity=0)},gS=({root:e,props:t,actions:n})=>{mS({root:e,props:t,actions:n});const{blob:r}=e.ref;n.length===0&&r&&r.opacity===0&&(e.removeChildView(r),e.ref.blob=null)},mS=Yt({DID_DRAG:fS,DID_DROP:hS,DID_END_DRAG:pS}),vS=Et({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:gS}),ev=(e,t)=>{try{const n=new DataTransfer;t.forEach(r=>{r instanceof File?n.items.add(r):n.items.add(new File([r],r.name,{type:r.type}))}),e.files=n.files}catch{return!1}return!0},bS=({root:e})=>{e.ref.fields={};const t=document.createElement("legend");t.textContent="Files",e.element.appendChild(t)},Cl=(e,t)=>e.ref.fields[t],ff=e=>{e.query("GET_ACTIVE_ITEMS").forEach(t=>{e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])})},tv=({root:e})=>ff(e),_S=Yt({DID_SET_DISABLED:({root:e})=>{e.element.disabled=e.query("GET_DISABLED")},DID_ADD_ITEM:({root:e,action:t})=>{const i=!(e.query("GET_ITEM",t.id).origin===Dt.LOCAL)&&e.query("SHOULD_UPDATE_FILE_INPUT"),s=Nr("input");s.type=i?"file":"hidden",s.name=e.query("GET_NAME"),e.ref.fields[t.id]=s,ff(e)},DID_LOAD_ITEM:({root:e,action:t})=>{const n=Cl(e,t.id);if(!n||(t.serverFileReference!==null&&(n.value=t.serverFileReference),!e.query("SHOULD_UPDATE_FILE_INPUT")))return;const r=e.query("GET_ITEM",t.id);ev(n,[r.file])},DID_REMOVE_ITEM:({root:e,action:t})=>{const n=Cl(e,t.id);n&&(n.parentNode&&n.parentNode.removeChild(n),delete e.ref.fields[t.id])},DID_DEFINE_VALUE:({root:e,action:t})=>{const n=Cl(e,t.id);n&&(t.value===null?n.removeAttribute("value"):n.type!="file"&&(n.value=t.value),ff(e))},DID_PREPARE_OUTPUT:({root:e,action:t})=>{e.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout(()=>{const n=Cl(e,t.id);n&&ev(n,[t.file])},0)},DID_REORDER_ITEMS:tv,DID_SORT_ITEMS:tv}),xS=Et({tag:"fieldset",name:"data",create:bS,write:_S,ignoreRect:!0}),wS=e=>"getRootNode"in e?e.getRootNode():document,ES=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],yS=["css","csv","html","txt"],CS={zip:"zip|compressed",epub:"application/epub+zip"},nv=(e="")=>(e=e.toLowerCase(),ES.includes(e)?"image/"+(e==="jpg"?"jpeg":e==="svg"?"svg+xml":e):yS.includes(e)?"text/"+e:CS[e]||""),pf=e=>new Promise((t,n)=>{const r=MS(e);if(r.length&&!TS(e))return t(r);SS(e).then(t)}),TS=e=>e.files?e.files.length>0:!1,SS=e=>new Promise((t,n)=>{const r=(e.items?Array.from(e.items):[]).filter(i=>IS(i)).map(i=>AS(i));if(!r.length){t(e.files?Array.from(e.files):[]);return}Promise.all(r).then(i=>{const s=[];i.forEach(l=>{s.push.apply(s,l)}),t(s.filter(l=>l).map(l=>(l._relativePath||(l._relativePath=l.webkitRelativePath),l)))}).catch(console.error)}),IS=e=>{if(rv(e)){const t=hf(e);if(t)return t.isFile||t.isDirectory}return e.kind==="file"},AS=e=>new Promise((t,n)=>{if(DS(e)){OS(hf(e)).then(t).catch(n);return}t([e.getAsFile()])}),OS=e=>new Promise((t,n)=>{const r=[];let i=0,s=0;const l=()=>{s===0&&i===0&&t(r)},c=d=>{i++;const f=d.createReader(),m=()=>{f.readEntries(g=>{if(g.length===0){i--,l();return}g.forEach(v=>{v.isDirectory?c(v):(s++,v.file(b=>{const w=$S(b);v.fullPath&&(w._relativePath=v.fullPath),r.push(w),s--,l()}))}),m()},n)};m()};c(e)}),$S=e=>{if(e.type.length)return e;const t=e.lastModifiedDate,n=e.name,r=nv(xl(e.name));return r.length&&(e=e.slice(0,e.size,r),e.name=n,e.lastModifiedDate=t),e},DS=e=>rv(e)&&(hf(e)||{}).isDirectory,rv=e=>"webkitGetAsEntry"in e,hf=e=>e.webkitGetAsEntry(),MS=e=>{let t=[];try{if(t=NS(e),t.length)return t;t=PS(e)}catch{}return t},PS=e=>{let t=e.getData("url");return typeof t=="string"&&t.length?[t]:[]},NS=e=>{let t=e.getData("text/html");if(typeof t=="string"&&t.length){const n=t.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},Tl=[],Zi=e=>({pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}),RS=(e,t,n)=>{const r=LS(t),i={element:e,filterElement:n,state:null,ondrop:()=>{},onenter:()=>{},ondrag:()=>{},onexit:()=>{},onload:()=>{},allowdrop:()=>{}};return i.destroy=r.addListener(i),i},LS=e=>{const t=Tl.find(r=>r.element===e);if(t)return t;const n=jS(e);return Tl.push(n),n},jS=e=>{const t=[],n={dragenter:FS,dragover:BS,dragleave:GS,drop:zS},r={};ft(n,(s,l)=>{r[s]=l(e,t),e.addEventListener(s,r[s],!1)});const i={element:e,addListener:s=>(t.push(s),()=>{t.splice(t.indexOf(s),1),t.length===0&&(Tl.splice(Tl.indexOf(i),1),ft(n,l=>{e.removeEventListener(l,r[l],!1)}))})};return i},kS=(e,t)=>("elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)),gf=(e,t)=>{const n=wS(t),r=kS(n,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return r===t||t.contains(r)};let iv=null;const Sl=(e,t)=>{try{e.dropEffect=t}catch{}},FS=(e,t)=>n=>{n.preventDefault(),iv=n.target,t.forEach(r=>{const{element:i,onenter:s}=r;gf(n,i)&&(r.state="enter",s(Zi(n)))})},BS=(e,t)=>n=>{n.preventDefault();const r=n.dataTransfer;pf(r).then(i=>{let s=!1;t.some(l=>{const{filterElement:c,element:d,onenter:f,onexit:m,ondrag:g,allowdrop:v}=l;Sl(r,"copy");const b=v(i);if(!b){Sl(r,"none");return}if(gf(n,d)){if(s=!0,l.state===null){l.state="enter",f(Zi(n));return}if(l.state="over",c&&!b){Sl(r,"none");return}g(Zi(n))}else c&&!s&&Sl(r,"none"),l.state&&(l.state=null,m(Zi(n)))})})},zS=(e,t)=>n=>{n.preventDefault();const r=n.dataTransfer;pf(r).then(i=>{t.forEach(s=>{const{filterElement:l,element:c,ondrop:d,onexit:f,allowdrop:m}=s;if(s.state=null,!(l&&!gf(n,c))){if(!m(i))return f(Zi(n));d(Zi(n),i)}})})},GS=(e,t)=>n=>{iv===n.target&&t.forEach(r=>{const{onexit:i}=r;r.state=null,i(Zi(n))})},HS=(e,t,n)=>{e.classList.add("filepond--hopper");const{catchesDropsOnPage:r,requiresDropOnElement:i,filterItems:s=m=>m}=n,l=RS(e,r?document.documentElement:e,i);let c="",d="";l.allowdrop=m=>t(s(m)),l.ondrop=(m,g)=>{const v=s(g);if(!t(v)){f.ondragend(m);return}d="drag-drop",f.onload(v,m)},l.ondrag=m=>{f.ondrag(m)},l.onenter=m=>{d="drag-over",f.ondragstart(m)},l.onexit=m=>{d="drag-exit",f.ondragend(m)};const f={updateHopperState:()=>{c!==d&&(e.dataset.hopperState=d,c=d)},onload:()=>{},ondragstart:()=>{},ondrag:()=>{},ondragend:()=>{},destroy:()=>{l.destroy()}};return f};let mf=!1;const Bo=[],ov=e=>{const t=document.activeElement;if(t&&(/textarea|input/i.test(t.nodeName)||t.getAttribute("contenteditable")==="true")){let r=!1,i=t;for(;i!==document.body;){if(i.classList.contains("filepond--root")){r=!0;break}i=i.parentNode}if(!r)return}pf(e.clipboardData).then(r=>{r.length&&Bo.forEach(i=>i(r))})},US=e=>{Bo.includes(e)||(Bo.push(e),!mf&&(mf=!0,document.addEventListener("paste",ov)))},VS=e=>{Yu(Bo,Bo.indexOf(e)),Bo.length===0&&(document.removeEventListener("paste",ov),mf=!1)},WS=()=>{const e=n=>{t.onload(n)},t={destroy:()=>{VS(e)},onload:()=>{}};return US(e),t},qS=({root:e,props:t})=>{e.element.id=`filepond--assistant-${t.id}`,Tt(e.element,"role","alert"),Tt(e.element,"aria-live","polite"),Tt(e.element,"aria-relevant","additions")};let sv=null,av=null;const vf=[],Il=(e,t)=>{e.element.textContent=t},YS=e=>{e.element.textContent=""},lv=(e,t,n)=>{const r=e.query("GET_TOTAL_ITEMS");Il(e,`${n} ${t}, ${r} ${r===1?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL")}`),clearTimeout(av),av=setTimeout(()=>{YS(e)},1500)},cv=e=>e.element.parentNode.contains(document.activeElement),ZS=({root:e,action:t})=>{if(!cv(e))return;e.element.textContent="";const n=e.query("GET_ITEM",t.id);vf.push(n.filename),clearTimeout(sv),sv=setTimeout(()=>{lv(e,vf.join(", "),e.query("GET_LABEL_FILE_ADDED")),vf.length=0},750)},XS=({root:e,action:t})=>{if(!cv(e))return;const n=t.item;lv(e,n.filename,e.query("GET_LABEL_FILE_REMOVED"))},KS=({root:e,action:t})=>{const r=e.query("GET_ITEM",t.id).filename,i=e.query("GET_LABEL_FILE_PROCESSING_COMPLETE");Il(e,`${r} ${i}`)},dv=({root:e,action:t})=>{const r=e.query("GET_ITEM",t.id).filename,i=e.query("GET_LABEL_FILE_PROCESSING_ABORTED");Il(e,`${r} ${i}`)},Al=({root:e,action:t})=>{const r=e.query("GET_ITEM",t.id).filename;Il(e,`${t.status.main} ${r} ${t.status.sub}`)},QS=Et({create:qS,ignoreRect:!0,ignoreRectUpdate:!0,write:Yt({DID_LOAD_ITEM:ZS,DID_REMOVE_ITEM:XS,DID_COMPLETE_ITEM_PROCESSING:KS,DID_ABORT_ITEM_PROCESSING:dv,DID_REVERT_ITEM_PROCESSING:dv,DID_THROW_ITEM_REMOVE_ERROR:Al,DID_THROW_ITEM_LOAD_ERROR:Al,DID_THROW_ITEM_INVALID:Al,DID_THROW_ITEM_PROCESSING_ERROR:Al}),tag:"span",name:"assistant"}),uv=(e,t="-")=>e.replace(new RegExp(`${t}.`,"g"),n=>n.charAt(1).toUpperCase()),fv=(e,t=16,n=!0)=>{let r=Date.now(),i=null;return(...s)=>{clearTimeout(i);const l=Date.now()-r,c=()=>{r=Date.now(),e(...s)};l<t?n||(i=setTimeout(c,t-l)):c()}},JS=1e6,Ol=e=>e.preventDefault(),eI=({root:e,props:t})=>{const n=e.query("GET_ID");n&&(e.element.id=n);const r=e.query("GET_CLASS_NAME");r&&r.split(" ").filter(d=>d.length).forEach(d=>{e.element.classList.add(d)}),e.ref.label=e.appendChildView(e.createChildView(cS,{...t,translateY:null,caption:e.query("GET_LABEL_IDLE")})),e.ref.list=e.appendChildView(e.createChildView(iS,{translateY:null})),e.ref.panel=e.appendChildView(e.createChildView(zm,{name:"panel-root"})),e.ref.assistant=e.appendChildView(e.createChildView(QS,{...t})),e.ref.data=e.appendChildView(e.createChildView(xS,{...t})),e.ref.measure=Nr("div"),e.ref.measure.style.height="100%",e.element.appendChild(e.ref.measure),e.ref.bounds=null,e.query("GET_STYLES").filter(d=>!Pr(d.value)).map(({name:d,value:f})=>{e.element.dataset[d]=f}),e.ref.widthPrevious=null,e.ref.widthUpdated=fv(()=>{e.ref.updateHistory=[],e.dispatch("DID_RESIZE_ROOT")},250),e.ref.previousAspectRatio=null,e.ref.updateHistory=[];const i=window.matchMedia("(pointer: fine) and (hover: hover)").matches,s="PointerEvent"in window;e.query("GET_ALLOW_REORDER")&&s&&!i&&(e.element.addEventListener("touchmove",Ol,{passive:!1}),e.element.addEventListener("gesturestart",Ol));const l=e.query("GET_CREDITS");if(l.length===2){const d=document.createElement("a");d.className="filepond--credits",d.href=l[0],d.tabIndex=-1,d.target="_blank",d.rel="noopener noreferrer nofollow",d.textContent=l[1],e.element.appendChild(d),e.ref.credits=d}},tI=({root:e,props:t,actions:n})=>{if(sI({root:e,props:t,actions:n}),n.filter(M=>/^DID_SET_STYLE_/.test(M.type)).filter(M=>!Pr(M.data.value)).map(({type:M,data:N})=>{const D=uv(M.substring(8).toLowerCase(),"_");e.element.dataset[D]=N.value,e.invalidateLayout()}),e.rect.element.hidden)return;e.rect.element.width!==e.ref.widthPrevious&&(e.ref.widthPrevious=e.rect.element.width,e.ref.widthUpdated());let r=e.ref.bounds;r||(r=e.ref.bounds=iI(e),e.element.removeChild(e.ref.measure),e.ref.measure=null);const{hopper:i,label:s,list:l,panel:c}=e.ref;i&&i.updateHopperState();const d=e.query("GET_PANEL_ASPECT_RATIO"),f=e.query("GET_ALLOW_MULTIPLE"),m=e.query("GET_TOTAL_ITEMS"),g=f?e.query("GET_MAX_FILES")||JS:1,v=m===g,b=n.find(M=>M.type==="DID_ADD_ITEM");if(v&&b){const M=b.data.interactionMethod;s.opacity=0,f?s.translateY=-40:M===Rn.API?s.translateX=40:M===Rn.BROWSE?s.translateY=40:s.translateY=30}else v||(s.opacity=1,s.translateX=0,s.translateY=0);const w=nI(e),_=rI(e),E=s.rect.element.height,y=!f||v?0:E,T=v?l.rect.element.marginTop:0,S=m===0?0:l.rect.element.marginBottom,O=y+T+_.visual+S,I=y+T+_.bounds+S;if(l.translateY=Math.max(0,y-l.rect.element.marginTop)-w.top,d){const M=e.rect.element.width,N=M*d;d!==e.ref.previousAspectRatio&&(e.ref.previousAspectRatio=d,e.ref.updateHistory=[]);const D=e.ref.updateHistory;D.push(M);const k=2;if(D.length>k*2){const L=D.length,G=L-10;let Z=0;for(let R=L;R>=G;R--)if(D[R]===D[R-2]&&Z++,Z>=k)return}c.scalable=!1,c.height=N;const Y=N-y-(S-w.bottom)-(v?T:0);_.visual>Y?l.overflow=Y:l.overflow=null,e.height=N}else if(r.fixedHeight){c.scalable=!1;const M=r.fixedHeight-y-(S-w.bottom)-(v?T:0);_.visual>M?l.overflow=M:l.overflow=null}else if(r.cappedHeight){const M=O>=r.cappedHeight,N=Math.min(r.cappedHeight,O);c.scalable=!0,c.height=M?N:N-w.top-w.bottom;const D=N-y-(S-w.bottom)-(v?T:0);O>r.cappedHeight&&_.visual>D?l.overflow=D:l.overflow=null,e.height=Math.min(r.cappedHeight,I-w.top-w.bottom)}else{const M=m>0?w.top+w.bottom:0;c.scalable=!0,c.height=Math.max(E,O-M),e.height=Math.max(E,I-M)}e.ref.credits&&c.heightCurrent&&(e.ref.credits.style.transform=`translateY(${c.heightCurrent}px)`)},nI=e=>{const t=e.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},rI=e=>{let t=0,n=0;const r=e.ref.list,i=r.childViews[0],s=i.childViews.filter(T=>T.rect.element.height),l=e.query("GET_ACTIVE_ITEMS").map(T=>s.find(S=>S.id===T.id)).filter(T=>T);if(l.length===0)return{visual:t,bounds:n};const c=i.rect.element.width,d=cf(i,l,r.dragCoordinates),f=l[0].rect.element,m=f.marginTop+f.marginBottom,g=f.marginLeft+f.marginRight,v=f.width+g,b=f.height+m,w=typeof d<"u"&&d>=0?1:0,_=l.find(T=>T.markedForRemoval&&T.opacity<.45)?-1:0,E=l.length+w+_,y=lf(c,v);return y===1?l.forEach(T=>{const S=T.rect.element.height+m;n+=S,t+=S*T.opacity}):(n=Math.ceil(E/y)*b,t=n),{visual:t,bounds:n}},iI=e=>{const t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:t===0?null:t}},bf=(e,t)=>{const n=e.query("GET_ALLOW_REPLACE"),r=e.query("GET_ALLOW_MULTIPLE"),i=e.query("GET_TOTAL_ITEMS");let s=e.query("GET_MAX_FILES");const l=t.length;return!r&&l>1?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:vt("warning",0,"Max files")}),!0):(s=r?s:1,!r&&n?!1:Lo(s)&&i+l>s?(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:vt("warning",0,"Max files")}),!0):!1)},oI=(e,t,n)=>{const r=e.childViews[0];return cf(r,t,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},pv=e=>{const t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),r=t&&!n;if(r&&!e.ref.hopper){const i=HS(e.element,s=>{const l=e.query("GET_BEFORE_DROP_FILE")||(()=>!0);return e.query("GET_DROP_VALIDATION")?s.every(d=>Ui("ALLOW_HOPPER_ITEM",d,{query:e.query}).every(f=>f===!0)&&l(d)):!0},{filterItems:s=>{const l=e.query("GET_IGNORED_FILES");return s.filter(c=>Yi(c)?!l.includes(c.name.toLowerCase()):!0)},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});i.onload=(s,l)=>{const d=e.ref.list.childViews[0].childViews.filter(m=>m.rect.element.height),f=e.query("GET_ACTIVE_ITEMS").map(m=>d.find(g=>g.id===m.id)).filter(m=>m);ir("ADD_ITEMS",s,{dispatch:e.dispatch}).then(m=>{if(bf(e,m))return!1;e.dispatch("ADD_ITEMS",{items:m,index:oI(e.ref.list,f,l),interactionMethod:Rn.DROP})}),e.dispatch("DID_DROP",{position:l}),e.dispatch("DID_END_DRAG",{position:l})},i.ondragstart=s=>{e.dispatch("DID_START_DRAG",{position:s})},i.ondrag=fv(s=>{e.dispatch("DID_DRAG",{position:s})}),i.ondragend=s=>{e.dispatch("DID_END_DRAG",{position:s})},e.ref.hopper=i,e.ref.drip=e.appendChildView(e.createChildView(vS))}else!r&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},hv=(e,t)=>{const n=e.query("GET_ALLOW_BROWSE"),r=e.query("GET_DISABLED"),i=n&&!r;i&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(aS,{...t,onload:s=>{ir("ADD_ITEMS",s,{dispatch:e.dispatch}).then(l=>{if(bf(e,l))return!1;e.dispatch("ADD_ITEMS",{items:l,index:-1,interactionMethod:Rn.BROWSE})})}}),0):!i&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},gv=e=>{const t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),r=t&&!n;r&&!e.ref.paster?(e.ref.paster=WS(),e.ref.paster.onload=i=>{ir("ADD_ITEMS",i,{dispatch:e.dispatch}).then(s=>{if(bf(e,s))return!1;e.dispatch("ADD_ITEMS",{items:s,index:-1,interactionMethod:Rn.PASTE})})}):!r&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},sI=Yt({DID_SET_ALLOW_BROWSE:({root:e,props:t})=>{hv(e,t)},DID_SET_ALLOW_DROP:({root:e})=>{pv(e)},DID_SET_ALLOW_PASTE:({root:e})=>{gv(e)},DID_SET_DISABLED:({root:e,props:t})=>{pv(e),gv(e),hv(e,t),e.query("GET_DISABLED")?e.element.dataset.disabled="disabled":e.element.removeAttribute("data-disabled")}}),aI=Et({name:"root",read:({root:e})=>{e.ref.measure&&(e.ref.measureHeight=e.ref.measure.offsetHeight)},create:eI,write:tI,destroy:({root:e})=>{e.ref.paster&&e.ref.paster.destroy(),e.ref.hopper&&e.ref.hopper.destroy(),e.element.removeEventListener("touchmove",Ol),e.element.removeEventListener("gesturestart",Ol)},mixins:{styles:["height"]}}),lI=(e={})=>{let t=null;const n=bl(),r=W8(OC(n),[YC,MC(n)],[_T,DC(n)]);r.dispatch("SET_OPTIONS",{options:e});const i=()=>{document.hidden||r.dispatch("KICK")};document.addEventListener("visibilitychange",i);let s=null,l=!1,c=!1,d=null,f=null;const m=()=>{l||(l=!0),clearTimeout(s),s=setTimeout(()=>{l=!1,d=null,f=null,c&&(c=!1,r.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",m);const g=aI(r,{id:qu()});let v=!1,b=!1;const w={_read:()=>{l&&(f=window.innerWidth,d||(d=f),!c&&f!==d&&(r.dispatch("DID_START_RESIZE"),c=!0)),b&&v&&(v=g.element.offsetParent===null),!v&&(g._read(),b=g.rect.element.hidden)},_write:B=>{const W=r.processActionQueue().filter(J=>!/^SET_/.test(J.type));v&&!W.length||(T(W),v=g._write(B,W,c),RC(r.query("GET_ITEMS")),v&&r.processDispatchQueue())}},_=B=>W=>{const J={type:B};if(!W)return J;if(W.hasOwnProperty("error")&&(J.error=W.error?{...W.error}:null),W.status&&(J.status={...W.status}),W.file&&(J.output=W.file),W.source)J.file=W.source;else if(W.item||W.id){const q=W.item?W.item:r.query("GET_ITEM",W.id);J.file=q?cn(q):null}return W.items&&(J.items=W.items.map(cn)),/progress/.test(B)&&(J.progress=W.progress),W.hasOwnProperty("origin")&&W.hasOwnProperty("target")&&(J.origin=W.origin,J.target=W.target),J},E={DID_DESTROY:_("destroy"),DID_INIT:_("init"),DID_THROW_MAX_FILES:_("warning"),DID_INIT_ITEM:_("initfile"),DID_START_ITEM_LOAD:_("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:_("addfileprogress"),DID_LOAD_ITEM:_("addfile"),DID_THROW_ITEM_INVALID:[_("error"),_("addfile")],DID_THROW_ITEM_LOAD_ERROR:[_("error"),_("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[_("error"),_("removefile")],DID_PREPARE_OUTPUT:_("preparefile"),DID_START_ITEM_PROCESSING:_("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:_("processfileprogress"),DID_ABORT_ITEM_PROCESSING:_("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:_("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:_("processfiles"),DID_REVERT_ITEM_PROCESSING:_("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[_("error"),_("processfile")],DID_REMOVE_ITEM:_("removefile"),DID_UPDATE_ITEMS:_("updatefiles"),DID_ACTIVATE_ITEM:_("activatefile"),DID_REORDER_ITEMS:_("reorderfiles")},y=B=>{const W={pond:K,...B};delete W.type,g.element.dispatchEvent(new CustomEvent(`FilePond:${B.type}`,{detail:W,bubbles:!0,cancelable:!0,composed:!0}));const J=[];B.hasOwnProperty("error")&&J.push(B.error),B.hasOwnProperty("file")&&J.push(B.file);const q=["type","error","file"];Object.keys(B).filter(V=>!q.includes(V)).forEach(V=>J.push(B[V])),K.fire(B.type,...J);const U=r.query(`GET_ON${B.type.toUpperCase()}`);U&&U(...J)},T=B=>{B.length&&B.filter(W=>E[W.type]).forEach(W=>{const J=E[W.type];(Array.isArray(J)?J:[J]).forEach(q=>{W.type==="DID_INIT_ITEM"?y(q(W.data)):setTimeout(()=>{y(q(W.data))},0)})})},S=B=>r.dispatch("SET_OPTIONS",{options:B}),O=B=>r.query("GET_ACTIVE_ITEM",B),I=B=>new Promise((W,J)=>{r.dispatch("REQUEST_ITEM_PREPARE",{query:B,success:q=>{W(q)},failure:q=>{J(q)}})}),M=(B,W={})=>new Promise((J,q)=>{k([{source:B,options:W}],{index:W.index}).then(U=>J(U&&U[0])).catch(q)}),N=B=>B.file&&B.id,D=(B,W)=>(typeof B=="object"&&!N(B)&&!W&&(W=B,B=void 0),r.dispatch("REMOVE_ITEM",{...W,query:B}),r.query("GET_ACTIVE_ITEM",B)===null),k=(...B)=>new Promise((W,J)=>{const q=[],U={};if(pl(B[0]))q.push.apply(q,B[0]),Object.assign(U,B[1]||{});else{const V=B[B.length-1];typeof V=="object"&&!(V instanceof Blob)&&Object.assign(U,B.pop()),q.push(...B)}r.dispatch("ADD_ITEMS",{items:q,index:U.index,interactionMethod:Rn.API,success:W,failure:J})}),Y=()=>r.query("GET_ACTIVE_ITEMS"),L=B=>new Promise((W,J)=>{r.dispatch("REQUEST_ITEM_PROCESSING",{query:B,success:q=>{W(q)},failure:q=>{J(q)}})}),G=(...B)=>{const W=Array.isArray(B[0])?B[0]:B,J=W.length?W:Y();return Promise.all(J.map(I))},Z=(...B)=>{const W=Array.isArray(B[0])?B[0]:B;if(!W.length){const J=Y().filter(q=>!(q.status===Oe.IDLE&&q.origin===Dt.LOCAL)&&q.status!==Oe.PROCESSING&&q.status!==Oe.PROCESSING_COMPLETE&&q.status!==Oe.PROCESSING_REVERT_ERROR);return Promise.all(J.map(L))}return Promise.all(W.map(L))},R=(...B)=>{const W=Array.isArray(B[0])?B[0]:B;let J;typeof W[W.length-1]=="object"?J=W.pop():Array.isArray(B[0])&&(J=B[1]);const q=Y();return W.length?W.map(V=>Gi(V)?q[V]?q[V].id:null:V).filter(V=>V).map(V=>D(V,J)):Promise.all(q.map(V=>D(V,J)))},K={...vl(),...w,...$C(r,n),setOptions:S,addFile:M,addFiles:k,getFile:O,processFile:L,prepareFile:I,removeFile:D,moveFile:(B,W)=>r.dispatch("MOVE_ITEM",{query:B,index:W}),getFiles:Y,processFiles:Z,removeFiles:R,prepareFiles:G,sort:B=>r.dispatch("SORT",{compare:B}),browse:()=>{var B=g.element.querySelector("input[type=file]");B&&B.click()},destroy:()=>{K.fire("destroy",g.element),r.dispatch("ABORT_ALL"),g._destroy(),window.removeEventListener("resize",m),document.removeEventListener("visibilitychange",i),r.dispatch("DID_DESTROY")},insertBefore:B=>rm(g.element,B),insertAfter:B=>im(g.element,B),appendTo:B=>B.appendChild(g.element),replaceElement:B=>{rm(g.element,B),B.parentNode.removeChild(B),t=B},restoreElement:()=>{t&&(im(t,g.element),g.element.parentNode.removeChild(g.element),t=null)},isAttachedTo:B=>g.element===B||t===B,element:{get:()=>g.element},status:{get:()=>r.query("GET_STATUS")}};return r.dispatch("DID_INIT"),di(K)},mv=(e={})=>{const t={};return ft(bl(),(r,i)=>{t[r]=i[0]}),lI({...t,...e})},cI=e=>e.charAt(0).toLowerCase()+e.slice(1),dI=e=>uv(e.replace(/^data-/,"")),vv=(e,t)=>{ft(t,(n,r)=>{ft(e,(i,s)=>{const l=new RegExp(n);if(!l.test(i)||(delete e[i],r===!1))return;if(Zt(r)){e[r]=s;return}const d=r.group;$t(r)&&!e[d]&&(e[d]={}),e[d][cI(i.replace(l,""))]=s}),r.mapping&&vv(e[r.group],r.mapping)})},uI=(e,t={})=>{const n=[];ft(e.attributes,i=>{n.push(e.attributes[i])});const r=n.filter(i=>i.name).reduce((i,s)=>{const l=Tt(e,s.name);return i[dI(s.name)]=l===s.name?!0:l,i},{});return vv(r,t),r},fI=(e,t={})=>{const n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};Ui("SET_ATTRIBUTE_TO_OPTION_MAP",n);const r={...t},i=uI(e.nodeName==="FIELDSET"?e.querySelector("input[type=file]"):e,n);Object.keys(i).forEach(l=>{$t(i[l])?($t(r[l])||(r[l]={}),Object.assign(r[l],i[l])):r[l]=i[l]}),r.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map(l=>({source:l.value,options:{type:l.dataset.type}})));const s=mv(r);return e.files&&Array.from(e.files).forEach(l=>{s.addFile(l)}),s.replaceElement(e),s},pI=(...e)=>V8(e[0])?fI(...e):mv(...e),hI=["fire","_read","_write"],bv=e=>{const t={};return fm(e,t,hI),t},gI=(e,t)=>e.replace(/(?:{([a-zA-Z]+)})/g,(n,r)=>t[r]),mI=e=>{const t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n);return{transfer:(i,s)=>{},post:(i,s,l)=>{const c=qu();r.onmessage=d=>{d.data.id===c&&s(d.data.message)},r.postMessage({id:c,message:i},l)},terminate:()=>{r.terminate(),URL.revokeObjectURL(n)}}},vI=e=>new Promise((t,n)=>{const r=new Image;r.onload=()=>{t(r)},r.onerror=i=>{n(i)},r.src=e}),_v=(e,t)=>{const n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},bI=e=>_v(e,e.name),xv=[],_I=e=>{if(xv.includes(e))return;xv.push(e);const t=e({addFilter:jC,utils:{Type:re,forin:ft,isString:Zt,isFile:Yi,toNaturalFileSize:Pm,replaceInString:gI,getExtensionFromFilename:xl,getFilenameWithoutExtension:Cm,guesstimateMimeType:nv,getFileFromBlob:ko,getFilenameFromURL:Ls,createRoute:Yt,createWorker:mI,createView:Et,createItemAPI:cn,loadImage:vI,copyFile:bI,renameFile:_v,createBlob:_m,applyFilterChain:ir,text:bt,getNumericAspectRatioFromString:gm},views:{fileActionButton:Mm}});kC(t.options)},xI=()=>Object.prototype.toString.call(window.operamini)==="[object OperaMini]",wI=()=>"Promise"in window,EI=()=>"slice"in Blob.prototype,yI=()=>"URL"in window&&"createObjectURL"in window.URL,CI=()=>"visibilityState"in document,TI=()=>"performance"in window,SI=()=>"supports"in(window.CSS||{}),II=()=>/MSIE|Trident/.test(window.navigator.userAgent),_f=(()=>{const e=Kg()&&!xI()&&CI()&&wI()&&EI()&&yI()&&TI()&&(SI()||II());return()=>e})(),ui={apps:[]},AI="filepond",Xi=()=>{};let wv={},$l=Xi,xf=Xi,Ev=Xi,yv=Xi,wf=Xi,Cv=Xi,Tv=Xi;if(_f()){gC(()=>{ui.apps.forEach(n=>n._read())},n=>{ui.apps.forEach(r=>r._write(n))});const e=()=>{document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:_f,create:$l,destroy:xf,parse:Ev,find:yv,registerPlugin:wf,setOptions:Tv}})),document.removeEventListener("DOMContentLoaded",e)};document.readyState!=="loading"?setTimeout(()=>e(),0):document.addEventListener("DOMContentLoaded",e);const t=()=>ft(bl(),(n,r)=>{wv[n]=r[1]});wv={},t(),$l=(...n)=>{const r=pI(...n);return r.on("destroy",xf),ui.apps.push(r),bv(r)},xf=n=>{const r=ui.apps.findIndex(i=>i.isAttachedTo(n));return r>=0?(ui.apps.splice(r,1)[0].restoreElement(),!0):!1},Ev=n=>Array.from(n.querySelectorAll(`.${AI}`)).filter(s=>!ui.apps.find(l=>l.isAttachedTo(s))).map(s=>$l(s)),yv=n=>{const r=ui.apps.find(i=>i.isAttachedTo(n));return r?bv(r):null},wf=(...n)=>{n.forEach(_I),t()},Cv=()=>{const n={};return ft(bl(),(r,i)=>{n[r]=i[0]}),n},Tv=n=>($t(n)&&(ui.apps.forEach(r=>{r.setOptions(n)}),FC(n)),Cv())}/*!
|
|
107
107
|
* react-filepond v7.1.3
|
|
108
108
|
* A handy FilePond adapter component for React
|
|
109
109
|
*
|
|
@@ -111,25 +111,25 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
111
111
|
* https://pqina.nl/filepond
|
|
112
112
|
*
|
|
113
113
|
* Licensed under the MIT license.
|
|
114
|
-
*/const OI=
|
|
114
|
+
*/const OI=_f(),$I=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"];class DI extends p.Component{constructor(t){super(t),this.allowFilesSync=!0}componentDidMount(){if(this._input=this._element.querySelector('input[type="file"]'),this._inputClone=this._input.cloneNode(),!OI)return;const t=Object.assign({},this.props);if(t.onupdatefiles){const n=t.onupdatefiles;t.onupdatefiles=r=>{this.allowFilesSync=!1,n(r)}}this._pond=$l(this._input,t),Object.keys(this._pond).filter(n=>!$I.includes(n)).forEach(n=>{this[n]=this._pond[n]})}componentWillUnmount(){if(!this._pond)return;const t=document.createElement("div");t.append(this._pond.element),t.id="foo",this._pond.destroy(),this._pond=void 0,this._element.append(this._inputClone)}shouldComponentUpdate(){return this.allowFilesSync?!0:(this.allowFilesSync=!0,!1)}componentDidUpdate(){if(!this._pond)return;const t=Object.assign({},this.props);delete t.onupdatefiles,this._pond.setOptions(t)}render(){const{id:t,name:n,className:r,allowMultiple:i,required:s,captureMethod:l,acceptedFileTypes:c}=this.props;return p.createElement("div",{className:"filepond--wrapper",ref:d=>this._element=d},p.createElement("input",{type:"file",name:n,id:t,accept:c,multiple:i,required:s,className:r,capture:l}))}}/*!
|
|
115
115
|
* FilePondPluginImageExifOrientation 1.0.11
|
|
116
116
|
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
117
117
|
* Please visit https://pqina.nl/filepond/ for details.
|
|
118
|
-
*/const MI=e=>/^image\/jpeg/.test(e.type),Ki={JPEG:65496,APP1:65505,EXIF:1165519206,TIFF:18761,Orientation:274,Unknown:65280},Qi=(e,t,n=!1)=>e.getUint16(t,n),
|
|
118
|
+
*/const MI=e=>/^image\/jpeg/.test(e.type),Ki={JPEG:65496,APP1:65505,EXIF:1165519206,TIFF:18761,Orientation:274,Unknown:65280},Qi=(e,t,n=!1)=>e.getUint16(t,n),Sv=(e,t,n=!1)=>e.getUint32(t,n),PI=e=>new Promise((t,n)=>{const r=new FileReader;r.onload=function(i){const s=new DataView(i.target.result);if(Qi(s,0)!==Ki.JPEG){t(-1);return}const l=s.byteLength;let c=2;for(;c<l;){const d=Qi(s,c);if(c+=2,d===Ki.APP1){if(Sv(s,c+=2)!==Ki.EXIF)break;const f=Qi(s,c+=6)===Ki.TIFF;c+=Sv(s,c+4,f);const m=Qi(s,c,f);c+=2;for(let g=0;g<m;g++)if(Qi(s,c+g*12,f)===Ki.Orientation){t(Qi(s,c+g*12+8,f));return}}else{if((d&Ki.Unknown)!==Ki.Unknown)break;c+=Qi(s,c)}}t(-1)},r.readAsArrayBuffer(e.slice(0,64*1024))}),NI=typeof window<"u"&&typeof window.document<"u",RI=()=>NI,LI="data:image/jpg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QA6RXhpZgAATU0AKgAAAAgAAwESAAMAAAABAAYAAAEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAD/2wBDAP//////////////////////////////////////////////////////////////////////////////////////wAALCAABAAIBASIA/8QAJgABAAAAAAAAAAAAAAAAAAAAAxABAAAAAAAAAAAAAAAAAAAAAP/aAAgBAQAAPwBH/9k=";let Iv;const Dl=RI()?new Image:{};Dl.onload=()=>Iv=Dl.naturalWidth>Dl.naturalHeight,Dl.src=LI;const jI=()=>Iv,Av=({addFilter:e,utils:t})=>{const{Type:n,isFile:r}=t;return e("DID_LOAD_ITEM",(i,{query:s})=>new Promise((l,c)=>{const d=i.file;if(!r(d)||!MI(d)||!s("GET_ALLOW_IMAGE_EXIF_ORIENTATION")||!jI())return l(i);PI(d).then(f=>{i.setMetadata("exif",{orientation:f}),l(i)})})),{options:{allowImageExifOrientation:[!0,n.BOOLEAN]}}};typeof window<"u"&&typeof window.document<"u"&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Av}));/*!
|
|
119
119
|
* FilePondPluginImageResize 2.0.10
|
|
120
120
|
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
121
121
|
* Please visit https://pqina.nl/filepond/ for details.
|
|
122
|
-
*/const kI=e=>/^image/.test(e.type),FI=(e,t)=>{let n=new Image;n.onload=()=>{const r=n.naturalWidth,i=n.naturalHeight;n=null,t({width:r,height:i})},n.onerror=()=>t(null),n.src=e}
|
|
122
|
+
*/const kI=e=>/^image/.test(e.type),FI=(e,t)=>{let n=new Image;n.onload=()=>{const r=n.naturalWidth,i=n.naturalHeight;n=null,t({width:r,height:i})},n.onerror=()=>t(null),n.src=e},Ov=({addFilter:e,utils:t})=>{const{Type:n}=t;return e("DID_LOAD_ITEM",(r,{query:i})=>new Promise((s,l)=>{const c=r.file;if(!kI(c)||!i("GET_ALLOW_IMAGE_RESIZE"))return s(r);const d=i("GET_IMAGE_RESIZE_MODE"),f=i("GET_IMAGE_RESIZE_TARGET_WIDTH"),m=i("GET_IMAGE_RESIZE_TARGET_HEIGHT"),g=i("GET_IMAGE_RESIZE_UPSCALE");if(f===null&&m===null)return s(r);const v=f===null?m:f,b=m===null?v:m,w=URL.createObjectURL(c);FI(w,_=>{if(URL.revokeObjectURL(w),!_)return s(r);let{width:E,height:y}=_;const T=(r.getMetadata("exif")||{}).orientation||-1;if(T>=5&&T<=8&&([E,y]=[y,E]),E===v&&y===b)return s(r);if(!g){if(d==="cover"){if(E<=v||y<=b)return s(r)}else if(E<=v&&y<=v)return s(r)}r.setMetadata("resize",{mode:d,upscale:g,size:{width:v,height:b}}),s(r)})})),{options:{allowImageResize:[!0,n.BOOLEAN],imageResizeMode:["cover",n.STRING],imageResizeUpscale:[!0,n.BOOLEAN],imageResizeTargetWidth:[null,n.INT],imageResizeTargetHeight:[null,n.INT]}}};typeof window<"u"&&typeof window.document<"u"&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Ov}));/*!
|
|
123
123
|
* FilePondPluginImageTransform 3.8.7
|
|
124
124
|
* Licensed under MIT, https://opensource.org/licenses/MIT/
|
|
125
125
|
* Please visit https://pqina.nl/filepond/ for details.
|
|
126
|
-
*/const BI=e=>/^image/.test(e.type),zI=e=>e.substr(0,e.lastIndexOf("."))||e,GI={jpeg:"jpg","svg+xml":"svg"},HI=(e,t)=>{const n=zI(e),r=t.split("/")[1],i=GI[r]||r;return`${n}.${i}`},UI=e=>/jpeg|png|svg\+xml/.test(e)?e:"image/jpeg",VI=e=>/^image/.test(e.type),WI={1:()=>[1,0,0,1,0,0],2:e=>[-1,0,0,1,e,0],3:(e,t)=>[-1,0,0,-1,e,t],4:(e,t)=>[1,0,0,-1,0,t],5:()=>[0,1,1,0,0,0],6:(e,t)=>[0,1,-1,0,t,0],7:(e,t)=>[0,-1,-1,0,t,e],8:e=>[0,-1,1,0,0,e]},qI=(e,t,n)=>(n===-1&&(n=1),WI[n](e,t)),zs=(e,t)=>({x:e,y:t}),YI=(e,t)=>e.x*t.x+e.y*t.y
|
|
126
|
+
*/const BI=e=>/^image/.test(e.type),zI=e=>e.substr(0,e.lastIndexOf("."))||e,GI={jpeg:"jpg","svg+xml":"svg"},HI=(e,t)=>{const n=zI(e),r=t.split("/")[1],i=GI[r]||r;return`${n}.${i}`},UI=e=>/jpeg|png|svg\+xml/.test(e)?e:"image/jpeg",VI=e=>/^image/.test(e.type),WI={1:()=>[1,0,0,1,0,0],2:e=>[-1,0,0,1,e,0],3:(e,t)=>[-1,0,0,-1,e,t],4:(e,t)=>[1,0,0,-1,0,t],5:()=>[0,1,1,0,0,0],6:(e,t)=>[0,1,-1,0,t,0],7:(e,t)=>[0,-1,-1,0,t,e],8:e=>[0,-1,1,0,0,e]},qI=(e,t,n)=>(n===-1&&(n=1),WI[n](e,t)),zs=(e,t)=>({x:e,y:t}),YI=(e,t)=>e.x*t.x+e.y*t.y,$v=(e,t)=>zs(e.x-t.x,e.y-t.y),ZI=(e,t)=>YI($v(e,t),$v(e,t)),Dv=(e,t)=>Math.sqrt(ZI(e,t)),Mv=(e,t)=>{const n=e,r=1.5707963267948966,i=t,s=1.5707963267948966-t,l=Math.sin(r),c=Math.sin(i),d=Math.sin(s),f=Math.cos(s),m=n/l,g=m*c,v=m*d;return zs(f*g,f*v)},XI=(e,t)=>{const n=e.width,r=e.height,i=Mv(n,t),s=Mv(r,t),l=zs(e.x+Math.abs(i.x),e.y-Math.abs(i.y)),c=zs(e.x+e.width+Math.abs(s.y),e.y+Math.abs(s.x)),d=zs(e.x-Math.abs(s.y),e.y+e.height-Math.abs(s.x));return{width:Dv(l,c),height:Dv(l,d)}},Pv=(e,t,n=0,r={x:.5,y:.5})=>{const i=r.x>.5?1-r.x:r.x,s=r.y>.5?1-r.y:r.y,l=i*2*e.width,c=s*2*e.height,d=XI(t,n);return Math.max(d.width/l,d.height/c)},Nv=(e,t)=>{let n=e.width,r=n*t;r>e.height&&(r=e.height,n=r/t);const i=(e.width-n)*.5,s=(e.height-r)*.5;return{x:i,y:s,width:n,height:r}},Rv=(e,t,n=1)=>{const r=e.height/e.width;let i=1,s=t,l=1,c=r;c>s&&(c=s,l=c/r);const d=Math.max(i/l,s/c),f=e.width/(n*d*l),m=f*t;return{width:f,height:m}},Lv=e=>{e.width=1,e.height=1,e.getContext("2d").clearRect(0,0,1,1)},jv=e=>e&&(e.horizontal||e.vertical),KI=(e,t,n)=>{if(t<=1&&!jv(n))return e.width=e.naturalWidth,e.height=e.naturalHeight,e;const r=document.createElement("canvas"),i=e.naturalWidth,s=e.naturalHeight,l=t>=5&&t<=8;l?(r.width=s,r.height=i):(r.width=i,r.height=s);const c=r.getContext("2d");if(t&&c.transform.apply(c,qI(i,s,t)),jv(n)){const d=[1,0,0,1,0,0];(!l&&n.horizontal||l&n.vertical)&&(d[0]=-1,d[4]=i),(!l&&n.vertical||l&&n.horizontal)&&(d[3]=-1,d[5]=s),c.transform(...d)}return c.drawImage(e,0,0,i,s),r},QI=(e,t,n={},r={})=>{const{canvasMemoryLimit:i,background:s=null}=r,l=n.zoom||1,c=KI(e,t,n.flip),d={width:c.width,height:c.height},f=n.aspectRatio||d.height/d.width;let m=Rv(d,f,l);if(i){const S=m.width*m.height;if(S>i){const O=Math.sqrt(i)/Math.sqrt(S);d.width=Math.floor(d.width*O),d.height=Math.floor(d.height*O),m=Rv(d,f,l)}}const g=document.createElement("canvas"),v={x:m.width*.5,y:m.height*.5},b={width:m.width,height:m.height},w=typeof n.scaleToFit>"u"||n.scaleToFit,_=l*Pv(d,Nv(b,f),n.rotation,w?n.center:{x:.5,y:.5});g.width=Math.round(m.width/_),g.height=Math.round(m.height/_),v.x/=_,v.y/=_;const E={x:v.x-d.width*(n.center?n.center.x:.5),y:v.y-d.height*(n.center?n.center.y:.5)},y=g.getContext("2d");s&&(y.fillStyle=s,y.fillRect(0,0,g.width,g.height)),y.translate(v.x,v.y),y.rotate(n.rotation||0),y.drawImage(c,E.x-v.x,E.y-v.y,d.width,d.height);const T=y.getImageData(0,0,g.width,g.height);return Lv(g),T};typeof window<"u"&&typeof window.document<"u"&&(HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){var r=this.toDataURL(t,n).split(",")[1];setTimeout(function(){for(var i=atob(r),s=i.length,l=new Uint8Array(s),c=0;c<s;c++)l[c]=i.charCodeAt(c);e(new Blob([l],{type:t||"image/png"}))})}}));const JI=(e,t,n=null)=>new Promise(r=>{const i=n?n(e):e;Promise.resolve(i).then(s=>{s.toBlob(r,t.type,t.quality)})}),Ml=(e,t)=>Gs(e.x*t,e.y*t),Pl=(e,t)=>Gs(e.x+t.x,e.y+t.y),kv=e=>{const t=Math.sqrt(e.x*e.x+e.y*e.y);return t===0?{x:0,y:0}:Gs(e.x/t,e.y/t)},fi=(e,t,n)=>{const r=Math.cos(t),i=Math.sin(t),s=Gs(e.x-n.x,e.y-n.y);return Gs(n.x+r*s.x-i*s.y,n.y+i*s.x+r*s.y)},Gs=(e=0,t=0)=>({x:e,y:t}),Pt=(e,t,n=1,r)=>{if(typeof e=="string")return parseFloat(e)*n;if(typeof e=="number")return e*(r?t[r]:Math.min(t.width,t.height))},Ji=(e,t,n)=>{const r=e.borderStyle||e.lineStyle||"solid",i=e.backgroundColor||e.fontColor||"transparent",s=e.borderColor||e.lineColor||"transparent",l=Pt(e.borderWidth||e.lineWidth,t,n),c=e.lineCap||"round",d=e.lineJoin||"round",f=typeof r=="string"?"":r.map(g=>Pt(g,t,n)).join(","),m=e.opacity||1;return{"stroke-linecap":c,"stroke-linejoin":d,"stroke-width":l||0,"stroke-dasharray":f,stroke:s,fill:i,opacity:m}},kn=e=>e!=null,zo=(e,t,n=1)=>{let r=Pt(e.x,t,n,"width")||Pt(e.left,t,n,"width"),i=Pt(e.y,t,n,"height")||Pt(e.top,t,n,"height"),s=Pt(e.width,t,n,"width"),l=Pt(e.height,t,n,"height"),c=Pt(e.right,t,n,"width"),d=Pt(e.bottom,t,n,"height");return kn(i)||(kn(l)&&kn(d)?i=t.height-l-d:i=d),kn(r)||(kn(s)&&kn(c)?r=t.width-s-c:r=c),kn(s)||(kn(r)&&kn(c)?s=t.width-r-c:s=0),kn(l)||(kn(i)&&kn(d)?l=t.height-i-d:l=0),{x:r||0,y:i||0,width:s||0,height:l||0}},eA=e=>e.map((t,n)=>`${n===0?"M":"L"} ${t.x} ${t.y}`).join(" "),_r=(e,t)=>Object.keys(t).forEach(n=>e.setAttribute(n,t[n])),tA="http://www.w3.org/2000/svg",Go=(e,t)=>{const n=document.createElementNS(tA,e);return t&&_r(n,t),n},nA=e=>_r(e,{...e.rect,...e.styles}),rA=e=>{const t=e.rect.x+e.rect.width*.5,n=e.rect.y+e.rect.height*.5,r=e.rect.width*.5,i=e.rect.height*.5;return _r(e,{cx:t,cy:n,rx:r,ry:i,...e.styles})},iA={contain:"xMidYMid meet",cover:"xMidYMid slice"},oA=(e,t)=>{_r(e,{...e.rect,...e.styles,preserveAspectRatio:iA[t.fit]||"none"})},sA={left:"start",center:"middle",right:"end"},aA=(e,t,n,r)=>{const i=Pt(t.fontSize,n,r),s=t.fontFamily||"sans-serif",l=t.fontWeight||"normal",c=sA[t.textAlign]||"start";_r(e,{...e.rect,...e.styles,"stroke-width":0,"font-weight":l,"font-size":i,"font-family":s,"text-anchor":c}),e.text!==t.text&&(e.text=t.text,e.textContent=t.text.length?t.text:" ")},lA=(e,t,n,r)=>{_r(e,{...e.rect,...e.styles,fill:"none"});const i=e.childNodes[0],s=e.childNodes[1],l=e.childNodes[2],c=e.rect,d={x:e.rect.x+e.rect.width,y:e.rect.y+e.rect.height};if(_r(i,{x1:c.x,y1:c.y,x2:d.x,y2:d.y}),!t.lineDecoration)return;s.style.display="none",l.style.display="none";const f=kv({x:d.x-c.x,y:d.y-c.y}),m=Pt(.05,n,r);if(t.lineDecoration.indexOf("arrow-begin")!==-1){const g=Ml(f,m),v=Pl(c,g),b=fi(c,2,v),w=fi(c,-2,v);_r(s,{style:"display:block;",d:`M${b.x},${b.y} L${c.x},${c.y} L${w.x},${w.y}`})}if(t.lineDecoration.indexOf("arrow-end")!==-1){const g=Ml(f,-m),v=Pl(d,g),b=fi(d,2,v),w=fi(d,-2,v);_r(l,{style:"display:block;",d:`M${b.x},${b.y} L${d.x},${d.y} L${w.x},${w.y}`})}},cA=(e,t,n,r)=>{_r(e,{...e.styles,fill:"none",d:eA(t.points.map(i=>({x:Pt(i.x,n,r,"width"),y:Pt(i.y,n,r,"height")})))})},Nl=e=>t=>Go(e,{id:t.id}),dA=e=>{const t=Go("image",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});return t.onload=()=>{t.setAttribute("opacity",e.opacity||1)},t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.src),t},uA=e=>{const t=Go("g",{id:e.id,"stroke-linecap":"round","stroke-linejoin":"round"}),n=Go("line");t.appendChild(n);const r=Go("path");t.appendChild(r);const i=Go("path");return t.appendChild(i),t},fA={image:dA,rect:Nl("rect"),ellipse:Nl("ellipse"),text:Nl("text"),path:Nl("path"),line:uA},pA={rect:nA,ellipse:rA,image:oA,text:aA,path:cA,line:lA},hA=(e,t)=>fA[e](t),gA=(e,t,n,r,i)=>{t!=="path"&&(e.rect=zo(n,r,i)),e.styles=Ji(n,r,i),pA[t](e,n,r,i)},Fv=(e,t)=>e[1].zIndex>t[1].zIndex?1:e[1].zIndex<t[1].zIndex?-1:0,mA=(e,t={},n,r)=>new Promise(i=>{const{background:s=null}=r,l=new FileReader;l.onloadend=()=>{const c=l.result,d=document.createElement("div");d.style.cssText="position:absolute;pointer-events:none;width:0;height:0;visibility:hidden;",d.innerHTML=c;const f=d.querySelector("svg");document.body.appendChild(d);const m=f.getBBox();d.parentNode.removeChild(d);const g=d.querySelector("title"),v=f.getAttribute("viewBox")||"",b=f.getAttribute("width")||"",w=f.getAttribute("height")||"";let _=parseFloat(b)||null,E=parseFloat(w)||null;const y=(b.match(/[a-z]+/)||[])[0]||"",T=(w.match(/[a-z]+/)||[])[0]||"",S=v.split(" ").map(parseFloat),O=S.length?{x:S[0],y:S[1],width:S[2],height:S[3]}:m;let I=_??O.width,M=E??O.height;f.style.overflow="visible",f.setAttribute("width",I),f.setAttribute("height",M);let N="";if(n&&n.length){const pe={width:I,height:M};N=n.sort(Fv).reduce((Ee,ne)=>{const le=hA(ne[0],ne[1]);return gA(le,ne[0],ne[1],pe),le.removeAttribute("id"),le.getAttribute("opacity")===1&&le.removeAttribute("opacity"),Ee+`
|
|
127
127
|
`+le.outerHTML+`
|
|
128
128
|
`},""),N=`
|
|
129
129
|
|
|
130
130
|
<g>${N.replace(/ /g," ")}</g>
|
|
131
131
|
|
|
132
|
-
`}const D=t.aspectRatio||M/I,k=I,Y=k*D,L=typeof t.scaleToFit>"u"||t.scaleToFit,G=t.center?t.center.x:.5,
|
|
132
|
+
`}const D=t.aspectRatio||M/I,k=I,Y=k*D,L=typeof t.scaleToFit>"u"||t.scaleToFit,G=t.center?t.center.x:.5,Z=t.center?t.center.y:.5,R=Pv({width:I,height:M},Nv({width:k,height:Y},D),t.rotation,L?{x:G,y:Z}:{x:.5,y:.5}),K=t.zoom*R,B=t.rotation*(180/Math.PI),W={x:k*.5,y:Y*.5},J={x:W.x-I*G,y:W.y-M*Z},q=[`rotate(${B} ${W.x} ${W.y})`,`translate(${W.x} ${W.y})`,`scale(${K})`,`translate(${-W.x} ${-W.y})`,`translate(${J.x} ${J.y})`],U=t.flip&&t.flip.horizontal,V=t.flip&&t.flip.vertical,ce=[`scale(${U?-1:1} ${V?-1:1})`,`translate(${U?-I:0} ${V?-M:0})`],ue=`<?xml version="1.0" encoding="UTF-8"?>
|
|
133
133
|
<svg width="${k}${y}" height="${Y}${T}"
|
|
134
134
|
viewBox="0 0 ${k} ${Y}" ${s?'style="background:'+s+'" ':""}
|
|
135
135
|
preserveAspectRatio="xMinYMin"
|
|
@@ -142,20 +142,20 @@ xmlns="http://www.w3.org/2000/svg">
|
|
|
142
142
|
${f.outerHTML}${N}
|
|
143
143
|
</g>
|
|
144
144
|
</g>
|
|
145
|
-
</svg>`;i(ue)},l.readAsText(e)}),vA=e=>{let t;try{t=new ImageData(e.width,e.height)}catch{t=document.createElement("canvas").getContext("2d").createImageData(e.width,e.height)}return t.data.set(e.data),t},bA=()=>{const e={resize:m,filter:f},t=(g,v)=>(g.forEach(b=>{v=e[b.type](v,b.data)}),v),n=(g,v)=>{let b=g.transforms,E=null;if(b.forEach(_=>{_.type==="filter"&&(E=_)}),E){let _=null;b.forEach(w=>{w.type==="resize"&&(_=w)}),_&&(_.data.matrix=E.data,b=b.filter(w=>w.type!=="filter"))}v(t(b,g.imageData))};self.onmessage=g=>{n(g.data.message,v=>{self.postMessage({id:g.data.id,message:v},[v.data.buffer])})};const r=1,i=1,s=1;function l(g,v,b){const E=v[g]/255,_=v[g+1]/255,w=v[g+2]/255,y=v[g+3]/255,T=E*b[0]+_*b[1]+w*b[2]+y*b[3]+b[4],S=E*b[5]+_*b[6]+w*b[7]+y*b[8]+b[9],O=E*b[10]+_*b[11]+w*b[12]+y*b[13]+b[14],I=E*b[15]+_*b[16]+w*b[17]+y*b[18]+b[19],M=Math.max(0,T*I)+r*(1-I),N=Math.max(0,S*I)+i*(1-I),D=Math.max(0,O*I)+s*(1-I);v[g]=Math.max(0,Math.min(1,M))*255,v[g+1]=Math.max(0,Math.min(1,N))*255,v[g+2]=Math.max(0,Math.min(1,D))*255}const c=self.JSON.stringify([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);function d(g){return self.JSON.stringify(g||[])===c}function f(g,v){if(!v||d(v))return g;const b=g.data,E=b.length,_=v[0],w=v[1],y=v[2],T=v[3],S=v[4],O=v[5],I=v[6],M=v[7],N=v[8],D=v[9],k=v[10],Y=v[11],L=v[12],G=v[13],X=v[14],R=v[15],K=v[16],B=v[17],W=v[18],J=v[19];let q=0,U=0,V=0,ce=0,ue=0,pe=0,we=0,ne=0,le=0,ge=0,be=0,he=0;for(;q<E;q+=4)U=b[q]/255,V=b[q+1]/255,ce=b[q+2]/255,ue=b[q+3]/255,pe=U*_+V*w+ce*y+ue*T+S,we=U*O+V*I+ce*M+ue*N+D,ne=U*k+V*Y+ce*L+ue*G+X,le=U*R+V*K+ce*B+ue*W+J,ge=Math.max(0,pe*le)+r*(1-le),be=Math.max(0,we*le)+i*(1-le),he=Math.max(0,ne*le)+s*(1-le),b[q]=Math.max(0,Math.min(1,ge))*255,b[q+1]=Math.max(0,Math.min(1,be))*255,b[q+2]=Math.max(0,Math.min(1,he))*255;return g}function m(g,v){let{mode:b="contain",upscale:E=!1,width:_,height:w,matrix:y}=v;if(y=!y||d(y)?null:y,!_&&!w)return f(g,y);if(_===null?_=w:w===null&&(w=_),b!=="force"){let G=_/g.width,X=w/g.height,R=1;if(b==="cover"?R=Math.max(G,X):b==="contain"&&(R=Math.min(G,X)),R>1&&E===!1)return f(g,y);_=g.width*R,w=g.height*R}const T=g.width,S=g.height,O=Math.round(_),I=Math.round(w),M=g.data,N=new Uint8ClampedArray(O*I*4),D=T/O,k=S/I,Y=Math.ceil(D*.5),L=Math.ceil(k*.5);for(let G=0;G<I;G++)for(let X=0;X<O;X++){let R=(X+G*O)*4,K=0,B=0,W=0,J=0,q=0,U=0,V=0,ce=(G+.5)*k;for(let ue=Math.floor(G*k);ue<(G+1)*k;ue++){let pe=Math.abs(ce-(ue+.5))/L,we=(X+.5)*D,ne=pe*pe;for(let le=Math.floor(X*D);le<(X+1)*D;le++){let ge=Math.abs(we-(le+.5))/Y,be=Math.sqrt(ne+ge*ge);if(be>=-1&&be<=1&&(K=2*be*be*be-3*be*be+1,K>0)){ge=4*(le+ue*T);let he=M[ge+3];V+=K*he,W+=K,he<255&&(K=K*he/250),J+=K*M[ge],q+=K*M[ge+1],U+=K*M[ge+2],B+=K}}}N[R]=J/B,N[R+1]=q/B,N[R+2]=U/B,N[R+3]=V/W,y&&l(R,N,y)}return{data:N,width:O,height:I}}},_A=(e,t)=>{if(e.getUint32(t+4,!1)!==1165519206)return;t+=4;const n=e.getUint16(t+=6,!1)===18761;t+=e.getUint32(t+4,n);const r=e.getUint16(t,n);t+=2;for(let i=0;i<r;i++)if(e.getUint16(t+i*12,n)===274)return e.setUint16(t+i*12+8,1,n),!0;return!1},xA=e=>{const t=new DataView(e);if(t.getUint16(0)!==65496)return null;let n=2,r,i,s=!1;for(;n<t.byteLength&&(r=t.getUint16(n,!1),i=t.getUint16(n+2,!1)+2,!(!(r>=65504&&r<=65519||r===65534)||(s||(s=_A(t,n)),n+i>t.byteLength)));)n+=i;return e.slice(0,n)},EA=e=>new Promise(t=>{const n=new FileReader;n.onload=()=>t(xA(n.result)||null),n.readAsArrayBuffer(e.slice(0,256*1024))}),wA=()=>window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,yA=(e,t)=>{const n=wA();if(n){const r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},CA=()=>Math.random().toString(36).substr(2,9),TA=e=>{const t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n),i=[];return{transfer:()=>{},post:(s,l,c)=>{const d=CA();i[d]=l,r.onmessage=f=>{const m=i[f.data.id];m&&(m(f.data.message),delete i[f.data.id])},r.postMessage({id:d,message:s},c)},terminate:()=>{r.terminate(),URL.revokeObjectURL(n)}}},SA=e=>new Promise((t,n)=>{const r=new Image;r.onload=()=>{t(r)},r.onerror=i=>{n(i)},r.src=e}),IA=e=>e.reduce((t,n)=>t.then(r=>n().then(Array.prototype.concat.bind(r))),Promise.resolve([])),AA=(e,t)=>new Promise(n=>{const r={width:e.width,height:e.height},i=e.getContext("2d"),s=t.sort(Bv).map(l=>()=>new Promise(c=>{OA[l[0]](i,r,l[1],c)&&c()}));IA(s).then(()=>n(e))}),Ho=(e,t)=>{e.beginPath(),e.lineCap=t["stroke-linecap"],e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],t["stroke-dasharray"].length&&e.setLineDash(t["stroke-dasharray"].split(",")),e.fillStyle=t.fill,e.strokeStyle=t.stroke,e.globalAlpha=t.opacity||1},Uo=e=>{e.fill(),e.stroke(),e.globalAlpha=1},OA={rect:(e,t,n)=>{const r=zo(n,t),i=Ji(n,t);return Ho(e,i),e.rect(r.x,r.y,r.width,r.height),Uo(e),!0},ellipse:(e,t,n)=>{const r=zo(n,t),i=Ji(n,t);Ho(e,i);const s=r.x,l=r.y,c=r.width,d=r.height,f=.5522848,m=c/2*f,g=d/2*f,v=s+c,b=l+d,E=s+c/2,_=l+d/2;return e.moveTo(s,_),e.bezierCurveTo(s,_-g,E-m,l,E,l),e.bezierCurveTo(E+m,l,v,_-g,v,_),e.bezierCurveTo(v,_+g,E+m,b,E,b),e.bezierCurveTo(E-m,b,s,_+g,s,_),Uo(e),!0},image:(e,t,n,r)=>{const i=zo(n,t),s=Ji(n,t);Ho(e,s);const l=new Image;new URL(n.src,window.location.href).origin!==window.location.origin&&(l.crossOrigin=""),l.onload=()=>{if(n.fit==="cover"){const d=i.width/i.height,f=d>1?l.width:l.height*d,m=d>1?l.width/d:l.height,g=l.width*.5-f*.5,v=l.height*.5-m*.5;e.drawImage(l,g,v,f,m,i.x,i.y,i.width,i.height)}else if(n.fit==="contain"){const d=Math.min(i.width/l.width,i.height/l.height),f=d*l.width,m=d*l.height,g=i.x+i.width*.5-f*.5,v=i.y+i.height*.5-m*.5;e.drawImage(l,0,0,l.width,l.height,g,v,f,m)}else e.drawImage(l,0,0,l.width,l.height,i.x,i.y,i.width,i.height);Uo(e),r()},l.src=n.src},text:(e,t,n)=>{const r=zo(n,t),i=Ji(n,t);Ho(e,i);const s=Pt(n.fontSize,t),l=n.fontFamily||"sans-serif",c=n.fontWeight||"normal",d=n.textAlign||"left";return e.font=`${c} ${s}px ${l}`,e.textAlign=d,e.fillText(n.text,r.x,r.y),Uo(e),!0},line:(e,t,n)=>{const r=zo(n,t),i=Ji(n,t);Ho(e,i),e.beginPath();const s={x:r.x,y:r.y},l={x:r.x+r.width,y:r.y+r.height};e.moveTo(s.x,s.y),e.lineTo(l.x,l.y);const c=Fv({x:l.x-s.x,y:l.y-s.y}),d=.04*Math.min(t.width,t.height);if(n.lineDecoration.indexOf("arrow-begin")!==-1){const f=Pl(c,d),m=Nl(s,f),g=fi(s,2,m),v=fi(s,-2,m);e.moveTo(g.x,g.y),e.lineTo(s.x,s.y),e.lineTo(v.x,v.y)}if(n.lineDecoration.indexOf("arrow-end")!==-1){const f=Pl(c,-d),m=Nl(l,f),g=fi(l,2,m),v=fi(l,-2,m);e.moveTo(g.x,g.y),e.lineTo(l.x,l.y),e.lineTo(v.x,v.y)}return Uo(e),!0},path:(e,t,n)=>{const r=Ji(n,t);Ho(e,r),e.beginPath();const i=n.points.map(l=>({x:Pt(l.x,t,1,"width"),y:Pt(l.y,t,1,"height")}));e.moveTo(i[0].x,i[0].y);const s=i.length;for(let l=1;l<s;l++)e.lineTo(i[l].x,i[l].y);return Uo(e),!0}},$A=e=>{const t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").putImageData(e,0,0),t},DA=(e,t,n={})=>new Promise((r,i)=>{if(!e||!VI(e))return i({status:"not an image file",file:e});const{stripImageHead:s,beforeCreateBlob:l,afterCreateBlob:c,canvasMemoryLimit:d}=n,{crop:f,size:m,filter:g,markup:v,output:b}=t,E=t.image&&t.image.orientation?Math.max(1,Math.min(8,t.image.orientation)):null,_=b&&b.quality,w=_===null?null:_/100,y=b&&b.type||null,T=b&&b.background||null,S=[];m&&(typeof m.width=="number"||typeof m.height=="number")&&S.push({type:"resize",data:m}),g&&g.length===20&&S.push({type:"filter",data:g});const O=N=>{const D=c?c(N):N;Promise.resolve(D).then(r)},I=(N,D)=>{const k=$A(N),Y=v.length?AA(k,v):k;Promise.resolve(Y).then(L=>{JI(L,D,l).then(G=>{if(jv(L),s)return O(G);EA(e).then(X=>{X!==null&&(G=new Blob([X,G.slice(20)],{type:G.type})),O(G)})}).catch(i)})};if(/svg/.test(e.type)&&y===null)return mA(e,f,v,{background:T}).then(N=>{r(yA(N,"image/svg+xml"))});const M=URL.createObjectURL(e);SA(M).then(N=>{URL.revokeObjectURL(M);const D=QI(N,E,f,{canvasMemoryLimit:d,background:T}),k={quality:w,type:y||e.type};if(!S.length)return I(D,k);const Y=TA(bA);Y.post({transforms:S,imageData:D},L=>{I(vA(L),k),Y.terminate()},[D.data.buffer])}).catch(i)}),MA=["x","y","left","top","right","bottom","width","height"],PA=e=>typeof e=="string"&&/%/.test(e)?parseFloat(e)/100:e,NA=e=>{const[t,n]=e,r=n.points?{}:MA.reduce((i,s)=>(i[s]=PA(n[s]),i),{});return[t,{zIndex:0,...n,...r}]},RA=e=>new Promise((t,n)=>{const r=new Image;r.src=URL.createObjectURL(e);const i=()=>{const l=r.naturalWidth,c=r.naturalHeight;l&&c&&(URL.revokeObjectURL(r.src),clearInterval(s),t({width:l,height:c}))};r.onerror=l=>{URL.revokeObjectURL(r.src),clearInterval(s),n(l)};const s=setInterval(i,1);i()});typeof window<"u"&&typeof window.document<"u"&&(HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){const r=this;setTimeout(()=>{const i=r.toDataURL(t,n).split(",")[1],s=atob(i);let l=s.length;const c=new Uint8Array(l);for(;l--;)c[l]=s.charCodeAt(l);e(new Blob([c],{type:t||"image/png"}))})}}));const yf=typeof window<"u"&&typeof window.document<"u",LA=yf&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,zv=({addFilter:e,utils:t})=>{const{Type:n,forin:r,getFileFromBlob:i,isFile:s}=t,l=["crop","resize","filter","markup","output"],c=m=>(g,v,b)=>g(v,m?m(b):b),d=m=>m.aspectRatio===null&&m.rotation===0&&m.zoom===1&&m.center&&m.center.x===.5&&m.center.y===.5&&m.flip&&m.flip.horizontal===!1&&m.flip.vertical===!1;e("SHOULD_PREPARE_OUTPUT",(m,{query:g})=>new Promise(v=>{v(!g("IS_ASYNC"))}));const f=(m,g,v)=>new Promise(b=>{if(!m("GET_ALLOW_IMAGE_TRANSFORM")||v.archived||!s(g)||!BI(g))return b(!1);RA(g).then(()=>{const E=m("GET_IMAGE_TRANSFORM_IMAGE_FILTER");if(E){const _=E(g);if(_==null)return handleRevert(!0);if(typeof _=="boolean")return b(_);if(typeof _.then=="function")return _.then(b)}b(!0)}).catch(E=>{b(!1)})});return e("DID_CREATE_ITEM",(m,{query:g,dispatch:v})=>{g("GET_ALLOW_IMAGE_TRANSFORM")&&m.extend("requestPrepare",()=>new Promise((b,E)=>{v("REQUEST_PREPARE_OUTPUT",{query:m.id,item:m,success:b,failure:E},!0)}))}),e("PREPARE_OUTPUT",(m,{query:g,item:v})=>new Promise(b=>{f(g,m,v).then(E=>{if(!E)return b(m);const _=[];g("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_ORIGINAL")&&_.push(()=>new Promise(D=>{D({name:g("GET_IMAGE_TRANSFORM_VARIANTS_ORIGINAL_NAME"),file:m})})),g("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_DEFAULT")&&_.push((D,k,Y)=>new Promise(L=>{D(k,Y).then(G=>L({name:g("GET_IMAGE_TRANSFORM_VARIANTS_DEFAULT_NAME"),file:G}))}));const w=g("GET_IMAGE_TRANSFORM_VARIANTS")||{};r(w,(D,k)=>{const Y=c(k);_.push((L,G,X)=>new Promise(R=>{Y(L,G,X).then(K=>R({name:D,file:K}))}))});const y=g("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY"),T=g("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY_MODE"),S=y===null?null:y/100,O=g("GET_IMAGE_TRANSFORM_OUTPUT_MIME_TYPE"),I=g("GET_IMAGE_TRANSFORM_CLIENT_TRANSFORMS")||l;v.setMetadata("output",{type:O,quality:S,client:I},!0);const M=(D,k)=>new Promise((Y,L)=>{const G={...k};Object.keys(G).filter(V=>V!=="exif").forEach(V=>{I.indexOf(V)===-1&&delete G[V]});const{resize:X,exif:R,output:K,crop:B,filter:W,markup:J}=G,q={image:{orientation:R?R.orientation:null},output:K&&(K.type||typeof K.quality=="number"||K.background)?{type:K.type,quality:typeof K.quality=="number"?K.quality*100:null,background:K.background||g("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR")||null}:void 0,size:X&&(X.size.width||X.size.height)?{mode:X.mode,upscale:X.upscale,...X.size}:void 0,crop:B&&!d(B)?{...B}:void 0,markup:J&&J.length?J.map(NA):[],filter:W};if(q.output){const V=K.type?K.type!==D.type:!1,ce=/\/jpe?g$/.test(D.type),ue=K.quality!==null?ce&&T==="always":!1;if(!!!(q.size||q.crop||q.filter||V||ue))return Y(D)}const U={beforeCreateBlob:g("GET_IMAGE_TRANSFORM_BEFORE_CREATE_BLOB"),afterCreateBlob:g("GET_IMAGE_TRANSFORM_AFTER_CREATE_BLOB"),canvasMemoryLimit:g("GET_IMAGE_TRANSFORM_CANVAS_MEMORY_LIMIT"),stripImageHead:g("GET_IMAGE_TRANSFORM_OUTPUT_STRIP_IMAGE_HEAD")};DA(D,q,U).then(V=>{const ce=i(V,HI(D.name,UI(V.type)));Y(ce)}).catch(L)}),N=_.map(D=>D(M,m,v.getMetadata()));Promise.all(N).then(D=>{b(D.length===1&&D[0].name===null?D[0].file:D)})})})),{options:{allowImageTransform:[!0,n.BOOLEAN],imageTransformImageFilter:[null,n.FUNCTION],imageTransformOutputMimeType:[null,n.STRING],imageTransformOutputQuality:[null,n.INT],imageTransformOutputStripImageHead:[!0,n.BOOLEAN],imageTransformClientTransforms:[null,n.ARRAY],imageTransformOutputQualityMode:["always",n.STRING],imageTransformVariants:[null,n.OBJECT],imageTransformVariantsIncludeDefault:[!0,n.BOOLEAN],imageTransformVariantsDefaultName:[null,n.STRING],imageTransformVariantsIncludeOriginal:[!1,n.BOOLEAN],imageTransformVariantsOriginalName:["original_",n.STRING],imageTransformBeforeCreateBlob:[null,n.FUNCTION],imageTransformAfterCreateBlob:[null,n.FUNCTION],imageTransformCanvasMemoryLimit:[yf&&LA?4096*4096:null,n.INT],imageTransformCanvasBackgroundColor:[null,n.STRING]}}};yf&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:zv})),wf(Ov,$v,zv);const Gv=p.forwardRef(({onAddFile:e,onError:t,acceptedFormats:n,maxFileSize:r},i)=>{const s=p.useRef(null);p.useImperativeHandle(i,()=>({browse:()=>{var c;(c=s.current)==null||c.browse()}}));const l=(c,d)=>{var v,b;const{file:f,fileExtension:m,fileSize:g}=d;if(g>r){(v=s.current)==null||v.removeFiles(),t("The file is too big. Please make sure the file is below 5 MB.");return}if(!n.includes(m.toLowerCase())){(b=s.current)==null||b.removeFiles(),t("Looks like this is one of the very few formats we don’t support. Please try .png, .jpg, .gif.");return}e(f)};return u.jsx(DI,{ref:s,credits:!1,allowMultiple:!1,maxFiles:1,server:"/api",instantUpload:!1,allowProcess:!1,onaddfile:l})}),bt={"input-text-field--container":"_input-text-field--container_gu1u8_1","input-text-field--input":"_input-text-field--input_gu1u8_9",resizer:"_resizer_gu1u8_10","input-text-field--size-lg":"_input-text-field--size-lg_gu1u8_21","input-text-field--size-md":"_input-text-field--size-md_gu1u8_26","input-text-field--size-sm":"_input-text-field--size-sm_gu1u8_31","input-text-field--input-error":"_input-text-field--input-error_gu1u8_47","input-text-field--content":"_input-text-field--content_gu1u8_64","input-text-field--outlined":"_input-text-field--outlined_gu1u8_78","input-text-field--filled":"_input-text-field--filled_gu1u8_84","input-text-field--helper-text":"_input-text-field--helper-text_gu1u8_90","input-text-field--label-text":"_input-text-field--label-text_gu1u8_94","input-text-field--disabled":"_input-text-field--disabled_gu1u8_98","input-text-field--no-resize":"_input-text-field--no-resize_gu1u8_103","input-text-field--icon-container":"_input-text-field--icon-container_gu1u8_107","input-text-field--icon":"_input-text-field--icon_gu1u8_107","input-text-field--left-icon":"_input-text-field--left-icon_gu1u8_122","input-text-field--right-icon":"_input-text-field--right-icon_gu1u8_126"},jA=({autoResize:e,value:t,children:n})=>e?u.jsx("div",{className:bt.resizer,"data-replicated-value":t,children:n}):u.jsx(u.Fragment,{children:n}),xr=p.forwardRef((e,t)=>{const{size:n="md",error:r,disabled:i,variant:s="outlined",label:l,placeholder:c,helperText:d,leftIcon:f,leftIconTwo:m,rightIcon:g,rightIconTwo:v,rows:b=1,resize:E=!1,autoResize:_=!0,value:w,defaultValue:y,onChange:T,className:S,inputClassName:O,contentClassName:I,...M}=e,N=(L,G)=>{switch(G){case"lg":return u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:bt["input-text-field--label-text"],children:L});default:case"md":return u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-800",className:bt["input-text-field--label-text"],children:L});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:bt["input-text-field--label-text"],children:L})}},[D,k]=p.useState(w??y??""),Y=p.useCallback(L=>{T==null||T(L),k(L.target.value)},[T]);return p.useEffect(()=>{k(w??"")},[w]),u.jsxs("div",{className:oe(bt["input-text-field--container"],i&&bt["input-text-field--disabled"],S),children:[l?N(l,n):null,u.jsxs("div",{className:oe(bt["input-text-field--content"],bt[`input-text-field--size-${n}`],bt[`input-text-field--${s}`],r&&bt["input-text-field--input-error"],I),children:[f||m?u.jsxs("div",{className:oe(bt["input-text-field--icon-container"],bt["input-text-field--left-icon"]),children:[f?u.jsx("span",{className:bt["input-text-field--icon"],children:f}):null,m?u.jsx("span",{className:oe(bt["input-text-field--icon"]),children:m}):null]}):null,u.jsx(jA,{autoResize:_,value:D||(c??""),children:u.jsx("textarea",{ref:t,className:oe(bt["input-text-field--input"],s==="filled"&&"bg--sand-200",i&&"cursor-not-allowed",!E&&bt["input-text-field--no-resize"],O),placeholder:c,disabled:i,rows:b,value:D,onChange:Y,...M})}),g||v?u.jsxs("div",{className:oe(bt["input-text-field--icon-container"],bt["input-text-field--right-icon"]),children:[g?u.jsx("span",{className:bt["input-text-field--icon"],children:g}):null,v?u.jsx("span",{className:oe(bt["input-text-field--icon"]),children:v}):null]}):null]}),d?u.jsx(He,{size:n!=="sm"?"md":"sm",fontWeight:"regular",color:r?"red-500":"gray-700",className:bt["input-text-field--helper-text"],children:d}):null]})});xr.displayName="TextFieldMultiline";const eo={"empty-state":"_empty-state_5pkj5_1","empty-state-input-container":"_empty-state-input-container_5pkj5_12",illustration:"_illustration_5pkj5_18"},Hv=p.forwardRef(({isCard:e,onConnect:t,onUploadImage:n,...r},i)=>{const s=p.useRef(null),[l,c]=p.useState(""),d=["jpeg","svg","png","jpg","gif"],f=5*1024*1024,m=p.useCallback(b=>{c(""),n&&n(b)},[n]),g=p.useCallback(b=>{c(b)},[]),v=p.useCallback(()=>{var b;(b=s.current)==null||b.browse()},[]);return u.jsxs("div",{ref:i,className:eo["empty-state"],...r,children:[u.jsx("div",{className:eo.illustration,children:u.jsx(dE,{})}),u.jsx("div",{style:{display:"none"},children:u.jsx(Gv,{ref:s,onAddFile:m,onError:g,acceptedFormats:d,maxFileSize:f})}),l&&u.jsx(ye,{color:"red-500",children:l}),e?u.jsx(gt,{variant:"text",size:"md",endIcon:u.jsx(TE,{}),onClick:v,children:"Upload Image"}):u.jsxs(u.Fragment,{children:[u.jsx(gt,{size:"md",endIcon:u.jsx(fE,{}),onClick:v,children:"Upload Image"}),u.jsx(ye,{color:"gray-700",size:"xs",children:"or connect URL"}),u.jsxs("div",{className:eo["empty-state-input-container"],children:[u.jsx(xr,{placeholder:"Insert image from URL",size:"md",rows:1,leftIcon:u.jsx(lh,{}),variant:"outlined",helperText:"Max. file size. 5 Mb",value:"image"}),u.jsx(gt,{size:"lg",variant:"outlined",style:{height:"33px",backgroundColor:"white"},children:"Connect"})]})]})]})});Hv.displayName="EmptyStateImage";const kA=()=>u.jsx("div",{className:eo["empty-state"],children:u.jsx(iE,{})}),FA=()=>u.jsxs("div",{className:eo["empty-state"],children:[u.jsx(lE,{}),u.jsx(ye,{fontWeight:"bold",color:"gray-700",size:"xs",children:"Drop it like it’s hot!"})]}),BA=()=>u.jsxs(u.Fragment,{children:["Embed any video hosted on YouTube or Vimeo ",u.jsx("br",{}),"or Google Drive"]}),zA=({onConnect:e})=>{const[t,n]=p.useState(""),r=()=>{e&&e(t)};return u.jsxs("div",{className:eo["empty-state"],children:[u.jsx(sE,{}),u.jsxs("div",{className:eo["empty-state-input-container"],children:[u.jsx(xr,{placeholder:"Insert video from URL",size:"md",rows:1,autoResize:!0,leftIcon:u.jsx(lh,{}),helperText:u.jsx(BA,{}),variant:"outlined",value:t,onChange:i=>n(i.target.value)}),u.jsx(gt,{size:"lg",variant:"outlined",style:{height:"33px",backgroundColor:"white"},onClick:r,children:"Connect"})]})]})},GA=p.forwardRef((e,t)=>{const{status:n,onConnect:r,onUploadImage:i,isCard:s}=e;let l;switch(n){case"text":l=u.jsx(kA,{});break;case"image":l=u.jsx(Hv,{onConnect:r,onUploadImage:i,isCard:s});break;case"video":l=u.jsx(zA,{onConnect:r});break;default:l=u.jsx(FA,{});break}return u.jsx("div",{ref:t,children:u.jsx("div",{children:l})})}),Ll=p.forwardRef((e,t)=>{const{status:n,onConnect:r,onUploadImage:i,isCard:s}=e;return u.jsx(GA,{status:n,onConnect:r,onUploadImage:i,isCard:s,ref:t})});Ll.displayName="EmptyState";const Uv={heading:"_heading_k87kj_1","heading--hero":"_heading--hero_k87kj_7","heading--h1":"_heading--h1_k87kj_11","heading--h2":"_heading--h2_k87kj_16","heading--h3":"_heading--h3_k87kj_21","heading--h4":"_heading--h4_k87kj_26","heading--h5":"_heading--h5_k87kj_31","heading--h6":"_heading--h6_k87kj_36","heading--weight-bold":"_heading--weight-bold_k87kj_41","heading--weight-semibold":"_heading--weight-semibold_k87kj_45","heading--weight-regular":"_heading--weight-regular_k87kj_49"},HA={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",hero:"h1"},Cf=p.forwardRef((e,t)=>{const{variant:n="h1",fontWeight:r="bold",color:i="gray-1000",...s}=e,l=HA[n];return s.className=oe(Uv.heading,Uv[`heading--${n}`],`text--weight-${r}`,`text--${i}`,s.className),u.jsx(l,{ref:t,...s})});Cf.displayName="Heading";const Vo={"image-container":"_image-container_1yfej_6",image:"_image_1yfej_1","image-description":"_image-description_1yfej_20","image-block-input-container":"_image-block-input-container_1yfej_27","image-block-instance-slot-container":"_image-block-instance-slot-container_1yfej_35","image-block-spinner":"_image-block-spinner_1yfej_42"},Vv=p.forwardRef((e,t)=>{const{image:n,altProps:r,urlWithVariables:i,fileName:s,isUploading:l,saveTitle:c,onDeleteImage:d,connectImage:f,uploadImage:m,onUrlChange:g,...v}=e,[b,E]=p.useState(n),[_,w]=p.useState(s);p.useEffect(()=>{E(n)},[n]),p.useEffect(()=>{w(s)},[s]);const y=()=>{d&&d(),E("")},T=()=>u.jsxs(u.Fragment,{children:["Describe the purpose of the image. Leave empty if it’s purely decorative. ",u.jsx("br",{}),"Max. 100 characters"]});return u.jsx($r,{...v,block:"image",ref:t,children:u.jsxs("div",{children:[u.jsxs("div",{className:Vo["image-block-instance-slot-container"],children:[u.jsx(Ya,{initialLabel:"Image"}),i?u.jsxs("div",{children:[" ",u.jsx(ye,{children:" The image to display will be determined based on the value of the "})," "]}):b?u.jsxs("div",{className:Vo["image-container"],children:[u.jsx("img",{src:b,alt:"",className:Vo.image,"data-testid":"block-image","aria-label":"Image"}),u.jsxs("div",{className:Vo["image-description"],children:[u.jsx(ye,{color:"gray-1000",size:"xs",children:_||"Image file name"}),u.jsx(st,{size:"sm",onClick:y,variant:"ghost",children:u.jsx(Gd,{})})]})]}):l?u.jsx("div",{className:Vo["image-block-spinner"],children:u.jsx("span",{children:u.jsx(ga,{})})}):u.jsx(Ll,{status:"image",onConnect:f,onUploadImage:m})]}),u.jsx("div",{className:Vo["image-block-input-container"],children:u.jsx(xr,{label:"Label",helperText:u.jsx(T,{}),placeholder:"Describe the image",rows:1,autoResize:!0,size:"md",variant:"filled",...r})})]})})});Vv.displayName="ImageBlock";const UA=30,VA=106,WA=p.forwardRef(({color:e="white",...t},n)=>u.jsxs("svg",{ref:n,width:VA,height:UA,role:"img",viewBox:"0 0 385 95",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2.16684H12.5898V14.8949H0V2.16684Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.29525 2.16684C2.6965 2.16684 0 4.97167 0 8.48284C0 12.09 2.6965 14.8949 6.29525 14.8949C9.894 14.8949 12.5905 12.09 12.5905 8.48284C12.5905 4.97167 9.894 2.16684 6.29525 2.16684Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M105.29 64.9361C96.1503 64.9361 89.1925 57.4078 89.1925 47.2361C89.1925 37.0644 96.1503 29.4357 105.29 29.4357C114.436 29.4357 121.393 37.0644 121.393 47.2361C121.393 57.4078 114.436 64.9361 105.29 64.9361ZM131.419 3.05176e-05H121.369V30.6154C117.265 24.76 110.677 21.1129 102.815 21.1129C88.8658 21.1129 78.745 32.2884 78.745 47.2447C78.745 61.2642 87.6557 71.9712 100.092 73.2427C100.966 73.3096 101.837 73.3765 102.711 73.3765H102.815C103.383 73.3765 103.954 73.3431 104.529 73.3096C104.832 73.2761 105.134 73.2427 105.403 73.2092H105.47C106.072 73.1423 106.68 73.0419 107.285 72.9081C108.022 72.7742 108.731 72.5735 109.433 72.3727C110.143 72.1385 110.845 71.9043 111.517 71.6032C112.126 71.3355 112.731 71.0678 113.332 70.7667C113.403 70.7332 113.437 70.6998 113.504 70.6663C114.778 69.9637 115.988 69.1606 117.1 68.2238C117.668 67.7553 118.21 67.2534 118.747 66.7516C119.215 66.2831 119.688 65.7812 120.088 65.2459C120.562 64.7105 120.999 64.1417 121.369 63.5729C122.441 62.0338 123.319 60.3608 123.957 58.554L124.653 60.5683L124.65 60.5749L128.727 72.3861H138.754L131.419 52.2402V3.05176e-05Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M150.04 73.3943H159.417V22.5952H150.04V73.3943Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M154.723 1.87726C150.975 1.87726 148.161 4.77952 148.161 8.41266C148.161 12.1452 150.975 15.0474 154.723 15.0474C158.474 15.0474 161.288 12.1452 161.288 8.41266C161.288 4.77952 158.474 1.87726 154.723 1.87726Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M260.652 66.787C251.609 66.787 244.708 59.1913 244.708 48.9298C244.708 38.6718 251.609 30.9749 260.652 30.9749C269.695 30.9749 276.599 38.6718 276.599 48.9298C276.599 59.1913 269.695 66.787 260.652 66.787ZM260.655 22.5952C245.586 22.5952 234.402 33.842 234.402 48.9355C234.402 64.029 245.586 75.2758 260.655 75.2758C275.728 75.2758 286.909 64.029 286.909 48.9355C286.909 33.842 275.728 22.5952 260.655 22.5952Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M300.98 60.1891C297.284 60.1891 294.417 62.9912 294.417 66.7263C294.417 70.4645 297.284 73.3593 300.98 73.3593C304.676 73.3593 307.544 70.4645 307.544 66.7263C307.544 62.9912 304.676 60.1891 300.98 60.1891Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M336.085 67.4672C330.765 67.4672 326.987 65.3953 326.987 60.2663C326.987 55.6299 330.665 52.2758 340.247 52.2758C344.021 52.2758 348.282 52.7685 352.056 53.4602C351.186 60.0672 345.087 67.4672 336.085 67.4672ZM340.353 22.5952C326.414 22.5952 319.157 29.9952 318.67 40.3511H328.546C328.934 34.0377 333.287 30.5857 340.353 30.5857C347.517 30.5857 352.066 35.023 352.066 41.8325V45.9728C347.421 45.2844 343.352 44.8896 340.061 44.8896C325.352 44.8896 316.932 50.7104 316.932 60.8706C316.932 70.6394 324.385 75.2758 333.387 75.2758C341.419 75.2758 347.901 71.7226 352.066 66.003V74.2871H361.939V42.423C361.939 29.9952 353.811 22.5952 340.353 22.5952Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M377.862 15.0474C381.614 15.0474 384.425 12.1452 384.425 8.40912C384.425 4.77952 381.614 1.87726 377.862 1.87726C374.11 1.87726 371.298 4.77952 371.298 8.40912C371.298 12.1452 374.11 15.0474 377.862 15.0474Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M373.183 73.3943H382.56V22.5952H373.183V73.3943Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.4961 22.5952V73.3943H32.3938V32.6759H59.4802V73.3943H69.3778V22.5952H22.4961Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M211.41 47.6021C211.41 57.1636 204.45 64.2598 195.305 64.2598C186.159 64.2598 179.165 57.1636 179.165 47.6021C179.165 38.0738 186.159 30.8777 195.305 30.8777C204.45 30.8777 211.41 38.0738 211.41 47.6021ZM228.793 23.5714H221.474L228.793 23.5614L221.467 23.5714H218.77L214.211 36.6943V36.6877C213.538 34.9219 212.597 33.2562 211.487 31.757C211.386 31.5904 211.285 31.4571 211.185 31.3572C210.882 30.9574 210.579 30.5909 210.21 30.2245C209.974 29.8913 209.668 29.6248 209.369 29.3249C209.234 29.1251 209.029 28.9252 208.828 28.7919C208.458 28.4254 208.058 28.059 207.654 27.7258C207.553 27.6592 207.486 27.5925 207.385 27.5259C206.877 27.0928 206.343 26.693 205.805 26.3599C205.196 25.9601 204.594 25.5936 203.922 25.2605C203.35 24.9273 202.745 24.6608 202.14 24.3943C201.464 24.1277 200.795 23.8612 200.089 23.6613C199.581 23.4947 199.046 23.3615 198.508 23.2282C198.441 23.2282 198.337 23.1949 198.239 23.1616C198.004 23.1283 197.765 23.0616 197.53 23.0283C196.958 22.9284 196.323 22.8284 195.718 22.7618C194.776 22.6618 193.835 22.5952 192.856 22.5952C178.906 22.5952 168.785 33.3228 168.785 47.6152C168.785 61.9408 178.906 72.6684 192.658 72.6684C200.422 72.6684 207.116 69.1703 211.42 63.3067V70.7028C211.42 79.8645 204.762 85.8946 195.109 85.8946C187.043 85.8946 181.058 81.1305 180.083 74.6007H169.962C171.34 85.9946 181.828 94.0902 195.109 94.0902C210.24 94.0902 221.474 84.1622 221.474 69.2369V43.5906L228.793 23.5714Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.86945 73.3943H11.2458V22.5952H1.86945V73.3943Z",fill:e})]})),Wv="Dialog",[qv,FF]=zt(Wv),[qA,ar]=qv(Wv),YA=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,c=p.useRef(null),d=p.useRef(null),[f=!1,m]=mn({prop:r,defaultProp:i,onChange:s});return p.createElement(qA,{scope:t,triggerRef:c,contentRef:d,contentId:Xn(),titleId:Xn(),descriptionId:Xn(),open:f,onOpenChange:m,onOpenToggle:p.useCallback(()=>m(g=>!g),[m]),modal:l},n)},ZA="DialogTrigger",XA=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ar(ZA,n),s=et(t,i.triggerRef);return p.createElement(Re.button,ae({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":If(i.open)},r,{ref:s,onClick:Ee(e.onClick,i.onOpenToggle)}))}),Yv="DialogPortal",[KA,Zv]=qv(Yv,{forceMount:void 0}),QA=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,s=ar(Yv,t);return p.createElement(KA,{scope:t,forceMount:n},p.Children.map(r,l=>p.createElement(sn,{present:n||s.open},p.createElement(Aa,{asChild:!0,container:i},l))))},Tf="DialogOverlay",JA=p.forwardRef((e,t)=>{const n=Zv(Tf,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=ar(Tf,e.__scopeDialog);return s.modal?p.createElement(sn,{present:r||s.open},p.createElement(eO,ae({},i,{ref:t}))):null}),eO=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ar(Tf,n);return p.createElement(La,{as:Ii,allowPinchZoom:!0,shards:[i.contentRef]},p.createElement(Re.div,ae({"data-state":If(i.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),to="DialogContent",Xv=p.forwardRef((e,t)=>{const n=Zv(to,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=ar(to,e.__scopeDialog);return p.createElement(sn,{present:r||s.open},s.modal?p.createElement(tO,ae({},i,{ref:t})):p.createElement(nO,ae({},i,{ref:t})))}),tO=p.forwardRef((e,t)=>{const n=ar(to,e.__scopeDialog),r=p.useRef(null),i=et(t,n.contentRef,r);return p.useEffect(()=>{const s=r.current;if(s)return Cd(s)},[]),p.createElement(Kv,ae({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&s.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,s=>s.preventDefault())}))}),nO=p.forwardRef((e,t)=>{const n=ar(to,e.__scopeDialog),r=p.useRef(!1),i=p.useRef(!1);return p.createElement(Kv,ae({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l;if((l=e.onCloseAutoFocus)===null||l===void 0||l.call(e,s),!s.defaultPrevented){var c;r.current||(c=n.triggerRef.current)===null||c===void 0||c.focus(),s.preventDefault()}r.current=!1,i.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)===null||l===void 0||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const d=s.target;((c=n.triggerRef.current)===null||c===void 0?void 0:c.contains(d))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}}))}),Kv=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...l}=e,c=ar(to,n),d=p.useRef(null),f=et(t,d);return od(),p.createElement(p.Fragment,null,p.createElement(ld,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s},p.createElement(us,ae({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":If(c.open)},l,{ref:f,onDismiss:()=>c.onOpenChange(!1)}))),!1)}),Sf="DialogTitle",rO=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ar(Sf,n);return p.createElement(Re.h2,ae({id:i.titleId},r,{ref:t}))}),Qv="DialogDescription",iO=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ar(Qv,n);return p.createElement(Re.p,ae({id:i.descriptionId},r,{ref:t}))}),Jv="DialogClose",e2=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ar(Jv,n);return p.createElement(Re.button,ae({type:"button"},r,{ref:t,onClick:Ee(e.onClick,()=>i.onOpenChange(!1))}))});function If(e){return e?"open":"closed"}q7("DialogTitleWarning",{contentName:to,titleName:Sf,docsSlug:"dialog"});const oO=YA,sO=XA,aO=QA,lO=JA,cO=Xv,t2=e2,Rr={"modal--trigger":"_modal--trigger_1u07z_1","modal--content":"_modal--content_1u07z_2","modal--children":"_modal--children_1u07z_23","modal--overlay":"_modal--overlay_1u07z_27","modal--description":"_modal--description_1u07z_34","modal--close-icon":"_modal--close-icon_1u07z_40","modal--footer":"_modal--footer_1u07z_49","modal--buttons":"_modal--buttons_1u07z_56","modal--buttons-right":"_modal--buttons-right_1u07z_61"},dO=oO,uO=p.forwardRef(({className:e,...t},n)=>u.jsx(sO,{ref:n,className:oe(Rr["modal--trigger"],e),...t})),n2=p.forwardRef((e,t)=>{const{title:n,description:r,closeIcon:i=!0,checkboxProps:s,leftButton:l,rightButton:c,className:d,children:f,...m}=e;return u.jsxs(aO,{children:[u.jsx(lO,{className:Rr["modal--overlay"]}),u.jsxs(cO,{ref:t,className:Rr["modal--content"],...m,children:[i&&u.jsx(t2,{asChild:!0,children:u.jsx(st,{className:Rr["modal--close-icon"],variant:"ghost",color:"primary",size:"xs",children:u.jsx(Ow,{})})}),u.jsxs("div",{className:Rr["modal--description"],children:[n&&(typeof n=="string"?u.jsx(Cf,{variant:"h5",fontWeight:"bold",color:"gray-1000",children:n}):n),r&&(typeof r=="string"?u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-1000",children:r}):r)]}),f&&u.jsx("div",{className:oe(Rr["modal--children"],d),children:f}),u.jsxs("div",{className:Rr["modal--footer"],children:[s&&u.jsx(Fi,{...s}),u.jsxs("div",{className:`${Rr["modal--buttons"]} ${s?"":Rr["modal--buttons-right"]}`,children:[l&&(i?u.jsx(gt,{...l}):u.jsx(t2,{asChild:!0,children:u.jsx(gt,{...l})})),c&&u.jsx(gt,{...c})]})]})]})]})});n2.displayName="ModalContent";const r2="Switch",[fO,zF]=zt(r2),[pO,hO]=fO(r2),gO=p.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:s,required:l,disabled:c,value:d="on",onCheckedChange:f,...m}=e,[g,v]=p.useState(null),b=et(t,T=>v(T)),E=p.useRef(!1),_=g?!!g.closest("form"):!0,[w=!1,y]=mn({prop:i,defaultProp:s,onChange:f});return p.createElement(pO,{scope:n,checked:w,disabled:c},p.createElement(Re.button,ae({type:"button",role:"switch","aria-checked":w,"aria-required":l,"data-state":i2(w),"data-disabled":c?"":void 0,disabled:c,value:d},m,{ref:b,onClick:Ee(e.onClick,T=>{y(S=>!S),_&&(E.current=T.isPropagationStopped(),E.current||T.stopPropagation())})})),_&&p.createElement(bO,{control:g,bubbles:!E.current,name:r,value:d,checked:w,required:l,disabled:c,style:{transform:"translateX(-100%)"}}))}),mO="SwitchThumb",vO=p.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,i=hO(mO,n);return p.createElement(Re.span,ae({"data-state":i2(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),bO=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,s=p.useRef(null),l=eu(n),c=Ia(t);return p.useEffect(()=>{const d=s.current,f=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&g){const v=new Event("click",{bubbles:r});g.call(d,n),d.dispatchEvent(v)}},[l,n,r]),p.createElement("input",ae({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function i2(e){return e?"checked":"unchecked"}const _O=gO,xO=vO,Hs={"toggle--container":"_toggle--container_kp2m5_1",toggle:"_toggle_kp2m5_1","toggle--disabled":"_toggle--disabled_kp2m5_26","toggle--content":"_toggle--content_kp2m5_30","toggle--label":"_toggle--label_kp2m5_45"},o2=e=>{const{id:t,small:n,label:r}=e;return u.jsx("label",{htmlFor:t,className:Hs["toggle--label"],children:n?u.jsx(He,{size:"md",children:r}):u.jsx(ye,{size:"sm",children:r})})},Us=p.forwardRef((e,t)=>{const{id:n,checked:r=!1,label:i,labelPosition:s="start",small:l=!1,required:c=!1,disabled:d,className:f,onCheckedChanged:m,...g}=e;return u.jsxs("div",{className:oe(d?"cursor-not-allowed":"cursor-pointer",Hs["toggle--container"],f),children:[i&&s==="end"?u.jsx(o2,{id:n,small:l,label:i}):null,u.jsx(_O,{ref:t,id:n,className:oe(Hs.toggle,d&&Hs["toggle--disabled"]),required:c,checked:r,disabled:d,onCheckedChange:m,...g,children:u.jsx(xO,{className:Hs["toggle--content"]})}),i&&s==="start"?u.jsx(o2,{id:n,small:l,label:i}):null]})});Us.displayName="Toggle";const Xt={"mail-block":"_mail-block_vqhat_1","mail-field-container":"_mail-field-container_vqhat_8","mail-field-container1":"_mail-field-container1_vqhat_9","input-wrapper":"_input-wrapper_vqhat_22","button-container":"_button-container_vqhat_26","mail-selectors":"_mail-selectors_vqhat_39","mail-selector":"_mail-selector_vqhat_39","body-header":"_body-header_vqhat_48"},s2=p.forwardRef((e,t)=>{const{isHtmlMode:n,successSelectorProps:r,errorSelectorProps:i,destinationConfig:s,destinationError:l,destinationErrorText:c,ccConfig:d,ccError:f,ccErrorText:m,senderConfig:g,senderError:v,senderErrorText:b,subjectConfig:E,subjectError:_,subjectErrorText:w,replyToConfig:y,replyToError:T,replyToErrorText:S,bodyConfig:O,bodyError:I,bodyErrorText:M,setIsHtmlMode:N,setShowCC:D,showCC:k,onDeleteBlock:Y,...L}=e;return u.jsx($r,{block:"mail",onDeleteBlock:Y,...L,ref:t,children:u.jsxs("div",{className:Xt["mail-block"],children:[u.jsxs("div",{className:Xt["mail-field-container1"],children:[u.jsx("div",{className:Xt["input-wrapper"],children:u.jsx(ln,{...s,label:"Destination",error:l,helperText:l?c:"You can insert multiple values separated by comma",placeholder:"Enter mail or {{variable}}",variant:"filled"})}),u.jsx("div",{className:Xt["button-container"],children:u.jsx(gt,{variant:"outlined",onClick:D,size:"md",children:k?"- Remove CC":"+ Add CC"})})]}),k&&u.jsx("div",{className:Xt["mail-field-container"],children:u.jsx(ln,{...d,label:"CC",error:f,helperText:f?m:"You can insert multiple values separated by comma",placeholder:"Enter mail or {{variable}}",variant:"filled"})}),u.jsx("div",{className:Xt["mail-field-container"],children:u.jsx(ln,{...g,label:"Sender name",error:v,helperText:v?b:"",placeholder:"Enter the name of sender",variant:"filled"})}),u.jsx("div",{className:Xt["mail-field-container"],children:u.jsx(ln,{...E,label:"Subject",error:_,helperText:_?w:"",placeholder:"Enter subject of email or {{variable}}",variant:"filled"})}),u.jsx("div",{className:Xt["mail-field-container"],children:u.jsx(ln,{...y,label:"Reply to",error:T,helperText:T?S:"",placeholder:"Enter an automated reply to",variant:"filled"})}),u.jsxs("div",{className:Xt["mail-field-container"],children:[u.jsxs("div",{className:Xt["body-header"],children:[u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:Xt["input-text-field--label-text"],children:"Body"}),u.jsx("div",{className:Xt["html-toggle"],children:u.jsx(Us,{label:"HTML",labelPosition:"end",small:!0,checked:n,onCheckedChanged:N})})]}),u.jsx(xr,{...O,placeholder:"Email body",error:I,helperText:I?M:"",rows:4,variant:"filled"})]}),u.jsx(gr,{color:"sand-300",horizontalMargin:!1,verticalMargin:"xs"}),u.jsxs("div",{className:Xt["mail-selectors"],children:[u.jsxs("div",{className:Xt["mail-selector"],children:[u.jsx(ye,{color:"gray-1000",size:"sm",children:"Success case"}),u.jsx(Ao,{label:"Choose destination",...r})]}),u.jsxs("div",{className:Xt["mail-selector"],children:[u.jsx(ye,{color:"gray-1000",size:"sm",children:"Error case"}),u.jsx(Ao,{label:"Choose destination",...i})]})]})]})})});s2.displayName="MailBlock";const Nt={"upload-block":"_upload-block_1lsxp_1","upload-field-container":"_upload-field-container_1lsxp_8","body-header":"_body-header_1lsxp_26","caption-checkbox":"_caption-checkbox_1lsxp_33","toggle-container":"_toggle-container_1lsxp_37","extra-options-container":"_extra-options-container_1lsxp_44","tooltip-description":"_tooltip-description_1lsxp_63"},Ue={"input-select":"_input-select_4r597_1","input-select--outlined":"_input-select--outlined_4r597_17","input-select--filled":"_input-select--filled_4r597_22","input-select--ghost":"_input-select--ghost_4r597_23","input-select--lg":"_input-select--lg_4r597_38","input-select--md":"_input-select--md_4r597_42","input-select--sm":"_input-select--sm_4r597_46","input-select--error":"_input-select--error_4r597_50","input-select--label":"_input-select--label_4r597_55","input-select--item-label-container":"_input-select--item-label-container_4r597_59","input-select--item-label":"_input-select--item-label_4r597_59","input-select--helper":"_input-select--helper_4r597_74","input-select--trigger-icon":"_input-select--trigger-icon_4r597_78","input-select--placeholder-container":"_input-select--placeholder-container_4r597_87","input-select--placeholder":"_input-select--placeholder_4r597_87","input-select--disabled":"_input-select--disabled_4r597_102","input-select--content":"_input-select--content_4r597_107",slideDownAndFade:"_slideDownAndFade_4r597_1",slideLeftAndFade:"_slideLeftAndFade_4r597_1",slideUpAndFade:"_slideUpAndFade_4r597_1",slideRightAndFade:"_slideRightAndFade_4r597_1",content:"_content_4r597_147","input-select--item":"_input-select--item_4r597_59","input-select--radio-group":"_input-select--radio-group_4r597_166","input-select--icon":"_input-select--icon_4r597_170","input-select--primitive-item":"_input-select--primitive-item_4r597_178","input-select--primitive-item-selected":"_input-select--primitive-item-selected_4r597_191","input-select--checkbox":"_input-select--checkbox_4r597_195","input-select--divider":"_input-select--divider_4r597_199"},pi={"radio--group-container":"_radio--group-container_zpvsw_2",radio:"_radio_zpvsw_2","radio--item":"_radio--item_zpvsw_22","radio--item-size-sm":"_radio--item-size-sm_zpvsw_51","radio--indicator":"_radio--indicator_zpvsw_75","radio--indicator-size-sm":"_radio--indicator-size-sm_zpvsw_76","radio--label":"_radio--label_zpvsw_111","radio--label-size-sm":"_radio--label-size-sm_zpvsw_123"},a2="Radio",[EO,l2]=zt(a2),[wO,yO]=EO(a2),CO=p.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:s,disabled:l,value:c="on",onCheck:d,...f}=e,[m,g]=p.useState(null),v=et(t,_=>g(_)),b=p.useRef(!1),E=m?!!m.closest("form"):!0;return p.createElement(wO,{scope:n,checked:i,disabled:l},p.createElement(Re.button,ae({type:"button",role:"radio","aria-checked":i,"data-state":c2(i),"data-disabled":l?"":void 0,disabled:l,value:c},f,{ref:v,onClick:Ee(e.onClick,_=>{i||d==null||d(),E&&(b.current=_.isPropagationStopped(),b.current||_.stopPropagation())})})),E&&p.createElement(IO,{control:m,bubbles:!b.current,name:r,value:c,checked:i,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),TO="RadioIndicator",SO=p.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,s=yO(TO,n);return p.createElement(sn,{present:r||s.checked},p.createElement(Re.span,ae({"data-state":c2(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:t})))}),IO=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,s=p.useRef(null),l=eu(n),c=Ia(t);return p.useEffect(()=>{const d=s.current,f=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&g){const v=new Event("click",{bubbles:r});g.call(d,n),d.dispatchEvent(v)}},[l,n,r]),p.createElement("input",ae({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function c2(e){return e?"checked":"unchecked"}const AO=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],d2="RadioGroup",[OO,ZF]=zt(d2,[xo,l2]),u2=xo(),f2=l2(),[$O,DO]=OO(d2),MO=p.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:s,required:l=!1,disabled:c=!1,orientation:d,dir:f,loop:m=!0,onValueChange:g,...v}=e,b=u2(n),E=ds(f),[_,w]=mn({prop:s,defaultProp:i,onChange:g});return p.createElement($O,{scope:n,name:r,required:l,disabled:c,value:_,onValueChange:w},p.createElement(Ed,ae({asChild:!0},b,{orientation:d,dir:E,loop:m}),p.createElement(Re.div,ae({role:"radiogroup","aria-required":l,"aria-orientation":d,"data-disabled":c?"":void 0,dir:E},v,{ref:t}))))}),PO="RadioGroupItem",NO=p.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...i}=e,s=DO(PO,n),l=s.disabled||r,c=u2(n),d=f2(n),f=p.useRef(null),m=et(t,f),g=s.value===i.value,v=p.useRef(!1);return p.useEffect(()=>{const b=_=>{AO.includes(_.key)&&(v.current=!0)},E=()=>v.current=!1;return document.addEventListener("keydown",b),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",E)}},[]),p.createElement(wd,ae({asChild:!0},c,{focusable:!l,active:g}),p.createElement(CO,ae({disabled:l,required:s.required,checked:g},d,i,{name:s.name,ref:m,onCheck:()=>s.onValueChange(i.value),onKeyDown:Ee(b=>{b.key==="Enter"&&b.preventDefault()}),onFocus:Ee(i.onFocus,()=>{var b;v.current&&((b=f.current)===null||b===void 0||b.click())})})))}),RO=p.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=f2(n);return p.createElement(SO,ae({},i,r,{ref:t}))}),LO=MO,jO=NO,kO=RO,Af=p.forwardRef((e,t)=>{const{id:n=`ch-${Math.random()}`,value:r,small:i,disabled:s,className:l,children:c,...d}=e,f=p.useMemo(()=>i?u.jsx(He,{size:"md",children:c}):u.jsx(ye,{size:"sm",children:c}),[c,i]);return u.jsxs("div",{className:oe(pi.radio,l),children:[u.jsx(jO,{ref:t,id:n,className:oe(i?pi["radio--item-size-sm"]:pi["radio--item"]),value:r,disabled:s,...d,children:u.jsx(kO,{className:i?pi["radio--indicator-size-sm"]:pi["radio--indicator"]})}),u.jsx("label",{className:i?pi["radio--label-size-sm"]:pi["radio--label"],htmlFor:n,children:typeof c=="string"?f:c})]})});Af.displayName="Radio";const p2=p.forwardRef((e,t)=>{const{value:n,defaultValue:r,small:i,onValueChange:s,children:l,...c}=e,d=p.Children.map(l,f=>p.cloneElement(f,{small:i}));return u.jsx(LO,{ref:t,className:pi["radio--group-container"],defaultValue:r,value:n,onValueChange:s,...c,children:d})}),Of=({option:e})=>{const{leftIcon:t,label:n,avatarProps:r,description:i,rightIcon:s}=e;return u.jsxs("div",{className:Ue["input-select--item"],children:[t&&u.jsx("span",{className:Ue["input-select--icon"],children:t}),r&&u.jsx($o,{...r}),u.jsxs("div",{className:Ue["input-select--item-label-container"],children:[n&&u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-1000",className:Ue["input-select--item-label"],children:n}),i&&u.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:Ue["input-select--item-label"],children:i})]}),s&&u.jsx("span",{className:Ue["input-select--icon"],children:s})]})},$f=p.forwardRef((e,t)=>{var X;const{label:n,helper:r,placeholder:i,initialValue:s,size:l="md",type:c="default",triggerProps:d,variant:f,error:m,disabled:g,onChange:v,options:b,className:E,contentClassName:_}=e,[w,y]=p.useState(!1),[T,S]=p.useState(s??[]);p.useEffect(()=>{w||s!==void 0&&S(s)},[w,s]);const O=p.useCallback((R,K)=>{(c==="checkbox"||c==="radio")&&K.preventDefault(),y(!0),c==="radio"||c==="default"?S(()=>{const B=[R];return v==null||v(B),B}):T.includes(R)?S(B=>{const W=B.filter(J=>J!==R);return v==null||v(W),W}):S(B=>{const W=[...B,R];return v==null||v(W),W})},[T,c,v]),I=p.useCallback((R,K)=>{const B=T.includes(R.value);let W=null;switch(c){case"radio":W=u.jsx(Ld,{onSelect:J=>O(R.value,J),className:oe(Ue["input-select--primitive-item"],B&&Ue["input-select--primitive-item-selected"]),...B?{"data-selected":"true"}:null,children:u.jsx(Af,{value:R.value,children:u.jsx(Of,{option:R})})});break;case"checkbox":W=u.jsx(Ld,{onSelect:J=>O(R.value,J),className:oe(Ue["input-select--primitive-item"],B&&Ue["input-select--primitive-item-selected"]),...B?{"data-selected":"true"}:null,children:u.jsx(Fi,{className:Ue["input-select--checkbox"],checked:B,children:u.jsx(Of,{option:R})})});break;default:case"default":W=u.jsx(Ld,{onSelect:J=>O(R.value,J),className:oe(Ue["input-select--primitive-item"],B&&Ue["input-select--primitive-item-selected"]),...B?{"data-selected":"true"}:null,children:u.jsx(Of,{option:R})});break}return u.jsxs(p.Fragment,{children:[W,R.hasBottomSeparator&&u.jsx(gr,{color:"gray-300",className:Ue["input-select--divider"]})]},K)},[O,T,c]),M=R=>b.find(K=>K.value===R),N=T.map(R=>{var K;return(K=M(R))==null?void 0:K.label}),D=T.map(R=>M(R)),k=N.length>0?N.join(", "):i,Y=D.length===1?(X=D[0])==null?void 0:X.leftIcon:null,L=p.useRef(null),G=p.useCallback(R=>{R&&setTimeout(()=>{var K,B,W;try{(W=(B=Array.from(((K=L.current)==null?void 0:K.querySelectorAll('[data-selected="true"]'))??[]))==null?void 0:B[0])==null||W.scrollIntoView({block:"center"})}catch{}},50)},[]);return u.jsx("div",{className:oe(g&&Ue["input-select--disabled"]),children:u.jsxs(Pd,{onOpenChange:G,children:[n&&FO(n,l),u.jsxs(Nd,{ref:t,className:oe(Ue["input-select"],Ue[`input-select--${f}`],Ue[`input-select--${l}`],m&&Ue["input-select--error"],g&&Ue["input-select--disabled"],E),disabled:g,...d,children:[u.jsxs("div",{className:Ue["input-select--placeholder-container"],children:[Y&&u.jsx("span",{className:Ue["input-select--trigger-icon"],children:Y}),BO(k,l,!!m)]}),u.jsx("span",{className:Ue["input-select--trigger-icon"],children:u.jsx(Iw,{})})]}),r&&(typeof r=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",color:m?"red-500":"gray-700",className:Ue["input-select--helper"],children:r}):r),u.jsx(tx,{children:u.jsx(Rd,{ref:L,className:oe(Ue["input-select--content"],_),align:"start",sideOffset:8,children:u.jsx(Fd,{children:u.jsx("div",{className:Ue.content,children:zO(c,b.map(I),T)})})})})]})})});$f.displayName="Select";const FO=(e,t)=>{switch(t){case"lg":return u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:Ue["input-select--label"],children:e});default:case"md":return u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-800",className:Ue["input-select--label"],children:e});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:Ue["input-select--label"],children:e})}},BO=(e,t,n)=>{switch(t){case"lg":return u.jsx(ye,{size:"sm",fontWeight:"regular",color:n?"red-300":"gray-800",className:Ue["input-select--placeholder"],children:e});default:case"md":return u.jsx(ye,{size:"xs",fontWeight:"regular",color:n?"red-300":"gray-800",className:Ue["input-select--placeholder"],children:e});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:n?"red-300":"gray-800",className:Ue["input-select--placeholder"],children:e})}},zO=(e,t,n)=>e==="radio"?u.jsx(p2,{className:Ue["input-select--radio-group"],value:n[0],children:t},n[0]):t,h2=p.forwardRef((e,t)=>{const{isCaption:n,setIsCaption:r,limitFileSize:i,setLimitFileSize:s,isMandatory:l,setIsMandatory:c,onDeleteBlock:d,optionalMessageText:f,setOptionalMessageText:m,fileVariableNameSelectorProps:g,skipButtonLabel:v,setSkipButtonLabel:b,skipButtonLabelMaxLength:E,skipButtonSelectorProps:_,...w}=e;return u.jsx($r,{block:"upload",onDeleteBlock:d,...w,ref:t,children:u.jsxs("div",{className:Nt["upload-block"],children:[u.jsxs("div",{className:Nt["upload-field-container"],children:[u.jsx("div",{className:Nt["body-header"],children:u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:Nt["input-text-field--label-text"],children:"Optional message for user"})}),u.jsx(xr,{placeholder:"Upload your document by clicking on the attachment icon",rows:2,variant:"filled",value:f,onBlur:y=>m(y.target.value)})]}),u.jsx("div",{className:Nt["caption-checkbox"],children:u.jsx(Fi,{small:!0,checked:n,onCheckedChange:y=>r(!n),label:"Caption"})}),u.jsxs("div",{className:Nt["upload-field-container"],children:[u.jsx("div",{className:Nt["body-header"],children:u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:Nt["input-text-field--label-text"],children:"File variable name"})}),u.jsx($f,{variant:"filled",placeholder:"Choose an option",...g})]}),u.jsx(gr,{color:"sand-300",horizontalMargin:!1,verticalMargin:"xs"}),u.jsxs("div",{className:Nt["extra-options-container"],children:[u.jsx("div",{className:Nt["upload-field-container"],children:u.jsxs("div",{className:Nt["toggle-container"],children:[u.jsx(Us,{label:"Max file size 5MB",labelPosition:"start",checked:i,onCheckedChanged:s}),u.jsx(g2,{icon:u.jsx(sh,{fontSize:16}),title:"Max file size",description:"Disabling the default option will set the max. file size to 25 MB"})]})}),u.jsx("div",{className:Nt["upload-field-container"],children:u.jsxs("div",{className:Nt["toggle-container"],children:[u.jsx(Us,{label:"Mandatory",labelPosition:"start",checked:l,onCheckedChanged:c}),u.jsx(g2,{icon:u.jsx(sh,{fontSize:16}),title:"Mandatory",description:"If the mandatory option is active, the user will necessarily have to upload a document to continue the conversation"})]})}),!l&&u.jsxs("div",{className:Nt["upload-field-container"],children:[u.jsx("div",{className:Nt["body-header"],children:u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:Nt["input-text-field--label-text"],children:"Skip button"})}),u.jsx(Mu,{buttonLabel:v,setButtonLabel:y=>b(y),buttonLabelMaxLength:E,selectorProps:_})]})]})]})})}),g2=({icon:e,title:t,description:n})=>u.jsxs(Io,{children:[u.jsx(Ri,{children:e}),u.jsx(Ni,{className:Nt["tooltip-description"],isDark:!0,description:n,title:t})]});h2.displayName="UploadBlock";const Er={"multiple-values--container":"_multiple-values--container_gd40l_1","multiple-values--content":"_multiple-values--content_gd40l_7","multiple-values--outlined":"_multiple-values--outlined_gd40l_16","multiple-values--filled":"_multiple-values--filled_gd40l_22","multiple-values--error":"_multiple-values--error_gd40l_28","multiple-values--helper-text":"_multiple-values--helper-text_gd40l_32","multiple-values--label-text":"_multiple-values--label-text_gd40l_36","multiple-values--size-lg":"_multiple-values--size-lg_gd40l_46","multiple-values--size-md":"_multiple-values--size-md_gd40l_50","multiple-values--size-sm":"_multiple-values--size-sm_gd40l_54",EmptyTags:"_EmptyTags_gd40l_60",InputDisabled:"_InputDisabled_gd40l_64"};var Df={exports:{}},jl={exports:{}},Ze={};/** @license React v16.13.1
|
|
145
|
+
</svg>`;i(ue)},l.readAsText(e)}),vA=e=>{let t;try{t=new ImageData(e.width,e.height)}catch{t=document.createElement("canvas").getContext("2d").createImageData(e.width,e.height)}return t.data.set(e.data),t},bA=()=>{const e={resize:m,filter:f},t=(g,v)=>(g.forEach(b=>{v=e[b.type](v,b.data)}),v),n=(g,v)=>{let b=g.transforms,w=null;if(b.forEach(_=>{_.type==="filter"&&(w=_)}),w){let _=null;b.forEach(E=>{E.type==="resize"&&(_=E)}),_&&(_.data.matrix=w.data,b=b.filter(E=>E.type!=="filter"))}v(t(b,g.imageData))};self.onmessage=g=>{n(g.data.message,v=>{self.postMessage({id:g.data.id,message:v},[v.data.buffer])})};const r=1,i=1,s=1;function l(g,v,b){const w=v[g]/255,_=v[g+1]/255,E=v[g+2]/255,y=v[g+3]/255,T=w*b[0]+_*b[1]+E*b[2]+y*b[3]+b[4],S=w*b[5]+_*b[6]+E*b[7]+y*b[8]+b[9],O=w*b[10]+_*b[11]+E*b[12]+y*b[13]+b[14],I=w*b[15]+_*b[16]+E*b[17]+y*b[18]+b[19],M=Math.max(0,T*I)+r*(1-I),N=Math.max(0,S*I)+i*(1-I),D=Math.max(0,O*I)+s*(1-I);v[g]=Math.max(0,Math.min(1,M))*255,v[g+1]=Math.max(0,Math.min(1,N))*255,v[g+2]=Math.max(0,Math.min(1,D))*255}const c=self.JSON.stringify([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]);function d(g){return self.JSON.stringify(g||[])===c}function f(g,v){if(!v||d(v))return g;const b=g.data,w=b.length,_=v[0],E=v[1],y=v[2],T=v[3],S=v[4],O=v[5],I=v[6],M=v[7],N=v[8],D=v[9],k=v[10],Y=v[11],L=v[12],G=v[13],Z=v[14],R=v[15],K=v[16],B=v[17],W=v[18],J=v[19];let q=0,U=0,V=0,ce=0,ue=0,pe=0,Ee=0,ne=0,le=0,ge=0,be=0,he=0;for(;q<w;q+=4)U=b[q]/255,V=b[q+1]/255,ce=b[q+2]/255,ue=b[q+3]/255,pe=U*_+V*E+ce*y+ue*T+S,Ee=U*O+V*I+ce*M+ue*N+D,ne=U*k+V*Y+ce*L+ue*G+Z,le=U*R+V*K+ce*B+ue*W+J,ge=Math.max(0,pe*le)+r*(1-le),be=Math.max(0,Ee*le)+i*(1-le),he=Math.max(0,ne*le)+s*(1-le),b[q]=Math.max(0,Math.min(1,ge))*255,b[q+1]=Math.max(0,Math.min(1,be))*255,b[q+2]=Math.max(0,Math.min(1,he))*255;return g}function m(g,v){let{mode:b="contain",upscale:w=!1,width:_,height:E,matrix:y}=v;if(y=!y||d(y)?null:y,!_&&!E)return f(g,y);if(_===null?_=E:E===null&&(E=_),b!=="force"){let G=_/g.width,Z=E/g.height,R=1;if(b==="cover"?R=Math.max(G,Z):b==="contain"&&(R=Math.min(G,Z)),R>1&&w===!1)return f(g,y);_=g.width*R,E=g.height*R}const T=g.width,S=g.height,O=Math.round(_),I=Math.round(E),M=g.data,N=new Uint8ClampedArray(O*I*4),D=T/O,k=S/I,Y=Math.ceil(D*.5),L=Math.ceil(k*.5);for(let G=0;G<I;G++)for(let Z=0;Z<O;Z++){let R=(Z+G*O)*4,K=0,B=0,W=0,J=0,q=0,U=0,V=0,ce=(G+.5)*k;for(let ue=Math.floor(G*k);ue<(G+1)*k;ue++){let pe=Math.abs(ce-(ue+.5))/L,Ee=(Z+.5)*D,ne=pe*pe;for(let le=Math.floor(Z*D);le<(Z+1)*D;le++){let ge=Math.abs(Ee-(le+.5))/Y,be=Math.sqrt(ne+ge*ge);if(be>=-1&&be<=1&&(K=2*be*be*be-3*be*be+1,K>0)){ge=4*(le+ue*T);let he=M[ge+3];V+=K*he,W+=K,he<255&&(K=K*he/250),J+=K*M[ge],q+=K*M[ge+1],U+=K*M[ge+2],B+=K}}}N[R]=J/B,N[R+1]=q/B,N[R+2]=U/B,N[R+3]=V/W,y&&l(R,N,y)}return{data:N,width:O,height:I}}},_A=(e,t)=>{if(e.getUint32(t+4,!1)!==1165519206)return;t+=4;const n=e.getUint16(t+=6,!1)===18761;t+=e.getUint32(t+4,n);const r=e.getUint16(t,n);t+=2;for(let i=0;i<r;i++)if(e.getUint16(t+i*12,n)===274)return e.setUint16(t+i*12+8,1,n),!0;return!1},xA=e=>{const t=new DataView(e);if(t.getUint16(0)!==65496)return null;let n=2,r,i,s=!1;for(;n<t.byteLength&&(r=t.getUint16(n,!1),i=t.getUint16(n+2,!1)+2,!(!(r>=65504&&r<=65519||r===65534)||(s||(s=_A(t,n)),n+i>t.byteLength)));)n+=i;return e.slice(0,n)},wA=e=>new Promise(t=>{const n=new FileReader;n.onload=()=>t(xA(n.result)||null),n.readAsArrayBuffer(e.slice(0,256*1024))}),EA=()=>window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,yA=(e,t)=>{const n=EA();if(n){const r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},CA=()=>Math.random().toString(36).substr(2,9),TA=e=>{const t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n),i=[];return{transfer:()=>{},post:(s,l,c)=>{const d=CA();i[d]=l,r.onmessage=f=>{const m=i[f.data.id];m&&(m(f.data.message),delete i[f.data.id])},r.postMessage({id:d,message:s},c)},terminate:()=>{r.terminate(),URL.revokeObjectURL(n)}}},SA=e=>new Promise((t,n)=>{const r=new Image;r.onload=()=>{t(r)},r.onerror=i=>{n(i)},r.src=e}),IA=e=>e.reduce((t,n)=>t.then(r=>n().then(Array.prototype.concat.bind(r))),Promise.resolve([])),AA=(e,t)=>new Promise(n=>{const r={width:e.width,height:e.height},i=e.getContext("2d"),s=t.sort(Fv).map(l=>()=>new Promise(c=>{OA[l[0]](i,r,l[1],c)&&c()}));IA(s).then(()=>n(e))}),Ho=(e,t)=>{e.beginPath(),e.lineCap=t["stroke-linecap"],e.lineJoin=t["stroke-linejoin"],e.lineWidth=t["stroke-width"],t["stroke-dasharray"].length&&e.setLineDash(t["stroke-dasharray"].split(",")),e.fillStyle=t.fill,e.strokeStyle=t.stroke,e.globalAlpha=t.opacity||1},Uo=e=>{e.fill(),e.stroke(),e.globalAlpha=1},OA={rect:(e,t,n)=>{const r=zo(n,t),i=Ji(n,t);return Ho(e,i),e.rect(r.x,r.y,r.width,r.height),Uo(e),!0},ellipse:(e,t,n)=>{const r=zo(n,t),i=Ji(n,t);Ho(e,i);const s=r.x,l=r.y,c=r.width,d=r.height,f=.5522848,m=c/2*f,g=d/2*f,v=s+c,b=l+d,w=s+c/2,_=l+d/2;return e.moveTo(s,_),e.bezierCurveTo(s,_-g,w-m,l,w,l),e.bezierCurveTo(w+m,l,v,_-g,v,_),e.bezierCurveTo(v,_+g,w+m,b,w,b),e.bezierCurveTo(w-m,b,s,_+g,s,_),Uo(e),!0},image:(e,t,n,r)=>{const i=zo(n,t),s=Ji(n,t);Ho(e,s);const l=new Image;new URL(n.src,window.location.href).origin!==window.location.origin&&(l.crossOrigin=""),l.onload=()=>{if(n.fit==="cover"){const d=i.width/i.height,f=d>1?l.width:l.height*d,m=d>1?l.width/d:l.height,g=l.width*.5-f*.5,v=l.height*.5-m*.5;e.drawImage(l,g,v,f,m,i.x,i.y,i.width,i.height)}else if(n.fit==="contain"){const d=Math.min(i.width/l.width,i.height/l.height),f=d*l.width,m=d*l.height,g=i.x+i.width*.5-f*.5,v=i.y+i.height*.5-m*.5;e.drawImage(l,0,0,l.width,l.height,g,v,f,m)}else e.drawImage(l,0,0,l.width,l.height,i.x,i.y,i.width,i.height);Uo(e),r()},l.src=n.src},text:(e,t,n)=>{const r=zo(n,t),i=Ji(n,t);Ho(e,i);const s=Pt(n.fontSize,t),l=n.fontFamily||"sans-serif",c=n.fontWeight||"normal",d=n.textAlign||"left";return e.font=`${c} ${s}px ${l}`,e.textAlign=d,e.fillText(n.text,r.x,r.y),Uo(e),!0},line:(e,t,n)=>{const r=zo(n,t),i=Ji(n,t);Ho(e,i),e.beginPath();const s={x:r.x,y:r.y},l={x:r.x+r.width,y:r.y+r.height};e.moveTo(s.x,s.y),e.lineTo(l.x,l.y);const c=kv({x:l.x-s.x,y:l.y-s.y}),d=.04*Math.min(t.width,t.height);if(n.lineDecoration.indexOf("arrow-begin")!==-1){const f=Ml(c,d),m=Pl(s,f),g=fi(s,2,m),v=fi(s,-2,m);e.moveTo(g.x,g.y),e.lineTo(s.x,s.y),e.lineTo(v.x,v.y)}if(n.lineDecoration.indexOf("arrow-end")!==-1){const f=Ml(c,-d),m=Pl(l,f),g=fi(l,2,m),v=fi(l,-2,m);e.moveTo(g.x,g.y),e.lineTo(l.x,l.y),e.lineTo(v.x,v.y)}return Uo(e),!0},path:(e,t,n)=>{const r=Ji(n,t);Ho(e,r),e.beginPath();const i=n.points.map(l=>({x:Pt(l.x,t,1,"width"),y:Pt(l.y,t,1,"height")}));e.moveTo(i[0].x,i[0].y);const s=i.length;for(let l=1;l<s;l++)e.lineTo(i[l].x,i[l].y);return Uo(e),!0}},$A=e=>{const t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").putImageData(e,0,0),t},DA=(e,t,n={})=>new Promise((r,i)=>{if(!e||!VI(e))return i({status:"not an image file",file:e});const{stripImageHead:s,beforeCreateBlob:l,afterCreateBlob:c,canvasMemoryLimit:d}=n,{crop:f,size:m,filter:g,markup:v,output:b}=t,w=t.image&&t.image.orientation?Math.max(1,Math.min(8,t.image.orientation)):null,_=b&&b.quality,E=_===null?null:_/100,y=b&&b.type||null,T=b&&b.background||null,S=[];m&&(typeof m.width=="number"||typeof m.height=="number")&&S.push({type:"resize",data:m}),g&&g.length===20&&S.push({type:"filter",data:g});const O=N=>{const D=c?c(N):N;Promise.resolve(D).then(r)},I=(N,D)=>{const k=$A(N),Y=v.length?AA(k,v):k;Promise.resolve(Y).then(L=>{JI(L,D,l).then(G=>{if(Lv(L),s)return O(G);wA(e).then(Z=>{Z!==null&&(G=new Blob([Z,G.slice(20)],{type:G.type})),O(G)})}).catch(i)})};if(/svg/.test(e.type)&&y===null)return mA(e,f,v,{background:T}).then(N=>{r(yA(N,"image/svg+xml"))});const M=URL.createObjectURL(e);SA(M).then(N=>{URL.revokeObjectURL(M);const D=QI(N,w,f,{canvasMemoryLimit:d,background:T}),k={quality:E,type:y||e.type};if(!S.length)return I(D,k);const Y=TA(bA);Y.post({transforms:S,imageData:D},L=>{I(vA(L),k),Y.terminate()},[D.data.buffer])}).catch(i)}),MA=["x","y","left","top","right","bottom","width","height"],PA=e=>typeof e=="string"&&/%/.test(e)?parseFloat(e)/100:e,NA=e=>{const[t,n]=e,r=n.points?{}:MA.reduce((i,s)=>(i[s]=PA(n[s]),i),{});return[t,{zIndex:0,...n,...r}]},RA=e=>new Promise((t,n)=>{const r=new Image;r.src=URL.createObjectURL(e);const i=()=>{const l=r.naturalWidth,c=r.naturalHeight;l&&c&&(URL.revokeObjectURL(r.src),clearInterval(s),t({width:l,height:c}))};r.onerror=l=>{URL.revokeObjectURL(r.src),clearInterval(s),n(l)};const s=setInterval(i,1);i()});typeof window<"u"&&typeof window.document<"u"&&(HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){const r=this;setTimeout(()=>{const i=r.toDataURL(t,n).split(",")[1],s=atob(i);let l=s.length;const c=new Uint8Array(l);for(;l--;)c[l]=s.charCodeAt(l);e(new Blob([c],{type:t||"image/png"}))})}}));const Ef=typeof window<"u"&&typeof window.document<"u",LA=Ef&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Bv=({addFilter:e,utils:t})=>{const{Type:n,forin:r,getFileFromBlob:i,isFile:s}=t,l=["crop","resize","filter","markup","output"],c=m=>(g,v,b)=>g(v,m?m(b):b),d=m=>m.aspectRatio===null&&m.rotation===0&&m.zoom===1&&m.center&&m.center.x===.5&&m.center.y===.5&&m.flip&&m.flip.horizontal===!1&&m.flip.vertical===!1;e("SHOULD_PREPARE_OUTPUT",(m,{query:g})=>new Promise(v=>{v(!g("IS_ASYNC"))}));const f=(m,g,v)=>new Promise(b=>{if(!m("GET_ALLOW_IMAGE_TRANSFORM")||v.archived||!s(g)||!BI(g))return b(!1);RA(g).then(()=>{const w=m("GET_IMAGE_TRANSFORM_IMAGE_FILTER");if(w){const _=w(g);if(_==null)return handleRevert(!0);if(typeof _=="boolean")return b(_);if(typeof _.then=="function")return _.then(b)}b(!0)}).catch(w=>{b(!1)})});return e("DID_CREATE_ITEM",(m,{query:g,dispatch:v})=>{g("GET_ALLOW_IMAGE_TRANSFORM")&&m.extend("requestPrepare",()=>new Promise((b,w)=>{v("REQUEST_PREPARE_OUTPUT",{query:m.id,item:m,success:b,failure:w},!0)}))}),e("PREPARE_OUTPUT",(m,{query:g,item:v})=>new Promise(b=>{f(g,m,v).then(w=>{if(!w)return b(m);const _=[];g("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_ORIGINAL")&&_.push(()=>new Promise(D=>{D({name:g("GET_IMAGE_TRANSFORM_VARIANTS_ORIGINAL_NAME"),file:m})})),g("GET_IMAGE_TRANSFORM_VARIANTS_INCLUDE_DEFAULT")&&_.push((D,k,Y)=>new Promise(L=>{D(k,Y).then(G=>L({name:g("GET_IMAGE_TRANSFORM_VARIANTS_DEFAULT_NAME"),file:G}))}));const E=g("GET_IMAGE_TRANSFORM_VARIANTS")||{};r(E,(D,k)=>{const Y=c(k);_.push((L,G,Z)=>new Promise(R=>{Y(L,G,Z).then(K=>R({name:D,file:K}))}))});const y=g("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY"),T=g("GET_IMAGE_TRANSFORM_OUTPUT_QUALITY_MODE"),S=y===null?null:y/100,O=g("GET_IMAGE_TRANSFORM_OUTPUT_MIME_TYPE"),I=g("GET_IMAGE_TRANSFORM_CLIENT_TRANSFORMS")||l;v.setMetadata("output",{type:O,quality:S,client:I},!0);const M=(D,k)=>new Promise((Y,L)=>{const G={...k};Object.keys(G).filter(V=>V!=="exif").forEach(V=>{I.indexOf(V)===-1&&delete G[V]});const{resize:Z,exif:R,output:K,crop:B,filter:W,markup:J}=G,q={image:{orientation:R?R.orientation:null},output:K&&(K.type||typeof K.quality=="number"||K.background)?{type:K.type,quality:typeof K.quality=="number"?K.quality*100:null,background:K.background||g("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR")||null}:void 0,size:Z&&(Z.size.width||Z.size.height)?{mode:Z.mode,upscale:Z.upscale,...Z.size}:void 0,crop:B&&!d(B)?{...B}:void 0,markup:J&&J.length?J.map(NA):[],filter:W};if(q.output){const V=K.type?K.type!==D.type:!1,ce=/\/jpe?g$/.test(D.type),ue=K.quality!==null?ce&&T==="always":!1;if(!!!(q.size||q.crop||q.filter||V||ue))return Y(D)}const U={beforeCreateBlob:g("GET_IMAGE_TRANSFORM_BEFORE_CREATE_BLOB"),afterCreateBlob:g("GET_IMAGE_TRANSFORM_AFTER_CREATE_BLOB"),canvasMemoryLimit:g("GET_IMAGE_TRANSFORM_CANVAS_MEMORY_LIMIT"),stripImageHead:g("GET_IMAGE_TRANSFORM_OUTPUT_STRIP_IMAGE_HEAD")};DA(D,q,U).then(V=>{const ce=i(V,HI(D.name,UI(V.type)));Y(ce)}).catch(L)}),N=_.map(D=>D(M,m,v.getMetadata()));Promise.all(N).then(D=>{b(D.length===1&&D[0].name===null?D[0].file:D)})})})),{options:{allowImageTransform:[!0,n.BOOLEAN],imageTransformImageFilter:[null,n.FUNCTION],imageTransformOutputMimeType:[null,n.STRING],imageTransformOutputQuality:[null,n.INT],imageTransformOutputStripImageHead:[!0,n.BOOLEAN],imageTransformClientTransforms:[null,n.ARRAY],imageTransformOutputQualityMode:["always",n.STRING],imageTransformVariants:[null,n.OBJECT],imageTransformVariantsIncludeDefault:[!0,n.BOOLEAN],imageTransformVariantsDefaultName:[null,n.STRING],imageTransformVariantsIncludeOriginal:[!1,n.BOOLEAN],imageTransformVariantsOriginalName:["original_",n.STRING],imageTransformBeforeCreateBlob:[null,n.FUNCTION],imageTransformAfterCreateBlob:[null,n.FUNCTION],imageTransformCanvasMemoryLimit:[Ef&&LA?4096*4096:null,n.INT],imageTransformCanvasBackgroundColor:[null,n.STRING]}}};Ef&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Bv})),wf(Av,Ov,Bv);const zv=p.forwardRef(({onAddFile:e,onError:t,acceptedFormats:n,maxFileSize:r},i)=>{const s=p.useRef(null);p.useImperativeHandle(i,()=>({browse:()=>{var c;(c=s.current)==null||c.browse()}}));const l=(c,d)=>{var v,b;const{file:f,fileExtension:m,fileSize:g}=d;if(g>r){(v=s.current)==null||v.removeFiles(),t("The file is too big. Please make sure the file is below 5 MB.");return}if(!n.includes(m.toLowerCase())){(b=s.current)==null||b.removeFiles(),t("Looks like this is one of the very few formats we don’t support. Please try .png, .jpg, .gif.");return}e(f)};return u.jsx(DI,{ref:s,credits:!1,allowMultiple:!1,maxFiles:1,server:"/api",instantUpload:!1,allowProcess:!1,onaddfile:l})}),at={"input-text-field--container":"_input-text-field--container_1wwik_1","input-text-field--input":"_input-text-field--input_1wwik_9",resizer:"_resizer_1wwik_10","input-text-field--size-lg":"_input-text-field--size-lg_1wwik_21","input-text-field--size-md":"_input-text-field--size-md_1wwik_26","input-text-field--size-sm":"_input-text-field--size-sm_1wwik_31","input-text-field--input-error":"_input-text-field--input-error_1wwik_47","input-text-field--input-content-container":"_input-text-field--input-content-container_1wwik_64","input-text-field--tags-container":"_input-text-field--tags-container_1wwik_72","input-text-field--content":"_input-text-field--content_1wwik_79","input-text-field--outlined":"_input-text-field--outlined_1wwik_95","input-text-field--filled":"_input-text-field--filled_1wwik_101","input-text-field--helper-text":"_input-text-field--helper-text_1wwik_107","input-text-field--label-text":"_input-text-field--label-text_1wwik_111","input-text-field--disabled":"_input-text-field--disabled_1wwik_115","input-text-field--no-resize":"_input-text-field--no-resize_1wwik_120","input-text-field--icon-container":"_input-text-field--icon-container_1wwik_124","input-text-field--icon":"_input-text-field--icon_1wwik_124","input-text-field--left-icon":"_input-text-field--left-icon_1wwik_145","input-text-field--right-icon":"_input-text-field--right-icon_1wwik_149","input-container":"_input-container_1wwik_187","input-container--column":"_input-container--column_1wwik_191"},jA=({autoResize:e,value:t,children:n})=>e?u.jsx("div",{className:at.resizer,"data-replicated-value":t,children:n}):u.jsx(u.Fragment,{children:n}),xr=p.forwardRef((e,t)=>{const{size:n="md",error:r,disabled:i,variant:s="outlined",label:l,placeholder:c,helperText:d,leftIcon:f,leftIconTwo:m,rightIcon:g,rightIconTwo:v,rows:b=1,resize:w=!1,autoResize:_=!0,value:E,defaultValue:y,onChange:T,className:S,inputClassName:O,contentClassName:I,tags:M=[],onTagsChange:N,...D}=e,k=(Z,R)=>{switch(R){case"lg":return u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:at["input-text-field--label-text"],children:Z});default:case"md":return u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-800",className:at["input-text-field--label-text"],children:Z});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:at["input-text-field--label-text"],children:Z})}},[Y,L]=p.useState(E??y??""),G=p.useCallback(Z=>{T==null||T(Z),L(Z.target.value)},[T]);return p.useEffect(()=>{L(E??"")},[E]),u.jsxs("div",{className:se(at["input-text-field--container"],i&&at["input-text-field--disabled"],S),children:[l?k(l,n):null,u.jsxs("div",{className:se(at["input-text-field--content"],at[`input-text-field--size-${n}`],at[`input-text-field--${s}`],r&&at["input-text-field--input-error"],I),children:[f||m?u.jsxs("div",{className:se(at["input-text-field--icon-container"],at["input-text-field--left-icon"]),children:[f?u.jsx("span",{className:at["input-text-field--icon"],children:f}):null,m?u.jsx("span",{className:se(at["input-text-field--icon"]),children:m}):null]}):null,u.jsxs("div",{className:at["input-text-field--input-content-container"],children:[M.length>0&&u.jsx("div",{className:at["input-text-field--tags-container"],children:M.map((Z,R)=>u.jsx(Mn,{variant:"text",fontWeight:"regular",iconSize:"lg",closeIcon:!0,label:Z.label,renderIcon:Z.renderIcon,onCloseIconClicked:()=>{const K=[...M];K.splice(R,1),N==null||N(K)},className:at["multiline-tag-input--tag"]},`${Z.label}-${R}`))}),u.jsx(jA,{autoResize:_,value:Y||(c??""),children:u.jsx("textarea",{ref:t,className:se(at["input-text-field--input"],s==="filled"&&"bg--sand-200",i&&"cursor-not-allowed",!w&&at["input-text-field--no-resize"],O),placeholder:c,disabled:i,rows:b,value:Y,onChange:G,...D})})]}),g||v?u.jsxs("div",{className:at["input-text-field--icon-container"],children:[g?u.jsx("span",{className:at["input-text-field--icon"],children:g}):null,v?u.jsx("span",{className:se(at["input-text-field--icon"]),children:v}):null]}):null]}),d?u.jsx(He,{size:n!=="sm"?"md":"sm",fontWeight:"regular",color:r?"red-500":"gray-700",className:at["input-text-field--helper-text"],children:d}):null]})});xr.displayName="TextFieldMultiline";const eo={"empty-state":"_empty-state_5pkj5_1","empty-state-input-container":"_empty-state-input-container_5pkj5_12",illustration:"_illustration_5pkj5_18"},Gv=p.forwardRef(({isCard:e,onConnect:t,onUploadImage:n,...r},i)=>{const s=p.useRef(null),[l,c]=p.useState(""),d=["jpeg","svg","png","jpg","gif"],f=5*1024*1024,m=p.useCallback(b=>{c(""),n&&n(b)},[n]),g=p.useCallback(b=>{c(b)},[]),v=p.useCallback(()=>{var b;(b=s.current)==null||b.browse()},[]);return u.jsxs("div",{ref:i,className:eo["empty-state"],...r,children:[u.jsx("div",{className:eo.illustration,children:u.jsx(dw,{})}),u.jsx("div",{style:{display:"none"},children:u.jsx(zv,{ref:s,onAddFile:m,onError:g,acceptedFormats:d,maxFileSize:f})}),l&&u.jsx(ye,{color:"red-500",children:l}),e?u.jsx(mt,{variant:"text",size:"md",endIcon:u.jsx(Tw,{}),onClick:v,children:"Upload Image"}):u.jsxs(u.Fragment,{children:[u.jsx(mt,{size:"md",endIcon:u.jsx(fw,{}),onClick:v,children:"Upload Image"}),u.jsx(ye,{color:"gray-700",size:"xs",children:"or connect URL"}),u.jsxs("div",{className:eo["empty-state-input-container"],children:[u.jsx(xr,{placeholder:"Insert image from URL",size:"md",rows:1,leftIcon:u.jsx(ah,{}),variant:"outlined",helperText:"Max. file size. 5 Mb",value:"image"}),u.jsx(mt,{size:"lg",variant:"outlined",style:{height:"33px",backgroundColor:"white"},children:"Connect"})]})]})]})});Gv.displayName="EmptyStateImage";const kA=()=>u.jsx("div",{className:eo["empty-state"],children:u.jsx(iw,{})}),FA=()=>u.jsxs("div",{className:eo["empty-state"],children:[u.jsx(lw,{}),u.jsx(ye,{fontWeight:"bold",color:"gray-700",size:"xs",children:"Drop it like it’s hot!"})]}),BA=()=>u.jsxs(u.Fragment,{children:["Embed any video hosted on YouTube or Vimeo ",u.jsx("br",{}),"or Google Drive"]}),zA=({onConnect:e})=>{const[t,n]=p.useState(""),r=()=>{e&&e(t)};return u.jsxs("div",{className:eo["empty-state"],children:[u.jsx(sw,{}),u.jsxs("div",{className:eo["empty-state-input-container"],children:[u.jsx(xr,{placeholder:"Insert video from URL",size:"md",rows:1,autoResize:!0,leftIcon:u.jsx(ah,{}),helperText:u.jsx(BA,{}),variant:"outlined",value:t,onChange:i=>n(i.target.value)}),u.jsx(mt,{size:"lg",variant:"outlined",style:{height:"33px",backgroundColor:"white"},onClick:r,children:"Connect"})]})]})},GA=p.forwardRef((e,t)=>{const{status:n,onConnect:r,onUploadImage:i,isCard:s}=e;let l;switch(n){case"text":l=u.jsx(kA,{});break;case"image":l=u.jsx(Gv,{onConnect:r,onUploadImage:i,isCard:s});break;case"video":l=u.jsx(zA,{onConnect:r});break;default:l=u.jsx(FA,{});break}return u.jsx("div",{ref:t,children:u.jsx("div",{children:l})})}),Rl=p.forwardRef((e,t)=>{const{status:n,onConnect:r,onUploadImage:i,isCard:s}=e;return u.jsx(GA,{status:n,onConnect:r,onUploadImage:i,isCard:s,ref:t})});Rl.displayName="EmptyState";const Hv={heading:"_heading_k87kj_1","heading--hero":"_heading--hero_k87kj_7","heading--h1":"_heading--h1_k87kj_11","heading--h2":"_heading--h2_k87kj_16","heading--h3":"_heading--h3_k87kj_21","heading--h4":"_heading--h4_k87kj_26","heading--h5":"_heading--h5_k87kj_31","heading--h6":"_heading--h6_k87kj_36","heading--weight-bold":"_heading--weight-bold_k87kj_41","heading--weight-semibold":"_heading--weight-semibold_k87kj_45","heading--weight-regular":"_heading--weight-regular_k87kj_49"},HA={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",hero:"h1"},yf=p.forwardRef((e,t)=>{const{variant:n="h1",fontWeight:r="bold",color:i="gray-1000",...s}=e,l=HA[n];return s.className=se(Hv.heading,Hv[`heading--${n}`],`text--weight-${r}`,`text--${i}`,s.className),u.jsx(l,{ref:t,...s})});yf.displayName="Heading";const Vo={"image-container":"_image-container_1yfej_6",image:"_image_1yfej_1","image-description":"_image-description_1yfej_20","image-block-input-container":"_image-block-input-container_1yfej_27","image-block-instance-slot-container":"_image-block-instance-slot-container_1yfej_35","image-block-spinner":"_image-block-spinner_1yfej_42"},Uv=p.forwardRef((e,t)=>{const{image:n,altProps:r,urlWithVariables:i,fileName:s,isUploading:l,saveTitle:c,onDeleteImage:d,connectImage:f,uploadImage:m,onUrlChange:g,...v}=e,[b,w]=p.useState(n),[_,E]=p.useState(s);p.useEffect(()=>{w(n)},[n]),p.useEffect(()=>{E(s)},[s]);const y=()=>{d&&d(),w("")},T=()=>u.jsxs(u.Fragment,{children:["Describe the purpose of the image. Leave empty if it’s purely decorative. ",u.jsx("br",{}),"Max. 100 characters"]});return u.jsx($r,{...v,block:"image",ref:t,children:u.jsxs("div",{children:[u.jsxs("div",{className:Vo["image-block-instance-slot-container"],children:[u.jsx(qa,{initialLabel:"Image"}),i?u.jsxs("div",{children:[" ",u.jsx(ye,{children:" The image to display will be determined based on the value of the "})," "]}):b?u.jsxs("div",{className:Vo["image-container"],children:[u.jsx("img",{src:b,alt:"",className:Vo.image,"data-testid":"block-image","aria-label":"Image"}),u.jsxs("div",{className:Vo["image-description"],children:[u.jsx(ye,{color:"gray-1000",size:"xs",children:_||"Image file name"}),u.jsx(st,{size:"sm",onClick:y,variant:"ghost",children:u.jsx(zd,{})})]})]}):l?u.jsx("div",{className:Vo["image-block-spinner"],children:u.jsx("span",{children:u.jsx(ga,{})})}):u.jsx(Rl,{status:"image",onConnect:f,onUploadImage:m})]}),u.jsx("div",{className:Vo["image-block-input-container"],children:u.jsx(xr,{label:"Label",helperText:u.jsx(T,{}),placeholder:"Describe the image",rows:1,autoResize:!0,size:"md",variant:"filled",...r})})]})})});Uv.displayName="ImageBlock";const UA=30,VA=106,WA=p.forwardRef(({color:e="white",...t},n)=>u.jsxs("svg",{ref:n,width:VA,height:UA,role:"img",viewBox:"0 0 385 95",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 2.16684H12.5898V14.8949H0V2.16684Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.29525 2.16684C2.6965 2.16684 0 4.97167 0 8.48284C0 12.09 2.6965 14.8949 6.29525 14.8949C9.894 14.8949 12.5905 12.09 12.5905 8.48284C12.5905 4.97167 9.894 2.16684 6.29525 2.16684Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M105.29 64.9361C96.1503 64.9361 89.1925 57.4078 89.1925 47.2361C89.1925 37.0644 96.1503 29.4357 105.29 29.4357C114.436 29.4357 121.393 37.0644 121.393 47.2361C121.393 57.4078 114.436 64.9361 105.29 64.9361ZM131.419 3.05176e-05H121.369V30.6154C117.265 24.76 110.677 21.1129 102.815 21.1129C88.8658 21.1129 78.745 32.2884 78.745 47.2447C78.745 61.2642 87.6557 71.9712 100.092 73.2427C100.966 73.3096 101.837 73.3765 102.711 73.3765H102.815C103.383 73.3765 103.954 73.3431 104.529 73.3096C104.832 73.2761 105.134 73.2427 105.403 73.2092H105.47C106.072 73.1423 106.68 73.0419 107.285 72.9081C108.022 72.7742 108.731 72.5735 109.433 72.3727C110.143 72.1385 110.845 71.9043 111.517 71.6032C112.126 71.3355 112.731 71.0678 113.332 70.7667C113.403 70.7332 113.437 70.6998 113.504 70.6663C114.778 69.9637 115.988 69.1606 117.1 68.2238C117.668 67.7553 118.21 67.2534 118.747 66.7516C119.215 66.2831 119.688 65.7812 120.088 65.2459C120.562 64.7105 120.999 64.1417 121.369 63.5729C122.441 62.0338 123.319 60.3608 123.957 58.554L124.653 60.5683L124.65 60.5749L128.727 72.3861H138.754L131.419 52.2402V3.05176e-05Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M150.04 73.3943H159.417V22.5952H150.04V73.3943Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M154.723 1.87726C150.975 1.87726 148.161 4.77952 148.161 8.41266C148.161 12.1452 150.975 15.0474 154.723 15.0474C158.474 15.0474 161.288 12.1452 161.288 8.41266C161.288 4.77952 158.474 1.87726 154.723 1.87726Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M260.652 66.787C251.609 66.787 244.708 59.1913 244.708 48.9298C244.708 38.6718 251.609 30.9749 260.652 30.9749C269.695 30.9749 276.599 38.6718 276.599 48.9298C276.599 59.1913 269.695 66.787 260.652 66.787ZM260.655 22.5952C245.586 22.5952 234.402 33.842 234.402 48.9355C234.402 64.029 245.586 75.2758 260.655 75.2758C275.728 75.2758 286.909 64.029 286.909 48.9355C286.909 33.842 275.728 22.5952 260.655 22.5952Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M300.98 60.1891C297.284 60.1891 294.417 62.9912 294.417 66.7263C294.417 70.4645 297.284 73.3593 300.98 73.3593C304.676 73.3593 307.544 70.4645 307.544 66.7263C307.544 62.9912 304.676 60.1891 300.98 60.1891Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M336.085 67.4672C330.765 67.4672 326.987 65.3953 326.987 60.2663C326.987 55.6299 330.665 52.2758 340.247 52.2758C344.021 52.2758 348.282 52.7685 352.056 53.4602C351.186 60.0672 345.087 67.4672 336.085 67.4672ZM340.353 22.5952C326.414 22.5952 319.157 29.9952 318.67 40.3511H328.546C328.934 34.0377 333.287 30.5857 340.353 30.5857C347.517 30.5857 352.066 35.023 352.066 41.8325V45.9728C347.421 45.2844 343.352 44.8896 340.061 44.8896C325.352 44.8896 316.932 50.7104 316.932 60.8706C316.932 70.6394 324.385 75.2758 333.387 75.2758C341.419 75.2758 347.901 71.7226 352.066 66.003V74.2871H361.939V42.423C361.939 29.9952 353.811 22.5952 340.353 22.5952Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M377.862 15.0474C381.614 15.0474 384.425 12.1452 384.425 8.40912C384.425 4.77952 381.614 1.87726 377.862 1.87726C374.11 1.87726 371.298 4.77952 371.298 8.40912C371.298 12.1452 374.11 15.0474 377.862 15.0474Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M373.183 73.3943H382.56V22.5952H373.183V73.3943Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.4961 22.5952V73.3943H32.3938V32.6759H59.4802V73.3943H69.3778V22.5952H22.4961Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M211.41 47.6021C211.41 57.1636 204.45 64.2598 195.305 64.2598C186.159 64.2598 179.165 57.1636 179.165 47.6021C179.165 38.0738 186.159 30.8777 195.305 30.8777C204.45 30.8777 211.41 38.0738 211.41 47.6021ZM228.793 23.5714H221.474L228.793 23.5614L221.467 23.5714H218.77L214.211 36.6943V36.6877C213.538 34.9219 212.597 33.2562 211.487 31.757C211.386 31.5904 211.285 31.4571 211.185 31.3572C210.882 30.9574 210.579 30.5909 210.21 30.2245C209.974 29.8913 209.668 29.6248 209.369 29.3249C209.234 29.1251 209.029 28.9252 208.828 28.7919C208.458 28.4254 208.058 28.059 207.654 27.7258C207.553 27.6592 207.486 27.5925 207.385 27.5259C206.877 27.0928 206.343 26.693 205.805 26.3599C205.196 25.9601 204.594 25.5936 203.922 25.2605C203.35 24.9273 202.745 24.6608 202.14 24.3943C201.464 24.1277 200.795 23.8612 200.089 23.6613C199.581 23.4947 199.046 23.3615 198.508 23.2282C198.441 23.2282 198.337 23.1949 198.239 23.1616C198.004 23.1283 197.765 23.0616 197.53 23.0283C196.958 22.9284 196.323 22.8284 195.718 22.7618C194.776 22.6618 193.835 22.5952 192.856 22.5952C178.906 22.5952 168.785 33.3228 168.785 47.6152C168.785 61.9408 178.906 72.6684 192.658 72.6684C200.422 72.6684 207.116 69.1703 211.42 63.3067V70.7028C211.42 79.8645 204.762 85.8946 195.109 85.8946C187.043 85.8946 181.058 81.1305 180.083 74.6007H169.962C171.34 85.9946 181.828 94.0902 195.109 94.0902C210.24 94.0902 221.474 84.1622 221.474 69.2369V43.5906L228.793 23.5714Z",fill:e}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.86945 73.3943H11.2458V22.5952H1.86945V73.3943Z",fill:e})]})),Vv="Dialog",[Wv,FF]=zt(Vv),[qA,ar]=Wv(Vv),YA=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,c=p.useRef(null),d=p.useRef(null),[f=!1,m]=mn({prop:r,defaultProp:i,onChange:s});return p.createElement(qA,{scope:t,triggerRef:c,contentRef:d,contentId:Kn(),titleId:Kn(),descriptionId:Kn(),open:f,onOpenChange:m,onOpenToggle:p.useCallback(()=>m(g=>!g),[m]),modal:l},n)},ZA="DialogTrigger",XA=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ar(ZA,n),s=et(t,i.triggerRef);return p.createElement(Re.button,ae({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Sf(i.open)},r,{ref:s,onClick:we(e.onClick,i.onOpenToggle)}))}),qv="DialogPortal",[KA,Yv]=Wv(qv,{forceMount:void 0}),QA=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,s=ar(qv,t);return p.createElement(KA,{scope:t,forceMount:n},p.Children.map(r,l=>p.createElement(sn,{present:n||s.open},p.createElement(Aa,{asChild:!0,container:i},l))))},Cf="DialogOverlay",JA=p.forwardRef((e,t)=>{const n=Yv(Cf,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=ar(Cf,e.__scopeDialog);return s.modal?p.createElement(sn,{present:r||s.open},p.createElement(eO,ae({},i,{ref:t}))):null}),eO=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ar(Cf,n);return p.createElement(La,{as:Ii,allowPinchZoom:!0,shards:[i.contentRef]},p.createElement(Re.div,ae({"data-state":Sf(i.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),to="DialogContent",Zv=p.forwardRef((e,t)=>{const n=Yv(to,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=ar(to,e.__scopeDialog);return p.createElement(sn,{present:r||s.open},s.modal?p.createElement(tO,ae({},i,{ref:t})):p.createElement(nO,ae({},i,{ref:t})))}),tO=p.forwardRef((e,t)=>{const n=ar(to,e.__scopeDialog),r=p.useRef(null),i=et(t,n.contentRef,r);return p.useEffect(()=>{const s=r.current;if(s)return yd(s)},[]),p.createElement(Xv,ae({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:we(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:we(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&s.preventDefault()}),onFocusOutside:we(e.onFocusOutside,s=>s.preventDefault())}))}),nO=p.forwardRef((e,t)=>{const n=ar(to,e.__scopeDialog),r=p.useRef(!1),i=p.useRef(!1);return p.createElement(Xv,ae({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l;if((l=e.onCloseAutoFocus)===null||l===void 0||l.call(e,s),!s.defaultPrevented){var c;r.current||(c=n.triggerRef.current)===null||c===void 0||c.focus(),s.preventDefault()}r.current=!1,i.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)===null||l===void 0||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const d=s.target;((c=n.triggerRef.current)===null||c===void 0?void 0:c.contains(d))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}}))}),Xv=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...l}=e,c=ar(to,n),d=p.useRef(null),f=et(t,d);return id(),p.createElement(p.Fragment,null,p.createElement(ad,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s},p.createElement(us,ae({role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Sf(c.open)},l,{ref:f,onDismiss:()=>c.onOpenChange(!1)}))),!1)}),Tf="DialogTitle",rO=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ar(Tf,n);return p.createElement(Re.h2,ae({id:i.titleId},r,{ref:t}))}),Kv="DialogDescription",iO=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ar(Kv,n);return p.createElement(Re.p,ae({id:i.descriptionId},r,{ref:t}))}),Qv="DialogClose",Jv=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ar(Qv,n);return p.createElement(Re.button,ae({type:"button"},r,{ref:t,onClick:we(e.onClick,()=>i.onOpenChange(!1))}))});function Sf(e){return e?"open":"closed"}W7("DialogTitleWarning",{contentName:to,titleName:Tf,docsSlug:"dialog"});const oO=YA,sO=XA,aO=QA,lO=JA,cO=Zv,e2=Jv,Rr={"modal--trigger":"_modal--trigger_1u07z_1","modal--content":"_modal--content_1u07z_2","modal--children":"_modal--children_1u07z_23","modal--overlay":"_modal--overlay_1u07z_27","modal--description":"_modal--description_1u07z_34","modal--close-icon":"_modal--close-icon_1u07z_40","modal--footer":"_modal--footer_1u07z_49","modal--buttons":"_modal--buttons_1u07z_56","modal--buttons-right":"_modal--buttons-right_1u07z_61"},dO=oO,uO=p.forwardRef(({className:e,...t},n)=>u.jsx(sO,{ref:n,className:se(Rr["modal--trigger"],e),...t})),t2=p.forwardRef((e,t)=>{const{title:n,description:r,closeIcon:i=!0,checkboxProps:s,leftButton:l,rightButton:c,className:d,children:f,...m}=e;return u.jsxs(aO,{children:[u.jsx(lO,{className:Rr["modal--overlay"]}),u.jsxs(cO,{ref:t,className:Rr["modal--content"],...m,children:[i&&u.jsx(e2,{asChild:!0,children:u.jsx(st,{className:Rr["modal--close-icon"],variant:"ghost",color:"primary",size:"xs",children:u.jsx(OE,{})})}),u.jsxs("div",{className:Rr["modal--description"],children:[n&&(typeof n=="string"?u.jsx(yf,{variant:"h5",fontWeight:"bold",color:"gray-1000",children:n}):n),r&&(typeof r=="string"?u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-1000",children:r}):r)]}),f&&u.jsx("div",{className:se(Rr["modal--children"],d),children:f}),u.jsxs("div",{className:Rr["modal--footer"],children:[s&&u.jsx(Fi,{...s}),u.jsxs("div",{className:`${Rr["modal--buttons"]} ${s?"":Rr["modal--buttons-right"]}`,children:[l&&(i?u.jsx(mt,{...l}):u.jsx(e2,{asChild:!0,children:u.jsx(mt,{...l})})),c&&u.jsx(mt,{...c})]})]})]})]})});t2.displayName="ModalContent";const n2="Switch",[fO,zF]=zt(n2),[pO,hO]=fO(n2),gO=p.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:s,required:l,disabled:c,value:d="on",onCheckedChange:f,...m}=e,[g,v]=p.useState(null),b=et(t,T=>v(T)),w=p.useRef(!1),_=g?!!g.closest("form"):!0,[E=!1,y]=mn({prop:i,defaultProp:s,onChange:f});return p.createElement(pO,{scope:n,checked:E,disabled:c},p.createElement(Re.button,ae({type:"button",role:"switch","aria-checked":E,"aria-required":l,"data-state":r2(E),"data-disabled":c?"":void 0,disabled:c,value:d},m,{ref:b,onClick:we(e.onClick,T=>{y(S=>!S),_&&(w.current=T.isPropagationStopped(),w.current||T.stopPropagation())})})),_&&p.createElement(bO,{control:g,bubbles:!w.current,name:r,value:d,checked:E,required:l,disabled:c,style:{transform:"translateX(-100%)"}}))}),mO="SwitchThumb",vO=p.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,i=hO(mO,n);return p.createElement(Re.span,ae({"data-state":r2(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),bO=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,s=p.useRef(null),l=Jd(n),c=Ia(t);return p.useEffect(()=>{const d=s.current,f=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&g){const v=new Event("click",{bubbles:r});g.call(d,n),d.dispatchEvent(v)}},[l,n,r]),p.createElement("input",ae({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function r2(e){return e?"checked":"unchecked"}const _O=gO,xO=vO,Hs={"toggle--container":"_toggle--container_kp2m5_1",toggle:"_toggle_kp2m5_1","toggle--disabled":"_toggle--disabled_kp2m5_26","toggle--content":"_toggle--content_kp2m5_30","toggle--label":"_toggle--label_kp2m5_45"},i2=e=>{const{id:t,small:n,label:r}=e;return u.jsx("label",{htmlFor:t,className:Hs["toggle--label"],children:n?u.jsx(He,{size:"md",children:r}):u.jsx(ye,{size:"sm",children:r})})},Us=p.forwardRef((e,t)=>{const{id:n,checked:r=!1,label:i,labelPosition:s="start",small:l=!1,required:c=!1,disabled:d,className:f,onCheckedChanged:m,...g}=e;return u.jsxs("div",{className:se(d?"cursor-not-allowed":"cursor-pointer",Hs["toggle--container"],f),children:[i&&s==="end"?u.jsx(i2,{id:n,small:l,label:i}):null,u.jsx(_O,{ref:t,id:n,className:se(Hs.toggle,d&&Hs["toggle--disabled"]),required:c,checked:r,disabled:d,onCheckedChange:m,...g,children:u.jsx(xO,{className:Hs["toggle--content"]})}),i&&s==="start"?u.jsx(i2,{id:n,small:l,label:i}):null]})});Us.displayName="Toggle";const Xt={"mail-block":"_mail-block_vqhat_1","mail-field-container":"_mail-field-container_vqhat_8","mail-field-container1":"_mail-field-container1_vqhat_9","input-wrapper":"_input-wrapper_vqhat_22","button-container":"_button-container_vqhat_26","mail-selectors":"_mail-selectors_vqhat_39","mail-selector":"_mail-selector_vqhat_39","body-header":"_body-header_vqhat_48"},o2=p.forwardRef((e,t)=>{const{isHtmlMode:n,successSelectorProps:r,errorSelectorProps:i,destinationConfig:s,destinationError:l,destinationErrorText:c,ccConfig:d,ccError:f,ccErrorText:m,senderConfig:g,senderError:v,senderErrorText:b,subjectConfig:w,subjectError:_,subjectErrorText:E,replyToConfig:y,replyToError:T,replyToErrorText:S,bodyConfig:O,bodyError:I,bodyErrorText:M,setIsHtmlMode:N,setShowCC:D,showCC:k,onDeleteBlock:Y,...L}=e;return u.jsx($r,{block:"mail",onDeleteBlock:Y,...L,ref:t,children:u.jsxs("div",{className:Xt["mail-block"],children:[u.jsxs("div",{className:Xt["mail-field-container1"],children:[u.jsx("div",{className:Xt["input-wrapper"],children:u.jsx(ln,{...s,label:"Destination",error:l,helperText:l?c:"You can insert multiple values separated by comma",placeholder:"Enter mail or {{variable}}",variant:"filled"})}),u.jsx("div",{className:Xt["button-container"],children:u.jsx(mt,{variant:"outlined",onClick:D,size:"md",children:k?"- Remove CC":"+ Add CC"})})]}),k&&u.jsx("div",{className:Xt["mail-field-container"],children:u.jsx(ln,{...d,label:"CC",error:f,helperText:f?m:"You can insert multiple values separated by comma",placeholder:"Enter mail or {{variable}}",variant:"filled"})}),u.jsx("div",{className:Xt["mail-field-container"],children:u.jsx(ln,{...g,label:"Sender name",error:v,helperText:v?b:"",placeholder:"Enter the name of sender",variant:"filled"})}),u.jsx("div",{className:Xt["mail-field-container"],children:u.jsx(ln,{...w,label:"Subject",error:_,helperText:_?E:"",placeholder:"Enter subject of email or {{variable}}",variant:"filled"})}),u.jsx("div",{className:Xt["mail-field-container"],children:u.jsx(ln,{...y,label:"Reply to",error:T,helperText:T?S:"",placeholder:"Enter an automated reply to",variant:"filled"})}),u.jsxs("div",{className:Xt["mail-field-container"],children:[u.jsxs("div",{className:Xt["body-header"],children:[u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:Xt["input-text-field--label-text"],children:"Body"}),u.jsx("div",{className:Xt["html-toggle"],children:u.jsx(Us,{label:"HTML",labelPosition:"end",small:!0,checked:n,onCheckedChanged:N})})]}),u.jsx(xr,{...O,placeholder:"Email body",error:I,helperText:I?M:"",rows:4,variant:"filled"})]}),u.jsx(gr,{color:"sand-300",horizontalMargin:!1,verticalMargin:"xs"}),u.jsxs("div",{className:Xt["mail-selectors"],children:[u.jsxs("div",{className:Xt["mail-selector"],children:[u.jsx(ye,{color:"gray-1000",size:"sm",children:"Success case"}),u.jsx(Ao,{label:"Choose destination",...r})]}),u.jsxs("div",{className:Xt["mail-selector"],children:[u.jsx(ye,{color:"gray-1000",size:"sm",children:"Error case"}),u.jsx(Ao,{label:"Choose destination",...i})]})]})]})})});o2.displayName="MailBlock";const Nt={"upload-block":"_upload-block_1lsxp_1","upload-field-container":"_upload-field-container_1lsxp_8","body-header":"_body-header_1lsxp_26","caption-checkbox":"_caption-checkbox_1lsxp_33","toggle-container":"_toggle-container_1lsxp_37","extra-options-container":"_extra-options-container_1lsxp_44","tooltip-description":"_tooltip-description_1lsxp_63"},Ue={"input-select":"_input-select_4r597_1","input-select--outlined":"_input-select--outlined_4r597_17","input-select--filled":"_input-select--filled_4r597_22","input-select--ghost":"_input-select--ghost_4r597_23","input-select--lg":"_input-select--lg_4r597_38","input-select--md":"_input-select--md_4r597_42","input-select--sm":"_input-select--sm_4r597_46","input-select--error":"_input-select--error_4r597_50","input-select--label":"_input-select--label_4r597_55","input-select--item-label-container":"_input-select--item-label-container_4r597_59","input-select--item-label":"_input-select--item-label_4r597_59","input-select--helper":"_input-select--helper_4r597_74","input-select--trigger-icon":"_input-select--trigger-icon_4r597_78","input-select--placeholder-container":"_input-select--placeholder-container_4r597_87","input-select--placeholder":"_input-select--placeholder_4r597_87","input-select--disabled":"_input-select--disabled_4r597_102","input-select--content":"_input-select--content_4r597_107",slideDownAndFade:"_slideDownAndFade_4r597_1",slideLeftAndFade:"_slideLeftAndFade_4r597_1",slideUpAndFade:"_slideUpAndFade_4r597_1",slideRightAndFade:"_slideRightAndFade_4r597_1",content:"_content_4r597_147","input-select--item":"_input-select--item_4r597_59","input-select--radio-group":"_input-select--radio-group_4r597_166","input-select--icon":"_input-select--icon_4r597_170","input-select--primitive-item":"_input-select--primitive-item_4r597_178","input-select--primitive-item-selected":"_input-select--primitive-item-selected_4r597_191","input-select--checkbox":"_input-select--checkbox_4r597_195","input-select--divider":"_input-select--divider_4r597_199"},pi={"radio--group-container":"_radio--group-container_zpvsw_2",radio:"_radio_zpvsw_2","radio--item":"_radio--item_zpvsw_22","radio--item-size-sm":"_radio--item-size-sm_zpvsw_51","radio--indicator":"_radio--indicator_zpvsw_75","radio--indicator-size-sm":"_radio--indicator-size-sm_zpvsw_76","radio--label":"_radio--label_zpvsw_111","radio--label-size-sm":"_radio--label-size-sm_zpvsw_123"},s2="Radio",[wO,a2]=zt(s2),[EO,yO]=wO(s2),CO=p.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:s,disabled:l,value:c="on",onCheck:d,...f}=e,[m,g]=p.useState(null),v=et(t,_=>g(_)),b=p.useRef(!1),w=m?!!m.closest("form"):!0;return p.createElement(EO,{scope:n,checked:i,disabled:l},p.createElement(Re.button,ae({type:"button",role:"radio","aria-checked":i,"data-state":l2(i),"data-disabled":l?"":void 0,disabled:l,value:c},f,{ref:v,onClick:we(e.onClick,_=>{i||d==null||d(),w&&(b.current=_.isPropagationStopped(),b.current||_.stopPropagation())})})),w&&p.createElement(IO,{control:m,bubbles:!b.current,name:r,value:c,checked:i,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),TO="RadioIndicator",SO=p.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,s=yO(TO,n);return p.createElement(sn,{present:r||s.checked},p.createElement(Re.span,ae({"data-state":l2(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:t})))}),IO=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,s=p.useRef(null),l=Jd(n),c=Ia(t);return p.useEffect(()=>{const d=s.current,f=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&g){const v=new Event("click",{bubbles:r});g.call(d,n),d.dispatchEvent(v)}},[l,n,r]),p.createElement("input",ae({type:"radio","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function l2(e){return e?"checked":"unchecked"}const AO=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],c2="RadioGroup",[OO,ZF]=zt(c2,[xo,a2]),d2=xo(),u2=a2(),[$O,DO]=OO(c2),MO=p.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:s,required:l=!1,disabled:c=!1,orientation:d,dir:f,loop:m=!0,onValueChange:g,...v}=e,b=d2(n),w=ds(f),[_,E]=mn({prop:s,defaultProp:i,onChange:g});return p.createElement($O,{scope:n,name:r,required:l,disabled:c,value:_,onValueChange:E},p.createElement(xd,ae({asChild:!0},b,{orientation:d,dir:w,loop:m}),p.createElement(Re.div,ae({role:"radiogroup","aria-required":l,"aria-orientation":d,"data-disabled":c?"":void 0,dir:w},v,{ref:t}))))}),PO="RadioGroupItem",NO=p.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...i}=e,s=DO(PO,n),l=s.disabled||r,c=d2(n),d=u2(n),f=p.useRef(null),m=et(t,f),g=s.value===i.value,v=p.useRef(!1);return p.useEffect(()=>{const b=_=>{AO.includes(_.key)&&(v.current=!0)},w=()=>v.current=!1;return document.addEventListener("keydown",b),document.addEventListener("keyup",w),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",w)}},[]),p.createElement(wd,ae({asChild:!0},c,{focusable:!l,active:g}),p.createElement(CO,ae({disabled:l,required:s.required,checked:g},d,i,{name:s.name,ref:m,onCheck:()=>s.onValueChange(i.value),onKeyDown:we(b=>{b.key==="Enter"&&b.preventDefault()}),onFocus:we(i.onFocus,()=>{var b;v.current&&((b=f.current)===null||b===void 0||b.click())})})))}),RO=p.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=u2(n);return p.createElement(SO,ae({},i,r,{ref:t}))}),LO=MO,jO=NO,kO=RO,If=p.forwardRef((e,t)=>{const{id:n=`ch-${Math.random()}`,value:r,small:i,disabled:s,className:l,children:c,...d}=e,f=p.useMemo(()=>i?u.jsx(He,{size:"md",children:c}):u.jsx(ye,{size:"sm",children:c}),[c,i]);return u.jsxs("div",{className:se(pi.radio,l),children:[u.jsx(jO,{ref:t,id:n,className:se(i?pi["radio--item-size-sm"]:pi["radio--item"]),value:r,disabled:s,...d,children:u.jsx(kO,{className:i?pi["radio--indicator-size-sm"]:pi["radio--indicator"]})}),u.jsx("label",{className:i?pi["radio--label-size-sm"]:pi["radio--label"],htmlFor:n,children:typeof c=="string"?f:c})]})});If.displayName="Radio";const f2=p.forwardRef((e,t)=>{const{value:n,defaultValue:r,small:i,onValueChange:s,children:l,...c}=e,d=p.Children.map(l,f=>p.cloneElement(f,{small:i}));return u.jsx(LO,{ref:t,className:pi["radio--group-container"],defaultValue:r,value:n,onValueChange:s,...c,children:d})}),Af=({option:e})=>{const{leftIcon:t,label:n,avatarProps:r,description:i,rightIcon:s}=e;return u.jsxs("div",{className:Ue["input-select--item"],children:[t&&u.jsx("span",{className:Ue["input-select--icon"],children:t}),r&&u.jsx($o,{...r}),u.jsxs("div",{className:Ue["input-select--item-label-container"],children:[n&&u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-1000",className:Ue["input-select--item-label"],children:n}),i&&u.jsx(He,{size:"sm",fontWeight:"regular",color:"gray-700",className:Ue["input-select--item-label"],children:i})]}),s&&u.jsx("span",{className:Ue["input-select--icon"],children:s})]})},Of=p.forwardRef((e,t)=>{var Z;const{label:n,helper:r,placeholder:i,initialValue:s,size:l="md",type:c="default",triggerProps:d,variant:f,error:m,disabled:g,onChange:v,options:b,className:w,contentClassName:_}=e,[E,y]=p.useState(!1),[T,S]=p.useState(s??[]);p.useEffect(()=>{E||s!==void 0&&S(s)},[E,s]);const O=p.useCallback((R,K)=>{(c==="checkbox"||c==="radio")&&K.preventDefault(),y(!0),c==="radio"||c==="default"?S(()=>{const B=[R];return v==null||v(B),B}):T.includes(R)?S(B=>{const W=B.filter(J=>J!==R);return v==null||v(W),W}):S(B=>{const W=[...B,R];return v==null||v(W),W})},[T,c,v]),I=p.useCallback((R,K)=>{const B=T.includes(R.value);let W=null;switch(c){case"radio":W=u.jsx(Rd,{onSelect:J=>O(R.value,J),className:se(Ue["input-select--primitive-item"],B&&Ue["input-select--primitive-item-selected"]),...B?{"data-selected":"true"}:null,children:u.jsx(If,{value:R.value,children:u.jsx(Af,{option:R})})});break;case"checkbox":W=u.jsx(Rd,{onSelect:J=>O(R.value,J),className:se(Ue["input-select--primitive-item"],B&&Ue["input-select--primitive-item-selected"]),...B?{"data-selected":"true"}:null,children:u.jsx(Fi,{className:Ue["input-select--checkbox"],checked:B,children:u.jsx(Af,{option:R})})});break;default:case"default":W=u.jsx(Rd,{onSelect:J=>O(R.value,J),className:se(Ue["input-select--primitive-item"],B&&Ue["input-select--primitive-item-selected"]),...B?{"data-selected":"true"}:null,children:u.jsx(Af,{option:R})});break}return u.jsxs(p.Fragment,{children:[W,R.hasBottomSeparator&&u.jsx(gr,{color:"gray-300",className:Ue["input-select--divider"]})]},K)},[O,T,c]),M=R=>b.find(K=>K.value===R),N=T.map(R=>{var K;return(K=M(R))==null?void 0:K.label}),D=T.map(R=>M(R)),k=N.length>0?N.join(", "):i,Y=D.length===1?(Z=D[0])==null?void 0:Z.leftIcon:null,L=p.useRef(null),G=p.useCallback(R=>{R&&setTimeout(()=>{var K,B,W;try{(W=(B=Array.from(((K=L.current)==null?void 0:K.querySelectorAll('[data-selected="true"]'))??[]))==null?void 0:B[0])==null||W.scrollIntoView({block:"center"})}catch{}},50)},[]);return u.jsx("div",{className:se(g&&Ue["input-select--disabled"]),children:u.jsxs(Md,{onOpenChange:G,children:[n&&FO(n,l),u.jsxs(Pd,{ref:t,className:se(Ue["input-select"],Ue[`input-select--${f}`],Ue[`input-select--${l}`],m&&Ue["input-select--error"],g&&Ue["input-select--disabled"],w),disabled:g,...d,children:[u.jsxs("div",{className:Ue["input-select--placeholder-container"],children:[Y&&u.jsx("span",{className:Ue["input-select--trigger-icon"],children:Y}),BO(k,l,!!m)]}),u.jsx("span",{className:Ue["input-select--trigger-icon"],children:u.jsx(IE,{})})]}),r&&(typeof r=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",color:m?"red-500":"gray-700",className:Ue["input-select--helper"],children:r}):r),u.jsx(ex,{children:u.jsx(Nd,{ref:L,className:se(Ue["input-select--content"],_),align:"start",sideOffset:8,children:u.jsx(kd,{children:u.jsx("div",{className:Ue.content,children:zO(c,b.map(I),T)})})})})]})})});Of.displayName="Select";const FO=(e,t)=>{switch(t){case"lg":return u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:Ue["input-select--label"],children:e});default:case"md":return u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-800",className:Ue["input-select--label"],children:e});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:Ue["input-select--label"],children:e})}},BO=(e,t,n)=>{switch(t){case"lg":return u.jsx(ye,{size:"sm",fontWeight:"regular",color:n?"red-300":"gray-800",className:Ue["input-select--placeholder"],children:e});default:case"md":return u.jsx(ye,{size:"xs",fontWeight:"regular",color:n?"red-300":"gray-800",className:Ue["input-select--placeholder"],children:e});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:n?"red-300":"gray-800",className:Ue["input-select--placeholder"],children:e})}},zO=(e,t,n)=>e==="radio"?u.jsx(f2,{className:Ue["input-select--radio-group"],value:n[0],children:t},n[0]):t,p2=p.forwardRef((e,t)=>{const{isCaption:n,setIsCaption:r,limitFileSize:i,setLimitFileSize:s,isMandatory:l,setIsMandatory:c,onDeleteBlock:d,optionalMessageText:f,setOptionalMessageText:m,fileVariableNameSelectorProps:g,skipButtonLabel:v,setSkipButtonLabel:b,skipButtonLabelMaxLength:w,skipButtonSelectorProps:_,...E}=e;return u.jsx($r,{block:"upload",onDeleteBlock:d,...E,ref:t,children:u.jsxs("div",{className:Nt["upload-block"],children:[u.jsxs("div",{className:Nt["upload-field-container"],children:[u.jsx("div",{className:Nt["body-header"],children:u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:Nt["input-text-field--label-text"],children:"Optional message for user"})}),u.jsx(xr,{placeholder:"Upload your document by clicking on the attachment icon",rows:2,variant:"filled",value:f,onBlur:y=>m(y.target.value)})]}),u.jsx("div",{className:Nt["caption-checkbox"],children:u.jsx(Fi,{small:!0,checked:n,onCheckedChange:y=>r(!n),label:"Caption"})}),u.jsxs("div",{className:Nt["upload-field-container"],children:[u.jsx("div",{className:Nt["body-header"],children:u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:Nt["input-text-field--label-text"],children:"File variable name"})}),u.jsx(Of,{variant:"filled",placeholder:"Choose an option",...g})]}),u.jsx(gr,{color:"sand-300",horizontalMargin:!1,verticalMargin:"xs"}),u.jsxs("div",{className:Nt["extra-options-container"],children:[u.jsx("div",{className:Nt["upload-field-container"],children:u.jsxs("div",{className:Nt["toggle-container"],children:[u.jsx(Us,{label:"Max file size 5MB",labelPosition:"start",checked:i,onCheckedChanged:s}),u.jsx(h2,{icon:u.jsx(oh,{fontSize:16}),title:"Max file size",description:"Disabling the default option will set the max. file size to 25 MB"})]})}),u.jsx("div",{className:Nt["upload-field-container"],children:u.jsxs("div",{className:Nt["toggle-container"],children:[u.jsx(Us,{label:"Mandatory",labelPosition:"start",checked:l,onCheckedChanged:c}),u.jsx(h2,{icon:u.jsx(oh,{fontSize:16}),title:"Mandatory",description:"If the mandatory option is active, the user will necessarily have to upload a document to continue the conversation"})]})}),!l&&u.jsxs("div",{className:Nt["upload-field-container"],children:[u.jsx("div",{className:Nt["body-header"],children:u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:Nt["input-text-field--label-text"],children:"Skip button"})}),u.jsx(Du,{buttonLabel:v,setButtonLabel:y=>b(y),buttonLabelMaxLength:w,selectorProps:_})]})]})]})})}),h2=({icon:e,title:t,description:n})=>u.jsxs(Io,{children:[u.jsx(Ri,{children:e}),u.jsx(Ni,{className:Nt["tooltip-description"],isDark:!0,description:n,title:t})]});p2.displayName="UploadBlock";const wr={"multiple-values--container":"_multiple-values--container_gd40l_1","multiple-values--content":"_multiple-values--content_gd40l_7","multiple-values--outlined":"_multiple-values--outlined_gd40l_16","multiple-values--filled":"_multiple-values--filled_gd40l_22","multiple-values--error":"_multiple-values--error_gd40l_28","multiple-values--helper-text":"_multiple-values--helper-text_gd40l_32","multiple-values--label-text":"_multiple-values--label-text_gd40l_36","multiple-values--size-lg":"_multiple-values--size-lg_gd40l_46","multiple-values--size-md":"_multiple-values--size-md_gd40l_50","multiple-values--size-sm":"_multiple-values--size-sm_gd40l_54",EmptyTags:"_EmptyTags_gd40l_60",InputDisabled:"_InputDisabled_gd40l_64"};var $f={exports:{}},Ll={exports:{}},Ze={};/** @license React v16.13.1
|
|
146
146
|
* react-is.production.min.js
|
|
147
147
|
*
|
|
148
148
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
149
149
|
*
|
|
150
150
|
* This source code is licensed under the MIT license found in the
|
|
151
151
|
* LICENSE file in the root directory of this source tree.
|
|
152
|
-
*/var
|
|
152
|
+
*/var g2;function GO(){if(g2)return Ze;g2=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function S(I){if(typeof I=="object"&&I!==null){var M=I.$$typeof;switch(M){case t:switch(I=I.type,I){case d:case f:case r:case s:case i:case g:return I;default:switch(I=I&&I.$$typeof,I){case c:case m:case w:case b:case l:return I;default:return M}}case n:return M}}}function O(I){return S(I)===f}return Ze.AsyncMode=d,Ze.ConcurrentMode=f,Ze.ContextConsumer=c,Ze.ContextProvider=l,Ze.Element=t,Ze.ForwardRef=m,Ze.Fragment=r,Ze.Lazy=w,Ze.Memo=b,Ze.Portal=n,Ze.Profiler=s,Ze.StrictMode=i,Ze.Suspense=g,Ze.isAsyncMode=function(I){return O(I)||S(I)===d},Ze.isConcurrentMode=O,Ze.isContextConsumer=function(I){return S(I)===c},Ze.isContextProvider=function(I){return S(I)===l},Ze.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},Ze.isForwardRef=function(I){return S(I)===m},Ze.isFragment=function(I){return S(I)===r},Ze.isLazy=function(I){return S(I)===w},Ze.isMemo=function(I){return S(I)===b},Ze.isPortal=function(I){return S(I)===n},Ze.isProfiler=function(I){return S(I)===s},Ze.isStrictMode=function(I){return S(I)===i},Ze.isSuspense=function(I){return S(I)===g},Ze.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===f||I===s||I===i||I===g||I===v||typeof I=="object"&&I!==null&&(I.$$typeof===w||I.$$typeof===b||I.$$typeof===l||I.$$typeof===c||I.$$typeof===m||I.$$typeof===E||I.$$typeof===y||I.$$typeof===T||I.$$typeof===_)},Ze.typeOf=S,Ze}var Xe={};/** @license React v16.13.1
|
|
153
153
|
* react-is.development.js
|
|
154
154
|
*
|
|
155
155
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
156
156
|
*
|
|
157
157
|
* This source code is licensed under the MIT license found in the
|
|
158
158
|
* LICENSE file in the root directory of this source tree.
|
|
159
|
-
*/var v2;function HO(){return v2||(v2=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function S(de){return typeof de=="string"||typeof de=="function"||de===r||de===f||de===s||de===i||de===g||de===v||typeof de=="object"&&de!==null&&(de.$$typeof===E||de.$$typeof===b||de.$$typeof===l||de.$$typeof===c||de.$$typeof===m||de.$$typeof===w||de.$$typeof===y||de.$$typeof===T||de.$$typeof===_)}function O(de){if(typeof de=="object"&&de!==null){var _t=de.$$typeof;switch(_t){case t:var Ke=de.type;switch(Ke){case d:case f:case r:case s:case i:case g:return Ke;default:var yt=Ke&&Ke.$$typeof;switch(yt){case c:case m:case E:case b:case l:return yt;default:return _t}}case n:return _t}}}var I=d,M=f,N=c,D=l,k=t,Y=m,L=r,G=E,X=b,R=n,K=s,B=i,W=g,J=!1;function q(de){return J||(J=!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.")),U(de)||O(de)===d}function U(de){return O(de)===f}function V(de){return O(de)===c}function ce(de){return O(de)===l}function ue(de){return typeof de=="object"&&de!==null&&de.$$typeof===t}function pe(de){return O(de)===m}function we(de){return O(de)===r}function ne(de){return O(de)===E}function le(de){return O(de)===b}function ge(de){return O(de)===n}function be(de){return O(de)===s}function he(de){return O(de)===i}function We(de){return O(de)===g}Xe.AsyncMode=I,Xe.ConcurrentMode=M,Xe.ContextConsumer=N,Xe.ContextProvider=D,Xe.Element=k,Xe.ForwardRef=Y,Xe.Fragment=L,Xe.Lazy=G,Xe.Memo=X,Xe.Portal=R,Xe.Profiler=K,Xe.StrictMode=B,Xe.Suspense=W,Xe.isAsyncMode=q,Xe.isConcurrentMode=U,Xe.isContextConsumer=V,Xe.isContextProvider=ce,Xe.isElement=ue,Xe.isForwardRef=pe,Xe.isFragment=we,Xe.isLazy=ne,Xe.isMemo=le,Xe.isPortal=ge,Xe.isProfiler=be,Xe.isStrictMode=he,Xe.isSuspense=We,Xe.isValidElementType=S,Xe.typeOf=O}()),Xe}var b2;function _2(){return b2||(b2=1,process.env.NODE_ENV==="production"?jl.exports=GO():jl.exports=HO()),jl.exports}var Mf,x2;function Pf(){if(x2)return Mf;x2=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Mf=e,Mf}var Nf,E2;function w2(){return E2||(E2=1,Nf=Function.call.bind(Object.prototype.hasOwnProperty)),Nf}var Rf,y2;function UO(){if(y2)return Rf;y2=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Pf(),n={},r=w2();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(s,l,c,d,f){if(process.env.NODE_ENV!=="production"){for(var m in s)if(r(s,m)){var g;try{if(typeof s[m]!="function"){var v=Error((d||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}g=s[m](l,m,d,c,null,t)}catch(E){g=E}if(g&&!(g instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var b=f?f():"";e("Failed "+c+" type: "+g.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Rf=i,Rf}var Lf,C2;function VO(){if(C2)return Lf;C2=1;var e=_2(),t=jc(),n=Pf(),r=w2(),i=UO(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return Lf=function(c,d){var f=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function g(U){var V=U&&(f&&U[f]||U[m]);if(typeof V=="function")return V}var v="<<anonymous>>",b={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:T(),arrayOf:S,element:O(),elementType:I(),instanceOf:M,node:Y(),objectOf:D,oneOf:N,oneOfType:k,shape:G,exact:X};function E(U,V){return U===V?U!==0||1/U===1/V:U!==U&&V!==V}function _(U,V){this.message=U,this.data=V&&typeof V=="object"?V:{},this.stack=""}_.prototype=Error.prototype;function w(U){if(process.env.NODE_ENV!=="production")var V={},ce=0;function ue(we,ne,le,ge,be,he,We){if(ge=ge||v,he=he||le,We!==n){if(d){var de=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 de.name="Invariant Violation",de}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var _t=ge+":"+le;!V[_t]&&ce<3&&(s("You are manually calling a React.PropTypes validation function for the `"+he+"` prop on `"+ge+"`. 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."),V[_t]=!0,ce++)}}return ne[le]==null?we?ne[le]===null?new _("The "+be+" `"+he+"` is marked as required "+("in `"+ge+"`, but its value is `null`.")):new _("The "+be+" `"+he+"` is marked as required in "+("`"+ge+"`, but its value is `undefined`.")):null:U(ne,le,ge,be,he)}var pe=ue.bind(null,!1);return pe.isRequired=ue.bind(null,!0),pe}function y(U){function V(ce,ue,pe,we,ne,le){var ge=ce[ue],be=B(ge);if(be!==U){var he=W(ge);return new _("Invalid "+we+" `"+ne+"` of type "+("`"+he+"` supplied to `"+pe+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return w(V)}function T(){return w(l)}function S(U){function V(ce,ue,pe,we,ne){if(typeof U!="function")return new _("Property `"+ne+"` of component `"+pe+"` has invalid PropType notation inside arrayOf.");var le=ce[ue];if(!Array.isArray(le)){var ge=B(le);return new _("Invalid "+we+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+pe+"`, expected an array."))}for(var be=0;be<le.length;be++){var he=U(le,be,pe,we,ne+"["+be+"]",n);if(he instanceof Error)return he}return null}return w(V)}function O(){function U(V,ce,ue,pe,we){var ne=V[ce];if(!c(ne)){var le=B(ne);return new _("Invalid "+pe+" `"+we+"` of type "+("`"+le+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return w(U)}function I(){function U(V,ce,ue,pe,we){var ne=V[ce];if(!e.isValidElementType(ne)){var le=B(ne);return new _("Invalid "+pe+" `"+we+"` of type "+("`"+le+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return w(U)}function M(U){function V(ce,ue,pe,we,ne){if(!(ce[ue]instanceof U)){var le=U.name||v,ge=q(ce[ue]);return new _("Invalid "+we+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+pe+"`, expected ")+("instance of `"+le+"`."))}return null}return w(V)}function N(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function V(ce,ue,pe,we,ne){for(var le=ce[ue],ge=0;ge<U.length;ge++)if(E(le,U[ge]))return null;var be=JSON.stringify(U,function(We,de){var _t=W(de);return _t==="symbol"?String(de):de});return new _("Invalid "+we+" `"+ne+"` of value `"+String(le)+"` "+("supplied to `"+pe+"`, expected one of "+be+"."))}return w(V)}function D(U){function V(ce,ue,pe,we,ne){if(typeof U!="function")return new _("Property `"+ne+"` of component `"+pe+"` has invalid PropType notation inside objectOf.");var le=ce[ue],ge=B(le);if(ge!=="object")return new _("Invalid "+we+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+pe+"`, expected an object."));for(var be in le)if(r(le,be)){var he=U(le,be,pe,we,ne+"."+be,n);if(he instanceof Error)return he}return null}return w(V)}function k(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var V=0;V<U.length;V++){var ce=U[V];if(typeof ce!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(ce)+" at index "+V+"."),l}function ue(pe,we,ne,le,ge){for(var be=[],he=0;he<U.length;he++){var We=U[he],de=We(pe,we,ne,le,ge,n);if(de==null)return null;de.data&&r(de.data,"expectedType")&&be.push(de.data.expectedType)}var _t=be.length>0?", expected one of type ["+be.join(", ")+"]":"";return new _("Invalid "+le+" `"+ge+"` supplied to "+("`"+ne+"`"+_t+"."))}return w(ue)}function Y(){function U(V,ce,ue,pe,we){return R(V[ce])?null:new _("Invalid "+pe+" `"+we+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(U)}function L(U,V,ce,ue,pe){return new _((U||"React class")+": "+V+" type `"+ce+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+pe+"`.")}function G(U){function V(ce,ue,pe,we,ne){var le=ce[ue],ge=B(le);if(ge!=="object")return new _("Invalid "+we+" `"+ne+"` of type `"+ge+"` "+("supplied to `"+pe+"`, expected `object`."));for(var be in U){var he=U[be];if(typeof he!="function")return L(pe,we,ne,be,W(he));var We=he(le,be,pe,we,ne+"."+be,n);if(We)return We}return null}return w(V)}function X(U){function V(ce,ue,pe,we,ne){var le=ce[ue],ge=B(le);if(ge!=="object")return new _("Invalid "+we+" `"+ne+"` of type `"+ge+"` "+("supplied to `"+pe+"`, expected `object`."));var be=t({},ce[ue],U);for(var he in be){var We=U[he];if(r(U,he)&&typeof We!="function")return L(pe,we,ne,he,W(We));if(!We)return new _("Invalid "+we+" `"+ne+"` key `"+he+"` supplied to `"+pe+"`.\nBad object: "+JSON.stringify(ce[ue],null," ")+`
|
|
160
|
-
Valid keys: `+JSON.stringify(Object.keys(U),null," "));var de=We(le,he,pe,we,ne+"."+he,n);if(de)return de}return null}return w(V)}function R(U){switch(typeof U){case"number":case"string":case"undefined":return!0;case"boolean":return!U;case"object":if(Array.isArray(U))return U.every(R);if(U===null||c(U))return!0;var V=g(U);if(V){var ce=V.call(U),ue;if(V!==U.entries){for(;!(ue=ce.next()).done;)if(!R(ue.value))return!1}else for(;!(ue=ce.next()).done;){var pe=ue.value;if(pe&&!R(pe[1]))return!1}}else return!1;return!0;default:return!1}}function K(U,V){return U==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function B(U){var V=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":K(V,U)?"symbol":V}function W(U){if(typeof U>"u"||U===null)return""+U;var V=B(U);if(V==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return V}function J(U){var V=W(U);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function q(U){return!U.constructor||!U.constructor.name?v:U.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Lf}var jf,T2;function WO(){if(T2)return jf;T2=1;var e=Pf();function t(){}function n(){}return n.resetWarningCache=t,jf=function(){function r(l,c,d,f,m,g){if(g!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},jf}if(process.env.NODE_ENV!=="production"){var qO=_2(),YO=!0;Df.exports=VO()(qO.isElement,YO)}else Df.exports=WO()();var ZO=Df.exports;const Ge=Nc(ZO);function XO(e){return p.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},p.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}const KO={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},QO=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"];class JO extends p.Component{constructor(t){super(t),this.state={inputWidth:null},this.input=p.createRef(),this.sizer=p.createRef()}componentDidMount(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth())}componentDidUpdate({query:t,placeholderText:n}){(t!==this.props.query||n!==this.props.placeholderText)&&this.updateInputWidth()}copyInputStyles(){const t=window.getComputedStyle(this.input.current);QO.forEach(n=>{this.sizer.current.style[n]=t[n]})}updateInputWidth(){let t;this.props.autoresize&&(t=Math.ceil(this.sizer.current.scrollWidth)+2),t!==this.state.inputWidth&&this.setState({inputWidth:t})}render(){const{id:t,query:n,ariaLabelText:r,placeholderText:i,expanded:s,classNames:l,inputAttributes:c,inputEventHandlers:d,index:f}=this.props;return p.createElement("div",{className:l.searchWrapper},p.createElement("input",Object.assign({},c,d,{ref:this.input,value:n,placeholder:i,className:l.searchInput,role:"combobox","aria-autocomplete":"list","aria-label":r||i,"aria-owns":t,"aria-activedescendant":f>-1?`${t}-${f}`:null,"aria-expanded":s,style:{width:this.state.inputWidth}})),p.createElement("div",{ref:this.sizer,style:KO},n||i))}}function kf(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function e$(e){return new RegExp(kf(e),"gi")}function t$(e){return new RegExp(`(?:^|\\s)${kf(e)}`,"i")}function n$(e){return new RegExp(`^${kf(e)}$`,"i")}function r$(e,t){const n=e$(t);return e.replace(n,"<mark>$&</mark>")}function i$({item:e,query:t}){return p.createElement("span",{dangerouslySetInnerHTML:{__html:r$(e.name,t)}})}function o$(e){const t=e.suggestionComponent||i$,n=e.options.map((r,i)=>{const s=`${e.id}-${i}`,l=[];return e.index===i&&l.push(e.classNames.suggestionActive),r.disabled&&l.push(e.classNames.suggestionDisabled),p.createElement("li",{id:s,key:s,role:"option",className:l.join(" "),"aria-disabled":!!r.disabled,onMouseDown:c=>c.preventDefault(),onClick:()=>e.addTag(r)},r.prefix?p.createElement("span",{className:e.classNames.suggestionPrefix},r.prefix," "):null,r.disableMarkIt?r.name:p.createElement(t,{item:r,query:e.query}))});return p.createElement("div",{className:e.classNames.suggestions},p.createElement("ul",{role:"listbox",id:e.id},n))}function s$(e,t){const n=e.querySelectorAll("a,button,input"),r=Array.prototype.findIndex.call(n,s=>s===t),i=n[r-1]||n[r+1];i&&i.focus()}const no={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},S2={root:"react-tags",rootFocused:"is-focused",selected:"react-tags__selected",selectedTag:"react-tags__selected-tag",selectedTagName:"react-tags__selected-tag-name",search:"react-tags__search",searchWrapper:"react-tags__search-wrapper",searchInput:"react-tags__search-input",suggestions:"react-tags__suggestions",suggestionActive:"is-active",suggestionDisabled:"is-disabled",suggestionPrefix:"react-tags__suggestion-prefix"};function I2(e,t){return e.findIndex(n=>n$(t).test(n.name))}function Ff(){if(this.state.query.length>=this.props.minQueryLength){const e=I2(this.state.options,this.state.query),t=this.state.index===-1?e:this.state.index,n=t>-1?this.state.options[t]:null;n?this.addTag(n):this.props.allowNew&&this.addTag({name:this.state.query})}}function a$(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function l$(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function c$(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function d$(e,t){return t$(t).test(e.name)}function u$(e,t){let n;return e.suggestionsTransform?n=e.suggestionsTransform(t.query,e.suggestions):n=e.suggestions.filter(r=>e.suggestionsFilter(r,t.query)),n=n.slice(0,e.maxSuggestionsLength),e.allowNew&&e.newTagText&&I2(n,t.query)===-1?n.push({id:0,name:t.query,prefix:e.newTagText,disableMarkIt:!0}):e.noSuggestionsText&&n.length===0&&n.push({id:0,name:e.noSuggestionsText,disabled:!0,disableMarkIt:!0}),n}class Bf extends p.Component{constructor(t){super(t),this.state={query:"",focused:!1,index:-1},this.inputEventHandlers={onChange:()=>{},onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.container=p.createRef(),this.input=p.createRef()}onInput(t){const n=t.target.value;this.props.onInput&&this.props.onInput(n),n.length===this.state.query.length+1&&this.props.delimiters.indexOf(n.slice(-1))>-1?Ff.call(this):n!==this.state.query&&this.setState({query:n})}onKeyDown(t){this.props.delimiters.indexOf(t.key)>-1&&((this.state.query||this.state.index>-1)&&t.preventDefault(),Ff.call(this)),t.key===no.BACKSPACE&&this.props.allowBackspace&&c$.call(this,t),(t.key===no.UP_ARROW||t.key===no.UP_ARROW_COMPAT)&&a$.call(this,t),(t.key===no.DOWN_ARROW||t.key===no.DOWN_ARROW_COMPAT)&&l$.call(this,t)}onClick(t){document.activeElement!==t.target&&this.focusInput()}onBlur(){this.setState({focused:!1,index:-1}),this.props.onBlur&&this.props.onBlur(),this.props.addOnBlur&&Ff.call(this)}onFocus(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()}onDeleteTag(t,n){this.container.current&&s$(this.container.current,n.currentTarget),this.deleteTag(t)}addTag(t){t.disabled||typeof this.props.onValidate=="function"&&!this.props.onValidate(t)||(this.props.onAddition({id:t.id,name:t.name}),this.clearInput())}deleteTag(t){this.props.onDelete(t)}clearInput(){this.setState({query:"",index:-1})}clearSelectedIndex(){this.setState({index:-1})}focusInput(){this.input.current&&this.input.current.input.current&&this.input.current.input.current.focus()}render(){const t=this.props.tagComponent||XO,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,r=Object.assign({},S2,this.props.classNames),i=[r.root];return this.state.focused&&i.push(r.rootFocused),p.createElement("div",{ref:this.container,className:i.join(" "),onClick:this.onClick.bind(this)},p.createElement("div",{className:r.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((s,l)=>p.createElement(t,{key:l,tag:s,removeButtonText:this.props.removeButtonText,classNames:r,onDelete:this.onDeleteTag.bind(this,l)}))),p.createElement("div",{className:r.search},p.createElement(JO,Object.assign({},this.state,{id:this.props.id,ref:this.input,classNames:r,inputAttributes:this.props.inputAttributes,inputEventHandlers:this.inputEventHandlers,autoresize:this.props.autoresize,expanded:n,placeholderText:this.props.placeholderText,ariaLabelText:this.props.ariaLabelText})),n&&this.state.options.length?p.createElement(o$,Object.assign({},this.state,{id:this.props.id,classNames:r,expanded:n,addTag:this.addTag.bind(this),suggestionComponent:this.props.suggestionComponent})):null))}static getDerivedStateFromProps(t,n){return n.prevQuery!==n.query||n.prevSuggestions!==t.suggestions?{prevQuery:n.query,prevSuggestions:t.suggestions,options:u$(t,n)}:null}}Bf.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:d$,suggestionsTransform:null,autoresize:!0,classNames:S2,delimiters:[no.TAB,no.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}},Bf.propTypes={id:Ge.string,tags:Ge.arrayOf(Ge.object),placeholderText:Ge.string,ariaLabelText:Ge.string,removeButtonText:Ge.string,noSuggestionsText:Ge.string,newTagText:Ge.string,suggestions:Ge.arrayOf(Ge.object),suggestionsFilter:Ge.func,suggestionsTransform:Ge.func,autoresize:Ge.bool,delimiters:Ge.arrayOf(Ge.string),onDelete:Ge.func.isRequired,onAddition:Ge.func.isRequired,onInput:Ge.func,onFocus:Ge.func,onBlur:Ge.func,onValidate:Ge.func,minQueryLength:Ge.number,maxSuggestionsLength:Ge.number,classNames:Ge.object,allowNew:Ge.bool,allowBackspace:Ge.bool,addOnBlur:Ge.bool,tagComponent:Ge.oneOfType([Ge.func,Ge.element]),suggestionComponent:Ge.oneOfType([Ge.func,Ge.element]),inputAttributes:Ge.object};const f$=[",","Enter","Tab"],p$=e=>{const{tag:t,onDelete:n}=e;return u.jsx(Jn,{label:(t==null?void 0:t.name)??"",variant:"filled",color:"purple",onCloseIconClicked:n})},h$=e=>{const{label:t,size:n="md",variant:r="outlined",disabled:i,className:s,inputClassNames:l,contentClassName:c,helperText:d,error:f,placeholder:m,values:g,onAddition:v,onDelete:b,onInput:E,allowNew:_=!0,addOnBlur:w=!1,onBlur:y,inputAttributes:T,inputRef:S,delimiters:O=f$,minQueryLength:I=2}=e,M=(D,k)=>{switch(k){case"lg":return u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:Er["multiple-values--label-text"],children:D});default:case"md":return u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-800",className:Er["multiple-values--label-text"],children:D});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:Er["multiple-values--label-text"],children:D})}},N=p.useMemo(()=>({disabled:i,...T}),[i,T]);return u.jsxs("div",{className:oe(Er["multiple-values--container"],i&&Er["input-text-field--disabled"],s),children:[t&&M(t,n),u.jsx("div",{className:oe(Er["multiple-values--content"],Er[`multiple-values--size-${n}`],Er[`multiple-values--${r}`],f&&Er["multiple-values--error"],c),children:u.jsx(Bf,{ref:S,classNames:l,tags:g,placeholderText:m,tagComponent:p$,delimiters:O,inputAttributes:N,allowNew:_,onAddition:v,onDelete:b,onBlur:y,addOnBlur:w,onInput:E,minQueryLength:I})}),d&&u.jsx(He,{size:n!=="sm"?"md":"sm",fontWeight:"regular",color:f?"red-500":"gray-700",className:Er["multiple-values--helper-text"],children:d})]})},A2={"notes-block":"_notes-block_czx86_1","notes-block-editor":"_notes-block-editor_czx86_8"},O2=p.forwardRef((e,t)=>{const{defaultNote:n,note:r,onNoteChange:i,...s}=e;return u.jsx("div",{ref:t,children:u.jsx($r,{...s,block:"notes",children:u.jsxs("div",{className:A2["notes-block"],children:[u.jsx(ye,{color:"gray-900",fontWeight:"regular",size:"sm",children:"This note will be not visible in chats"}),u.jsx("div",{className:A2["notes-block-editor"],children:u.jsx(xr,{autoResize:!0,placeholder:"Write here notes for this answer",rows:1,size:"md",variant:"filled",value:r,defaultValue:n,onChange:i})})]})})})});O2.displayName="NotesBlock";const Lr={pagination:"_pagination_46n68_1","pagination--disabled":"_pagination--disabled_46n68_7","pagination--content":"_pagination--content_46n68_11","pagination-button":"_pagination-button_46n68_22","pagination-button--active":"_pagination-button--active_46n68_50","pagination-button--size-sm":"_pagination-button--size-sm_46n68_55","pagination-button--size-md":"_pagination-button--size-md_46n68_61","pagination-button--disabled":"_pagination-button--disabled_46n68_67","pagination-button--text":"_pagination-button--text_46n68_73"};function g$({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=ve.useRef(e!==void 0),[s,l]=ve.useState(t),c=i?e:s,d=ve.useCallback(f=>{i||l(f)},[]);return[c,d]}function m$(e){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:i=1,disabled:s=!1,hideNextButton:l=!1,hidePrevButton:c=!1,onChange:d,page:f,showFirstButton:m=!1,showLastButton:g=!1,siblingCount:v=1,...b}=e,[E,_]=g$({controlled:f,default:i,name:n,state:"page"}),w=(k,Y)=>{f||_(Y),d&&d(k,Y)},y=(k,Y)=>{const L=Y-k+1;return Array.from({length:L},(G,X)=>k+X)},T=y(1,Math.min(t,r)),S=y(Math.max(r-t+1,t+1),r),O=Math.max(Math.min(E-v,r-t-v*2-1),t+2),I=Math.min(Math.max(E+v,t+v*2+2),S.length>0?S[0]-2:r-1),M=[...m?["first"]:[],...c?[]:["previous"],...T,...O>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...y(O,I),...I<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...S,...l?[]:["next"],...g?["last"]:[]],N=k=>{switch(k){case"first":return 1;case"previous":return E-1;case"next":return E+1;case"last":return r;default:return null}};return{items:M.map(k=>typeof k=="number"?{onClick:Y=>{w(Y,k)},type:"page",page:k,selected:k===E,disabled:s,"aria-current":k===E?"true":void 0}:{onClick:Y=>{w(Y,N(k))},type:k,page:N(k),selected:!1,disabled:s||k.indexOf("ellipsis")===-1&&(k==="next"||k==="last"?E>=r:E<=1)}),...b}}const $2=p.forwardRef((e,t)=>{const{numberOfPages:n,currentPage:r,className:i,onChangePage:s,size:l="md",disabled:c}=e,{items:d}=m$({count:n,onChange:s,page:r}),f=m=>m.map(({page:g,type:v,selected:b,disabled:E,onClick:_},w)=>{let y=null;switch(v){case"end-ellipsis":case"start-ellipsis":y=u.jsx(kl,{size:l,disabled:c,style:{pointerEvents:"none"},children:"..."});break;case"page":y=u.jsx(kl,{size:l,active:b,disabled:E||c,onClick:T=>_(T),children:g});break;case"previous":y=u.jsx(st,{variant:"outlined",color:"primary",size:l,disabled:E||c,onClick:T=>_(T),"aria-label":"Previous Page",children:u.jsx(r7,{})});break;case"next":y=u.jsx(st,{variant:"outlined",color:"primary",size:l,disabled:E||c,onClick:T=>_(T),"aria-label":"Next Page",children:u.jsx(pa,{})});break}return u.jsx("li",{children:y},w)});return u.jsx("div",{ref:t,className:oe(Lr.pagination,c&&Lr["pagination--disabled"],i),children:u.jsx("ul",{className:Lr["pagination--content"],children:f(d)})})});$2.displayName="Pagination";const kl=p.forwardRef((e,t)=>{const{size:n="md",disabled:r,children:i,active:s,className:l,...c}=e;return u.jsx("button",{ref:t,className:oe(Lr["pagination-button"],Lr[`pagination-button--size-${n}`],r&&Lr["pagination-button--disabled"],s&&Lr["pagination-button--active"],l),...c,children:n==="md"?u.jsx(ye,{size:"sm",fontWeight:"regular",className:Lr["pagination-button--text"],children:i}):u.jsx(He,{size:"md",fontWeight:"regular",className:Lr["pagination-button--text"],children:i})})});kl.displayName="PaginationButton";const Wo={"progress-bar":"_progress-bar_1oktj_1","progress-bar--container":"_progress-bar--container_1oktj_7","progress-bar--inner":"_progress-bar--inner_1oktj_15","progress-bar--size-sm":"_progress-bar--size-sm_1oktj_24","progress-bar--size-lg":"_progress-bar--size-lg_1oktj_28","progress-bar--details":"_progress-bar--details_1oktj_32","progress-bar--percentage":"_progress-bar--percentage_1oktj_39"},D2=p.forwardRef((e,t)=>{const{size:n="lg",value:r,description:i,showPercentage:s,numericValue:l,className:c,...d}=e;return u.jsxs("div",{ref:t,className:oe(Wo["progress-bar"],c),...d,children:[u.jsx("div",{className:oe(Wo["progress-bar--container"],Wo[`progress-bar--size-${n}`]),children:u.jsx("div",{className:Wo["progress-bar--inner"],style:{width:`${r}%`}})}),u.jsxs("div",{className:Wo["progress-bar--details"],children:[u.jsx(ye,{size:"xs",fontWeight:"bold",className:Wo["progress-bar--percentage"],children:s?Number.isInteger(r)&&r>=0?`${r}%`:"-":l??"-"}),i&&u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-700",children:i})]})]})});D2.displayName="ProgressBar";const M2={"reroute-block":"_reroute-block_1f5ri_1"},P2=p.forwardRef((e,t)=>{const{selectorProps:n,...r}=e;return u.jsx("div",{ref:t,children:u.jsx($r,{...r,block:"reroute",children:u.jsxs("div",{className:M2["reroute-block"],children:[u.jsx("div",{className:M2["reroute-block-text"],children:u.jsx(ye,{color:"gray-1000",size:"sm",children:"Here you can set the destination answer"})}),u.jsx("div",{children:u.jsx(Ao,{...n})})]})})})});P2.displayName="RerouteBlock";const N2={tag:"_tag_1wrac_1","quality-metric-icon--size":"_quality-metric-icon--size_1wrac_19"},R2=p.forwardRef((e,t)=>{const{label:n,startIcon:r=!0,endIcon:i=!0,qualityMetricIcon:s,onClick:l,onEndIconClicked:c,className:d,...f}=e,m=g=>{c==null||c(),g.stopPropagation()};return u.jsxs("div",{ref:t,className:oe(N2.tag,d),onClick:l,...f,children:[!!s&&u.jsx(Xa,{...s,className:N2["quality-metric-icon--size"]}),r&&u.jsx(ha,{width:12,height:12}),u.jsx(Pi,{variant:"tag",color:"gray-1000",children:n}),i&&u.jsx(zd,{width:12,height:12,className:"cursor-pointer",onClick:m})]})});R2.displayName="TagQualityMetric";const L2="Tabs",[v$,eB]=zt(L2,[xo]),j2=xo(),[b$,zf]=v$(L2),_$=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:s,orientation:l="horizontal",dir:c,activationMode:d="automatic",...f}=e,m=ds(c),[g,v]=mn({prop:r,onChange:i,defaultProp:s});return p.createElement(b$,{scope:n,baseId:Xn(),value:g,onValueChange:v,orientation:l,dir:m,activationMode:d},p.createElement(Re.div,ae({dir:m,"data-orientation":l},f,{ref:t})))}),x$="TabsList",E$=p.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,s=zf(x$,n),l=j2(n);return p.createElement(Ed,ae({asChild:!0},l,{orientation:s.orientation,dir:s.dir,loop:r}),p.createElement(Re.div,ae({role:"tablist","aria-orientation":s.orientation},i,{ref:t})))}),w$="TabsTrigger",y$=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...s}=e,l=zf(w$,n),c=j2(n),d=k2(l.baseId,r),f=F2(l.baseId,r),m=r===l.value;return p.createElement(wd,ae({asChild:!0},c,{focusable:!i,active:m}),p.createElement(Re.button,ae({type:"button",role:"tab","aria-selected":m,"aria-controls":f,"data-state":m?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:d},s,{ref:t,onMouseDown:Ee(e.onMouseDown,g=>{!i&&g.button===0&&g.ctrlKey===!1?l.onValueChange(r):g.preventDefault()}),onKeyDown:Ee(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&l.onValueChange(r)}),onFocus:Ee(e.onFocus,()=>{const g=l.activationMode!=="manual";!m&&!i&&g&&l.onValueChange(r)})})))}),C$="TabsContent",T$=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:s,...l}=e,c=zf(C$,n),d=k2(c.baseId,r),f=F2(c.baseId,r),m=r===c.value,g=p.useRef(m);return p.useEffect(()=>{const v=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(v)},[]),p.createElement(sn,{present:i||m},({present:v})=>p.createElement(Re.div,ae({"data-state":m?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!v,id:f,tabIndex:0},l,{ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0}}),v&&s))});function k2(e,t){return`${e}-trigger-${t}`}function F2(e,t){return`${e}-content-${t}`}const B2=_$,z2=E$,Fl=y$,G2=T$,hi={"tabs--list":"_tabs--list_no35f_1","tabs--trigger":"_tabs--trigger_no35f_9","tabs--trigger-disabled":"_tabs--trigger-disabled_no35f_24","tabs--trigger-content":"_tabs--trigger-content_no35f_35","tabs--icon":"_tabs--icon_no35f_44","tabs--trigger-content-disabled":"_tabs--trigger-content-disabled_no35f_49"},S$=B2,H2=p.forwardRef(({className:e,...t},n)=>u.jsx(z2,{ref:n,className:oe(hi["tabs--list"],e),...t}));H2.displayName="TabsList";const U2=p.forwardRef((e,t)=>{const{value:n,className:r,hasIcon:i=!1,label:s,disabled:l=!1,...c}=e;return u.jsxs(Fl,{ref:t,value:n,className:oe(hi["tabs--trigger"],l&&hi["tabs--trigger-disabled"],r),disabled:l,...c,children:[typeof s=="string"?u.jsx(ye,{size:"sm",className:oe(l?hi["tabs--trigger-content-disabled"]:hi["tabs--trigger-content"]),children:s}):s,i&&u.jsx("span",{className:hi["tabs--icon"],children:u.jsx(Ux,{className:oe(l?hi["tabs--trigger-content-disabled"]:hi["tabs--trigger-content"])})})]})});U2.displayName=Fl.displayName;const V2=p.forwardRef(({className:e,...t},n)=>u.jsx(G2,{ref:n,className:e,...t}));V2.displayName="TabsContent";const Gf={"text-block":"_text-block_1vggm_1","text-block-editor":"_text-block-editor_1vggm_6","text-block-checkbox":"_text-block-checkbox_1vggm_14"};function W2(e){return e?[...e].length??0:0}const q2=p.forwardRef((e,t)=>{const{inputRef:n,inputProps:r,...i}=e,[s,l]=p.useState(!1),[c,d]=p.useState(W2((r==null?void 0:r.value)??(r==null?void 0:r.defaultValue))),f=p.useCallback(v=>{var b;d(W2(v.target.value)),(b=r==null?void 0:r.onChange)==null||b.call(r,v)},[r]),m=p.useCallback(()=>{l(v=>!v)},[]),g=s?1200:300;return u.jsx("div",{ref:t,children:u.jsx($r,{...i,block:"text",children:u.jsxs("div",{className:Gf["text-block"],children:[u.jsx("div",{className:Gf["text-block-editor"],children:u.jsx(xr,{helperText:c+`/${g} characters`,placeholder:"Write your answer here...",rows:3,size:"md",variant:"filled",ref:n,maxLength:g,...r,onChange:f})}),u.jsx("div",{className:Gf["text-block-checkbox"],children:u.jsx(Fi,{small:!0,checked:s,onCheckedChange:m,label:"Caption"})})]})})})});q2.displayName="TextBlock";const Y2="ToastProvider",[Hf,I$,A$]=ma("Toast"),[Z2,tB]=zt("Toast",[A$]),[O$,Bl]=Z2(Y2),X2=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:l}=e,[c,d]=p.useState(null),[f,m]=p.useState(0),g=p.useRef(!1),v=p.useRef(!1);return p.createElement(Hf.Provider,{scope:t},p.createElement(O$,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:f,viewport:c,onViewportChange:d,onToastAdd:p.useCallback(()=>m(b=>b+1),[]),onToastRemove:p.useCallback(()=>m(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:v},l))};X2.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${Y2}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const $$="ToastViewport",D$=["F8"],Uf="toast.viewportPause",Vf="toast.viewportResume",M$=p.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=D$,label:i="Notifications ({hotkey})",...s}=e,l=Bl($$,n),c=I$(n),d=p.useRef(null),f=p.useRef(null),m=p.useRef(null),g=p.useRef(null),v=et(t,g,l.onViewportChange),b=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=l.toastCount>0;p.useEffect(()=>{const w=y=>{var T;r.every(O=>y[O]||y.code===O)&&((T=g.current)===null||T===void 0||T.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),p.useEffect(()=>{const w=d.current,y=g.current;if(E&&w&&y){const T=()=>{if(!l.isClosePausedRef.current){const M=new CustomEvent(Uf);y.dispatchEvent(M),l.isClosePausedRef.current=!0}},S=()=>{if(l.isClosePausedRef.current){const M=new CustomEvent(Vf);y.dispatchEvent(M),l.isClosePausedRef.current=!1}},O=M=>{!w.contains(M.relatedTarget)&&S()},I=()=>{w.contains(document.activeElement)||S()};return w.addEventListener("focusin",T),w.addEventListener("focusout",O),w.addEventListener("pointermove",T),w.addEventListener("pointerleave",I),window.addEventListener("blur",T),window.addEventListener("focus",S),()=>{w.removeEventListener("focusin",T),w.removeEventListener("focusout",O),w.removeEventListener("pointermove",T),w.removeEventListener("pointerleave",I),window.removeEventListener("blur",T),window.removeEventListener("focus",S)}}},[E,l.isClosePausedRef]);const _=p.useCallback(({tabbingDirection:w})=>{const T=c().map(S=>{const O=S.ref.current,I=[O,...Y$(O)];return w==="forwards"?I:I.reverse()});return(w==="forwards"?T.reverse():T).flat()},[c]);return p.useEffect(()=>{const w=g.current;if(w){const y=T=>{const S=T.altKey||T.ctrlKey||T.metaKey;if(T.key==="Tab"&&!S){const D=document.activeElement,k=T.shiftKey;if(T.target===w&&k){var I;(I=f.current)===null||I===void 0||I.focus();return}const G=_({tabbingDirection:k?"backwards":"forwards"}),X=G.findIndex(R=>R===D);if(Wf(G.slice(X+1)))T.preventDefault();else{var M,N;k?(M=f.current)===null||M===void 0||M.focus():(N=m.current)===null||N===void 0||N.focus()}}};return w.addEventListener("keydown",y),()=>w.removeEventListener("keydown",y)}},[c,_]),p.createElement(L3,{ref:d,role:"region","aria-label":i.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:E?void 0:"none"}},E&&p.createElement(K2,{ref:f,onFocusFromOutsideViewport:()=>{const w=_({tabbingDirection:"forwards"});Wf(w)}}),p.createElement(Hf.Slot,{scope:n},p.createElement(Re.ol,ae({tabIndex:-1},s,{ref:v}))),E&&p.createElement(K2,{ref:m,onFocusFromOutsideViewport:()=>{const w=_({tabbingDirection:"backwards"});Wf(w)}}))}),P$="ToastFocusProxy",K2=p.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=Bl(P$,n);return p.createElement(Hd,ae({"aria-hidden":!0,tabIndex:0},i,{ref:t,style:{position:"fixed"},onFocus:l=>{var c;const d=l.relatedTarget;!((c=s.viewport)!==null&&c!==void 0&&c.contains(d))&&r()}}))}),zl="Toast",N$="toast.swipeStart",R$="toast.swipeMove",L$="toast.swipeCancel",j$="toast.swipeEnd",k$=p.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...l}=e,[c=!0,d]=mn({prop:r,defaultProp:i,onChange:s});return p.createElement(sn,{present:n||c},p.createElement(Q2,ae({open:c},l,{ref:t,onClose:()=>d(!1),onPause:on(e.onPause),onResume:on(e.onResume),onSwipeStart:Ee(e.onSwipeStart,f=>{f.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ee(e.onSwipeMove,f=>{const{x:m,y:g}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","move"),f.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:Ee(e.onSwipeCancel,f=>{f.currentTarget.setAttribute("data-swipe","cancel"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ee(e.onSwipeEnd,f=>{const{x:m,y:g}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","end"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),d(!1)})})))}),[F$,B$]=Z2(zl,{onClose(){}}),Q2=p.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:l,onEscapeKeyDown:c,onPause:d,onResume:f,onSwipeStart:m,onSwipeMove:g,onSwipeCancel:v,onSwipeEnd:b,...E}=e,_=Bl(zl,n),[w,y]=p.useState(null),T=et(t,R=>y(R)),S=p.useRef(null),O=p.useRef(null),I=i||_.duration,M=p.useRef(0),N=p.useRef(I),D=p.useRef(0),{onToastAdd:k,onToastRemove:Y}=_,L=on(()=>{var R;(w==null?void 0:w.contains(document.activeElement))&&((R=_.viewport)===null||R===void 0||R.focus()),l()}),G=p.useCallback(R=>{!R||R===1/0||(window.clearTimeout(D.current),M.current=new Date().getTime(),D.current=window.setTimeout(L,R))},[L]);p.useEffect(()=>{const R=_.viewport;if(R){const K=()=>{G(N.current),f==null||f()},B=()=>{const W=new Date().getTime()-M.current;N.current=N.current-W,window.clearTimeout(D.current),d==null||d()};return R.addEventListener(Uf,B),R.addEventListener(Vf,K),()=>{R.removeEventListener(Uf,B),R.removeEventListener(Vf,K)}}},[_.viewport,I,d,f,G]),p.useEffect(()=>{s&&!_.isClosePausedRef.current&&G(I)},[s,I,_.isClosePausedRef,G]),p.useEffect(()=>(k(),()=>Y()),[k,Y]);const X=p.useMemo(()=>w?e5(w):null,[w]);return _.viewport?p.createElement(p.Fragment,null,X&&p.createElement(z$,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},X),p.createElement(F$,{scope:n,onClose:L},$n.createPortal(p.createElement(Hf.ItemSlot,{scope:n},p.createElement(R3,{asChild:!0,onEscapeKeyDown:Ee(c,()=>{_.isFocusedToastEscapeKeyDownRef.current||L(),_.isFocusedToastEscapeKeyDownRef.current=!1})},p.createElement(Re.li,ae({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":_.swipeDirection},E,{ref:T,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ee(e.onKeyDown,R=>{R.key==="Escape"&&(c==null||c(R.nativeEvent),R.nativeEvent.defaultPrevented||(_.isFocusedToastEscapeKeyDownRef.current=!0,L()))}),onPointerDown:Ee(e.onPointerDown,R=>{R.button===0&&(S.current={x:R.clientX,y:R.clientY})}),onPointerMove:Ee(e.onPointerMove,R=>{if(!S.current)return;const K=R.clientX-S.current.x,B=R.clientY-S.current.y,W=!!O.current,J=["left","right"].includes(_.swipeDirection),q=["left","up"].includes(_.swipeDirection)?Math.min:Math.max,U=J?q(0,K):0,V=J?0:q(0,B),ce=R.pointerType==="touch"?10:2,ue={x:U,y:V},pe={originalEvent:R,delta:ue};W?(O.current=ue,Gl(R$,g,pe,{discrete:!1})):t5(ue,_.swipeDirection,ce)?(O.current=ue,Gl(N$,m,pe,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(K)>ce||Math.abs(B)>ce)&&(S.current=null)}),onPointerUp:Ee(e.onPointerUp,R=>{const K=O.current,B=R.target;if(B.hasPointerCapture(R.pointerId)&&B.releasePointerCapture(R.pointerId),O.current=null,S.current=null,K){const W=R.currentTarget,J={originalEvent:R,delta:K};t5(K,_.swipeDirection,_.swipeThreshold)?Gl(j$,b,J,{discrete:!0}):Gl(L$,v,J,{discrete:!0}),W.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})))),_.viewport))):null});Q2.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${zl}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const z$=e=>{const{__scopeToast:t,children:n,...r}=e,i=Bl(zl,t),[s,l]=p.useState(!1),[c,d]=p.useState(!1);return W$(()=>l(!0)),p.useEffect(()=>{const f=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(f)},[]),c?null:p.createElement(Aa,{asChild:!0},p.createElement(Hd,r,s&&p.createElement(p.Fragment,null,i.label," ",n)))},G$="ToastAction",H$=p.forwardRef((e,t)=>{const{altText:n,...r}=e;return n?p.createElement(J2,{altText:n,asChild:!0},p.createElement(V$,ae({},r,{ref:t}))):null});H$.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${G$}\``)}};const U$="ToastClose",V$=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=B$(U$,n);return p.createElement(J2,{asChild:!0},p.createElement(Re.button,ae({type:"button"},r,{ref:t,onClick:Ee(e.onClick,i.onClose)})))}),J2=p.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return p.createElement(Re.div,ae({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},i,{ref:t}))});function e5(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),q$(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...e5(r))}}),t}function Gl(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Vc(i,s):i.dispatchEvent(s)}const t5=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function W$(e=()=>{}){const t=on(e);Qr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function q$(e){return e.nodeType===e.ELEMENT_NODE}function Y$(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Wf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}const Z$=X2,n5=M$,r5=k$,ro={"toast--toaster-container":"_toast--toaster-container_172io_1","toast--viewport":"_toast--viewport_172io_9","toast--left-icon":"_toast--left-icon_172io_47","toast--close-icon":"_toast--close-icon_172io_51","toast--text-container":"_toast--text-container_172io_59","toast--root":"_toast--root_172io_67",slideIn:"_slideIn_172io_1",hide:"_hide_172io_1",swipeOut:"_swipeOut_172io_1","toast--root-gray-outlined":"_toast--root-gray-outlined_172io_117","toast--root-gray-soft":"_toast--root-gray-soft_172io_122","toast--root-gray-dark":"_toast--root-gray-dark_172io_127","toast--root-red-outlined":"_toast--root-red-outlined_172io_132","toast--root-red-soft":"_toast--root-red-soft_172io_137","toast--root-red-dark":"_toast--root-red-dark_172io_142","toast--root-green-outlined":"_toast--root-green-outlined_172io_147","toast--root-green-soft":"_toast--root-green-soft_172io_152","toast--root-green-dark":"_toast--root-green-dark_172io_157"},X$=Z$,i5=p.forwardRef(({className:e,...t},n)=>u.jsx(n5,{ref:n,className:oe(ro["toast--viewport"],e),...t}));i5.displayName=n5.displayName;const o5=p.forwardRef(({className:e,...t},n)=>u.jsx(r5,{ref:n,className:e,...t}));o5.displayName=r5.displayName;const K$=({color:e,variant:t})=>({gray:{outlined:"gray-1000",soft:"gray-1000",dark:"white"},red:{outlined:"red-600",soft:"red-800",dark:"red-100"},green:{outlined:"green-700",soft:"green-800",dark:"green-100"}})[e][t],Q$=()=>{const{toasts:e,dismiss:t}=a5();return u.jsxs(X$,{children:[e.map(n=>{const{id:r,title:i,description:s,leftIcon:l,hasCloseIcon:c,action:d,variant:f="outlined",color:m="gray",...g}=n,v=K$({color:m,variant:f});return u.jsx(o5,{id:r,className:oe(ro["toast--root"],ro[`toast--root-${m}-${f}`]),...g,children:u.jsxs("div",{className:ro["toast--toaster-container"],children:[l&&u.jsx("span",{className:oe(ro["toast--left-icon"],`text--${v}`),children:l}),u.jsxs("div",{className:ro["toast--text-container"],children:[i&&u.jsx(ye,{size:"sm",fontWeight:"bold",color:v,children:i}),s&&u.jsx(ye,{size:"xs",fontWeight:"regular",color:v,children:s})]}),c?u.jsx("span",{className:oe(ro["toast--close-icon"],`text--${v}`),children:u.jsx(vE,{onClick:()=>t()})}):d]})},r)}),u.jsx(i5,{})]})},J$=1,eD=1e6;let qf=0;function tD(){return qf=(qf+1)%Number.MAX_VALUE,qf.toString()}const Yf=new Map,s5=e=>{if(Yf.has(e))return;const t=setTimeout(()=>{Yf.delete(e),Vs({type:"REMOVE_TOAST",toastId:e})},eD);Yf.set(e,t)},nD=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,J$)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?s5(n):e.toasts.forEach(r=>{s5(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Hl=[];let Ul={toasts:[]};function Vs(e){Ul=nD(Ul,e),Hl.forEach(t=>{t(Ul)})}function rD({...e}){const t=tD(),n=i=>Vs({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>Vs({type:"DISMISS_TOAST",toastId:t});return Vs({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function a5(){const[e,t]=p.useState(Ul);return p.useEffect(()=>(Hl.push(t),()=>{const n=Hl.indexOf(t);n>-1&&Hl.splice(n,1)}),[e]),{...e,toast:rD,dismiss:n=>Vs({type:"DISMISS_TOAST",toastId:n})}}const Ws={"tooltip-quality-metric":"_tooltip-quality-metric_zpfvr_1","tooltip-quality-metric--topbar":"_tooltip-quality-metric--topbar_zpfvr_23","tooltip-quality-metric--tag":"_tooltip-quality-metric--tag_zpfvr_32","tooltip-quality-metric--answer-content":"_tooltip-quality-metric--answer-content_zpfvr_40","tooltip-quality-metric--divider":"_tooltip-quality-metric--divider_zpfvr_72"},l5=p.forwardRef((e,t)=>{const{title:n,qualityMetricTitle:r,leftTagProps:i,rightTagProps:s,answerContentText:l,description:c,buttonProps:d,sideOffset:f=8,className:m,...g}=e;return u.jsxs(Yd,{ref:t,sideOffset:f,className:oe(Ws["tooltip-quality-metric"],m),...g,children:[u.jsxs("div",{className:Ws["tooltip-quality-metric--topbar"],children:[u.jsx(He,{size:"md",fontWeight:"bold",isUppercase:!0,children:n}),u.jsx(gt,{...d,children:d.label})]}),typeof r=="string"?u.jsx(He,{size:"md",fontWeight:"bold",children:r}):r,u.jsxs("div",{className:Ws["tooltip-quality-metric--tag"],children:[i&&u.jsx(Jn,{...i}),s&&u.jsx(Jn,{...s})]}),u.jsx("div",{className:Ws["tooltip-quality-metric--answer-content"],children:typeof l=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",children:l}):l}),u.jsx(gr,{color:"gray-300",className:Ws["tooltip-quality-metric--divider"]}),typeof c=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",children:c}):c]})});l5.displayName="TooltipQualityMetric";const qo={"vertical-tabs--root":"_vertical-tabs--root_ksiqw_1","vertical-tabs--list":"_vertical-tabs--list_ksiqw_6","vertical-tabs--trigger":"_vertical-tabs--trigger_ksiqw_13","vertical-tabs--trigger-disabled":"_vertical-tabs--trigger-disabled_ksiqw_27","vertical-tabs--chat-title-container":"_vertical-tabs--chat-title-container_ksiqw_50","vertical-tabs--chat-preview-container":"_vertical-tabs--chat-preview-container_ksiqw_58"},c5=p.forwardRef(({className:e,...t},n)=>u.jsx(B2,{ref:n,className:oe(qo["vertical-tabs--root"],e),orientation:"vertical",...t}));c5.displayName="VerticalTabs";const d5=p.forwardRef(({className:e,...t},n)=>u.jsx(z2,{ref:n,className:oe(qo["vertical-tabs--list"],e),...t}));d5.displayName="TabChatList";const u5=p.forwardRef((e,t)=>{const{value:n,title:r,preview:i,time:s,timeUnit:l="MIN",className:c,disabled:d=!1,avatarProps:f,needSupportLabel:m="Needs your support",needSupportIcon:g,isTyping:v,isTypingLabel:b="Is typing...",onNeedSupportClicked:E,..._}=e;return u.jsxs(Fl,{ref:t,value:n,className:oe(qo["vertical-tabs--trigger"],d&&qo["vertical-tabs--trigger-disabled"],c),disabled:d,..._,children:[u.jsx($o,{...f}),u.jsxs("div",{children:[u.jsxs("div",{className:qo["vertical-tabs--chat-title-container"],children:[r&&u.jsx(ye,{size:"sm",fontWeight:"bold",children:r}),s&&u.jsx(He,{size:"md",isUppercase:!0,children:`${s} ${l}`})]}),u.jsx("div",{className:qo["vertical-tabs--chat-preview-container"],children:v?u.jsx(He,{size:"md",fontWeight:"bold",color:"green-600",children:b}):u.jsxs(u.Fragment,{children:[i&&u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-700",children:i}),u.jsx(gt,{variant:"text",startIcon:g||u.jsx(V_,{}),size:"xs",onClick:E,children:m})]})})]})]})});u5.displayName=Fl.displayName;const f5=p.forwardRef(({className:e,...t},n)=>u.jsx(G2,{ref:n,className:e,...t}));f5.displayName="TabsContent";const gi={"video-block":"_video-block_1s3ee_1","video-container":"_video-container_1s3ee_6",video:"_video_1s3ee_1","video-description":"_video-description_1s3ee_24","video-block-input-container":"_video-block-input-container_1s3ee_31","video-block-instance-slot-container":"_video-block-instance-slot-container_1s3ee_39","video-block-spinner":"_video-block-spinner_1s3ee_46"},p5=p.forwardRef((e,t)=>{const{video:n,originalUrl:r,urlWithVariables:i,fileName:s,title:l,isUploading:c,altText:d,onDeleteBlock:f,onDeleteVideo:m,connectVideo:g,onSaveTitle:v,onSaveAltText:b,...E}=e,[_,w]=p.useState(d||""),y=l||"Video",T=I=>{b&&b(_)},S=I=>{g&&g(I)},O=()=>{m&&m()};return u.jsx($r,{block:"video",onDeleteBlock:f,...E,ref:t,className:gi["video-block"],children:u.jsxs("div",{children:[u.jsxs("div",{className:gi["video-block-instance-slot-container"],children:[u.jsx(Ya,{initialLabel:y,onSaveLabel:v}),i?u.jsxs("div",{children:[" ",u.jsx(ye,{children:" The video to display will be determined based on the value of the variables "})," "]}):n?u.jsxs("div",{className:gi["video-container"],children:[n.match(".mp4$")?u.jsx("video",{controls:!0,className:gi.video,"data-testid":"block-video",children:u.jsx("source",{src:n,type:"video/mp4"})}):u.jsx("iframe",{title:"video-block",className:gi.video,src:n,"data-testid":"block-iframe","aria-label":"Video Player"}),u.jsxs("div",{className:gi["video-description"],children:[u.jsx(ye,{color:"gray-1000",size:"xs",fontWeight:"bold",children:s?`${s} - `:""}),u.jsx(ye,{color:"gray-1000",size:"xs",children:r||n}),u.jsx(st,{size:"sm",onClick:O,variant:"ghost",children:u.jsx(Gd,{})})]})]}):c?u.jsx("div",{className:gi["video-block-spinner"],children:u.jsx("span",{children:u.jsx(ga,{})})}):u.jsx(Ll,{status:"video",onConnect:S})]}),u.jsx("div",{className:gi["video-block-input-container"],children:u.jsx(xr,{label:"Label",helperText:"Add a brief description of video content, eg. Tutorial about XYZ",placeholder:"Describe video",rows:1,autoResize:!0,size:"md",variant:"filled",value:_,onChange:I=>w(I.target.value),onBlur:T})})]})})});p5.displayName="VideoBlock",fe.Accordion=Mp,fe.AccordionPanel=Pp,fe.AiDropdown=Ao,fe.AiDropdownContent=Th,fe.AtomNameDivBlockModule=Ya,fe.AtomQuickRepliesInput=Mu,fe.AtomTopModulo=du,fe.Avatar=$o,fe.AvatarBot=nu,fe.AvatarWorkspace=Lh,fe.Badge=iu,fe.Block=$r,fe.Breadcrumb=zh,fe.BuilderBlockToolbar=xg,fe.BuilderBlockToolbarContext=_g,fe.Button=gt,fe.Caption=He,fe.ChatContainer=Tg,fe.ChatContent=U8,fe.ChatHeader=dy,fe.ChatRoot=yg,fe.ChatTrigger=Cg,fe.Checkbox=Fi,fe.Divider=gr,fe.DocumentDropdown=Nh,fe.DocumentDropdownContent=Ph,fe.EmptyState=Ll,fe.Heading=Cf,fe.IconButton=st,fe.ImageBlock=Vv,fe.ImageUploader=Gv,fe.Label=Pi,fe.Logo=WA,fe.MailBlock=s2,fe.Modal=dO,fe.ModalContent=n2,fe.ModalTrigger=uO,fe.MultipleValues=h$,fe.NotesBlock=O2,fe.Pagination=$2,fe.PaginationButton=kl,fe.ProgressBar=D2,fe.QualityMetricIcon=Xa,fe.Radio=Af,fe.RadioGroup=p2,fe.RerouteBlock=P2,fe.Select=$f,fe.TabChat=u5,fe.TabChatContent=f5,fe.TabChatList=d5,fe.Tabs=S$,fe.TabsContent=V2,fe.TabsList=H2,fe.TabsTrigger=U2,fe.Tag=Jn,fe.TagQualityMetric=R2,fe.Text=ye,fe.TextBlock=q2,fe.TextField=ln,fe.TextFieldMultiline=xr,fe.TitleBlockModule=lu,fe.Toaster=Q$,fe.Toggle=Us,fe.ToolbarIcon=Fh,fe.Tooltip=Io,fe.TooltipContent=Ni,fe.TooltipQualityMetric=l5,fe.TooltipTrigger=Ri,fe.UploadBlock=h2,fe.VerticalTabs=c5,fe.VideoBlock=p5,fe.useToast=a5,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});
|
|
159
|
+
*/var m2;function HO(){return m2||(m2=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,_=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function S(de){return typeof de=="string"||typeof de=="function"||de===r||de===f||de===s||de===i||de===g||de===v||typeof de=="object"&&de!==null&&(de.$$typeof===w||de.$$typeof===b||de.$$typeof===l||de.$$typeof===c||de.$$typeof===m||de.$$typeof===E||de.$$typeof===y||de.$$typeof===T||de.$$typeof===_)}function O(de){if(typeof de=="object"&&de!==null){var _t=de.$$typeof;switch(_t){case t:var Ke=de.type;switch(Ke){case d:case f:case r:case s:case i:case g:return Ke;default:var yt=Ke&&Ke.$$typeof;switch(yt){case c:case m:case w:case b:case l:return yt;default:return _t}}case n:return _t}}}var I=d,M=f,N=c,D=l,k=t,Y=m,L=r,G=w,Z=b,R=n,K=s,B=i,W=g,J=!1;function q(de){return J||(J=!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.")),U(de)||O(de)===d}function U(de){return O(de)===f}function V(de){return O(de)===c}function ce(de){return O(de)===l}function ue(de){return typeof de=="object"&&de!==null&&de.$$typeof===t}function pe(de){return O(de)===m}function Ee(de){return O(de)===r}function ne(de){return O(de)===w}function le(de){return O(de)===b}function ge(de){return O(de)===n}function be(de){return O(de)===s}function he(de){return O(de)===i}function We(de){return O(de)===g}Xe.AsyncMode=I,Xe.ConcurrentMode=M,Xe.ContextConsumer=N,Xe.ContextProvider=D,Xe.Element=k,Xe.ForwardRef=Y,Xe.Fragment=L,Xe.Lazy=G,Xe.Memo=Z,Xe.Portal=R,Xe.Profiler=K,Xe.StrictMode=B,Xe.Suspense=W,Xe.isAsyncMode=q,Xe.isConcurrentMode=U,Xe.isContextConsumer=V,Xe.isContextProvider=ce,Xe.isElement=ue,Xe.isForwardRef=pe,Xe.isFragment=Ee,Xe.isLazy=ne,Xe.isMemo=le,Xe.isPortal=ge,Xe.isProfiler=be,Xe.isStrictMode=he,Xe.isSuspense=We,Xe.isValidElementType=S,Xe.typeOf=O}()),Xe}var v2;function b2(){return v2||(v2=1,process.env.NODE_ENV==="production"?Ll.exports=GO():Ll.exports=HO()),Ll.exports}var Df,_2;function Mf(){if(_2)return Df;_2=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Df=e,Df}var Pf,x2;function w2(){return x2||(x2=1,Pf=Function.call.bind(Object.prototype.hasOwnProperty)),Pf}var Nf,E2;function UO(){if(E2)return Nf;E2=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Mf(),n={},r=w2();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(s,l,c,d,f){if(process.env.NODE_ENV!=="production"){for(var m in s)if(r(s,m)){var g;try{if(typeof s[m]!="function"){var v=Error((d||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}g=s[m](l,m,d,c,null,t)}catch(w){g=w}if(g&&!(g instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var b=f?f():"";e("Failed "+c+" type: "+g.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Nf=i,Nf}var Rf,y2;function VO(){if(y2)return Rf;y2=1;var e=b2(),t=Lc(),n=Mf(),r=w2(),i=UO(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return Rf=function(c,d){var f=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function g(U){var V=U&&(f&&U[f]||U[m]);if(typeof V=="function")return V}var v="<<anonymous>>",b={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:T(),arrayOf:S,element:O(),elementType:I(),instanceOf:M,node:Y(),objectOf:D,oneOf:N,oneOfType:k,shape:G,exact:Z};function w(U,V){return U===V?U!==0||1/U===1/V:U!==U&&V!==V}function _(U,V){this.message=U,this.data=V&&typeof V=="object"?V:{},this.stack=""}_.prototype=Error.prototype;function E(U){if(process.env.NODE_ENV!=="production")var V={},ce=0;function ue(Ee,ne,le,ge,be,he,We){if(ge=ge||v,he=he||le,We!==n){if(d){var de=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 de.name="Invariant Violation",de}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var _t=ge+":"+le;!V[_t]&&ce<3&&(s("You are manually calling a React.PropTypes validation function for the `"+he+"` prop on `"+ge+"`. 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."),V[_t]=!0,ce++)}}return ne[le]==null?Ee?ne[le]===null?new _("The "+be+" `"+he+"` is marked as required "+("in `"+ge+"`, but its value is `null`.")):new _("The "+be+" `"+he+"` is marked as required in "+("`"+ge+"`, but its value is `undefined`.")):null:U(ne,le,ge,be,he)}var pe=ue.bind(null,!1);return pe.isRequired=ue.bind(null,!0),pe}function y(U){function V(ce,ue,pe,Ee,ne,le){var ge=ce[ue],be=B(ge);if(be!==U){var he=W(ge);return new _("Invalid "+Ee+" `"+ne+"` of type "+("`"+he+"` supplied to `"+pe+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return E(V)}function T(){return E(l)}function S(U){function V(ce,ue,pe,Ee,ne){if(typeof U!="function")return new _("Property `"+ne+"` of component `"+pe+"` has invalid PropType notation inside arrayOf.");var le=ce[ue];if(!Array.isArray(le)){var ge=B(le);return new _("Invalid "+Ee+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+pe+"`, expected an array."))}for(var be=0;be<le.length;be++){var he=U(le,be,pe,Ee,ne+"["+be+"]",n);if(he instanceof Error)return he}return null}return E(V)}function O(){function U(V,ce,ue,pe,Ee){var ne=V[ce];if(!c(ne)){var le=B(ne);return new _("Invalid "+pe+" `"+Ee+"` of type "+("`"+le+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return E(U)}function I(){function U(V,ce,ue,pe,Ee){var ne=V[ce];if(!e.isValidElementType(ne)){var le=B(ne);return new _("Invalid "+pe+" `"+Ee+"` of type "+("`"+le+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return E(U)}function M(U){function V(ce,ue,pe,Ee,ne){if(!(ce[ue]instanceof U)){var le=U.name||v,ge=q(ce[ue]);return new _("Invalid "+Ee+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+pe+"`, expected ")+("instance of `"+le+"`."))}return null}return E(V)}function N(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function V(ce,ue,pe,Ee,ne){for(var le=ce[ue],ge=0;ge<U.length;ge++)if(w(le,U[ge]))return null;var be=JSON.stringify(U,function(We,de){var _t=W(de);return _t==="symbol"?String(de):de});return new _("Invalid "+Ee+" `"+ne+"` of value `"+String(le)+"` "+("supplied to `"+pe+"`, expected one of "+be+"."))}return E(V)}function D(U){function V(ce,ue,pe,Ee,ne){if(typeof U!="function")return new _("Property `"+ne+"` of component `"+pe+"` has invalid PropType notation inside objectOf.");var le=ce[ue],ge=B(le);if(ge!=="object")return new _("Invalid "+Ee+" `"+ne+"` of type "+("`"+ge+"` supplied to `"+pe+"`, expected an object."));for(var be in le)if(r(le,be)){var he=U(le,be,pe,Ee,ne+"."+be,n);if(he instanceof Error)return he}return null}return E(V)}function k(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var V=0;V<U.length;V++){var ce=U[V];if(typeof ce!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+J(ce)+" at index "+V+"."),l}function ue(pe,Ee,ne,le,ge){for(var be=[],he=0;he<U.length;he++){var We=U[he],de=We(pe,Ee,ne,le,ge,n);if(de==null)return null;de.data&&r(de.data,"expectedType")&&be.push(de.data.expectedType)}var _t=be.length>0?", expected one of type ["+be.join(", ")+"]":"";return new _("Invalid "+le+" `"+ge+"` supplied to "+("`"+ne+"`"+_t+"."))}return E(ue)}function Y(){function U(V,ce,ue,pe,Ee){return R(V[ce])?null:new _("Invalid "+pe+" `"+Ee+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return E(U)}function L(U,V,ce,ue,pe){return new _((U||"React class")+": "+V+" type `"+ce+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+pe+"`.")}function G(U){function V(ce,ue,pe,Ee,ne){var le=ce[ue],ge=B(le);if(ge!=="object")return new _("Invalid "+Ee+" `"+ne+"` of type `"+ge+"` "+("supplied to `"+pe+"`, expected `object`."));for(var be in U){var he=U[be];if(typeof he!="function")return L(pe,Ee,ne,be,W(he));var We=he(le,be,pe,Ee,ne+"."+be,n);if(We)return We}return null}return E(V)}function Z(U){function V(ce,ue,pe,Ee,ne){var le=ce[ue],ge=B(le);if(ge!=="object")return new _("Invalid "+Ee+" `"+ne+"` of type `"+ge+"` "+("supplied to `"+pe+"`, expected `object`."));var be=t({},ce[ue],U);for(var he in be){var We=U[he];if(r(U,he)&&typeof We!="function")return L(pe,Ee,ne,he,W(We));if(!We)return new _("Invalid "+Ee+" `"+ne+"` key `"+he+"` supplied to `"+pe+"`.\nBad object: "+JSON.stringify(ce[ue],null," ")+`
|
|
160
|
+
Valid keys: `+JSON.stringify(Object.keys(U),null," "));var de=We(le,he,pe,Ee,ne+"."+he,n);if(de)return de}return null}return E(V)}function R(U){switch(typeof U){case"number":case"string":case"undefined":return!0;case"boolean":return!U;case"object":if(Array.isArray(U))return U.every(R);if(U===null||c(U))return!0;var V=g(U);if(V){var ce=V.call(U),ue;if(V!==U.entries){for(;!(ue=ce.next()).done;)if(!R(ue.value))return!1}else for(;!(ue=ce.next()).done;){var pe=ue.value;if(pe&&!R(pe[1]))return!1}}else return!1;return!0;default:return!1}}function K(U,V){return U==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function B(U){var V=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":K(V,U)?"symbol":V}function W(U){if(typeof U>"u"||U===null)return""+U;var V=B(U);if(V==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return V}function J(U){var V=W(U);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function q(U){return!U.constructor||!U.constructor.name?v:U.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Rf}var Lf,C2;function WO(){if(C2)return Lf;C2=1;var e=Mf();function t(){}function n(){}return n.resetWarningCache=t,Lf=function(){function r(l,c,d,f,m,g){if(g!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Lf}if(process.env.NODE_ENV!=="production"){var qO=b2(),YO=!0;$f.exports=VO()(qO.isElement,YO)}else $f.exports=WO()();var ZO=$f.exports;const Ge=Pc(ZO);function XO(e){return p.createElement("button",{type:"button",className:e.classNames.selectedTag,title:e.removeButtonText,onClick:e.onDelete},p.createElement("span",{className:e.classNames.selectedTagName},e.tag.name))}const KO={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},QO=["fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform"];class JO extends p.Component{constructor(t){super(t),this.state={inputWidth:null},this.input=p.createRef(),this.sizer=p.createRef()}componentDidMount(){this.props.autoresize&&(this.copyInputStyles(),this.updateInputWidth())}componentDidUpdate({query:t,placeholderText:n}){(t!==this.props.query||n!==this.props.placeholderText)&&this.updateInputWidth()}copyInputStyles(){const t=window.getComputedStyle(this.input.current);QO.forEach(n=>{this.sizer.current.style[n]=t[n]})}updateInputWidth(){let t;this.props.autoresize&&(t=Math.ceil(this.sizer.current.scrollWidth)+2),t!==this.state.inputWidth&&this.setState({inputWidth:t})}render(){const{id:t,query:n,ariaLabelText:r,placeholderText:i,expanded:s,classNames:l,inputAttributes:c,inputEventHandlers:d,index:f}=this.props;return p.createElement("div",{className:l.searchWrapper},p.createElement("input",Object.assign({},c,d,{ref:this.input,value:n,placeholder:i,className:l.searchInput,role:"combobox","aria-autocomplete":"list","aria-label":r||i,"aria-owns":t,"aria-activedescendant":f>-1?`${t}-${f}`:null,"aria-expanded":s,style:{width:this.state.inputWidth}})),p.createElement("div",{ref:this.sizer,style:KO},n||i))}}function jf(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")}function e$(e){return new RegExp(jf(e),"gi")}function t$(e){return new RegExp(`(?:^|\\s)${jf(e)}`,"i")}function n$(e){return new RegExp(`^${jf(e)}$`,"i")}function r$(e,t){const n=e$(t);return e.replace(n,"<mark>$&</mark>")}function i$({item:e,query:t}){return p.createElement("span",{dangerouslySetInnerHTML:{__html:r$(e.name,t)}})}function o$(e){const t=e.suggestionComponent||i$,n=e.options.map((r,i)=>{const s=`${e.id}-${i}`,l=[];return e.index===i&&l.push(e.classNames.suggestionActive),r.disabled&&l.push(e.classNames.suggestionDisabled),p.createElement("li",{id:s,key:s,role:"option",className:l.join(" "),"aria-disabled":!!r.disabled,onMouseDown:c=>c.preventDefault(),onClick:()=>e.addTag(r)},r.prefix?p.createElement("span",{className:e.classNames.suggestionPrefix},r.prefix," "):null,r.disableMarkIt?r.name:p.createElement(t,{item:r,query:e.query}))});return p.createElement("div",{className:e.classNames.suggestions},p.createElement("ul",{role:"listbox",id:e.id},n))}function s$(e,t){const n=e.querySelectorAll("a,button,input"),r=Array.prototype.findIndex.call(n,s=>s===t),i=n[r-1]||n[r+1];i&&i.focus()}const no={ENTER:"Enter",TAB:"Tab",BACKSPACE:"Backspace",UP_ARROW:"ArrowUp",UP_ARROW_COMPAT:"Up",DOWN_ARROW:"ArrowDown",DOWN_ARROW_COMPAT:"Down"},T2={root:"react-tags",rootFocused:"is-focused",selected:"react-tags__selected",selectedTag:"react-tags__selected-tag",selectedTagName:"react-tags__selected-tag-name",search:"react-tags__search",searchWrapper:"react-tags__search-wrapper",searchInput:"react-tags__search-input",suggestions:"react-tags__suggestions",suggestionActive:"is-active",suggestionDisabled:"is-disabled",suggestionPrefix:"react-tags__suggestion-prefix"};function S2(e,t){return e.findIndex(n=>n$(t).test(n.name))}function kf(){if(this.state.query.length>=this.props.minQueryLength){const e=S2(this.state.options,this.state.query),t=this.state.index===-1?e:this.state.index,n=t>-1?this.state.options[t]:null;n?this.addTag(n):this.props.allowNew&&this.addTag({name:this.state.query})}}function a$(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index<=0?t:this.state.index-1})}function l$(e){e.preventDefault();const t=this.state.options.length-1;this.setState({index:this.state.index>=t?0:this.state.index+1})}function c$(){this.state.query.length||this.deleteTag(this.props.tags.length-1)}function d$(e,t){return t$(t).test(e.name)}function u$(e,t){let n;return e.suggestionsTransform?n=e.suggestionsTransform(t.query,e.suggestions):n=e.suggestions.filter(r=>e.suggestionsFilter(r,t.query)),n=n.slice(0,e.maxSuggestionsLength),e.allowNew&&e.newTagText&&S2(n,t.query)===-1?n.push({id:0,name:t.query,prefix:e.newTagText,disableMarkIt:!0}):e.noSuggestionsText&&n.length===0&&n.push({id:0,name:e.noSuggestionsText,disabled:!0,disableMarkIt:!0}),n}class Ff extends p.Component{constructor(t){super(t),this.state={query:"",focused:!1,index:-1},this.inputEventHandlers={onChange:()=>{},onBlur:this.onBlur.bind(this),onFocus:this.onFocus.bind(this),onInput:this.onInput.bind(this),onKeyDown:this.onKeyDown.bind(this)},this.container=p.createRef(),this.input=p.createRef()}onInput(t){const n=t.target.value;this.props.onInput&&this.props.onInput(n),n.length===this.state.query.length+1&&this.props.delimiters.indexOf(n.slice(-1))>-1?kf.call(this):n!==this.state.query&&this.setState({query:n})}onKeyDown(t){this.props.delimiters.indexOf(t.key)>-1&&((this.state.query||this.state.index>-1)&&t.preventDefault(),kf.call(this)),t.key===no.BACKSPACE&&this.props.allowBackspace&&c$.call(this,t),(t.key===no.UP_ARROW||t.key===no.UP_ARROW_COMPAT)&&a$.call(this,t),(t.key===no.DOWN_ARROW||t.key===no.DOWN_ARROW_COMPAT)&&l$.call(this,t)}onClick(t){document.activeElement!==t.target&&this.focusInput()}onBlur(){this.setState({focused:!1,index:-1}),this.props.onBlur&&this.props.onBlur(),this.props.addOnBlur&&kf.call(this)}onFocus(){this.setState({focused:!0}),this.props.onFocus&&this.props.onFocus()}onDeleteTag(t,n){this.container.current&&s$(this.container.current,n.currentTarget),this.deleteTag(t)}addTag(t){t.disabled||typeof this.props.onValidate=="function"&&!this.props.onValidate(t)||(this.props.onAddition({id:t.id,name:t.name}),this.clearInput())}deleteTag(t){this.props.onDelete(t)}clearInput(){this.setState({query:"",index:-1})}clearSelectedIndex(){this.setState({index:-1})}focusInput(){this.input.current&&this.input.current.input.current&&this.input.current.input.current.focus()}render(){const t=this.props.tagComponent||XO,n=this.state.focused&&this.state.query.length>=this.props.minQueryLength,r=Object.assign({},T2,this.props.classNames),i=[r.root];return this.state.focused&&i.push(r.rootFocused),p.createElement("div",{ref:this.container,className:i.join(" "),onClick:this.onClick.bind(this)},p.createElement("div",{className:r.selected,"aria-relevant":"additions removals","aria-live":"polite"},this.props.tags.map((s,l)=>p.createElement(t,{key:l,tag:s,removeButtonText:this.props.removeButtonText,classNames:r,onDelete:this.onDeleteTag.bind(this,l)}))),p.createElement("div",{className:r.search},p.createElement(JO,Object.assign({},this.state,{id:this.props.id,ref:this.input,classNames:r,inputAttributes:this.props.inputAttributes,inputEventHandlers:this.inputEventHandlers,autoresize:this.props.autoresize,expanded:n,placeholderText:this.props.placeholderText,ariaLabelText:this.props.ariaLabelText})),n&&this.state.options.length?p.createElement(o$,Object.assign({},this.state,{id:this.props.id,classNames:r,expanded:n,addTag:this.addTag.bind(this),suggestionComponent:this.props.suggestionComponent})):null))}static getDerivedStateFromProps(t,n){return n.prevQuery!==n.query||n.prevSuggestions!==t.suggestions?{prevQuery:n.query,prevSuggestions:t.suggestions,options:u$(t,n)}:null}}Ff.defaultProps={id:"ReactTags",tags:[],placeholderText:"Add new tag",removeButtonText:"Click to remove tag",noSuggestionsText:null,newTagText:null,suggestions:[],suggestionsFilter:d$,suggestionsTransform:null,autoresize:!0,classNames:T2,delimiters:[no.TAB,no.ENTER],minQueryLength:2,maxSuggestionsLength:6,allowNew:!1,allowBackspace:!0,addOnBlur:!1,tagComponent:null,suggestionComponent:null,inputAttributes:{}},Ff.propTypes={id:Ge.string,tags:Ge.arrayOf(Ge.object),placeholderText:Ge.string,ariaLabelText:Ge.string,removeButtonText:Ge.string,noSuggestionsText:Ge.string,newTagText:Ge.string,suggestions:Ge.arrayOf(Ge.object),suggestionsFilter:Ge.func,suggestionsTransform:Ge.func,autoresize:Ge.bool,delimiters:Ge.arrayOf(Ge.string),onDelete:Ge.func.isRequired,onAddition:Ge.func.isRequired,onInput:Ge.func,onFocus:Ge.func,onBlur:Ge.func,onValidate:Ge.func,minQueryLength:Ge.number,maxSuggestionsLength:Ge.number,classNames:Ge.object,allowNew:Ge.bool,allowBackspace:Ge.bool,addOnBlur:Ge.bool,tagComponent:Ge.oneOfType([Ge.func,Ge.element]),suggestionComponent:Ge.oneOfType([Ge.func,Ge.element]),inputAttributes:Ge.object};const f$=[",","Enter","Tab"],p$=e=>{const{tag:t,onDelete:n}=e;return u.jsx(Mn,{label:(t==null?void 0:t.name)??"",variant:"filled",color:"purple",onCloseIconClicked:n})},h$=e=>{const{label:t,size:n="md",variant:r="outlined",disabled:i,className:s,inputClassNames:l,contentClassName:c,helperText:d,error:f,placeholder:m,values:g,onAddition:v,onDelete:b,onInput:w,allowNew:_=!0,addOnBlur:E=!1,onBlur:y,inputAttributes:T,inputRef:S,delimiters:O=f$,minQueryLength:I=2}=e,M=(D,k)=>{switch(k){case"lg":return u.jsx(ye,{size:"sm",fontWeight:"regular",color:"gray-800",className:wr["multiple-values--label-text"],children:D});default:case"md":return u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-800",className:wr["multiple-values--label-text"],children:D});case"sm":return u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-800",className:wr["multiple-values--label-text"],children:D})}},N=p.useMemo(()=>({disabled:i,...T}),[i,T]);return u.jsxs("div",{className:se(wr["multiple-values--container"],i&&wr["input-text-field--disabled"],s),children:[t&&M(t,n),u.jsx("div",{className:se(wr["multiple-values--content"],wr[`multiple-values--size-${n}`],wr[`multiple-values--${r}`],f&&wr["multiple-values--error"],c),children:u.jsx(Ff,{ref:S,classNames:l,tags:g,placeholderText:m,tagComponent:p$,delimiters:O,inputAttributes:N,allowNew:_,onAddition:v,onDelete:b,onBlur:y,addOnBlur:E,onInput:w,minQueryLength:I})}),d&&u.jsx(He,{size:n!=="sm"?"md":"sm",fontWeight:"regular",color:f?"red-500":"gray-700",className:wr["multiple-values--helper-text"],children:d})]})},I2={"notes-block":"_notes-block_czx86_1","notes-block-editor":"_notes-block-editor_czx86_8"},A2=p.forwardRef((e,t)=>{const{defaultNote:n,note:r,onNoteChange:i,...s}=e;return u.jsx("div",{ref:t,children:u.jsx($r,{...s,block:"notes",children:u.jsxs("div",{className:I2["notes-block"],children:[u.jsx(ye,{color:"gray-900",fontWeight:"regular",size:"sm",children:"This note will be not visible in chats"}),u.jsx("div",{className:I2["notes-block-editor"],children:u.jsx(xr,{autoResize:!0,placeholder:"Write here notes for this answer",rows:1,size:"md",variant:"filled",value:r,defaultValue:n,onChange:i})})]})})})});A2.displayName="NotesBlock";const Lr={pagination:"_pagination_46n68_1","pagination--disabled":"_pagination--disabled_46n68_7","pagination--content":"_pagination--content_46n68_11","pagination-button":"_pagination-button_46n68_22","pagination-button--active":"_pagination-button--active_46n68_50","pagination-button--size-sm":"_pagination-button--size-sm_46n68_55","pagination-button--size-md":"_pagination-button--size-md_46n68_61","pagination-button--disabled":"_pagination-button--disabled_46n68_67","pagination-button--text":"_pagination-button--text_46n68_73"};function g$({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=ve.useRef(e!==void 0),[s,l]=ve.useState(t),c=i?e:s,d=ve.useCallback(f=>{i||l(f)},[]);return[c,d]}function m$(e){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:i=1,disabled:s=!1,hideNextButton:l=!1,hidePrevButton:c=!1,onChange:d,page:f,showFirstButton:m=!1,showLastButton:g=!1,siblingCount:v=1,...b}=e,[w,_]=g$({controlled:f,default:i,name:n,state:"page"}),E=(k,Y)=>{f||_(Y),d&&d(k,Y)},y=(k,Y)=>{const L=Y-k+1;return Array.from({length:L},(G,Z)=>k+Z)},T=y(1,Math.min(t,r)),S=y(Math.max(r-t+1,t+1),r),O=Math.max(Math.min(w-v,r-t-v*2-1),t+2),I=Math.min(Math.max(w+v,t+v*2+2),S.length>0?S[0]-2:r-1),M=[...m?["first"]:[],...c?[]:["previous"],...T,...O>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...y(O,I),...I<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...S,...l?[]:["next"],...g?["last"]:[]],N=k=>{switch(k){case"first":return 1;case"previous":return w-1;case"next":return w+1;case"last":return r;default:return null}};return{items:M.map(k=>typeof k=="number"?{onClick:Y=>{E(Y,k)},type:"page",page:k,selected:k===w,disabled:s,"aria-current":k===w?"true":void 0}:{onClick:Y=>{E(Y,N(k))},type:k,page:N(k),selected:!1,disabled:s||k.indexOf("ellipsis")===-1&&(k==="next"||k==="last"?w>=r:w<=1)}),...b}}const O2=p.forwardRef((e,t)=>{const{numberOfPages:n,currentPage:r,className:i,onChangePage:s,size:l="md",disabled:c}=e,{items:d}=m$({count:n,onChange:s,page:r}),f=m=>m.map(({page:g,type:v,selected:b,disabled:w,onClick:_},E)=>{let y=null;switch(v){case"end-ellipsis":case"start-ellipsis":y=u.jsx(jl,{size:l,disabled:c,style:{pointerEvents:"none"},children:"..."});break;case"page":y=u.jsx(jl,{size:l,active:b,disabled:w||c,onClick:T=>_(T),children:g});break;case"previous":y=u.jsx(st,{variant:"outlined",color:"primary",size:l,disabled:w||c,onClick:T=>_(T),"aria-label":"Previous Page",children:u.jsx(n7,{})});break;case"next":y=u.jsx(st,{variant:"outlined",color:"primary",size:l,disabled:w||c,onClick:T=>_(T),"aria-label":"Next Page",children:u.jsx(pa,{})});break}return u.jsx("li",{children:y},E)});return u.jsx("div",{ref:t,className:se(Lr.pagination,c&&Lr["pagination--disabled"],i),children:u.jsx("ul",{className:Lr["pagination--content"],children:f(d)})})});O2.displayName="Pagination";const jl=p.forwardRef((e,t)=>{const{size:n="md",disabled:r,children:i,active:s,className:l,...c}=e;return u.jsx("button",{ref:t,className:se(Lr["pagination-button"],Lr[`pagination-button--size-${n}`],r&&Lr["pagination-button--disabled"],s&&Lr["pagination-button--active"],l),...c,children:n==="md"?u.jsx(ye,{size:"sm",fontWeight:"regular",className:Lr["pagination-button--text"],children:i}):u.jsx(He,{size:"md",fontWeight:"regular",className:Lr["pagination-button--text"],children:i})})});jl.displayName="PaginationButton";const Wo={"progress-bar":"_progress-bar_1oktj_1","progress-bar--container":"_progress-bar--container_1oktj_7","progress-bar--inner":"_progress-bar--inner_1oktj_15","progress-bar--size-sm":"_progress-bar--size-sm_1oktj_24","progress-bar--size-lg":"_progress-bar--size-lg_1oktj_28","progress-bar--details":"_progress-bar--details_1oktj_32","progress-bar--percentage":"_progress-bar--percentage_1oktj_39"},$2=p.forwardRef((e,t)=>{const{size:n="lg",value:r,description:i,showPercentage:s,numericValue:l,className:c,...d}=e;return u.jsxs("div",{ref:t,className:se(Wo["progress-bar"],c),...d,children:[u.jsx("div",{className:se(Wo["progress-bar--container"],Wo[`progress-bar--size-${n}`]),children:u.jsx("div",{className:Wo["progress-bar--inner"],style:{width:`${r}%`}})}),u.jsxs("div",{className:Wo["progress-bar--details"],children:[u.jsx(ye,{size:"xs",fontWeight:"bold",className:Wo["progress-bar--percentage"],children:s?Number.isInteger(r)&&r>=0?`${r}%`:"-":l??"-"}),i&&u.jsx(ye,{size:"xs",fontWeight:"regular",color:"gray-700",children:i})]})]})});$2.displayName="ProgressBar";const D2={"reroute-block":"_reroute-block_1f5ri_1"},M2=p.forwardRef((e,t)=>{const{selectorProps:n,...r}=e;return u.jsx("div",{ref:t,children:u.jsx($r,{...r,block:"reroute",children:u.jsxs("div",{className:D2["reroute-block"],children:[u.jsx("div",{className:D2["reroute-block-text"],children:u.jsx(ye,{color:"gray-1000",size:"sm",children:"Here you can set the destination answer"})}),u.jsx("div",{children:u.jsx(Ao,{...n})})]})})})});M2.displayName="RerouteBlock";const P2={tag:"_tag_1wrac_1","quality-metric-icon--size":"_quality-metric-icon--size_1wrac_19"},N2=p.forwardRef((e,t)=>{const{label:n,startIcon:r=!0,endIcon:i=!0,qualityMetricIcon:s,onClick:l,onEndIconClicked:c,className:d,...f}=e,m=g=>{c==null||c(),g.stopPropagation()};return u.jsxs("div",{ref:t,className:se(P2.tag,d),onClick:l,...f,children:[!!s&&u.jsx(Za,{...s,className:P2["quality-metric-icon--size"]}),r&&u.jsx(ha,{width:12,height:12}),u.jsx(Pi,{variant:"tag",color:"gray-1000",children:n}),i&&u.jsx(Bd,{width:12,height:12,className:"cursor-pointer",onClick:m})]})});N2.displayName="TagQualityMetric";const R2="Tabs",[v$,eB]=zt(R2,[xo]),L2=xo(),[b$,Bf]=v$(R2),_$=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:s,orientation:l="horizontal",dir:c,activationMode:d="automatic",...f}=e,m=ds(c),[g,v]=mn({prop:r,onChange:i,defaultProp:s});return p.createElement(b$,{scope:n,baseId:Kn(),value:g,onValueChange:v,orientation:l,dir:m,activationMode:d},p.createElement(Re.div,ae({dir:m,"data-orientation":l},f,{ref:t})))}),x$="TabsList",w$=p.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,s=Bf(x$,n),l=L2(n);return p.createElement(xd,ae({asChild:!0},l,{orientation:s.orientation,dir:s.dir,loop:r}),p.createElement(Re.div,ae({role:"tablist","aria-orientation":s.orientation},i,{ref:t})))}),E$="TabsTrigger",y$=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...s}=e,l=Bf(E$,n),c=L2(n),d=j2(l.baseId,r),f=k2(l.baseId,r),m=r===l.value;return p.createElement(wd,ae({asChild:!0},c,{focusable:!i,active:m}),p.createElement(Re.button,ae({type:"button",role:"tab","aria-selected":m,"aria-controls":f,"data-state":m?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:d},s,{ref:t,onMouseDown:we(e.onMouseDown,g=>{!i&&g.button===0&&g.ctrlKey===!1?l.onValueChange(r):g.preventDefault()}),onKeyDown:we(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&l.onValueChange(r)}),onFocus:we(e.onFocus,()=>{const g=l.activationMode!=="manual";!m&&!i&&g&&l.onValueChange(r)})})))}),C$="TabsContent",T$=p.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:s,...l}=e,c=Bf(C$,n),d=j2(c.baseId,r),f=k2(c.baseId,r),m=r===c.value,g=p.useRef(m);return p.useEffect(()=>{const v=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(v)},[]),p.createElement(sn,{present:i||m},({present:v})=>p.createElement(Re.div,ae({"data-state":m?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!v,id:f,tabIndex:0},l,{ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0}}),v&&s))});function j2(e,t){return`${e}-trigger-${t}`}function k2(e,t){return`${e}-content-${t}`}const F2=_$,B2=w$,kl=y$,z2=T$,hi={"tabs--list":"_tabs--list_no35f_1","tabs--trigger":"_tabs--trigger_no35f_9","tabs--trigger-disabled":"_tabs--trigger-disabled_no35f_24","tabs--trigger-content":"_tabs--trigger-content_no35f_35","tabs--icon":"_tabs--icon_no35f_44","tabs--trigger-content-disabled":"_tabs--trigger-content-disabled_no35f_49"},S$=F2,G2=p.forwardRef(({className:e,...t},n)=>u.jsx(B2,{ref:n,className:se(hi["tabs--list"],e),...t}));G2.displayName="TabsList";const H2=p.forwardRef((e,t)=>{const{value:n,className:r,hasIcon:i=!1,label:s,disabled:l=!1,...c}=e;return u.jsxs(kl,{ref:t,value:n,className:se(hi["tabs--trigger"],l&&hi["tabs--trigger-disabled"],r),disabled:l,...c,children:[typeof s=="string"?u.jsx(ye,{size:"sm",className:se(l?hi["tabs--trigger-content-disabled"]:hi["tabs--trigger-content"]),children:s}):s,i&&u.jsx("span",{className:hi["tabs--icon"],children:u.jsx(Ux,{className:se(l?hi["tabs--trigger-content-disabled"]:hi["tabs--trigger-content"])})})]})});H2.displayName=kl.displayName;const U2=p.forwardRef(({className:e,...t},n)=>u.jsx(z2,{ref:n,className:e,...t}));U2.displayName="TabsContent";const zf={"text-block":"_text-block_1vggm_1","text-block-editor":"_text-block-editor_1vggm_6","text-block-checkbox":"_text-block-checkbox_1vggm_14"};function V2(e){return e?[...e].length??0:0}const W2=p.forwardRef((e,t)=>{const{inputRef:n,inputProps:r,...i}=e,[s,l]=p.useState(!1),[c,d]=p.useState(V2((r==null?void 0:r.value)??(r==null?void 0:r.defaultValue))),f=p.useCallback(v=>{var b;d(V2(v.target.value)),(b=r==null?void 0:r.onChange)==null||b.call(r,v)},[r]),m=p.useCallback(()=>{l(v=>!v)},[]),g=s?1200:300;return u.jsx("div",{ref:t,children:u.jsx($r,{...i,block:"text",children:u.jsxs("div",{className:zf["text-block"],children:[u.jsx("div",{className:zf["text-block-editor"],children:u.jsx(xr,{helperText:c+`/${g} characters`,placeholder:"Write your answer here...",rows:3,size:"md",variant:"filled",ref:n,maxLength:g,...r,onChange:f})}),u.jsx("div",{className:zf["text-block-checkbox"],children:u.jsx(Fi,{small:!0,checked:s,onCheckedChange:m,label:"Caption"})})]})})})});W2.displayName="TextBlock";const q2="ToastProvider",[Gf,I$,A$]=ma("Toast"),[Y2,tB]=zt("Toast",[A$]),[O$,Fl]=Y2(q2),Z2=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:l}=e,[c,d]=p.useState(null),[f,m]=p.useState(0),g=p.useRef(!1),v=p.useRef(!1);return p.createElement(Gf.Provider,{scope:t},p.createElement(O$,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:s,toastCount:f,viewport:c,onViewportChange:d,onToastAdd:p.useCallback(()=>m(b=>b+1),[]),onToastRemove:p.useCallback(()=>m(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:v},l))};Z2.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${q2}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const $$="ToastViewport",D$=["F8"],Hf="toast.viewportPause",Uf="toast.viewportResume",M$=p.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=D$,label:i="Notifications ({hotkey})",...s}=e,l=Fl($$,n),c=I$(n),d=p.useRef(null),f=p.useRef(null),m=p.useRef(null),g=p.useRef(null),v=et(t,g,l.onViewportChange),b=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=l.toastCount>0;p.useEffect(()=>{const E=y=>{var T;r.every(O=>y[O]||y.code===O)&&((T=g.current)===null||T===void 0||T.focus())};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[r]),p.useEffect(()=>{const E=d.current,y=g.current;if(w&&E&&y){const T=()=>{if(!l.isClosePausedRef.current){const M=new CustomEvent(Hf);y.dispatchEvent(M),l.isClosePausedRef.current=!0}},S=()=>{if(l.isClosePausedRef.current){const M=new CustomEvent(Uf);y.dispatchEvent(M),l.isClosePausedRef.current=!1}},O=M=>{!E.contains(M.relatedTarget)&&S()},I=()=>{E.contains(document.activeElement)||S()};return E.addEventListener("focusin",T),E.addEventListener("focusout",O),E.addEventListener("pointermove",T),E.addEventListener("pointerleave",I),window.addEventListener("blur",T),window.addEventListener("focus",S),()=>{E.removeEventListener("focusin",T),E.removeEventListener("focusout",O),E.removeEventListener("pointermove",T),E.removeEventListener("pointerleave",I),window.removeEventListener("blur",T),window.removeEventListener("focus",S)}}},[w,l.isClosePausedRef]);const _=p.useCallback(({tabbingDirection:E})=>{const T=c().map(S=>{const O=S.ref.current,I=[O,...Y$(O)];return E==="forwards"?I:I.reverse()});return(E==="forwards"?T.reverse():T).flat()},[c]);return p.useEffect(()=>{const E=g.current;if(E){const y=T=>{const S=T.altKey||T.ctrlKey||T.metaKey;if(T.key==="Tab"&&!S){const D=document.activeElement,k=T.shiftKey;if(T.target===E&&k){var I;(I=f.current)===null||I===void 0||I.focus();return}const G=_({tabbingDirection:k?"backwards":"forwards"}),Z=G.findIndex(R=>R===D);if(Vf(G.slice(Z+1)))T.preventDefault();else{var M,N;k?(M=f.current)===null||M===void 0||M.focus():(N=m.current)===null||N===void 0||N.focus()}}};return E.addEventListener("keydown",y),()=>E.removeEventListener("keydown",y)}},[c,_]),p.createElement(R3,{ref:d,role:"region","aria-label":i.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:w?void 0:"none"}},w&&p.createElement(X2,{ref:f,onFocusFromOutsideViewport:()=>{const E=_({tabbingDirection:"forwards"});Vf(E)}}),p.createElement(Gf.Slot,{scope:n},p.createElement(Re.ol,ae({tabIndex:-1},s,{ref:v}))),w&&p.createElement(X2,{ref:m,onFocusFromOutsideViewport:()=>{const E=_({tabbingDirection:"backwards"});Vf(E)}}))}),P$="ToastFocusProxy",X2=p.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,s=Fl(P$,n);return p.createElement(Gd,ae({"aria-hidden":!0,tabIndex:0},i,{ref:t,style:{position:"fixed"},onFocus:l=>{var c;const d=l.relatedTarget;!((c=s.viewport)!==null&&c!==void 0&&c.contains(d))&&r()}}))}),Bl="Toast",N$="toast.swipeStart",R$="toast.swipeMove",L$="toast.swipeCancel",j$="toast.swipeEnd",k$=p.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:s,...l}=e,[c=!0,d]=mn({prop:r,defaultProp:i,onChange:s});return p.createElement(sn,{present:n||c},p.createElement(K2,ae({open:c},l,{ref:t,onClose:()=>d(!1),onPause:on(e.onPause),onResume:on(e.onResume),onSwipeStart:we(e.onSwipeStart,f=>{f.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:we(e.onSwipeMove,f=>{const{x:m,y:g}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","move"),f.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:we(e.onSwipeCancel,f=>{f.currentTarget.setAttribute("data-swipe","cancel"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:we(e.onSwipeEnd,f=>{const{x:m,y:g}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","end"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),d(!1)})})))}),[F$,B$]=Y2(Bl,{onClose(){}}),K2=p.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:s,onClose:l,onEscapeKeyDown:c,onPause:d,onResume:f,onSwipeStart:m,onSwipeMove:g,onSwipeCancel:v,onSwipeEnd:b,...w}=e,_=Fl(Bl,n),[E,y]=p.useState(null),T=et(t,R=>y(R)),S=p.useRef(null),O=p.useRef(null),I=i||_.duration,M=p.useRef(0),N=p.useRef(I),D=p.useRef(0),{onToastAdd:k,onToastRemove:Y}=_,L=on(()=>{var R;(E==null?void 0:E.contains(document.activeElement))&&((R=_.viewport)===null||R===void 0||R.focus()),l()}),G=p.useCallback(R=>{!R||R===1/0||(window.clearTimeout(D.current),M.current=new Date().getTime(),D.current=window.setTimeout(L,R))},[L]);p.useEffect(()=>{const R=_.viewport;if(R){const K=()=>{G(N.current),f==null||f()},B=()=>{const W=new Date().getTime()-M.current;N.current=N.current-W,window.clearTimeout(D.current),d==null||d()};return R.addEventListener(Hf,B),R.addEventListener(Uf,K),()=>{R.removeEventListener(Hf,B),R.removeEventListener(Uf,K)}}},[_.viewport,I,d,f,G]),p.useEffect(()=>{s&&!_.isClosePausedRef.current&&G(I)},[s,I,_.isClosePausedRef,G]),p.useEffect(()=>(k(),()=>Y()),[k,Y]);const Z=p.useMemo(()=>E?J2(E):null,[E]);return _.viewport?p.createElement(p.Fragment,null,Z&&p.createElement(z$,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},Z),p.createElement(F$,{scope:n,onClose:L},$n.createPortal(p.createElement(Gf.ItemSlot,{scope:n},p.createElement(N3,{asChild:!0,onEscapeKeyDown:we(c,()=>{_.isFocusedToastEscapeKeyDownRef.current||L(),_.isFocusedToastEscapeKeyDownRef.current=!1})},p.createElement(Re.li,ae({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":_.swipeDirection},w,{ref:T,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:we(e.onKeyDown,R=>{R.key==="Escape"&&(c==null||c(R.nativeEvent),R.nativeEvent.defaultPrevented||(_.isFocusedToastEscapeKeyDownRef.current=!0,L()))}),onPointerDown:we(e.onPointerDown,R=>{R.button===0&&(S.current={x:R.clientX,y:R.clientY})}),onPointerMove:we(e.onPointerMove,R=>{if(!S.current)return;const K=R.clientX-S.current.x,B=R.clientY-S.current.y,W=!!O.current,J=["left","right"].includes(_.swipeDirection),q=["left","up"].includes(_.swipeDirection)?Math.min:Math.max,U=J?q(0,K):0,V=J?0:q(0,B),ce=R.pointerType==="touch"?10:2,ue={x:U,y:V},pe={originalEvent:R,delta:ue};W?(O.current=ue,zl(R$,g,pe,{discrete:!1})):e5(ue,_.swipeDirection,ce)?(O.current=ue,zl(N$,m,pe,{discrete:!1}),R.target.setPointerCapture(R.pointerId)):(Math.abs(K)>ce||Math.abs(B)>ce)&&(S.current=null)}),onPointerUp:we(e.onPointerUp,R=>{const K=O.current,B=R.target;if(B.hasPointerCapture(R.pointerId)&&B.releasePointerCapture(R.pointerId),O.current=null,S.current=null,K){const W=R.currentTarget,J={originalEvent:R,delta:K};e5(K,_.swipeDirection,_.swipeThreshold)?zl(j$,b,J,{discrete:!0}):zl(L$,v,J,{discrete:!0}),W.addEventListener("click",q=>q.preventDefault(),{once:!0})}})})))),_.viewport))):null});K2.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${Bl}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const z$=e=>{const{__scopeToast:t,children:n,...r}=e,i=Fl(Bl,t),[s,l]=p.useState(!1),[c,d]=p.useState(!1);return W$(()=>l(!0)),p.useEffect(()=>{const f=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(f)},[]),c?null:p.createElement(Aa,{asChild:!0},p.createElement(Gd,r,s&&p.createElement(p.Fragment,null,i.label," ",n)))},G$="ToastAction",H$=p.forwardRef((e,t)=>{const{altText:n,...r}=e;return n?p.createElement(Q2,{altText:n,asChild:!0},p.createElement(V$,ae({},r,{ref:t}))):null});H$.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${G$}\``)}};const U$="ToastClose",V$=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=B$(U$,n);return p.createElement(Q2,{asChild:!0},p.createElement(Re.button,ae({type:"button"},r,{ref:t,onClick:we(e.onClick,i.onClose)})))}),Q2=p.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return p.createElement(Re.div,ae({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},i,{ref:t}))});function J2(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),q$(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...J2(r))}}),t}function zl(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Uc(i,s):i.dispatchEvent(s)}const e5=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),s=r>i;return t==="left"||t==="right"?s&&r>n:!s&&i>n};function W$(e=()=>{}){const t=on(e);Qr(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function q$(e){return e.nodeType===e.ELEMENT_NODE}function Y$(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Vf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}const Z$=Z2,t5=M$,n5=k$,ro={"toast--toaster-container":"_toast--toaster-container_172io_1","toast--viewport":"_toast--viewport_172io_9","toast--left-icon":"_toast--left-icon_172io_47","toast--close-icon":"_toast--close-icon_172io_51","toast--text-container":"_toast--text-container_172io_59","toast--root":"_toast--root_172io_67",slideIn:"_slideIn_172io_1",hide:"_hide_172io_1",swipeOut:"_swipeOut_172io_1","toast--root-gray-outlined":"_toast--root-gray-outlined_172io_117","toast--root-gray-soft":"_toast--root-gray-soft_172io_122","toast--root-gray-dark":"_toast--root-gray-dark_172io_127","toast--root-red-outlined":"_toast--root-red-outlined_172io_132","toast--root-red-soft":"_toast--root-red-soft_172io_137","toast--root-red-dark":"_toast--root-red-dark_172io_142","toast--root-green-outlined":"_toast--root-green-outlined_172io_147","toast--root-green-soft":"_toast--root-green-soft_172io_152","toast--root-green-dark":"_toast--root-green-dark_172io_157"},X$=Z$,r5=p.forwardRef(({className:e,...t},n)=>u.jsx(t5,{ref:n,className:se(ro["toast--viewport"],e),...t}));r5.displayName=t5.displayName;const i5=p.forwardRef(({className:e,...t},n)=>u.jsx(n5,{ref:n,className:e,...t}));i5.displayName=n5.displayName;const K$=({color:e,variant:t})=>({gray:{outlined:"gray-1000",soft:"gray-1000",dark:"white"},red:{outlined:"red-600",soft:"red-800",dark:"red-100"},green:{outlined:"green-700",soft:"green-800",dark:"green-100"}})[e][t],Q$=()=>{const{toasts:e,dismiss:t}=s5();return u.jsxs(X$,{children:[e.map(n=>{const{id:r,title:i,description:s,leftIcon:l,hasCloseIcon:c,action:d,variant:f="outlined",color:m="gray",...g}=n,v=K$({color:m,variant:f});return u.jsx(i5,{id:r,className:se(ro["toast--root"],ro[`toast--root-${m}-${f}`]),...g,children:u.jsxs("div",{className:ro["toast--toaster-container"],children:[l&&u.jsx("span",{className:se(ro["toast--left-icon"],`text--${v}`),children:l}),u.jsxs("div",{className:ro["toast--text-container"],children:[i&&u.jsx(ye,{size:"sm",fontWeight:"bold",color:v,children:i}),s&&u.jsx(ye,{size:"xs",fontWeight:"regular",color:v,children:s})]}),c?u.jsx("span",{className:se(ro["toast--close-icon"],`text--${v}`),children:u.jsx(vw,{onClick:()=>t()})}):d]})},r)}),u.jsx(r5,{})]})},J$=1,eD=1e6;let Wf=0;function tD(){return Wf=(Wf+1)%Number.MAX_VALUE,Wf.toString()}const qf=new Map,o5=e=>{if(qf.has(e))return;const t=setTimeout(()=>{qf.delete(e),Vs({type:"REMOVE_TOAST",toastId:e})},eD);qf.set(e,t)},nD=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,J$)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?o5(n):e.toasts.forEach(r=>{o5(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Gl=[];let Hl={toasts:[]};function Vs(e){Hl=nD(Hl,e),Gl.forEach(t=>{t(Hl)})}function rD({...e}){const t=tD(),n=i=>Vs({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>Vs({type:"DISMISS_TOAST",toastId:t});return Vs({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function s5(){const[e,t]=p.useState(Hl);return p.useEffect(()=>(Gl.push(t),()=>{const n=Gl.indexOf(t);n>-1&&Gl.splice(n,1)}),[e]),{...e,toast:rD,dismiss:n=>Vs({type:"DISMISS_TOAST",toastId:n})}}const Ws={"tooltip-quality-metric":"_tooltip-quality-metric_zpfvr_1","tooltip-quality-metric--topbar":"_tooltip-quality-metric--topbar_zpfvr_23","tooltip-quality-metric--tag":"_tooltip-quality-metric--tag_zpfvr_32","tooltip-quality-metric--answer-content":"_tooltip-quality-metric--answer-content_zpfvr_40","tooltip-quality-metric--divider":"_tooltip-quality-metric--divider_zpfvr_72"},a5=p.forwardRef((e,t)=>{const{title:n,qualityMetricTitle:r,leftTagProps:i,rightTagProps:s,answerContentText:l,description:c,buttonProps:d,sideOffset:f=8,className:m,...g}=e;return u.jsxs(qd,{ref:t,sideOffset:f,className:se(Ws["tooltip-quality-metric"],m),...g,children:[u.jsxs("div",{className:Ws["tooltip-quality-metric--topbar"],children:[u.jsx(He,{size:"md",fontWeight:"bold",isUppercase:!0,children:n}),u.jsx(mt,{...d,children:d.label})]}),typeof r=="string"?u.jsx(He,{size:"md",fontWeight:"bold",children:r}):r,u.jsxs("div",{className:Ws["tooltip-quality-metric--tag"],children:[i&&u.jsx(Mn,{...i}),s&&u.jsx(Mn,{...s})]}),u.jsx("div",{className:Ws["tooltip-quality-metric--answer-content"],children:typeof l=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",children:l}):l}),u.jsx(gr,{color:"gray-300",className:Ws["tooltip-quality-metric--divider"]}),typeof c=="string"?u.jsx(He,{size:"sm",fontWeight:"regular",children:c}):c]})});a5.displayName="TooltipQualityMetric";const qo={"vertical-tabs--root":"_vertical-tabs--root_ksiqw_1","vertical-tabs--list":"_vertical-tabs--list_ksiqw_6","vertical-tabs--trigger":"_vertical-tabs--trigger_ksiqw_13","vertical-tabs--trigger-disabled":"_vertical-tabs--trigger-disabled_ksiqw_27","vertical-tabs--chat-title-container":"_vertical-tabs--chat-title-container_ksiqw_50","vertical-tabs--chat-preview-container":"_vertical-tabs--chat-preview-container_ksiqw_58"},l5=p.forwardRef(({className:e,...t},n)=>u.jsx(F2,{ref:n,className:se(qo["vertical-tabs--root"],e),orientation:"vertical",...t}));l5.displayName="VerticalTabs";const c5=p.forwardRef(({className:e,...t},n)=>u.jsx(B2,{ref:n,className:se(qo["vertical-tabs--list"],e),...t}));c5.displayName="TabChatList";const d5=p.forwardRef((e,t)=>{const{value:n,title:r,preview:i,time:s,timeUnit:l="MIN",className:c,disabled:d=!1,avatarProps:f,needSupportLabel:m="Needs your support",needSupportIcon:g,isTyping:v,isTypingLabel:b="Is typing...",onNeedSupportClicked:w,..._}=e;return u.jsxs(kl,{ref:t,value:n,className:se(qo["vertical-tabs--trigger"],d&&qo["vertical-tabs--trigger-disabled"],c),disabled:d,..._,children:[u.jsx($o,{...f}),u.jsxs("div",{children:[u.jsxs("div",{className:qo["vertical-tabs--chat-title-container"],children:[r&&u.jsx(ye,{size:"sm",fontWeight:"bold",children:r}),s&&u.jsx(He,{size:"md",isUppercase:!0,children:`${s} ${l}`})]}),u.jsx("div",{className:qo["vertical-tabs--chat-preview-container"],children:v?u.jsx(He,{size:"md",fontWeight:"bold",color:"green-600",children:b}):u.jsxs(u.Fragment,{children:[i&&u.jsx(He,{size:"md",fontWeight:"regular",color:"gray-700",children:i}),u.jsx(mt,{variant:"text",startIcon:g||u.jsx(U_,{}),size:"xs",onClick:w,children:m})]})})]})]})});d5.displayName=kl.displayName;const u5=p.forwardRef(({className:e,...t},n)=>u.jsx(z2,{ref:n,className:e,...t}));u5.displayName="TabsContent";const gi={"video-block":"_video-block_1s3ee_1","video-container":"_video-container_1s3ee_6",video:"_video_1s3ee_1","video-description":"_video-description_1s3ee_24","video-block-input-container":"_video-block-input-container_1s3ee_31","video-block-instance-slot-container":"_video-block-instance-slot-container_1s3ee_39","video-block-spinner":"_video-block-spinner_1s3ee_46"},f5=p.forwardRef((e,t)=>{const{video:n,originalUrl:r,urlWithVariables:i,fileName:s,title:l,isUploading:c,altText:d,onDeleteBlock:f,onDeleteVideo:m,connectVideo:g,onSaveTitle:v,onSaveAltText:b,...w}=e,[_,E]=p.useState(d||""),y=l||"Video",T=I=>{b&&b(_)},S=I=>{g&&g(I)},O=()=>{m&&m()};return u.jsx($r,{block:"video",onDeleteBlock:f,...w,ref:t,className:gi["video-block"],children:u.jsxs("div",{children:[u.jsxs("div",{className:gi["video-block-instance-slot-container"],children:[u.jsx(qa,{initialLabel:y,onSaveLabel:v}),i?u.jsxs("div",{children:[" ",u.jsx(ye,{children:" The video to display will be determined based on the value of the variables "})," "]}):n?u.jsxs("div",{className:gi["video-container"],children:[n.match(".mp4$")?u.jsx("video",{controls:!0,className:gi.video,"data-testid":"block-video",children:u.jsx("source",{src:n,type:"video/mp4"})}):u.jsx("iframe",{title:"video-block",className:gi.video,src:n,"data-testid":"block-iframe","aria-label":"Video Player"}),u.jsxs("div",{className:gi["video-description"],children:[u.jsx(ye,{color:"gray-1000",size:"xs",fontWeight:"bold",children:s?`${s} - `:""}),u.jsx(ye,{color:"gray-1000",size:"xs",children:r||n}),u.jsx(st,{size:"sm",onClick:O,variant:"ghost",children:u.jsx(zd,{})})]})]}):c?u.jsx("div",{className:gi["video-block-spinner"],children:u.jsx("span",{children:u.jsx(ga,{})})}):u.jsx(Rl,{status:"video",onConnect:S})]}),u.jsx("div",{className:gi["video-block-input-container"],children:u.jsx(xr,{label:"Label",helperText:"Add a brief description of video content, eg. Tutorial about XYZ",placeholder:"Describe video",rows:1,autoResize:!0,size:"md",variant:"filled",value:_,onChange:I=>E(I.target.value),onBlur:T})})]})})});f5.displayName="VideoBlock",fe.Accordion=D1,fe.AccordionPanel=M1,fe.AiDropdown=Ao,fe.AiDropdownContent=Ch,fe.AtomNameDivBlockModule=qa,fe.AtomQuickRepliesInput=Du,fe.AtomTopModulo=cu,fe.Avatar=$o,fe.AvatarBot=tu,fe.AvatarWorkspace=Rh,fe.Badge=ru,fe.Block=$r,fe.Breadcrumb=Bh,fe.BuilderBlockToolbar=_g,fe.BuilderBlockToolbarContext=bg,fe.Button=mt,fe.Caption=He,fe.ChatContainer=Cg,fe.ChatContent=U8,fe.ChatHeader=dy,fe.ChatRoot=Eg,fe.ChatTrigger=yg,fe.Checkbox=Fi,fe.Divider=gr,fe.DocumentDropdown=Ph,fe.DocumentDropdownContent=Mh,fe.EmptyState=Rl,fe.Heading=yf,fe.IconButton=st,fe.ImageBlock=Uv,fe.ImageUploader=zv,fe.Label=Pi,fe.Logo=WA,fe.MailBlock=o2,fe.Modal=dO,fe.ModalContent=t2,fe.ModalTrigger=uO,fe.MultipleValues=h$,fe.NotesBlock=A2,fe.Pagination=O2,fe.PaginationButton=jl,fe.ProgressBar=$2,fe.QualityMetricIcon=Za,fe.Radio=If,fe.RadioGroup=f2,fe.RerouteBlock=M2,fe.Select=Of,fe.TabChat=d5,fe.TabChatContent=u5,fe.TabChatList=c5,fe.Tabs=S$,fe.TabsContent=U2,fe.TabsList=G2,fe.TabsTrigger=H2,fe.Tag=Mn,fe.TagQualityMetric=N2,fe.Text=ye,fe.TextBlock=W2,fe.TextField=ln,fe.TextFieldMultiline=xr,fe.TitleBlockModule=au,fe.Toaster=Q$,fe.Toggle=Us,fe.ToolbarIcon=kh,fe.Tooltip=Io,fe.TooltipContent=Ni,fe.TooltipQualityMetric=a5,fe.TooltipTrigger=Ri,fe.UploadBlock=p2,fe.VerticalTabs=l5,fe.VideoBlock=f5,fe.useToast=s5,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});
|
|
161
161
|
//# sourceMappingURL=indigo-design-system.umd.cjs.map
|