@confidencesystemsinc/sdk 1.4.8 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/theme.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -122,7 +122,7 @@ object-assign
|
|
|
122
122
|
@license MIT
|
|
123
123
|
*/var Sf,xp;function uv(){if(xp)return Sf;xp=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(d){if(d==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(d)}function a(){try{if(!Object.assign)return!1;var d=new String("abc");if(d[5]="de",Object.getOwnPropertyNames(d)[0]==="5")return!1;for(var h={},v=0;v<10;v++)h["_"+String.fromCharCode(v)]=v;var m=Object.getOwnPropertyNames(h).map(function(R){return h[R]});if(m.join("")!=="0123456789")return!1;var x={};return"abcdefghijklmnopqrst".split("").forEach(function(R){x[R]=R}),Object.keys(Object.assign({},x)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sf=a()?Object.assign:function(d,h){for(var v,m=i(d),x,R=1;R<arguments.length;R++){v=Object(arguments[R]);for(var E in v)r.call(v,E)&&(m[E]=v[E]);if(e){x=e(v);for(var F=0;F<x.length;F++)o.call(v,x[F])&&(m[x[F]]=v[x[F]])}}return m},Sf}var kf,wp;function Nd(){if(wp)return kf;wp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return kf=e,kf}var Ef,Sp;function Vh(){return Sp||(Sp=1,Ef=Function.call.bind(Object.prototype.hasOwnProperty)),Ef}var Cf,kp;function cv(){if(kp)return Cf;kp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=Nd(),o={},i=Vh();e=function(d){var h="Warning: "+d;typeof console<"u"&&console.error(h);try{throw new Error(h)}catch{}}}function a(d,h,v,m,x){if(process.env.NODE_ENV!=="production"){for(var R in d)if(i(d,R)){var E;try{if(typeof d[R]!="function"){var F=Error((m||"React class")+": "+v+" type `"+R+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[R]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw F.name="Invariant Violation",F}E=d[R](h,R,m,v,null,r)}catch(B){E=B}if(E&&!(E instanceof Error)&&e((m||"React class")+": type specification of "+v+" `"+R+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof E+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),E instanceof Error&&!(E.message in o)){o[E.message]=!0;var M=x?x():"";e("Failed "+v+" type: "+E.message+(M??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(o={})},Cf=a,Cf}var Tf,Ep;function fv(){if(Ep)return Tf;Ep=1;var e=Wh(),r=uv(),o=Nd(),i=Vh(),a=cv(),d=function(){};process.env.NODE_ENV!=="production"&&(d=function(v){var m="Warning: "+v;typeof console<"u"&&console.error(m);try{throw new Error(m)}catch{}});function h(){return null}return Tf=function(v,m){var x=typeof Symbol=="function"&&Symbol.iterator,R="@@iterator";function E(G){var J=G&&(x&&G[x]||G[R]);if(typeof J=="function")return J}var F="<<anonymous>>",M={array:I("array"),bigint:I("bigint"),bool:I("boolean"),func:I("function"),number:I("number"),object:I("object"),string:I("string"),symbol:I("symbol"),any:W(),arrayOf:U,element:q(),elementType:_(),instanceOf:ie,node:Fe(),objectOf:ee,oneOf:ce,oneOfType:ae,shape:_e,exact:Ge};function B(G,J){return G===J?G!==0||1/G===1/J:G!==G&&J!==J}function D(G,J){this.message=G,this.data=J&&typeof J=="object"?J:{},this.stack=""}D.prototype=Error.prototype;function P(G){if(process.env.NODE_ENV!=="production")var J={},fe=0;function me(ge,se,ue,Te,Ee,Re,$e){if(Te=Te||F,Re=Re||ue,$e!==o){if(m){var oe=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 oe.name="Invariant Violation",oe}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ue=Te+":"+ue;!J[Ue]&&fe<3&&(d("You are manually calling a React.PropTypes validation function for the `"+Re+"` prop on `"+Te+"`. 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."),J[Ue]=!0,fe++)}}return se[ue]==null?ge?se[ue]===null?new D("The "+Ee+" `"+Re+"` is marked as required "+("in `"+Te+"`, but its value is `null`.")):new D("The "+Ee+" `"+Re+"` is marked as required in "+("`"+Te+"`, but its value is `undefined`.")):null:G(se,ue,Te,Ee,Re)}var pe=me.bind(null,!1);return pe.isRequired=me.bind(null,!0),pe}function I(G){function J(fe,me,pe,ge,se,ue){var Te=fe[me],Ee=Ce(Te);if(Ee!==G){var Re=je(Te);return new D("Invalid "+ge+" `"+se+"` of type "+("`"+Re+"` supplied to `"+pe+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return P(J)}function W(){return P(h)}function U(G){function J(fe,me,pe,ge,se){if(typeof G!="function")return new D("Property `"+se+"` of component `"+pe+"` has invalid PropType notation inside arrayOf.");var ue=fe[me];if(!Array.isArray(ue)){var Te=Ce(ue);return new D("Invalid "+ge+" `"+se+"` of type "+("`"+Te+"` supplied to `"+pe+"`, expected an array."))}for(var Ee=0;Ee<ue.length;Ee++){var Re=G(ue,Ee,pe,ge,se+"["+Ee+"]",o);if(Re instanceof Error)return Re}return null}return P(J)}function q(){function G(J,fe,me,pe,ge){var se=J[fe];if(!v(se)){var ue=Ce(se);return new D("Invalid "+pe+" `"+ge+"` of type "+("`"+ue+"` supplied to `"+me+"`, expected a single ReactElement."))}return null}return P(G)}function _(){function G(J,fe,me,pe,ge){var se=J[fe];if(!e.isValidElementType(se)){var ue=Ce(se);return new D("Invalid "+pe+" `"+ge+"` of type "+("`"+ue+"` supplied to `"+me+"`, expected a single ReactElement type."))}return null}return P(G)}function ie(G){function J(fe,me,pe,ge,se){if(!(fe[me]instanceof G)){var ue=G.name||F,Te=be(fe[me]);return new D("Invalid "+ge+" `"+se+"` of type "+("`"+Te+"` supplied to `"+pe+"`, expected ")+("instance of `"+ue+"`."))}return null}return P(J)}function ce(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&(arguments.length>1?d("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])."):d("Invalid argument supplied to oneOf, expected an array.")),h;function J(fe,me,pe,ge,se){for(var ue=fe[me],Te=0;Te<G.length;Te++)if(B(ue,G[Te]))return null;var Ee=JSON.stringify(G,function($e,oe){var Ue=je(oe);return Ue==="symbol"?String(oe):oe});return new D("Invalid "+ge+" `"+se+"` of value `"+String(ue)+"` "+("supplied to `"+pe+"`, expected one of "+Ee+"."))}return P(J)}function ee(G){function J(fe,me,pe,ge,se){if(typeof G!="function")return new D("Property `"+se+"` of component `"+pe+"` has invalid PropType notation inside objectOf.");var ue=fe[me],Te=Ce(ue);if(Te!=="object")return new D("Invalid "+ge+" `"+se+"` of type "+("`"+Te+"` supplied to `"+pe+"`, expected an object."));for(var Ee in ue)if(i(ue,Ee)){var Re=G(ue,Ee,pe,ge,se+"."+Ee,o);if(Re instanceof Error)return Re}return null}return P(J)}function ae(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&d("Invalid argument supplied to oneOfType, expected an instance of array."),h;for(var J=0;J<G.length;J++){var fe=G[J];if(typeof fe!="function")return d("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(fe)+" at index "+J+"."),h}function me(pe,ge,se,ue,Te){for(var Ee=[],Re=0;Re<G.length;Re++){var $e=G[Re],oe=$e(pe,ge,se,ue,Te,o);if(oe==null)return null;oe.data&&i(oe.data,"expectedType")&&Ee.push(oe.data.expectedType)}var Ue=Ee.length>0?", expected one of type ["+Ee.join(", ")+"]":"";return new D("Invalid "+ue+" `"+Te+"` supplied to "+("`"+se+"`"+Ue+"."))}return P(me)}function Fe(){function G(J,fe,me,pe,ge){return Qe(J[fe])?null:new D("Invalid "+pe+" `"+ge+"` supplied to "+("`"+me+"`, expected a ReactNode."))}return P(G)}function Ne(G,J,fe,me,pe){return new D((G||"React class")+": "+J+" type `"+fe+"."+me+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+pe+"`.")}function _e(G){function J(fe,me,pe,ge,se){var ue=fe[me],Te=Ce(ue);if(Te!=="object")return new D("Invalid "+ge+" `"+se+"` of type `"+Te+"` "+("supplied to `"+pe+"`, expected `object`."));for(var Ee in G){var Re=G[Ee];if(typeof Re!="function")return Ne(pe,ge,se,Ee,je(Re));var $e=Re(ue,Ee,pe,ge,se+"."+Ee,o);if($e)return $e}return null}return P(J)}function Ge(G){function J(fe,me,pe,ge,se){var ue=fe[me],Te=Ce(ue);if(Te!=="object")return new D("Invalid "+ge+" `"+se+"` of type `"+Te+"` "+("supplied to `"+pe+"`, expected `object`."));var Ee=r({},fe[me],G);for(var Re in Ee){var $e=G[Re];if(i(G,Re)&&typeof $e!="function")return Ne(pe,ge,se,Re,je($e));if(!$e)return new D("Invalid "+ge+" `"+se+"` key `"+Re+"` supplied to `"+pe+"`.\nBad object: "+JSON.stringify(fe[me],null," ")+`
|
|
124
124
|
Valid keys: `+JSON.stringify(Object.keys(G),null," "));var oe=$e(ue,Re,pe,ge,se+"."+Re,o);if(oe)return oe}return null}return P(J)}function Qe(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(Qe);if(G===null||v(G))return!0;var J=E(G);if(J){var fe=J.call(G),me;if(J!==G.entries){for(;!(me=fe.next()).done;)if(!Qe(me.value))return!1}else for(;!(me=fe.next()).done;){var pe=me.value;if(pe&&!Qe(pe[1]))return!1}}else return!1;return!0;default:return!1}}function ke(G,J){return G==="symbol"?!0:J?J["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&J instanceof Symbol:!1}function Ce(G){var J=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":ke(J,G)?"symbol":J}function je(G){if(typeof G>"u"||G===null)return""+G;var J=Ce(G);if(J==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return J}function Z(G){var J=je(G);switch(J){case"array":case"object":return"an "+J;case"boolean":case"date":case"regexp":return"a "+J;default:return J}}function be(G){return!G.constructor||!G.constructor.name?F:G.constructor.name}return M.checkPropTypes=a,M.resetWarningCache=a.resetWarningCache,M.PropTypes=M,M},Tf}var Rf,Cp;function dv(){if(Cp)return Rf;Cp=1;var e=Nd();function r(){}function o(){}return o.resetWarningCache=r,Rf=function(){function i(h,v,m,x,R,E){if(E!==e){var F=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 F.name="Invariant Violation",F}}i.isRequired=i;function a(){return i}var d={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:o,resetWarningCache:r};return d.PropTypes=d,d},Rf}var Tp;function pv(){if(Tp)return Bu.exports;if(Tp=1,process.env.NODE_ENV!=="production"){var e=Wh(),r=!0;Bu.exports=fv()(e.isElement,r)}else Bu.exports=dv()();return Bu.exports}var hv=pv();const Me=ev(hv);var mv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yh(e,r){return e(r={exports:{}},r.exports),r.exports}var gv=Yh(function(e){(function(r){var o=function(P,I,W){if(!m(I)||R(I)||E(I)||F(I)||v(I))return I;var U,q=0,_=0;if(x(I))for(U=[],_=I.length;q<_;q++)U.push(o(P,I[q],W));else for(var ie in U={},I)Object.prototype.hasOwnProperty.call(I,ie)&&(U[P(ie,W)]=o(P,I[ie],W));return U},i=function(P){return M(P)?P:(P=P.replace(/[\-_\s]+(.)?/g,function(I,W){return W?W.toUpperCase():""})).substr(0,1).toLowerCase()+P.substr(1)},a=function(P){var I=i(P);return I.substr(0,1).toUpperCase()+I.substr(1)},d=function(P,I){return function(W,U){var q=(U=U||{}).separator||"_",_=U.split||/(?=[A-Z])/;return W.split(_).join(q)}(P,I).toLowerCase()},h=Object.prototype.toString,v=function(P){return typeof P=="function"},m=function(P){return P===Object(P)},x=function(P){return h.call(P)=="[object Array]"},R=function(P){return h.call(P)=="[object Date]"},E=function(P){return h.call(P)=="[object RegExp]"},F=function(P){return h.call(P)=="[object Boolean]"},M=function(P){return(P-=0)==P},B=function(P,I){var W=I&&"process"in I?I.process:I;return typeof W!="function"?P:function(U,q){return W(U,P,q)}},D={camelize:i,decamelize:d,pascalize:a,depascalize:d,camelizeKeys:function(P,I){return o(B(i,I),P)},decamelizeKeys:function(P,I){return o(B(d,I),P,I)},pascalizeKeys:function(P,I){return o(B(a,I),P)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=D:r.humps=D})(mv)}).decamelize,vv=function(e){if(Array.isArray(e))return e},yv=function(e,r){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var o=[],i=!0,a=!1,d=void 0;try{for(var h,v=e[Symbol.iterator]();!(i=(h=v.next()).done)&&(o.push(h.value),!r||o.length!==r);i=!0);}catch(m){a=!0,d=m}finally{try{i||v.return==null||v.return()}finally{if(a)throw d}}return o}},Rp=function(e,r){(r==null||r>e.length)&&(r=e.length);for(var o=0,i=new Array(r);o<r;o++)i[o]=e[o];return i},bv=function(e,r){if(e){if(typeof e=="string")return Rp(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Rp(e,r):void 0}},xv=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
125
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},wv=function(e,r){return vv(e)||yv(e,r)||bv(e,r)||xv()},Gh=Yh(function(e){function r(){return e.exports=r=Object.assign||function(o){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(o[d]=a[d])}return o},r.apply(this,arguments)}e.exports=r}),Sv=function(e,r){if(e==null)return{};var o,i,a={},d=Object.keys(e);for(i=0;i<d.length;i++)o=d[i],r.indexOf(o)>=0||(a[o]=e[o]);return a},Qh=function(e,r){if(e==null)return{};var o,i,a=Sv(e,r);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);for(i=0;i<d.length;i++)o=d[i],r.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(a[o]=e[o])}return a},kv=V.createContext(null);function Xh(e){var r=e.children,o=r===void 0?"":r,i=Qh(e,["children"]);return typeof o!="string"&&(o=av.renderToString(o)),V.createElement("template",Gh({},i,{dangerouslySetInnerHTML:{__html:o}}))}function qh(e){var r=e.root,o=e.children;return uc.createPortal(o===void 0?null:o,r)}function Ev(e){var r=V.forwardRef(function(o,i){var a,d,h=o.mode,v=h===void 0?"open":h,m=o.delegatesFocus,x=m!==void 0&&m,R=o.styleSheets,E=R===void 0?[]:R,F=o.ssr,M=F!==void 0&&F,B=o.children,D=Qh(o,["mode","delegatesFocus","styleSheets","ssr","children"]),P=(d=V.useRef((a=i)&&a.current),V.useEffect(function(){a&&(a.current=d.current)},[a]),d),I=V.useState(null),W=wv(I,2),U=W[0],q=W[1],_="node_".concat(v).concat(x);return V.useLayoutEffect(function(){if(P.current)try{if(typeof i=="function"&&i(P.current),M){var ie=P.current.shadowRoot;return void q(ie)}var ce=P.current.attachShadow({mode:v,delegatesFocus:x});E.length>0&&(ce.adoptedStyleSheets=E),q(ce)}catch(ee){(function(ae){var Fe=ae.error,Ne=ae.styleSheets,_e=ae.root;switch(Fe.name){case"NotSupportedError":Ne.length>0&&(_e.adoptedStyleSheets=Ne);break;default:throw Fe}})({error:ee,styleSheets:E,root:U})}},[i,P,E]),V.createElement(V.Fragment,null,V.createElement(e.tag,Gh({key:_,ref:P},D),(U||M)&&V.createElement(kv.Provider,{value:U},M?V.createElement(Xh,{shadowroot:v,shadowrootmode:v},e.render({root:U,ssr:M,children:B})):V.createElement(qh,{root:U},e.render({root:U,ssr:M,children:B})))))});return r.propTypes={mode:Me.oneOf(["open","closed"]),delegatesFocus:Me.bool,styleSheets:Me.arrayOf(Me.instanceOf(globalThis.CSSStyleSheet)),ssr:Me.bool,children:Me.node},r}Xh.propTypes={children:Me.oneOfType([Me.string,Me.node])},qh.propTypes={root:Me.object.isRequired,children:Me.node};var Pf=new Map;function Cv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i.children};return new Proxy(e,{get:function(i,a){var d=gv(a,{separator:"-"}),h="".concat(r,"-").concat(d);return Pf.has(h)||Pf.set(h,Ev({tag:d,render:o})),Pf.get(h)}})}var $d=Cv();const Jh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGpSURBVHgBpVbRdYMwDDR9/S8jeARGYIRuUDpBuwHJBGQDskG6ASOQDcwGdANVLnJRHdmIRO/dI8D5zgIhpTAbAQAlHiqEJUyEa1EU30YRqFHj4Q1xzJIQF8QMSziGEAPi1eTNPhi/lwglomOCDWUZc/yGzkEIYQWtlpnNNxwSGimL2ijCi7DMLbveR2aVtHiMFypN/UZPlLUlHR6iWXuPWaQRsuXRpIjyTb1ZDWuBQVaPnvfAzLs9mcL/SoTNzXMCLJ9CiFZh1glmh9yCmkhldB7CgVzyvlCGlBlEnxJf+IkYo2uNINSy+1JxcDOv2acMD0DvT2HqSCxpRmt9Q/iS/J5NIrBP+kX+J9+pRXQC/Yj8Q3TtReCZJ7M0YpsyxcO7yUfKbBLZmEUFrGgSHOnx+jgn+M4/epMRnLME8/euNWYhgSondpIKJ2HqclxYmsi4JRRaW3a2KTakb5FU7rczS29WUvb9nkUD3D+e9o82WNuVA+XkgKUVOnhktLGK/DWOK4421sDaSy+5z0praqlF8Rnn2PlMhvUe3UJDogwtImRxRUzav4k8fgCQHVaVoXL9RAAAAABJRU5ErkJggg==";var As=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ta=typeof window>"u"||"Deno"in globalThis;function qt(){}function Tv(e,r){return typeof e=="function"?e(r):e}function Gf(e){return typeof e=="number"&&e>=0&&e!==1/0}function Kh(e,r){return Math.max(e+(r||0)-Date.now(),0)}function cs(e,r){return typeof e=="function"?e(r):e}function Kr(e,r){return typeof e=="function"?e(r):e}function Pp(e,r){const{type:o="all",exact:i,fetchStatus:a,predicate:d,queryKey:h,stale:v}=e;if(h){if(i){if(r.queryHash!==zd(h,r.options))return!1}else if(!_l(r.queryKey,h))return!1}if(o!=="all"){const m=r.isActive();if(o==="active"&&!m||o==="inactive"&&m)return!1}return!(typeof v=="boolean"&&r.isStale()!==v||a&&a!==r.state.fetchStatus||d&&!d(r))}function Ap(e,r){const{exact:o,status:i,predicate:a,mutationKey:d}=e;if(d){if(!r.options.mutationKey)return!1;if(o){if(ra(r.options.mutationKey)!==ra(d))return!1}else if(!_l(r.options.mutationKey,d))return!1}return!(i&&r.state.status!==i||a&&!a(r))}function zd(e,r){return((r==null?void 0:r.queryKeyHashFn)||ra)(e)}function ra(e){return JSON.stringify(e,(r,o)=>Xf(o)?Object.keys(o).sort().reduce((i,a)=>(i[a]=o[a],i),{}):o)}function _l(e,r){return e===r?!0:typeof e!=typeof r?!1:e&&r&&typeof e=="object"&&typeof r=="object"?Object.keys(r).every(o=>_l(e[o],r[o])):!1}function Qf(e,r){if(e===r)return e;const o=Ip(e)&&Ip(r);if(o||Xf(e)&&Xf(r)){const i=o?e:Object.keys(e),a=i.length,d=o?r:Object.keys(r),h=d.length,v=o?[]:{};let m=0;for(let x=0;x<h;x++){const R=o?x:d[x];(!o&&i.includes(R)||o)&&e[R]===void 0&&r[R]===void 0?(v[R]=void 0,m++):(v[R]=Qf(e[R],r[R]),v[R]===e[R]&&e[R]!==void 0&&m++)}return a===h&&m===a?e:v}return r}function Zu(e,r){if(!r||Object.keys(e).length!==Object.keys(r).length)return!1;for(const o in e)if(e[o]!==r[o])return!1;return!0}function Ip(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xf(e){if(!Op(e))return!1;const r=e.constructor;if(r===void 0)return!0;const o=r.prototype;return!(!Op(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Op(e){return Object.prototype.toString.call(e)==="[object Object]"}function Rv(e){return new Promise(r=>{setTimeout(r,e)})}function qf(e,r,o){if(typeof o.structuralSharing=="function")return o.structuralSharing(e,r);if(o.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Qf(e,r)}catch(i){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${o.queryHash}]: ${i}`),i}return Qf(e,r)}return r}function Pv(e,r,o=0){const i=[...e,r];return o&&i.length>o?i.slice(1):i}function Av(e,r,o=0){const i=[r,...e];return o&&i.length>o?i.slice(0,-1):i}var ec=Symbol();function Zh(e,r){return process.env.NODE_ENV!=="production"&&e.queryFn===ec&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!e.queryFn||e.queryFn===ec?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function em(e,r){return typeof e=="function"?e(...r):!!e}var Gi,Vo,ms,Mh,Iv=(Mh=class extends As{constructor(){super();Ie(this,Gi);Ie(this,Vo);Ie(this,ms);he(this,ms,r=>{if(!ta&&window.addEventListener){const o=()=>r();return window.addEventListener("visibilitychange",o,!1),()=>{window.removeEventListener("visibilitychange",o)}}})}onSubscribe(){O(this,Vo)||this.setEventListener(O(this,ms))}onUnsubscribe(){var r;this.hasListeners()||((r=O(this,Vo))==null||r.call(this),he(this,Vo,void 0))}setEventListener(r){var o;he(this,ms,r),(o=O(this,Vo))==null||o.call(this),he(this,Vo,r(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(r){O(this,Gi)!==r&&(he(this,Gi,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(o=>{o(r)})}isFocused(){var r;return typeof O(this,Gi)=="boolean"?O(this,Gi):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},Gi=new WeakMap,Vo=new WeakMap,ms=new WeakMap,Mh),Bd=new Iv,gs,Yo,vs,Dh,Ov=(Dh=class extends As{constructor(){super();Ie(this,gs,!0);Ie(this,Yo);Ie(this,vs);he(this,vs,r=>{if(!ta&&window.addEventListener){const o=()=>r(!0),i=()=>r(!1);return window.addEventListener("online",o,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",o),window.removeEventListener("offline",i)}}})}onSubscribe(){O(this,Yo)||this.setEventListener(O(this,vs))}onUnsubscribe(){var r;this.hasListeners()||((r=O(this,Yo))==null||r.call(this),he(this,Yo,void 0))}setEventListener(r){var o;he(this,vs,r),(o=O(this,Yo))==null||o.call(this),he(this,Yo,r(this.setOnline.bind(this)))}setOnline(r){O(this,gs)!==r&&(he(this,gs,r),this.listeners.forEach(i=>{i(r)}))}isOnline(){return O(this,gs)}},gs=new WeakMap,Yo=new WeakMap,vs=new WeakMap,Dh),tc=new Ov;function Jf(){let e,r;const o=new Promise((a,d)=>{e=a,r=d});o.status="pending",o.catch(()=>{});function i(a){Object.assign(o,a),delete o.resolve,delete o.reject}return o.resolve=a=>{i({status:"fulfilled",value:a}),e(a)},o.reject=a=>{i({status:"rejected",reason:a}),r(a)},o}function Fv(e){return Math.min(1e3*2**e,3e4)}function tm(e){return(e??"online")==="online"?tc.isOnline():!0}var rm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Af(e){return e instanceof rm}function nm(e){let r=!1,o=0,i=!1,a;const d=Jf(),h=D=>{var P;i||(F(new rm(D)),(P=e.abort)==null||P.call(e))},v=()=>{r=!0},m=()=>{r=!1},x=()=>Bd.isFocused()&&(e.networkMode==="always"||tc.isOnline())&&e.canRun(),R=()=>tm(e.networkMode)&&e.canRun(),E=D=>{var P;i||(i=!0,(P=e.onSuccess)==null||P.call(e,D),a==null||a(),d.resolve(D))},F=D=>{var P;i||(i=!0,(P=e.onError)==null||P.call(e,D),a==null||a(),d.reject(D))},M=()=>new Promise(D=>{var P;a=I=>{(i||x())&&D(I)},(P=e.onPause)==null||P.call(e)}).then(()=>{var D;a=void 0,i||(D=e.onContinue)==null||D.call(e)}),B=()=>{if(i)return;let D;const P=o===0?e.initialPromise:void 0;try{D=P??e.fn()}catch(I){D=Promise.reject(I)}Promise.resolve(D).then(E).catch(I=>{var ie;if(i)return;const W=e.retry??(ta?0:3),U=e.retryDelay??Fv,q=typeof U=="function"?U(o,I):U,_=W===!0||typeof W=="number"&&o<W||typeof W=="function"&&W(o,I);if(r||!_){F(I);return}o++,(ie=e.onFail)==null||ie.call(e,o,I),Rv(q).then(()=>x()?void 0:M()).then(()=>{r?F(I):B()})})};return{promise:d,cancel:h,continue:()=>(a==null||a(),d),cancelRetry:v,continueRetry:m,canStart:R,start:()=>(R()?B():M().then(B),d)}}var Mv=e=>setTimeout(e,0);function Dv(){let e=[],r=0,o=v=>{v()},i=v=>{v()},a=Mv;const d=v=>{r?e.push(v):a(()=>{o(v)})},h=()=>{const v=e;e=[],v.length&&a(()=>{i(()=>{v.forEach(m=>{o(m)})})})};return{batch:v=>{let m;r++;try{m=v()}finally{r--,r||h()}return m},batchCalls:v=>(...m)=>{d(()=>{v(...m)})},schedule:d,setNotifyFunction:v=>{o=v},setBatchNotifyFunction:v=>{i=v},setScheduler:v=>{a=v}}}var bt=Dv(),Qi,_h,om=(_h=class{constructor(){Ie(this,Qi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gf(this.gcTime)&&he(this,Qi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ta?1/0:5*60*1e3))}clearGcTimeout(){O(this,Qi)&&(clearTimeout(O(this,Qi)),he(this,Qi,void 0))}},Qi=new WeakMap,_h),ys,bs,Mr,Xi,Dt,Bl,qi,qr,qn,Lh,_v=(Lh=class extends om{constructor(r){super();Ie(this,qr);Ie(this,ys);Ie(this,bs);Ie(this,Mr);Ie(this,Xi);Ie(this,Dt);Ie(this,Bl);Ie(this,qi);he(this,qi,!1),he(this,Bl,r.defaultOptions),this.setOptions(r.options),this.observers=[],he(this,Xi,r.client),he(this,Mr,O(this,Xi).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,he(this,ys,Lv(this.options)),this.state=r.state??O(this,ys),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=O(this,Dt))==null?void 0:r.promise}setOptions(r){this.options={...O(this,Bl),...r},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,Mr).remove(this)}setData(r,o){const i=qf(this.state.data,r,this.options);return ze(this,qr,qn).call(this,{data:i,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt,manual:o==null?void 0:o.manual}),i}setState(r,o){ze(this,qr,qn).call(this,{type:"setState",state:r,setStateOptions:o})}cancel(r){var i,a;const o=(i=O(this,Dt))==null?void 0:i.promise;return(a=O(this,Dt))==null||a.cancel(r),o?o.then(qt).catch(qt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(O(this,ys))}isActive(){return this.observers.some(r=>Kr(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ec||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(r=0){return this.state.isInvalidated||this.state.data===void 0||!Kh(this.state.dataUpdatedAt,r)}onFocus(){var o;const r=this.observers.find(i=>i.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(o=O(this,Dt))==null||o.continue()}onOnline(){var o;const r=this.observers.find(i=>i.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(o=O(this,Dt))==null||o.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),O(this,Mr).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(o=>o!==r),this.observers.length||(O(this,Dt)&&(O(this,qi)?O(this,Dt).cancel({revert:!0}):O(this,Dt).cancelRetry()),this.scheduleGc()),O(this,Mr).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ze(this,qr,qn).call(this,{type:"invalidate"})}fetch(r,o){var m,x,R;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(O(this,Dt))return O(this,Dt).continueRetry(),O(this,Dt).promise}if(r&&this.setOptions(r),!this.options.queryFn){const E=this.observers.find(F=>F.options.queryFn);E&&this.setOptions(E.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const i=new AbortController,a=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(he(this,qi,!0),i.signal)})},d=()=>{const E=Zh(this.options,o),F={client:O(this,Xi),queryKey:this.queryKey,meta:this.meta};return a(F),he(this,qi,!1),this.options.persister?this.options.persister(E,F,this):E(F)},h={fetchOptions:o,options:this.options,queryKey:this.queryKey,client:O(this,Xi),state:this.state,fetchFn:d};a(h),(m=this.options.behavior)==null||m.onFetch(h,this),he(this,bs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=h.fetchOptions)==null?void 0:x.meta))&&ze(this,qr,qn).call(this,{type:"fetch",meta:(R=h.fetchOptions)==null?void 0:R.meta});const v=E=>{var F,M,B,D;Af(E)&&E.silent||ze(this,qr,qn).call(this,{type:"error",error:E}),Af(E)||((M=(F=O(this,Mr).config).onError)==null||M.call(F,E,this),(D=(B=O(this,Mr).config).onSettled)==null||D.call(B,this.state.data,E,this)),this.scheduleGc()};return he(this,Dt,nm({initialPromise:o==null?void 0:o.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:E=>{var F,M,B,D;if(E===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),v(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(E)}catch(P){v(P);return}(M=(F=O(this,Mr).config).onSuccess)==null||M.call(F,E,this),(D=(B=O(this,Mr).config).onSettled)==null||D.call(B,E,this.state.error,this),this.scheduleGc()},onError:v,onFail:(E,F)=>{ze(this,qr,qn).call(this,{type:"failed",failureCount:E,error:F})},onPause:()=>{ze(this,qr,qn).call(this,{type:"pause"})},onContinue:()=>{ze(this,qr,qn).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),O(this,Dt).start()}},ys=new WeakMap,bs=new WeakMap,Mr=new WeakMap,Xi=new WeakMap,Dt=new WeakMap,Bl=new WeakMap,qi=new WeakMap,qr=new WeakSet,qn=function(r){const o=i=>{switch(r.type){case"failed":return{...i,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...im(i.data,this.options),fetchMeta:r.meta??null};case"success":return{...i,data:r.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:r.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=r.error;return Af(a)&&a.revert&&O(this,bs)?{...O(this,bs),fetchStatus:"idle"}:{...i,error:a,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...r.state}}};this.state=o(this.state),bt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),O(this,Mr).notify({query:this,type:"updated",action:r})})},Lh);function im(e,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tm(r.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Lv(e){const r=typeof e.initialData=="function"?e.initialData():e.initialData,o=r!==void 0,i=o?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:o?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var vn,jh,jv=(jh=class extends As{constructor(r={}){super();Ie(this,vn);this.config=r,he(this,vn,new Map)}build(r,o,i){const a=o.queryKey,d=o.queryHash??zd(a,o);let h=this.get(d);return h||(h=new _v({client:r,queryKey:a,queryHash:d,options:r.defaultQueryOptions(o),state:i,defaultOptions:r.getQueryDefaults(a)}),this.add(h)),h}add(r){O(this,vn).has(r.queryHash)||(O(this,vn).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const o=O(this,vn).get(r.queryHash);o&&(r.destroy(),o===r&&O(this,vn).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){bt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return O(this,vn).get(r)}getAll(){return[...O(this,vn).values()]}find(r){const o={exact:!0,...r};return this.getAll().find(i=>Pp(o,i))}findAll(r={}){const o=this.getAll();return Object.keys(r).length>0?o.filter(i=>Pp(r,i)):o}notify(r){bt.batch(()=>{this.listeners.forEach(o=>{o(r)})})}onFocus(){bt.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){bt.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},vn=new WeakMap,jh),yn,Qt,Ji,bn,Wo,Nh,Nv=(Nh=class extends om{constructor(r){super();Ie(this,bn);Ie(this,yn);Ie(this,Qt);Ie(this,Ji);this.mutationId=r.mutationId,he(this,Qt,r.mutationCache),he(this,yn,[]),this.state=r.state||am(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){O(this,yn).includes(r)||(O(this,yn).push(r),this.clearGcTimeout(),O(this,Qt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){he(this,yn,O(this,yn).filter(o=>o!==r)),this.scheduleGc(),O(this,Qt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){O(this,yn).length||(this.state.status==="pending"?this.scheduleGc():O(this,Qt).remove(this))}continue(){var r;return((r=O(this,Ji))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var d,h,v,m,x,R,E,F,M,B,D,P,I,W,U,q,_,ie,ce,ee;const o=()=>{ze(this,bn,Wo).call(this,{type:"continue"})};he(this,Ji,nm({fn:()=>this.options.mutationFn?this.options.mutationFn(r):Promise.reject(new Error("No mutationFn found")),onFail:(ae,Fe)=>{ze(this,bn,Wo).call(this,{type:"failed",failureCount:ae,error:Fe})},onPause:()=>{ze(this,bn,Wo).call(this,{type:"pause"})},onContinue:o,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,Qt).canRun(this)}));const i=this.state.status==="pending",a=!O(this,Ji).canStart();try{if(i)o();else{ze(this,bn,Wo).call(this,{type:"pending",variables:r,isPaused:a}),await((h=(d=O(this,Qt).config).onMutate)==null?void 0:h.call(d,r,this));const Fe=await((m=(v=this.options).onMutate)==null?void 0:m.call(v,r));Fe!==this.state.context&&ze(this,bn,Wo).call(this,{type:"pending",context:Fe,variables:r,isPaused:a})}const ae=await O(this,Ji).start();return await((R=(x=O(this,Qt).config).onSuccess)==null?void 0:R.call(x,ae,r,this.state.context,this)),await((F=(E=this.options).onSuccess)==null?void 0:F.call(E,ae,r,this.state.context)),await((B=(M=O(this,Qt).config).onSettled)==null?void 0:B.call(M,ae,null,this.state.variables,this.state.context,this)),await((P=(D=this.options).onSettled)==null?void 0:P.call(D,ae,null,r,this.state.context)),ze(this,bn,Wo).call(this,{type:"success",data:ae}),ae}catch(ae){try{throw await((W=(I=O(this,Qt).config).onError)==null?void 0:W.call(I,ae,r,this.state.context,this)),await((q=(U=this.options).onError)==null?void 0:q.call(U,ae,r,this.state.context)),await((ie=(_=O(this,Qt).config).onSettled)==null?void 0:ie.call(_,void 0,ae,this.state.variables,this.state.context,this)),await((ee=(ce=this.options).onSettled)==null?void 0:ee.call(ce,void 0,ae,r,this.state.context)),ae}finally{ze(this,bn,Wo).call(this,{type:"error",error:ae})}}finally{O(this,Qt).runNext(this)}}},yn=new WeakMap,Qt=new WeakMap,Ji=new WeakMap,bn=new WeakSet,Wo=function(r){const o=i=>{switch(r.type){case"failed":return{...i,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...i,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:r.error,failureCount:i.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=o(this.state),bt.batch(()=>{O(this,yn).forEach(i=>{i.onMutationUpdate(r)}),O(this,Qt).notify({mutation:this,type:"updated",action:r})})},Nh);function am(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Jn,Jr,Ul,$h,$v=($h=class extends As{constructor(r={}){super();Ie(this,Jn);Ie(this,Jr);Ie(this,Ul);this.config=r,he(this,Jn,new Set),he(this,Jr,new Map),he(this,Ul,0)}build(r,o,i){const a=new Nv({mutationCache:this,mutationId:++Nu(this,Ul)._,options:r.defaultMutationOptions(o),state:i});return this.add(a),a}add(r){O(this,Jn).add(r);const o=Hu(r);if(typeof o=="string"){const i=O(this,Jr).get(o);i?i.push(r):O(this,Jr).set(o,[r])}this.notify({type:"added",mutation:r})}remove(r){if(O(this,Jn).delete(r)){const o=Hu(r);if(typeof o=="string"){const i=O(this,Jr).get(o);if(i)if(i.length>1){const a=i.indexOf(r);a!==-1&&i.splice(a,1)}else i[0]===r&&O(this,Jr).delete(o)}}this.notify({type:"removed",mutation:r})}canRun(r){const o=Hu(r);if(typeof o=="string"){const i=O(this,Jr).get(o),a=i==null?void 0:i.find(d=>d.state.status==="pending");return!a||a===r}else return!0}runNext(r){var i;const o=Hu(r);if(typeof o=="string"){const a=(i=O(this,Jr).get(o))==null?void 0:i.find(d=>d!==r&&d.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){bt.batch(()=>{O(this,Jn).forEach(r=>{this.notify({type:"removed",mutation:r})}),O(this,Jn).clear(),O(this,Jr).clear()})}getAll(){return Array.from(O(this,Jn))}find(r){const o={exact:!0,...r};return this.getAll().find(i=>Ap(o,i))}findAll(r={}){return this.getAll().filter(o=>Ap(r,o))}notify(r){bt.batch(()=>{this.listeners.forEach(o=>{o(r)})})}resumePausedMutations(){const r=this.getAll().filter(o=>o.state.isPaused);return bt.batch(()=>Promise.all(r.map(o=>o.continue().catch(qt))))}},Jn=new WeakMap,Jr=new WeakMap,Ul=new WeakMap,$h);function Hu(e){var r;return(r=e.options.scope)==null?void 0:r.id}function Fp(e){return{onFetch:(r,o)=>{var R,E,F,M,B;const i=r.options,a=(F=(E=(R=r.fetchOptions)==null?void 0:R.meta)==null?void 0:E.fetchMore)==null?void 0:F.direction,d=((M=r.state.data)==null?void 0:M.pages)||[],h=((B=r.state.data)==null?void 0:B.pageParams)||[];let v={pages:[],pageParams:[]},m=0;const x=async()=>{let D=!1;const P=U=>{Object.defineProperty(U,"signal",{enumerable:!0,get:()=>(r.signal.aborted?D=!0:r.signal.addEventListener("abort",()=>{D=!0}),r.signal)})},I=Zh(r.options,r.fetchOptions),W=async(U,q,_)=>{if(D)return Promise.reject();if(q==null&&U.pages.length)return Promise.resolve(U);const ie={client:r.client,queryKey:r.queryKey,pageParam:q,direction:_?"backward":"forward",meta:r.options.meta};P(ie);const ce=await I(ie),{maxPages:ee}=r.options,ae=_?Av:Pv;return{pages:ae(U.pages,ce,ee),pageParams:ae(U.pageParams,q,ee)}};if(a&&d.length){const U=a==="backward",q=U?zv:Mp,_={pages:d,pageParams:h},ie=q(i,_);v=await W(_,ie,U)}else{const U=e??d.length;do{const q=m===0?h[0]??i.initialPageParam:Mp(i,v);if(m>0&&q==null)break;v=await W(v,q),m++}while(m<U)}return v};r.options.persister?r.fetchFn=()=>{var D,P;return(P=(D=r.options).persister)==null?void 0:P.call(D,x,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},o)}:r.fetchFn=x}}}function Mp(e,{pages:r,pageParams:o}){const i=r.length-1;return r.length>0?e.getNextPageParam(r[i],r,o[i],o):void 0}function zv(e,{pages:r,pageParams:o}){var i;return r.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,r[0],r,o[0],o):void 0}var dt,Go,Qo,xs,ws,Xo,Ss,ks,zh,Bv=(zh=class{constructor(e={}){Ie(this,dt);Ie(this,Go);Ie(this,Qo);Ie(this,xs);Ie(this,ws);Ie(this,Xo);Ie(this,Ss);Ie(this,ks);he(this,dt,e.queryCache||new jv),he(this,Go,e.mutationCache||new $v),he(this,Qo,e.defaultOptions||{}),he(this,xs,new Map),he(this,ws,new Map),he(this,Xo,0)}mount(){Nu(this,Xo)._++,O(this,Xo)===1&&(he(this,Ss,Bd.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,dt).onFocus())})),he(this,ks,tc.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,dt).onOnline())})))}unmount(){var e,r;Nu(this,Xo)._--,O(this,Xo)===0&&((e=O(this,Ss))==null||e.call(this),he(this,Ss,void 0),(r=O(this,ks))==null||r.call(this),he(this,ks,void 0))}isFetching(e){return O(this,dt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return O(this,Go).findAll({...e,status:"pending"}).length}getQueryData(e){var o;const r=this.defaultQueryOptions({queryKey:e});return(o=O(this,dt).get(r.queryHash))==null?void 0:o.state.data}ensureQueryData(e){const r=this.defaultQueryOptions(e),o=O(this,dt).build(this,r),i=o.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&o.isStaleByTime(cs(r.staleTime,o))&&this.prefetchQuery(r),Promise.resolve(i))}getQueriesData(e){return O(this,dt).findAll(e).map(({queryKey:r,state:o})=>{const i=o.data;return[r,i]})}setQueryData(e,r,o){const i=this.defaultQueryOptions({queryKey:e}),a=O(this,dt).get(i.queryHash),d=a==null?void 0:a.state.data,h=Tv(r,d);if(h!==void 0)return O(this,dt).build(this,i).setData(h,{...o,manual:!0})}setQueriesData(e,r,o){return bt.batch(()=>O(this,dt).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,r,o)]))}getQueryState(e){var o;const r=this.defaultQueryOptions({queryKey:e});return(o=O(this,dt).get(r.queryHash))==null?void 0:o.state}removeQueries(e){const r=O(this,dt);bt.batch(()=>{r.findAll(e).forEach(o=>{r.remove(o)})})}resetQueries(e,r){const o=O(this,dt);return bt.batch(()=>(o.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},r)))}cancelQueries(e,r={}){const o={revert:!0,...r},i=bt.batch(()=>O(this,dt).findAll(e).map(a=>a.cancel(o)));return Promise.all(i).then(qt).catch(qt)}invalidateQueries(e,r={}){return bt.batch(()=>(O(this,dt).findAll(e).forEach(o=>{o.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},r)))}refetchQueries(e,r={}){const o={...r,cancelRefetch:r.cancelRefetch??!0},i=bt.batch(()=>O(this,dt).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let d=a.fetch(void 0,o);return o.throwOnError||(d=d.catch(qt)),a.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(i).then(qt)}fetchQuery(e){const r=this.defaultQueryOptions(e);r.retry===void 0&&(r.retry=!1);const o=O(this,dt).build(this,r);return o.isStaleByTime(cs(r.staleTime,o))?o.fetch(r):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qt).catch(qt)}fetchInfiniteQuery(e){return e.behavior=Fp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qt).catch(qt)}ensureInfiniteQueryData(e){return e.behavior=Fp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return tc.isOnline()?O(this,Go).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,dt)}getMutationCache(){return O(this,Go)}getDefaultOptions(){return O(this,Qo)}setDefaultOptions(e){he(this,Qo,e)}setQueryDefaults(e,r){O(this,xs).set(ra(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){const r=[...O(this,xs).values()],o={};return r.forEach(i=>{_l(e,i.queryKey)&&Object.assign(o,i.defaultOptions)}),o}setMutationDefaults(e,r){O(this,ws).set(ra(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){const r=[...O(this,ws).values()],o={};return r.forEach(i=>{_l(e,i.mutationKey)&&Object.assign(o,i.defaultOptions)}),o}defaultQueryOptions(e){if(e._defaulted)return e;const r={...O(this,Qo).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return r.queryHash||(r.queryHash=zd(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===ec&&(r.enabled=!1),r}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...O(this,Qo).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){O(this,dt).clear(),O(this,Go).clear()}},dt=new WeakMap,Go=new WeakMap,Qo=new WeakMap,xs=new WeakMap,ws=new WeakMap,Xo=new WeakMap,Ss=new WeakMap,ks=new WeakMap,zh),lr,Ve,Hl,Xt,Ki,Es,qo,Jo,Wl,Cs,Ts,Zi,ea,Ko,Rs,Ze,Pl,Kf,Zf,ed,td,rd,nd,od,sm,Bh,Uv=(Bh=class extends As{constructor(r,o){super();Ie(this,Ze);Ie(this,lr);Ie(this,Ve);Ie(this,Hl);Ie(this,Xt);Ie(this,Ki);Ie(this,Es);Ie(this,qo);Ie(this,Jo);Ie(this,Wl);Ie(this,Cs);Ie(this,Ts);Ie(this,Zi);Ie(this,ea);Ie(this,Ko);Ie(this,Rs,new Set);this.options=o,he(this,lr,r),he(this,Jo,null),he(this,qo,Jf()),this.options.experimental_prefetchInRender||O(this,qo).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(o)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,Ve).addObserver(this),Dp(O(this,Ve),this.options)?ze(this,Ze,Pl).call(this):this.updateResult(),ze(this,Ze,td).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return id(O(this,Ve),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return id(O(this,Ve),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ze(this,Ze,rd).call(this),ze(this,Ze,nd).call(this),O(this,Ve).removeObserver(this)}setOptions(r){const o=this.options,i=O(this,Ve);if(this.options=O(this,lr).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kr(this.options.enabled,O(this,Ve))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ze(this,Ze,od).call(this),O(this,Ve).setOptions(this.options),o._defaulted&&!Zu(this.options,o)&&O(this,lr).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,Ve),observer:this});const a=this.hasListeners();a&&_p(O(this,Ve),i,this.options,o)&&ze(this,Ze,Pl).call(this),this.updateResult(),a&&(O(this,Ve)!==i||Kr(this.options.enabled,O(this,Ve))!==Kr(o.enabled,O(this,Ve))||cs(this.options.staleTime,O(this,Ve))!==cs(o.staleTime,O(this,Ve)))&&ze(this,Ze,Kf).call(this);const d=ze(this,Ze,Zf).call(this);a&&(O(this,Ve)!==i||Kr(this.options.enabled,O(this,Ve))!==Kr(o.enabled,O(this,Ve))||d!==O(this,Ko))&&ze(this,Ze,ed).call(this,d)}getOptimisticResult(r){const o=O(this,lr).getQueryCache().build(O(this,lr),r),i=this.createResult(o,r);return Wv(this,i)&&(he(this,Xt,i),he(this,Es,this.options),he(this,Ki,O(this,Ve).state)),i}getCurrentResult(){return O(this,Xt)}trackResult(r,o){return new Proxy(r,{get:(i,a)=>(this.trackProp(a),o==null||o(a),Reflect.get(i,a))})}trackProp(r){O(this,Rs).add(r)}getCurrentQuery(){return O(this,Ve)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const o=O(this,lr).defaultQueryOptions(r),i=O(this,lr).getQueryCache().build(O(this,lr),o);return i.fetch().then(()=>this.createResult(i,o))}fetch(r){return ze(this,Ze,Pl).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,Xt)))}createResult(r,o){var ae;const i=O(this,Ve),a=this.options,d=O(this,Xt),h=O(this,Ki),v=O(this,Es),x=r!==i?r.state:O(this,Hl),{state:R}=r;let E={...R},F=!1,M;if(o._optimisticResults){const Fe=this.hasListeners(),Ne=!Fe&&Dp(r,o),_e=Fe&&_p(r,i,o,a);(Ne||_e)&&(E={...E,...im(R.data,r.options)}),o._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:B,errorUpdatedAt:D,status:P}=E;M=E.data;let I=!1;if(o.placeholderData!==void 0&&M===void 0&&P==="pending"){let Fe;d!=null&&d.isPlaceholderData&&o.placeholderData===(v==null?void 0:v.placeholderData)?(Fe=d.data,I=!0):Fe=typeof o.placeholderData=="function"?o.placeholderData((ae=O(this,Ts))==null?void 0:ae.state.data,O(this,Ts)):o.placeholderData,Fe!==void 0&&(P="success",M=qf(d==null?void 0:d.data,Fe,o),F=!0)}if(o.select&&M!==void 0&&!I)if(d&&M===(h==null?void 0:h.data)&&o.select===O(this,Wl))M=O(this,Cs);else try{he(this,Wl,o.select),M=o.select(M),M=qf(d==null?void 0:d.data,M,o),he(this,Cs,M),he(this,Jo,null)}catch(Fe){he(this,Jo,Fe)}O(this,Jo)&&(B=O(this,Jo),M=O(this,Cs),D=Date.now(),P="error");const W=E.fetchStatus==="fetching",U=P==="pending",q=P==="error",_=U&&W,ie=M!==void 0,ee={status:P,fetchStatus:E.fetchStatus,isPending:U,isSuccess:P==="success",isError:q,isInitialLoading:_,isLoading:_,data:M,dataUpdatedAt:E.dataUpdatedAt,error:B,errorUpdatedAt:D,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:E.dataUpdateCount>0||E.errorUpdateCount>0,isFetchedAfterMount:E.dataUpdateCount>x.dataUpdateCount||E.errorUpdateCount>x.errorUpdateCount,isFetching:W,isRefetching:W&&!U,isLoadingError:q&&!ie,isPaused:E.fetchStatus==="paused",isPlaceholderData:F,isRefetchError:q&&ie,isStale:Ud(r,o),refetch:this.refetch,promise:O(this,qo)};if(this.options.experimental_prefetchInRender){const Fe=Ge=>{ee.status==="error"?Ge.reject(ee.error):ee.data!==void 0&&Ge.resolve(ee.data)},Ne=()=>{const Ge=he(this,qo,ee.promise=Jf());Fe(Ge)},_e=O(this,qo);switch(_e.status){case"pending":r.queryHash===i.queryHash&&Fe(_e);break;case"fulfilled":(ee.status==="error"||ee.data!==_e.value)&&Ne();break;case"rejected":(ee.status!=="error"||ee.error!==_e.reason)&&Ne();break}}return ee}updateResult(){const r=O(this,Xt),o=this.createResult(O(this,Ve),this.options);if(he(this,Ki,O(this,Ve).state),he(this,Es,this.options),O(this,Ki).data!==void 0&&he(this,Ts,O(this,Ve)),Zu(o,r))return;he(this,Xt,o);const i=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,d=typeof a=="function"?a():a;if(d==="all"||!d&&!O(this,Rs).size)return!0;const h=new Set(d??O(this,Rs));return this.options.throwOnError&&h.add("error"),Object.keys(O(this,Xt)).some(v=>{const m=v;return O(this,Xt)[m]!==r[m]&&h.has(m)})};ze(this,Ze,sm).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ze(this,Ze,td).call(this)}},lr=new WeakMap,Ve=new WeakMap,Hl=new WeakMap,Xt=new WeakMap,Ki=new WeakMap,Es=new WeakMap,qo=new WeakMap,Jo=new WeakMap,Wl=new WeakMap,Cs=new WeakMap,Ts=new WeakMap,Zi=new WeakMap,ea=new WeakMap,Ko=new WeakMap,Rs=new WeakMap,Ze=new WeakSet,Pl=function(r){ze(this,Ze,od).call(this);let o=O(this,Ve).fetch(this.options,r);return r!=null&&r.throwOnError||(o=o.catch(qt)),o},Kf=function(){ze(this,Ze,rd).call(this);const r=cs(this.options.staleTime,O(this,Ve));if(ta||O(this,Xt).isStale||!Gf(r))return;const i=Kh(O(this,Xt).dataUpdatedAt,r)+1;he(this,Zi,setTimeout(()=>{O(this,Xt).isStale||this.updateResult()},i))},Zf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,Ve)):this.options.refetchInterval)??!1},ed=function(r){ze(this,Ze,nd).call(this),he(this,Ko,r),!(ta||Kr(this.options.enabled,O(this,Ve))===!1||!Gf(O(this,Ko))||O(this,Ko)===0)&&he(this,ea,setInterval(()=>{(this.options.refetchIntervalInBackground||Bd.isFocused())&&ze(this,Ze,Pl).call(this)},O(this,Ko)))},td=function(){ze(this,Ze,Kf).call(this),ze(this,Ze,ed).call(this,ze(this,Ze,Zf).call(this))},rd=function(){O(this,Zi)&&(clearTimeout(O(this,Zi)),he(this,Zi,void 0))},nd=function(){O(this,ea)&&(clearInterval(O(this,ea)),he(this,ea,void 0))},od=function(){const r=O(this,lr).getQueryCache().build(O(this,lr),this.options);if(r===O(this,Ve))return;const o=O(this,Ve);he(this,Ve,r),he(this,Hl,r.state),this.hasListeners()&&(o==null||o.removeObserver(this),r.addObserver(this))},sm=function(r){bt.batch(()=>{r.listeners&&this.listeners.forEach(o=>{o(O(this,Xt))}),O(this,lr).getQueryCache().notify({query:O(this,Ve),type:"observerResultsUpdated"})})},Bh);function Hv(e,r){return Kr(r.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&r.retryOnMount===!1)}function Dp(e,r){return Hv(e,r)||e.state.data!==void 0&&id(e,r,r.refetchOnMount)}function id(e,r,o){if(Kr(r.enabled,e)!==!1){const i=typeof o=="function"?o(e):o;return i==="always"||i!==!1&&Ud(e,r)}return!1}function _p(e,r,o,i){return(e!==r||Kr(i.enabled,e)===!1)&&(!o.suspense||e.state.status!=="error")&&Ud(e,o)}function Ud(e,r){return Kr(r.enabled,e)!==!1&&e.isStaleByTime(cs(r.staleTime,e))}function Wv(e,r){return!Zu(e.getCurrentResult(),r)}var Zo,ei,ur,Kn,eo,Xu,ad,Uh,Vv=(Uh=class extends As{constructor(o,i){super();Ie(this,eo);Ie(this,Zo);Ie(this,ei);Ie(this,ur);Ie(this,Kn);he(this,Zo,o),this.setOptions(i),this.bindMethods(),ze(this,eo,Xu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(o){var a;const i=this.options;this.options=O(this,Zo).defaultMutationOptions(o),Zu(this.options,i)||O(this,Zo).getMutationCache().notify({type:"observerOptionsUpdated",mutation:O(this,ur),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&ra(i.mutationKey)!==ra(this.options.mutationKey)?this.reset():((a=O(this,ur))==null?void 0:a.state.status)==="pending"&&O(this,ur).setOptions(this.options)}onUnsubscribe(){var o;this.hasListeners()||(o=O(this,ur))==null||o.removeObserver(this)}onMutationUpdate(o){ze(this,eo,Xu).call(this),ze(this,eo,ad).call(this,o)}getCurrentResult(){return O(this,ei)}reset(){var o;(o=O(this,ur))==null||o.removeObserver(this),he(this,ur,void 0),ze(this,eo,Xu).call(this),ze(this,eo,ad).call(this)}mutate(o,i){var a;return he(this,Kn,i),(a=O(this,ur))==null||a.removeObserver(this),he(this,ur,O(this,Zo).getMutationCache().build(O(this,Zo),this.options)),O(this,ur).addObserver(this),O(this,ur).execute(o)}},Zo=new WeakMap,ei=new WeakMap,ur=new WeakMap,Kn=new WeakMap,eo=new WeakSet,Xu=function(){var i;const o=((i=O(this,ur))==null?void 0:i.state)??am();he(this,ei,{...o,isPending:o.status==="pending",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset})},ad=function(o){bt.batch(()=>{var i,a,d,h,v,m,x,R;if(O(this,Kn)&&this.hasListeners()){const E=O(this,ei).variables,F=O(this,ei).context;(o==null?void 0:o.type)==="success"?((a=(i=O(this,Kn)).onSuccess)==null||a.call(i,o.data,E,F),(h=(d=O(this,Kn)).onSettled)==null||h.call(d,o.data,null,E,F)):(o==null?void 0:o.type)==="error"&&((m=(v=O(this,Kn)).onError)==null||m.call(v,o.error,E,F),(R=(x=O(this,Kn)).onSettled)==null||R.call(x,void 0,o.error,E,F))}this.listeners.forEach(E=>{E(O(this,ei))})})},Uh),lm=de.createContext(void 0),um=e=>{const r=de.useContext(lm);if(e)return e;if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Yv=({client:e,children:r})=>(de.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Q.jsx(lm.Provider,{value:e,children:r})),cm=de.createContext(!1),Gv=()=>de.useContext(cm);cm.Provider;function Qv(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Xv=de.createContext(Qv()),qv=()=>de.useContext(Xv),Jv=(e,r)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(r.isReset()||(e.retryOnMount=!1))},Kv=e=>{de.useEffect(()=>{e.clearReset()},[e])},Zv=({result:e,errorResetBoundary:r,throwOnError:o,query:i,suspense:a})=>e.isError&&!r.isReset()&&!e.isFetching&&i&&(a&&e.data===void 0||em(o,[e.error,i])),ey=e=>{const r=e.staleTime;e.suspense&&(e.staleTime=typeof r=="function"?(...o)=>Math.max(r(...o),1e3):Math.max(r??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},ty=(e,r)=>e.isLoading&&e.isFetching&&!r,ry=(e,r)=>(e==null?void 0:e.suspense)&&r.isPending,Lp=(e,r,o)=>r.fetchOptimistic(e).catch(()=>{o.clearReset()});function ny(e,r,o){var E,F,M,B,D;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const i=um(o),a=Gv(),d=qv(),h=i.defaultQueryOptions(e);(F=(E=i.getDefaultOptions().queries)==null?void 0:E._experimental_beforeQuery)==null||F.call(E,h),process.env.NODE_ENV!=="production"&&(h.queryFn||console.error(`[${h.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),h._optimisticResults=a?"isRestoring":"optimistic",ey(h),Jv(h,d),Kv(d);const v=!i.getQueryCache().get(h.queryHash),[m]=de.useState(()=>new r(i,h)),x=m.getOptimisticResult(h),R=!a&&e.subscribed!==!1;if(de.useSyncExternalStore(de.useCallback(P=>{const I=R?m.subscribe(bt.batchCalls(P)):qt;return m.updateResult(),I},[m,R]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),de.useEffect(()=>{m.setOptions(h)},[h,m]),ry(h,x))throw Lp(h,m,d);if(Zv({result:x,errorResetBoundary:d,throwOnError:h.throwOnError,query:i.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw x.error;if((B=(M=i.getDefaultOptions().queries)==null?void 0:M._experimental_afterQuery)==null||B.call(M,h,x),h.experimental_prefetchInRender&&!ta&&ty(x,a)){const P=v?Lp(h,m,d):(D=i.getQueryCache().get(h.queryHash))==null?void 0:D.promise;P==null||P.catch(qt).finally(()=>{m.updateResult()})}return h.notifyOnChangeProps?x:m.trackResult(x)}function Hd(e,r){return ny(e,Uv,r)}function fm(e,r){const o=um(r),[i]=de.useState(()=>new Vv(o,e));de.useEffect(()=>{i.setOptions(e)},[i,e]);const a=de.useSyncExternalStore(de.useCallback(h=>i.subscribe(bt.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),d=de.useCallback((h,v)=>{i.mutate(h,v).catch(qt)},[i]);if(a.error&&em(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:d,mutateAsync:a.mutate}}const Wd=V.createContext(null);Wd.Provider;const Is=()=>V.useContext(Wd),dm=({children:e})=>{const[r]=V.useState(new Bv);return Q.jsx(Wd.Provider,{value:{queryClient:r},children:Q.jsx(Yv,{client:r,children:e})})},ut={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},pm="https://marketplace.confidence.com/api",Vl=pm+"/confidence",jp=pm+"/dropbox/prod",oy=async e=>{const r={taskInstanceId:e},o=new Headers;return o.append("Content-Type","application/json"),await(await fetch(`${Vl}/playbook-task-complete`,{method:"POST",headers:o,body:JSON.stringify(r)})).json()},iy=()=>{const{queryClient:e}=Is(),r=fm({mutationFn:async i=>oy(i)},e);return{completeTask:async i=>r.mutateAsync(i,{onSuccess:()=>{console.log("Task completed successfully")},onError:a=>{console.error("Error completing task:",a)}}),...r}},ay=async e=>{const r={taskInstanceId:e},o=new Headers;return o.append("Content-Type","application/json"),await(await fetch(`${Vl}/playbook-task-start`,{method:"POST",headers:o,body:JSON.stringify(r)})).json()},sy=()=>{const{queryClient:e}=Is(),r=fm({mutationFn:async i=>await ay(i)},e);return{startTask:i=>r.mutateAsync(i,{onSuccess:()=>{console.log("Task started successfully")},onError:a=>{console.error("Error starting task:",a)}}),...r}},hm=(e,r)=>{const{queryClient:o}=Is(),i=Hd({initialData:{},queryFn:()=>o.getQueryData(["PLAYBOOK_EXPANDED_TASKS",+e]),queryKey:["PLAYBOOK_EXPANDED_TASKS",+e]}),a=v=>{var m;return((m=i.data)==null?void 0:m[v.toString()])??!1},d=(v,m)=>{var x;o.setQueryData(["PLAYBOOK_EXPANDED_TASKS",+e],()=>({[v]:m!==void 0?m:!a(v)})),(x=r==null?void 0:r.onTaskExpanded)==null||x.call(r,v,a(v))},h=V.useMemo(()=>Object.values(i.data??{}).some(v=>v),[i.data]);return{isTaskExpanded:a,toggleTaskExpanded:d,isAtLeastOneTaskExpanded:h}},ly=(e,r)=>{const{queryClient:o}=Is(),{completeTask:i}=iy(),{startTask:a}=sy(),{toggleTaskExpanded:d}=hm(e);return{completeTask:async(m,x)=>{const{status:R}=await i(m.toString());R&&(d(m,!1),o.setQueryData(["playbook",+e],E=>{if(!E)return E;const F=E.tasks.map(M=>M.sequenceOrder===x+1&&r.quickComplete?{...M,workflowStatus:ut.IN_PROGRESS}:M.taskInstanceId===m?{...M,workflowStatus:R}:M);return{...E,tasks:F}}))},startTask:async m=>{const{status:x}=await a(m.toString());x&&(d(m,!0),o.setQueryData(["playbook",+e],R=>{if(!R)return R;const E=R.tasks.map(F=>F.taskInstanceId===m?{...F,workflowStatus:x}:F);return{...R,tasks:E}}))}}},uy=e=>{var a;const{queryClient:r}=Is(),o=Hd({queryFn:async()=>{const d=new Headers,h=await fetch(`${Vl}/playbook-details`,{method:"POST",cache:"no-store",headers:d,body:JSON.stringify({playbookInstanceId:+e,start:0,limit:50})});if(!h.ok)throw new Error("Network response was not ok");const v=await h.json();if(v.error)throw new Error(v.error);return v},queryKey:["playbook",+e]},r),i=ly(e,{quickComplete:(a=o.data)==null?void 0:a.quickComplete});return{playbook:o.data,isLoading:o.isLoading,error:o.error,actions:i}},Il={START:"START",PAUSE:"PAUSE",COMPLETE:"COMPLETE"},cy={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},fy=e=>{const{taskStatus:r,canStart:o}=e;return{buttons:V.useMemo(()=>r===ut.OPEN&&o?[Il.START]:r===ut.IN_PROGRESS?[Il.PAUSE,Il.COMPLETE]:r===ut.COMPLETED?[]:[],[e.taskStatus,e.canStart])}},mm=async e=>{const r=new Headers;return r.append("Content-Type","application/json"),await(await fetch(`${Vl}/playbook-initiate`,{method:"POST",headers:r,body:JSON.stringify(e)})).json()},Vd='/*! tailwindcss v4.1.4 | MIT License | https://tailwindcss.com */@layer properties{*{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}.confidence-playbook{display:revert;all:unset!important}@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none!important}.absolute{position:absolute!important}.fixed{position:fixed!important}.relative{position:relative!important}.sticky{position:sticky!important}.inset-0{inset:calc(var(--spacing)*0)!important}.top-0{top:calc(var(--spacing)*0)!important}.top-3{top:calc(var(--spacing)*3)!important}.bottom-0{bottom:calc(var(--spacing)*0)!important}.z-2{z-index:2!important}.z-50{z-index:50!important}.z-\\[99999999999999\\]{z-index:2147483647!important}.container{width:100%!important}@media (min-width:40rem){.container{max-width:40rem!important}}@media (min-width:48rem){.container{max-width:48rem!important}}@media (min-width:64rem){.container{max-width:64rem!important}}@media (min-width:80rem){.container{max-width:80rem!important}}@media (min-width:96rem){.container{max-width:96rem!important}}.mx-1{margin-inline:calc(var(--spacing)*1)!important}.mx-4{margin-inline:calc(var(--spacing)*4)!important}.-mt-\\[1px\\]{margin-top:-1px!important}.mt-3{margin-top:calc(var(--spacing)*3)!important}.-mb-3{margin-bottom:calc(var(--spacing)*-3)!important}.mb-4{margin-bottom:calc(var(--spacing)*4)!important}.ml-2{margin-left:calc(var(--spacing)*2)!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.size-4{width:calc(var(--spacing)*4)!important;height:calc(var(--spacing)*4)!important}.size-9{width:calc(var(--spacing)*9)!important;height:calc(var(--spacing)*9)!important}.h-\\[18px\\]{height:18px!important}.h-\\[22px\\]{height:22px!important}.h-\\[24px\\]{height:24px!important}.h-\\[30px\\]{height:30px!important}.h-\\[38px\\]{height:38px!important}.h-\\[40px\\]{height:40px!important}.h-full{height:100%!important}.min-h-16{min-height:calc(var(--spacing)*16)!important}.min-h-screen{min-height:100vh!important}.w-\\[27px\\]{width:27px!important}.w-\\[38px\\]{width:38px!important}.w-\\[400px\\]{width:400px!important}.w-full{width:100%!important}.w-screen{width:100vw!important}.max-w-lg{max-width:var(--container-lg)!important}.max-w-md{max-width:var(--container-md)!important}.min-w-\\[106px\\]{min-width:106px!important}.min-w-\\[140px\\]{min-width:140px!important}.min-w-\\[160px\\]{min-width:160px!important}.min-w-\\[172px\\]{min-width:172px!important}.min-w-fit{min-width:fit-content!important}.flex-1{flex:1!important}.rotate-180{rotate:180deg!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-center{justify-content:center!important}.justify-end{justify-content:flex-end!important}.gap-1{gap:calc(var(--spacing)*1)!important}.gap-2{gap:calc(var(--spacing)*2)!important}.gap-3{gap:calc(var(--spacing)*3)!important}.gap-4{gap:calc(var(--spacing)*4)!important}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0!important;border-bottom-style:var(--tw-border-style)!important;border-top-style:var(--tw-border-style)!important;border-top-width:calc(1px*var(--tw-divide-y-reverse))!important;border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))!important}:where(.divide-black\\/10>:not(:last-child)){border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}:where(.divide-gray-100>:not(:last-child)){border-color:#ebedef!important}.self-end{align-self:flex-end!important}.truncate{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.overflow-hidden{overflow:hidden!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-y-auto{overflow-y:auto!important}.rounded{border-radius:.25rem!important}.rounded-lg{border-radius:var(--radius-lg)!important}.rounded-md{border-radius:var(--radius-md)!important}.rounded-sm{border-radius:var(--radius-sm)!important}.rounded-t-sm{border-top-left-radius:var(--radius-sm)!important;border-top-right-radius:var(--radius-sm)!important}.rounded-l-sm{border-top-left-radius:var(--radius-sm)!important;border-bottom-left-radius:var(--radius-sm)!important}.rounded-b-md{border-bottom-right-radius:var(--radius-md)!important;border-bottom-left-radius:var(--radius-md)!important}.border{border-style:var(--tw-border-style)!important;border-width:1px!important}.border-t{border-top-style:var(--tw-border-style)!important;border-top-width:1px!important}.border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-none{--tw-border-style:none!important;border-style:none!important}.border-\\[\\#94C8FF\\]{border-color:#94c8ff!important}.border-\\[\\#A5DAB1\\]{border-color:#a5dab1!important}.border-\\[\\#C1C5C8\\]{border-color:#c1c5c8!important}.border-black\\/10{border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}.border-danger-500{border-color:#dc3545!important}.border-gray-50{border-color:#f5f6f7!important}.border-gray-100{border-color:#ebedef!important}.border-gray-200{border-color:#ced1d6!important}.border-gray-300{border-color:#b0b5bd!important}.border-gray-400{border-color:#757e8c!important}.border-gray-700{border-color:#2c3544!important}.border-gray-800{border-color:#232b37!important}.border-info-500{border-color:#17a2b8!important}.border-orange-500{border-color:#ff7800!important}.border-primary-600{border-color:#0069d9!important}.border-purple-500{border-color:#a855f7!important}.border-red-500{border-color:var(--color-red-500)!important}.border-secondary-500{border-color:#6c757d!important}.border-secondary-600{border-color:#5a6268!important}.border-steel-500{border-color:#556987!important}.border-success-600{border-color:#218838!important}.border-warning-500{border-color:#ffc107!important}.border-white{border-color:#fff!important}.bg-\\[\\#E6F2FF\\]{background-color:#e6f2ff!important}.bg-\\[\\#EAF6EC\\]{background-color:#eaf6ec!important}.bg-\\[\\#F0F1F2\\]{background-color:#f0f1f2!important}.bg-\\[\\#FFE600\\]{background-color:#ffe600!important}.bg-black\\/30{background-color:oklab(0% none none/.3)!important}.bg-danger-500{background-color:#dc3545!important}.bg-dark{background-color:#1c232d!important}.bg-fiserv-orange-500{background-color:#f60!important}.bg-gray-50{background-color:#f5f6f7!important}.bg-gray-100{background-color:#ebedef!important}.bg-gray-400{background-color:#757e8c!important}.bg-gray-500{background-color:#3a475b!important}.bg-gray-800{background-color:#232b37!important}.bg-gray-900{background-color:#1c232d!important}.bg-info-500{background-color:#17a2b8!important}.bg-orange-500{background-color:#ff7800!important}.bg-primary-600{background-color:#0069d9!important}.bg-primary-800{background-color:#0054af!important}.bg-purple-500{background-color:#a855f7!important}.bg-secondary-500{background-color:#6c757d!important}.bg-steel-500{background-color:#556987!important}.bg-success-500{background-color:#28a745!important}.bg-success-600{background-color:#218838!important}.bg-warning-500{background-color:#ffc107!important}.bg-white{background-color:#fff!important}.bg-yellow{background-color:#ffe600!important}.object-contain{object-fit:contain!important}.p-1{padding:calc(var(--spacing)*1)!important}.p-2{padding:calc(var(--spacing)*2)!important}.p-4{padding:calc(var(--spacing)*4)!important}.px-1{padding-inline:calc(var(--spacing)*1)!important}.px-2{padding-inline:calc(var(--spacing)*2)!important}.px-3{padding-inline:calc(var(--spacing)*3)!important}.px-4{padding-inline:calc(var(--spacing)*4)!important}.px-\\[2px\\]{padding-inline:2px!important}.py-1{padding-block:calc(var(--spacing)*1)!important}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)!important}.pt-2{padding-top:calc(var(--spacing)*2)!important}.pr-2{padding-right:calc(var(--spacing)*2)!important}.pb-1{padding-bottom:calc(var(--spacing)*1)!important}.pb-2{padding-bottom:calc(var(--spacing)*2)!important}.text-center{text-align:center!important}.text-2xl{font-size:var(--text-2xl)!important;line-height:var(--tw-leading,var(--text-2xl--line-height))!important}.text-base{font-size:var(--text-base)!important;line-height:var(--tw-leading,var(--text-base--line-height))!important}.text-lg{font-size:var(--text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height))!important}.text-sm{font-size:var(--text-sm)!important;line-height:var(--tw-leading,var(--text-sm--line-height))!important}.text-sm\\/6{font-size:var(--text-sm)!important;line-height:calc(var(--spacing)*6)!important}.text-xl{font-size:var(--text-xl)!important;line-height:var(--tw-leading,var(--text-xl--line-height))!important}.text-xs{font-size:var(--text-xs)!important;line-height:var(--tw-leading,var(--text-xs--line-height))!important}.leading-\\[18px\\]{--tw-leading:18px!important;line-height:18px!important}.leading-\\[22px\\]{--tw-leading:22px!important;line-height:22px!important}.leading-\\[24px\\]{--tw-leading:24px!important;line-height:24px!important}.font-bold{--tw-font-weight:var(--font-weight-bold)!important;font-weight:var(--font-weight-bold)!important}.font-medium{--tw-font-weight:var(--font-weight-medium)!important;font-weight:var(--font-weight-medium)!important}.font-normal{--tw-font-weight:var(--font-weight-normal)!important;font-weight:var(--font-weight-normal)!important}.whitespace-nowrap{white-space:nowrap!important}.text-\\[\\#0069D9\\]{color:#0069d9!important}.text-black{color:#000!important}.text-danger-500{color:#dc3545!important}.text-dark{color:#1c232d!important}.text-dark-300{color:#343a40!important}.text-fiserv-orange-500{color:#f60!important}.text-gray-50{color:#f5f6f7!important}.text-gray-200{color:#ced1d6!important}.text-gray-400{color:#757e8c!important}.text-gray-500{color:#3a475b!important}.text-gray-700{color:#2c3544!important}.text-gray-800{color:#232b37!important}.text-gray-900{color:#1c232d!important}.text-info-500{color:#17a2b8!important}.text-orange-500{color:#ff7800!important}.text-primary-600{color:#0069d9!important}.text-purple-500{color:#a855f7!important}.text-secondary{color:#6c757d!important}.text-secondary-400{color:#899197!important}.text-secondary-500{color:#6c757d!important}.text-secondary-600{color:#5a6268!important}.text-steel-500{color:#556987!important}.text-success-500{color:#28a745!important}.text-success-600{color:#218838!important}.text-warning-500{color:#ffc107!important}.text-white{color:#fff!important}.text-yellow{color:#ffe600!important}.uppercase{text-transform:uppercase!important}.line-through{text-decoration-line:line-through!important}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-dark\\/50{--tw-shadow-color:#1c232d80!important}@supports (color:color-mix(in lab,red,red)){.shadow-dark\\/50{--tw-shadow-color:color-mix(in oklab,oklab(25.3864% -.0047446 -.0210213/.5) var(--tw-shadow-alpha),transparent)!important}}.outline{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.transition-all{transition-property:all!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}.ease-in-out{--tw-ease:var(--ease-in-out)!important;transition-timing-function:var(--ease-in-out)!important}.ease-out{--tw-ease:var(--ease-out)!important;transition-timing-function:var(--ease-out)!important}.\\[writing-mode\\:vertical-lr\\]{writing-mode:vertical-lr!important}@media (hover:hover){.hover\\:bg-danger-500:hover{background-color:#dc3545!important}.hover\\:bg-dark:hover{background-color:#1c232d!important}.hover\\:bg-fiserv-orange-500:hover{background-color:#f60!important}.hover\\:bg-gray-50:hover{background-color:#f5f6f7!important}.hover\\:bg-gray-100:hover{background-color:#ebedef!important}.hover\\:bg-gray-400:hover{background-color:#757e8c!important}.hover\\:bg-gray-500:hover{background-color:#3a475b!important}.hover\\:bg-gray-800:hover{background-color:#232b37!important}.hover\\:bg-gray-900:hover{background-color:#1c232d!important}.hover\\:bg-info-500:hover{background-color:#17a2b8!important}.hover\\:bg-orange-500:hover{background-color:#ff7800!important}.hover\\:bg-primary-800:hover{background-color:#0054af!important}.hover\\:bg-purple-500:hover{background-color:#a855f7!important}.hover\\:bg-secondary-500:hover{background-color:#6c757d!important}.hover\\:bg-steel-500:hover{background-color:#556987!important}.hover\\:bg-success-500:hover{background-color:#28a745!important}.hover\\:bg-warning-500:hover{background-color:#ffc107!important}.hover\\:bg-yellow:hover{background-color:#ffe600!important}.hover\\:text-black:hover{color:#000!important}.hover\\:text-danger-800:hover{color:#aa1927!important}.hover\\:text-dark:hover{color:#1c232d!important}.hover\\:text-fiserv-orange-800:hover{color:#bf4c00!important}.hover\\:text-gray-400:hover{color:#757e8c!important}.hover\\:text-gray-700:hover{color:#2c3544!important}.hover\\:text-gray-800:hover{color:#232b37!important}.hover\\:text-gray-900:hover{color:#1c232d!important}.hover\\:text-info-800:hover{color:#026777!important}.hover\\:text-orange-800:hover{color:#c75d00!important}.hover\\:text-primary-800:hover{color:#0054af!important}.hover\\:text-purple-800:hover{color:#6f33a7!important}.hover\\:text-secondary-800:hover{color:#444a50!important}.hover\\:text-steel-800:hover{color:#333f51!important}.hover\\:text-success-800:hover{color:#106c25!important}.hover\\:text-warning-800:hover{color:#b87708!important}.hover\\:text-white:hover{color:#fff!important}.hover\\:text-yellow:hover{color:#ffe600!important}}.focus\\:border-red-500:focus{border-color:var(--color-red-500)!important}.focus\\:outline:focus{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.focus\\:outline-3:focus{outline-style:var(--tw-outline-style)!important;outline-width:3px!important}.focus\\:outline-primary-500\\/\\[\\.3\\]:focus{outline-color:#007bff4d!important}.active\\:bg-gray-50:active{background-color:#f5f6f7!important}.active\\:bg-gray-800:active{background-color:#232b37!important}.active\\:text-black:active{color:#000!important}.active\\:text-white:active{color:#fff!important}.disabled\\:pointer-events-none:disabled{pointer-events:none!important}.disabled\\:opacity-15:disabled{opacity:.15!important}.data-closed\\:opacity-0[data-closed]{opacity:0!important}.data-focus\\:-outline-offset-2[data-focus]{outline-offset:-2px!important}.data-focus\\:outline-primary-500[data-focus]{outline-color:#007bff!important}@media (min-width:48rem){.md\\:min-w-fit{min-width:fit-content!important}}}.lexical-view-mode{word-break:break-word!important;width:100%!important}.lexical-view-mode ul{list-style:revert!important}.editable .lexical-view-mode:hover{cursor:text!important;background-color:#00000012!important;border-radius:1px!important;outline:4px solid #00000012!important}.lexical-view-mode .Collapsible__container{width:fit-content!important}.lexical-view-mode .Collapsible__title{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;align-items:center!important;margin-bottom:4px!important;padding:0!important;list-style:none!important;display:flex!important}.lexical-view-mode .Collapsible__title:hover{color:#0069d9!important}.lexical-view-mode .Collapsible__title:hover .editor-paragraph{text-decoration:underline!important}.lexical-view-mode .Collapsible__title::marker{display:none!important}.lexical-view-mode .Collapsible__title::-webkit-details-marker{display:none!important}.lexical-view-mode .Collapsible__title:before{content:""!important;-moz-osx-font-smoothing:grayscale!important;-webkit-font-smoothing:antialiased!important;display:var(--fa-display,inline-block)!important;font-variant:normal!important;text-rendering:auto!important;background:#fff!important;border-radius:30px!important;margin-right:4px!important;font-family:"Font Awesome 5 Pro"!important;font-style:normal!important;font-weight:900!important;line-height:1!important}.lexical-view-mode .Collapsible__title:hover:before{color:#0069d9!important;border:3px solid #fff!important;margin-left:-3px!important;margin-right:1px!important}.lexical-view-mode hr{border:none!important;margin:5px 0!important;padding:3px 0!important}.lexical-view-mode hr:after{content:""!important;background-color:#0000001a!important;height:2px!important;line-height:2px!important;display:block!important}.lexical-view-mode .editor-line-spacer{background:0 0!important;border:1px dashed #0000!important;line-height:6px!important}.lexical-view-mode .other h2{margin-bottom:7px;color:#444!important;font-size:18px!important}.lexical-view-mode .other a{font-size:14px;color:#777!important;text-decoration:underline!important}.lexical-view-mode .other ul{list-style-type:none;margin:0!important;padding:0!important}.lexical-view-mode .ltr{text-align:left}.lexical-view-mode .rtl{text-align:right}.lexical-view-mode .editor-shell{color:#1c232d!important;border-radius:4px!important;width:100%!important;font-weight:400!important;position:relative!important}.lexical-view-mode .editor{position:relative;background:#fff!important}.lexical-view-mode .editor-input{caret-color:#444;resize:none!important;-moz-tab-size:1!important;tab-size:1!important;outline:0!important;min-height:150px!important;padding:12px!important;position:relative!important}.lexical-view-mode .editor-placeholder{pointer-events:none;color:#999!important;text-overflow:ellipsis!important;-webkit-user-select:none!important;user-select:none!important;font-size:15px!important;display:inline-block!important;position:absolute!important;top:15px!important;left:10px!important;overflow:hidden!important}.lexical-view-mode .editor-text-bold,.lexical-view-mode strong{font-weight:700!important}.lexical-view-mode .editor-text-italic{font-style:italic}.lexical-view-mode .editor-text-code{color:#d70c69;background-color:#0000001a!important;border-radius:4px!important;padding:1px .25rem!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:85%!important}.lexical-view-mode .editor-link{word-break:break-word;color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode .editor-link:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .editor-code,.lexical-view-mode pre{word-break:break-word;-moz-tab-size:2!important;tab-size:2!important;background-color:#f0f2f5!important;border-radius:4px!important;margin:8px 0!important;padding:8px 8px 8px 52px!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:13px!important;line-height:1.53!important;display:block!important;position:relative!important;overflow-x:auto!important}.lexical-view-mode .editor-code:before{min-width:25px;content:attr(data-gutter)!important;color:#777!important;white-space:pre-wrap!important;text-align:right!important;background-color:#eee!important;border-right:1px solid #ccc!important;padding:8px!important;position:absolute!important;top:0!important;left:0!important}.lexical-view-mode pre{white-space:pre-wrap!important;padding-left:8px!important}.lexical-view-mode pre:before{border-right:0!important;width:100%!important;height:23px!important}.lexical-view-mode .editor-code:after,.lexical-view-mode pre:after{color:#00000080;content:attr(data-highlight-language)!important;text-transform:uppercase!important;padding:3px!important;font-size:10px!important;position:absolute!important;top:0!important;right:3px!important}.lexical-view-mode .editor-tokenComment{color:#708090}.lexical-view-mode .editor-tokenPunctuation{color:#999}.lexical-view-mode .editor-tokenProperty{color:#905}.lexical-view-mode .editor-tokenSelector{color:#690}.lexical-view-mode .editor-tokenOperator{color:#9a6e3a}.lexical-view-mode .editor-tokenAttr{color:#07a}.lexical-view-mode .editor-tokenVariable{color:#e90}.lexical-view-mode .editor-tokenFunction{color:#dd4a68}.lexical-view-mode .editor-paragraph,.lexical-view-mode p{word-break:break-word;margin:0 0 .3rem!important;padding:0!important}.lexical-view-mode .editor-paragraph:last-child{margin-bottom:0}.lexical-view-mode .editor-heading-h1,.lexical-view-mode h1{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:24px!important}.lexical-view-mode .editor-heading-h2:first-child,.lexical-view-mode .editor-heading-h1:first-child,.lexical-view-mode h2:first-child,.lexical-view-mode h1:first-child{margin-top:0}.lexical-view-mode .editor-heading-h2,.lexical-view-mode h2{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:20px!important}.lexical-view-mode .editor-list-ol,.lexical-view-mode ol{margin:0 0 .3rem 15px!important;padding:0 0 0 15px!important;list-style-type:decimal!important;list-style-position:outside!important}.lexical-view-mode li ol{margin:0 0 0 20px!important}.lexical-view-mode .editor-list-ol2,.lexical-view-mode .editor-list-ol3,.lexical-view-mode .editor-list-ol4,.lexical-view-mode .editor-list-ol5,.lexical-view-mode .editor-list-ol6,.lexical-view-mode .editor-list-ol7{list-style-position:outside;padding:0!important}.lexical-view-mode .editor-list-ol2{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol3{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol4{list-style-type:decimal}.lexical-view-mode .editor-list-ol5{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol6{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol7{list-style-type:decimal}.lexical-view-mode .editor-list-ul,.lexical-view-mode ul{margin-bottom:.3rem;margin:0 0 0 15px!important;padding:0 0 0 5px!important;list-style-position:outside!important}.lexical-view-mode li ul{margin:0 0 0 15px!important;padding:0 0 0 3px!important}.lexical-view-mode .editor-list-item{padding-left:0;vertical-align:top!important;margin-bottom:12px!important;line-height:1.3!important}.lexical-view-mode .editor-nested-list-item{list-style-type:none}.lexical-view-mode code{color:inherit!important;word-wrap:break-word!important;white-space:break-spaces!important}.lexical-view-mode a>code{color:inherit}.lexical-view-mode pre::-webkit-scrollbar{width:10px;background:0 0!important}.lexical-view-mode pre::-webkit-scrollbar-thumb{background:#999}.lexical-view-mode img{cursor:zoom-in!important;border:1px solid #ccc!important;border-radius:4px!important;width:auto!important;max-width:250px!important;height:auto!important;max-height:250px!important;display:block!important}.lexical-view-mode img:hover,.lexical-view-mode img:focus{outline:3px solid #007bff4d}.lexical-view-mode iframe{background:#000!important;border:1px solid #ccc!important;width:fit-content!important;max-width:100%!important;height:fit-content!important}.lexical-view-mode .ql-align-left{text-align:left!important}.lexical-view-mode .ql-align-right{text-align:right!important}.lexical-view-mode .ql-align-center{text-align:center!important}.lexical-view-mode .ql-align-justify{text-align:justify!important}.lexical-view-mode .ql-size-small{font-size:.75em!important}.lexical-view-mode p>a,.lexical-view-mode li>a{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode p>a:hover,.lexical-view-mode li>a:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .ql-size-large{font-size:1.25rem!important}.lexical-view-mode .ql-indent-1{margin-left:20px!important}.lexical-view-mode .ql-indent-2{margin-left:40px!important}.lexical-view-mode .ql-indent-3{margin-left:60px!important}.lexical-view-mode .ql-indent-4{margin-left:80px!important}.lexical-view-mode .ql-indent-5{margin-left:100px!important}.lexical-view-mode .ql-indent-6{margin-left:120px!important}.lexical-view-mode .ql-indent-7{margin-left:140px!important}.lexical-view-mode .ql-indent-8{margin-left:160px!important}.lexical-view-mode ol li.ql-indent-1,.lexical-view-mode ol li.ql-indent-2,.lexical-view-mode ol li.ql-indent-3,.lexical-view-mode ol li.ql-indent-4,.lexical-view-mode ol li.ql-indent-5,.lexical-view-mode ol li.ql-indent-6,.lexical-view-mode ol li.ql-indent-7,.lexical-view-mode ol li.ql-indent-8,.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-6,.lexical-view-mode ul li.ql-indent-7,.lexical-view-mode ul li.ql-indent-8{margin-bottom:.3em!important}.lexical-view-mode ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-1!important;margin-left:0!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-1::marker{display:none}.lexical-view-mode ol li.ql-indent-1:before{content:counter(list-1,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-2!important;margin-left:20px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-2::marker{display:none}.lexical-view-mode ol li.ql-indent-2:before{content:counter(list-2,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-3!important;margin-left:40px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-3::marker{display:none}.lexical-view-mode ol li.ql-indent-3:before{content:counter(list-3,decimal)". "!important}.lexical-view-mode ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-4!important;margin-left:60px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-4::marker{display:none}.lexical-view-mode ol li.ql-indent-4:before{content:counter(list-4,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9!important;counter-increment:list-5!important;margin-left:80px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-5::marker{display:none}.lexical-view-mode ol li.ql-indent-5:before{content:counter(list-5,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-6{counter-reset:list-7 list-8 list-9!important;counter-increment:list-6!important;margin-left:100px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-6::marker{display:none}.lexical-view-mode ol li.ql-indent-6:before{content:counter(list-6,decimal)". "!important}.lexical-view-mode ol li.ql-indent-7{counter-reset:list-8 list-9!important;counter-increment:list-7!important;margin-left:120px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-7::marker{display:none}.lexical-view-mode ol li.ql-indent-7:before{content:counter(list-7,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-8{counter-reset:list-9!important;counter-increment:list-8!important;margin-left:140px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-8::marker{display:none}.lexical-view-mode ol li.ql-indent-8:before{content:counter(list-8,lower-roman)". "!important}.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-6{list-style-type:disc}.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-7{list-style-type:circle}.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-8{list-style-type:square}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}',Yd="-",dy=e=>{const r=hy(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:h=>{const v=h.split(Yd);return v[0]===""&&v.length!==1&&v.shift(),gm(v,r)||py(h)},getConflictingClassGroupIds:(h,v)=>{const m=o[h]||[];return v&&i[h]?[...m,...i[h]]:m}}},gm=(e,r)=>{var h;if(e.length===0)return r.classGroupId;const o=e[0],i=r.nextPart.get(o),a=i?gm(e.slice(1),i):void 0;if(a)return a;if(r.validators.length===0)return;const d=e.join(Yd);return(h=r.validators.find(({validator:v})=>v(d)))==null?void 0:h.classGroupId},Np=/^\[(.+)\]$/,py=e=>{if(Np.test(e)){const r=Np.exec(e)[1],o=r==null?void 0:r.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},hy=e=>{const{theme:r,classGroups:o}=e,i={nextPart:new Map,validators:[]};for(const a in o)sd(o[a],i,a,r);return i},sd=(e,r,o,i)=>{e.forEach(a=>{if(typeof a=="string"){const d=a===""?r:$p(r,a);d.classGroupId=o;return}if(typeof a=="function"){if(my(a)){sd(a(i),r,o,i);return}r.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([d,h])=>{sd(h,$p(r,d),o,i)})})},$p=(e,r)=>{let o=e;return r.split(Yd).forEach(i=>{o.nextPart.has(i)||o.nextPart.set(i,{nextPart:new Map,validators:[]}),o=o.nextPart.get(i)}),o},my=e=>e.isThemeGetter,gy=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,i=new Map;const a=(d,h)=>{o.set(d,h),r++,r>e&&(r=0,i=o,o=new Map)};return{get(d){let h=o.get(d);if(h!==void 0)return h;if((h=i.get(d))!==void 0)return a(d,h),h},set(d,h){o.has(d)?o.set(d,h):a(d,h)}}},ld="!",ud=":",vy=ud.length,yy=e=>{const{prefix:r,experimentalParseClassName:o}=e;let i=a=>{const d=[];let h=0,v=0,m=0,x;for(let B=0;B<a.length;B++){let D=a[B];if(h===0&&v===0){if(D===ud){d.push(a.slice(m,B)),m=B+vy;continue}if(D==="/"){x=B;continue}}D==="["?h++:D==="]"?h--:D==="("?v++:D===")"&&v--}const R=d.length===0?a:a.substring(m),E=by(R),F=E!==R,M=x&&x>m?x-m:void 0;return{modifiers:d,hasImportantModifier:F,baseClassName:E,maybePostfixModifierPosition:M}};if(r){const a=r+ud,d=i;i=h=>h.startsWith(a)?d(h.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(o){const a=i;i=d=>o({className:d,parseClassName:a})}return i},by=e=>e.endsWith(ld)?e.substring(0,e.length-1):e.startsWith(ld)?e.substring(1):e,xy=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const a=[];let d=[];return i.forEach(h=>{h[0]==="["||r[h]?(a.push(...d.sort(),h),d=[]):d.push(h)}),a.push(...d.sort()),a}},wy=e=>({cache:gy(e.cacheSize),parseClassName:yy(e),sortModifiers:xy(e),...dy(e)}),Sy=/\s+/,ky=(e,r)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:d}=r,h=[],v=e.trim().split(Sy);let m="";for(let x=v.length-1;x>=0;x-=1){const R=v[x],{isExternal:E,modifiers:F,hasImportantModifier:M,baseClassName:B,maybePostfixModifierPosition:D}=o(R);if(E){m=R+(m.length>0?" "+m:m);continue}let P=!!D,I=i(P?B.substring(0,D):B);if(!I){if(!P){m=R+(m.length>0?" "+m:m);continue}if(I=i(B),!I){m=R+(m.length>0?" "+m:m);continue}P=!1}const W=d(F).join(":"),U=M?W+ld:W,q=U+I;if(h.includes(q))continue;h.push(q);const _=a(I,P);for(let ie=0;ie<_.length;++ie){const ce=_[ie];h.push(U+ce)}m=R+(m.length>0?" "+m:m)}return m};function Ey(){let e=0,r,o,i="";for(;e<arguments.length;)(r=arguments[e++])&&(o=vm(r))&&(i&&(i+=" "),i+=o);return i}const vm=e=>{if(typeof e=="string")return e;let r,o="";for(let i=0;i<e.length;i++)e[i]&&(r=vm(e[i]))&&(o&&(o+=" "),o+=r);return o};function Cy(e,...r){let o,i,a,d=h;function h(m){const x=r.reduce((R,E)=>E(R),e());return o=wy(x),i=o.cache.get,a=o.cache.set,d=v,v(m)}function v(m){const x=i(m);if(x)return x;const R=ky(m,o);return a(m,R),R}return function(){return d(Ey.apply(null,arguments))}}const yt=e=>{const r=o=>o[e]||[];return r.isThemeGetter=!0,r},ym=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ty=/^\d+\/\d+$/,Ry=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Py=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ay=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Iy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Oy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,is=e=>Ty.test(e),Be=e=>!!e&&!Number.isNaN(Number(e)),Uo=e=>!!e&&Number.isInteger(Number(e)),If=e=>e.endsWith("%")&&Be(e.slice(0,-1)),Xn=e=>Ry.test(e),Fy=()=>!0,My=e=>Py.test(e)&&!Ay.test(e),xm=()=>!1,Dy=e=>Iy.test(e),_y=e=>Oy.test(e),Ly=e=>!ve(e)&&!ye(e),jy=e=>Os(e,km,xm),ve=e=>ym.test(e),Wi=e=>Os(e,Em,My),Of=e=>Os(e,Uy,Be),zp=e=>Os(e,wm,xm),Ny=e=>Os(e,Sm,_y),Wu=e=>Os(e,Cm,Dy),ye=e=>bm.test(e),Tl=e=>Fs(e,Em),$y=e=>Fs(e,Hy),Bp=e=>Fs(e,wm),zy=e=>Fs(e,km),By=e=>Fs(e,Sm),Vu=e=>Fs(e,Cm,!0),Os=(e,r,o)=>{const i=ym.exec(e);return i?i[1]?r(i[1]):o(i[2]):!1},Fs=(e,r,o=!1)=>{const i=bm.exec(e);return i?i[1]?r(i[1]):o:!1},wm=e=>e==="position"||e==="percentage",Sm=e=>e==="image"||e==="url",km=e=>e==="length"||e==="size"||e==="bg-size",Em=e=>e==="length",Uy=e=>e==="number",Hy=e=>e==="family-name",Cm=e=>e==="shadow",Wy=()=>{const e=yt("color"),r=yt("font"),o=yt("text"),i=yt("font-weight"),a=yt("tracking"),d=yt("leading"),h=yt("breakpoint"),v=yt("container"),m=yt("spacing"),x=yt("radius"),R=yt("shadow"),E=yt("inset-shadow"),F=yt("text-shadow"),M=yt("drop-shadow"),B=yt("blur"),D=yt("perspective"),P=yt("aspect"),I=yt("ease"),W=yt("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...q(),ye,ve],ie=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto","contain","none"],ee=()=>[ye,ve,m],ae=()=>[is,"full","auto",...ee()],Fe=()=>[Uo,"none","subgrid",ye,ve],Ne=()=>["auto",{span:["full",Uo,ye,ve]},Uo,ye,ve],_e=()=>[Uo,"auto",ye,ve],Ge=()=>["auto","min","max","fr",ye,ve],Qe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ke=()=>["start","end","center","stretch","center-safe","end-safe"],Ce=()=>["auto",...ee()],je=()=>[is,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ee()],Z=()=>[e,ye,ve],be=()=>[...q(),Bp,zp,{position:[ye,ve]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",zy,jy,{size:[ye,ve]}],fe=()=>[If,Tl,Wi],me=()=>["","none","full",x,ye,ve],pe=()=>["",Be,Tl,Wi],ge=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>[Be,If,Bp,zp],Te=()=>["","none",B,ye,ve],Ee=()=>["none",Be,ye,ve],Re=()=>["none",Be,ye,ve],$e=()=>[Be,ye,ve],oe=()=>[is,"full",...ee()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xn],breakpoint:[Xn],color:[Fy],container:[Xn],"drop-shadow":[Xn],ease:["in","out","in-out"],font:[Ly],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xn],shadow:[Xn],spacing:["px",Be],text:[Xn],"text-shadow":[Xn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",is,ve,ye,P]}],container:["container"],columns:[{columns:[Be,ve,ye,v]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-y":[{"overflow-y":ie()}],overscroll:[{overscroll:ce()}],"overscroll-x":[{"overscroll-x":ce()}],"overscroll-y":[{"overscroll-y":ce()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{start:ae()}],end:[{end:ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Uo,"auto",ye,ve]}],basis:[{basis:[is,"full","auto",v,...ee()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Be,is,"auto","initial","none",ve]}],grow:[{grow:["",Be,ye,ve]}],shrink:[{shrink:["",Be,ye,ve]}],order:[{order:[Uo,"first","last","none",ye,ve]}],"grid-cols":[{"grid-cols":Fe()}],"col-start-end":[{col:Ne()}],"col-start":[{"col-start":_e()}],"col-end":[{"col-end":_e()}],"grid-rows":[{"grid-rows":Fe()}],"row-start-end":[{row:Ne()}],"row-start":[{"row-start":_e()}],"row-end":[{"row-end":_e()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ge()}],"auto-rows":[{"auto-rows":Ge()}],gap:[{gap:ee()}],"gap-x":[{"gap-x":ee()}],"gap-y":[{"gap-y":ee()}],"justify-content":[{justify:[...Qe(),"normal"]}],"justify-items":[{"justify-items":[...ke(),"normal"]}],"justify-self":[{"justify-self":["auto",...ke()]}],"align-content":[{content:["normal",...Qe()]}],"align-items":[{items:[...ke(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ke(),{baseline:["","last"]}]}],"place-content":[{"place-content":Qe()}],"place-items":[{"place-items":[...ke(),"baseline"]}],"place-self":[{"place-self":["auto",...ke()]}],p:[{p:ee()}],px:[{px:ee()}],py:[{py:ee()}],ps:[{ps:ee()}],pe:[{pe:ee()}],pt:[{pt:ee()}],pr:[{pr:ee()}],pb:[{pb:ee()}],pl:[{pl:ee()}],m:[{m:Ce()}],mx:[{mx:Ce()}],my:[{my:Ce()}],ms:[{ms:Ce()}],me:[{me:Ce()}],mt:[{mt:Ce()}],mr:[{mr:Ce()}],mb:[{mb:Ce()}],ml:[{ml:Ce()}],"space-x":[{"space-x":ee()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ee()}],"space-y-reverse":["space-y-reverse"],size:[{size:je()}],w:[{w:[v,"screen",...je()]}],"min-w":[{"min-w":[v,"screen","none",...je()]}],"max-w":[{"max-w":[v,"screen","none","prose",{screen:[h]},...je()]}],h:[{h:["screen",...je()]}],"min-h":[{"min-h":["screen","none",...je()]}],"max-h":[{"max-h":["screen",...je()]}],"font-size":[{text:["base",o,Tl,Wi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ye,Of]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",If,ve]}],"font-family":[{font:[$y,ve,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,ye,ve]}],"line-clamp":[{"line-clamp":[Be,"none",ye,Of]}],leading:[{leading:[d,...ee()]}],"list-image":[{"list-image":["none",ye,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Z()}],"text-color":[{text:Z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[Be,"from-font","auto",ye,Wi]}],"text-decoration-color":[{decoration:Z()}],"underline-offset":[{"underline-offset":[Be,"auto",ye,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ee()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:be()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Uo,ye,ve],radial:["",ye,ve],conic:[Uo,ye,ve]},By,Ny]}],"bg-color":[{bg:Z()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:Z()}],"gradient-via":[{via:Z()}],"gradient-to":[{to:Z()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:Z()}],"border-color-x":[{"border-x":Z()}],"border-color-y":[{"border-y":Z()}],"border-color-s":[{"border-s":Z()}],"border-color-e":[{"border-e":Z()}],"border-color-t":[{"border-t":Z()}],"border-color-r":[{"border-r":Z()}],"border-color-b":[{"border-b":Z()}],"border-color-l":[{"border-l":Z()}],"divide-color":[{divide:Z()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Be,ye,ve]}],"outline-w":[{outline:["",Be,Tl,Wi]}],"outline-color":[{outline:Z()}],shadow:[{shadow:["","none",R,Vu,Wu]}],"shadow-color":[{shadow:Z()}],"inset-shadow":[{"inset-shadow":["none",E,Vu,Wu]}],"inset-shadow-color":[{"inset-shadow":Z()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Z()}],"ring-offset-w":[{"ring-offset":[Be,Wi]}],"ring-offset-color":[{"ring-offset":Z()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":Z()}],"text-shadow":[{"text-shadow":["none",F,Vu,Wu]}],"text-shadow-color":[{"text-shadow":Z()}],opacity:[{opacity:[Be,ye,ve]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Be]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":Z()}],"mask-image-linear-to-color":[{"mask-linear-to":Z()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":Z()}],"mask-image-t-to-color":[{"mask-t-to":Z()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":Z()}],"mask-image-r-to-color":[{"mask-r-to":Z()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":Z()}],"mask-image-b-to-color":[{"mask-b-to":Z()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":Z()}],"mask-image-l-to-color":[{"mask-l-to":Z()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":Z()}],"mask-image-x-to-color":[{"mask-x-to":Z()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":Z()}],"mask-image-y-to-color":[{"mask-y-to":Z()}],"mask-image-radial":[{"mask-radial":[ye,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":Z()}],"mask-image-radial-to-color":[{"mask-radial-to":Z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":q()}],"mask-image-conic-pos":[{"mask-conic":[Be]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":Z()}],"mask-image-conic-to-color":[{"mask-conic-to":Z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:be()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,ve]}],filter:[{filter:["","none",ye,ve]}],blur:[{blur:Te()}],brightness:[{brightness:[Be,ye,ve]}],contrast:[{contrast:[Be,ye,ve]}],"drop-shadow":[{"drop-shadow":["","none",M,Vu,Wu]}],"drop-shadow-color":[{"drop-shadow":Z()}],grayscale:[{grayscale:["",Be,ye,ve]}],"hue-rotate":[{"hue-rotate":[Be,ye,ve]}],invert:[{invert:["",Be,ye,ve]}],saturate:[{saturate:[Be,ye,ve]}],sepia:[{sepia:["",Be,ye,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,ve]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[Be,ye,ve]}],"backdrop-contrast":[{"backdrop-contrast":[Be,ye,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Be,ye,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Be,ye,ve]}],"backdrop-invert":[{"backdrop-invert":["",Be,ye,ve]}],"backdrop-opacity":[{"backdrop-opacity":[Be,ye,ve]}],"backdrop-saturate":[{"backdrop-saturate":[Be,ye,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",Be,ye,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ee()}],"border-spacing-x":[{"border-spacing-x":ee()}],"border-spacing-y":[{"border-spacing-y":ee()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Be,"initial",ye,ve]}],ease:[{ease:["linear","initial",I,ye,ve]}],delay:[{delay:[Be,ye,ve]}],animate:[{animate:["none",W,ye,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[D,ye,ve]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:Ee()}],"rotate-x":[{"rotate-x":Ee()}],"rotate-y":[{"rotate-y":Ee()}],"rotate-z":[{"rotate-z":Ee()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[ye,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:Z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,ve]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ee()}],"scroll-mx":[{"scroll-mx":ee()}],"scroll-my":[{"scroll-my":ee()}],"scroll-ms":[{"scroll-ms":ee()}],"scroll-me":[{"scroll-me":ee()}],"scroll-mt":[{"scroll-mt":ee()}],"scroll-mr":[{"scroll-mr":ee()}],"scroll-mb":[{"scroll-mb":ee()}],"scroll-ml":[{"scroll-ml":ee()}],"scroll-p":[{"scroll-p":ee()}],"scroll-px":[{"scroll-px":ee()}],"scroll-py":[{"scroll-py":ee()}],"scroll-ps":[{"scroll-ps":ee()}],"scroll-pe":[{"scroll-pe":ee()}],"scroll-pt":[{"scroll-pt":ee()}],"scroll-pr":[{"scroll-pr":ee()}],"scroll-pb":[{"scroll-pb":ee()}],"scroll-pl":[{"scroll-pl":ee()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,ve]}],fill:[{fill:["none",...Z()]}],"stroke-w":[{stroke:[Be,Tl,Wi,Of]}],stroke:[{stroke:["none",...Z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},fs=Cy(Wy);function Tm(e){var r,o,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(o=Tm(e[r]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function Ll(){for(var e,r,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(r=Tm(e))&&(i&&(i+=" "),i+=r);return i}function gt(...e){return fs(Ll(e))}const Vy="whitespace-nowrap font-normal flex items-center justify-center",Yy="focus:outline focus:outline-3 focus:outline-primary-500/[.3]",Gy="disabled:opacity-15 disabled:pointer-events-none",Rm=e=>e==="grayLight"||e==="warning",Pm=(e,r)=>!r||r==="none"?"":e(),Qy=(e,r)=>Pm(()=>{const o=e==="gray400"?"gray":e,i=Rm(o)?"active:text-black":"active:text-white";return e==="primary"?r?`bg-${o}-800 text-white`:`hover:bg-${o}-800 active:bg-${o}-800 hover:text-white ${i}`:o==="grayDark"?r?"bg-gray-800 text-white":`hover:bg-gray-800 active:bg-gray-800 hover:text-white ${i}`:o==="grayLight"?r?"bg-gray-50 text-black":`hover:bg-gray-50 active:bg-gray-50 hover:text-black ${i}`:e==="gray400"?r?`bg-${o}-500 text-white`:`hover:bg-${o}-500 active:bg-${o}-500 hover:text-white ${i}`:r?`bg-${o}-700 text-white`:`hover:bg-${o}-600 active:bg-${o}-700 hover:text-white ${i}`},e),Xy=e=>Pm(()=>{const r=Rm(e)?"text-black":"text-white";return e==="primary"?`bg-primary-600 ${r}`:e==="gray400"?`bg-gray-400 ${r}`:`bg-${e}-500 ${r}`},e),qy=e=>e&&{dark:"text-dark hover:text-dark",yellow:"text-yellow hover:text-yellow",gray:"text-gray-500 hover:text-gray-800",primary:"text-primary-600 hover:text-primary-800",secondary:"text-secondary-500 hover:text-secondary-800",success:"text-success-500 hover:text-success-800",info:"text-info-500 hover:text-info-800",warning:"text-warning-500 hover:text-warning-800",danger:"text-danger-500 hover:text-danger-800",steel:"text-steel-500 hover:text-steel-800",orange:"text-orange-500 hover:text-orange-800",purple:"text-purple-500 hover:text-purple-800","fiserv-orange":"text-fiserv-orange-500 hover:text-fiserv-orange-800",grayDark:"text-gray-800 hover:text-gray-900",grayLight:"text-gray-50 hover:text-gray-400",gray400:"text-gray-400 hover:text-gray-700"}[e]||"",Jy=(e,r)=>e&&{dark:r?"bg-dark text-white":"text-dark hover:bg-dark hover:text-white",yellow:r?"bg-yellow text-white":"text-yellow hover:bg-yellow hover:text-white",gray:r?"bg-gray-500 text-white":"text-gray-500 hover:bg-gray-500 hover:text-white",primary:r?"bg-primary-800 text-white":"text-primary-600 hover:bg-primary-800 hover:text-white",secondary:r?"bg-secondary-500 text-white":"text-secondary-500 hover:bg-secondary-500 hover:text-white",success:r?"bg-success-500 text-white":"text-success-500 hover:bg-success-500 hover:text-white",info:r?"bg-info-500 text-white":"text-info-500 hover:bg-info-500 hover:text-white",warning:r?"bg-warning-500 text-white":"text-warning-500 hover:bg-warning-500 hover:text-white",danger:r?"bg-danger-500 text-white":"text-danger-500 hover:bg-danger-500 hover:text-white",steel:r?"bg-steel-500 text-white":"text-steel-500 hover:bg-steel-500 hover:text-white",orange:r?"bg-orange-500 text-white":"text-orange-500 hover:bg-orange-500 hover:text-white",purple:r?"bg-purple-500 text-white":"text-purple-500 hover:bg-purple-500 hover:text-white","fiserv-orange":r?"bg-fiserv-orange-500 text-white":"text-fiserv-orange-500 hover:bg-fiserv-orange-500 hover:text-white",grayDark:r?"bg-gray-900 text-white":"text-gray-800 hover:bg-gray-900 hover:text-white",grayLight:r?"bg-gray-400 text-white":"text-gray-50 hover:bg-gray-400 hover:text-white",gray400:r?"bg-gray-500 text-white":"text-gray-400 hover:bg-gray-500 hover:text-white"}[e]||"",Ky=(e,r)=>!e||e==="none"?"":e==="primary"?`border border-primary-600 ${r?"":"text-primary-600"}`:e==="grayDark"?`border border-gray-800 ${r?"":"text-gray-800"}`:e==="grayLight"?`border border-gray-50 ${r?"":"text-gray-400"}`:e==="gray400"?`border border-gray-400 ${r?"":"text-gray-400"}`:`border border-${e}-500 ${r?"":`text-${e}-500`}`,Zy=(e,r)=>({solid:Xy(e),link:qy(e),linkHoverSolid:Jy(e,r),outline:Ky(e,r)}),eb={none:"",default:"min-w-fit h-[40px] text-base px-3",base:"w-full md:min-w-fit h-[40px] text-base px-3",small:"min-w-[106px] h-[30px] text-sm px-2",normal:"min-w-[140px] h-[38px] text-base px-3",large:"min-w-[160px] h-[40px] text-lg px-3",NormalBlock:"w-full h-[40px] text-lg px-3",box:"w-[38px] h-[38px]",smallCollapse:"h-[30px] text-sm px-2",normalCollapse:"h-[38px] text-base px-3"},tb={none:"",default:"rounded",pill:"rounded-pill"},rb=({active:e=!1,children:r,color:o="primary",size:i="normal",category:a="solid",className:d,type:h="button",rounded:v="default",style:m={},primaryColor:x,...R},E)=>{var U;const F=Gy,M=/link/.test(a)?null:Qy(o,e),B=Yy,D=eb[i],P=(U=Zy(o,e))==null?void 0:U[a],I=fs(M,P),W=tb[v];return Q.jsx("button",{...R,style:{...m,transition:"color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out",backgroundColor:x?x+"!important":void 0},type:h,ref:E,className:fs(Vy,B,F,D,I,W,d,"cursor-pointer"),children:r})},jl=V.forwardRef(rb),nb=({isOpen:e,close:r,title:o,dismissOptions:i,confirmOptions:a,children:d,className:h})=>Q.jsx(Q.Fragment,{children:e&&uc.createPortal(Q.jsxs($d.div,{className:gt("relative z-50 transition duration-300 ease-out data-closed:opacity-0",h),children:[Q.jsx("div",{className:"fixed inset-0 bg-black/30"}),Q.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:Q.jsxs("div",{className:"max-w-lg divide-y divide-gray-100 bg-white rounded-sm shadow-xl",children:[o&&Q.jsx("div",{className:" text-gray-900 p-4",children:o}),Q.jsx("div",{className:"p-4",children:d}),i||a?Q.jsxs("div",{className:"flex gap-4 p-4",children:[i?Q.jsx(jl,{className:"flex-1",onClick:()=>{i.onClick(),r()},size:"small",color:"secondary",children:i.label}):Q.jsx(Q.Fragment,{}),a?Q.jsx(jl,{className:"flex-1",disabled:a.disabled,onClick:()=>{a.onClick(),r()},size:"small",color:"primary",children:a.label}):Q.jsx(Q.Fragment,{})]}):Q.jsx(Q.Fragment,{})]})}),Q.jsx("style",{type:"text/css",children:Vd})]}),document.body,"confidence-modal")}),Am=typeof document<"u"?V.useLayoutEffect:()=>{};function ob(e){const r=V.useRef(null);return Am(()=>{r.current=e},[e]),V.useCallback((...o)=>{const i=r.current;return i==null?void 0:i(...o)},[])}const ai=e=>{var r;return(r=e==null?void 0:e.ownerDocument)!==null&&r!==void 0?r:document},Vi=e=>e&&"window"in e&&e.window===e?e:ai(e).defaultView||window;function ib(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function ab(e){return ib(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let sb=!1;function Gd(){return sb}function Im(e,r){if(!Gd())return r&&e?e.contains(r):!1;if(!e||!r)return!1;let o=r;for(;o!==null;){if(o===e)return!0;o.tagName==="SLOT"&&o.assignedSlot?o=o.assignedSlot.parentNode:ab(o)?o=o.host:o=o.parentNode}return!1}const cd=(e=document)=>{var r;if(!Gd())return e.activeElement;let o=e.activeElement;for(;o&&"shadowRoot"in o&&(!((r=o.shadowRoot)===null||r===void 0)&&r.activeElement);)o=o.shadowRoot.activeElement;return o};function Om(e){return Gd()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function cc(e){var r;return typeof window>"u"||window.navigator==null?!1:((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands.some(o=>e.test(o.brand)))||e.test(window.navigator.userAgent)}function Qd(e){var r;return typeof window<"u"&&window.navigator!=null?e.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function oo(e){if(process.env.NODE_ENV==="test")return e;let r=null;return()=>(r==null&&(r=e()),r)}const Xd=oo(function(){return Qd(/^Mac/i)}),lb=oo(function(){return Qd(/^iPhone/i)}),ub=oo(function(){return Qd(/^iPad/i)||Xd()&&navigator.maxTouchPoints>1}),cb=oo(function(){return lb()||ub()});oo(function(){return Xd()||cb()});oo(function(){return cc(/AppleWebKit/i)&&!fb()});const fb=oo(function(){return cc(/Chrome/i)}),db=oo(function(){return cc(/Android/i)});oo(function(){return cc(/Firefox/i)});function Fm(){let e=V.useRef(new Map),r=V.useCallback((a,d,h,v)=>{let m=v!=null&&v.once?(...x)=>{e.current.delete(h),h(...x)}:h;e.current.set(h,{type:d,eventTarget:a,fn:m,options:v}),a.addEventListener(d,m,v)},[]),o=V.useCallback((a,d,h,v)=>{var m;let x=((m=e.current.get(h))===null||m===void 0?void 0:m.fn)||h;a.removeEventListener(d,x,v),e.current.delete(h)},[]),i=V.useCallback(()=>{e.current.forEach((a,d)=>{o(a.eventTarget,a.type,d,a.options)})},[o]);return V.useEffect(()=>i,[i]),{addGlobalListener:r,removeGlobalListener:o,removeAllGlobalListeners:i}}function pb(e){return e.mozInputSource===0&&e.isTrusted?!0:db()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Mm(e){let r=e;return r.nativeEvent=e,r.isDefaultPrevented=()=>r.defaultPrevented,r.isPropagationStopped=()=>r.cancelBubble,r.persist=()=>{},r}function hb(e,r){Object.defineProperty(e,"target",{value:r}),Object.defineProperty(e,"currentTarget",{value:r})}function Dm(e){let r=V.useRef({isFocused:!1,observer:null});Am(()=>{const i=r.current;return()=>{i.observer&&(i.observer.disconnect(),i.observer=null)}},[]);let o=ob(i=>{e==null||e(i)});return V.useCallback(i=>{if(i.target instanceof HTMLButtonElement||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLSelectElement){r.current.isFocused=!0;let a=i.target,d=h=>{if(r.current.isFocused=!1,a.disabled){let v=Mm(h);o(v)}r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};a.addEventListener("focusout",d,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&a.disabled){var h;(h=r.current.observer)===null||h===void 0||h.disconnect();let v=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:v})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:v}))}}),r.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[o])}let mb=!1,Yl=null,fd=new Set,Ol=new Map,na=!1,dd=!1;const gb={Tab:!0,Escape:!0};function qd(e,r){for(let o of fd)o(e,r)}function vb(e){return!(e.metaKey||!Xd()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function rc(e){na=!0,vb(e)&&(Yl="keyboard",qd("keyboard",e))}function Dr(e){Yl="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(na=!0,qd("pointer",e))}function _m(e){pb(e)&&(na=!0,Yl="virtual")}function Lm(e){e.target===window||e.target===document||mb||!e.isTrusted||(!na&&!dd&&(Yl="virtual",qd("virtual",e)),na=!1,dd=!1)}function jm(){na=!1,dd=!0}function pd(e){if(typeof window>"u"||typeof document>"u"||Ol.get(Vi(e)))return;const r=Vi(e),o=ai(e);let i=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){na=!0,i.apply(this,arguments)},o.addEventListener("keydown",rc,!0),o.addEventListener("keyup",rc,!0),o.addEventListener("click",_m,!0),r.addEventListener("focus",Lm,!0),r.addEventListener("blur",jm,!1),typeof PointerEvent<"u"?(o.addEventListener("pointerdown",Dr,!0),o.addEventListener("pointermove",Dr,!0),o.addEventListener("pointerup",Dr,!0)):process.env.NODE_ENV==="test"&&(o.addEventListener("mousedown",Dr,!0),o.addEventListener("mousemove",Dr,!0),o.addEventListener("mouseup",Dr,!0)),r.addEventListener("beforeunload",()=>{Nm(e)},{once:!0}),Ol.set(r,{focus:i})}const Nm=(e,r)=>{const o=Vi(e),i=ai(e);r&&i.removeEventListener("DOMContentLoaded",r),Ol.has(o)&&(o.HTMLElement.prototype.focus=Ol.get(o).focus,i.removeEventListener("keydown",rc,!0),i.removeEventListener("keyup",rc,!0),i.removeEventListener("click",_m,!0),o.removeEventListener("focus",Lm,!0),o.removeEventListener("blur",jm,!1),typeof PointerEvent<"u"?(i.removeEventListener("pointerdown",Dr,!0),i.removeEventListener("pointermove",Dr,!0),i.removeEventListener("pointerup",Dr,!0)):process.env.NODE_ENV==="test"&&(i.removeEventListener("mousedown",Dr,!0),i.removeEventListener("mousemove",Dr,!0),i.removeEventListener("mouseup",Dr,!0)),Ol.delete(o))};function yb(e){const r=ai(e);let o;return r.readyState!=="loading"?pd(e):(o=()=>{pd(e)},r.addEventListener("DOMContentLoaded",o)),()=>Nm(e,o)}typeof document<"u"&&yb();function $m(){return Yl!=="pointer"}const bb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function xb(e,r,o){let i=ai(o==null?void 0:o.target);const a=typeof window<"u"?Vi(o==null?void 0:o.target).HTMLInputElement:HTMLInputElement,d=typeof window<"u"?Vi(o==null?void 0:o.target).HTMLTextAreaElement:HTMLTextAreaElement,h=typeof window<"u"?Vi(o==null?void 0:o.target).HTMLElement:HTMLElement,v=typeof window<"u"?Vi(o==null?void 0:o.target).KeyboardEvent:KeyboardEvent;return e=e||i.activeElement instanceof a&&!bb.has(i.activeElement.type)||i.activeElement instanceof d||i.activeElement instanceof h&&i.activeElement.isContentEditable,!(e&&r==="keyboard"&&o instanceof v&&!gb[o.key])}function wb(e,r,o){pd(),V.useEffect(()=>{let i=(a,d)=>{xb(!!(o!=null&&o.isTextInput),a,d)&&e($m())};return fd.add(i),()=>{fd.delete(i)}},r)}function Sb(e){let{isDisabled:r,onFocus:o,onBlur:i,onFocusChange:a}=e;const d=V.useCallback(m=>{if(m.target===m.currentTarget)return i&&i(m),a&&a(!1),!0},[i,a]),h=Dm(d),v=V.useCallback(m=>{const x=ai(m.target),R=x?cd(x):cd();m.target===m.currentTarget&&R===Om(m.nativeEvent)&&(o&&o(m),a&&a(!0),h(m))},[a,o,h]);return{focusProps:{onFocus:!r&&(o||a||i)?v:void 0,onBlur:!r&&(i||a)?d:void 0}}}function kb(e){let{isDisabled:r,onBlurWithin:o,onFocusWithin:i,onFocusWithinChange:a}=e,d=V.useRef({isFocusWithin:!1}),{addGlobalListener:h,removeAllGlobalListeners:v}=Fm(),m=V.useCallback(E=>{E.currentTarget.contains(E.target)&&d.current.isFocusWithin&&!E.currentTarget.contains(E.relatedTarget)&&(d.current.isFocusWithin=!1,v(),o&&o(E),a&&a(!1))},[o,a,d,v]),x=Dm(m),R=V.useCallback(E=>{if(!E.currentTarget.contains(E.target))return;const F=ai(E.target),M=cd(F);if(!d.current.isFocusWithin&&M===Om(E.nativeEvent)){i&&i(E),a&&a(!0),d.current.isFocusWithin=!0,x(E);let B=E.currentTarget;h(F,"focus",D=>{if(d.current.isFocusWithin&&!Im(B,D.target)){let P=new F.defaultView.FocusEvent("blur",{relatedTarget:D.target});hb(P,B);let I=Mm(P);m(I)}},{capture:!0})}},[i,a,x,h,m]);return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:R,onBlur:m}}}let nc=!1,Ff=0;function hd(){nc=!0,setTimeout(()=>{nc=!1},50)}function Up(e){e.pointerType==="touch"&&hd()}function Eb(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Up):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",hd),Ff++,()=>{Ff--,!(Ff>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Up):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",hd))}}function Cb(e){let{onHoverStart:r,onHoverChange:o,onHoverEnd:i,isDisabled:a}=e,[d,h]=V.useState(!1),v=V.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;V.useEffect(Eb,[]);let{addGlobalListener:m,removeAllGlobalListeners:x}=Fm(),{hoverProps:R,triggerHoverEnd:E}=V.useMemo(()=>{let F=(D,P)=>{if(v.pointerType=P,a||P==="touch"||v.isHovered||!D.currentTarget.contains(D.target))return;v.isHovered=!0;let I=D.currentTarget;v.target=I,m(ai(D.target),"pointerover",W=>{v.isHovered&&v.target&&!Im(v.target,W.target)&&M(W,W.pointerType)},{capture:!0}),r&&r({type:"hoverstart",target:I,pointerType:P}),o&&o(!0),h(!0)},M=(D,P)=>{let I=v.target;v.pointerType="",v.target=null,!(P==="touch"||!v.isHovered||!I)&&(v.isHovered=!1,x(),i&&i({type:"hoverend",target:I,pointerType:P}),o&&o(!1),h(!1))},B={};return typeof PointerEvent<"u"?(B.onPointerEnter=D=>{nc&&D.pointerType==="mouse"||F(D,D.pointerType)},B.onPointerLeave=D=>{!a&&D.currentTarget.contains(D.target)&&M(D,D.pointerType)}):process.env.NODE_ENV==="test"&&(B.onTouchStart=()=>{v.ignoreEmulatedMouseEvents=!0},B.onMouseEnter=D=>{!v.ignoreEmulatedMouseEvents&&!nc&&F(D,"mouse"),v.ignoreEmulatedMouseEvents=!1},B.onMouseLeave=D=>{!a&&D.currentTarget.contains(D.target)&&M(D,"mouse")}),{hoverProps:B,triggerHoverEnd:M}},[r,o,i,a,v,m,x]);return V.useEffect(()=>{a&&E({currentTarget:v.target},v.pointerType)},[a]),{hoverProps:R,isHovered:d}}function Tb(e={}){let{autoFocus:r=!1,isTextInput:o,within:i}=e,a=V.useRef({isFocused:!1,isFocusVisible:r||$m()}),[d,h]=V.useState(!1),[v,m]=V.useState(()=>a.current.isFocused&&a.current.isFocusVisible),x=V.useCallback(()=>m(a.current.isFocused&&a.current.isFocusVisible),[]),R=V.useCallback(M=>{a.current.isFocused=M,h(M),x()},[x]);wb(M=>{a.current.isFocusVisible=M,x()},[],{isTextInput:o});let{focusProps:E}=Sb({isDisabled:i,onFocusChange:R}),{focusWithinProps:F}=kb({isDisabled:!i,onFocusWithinChange:R});return{isFocused:d,isFocusVisible:v,focusProps:i?F:E}}var Rb=Object.defineProperty,Pb=(e,r,o)=>r in e?Rb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,Mf=(e,r,o)=>(Pb(e,typeof r!="symbol"?r+"":r,o),o);let Ab=class{constructor(){Mf(this,"current",this.detect()),Mf(this,"handoffState","pending"),Mf(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ib=new Ab,Jd=(e,r)=>{Ib.isServer?V.useEffect(e,r):V.useLayoutEffect(e,r)};function Ob(e){let r=V.useRef(e);return Jd(()=>{r.current=e},[e]),r}let fc=function(e){let r=Ob(e);return V.useCallback((...o)=>r.current(...o),[r])},zm=V.createContext(void 0);function dc(){return V.useContext(zm)}function Fb({value:e,children:r}){return V.createElement(zm.Provider,{value:e},r)}function Hp(...e){return Array.from(new Set(e.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}function Bm(e,r,...o){if(e in r){let a=r[e];return typeof a=="function"?a(...o):a}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Bm),i}var Mb=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Mb||{}),Db=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Db||{});function Gl(){let e=Lb();return V.useCallback(r=>_b({mergeRefs:e,...r}),[e])}function _b({ourProps:e,theirProps:r,slot:o,defaultTag:i,features:a,visible:d=!0,name:h,mergeRefs:v}){v=v??jb;let m=Um(r,e);if(d)return Yu(m,o,i,h,v);let x=a??0;if(x&2){let{static:R=!1,...E}=m;if(R)return Yu(E,o,i,h,v)}if(x&1){let{unmount:R=!0,...E}=m;return Bm(R?0:1,{0(){return null},1(){return Yu({...E,hidden:!0,style:{display:"none"}},o,i,h,v)}})}return Yu(m,o,i,h,v)}function Yu(e,r={},o,i,a){let{as:d=o,children:h,refName:v="ref",...m}=Df(e,["unmount","static"]),x=e.ref!==void 0?{[v]:e.ref}:{},R=typeof h=="function"?h(r):h;"className"in m&&m.className&&typeof m.className=="function"&&(m.className=m.className(r)),m["aria-labelledby"]&&m["aria-labelledby"]===m.id&&(m["aria-labelledby"]=void 0);let E={};if(r){let F=!1,M=[];for(let[B,D]of Object.entries(r))typeof D=="boolean"&&(F=!0),D===!0&&M.push(B.replace(/([A-Z])/g,P=>`-${P.toLowerCase()}`));if(F){E["data-headlessui-state"]=M.join(" ");for(let B of M)E[`data-${B}`]=""}}if(d===V.Fragment&&(Object.keys(as(m)).length>0||Object.keys(as(E)).length>0))if(!V.isValidElement(R)||Array.isArray(R)&&R.length>1){if(Object.keys(as(m)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(as(m)).concat(Object.keys(as(E))).map(F=>` - ${F}`).join(`
|
|
125
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},wv=function(e,r){return vv(e)||yv(e,r)||bv(e,r)||xv()},Gh=Yh(function(e){function r(){return e.exports=r=Object.assign||function(o){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var d in a)Object.prototype.hasOwnProperty.call(a,d)&&(o[d]=a[d])}return o},r.apply(this,arguments)}e.exports=r}),Sv=function(e,r){if(e==null)return{};var o,i,a={},d=Object.keys(e);for(i=0;i<d.length;i++)o=d[i],r.indexOf(o)>=0||(a[o]=e[o]);return a},Qh=function(e,r){if(e==null)return{};var o,i,a=Sv(e,r);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);for(i=0;i<d.length;i++)o=d[i],r.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(a[o]=e[o])}return a},kv=V.createContext(null);function Xh(e){var r=e.children,o=r===void 0?"":r,i=Qh(e,["children"]);return typeof o!="string"&&(o=av.renderToString(o)),V.createElement("template",Gh({},i,{dangerouslySetInnerHTML:{__html:o}}))}function qh(e){var r=e.root,o=e.children;return uc.createPortal(o===void 0?null:o,r)}function Ev(e){var r=V.forwardRef(function(o,i){var a,d,h=o.mode,v=h===void 0?"open":h,m=o.delegatesFocus,x=m!==void 0&&m,R=o.styleSheets,E=R===void 0?[]:R,F=o.ssr,M=F!==void 0&&F,B=o.children,D=Qh(o,["mode","delegatesFocus","styleSheets","ssr","children"]),P=(d=V.useRef((a=i)&&a.current),V.useEffect(function(){a&&(a.current=d.current)},[a]),d),I=V.useState(null),W=wv(I,2),U=W[0],q=W[1],_="node_".concat(v).concat(x);return V.useLayoutEffect(function(){if(P.current)try{if(typeof i=="function"&&i(P.current),M){var ie=P.current.shadowRoot;return void q(ie)}var ce=P.current.attachShadow({mode:v,delegatesFocus:x});E.length>0&&(ce.adoptedStyleSheets=E),q(ce)}catch(ee){(function(ae){var Fe=ae.error,Ne=ae.styleSheets,_e=ae.root;switch(Fe.name){case"NotSupportedError":Ne.length>0&&(_e.adoptedStyleSheets=Ne);break;default:throw Fe}})({error:ee,styleSheets:E,root:U})}},[i,P,E]),V.createElement(V.Fragment,null,V.createElement(e.tag,Gh({key:_,ref:P},D),(U||M)&&V.createElement(kv.Provider,{value:U},M?V.createElement(Xh,{shadowroot:v,shadowrootmode:v},e.render({root:U,ssr:M,children:B})):V.createElement(qh,{root:U},e.render({root:U,ssr:M,children:B})))))});return r.propTypes={mode:Me.oneOf(["open","closed"]),delegatesFocus:Me.bool,styleSheets:Me.arrayOf(Me.instanceOf(globalThis.CSSStyleSheet)),ssr:Me.bool,children:Me.node},r}Xh.propTypes={children:Me.oneOfType([Me.string,Me.node])},qh.propTypes={root:Me.object.isRequired,children:Me.node};var Pf=new Map;function Cv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i.children};return new Proxy(e,{get:function(i,a){var d=gv(a,{separator:"-"}),h="".concat(r,"-").concat(d);return Pf.has(h)||Pf.set(h,Ev({tag:d,render:o})),Pf.get(h)}})}var $d=Cv();const Jh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAYCAYAAADpnJ2CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGpSURBVHgBpVbRdYMwDDR9/S8jeARGYIRuUDpBuwHJBGQDskG6ASOQDcwGdANVLnJRHdmIRO/dI8D5zgIhpTAbAQAlHiqEJUyEa1EU30YRqFHj4Q1xzJIQF8QMSziGEAPi1eTNPhi/lwglomOCDWUZc/yGzkEIYQWtlpnNNxwSGimL2ijCi7DMLbveR2aVtHiMFypN/UZPlLUlHR6iWXuPWaQRsuXRpIjyTb1ZDWuBQVaPnvfAzLs9mcL/SoTNzXMCLJ9CiFZh1glmh9yCmkhldB7CgVzyvlCGlBlEnxJf+IkYo2uNINSy+1JxcDOv2acMD0DvT2HqSCxpRmt9Q/iS/J5NIrBP+kX+J9+pRXQC/Yj8Q3TtReCZJ7M0YpsyxcO7yUfKbBLZmEUFrGgSHOnx+jgn+M4/epMRnLME8/euNWYhgSondpIKJ2HqclxYmsi4JRRaW3a2KTakb5FU7rczS29WUvb9nkUD3D+e9o82WNuVA+XkgKUVOnhktLGK/DWOK4421sDaSy+5z0praqlF8Rnn2PlMhvUe3UJDogwtImRxRUzav4k8fgCQHVaVoXL9RAAAAABJRU5ErkJggg==";var As=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ta=typeof window>"u"||"Deno"in globalThis;function qt(){}function Tv(e,r){return typeof e=="function"?e(r):e}function Gf(e){return typeof e=="number"&&e>=0&&e!==1/0}function Kh(e,r){return Math.max(e+(r||0)-Date.now(),0)}function cs(e,r){return typeof e=="function"?e(r):e}function Kr(e,r){return typeof e=="function"?e(r):e}function Pp(e,r){const{type:o="all",exact:i,fetchStatus:a,predicate:d,queryKey:h,stale:v}=e;if(h){if(i){if(r.queryHash!==zd(h,r.options))return!1}else if(!_l(r.queryKey,h))return!1}if(o!=="all"){const m=r.isActive();if(o==="active"&&!m||o==="inactive"&&m)return!1}return!(typeof v=="boolean"&&r.isStale()!==v||a&&a!==r.state.fetchStatus||d&&!d(r))}function Ap(e,r){const{exact:o,status:i,predicate:a,mutationKey:d}=e;if(d){if(!r.options.mutationKey)return!1;if(o){if(ra(r.options.mutationKey)!==ra(d))return!1}else if(!_l(r.options.mutationKey,d))return!1}return!(i&&r.state.status!==i||a&&!a(r))}function zd(e,r){return((r==null?void 0:r.queryKeyHashFn)||ra)(e)}function ra(e){return JSON.stringify(e,(r,o)=>Xf(o)?Object.keys(o).sort().reduce((i,a)=>(i[a]=o[a],i),{}):o)}function _l(e,r){return e===r?!0:typeof e!=typeof r?!1:e&&r&&typeof e=="object"&&typeof r=="object"?Object.keys(r).every(o=>_l(e[o],r[o])):!1}function Qf(e,r){if(e===r)return e;const o=Ip(e)&&Ip(r);if(o||Xf(e)&&Xf(r)){const i=o?e:Object.keys(e),a=i.length,d=o?r:Object.keys(r),h=d.length,v=o?[]:{};let m=0;for(let x=0;x<h;x++){const R=o?x:d[x];(!o&&i.includes(R)||o)&&e[R]===void 0&&r[R]===void 0?(v[R]=void 0,m++):(v[R]=Qf(e[R],r[R]),v[R]===e[R]&&e[R]!==void 0&&m++)}return a===h&&m===a?e:v}return r}function Zu(e,r){if(!r||Object.keys(e).length!==Object.keys(r).length)return!1;for(const o in e)if(e[o]!==r[o])return!1;return!0}function Ip(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xf(e){if(!Op(e))return!1;const r=e.constructor;if(r===void 0)return!0;const o=r.prototype;return!(!Op(o)||!o.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Op(e){return Object.prototype.toString.call(e)==="[object Object]"}function Rv(e){return new Promise(r=>{setTimeout(r,e)})}function qf(e,r,o){if(typeof o.structuralSharing=="function")return o.structuralSharing(e,r);if(o.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Qf(e,r)}catch(i){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${o.queryHash}]: ${i}`),i}return Qf(e,r)}return r}function Pv(e,r,o=0){const i=[...e,r];return o&&i.length>o?i.slice(1):i}function Av(e,r,o=0){const i=[r,...e];return o&&i.length>o?i.slice(0,-1):i}var ec=Symbol();function Zh(e,r){return process.env.NODE_ENV!=="production"&&e.queryFn===ec&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!e.queryFn||e.queryFn===ec?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function em(e,r){return typeof e=="function"?e(...r):!!e}var Gi,Vo,ms,Mh,Iv=(Mh=class extends As{constructor(){super();Ie(this,Gi);Ie(this,Vo);Ie(this,ms);he(this,ms,r=>{if(!ta&&window.addEventListener){const o=()=>r();return window.addEventListener("visibilitychange",o,!1),()=>{window.removeEventListener("visibilitychange",o)}}})}onSubscribe(){O(this,Vo)||this.setEventListener(O(this,ms))}onUnsubscribe(){var r;this.hasListeners()||((r=O(this,Vo))==null||r.call(this),he(this,Vo,void 0))}setEventListener(r){var o;he(this,ms,r),(o=O(this,Vo))==null||o.call(this),he(this,Vo,r(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(r){O(this,Gi)!==r&&(he(this,Gi,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(o=>{o(r)})}isFocused(){var r;return typeof O(this,Gi)=="boolean"?O(this,Gi):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},Gi=new WeakMap,Vo=new WeakMap,ms=new WeakMap,Mh),Bd=new Iv,gs,Yo,vs,Dh,Ov=(Dh=class extends As{constructor(){super();Ie(this,gs,!0);Ie(this,Yo);Ie(this,vs);he(this,vs,r=>{if(!ta&&window.addEventListener){const o=()=>r(!0),i=()=>r(!1);return window.addEventListener("online",o,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",o),window.removeEventListener("offline",i)}}})}onSubscribe(){O(this,Yo)||this.setEventListener(O(this,vs))}onUnsubscribe(){var r;this.hasListeners()||((r=O(this,Yo))==null||r.call(this),he(this,Yo,void 0))}setEventListener(r){var o;he(this,vs,r),(o=O(this,Yo))==null||o.call(this),he(this,Yo,r(this.setOnline.bind(this)))}setOnline(r){O(this,gs)!==r&&(he(this,gs,r),this.listeners.forEach(i=>{i(r)}))}isOnline(){return O(this,gs)}},gs=new WeakMap,Yo=new WeakMap,vs=new WeakMap,Dh),tc=new Ov;function Jf(){let e,r;const o=new Promise((a,d)=>{e=a,r=d});o.status="pending",o.catch(()=>{});function i(a){Object.assign(o,a),delete o.resolve,delete o.reject}return o.resolve=a=>{i({status:"fulfilled",value:a}),e(a)},o.reject=a=>{i({status:"rejected",reason:a}),r(a)},o}function Fv(e){return Math.min(1e3*2**e,3e4)}function tm(e){return(e??"online")==="online"?tc.isOnline():!0}var rm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Af(e){return e instanceof rm}function nm(e){let r=!1,o=0,i=!1,a;const d=Jf(),h=D=>{var P;i||(F(new rm(D)),(P=e.abort)==null||P.call(e))},v=()=>{r=!0},m=()=>{r=!1},x=()=>Bd.isFocused()&&(e.networkMode==="always"||tc.isOnline())&&e.canRun(),R=()=>tm(e.networkMode)&&e.canRun(),E=D=>{var P;i||(i=!0,(P=e.onSuccess)==null||P.call(e,D),a==null||a(),d.resolve(D))},F=D=>{var P;i||(i=!0,(P=e.onError)==null||P.call(e,D),a==null||a(),d.reject(D))},M=()=>new Promise(D=>{var P;a=I=>{(i||x())&&D(I)},(P=e.onPause)==null||P.call(e)}).then(()=>{var D;a=void 0,i||(D=e.onContinue)==null||D.call(e)}),B=()=>{if(i)return;let D;const P=o===0?e.initialPromise:void 0;try{D=P??e.fn()}catch(I){D=Promise.reject(I)}Promise.resolve(D).then(E).catch(I=>{var ie;if(i)return;const W=e.retry??(ta?0:3),U=e.retryDelay??Fv,q=typeof U=="function"?U(o,I):U,_=W===!0||typeof W=="number"&&o<W||typeof W=="function"&&W(o,I);if(r||!_){F(I);return}o++,(ie=e.onFail)==null||ie.call(e,o,I),Rv(q).then(()=>x()?void 0:M()).then(()=>{r?F(I):B()})})};return{promise:d,cancel:h,continue:()=>(a==null||a(),d),cancelRetry:v,continueRetry:m,canStart:R,start:()=>(R()?B():M().then(B),d)}}var Mv=e=>setTimeout(e,0);function Dv(){let e=[],r=0,o=v=>{v()},i=v=>{v()},a=Mv;const d=v=>{r?e.push(v):a(()=>{o(v)})},h=()=>{const v=e;e=[],v.length&&a(()=>{i(()=>{v.forEach(m=>{o(m)})})})};return{batch:v=>{let m;r++;try{m=v()}finally{r--,r||h()}return m},batchCalls:v=>(...m)=>{d(()=>{v(...m)})},schedule:d,setNotifyFunction:v=>{o=v},setBatchNotifyFunction:v=>{i=v},setScheduler:v=>{a=v}}}var bt=Dv(),Qi,_h,om=(_h=class{constructor(){Ie(this,Qi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gf(this.gcTime)&&he(this,Qi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ta?1/0:5*60*1e3))}clearGcTimeout(){O(this,Qi)&&(clearTimeout(O(this,Qi)),he(this,Qi,void 0))}},Qi=new WeakMap,_h),ys,bs,Mr,Xi,Dt,Bl,qi,qr,qn,Lh,_v=(Lh=class extends om{constructor(r){super();Ie(this,qr);Ie(this,ys);Ie(this,bs);Ie(this,Mr);Ie(this,Xi);Ie(this,Dt);Ie(this,Bl);Ie(this,qi);he(this,qi,!1),he(this,Bl,r.defaultOptions),this.setOptions(r.options),this.observers=[],he(this,Xi,r.client),he(this,Mr,O(this,Xi).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,he(this,ys,Lv(this.options)),this.state=r.state??O(this,ys),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=O(this,Dt))==null?void 0:r.promise}setOptions(r){this.options={...O(this,Bl),...r},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&O(this,Mr).remove(this)}setData(r,o){const i=qf(this.state.data,r,this.options);return ze(this,qr,qn).call(this,{data:i,type:"success",dataUpdatedAt:o==null?void 0:o.updatedAt,manual:o==null?void 0:o.manual}),i}setState(r,o){ze(this,qr,qn).call(this,{type:"setState",state:r,setStateOptions:o})}cancel(r){var i,a;const o=(i=O(this,Dt))==null?void 0:i.promise;return(a=O(this,Dt))==null||a.cancel(r),o?o.then(qt).catch(qt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(O(this,ys))}isActive(){return this.observers.some(r=>Kr(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ec||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(r=0){return this.state.isInvalidated||this.state.data===void 0||!Kh(this.state.dataUpdatedAt,r)}onFocus(){var o;const r=this.observers.find(i=>i.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(o=O(this,Dt))==null||o.continue()}onOnline(){var o;const r=this.observers.find(i=>i.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(o=O(this,Dt))==null||o.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),O(this,Mr).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(o=>o!==r),this.observers.length||(O(this,Dt)&&(O(this,qi)?O(this,Dt).cancel({revert:!0}):O(this,Dt).cancelRetry()),this.scheduleGc()),O(this,Mr).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ze(this,qr,qn).call(this,{type:"invalidate"})}fetch(r,o){var m,x,R;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(o!=null&&o.cancelRefetch))this.cancel({silent:!0});else if(O(this,Dt))return O(this,Dt).continueRetry(),O(this,Dt).promise}if(r&&this.setOptions(r),!this.options.queryFn){const E=this.observers.find(F=>F.options.queryFn);E&&this.setOptions(E.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const i=new AbortController,a=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(he(this,qi,!0),i.signal)})},d=()=>{const E=Zh(this.options,o),F={client:O(this,Xi),queryKey:this.queryKey,meta:this.meta};return a(F),he(this,qi,!1),this.options.persister?this.options.persister(E,F,this):E(F)},h={fetchOptions:o,options:this.options,queryKey:this.queryKey,client:O(this,Xi),state:this.state,fetchFn:d};a(h),(m=this.options.behavior)==null||m.onFetch(h,this),he(this,bs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=h.fetchOptions)==null?void 0:x.meta))&&ze(this,qr,qn).call(this,{type:"fetch",meta:(R=h.fetchOptions)==null?void 0:R.meta});const v=E=>{var F,M,B,D;Af(E)&&E.silent||ze(this,qr,qn).call(this,{type:"error",error:E}),Af(E)||((M=(F=O(this,Mr).config).onError)==null||M.call(F,E,this),(D=(B=O(this,Mr).config).onSettled)==null||D.call(B,this.state.data,E,this)),this.scheduleGc()};return he(this,Dt,nm({initialPromise:o==null?void 0:o.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:E=>{var F,M,B,D;if(E===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),v(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(E)}catch(P){v(P);return}(M=(F=O(this,Mr).config).onSuccess)==null||M.call(F,E,this),(D=(B=O(this,Mr).config).onSettled)==null||D.call(B,E,this.state.error,this),this.scheduleGc()},onError:v,onFail:(E,F)=>{ze(this,qr,qn).call(this,{type:"failed",failureCount:E,error:F})},onPause:()=>{ze(this,qr,qn).call(this,{type:"pause"})},onContinue:()=>{ze(this,qr,qn).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),O(this,Dt).start()}},ys=new WeakMap,bs=new WeakMap,Mr=new WeakMap,Xi=new WeakMap,Dt=new WeakMap,Bl=new WeakMap,qi=new WeakMap,qr=new WeakSet,qn=function(r){const o=i=>{switch(r.type){case"failed":return{...i,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...im(i.data,this.options),fetchMeta:r.meta??null};case"success":return{...i,data:r.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:r.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=r.error;return Af(a)&&a.revert&&O(this,bs)?{...O(this,bs),fetchStatus:"idle"}:{...i,error:a,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...r.state}}};this.state=o(this.state),bt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),O(this,Mr).notify({query:this,type:"updated",action:r})})},Lh);function im(e,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:tm(r.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Lv(e){const r=typeof e.initialData=="function"?e.initialData():e.initialData,o=r!==void 0,i=o?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:o?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:o?"success":"pending",fetchStatus:"idle"}}var vn,jh,jv=(jh=class extends As{constructor(r={}){super();Ie(this,vn);this.config=r,he(this,vn,new Map)}build(r,o,i){const a=o.queryKey,d=o.queryHash??zd(a,o);let h=this.get(d);return h||(h=new _v({client:r,queryKey:a,queryHash:d,options:r.defaultQueryOptions(o),state:i,defaultOptions:r.getQueryDefaults(a)}),this.add(h)),h}add(r){O(this,vn).has(r.queryHash)||(O(this,vn).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const o=O(this,vn).get(r.queryHash);o&&(r.destroy(),o===r&&O(this,vn).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){bt.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return O(this,vn).get(r)}getAll(){return[...O(this,vn).values()]}find(r){const o={exact:!0,...r};return this.getAll().find(i=>Pp(o,i))}findAll(r={}){const o=this.getAll();return Object.keys(r).length>0?o.filter(i=>Pp(r,i)):o}notify(r){bt.batch(()=>{this.listeners.forEach(o=>{o(r)})})}onFocus(){bt.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){bt.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},vn=new WeakMap,jh),yn,Qt,Ji,bn,Wo,Nh,Nv=(Nh=class extends om{constructor(r){super();Ie(this,bn);Ie(this,yn);Ie(this,Qt);Ie(this,Ji);this.mutationId=r.mutationId,he(this,Qt,r.mutationCache),he(this,yn,[]),this.state=r.state||am(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){O(this,yn).includes(r)||(O(this,yn).push(r),this.clearGcTimeout(),O(this,Qt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){he(this,yn,O(this,yn).filter(o=>o!==r)),this.scheduleGc(),O(this,Qt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){O(this,yn).length||(this.state.status==="pending"?this.scheduleGc():O(this,Qt).remove(this))}continue(){var r;return((r=O(this,Ji))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var d,h,v,m,x,R,E,F,M,B,D,P,I,W,U,q,_,ie,ce,ee;const o=()=>{ze(this,bn,Wo).call(this,{type:"continue"})};he(this,Ji,nm({fn:()=>this.options.mutationFn?this.options.mutationFn(r):Promise.reject(new Error("No mutationFn found")),onFail:(ae,Fe)=>{ze(this,bn,Wo).call(this,{type:"failed",failureCount:ae,error:Fe})},onPause:()=>{ze(this,bn,Wo).call(this,{type:"pause"})},onContinue:o,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>O(this,Qt).canRun(this)}));const i=this.state.status==="pending",a=!O(this,Ji).canStart();try{if(i)o();else{ze(this,bn,Wo).call(this,{type:"pending",variables:r,isPaused:a}),await((h=(d=O(this,Qt).config).onMutate)==null?void 0:h.call(d,r,this));const Fe=await((m=(v=this.options).onMutate)==null?void 0:m.call(v,r));Fe!==this.state.context&&ze(this,bn,Wo).call(this,{type:"pending",context:Fe,variables:r,isPaused:a})}const ae=await O(this,Ji).start();return await((R=(x=O(this,Qt).config).onSuccess)==null?void 0:R.call(x,ae,r,this.state.context,this)),await((F=(E=this.options).onSuccess)==null?void 0:F.call(E,ae,r,this.state.context)),await((B=(M=O(this,Qt).config).onSettled)==null?void 0:B.call(M,ae,null,this.state.variables,this.state.context,this)),await((P=(D=this.options).onSettled)==null?void 0:P.call(D,ae,null,r,this.state.context)),ze(this,bn,Wo).call(this,{type:"success",data:ae}),ae}catch(ae){try{throw await((W=(I=O(this,Qt).config).onError)==null?void 0:W.call(I,ae,r,this.state.context,this)),await((q=(U=this.options).onError)==null?void 0:q.call(U,ae,r,this.state.context)),await((ie=(_=O(this,Qt).config).onSettled)==null?void 0:ie.call(_,void 0,ae,this.state.variables,this.state.context,this)),await((ee=(ce=this.options).onSettled)==null?void 0:ee.call(ce,void 0,ae,r,this.state.context)),ae}finally{ze(this,bn,Wo).call(this,{type:"error",error:ae})}}finally{O(this,Qt).runNext(this)}}},yn=new WeakMap,Qt=new WeakMap,Ji=new WeakMap,bn=new WeakSet,Wo=function(r){const o=i=>{switch(r.type){case"failed":return{...i,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...i,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:r.error,failureCount:i.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=o(this.state),bt.batch(()=>{O(this,yn).forEach(i=>{i.onMutationUpdate(r)}),O(this,Qt).notify({mutation:this,type:"updated",action:r})})},Nh);function am(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Jn,Jr,Ul,$h,$v=($h=class extends As{constructor(r={}){super();Ie(this,Jn);Ie(this,Jr);Ie(this,Ul);this.config=r,he(this,Jn,new Set),he(this,Jr,new Map),he(this,Ul,0)}build(r,o,i){const a=new Nv({mutationCache:this,mutationId:++Nu(this,Ul)._,options:r.defaultMutationOptions(o),state:i});return this.add(a),a}add(r){O(this,Jn).add(r);const o=Hu(r);if(typeof o=="string"){const i=O(this,Jr).get(o);i?i.push(r):O(this,Jr).set(o,[r])}this.notify({type:"added",mutation:r})}remove(r){if(O(this,Jn).delete(r)){const o=Hu(r);if(typeof o=="string"){const i=O(this,Jr).get(o);if(i)if(i.length>1){const a=i.indexOf(r);a!==-1&&i.splice(a,1)}else i[0]===r&&O(this,Jr).delete(o)}}this.notify({type:"removed",mutation:r})}canRun(r){const o=Hu(r);if(typeof o=="string"){const i=O(this,Jr).get(o),a=i==null?void 0:i.find(d=>d.state.status==="pending");return!a||a===r}else return!0}runNext(r){var i;const o=Hu(r);if(typeof o=="string"){const a=(i=O(this,Jr).get(o))==null?void 0:i.find(d=>d!==r&&d.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){bt.batch(()=>{O(this,Jn).forEach(r=>{this.notify({type:"removed",mutation:r})}),O(this,Jn).clear(),O(this,Jr).clear()})}getAll(){return Array.from(O(this,Jn))}find(r){const o={exact:!0,...r};return this.getAll().find(i=>Ap(o,i))}findAll(r={}){return this.getAll().filter(o=>Ap(r,o))}notify(r){bt.batch(()=>{this.listeners.forEach(o=>{o(r)})})}resumePausedMutations(){const r=this.getAll().filter(o=>o.state.isPaused);return bt.batch(()=>Promise.all(r.map(o=>o.continue().catch(qt))))}},Jn=new WeakMap,Jr=new WeakMap,Ul=new WeakMap,$h);function Hu(e){var r;return(r=e.options.scope)==null?void 0:r.id}function Fp(e){return{onFetch:(r,o)=>{var R,E,F,M,B;const i=r.options,a=(F=(E=(R=r.fetchOptions)==null?void 0:R.meta)==null?void 0:E.fetchMore)==null?void 0:F.direction,d=((M=r.state.data)==null?void 0:M.pages)||[],h=((B=r.state.data)==null?void 0:B.pageParams)||[];let v={pages:[],pageParams:[]},m=0;const x=async()=>{let D=!1;const P=U=>{Object.defineProperty(U,"signal",{enumerable:!0,get:()=>(r.signal.aborted?D=!0:r.signal.addEventListener("abort",()=>{D=!0}),r.signal)})},I=Zh(r.options,r.fetchOptions),W=async(U,q,_)=>{if(D)return Promise.reject();if(q==null&&U.pages.length)return Promise.resolve(U);const ie={client:r.client,queryKey:r.queryKey,pageParam:q,direction:_?"backward":"forward",meta:r.options.meta};P(ie);const ce=await I(ie),{maxPages:ee}=r.options,ae=_?Av:Pv;return{pages:ae(U.pages,ce,ee),pageParams:ae(U.pageParams,q,ee)}};if(a&&d.length){const U=a==="backward",q=U?zv:Mp,_={pages:d,pageParams:h},ie=q(i,_);v=await W(_,ie,U)}else{const U=e??d.length;do{const q=m===0?h[0]??i.initialPageParam:Mp(i,v);if(m>0&&q==null)break;v=await W(v,q),m++}while(m<U)}return v};r.options.persister?r.fetchFn=()=>{var D,P;return(P=(D=r.options).persister)==null?void 0:P.call(D,x,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},o)}:r.fetchFn=x}}}function Mp(e,{pages:r,pageParams:o}){const i=r.length-1;return r.length>0?e.getNextPageParam(r[i],r,o[i],o):void 0}function zv(e,{pages:r,pageParams:o}){var i;return r.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,r[0],r,o[0],o):void 0}var dt,Go,Qo,xs,ws,Xo,Ss,ks,zh,Bv=(zh=class{constructor(e={}){Ie(this,dt);Ie(this,Go);Ie(this,Qo);Ie(this,xs);Ie(this,ws);Ie(this,Xo);Ie(this,Ss);Ie(this,ks);he(this,dt,e.queryCache||new jv),he(this,Go,e.mutationCache||new $v),he(this,Qo,e.defaultOptions||{}),he(this,xs,new Map),he(this,ws,new Map),he(this,Xo,0)}mount(){Nu(this,Xo)._++,O(this,Xo)===1&&(he(this,Ss,Bd.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,dt).onFocus())})),he(this,ks,tc.subscribe(async e=>{e&&(await this.resumePausedMutations(),O(this,dt).onOnline())})))}unmount(){var e,r;Nu(this,Xo)._--,O(this,Xo)===0&&((e=O(this,Ss))==null||e.call(this),he(this,Ss,void 0),(r=O(this,ks))==null||r.call(this),he(this,ks,void 0))}isFetching(e){return O(this,dt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return O(this,Go).findAll({...e,status:"pending"}).length}getQueryData(e){var o;const r=this.defaultQueryOptions({queryKey:e});return(o=O(this,dt).get(r.queryHash))==null?void 0:o.state.data}ensureQueryData(e){const r=this.defaultQueryOptions(e),o=O(this,dt).build(this,r),i=o.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&o.isStaleByTime(cs(r.staleTime,o))&&this.prefetchQuery(r),Promise.resolve(i))}getQueriesData(e){return O(this,dt).findAll(e).map(({queryKey:r,state:o})=>{const i=o.data;return[r,i]})}setQueryData(e,r,o){const i=this.defaultQueryOptions({queryKey:e}),a=O(this,dt).get(i.queryHash),d=a==null?void 0:a.state.data,h=Tv(r,d);if(h!==void 0)return O(this,dt).build(this,i).setData(h,{...o,manual:!0})}setQueriesData(e,r,o){return bt.batch(()=>O(this,dt).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,r,o)]))}getQueryState(e){var o;const r=this.defaultQueryOptions({queryKey:e});return(o=O(this,dt).get(r.queryHash))==null?void 0:o.state}removeQueries(e){const r=O(this,dt);bt.batch(()=>{r.findAll(e).forEach(o=>{r.remove(o)})})}resetQueries(e,r){const o=O(this,dt);return bt.batch(()=>(o.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},r)))}cancelQueries(e,r={}){const o={revert:!0,...r},i=bt.batch(()=>O(this,dt).findAll(e).map(a=>a.cancel(o)));return Promise.all(i).then(qt).catch(qt)}invalidateQueries(e,r={}){return bt.batch(()=>(O(this,dt).findAll(e).forEach(o=>{o.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},r)))}refetchQueries(e,r={}){const o={...r,cancelRefetch:r.cancelRefetch??!0},i=bt.batch(()=>O(this,dt).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let d=a.fetch(void 0,o);return o.throwOnError||(d=d.catch(qt)),a.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(i).then(qt)}fetchQuery(e){const r=this.defaultQueryOptions(e);r.retry===void 0&&(r.retry=!1);const o=O(this,dt).build(this,r);return o.isStaleByTime(cs(r.staleTime,o))?o.fetch(r):Promise.resolve(o.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(qt).catch(qt)}fetchInfiniteQuery(e){return e.behavior=Fp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(qt).catch(qt)}ensureInfiniteQueryData(e){return e.behavior=Fp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return tc.isOnline()?O(this,Go).resumePausedMutations():Promise.resolve()}getQueryCache(){return O(this,dt)}getMutationCache(){return O(this,Go)}getDefaultOptions(){return O(this,Qo)}setDefaultOptions(e){he(this,Qo,e)}setQueryDefaults(e,r){O(this,xs).set(ra(e),{queryKey:e,defaultOptions:r})}getQueryDefaults(e){const r=[...O(this,xs).values()],o={};return r.forEach(i=>{_l(e,i.queryKey)&&Object.assign(o,i.defaultOptions)}),o}setMutationDefaults(e,r){O(this,ws).set(ra(e),{mutationKey:e,defaultOptions:r})}getMutationDefaults(e){const r=[...O(this,ws).values()],o={};return r.forEach(i=>{_l(e,i.mutationKey)&&Object.assign(o,i.defaultOptions)}),o}defaultQueryOptions(e){if(e._defaulted)return e;const r={...O(this,Qo).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return r.queryHash||(r.queryHash=zd(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===ec&&(r.enabled=!1),r}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...O(this,Qo).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){O(this,dt).clear(),O(this,Go).clear()}},dt=new WeakMap,Go=new WeakMap,Qo=new WeakMap,xs=new WeakMap,ws=new WeakMap,Xo=new WeakMap,Ss=new WeakMap,ks=new WeakMap,zh),lr,Ve,Hl,Xt,Ki,Es,qo,Jo,Wl,Cs,Ts,Zi,ea,Ko,Rs,Ze,Pl,Kf,Zf,ed,td,rd,nd,od,sm,Bh,Uv=(Bh=class extends As{constructor(r,o){super();Ie(this,Ze);Ie(this,lr);Ie(this,Ve);Ie(this,Hl);Ie(this,Xt);Ie(this,Ki);Ie(this,Es);Ie(this,qo);Ie(this,Jo);Ie(this,Wl);Ie(this,Cs);Ie(this,Ts);Ie(this,Zi);Ie(this,ea);Ie(this,Ko);Ie(this,Rs,new Set);this.options=o,he(this,lr,r),he(this,Jo,null),he(this,qo,Jf()),this.options.experimental_prefetchInRender||O(this,qo).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(o)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(O(this,Ve).addObserver(this),Dp(O(this,Ve),this.options)?ze(this,Ze,Pl).call(this):this.updateResult(),ze(this,Ze,td).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return id(O(this,Ve),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return id(O(this,Ve),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ze(this,Ze,rd).call(this),ze(this,Ze,nd).call(this),O(this,Ve).removeObserver(this)}setOptions(r){const o=this.options,i=O(this,Ve);if(this.options=O(this,lr).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kr(this.options.enabled,O(this,Ve))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ze(this,Ze,od).call(this),O(this,Ve).setOptions(this.options),o._defaulted&&!Zu(this.options,o)&&O(this,lr).getQueryCache().notify({type:"observerOptionsUpdated",query:O(this,Ve),observer:this});const a=this.hasListeners();a&&_p(O(this,Ve),i,this.options,o)&&ze(this,Ze,Pl).call(this),this.updateResult(),a&&(O(this,Ve)!==i||Kr(this.options.enabled,O(this,Ve))!==Kr(o.enabled,O(this,Ve))||cs(this.options.staleTime,O(this,Ve))!==cs(o.staleTime,O(this,Ve)))&&ze(this,Ze,Kf).call(this);const d=ze(this,Ze,Zf).call(this);a&&(O(this,Ve)!==i||Kr(this.options.enabled,O(this,Ve))!==Kr(o.enabled,O(this,Ve))||d!==O(this,Ko))&&ze(this,Ze,ed).call(this,d)}getOptimisticResult(r){const o=O(this,lr).getQueryCache().build(O(this,lr),r),i=this.createResult(o,r);return Wv(this,i)&&(he(this,Xt,i),he(this,Es,this.options),he(this,Ki,O(this,Ve).state)),i}getCurrentResult(){return O(this,Xt)}trackResult(r,o){return new Proxy(r,{get:(i,a)=>(this.trackProp(a),o==null||o(a),Reflect.get(i,a))})}trackProp(r){O(this,Rs).add(r)}getCurrentQuery(){return O(this,Ve)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const o=O(this,lr).defaultQueryOptions(r),i=O(this,lr).getQueryCache().build(O(this,lr),o);return i.fetch().then(()=>this.createResult(i,o))}fetch(r){return ze(this,Ze,Pl).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),O(this,Xt)))}createResult(r,o){var ae;const i=O(this,Ve),a=this.options,d=O(this,Xt),h=O(this,Ki),v=O(this,Es),x=r!==i?r.state:O(this,Hl),{state:R}=r;let E={...R},F=!1,M;if(o._optimisticResults){const Fe=this.hasListeners(),Ne=!Fe&&Dp(r,o),_e=Fe&&_p(r,i,o,a);(Ne||_e)&&(E={...E,...im(R.data,r.options)}),o._optimisticResults==="isRestoring"&&(E.fetchStatus="idle")}let{error:B,errorUpdatedAt:D,status:P}=E;M=E.data;let I=!1;if(o.placeholderData!==void 0&&M===void 0&&P==="pending"){let Fe;d!=null&&d.isPlaceholderData&&o.placeholderData===(v==null?void 0:v.placeholderData)?(Fe=d.data,I=!0):Fe=typeof o.placeholderData=="function"?o.placeholderData((ae=O(this,Ts))==null?void 0:ae.state.data,O(this,Ts)):o.placeholderData,Fe!==void 0&&(P="success",M=qf(d==null?void 0:d.data,Fe,o),F=!0)}if(o.select&&M!==void 0&&!I)if(d&&M===(h==null?void 0:h.data)&&o.select===O(this,Wl))M=O(this,Cs);else try{he(this,Wl,o.select),M=o.select(M),M=qf(d==null?void 0:d.data,M,o),he(this,Cs,M),he(this,Jo,null)}catch(Fe){he(this,Jo,Fe)}O(this,Jo)&&(B=O(this,Jo),M=O(this,Cs),D=Date.now(),P="error");const W=E.fetchStatus==="fetching",U=P==="pending",q=P==="error",_=U&&W,ie=M!==void 0,ee={status:P,fetchStatus:E.fetchStatus,isPending:U,isSuccess:P==="success",isError:q,isInitialLoading:_,isLoading:_,data:M,dataUpdatedAt:E.dataUpdatedAt,error:B,errorUpdatedAt:D,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:E.dataUpdateCount>0||E.errorUpdateCount>0,isFetchedAfterMount:E.dataUpdateCount>x.dataUpdateCount||E.errorUpdateCount>x.errorUpdateCount,isFetching:W,isRefetching:W&&!U,isLoadingError:q&&!ie,isPaused:E.fetchStatus==="paused",isPlaceholderData:F,isRefetchError:q&&ie,isStale:Ud(r,o),refetch:this.refetch,promise:O(this,qo)};if(this.options.experimental_prefetchInRender){const Fe=Ge=>{ee.status==="error"?Ge.reject(ee.error):ee.data!==void 0&&Ge.resolve(ee.data)},Ne=()=>{const Ge=he(this,qo,ee.promise=Jf());Fe(Ge)},_e=O(this,qo);switch(_e.status){case"pending":r.queryHash===i.queryHash&&Fe(_e);break;case"fulfilled":(ee.status==="error"||ee.data!==_e.value)&&Ne();break;case"rejected":(ee.status!=="error"||ee.error!==_e.reason)&&Ne();break}}return ee}updateResult(){const r=O(this,Xt),o=this.createResult(O(this,Ve),this.options);if(he(this,Ki,O(this,Ve).state),he(this,Es,this.options),O(this,Ki).data!==void 0&&he(this,Ts,O(this,Ve)),Zu(o,r))return;he(this,Xt,o);const i=()=>{if(!r)return!0;const{notifyOnChangeProps:a}=this.options,d=typeof a=="function"?a():a;if(d==="all"||!d&&!O(this,Rs).size)return!0;const h=new Set(d??O(this,Rs));return this.options.throwOnError&&h.add("error"),Object.keys(O(this,Xt)).some(v=>{const m=v;return O(this,Xt)[m]!==r[m]&&h.has(m)})};ze(this,Ze,sm).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ze(this,Ze,td).call(this)}},lr=new WeakMap,Ve=new WeakMap,Hl=new WeakMap,Xt=new WeakMap,Ki=new WeakMap,Es=new WeakMap,qo=new WeakMap,Jo=new WeakMap,Wl=new WeakMap,Cs=new WeakMap,Ts=new WeakMap,Zi=new WeakMap,ea=new WeakMap,Ko=new WeakMap,Rs=new WeakMap,Ze=new WeakSet,Pl=function(r){ze(this,Ze,od).call(this);let o=O(this,Ve).fetch(this.options,r);return r!=null&&r.throwOnError||(o=o.catch(qt)),o},Kf=function(){ze(this,Ze,rd).call(this);const r=cs(this.options.staleTime,O(this,Ve));if(ta||O(this,Xt).isStale||!Gf(r))return;const i=Kh(O(this,Xt).dataUpdatedAt,r)+1;he(this,Zi,setTimeout(()=>{O(this,Xt).isStale||this.updateResult()},i))},Zf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(O(this,Ve)):this.options.refetchInterval)??!1},ed=function(r){ze(this,Ze,nd).call(this),he(this,Ko,r),!(ta||Kr(this.options.enabled,O(this,Ve))===!1||!Gf(O(this,Ko))||O(this,Ko)===0)&&he(this,ea,setInterval(()=>{(this.options.refetchIntervalInBackground||Bd.isFocused())&&ze(this,Ze,Pl).call(this)},O(this,Ko)))},td=function(){ze(this,Ze,Kf).call(this),ze(this,Ze,ed).call(this,ze(this,Ze,Zf).call(this))},rd=function(){O(this,Zi)&&(clearTimeout(O(this,Zi)),he(this,Zi,void 0))},nd=function(){O(this,ea)&&(clearInterval(O(this,ea)),he(this,ea,void 0))},od=function(){const r=O(this,lr).getQueryCache().build(O(this,lr),this.options);if(r===O(this,Ve))return;const o=O(this,Ve);he(this,Ve,r),he(this,Hl,r.state),this.hasListeners()&&(o==null||o.removeObserver(this),r.addObserver(this))},sm=function(r){bt.batch(()=>{r.listeners&&this.listeners.forEach(o=>{o(O(this,Xt))}),O(this,lr).getQueryCache().notify({query:O(this,Ve),type:"observerResultsUpdated"})})},Bh);function Hv(e,r){return Kr(r.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&r.retryOnMount===!1)}function Dp(e,r){return Hv(e,r)||e.state.data!==void 0&&id(e,r,r.refetchOnMount)}function id(e,r,o){if(Kr(r.enabled,e)!==!1){const i=typeof o=="function"?o(e):o;return i==="always"||i!==!1&&Ud(e,r)}return!1}function _p(e,r,o,i){return(e!==r||Kr(i.enabled,e)===!1)&&(!o.suspense||e.state.status!=="error")&&Ud(e,o)}function Ud(e,r){return Kr(r.enabled,e)!==!1&&e.isStaleByTime(cs(r.staleTime,e))}function Wv(e,r){return!Zu(e.getCurrentResult(),r)}var Zo,ei,ur,Kn,eo,Xu,ad,Uh,Vv=(Uh=class extends As{constructor(o,i){super();Ie(this,eo);Ie(this,Zo);Ie(this,ei);Ie(this,ur);Ie(this,Kn);he(this,Zo,o),this.setOptions(i),this.bindMethods(),ze(this,eo,Xu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(o){var a;const i=this.options;this.options=O(this,Zo).defaultMutationOptions(o),Zu(this.options,i)||O(this,Zo).getMutationCache().notify({type:"observerOptionsUpdated",mutation:O(this,ur),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&ra(i.mutationKey)!==ra(this.options.mutationKey)?this.reset():((a=O(this,ur))==null?void 0:a.state.status)==="pending"&&O(this,ur).setOptions(this.options)}onUnsubscribe(){var o;this.hasListeners()||(o=O(this,ur))==null||o.removeObserver(this)}onMutationUpdate(o){ze(this,eo,Xu).call(this),ze(this,eo,ad).call(this,o)}getCurrentResult(){return O(this,ei)}reset(){var o;(o=O(this,ur))==null||o.removeObserver(this),he(this,ur,void 0),ze(this,eo,Xu).call(this),ze(this,eo,ad).call(this)}mutate(o,i){var a;return he(this,Kn,i),(a=O(this,ur))==null||a.removeObserver(this),he(this,ur,O(this,Zo).getMutationCache().build(O(this,Zo),this.options)),O(this,ur).addObserver(this),O(this,ur).execute(o)}},Zo=new WeakMap,ei=new WeakMap,ur=new WeakMap,Kn=new WeakMap,eo=new WeakSet,Xu=function(){var i;const o=((i=O(this,ur))==null?void 0:i.state)??am();he(this,ei,{...o,isPending:o.status==="pending",isSuccess:o.status==="success",isError:o.status==="error",isIdle:o.status==="idle",mutate:this.mutate,reset:this.reset})},ad=function(o){bt.batch(()=>{var i,a,d,h,v,m,x,R;if(O(this,Kn)&&this.hasListeners()){const E=O(this,ei).variables,F=O(this,ei).context;(o==null?void 0:o.type)==="success"?((a=(i=O(this,Kn)).onSuccess)==null||a.call(i,o.data,E,F),(h=(d=O(this,Kn)).onSettled)==null||h.call(d,o.data,null,E,F)):(o==null?void 0:o.type)==="error"&&((m=(v=O(this,Kn)).onError)==null||m.call(v,o.error,E,F),(R=(x=O(this,Kn)).onSettled)==null||R.call(x,void 0,o.error,E,F))}this.listeners.forEach(E=>{E(O(this,ei))})})},Uh),lm=de.createContext(void 0),um=e=>{const r=de.useContext(lm);if(e)return e;if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Yv=({client:e,children:r})=>(de.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),Q.jsx(lm.Provider,{value:e,children:r})),cm=de.createContext(!1),Gv=()=>de.useContext(cm);cm.Provider;function Qv(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Xv=de.createContext(Qv()),qv=()=>de.useContext(Xv),Jv=(e,r)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(r.isReset()||(e.retryOnMount=!1))},Kv=e=>{de.useEffect(()=>{e.clearReset()},[e])},Zv=({result:e,errorResetBoundary:r,throwOnError:o,query:i,suspense:a})=>e.isError&&!r.isReset()&&!e.isFetching&&i&&(a&&e.data===void 0||em(o,[e.error,i])),ey=e=>{const r=e.staleTime;e.suspense&&(e.staleTime=typeof r=="function"?(...o)=>Math.max(r(...o),1e3):Math.max(r??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},ty=(e,r)=>e.isLoading&&e.isFetching&&!r,ry=(e,r)=>(e==null?void 0:e.suspense)&&r.isPending,Lp=(e,r,o)=>r.fetchOptimistic(e).catch(()=>{o.clearReset()});function ny(e,r,o){var E,F,M,B,D;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const i=um(o),a=Gv(),d=qv(),h=i.defaultQueryOptions(e);(F=(E=i.getDefaultOptions().queries)==null?void 0:E._experimental_beforeQuery)==null||F.call(E,h),process.env.NODE_ENV!=="production"&&(h.queryFn||console.error(`[${h.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`)),h._optimisticResults=a?"isRestoring":"optimistic",ey(h),Jv(h,d),Kv(d);const v=!i.getQueryCache().get(h.queryHash),[m]=de.useState(()=>new r(i,h)),x=m.getOptimisticResult(h),R=!a&&e.subscribed!==!1;if(de.useSyncExternalStore(de.useCallback(P=>{const I=R?m.subscribe(bt.batchCalls(P)):qt;return m.updateResult(),I},[m,R]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),de.useEffect(()=>{m.setOptions(h)},[h,m]),ry(h,x))throw Lp(h,m,d);if(Zv({result:x,errorResetBoundary:d,throwOnError:h.throwOnError,query:i.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw x.error;if((B=(M=i.getDefaultOptions().queries)==null?void 0:M._experimental_afterQuery)==null||B.call(M,h,x),h.experimental_prefetchInRender&&!ta&&ty(x,a)){const P=v?Lp(h,m,d):(D=i.getQueryCache().get(h.queryHash))==null?void 0:D.promise;P==null||P.catch(qt).finally(()=>{m.updateResult()})}return h.notifyOnChangeProps?x:m.trackResult(x)}function Hd(e,r){return ny(e,Uv,r)}function fm(e,r){const o=um(r),[i]=de.useState(()=>new Vv(o,e));de.useEffect(()=>{i.setOptions(e)},[i,e]);const a=de.useSyncExternalStore(de.useCallback(h=>i.subscribe(bt.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),d=de.useCallback((h,v)=>{i.mutate(h,v).catch(qt)},[i]);if(a.error&&em(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:d,mutateAsync:a.mutate}}const Wd=V.createContext(null);Wd.Provider;const Is=()=>V.useContext(Wd),dm=({children:e})=>{const[r]=V.useState(new Bv);return Q.jsx(Wd.Provider,{value:{queryClient:r},children:Q.jsx(Yv,{client:r,children:e})})},ut={OPEN:"Open",IN_PROGRESS:"In progress",IN_REVIEW:"In review",COMPLETED:"Completed"},pm="https://marketplace.confidence.com/api",Vl=pm+"/confidence",jp=pm+"/dropbox/prod",oy=async e=>{const r={taskInstanceId:e},o=new Headers;return o.append("Content-Type","application/json"),await(await fetch(`${Vl}/playbook-task-complete`,{method:"POST",headers:o,body:JSON.stringify(r)})).json()},iy=()=>{const{queryClient:e}=Is(),r=fm({mutationFn:async i=>oy(i)},e);return{completeTask:async i=>r.mutateAsync(i,{onSuccess:()=>{console.log("Task completed successfully")},onError:a=>{console.error("Error completing task:",a)}}),...r}},ay=async e=>{const r={taskInstanceId:e},o=new Headers;return o.append("Content-Type","application/json"),await(await fetch(`${Vl}/playbook-task-start`,{method:"POST",headers:o,body:JSON.stringify(r)})).json()},sy=()=>{const{queryClient:e}=Is(),r=fm({mutationFn:async i=>await ay(i)},e);return{startTask:i=>r.mutateAsync(i,{onSuccess:()=>{console.log("Task started successfully")},onError:a=>{console.error("Error starting task:",a)}}),...r}},hm=(e,r)=>{const{queryClient:o}=Is(),i=Hd({initialData:{},queryFn:()=>o.getQueryData(["PLAYBOOK_EXPANDED_TASKS",+e]),queryKey:["PLAYBOOK_EXPANDED_TASKS",+e]}),a=v=>{var m;return((m=i.data)==null?void 0:m[v.toString()])??!1},d=(v,m)=>{var x;o.setQueryData(["PLAYBOOK_EXPANDED_TASKS",+e],()=>({[v]:m!==void 0?m:!a(v)})),(x=r==null?void 0:r.onTaskExpanded)==null||x.call(r,v,a(v))},h=V.useMemo(()=>Object.values(i.data??{}).some(v=>v),[i.data]);return{isTaskExpanded:a,toggleTaskExpanded:d,isAtLeastOneTaskExpanded:h}},ly=(e,r)=>{const{queryClient:o}=Is(),{completeTask:i}=iy(),{startTask:a}=sy(),{toggleTaskExpanded:d}=hm(e);return{completeTask:async(m,x)=>{const{status:R}=await i(m.toString());R&&(d(m,!1),o.setQueryData(["playbook",+e],E=>{if(!E)return E;const F=E.tasks.map(M=>M.sequenceOrder===x+1&&r.quickComplete?{...M,workflowStatus:ut.IN_PROGRESS}:M.taskInstanceId===m?{...M,workflowStatus:R}:M);return{...E,tasks:F}}))},startTask:async m=>{const{status:x}=await a(m.toString());x&&(d(m,!0),o.setQueryData(["playbook",+e],R=>{if(!R)return R;const E=R.tasks.map(F=>F.taskInstanceId===m?{...F,workflowStatus:x}:F);return{...R,tasks:E}}))}}},uy=e=>{var a;const{queryClient:r}=Is(),o=Hd({queryFn:async()=>{const d=new Headers,h=await fetch(`${Vl}/playbook-details`,{method:"POST",cache:"no-store",headers:d,body:JSON.stringify({playbookInstanceId:+e,start:0,limit:50})});if(!h.ok)throw new Error("Network response was not ok");const v=await h.json();if(v.error)throw new Error(v.error);return v},queryKey:["playbook",+e]},r),i=ly(e,{quickComplete:(a=o.data)==null?void 0:a.quickComplete});return{playbook:o.data,isLoading:o.isLoading,error:o.error,actions:i}},Il={START:"START",PAUSE:"PAUSE",COMPLETE:"COMPLETE"},cy={START:"Start",PAUSE:"Pause",RESUME:"Resume",COMPLETE:"Complete"},fy=e=>{const{taskStatus:r,canStart:o}=e;return{buttons:V.useMemo(()=>r===ut.OPEN&&o?[Il.START]:r===ut.IN_PROGRESS?[Il.PAUSE,Il.COMPLETE]:r===ut.COMPLETED?[]:[],[e.taskStatus,e.canStart])}},mm=async e=>{const r=new Headers;return r.append("Content-Type","application/json"),await(await fetch(`${Vl}/playbook-initiate`,{method:"POST",headers:r,body:JSON.stringify(e)})).json()},Vd='/*! tailwindcss v4.1.4 | MIT License | https://tailwindcss.com */@layer properties{.confidence-playbook *{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}.confidence-playbook{display:unset;all:unset!important}@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-500:oklch(63.7% .237 25.331);--spacing:.25rem;--container-md:28rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none!important}.absolute{position:absolute!important}.fixed{position:fixed!important}.relative{position:relative!important}.sticky{position:sticky!important}.inset-0{inset:calc(var(--spacing)*0)!important}.top-0{top:calc(var(--spacing)*0)!important}.top-3{top:calc(var(--spacing)*3)!important}.bottom-0{bottom:calc(var(--spacing)*0)!important}.z-2{z-index:2!important}.z-50{z-index:50!important}.z-\\[99999999999999\\]{z-index:2147483647!important}.container{width:100%!important}@media (min-width:40rem){.container{max-width:40rem!important}}@media (min-width:48rem){.container{max-width:48rem!important}}@media (min-width:64rem){.container{max-width:64rem!important}}@media (min-width:80rem){.container{max-width:80rem!important}}@media (min-width:96rem){.container{max-width:96rem!important}}.mx-1{margin-inline:calc(var(--spacing)*1)!important}.mx-4{margin-inline:calc(var(--spacing)*4)!important}.-mt-\\[1px\\]{margin-top:-1px!important}.mt-3{margin-top:calc(var(--spacing)*3)!important}.-mb-3{margin-bottom:calc(var(--spacing)*-3)!important}.mb-4{margin-bottom:calc(var(--spacing)*4)!important}.ml-2{margin-left:calc(var(--spacing)*2)!important}.block{display:block!important}.flex{display:flex!important}.hidden{display:none!important}.size-4{width:calc(var(--spacing)*4)!important;height:calc(var(--spacing)*4)!important}.size-9{width:calc(var(--spacing)*9)!important;height:calc(var(--spacing)*9)!important}.h-\\[18px\\]{height:18px!important}.h-\\[22px\\]{height:22px!important}.h-\\[24px\\]{height:24px!important}.h-\\[30px\\]{height:30px!important}.h-\\[38px\\]{height:38px!important}.h-\\[40px\\]{height:40px!important}.h-full{height:100%!important}.min-h-16{min-height:calc(var(--spacing)*16)!important}.min-h-screen{min-height:100vh!important}.w-\\[27px\\]{width:27px!important}.w-\\[38px\\]{width:38px!important}.w-\\[400px\\]{width:400px!important}.w-full{width:100%!important}.w-screen{width:100vw!important}.max-w-lg{max-width:var(--container-lg)!important}.max-w-md{max-width:var(--container-md)!important}.min-w-\\[106px\\]{min-width:106px!important}.min-w-\\[140px\\]{min-width:140px!important}.min-w-\\[160px\\]{min-width:160px!important}.min-w-\\[172px\\]{min-width:172px!important}.min-w-fit{min-width:fit-content!important}.flex-1{flex:1!important}.rotate-180{rotate:180deg!important}.cursor-pointer{cursor:pointer!important}.resize{resize:both!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.items-stretch{align-items:stretch!important}.justify-center{justify-content:center!important}.justify-end{justify-content:flex-end!important}.gap-1{gap:calc(var(--spacing)*1)!important}.gap-2{gap:calc(var(--spacing)*2)!important}.gap-3{gap:calc(var(--spacing)*3)!important}.gap-4{gap:calc(var(--spacing)*4)!important}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0!important;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse))!important;margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))!important}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0!important;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse))!important;margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))!important}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0!important;border-bottom-style:var(--tw-border-style)!important;border-top-style:var(--tw-border-style)!important;border-top-width:calc(1px*var(--tw-divide-y-reverse))!important;border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))!important}:where(.divide-black\\/10>:not(:last-child)){border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}:where(.divide-gray-100>:not(:last-child)){border-color:#ebedef!important}.self-end{align-self:flex-end!important}.truncate{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.overflow-hidden{overflow:hidden!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-y-auto{overflow-y:auto!important}.rounded{border-radius:.25rem!important}.rounded-lg{border-radius:var(--radius-lg)!important}.rounded-md{border-radius:var(--radius-md)!important}.rounded-sm{border-radius:var(--radius-sm)!important}.rounded-t-sm{border-top-left-radius:var(--radius-sm)!important;border-top-right-radius:var(--radius-sm)!important}.rounded-l-sm{border-top-left-radius:var(--radius-sm)!important;border-bottom-left-radius:var(--radius-sm)!important}.rounded-b-md{border-bottom-right-radius:var(--radius-md)!important;border-bottom-left-radius:var(--radius-md)!important}.border{border-style:var(--tw-border-style)!important;border-width:1px!important}.border-t{border-top-style:var(--tw-border-style)!important;border-top-width:1px!important}.border-b{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-none{--tw-border-style:none!important;border-style:none!important}.border-\\[\\#94C8FF\\]{border-color:#94c8ff!important}.border-\\[\\#A5DAB1\\]{border-color:#a5dab1!important}.border-\\[\\#C1C5C8\\]{border-color:#c1c5c8!important}.border-black\\/10{border-color:oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1) oklab(0% none none/.1)!important}.border-danger-500{border-color:#dc3545!important}.border-gray-50{border-color:#f5f6f7!important}.border-gray-100{border-color:#ebedef!important}.border-gray-200{border-color:#ced1d6!important}.border-gray-300{border-color:#b0b5bd!important}.border-gray-400{border-color:#757e8c!important}.border-gray-700{border-color:#2c3544!important}.border-gray-800{border-color:#232b37!important}.border-info-500{border-color:#17a2b8!important}.border-orange-500{border-color:#ff7800!important}.border-primary-600{border-color:#0069d9!important}.border-purple-500{border-color:#a855f7!important}.border-red-500{border-color:var(--color-red-500)!important}.border-secondary-500{border-color:#6c757d!important}.border-secondary-600{border-color:#5a6268!important}.border-steel-500{border-color:#556987!important}.border-success-600{border-color:#218838!important}.border-warning-500{border-color:#ffc107!important}.border-white{border-color:#fff!important}.bg-\\[\\#E6F2FF\\]{background-color:#e6f2ff!important}.bg-\\[\\#EAF6EC\\]{background-color:#eaf6ec!important}.bg-\\[\\#F0F1F2\\]{background-color:#f0f1f2!important}.bg-\\[\\#FFE600\\]{background-color:#ffe600!important}.bg-black\\/30{background-color:oklab(0% none none/.3)!important}.bg-danger-500{background-color:#dc3545!important}.bg-dark{background-color:#1c232d!important}.bg-fiserv-orange-500{background-color:#f60!important}.bg-gray-50{background-color:#f5f6f7!important}.bg-gray-100{background-color:#ebedef!important}.bg-gray-400{background-color:#757e8c!important}.bg-gray-500{background-color:#3a475b!important}.bg-gray-800{background-color:#232b37!important}.bg-gray-900{background-color:#1c232d!important}.bg-info-500{background-color:#17a2b8!important}.bg-orange-500{background-color:#ff7800!important}.bg-primary-600{background-color:#0069d9!important}.bg-primary-800{background-color:#0054af!important}.bg-purple-500{background-color:#a855f7!important}.bg-secondary-500{background-color:#6c757d!important}.bg-steel-500{background-color:#556987!important}.bg-success-500{background-color:#28a745!important}.bg-success-600{background-color:#218838!important}.bg-warning-500{background-color:#ffc107!important}.bg-white{background-color:#fff!important}.bg-yellow{background-color:#ffe600!important}.object-contain{object-fit:contain!important}.p-1{padding:calc(var(--spacing)*1)!important}.p-2{padding:calc(var(--spacing)*2)!important}.p-4{padding:calc(var(--spacing)*4)!important}.px-1{padding-inline:calc(var(--spacing)*1)!important}.px-2{padding-inline:calc(var(--spacing)*2)!important}.px-3{padding-inline:calc(var(--spacing)*3)!important}.px-4{padding-inline:calc(var(--spacing)*4)!important}.px-\\[2px\\]{padding-inline:2px!important}.py-1{padding-block:calc(var(--spacing)*1)!important}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)!important}.pt-2{padding-top:calc(var(--spacing)*2)!important}.pr-2{padding-right:calc(var(--spacing)*2)!important}.pb-1{padding-bottom:calc(var(--spacing)*1)!important}.pb-2{padding-bottom:calc(var(--spacing)*2)!important}.text-center{text-align:center!important}.text-2xl{font-size:var(--text-2xl)!important;line-height:var(--tw-leading,var(--text-2xl--line-height))!important}.text-base{font-size:var(--text-base)!important;line-height:var(--tw-leading,var(--text-base--line-height))!important}.text-lg{font-size:var(--text-lg)!important;line-height:var(--tw-leading,var(--text-lg--line-height))!important}.text-sm{font-size:var(--text-sm)!important;line-height:var(--tw-leading,var(--text-sm--line-height))!important}.text-sm\\/6{font-size:var(--text-sm)!important;line-height:calc(var(--spacing)*6)!important}.text-xl{font-size:var(--text-xl)!important;line-height:var(--tw-leading,var(--text-xl--line-height))!important}.text-xs{font-size:var(--text-xs)!important;line-height:var(--tw-leading,var(--text-xs--line-height))!important}.leading-\\[18px\\]{--tw-leading:18px!important;line-height:18px!important}.leading-\\[22px\\]{--tw-leading:22px!important;line-height:22px!important}.leading-\\[24px\\]{--tw-leading:24px!important;line-height:24px!important}.font-bold{--tw-font-weight:var(--font-weight-bold)!important;font-weight:var(--font-weight-bold)!important}.font-medium{--tw-font-weight:var(--font-weight-medium)!important;font-weight:var(--font-weight-medium)!important}.font-normal{--tw-font-weight:var(--font-weight-normal)!important;font-weight:var(--font-weight-normal)!important}.whitespace-nowrap{white-space:nowrap!important}.text-\\[\\#0069D9\\]{color:#0069d9!important}.text-black{color:#000!important}.text-danger-500{color:#dc3545!important}.text-dark{color:#1c232d!important}.text-dark-300{color:#343a40!important}.text-fiserv-orange-500{color:#f60!important}.text-gray-50{color:#f5f6f7!important}.text-gray-200{color:#ced1d6!important}.text-gray-400{color:#757e8c!important}.text-gray-500{color:#3a475b!important}.text-gray-700{color:#2c3544!important}.text-gray-800{color:#232b37!important}.text-gray-900{color:#1c232d!important}.text-info-500{color:#17a2b8!important}.text-orange-500{color:#ff7800!important}.text-primary-600{color:#0069d9!important}.text-purple-500{color:#a855f7!important}.text-secondary{color:#6c757d!important}.text-secondary-400{color:#899197!important}.text-secondary-500{color:#6c757d!important}.text-secondary-600{color:#5a6268!important}.text-steel-500{color:#556987!important}.text-success-500{color:#28a745!important}.text-success-600{color:#218838!important}.text-warning-500{color:#ffc107!important}.text-white{color:#fff!important}.text-yellow{color:#ffe600!important}.uppercase{text-transform:uppercase!important}.line-through{text-decoration-line:line-through!important}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.shadow-dark\\/50{--tw-shadow-color:#1c232d80!important}@supports (color:color-mix(in lab,red,red)){.shadow-dark\\/50{--tw-shadow-color:color-mix(in oklab,oklab(25.3864% -.0047446 -.0210213/.5) var(--tw-shadow-alpha),transparent)!important}}.outline{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.transition-all{transition-property:all!important;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))!important;transition-duration:var(--tw-duration,var(--default-transition-duration))!important}.duration-300{--tw-duration:.3s!important;transition-duration:.3s!important}.ease-in-out{--tw-ease:var(--ease-in-out)!important;transition-timing-function:var(--ease-in-out)!important}.ease-out{--tw-ease:var(--ease-out)!important;transition-timing-function:var(--ease-out)!important}.\\[writing-mode\\:vertical-lr\\]{writing-mode:vertical-lr!important}@media (hover:hover){.hover\\:bg-danger-500:hover{background-color:#dc3545!important}.hover\\:bg-dark:hover{background-color:#1c232d!important}.hover\\:bg-fiserv-orange-500:hover{background-color:#f60!important}.hover\\:bg-gray-50:hover{background-color:#f5f6f7!important}.hover\\:bg-gray-100:hover{background-color:#ebedef!important}.hover\\:bg-gray-400:hover{background-color:#757e8c!important}.hover\\:bg-gray-500:hover{background-color:#3a475b!important}.hover\\:bg-gray-800:hover{background-color:#232b37!important}.hover\\:bg-gray-900:hover{background-color:#1c232d!important}.hover\\:bg-info-500:hover{background-color:#17a2b8!important}.hover\\:bg-orange-500:hover{background-color:#ff7800!important}.hover\\:bg-primary-800:hover{background-color:#0054af!important}.hover\\:bg-purple-500:hover{background-color:#a855f7!important}.hover\\:bg-secondary-500:hover{background-color:#6c757d!important}.hover\\:bg-steel-500:hover{background-color:#556987!important}.hover\\:bg-success-500:hover{background-color:#28a745!important}.hover\\:bg-warning-500:hover{background-color:#ffc107!important}.hover\\:bg-yellow:hover{background-color:#ffe600!important}.hover\\:text-black:hover{color:#000!important}.hover\\:text-danger-800:hover{color:#aa1927!important}.hover\\:text-dark:hover{color:#1c232d!important}.hover\\:text-fiserv-orange-800:hover{color:#bf4c00!important}.hover\\:text-gray-400:hover{color:#757e8c!important}.hover\\:text-gray-700:hover{color:#2c3544!important}.hover\\:text-gray-800:hover{color:#232b37!important}.hover\\:text-gray-900:hover{color:#1c232d!important}.hover\\:text-info-800:hover{color:#026777!important}.hover\\:text-orange-800:hover{color:#c75d00!important}.hover\\:text-primary-800:hover{color:#0054af!important}.hover\\:text-purple-800:hover{color:#6f33a7!important}.hover\\:text-secondary-800:hover{color:#444a50!important}.hover\\:text-steel-800:hover{color:#333f51!important}.hover\\:text-success-800:hover{color:#106c25!important}.hover\\:text-warning-800:hover{color:#b87708!important}.hover\\:text-white:hover{color:#fff!important}.hover\\:text-yellow:hover{color:#ffe600!important}}.focus\\:border-red-500:focus{border-color:var(--color-red-500)!important}.focus\\:outline:focus{outline-style:var(--tw-outline-style)!important;outline-width:1px!important}.focus\\:outline-3:focus{outline-style:var(--tw-outline-style)!important;outline-width:3px!important}.focus\\:outline-primary-500\\/\\[\\.3\\]:focus{outline-color:#007bff4d!important}.active\\:bg-gray-50:active{background-color:#f5f6f7!important}.active\\:bg-gray-800:active{background-color:#232b37!important}.active\\:text-black:active{color:#000!important}.active\\:text-white:active{color:#fff!important}.disabled\\:pointer-events-none:disabled{pointer-events:none!important}.disabled\\:opacity-15:disabled{opacity:.15!important}.data-closed\\:opacity-0[data-closed]{opacity:0!important}.data-focus\\:-outline-offset-2[data-focus]{outline-offset:-2px!important}.data-focus\\:outline-primary-500[data-focus]{outline-color:#007bff!important}@media (min-width:48rem){.md\\:min-w-fit{min-width:fit-content!important}}}.lexical-view-mode{word-break:break-word!important;color:#1c232d!important;width:100%!important}.lexical-view-mode ul{list-style:revert!important}.editable .lexical-view-mode:hover{cursor:text!important;background-color:#00000012!important;border-radius:1px!important;outline:4px solid #00000012!important}.lexical-view-mode .Collapsible__container{width:fit-content!important}.lexical-view-mode .Collapsible__title{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;align-items:center!important;margin-bottom:4px!important;padding:0!important;list-style:none!important;display:flex!important}.lexical-view-mode .Collapsible__title:hover{color:#0069d9!important}.lexical-view-mode .Collapsible__title:hover .editor-paragraph{text-decoration:underline!important}.lexical-view-mode .Collapsible__title::marker{display:none!important}.lexical-view-mode .Collapsible__title::-webkit-details-marker{display:none!important}.lexical-view-mode .Collapsible__title:before{content:""!important;-moz-osx-font-smoothing:grayscale!important;-webkit-font-smoothing:antialiased!important;display:var(--fa-display,inline-block)!important;font-variant:normal!important;text-rendering:auto!important;background:#fff!important;border-radius:30px!important;margin-right:4px!important;font-family:"Font Awesome 5 Pro"!important;font-style:normal!important;font-weight:900!important;line-height:1!important}.lexical-view-mode .Collapsible__title:hover:before{color:#0069d9!important;border:3px solid #fff!important;margin-left:-3px!important;margin-right:1px!important}.lexical-view-mode hr{border:none!important;margin:5px 0!important;padding:3px 0!important}.lexical-view-mode hr:after{content:""!important;background-color:#0000001a!important;height:2px!important;line-height:2px!important;display:block!important}.lexical-view-mode .editor-line-spacer{background:0 0!important;border:1px dashed #0000!important;line-height:6px!important}.lexical-view-mode .other h2{margin-bottom:7px;color:#444!important;font-size:18px!important}.lexical-view-mode .other a{font-size:14px;color:#777!important;text-decoration:underline!important}.lexical-view-mode .other ul{list-style-type:none;margin:0!important;padding:0!important}.lexical-view-mode .ltr{text-align:left}.lexical-view-mode .rtl{text-align:right}.lexical-view-mode .editor-shell{color:#1c232d!important;border-radius:4px!important;width:100%!important;font-weight:400!important;position:relative!important}.lexical-view-mode .editor{position:relative;background:#fff!important}.lexical-view-mode .editor-input{caret-color:#444;resize:none!important;-moz-tab-size:1!important;tab-size:1!important;outline:0!important;min-height:150px!important;padding:12px!important;position:relative!important}.lexical-view-mode .editor-placeholder{pointer-events:none;color:#999!important;text-overflow:ellipsis!important;-webkit-user-select:none!important;user-select:none!important;font-size:15px!important;display:inline-block!important;position:absolute!important;top:15px!important;left:10px!important;overflow:hidden!important}.lexical-view-mode .editor-text-bold,.lexical-view-mode strong{font-weight:700!important}.lexical-view-mode .editor-text-italic{font-style:italic}.lexical-view-mode .editor-text-code{color:#d70c69;background-color:#0000001a!important;border-radius:4px!important;padding:1px .25rem!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:85%!important}.lexical-view-mode .editor-link{word-break:break-word;color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode .editor-link:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .editor-code,.lexical-view-mode pre{word-break:break-word;-moz-tab-size:2!important;tab-size:2!important;background-color:#f0f2f5!important;border-radius:4px!important;margin:8px 0!important;padding:8px 8px 8px 52px!important;font-family:Menlo,Consolas,Monaco,monospace!important;font-size:13px!important;line-height:1.53!important;display:block!important;position:relative!important;overflow-x:auto!important}.lexical-view-mode .editor-code:before{min-width:25px;content:attr(data-gutter)!important;color:#777!important;white-space:pre-wrap!important;text-align:right!important;background-color:#eee!important;border-right:1px solid #ccc!important;padding:8px!important;position:absolute!important;top:0!important;left:0!important}.lexical-view-mode pre{white-space:pre-wrap!important;padding-left:8px!important}.lexical-view-mode pre:before{border-right:0!important;width:100%!important;height:23px!important}.lexical-view-mode .editor-code:after,.lexical-view-mode pre:after{color:#00000080;content:attr(data-highlight-language)!important;text-transform:uppercase!important;padding:3px!important;font-size:10px!important;position:absolute!important;top:0!important;right:3px!important}.lexical-view-mode .editor-tokenComment{color:#708090}.lexical-view-mode .editor-tokenPunctuation{color:#999}.lexical-view-mode .editor-tokenProperty{color:#905}.lexical-view-mode .editor-tokenSelector{color:#690}.lexical-view-mode .editor-tokenOperator{color:#9a6e3a}.lexical-view-mode .editor-tokenAttr{color:#07a}.lexical-view-mode .editor-tokenVariable{color:#e90}.lexical-view-mode .editor-tokenFunction{color:#dd4a68}.lexical-view-mode .editor-paragraph,.lexical-view-mode p{word-break:break-word;margin:0 0 .3rem!important;padding:0!important}.lexical-view-mode .editor-paragraph:last-child{margin-bottom:0}.lexical-view-mode .editor-heading-h1,.lexical-view-mode h1{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:24px!important}.lexical-view-mode .editor-heading-h2:first-child,.lexical-view-mode .editor-heading-h1:first-child,.lexical-view-mode h2:first-child,.lexical-view-mode h1:first-child{margin-top:0}.lexical-view-mode .editor-heading-h2,.lexical-view-mode h2{line-height:100%;border-bottom:thin solid #0000001a!important;margin-top:1.2em!important;margin-bottom:.6em!important;padding-bottom:6px!important;font-size:20px!important}.lexical-view-mode .editor-list-ol,.lexical-view-mode ol{margin:0 0 .3rem 15px!important;padding:0 0 0 15px!important;list-style-type:decimal!important;list-style-position:outside!important}.lexical-view-mode li ol{margin:0 0 0 20px!important}.lexical-view-mode .editor-list-ol2,.lexical-view-mode .editor-list-ol3,.lexical-view-mode .editor-list-ol4,.lexical-view-mode .editor-list-ol5,.lexical-view-mode .editor-list-ol6,.lexical-view-mode .editor-list-ol7{list-style-position:outside;padding:0!important}.lexical-view-mode .editor-list-ol2{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol3{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol4{list-style-type:decimal}.lexical-view-mode .editor-list-ol5{list-style-type:lower-alpha}.lexical-view-mode .editor-list-ol6{list-style-type:lower-roman}.lexical-view-mode .editor-list-ol7{list-style-type:decimal}.lexical-view-mode .editor-list-ul,.lexical-view-mode ul{margin-bottom:.3rem;margin:0 0 0 15px!important;padding:0 0 0 5px!important;list-style-position:outside!important}.lexical-view-mode li ul{margin:0 0 0 15px!important;padding:0 0 0 3px!important}.lexical-view-mode .editor-list-item{padding-left:0;vertical-align:top!important;margin-bottom:12px!important;line-height:1.3!important}.lexical-view-mode .editor-nested-list-item{list-style-type:none}.lexical-view-mode code{color:inherit!important;word-wrap:break-word!important;white-space:break-spaces!important}.lexical-view-mode a>code{color:inherit}.lexical-view-mode pre::-webkit-scrollbar{width:10px;background:0 0!important}.lexical-view-mode pre::-webkit-scrollbar-thumb{background:#999}.lexical-view-mode img{cursor:zoom-in!important;border:1px solid #ccc!important;border-radius:4px!important;width:auto!important;max-width:250px!important;height:auto!important;max-height:250px!important;display:block!important}.lexical-view-mode img:hover,.lexical-view-mode img:focus{outline:3px solid #007bff4d}.lexical-view-mode iframe{background:#000!important;border:1px solid #ccc!important;width:fit-content!important;max-width:100%!important;height:fit-content!important}.lexical-view-mode .ql-align-left{text-align:left!important}.lexical-view-mode .ql-align-right{text-align:right!important}.lexical-view-mode .ql-align-center{text-align:center!important}.lexical-view-mode .ql-align-justify{text-align:justify!important}.lexical-view-mode .ql-size-small{font-size:.75em!important}.lexical-view-mode p>a,.lexical-view-mode li>a{color:#007bff!important;cursor:pointer!important;background-color:#0000!important;text-decoration:underline!important}.lexical-view-mode p>a:hover,.lexical-view-mode li>a:hover{color:#0062cc!important;text-decoration:underline!important}.lexical-view-mode .ql-size-large{font-size:1.25rem!important}.lexical-view-mode .ql-indent-1{margin-left:20px!important}.lexical-view-mode .ql-indent-2{margin-left:40px!important}.lexical-view-mode .ql-indent-3{margin-left:60px!important}.lexical-view-mode .ql-indent-4{margin-left:80px!important}.lexical-view-mode .ql-indent-5{margin-left:100px!important}.lexical-view-mode .ql-indent-6{margin-left:120px!important}.lexical-view-mode .ql-indent-7{margin-left:140px!important}.lexical-view-mode .ql-indent-8{margin-left:160px!important}.lexical-view-mode ol li.ql-indent-1,.lexical-view-mode ol li.ql-indent-2,.lexical-view-mode ol li.ql-indent-3,.lexical-view-mode ol li.ql-indent-4,.lexical-view-mode ol li.ql-indent-5,.lexical-view-mode ol li.ql-indent-6,.lexical-view-mode ol li.ql-indent-7,.lexical-view-mode ol li.ql-indent-8,.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-6,.lexical-view-mode ul li.ql-indent-7,.lexical-view-mode ul li.ql-indent-8{margin-bottom:.3em!important}.lexical-view-mode ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-1!important;margin-left:0!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-1::marker{display:none}.lexical-view-mode ol li.ql-indent-1:before{content:counter(list-1,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-2!important;margin-left:20px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-2::marker{display:none}.lexical-view-mode ol li.ql-indent-2:before{content:counter(list-2,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-3!important;margin-left:40px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-3::marker{display:none}.lexical-view-mode ol li.ql-indent-3:before{content:counter(list-3,decimal)". "!important}.lexical-view-mode ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9!important;counter-increment:list-4!important;margin-left:60px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-4::marker{display:none}.lexical-view-mode ol li.ql-indent-4:before{content:counter(list-4,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9!important;counter-increment:list-5!important;margin-left:80px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-5::marker{display:none}.lexical-view-mode ol li.ql-indent-5:before{content:counter(list-5,lower-roman)". "!important}.lexical-view-mode ol li.ql-indent-6{counter-reset:list-7 list-8 list-9!important;counter-increment:list-6!important;margin-left:100px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-6::marker{display:none}.lexical-view-mode ol li.ql-indent-6:before{content:counter(list-6,decimal)". "!important}.lexical-view-mode ol li.ql-indent-7{counter-reset:list-8 list-9!important;counter-increment:list-7!important;margin-left:120px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-7::marker{display:none}.lexical-view-mode ol li.ql-indent-7:before{content:counter(list-7,lower-alpha)". "!important}.lexical-view-mode ol li.ql-indent-8{counter-reset:list-9!important;counter-increment:list-8!important;margin-left:140px!important;list-style-type:none!important}.lexical-view-mode ol li.ql-indent-8::marker{display:none}.lexical-view-mode ol li.ql-indent-8:before{content:counter(list-8,lower-roman)". "!important}.lexical-view-mode ul li.ql-indent-3,.lexical-view-mode ul li.ql-indent-6{list-style-type:disc}.lexical-view-mode ul li.ql-indent-1,.lexical-view-mode ul li.ql-indent-4,.lexical-view-mode ul li.ql-indent-7{list-style-type:circle}.lexical-view-mode ul li.ql-indent-2,.lexical-view-mode ul li.ql-indent-5,.lexical-view-mode ul li.ql-indent-8{list-style-type:square}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}',Yd="-",dy=e=>{const r=hy(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:h=>{const v=h.split(Yd);return v[0]===""&&v.length!==1&&v.shift(),gm(v,r)||py(h)},getConflictingClassGroupIds:(h,v)=>{const m=o[h]||[];return v&&i[h]?[...m,...i[h]]:m}}},gm=(e,r)=>{var h;if(e.length===0)return r.classGroupId;const o=e[0],i=r.nextPart.get(o),a=i?gm(e.slice(1),i):void 0;if(a)return a;if(r.validators.length===0)return;const d=e.join(Yd);return(h=r.validators.find(({validator:v})=>v(d)))==null?void 0:h.classGroupId},Np=/^\[(.+)\]$/,py=e=>{if(Np.test(e)){const r=Np.exec(e)[1],o=r==null?void 0:r.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},hy=e=>{const{theme:r,classGroups:o}=e,i={nextPart:new Map,validators:[]};for(const a in o)sd(o[a],i,a,r);return i},sd=(e,r,o,i)=>{e.forEach(a=>{if(typeof a=="string"){const d=a===""?r:$p(r,a);d.classGroupId=o;return}if(typeof a=="function"){if(my(a)){sd(a(i),r,o,i);return}r.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([d,h])=>{sd(h,$p(r,d),o,i)})})},$p=(e,r)=>{let o=e;return r.split(Yd).forEach(i=>{o.nextPart.has(i)||o.nextPart.set(i,{nextPart:new Map,validators:[]}),o=o.nextPart.get(i)}),o},my=e=>e.isThemeGetter,gy=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,i=new Map;const a=(d,h)=>{o.set(d,h),r++,r>e&&(r=0,i=o,o=new Map)};return{get(d){let h=o.get(d);if(h!==void 0)return h;if((h=i.get(d))!==void 0)return a(d,h),h},set(d,h){o.has(d)?o.set(d,h):a(d,h)}}},ld="!",ud=":",vy=ud.length,yy=e=>{const{prefix:r,experimentalParseClassName:o}=e;let i=a=>{const d=[];let h=0,v=0,m=0,x;for(let B=0;B<a.length;B++){let D=a[B];if(h===0&&v===0){if(D===ud){d.push(a.slice(m,B)),m=B+vy;continue}if(D==="/"){x=B;continue}}D==="["?h++:D==="]"?h--:D==="("?v++:D===")"&&v--}const R=d.length===0?a:a.substring(m),E=by(R),F=E!==R,M=x&&x>m?x-m:void 0;return{modifiers:d,hasImportantModifier:F,baseClassName:E,maybePostfixModifierPosition:M}};if(r){const a=r+ud,d=i;i=h=>h.startsWith(a)?d(h.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(o){const a=i;i=d=>o({className:d,parseClassName:a})}return i},by=e=>e.endsWith(ld)?e.substring(0,e.length-1):e.startsWith(ld)?e.substring(1):e,xy=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const a=[];let d=[];return i.forEach(h=>{h[0]==="["||r[h]?(a.push(...d.sort(),h),d=[]):d.push(h)}),a.push(...d.sort()),a}},wy=e=>({cache:gy(e.cacheSize),parseClassName:yy(e),sortModifiers:xy(e),...dy(e)}),Sy=/\s+/,ky=(e,r)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:d}=r,h=[],v=e.trim().split(Sy);let m="";for(let x=v.length-1;x>=0;x-=1){const R=v[x],{isExternal:E,modifiers:F,hasImportantModifier:M,baseClassName:B,maybePostfixModifierPosition:D}=o(R);if(E){m=R+(m.length>0?" "+m:m);continue}let P=!!D,I=i(P?B.substring(0,D):B);if(!I){if(!P){m=R+(m.length>0?" "+m:m);continue}if(I=i(B),!I){m=R+(m.length>0?" "+m:m);continue}P=!1}const W=d(F).join(":"),U=M?W+ld:W,q=U+I;if(h.includes(q))continue;h.push(q);const _=a(I,P);for(let ie=0;ie<_.length;++ie){const ce=_[ie];h.push(U+ce)}m=R+(m.length>0?" "+m:m)}return m};function Ey(){let e=0,r,o,i="";for(;e<arguments.length;)(r=arguments[e++])&&(o=vm(r))&&(i&&(i+=" "),i+=o);return i}const vm=e=>{if(typeof e=="string")return e;let r,o="";for(let i=0;i<e.length;i++)e[i]&&(r=vm(e[i]))&&(o&&(o+=" "),o+=r);return o};function Cy(e,...r){let o,i,a,d=h;function h(m){const x=r.reduce((R,E)=>E(R),e());return o=wy(x),i=o.cache.get,a=o.cache.set,d=v,v(m)}function v(m){const x=i(m);if(x)return x;const R=ky(m,o);return a(m,R),R}return function(){return d(Ey.apply(null,arguments))}}const yt=e=>{const r=o=>o[e]||[];return r.isThemeGetter=!0,r},ym=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ty=/^\d+\/\d+$/,Ry=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Py=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ay=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Iy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Oy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,is=e=>Ty.test(e),Be=e=>!!e&&!Number.isNaN(Number(e)),Uo=e=>!!e&&Number.isInteger(Number(e)),If=e=>e.endsWith("%")&&Be(e.slice(0,-1)),Xn=e=>Ry.test(e),Fy=()=>!0,My=e=>Py.test(e)&&!Ay.test(e),xm=()=>!1,Dy=e=>Iy.test(e),_y=e=>Oy.test(e),Ly=e=>!ve(e)&&!ye(e),jy=e=>Os(e,km,xm),ve=e=>ym.test(e),Wi=e=>Os(e,Em,My),Of=e=>Os(e,Uy,Be),zp=e=>Os(e,wm,xm),Ny=e=>Os(e,Sm,_y),Wu=e=>Os(e,Cm,Dy),ye=e=>bm.test(e),Tl=e=>Fs(e,Em),$y=e=>Fs(e,Hy),Bp=e=>Fs(e,wm),zy=e=>Fs(e,km),By=e=>Fs(e,Sm),Vu=e=>Fs(e,Cm,!0),Os=(e,r,o)=>{const i=ym.exec(e);return i?i[1]?r(i[1]):o(i[2]):!1},Fs=(e,r,o=!1)=>{const i=bm.exec(e);return i?i[1]?r(i[1]):o:!1},wm=e=>e==="position"||e==="percentage",Sm=e=>e==="image"||e==="url",km=e=>e==="length"||e==="size"||e==="bg-size",Em=e=>e==="length",Uy=e=>e==="number",Hy=e=>e==="family-name",Cm=e=>e==="shadow",Wy=()=>{const e=yt("color"),r=yt("font"),o=yt("text"),i=yt("font-weight"),a=yt("tracking"),d=yt("leading"),h=yt("breakpoint"),v=yt("container"),m=yt("spacing"),x=yt("radius"),R=yt("shadow"),E=yt("inset-shadow"),F=yt("text-shadow"),M=yt("drop-shadow"),B=yt("blur"),D=yt("perspective"),P=yt("aspect"),I=yt("ease"),W=yt("animate"),U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...q(),ye,ve],ie=()=>["auto","hidden","clip","visible","scroll"],ce=()=>["auto","contain","none"],ee=()=>[ye,ve,m],ae=()=>[is,"full","auto",...ee()],Fe=()=>[Uo,"none","subgrid",ye,ve],Ne=()=>["auto",{span:["full",Uo,ye,ve]},Uo,ye,ve],_e=()=>[Uo,"auto",ye,ve],Ge=()=>["auto","min","max","fr",ye,ve],Qe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ke=()=>["start","end","center","stretch","center-safe","end-safe"],Ce=()=>["auto",...ee()],je=()=>[is,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ee()],Z=()=>[e,ye,ve],be=()=>[...q(),Bp,zp,{position:[ye,ve]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",zy,jy,{size:[ye,ve]}],fe=()=>[If,Tl,Wi],me=()=>["","none","full",x,ye,ve],pe=()=>["",Be,Tl,Wi],ge=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>[Be,If,Bp,zp],Te=()=>["","none",B,ye,ve],Ee=()=>["none",Be,ye,ve],Re=()=>["none",Be,ye,ve],$e=()=>[Be,ye,ve],oe=()=>[is,"full",...ee()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xn],breakpoint:[Xn],color:[Fy],container:[Xn],"drop-shadow":[Xn],ease:["in","out","in-out"],font:[Ly],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xn],shadow:[Xn],spacing:["px",Be],text:[Xn],"text-shadow":[Xn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",is,ve,ye,P]}],container:["container"],columns:[{columns:[Be,ve,ye,v]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-y":[{"overflow-y":ie()}],overscroll:[{overscroll:ce()}],"overscroll-x":[{"overscroll-x":ce()}],"overscroll-y":[{"overscroll-y":ce()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{start:ae()}],end:[{end:ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Uo,"auto",ye,ve]}],basis:[{basis:[is,"full","auto",v,...ee()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Be,is,"auto","initial","none",ve]}],grow:[{grow:["",Be,ye,ve]}],shrink:[{shrink:["",Be,ye,ve]}],order:[{order:[Uo,"first","last","none",ye,ve]}],"grid-cols":[{"grid-cols":Fe()}],"col-start-end":[{col:Ne()}],"col-start":[{"col-start":_e()}],"col-end":[{"col-end":_e()}],"grid-rows":[{"grid-rows":Fe()}],"row-start-end":[{row:Ne()}],"row-start":[{"row-start":_e()}],"row-end":[{"row-end":_e()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ge()}],"auto-rows":[{"auto-rows":Ge()}],gap:[{gap:ee()}],"gap-x":[{"gap-x":ee()}],"gap-y":[{"gap-y":ee()}],"justify-content":[{justify:[...Qe(),"normal"]}],"justify-items":[{"justify-items":[...ke(),"normal"]}],"justify-self":[{"justify-self":["auto",...ke()]}],"align-content":[{content:["normal",...Qe()]}],"align-items":[{items:[...ke(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ke(),{baseline:["","last"]}]}],"place-content":[{"place-content":Qe()}],"place-items":[{"place-items":[...ke(),"baseline"]}],"place-self":[{"place-self":["auto",...ke()]}],p:[{p:ee()}],px:[{px:ee()}],py:[{py:ee()}],ps:[{ps:ee()}],pe:[{pe:ee()}],pt:[{pt:ee()}],pr:[{pr:ee()}],pb:[{pb:ee()}],pl:[{pl:ee()}],m:[{m:Ce()}],mx:[{mx:Ce()}],my:[{my:Ce()}],ms:[{ms:Ce()}],me:[{me:Ce()}],mt:[{mt:Ce()}],mr:[{mr:Ce()}],mb:[{mb:Ce()}],ml:[{ml:Ce()}],"space-x":[{"space-x":ee()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ee()}],"space-y-reverse":["space-y-reverse"],size:[{size:je()}],w:[{w:[v,"screen",...je()]}],"min-w":[{"min-w":[v,"screen","none",...je()]}],"max-w":[{"max-w":[v,"screen","none","prose",{screen:[h]},...je()]}],h:[{h:["screen",...je()]}],"min-h":[{"min-h":["screen","none",...je()]}],"max-h":[{"max-h":["screen",...je()]}],"font-size":[{text:["base",o,Tl,Wi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,ye,Of]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",If,ve]}],"font-family":[{font:[$y,ve,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,ye,ve]}],"line-clamp":[{"line-clamp":[Be,"none",ye,Of]}],leading:[{leading:[d,...ee()]}],"list-image":[{"list-image":["none",ye,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Z()}],"text-color":[{text:Z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[Be,"from-font","auto",ye,Wi]}],"text-decoration-color":[{decoration:Z()}],"underline-offset":[{"underline-offset":[Be,"auto",ye,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ee()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:be()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Uo,ye,ve],radial:["",ye,ve],conic:[Uo,ye,ve]},By,Ny]}],"bg-color":[{bg:Z()}],"gradient-from-pos":[{from:fe()}],"gradient-via-pos":[{via:fe()}],"gradient-to-pos":[{to:fe()}],"gradient-from":[{from:Z()}],"gradient-via":[{via:Z()}],"gradient-to":[{to:Z()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:Z()}],"border-color-x":[{"border-x":Z()}],"border-color-y":[{"border-y":Z()}],"border-color-s":[{"border-s":Z()}],"border-color-e":[{"border-e":Z()}],"border-color-t":[{"border-t":Z()}],"border-color-r":[{"border-r":Z()}],"border-color-b":[{"border-b":Z()}],"border-color-l":[{"border-l":Z()}],"divide-color":[{divide:Z()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Be,ye,ve]}],"outline-w":[{outline:["",Be,Tl,Wi]}],"outline-color":[{outline:Z()}],shadow:[{shadow:["","none",R,Vu,Wu]}],"shadow-color":[{shadow:Z()}],"inset-shadow":[{"inset-shadow":["none",E,Vu,Wu]}],"inset-shadow-color":[{"inset-shadow":Z()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Z()}],"ring-offset-w":[{"ring-offset":[Be,Wi]}],"ring-offset-color":[{"ring-offset":Z()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":Z()}],"text-shadow":[{"text-shadow":["none",F,Vu,Wu]}],"text-shadow-color":[{"text-shadow":Z()}],opacity:[{opacity:[Be,ye,ve]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Be]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":Z()}],"mask-image-linear-to-color":[{"mask-linear-to":Z()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":Z()}],"mask-image-t-to-color":[{"mask-t-to":Z()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":Z()}],"mask-image-r-to-color":[{"mask-r-to":Z()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":Z()}],"mask-image-b-to-color":[{"mask-b-to":Z()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":Z()}],"mask-image-l-to-color":[{"mask-l-to":Z()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":Z()}],"mask-image-x-to-color":[{"mask-x-to":Z()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":Z()}],"mask-image-y-to-color":[{"mask-y-to":Z()}],"mask-image-radial":[{"mask-radial":[ye,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":Z()}],"mask-image-radial-to-color":[{"mask-radial-to":Z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":q()}],"mask-image-conic-pos":[{"mask-conic":[Be]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":Z()}],"mask-image-conic-to-color":[{"mask-conic-to":Z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:be()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,ve]}],filter:[{filter:["","none",ye,ve]}],blur:[{blur:Te()}],brightness:[{brightness:[Be,ye,ve]}],contrast:[{contrast:[Be,ye,ve]}],"drop-shadow":[{"drop-shadow":["","none",M,Vu,Wu]}],"drop-shadow-color":[{"drop-shadow":Z()}],grayscale:[{grayscale:["",Be,ye,ve]}],"hue-rotate":[{"hue-rotate":[Be,ye,ve]}],invert:[{invert:["",Be,ye,ve]}],saturate:[{saturate:[Be,ye,ve]}],sepia:[{sepia:["",Be,ye,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,ve]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[Be,ye,ve]}],"backdrop-contrast":[{"backdrop-contrast":[Be,ye,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Be,ye,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Be,ye,ve]}],"backdrop-invert":[{"backdrop-invert":["",Be,ye,ve]}],"backdrop-opacity":[{"backdrop-opacity":[Be,ye,ve]}],"backdrop-saturate":[{"backdrop-saturate":[Be,ye,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",Be,ye,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ee()}],"border-spacing-x":[{"border-spacing-x":ee()}],"border-spacing-y":[{"border-spacing-y":ee()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Be,"initial",ye,ve]}],ease:[{ease:["linear","initial",I,ye,ve]}],delay:[{delay:[Be,ye,ve]}],animate:[{animate:["none",W,ye,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[D,ye,ve]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:Ee()}],"rotate-x":[{"rotate-x":Ee()}],"rotate-y":[{"rotate-y":Ee()}],"rotate-z":[{"rotate-z":Ee()}],scale:[{scale:Re()}],"scale-x":[{"scale-x":Re()}],"scale-y":[{"scale-y":Re()}],"scale-z":[{"scale-z":Re()}],"scale-3d":["scale-3d"],skew:[{skew:$e()}],"skew-x":[{"skew-x":$e()}],"skew-y":[{"skew-y":$e()}],transform:[{transform:[ye,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:oe()}],"translate-x":[{"translate-x":oe()}],"translate-y":[{"translate-y":oe()}],"translate-z":[{"translate-z":oe()}],"translate-none":["translate-none"],accent:[{accent:Z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,ve]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ee()}],"scroll-mx":[{"scroll-mx":ee()}],"scroll-my":[{"scroll-my":ee()}],"scroll-ms":[{"scroll-ms":ee()}],"scroll-me":[{"scroll-me":ee()}],"scroll-mt":[{"scroll-mt":ee()}],"scroll-mr":[{"scroll-mr":ee()}],"scroll-mb":[{"scroll-mb":ee()}],"scroll-ml":[{"scroll-ml":ee()}],"scroll-p":[{"scroll-p":ee()}],"scroll-px":[{"scroll-px":ee()}],"scroll-py":[{"scroll-py":ee()}],"scroll-ps":[{"scroll-ps":ee()}],"scroll-pe":[{"scroll-pe":ee()}],"scroll-pt":[{"scroll-pt":ee()}],"scroll-pr":[{"scroll-pr":ee()}],"scroll-pb":[{"scroll-pb":ee()}],"scroll-pl":[{"scroll-pl":ee()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,ve]}],fill:[{fill:["none",...Z()]}],"stroke-w":[{stroke:[Be,Tl,Wi,Of]}],stroke:[{stroke:["none",...Z()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},fs=Cy(Wy);function Tm(e){var r,o,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(r=0;r<a;r++)e[r]&&(o=Tm(e[r]))&&(i&&(i+=" "),i+=o)}else for(o in e)e[o]&&(i&&(i+=" "),i+=o);return i}function Ll(){for(var e,r,o=0,i="",a=arguments.length;o<a;o++)(e=arguments[o])&&(r=Tm(e))&&(i&&(i+=" "),i+=r);return i}function gt(...e){return fs(Ll(e))}const Vy="whitespace-nowrap font-normal flex items-center justify-center",Yy="focus:outline focus:outline-3 focus:outline-primary-500/[.3]",Gy="disabled:opacity-15 disabled:pointer-events-none",Rm=e=>e==="grayLight"||e==="warning",Pm=(e,r)=>!r||r==="none"?"":e(),Qy=(e,r)=>Pm(()=>{const o=e==="gray400"?"gray":e,i=Rm(o)?"active:text-black":"active:text-white";return e==="primary"?r?`bg-${o}-800 text-white`:`hover:bg-${o}-800 active:bg-${o}-800 hover:text-white ${i}`:o==="grayDark"?r?"bg-gray-800 text-white":`hover:bg-gray-800 active:bg-gray-800 hover:text-white ${i}`:o==="grayLight"?r?"bg-gray-50 text-black":`hover:bg-gray-50 active:bg-gray-50 hover:text-black ${i}`:e==="gray400"?r?`bg-${o}-500 text-white`:`hover:bg-${o}-500 active:bg-${o}-500 hover:text-white ${i}`:r?`bg-${o}-700 text-white`:`hover:bg-${o}-600 active:bg-${o}-700 hover:text-white ${i}`},e),Xy=e=>Pm(()=>{const r=Rm(e)?"text-black":"text-white";return e==="primary"?`bg-primary-600 ${r}`:e==="gray400"?`bg-gray-400 ${r}`:`bg-${e}-500 ${r}`},e),qy=e=>e&&{dark:"text-dark hover:text-dark",yellow:"text-yellow hover:text-yellow",gray:"text-gray-500 hover:text-gray-800",primary:"text-primary-600 hover:text-primary-800",secondary:"text-secondary-500 hover:text-secondary-800",success:"text-success-500 hover:text-success-800",info:"text-info-500 hover:text-info-800",warning:"text-warning-500 hover:text-warning-800",danger:"text-danger-500 hover:text-danger-800",steel:"text-steel-500 hover:text-steel-800",orange:"text-orange-500 hover:text-orange-800",purple:"text-purple-500 hover:text-purple-800","fiserv-orange":"text-fiserv-orange-500 hover:text-fiserv-orange-800",grayDark:"text-gray-800 hover:text-gray-900",grayLight:"text-gray-50 hover:text-gray-400",gray400:"text-gray-400 hover:text-gray-700"}[e]||"",Jy=(e,r)=>e&&{dark:r?"bg-dark text-white":"text-dark hover:bg-dark hover:text-white",yellow:r?"bg-yellow text-white":"text-yellow hover:bg-yellow hover:text-white",gray:r?"bg-gray-500 text-white":"text-gray-500 hover:bg-gray-500 hover:text-white",primary:r?"bg-primary-800 text-white":"text-primary-600 hover:bg-primary-800 hover:text-white",secondary:r?"bg-secondary-500 text-white":"text-secondary-500 hover:bg-secondary-500 hover:text-white",success:r?"bg-success-500 text-white":"text-success-500 hover:bg-success-500 hover:text-white",info:r?"bg-info-500 text-white":"text-info-500 hover:bg-info-500 hover:text-white",warning:r?"bg-warning-500 text-white":"text-warning-500 hover:bg-warning-500 hover:text-white",danger:r?"bg-danger-500 text-white":"text-danger-500 hover:bg-danger-500 hover:text-white",steel:r?"bg-steel-500 text-white":"text-steel-500 hover:bg-steel-500 hover:text-white",orange:r?"bg-orange-500 text-white":"text-orange-500 hover:bg-orange-500 hover:text-white",purple:r?"bg-purple-500 text-white":"text-purple-500 hover:bg-purple-500 hover:text-white","fiserv-orange":r?"bg-fiserv-orange-500 text-white":"text-fiserv-orange-500 hover:bg-fiserv-orange-500 hover:text-white",grayDark:r?"bg-gray-900 text-white":"text-gray-800 hover:bg-gray-900 hover:text-white",grayLight:r?"bg-gray-400 text-white":"text-gray-50 hover:bg-gray-400 hover:text-white",gray400:r?"bg-gray-500 text-white":"text-gray-400 hover:bg-gray-500 hover:text-white"}[e]||"",Ky=(e,r)=>!e||e==="none"?"":e==="primary"?`border border-primary-600 ${r?"":"text-primary-600"}`:e==="grayDark"?`border border-gray-800 ${r?"":"text-gray-800"}`:e==="grayLight"?`border border-gray-50 ${r?"":"text-gray-400"}`:e==="gray400"?`border border-gray-400 ${r?"":"text-gray-400"}`:`border border-${e}-500 ${r?"":`text-${e}-500`}`,Zy=(e,r)=>({solid:Xy(e),link:qy(e),linkHoverSolid:Jy(e,r),outline:Ky(e,r)}),eb={none:"",default:"min-w-fit h-[40px] text-base px-3",base:"w-full md:min-w-fit h-[40px] text-base px-3",small:"min-w-[106px] h-[30px] text-sm px-2",normal:"min-w-[140px] h-[38px] text-base px-3",large:"min-w-[160px] h-[40px] text-lg px-3",NormalBlock:"w-full h-[40px] text-lg px-3",box:"w-[38px] h-[38px]",smallCollapse:"h-[30px] text-sm px-2",normalCollapse:"h-[38px] text-base px-3"},tb={none:"",default:"rounded",pill:"rounded-pill"},rb=({active:e=!1,children:r,color:o="primary",size:i="normal",category:a="solid",className:d,type:h="button",rounded:v="default",style:m={},primaryColor:x,...R},E)=>{var U;const F=Gy,M=/link/.test(a)?null:Qy(o,e),B=Yy,D=eb[i],P=(U=Zy(o,e))==null?void 0:U[a],I=fs(M,P),W=tb[v];return Q.jsx("button",{...R,style:{...m,transition:"color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out",backgroundColor:x?x+"!important":void 0},type:h,ref:E,className:fs(Vy,B,F,D,I,W,d,"cursor-pointer"),children:r})},jl=V.forwardRef(rb),nb=({isOpen:e,close:r,title:o,dismissOptions:i,confirmOptions:a,children:d,className:h})=>Q.jsx(Q.Fragment,{children:e&&uc.createPortal(Q.jsxs($d.div,{className:gt("relative z-50 transition duration-300 ease-out data-closed:opacity-0",h),children:[Q.jsx("div",{className:"fixed inset-0 bg-black/30"}),Q.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:Q.jsxs("div",{className:"max-w-lg divide-y divide-gray-100 bg-white rounded-sm shadow-xl",children:[o&&Q.jsx("div",{className:" text-gray-900 p-4",children:o}),Q.jsx("div",{className:"p-4",children:d}),i||a?Q.jsxs("div",{className:"flex gap-4 p-4",children:[i?Q.jsx(jl,{className:"flex-1",onClick:()=>{i.onClick(),r()},size:"small",color:"secondary",children:i.label}):Q.jsx(Q.Fragment,{}),a?Q.jsx(jl,{className:"flex-1",disabled:a.disabled,onClick:()=>{a.onClick(),r()},size:"small",color:"primary",children:a.label}):Q.jsx(Q.Fragment,{})]}):Q.jsx(Q.Fragment,{})]})}),Q.jsx("style",{type:"text/css",children:Vd})]}),document.body,"confidence-modal")}),Am=typeof document<"u"?V.useLayoutEffect:()=>{};function ob(e){const r=V.useRef(null);return Am(()=>{r.current=e},[e]),V.useCallback((...o)=>{const i=r.current;return i==null?void 0:i(...o)},[])}const ai=e=>{var r;return(r=e==null?void 0:e.ownerDocument)!==null&&r!==void 0?r:document},Vi=e=>e&&"window"in e&&e.window===e?e:ai(e).defaultView||window;function ib(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function ab(e){return ib(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let sb=!1;function Gd(){return sb}function Im(e,r){if(!Gd())return r&&e?e.contains(r):!1;if(!e||!r)return!1;let o=r;for(;o!==null;){if(o===e)return!0;o.tagName==="SLOT"&&o.assignedSlot?o=o.assignedSlot.parentNode:ab(o)?o=o.host:o=o.parentNode}return!1}const cd=(e=document)=>{var r;if(!Gd())return e.activeElement;let o=e.activeElement;for(;o&&"shadowRoot"in o&&(!((r=o.shadowRoot)===null||r===void 0)&&r.activeElement);)o=o.shadowRoot.activeElement;return o};function Om(e){return Gd()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function cc(e){var r;return typeof window>"u"||window.navigator==null?!1:((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.brands.some(o=>e.test(o.brand)))||e.test(window.navigator.userAgent)}function Qd(e){var r;return typeof window<"u"&&window.navigator!=null?e.test(((r=window.navigator.userAgentData)===null||r===void 0?void 0:r.platform)||window.navigator.platform):!1}function oo(e){if(process.env.NODE_ENV==="test")return e;let r=null;return()=>(r==null&&(r=e()),r)}const Xd=oo(function(){return Qd(/^Mac/i)}),lb=oo(function(){return Qd(/^iPhone/i)}),ub=oo(function(){return Qd(/^iPad/i)||Xd()&&navigator.maxTouchPoints>1}),cb=oo(function(){return lb()||ub()});oo(function(){return Xd()||cb()});oo(function(){return cc(/AppleWebKit/i)&&!fb()});const fb=oo(function(){return cc(/Chrome/i)}),db=oo(function(){return cc(/Android/i)});oo(function(){return cc(/Firefox/i)});function Fm(){let e=V.useRef(new Map),r=V.useCallback((a,d,h,v)=>{let m=v!=null&&v.once?(...x)=>{e.current.delete(h),h(...x)}:h;e.current.set(h,{type:d,eventTarget:a,fn:m,options:v}),a.addEventListener(d,m,v)},[]),o=V.useCallback((a,d,h,v)=>{var m;let x=((m=e.current.get(h))===null||m===void 0?void 0:m.fn)||h;a.removeEventListener(d,x,v),e.current.delete(h)},[]),i=V.useCallback(()=>{e.current.forEach((a,d)=>{o(a.eventTarget,a.type,d,a.options)})},[o]);return V.useEffect(()=>i,[i]),{addGlobalListener:r,removeGlobalListener:o,removeAllGlobalListeners:i}}function pb(e){return e.mozInputSource===0&&e.isTrusted?!0:db()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Mm(e){let r=e;return r.nativeEvent=e,r.isDefaultPrevented=()=>r.defaultPrevented,r.isPropagationStopped=()=>r.cancelBubble,r.persist=()=>{},r}function hb(e,r){Object.defineProperty(e,"target",{value:r}),Object.defineProperty(e,"currentTarget",{value:r})}function Dm(e){let r=V.useRef({isFocused:!1,observer:null});Am(()=>{const i=r.current;return()=>{i.observer&&(i.observer.disconnect(),i.observer=null)}},[]);let o=ob(i=>{e==null||e(i)});return V.useCallback(i=>{if(i.target instanceof HTMLButtonElement||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLSelectElement){r.current.isFocused=!0;let a=i.target,d=h=>{if(r.current.isFocused=!1,a.disabled){let v=Mm(h);o(v)}r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)};a.addEventListener("focusout",d,{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&a.disabled){var h;(h=r.current.observer)===null||h===void 0||h.disconnect();let v=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:v})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:v}))}}),r.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[o])}let mb=!1,Yl=null,fd=new Set,Ol=new Map,na=!1,dd=!1;const gb={Tab:!0,Escape:!0};function qd(e,r){for(let o of fd)o(e,r)}function vb(e){return!(e.metaKey||!Xd()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function rc(e){na=!0,vb(e)&&(Yl="keyboard",qd("keyboard",e))}function Dr(e){Yl="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(na=!0,qd("pointer",e))}function _m(e){pb(e)&&(na=!0,Yl="virtual")}function Lm(e){e.target===window||e.target===document||mb||!e.isTrusted||(!na&&!dd&&(Yl="virtual",qd("virtual",e)),na=!1,dd=!1)}function jm(){na=!1,dd=!0}function pd(e){if(typeof window>"u"||typeof document>"u"||Ol.get(Vi(e)))return;const r=Vi(e),o=ai(e);let i=r.HTMLElement.prototype.focus;r.HTMLElement.prototype.focus=function(){na=!0,i.apply(this,arguments)},o.addEventListener("keydown",rc,!0),o.addEventListener("keyup",rc,!0),o.addEventListener("click",_m,!0),r.addEventListener("focus",Lm,!0),r.addEventListener("blur",jm,!1),typeof PointerEvent<"u"?(o.addEventListener("pointerdown",Dr,!0),o.addEventListener("pointermove",Dr,!0),o.addEventListener("pointerup",Dr,!0)):process.env.NODE_ENV==="test"&&(o.addEventListener("mousedown",Dr,!0),o.addEventListener("mousemove",Dr,!0),o.addEventListener("mouseup",Dr,!0)),r.addEventListener("beforeunload",()=>{Nm(e)},{once:!0}),Ol.set(r,{focus:i})}const Nm=(e,r)=>{const o=Vi(e),i=ai(e);r&&i.removeEventListener("DOMContentLoaded",r),Ol.has(o)&&(o.HTMLElement.prototype.focus=Ol.get(o).focus,i.removeEventListener("keydown",rc,!0),i.removeEventListener("keyup",rc,!0),i.removeEventListener("click",_m,!0),o.removeEventListener("focus",Lm,!0),o.removeEventListener("blur",jm,!1),typeof PointerEvent<"u"?(i.removeEventListener("pointerdown",Dr,!0),i.removeEventListener("pointermove",Dr,!0),i.removeEventListener("pointerup",Dr,!0)):process.env.NODE_ENV==="test"&&(i.removeEventListener("mousedown",Dr,!0),i.removeEventListener("mousemove",Dr,!0),i.removeEventListener("mouseup",Dr,!0)),Ol.delete(o))};function yb(e){const r=ai(e);let o;return r.readyState!=="loading"?pd(e):(o=()=>{pd(e)},r.addEventListener("DOMContentLoaded",o)),()=>Nm(e,o)}typeof document<"u"&&yb();function $m(){return Yl!=="pointer"}const bb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function xb(e,r,o){let i=ai(o==null?void 0:o.target);const a=typeof window<"u"?Vi(o==null?void 0:o.target).HTMLInputElement:HTMLInputElement,d=typeof window<"u"?Vi(o==null?void 0:o.target).HTMLTextAreaElement:HTMLTextAreaElement,h=typeof window<"u"?Vi(o==null?void 0:o.target).HTMLElement:HTMLElement,v=typeof window<"u"?Vi(o==null?void 0:o.target).KeyboardEvent:KeyboardEvent;return e=e||i.activeElement instanceof a&&!bb.has(i.activeElement.type)||i.activeElement instanceof d||i.activeElement instanceof h&&i.activeElement.isContentEditable,!(e&&r==="keyboard"&&o instanceof v&&!gb[o.key])}function wb(e,r,o){pd(),V.useEffect(()=>{let i=(a,d)=>{xb(!!(o!=null&&o.isTextInput),a,d)&&e($m())};return fd.add(i),()=>{fd.delete(i)}},r)}function Sb(e){let{isDisabled:r,onFocus:o,onBlur:i,onFocusChange:a}=e;const d=V.useCallback(m=>{if(m.target===m.currentTarget)return i&&i(m),a&&a(!1),!0},[i,a]),h=Dm(d),v=V.useCallback(m=>{const x=ai(m.target),R=x?cd(x):cd();m.target===m.currentTarget&&R===Om(m.nativeEvent)&&(o&&o(m),a&&a(!0),h(m))},[a,o,h]);return{focusProps:{onFocus:!r&&(o||a||i)?v:void 0,onBlur:!r&&(i||a)?d:void 0}}}function kb(e){let{isDisabled:r,onBlurWithin:o,onFocusWithin:i,onFocusWithinChange:a}=e,d=V.useRef({isFocusWithin:!1}),{addGlobalListener:h,removeAllGlobalListeners:v}=Fm(),m=V.useCallback(E=>{E.currentTarget.contains(E.target)&&d.current.isFocusWithin&&!E.currentTarget.contains(E.relatedTarget)&&(d.current.isFocusWithin=!1,v(),o&&o(E),a&&a(!1))},[o,a,d,v]),x=Dm(m),R=V.useCallback(E=>{if(!E.currentTarget.contains(E.target))return;const F=ai(E.target),M=cd(F);if(!d.current.isFocusWithin&&M===Om(E.nativeEvent)){i&&i(E),a&&a(!0),d.current.isFocusWithin=!0,x(E);let B=E.currentTarget;h(F,"focus",D=>{if(d.current.isFocusWithin&&!Im(B,D.target)){let P=new F.defaultView.FocusEvent("blur",{relatedTarget:D.target});hb(P,B);let I=Mm(P);m(I)}},{capture:!0})}},[i,a,x,h,m]);return r?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:R,onBlur:m}}}let nc=!1,Ff=0;function hd(){nc=!0,setTimeout(()=>{nc=!1},50)}function Up(e){e.pointerType==="touch"&&hd()}function Eb(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Up):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",hd),Ff++,()=>{Ff--,!(Ff>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Up):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",hd))}}function Cb(e){let{onHoverStart:r,onHoverChange:o,onHoverEnd:i,isDisabled:a}=e,[d,h]=V.useState(!1),v=V.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;V.useEffect(Eb,[]);let{addGlobalListener:m,removeAllGlobalListeners:x}=Fm(),{hoverProps:R,triggerHoverEnd:E}=V.useMemo(()=>{let F=(D,P)=>{if(v.pointerType=P,a||P==="touch"||v.isHovered||!D.currentTarget.contains(D.target))return;v.isHovered=!0;let I=D.currentTarget;v.target=I,m(ai(D.target),"pointerover",W=>{v.isHovered&&v.target&&!Im(v.target,W.target)&&M(W,W.pointerType)},{capture:!0}),r&&r({type:"hoverstart",target:I,pointerType:P}),o&&o(!0),h(!0)},M=(D,P)=>{let I=v.target;v.pointerType="",v.target=null,!(P==="touch"||!v.isHovered||!I)&&(v.isHovered=!1,x(),i&&i({type:"hoverend",target:I,pointerType:P}),o&&o(!1),h(!1))},B={};return typeof PointerEvent<"u"?(B.onPointerEnter=D=>{nc&&D.pointerType==="mouse"||F(D,D.pointerType)},B.onPointerLeave=D=>{!a&&D.currentTarget.contains(D.target)&&M(D,D.pointerType)}):process.env.NODE_ENV==="test"&&(B.onTouchStart=()=>{v.ignoreEmulatedMouseEvents=!0},B.onMouseEnter=D=>{!v.ignoreEmulatedMouseEvents&&!nc&&F(D,"mouse"),v.ignoreEmulatedMouseEvents=!1},B.onMouseLeave=D=>{!a&&D.currentTarget.contains(D.target)&&M(D,"mouse")}),{hoverProps:B,triggerHoverEnd:M}},[r,o,i,a,v,m,x]);return V.useEffect(()=>{a&&E({currentTarget:v.target},v.pointerType)},[a]),{hoverProps:R,isHovered:d}}function Tb(e={}){let{autoFocus:r=!1,isTextInput:o,within:i}=e,a=V.useRef({isFocused:!1,isFocusVisible:r||$m()}),[d,h]=V.useState(!1),[v,m]=V.useState(()=>a.current.isFocused&&a.current.isFocusVisible),x=V.useCallback(()=>m(a.current.isFocused&&a.current.isFocusVisible),[]),R=V.useCallback(M=>{a.current.isFocused=M,h(M),x()},[x]);wb(M=>{a.current.isFocusVisible=M,x()},[],{isTextInput:o});let{focusProps:E}=Sb({isDisabled:i,onFocusChange:R}),{focusWithinProps:F}=kb({isDisabled:!i,onFocusWithinChange:R});return{isFocused:d,isFocusVisible:v,focusProps:i?F:E}}var Rb=Object.defineProperty,Pb=(e,r,o)=>r in e?Rb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,Mf=(e,r,o)=>(Pb(e,typeof r!="symbol"?r+"":r,o),o);let Ab=class{constructor(){Mf(this,"current",this.detect()),Mf(this,"handoffState","pending"),Mf(this,"currentId",0)}set(r){this.current!==r&&(this.handoffState="pending",this.currentId=0,this.current=r)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ib=new Ab,Jd=(e,r)=>{Ib.isServer?V.useEffect(e,r):V.useLayoutEffect(e,r)};function Ob(e){let r=V.useRef(e);return Jd(()=>{r.current=e},[e]),r}let fc=function(e){let r=Ob(e);return V.useCallback((...o)=>r.current(...o),[r])},zm=V.createContext(void 0);function dc(){return V.useContext(zm)}function Fb({value:e,children:r}){return V.createElement(zm.Provider,{value:e},r)}function Hp(...e){return Array.from(new Set(e.flatMap(r=>typeof r=="string"?r.split(" "):[]))).filter(Boolean).join(" ")}function Bm(e,r,...o){if(e in r){let a=r[e];return typeof a=="function"?a(...o):a}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Bm),i}var Mb=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Mb||{}),Db=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Db||{});function Gl(){let e=Lb();return V.useCallback(r=>_b({mergeRefs:e,...r}),[e])}function _b({ourProps:e,theirProps:r,slot:o,defaultTag:i,features:a,visible:d=!0,name:h,mergeRefs:v}){v=v??jb;let m=Um(r,e);if(d)return Yu(m,o,i,h,v);let x=a??0;if(x&2){let{static:R=!1,...E}=m;if(R)return Yu(E,o,i,h,v)}if(x&1){let{unmount:R=!0,...E}=m;return Bm(R?0:1,{0(){return null},1(){return Yu({...E,hidden:!0,style:{display:"none"}},o,i,h,v)}})}return Yu(m,o,i,h,v)}function Yu(e,r={},o,i,a){let{as:d=o,children:h,refName:v="ref",...m}=Df(e,["unmount","static"]),x=e.ref!==void 0?{[v]:e.ref}:{},R=typeof h=="function"?h(r):h;"className"in m&&m.className&&typeof m.className=="function"&&(m.className=m.className(r)),m["aria-labelledby"]&&m["aria-labelledby"]===m.id&&(m["aria-labelledby"]=void 0);let E={};if(r){let F=!1,M=[];for(let[B,D]of Object.entries(r))typeof D=="boolean"&&(F=!0),D===!0&&M.push(B.replace(/([A-Z])/g,P=>`-${P.toLowerCase()}`));if(F){E["data-headlessui-state"]=M.join(" ");for(let B of M)E[`data-${B}`]=""}}if(d===V.Fragment&&(Object.keys(as(m)).length>0||Object.keys(as(E)).length>0))if(!V.isValidElement(R)||Array.isArray(R)&&R.length>1){if(Object.keys(as(m)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(as(m)).concat(Object.keys(as(E))).map(F=>` - ${F}`).join(`
|
|
126
126
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(F=>` - ${F}`).join(`
|
|
127
127
|
`)].join(`
|
|
128
128
|
`))}else{let F=R.props,M=F==null?void 0:F.className,B=typeof M=="function"?(...I)=>Hp(M(...I),m.className):Hp(M,m.className),D=B?{className:B}:{},P=Um(R.props,as(Df(m,["ref"])));for(let I in E)I in P&&delete E[I];return V.cloneElement(R,Object.assign({},P,E,x,{ref:a($b(R),x.ref)},D))}return V.createElement(d,Object.assign({},Df(m,["ref"]),d!==V.Fragment&&x,d!==V.Fragment&&E),R)}function Lb(){let e=V.useRef([]),r=V.useCallback(o=>{for(let i of e.current)i!=null&&(typeof i=="function"?i(o):i.current=o)},[]);return(...o)=>{if(!o.every(i=>i==null))return e.current=o,r}}function jb(...e){return e.every(r=>r==null)?void 0:r=>{for(let o of e)o!=null&&(typeof o=="function"?o(r):o.current=r)}}function Um(...e){if(e.length===0)return{};if(e.length===1)return e[0];let r={},o={};for(let i of e)for(let a in i)a.startsWith("on")&&typeof i[a]=="function"?(o[a]!=null||(o[a]=[]),o[a].push(i[a])):r[a]=i[a];if(r.disabled||r["aria-disabled"])for(let i in o)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(i)&&(o[i]=[a=>{var d;return(d=a==null?void 0:a.preventDefault)==null?void 0:d.call(a)}]);for(let i in o)Object.assign(r,{[i](a,...d){let h=o[i];for(let v of h){if((a instanceof Event||(a==null?void 0:a.nativeEvent)instanceof Event)&&a.defaultPrevented)return;v(a,...d)}}});return r}function Nb(...e){if(e.length===0)return{};if(e.length===1)return e[0];let r={},o={};for(let i of e)for(let a in i)a.startsWith("on")&&typeof i[a]=="function"?(o[a]!=null||(o[a]=[]),o[a].push(i[a])):r[a]=i[a];for(let i in o)Object.assign(r,{[i](...a){let d=o[i];for(let h of d)h==null||h(...a)}});return r}function Ql(e){var r;return Object.assign(V.forwardRef(e),{displayName:(r=e.displayName)!=null?r:e.name})}function as(e){let r=Object.assign({},e);for(let o in r)r[o]===void 0&&delete r[o];return r}function Df(e,r=[]){let o=Object.assign({},e);for(let i of r)i in o&&delete o[i];return o}function $b(e){return V.version.split(".")[0]>="19"?e.props.ref:e.ref}let zb="span";var Hm=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Hm||{});function Bb(e,r){var o;let{features:i=1,...a}=e,d={ref:r,"aria-hidden":(i&2)===2?!0:(o=a["aria-hidden"])!=null?o:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Gl()({ourProps:d,theirProps:a,slot:{},defaultTag:zb,name:"Hidden"})}let Ub=Ql(Bb),Hb=V.createContext(null);function Wb(e){let[r,o]=V.useState(null);return V.createElement(Hb.Provider,{value:{target:r}},e.children,V.createElement(Ub,{features:Hm.Hidden,ref:o}))}let Wm=V.createContext(void 0);function Vm(){return V.useContext(Wm)}function Vb({id:e,children:r}){return V.createElement(Wm.Provider,{value:e},r)}function Yb(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function Ym(e){return Yb(e)&&"tagName"in e}function Gm(e){return Ym(e)&&"accessKey"in e}function Gb(e){return Gm(e)&&e.nodeName==="INPUT"}function Wp(e){return Gm(e)&&e.nodeName==="LABEL"}function Qb(e){return Ym(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}let Xb=Symbol();function Qm(...e){let r=V.useRef(e);V.useEffect(()=>{r.current=e},[e]);let o=fc(i=>{for(let a of r.current)a!=null&&(typeof a=="function"?a(i):a.current=i)});return e.every(i=>i==null||(i==null?void 0:i[Xb]))?void 0:o}let pc=V.createContext(null);pc.displayName="DescriptionContext";function Xm(){let e=V.useContext(pc);if(e===null){let r=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,Xm),r}return e}function qb(){var e,r;return(r=(e=V.useContext(pc))==null?void 0:e.value)!=null?r:void 0}function Jb(){let[e,r]=V.useState([]);return[e.length>0?e.join(" "):void 0,V.useMemo(()=>function(o){let i=fc(d=>(r(h=>[...h,d]),()=>r(h=>{let v=h.slice(),m=v.indexOf(d);return m!==-1&&v.splice(m,1),v}))),a=V.useMemo(()=>({register:i,slot:o.slot,name:o.name,props:o.props,value:o.value}),[i,o.slot,o.name,o.props,o.value]);return V.createElement(pc.Provider,{value:a},o.children)},[r])]}let Kb="p";function Zb(e,r){let o=V.useId(),i=dc(),{id:a=`headlessui-description-${o}`,...d}=e,h=Xm(),v=Qm(r);Jd(()=>h.register(a),[a,h.register]);let m=i||!1,x=V.useMemo(()=>({...h.slot,disabled:m}),[h.slot,m]),R={ref:v,...h.props,id:a};return Gl()({ourProps:R,theirProps:d,slot:x,defaultTag:Kb,name:h.name||"Description"})}let e0=Ql(Zb),t0=Object.assign(e0,{}),hc=V.createContext(null);hc.displayName="LabelContext";function qm(){let e=V.useContext(hc);if(e===null){let r=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(r,qm),r}return e}function Jm(e){var r,o,i;let a=(o=(r=V.useContext(hc))==null?void 0:r.value)!=null?o:void 0;return((i=void 0)!=null?i:0)>0?[a,...e].filter(Boolean).join(" "):a}function r0({inherit:e=!1}={}){let r=Jm(),[o,i]=V.useState([]),a=e?[r,...o].filter(Boolean):o;return[a.length>0?a.join(" "):void 0,V.useMemo(()=>function(d){let h=fc(m=>(i(x=>[...x,m]),()=>i(x=>{let R=x.slice(),E=R.indexOf(m);return E!==-1&&R.splice(E,1),R}))),v=V.useMemo(()=>({register:h,slot:d.slot,name:d.name,props:d.props,value:d.value}),[h,d.slot,d.name,d.props,d.value]);return V.createElement(hc.Provider,{value:v},d.children)},[i])]}let n0="label";function o0(e,r){var o;let i=V.useId(),a=qm(),d=Vm(),h=dc(),{id:v=`headlessui-label-${i}`,htmlFor:m=d??((o=a.props)==null?void 0:o.htmlFor),passive:x=!1,...R}=e,E=Qm(r);Jd(()=>a.register(v),[v,a.register]);let F=fc(P=>{let I=P.currentTarget;if(!(P.target!==P.currentTarget&&Qb(P.target))&&(Wp(I)&&P.preventDefault(),a.props&&"onClick"in a.props&&typeof a.props.onClick=="function"&&a.props.onClick(P),Wp(I))){let W=document.getElementById(I.htmlFor);if(W){let U=W.getAttribute("disabled");if(U==="true"||U==="")return;let q=W.getAttribute("aria-disabled");if(q==="true"||q==="")return;(Gb(W)&&(W.type==="file"||W.type==="radio"||W.type==="checkbox")||W.role==="radio"||W.role==="checkbox"||W.role==="switch")&&W.click(),W.focus({preventScroll:!0})}}}),M=h||!1,B=V.useMemo(()=>({...a.slot,disabled:M}),[a.slot,M]),D={ref:E,...a.props,id:v,htmlFor:m,onClick:F};return x&&("onClick"in D&&(delete D.htmlFor,delete D.onClick),"onClick"in R&&delete R.onClick),Gl()({ourProps:D,theirProps:R,slot:B,defaultTag:m?n0:"div",name:a.name||"Label"})}let i0=Ql(o0),a0=Object.assign(i0,{});function mc(){return typeof window<"u"}function Ms(e){return Km(e)?(e.nodeName||"").toLowerCase():"#document"}function gr(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function io(e){var r;return(r=(Km(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function Km(e){return mc()?e instanceof Node||e instanceof gr(e).Node:!1}function pt(e){return mc()?e instanceof Element||e instanceof gr(e).Element:!1}function Zr(e){return mc()?e instanceof HTMLElement||e instanceof gr(e).HTMLElement:!1}function md(e){return!mc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gr(e).ShadowRoot}function Xl(e){const{overflow:r,overflowX:o,overflowY:i,display:a}=_r(e);return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&!["inline","contents"].includes(a)}function s0(e){return["table","td","th"].includes(Ms(e))}function gc(e){return[":popover-open",":modal"].some(r=>{try{return e.matches(r)}catch{return!1}})}function Kd(e){const r=vc(),o=pt(e)?_r(e):e;return["transform","translate","scale","rotate","perspective"].some(i=>o[i]?o[i]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(o.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(o.contain||"").includes(i))}function l0(e){let r=to(e);for(;Zr(r)&&!Zn(r);){if(Kd(r))return r;if(gc(r))return null;r=to(r)}return null}function vc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zn(e){return["html","body","#document"].includes(Ms(e))}function _r(e){return gr(e).getComputedStyle(e)}function yc(e){return pt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function to(e){if(Ms(e)==="html")return e;const r=e.assignedSlot||e.parentNode||md(e)&&e.host||io(e);return md(r)?r.host:r}function Zm(e){const r=to(e);return Zn(r)?e.ownerDocument?e.ownerDocument.body:e.body:Zr(r)&&Xl(r)?r:Zm(r)}function ds(e,r,o){var i;r===void 0&&(r=[]),o===void 0&&(o=!0);const a=Zm(e),d=a===((i=e.ownerDocument)==null?void 0:i.body),h=gr(a);if(d){const v=gd(h);return r.concat(h,h.visualViewport||[],Xl(a)?a:[],v&&o?ds(v):[])}return r.concat(a,ds(a,[],o))}function gd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Vp=Math.min,Fl=Math.max,oc=Math.round,Sn=e=>({x:e,y:e});function eg(e){return e.split("-")[0]}function u0(e){return e.split("-")[1]}function c0(e){return e==="x"?"y":"x"}function f0(e){return e==="y"?"height":"width"}function tg(e){return["top","bottom"].includes(eg(e))?"y":"x"}function d0(e){return c0(tg(e))}function rg(e){const{x:r,y:o,width:i,height:a}=e;return{width:i,height:a,top:o,left:r,right:r+i,bottom:o+a,x:r,y:o}}function Yp(e,r,o){let{reference:i,floating:a}=e;const d=tg(r),h=d0(r),v=f0(h),m=eg(r),x=d==="y",R=i.x+i.width/2-a.width/2,E=i.y+i.height/2-a.height/2,F=i[v]/2-a[v]/2;let M;switch(m){case"top":M={x:R,y:i.y-a.height};break;case"bottom":M={x:R,y:i.y+i.height};break;case"right":M={x:i.x+i.width,y:E};break;case"left":M={x:i.x-a.width,y:E};break;default:M={x:i.x,y:i.y}}switch(u0(r)){case"start":M[h]-=F*(o&&x?-1:1);break;case"end":M[h]+=F*(o&&x?-1:1);break}return M}const p0=async(e,r,o)=>{const{placement:i="bottom",strategy:a="absolute",middleware:d=[],platform:h}=o,v=d.filter(Boolean),m=await(h.isRTL==null?void 0:h.isRTL(r));let x=await h.getElementRects({reference:e,floating:r,strategy:a}),{x:R,y:E}=Yp(x,i,m),F=i,M={},B=0;for(let D=0;D<v.length;D++){const{name:P,fn:I}=v[D],{x:W,y:U,data:q,reset:_}=await I({x:R,y:E,initialPlacement:i,placement:F,strategy:a,middlewareData:M,rects:x,platform:h,elements:{reference:e,floating:r}});R=W??R,E=U??E,M={...M,[P]:{...M[P],...q}},_&&B<=50&&(B++,typeof _=="object"&&(_.placement&&(F=_.placement),_.rects&&(x=_.rects===!0?await h.getElementRects({reference:e,floating:r,strategy:a}):_.rects),{x:R,y:E}=Yp(x,F,m)),D=-1)}return{x:R,y:E,placement:F,strategy:a,middlewareData:M}};function ng(e){const r=_r(e);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const a=Zr(e),d=a?e.offsetWidth:o,h=a?e.offsetHeight:i,v=oc(o)!==d||oc(i)!==h;return v&&(o=d,i=h),{width:o,height:i,$:v}}function og(e){return pt(e)?e:e.contextElement}function ps(e){const r=og(e);if(!Zr(r))return Sn(1);const o=r.getBoundingClientRect(),{width:i,height:a,$:d}=ng(r);let h=(d?oc(o.width):o.width)/i,v=(d?oc(o.height):o.height)/a;return(!h||!Number.isFinite(h))&&(h=1),(!v||!Number.isFinite(v))&&(v=1),{x:h,y:v}}const h0=Sn(0);function ig(e){const r=gr(e);return!vc()||!r.visualViewport?h0:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function m0(e,r,o){return r===void 0&&(r=!1),!o||r&&o!==gr(e)?!1:r}function Nl(e,r,o,i){r===void 0&&(r=!1),o===void 0&&(o=!1);const a=e.getBoundingClientRect(),d=og(e);let h=Sn(1);r&&(i?pt(i)&&(h=ps(i)):h=ps(e));const v=m0(d,o,i)?ig(d):Sn(0);let m=(a.left+v.x)/h.x,x=(a.top+v.y)/h.y,R=a.width/h.x,E=a.height/h.y;if(d){const F=gr(d),M=i&&pt(i)?gr(i):i;let B=F,D=gd(B);for(;D&&i&&M!==B;){const P=ps(D),I=D.getBoundingClientRect(),W=_r(D),U=I.left+(D.clientLeft+parseFloat(W.paddingLeft))*P.x,q=I.top+(D.clientTop+parseFloat(W.paddingTop))*P.y;m*=P.x,x*=P.y,R*=P.x,E*=P.y,m+=U,x+=q,B=gr(D),D=gd(B)}}return rg({width:R,height:E,x:m,y:x})}function Zd(e,r){const o=yc(e).scrollLeft;return r?r.left+o:Nl(io(e)).left+o}function ag(e,r,o){o===void 0&&(o=!1);const i=e.getBoundingClientRect(),a=i.left+r.scrollLeft-(o?0:Zd(e,i)),d=i.top+r.scrollTop;return{x:a,y:d}}function g0(e){let{elements:r,rect:o,offsetParent:i,strategy:a}=e;const d=a==="fixed",h=io(i),v=r?gc(r.floating):!1;if(i===h||v&&d)return o;let m={scrollLeft:0,scrollTop:0},x=Sn(1);const R=Sn(0),E=Zr(i);if((E||!E&&!d)&&((Ms(i)!=="body"||Xl(h))&&(m=yc(i)),Zr(i))){const M=Nl(i);x=ps(i),R.x=M.x+i.clientLeft,R.y=M.y+i.clientTop}const F=h&&!E&&!d?ag(h,m,!0):Sn(0);return{width:o.width*x.x,height:o.height*x.y,x:o.x*x.x-m.scrollLeft*x.x+R.x+F.x,y:o.y*x.y-m.scrollTop*x.y+R.y+F.y}}function v0(e){return Array.from(e.getClientRects())}function y0(e){const r=io(e),o=yc(e),i=e.ownerDocument.body,a=Fl(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),d=Fl(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let h=-o.scrollLeft+Zd(e);const v=-o.scrollTop;return _r(i).direction==="rtl"&&(h+=Fl(r.clientWidth,i.clientWidth)-a),{width:a,height:d,x:h,y:v}}function b0(e,r){const o=gr(e),i=io(e),a=o.visualViewport;let d=i.clientWidth,h=i.clientHeight,v=0,m=0;if(a){d=a.width,h=a.height;const x=vc();(!x||x&&r==="fixed")&&(v=a.offsetLeft,m=a.offsetTop)}return{width:d,height:h,x:v,y:m}}function x0(e,r){const o=Nl(e,!0,r==="fixed"),i=o.top+e.clientTop,a=o.left+e.clientLeft,d=Zr(e)?ps(e):Sn(1),h=e.clientWidth*d.x,v=e.clientHeight*d.y,m=a*d.x,x=i*d.y;return{width:h,height:v,x:m,y:x}}function Gp(e,r,o){let i;if(r==="viewport")i=b0(e,o);else if(r==="document")i=y0(io(e));else if(pt(r))i=x0(r,o);else{const a=ig(e);i={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return rg(i)}function sg(e,r){const o=to(e);return o===r||!pt(o)||Zn(o)?!1:_r(o).position==="fixed"||sg(o,r)}function w0(e,r){const o=r.get(e);if(o)return o;let i=ds(e,[],!1).filter(v=>pt(v)&&Ms(v)!=="body"),a=null;const d=_r(e).position==="fixed";let h=d?to(e):e;for(;pt(h)&&!Zn(h);){const v=_r(h),m=Kd(h);!m&&v.position==="fixed"&&(a=null),(d?!m&&!a:!m&&v.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Xl(h)&&!m&&sg(e,h))?i=i.filter(R=>R!==h):a=v,h=to(h)}return r.set(e,i),i}function S0(e){let{element:r,boundary:o,rootBoundary:i,strategy:a}=e;const h=[...o==="clippingAncestors"?gc(r)?[]:w0(r,this._c):[].concat(o),i],v=h[0],m=h.reduce((x,R)=>{const E=Gp(r,R,a);return x.top=Fl(E.top,x.top),x.right=Vp(E.right,x.right),x.bottom=Vp(E.bottom,x.bottom),x.left=Fl(E.left,x.left),x},Gp(r,v,a));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function k0(e){const{width:r,height:o}=ng(e);return{width:r,height:o}}function E0(e,r,o){const i=Zr(r),a=io(r),d=o==="fixed",h=Nl(e,!0,d,r);let v={scrollLeft:0,scrollTop:0};const m=Sn(0);function x(){m.x=Zd(a)}if(i||!i&&!d)if((Ms(r)!=="body"||Xl(a))&&(v=yc(r)),i){const M=Nl(r,!0,d,r);m.x=M.x+r.clientLeft,m.y=M.y+r.clientTop}else a&&x();d&&!i&&a&&x();const R=a&&!i&&!d?ag(a,v):Sn(0),E=h.left+v.scrollLeft-m.x-R.x,F=h.top+v.scrollTop-m.y-R.y;return{x:E,y:F,width:h.width,height:h.height}}function _f(e){return _r(e).position==="static"}function Qp(e,r){if(!Zr(e)||_r(e).position==="fixed")return null;if(r)return r(e);let o=e.offsetParent;return io(e)===o&&(o=o.ownerDocument.body),o}function lg(e,r){const o=gr(e);if(gc(e))return o;if(!Zr(e)){let a=to(e);for(;a&&!Zn(a);){if(pt(a)&&!_f(a))return a;a=to(a)}return o}let i=Qp(e,r);for(;i&&s0(i)&&_f(i);)i=Qp(i,r);return i&&Zn(i)&&_f(i)&&!Kd(i)?o:i||l0(e)||o}const C0=async function(e){const r=this.getOffsetParent||lg,o=this.getDimensions,i=await o(e.floating);return{reference:E0(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function T0(e){return _r(e).direction==="rtl"}const R0={convertOffsetParentRelativeRectToViewportRelativeRect:g0,getDocumentElement:io,getClippingRect:S0,getOffsetParent:lg,getElementRects:C0,getClientRects:v0,getDimensions:k0,getScale:ps,isElement:pt,isRTL:T0},P0=(e,r,o)=>{const i=new Map,a={platform:R0,...o},d={...a.platform,_c:i};return p0(e,r,{...a,platform:d})};var A0=typeof document<"u",I0=function(){},qu=A0?V.useLayoutEffect:I0;function ic(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let o,i,a;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==r.length)return!1;for(i=o;i--!==0;)if(!ic(e[i],r[i]))return!1;return!0}if(a=Object.keys(e),o=a.length,o!==Object.keys(r).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(r,a[i]))return!1;for(i=o;i--!==0;){const d=a[i];if(!(d==="_owner"&&e.$$typeof)&&!ic(e[d],r[d]))return!1}return!0}return e!==e&&r!==r}function ug(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xp(e,r){const o=ug(e);return Math.round(r*o)/o}function Lf(e){const r=de.useRef(e);return qu(()=>{r.current=e}),r}function O0(e){e===void 0&&(e={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a,elements:{reference:d,floating:h}={},transform:v=!0,whileElementsMounted:m,open:x}=e,[R,E]=de.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[F,M]=de.useState(i);ic(F,i)||M(i);const[B,D]=de.useState(null),[P,I]=de.useState(null),W=de.useCallback(Z=>{Z!==ie.current&&(ie.current=Z,D(Z))},[]),U=de.useCallback(Z=>{Z!==ce.current&&(ce.current=Z,I(Z))},[]),q=d||B,_=h||P,ie=de.useRef(null),ce=de.useRef(null),ee=de.useRef(R),ae=m!=null,Fe=Lf(m),Ne=Lf(a),_e=Lf(x),Ge=de.useCallback(()=>{if(!ie.current||!ce.current)return;const Z={placement:r,strategy:o,middleware:F};Ne.current&&(Z.platform=Ne.current),P0(ie.current,ce.current,Z).then(be=>{const G={...be,isPositioned:_e.current!==!1};Qe.current&&!ic(ee.current,G)&&(ee.current=G,Zg.flushSync(()=>{E(G)}))})},[F,r,o,Ne,_e]);qu(()=>{x===!1&&ee.current.isPositioned&&(ee.current.isPositioned=!1,E(Z=>({...Z,isPositioned:!1})))},[x]);const Qe=de.useRef(!1);qu(()=>(Qe.current=!0,()=>{Qe.current=!1}),[]),qu(()=>{if(q&&(ie.current=q),_&&(ce.current=_),q&&_){if(Fe.current)return Fe.current(q,_,Ge);Ge()}},[q,_,Ge,Fe,ae]);const ke=de.useMemo(()=>({reference:ie,floating:ce,setReference:W,setFloating:U}),[W,U]),Ce=de.useMemo(()=>({reference:q,floating:_}),[q,_]),je=de.useMemo(()=>{const Z={position:o,left:0,top:0};if(!Ce.floating)return Z;const be=Xp(Ce.floating,R.x),G=Xp(Ce.floating,R.y);return v?{...Z,transform:"translate("+be+"px, "+G+"px)",...ug(Ce.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:be,top:G}},[o,v,Ce.floating,R.x,R.y]);return de.useMemo(()=>({...R,update:Ge,refs:ke,elements:Ce,floatingStyles:je}),[R,Ge,ke,Ce,je])}let F0="div";function M0(e,r){let o=`headlessui-control-${V.useId()}`,[i,a]=r0(),[d,h]=Jb(),v=dc(),{disabled:m=v||!1,...x}=e,R=V.useMemo(()=>({disabled:m}),[m]),E={ref:r,disabled:m||void 0,"aria-disabled":m||void 0},F=Gl();return V.createElement(Fb,{value:m},V.createElement(a,{value:i},V.createElement(h,{value:d},V.createElement(Vb,{id:o},F({ourProps:E,theirProps:{...x,children:V.createElement(Wb,null,typeof x.children=="function"?x.children(R):x.children)},slot:R,defaultTag:F0,name:"Field"})))))}let D0=Ql(M0),_0="input";function L0(e,r){let o=V.useId(),i=Vm(),a=dc(),{id:d=i||`headlessui-input-${o}`,disabled:h=a||!1,autoFocus:v=!1,invalid:m=!1,...x}=e,R=Jm(),E=qb(),{isFocused:F,focusProps:M}=Tb({autoFocus:v}),{isHovered:B,hoverProps:D}=Cb({isDisabled:h}),P=Nb({ref:r,id:d,"aria-labelledby":R,"aria-describedby":E,"aria-invalid":m?"true":void 0,disabled:h||void 0,autoFocus:v},M,D),I=V.useMemo(()=>({disabled:h,invalid:m,hover:B,focus:F,autofocus:v}),[h,m,B,F,v]);return Gl()({ourProps:P,theirProps:x,slot:I,defaultTag:_0,name:"Input"})}let j0=Ql(L0);const N0=({type:e="text",className:r,label:o,description:i,error:a,...d})=>Q.jsx("div",{className:"w-full max-w-md px-4",children:Q.jsxs(D0,{children:[o&&Q.jsx(a0,{className:"font-medium text-gray-900",children:o}),i&&Q.jsx(t0,{className:"text-sm text-secondary",children:i}),Q.jsx(j0,{type:e,className:gt("mt-3 block w-full rounded-lg border border-gray-200 px-3 py-1.5 text-sm/6 text-gray-800","data-focus:-outline-offset-2 data-focus:outline-primary-500",r,a&&"border-red-500 focus:border-red-500"),...d})]})}),$0=({onConfirm:e,onClose:r,isOpen:o,title:i})=>{const[a,d]=V.useState(""),[h,v]=V.useState(!1),[m,x]=V.useState(!1),R=async()=>{if(a)try{v(!0),await e(a),d("")}catch{x(!0)}finally{v(!1)}else alert("Please enter a valid email address.")};return Q.jsx(nb,{isOpen:o,close:r,dismissOptions:{label:"Cancel",onClick:r},confirmOptions:{label:"Initiate",onClick:R,disabled:h||!a||m},children:Q.jsxs("div",{className:"flex flex-col items-center gap-4 w-[400px]",children:[Q.jsxs("div",{children:[Q.jsx("div",{className:"text-center text-2xl font-medium",children:m?"User already has access":i||"Access Playbook"}),Q.jsx("div",{className:"text-center",children:m?Q.jsxs(Q.Fragment,{children:[Q.jsx("b",{children:a})," has already accessed a playbook. Contact Confidence to speak to representative."]}):Q.jsx(Q.Fragment,{children:"Please enter your company email address to access this playbook."})})]}),Q.jsx(N0,{disabled:h||m,placeholder:"Enter company email address",onChange:E=>d(E.target.value)})]})})},z0=({btnClassName:e,buttonNode:r,size:o,playbookId:i,onInitiated:a,disabled:d,btnLabel:h="Run Playbook",btnColor:v="primary"})=>{const[m,x]=V.useState(!1),[R,E]=V.useState(!1);function F(){x(!0)}function M(){x(!1)}const B=async D=>{try{E(!0);const{playbookInstanceId:P,errorCode:I,details:W,message:U}=await mm({bank:"public-sdk",email:D,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"America/Los_Angeles",playbookUid:i})||{};if(I)throw new Error(`Error initiating playbook: ${U} (Code: ${I}) - Details: ${W}`);a(P)}finally{E(!1)}};return Q.jsxs(Q.Fragment,{children:[r?{buttonNode:r}:Q.jsxs(jl,{onClick:F,className:gt(e,"flex items-center gap-1"),color:v,size:o,disabled:d||R,children:[Q.jsx("img",{src:Jh,alt:"Confidence Logo",className:"size-4 object-contain text-white"}),h]}),Q.jsx($0,{isOpen:m,onClose:M,onConfirm:async D=>{await B(D),M()}})]})};/*!
|
|
@@ -689,4 +689,4 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
689
689
|
}`;function Tg(){const e=bg,r=xg,o=Se.cssPrefix,i=Se.replacementClass;let a=Dx;if(o!==e||i!==r){const d=new RegExp("\\.".concat(e,"\\-"),"g"),h=new RegExp("\\--".concat(e,"\\-"),"g"),v=new RegExp("\\.".concat(r),"g");a=a.replace(d,".".concat(o,"-")).replace(h,"--".concat(o,"-")).replace(v,".".concat(i))}return a}let oh=!1;function Nf(){Se.autoAddCss&&!oh&&(Ax(Tg()),oh=!0)}var _x={mixout(){return{dom:{css:Tg,insertCss:Nf}}},hooks(){return{beforeDOMElementCreation(){Nf()},beforeI2svg(){Nf()}}}};const no=ri||{};no[ro]||(no[ro]={});no[ro].styles||(no[ro].styles={});no[ro].hooks||(no[ro].hooks={});no[ro].shims||(no[ro].shims=[]);var wn=no[ro];const Rg=[],Pg=function(){it.removeEventListener("DOMContentLoaded",Pg),ac=1,Rg.map(e=>e())};let ac=!1;ao&&(ac=(it.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(it.readyState),ac||it.addEventListener("DOMContentLoaded",Pg));function Lx(e){ao&&(ac?setTimeout(e,0):Rg.push(e))}function Jl(e){const{tag:r,attributes:o={},children:i=[]}=e;return typeof e=="string"?Cg(e):"<".concat(r," ").concat(Ox(o),">").concat(i.map(Jl).join(""),"</").concat(r,">")}function ih(e,r,o){if(e&&e[r]&&e[r][o])return{prefix:r,iconName:o,icon:e[r][o]}}var $f=function(r,o,i,a){var d=Object.keys(r),h=d.length,v=o,m,x,R;for(i===void 0?(m=1,R=r[d[0]]):(m=0,R=i);m<h;m++)x=d[m],R=v(R,r[x],x,r);return R};function jx(e){const r=[];let o=0;const i=e.length;for(;o<i;){const a=e.charCodeAt(o++);if(a>=55296&&a<=56319&&o<i){const d=e.charCodeAt(o++);(d&64512)==56320?r.push(((a&1023)<<10)+(d&1023)+65536):(r.push(a),o--)}else r.push(a)}return r}function Ed(e){const r=jx(e);return r.length===1?r[0].toString(16):null}function Nx(e,r){const o=e.length;let i=e.charCodeAt(r),a;return i>=55296&&i<=56319&&o>r+1&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)?(i-55296)*1024+a-56320+65536:i}function ah(e){return Object.keys(e).reduce((r,o)=>{const i=e[o];return!!i.icon?r[i.iconName]=i.icon:r[o]=i,r},{})}function Cd(e,r){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:i=!1}=o,a=ah(r);typeof wn.hooks.addPack=="function"&&!i?wn.hooks.addPack(e,ah(r)):wn.styles[e]=ne(ne({},wn.styles[e]||{}),a),e==="fas"&&Cd("fa",r)}const{styles:zl,shims:$x}=wn,Ag=Object.keys(np),zx=Ag.reduce((e,r)=>(e[r]=Object.keys(np[r]),e),{});let ap=null,Ig={},Og={},Fg={},Mg={},Dg={};function Bx(e){return~Cx.indexOf(e)}function Ux(e,r){const o=r.split("-"),i=o[0],a=o.slice(1).join("-");return i===e&&a!==""&&!Bx(a)?a:null}const _g=()=>{const e=i=>$f(zl,(a,d,h)=>(a[h]=$f(d,i,{}),a),{});Ig=e((i,a,d)=>(a[3]&&(i[a[3]]=d),a[2]&&a[2].filter(v=>typeof v=="number").forEach(v=>{i[v.toString(16)]=d}),i)),Og=e((i,a,d)=>(i[d]=d,a[2]&&a[2].filter(v=>typeof v=="string").forEach(v=>{i[v]=d}),i)),Dg=e((i,a,d)=>{const h=a[2];return i[d]=d,h.forEach(v=>{i[v]=d}),i});const r="far"in zl||Se.autoFetchSvg,o=$f($x,(i,a)=>{const d=a[0];let h=a[1];const v=a[2];return h==="far"&&!r&&(h="fas"),typeof d=="string"&&(i.names[d]={prefix:h,iconName:v}),typeof d=="number"&&(i.unicodes[d.toString(16)]={prefix:h,iconName:v}),i},{names:{},unicodes:{}});Fg=o.names,Mg=o.unicodes,ap=wc(Se.styleDefault,{family:Se.familyDefault})};Px(e=>{ap=wc(e.styleDefault,{family:Se.familyDefault})});_g();function sp(e,r){return(Ig[e]||{})[r]}function Hx(e,r){return(Og[e]||{})[r]}function Yi(e,r){return(Dg[e]||{})[r]}function Lg(e){return Fg[e]||{prefix:null,iconName:null}}function Wx(e){const r=Mg[e],o=sp("fas",e);return r||(o?{prefix:"fas",iconName:o}:null)||{prefix:null,iconName:null}}function ni(){return ap}const jg=()=>({prefix:null,iconName:null,rest:[]});function Vx(e){let r=_t;const o=Ag.reduce((i,a)=>(i[a]="".concat(Se.cssPrefix,"-").concat(a),i),{});return vg.forEach(i=>{(e.includes(o[i])||e.some(a=>zx[i].includes(a)))&&(r=i)}),r}function wc(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:o=_t}=r,i=xx[o][e];if(o===bc&&!e)return"fad";const a=nh[o][e]||nh[o][i],d=e in wn.styles?e:null;return a||d||null}function Yx(e){let r=[],o=null;return e.forEach(i=>{const a=Ux(Se.cssPrefix,i);a?o=a:i&&r.push(i)}),{iconName:o,rest:r}}function sh(e){return e.sort().filter((r,o,i)=>i.indexOf(r)===o)}function Sc(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:o=!1}=r;let i=null;const a=yd.concat(lx),d=sh(e.filter(E=>a.includes(E))),h=sh(e.filter(E=>!yd.includes(E))),v=d.filter(E=>(i=E,!gg.includes(E))),[m=null]=v,x=Vx(d),R=ne(ne({},Yx(h)),{},{prefix:wc(m,{family:x})});return ne(ne(ne({},R),qx({values:e,family:x,styles:zl,config:Se,canonical:R,givenPrefix:i})),Gx(o,i,R))}function Gx(e,r,o){let{prefix:i,iconName:a}=o;if(e||!i||!a)return{prefix:i,iconName:a};const d=r==="fa"?Lg(a):{},h=Yi(i,a);return a=d.iconName||h||a,i=d.prefix||i,i==="far"&&!zl.far&&zl.fas&&!Se.autoFetchSvg&&(i="fas"),{prefix:i,iconName:a}}const Qx=vg.filter(e=>e!==_t||e!==bc),Xx=Object.keys(vd).filter(e=>e!==_t).map(e=>Object.keys(vd[e])).flat();function qx(e){const{values:r,family:o,canonical:i,givenPrefix:a="",styles:d={},config:h={}}=e,v=o===bc,m=r.includes("fa-duotone")||r.includes("fad"),x=h.familyDefault==="duotone",R=i.prefix==="fad"||i.prefix==="fa-duotone";if(!v&&(m||x||R)&&(i.prefix="fad"),(r.includes("fa-brands")||r.includes("fab"))&&(i.prefix="fab"),!i.prefix&&Qx.includes(o)&&(Object.keys(d).find(F=>Xx.includes(F))||h.autoFetchSvg)){const F=ex.get(o).defaultShortPrefixId;i.prefix=F,i.iconName=Yi(i.prefix,i.iconName)||i.iconName}return(i.prefix==="fa"||a==="fa")&&(i.prefix=ni()||"fas"),i}class Jx{constructor(){this.definitions={}}add(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const a=o.reduce(this._pullDefinitions,{});Object.keys(a).forEach(d=>{this.definitions[d]=ne(ne({},this.definitions[d]||{}),a[d]),Cd(d,a[d]);const h=np[_t][d];h&&Cd(h,a[d]),_g()})}reset(){this.definitions={}}_pullDefinitions(r,o){const i=o.prefix&&o.iconName&&o.icon?{0:o}:o;return Object.keys(i).map(a=>{const{prefix:d,iconName:h,icon:v}=i[a],m=v[2];r[d]||(r[d]={}),m.length>0&&m.forEach(x=>{typeof x=="string"&&(r[d][x]=v)}),r[d][h]=v}),r}}let lh=[],ls={};const hs={},Kx=Object.keys(hs);function Zx(e,r){let{mixoutsTo:o}=r;return lh=e,ls={},Object.keys(hs).forEach(i=>{Kx.indexOf(i)===-1&&delete hs[i]}),lh.forEach(i=>{const a=i.mixout?i.mixout():{};if(Object.keys(a).forEach(d=>{typeof a[d]=="function"&&(o[d]=a[d]),typeof a[d]=="object"&&Object.keys(a[d]).forEach(h=>{o[d]||(o[d]={}),o[d][h]=a[d][h]})}),i.hooks){const d=i.hooks();Object.keys(d).forEach(h=>{ls[h]||(ls[h]=[]),ls[h].push(d[h])})}i.provides&&i.provides(hs)}),o}function Td(e,r){for(var o=arguments.length,i=new Array(o>2?o-2:0),a=2;a<o;a++)i[a-2]=arguments[a];return(ls[e]||[]).forEach(h=>{r=h.apply(null,[r,...i])}),r}function ia(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];(ls[e]||[]).forEach(d=>{d.apply(null,o)})}function oi(){const e=arguments[0],r=Array.prototype.slice.call(arguments,1);return hs[e]?hs[e].apply(null,r):void 0}function Rd(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:r}=e;const o=e.prefix||ni();if(r)return r=Yi(o,r)||r,ih(Ng.definitions,o,r)||ih(wn.styles,o,r)}const Ng=new Jx,ew=()=>{Se.autoReplaceSvg=!1,Se.observeMutations=!1,ia("noAuto")},tw={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ao?(ia("beforeI2svg",e),oi("pseudoElements2svg",e),oi("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:r}=e;Se.autoReplaceSvg===!1&&(Se.autoReplaceSvg=!0),Se.observeMutations=!0,Lx(()=>{nw({autoReplaceSvgRoot:r}),ia("watch",e)})}},rw={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Yi(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const r=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],o=wc(e[0]);return{prefix:o,iconName:Yi(o,r)||r}}if(typeof e=="string"&&(e.indexOf("".concat(Se.cssPrefix,"-"))>-1||e.match(wx))){const r=Sc(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||ni(),iconName:Yi(r.prefix,r.iconName)||r.iconName}}if(typeof e=="string"){const r=ni();return{prefix:r,iconName:Yi(r,e)||e}}}},vr={noAuto:ew,config:Se,dom:tw,parse:rw,library:Ng,findIconDefinition:Rd,toHtml:Jl},nw=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:r=it}=e;(Object.keys(wn.styles).length>0||Se.autoFetchSvg)&&ao&&Se.autoReplaceSvg&&vr.dom.i2svg({node:r})};function kc(e,r){return Object.defineProperty(e,"abstract",{get:r}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(o=>Jl(o))}}),Object.defineProperty(e,"node",{get:function(){if(!ao)return;const o=it.createElement("div");return o.innerHTML=e.html,o.children}}),e}function ow(e){let{children:r,main:o,mask:i,attributes:a,styles:d,transform:h}=e;if(ip(h)&&o.found&&!i.found){const{width:v,height:m}=o,x={x:v/m/2,y:.5};a.style=xc(ne(ne({},d),{},{"transform-origin":"".concat(x.x+h.x/16,"em ").concat(x.y+h.y/16,"em")}))}return[{tag:"svg",attributes:a,children:r}]}function iw(e){let{prefix:r,iconName:o,children:i,attributes:a,symbol:d}=e;const h=d===!0?"".concat(r,"-").concat(Se.cssPrefix,"-").concat(o):d;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ne(ne({},a),{},{id:h}),children:i}]}]}function lp(e){const{icons:{main:r,mask:o},prefix:i,iconName:a,transform:d,symbol:h,title:v,maskId:m,titleId:x,extra:R,watchable:E=!1}=e,{width:F,height:M}=o.found?o:r,B=ix.includes(i),D=[Se.replacementClass,a?"".concat(Se.cssPrefix,"-").concat(a):""].filter(_=>R.classes.indexOf(_)===-1).filter(_=>_!==""||!!_).concat(R.classes).join(" ");let P={children:[],attributes:ne(ne({},R.attributes),{},{"data-prefix":i,"data-icon":a,class:D,role:R.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(F," ").concat(M)})};const I=B&&!~R.classes.indexOf("fa-fw")?{width:"".concat(F/M*16*.0625,"em")}:{};E&&(P.attributes[oa]=""),v&&(P.children.push({tag:"title",attributes:{id:P.attributes["aria-labelledby"]||"title-".concat(x||$l())},children:[v]}),delete P.attributes.title);const W=ne(ne({},P),{},{prefix:i,iconName:a,main:r,mask:o,maskId:m,transform:d,symbol:h,styles:ne(ne({},I),R.styles)}),{children:U,attributes:q}=o.found&&r.found?oi("generateAbstractMask",W)||{children:[],attributes:{}}:oi("generateAbstractIcon",W)||{children:[],attributes:{}};return W.children=U,W.attributes=q,h?iw(W):ow(W)}function uh(e){const{content:r,width:o,height:i,transform:a,title:d,extra:h,watchable:v=!1}=e,m=ne(ne(ne({},h.attributes),d?{title:d}:{}),{},{class:h.classes.join(" ")});v&&(m[oa]="");const x=ne({},h.styles);ip(a)&&(x.transform=Mx({transform:a,startCentered:!0,width:o,height:i}),x["-webkit-transform"]=x.transform);const R=xc(x);R.length>0&&(m.style=R);const E=[];return E.push({tag:"span",attributes:m,children:[r]}),d&&E.push({tag:"span",attributes:{class:"sr-only"},children:[d]}),E}function aw(e){const{content:r,title:o,extra:i}=e,a=ne(ne(ne({},i.attributes),o?{title:o}:{}),{},{class:i.classes.join(" ")}),d=xc(i.styles);d.length>0&&(a.style=d);const h=[];return h.push({tag:"span",attributes:a,children:[r]}),o&&h.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),h}const{styles:zf}=wn;function Pd(e){const r=e[0],o=e[1],[i]=e.slice(4);let a=null;return Array.isArray(i)?a={tag:"g",attributes:{class:"".concat(Se.cssPrefix,"-").concat(jf.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Se.cssPrefix,"-").concat(jf.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(Se.cssPrefix,"-").concat(jf.PRIMARY),fill:"currentColor",d:i[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:r,height:o,icon:a}}const sw={found:!1,width:512,height:512};function lw(e,r){!wg&&!Se.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(r,'" is missing.'))}function Ad(e,r){let o=r;return r==="fa"&&Se.styleDefault!==null&&(r=ni()),new Promise((i,a)=>{if(o==="fa"){const d=Lg(e)||{};e=d.iconName||e,r=d.prefix||r}if(e&&r&&zf[r]&&zf[r][e]){const d=zf[r][e];return i(Pd(d))}lw(e,r),i(ne(ne({},sw),{},{icon:Se.showMissingIcons&&e?oi("missingIconAbstract")||{}:{}}))})}const ch=()=>{},Id=Se.measurePerformance&&Gu&&Gu.mark&&Gu.measure?Gu:{mark:ch,measure:ch},Al='FA "6.7.2"',uw=e=>(Id.mark("".concat(Al," ").concat(e," begins")),()=>$g(e)),$g=e=>{Id.mark("".concat(Al," ").concat(e," ends")),Id.measure("".concat(Al," ").concat(e),"".concat(Al," ").concat(e," begins"),"".concat(Al," ").concat(e," ends"))};var up={begin:uw,end:$g};const Ju=()=>{};function fh(e){return typeof(e.getAttribute?e.getAttribute(oa):null)=="string"}function cw(e){const r=e.getAttribute?e.getAttribute(tp):null,o=e.getAttribute?e.getAttribute(rp):null;return r&&o}function fw(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Se.replacementClass)}function dw(){return Se.autoReplaceSvg===!0?Ku.replace:Ku[Se.autoReplaceSvg]||Ku.replace}function pw(e){return it.createElementNS("http://www.w3.org/2000/svg",e)}function hw(e){return it.createElement(e)}function zg(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:o=e.tag==="svg"?pw:hw}=r;if(typeof e=="string")return it.createTextNode(e);const i=o(e.tag);return Object.keys(e.attributes||[]).forEach(function(d){i.setAttribute(d,e.attributes[d])}),(e.children||[]).forEach(function(d){i.appendChild(zg(d,{ceFn:o}))}),i}function mw(e){let r=" ".concat(e.outerHTML," ");return r="".concat(r,"Font Awesome fontawesome.com "),r}const Ku={replace:function(e){const r=e[0];if(r.parentNode)if(e[1].forEach(o=>{r.parentNode.insertBefore(zg(o),r)}),r.getAttribute(oa)===null&&Se.keepOriginalSource){let o=it.createComment(mw(r));r.parentNode.replaceChild(o,r)}else r.remove()},nest:function(e){const r=e[0],o=e[1];if(~op(r).indexOf(Se.replacementClass))return Ku.replace(e);const i=new RegExp("".concat(Se.cssPrefix,"-.*"));if(delete o[0].attributes.id,o[0].attributes.class){const d=o[0].attributes.class.split(" ").reduce((h,v)=>(v===Se.replacementClass||v.match(i)?h.toSvg.push(v):h.toNode.push(v),h),{toNode:[],toSvg:[]});o[0].attributes.class=d.toSvg.join(" "),d.toNode.length===0?r.removeAttribute("class"):r.setAttribute("class",d.toNode.join(" "))}const a=o.map(d=>Jl(d)).join(`
|
|
690
690
|
`);r.setAttribute(oa,""),r.innerHTML=a}};function dh(e){e()}function Bg(e,r){const o=typeof r=="function"?r:Ju;if(e.length===0)o();else{let i=dh;Se.mutateApproach===yx&&(i=ri.requestAnimationFrame||dh),i(()=>{const a=dw(),d=up.begin("mutate");e.map(a),d(),o()})}}let cp=!1;function Ug(){cp=!0}function Od(){cp=!1}let sc=null;function ph(e){if(!Zp||!Se.observeMutations)return;const{treeCallback:r=Ju,nodeCallback:o=Ju,pseudoElementsCallback:i=Ju,observeMutationsRoot:a=it}=e;sc=new Zp(d=>{if(cp)return;const h=ni();Ds(d).forEach(v=>{if(v.type==="childList"&&v.addedNodes.length>0&&!fh(v.addedNodes[0])&&(Se.searchPseudoElements&&i(v.target),r(v.target)),v.type==="attributes"&&v.target.parentNode&&Se.searchPseudoElements&&i(v.target.parentNode),v.type==="attributes"&&fh(v.target)&&~Ex.indexOf(v.attributeName))if(v.attributeName==="class"&&cw(v.target)){const{prefix:m,iconName:x}=Sc(op(v.target));v.target.setAttribute(tp,m||h),x&&v.target.setAttribute(rp,x)}else fw(v.target)&&o(v.target)})}),ao&&sc.observe(a,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function gw(){sc&&sc.disconnect()}function vw(e){const r=e.getAttribute("style");let o=[];return r&&(o=r.split(";").reduce((i,a)=>{const d=a.split(":"),h=d[0],v=d.slice(1);return h&&v.length>0&&(i[h]=v.join(":").trim()),i},{})),o}function yw(e){const r=e.getAttribute("data-prefix"),o=e.getAttribute("data-icon"),i=e.innerText!==void 0?e.innerText.trim():"";let a=Sc(op(e));return a.prefix||(a.prefix=ni()),r&&o&&(a.prefix=r,a.iconName=o),a.iconName&&a.prefix||(a.prefix&&i.length>0&&(a.iconName=Hx(a.prefix,e.innerText)||sp(a.prefix,Ed(e.innerText))),!a.iconName&&Se.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function bw(e){const r=Ds(e.attributes).reduce((a,d)=>(a.name!=="class"&&a.name!=="style"&&(a[d.name]=d.value),a),{}),o=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return Se.autoA11y&&(o?r["aria-labelledby"]="".concat(Se.replacementClass,"-title-").concat(i||$l()):(r["aria-hidden"]="true",r.focusable="false")),r}function xw(){return{iconName:null,title:null,titleId:null,prefix:null,transform:xn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function hh(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:o,prefix:i,rest:a}=yw(e),d=bw(e),h=Td("parseNodeAttributes",{},e);let v=r.styleParser?vw(e):[];return ne({iconName:o,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:xn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:v,attributes:d}},h)}const{styles:ww}=wn;function Hg(e){const r=Se.autoReplaceSvg==="nest"?hh(e,{styleParser:!1}):hh(e);return~r.extra.classes.indexOf(kg)?oi("generateLayersText",e,r):oi("generateSvgReplacementMutation",e,r)}function Sw(){return[...rx,...yd]}function mh(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ao)return Promise.resolve();const o=it.documentElement.classList,i=R=>o.add("".concat(rh,"-").concat(R)),a=R=>o.remove("".concat(rh,"-").concat(R)),d=Se.autoFetchSvg?Sw():gg.concat(Object.keys(ww));d.includes("fa")||d.push("fa");const h=[".".concat(kg,":not([").concat(oa,"])")].concat(d.map(R=>".".concat(R,":not([").concat(oa,"])"))).join(", ");if(h.length===0)return Promise.resolve();let v=[];try{v=Ds(e.querySelectorAll(h))}catch{}if(v.length>0)i("pending"),a("complete");else return Promise.resolve();const m=up.begin("onTree"),x=v.reduce((R,E)=>{try{const F=Hg(E);F&&R.push(F)}catch(F){wg||F.name==="MissingIcon"&&console.error(F)}return R},[]);return new Promise((R,E)=>{Promise.all(x).then(F=>{Bg(F,()=>{i("active"),i("complete"),a("pending"),typeof r=="function"&&r(),m(),R()})}).catch(F=>{m(),E(F)})})}function kw(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Hg(e).then(o=>{o&&Bg([o],r)})}function Ew(e){return function(r){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=(r||{}).icon?r:Rd(r||{});let{mask:a}=o;return a&&(a=(a||{}).icon?a:Rd(a||{})),e(i,ne(ne({},o),{},{mask:a}))}}const Cw=function(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:o=xn,symbol:i=!1,mask:a=null,maskId:d=null,title:h=null,titleId:v=null,classes:m=[],attributes:x={},styles:R={}}=r;if(!e)return;const{prefix:E,iconName:F,icon:M}=e;return kc(ne({type:"icon"},e),()=>(ia("beforeDOMElementCreation",{iconDefinition:e,params:r}),Se.autoA11y&&(h?x["aria-labelledby"]="".concat(Se.replacementClass,"-title-").concat(v||$l()):(x["aria-hidden"]="true",x.focusable="false")),lp({icons:{main:Pd(M),mask:a?Pd(a.icon):{found:!1,width:null,height:null,icon:{}}},prefix:E,iconName:F,transform:ne(ne({},xn),o),symbol:i,title:h,maskId:d,titleId:v,extra:{attributes:x,styles:R,classes:m}})))};var Tw={mixout(){return{icon:Ew(Cw)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=mh,e.nodeCallback=kw,e}}},provides(e){e.i2svg=function(r){const{node:o=it,callback:i=()=>{}}=r;return mh(o,i)},e.generateSvgReplacementMutation=function(r,o){const{iconName:i,title:a,titleId:d,prefix:h,transform:v,symbol:m,mask:x,maskId:R,extra:E}=o;return new Promise((F,M)=>{Promise.all([Ad(i,h),x.iconName?Ad(x.iconName,x.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(B=>{let[D,P]=B;F([r,lp({icons:{main:D,mask:P},prefix:h,iconName:i,transform:v,symbol:m,maskId:R,title:a,titleId:d,extra:E,watchable:!0})])}).catch(M)})},e.generateAbstractIcon=function(r){let{children:o,attributes:i,main:a,transform:d,styles:h}=r;const v=xc(h);v.length>0&&(i.style=v);let m;return ip(d)&&(m=oi("generateAbstractTransformGrouping",{main:a,transform:d,containerWidth:a.width,iconWidth:a.width})),o.push(m||a.icon),{children:o,attributes:i}}}},Rw={mixout(){return{layer(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:o=[]}=r;return kc({type:"layer"},()=>{ia("beforeDOMElementCreation",{assembler:e,params:r});let i=[];return e(a=>{Array.isArray(a)?a.map(d=>{i=i.concat(d.abstract)}):i=i.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(Se.cssPrefix,"-layers"),...o].join(" ")},children:i}]})}}}},Pw={mixout(){return{counter(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:o=null,classes:i=[],attributes:a={},styles:d={}}=r;return kc({type:"counter",content:e},()=>(ia("beforeDOMElementCreation",{content:e,params:r}),aw({content:e.toString(),title:o,extra:{attributes:a,styles:d,classes:["".concat(Se.cssPrefix,"-layers-counter"),...i]}})))}}}},Aw={mixout(){return{text(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:o=xn,title:i=null,classes:a=[],attributes:d={},styles:h={}}=r;return kc({type:"text",content:e},()=>(ia("beforeDOMElementCreation",{content:e,params:r}),uh({content:e,transform:ne(ne({},xn),o),title:i,extra:{attributes:d,styles:h,classes:["".concat(Se.cssPrefix,"-layers-text"),...a]}})))}}},provides(e){e.generateLayersText=function(r,o){const{title:i,transform:a,extra:d}=o;let h=null,v=null;if(hg){const m=parseInt(getComputedStyle(r).fontSize,10),x=r.getBoundingClientRect();h=x.width/m,v=x.height/m}return Se.autoA11y&&!i&&(d.attributes["aria-hidden"]="true"),Promise.resolve([r,uh({content:r.innerHTML,width:h,height:v,transform:a,title:i,extra:d,watchable:!0})])}}};const Iw=new RegExp('"',"ug"),gh=[1105920,1112319],vh=ne(ne(ne(ne({},{FontAwesome:{normal:"fas",400:"fas"}}),Z0),gx),ux),Fd=Object.keys(vh).reduce((e,r)=>(e[r.toLowerCase()]=vh[r],e),{}),Ow=Object.keys(Fd).reduce((e,r)=>{const o=Fd[r];return e[r]=o[900]||[...Object.entries(o)][0][1],e},{});function Fw(e){const r=e.replace(Iw,""),o=Nx(r,0),i=o>=gh[0]&&o<=gh[1],a=r.length===2?r[0]===r[1]:!1;return{value:Ed(a?r[0]:r),isSecondary:i||a}}function Mw(e,r){const o=e.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(r),a=isNaN(i)?"normal":i;return(Fd[o]||{})[a]||Ow[o]}function yh(e,r){const o="".concat(vx).concat(r.replace(":","-"));return new Promise((i,a)=>{if(e.getAttribute(o)!==null)return i();const h=Ds(e.children).filter(F=>F.getAttribute(xd)===r)[0],v=ri.getComputedStyle(e,r),m=v.getPropertyValue("font-family"),x=m.match(Sx),R=v.getPropertyValue("font-weight"),E=v.getPropertyValue("content");if(h&&!x)return e.removeChild(h),i();if(x&&E!=="none"&&E!==""){const F=v.getPropertyValue("content");let M=Mw(m,R);const{value:B,isSecondary:D}=Fw(F),P=x[0].startsWith("FontAwesome");let I=sp(M,B),W=I;if(P){const U=Wx(B);U.iconName&&U.prefix&&(I=U.iconName,M=U.prefix)}if(I&&!D&&(!h||h.getAttribute(tp)!==M||h.getAttribute(rp)!==W)){e.setAttribute(o,W),h&&e.removeChild(h);const U=xw(),{extra:q}=U;q.attributes[xd]=r,Ad(I,M).then(_=>{const ie=lp(ne(ne({},U),{},{icons:{main:_,mask:jg()},prefix:M,iconName:W,extra:q,watchable:!0})),ce=it.createElementNS("http://www.w3.org/2000/svg","svg");r==="::before"?e.insertBefore(ce,e.firstChild):e.appendChild(ce),ce.outerHTML=ie.map(ee=>Jl(ee)).join(`
|
|
691
691
|
`),e.removeAttribute(o),i()}).catch(a)}else i()}else i()})}function Dw(e){return Promise.all([yh(e,"::before"),yh(e,"::after")])}function _w(e){return e.parentNode!==document.head&&!~bx.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(xd)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function bh(e){if(ao)return new Promise((r,o)=>{const i=Ds(e.querySelectorAll("*")).filter(_w).map(Dw),a=up.begin("searchPseudoElements");Ug(),Promise.all(i).then(()=>{a(),Od(),r()}).catch(()=>{a(),Od(),o()})})}var Lw={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=bh,e}}},provides(e){e.pseudoElements2svg=function(r){const{node:o=it}=r;Se.searchPseudoElements&&bh(o)}}};let xh=!1;var jw={mixout(){return{dom:{unwatch(){Ug(),xh=!0}}}},hooks(){return{bootstrap(){ph(Td("mutationObserverCallbacks",{}))},noAuto(){gw()},watch(e){const{observeMutationsRoot:r}=e;xh?Od():ph(Td("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}};const wh=e=>{let r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((o,i)=>{const a=i.toLowerCase().split("-"),d=a[0];let h=a.slice(1).join("-");if(d&&h==="h")return o.flipX=!0,o;if(d&&h==="v")return o.flipY=!0,o;if(h=parseFloat(h),isNaN(h))return o;switch(d){case"grow":o.size=o.size+h;break;case"shrink":o.size=o.size-h;break;case"left":o.x=o.x-h;break;case"right":o.x=o.x+h;break;case"up":o.y=o.y-h;break;case"down":o.y=o.y+h;break;case"rotate":o.rotate=o.rotate+h;break}return o},r)};var Nw={mixout(){return{parse:{transform:e=>wh(e)}}},hooks(){return{parseNodeAttributes(e,r){const o=r.getAttribute("data-fa-transform");return o&&(e.transform=wh(o)),e}}},provides(e){e.generateAbstractTransformGrouping=function(r){let{main:o,transform:i,containerWidth:a,iconWidth:d}=r;const h={transform:"translate(".concat(a/2," 256)")},v="translate(".concat(i.x*32,", ").concat(i.y*32,") "),m="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),x="rotate(".concat(i.rotate," 0 0)"),R={transform:"".concat(v," ").concat(m," ").concat(x)},E={transform:"translate(".concat(d/2*-1," -256)")},F={outer:h,inner:R,path:E};return{tag:"g",attributes:ne({},F.outer),children:[{tag:"g",attributes:ne({},F.inner),children:[{tag:o.icon.tag,children:o.icon.children,attributes:ne(ne({},o.icon.attributes),F.path)}]}]}}}};const Bf={x:0,y:0,width:"100%",height:"100%"};function Sh(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||r)&&(e.attributes.fill="black"),e}function $w(e){return e.tag==="g"?e.children:[e]}var zw={hooks(){return{parseNodeAttributes(e,r){const o=r.getAttribute("data-fa-mask"),i=o?Sc(o.split(" ").map(a=>a.trim())):jg();return i.prefix||(i.prefix=ni()),e.mask=i,e.maskId=r.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(r){let{children:o,attributes:i,main:a,mask:d,maskId:h,transform:v}=r;const{width:m,icon:x}=a,{width:R,icon:E}=d,F=Fx({transform:v,containerWidth:R,iconWidth:m}),M={tag:"rect",attributes:ne(ne({},Bf),{},{fill:"white"})},B=x.children?{children:x.children.map(Sh)}:{},D={tag:"g",attributes:ne({},F.inner),children:[Sh(ne({tag:x.tag,attributes:ne(ne({},x.attributes),F.path)},B))]},P={tag:"g",attributes:ne({},F.outer),children:[D]},I="mask-".concat(h||$l()),W="clip-".concat(h||$l()),U={tag:"mask",attributes:ne(ne({},Bf),{},{id:I,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[M,P]},q={tag:"defs",children:[{tag:"clipPath",attributes:{id:W},children:$w(E)},U]};return o.push(q,{tag:"rect",attributes:ne({fill:"currentColor","clip-path":"url(#".concat(W,")"),mask:"url(#".concat(I,")")},Bf)}),{children:o,attributes:i}}}},Bw={provides(e){let r=!1;ri.matchMedia&&(r=ri.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const o=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};o.push({tag:"path",attributes:ne(ne({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const d=ne(ne({},a),{},{attributeName:"opacity"}),h={tag:"circle",attributes:ne(ne({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||h.children.push({tag:"animate",attributes:ne(ne({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ne(ne({},d),{},{values:"1;0;1;1;0;1;"})}),o.push(h),o.push({tag:"path",attributes:ne(ne({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:r?[]:[{tag:"animate",attributes:ne(ne({},d),{},{values:"1;0;0;0;0;1;"})}]}),r||o.push({tag:"path",attributes:ne(ne({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ne(ne({},d),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:o}}}},Uw={hooks(){return{parseNodeAttributes(e,r){const o=r.getAttribute("data-fa-symbol"),i=o===null?!1:o===""?!0:o;return e.symbol=i,e}}}},Hw=[_x,Tw,Rw,Pw,Aw,Lw,jw,Nw,zw,Bw,Uw];Zx(Hw,{mixoutsTo:vr});vr.noAuto;vr.config;vr.library;vr.dom;const Md=vr.parse;vr.findIconDefinition;vr.toHtml;const Ww=vr.icon;vr.layer;vr.text;vr.counter;function kh(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,i)}return o}function ti(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?kh(Object(o),!0).forEach(function(i){us(e,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):kh(Object(o)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(o,i))})}return e}function lc(e){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},lc(e)}function us(e,r,o){return r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Vw(e,r){if(e==null)return{};var o={},i=Object.keys(e),a,d;for(d=0;d<i.length;d++)a=i[d],!(r.indexOf(a)>=0)&&(o[a]=e[a]);return o}function Wg(e,r){if(e==null)return{};var o=Vw(e,r),i,a;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);for(a=0;a<d.length;a++)i=d[a],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(o[i]=e[i])}return o}function Dd(e){return Yw(e)||Gw(e)||Qw(e)||Xw()}function Yw(e){if(Array.isArray(e))return _d(e)}function Gw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qw(e,r){if(e){if(typeof e=="string")return _d(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _d(e,r)}}function _d(e,r){(r==null||r>e.length)&&(r=e.length);for(var o=0,i=new Array(r);o<r;o++)i[o]=e[o];return i}function Xw(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
692
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qw(e){var r,o=e.beat,i=e.fade,a=e.beatFade,d=e.bounce,h=e.shake,v=e.flash,m=e.spin,x=e.spinPulse,R=e.spinReverse,E=e.pulse,F=e.fixedWidth,M=e.inverse,B=e.border,D=e.listItem,P=e.flip,I=e.size,W=e.rotation,U=e.pull,q=(r={"fa-beat":o,"fa-fade":i,"fa-beat-fade":a,"fa-bounce":d,"fa-shake":h,"fa-flash":v,"fa-spin":m,"fa-spin-reverse":R,"fa-spin-pulse":x,"fa-pulse":E,"fa-fw":F,"fa-inverse":M,"fa-border":B,"fa-li":D,"fa-flip":P===!0,"fa-flip-horizontal":P==="horizontal"||P==="both","fa-flip-vertical":P==="vertical"||P==="both"},us(r,"fa-".concat(I),typeof I<"u"&&I!==null),us(r,"fa-rotate-".concat(W),typeof W<"u"&&W!==null&&W!==0),us(r,"fa-pull-".concat(U),typeof U<"u"&&U!==null),us(r,"fa-swap-opacity",e.swapOpacity),r);return Object.keys(q).map(function(_){return q[_]?_:null}).filter(function(_){return _})}function Jw(e){return e=e-0,e===e}function Vg(e){return Jw(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(r,o){return o?o.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var Kw=["style"];function Zw(e){return e.charAt(0).toUpperCase()+e.slice(1)}function eS(e){return e.split(";").map(function(r){return r.trim()}).filter(function(r){return r}).reduce(function(r,o){var i=o.indexOf(":"),a=Vg(o.slice(0,i)),d=o.slice(i+1).trim();return a.startsWith("webkit")?r[Zw(a)]=d:r[a]=d,r},{})}function Yg(e,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof r=="string")return r;var i=(r.children||[]).map(function(m){return Yg(e,m)}),a=Object.keys(r.attributes||{}).reduce(function(m,x){var R=r.attributes[x];switch(x){case"class":m.attrs.className=R,delete r.attributes.class;break;case"style":m.attrs.style=eS(R);break;default:x.indexOf("aria-")===0||x.indexOf("data-")===0?m.attrs[x.toLowerCase()]=R:m.attrs[Vg(x)]=R}return m},{attrs:{}}),d=o.style,h=d===void 0?{}:d,v=Wg(o,Kw);return a.attrs.style=ti(ti({},a.attrs.style),h),e.apply(void 0,[r.tag,ti(ti({},a.attrs),v)].concat(Dd(i)))}var Gg=!1;try{Gg=process.env.NODE_ENV==="production"}catch{}function tS(){if(!Gg&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Eh(e){if(e&&lc(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Md.icon)return Md.icon(e);if(e===null)return null;if(e&&lc(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Uf(e,r){return Array.isArray(r)&&r.length>0||!Array.isArray(r)&&r?us({},e,r):{}}var rS=["forwardedRef"];function ii(e){var r=e.forwardedRef,o=Wg(e,rS),i=o.icon,a=o.mask,d=o.symbol,h=o.className,v=o.title,m=o.titleId,x=o.maskId,R=Eh(i),E=Uf("classes",[].concat(Dd(qw(o)),Dd(h.split(" ")))),F=Uf("transform",typeof o.transform=="string"?Md.transform(o.transform):o.transform),M=Uf("mask",Eh(a)),B=Ww(R,ti(ti(ti(ti({},E),F),M),{},{symbol:d,title:v,titleId:m,maskId:x}));if(!B)return tS("Could not find icon",R),null;var D=B.abstract,P={ref:r};return Object.keys(o).forEach(function(I){ii.defaultProps.hasOwnProperty(I)||(P[I]=o[I])}),nS(D[0],P)}ii.displayName="FontAwesomeIcon";ii.propTypes={beat:Me.bool,border:Me.bool,beatFade:Me.bool,bounce:Me.bool,className:Me.string,fade:Me.bool,flash:Me.bool,mask:Me.oneOfType([Me.object,Me.array,Me.string]),maskId:Me.string,fixedWidth:Me.bool,inverse:Me.bool,flip:Me.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Me.oneOfType([Me.object,Me.array,Me.string]),listItem:Me.bool,pull:Me.oneOf(["right","left"]),pulse:Me.bool,rotation:Me.oneOf([0,90,180,270]),shake:Me.bool,size:Me.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Me.bool,spinPulse:Me.bool,spinReverse:Me.bool,symbol:Me.oneOfType([Me.bool,Me.string]),title:Me.string,titleId:Me.string,transform:Me.oneOfType([Me.string,Me.object]),swapOpacity:Me.bool};ii.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var nS=Yg.bind(null,V.createElement);const oS=async e=>await(await fetch(`${Vl}/playbook-task-details`,{method:"POST",body:JSON.stringify(e)})).json(),iS=({taskId:e,playbookId:r,enabled:o})=>{const{queryClient:i}=Is(),a=async()=>oS({taskId:+e,templateId:r.toString()}),d=["taskDetails",+e,r],h=Hd({queryKey:d,queryFn:a,enabled:o,staleTime:1/0},i),v=()=>{i.prefetchQuery({queryFn:a,queryKey:d,staleTime:1/0})};return{taskDetails:h.data,prefetchQuery:v,...h}},aS=({buttons:e,onButtonClick:r,disabled:o})=>Q.jsx("div",{className:"flex items-center justify-end",children:e.map(i=>Q.jsx(jl,{size:"smallCollapse",className:"ml-2",disabled:o,onClick:()=>{r(i)},children:cy[i]},i))});function Ch(e,r){if(!e||!r)return!1;const o=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(o&&md(o)){let i=r;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function Rl(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Hf(e,r){if(r==null)return!1;if("composedPath"in e)return e.composedPath().includes(r);const o=e;return o.target!=null&&r.contains(o.target)}function sS(e){return e.matches("html,body")}function Th(e){return(e==null?void 0:e.ownerDocument)||document}function Wf(e,r){let o=e.filter(a=>{var d;return a.parentId===r&&((d=a.context)==null?void 0:d.open)}),i=o;for(;i.length;)i=e.filter(a=>{var d;return(d=i)==null?void 0:d.some(h=>{var v;return a.parentId===h.id&&((v=a.context)==null?void 0:v.open)})}),o=o.concat(i);return o}function lS(e){return"nativeEvent"in e}var uS=typeof document<"u",cS=function(){},Ld=uS?V.useLayoutEffect:cS;const fS={...de},dS=fS.useInsertionEffect,pS=dS||(e=>e());function ss(e){const r=de.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return pS(()=>{r.current=e}),de.useCallback(function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r.current==null?void 0:r.current(...i)},[])}const hS="data-floating-ui-focusable",Rh="active",Ph="selected",mS={...de};let Ah=!1,gS=0;const Ih=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+gS++;function vS(){const[e,r]=de.useState(()=>Ah?Ih():void 0);return Ld(()=>{e==null&&r(Ih())},[]),de.useEffect(()=>{Ah=!0},[]),e}const yS=mS.useId,bS=yS||vS;let jd;process.env.NODE_ENV!=="production"&&(jd=new Set);function xS(){for(var e,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const a="Floating UI: "+o.join(" ");if(!((e=jd)!=null&&e.has(a))){var d;(d=jd)==null||d.add(a),console.error(a)}}function wS(){const e=new Map;return{emit(r,o){var i;(i=e.get(r))==null||i.forEach(a=>a(o))},on(r,o){e.has(r)||e.set(r,new Set),e.get(r).add(o)},off(r,o){var i;(i=e.get(r))==null||i.delete(o)}}}const SS=de.createContext(null),kS=de.createContext(null),ES=()=>{var e;return((e=de.useContext(SS))==null?void 0:e.id)||null},Qg=()=>de.useContext(kS);function CS(e){return"data-floating-ui-"+e}function TS(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const RS={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},PS={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Oh=e=>{var r,o;return{escapeKey:typeof e=="boolean"?e:(r=e==null?void 0:e.escapeKey)!=null?r:!1,outsidePress:typeof e=="boolean"?e:(o=e==null?void 0:e.outsidePress)!=null?o:!0}};function AS(e,r){r===void 0&&(r={});const{open:o,onOpenChange:i,elements:a,dataRef:d}=e,{enabled:h=!0,escapeKey:v=!0,outsidePress:m=!0,outsidePressEvent:x="pointerdown",referencePress:R=!1,referencePressEvent:E="pointerdown",ancestorScroll:F=!1,bubbles:M,capture:B}=r,D=Qg(),P=ss(typeof m=="function"?m:()=>!1),I=typeof m=="function"?P:m,W=de.useRef(!1),{escapeKey:U,outsidePress:q}=Oh(M),{escapeKey:_,outsidePress:ie}=Oh(B),ce=de.useRef(!1),ee=de.useRef(-1),ae=ss(ke=>{var Ce;if(!o||!h||!v||ke.key!=="Escape"||ce.current)return;const je=(Ce=d.current.floatingContext)==null?void 0:Ce.nodeId,Z=D?Wf(D.nodesRef.current,je):[];if(!U&&(ke.stopPropagation(),Z.length>0)){let be=!0;if(Z.forEach(G=>{var J;if((J=G.context)!=null&&J.open&&!G.context.dataRef.current.__escapeKeyBubbles){be=!1;return}}),!be)return}i(!1,lS(ke)?ke.nativeEvent:ke,"escape-key")}),Fe=ss(ke=>{var Ce;const je=()=>{var Z;ae(ke),(Z=Rl(ke))==null||Z.removeEventListener("keydown",je)};(Ce=Rl(ke))==null||Ce.addEventListener("keydown",je)}),Ne=ss(ke=>{var Ce;const je=d.current.insideReactTree;d.current.insideReactTree=!1;const Z=W.current;if(W.current=!1,x==="click"&&Z||je||typeof I=="function"&&!I(ke))return;const be=Rl(ke),G="["+CS("inert")+"]",J=Th(a.floating).querySelectorAll(G);let fe=pt(be)?be:null;for(;fe&&!Zn(fe);){const se=to(fe);if(Zn(se)||!pt(se))break;fe=se}if(J.length&&pt(be)&&!sS(be)&&!Ch(be,a.floating)&&Array.from(J).every(se=>!Ch(fe,se)))return;if(Zr(be)&&Qe){const se=Zn(be),ue=_r(be),Te=/auto|scroll/,Ee=se||Te.test(ue.overflowX),Re=se||Te.test(ue.overflowY),$e=Ee&&be.clientWidth>0&&be.scrollWidth>be.clientWidth,oe=Re&&be.clientHeight>0&&be.scrollHeight>be.clientHeight,Ue=ue.direction==="rtl",nt=oe&&(Ue?ke.offsetX<=be.offsetWidth-be.clientWidth:ke.offsetX>be.clientWidth),Lt=$e&&ke.offsetY>be.clientHeight;if(nt||Lt)return}const me=(Ce=d.current.floatingContext)==null?void 0:Ce.nodeId,pe=D&&Wf(D.nodesRef.current,me).some(se=>{var ue;return Hf(ke,(ue=se.context)==null?void 0:ue.elements.floating)});if(Hf(ke,a.floating)||Hf(ke,a.domReference)||pe)return;const ge=D?Wf(D.nodesRef.current,me):[];if(ge.length>0){let se=!0;if(ge.forEach(ue=>{var Te;if((Te=ue.context)!=null&&Te.open&&!ue.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}i(!1,ke,"outside-press")}),_e=ss(ke=>{var Ce;const je=()=>{var Z;Ne(ke),(Z=Rl(ke))==null||Z.removeEventListener(x,je)};(Ce=Rl(ke))==null||Ce.addEventListener(x,je)});de.useEffect(()=>{if(!o||!h)return;d.current.__escapeKeyBubbles=U,d.current.__outsidePressBubbles=q;let ke=-1;function Ce(J){i(!1,J,"ancestor-scroll")}function je(){window.clearTimeout(ke),ce.current=!0}function Z(){ke=window.setTimeout(()=>{ce.current=!1},vc()?5:0)}const be=Th(a.floating);v&&(be.addEventListener("keydown",_?Fe:ae,_),be.addEventListener("compositionstart",je),be.addEventListener("compositionend",Z)),I&&be.addEventListener(x,ie?_e:Ne,ie);let G=[];return F&&(pt(a.domReference)&&(G=ds(a.domReference)),pt(a.floating)&&(G=G.concat(ds(a.floating))),!pt(a.reference)&&a.reference&&a.reference.contextElement&&(G=G.concat(ds(a.reference.contextElement)))),G=G.filter(J=>{var fe;return J!==((fe=be.defaultView)==null?void 0:fe.visualViewport)}),G.forEach(J=>{J.addEventListener("scroll",Ce,{passive:!0})}),()=>{v&&(be.removeEventListener("keydown",_?Fe:ae,_),be.removeEventListener("compositionstart",je),be.removeEventListener("compositionend",Z)),I&&be.removeEventListener(x,ie?_e:Ne,ie),G.forEach(J=>{J.removeEventListener("scroll",Ce)}),window.clearTimeout(ke)}},[d,a,v,I,x,o,i,F,h,U,q,ae,_,Fe,Ne,ie,_e]),de.useEffect(()=>{d.current.insideReactTree=!1},[d,I,x]);const Ge=de.useMemo(()=>({onKeyDown:ae,...R&&{[RS[E]]:ke=>{i(!1,ke.nativeEvent,"reference-press")},...E!=="click"&&{onClick(ke){i(!1,ke.nativeEvent,"reference-press")}}}}),[ae,i,R,E]),Qe=de.useMemo(()=>({onKeyDown:ae,onMouseDown(){W.current=!0},onMouseUp(){W.current=!0},[PS[x]]:()=>{d.current.insideReactTree=!0},onBlurCapture(){D||(TS(ee),d.current.insideReactTree=!0,ee.current=window.setTimeout(()=>{d.current.insideReactTree=!1}))}}),[ae,x,d,D]);return de.useMemo(()=>h?{reference:Ge,floating:Qe}:{},[h,Ge,Qe])}function IS(e){const{open:r=!1,onOpenChange:o,elements:i}=e,a=bS(),d=de.useRef({}),[h]=de.useState(()=>wS()),v=ES()!=null;if(process.env.NODE_ENV!=="production"){const M=i.reference;M&&!pt(M)&&xS("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[m,x]=de.useState(i.reference),R=ss((M,B,D)=>{d.current.openEvent=M?B:void 0,h.emit("openchange",{open:M,event:B,reason:D,nested:v}),o==null||o(M,B,D)}),E=de.useMemo(()=>({setPositionReference:x}),[]),F=de.useMemo(()=>({reference:m||i.reference||null,floating:i.floating||null,domReference:i.reference}),[m,i.reference,i.floating]);return de.useMemo(()=>({dataRef:d,open:r,onOpenChange:R,elements:F,events:h,floatingId:a,refs:E}),[r,R,F,h,a,E])}function OS(e){e===void 0&&(e={});const{nodeId:r}=e,o=IS({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||o,a=i.elements,[d,h]=de.useState(null),[v,m]=de.useState(null),R=(a==null?void 0:a.domReference)||d,E=de.useRef(null),F=Qg();Ld(()=>{R&&(E.current=R)},[R]);const M=O0({...e,elements:{...a,...v&&{reference:v}}}),B=de.useCallback(U=>{const q=pt(U)?{getBoundingClientRect:()=>U.getBoundingClientRect(),getClientRects:()=>U.getClientRects(),contextElement:U}:U;m(q),M.refs.setReference(q)},[M.refs]),D=de.useCallback(U=>{(pt(U)||U===null)&&(E.current=U,h(U)),(pt(M.refs.reference.current)||M.refs.reference.current===null||U!==null&&!pt(U))&&M.refs.setReference(U)},[M.refs]),P=de.useMemo(()=>({...M.refs,setReference:D,setPositionReference:B,domReference:E}),[M.refs,D,B]),I=de.useMemo(()=>({...M.elements,domReference:R}),[M.elements,R]),W=de.useMemo(()=>({...M,...i,refs:P,elements:I,nodeId:r}),[M,P,I,r,i]);return Ld(()=>{i.dataRef.current.floatingContext=W;const U=F==null?void 0:F.nodesRef.current.find(q=>q.id===r);U&&(U.context=W)}),de.useMemo(()=>({...M,context:W,refs:P,elements:I}),[M,P,I,W])}function Vf(e,r,o){const i=new Map,a=o==="item";let d=e;if(a&&e){const{[Rh]:h,[Ph]:v,...m}=e;d=m}return{...o==="floating"&&{tabIndex:-1,[hS]:""},...d,...r.map(h=>{const v=h?h[o]:null;return typeof v=="function"?e?v(e):null:v}).concat(e).reduce((h,v)=>(v&&Object.entries(v).forEach(m=>{let[x,R]=m;if(!(a&&[Rh,Ph].includes(x)))if(x.indexOf("on")===0){if(i.has(x)||i.set(x,[]),typeof R=="function"){var E;(E=i.get(x))==null||E.push(R),h[x]=function(){for(var F,M=arguments.length,B=new Array(M),D=0;D<M;D++)B[D]=arguments[D];return(F=i.get(x))==null?void 0:F.map(P=>P(...B)).find(P=>P!==void 0)}}}else h[x]=R}),h),{})}}function FS(e){e===void 0&&(e=[]);const r=e.map(v=>v==null?void 0:v.reference),o=e.map(v=>v==null?void 0:v.floating),i=e.map(v=>v==null?void 0:v.item),a=de.useCallback(v=>Vf(v,e,"reference"),r),d=de.useCallback(v=>Vf(v,e,"floating"),o),h=de.useCallback(v=>Vf(v,e,"item"),i);return de.useMemo(()=>({getReferenceProps:a,getFloatingProps:d,getItemProps:h}),[a,d,h])}const MS={white:"bg-white text-dark-300 border border-gray-300",primary:"bg-primary-600",secondary:"bg-secondary-500",success:"bg-success-600",info:"bg-info-500",warning:"bg-warning-500 text-gray-800",danger:"bg-danger-500",steel:"bg-steel-500",orange:"bg-orange-500",purple:"bg-purple-500",grayDark:"bg-gray-900",grayLight:"bg-gray-100 text-gray-800"},DS={white:"text-white border border-white",primary:"text-primary-600 border border-primary-600",secondary:"text-secondary-500 border border-secondary-500",success:"text-success-600 border border-success-600",info:"text-info-500 border border-info-500",warning:"text-warning-500 border border-warning-500",danger:"text-danger-500 border border-danger-500",steel:"text-steel-500 border border-steel-500",orange:"text-orange-500 border border-orange-500",purple:"text-purple-500 border border-purple-500",grayDark:"text-gray-700 border border-gray-700",grayLight:"text-gray-500 border border-gray-100"},_S={white:"text-dark-300",primary:"text-white",secondary:"text-white",success:"text-white",info:"text-black",warning:"text-gray-800",danger:"text-white",steel:"text-white",orange:"text-black",purple:"text-white",grayDark:"text-white",grayLight:"text-gray-800"},LS={normal:"rounded",pill:"rounded-pill"},jS={big:"h-[24px] leading-[24px] text-md px-1",medium:"h-[22px] leading-[22px] text-sm px-[2px]",small:"h-[18px] leading-[18px] text-xs px-[2px]"},Xg=({category:e="solid",color:r="primary",roundness:o="normal",size:i="medium",textClassName:a="uppercase",children:d,className:h,...v})=>{const m=V.useMemo(()=>_S[r]??"text-white",[r]),x=V.useMemo(()=>fs(m,e==="outline"?DS[r]:MS[r],LS[o],jS[i]),[m,e,r,i,o]);return Q.jsx("div",{className:fs("ui-badge flex items-center font-bold",x,h),style:v==null?void 0:v.style,"data-testid":"badge","data-category":e,"data-color":r,...v,children:Q.jsx("p",{className:fs("mx-1",a),children:d})})},NS={default:"text-secondary-600 border-secondary-600",primary:"text-primary-600 border-primary-600",success:"text-success-600 border-success-600"},$S=({transition:e,onClick:r})=>Q.jsxs("div",{className:"py-1 px-3 space-x-2 flex items-center hover:bg-gray-100 cursor-pointer",onClick:o=>{o.stopPropagation(),r()},children:[Q.jsx("span",{className:"text-base text-dark flex-1",children:e.action}),Q.jsx(ii,{icon:H0,className:"text-gray-400 size-4"}),Q.jsx(Xg,{category:"outline",color:e.color,children:e.to})]}),zS=({title:e,variant:r="default",transitions:o,onClick:i})=>{const[a,d]=V.useState(!1),{refs:h,floatingStyles:v,context:m}=OS({strategy:"fixed",placement:"bottom-end",open:a,onOpenChange:d}),x=AS(m,{outsidePress:!0}),{getReferenceProps:R,getFloatingProps:E}=FS([x]);return Q.jsxs(Q.Fragment,{children:[Q.jsxs("div",{onClick:o!=null&&o.length?()=>d(F=>!F):void 0,ref:h.setReference,className:gt("px-1 uppercase border rounded-sm flex items-center space-x-1",o.length?"cursor-pointer":"pointer-events-none",NS[r]),...R(),children:[Q.jsx("span",{className:"text-sm font-bold",children:e}),o.length>0?Q.jsx(ii,{icon:cg,className:"size-4"}):Q.jsx(Q.Fragment,{})]}),a&&o.length&&Q.jsx("div",{ref:h.setFloating,style:v,className:gt("border border-gray-200 py-1.5 rounded-sm min-w-[172px] bg-white shadow-dark/50"),...E(),children:o.map((F,M)=>Q.jsx($S,{transition:F,onClick:()=>{i==null||i(F.id),d(!1)}},M))})]})},Fh=({description:e})=>{const r=V.useMemo(()=>{const o=/https:\/\/[^/]+\/api\/files/g,i=e==null?void 0:e.replaceAll(o,`${jp}`),a=i==null?void 0:i.replaceAll('src="/api/files',`src="${jp}`),v=new DOMParser().parseFromString(a,"text/html").querySelectorAll("img");return v==null||v.forEach(m=>{const x=m.getAttribute("src");x&&(new Image().src=x)}),a},[e]);return V.useEffect(()=>{},[r]),Q.jsx("div",{className:"flex flex-col gap-4",children:Q.jsx("div",{style:{display:"unset"},className:"lexical-view-mode",dangerouslySetInnerHTML:{__html:r}})})},BS={SEQUENTIAL:"Sequential"},US={[ut.IN_REVIEW]:"In Review"},HS={[ut.OPEN]:"bg-secondary-500",[ut.IN_PROGRESS]:"bg-primary-600",[ut.IN_REVIEW]:"bg-success-600",[ut.COMPLETED]:"bg-success-600"},WS=({playbookType:e,status:r,step:o,isSelected:i,onSelect:a})=>Q.jsx("div",{className:Ll("flex flex-col items-center justify-center",i?"bg-[#FFE600]":HS[r],a&&"cursor-pointer"),onClick:d=>{d.stopPropagation(),a==null||a(d.shiftKey)},children:Q.jsx("span",{className:Ll("text-orientation-mixed w-[27px] flex items-center whitespace-nowrap px-2 text-sm font-bold [writing-mode:vertical-lr]",i?"text-black":"text-white"),children:e===BS.SEQUENTIAL?`STEP ${o}`:(US[r]||r).toUpperCase()})}),VS={[ut.OPEN]:"secondary",[ut.IN_PROGRESS]:"primary",[ut.IN_REVIEW]:"success",[ut.COMPLETED]:"success"},YS=({status:e})=>Q.jsx(Xg,{category:"outline",color:VS[e],children:e}),GS={[ut.OPEN]:"border-[#C1C5C8] bg-[#F0F1F2]",[ut.IN_PROGRESS]:"bg-[#E6F2FF] border-[#94C8FF]",[ut.IN_REVIEW]:"bg-[#EAF6EC] border-[#A5DAB1]",[ut.COMPLETED]:"bg-[#EAF6EC] border-[#A5DAB1]"},Yf={PHOTO:"photo",SCREENSHOT:"screenshot"},QS=({task:e,step:r,playbookType:o,onButtonClick:i,viewMode:a="card",canStart:d=!1,isExpanded:h=!1,toggleExpanded:v,playbookId:m,taskStyle:x,listStickyTopBase:R})=>{const[E,F]=V.useState(!1),{taskDetails:M,prefetchQuery:B}=iS({taskId:e.taskId,playbookId:m,enabled:h}),{buttons:D}=fy({taskStatus:e.workflowStatus,canStart:d}),P=V.useMemo(()=>e.imageRequired===0?null:e.imageRequired===1?Yf.SCREENSHOT:e.imageRequired===2?Yf.PHOTO:null,[e.imageRequired]),I=async W=>{try{F(!0),await i(W)}finally{F(!1)}};if(a==="list"){const W=V.useMemo(()=>e.workflowStatus===ut.COMPLETED?"success":e.workflowStatus===ut.IN_PROGRESS?"primary":"default",[e.workflowStatus]),U=V.useMemo(()=>{const q=[];return D.forEach(_=>{_==="START"&&q.push({id:"START",color:"primary",action:"Start",to:ut.IN_PROGRESS}),_==="COMPLETE"&&q.push({id:"COMPLETE",color:"success",action:"Complete",to:ut.COMPLETED})}),q},[D]);return Q.jsxs("div",{className:gt("flex flex-col"),children:[Q.jsxs("div",{className:gt("flex gap-3 p-2 border-gray-200",e.sequenceOrder>0&&"border-t",h&&"bg-white rounded-md border border-t-none shadow-sm sticky"),style:{top:h?R:0},children:[Q.jsx("div",{className:"text-gray-200 text-base",children:e.sequenceOrder+1}),Q.jsx("div",{onClick:()=>{v==null||v(!h)},onMouseOver:B,className:gt("flex-1 truncate cursor-pointer",h&&"font-medium",e.workflowStatus===ut.COMPLETED&&"text-secondary-400 line-through"),style:{color:e.workflowStatus===ut.IN_PROGRESS&&(x==null?void 0:x.titleColor)||"#1C232D"},children:e.taskInstanceName}),Q.jsx(zS,{title:e.workflowStatus,variant:W,transitions:U,onClick:q=>{i(q)}})]}),(M==null?void 0:M.description)&&Q.jsx("div",{className:gt(!h&&"hidden","border-gray-200 border p-2 mx-4 mb-4 border-t-none -mt-[1px] bg-gray-100 rounded-b-md"),children:Q.jsx(Fh,{description:(M==null?void 0:M.description)||""})})]})}return Q.jsxs("div",{className:Ll("flex items-stretch rounded-sm overflow-hidden border",GS[e.workflowStatus]),children:[Q.jsx(WS,{playbookType:o,status:e.workflowStatus,step:r}),Q.jsxs("div",{className:"flex w-full flex-col overflow-x-hidden flex-1 p-2",children:[o==="Sequential"&&Q.jsx("div",{className:"-mb-3 self-end pr-2 pt-2",children:Q.jsx(YS,{status:e.workflowStatus})}),Q.jsxs("div",{className:"space-y-2 divide-y divide-black/10 flex flex-col flex-1",children:[Q.jsx("div",{className:gt("text-lg font-medium flex-1 pb-1"),style:{color:e.workflowStatus==="Completed"?"#1C232D":(x==null?void 0:x.titleColor)||"#1C232D"},children:e.taskInstanceName}),P?Q.jsxs("div",{className:"flex items-center gap-2 text-sm pb-2",children:[Q.jsx(ii,{icon:U0,className:"size-4"}),Q.jsxs("div",{children:[Q.jsx("span",{className:"font-medium",children:P===Yf.PHOTO?"Photo":"Screenshot"})," ","required"]})]}):Q.jsx(Q.Fragment,{})]}),(M==null?void 0:M.description)&&Q.jsx("div",{className:gt(!h&&"hidden"),children:Q.jsx(Fh,{description:(M==null?void 0:M.description)||""})}),(D.length>0||e.hasDescription)&&Q.jsxs("div",{className:"flex items-center justify-end gap-4 border-t border-black/10 pt-2",children:[Q.jsx("div",{className:"flex-1",children:Q.jsx(aS,{buttons:D,onButtonClick:I,disabled:E})}),v&&Q.jsx(jl,{size:"smallCollapse",onMouseOver:B,category:"link",onClick:()=>{v()},title:h?"Hide task description":"Show task description",children:Q.jsx(ii,{icon:cg,className:Ll("cursor-pointer text-[#0069D9]",h?"rotate-180":"")})})]})]})]})},qg=V.forwardRef(({title:e,className:r,playbookStyle:o,...i},a)=>{var d,h,v;return Q.jsx("div",{ref:a,className:gt("border-b border-gray-200 flex items-center",r),style:{backgroundColor:((d=o==null?void 0:o.whiteLabel)==null?void 0:d.titleBackgroundColor)||"#f8f9fa"},...i,children:Q.jsx("div",{className:gt("text-xl min-h-16 p-4 font-medium flex-1",{"text-dark":((h=o==null?void 0:o.whiteLabel)==null?void 0:h.titleTextColor)==="#ffffff"}),style:{color:(v=o==null?void 0:o.whiteLabel)==null?void 0:v.titleTextColor},children:e})})});qg.displayName="PlaybookHeader";const XS=({playbookInstanceId:e,playbookMode:r,playbookStyle:o})=>{const{playbook:i,actions:a}=uy(e);if(!i)return Q.jsx("div",{});console.log({playbookStyle:o});const d=async(h,v)=>{var m;if(h===Il.COMPLETE){const x=(m=i.tasks.find(R=>R.taskInstanceId===v))==null?void 0:m.sequenceOrder;if(x===void 0){console.error("Task not found in playbook");return}return a.completeTask(v,x)}if(h===Il.START)return a.startTask(v)};return Q.jsx("div",{className:"confidence-playbook",children:Q.jsx(Jg,{playbook:i,playbookMode:r,onTaskButtonClick:d,playbookStyle:o})})},qS=({className:e,children:r,numberOfTasks:o,playbookMode:i})=>Q.jsxs("div",{className:gt("w-full p-4",e),children:[o&&Q.jsxs("div",{className:gt(i==="card"&&"mb-4"),children:[Q.jsx("span",{className:"font-medium",children:"Tasks"})," (",o,")"]}),Q.jsx("div",{className:gt(i==="card"&&"space-y-4"),children:r})]}),Jg=({playbook:e,playbookMode:r,onTaskButtonClick:o,playbookStyle:i})=>{var P,I,W,U,q;const{playbookInstanceName:a,tasks:d}=e,h=V.useRef(null),[v,m]=V.useState(0),[x,R]=V.useState(!0),E=()=>{R(!x)},{isTaskExpanded:F,toggleTaskExpanded:M,isAtLeastOneTaskExpanded:B}=hm(e.playbookInstanceId,{onTaskExpanded:()=>{var _;m(((_=h.current)==null?void 0:_.offsetHeight)||0)}});V.useEffect(()=>{if(B){if(!h.current)throw new Error("Playbook header ref is not set");new ResizeObserver(ie=>{var ce;for(const ee of ie)ee.contentRect&&m(((ce=h.current)==null?void 0:ce.offsetHeight)||0)}).observe(h.current)}return()=>{h.current&&new ResizeObserver(()=>{}).unobserve(h.current)}},[B]);const D=V.useMemo(()=>{const _=d.filter(ie=>ie.workflowStatus===ut.COMPLETED).sort((ie,ce)=>ce.sequenceOrder-ie.sequenceOrder)[0];return _?_.sequenceOrder+1:0},[d]);return Q.jsxs("div",{className:gt(!(i!=null&&i.overlay)&&"min-h-screen",(i==null?void 0:i.overlay)&&"fixed bottom-0 z-[99999999999999] flex","transition-all duration-300 ease-in-out "),...(i==null?void 0:i.overlay)&&{style:{width:"100%",maxWidth:x?((P=i.overlay.size)==null?void 0:P.width)||450:"2.25rem",height:((I=i.overlay.size)==null?void 0:I.height)||"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((W=i.overlay.offset)==null?void 0:W.right)!==void 0?i.overlay.offset.right:i.overlay.position==="right"?32:void 0,left:((U=i.overlay.offset)==null?void 0:U.left)!==void 0?i.overlay.offset.left:i.overlay.position==="left"?32:void 0}},children:[(i==null?void 0:i.overlay)&&Q.jsx("div",{onClick:E,className:gt("size-9 relative p-1 top-3 z-[99999999999999] border-none rounded-l-sm cursor-pointer"),style:{backgroundColor:((q=i==null?void 0:i.whiteLabel)==null?void 0:q.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:Q.jsx("img",{src:Jh,alt:"Confidence Logo",className:"w-full h-full object-contain"})}),Q.jsxs("div",{className:gt("flex flex-col flex-1 bg-gray-50",(i==null?void 0:i.overlay)&&"border border-gray-200 shadow-2xl rounded-t-sm overflow-y-auto"),children:[Q.jsx(qg,{title:a,className:gt("top-0 sticky z-2"),playbookStyle:i,ref:h}),Q.jsx(qS,{playbookMode:r,numberOfTasks:e.numberofTasks,children:d.map((_,ie)=>{var ce;return Q.jsx(QS,{task:_,step:ie+1,viewMode:r,playbookId:e.playbookId,canStart:_.sequenceOrder===D,onButtonClick:ee=>o(ee,_.taskInstanceId),playbookType:"Non-Sequential",taskStyle:{titleColor:(ce=i==null?void 0:i.whiteLabel)==null?void 0:ce.primaryColor},isExpanded:F(_.taskInstanceId),toggleExpanded:()=>M(_.taskInstanceId),listStickyTopBase:v||104},ie)})})]})]})},JS=({email:e,playbookId:r,playbookMode:o,playbookStyle:i})=>{const[a,d]=V.useState(null);return V.useEffect(()=>{(async()=>{const{playbookInstanceId:h,errorCode:v,details:m,message:x}=await mm({bank:"public-sdk",email:e,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"America/Los_Angeles",playbookUid:r})||{};if(v)throw new Error(`Error initiating playbook: ${x} (Code: ${v}) - Details: ${m}`);d(h)})()},[]),a?Q.jsx(aa,{playbookInstanceId:a,playbookMode:o,playbookStyle:i}):Q.jsx("div",{children:"Loading..."})},KS=({playbookId:e,playbookMode:r="list",playbookStyle:o,btnLabel:i="Start Playbook",btnColor:a="primary"})=>{const[d,h]=V.useState(null);return Q.jsxs(Q.Fragment,{children:[Q.jsxs($d.div,{children:[Q.jsx(z0,{playbookId:e,disabled:!!d,onInitiated:h,btnLabel:i,btnColor:a}),Q.jsx("style",{type:"text/css",children:Vd})]}),d&&Q.jsx(aa,{playbookInstanceId:d,playbookMode:r,playbookStyle:o})]})},aa=({playbookInstanceId:e,playbookMode:r,playbookStyle:o})=>Q.jsx(dm,{children:Q.jsx(XS,{playbookInstanceId:e,playbookMode:r,playbookStyle:o})});aa.Context=dm;aa.View=Jg;aa.AutoInstantiated=JS;aa.WithInstantiateButton=KS;const ZS=e=>uc.createPortal(Q.jsxs($d.div,{children:[Q.jsx("style",{children:Vd}),Q.jsx(aa,{...e})]}),document.body);exports.ConfidencePlaybook=ZS;
|
|
692
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qw(e){var r,o=e.beat,i=e.fade,a=e.beatFade,d=e.bounce,h=e.shake,v=e.flash,m=e.spin,x=e.spinPulse,R=e.spinReverse,E=e.pulse,F=e.fixedWidth,M=e.inverse,B=e.border,D=e.listItem,P=e.flip,I=e.size,W=e.rotation,U=e.pull,q=(r={"fa-beat":o,"fa-fade":i,"fa-beat-fade":a,"fa-bounce":d,"fa-shake":h,"fa-flash":v,"fa-spin":m,"fa-spin-reverse":R,"fa-spin-pulse":x,"fa-pulse":E,"fa-fw":F,"fa-inverse":M,"fa-border":B,"fa-li":D,"fa-flip":P===!0,"fa-flip-horizontal":P==="horizontal"||P==="both","fa-flip-vertical":P==="vertical"||P==="both"},us(r,"fa-".concat(I),typeof I<"u"&&I!==null),us(r,"fa-rotate-".concat(W),typeof W<"u"&&W!==null&&W!==0),us(r,"fa-pull-".concat(U),typeof U<"u"&&U!==null),us(r,"fa-swap-opacity",e.swapOpacity),r);return Object.keys(q).map(function(_){return q[_]?_:null}).filter(function(_){return _})}function Jw(e){return e=e-0,e===e}function Vg(e){return Jw(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(r,o){return o?o.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var Kw=["style"];function Zw(e){return e.charAt(0).toUpperCase()+e.slice(1)}function eS(e){return e.split(";").map(function(r){return r.trim()}).filter(function(r){return r}).reduce(function(r,o){var i=o.indexOf(":"),a=Vg(o.slice(0,i)),d=o.slice(i+1).trim();return a.startsWith("webkit")?r[Zw(a)]=d:r[a]=d,r},{})}function Yg(e,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof r=="string")return r;var i=(r.children||[]).map(function(m){return Yg(e,m)}),a=Object.keys(r.attributes||{}).reduce(function(m,x){var R=r.attributes[x];switch(x){case"class":m.attrs.className=R,delete r.attributes.class;break;case"style":m.attrs.style=eS(R);break;default:x.indexOf("aria-")===0||x.indexOf("data-")===0?m.attrs[x.toLowerCase()]=R:m.attrs[Vg(x)]=R}return m},{attrs:{}}),d=o.style,h=d===void 0?{}:d,v=Wg(o,Kw);return a.attrs.style=ti(ti({},a.attrs.style),h),e.apply(void 0,[r.tag,ti(ti({},a.attrs),v)].concat(Dd(i)))}var Gg=!1;try{Gg=process.env.NODE_ENV==="production"}catch{}function tS(){if(!Gg&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Eh(e){if(e&&lc(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Md.icon)return Md.icon(e);if(e===null)return null;if(e&&lc(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Uf(e,r){return Array.isArray(r)&&r.length>0||!Array.isArray(r)&&r?us({},e,r):{}}var rS=["forwardedRef"];function ii(e){var r=e.forwardedRef,o=Wg(e,rS),i=o.icon,a=o.mask,d=o.symbol,h=o.className,v=o.title,m=o.titleId,x=o.maskId,R=Eh(i),E=Uf("classes",[].concat(Dd(qw(o)),Dd(h.split(" ")))),F=Uf("transform",typeof o.transform=="string"?Md.transform(o.transform):o.transform),M=Uf("mask",Eh(a)),B=Ww(R,ti(ti(ti(ti({},E),F),M),{},{symbol:d,title:v,titleId:m,maskId:x}));if(!B)return tS("Could not find icon",R),null;var D=B.abstract,P={ref:r};return Object.keys(o).forEach(function(I){ii.defaultProps.hasOwnProperty(I)||(P[I]=o[I])}),nS(D[0],P)}ii.displayName="FontAwesomeIcon";ii.propTypes={beat:Me.bool,border:Me.bool,beatFade:Me.bool,bounce:Me.bool,className:Me.string,fade:Me.bool,flash:Me.bool,mask:Me.oneOfType([Me.object,Me.array,Me.string]),maskId:Me.string,fixedWidth:Me.bool,inverse:Me.bool,flip:Me.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Me.oneOfType([Me.object,Me.array,Me.string]),listItem:Me.bool,pull:Me.oneOf(["right","left"]),pulse:Me.bool,rotation:Me.oneOf([0,90,180,270]),shake:Me.bool,size:Me.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Me.bool,spinPulse:Me.bool,spinReverse:Me.bool,symbol:Me.oneOfType([Me.bool,Me.string]),title:Me.string,titleId:Me.string,transform:Me.oneOfType([Me.string,Me.object]),swapOpacity:Me.bool};ii.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var nS=Yg.bind(null,V.createElement);const oS=async e=>await(await fetch(`${Vl}/playbook-task-details`,{method:"POST",body:JSON.stringify(e)})).json(),iS=({taskId:e,playbookId:r,enabled:o})=>{const{queryClient:i}=Is(),a=async()=>oS({taskId:+e,templateId:r.toString()}),d=["taskDetails",+e,r],h=Hd({queryKey:d,queryFn:a,enabled:o,staleTime:1/0},i),v=()=>{i.prefetchQuery({queryFn:a,queryKey:d,staleTime:1/0})};return{taskDetails:h.data,prefetchQuery:v,...h}},aS=({buttons:e,onButtonClick:r,disabled:o})=>Q.jsx("div",{className:"flex items-center justify-end",children:e.map(i=>Q.jsx(jl,{size:"smallCollapse",className:"ml-2",disabled:o,onClick:()=>{r(i)},children:cy[i]},i))});function Ch(e,r){if(!e||!r)return!1;const o=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(o&&md(o)){let i=r;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function Rl(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Hf(e,r){if(r==null)return!1;if("composedPath"in e)return e.composedPath().includes(r);const o=e;return o.target!=null&&r.contains(o.target)}function sS(e){return e.matches("html,body")}function Th(e){return(e==null?void 0:e.ownerDocument)||document}function Wf(e,r){let o=e.filter(a=>{var d;return a.parentId===r&&((d=a.context)==null?void 0:d.open)}),i=o;for(;i.length;)i=e.filter(a=>{var d;return(d=i)==null?void 0:d.some(h=>{var v;return a.parentId===h.id&&((v=a.context)==null?void 0:v.open)})}),o=o.concat(i);return o}function lS(e){return"nativeEvent"in e}var uS=typeof document<"u",cS=function(){},Ld=uS?V.useLayoutEffect:cS;const fS={...de},dS=fS.useInsertionEffect,pS=dS||(e=>e());function ss(e){const r=de.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return pS(()=>{r.current=e}),de.useCallback(function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r.current==null?void 0:r.current(...i)},[])}const hS="data-floating-ui-focusable",Rh="active",Ph="selected",mS={...de};let Ah=!1,gS=0;const Ih=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+gS++;function vS(){const[e,r]=de.useState(()=>Ah?Ih():void 0);return Ld(()=>{e==null&&r(Ih())},[]),de.useEffect(()=>{Ah=!0},[]),e}const yS=mS.useId,bS=yS||vS;let jd;process.env.NODE_ENV!=="production"&&(jd=new Set);function xS(){for(var e,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];const a="Floating UI: "+o.join(" ");if(!((e=jd)!=null&&e.has(a))){var d;(d=jd)==null||d.add(a),console.error(a)}}function wS(){const e=new Map;return{emit(r,o){var i;(i=e.get(r))==null||i.forEach(a=>a(o))},on(r,o){e.has(r)||e.set(r,new Set),e.get(r).add(o)},off(r,o){var i;(i=e.get(r))==null||i.delete(o)}}}const SS=de.createContext(null),kS=de.createContext(null),ES=()=>{var e;return((e=de.useContext(SS))==null?void 0:e.id)||null},Qg=()=>de.useContext(kS);function CS(e){return"data-floating-ui-"+e}function TS(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const RS={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},PS={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Oh=e=>{var r,o;return{escapeKey:typeof e=="boolean"?e:(r=e==null?void 0:e.escapeKey)!=null?r:!1,outsidePress:typeof e=="boolean"?e:(o=e==null?void 0:e.outsidePress)!=null?o:!0}};function AS(e,r){r===void 0&&(r={});const{open:o,onOpenChange:i,elements:a,dataRef:d}=e,{enabled:h=!0,escapeKey:v=!0,outsidePress:m=!0,outsidePressEvent:x="pointerdown",referencePress:R=!1,referencePressEvent:E="pointerdown",ancestorScroll:F=!1,bubbles:M,capture:B}=r,D=Qg(),P=ss(typeof m=="function"?m:()=>!1),I=typeof m=="function"?P:m,W=de.useRef(!1),{escapeKey:U,outsidePress:q}=Oh(M),{escapeKey:_,outsidePress:ie}=Oh(B),ce=de.useRef(!1),ee=de.useRef(-1),ae=ss(ke=>{var Ce;if(!o||!h||!v||ke.key!=="Escape"||ce.current)return;const je=(Ce=d.current.floatingContext)==null?void 0:Ce.nodeId,Z=D?Wf(D.nodesRef.current,je):[];if(!U&&(ke.stopPropagation(),Z.length>0)){let be=!0;if(Z.forEach(G=>{var J;if((J=G.context)!=null&&J.open&&!G.context.dataRef.current.__escapeKeyBubbles){be=!1;return}}),!be)return}i(!1,lS(ke)?ke.nativeEvent:ke,"escape-key")}),Fe=ss(ke=>{var Ce;const je=()=>{var Z;ae(ke),(Z=Rl(ke))==null||Z.removeEventListener("keydown",je)};(Ce=Rl(ke))==null||Ce.addEventListener("keydown",je)}),Ne=ss(ke=>{var Ce;const je=d.current.insideReactTree;d.current.insideReactTree=!1;const Z=W.current;if(W.current=!1,x==="click"&&Z||je||typeof I=="function"&&!I(ke))return;const be=Rl(ke),G="["+CS("inert")+"]",J=Th(a.floating).querySelectorAll(G);let fe=pt(be)?be:null;for(;fe&&!Zn(fe);){const se=to(fe);if(Zn(se)||!pt(se))break;fe=se}if(J.length&&pt(be)&&!sS(be)&&!Ch(be,a.floating)&&Array.from(J).every(se=>!Ch(fe,se)))return;if(Zr(be)&&Qe){const se=Zn(be),ue=_r(be),Te=/auto|scroll/,Ee=se||Te.test(ue.overflowX),Re=se||Te.test(ue.overflowY),$e=Ee&&be.clientWidth>0&&be.scrollWidth>be.clientWidth,oe=Re&&be.clientHeight>0&&be.scrollHeight>be.clientHeight,Ue=ue.direction==="rtl",nt=oe&&(Ue?ke.offsetX<=be.offsetWidth-be.clientWidth:ke.offsetX>be.clientWidth),Lt=$e&&ke.offsetY>be.clientHeight;if(nt||Lt)return}const me=(Ce=d.current.floatingContext)==null?void 0:Ce.nodeId,pe=D&&Wf(D.nodesRef.current,me).some(se=>{var ue;return Hf(ke,(ue=se.context)==null?void 0:ue.elements.floating)});if(Hf(ke,a.floating)||Hf(ke,a.domReference)||pe)return;const ge=D?Wf(D.nodesRef.current,me):[];if(ge.length>0){let se=!0;if(ge.forEach(ue=>{var Te;if((Te=ue.context)!=null&&Te.open&&!ue.context.dataRef.current.__outsidePressBubbles){se=!1;return}}),!se)return}i(!1,ke,"outside-press")}),_e=ss(ke=>{var Ce;const je=()=>{var Z;Ne(ke),(Z=Rl(ke))==null||Z.removeEventListener(x,je)};(Ce=Rl(ke))==null||Ce.addEventListener(x,je)});de.useEffect(()=>{if(!o||!h)return;d.current.__escapeKeyBubbles=U,d.current.__outsidePressBubbles=q;let ke=-1;function Ce(J){i(!1,J,"ancestor-scroll")}function je(){window.clearTimeout(ke),ce.current=!0}function Z(){ke=window.setTimeout(()=>{ce.current=!1},vc()?5:0)}const be=Th(a.floating);v&&(be.addEventListener("keydown",_?Fe:ae,_),be.addEventListener("compositionstart",je),be.addEventListener("compositionend",Z)),I&&be.addEventListener(x,ie?_e:Ne,ie);let G=[];return F&&(pt(a.domReference)&&(G=ds(a.domReference)),pt(a.floating)&&(G=G.concat(ds(a.floating))),!pt(a.reference)&&a.reference&&a.reference.contextElement&&(G=G.concat(ds(a.reference.contextElement)))),G=G.filter(J=>{var fe;return J!==((fe=be.defaultView)==null?void 0:fe.visualViewport)}),G.forEach(J=>{J.addEventListener("scroll",Ce,{passive:!0})}),()=>{v&&(be.removeEventListener("keydown",_?Fe:ae,_),be.removeEventListener("compositionstart",je),be.removeEventListener("compositionend",Z)),I&&be.removeEventListener(x,ie?_e:Ne,ie),G.forEach(J=>{J.removeEventListener("scroll",Ce)}),window.clearTimeout(ke)}},[d,a,v,I,x,o,i,F,h,U,q,ae,_,Fe,Ne,ie,_e]),de.useEffect(()=>{d.current.insideReactTree=!1},[d,I,x]);const Ge=de.useMemo(()=>({onKeyDown:ae,...R&&{[RS[E]]:ke=>{i(!1,ke.nativeEvent,"reference-press")},...E!=="click"&&{onClick(ke){i(!1,ke.nativeEvent,"reference-press")}}}}),[ae,i,R,E]),Qe=de.useMemo(()=>({onKeyDown:ae,onMouseDown(){W.current=!0},onMouseUp(){W.current=!0},[PS[x]]:()=>{d.current.insideReactTree=!0},onBlurCapture(){D||(TS(ee),d.current.insideReactTree=!0,ee.current=window.setTimeout(()=>{d.current.insideReactTree=!1}))}}),[ae,x,d,D]);return de.useMemo(()=>h?{reference:Ge,floating:Qe}:{},[h,Ge,Qe])}function IS(e){const{open:r=!1,onOpenChange:o,elements:i}=e,a=bS(),d=de.useRef({}),[h]=de.useState(()=>wS()),v=ES()!=null;if(process.env.NODE_ENV!=="production"){const M=i.reference;M&&!pt(M)&&xS("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[m,x]=de.useState(i.reference),R=ss((M,B,D)=>{d.current.openEvent=M?B:void 0,h.emit("openchange",{open:M,event:B,reason:D,nested:v}),o==null||o(M,B,D)}),E=de.useMemo(()=>({setPositionReference:x}),[]),F=de.useMemo(()=>({reference:m||i.reference||null,floating:i.floating||null,domReference:i.reference}),[m,i.reference,i.floating]);return de.useMemo(()=>({dataRef:d,open:r,onOpenChange:R,elements:F,events:h,floatingId:a,refs:E}),[r,R,F,h,a,E])}function OS(e){e===void 0&&(e={});const{nodeId:r}=e,o=IS({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||o,a=i.elements,[d,h]=de.useState(null),[v,m]=de.useState(null),R=(a==null?void 0:a.domReference)||d,E=de.useRef(null),F=Qg();Ld(()=>{R&&(E.current=R)},[R]);const M=O0({...e,elements:{...a,...v&&{reference:v}}}),B=de.useCallback(U=>{const q=pt(U)?{getBoundingClientRect:()=>U.getBoundingClientRect(),getClientRects:()=>U.getClientRects(),contextElement:U}:U;m(q),M.refs.setReference(q)},[M.refs]),D=de.useCallback(U=>{(pt(U)||U===null)&&(E.current=U,h(U)),(pt(M.refs.reference.current)||M.refs.reference.current===null||U!==null&&!pt(U))&&M.refs.setReference(U)},[M.refs]),P=de.useMemo(()=>({...M.refs,setReference:D,setPositionReference:B,domReference:E}),[M.refs,D,B]),I=de.useMemo(()=>({...M.elements,domReference:R}),[M.elements,R]),W=de.useMemo(()=>({...M,...i,refs:P,elements:I,nodeId:r}),[M,P,I,r,i]);return Ld(()=>{i.dataRef.current.floatingContext=W;const U=F==null?void 0:F.nodesRef.current.find(q=>q.id===r);U&&(U.context=W)}),de.useMemo(()=>({...M,context:W,refs:P,elements:I}),[M,P,I,W])}function Vf(e,r,o){const i=new Map,a=o==="item";let d=e;if(a&&e){const{[Rh]:h,[Ph]:v,...m}=e;d=m}return{...o==="floating"&&{tabIndex:-1,[hS]:""},...d,...r.map(h=>{const v=h?h[o]:null;return typeof v=="function"?e?v(e):null:v}).concat(e).reduce((h,v)=>(v&&Object.entries(v).forEach(m=>{let[x,R]=m;if(!(a&&[Rh,Ph].includes(x)))if(x.indexOf("on")===0){if(i.has(x)||i.set(x,[]),typeof R=="function"){var E;(E=i.get(x))==null||E.push(R),h[x]=function(){for(var F,M=arguments.length,B=new Array(M),D=0;D<M;D++)B[D]=arguments[D];return(F=i.get(x))==null?void 0:F.map(P=>P(...B)).find(P=>P!==void 0)}}}else h[x]=R}),h),{})}}function FS(e){e===void 0&&(e=[]);const r=e.map(v=>v==null?void 0:v.reference),o=e.map(v=>v==null?void 0:v.floating),i=e.map(v=>v==null?void 0:v.item),a=de.useCallback(v=>Vf(v,e,"reference"),r),d=de.useCallback(v=>Vf(v,e,"floating"),o),h=de.useCallback(v=>Vf(v,e,"item"),i);return de.useMemo(()=>({getReferenceProps:a,getFloatingProps:d,getItemProps:h}),[a,d,h])}const MS={white:"bg-white text-dark-300 border border-gray-300",primary:"bg-primary-600",secondary:"bg-secondary-500",success:"bg-success-600",info:"bg-info-500",warning:"bg-warning-500 text-gray-800",danger:"bg-danger-500",steel:"bg-steel-500",orange:"bg-orange-500",purple:"bg-purple-500",grayDark:"bg-gray-900",grayLight:"bg-gray-100 text-gray-800"},DS={white:"text-white border border-white",primary:"text-primary-600 border border-primary-600",secondary:"text-secondary-500 border border-secondary-500",success:"text-success-600 border border-success-600",info:"text-info-500 border border-info-500",warning:"text-warning-500 border border-warning-500",danger:"text-danger-500 border border-danger-500",steel:"text-steel-500 border border-steel-500",orange:"text-orange-500 border border-orange-500",purple:"text-purple-500 border border-purple-500",grayDark:"text-gray-700 border border-gray-700",grayLight:"text-gray-500 border border-gray-100"},_S={white:"text-dark-300",primary:"text-white",secondary:"text-white",success:"text-white",info:"text-black",warning:"text-gray-800",danger:"text-white",steel:"text-white",orange:"text-black",purple:"text-white",grayDark:"text-white",grayLight:"text-gray-800"},LS={normal:"rounded",pill:"rounded-pill"},jS={big:"h-[24px] leading-[24px] text-md px-1",medium:"h-[22px] leading-[22px] text-sm px-[2px]",small:"h-[18px] leading-[18px] text-xs px-[2px]"},Xg=({category:e="solid",color:r="primary",roundness:o="normal",size:i="medium",textClassName:a="uppercase",children:d,className:h,...v})=>{const m=V.useMemo(()=>_S[r]??"text-white",[r]),x=V.useMemo(()=>fs(m,e==="outline"?DS[r]:MS[r],LS[o],jS[i]),[m,e,r,i,o]);return Q.jsx("div",{className:fs("ui-badge flex items-center font-bold",x,h),style:v==null?void 0:v.style,"data-testid":"badge","data-category":e,"data-color":r,...v,children:Q.jsx("p",{className:fs("mx-1",a),children:d})})},NS={default:"text-secondary-600 border-secondary-600",primary:"text-primary-600 border-primary-600",success:"text-success-600 border-success-600"},$S=({transition:e,onClick:r})=>Q.jsxs("div",{className:"py-1 px-3 space-x-2 flex items-center hover:bg-gray-100 cursor-pointer",onClick:o=>{o.stopPropagation(),r()},children:[Q.jsx("span",{className:"text-base text-dark flex-1",children:e.action}),Q.jsx(ii,{icon:H0,className:"text-gray-400 size-4"}),Q.jsx(Xg,{category:"outline",color:e.color,children:e.to})]}),zS=({title:e,variant:r="default",transitions:o,onClick:i})=>{const[a,d]=V.useState(!1),{refs:h,floatingStyles:v,context:m}=OS({strategy:"fixed",placement:"bottom-end",open:a,onOpenChange:d}),x=AS(m,{outsidePress:!0}),{getReferenceProps:R,getFloatingProps:E}=FS([x]);return Q.jsxs(Q.Fragment,{children:[Q.jsxs("div",{onClick:o!=null&&o.length?()=>d(F=>!F):void 0,ref:h.setReference,className:gt("px-1 uppercase border rounded-sm flex items-center space-x-1",o.length?"cursor-pointer":"pointer-events-none",NS[r]),...R(),children:[Q.jsx("span",{className:"text-sm font-bold",children:e}),o.length>0?Q.jsx(ii,{icon:cg,className:"size-4"}):Q.jsx(Q.Fragment,{})]}),a&&o.length&&Q.jsx("div",{ref:h.setFloating,style:v,className:gt("border border-gray-200 py-1.5 rounded-sm min-w-[172px] bg-white shadow-dark/50"),...E(),children:o.map((F,M)=>Q.jsx($S,{transition:F,onClick:()=>{i==null||i(F.id),d(!1)}},M))})]})},Fh=({description:e})=>{const r=V.useMemo(()=>{const o=/https:\/\/[^/]+\/api\/files/g,i=e==null?void 0:e.replaceAll(o,`${jp}`),a=i==null?void 0:i.replaceAll('src="/api/files',`src="${jp}`),v=new DOMParser().parseFromString(a,"text/html").querySelectorAll("img");return v==null||v.forEach(m=>{const x=m.getAttribute("src");x&&(new Image().src=x)}),a},[e]);return V.useEffect(()=>{},[r]),Q.jsx("div",{className:"flex flex-col gap-4",children:Q.jsx("div",{style:{display:"unset"},className:"lexical-view-mode",dangerouslySetInnerHTML:{__html:r}})})},BS={SEQUENTIAL:"Sequential"},US={[ut.IN_REVIEW]:"In Review"},HS={[ut.OPEN]:"bg-secondary-500",[ut.IN_PROGRESS]:"bg-primary-600",[ut.IN_REVIEW]:"bg-success-600",[ut.COMPLETED]:"bg-success-600"},WS=({playbookType:e,status:r,step:o,isSelected:i,onSelect:a})=>Q.jsx("div",{className:Ll("flex flex-col items-center justify-center",i?"bg-[#FFE600]":HS[r],a&&"cursor-pointer"),onClick:d=>{d.stopPropagation(),a==null||a(d.shiftKey)},children:Q.jsx("span",{className:Ll("text-orientation-mixed w-[27px] flex items-center whitespace-nowrap px-2 text-sm font-bold [writing-mode:vertical-lr]",i?"text-black":"text-white"),children:e===BS.SEQUENTIAL?`STEP ${o}`:(US[r]||r).toUpperCase()})}),VS={[ut.OPEN]:"secondary",[ut.IN_PROGRESS]:"primary",[ut.IN_REVIEW]:"success",[ut.COMPLETED]:"success"},YS=({status:e})=>Q.jsx(Xg,{category:"outline",color:VS[e],children:e}),GS={[ut.OPEN]:"border-[#C1C5C8] bg-[#F0F1F2]",[ut.IN_PROGRESS]:"bg-[#E6F2FF] border-[#94C8FF]",[ut.IN_REVIEW]:"bg-[#EAF6EC] border-[#A5DAB1]",[ut.COMPLETED]:"bg-[#EAF6EC] border-[#A5DAB1]"},Yf={PHOTO:"photo",SCREENSHOT:"screenshot"},QS=({task:e,step:r,playbookType:o,onButtonClick:i,viewMode:a="card",canStart:d=!1,isExpanded:h=!1,toggleExpanded:v,playbookId:m,taskStyle:x,listStickyTopBase:R})=>{const[E,F]=V.useState(!1),{taskDetails:M,prefetchQuery:B}=iS({taskId:e.taskId,playbookId:m,enabled:h}),{buttons:D}=fy({taskStatus:e.workflowStatus,canStart:d}),P=V.useMemo(()=>e.imageRequired===0?null:e.imageRequired===1?Yf.SCREENSHOT:e.imageRequired===2?Yf.PHOTO:null,[e.imageRequired]),I=async W=>{try{F(!0),await i(W)}finally{F(!1)}};if(a==="list"){const W=V.useMemo(()=>e.workflowStatus===ut.COMPLETED?"success":e.workflowStatus===ut.IN_PROGRESS?"primary":"default",[e.workflowStatus]),U=V.useMemo(()=>{const q=[];return D.forEach(_=>{_==="START"&&q.push({id:"START",color:"primary",action:"Start",to:ut.IN_PROGRESS}),_==="COMPLETE"&&q.push({id:"COMPLETE",color:"success",action:"Complete",to:ut.COMPLETED})}),q},[D]);return Q.jsxs("div",{className:gt("flex flex-col"),children:[Q.jsxs("div",{className:gt("flex gap-3 p-2 border-gray-200",e.sequenceOrder>0&&"border-t",h&&"bg-white rounded-md border border-t-none shadow-sm sticky"),style:{top:h?R:0},children:[Q.jsx("div",{className:"text-gray-200 text-base",children:e.sequenceOrder+1}),Q.jsx("div",{onClick:()=>{v==null||v(!h)},onMouseOver:B,className:gt("flex-1 truncate cursor-pointer",h&&"font-medium",e.workflowStatus===ut.COMPLETED&&"text-secondary-400 line-through"),style:{color:e.workflowStatus===ut.IN_PROGRESS&&(x==null?void 0:x.titleColor)||"#1C232D"},children:e.taskInstanceName}),Q.jsx(zS,{title:e.workflowStatus,variant:W,transitions:U,onClick:q=>{i(q)}})]}),(M==null?void 0:M.description)&&Q.jsx("div",{className:gt(!h&&"hidden","border-gray-200 border p-2 mx-4 mb-4 border-t-none -mt-[1px] bg-gray-100 rounded-b-md"),children:Q.jsx(Fh,{description:(M==null?void 0:M.description)||""})})]})}return Q.jsxs("div",{className:Ll("flex items-stretch rounded-sm overflow-hidden border",GS[e.workflowStatus]),children:[Q.jsx(WS,{playbookType:o,status:e.workflowStatus,step:r}),Q.jsxs("div",{className:"flex w-full flex-col overflow-x-hidden flex-1 p-2",children:[o==="Sequential"&&Q.jsx("div",{className:"-mb-3 self-end pr-2 pt-2",children:Q.jsx(YS,{status:e.workflowStatus})}),Q.jsxs("div",{className:"space-y-2 divide-y divide-black/10 flex flex-col flex-1",children:[Q.jsx("div",{className:gt("text-lg font-medium flex-1 pb-1"),style:{color:e.workflowStatus==="Completed"?"#1C232D":(x==null?void 0:x.titleColor)||"#1C232D"},children:e.taskInstanceName}),P?Q.jsxs("div",{className:"flex items-center gap-2 text-sm pb-2",children:[Q.jsx(ii,{icon:U0,className:"size-4"}),Q.jsxs("div",{children:[Q.jsx("span",{className:"font-medium",children:P===Yf.PHOTO?"Photo":"Screenshot"})," ","required"]})]}):Q.jsx(Q.Fragment,{})]}),(M==null?void 0:M.description)&&Q.jsx("div",{className:gt(!h&&"hidden"),children:Q.jsx(Fh,{description:(M==null?void 0:M.description)||""})}),(D.length>0||e.hasDescription)&&Q.jsxs("div",{className:"flex items-center justify-end gap-4 border-t border-black/10 pt-2",children:[Q.jsx("div",{className:"flex-1",children:Q.jsx(aS,{buttons:D,onButtonClick:I,disabled:E})}),v&&Q.jsx(jl,{size:"smallCollapse",onMouseOver:B,category:"link",onClick:()=>{v()},title:h?"Hide task description":"Show task description",children:Q.jsx(ii,{icon:cg,className:Ll("cursor-pointer text-[#0069D9]",h?"rotate-180":"")})})]})]})]})},qg=V.forwardRef(({title:e,className:r,playbookStyle:o,...i},a)=>{var d,h,v;return Q.jsx("div",{ref:a,className:gt("border-b border-gray-200 flex items-center",r),style:{backgroundColor:((d=o==null?void 0:o.whiteLabel)==null?void 0:d.titleBackgroundColor)||"#f8f9fa"},...i,children:Q.jsx("div",{className:gt("text-xl min-h-16 p-4 font-medium flex-1",{"text-dark":!((h=o==null?void 0:o.whiteLabel)!=null&&h.titleTextColor)}),style:{color:(v=o==null?void 0:o.whiteLabel)==null?void 0:v.titleTextColor},children:e})})});qg.displayName="PlaybookHeader";const XS=({playbookInstanceId:e,playbookMode:r,playbookStyle:o})=>{const{playbook:i,actions:a}=uy(e);if(!i)return Q.jsx("div",{});console.log({playbookStyle:o});const d=async(h,v)=>{var m;if(h===Il.COMPLETE){const x=(m=i.tasks.find(R=>R.taskInstanceId===v))==null?void 0:m.sequenceOrder;if(x===void 0){console.error("Task not found in playbook");return}return a.completeTask(v,x)}if(h===Il.START)return a.startTask(v)};return Q.jsx("div",{className:"confidence-playbook",children:Q.jsx(Jg,{playbook:i,playbookMode:r,onTaskButtonClick:d,playbookStyle:o})})},qS=({className:e,children:r,numberOfTasks:o,playbookMode:i})=>Q.jsxs("div",{className:gt("w-full p-4",e),children:[o&&Q.jsxs("div",{className:gt(i==="card"&&"mb-4"),children:[Q.jsx("span",{className:"font-medium",children:"Tasks"})," (",o,")"]}),Q.jsx("div",{className:gt(i==="card"&&"space-y-4"),children:r})]}),Jg=({playbook:e,playbookMode:r,onTaskButtonClick:o,playbookStyle:i})=>{var P,I,W,U,q;const{playbookInstanceName:a,tasks:d}=e,h=V.useRef(null),[v,m]=V.useState(0),[x,R]=V.useState(!0),E=()=>{R(!x)},{isTaskExpanded:F,toggleTaskExpanded:M,isAtLeastOneTaskExpanded:B}=hm(e.playbookInstanceId,{onTaskExpanded:()=>{var _;m(((_=h.current)==null?void 0:_.offsetHeight)||0)}});V.useEffect(()=>{if(B){if(!h.current)throw new Error("Playbook header ref is not set");new ResizeObserver(ie=>{var ce;for(const ee of ie)ee.contentRect&&m(((ce=h.current)==null?void 0:ce.offsetHeight)||0)}).observe(h.current)}return()=>{h.current&&new ResizeObserver(()=>{}).unobserve(h.current)}},[B]);const D=V.useMemo(()=>{const _=d.filter(ie=>ie.workflowStatus===ut.COMPLETED).sort((ie,ce)=>ce.sequenceOrder-ie.sequenceOrder)[0];return _?_.sequenceOrder+1:0},[d]);return Q.jsxs("div",{className:gt(!(i!=null&&i.overlay)&&"min-h-screen",(i==null?void 0:i.overlay)&&"fixed bottom-0 z-[99999999999999] flex","transition-all duration-300 ease-in-out "),...(i==null?void 0:i.overlay)&&{style:{width:"100%",maxWidth:x?((P=i.overlay.size)==null?void 0:P.width)||450:"2.25rem",height:((I=i.overlay.size)==null?void 0:I.height)||"calc(100vh - 4rem)",maxHeight:"calc(100vh - 4rem)",right:((W=i.overlay.offset)==null?void 0:W.right)!==void 0?i.overlay.offset.right:i.overlay.position==="right"?32:void 0,left:((U=i.overlay.offset)==null?void 0:U.left)!==void 0?i.overlay.offset.left:i.overlay.position==="left"?32:void 0}},children:[(i==null?void 0:i.overlay)&&Q.jsx("div",{onClick:E,className:gt("size-9 relative p-1 top-3 z-[99999999999999] border-none rounded-l-sm cursor-pointer"),style:{backgroundColor:((q=i==null?void 0:i.whiteLabel)==null?void 0:q.primaryColor)||"#007BFF",boxShadow:"0px 3px 3px 0px #00000040"},children:Q.jsx("img",{src:Jh,alt:"Confidence Logo",className:"w-full h-full object-contain"})}),Q.jsxs("div",{className:gt("flex flex-col flex-1 bg-gray-50",(i==null?void 0:i.overlay)&&"border border-gray-200 shadow-2xl rounded-t-sm overflow-y-auto"),children:[Q.jsx(qg,{title:a,className:gt("top-0 sticky z-2"),playbookStyle:i,ref:h}),Q.jsx(qS,{playbookMode:r,numberOfTasks:e.numberofTasks,children:d.map((_,ie)=>{var ce;return Q.jsx(QS,{task:_,step:ie+1,viewMode:r,playbookId:e.playbookId,canStart:_.sequenceOrder===D,onButtonClick:ee=>o(ee,_.taskInstanceId),playbookType:"Non-Sequential",taskStyle:{titleColor:(ce=i==null?void 0:i.whiteLabel)==null?void 0:ce.primaryColor},isExpanded:F(_.taskInstanceId),toggleExpanded:()=>M(_.taskInstanceId),listStickyTopBase:v||104},ie)})})]})]})},JS=({email:e,playbookId:r,playbookMode:o,playbookStyle:i})=>{const[a,d]=V.useState(null);return V.useEffect(()=>{(async()=>{const{playbookInstanceId:h,errorCode:v,details:m,message:x}=await mm({bank:"public-sdk",email:e,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"America/Los_Angeles",playbookUid:r})||{};if(v)throw new Error(`Error initiating playbook: ${x} (Code: ${v}) - Details: ${m}`);d(h)})()},[]),a?Q.jsx(aa,{playbookInstanceId:a,playbookMode:o,playbookStyle:i}):Q.jsx("div",{children:"Loading..."})},KS=({playbookId:e,playbookMode:r="list",playbookStyle:o,btnLabel:i="Start Playbook",btnColor:a="primary"})=>{const[d,h]=V.useState(null);return Q.jsxs(Q.Fragment,{children:[Q.jsxs($d.div,{children:[Q.jsx(z0,{playbookId:e,disabled:!!d,onInitiated:h,btnLabel:i,btnColor:a}),Q.jsx("style",{type:"text/css",children:Vd})]}),d&&Q.jsx(aa,{playbookInstanceId:d,playbookMode:r,playbookStyle:o})]})},aa=({playbookInstanceId:e,playbookMode:r,playbookStyle:o})=>Q.jsx(dm,{children:Q.jsx(XS,{playbookInstanceId:e,playbookMode:r,playbookStyle:o})});aa.Context=dm;aa.View=Jg;aa.AutoInstantiated=JS;aa.WithInstantiateButton=KS;const ZS=e=>uc.createPortal(Q.jsxs($d.div,{children:[Q.jsx("style",{children:Vd}),Q.jsx(aa,{...e})]}),document.body);exports.ConfidencePlaybook=ZS;
|