@telnyx/ai-chat-widget 5.0.1 → 5.0.3

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 CHANGED
@@ -52,7 +52,7 @@ React keys must be passed directly to JSX without using spread:
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
- */const K0=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],X0=Y0("brain",K0);var jr=(e=>(e.AIDA="aida",e))(jr||{});const vE={[jr.AIDA]:{label:"Heavy thinking",icon:"🧠",Icon:X0,ariaLabel:"Heavy thinking mode",endpoint:jr.AIDA,tooltip:{title:"🧠 Heavy thinking",capabilities:["Troubleshooting tools","Deep reasoning"],timing:"Slower, but thorough"},firstMessage:"Hello! I can help troubleshoot your account issues with heavy thinking and deep reasoning."}},Fm=Object.values(vE),Ne=[];for(let e=0;e<256;++e)Ne.push((e+256).toString(16).slice(1));function xE(e,t=0){return(Ne[e[t+0]]+Ne[e[t+1]]+Ne[e[t+2]]+Ne[e[t+3]]+"-"+Ne[e[t+4]]+Ne[e[t+5]]+"-"+Ne[e[t+6]]+Ne[e[t+7]]+"-"+Ne[e[t+8]]+Ne[e[t+9]]+"-"+Ne[e[t+10]]+Ne[e[t+11]]+Ne[e[t+12]]+Ne[e[t+13]]+Ne[e[t+14]]+Ne[e[t+15]]).toLowerCase()}let po;const Z0=new Uint8Array(16);function kE(){if(!po){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");po=crypto.getRandomValues.bind(crypto)}return po(Z0)}const Q0=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Pm={randomUUID:Q0};function TE(e,t,n){var a;if(Pm.randomUUID&&!e)return Pm.randomUUID();e=e||{};const r=e.random??((a=e.rng)==null?void 0:a.call(e))??kE();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,xE(r)}const fo={};function Bm(e,t,n){let r;{const a=Date.now(),i=kE();J0(fo,a,i),r=eR(i,fo.msecs,fo.seq,t,n)}return t??xE(r)}function J0(e,t,n){return e.msecs??(e.msecs=-1/0),e.seq??(e.seq=0),t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}function eR(e,t,n,r,a=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(!r)r=new Uint8Array(16),a=0;else if(a<0||a+16>r.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);return t??(t=Date.now()),n??(n=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9]),r[a++]=t/1099511627776&255,r[a++]=t/4294967296&255,r[a++]=t/16777216&255,r[a++]=t/65536&255,r[a++]=t/256&255,r[a++]=t&255,r[a++]=112|n>>>28&15,r[a++]=n>>>20&255,r[a++]=128|n>>>14&63,r[a++]=n>>>6&255,r[a++]=n<<2&255|e[10]&3,r[a++]=e[11],r[a++]=e[12],r[a++]=e[13],r[a++]=e[14],r[a++]=e[15],r}const Um=e=>{let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const p=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(f=>f(t,p))}},a=()=>t,s={setState:r,getState:a,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(r,a,s);return s},tR=(e=>e?Um(e):Um),nR=e=>e;function rR(e,t=nR){const n=O.useSyncExternalStore(e.subscribe,O.useCallback(()=>t(e.getState()),[e,t]),O.useCallback(()=>t(e.getInitialState()),[e,t]));return O.useDebugValue(n),n}const zm=e=>{const t=tR(e),n=r=>rR(t,r);return Object.assign(n,t),n},aR=(e=>e?zm(e):zm);var AE=Symbol.for("immer-nothing"),jm=Symbol.for("immer-draftable"),tt=Symbol.for("immer-state"),iR=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function He(e,...t){if(process.env.NODE_ENV!=="production"){const n=iR[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Gr=Object.getPrototypeOf;function Vn(e){return!!e&&!!e[tt]}function gn(e){var t;return e?RE(e)||Array.isArray(e)||!!e[jm]||!!((t=e.constructor)!=null&&t[jm])||aa(e)||vi(e):!1}var oR=Object.prototype.constructor.toString(),Gm=new WeakMap;function RE(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=Gm.get(n);return r===void 0&&(r=Function.toString.call(n),Gm.set(n,r)),r===oR}function Ja(e,t,n=!0){Si(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((r,a)=>t(a,r,e))}function Si(e){const t=e[tt];return t?t.type_:Array.isArray(e)?1:aa(e)?2:vi(e)?3:0}function ms(e,t){return Si(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function IE(e,t,n){const r=Si(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function sR(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function aa(e){return e instanceof Map}function vi(e){return e instanceof Set}function sn(e){return e.copy_||e.base_}function hs(e,t){if(aa(e))return new Map(e);if(vi(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=RE(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[tt];let a=Reflect.ownKeys(r);for(let i=0;i<a.length;i++){const o=a[i],s=r[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Gr(e),r)}else{const r=Gr(e);if(r!==null&&n)return{...e};const a=Object.create(r);return Object.assign(a,e)}}function Il(e,t=!1){return xi(e)||Vn(e)||!gn(e)||(Si(e)>1&&Object.defineProperties(e,{set:Ra,add:Ra,clear:Ra,delete:Ra}),Object.freeze(e),t&&Object.values(e).forEach(n=>Il(n,!0))),e}function lR(){He(2)}var Ra={value:lR};function xi(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var cR={};function mn(e){const t=cR[e];return t||He(0,e),t}var Vr;function CE(){return Vr}function uR(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Vm(e,t){t&&(mn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function bs(e){ys(e),e.drafts_.forEach(dR),e.drafts_=null}function ys(e){e===Vr&&(Vr=e.parent_)}function Hm(e){return Vr=uR(Vr,e)}function dR(e){const t=e[tt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function $m(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[tt].modified_&&(bs(t),He(4)),gn(e)&&(e=ei(t,e),t.parent_||ti(t,e)),t.patches_&&mn("Patches").generateReplacementPatches_(n[tt].base_,e,t.patches_,t.inversePatches_)):e=ei(t,n,[]),bs(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==AE?e:void 0}function ei(e,t,n){if(xi(t))return t;const r=e.immer_.shouldUseStrictIteration(),a=t[tt];if(!a)return Ja(t,(i,o)=>Wm(e,a,t,i,o,n),r),t;if(a.scope_!==e)return t;if(!a.modified_)return ti(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const i=a.copy_;let o=i,s=!1;a.type_===3&&(o=new Set(i),i.clear(),s=!0),Ja(o,(l,c)=>Wm(e,a,i,l,c,n,s),r),ti(e,i,!1),n&&e.patches_&&mn("Patches").generatePatches_(a,n,e.patches_,e.inversePatches_)}return a.copy_}function Wm(e,t,n,r,a,i,o){if(a==null||typeof a!="object"&&!o)return;const s=xi(a);if(!(s&&!o)){if(process.env.NODE_ENV!=="production"&&a===n&&He(5),Vn(a)){const l=i&&t&&t.type_!==3&&!ms(t.assigned_,r)?i.concat(r):void 0,c=ei(e,a,l);if(IE(n,r,c),Vn(c))e.canAutoFreeze_=!1;else return}else o&&n.add(a);if(gn(a)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===a&&s)return;ei(e,a),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(aa(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&ti(e,a)}}}function ti(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Il(t,n)}function pR(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:CE(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,i=Cl;n&&(a=[r],i=Hr);const{revoke:o,proxy:s}=Proxy.revocable(a,i);return r.draft_=s,r.revoke_=o,s}var Cl={get(e,t){if(t===tt)return e;const n=sn(e);if(!ms(n,t))return fR(e,n,t);const r=n[t];return e.finalized_||!gn(r)?r:r===go(e.base_,t)?(mo(e),e.copy_[t]=ws(r,e)):r},has(e,t){return t in sn(e)},ownKeys(e){return Reflect.ownKeys(sn(e))},set(e,t,n){const r=NE(sn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=go(sn(e),t),i=a==null?void 0:a[tt];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(sR(n,a)&&(n!==void 0||ms(e.base_,t)))return!0;mo(e),Es(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return go(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,mo(e),Es(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=sn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){He(11)},getPrototypeOf(e){return Gr(e.base_)},setPrototypeOf(){He(12)}},Hr={};Ja(Cl,(e,t)=>{Hr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Hr.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&He(13),Hr.set.call(this,e,t,void 0)};Hr.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&He(14),Cl.set.call(this,e[0],t,n,e[0])};function go(e,t){const n=e[tt];return(n?sn(n):e)[t]}function fR(e,t,n){var a;const r=NE(t,n);return r?"value"in r?r.value:(a=r.get)==null?void 0:a.call(e.draft_):void 0}function NE(e,t){if(!(t in e))return;let n=Gr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Gr(n)}}function Es(e){e.modified_||(e.modified_=!0,e.parent_&&Es(e.parent_))}function mo(e){e.copy_||(e.copy_=hs(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var gR=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const o=this;return function(l=i,...c){return o.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&He(6),r!==void 0&&typeof r!="function"&&He(7);let a;if(gn(t)){const i=Hm(this),o=ws(t,void 0);let s=!0;try{a=n(o),s=!1}finally{s?bs(i):ys(i)}return Vm(i,r),$m(a,i)}else if(!t||typeof t!="object"){if(a=n(t),a===void 0&&(a=t),a===AE&&(a=void 0),this.autoFreeze_&&Il(a,!0),r){const i=[],o=[];mn("Patches").generateReplacementPatches_(t,a,i,o),r(i,o)}return a}else He(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let r,a;return[this.produce(t,n,(o,s)=>{r=o,a=s}),r,a]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){gn(e)||He(8),Vn(e)&&(e=mR(e));const t=Hm(this),n=ws(e,void 0);return n[tt].isManual_=!0,ys(t),n}finishDraft(e,t){const n=e&&e[tt];(!n||!n.isManual_)&&He(9);const{scope_:r}=n;return Vm(r,t),$m(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(t=t.slice(n+1));const r=mn("Patches").applyPatches_;return Vn(e)?r(e,t):this.produce(e,a=>r(a,t))}};function ws(e,t){const n=aa(e)?mn("MapSet").proxyMap_(e,t):vi(e)?mn("MapSet").proxySet_(e,t):pR(e,t);return(t?t.scope_:CE()).drafts_.push(n),n}function mR(e){return Vn(e)||He(10,e),_E(e)}function _E(e){if(!gn(e)||xi(e))return e;const t=e[tt];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=hs(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=hs(e,!0);return Ja(n,(a,i)=>{IE(n,a,_E(i))},r),t&&(t.finalized_=!1),n}var hR=new gR,bR=hR.produce;const yR=e=>(t,n,r)=>(r.setState=(a,i,...o)=>{const s=typeof a=="function"?bR(a):a;return t(s,i,...o)},e(r.setState,n,r)),ER=yR,kn={POSITIVE:"positive",NEGATIVE:"negative"};class wR{constructor(t,n,r){wa(this,"baseURL");wa(this,"feedbackUrl");wa(this,"getUser");this.baseURL=t,this.feedbackUrl=n,this.getUser=r}async sendFeedback({messageId:t,type:n}){try{const r=this.getUser(),{id:a}=r;if(!a){console.error("User ID is required to send feedback");return}const i=r==null?void 0:r.api_v2_token;if(!(await fetch(`${this.feedbackUrl}`,{method:"POST",body:JSON.stringify({message_id:t,type:n,user_id:a}),headers:{"Content-Type":"application/json",...i&&{Authorization:`Bearer ${i}`}}})).ok)throw new Error("Failed to send feedback")}catch(r){console.error("Error sending feedback",r)}}}class yr extends wR{constructor(t,n,r){super(t,n,r)}async sendQuestion(t){const n=this.getUser(),r=n==null?void 0:n.api_v2_token,a=new FormData;a.append("session_id",t.sessionId),a.append("question",t.question),t.messages&&a.append("messages",JSON.stringify(t.messages));const i={Authorization:`Bearer ${r}`},o=await fetch(this.baseURL,{method:"POST",body:a,headers:i});if(!o.ok){const s=await o.text();throw new Error(`HTTP error! status: ${o.status}, text: ${s}`)}if(!o.body)throw new Error("Response body is null");return o.body.pipeThrough(new TextDecoderStream)}}const st={OPEN:"open",CLOSED:"closed"},je={INITIAL:"initial",USER_HAS_TYPED:"userHasTyped"},Hn={HAS_BEEN_OPENED:"hasBeenOpened",HAS_NOT_BEEN_OPENED:"hasNotBeenOpened"},ft={EXPANDED:"expanded",COLLAPSED:"collapsed"};function OE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=OE(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function LE(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=OE(e))&&(r&&(r+=" "),r+=t);return r}const SR=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},vR=(e,t)=>({classGroupId:e,validator:t}),DE=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ni="-",qm=[],xR="arbitrary..",kR=e=>{const t=AR(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return TR(o);const s=o.split(ni),l=s[0]===""&&s.length>1?1:0;return ME(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=r[o],c=n[o];return l?c?SR(c,l):l:c||qm}return n[o]||qm}}},ME=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],i=n.nextPart.get(a);if(i){const c=ME(e,t+1,i);if(c)return c}const o=n.validators;if(o===null)return;const s=t===0?e.join(ni):e.slice(t).join(ni),l=o.length;for(let c=0;c<l;c++){const u=o[c];if(u.validator(s))return u.classGroupId}},TR=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?xR+r:void 0})(),AR=e=>{const{theme:t,classGroups:n}=e;return RR(n,t)},RR=(e,t)=>{const n=DE();for(const r in e){const a=e[r];Nl(a,n,r,t)}return n},Nl=(e,t,n,r)=>{const a=e.length;for(let i=0;i<a;i++){const o=e[i];IR(o,t,n,r)}},IR=(e,t,n,r)=>{if(typeof e=="string"){CR(e,t,n);return}if(typeof e=="function"){NR(e,t,n,r);return}_R(e,t,n,r)},CR=(e,t,n)=>{const r=e===""?t:FE(t,e);r.classGroupId=n},NR=(e,t,n,r)=>{if(OR(e)){Nl(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(vR(n,e))},_R=(e,t,n,r)=>{const a=Object.entries(e),i=a.length;for(let o=0;o<i;o++){const[s,l]=a[o];Nl(l,FE(t,s),n,r)}},FE=(e,t)=>{let n=e;const r=t.split(ni),a=r.length;for(let i=0;i<a;i++){const o=r[i];let s=n.nextPart.get(o);s||(s=DE(),n.nextPart.set(o,s)),n=s}return n},OR=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,LR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(i,o)=>{n[i]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let o=n[i];if(o!==void 0)return o;if((o=r[i])!==void 0)return a(i,o),o},set(i,o){i in n?n[i]=o:a(i,o)}}},Ss="!",Ym=":",DR=[],Km=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),MR=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const i=[];let o=0,s=0,l=0,c;const u=a.length;for(let b=0;b<u;b++){const h=a[b];if(o===0&&s===0){if(h===Ym){i.push(a.slice(l,b)),l=b+1;continue}if(h==="/"){c=b;continue}}h==="["?o++:h==="]"?o--:h==="("?s++:h===")"&&s--}const d=i.length===0?a:a.slice(l);let p=d,f=!1;d.endsWith(Ss)?(p=d.slice(0,-1),f=!0):d.startsWith(Ss)&&(p=d.slice(1),f=!0);const g=c&&c>l?c-l:void 0;return Km(i,f,p,g)};if(t){const a=t+Ym,i=r;r=o=>o.startsWith(a)?i(o.slice(a.length)):Km(DR,!1,o,void 0,!0)}if(n){const a=r;r=i=>n({className:i,parseClassName:a})}return r},FR=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let i=0;i<n.length;i++){const o=n[i],s=o[0]==="[",l=t.has(o);s||l?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(o)):a.push(o)}return a.length>0&&(a.sort(),r.push(...a)),r}},PR=e=>({cache:LR(e.cacheSize),parseClassName:MR(e),sortModifiers:FR(e),...kR(e)}),BR=/\s+/,UR=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:i}=t,o=[],s=e.trim().split(BR);let l="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:d,modifiers:p,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:b}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let h=!!b,m=r(h?g.substring(0,b):g);if(!m){if(!h){l=u+(l.length>0?" "+l:l);continue}if(m=r(g),!m){l=u+(l.length>0?" "+l:l);continue}h=!1}const E=p.length===0?"":p.length===1?p[0]:i(p).join(":"),S=f?E+Ss:E,T=S+m;if(o.indexOf(T)>-1)continue;o.push(T);const A=a(m,h);for(let v=0;v<A.length;++v){const _=A[v];o.push(S+_)}l=u+(l.length>0?" "+l:l)}return l},zR=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=PE(n))&&(a&&(a+=" "),a+=r);return a},PE=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=PE(e[r]))&&(n&&(n+=" "),n+=t);return n},jR=(e,...t)=>{let n,r,a,i;const o=l=>{const c=t.reduce((u,d)=>d(u),e());return n=PR(c),r=n.cache.get,a=n.cache.set,i=s,s(l)},s=l=>{const c=r(l);if(c)return c;const u=UR(l,n);return a(l,u),u};return i=o,(...l)=>i(zR(...l))},GR=[],Re=e=>{const t=n=>n[e]||GR;return t.isThemeGetter=!0,t},BE=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,UE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,VR=/^\d+\/\d+$/,HR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$R=/\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$/,WR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,YR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=e=>VR.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),Gt=e=>!!e&&Number.isInteger(Number(e)),ho=e=>e.endsWith("%")&&re(e.slice(0,-1)),Dt=e=>HR.test(e),KR=()=>!0,XR=e=>$R.test(e)&&!WR.test(e),zE=()=>!1,ZR=e=>qR.test(e),QR=e=>YR.test(e),JR=e=>!W(e)&&!q(e),eI=e=>Qn(e,VE,zE),W=e=>BE.test(e),rn=e=>Qn(e,HE,XR),bo=e=>Qn(e,iI,re),Xm=e=>Qn(e,jE,zE),tI=e=>Qn(e,GE,QR),Ia=e=>Qn(e,$E,ZR),q=e=>UE.test(e),Er=e=>Jn(e,HE),nI=e=>Jn(e,oI),Zm=e=>Jn(e,jE),rI=e=>Jn(e,VE),aI=e=>Jn(e,GE),Ca=e=>Jn(e,$E,!0),Qn=(e,t,n)=>{const r=BE.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Jn=(e,t,n=!1)=>{const r=UE.exec(e);return r?r[1]?t(r[1]):n:!1},jE=e=>e==="position"||e==="percentage",GE=e=>e==="image"||e==="url",VE=e=>e==="length"||e==="size"||e==="bg-size",HE=e=>e==="length",iI=e=>e==="number",oI=e=>e==="family-name",$E=e=>e==="shadow",sI=()=>{const e=Re("color"),t=Re("font"),n=Re("text"),r=Re("font-weight"),a=Re("tracking"),i=Re("leading"),o=Re("breakpoint"),s=Re("container"),l=Re("spacing"),c=Re("radius"),u=Re("shadow"),d=Re("inset-shadow"),p=Re("text-shadow"),f=Re("drop-shadow"),g=Re("blur"),b=Re("perspective"),h=Re("aspect"),m=Re("ease"),E=Re("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...T(),q,W],v=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],N=()=>[q,W,l],D=()=>[Tn,"full","auto",...N()],R=()=>[Gt,"none","subgrid",q,W],F=()=>["auto",{span:["full",Gt,q,W]},Gt,q,W],P=()=>[Gt,"auto",q,W],U=()=>["auto","min","max","fr",q,W],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...N()],j=()=>[Tn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],M=()=>[e,q,W],X=()=>[...T(),Zm,Xm,{position:[q,W]}],x=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",rI,eI,{size:[q,W]}],$=()=>[ho,Er,rn],k=()=>["","none","full",c,q,W],Z=()=>["",re,Er,rn],ce=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[re,ho,Zm,Xm],pe=()=>["","none",g,q,W],ge=()=>["none",re,q,W],ve=()=>["none",re,q,W],Oe=()=>[re,q,W],Ke=()=>[Tn,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Dt],breakpoint:[Dt],color:[KR],container:[Dt],"drop-shadow":[Dt],ease:["in","out","in-out"],font:[JR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Dt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Dt],shadow:[Dt],spacing:["px",re],text:[Dt],"text-shadow":[Dt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Tn,W,q,h]}],container:["container"],columns:[{columns:[re,W,q,s]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:A()}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Gt,"auto",q,W]}],basis:[{basis:[Tn,"full","auto",s,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,Tn,"auto","initial","none",W]}],grow:[{grow:["",re,q,W]}],shrink:[{shrink:["",re,q,W]}],order:[{order:[Gt,"first","last","none",q,W]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[s,"screen",...j()]}],"min-w":[{"min-w":[s,"screen","none",...j()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,Er,rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,q,bo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ho,W]}],"font-family":[{font:[nI,W,t]}],"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,q,W]}],"line-clamp":[{"line-clamp":[re,"none",q,bo]}],leading:[{leading:[i,...N()]}],"list-image":[{"list-image":["none",q,W]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",q,W]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",q,rn]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[re,"auto",q,W]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q,W]}],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",q,W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:x()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Gt,q,W],radial:["",q,W],conic:[Gt,q,W]},aI,tI]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[re,q,W]}],"outline-w":[{outline:["",re,Er,rn]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",u,Ca,Ia]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",d,Ca,Ia]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[re,rn]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",p,Ca,Ia]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[re,q,W]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[q,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":T()}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:x()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",q,W]}],filter:[{filter:["","none",q,W]}],blur:[{blur:pe()}],brightness:[{brightness:[re,q,W]}],contrast:[{contrast:[re,q,W]}],"drop-shadow":[{"drop-shadow":["","none",f,Ca,Ia]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",re,q,W]}],"hue-rotate":[{"hue-rotate":[re,q,W]}],invert:[{invert:["",re,q,W]}],saturate:[{saturate:[re,q,W]}],sepia:[{sepia:["",re,q,W]}],"backdrop-filter":[{"backdrop-filter":["","none",q,W]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[re,q,W]}],"backdrop-contrast":[{"backdrop-contrast":[re,q,W]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,q,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,q,W]}],"backdrop-invert":[{"backdrop-invert":["",re,q,W]}],"backdrop-opacity":[{"backdrop-opacity":[re,q,W]}],"backdrop-saturate":[{"backdrop-saturate":[re,q,W]}],"backdrop-sepia":[{"backdrop-sepia":["",re,q,W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",q,W]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",q,W]}],ease:[{ease:["linear","initial",m,q,W]}],delay:[{delay:[re,q,W]}],animate:[{animate:["none",E,q,W]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,q,W]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:ve()}],"scale-x":[{"scale-x":ve()}],"scale-y":[{"scale-y":ve()}],"scale-z":[{"scale-z":ve()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[q,W,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ke()}],"translate-x":[{"translate-x":Ke()}],"translate-y":[{"translate-y":Ke()}],"translate-z":[{"translate-z":Ke()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",q,W]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",q,W]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[re,Er,rn,bo]}],stroke:[{stroke:["none",...M()]}],"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"]}},lI=jR(sI),J=(...e)=>lI(LE(e)),ri=()=>new Date().toISOString(),cI=e=>e?new Date(e).toLocaleTimeString(void 0,{hour:"numeric",minute:"numeric",hour12:!1}):"";var Le=(e=>(e.ADD_MESSAGE="ADD_MESSAGE",e.SET_ERROR="SET_ERROR",e.UPDATE_MESSAGE="UPDATE_MESSAGE",e.DELETE_LAST_MESSAGE_PAIR="DELETE_LAST_MESSAGE_PAIR",e))(Le||{});function Qm(e){return e.type==="bot"}function uI(e,t){switch(t.type){case Le.ADD_MESSAGE:{const{id:n,message:r}=t.payload,a=ri(),i=TE();e.push({id:n,type:"user",message:r,state:"complete",timestamp:a},{id:i,source_id:n,type:"bot",message:"",state:"loading",timestamp:a,code:"",feedback_id:"",show_help_action:!1,show_feedback:!1});break}case Le.SET_ERROR:{const{id:n,error:r}=t.payload,a=e.find(i=>Qm(i)&&i.source_id===n);if(!a){console.warn(`Action ${Le.SET_ERROR}: Item not found`);return}typeof r=="string"?(a.message=r,a.state="error"):(a.message=r.detail,a.state="error",a.code=r.code||"UNKNOWN CODE");break}case Le.UPDATE_MESSAGE:{const{id:n,field:r,value:a}=t.payload,i=ri(),o=e.find(s=>Qm(s)&&s.source_id===n);if(!o)return;switch(r){case"state":o.state=a,o.timestamp=i;break;case"message":o.message=a;break;case"timestamp":o.timestamp=a;break;case"code":o.code=a;break;case"feedback_id":o.feedback_id=a;break;case"show_help_action":o.show_help_action=a;break;case"show_feedback":o.show_feedback=a;break;default:console.warn(`Unexpected field: ${String(r)}`)}break}case Le.DELETE_LAST_MESSAGE_PAIR:{e.length>=2?e.splice(e.length-2,2):console.warn(`${Le.DELETE_LAST_MESSAGE_PAIR} action called with insufficient messages in draft.`);break}}}const dI={id:null,token:null,apiAccessKey:null,api_v2_token:null,twoFactorAuth:null,role:null,expiresAt:null},pI=(e,t)=>({user:dI,chatAPIUrl:rt.CHAT_API_URL,hasAIDAConfig:!1,feedbackAPIUrl:rt.FEEDBACK_API_URL,apiService:new yr(rt.CHAT_API_URL,rt.FEEDBACK_API_URL,()=>t().user),endpoint:jr.AIDA,numRetries:0,retryTimeoutId:null,sessionId:Bm(),botState:"idle",question:"",messages:[],numMessagesExpanded:0,chatStartTimestamp:ri(),placeholders:[],onHelpAction:null,setUser:n=>e(r=>{r.user=n,r.apiService=new yr(r.chatAPIUrl,r.feedbackAPIUrl,()=>t().user)}),setChatAPIUrl:(n,r=!0)=>e(a=>{a.chatAPIUrl=n,a.hasAIDAConfig=r,a.apiService=new yr(n,a.feedbackAPIUrl,()=>t().user)}),setFeedbackAPIUrl:n=>e(r=>{r.feedbackAPIUrl=n,r.apiService=new yr(r.chatAPIUrl,n,()=>t().user)}),setEndpoint:n=>e(r=>{r.endpoint=n,r.apiService=new yr(t().chatAPIUrl,t().feedbackAPIUrl,()=>t().user)}),setQuestion:n=>e(r=>{r.question=n}),setNumRetries:n=>e(r=>{r.numRetries=n}),setRetryTimeoutId:n=>e(r=>{r.retryTimeoutId=n}),resetRetryMechanism:()=>e(n=>{n.numRetries=0,n.retryTimeoutId&&(clearTimeout(n.retryTimeoutId),n.retryTimeoutId=null)}),dispatchMessage:n=>e(r=>{t().endpoint,uI(r.messages,{...n})}),chatVisualState:je.INITIAL,setChatVisualState:n=>e(r=>{r.chatVisualState=n}),setNumMessagesExpanded:n=>e(r=>{n<0?r.numMessagesExpanded=0:r.numMessagesExpanded=n}),setBotState:n=>e(r=>{r.botState=n}),resetChat:()=>{e(n=>{n.messages.length=0,n.question="",n.chatVisualState=je.INITIAL,n.sessionId=Bm(),n.numMessagesExpanded=0,n.botState="idle",n.resetRetryMechanism(),n.chatStartTimestamp=ri()})},getLastMessage:()=>t().messages[t().messages.length-1],setOnHelpAction:n=>e(r=>{r.onHelpAction=n}),setPlaceholders:n=>e(r=>{r.placeholders=n})}),fI=`:root, :host {
55
+ */const K0=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],X0=Y0("brain",K0);var jr=(e=>(e.TAIA="taia",e))(jr||{});const vE={[jr.TAIA]:{label:"Heavy thinking",icon:"🧠",Icon:X0,ariaLabel:"Heavy thinking mode",endpoint:jr.TAIA,tooltip:{title:"🧠 Heavy thinking",capabilities:["Troubleshooting tools","Deep reasoning"],timing:"Slower, but thorough"},firstMessage:"Hello! I can help troubleshoot your account issues with heavy thinking and deep reasoning."}},Fm=Object.values(vE),Ne=[];for(let e=0;e<256;++e)Ne.push((e+256).toString(16).slice(1));function xE(e,t=0){return(Ne[e[t+0]]+Ne[e[t+1]]+Ne[e[t+2]]+Ne[e[t+3]]+"-"+Ne[e[t+4]]+Ne[e[t+5]]+"-"+Ne[e[t+6]]+Ne[e[t+7]]+"-"+Ne[e[t+8]]+Ne[e[t+9]]+"-"+Ne[e[t+10]]+Ne[e[t+11]]+Ne[e[t+12]]+Ne[e[t+13]]+Ne[e[t+14]]+Ne[e[t+15]]).toLowerCase()}let po;const Z0=new Uint8Array(16);function kE(){if(!po){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");po=crypto.getRandomValues.bind(crypto)}return po(Z0)}const Q0=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Pm={randomUUID:Q0};function TE(e,t,n){var a;if(Pm.randomUUID&&!e)return Pm.randomUUID();e=e||{};const r=e.random??((a=e.rng)==null?void 0:a.call(e))??kE();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,xE(r)}const fo={};function Bm(e,t,n){let r;{const a=Date.now(),i=kE();J0(fo,a,i),r=eR(i,fo.msecs,fo.seq,t,n)}return t??xE(r)}function J0(e,t,n){return e.msecs??(e.msecs=-1/0),e.seq??(e.seq=0),t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}function eR(e,t,n,r,a=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(!r)r=new Uint8Array(16),a=0;else if(a<0||a+16>r.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);return t??(t=Date.now()),n??(n=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9]),r[a++]=t/1099511627776&255,r[a++]=t/4294967296&255,r[a++]=t/16777216&255,r[a++]=t/65536&255,r[a++]=t/256&255,r[a++]=t&255,r[a++]=112|n>>>28&15,r[a++]=n>>>20&255,r[a++]=128|n>>>14&63,r[a++]=n>>>6&255,r[a++]=n<<2&255|e[10]&3,r[a++]=e[11],r[a++]=e[12],r[a++]=e[13],r[a++]=e[14],r[a++]=e[15],r}const Um=e=>{let t;const n=new Set,r=(c,u)=>{const d=typeof c=="function"?c(t):c;if(!Object.is(d,t)){const p=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(f=>f(t,p))}},a=()=>t,s={setState:r,getState:a,getInitialState:()=>l,subscribe:c=>(n.add(c),()=>n.delete(c))},l=t=e(r,a,s);return s},tR=(e=>e?Um(e):Um),nR=e=>e;function rR(e,t=nR){const n=O.useSyncExternalStore(e.subscribe,O.useCallback(()=>t(e.getState()),[e,t]),O.useCallback(()=>t(e.getInitialState()),[e,t]));return O.useDebugValue(n),n}const zm=e=>{const t=tR(e),n=r=>rR(t,r);return Object.assign(n,t),n},aR=(e=>e?zm(e):zm);var AE=Symbol.for("immer-nothing"),jm=Symbol.for("immer-draftable"),tt=Symbol.for("immer-state"),iR=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function He(e,...t){if(process.env.NODE_ENV!=="production"){const n=iR[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Gr=Object.getPrototypeOf;function Vn(e){return!!e&&!!e[tt]}function gn(e){var t;return e?RE(e)||Array.isArray(e)||!!e[jm]||!!((t=e.constructor)!=null&&t[jm])||aa(e)||vi(e):!1}var oR=Object.prototype.constructor.toString(),Gm=new WeakMap;function RE(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=Gm.get(n);return r===void 0&&(r=Function.toString.call(n),Gm.set(n,r)),r===oR}function Ja(e,t,n=!0){Si(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((r,a)=>t(a,r,e))}function Si(e){const t=e[tt];return t?t.type_:Array.isArray(e)?1:aa(e)?2:vi(e)?3:0}function ms(e,t){return Si(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function IE(e,t,n){const r=Si(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function sR(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function aa(e){return e instanceof Map}function vi(e){return e instanceof Set}function sn(e){return e.copy_||e.base_}function hs(e,t){if(aa(e))return new Map(e);if(vi(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=RE(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[tt];let a=Reflect.ownKeys(r);for(let i=0;i<a.length;i++){const o=a[i],s=r[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Gr(e),r)}else{const r=Gr(e);if(r!==null&&n)return{...e};const a=Object.create(r);return Object.assign(a,e)}}function Il(e,t=!1){return xi(e)||Vn(e)||!gn(e)||(Si(e)>1&&Object.defineProperties(e,{set:Ra,add:Ra,clear:Ra,delete:Ra}),Object.freeze(e),t&&Object.values(e).forEach(n=>Il(n,!0))),e}function lR(){He(2)}var Ra={value:lR};function xi(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var cR={};function mn(e){const t=cR[e];return t||He(0,e),t}var Vr;function CE(){return Vr}function uR(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Vm(e,t){t&&(mn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function bs(e){ys(e),e.drafts_.forEach(dR),e.drafts_=null}function ys(e){e===Vr&&(Vr=e.parent_)}function Hm(e){return Vr=uR(Vr,e)}function dR(e){const t=e[tt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function $m(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[tt].modified_&&(bs(t),He(4)),gn(e)&&(e=ei(t,e),t.parent_||ti(t,e)),t.patches_&&mn("Patches").generateReplacementPatches_(n[tt].base_,e,t.patches_,t.inversePatches_)):e=ei(t,n,[]),bs(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==AE?e:void 0}function ei(e,t,n){if(xi(t))return t;const r=e.immer_.shouldUseStrictIteration(),a=t[tt];if(!a)return Ja(t,(i,o)=>Wm(e,a,t,i,o,n),r),t;if(a.scope_!==e)return t;if(!a.modified_)return ti(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const i=a.copy_;let o=i,s=!1;a.type_===3&&(o=new Set(i),i.clear(),s=!0),Ja(o,(l,c)=>Wm(e,a,i,l,c,n,s),r),ti(e,i,!1),n&&e.patches_&&mn("Patches").generatePatches_(a,n,e.patches_,e.inversePatches_)}return a.copy_}function Wm(e,t,n,r,a,i,o){if(a==null||typeof a!="object"&&!o)return;const s=xi(a);if(!(s&&!o)){if(process.env.NODE_ENV!=="production"&&a===n&&He(5),Vn(a)){const l=i&&t&&t.type_!==3&&!ms(t.assigned_,r)?i.concat(r):void 0,c=ei(e,a,l);if(IE(n,r,c),Vn(c))e.canAutoFreeze_=!1;else return}else o&&n.add(a);if(gn(a)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===a&&s)return;ei(e,a),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(aa(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&ti(e,a)}}}function ti(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Il(t,n)}function pR(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:CE(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=r,i=Cl;n&&(a=[r],i=Hr);const{revoke:o,proxy:s}=Proxy.revocable(a,i);return r.draft_=s,r.revoke_=o,s}var Cl={get(e,t){if(t===tt)return e;const n=sn(e);if(!ms(n,t))return fR(e,n,t);const r=n[t];return e.finalized_||!gn(r)?r:r===go(e.base_,t)?(mo(e),e.copy_[t]=ws(r,e)):r},has(e,t){return t in sn(e)},ownKeys(e){return Reflect.ownKeys(sn(e))},set(e,t,n){const r=NE(sn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const a=go(sn(e),t),i=a==null?void 0:a[tt];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(sR(n,a)&&(n!==void 0||ms(e.base_,t)))return!0;mo(e),Es(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return go(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,mo(e),Es(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=sn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){He(11)},getPrototypeOf(e){return Gr(e.base_)},setPrototypeOf(){He(12)}},Hr={};Ja(Cl,(e,t)=>{Hr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Hr.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&He(13),Hr.set.call(this,e,t,void 0)};Hr.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&He(14),Cl.set.call(this,e[0],t,n,e[0])};function go(e,t){const n=e[tt];return(n?sn(n):e)[t]}function fR(e,t,n){var a;const r=NE(t,n);return r?"value"in r?r.value:(a=r.get)==null?void 0:a.call(e.draft_):void 0}function NE(e,t){if(!(t in e))return;let n=Gr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Gr(n)}}function Es(e){e.modified_||(e.modified_=!0,e.parent_&&Es(e.parent_))}function mo(e){e.copy_||(e.copy_=hs(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var gR=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const o=this;return function(l=i,...c){return o.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&He(6),r!==void 0&&typeof r!="function"&&He(7);let a;if(gn(t)){const i=Hm(this),o=ws(t,void 0);let s=!0;try{a=n(o),s=!1}finally{s?bs(i):ys(i)}return Vm(i,r),$m(a,i)}else if(!t||typeof t!="object"){if(a=n(t),a===void 0&&(a=t),a===AE&&(a=void 0),this.autoFreeze_&&Il(a,!0),r){const i=[],o=[];mn("Patches").generateReplacementPatches_(t,a,i,o),r(i,o)}return a}else He(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let r,a;return[this.produce(t,n,(o,s)=>{r=o,a=s}),r,a]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){gn(e)||He(8),Vn(e)&&(e=mR(e));const t=Hm(this),n=ws(e,void 0);return n[tt].isManual_=!0,ys(t),n}finishDraft(e,t){const n=e&&e[tt];(!n||!n.isManual_)&&He(9);const{scope_:r}=n;return Vm(r,t),$m(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(t=t.slice(n+1));const r=mn("Patches").applyPatches_;return Vn(e)?r(e,t):this.produce(e,a=>r(a,t))}};function ws(e,t){const n=aa(e)?mn("MapSet").proxyMap_(e,t):vi(e)?mn("MapSet").proxySet_(e,t):pR(e,t);return(t?t.scope_:CE()).drafts_.push(n),n}function mR(e){return Vn(e)||He(10,e),_E(e)}function _E(e){if(!gn(e)||xi(e))return e;const t=e[tt];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=hs(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=hs(e,!0);return Ja(n,(a,i)=>{IE(n,a,_E(i))},r),t&&(t.finalized_=!1),n}var hR=new gR,bR=hR.produce;const yR=e=>(t,n,r)=>(r.setState=(a,i,...o)=>{const s=typeof a=="function"?bR(a):a;return t(s,i,...o)},e(r.setState,n,r)),ER=yR,kn={POSITIVE:"positive",NEGATIVE:"negative"};class wR{constructor(t,n,r){wa(this,"baseURL");wa(this,"feedbackUrl");wa(this,"getUser");this.baseURL=t,this.feedbackUrl=n,this.getUser=r}async sendFeedback({messageId:t,type:n}){try{const r=this.getUser(),{id:a}=r;if(!a){console.error("User ID is required to send feedback");return}const i=r==null?void 0:r.api_v2_token;if(!(await fetch(`${this.feedbackUrl}`,{method:"POST",body:JSON.stringify({message_id:t,type:n,user_id:a}),headers:{"Content-Type":"application/json",...i&&{Authorization:`Bearer ${i}`}}})).ok)throw new Error("Failed to send feedback")}catch(r){console.error("Error sending feedback",r)}}}class yr extends wR{constructor(t,n,r){super(t,n,r)}async sendQuestion(t){const n=this.getUser(),r=n==null?void 0:n.api_v2_token,a=new FormData;a.append("session_id",t.sessionId),a.append("question",t.question),t.messages&&a.append("messages",JSON.stringify(t.messages));const i={Authorization:`Bearer ${r}`},o=await fetch(this.baseURL,{method:"POST",body:a,headers:i});if(!o.ok){const s=await o.text();throw new Error(`HTTP error! status: ${o.status}, text: ${s}`)}if(!o.body)throw new Error("Response body is null");return o.body.pipeThrough(new TextDecoderStream)}}const st={OPEN:"open",CLOSED:"closed"},je={INITIAL:"initial",USER_HAS_TYPED:"userHasTyped"},Hn={HAS_BEEN_OPENED:"hasBeenOpened",HAS_NOT_BEEN_OPENED:"hasNotBeenOpened"},ft={EXPANDED:"expanded",COLLAPSED:"collapsed"};function OE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=OE(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function LE(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=OE(e))&&(r&&(r+=" "),r+=t);return r}const SR=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},vR=(e,t)=>({classGroupId:e,validator:t}),DE=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ni="-",qm=[],xR="arbitrary..",kR=e=>{const t=AR(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return TR(o);const s=o.split(ni),l=s[0]===""&&s.length>1?1:0;return ME(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=r[o],c=n[o];return l?c?SR(c,l):l:c||qm}return n[o]||qm}}},ME=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],i=n.nextPart.get(a);if(i){const c=ME(e,t+1,i);if(c)return c}const o=n.validators;if(o===null)return;const s=t===0?e.join(ni):e.slice(t).join(ni),l=o.length;for(let c=0;c<l;c++){const u=o[c];if(u.validator(s))return u.classGroupId}},TR=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?xR+r:void 0})(),AR=e=>{const{theme:t,classGroups:n}=e;return RR(n,t)},RR=(e,t)=>{const n=DE();for(const r in e){const a=e[r];Nl(a,n,r,t)}return n},Nl=(e,t,n,r)=>{const a=e.length;for(let i=0;i<a;i++){const o=e[i];IR(o,t,n,r)}},IR=(e,t,n,r)=>{if(typeof e=="string"){CR(e,t,n);return}if(typeof e=="function"){NR(e,t,n,r);return}_R(e,t,n,r)},CR=(e,t,n)=>{const r=e===""?t:FE(t,e);r.classGroupId=n},NR=(e,t,n,r)=>{if(OR(e)){Nl(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(vR(n,e))},_R=(e,t,n,r)=>{const a=Object.entries(e),i=a.length;for(let o=0;o<i;o++){const[s,l]=a[o];Nl(l,FE(t,s),n,r)}},FE=(e,t)=>{let n=e;const r=t.split(ni),a=r.length;for(let i=0;i<a;i++){const o=r[i];let s=n.nextPart.get(o);s||(s=DE(),n.nextPart.set(o,s)),n=s}return n},OR=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,LR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(i,o)=>{n[i]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let o=n[i];if(o!==void 0)return o;if((o=r[i])!==void 0)return a(i,o),o},set(i,o){i in n?n[i]=o:a(i,o)}}},Ss="!",Ym=":",DR=[],Km=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),MR=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const i=[];let o=0,s=0,l=0,c;const u=a.length;for(let b=0;b<u;b++){const h=a[b];if(o===0&&s===0){if(h===Ym){i.push(a.slice(l,b)),l=b+1;continue}if(h==="/"){c=b;continue}}h==="["?o++:h==="]"?o--:h==="("?s++:h===")"&&s--}const d=i.length===0?a:a.slice(l);let p=d,f=!1;d.endsWith(Ss)?(p=d.slice(0,-1),f=!0):d.startsWith(Ss)&&(p=d.slice(1),f=!0);const g=c&&c>l?c-l:void 0;return Km(i,f,p,g)};if(t){const a=t+Ym,i=r;r=o=>o.startsWith(a)?i(o.slice(a.length)):Km(DR,!1,o,void 0,!0)}if(n){const a=r;r=i=>n({className:i,parseClassName:a})}return r},FR=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let i=0;i<n.length;i++){const o=n[i],s=o[0]==="[",l=t.has(o);s||l?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(o)):a.push(o)}return a.length>0&&(a.sort(),r.push(...a)),r}},PR=e=>({cache:LR(e.cacheSize),parseClassName:MR(e),sortModifiers:FR(e),...kR(e)}),BR=/\s+/,UR=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:i}=t,o=[],s=e.trim().split(BR);let l="";for(let c=s.length-1;c>=0;c-=1){const u=s[c],{isExternal:d,modifiers:p,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:b}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let h=!!b,m=r(h?g.substring(0,b):g);if(!m){if(!h){l=u+(l.length>0?" "+l:l);continue}if(m=r(g),!m){l=u+(l.length>0?" "+l:l);continue}h=!1}const E=p.length===0?"":p.length===1?p[0]:i(p).join(":"),S=f?E+Ss:E,T=S+m;if(o.indexOf(T)>-1)continue;o.push(T);const A=a(m,h);for(let v=0;v<A.length;++v){const _=A[v];o.push(S+_)}l=u+(l.length>0?" "+l:l)}return l},zR=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=PE(n))&&(a&&(a+=" "),a+=r);return a},PE=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=PE(e[r]))&&(n&&(n+=" "),n+=t);return n},jR=(e,...t)=>{let n,r,a,i;const o=l=>{const c=t.reduce((u,d)=>d(u),e());return n=PR(c),r=n.cache.get,a=n.cache.set,i=s,s(l)},s=l=>{const c=r(l);if(c)return c;const u=UR(l,n);return a(l,u),u};return i=o,(...l)=>i(zR(...l))},GR=[],Re=e=>{const t=n=>n[e]||GR;return t.isThemeGetter=!0,t},BE=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,UE=/^\((?:(\w[\w-]*):)?(.+)\)$/i,VR=/^\d+\/\d+$/,HR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$R=/\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$/,WR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,YR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=e=>VR.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),Gt=e=>!!e&&Number.isInteger(Number(e)),ho=e=>e.endsWith("%")&&re(e.slice(0,-1)),Dt=e=>HR.test(e),KR=()=>!0,XR=e=>$R.test(e)&&!WR.test(e),zE=()=>!1,ZR=e=>qR.test(e),QR=e=>YR.test(e),JR=e=>!W(e)&&!q(e),eI=e=>Qn(e,VE,zE),W=e=>BE.test(e),rn=e=>Qn(e,HE,XR),bo=e=>Qn(e,iI,re),Xm=e=>Qn(e,jE,zE),tI=e=>Qn(e,GE,QR),Ia=e=>Qn(e,$E,ZR),q=e=>UE.test(e),Er=e=>Jn(e,HE),nI=e=>Jn(e,oI),Zm=e=>Jn(e,jE),rI=e=>Jn(e,VE),aI=e=>Jn(e,GE),Ca=e=>Jn(e,$E,!0),Qn=(e,t,n)=>{const r=BE.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Jn=(e,t,n=!1)=>{const r=UE.exec(e);return r?r[1]?t(r[1]):n:!1},jE=e=>e==="position"||e==="percentage",GE=e=>e==="image"||e==="url",VE=e=>e==="length"||e==="size"||e==="bg-size",HE=e=>e==="length",iI=e=>e==="number",oI=e=>e==="family-name",$E=e=>e==="shadow",sI=()=>{const e=Re("color"),t=Re("font"),n=Re("text"),r=Re("font-weight"),a=Re("tracking"),i=Re("leading"),o=Re("breakpoint"),s=Re("container"),l=Re("spacing"),c=Re("radius"),u=Re("shadow"),d=Re("inset-shadow"),p=Re("text-shadow"),f=Re("drop-shadow"),g=Re("blur"),b=Re("perspective"),h=Re("aspect"),m=Re("ease"),E=Re("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...T(),q,W],v=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],N=()=>[q,W,l],D=()=>[Tn,"full","auto",...N()],R=()=>[Gt,"none","subgrid",q,W],F=()=>["auto",{span:["full",Gt,q,W]},Gt,q,W],P=()=>[Gt,"auto",q,W],U=()=>["auto","min","max","fr",q,W],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],B=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...N()],j=()=>[Tn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],M=()=>[e,q,W],X=()=>[...T(),Zm,Xm,{position:[q,W]}],x=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",rI,eI,{size:[q,W]}],$=()=>[ho,Er,rn],k=()=>["","none","full",c,q,W],Z=()=>["",re,Er,rn],ce=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[re,ho,Zm,Xm],pe=()=>["","none",g,q,W],ge=()=>["none",re,q,W],ve=()=>["none",re,q,W],Oe=()=>[re,q,W],Ke=()=>[Tn,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Dt],breakpoint:[Dt],color:[KR],container:[Dt],"drop-shadow":[Dt],ease:["in","out","in-out"],font:[JR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Dt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Dt],shadow:[Dt],spacing:["px",re],text:[Dt],"text-shadow":[Dt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Tn,W,q,h]}],container:["container"],columns:[{columns:[re,W,q,s]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"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:A()}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Gt,"auto",q,W]}],basis:[{basis:[Tn,"full","auto",s,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,Tn,"auto","initial","none",W]}],grow:[{grow:["",re,q,W]}],shrink:[{shrink:["",re,q,W]}],order:[{order:[Gt,"first","last","none",q,W]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...B(),"normal"]}],"justify-self":[{"justify-self":["auto",...B()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...B(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...B(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...B(),"baseline"]}],"place-self":[{"place-self":["auto",...B()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:j()}],w:[{w:[s,"screen",...j()]}],"min-w":[{"min-w":[s,"screen","none",...j()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...j()]}],h:[{h:["screen","lh",...j()]}],"min-h":[{"min-h":["screen","lh","none",...j()]}],"max-h":[{"max-h":["screen","lh",...j()]}],"font-size":[{text:["base",n,Er,rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,q,bo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ho,W]}],"font-family":[{font:[nI,W,t]}],"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,q,W]}],"line-clamp":[{"line-clamp":[re,"none",q,bo]}],leading:[{leading:[i,...N()]}],"list-image":[{"list-image":["none",q,W]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",q,W]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",q,rn]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[re,"auto",q,W]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q,W]}],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",q,W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:x()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Gt,q,W],radial:["",q,W],conic:[Gt,q,W]},aI,tI]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[re,q,W]}],"outline-w":[{outline:["",re,Er,rn]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",u,Ca,Ia]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",d,Ca,Ia]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[re,rn]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",p,Ca,Ia]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[re,q,W]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[q,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":T()}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:x()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",q,W]}],filter:[{filter:["","none",q,W]}],blur:[{blur:pe()}],brightness:[{brightness:[re,q,W]}],contrast:[{contrast:[re,q,W]}],"drop-shadow":[{"drop-shadow":["","none",f,Ca,Ia]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",re,q,W]}],"hue-rotate":[{"hue-rotate":[re,q,W]}],invert:[{invert:["",re,q,W]}],saturate:[{saturate:[re,q,W]}],sepia:[{sepia:["",re,q,W]}],"backdrop-filter":[{"backdrop-filter":["","none",q,W]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[re,q,W]}],"backdrop-contrast":[{"backdrop-contrast":[re,q,W]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,q,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,q,W]}],"backdrop-invert":[{"backdrop-invert":["",re,q,W]}],"backdrop-opacity":[{"backdrop-opacity":[re,q,W]}],"backdrop-saturate":[{"backdrop-saturate":[re,q,W]}],"backdrop-sepia":[{"backdrop-sepia":["",re,q,W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",q,W]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",q,W]}],ease:[{ease:["linear","initial",m,q,W]}],delay:[{delay:[re,q,W]}],animate:[{animate:["none",E,q,W]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,q,W]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:ve()}],"scale-x":[{"scale-x":ve()}],"scale-y":[{"scale-y":ve()}],"scale-z":[{"scale-z":ve()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[q,W,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ke()}],"translate-x":[{"translate-x":Ke()}],"translate-y":[{"translate-y":Ke()}],"translate-z":[{"translate-z":Ke()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",q,W]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",q,W]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[re,Er,rn,bo]}],stroke:[{stroke:["none",...M()]}],"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"]}},lI=jR(sI),J=(...e)=>lI(LE(e)),ri=()=>new Date().toISOString(),cI=e=>e?new Date(e).toLocaleTimeString(void 0,{hour:"numeric",minute:"numeric",hour12:!1}):"";var Le=(e=>(e.ADD_MESSAGE="ADD_MESSAGE",e.SET_ERROR="SET_ERROR",e.UPDATE_MESSAGE="UPDATE_MESSAGE",e.DELETE_LAST_MESSAGE_PAIR="DELETE_LAST_MESSAGE_PAIR",e))(Le||{});function Qm(e){return e.type==="bot"}function uI(e,t){switch(t.type){case Le.ADD_MESSAGE:{const{id:n,message:r}=t.payload,a=ri(),i=TE();e.push({id:n,type:"user",message:r,state:"complete",timestamp:a},{id:i,source_id:n,type:"bot",message:"",state:"loading",timestamp:a,code:"",feedback_id:"",show_help_action:!1,show_feedback:!1});break}case Le.SET_ERROR:{const{id:n,error:r}=t.payload,a=e.find(i=>Qm(i)&&i.source_id===n);if(!a){console.warn(`Action ${Le.SET_ERROR}: Item not found`);return}typeof r=="string"?(a.message=r,a.state="error"):(a.message=r.detail,a.state="error",a.code=r.code||"UNKNOWN CODE");break}case Le.UPDATE_MESSAGE:{const{id:n,field:r,value:a}=t.payload,i=ri(),o=e.find(s=>Qm(s)&&s.source_id===n);if(!o)return;switch(r){case"state":o.state=a,o.timestamp=i;break;case"message":o.message=a;break;case"timestamp":o.timestamp=a;break;case"code":o.code=a;break;case"feedback_id":o.feedback_id=a;break;case"show_help_action":o.show_help_action=a;break;case"show_feedback":o.show_feedback=a;break;default:console.warn(`Unexpected field: ${String(r)}`)}break}case Le.DELETE_LAST_MESSAGE_PAIR:{e.length>=2?e.splice(e.length-2,2):console.warn(`${Le.DELETE_LAST_MESSAGE_PAIR} action called with insufficient messages in draft.`);break}}}const dI={id:null,token:null,apiAccessKey:null,api_v2_token:null,twoFactorAuth:null,role:null,expiresAt:null},pI=(e,t)=>({user:dI,chatAPIUrl:rt.CHAT_API_URL,hasTAIAConfig:!1,feedbackAPIUrl:rt.FEEDBACK_API_URL,apiService:new yr(rt.CHAT_API_URL,rt.FEEDBACK_API_URL,()=>t().user),endpoint:jr.TAIA,numRetries:0,retryTimeoutId:null,sessionId:Bm(),botState:"idle",question:"",messages:[],numMessagesExpanded:0,chatStartTimestamp:ri(),placeholders:[],onHelpAction:null,setUser:n=>e(r=>{r.user=n,r.apiService=new yr(r.chatAPIUrl,r.feedbackAPIUrl,()=>t().user)}),setChatAPIUrl:(n,r=!0)=>e(a=>{a.chatAPIUrl=n,a.hasTAIAConfig=r,a.apiService=new yr(n,a.feedbackAPIUrl,()=>t().user)}),setFeedbackAPIUrl:n=>e(r=>{r.feedbackAPIUrl=n,r.apiService=new yr(r.chatAPIUrl,n,()=>t().user)}),setEndpoint:n=>e(r=>{r.endpoint=n,r.apiService=new yr(t().chatAPIUrl,t().feedbackAPIUrl,()=>t().user)}),setQuestion:n=>e(r=>{r.question=n}),setNumRetries:n=>e(r=>{r.numRetries=n}),setRetryTimeoutId:n=>e(r=>{r.retryTimeoutId=n}),resetRetryMechanism:()=>e(n=>{n.numRetries=0,n.retryTimeoutId&&(clearTimeout(n.retryTimeoutId),n.retryTimeoutId=null)}),dispatchMessage:n=>e(r=>{t().endpoint,uI(r.messages,{...n})}),chatVisualState:je.INITIAL,setChatVisualState:n=>e(r=>{r.chatVisualState=n}),setNumMessagesExpanded:n=>e(r=>{n<0?r.numMessagesExpanded=0:r.numMessagesExpanded=n}),setBotState:n=>e(r=>{r.botState=n}),resetChat:()=>{e(n=>{n.messages.length=0,n.question="",n.chatVisualState=je.INITIAL,n.sessionId=Bm(),n.numMessagesExpanded=0,n.botState="idle",n.resetRetryMechanism(),n.chatStartTimestamp=ri()})},getLastMessage:()=>t().messages[t().messages.length-1],setOnHelpAction:n=>e(r=>{r.onHelpAction=n}),setPlaceholders:n=>e(r=>{r.placeholders=n})}),fI=`:root, :host {
56
56
  --tw-animation-delay: 0s;
57
57
  --tw-animation-direction: normal;
58
58
  --tw-animation-fill-mode: none;
@@ -364,6 +364,17 @@ React keys must be passed directly to JSX without using spread:
364
364
  .visible {
365
365
  visibility: visible;
366
366
  }
367
+ .sr-only {
368
+ position: absolute;
369
+ width: 1px;
370
+ height: 1px;
371
+ padding: 0;
372
+ margin: -1px;
373
+ overflow: hidden;
374
+ clip-path: inset(50%);
375
+ white-space: nowrap;
376
+ border-width: 0;
377
+ }
367
378
  .absolute {
368
379
  position: absolute;
369
380
  }
@@ -727,6 +738,10 @@ React keys must be passed directly to JSX without using spread:
727
738
  --tw-translate-x: calc(calc(1/2 * 100%) * -1);
728
739
  translate: var(--tw-translate-x) var(--tw-translate-y);
729
740
  }
741
+ .-translate-x-full {
742
+ --tw-translate-x: -100%;
743
+ translate: var(--tw-translate-x) var(--tw-translate-y);
744
+ }
730
745
  .-translate-y-0\\.5 {
731
746
  --tw-translate-y: calc(var(--spacing) * -0.5);
732
747
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -764,6 +779,9 @@ React keys must be passed directly to JSX without using spread:
764
779
  .animate-shadow-grow {
765
780
  animation: var(--animate-shadow-grow);
766
781
  }
782
+ .animate-shimmer {
783
+ animation: var(--animate-shimmer);
784
+ }
767
785
  .animate-spin {
768
786
  animation: var(--animate-spin);
769
787
  }
@@ -893,6 +911,9 @@ React keys must be passed directly to JSX without using spread:
893
911
  .rounded-2xl {
894
912
  border-radius: var(--radius-2xl);
895
913
  }
914
+ .rounded-\\[7px\\] {
915
+ border-radius: 7px;
916
+ }
896
917
  .rounded-\\[30px\\] {
897
918
  border-radius: 30px;
898
919
  }
@@ -993,9 +1014,6 @@ React keys must be passed directly to JSX without using spread:
993
1014
  .border-widget-text-primary {
994
1015
  border-color: var(--color-widget-text-primary);
995
1016
  }
996
- .bg-\\[\\#fefef8\\] {
997
- background-color: #fefef8;
998
- }
999
1017
  .bg-black {
1000
1018
  background-color: var(--color-black);
1001
1019
  }
@@ -1122,6 +1140,14 @@ React keys must be passed directly to JSX without using spread:
1122
1140
  --tw-gradient-from: transparent;
1123
1141
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
1124
1142
  }
1143
+ .via-neutral-600\\/30 {
1144
+ --tw-gradient-via: color-mix(in srgb, oklch(43.9% 0 0) 30%, transparent);
1145
+ @supports (color: color-mix(in lab, red, red)) {
1146
+ --tw-gradient-via: color-mix(in oklab, var(--color-neutral-600) 30%, transparent);
1147
+ }
1148
+ --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
1149
+ --tw-gradient-stops: var(--tw-gradient-via-stops);
1150
+ }
1125
1151
  .via-telnyx-green {
1126
1152
  --tw-gradient-via: var(--color-telnyx-green);
1127
1153
  --tw-gradient-via-stops: var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-via) var(--tw-gradient-via-position), var(--tw-gradient-to) var(--tw-gradient-to-position);
@@ -1165,6 +1191,9 @@ React keys must be passed directly to JSX without using spread:
1165
1191
  .p-6 {
1166
1192
  padding: calc(var(--spacing) * 6);
1167
1193
  }
1194
+ .p-px {
1195
+ padding: 1px;
1196
+ }
1168
1197
  .px-1 {
1169
1198
  padding-inline: calc(var(--spacing) * 1);
1170
1199
  }
@@ -1430,6 +1459,10 @@ React keys must be passed directly to JSX without using spread:
1430
1459
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
1431
1460
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1432
1461
  }
1462
+ .ring {
1463
+ --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1464
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1465
+ }
1433
1466
  .ring-0 {
1434
1467
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
1435
1468
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
@@ -2101,6 +2134,11 @@ React keys must be passed directly to JSX without using spread:
2101
2134
  color: var(--color-white);
2102
2135
  }
2103
2136
  }
2137
+ .motion-reduce\\:animate-none {
2138
+ @media (prefers-reduced-motion: reduce) {
2139
+ animation: none;
2140
+ }
2141
+ }
2104
2142
  .motion-reduce\\:transition-none {
2105
2143
  @media (prefers-reduced-motion: reduce) {
2106
2144
  transition-property: none;
@@ -2678,7 +2716,7 @@ React keys must be passed directly to JSX without using spread:
2678
2716
  src: url("data:font/woff2;charset=utf-8;base64,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")
2679
2717
  format("woff2");
2680
2718
  }
2681
- `;function wI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"}))}const SI=I.forwardRef(wI);function vI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const WE=I.forwardRef(vI);function xI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"}))}const kI=I.forwardRef(xI);function TI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"}))}const AI=I.forwardRef(TI);function RI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"}))}const II=I.forwardRef(RI);function CI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"}))}const NI=I.forwardRef(CI);function _I({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"}))}const OI=I.forwardRef(_I);function LI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54"}))}const DI=I.forwardRef(LI);function MI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"}))}const FI=I.forwardRef(MI);function PI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"}))}const qE=I.forwardRef(PI);function BI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const YE=I.forwardRef(BI);function De(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Jm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function KE(...e){return t=>{let n=!1;const r=e.map(a=>{const i=Jm(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():Jm(e[a],null)}}}}function kt(...e){return I.useCallback(KE(...e),e)}function ia(e,t=[]){let n=[];function r(i,o){const s=I.createContext(o),l=n.length;n=[...n,o];const c=d=>{var m;const{scope:p,children:f,...g}=d,b=((m=p==null?void 0:p[e])==null?void 0:m[l])||s,h=I.useMemo(()=>g,Object.values(g));return y.jsx(b.Provider,{value:h,children:f})};c.displayName=i+"Provider";function u(d,p){var b;const f=((b=p==null?void 0:p[e])==null?void 0:b[l])||s,g=I.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const a=()=>{const i=n.map(o=>I.createContext(o));return function(s){const l=(s==null?void 0:s[e])||i;return I.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return a.scopeName=e,[r,UI(a,...t)]}function UI(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return I.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function vs(e){const t=zI(e),n=I.forwardRef((r,a)=>{const{children:i,...o}=r,s=I.Children.toArray(i),l=s.find(GI);if(l){const c=l.props.children,u=s.map(d=>d===l?I.Children.count(c)>1?I.Children.only(null):I.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...o,ref:a,children:I.isValidElement(c)?I.cloneElement(c,void 0,u):null})}return y.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function zI(e){const t=I.forwardRef((n,r)=>{const{children:a,...i}=n;if(I.isValidElement(a)){const o=HI(a),s=VI(i,a.props);return a.type!==I.Fragment&&(s.ref=r?KE(r,o):o),I.cloneElement(a,s)}return I.Children.count(a)>1?I.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var XE=Symbol("radix.slottable");function jI(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=XE,t}function GI(e){return I.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===XE}function VI(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...s)=>{const l=i(...s);return a(...s),l}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function HI(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $I=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lt=$I.reduce((e,t)=>{const n=vs(`Primitive.${t}`),r=I.forwardRef((a,i)=>{const{asChild:o,...s}=a,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function WI(e,t){e&&Cb.flushSync(()=>e.dispatchEvent(t))}function oa(e){const t=I.useRef(e);return I.useEffect(()=>{t.current=e}),I.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function qI(e,t=globalThis==null?void 0:globalThis.document){const n=oa(e);I.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var YI="DismissableLayer",xs="dismissableLayer.update",KI="dismissableLayer.pointerDownOutside",XI="dismissableLayer.focusOutside",eh,ZE=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),QE=I.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:s,...l}=e,c=I.useContext(ZE),[u,d]=I.useState(null),p=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=I.useState({}),g=kt(t,_=>d(_)),b=Array.from(c.layers),[h]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(h),E=u?b.indexOf(u):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,T=E>=m,A=JI(_=>{const N=_.target,D=[...c.branches].some(R=>R.contains(N));!T||D||(a==null||a(_),o==null||o(_),_.defaultPrevented||s==null||s())},p),v=eC(_=>{const N=_.target;[...c.branches].some(R=>R.contains(N))||(i==null||i(_),o==null||o(_),_.defaultPrevented||s==null||s())},p);return qI(_=>{E===c.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},p),I.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(eh=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),th(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=eh)}},[u,p,n,c]),I.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),th())},[u,c]),I.useEffect(()=>{const _=()=>f({});return document.addEventListener(xs,_),()=>document.removeEventListener(xs,_)},[]),y.jsx(lt.div,{...l,ref:g,style:{pointerEvents:S?T?"auto":"none":void 0,...e.style},onFocusCapture:De(e.onFocusCapture,v.onFocusCapture),onBlurCapture:De(e.onBlurCapture,v.onBlurCapture),onPointerDownCapture:De(e.onPointerDownCapture,A.onPointerDownCapture)})});QE.displayName=YI;var ZI="DismissableLayerBranch",QI=I.forwardRef((e,t)=>{const n=I.useContext(ZE),r=I.useRef(null),a=kt(t,r);return I.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),y.jsx(lt.div,{...e,ref:a})});QI.displayName=ZI;function JI(e,t=globalThis==null?void 0:globalThis.document){const n=oa(e),r=I.useRef(!1),a=I.useRef(()=>{});return I.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){JE(KI,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=l,t.addEventListener("click",a.current,{once:!0})):l()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function eC(e,t=globalThis==null?void 0:globalThis.document){const n=oa(e),r=I.useRef(!1);return I.useEffect(()=>{const a=i=>{i.target&&!r.current&&JE(XI,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function th(){const e=new CustomEvent(xs);document.dispatchEvent(e)}function JE(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?WI(a,i):a.dispatchEvent(i)}var hn=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{},tC=I[" useId ".trim().toString()]||(()=>{}),nC=0;function ew(e){const[t,n]=I.useState(tC());return hn(()=>{n(r=>r??String(nC++))},[e]),t?`radix-${t}`:""}const rC=["top","right","bottom","left"],Yt=Math.min,Qe=Math.max,ai=Math.round,Na=Math.floor,vt=e=>({x:e,y:e}),aC={left:"right",right:"left",bottom:"top",top:"bottom"},iC={start:"end",end:"start"};function ks(e,t,n){return Qe(e,Yt(t,n))}function Ft(e,t){return typeof e=="function"?e(t):e}function Pt(e){return e.split("-")[0]}function er(e){return e.split("-")[1]}function _l(e){return e==="x"?"y":"x"}function Ol(e){return e==="y"?"height":"width"}const oC=new Set(["top","bottom"]);function wt(e){return oC.has(Pt(e))?"y":"x"}function Ll(e){return _l(wt(e))}function sC(e,t,n){n===void 0&&(n=!1);const r=er(e),a=Ll(e),i=Ol(a);let o=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=ii(o)),[o,ii(o)]}function lC(e){const t=ii(e);return[Ts(e),t,Ts(t)]}function Ts(e){return e.replace(/start|end/g,t=>iC[t])}const nh=["left","right"],rh=["right","left"],cC=["top","bottom"],uC=["bottom","top"];function dC(e,t,n){switch(e){case"top":case"bottom":return n?t?rh:nh:t?nh:rh;case"left":case"right":return t?cC:uC;default:return[]}}function pC(e,t,n,r){const a=er(e);let i=dC(Pt(e),n==="start",r);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(Ts)))),i}function ii(e){return e.replace(/left|right|bottom|top/g,t=>aC[t])}function fC(e){return{top:0,right:0,bottom:0,left:0,...e}}function tw(e){return typeof e!="number"?fC(e):{top:e,right:e,bottom:e,left:e}}function oi(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function ah(e,t,n){let{reference:r,floating:a}=e;const i=wt(t),o=Ll(t),s=Ol(o),l=Pt(t),c=i==="y",u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-a.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-a.width,y:d};break;default:f={x:r.x,y:r.y}}switch(er(t)){case"start":f[o]-=p*(n&&c?-1:1);break;case"end":f[o]+=p*(n&&c?-1:1);break}return f}const gC=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=ah(c,r,l),p=r,f={},g=0;for(let b=0;b<s.length;b++){const{name:h,fn:m}=s[b],{x:E,y:S,data:T,reset:A}=await m({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:f,rects:c,platform:o,elements:{reference:e,floating:t}});u=E??u,d=S??d,f={...f,[h]:{...f[h],...T}},A&&g<=50&&(g++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(c=A.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):A.rects),{x:u,y:d}=ah(c,p,l)),b=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:f}};async function $r(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Ft(t,e),g=tw(f),h=s[p?d==="floating"?"reference":"floating":d],m=oi(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(h)))==null||n?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),E=d==="floating"?{x:r,y:a,width:o.floating.width,height:o.floating.height}:o.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),T=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},A=oi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:E,offsetParent:S,strategy:l}):E);return{top:(m.top-A.top+g.top)/T.y,bottom:(A.bottom-m.bottom+g.bottom)/T.y,left:(m.left-A.left+g.left)/T.x,right:(A.right-m.right+g.right)/T.x}}const mC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Ft(e,t)||{};if(c==null)return{};const d=tw(u),p={x:n,y:r},f=Ll(a),g=Ol(f),b=await o.getDimensions(c),h=f==="y",m=h?"top":"left",E=h?"bottom":"right",S=h?"clientHeight":"clientWidth",T=i.reference[g]+i.reference[f]-p[f]-i.floating[g],A=p[f]-i.reference[f],v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let _=v?v[S]:0;(!_||!await(o.isElement==null?void 0:o.isElement(v)))&&(_=s.floating[S]||i.floating[g]);const N=T/2-A/2,D=_/2-b[g]/2-1,R=Yt(d[m],D),F=Yt(d[E],D),P=R,U=_-b[g]-F,z=_/2-b[g]/2+N,B=ks(P,z,U),H=!l.arrow&&er(a)!=null&&z!==B&&i.reference[g]/2-(z<P?R:F)-b[g]/2<0,j=H?z<P?z-P:z-U:0;return{[f]:p[f]+j,data:{[f]:B,centerOffset:z-B-j,...H&&{alignmentOffset:j}},reset:H}}}),hC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...h}=Ft(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Pt(a),E=wt(s),S=Pt(s)===s,T=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=p||(S||!b?[ii(s)]:lC(s)),v=g!=="none";!p&&v&&A.push(...pC(s,b,g,T));const _=[s,...A],N=await $r(t,h),D=[];let R=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&D.push(N[m]),d){const z=sC(a,o,T);D.push(N[z[0]],N[z[1]])}if(R=[...R,{placement:a,overflows:D}],!D.every(z=>z<=0)){var F,P;const z=(((F=i.flip)==null?void 0:F.index)||0)+1,B=_[z];if(B&&(!(d==="alignment"?E!==wt(B):!1)||R.every(M=>wt(M.placement)===E?M.overflows[0]>0:!0)))return{data:{index:z,overflows:R},reset:{placement:B}};let H=(P=R.filter(j=>j.overflows[0]<=0).sort((j,M)=>j.overflows[1]-M.overflows[1])[0])==null?void 0:P.placement;if(!H)switch(f){case"bestFit":{var U;const j=(U=R.filter(M=>{if(v){const X=wt(M.placement);return X===E||X==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(X=>X>0).reduce((X,x)=>X+x,0)]).sort((M,X)=>M[1]-X[1])[0])==null?void 0:U[0];j&&(H=j);break}case"initialPlacement":H=s;break}if(a!==H)return{reset:{placement:H}}}return{}}}};function ih(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oh(e){return rC.some(t=>e[t]>=0)}const bC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Ft(e,t);switch(r){case"referenceHidden":{const i=await $r(t,{...a,elementContext:"reference"}),o=ih(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:oh(o)}}}case"escaped":{const i=await $r(t,{...a,altBoundary:!0}),o=ih(i,n.floating);return{data:{escapedOffsets:o,escaped:oh(o)}}}default:return{}}}}},nw=new Set(["left","top"]);async function yC(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=Pt(n),s=er(n),l=wt(n)==="y",c=nw.has(o)?-1:1,u=i&&l?-1:1,d=Ft(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(f=s==="end"?g*-1:g),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}const EC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:o,middlewareData:s}=t,l=await yC(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},wC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:h=>{let{x:m,y:E}=h;return{x:m,y:E}}},...l}=Ft(e,t),c={x:n,y:r},u=await $r(t,l),d=wt(Pt(a)),p=_l(d);let f=c[p],g=c[d];if(i){const h=p==="y"?"top":"left",m=p==="y"?"bottom":"right",E=f+u[h],S=f-u[m];f=ks(E,f,S)}if(o){const h=d==="y"?"top":"left",m=d==="y"?"bottom":"right",E=g+u[h],S=g-u[m];g=ks(E,g,S)}const b=s.fn({...t,[p]:f,[d]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:i,[d]:o}}}}}},SC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:i,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Ft(e,t),u={x:n,y:r},d=wt(a),p=_l(d);let f=u[p],g=u[d];const b=Ft(s,t),h=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const S=p==="y"?"height":"width",T=i.reference[p]-i.floating[S]+h.mainAxis,A=i.reference[p]+i.reference[S]-h.mainAxis;f<T?f=T:f>A&&(f=A)}if(c){var m,E;const S=p==="y"?"width":"height",T=nw.has(Pt(a)),A=i.reference[d]-i.floating[S]+(T&&((m=o.offset)==null?void 0:m[d])||0)+(T?0:h.crossAxis),v=i.reference[d]+i.reference[S]+(T?0:((E=o.offset)==null?void 0:E[d])||0)-(T?h.crossAxis:0);g<A?g=A:g>v&&(g=v)}return{[p]:f,[d]:g}}}},vC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:i,platform:o,elements:s}=t,{apply:l=()=>{},...c}=Ft(e,t),u=await $r(t,c),d=Pt(a),p=er(a),f=wt(a)==="y",{width:g,height:b}=i.floating;let h,m;d==="top"||d==="bottom"?(h=d,m=p===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(m=d,h=p==="end"?"top":"bottom");const E=b-u.top-u.bottom,S=g-u.left-u.right,T=Yt(b-u[h],E),A=Yt(g-u[m],S),v=!t.middlewareData.shift;let _=T,N=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=E),v&&!p){const R=Qe(u.left,0),F=Qe(u.right,0),P=Qe(u.top,0),U=Qe(u.bottom,0);f?N=g-2*(R!==0||F!==0?R+F:Qe(u.left,u.right)):_=b-2*(P!==0||U!==0?P+U:Qe(u.top,u.bottom))}await l({...t,availableWidth:N,availableHeight:_});const D=await o.getDimensions(s.floating);return g!==D.width||b!==D.height?{reset:{rects:!0}}:{}}}};function ki(){return typeof window<"u"}function tr(e){return rw(e)?(e.nodeName||"").toLowerCase():"#document"}function Je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function It(e){var t;return(t=(rw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rw(e){return ki()?e instanceof Node||e instanceof Je(e).Node:!1}function bt(e){return ki()?e instanceof Element||e instanceof Je(e).Element:!1}function Tt(e){return ki()?e instanceof HTMLElement||e instanceof Je(e).HTMLElement:!1}function sh(e){return!ki()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot}const xC=new Set(["inline","contents"]);function sa(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!xC.has(a)}const kC=new Set(["table","td","th"]);function TC(e){return kC.has(tr(e))}const AC=[":popover-open",":modal"];function Ti(e){return AC.some(t=>{try{return e.matches(t)}catch{return!1}})}const RC=["transform","translate","scale","rotate","perspective"],IC=["transform","translate","scale","rotate","perspective","filter"],CC=["paint","layout","strict","content"];function Dl(e){const t=Ml(),n=bt(e)?yt(e):e;return RC.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||IC.some(r=>(n.willChange||"").includes(r))||CC.some(r=>(n.contain||"").includes(r))}function NC(e){let t=Kt(e);for(;Tt(t)&&!$n(t);){if(Dl(t))return t;if(Ti(t))return null;t=Kt(t)}return null}function Ml(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const _C=new Set(["html","body","#document"]);function $n(e){return _C.has(tr(e))}function yt(e){return Je(e).getComputedStyle(e)}function Ai(e){return bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kt(e){if(tr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sh(e)&&e.host||It(e);return sh(t)?t.host:t}function aw(e){const t=Kt(e);return $n(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tt(t)&&sa(t)?t:aw(t)}function Wr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=aw(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=Je(a);if(i){const s=As(o);return t.concat(o,o.visualViewport||[],sa(a)?a:[],s&&n?Wr(s):[])}return t.concat(a,Wr(a,[],n))}function As(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iw(e){const t=yt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Tt(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=ai(n)!==i||ai(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function Fl(e){return bt(e)?e:e.contextElement}function zn(e){const t=Fl(e);if(!Tt(t))return vt(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=iw(t);let o=(i?ai(n.width):n.width)/r,s=(i?ai(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const OC=vt(0);function ow(e){const t=Je(e);return!Ml()||!t.visualViewport?OC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Je(e)?!1:t}function bn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=Fl(e);let o=vt(1);t&&(r?bt(r)&&(o=zn(r)):o=zn(e));const s=LC(i,n,r)?ow(i):vt(0);let l=(a.left+s.x)/o.x,c=(a.top+s.y)/o.y,u=a.width/o.x,d=a.height/o.y;if(i){const p=Je(i),f=r&&bt(r)?Je(r):r;let g=p,b=As(g);for(;b&&r&&f!==g;){const h=zn(b),m=b.getBoundingClientRect(),E=yt(b),S=m.left+(b.clientLeft+parseFloat(E.paddingLeft))*h.x,T=m.top+(b.clientTop+parseFloat(E.paddingTop))*h.y;l*=h.x,c*=h.y,u*=h.x,d*=h.y,l+=S,c+=T,g=Je(b),b=As(g)}}return oi({width:u,height:d,x:l,y:c})}function Ri(e,t){const n=Ai(e).scrollLeft;return t?t.left+n:bn(It(e)).left+n}function sw(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ri(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function DC(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",o=It(r),s=t?Ti(t.floating):!1;if(r===o||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=vt(1);const u=vt(0),d=Tt(r);if((d||!d&&!i)&&((tr(r)!=="body"||sa(o))&&(l=Ai(r)),Tt(r))){const f=bn(r);c=zn(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const p=o&&!d&&!i?sw(o,l):vt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}}function MC(e){return Array.from(e.getClientRects())}function FC(e){const t=It(e),n=Ai(e),r=e.ownerDocument.body,a=Qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Ri(e);const s=-n.scrollTop;return yt(r).direction==="rtl"&&(o+=Qe(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}const lh=25;function PC(e,t){const n=Je(e),r=It(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const u=Ml();(!u||u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}const c=Ri(r);if(c<=0){const u=r.ownerDocument,d=u.body,p=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-f);g<=lh&&(i-=g)}else c<=lh&&(i+=c);return{width:i,height:o,x:s,y:l}}const BC=new Set(["absolute","fixed"]);function UC(e,t){const n=bn(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=Tt(e)?zn(e):vt(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,c=r*i.y;return{width:o,height:s,x:l,y:c}}function ch(e,t,n){let r;if(t==="viewport")r=PC(e,n);else if(t==="document")r=FC(It(e));else if(bt(t))r=UC(t,n);else{const a=ow(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return oi(r)}function lw(e,t){const n=Kt(e);return n===t||!bt(n)||$n(n)?!1:yt(n).position==="fixed"||lw(n,t)}function zC(e,t){const n=t.get(e);if(n)return n;let r=Wr(e,[],!1).filter(s=>bt(s)&&tr(s)!=="body"),a=null;const i=yt(e).position==="fixed";let o=i?Kt(e):e;for(;bt(o)&&!$n(o);){const s=yt(o),l=Dl(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&BC.has(a.position)||sa(o)&&!l&&lw(e,o))?r=r.filter(u=>u!==o):a=s,o=Kt(o)}return t.set(e,r),r}function jC(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?Ti(t)?[]:zC(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((c,u)=>{const d=ch(t,u,a);return c.top=Qe(d.top,c.top),c.right=Yt(d.right,c.right),c.bottom=Yt(d.bottom,c.bottom),c.left=Qe(d.left,c.left),c},ch(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function GC(e){const{width:t,height:n}=iw(e);return{width:t,height:n}}function VC(e,t,n){const r=Tt(t),a=It(t),i=n==="fixed",o=bn(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=vt(0);function c(){l.x=Ri(a)}if(r||!r&&!i)if((tr(t)!=="body"||sa(a))&&(s=Ai(t)),r){const f=bn(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else a&&c();i&&!r&&a&&c();const u=a&&!r&&!i?sw(a,s):vt(0),d=o.left+s.scrollLeft-l.x-u.x,p=o.top+s.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function yo(e){return yt(e).position==="static"}function uh(e,t){if(!Tt(e)||yt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return It(e)===n&&(n=n.ownerDocument.body),n}function cw(e,t){const n=Je(e);if(Ti(e))return n;if(!Tt(e)){let a=Kt(e);for(;a&&!$n(a);){if(bt(a)&&!yo(a))return a;a=Kt(a)}return n}let r=uh(e,t);for(;r&&TC(r)&&yo(r);)r=uh(r,t);return r&&$n(r)&&yo(r)&&!Dl(r)?n:r||NC(e)||n}const HC=async function(e){const t=this.getOffsetParent||cw,n=this.getDimensions,r=await n(e.floating);return{reference:VC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $C(e){return yt(e).direction==="rtl"}const WC={convertOffsetParentRelativeRectToViewportRelativeRect:DC,getDocumentElement:It,getClippingRect:jC,getOffsetParent:cw,getElementRects:HC,getClientRects:MC,getDimensions:GC,getScale:zn,isElement:bt,isRTL:$C};function uw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qC(e,t){let n=null,r;const a=It(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const g=Na(d),b=Na(a.clientWidth-(u+p)),h=Na(a.clientHeight-(d+f)),m=Na(u),S={rootMargin:-g+"px "+-b+"px "+-h+"px "+-m+"px",threshold:Qe(0,Yt(1,l))||1};let T=!0;function A(v){const _=v[0].intersectionRatio;if(_!==l){if(!T)return o();_?o(!1,_):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!uw(c,e.getBoundingClientRect())&&o(),T=!1}try{n=new IntersectionObserver(A,{...S,root:a.ownerDocument})}catch{n=new IntersectionObserver(A,S)}n.observe(e)}return o(!0),i}function YC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Fl(e),u=a||i?[...c?Wr(c):[],...Wr(t)]:[];u.forEach(m=>{a&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=c&&s?qC(c,n):null;let p=-1,f=null;o&&(f=new ResizeObserver(m=>{let[E]=m;E&&E.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=f)==null||S.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let g,b=l?bn(e):null;l&&h();function h(){const m=bn(e);b&&!uw(b,m)&&n(),b=m,g=requestAnimationFrame(h)}return n(),()=>{var m;u.forEach(E=>{a&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),d==null||d(),(m=f)==null||m.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const KC=EC,XC=wC,ZC=hC,QC=vC,JC=bC,dh=mC,eN=SC,tN=(e,t,n)=>{const r=new Map,a={platform:WC,...n},i={...a.platform,_c:r};return gC(e,t,{...a,platform:i})};var nN=typeof document<"u",rN=function(){},Ha=nN?O.useLayoutEffect:rN;function si(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!si(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const i=a[r];if(!(i==="_owner"&&e.$$typeof)&&!si(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function dw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ph(e,t){const n=dw(e);return Math.round(t*n)/n}function Eo(e){const t=I.useRef(e);return Ha(()=>{t.current=e}),t}function aN(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=I.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=I.useState(r);si(p,r)||f(r);const[g,b]=I.useState(null),[h,m]=I.useState(null),E=I.useCallback(M=>{M!==v.current&&(v.current=M,b(M))},[]),S=I.useCallback(M=>{M!==_.current&&(_.current=M,m(M))},[]),T=i||g,A=o||h,v=I.useRef(null),_=I.useRef(null),N=I.useRef(u),D=l!=null,R=Eo(l),F=Eo(a),P=Eo(c),U=I.useCallback(()=>{if(!v.current||!_.current)return;const M={placement:t,strategy:n,middleware:p};F.current&&(M.platform=F.current),tN(v.current,_.current,M).then(X=>{const x={...X,isPositioned:P.current!==!1};z.current&&!si(N.current,x)&&(N.current=x,Cb.flushSync(()=>{d(x)}))})},[p,t,n,F,P]);Ha(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,d(M=>({...M,isPositioned:!1})))},[c]);const z=I.useRef(!1);Ha(()=>(z.current=!0,()=>{z.current=!1}),[]),Ha(()=>{if(T&&(v.current=T),A&&(_.current=A),T&&A){if(R.current)return R.current(T,A,U);U()}},[T,A,U,R,D]);const B=I.useMemo(()=>({reference:v,floating:_,setReference:E,setFloating:S}),[E,S]),H=I.useMemo(()=>({reference:T,floating:A}),[T,A]),j=I.useMemo(()=>{const M={position:n,left:0,top:0};if(!H.floating)return M;const X=ph(H.floating,u.x),x=ph(H.floating,u.y);return s?{...M,transform:"translate("+X+"px, "+x+"px)",...dw(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:x}},[n,s,H.floating,u.x,u.y]);return I.useMemo(()=>({...u,update:U,refs:B,elements:H,floatingStyles:j}),[u,U,B,H,j])}const iN=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?dh({element:r.current,padding:a}).fn(n):{}:r?dh({element:r,padding:a}).fn(n):{}}}},oN=(e,t)=>({...KC(e),options:[e,t]}),sN=(e,t)=>({...XC(e),options:[e,t]}),lN=(e,t)=>({...eN(e),options:[e,t]}),cN=(e,t)=>({...ZC(e),options:[e,t]}),uN=(e,t)=>({...QC(e),options:[e,t]}),dN=(e,t)=>({...JC(e),options:[e,t]}),pN=(e,t)=>({...iN(e),options:[e,t]});var fN="Arrow",pw=I.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...i}=e;return y.jsx(lt.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});pw.displayName=fN;var gN=pw;function mN(e){const[t,n]=I.useState(void 0);return hn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Pl="Popper",[fw,gw]=ia(Pl),[hN,mw]=fw(Pl),hw=e=>{const{__scopePopper:t,children:n}=e,[r,a]=I.useState(null);return y.jsx(hN,{scope:t,anchor:r,onAnchorChange:a,children:n})};hw.displayName=Pl;var bw="PopperAnchor",yw=I.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,i=mw(bw,n),o=I.useRef(null),s=kt(t,o),l=I.useRef(null);return I.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||o.current,c!==l.current&&i.onAnchorChange(l.current)}),r?null:y.jsx(lt.div,{...a,ref:s})});yw.displayName=bw;var Bl="PopperContent",[bN,yN]=fw(Bl),Ew=I.forwardRef((e,t)=>{var K,pe,ge,ve,Oe,Ke;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:g,...b}=e,h=mw(Bl,n),[m,E]=I.useState(null),S=kt(t,Ge=>E(Ge)),[T,A]=I.useState(null),v=mN(T),_=(v==null?void 0:v.width)??0,N=(v==null?void 0:v.height)??0,D=r+(i!=="center"?"-"+i:""),R=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},F=Array.isArray(c)?c:[c],P=F.length>0,U={padding:R,boundary:F.filter(wN),altBoundary:P},{refs:z,floatingStyles:B,placement:H,isPositioned:j,middlewareData:M}=aN({strategy:"fixed",placement:D,whileElementsMounted:(...Ge)=>YC(...Ge,{animationFrame:f==="always"}),elements:{reference:h.anchor},middleware:[oN({mainAxis:a+N,alignmentAxis:o}),l&&sN({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?lN():void 0,...U}),l&&cN({...U}),uN({...U,apply:({elements:Ge,rects:Jt,availableWidth:Sn,availableHeight:vn})=>{const{width:jt,height:ct}=Jt.reference,_t=Ge.floating.style;_t.setProperty("--radix-popper-available-width",`${Sn}px`),_t.setProperty("--radix-popper-available-height",`${vn}px`),_t.setProperty("--radix-popper-anchor-width",`${jt}px`),_t.setProperty("--radix-popper-anchor-height",`${ct}px`)}}),T&&pN({element:T,padding:s}),SN({arrowWidth:_,arrowHeight:N}),p&&dN({strategy:"referenceHidden",...U})]}),[X,x]=vw(H),L=oa(g);hn(()=>{j&&(L==null||L())},[j,L]);const $=(K=M.arrow)==null?void 0:K.x,k=(pe=M.arrow)==null?void 0:pe.y,Z=((ge=M.arrow)==null?void 0:ge.centerOffset)!==0,[ce,ie]=I.useState();return hn(()=>{m&&ie(window.getComputedStyle(m).zIndex)},[m]),y.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:j?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(ve=M.transformOrigin)==null?void 0:ve.x,(Oe=M.transformOrigin)==null?void 0:Oe.y].join(" "),...((Ke=M.hide)==null?void 0:Ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(bN,{scope:n,placedSide:X,onArrowChange:A,arrowX:$,arrowY:k,shouldHideArrow:Z,children:y.jsx(lt.div,{"data-side":X,"data-align":x,...b,ref:S,style:{...b.style,animation:j?void 0:"none"}})})})});Ew.displayName=Bl;var ww="PopperArrow",EN={top:"bottom",right:"left",bottom:"top",left:"right"},Sw=I.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,i=yN(ww,r),o=EN[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:y.jsx(gN,{...a,ref:n,style:{...a.style,display:"block"}})})});Sw.displayName=ww;function wN(e){return e!==null}var SN=e=>({name:"transformOrigin",options:e,fn(t){var h,m,E;const{placement:n,rects:r,middlewareData:a}=t,o=((h=a.arrow)==null?void 0:h.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=vw(n),d={start:"0%",center:"50%",end:"100%"}[u],p=(((m=a.arrow)==null?void 0:m.x)??0)+s/2,f=(((E=a.arrow)==null?void 0:E.y)??0)+l/2;let g="",b="";return c==="bottom"?(g=o?d:`${p}px`,b=`${-l}px`):c==="top"?(g=o?d:`${p}px`,b=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,b=o?d:`${f}px`):c==="left"&&(g=`${r.floating.width+l}px`,b=o?d:`${f}px`),{data:{x:g,y:b}}}});function vw(e){const[t,n="center"]=e.split("-");return[t,n]}var vN=hw,xN=yw,kN=Ew,TN=Sw;function AN(e,t){return I.useReducer((n,r)=>t[n][r]??n,e)}var xw=e=>{const{present:t,children:n}=e,r=RN(t),a=typeof n=="function"?n({present:r.isPresent}):I.Children.only(n),i=kt(r.ref,IN(a));return typeof n=="function"||r.isPresent?I.cloneElement(a,{ref:i}):null};xw.displayName="Presence";function RN(e){const[t,n]=I.useState(),r=I.useRef(null),a=I.useRef(e),i=I.useRef("none"),o=e?"mounted":"unmounted",[s,l]=AN(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I.useEffect(()=>{const c=_a(r.current);i.current=s==="mounted"?c:"none"},[s]),hn(()=>{const c=r.current,u=a.current;if(u!==e){const p=i.current,f=_a(c);e?l("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==f?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),hn(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=f=>{const b=_a(r.current).includes(CSS.escape(f.animationName));if(f.target===t&&b&&(l("ANIMATION_END"),!a.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},p=f=>{f.target===t&&(i.current=_a(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:I.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function _a(e){return(e==null?void 0:e.animationName)||"none"}function IN(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var CN=I[" useInsertionEffect ".trim().toString()]||hn;function la({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,i,o]=NN({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:a;{const u=I.useRef(e!==void 0);I.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,r])}const c=I.useCallback(u=>{var d;if(s){const p=_N(u)?u(e):u;p!==e&&((d=o.current)==null||d.call(o,p))}else i(u)},[s,e,i,o]);return[l,c]}function NN({defaultProp:e,onChange:t}){const[n,r]=I.useState(e),a=I.useRef(n),i=I.useRef(t);return CN(()=>{i.current=t},[t]),I.useEffect(()=>{var o;a.current!==n&&((o=i.current)==null||o.call(i,n),a.current=n)},[n,a]),[n,r,i]}function _N(e){return typeof e=="function"}var ON=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),LN="VisuallyHidden",kw=I.forwardRef((e,t)=>y.jsx(lt.span,{...e,ref:t,style:{...ON,...e.style}}));kw.displayName=LN;var DN=kw,[Ii]=ia("Tooltip",[gw]),Ci=gw(),Tw="TooltipProvider",MN=700,Rs="tooltip.open",[FN,Ul]=Ii(Tw),Aw=e=>{const{__scopeTooltip:t,delayDuration:n=MN,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:i}=e,o=I.useRef(!0),s=I.useRef(!1),l=I.useRef(0);return I.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),y.jsx(FN,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:I.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:I.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:I.useCallback(c=>{s.current=c},[]),disableHoverableContent:a,children:i})};Aw.displayName=Tw;var qr="Tooltip",[PN,Ni]=Ii(qr),Rw=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a,onOpenChange:i,disableHoverableContent:o,delayDuration:s}=e,l=Ul(qr,e.__scopeTooltip),c=Ci(t),[u,d]=I.useState(null),p=ew(),f=I.useRef(0),g=o??l.disableHoverableContent,b=s??l.delayDuration,h=I.useRef(!1),[m,E]=la({prop:r,defaultProp:a??!1,onChange:_=>{_?(l.onOpen(),document.dispatchEvent(new CustomEvent(Rs))):l.onClose(),i==null||i(_)},caller:qr}),S=I.useMemo(()=>m?h.current?"delayed-open":"instant-open":"closed",[m]),T=I.useCallback(()=>{window.clearTimeout(f.current),f.current=0,h.current=!1,E(!0)},[E]),A=I.useCallback(()=>{window.clearTimeout(f.current),f.current=0,E(!1)},[E]),v=I.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{h.current=!0,E(!0),f.current=0},b)},[b,E]);return I.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),y.jsx(vN,{...c,children:y.jsx(PN,{scope:t,contentId:p,open:m,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:I.useCallback(()=>{l.isOpenDelayedRef.current?v():T()},[l.isOpenDelayedRef,v,T]),onTriggerLeave:I.useCallback(()=>{g?A():(window.clearTimeout(f.current),f.current=0)},[A,g]),onOpen:T,onClose:A,disableHoverableContent:g,children:n})})};Rw.displayName=qr;var Is="TooltipTrigger",Iw=I.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Ni(Is,n),i=Ul(Is,n),o=Ci(n),s=I.useRef(null),l=kt(t,s,a.onTriggerChange),c=I.useRef(!1),u=I.useRef(!1),d=I.useCallback(()=>c.current=!1,[]);return I.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),y.jsx(xN,{asChild:!0,...o,children:y.jsx(lt.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:l,onPointerMove:De(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:De(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:De(e.onPointerDown,()=>{a.open&&a.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:De(e.onFocus,()=>{c.current||a.onOpen()}),onBlur:De(e.onBlur,a.onClose),onClick:De(e.onClick,a.onClose)})})});Iw.displayName=Is;var BN="TooltipPortal",[lB,UN]=Ii(BN,{forceMount:void 0}),Wn="TooltipContent",Cw=I.forwardRef((e,t)=>{const n=UN(Wn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...i}=e,o=Ni(Wn,e.__scopeTooltip);return y.jsx(xw,{present:r||o.open,children:o.disableHoverableContent?y.jsx(Nw,{side:a,...i,ref:t}):y.jsx(zN,{side:a,...i,ref:t})})}),zN=I.forwardRef((e,t)=>{const n=Ni(Wn,e.__scopeTooltip),r=Ul(Wn,e.__scopeTooltip),a=I.useRef(null),i=kt(t,a),[o,s]=I.useState(null),{trigger:l,onClose:c}=n,u=a.current,{onPointerInTransitChange:d}=r,p=I.useCallback(()=>{s(null),d(!1)},[d]),f=I.useCallback((g,b)=>{const h=g.currentTarget,m={x:g.clientX,y:g.clientY},E=$N(m,h.getBoundingClientRect()),S=WN(m,E),T=qN(b.getBoundingClientRect()),A=KN([...S,...T]);s(A),d(!0)},[d]);return I.useEffect(()=>()=>p(),[p]),I.useEffect(()=>{if(l&&u){const g=h=>f(h,u),b=h=>f(h,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",b)}}},[l,u,f,p]),I.useEffect(()=>{if(o){const g=b=>{const h=b.target,m={x:b.clientX,y:b.clientY},E=(l==null?void 0:l.contains(h))||(u==null?void 0:u.contains(h)),S=!YN(m,o);E?p():S&&(p(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,o,c,p]),y.jsx(Nw,{...e,ref:i})}),[jN,GN]=Ii(qr,{isInside:!1}),VN=jI("TooltipContent"),Nw=I.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...s}=e,l=Ni(Wn,n),c=Ci(n),{onClose:u}=l;return I.useEffect(()=>(document.addEventListener(Rs,u),()=>document.removeEventListener(Rs,u)),[u]),I.useEffect(()=>{if(l.trigger){const d=p=>{const f=p.target;f!=null&&f.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),y.jsx(QE,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:y.jsxs(kN,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y.jsx(VN,{children:r}),y.jsx(jN,{scope:n,isInside:!0,children:y.jsx(DN,{id:l.contentId,role:"tooltip",children:a||r})})]})})});Cw.displayName=Wn;var _w="TooltipArrow",HN=I.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Ci(n);return GN(_w,n).isInside?null:y.jsx(TN,{...a,...r,ref:t})});HN.displayName=_w;function $N(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,a,i)){case i:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function WN(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function qN(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function YN(e,t){const{x:n,y:r}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const s=t[i],l=t[o],c=s.x,u=s.y,d=l.x,p=l.y;u>r!=p>r&&n<(d-c)*(r-u)/(p-u)+c&&(a=!a)}return a}function KN(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),XN(t)}function XN(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ZN=Aw,QN=Rw,JN=Iw,Ow=Cw;const Lw=ZN,Bt=QN,Ut=JN,At=({className:e,sideOffset:t=4,...n})=>y.jsx(Ow,{sideOffset:t,avoidCollisions:!0,collisionPadding:8,className:J("z-[9999] overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]","bg-widget-bg-primary text-widget-text-secondary border-widget-border","dark:bg-widget-bg-primary dark:text-widget-text-secondary dark:border-widget-border","will-change-transform",e),...n});At.displayName=Ow.displayName;function fh(){const e=Y(r=>r.closeWidget),t=Y(r=>r.setCustomOpen),n=()=>{e(),t==null||t(!1)};return y.jsxs(Bt,{children:[y.jsx(Ut,{asChild:!0,children:y.jsx(oe.span,{className:J("cursor-pointer rounded-full p-0.5 border-2","text-widget-text-primary bg-widget-text-secondary border-widget-text-primary","dark:text-widget-text-primary dark:bg-widget-text-secondary dark:border-widget-text-primary","ring-widget-text-secondary ring-0 hover:ring-2","dark:ring-widget-text-secondary"),whileHover:{scale:1.1},whileTap:{scale:.9},onClick:n,children:y.jsx(YE,{className:"size-5"})})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:"Close Widget"})})]})}function e_({onClick:e}){const t=Y(r=>r.resetChat),n=O.useCallback(()=>{t(),e==null||e()},[t,e]);return y.jsxs(Bt,{children:[y.jsx(Ut,{asChild:!0,onClick:n,children:y.jsx(oe.span,{className:J("rounded-full p-1 cursor-pointer border-2","bg-widget-text-secondary border-widget-text-primary text-widget-text-primary","dark:bg-widget-text-secondary dark:border-widget-text-primary dark:text-widget-text-primary","ring-widget-text-secondary ring-0 hover:ring-2","dark:ring-widget-text-secondary"),whileHover:{scale:1.1,rotate:120},whileTap:{scale:.9},initial:{opacity:0,scale:0},animate:{opacity:1,scale:1,transition:{delay:.1}},children:y.jsx(WE,{className:"size-4"})})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:"Reset Chat"})})]})}const zl=e=>y.jsxs("svg",{width:e.width,height:e.height,viewBox:"0 0 236 211",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e.ref,...e,children:[e.title&&y.jsx("title",{children:e.title}),y.jsxs("g",{clipPath:"url(#clip0_486_1154)",children:[y.jsx("path",{d:"M231.927 194.514C235.881 187.393 237.006 179.067 235.083 171.168C234.531 168.984 233.769 166.858 232.806 164.819C232.502 164.15 232.156 163.501 231.771 162.874L200.418 104.252H168.341L201.143 165.69C202.172 167.475 202.714 169.496 202.714 171.552C202.714 173.608 202.172 175.628 201.143 177.414C200.139 179.082 198.715 180.464 197.01 181.424C195.305 182.385 193.378 182.89 191.416 182.892H154.009C153.595 188.612 151.801 194.15 148.776 199.041C145.751 203.931 141.584 208.033 136.625 211H205.385C209.975 210.698 214.443 209.405 218.475 207.211C224.164 204.438 228.859 200.007 231.927 194.514Z",fill:"currentColor"}),y.jsx("path",{d:"M56.0698 65.9049H88.1473L104.134 36.466C105.487 33.9253 107.515 31.7984 109.999 30.3146C112.484 28.8309 115.331 28.0467 118.233 28.0467C121.135 28.0467 123.982 28.8309 126.466 30.3146C128.951 31.7984 130.979 33.9253 132.331 36.466L147.853 65.9049H179.93L157.166 23.3081C153.391 16.2702 147.751 10.3822 140.851 6.27586C133.951 2.16956 126.052 0 118 0C109.948 0 102.049 2.16956 95.1487 6.27586C88.2488 10.3822 82.6089 16.2702 78.8345 23.3081L56.0698 65.9049Z",fill:"currentColor"}),y.jsx("path",{d:"M81.9387 99.1324C82.275 93.4362 83.9987 87.9051 86.9627 83.0107C89.9266 78.1164 94.0429 74.0041 98.9604 71.0247H36.875V99.1324H81.9387Z",fill:"currentColor"}),y.jsx("path",{d:"M87.0591 101.18V177.977H101.649C104.692 177.944 107.64 176.924 110.041 175.075C112.443 173.226 114.165 170.648 114.946 167.738C115.26 166.621 115.416 165.467 115.411 164.308V118.229C115.425 113.227 117.432 108.432 120.997 104.885C124.561 101.338 129.396 99.3264 134.451 99.286H199.382V71.0247H117.481C109.408 71.0382 101.67 74.2213 95.9663 79.8751C90.2626 85.5289 87.0591 93.1914 87.0591 101.18Z",fill:"currentColor"}),y.jsx("path",{d:"M3.1927 164.819C2.23008 166.858 1.46775 168.984 0.916237 171.168C-1.00574 179.084 0.119328 187.425 4.07225 194.565C7.14854 200.039 11.8422 204.452 17.5241 207.211C21.5555 209.405 26.0233 210.698 30.6138 211H117.999C126.232 211 134.128 207.764 139.949 202.003C145.771 196.242 149.042 188.428 149.042 180.281V104.201H134.245C130.607 104.294 127.148 105.782 124.6 108.352C122.051 110.922 120.611 114.372 120.586 117.973V164.051C120.572 169.053 118.555 173.845 114.976 177.377C111.397 180.909 106.549 182.892 101.495 182.892H44.8417C42.8798 182.89 40.9521 182.385 39.2471 181.424C37.5421 180.464 36.1182 179.082 35.1149 177.414C34.0855 175.619 33.5443 173.59 33.5443 171.526C33.5443 169.462 34.0855 167.434 35.1149 165.638L67.9167 104.201H35.5806L4.22746 162.823C3.86529 163.539 3.50313 164.154 3.1927 164.819Z",fill:"currentColor"})]}),y.jsx("defs",{children:y.jsx("clipPath",{id:"clip0_486_1154",children:y.jsx("rect",{width:"236",height:"211",fill:"currentColor"})})})]}),t_={[Hn.HAS_BEEN_OPENED]:{backgroundSize:"100% 100%"},[Hn.HAS_NOT_BEEN_OPENED]:{backgroundSize:"0% 100%"}},n_=({children:e,className:t})=>{const n=Y(r=>r.hasWidgetBeenOpened);return y.jsx(oe.span,{initial:!1,animate:n,variants:t_,transition:{duration:2,ease:"linear",delay:.5},className:J("relative rounded-lg inline-block","bg-no-repeat bg-position-[left_center] bg-linear-[30deg,#00E3AA,#FFFFFF]",t),children:e})},r_=()=>y.jsxs("span",{className:"inline-flex items-start space-x-2",children:[y.jsx(zl,{className:"size-7 text-telnyx-green cursor-pointer translate-y-[1px]"}),y.jsxs("span",{className:"inline-flex text-white text-2xl font-pp-formula space-x-2",children:[y.jsx("h1",{className:"pt-1",children:"Ask our"}),y.jsx(n_,{className:"text-black px-1 pt-1",children:"AI Assistant"})]})]}),a_=()=>y.jsxs("span",{className:"text-white text-sm",children:["Read more",y.jsx(i_,{text:"here"}),"."]}),i_=({text:e})=>y.jsx("a",{className:"inline underline text-telnyx-light-green hover:text-white ml-1",target:"_blank",rel:"noopener noreferrer",href:"https://support.telnyx.com/en/articles/8020222-mission-control-portal-ai-chat-support",children:e});function o_(){return y.jsxs(oe.div,{className:"flex flex-col cursor-default rounded-2xl bg-black/50",initial:{opacity:0,y:16,scale:1},whileInView:{opacity:1,y:0,scale:1,transition:{delay:.1}},children:[y.jsx(r_,{}),y.jsx(a_,{})]})}const wo="#00E3AA",So="#ffffff",s_=({children:e,className:t})=>{const[n,r]=O.useState({backgroundImage:`linear-gradient(30deg, ${wo}, ${So})`,backgroundPosition:"0% 50%",backgroundSize:"100%",transition:"all 0.5s ease-in-out"}),a=s=>{const{clientX:l,clientY:c}=s,{left:u,top:d}=s.currentTarget.getBoundingClientRect(),p=l-u,f=c-d;r(g=>({...g,backgroundImage:`radial-gradient(
2719
+ `;function wI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"}))}const SI=I.forwardRef(wI);function vI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const WE=I.forwardRef(vI);function xI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"}))}const kI=I.forwardRef(xI);function TI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"}))}const AI=I.forwardRef(TI);function RI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"}))}const II=I.forwardRef(RI);function CI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"}))}const NI=I.forwardRef(CI);function _I({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"}))}const OI=I.forwardRef(_I);function LI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.498 15.25H4.372c-1.026 0-1.945-.694-2.054-1.715a12.137 12.137 0 0 1-.068-1.285c0-2.848.992-5.464 2.649-7.521C5.287 4.247 5.886 4 6.504 4h4.016a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23h1.294M7.498 15.25c.618 0 .991.724.725 1.282A7.471 7.471 0 0 0 7.5 19.75 2.25 2.25 0 0 0 9.75 22a.75.75 0 0 0 .75-.75v-.633c0-.573.11-1.14.322-1.672.304-.76.93-1.33 1.653-1.715a9.04 9.04 0 0 0 2.86-2.4c.498-.634 1.226-1.08 2.032-1.08h.384m-10.253 1.5H9.7m8.075-9.75c.01.05.027.1.05.148.593 1.2.925 2.55.925 3.977 0 1.487-.36 2.89-.999 4.125m.023-8.25c-.076-.365.183-.75.575-.75h.908c.889 0 1.713.518 1.972 1.368.339 1.11.521 2.287.521 3.507 0 1.553-.295 3.036-.831 4.398-.306.774-1.086 1.227-1.918 1.227h-1.053c-.472 0-.745-.556-.5-.96a8.95 8.95 0 0 0 .303-.54"}))}const DI=I.forwardRef(LI);function MI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.633 10.25c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75a.75.75 0 0 1 .75-.75 2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282m0 0h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23H5.904m10.598-9.75H14.25M5.904 18.5c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 0 1-.521-3.507c0-1.553.295-3.036.831-4.398C3.387 9.953 4.167 9.5 5 9.5h1.053c.472 0 .745.556.5.96a8.958 8.958 0 0 0-1.302 4.665c0 1.194.232 2.333.654 3.375Z"}))}const FI=I.forwardRef(MI);function PI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"}))}const qE=I.forwardRef(PI);function BI({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const YE=I.forwardRef(BI);function De(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Jm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function KE(...e){return t=>{let n=!1;const r=e.map(a=>{const i=Jm(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():Jm(e[a],null)}}}}function kt(...e){return I.useCallback(KE(...e),e)}function ia(e,t=[]){let n=[];function r(i,o){const s=I.createContext(o),l=n.length;n=[...n,o];const c=d=>{var m;const{scope:p,children:f,...g}=d,b=((m=p==null?void 0:p[e])==null?void 0:m[l])||s,h=I.useMemo(()=>g,Object.values(g));return y.jsx(b.Provider,{value:h,children:f})};c.displayName=i+"Provider";function u(d,p){var b;const f=((b=p==null?void 0:p[e])==null?void 0:b[l])||s,g=I.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[c,u]}const a=()=>{const i=n.map(o=>I.createContext(o));return function(s){const l=(s==null?void 0:s[e])||i;return I.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return a.scopeName=e,[r,UI(a,...t)]}function UI(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((s,{useScope:l,scopeName:c})=>{const d=l(i)[`__scope${c}`];return{...s,...d}},{});return I.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function vs(e){const t=zI(e),n=I.forwardRef((r,a)=>{const{children:i,...o}=r,s=I.Children.toArray(i),l=s.find(GI);if(l){const c=l.props.children,u=s.map(d=>d===l?I.Children.count(c)>1?I.Children.only(null):I.isValidElement(c)?c.props.children:null:d);return y.jsx(t,{...o,ref:a,children:I.isValidElement(c)?I.cloneElement(c,void 0,u):null})}return y.jsx(t,{...o,ref:a,children:i})});return n.displayName=`${e}.Slot`,n}function zI(e){const t=I.forwardRef((n,r)=>{const{children:a,...i}=n;if(I.isValidElement(a)){const o=HI(a),s=VI(i,a.props);return a.type!==I.Fragment&&(s.ref=r?KE(r,o):o),I.cloneElement(a,s)}return I.Children.count(a)>1?I.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var XE=Symbol("radix.slottable");function jI(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=XE,t}function GI(e){return I.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===XE}function VI(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...s)=>{const l=i(...s);return a(...s),l}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function HI(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $I=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lt=$I.reduce((e,t)=>{const n=vs(`Primitive.${t}`),r=I.forwardRef((a,i)=>{const{asChild:o,...s}=a,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function WI(e,t){e&&Cb.flushSync(()=>e.dispatchEvent(t))}function oa(e){const t=I.useRef(e);return I.useEffect(()=>{t.current=e}),I.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function qI(e,t=globalThis==null?void 0:globalThis.document){const n=oa(e);I.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var YI="DismissableLayer",xs="dismissableLayer.update",KI="dismissableLayer.pointerDownOutside",XI="dismissableLayer.focusOutside",eh,ZE=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),QE=I.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:s,...l}=e,c=I.useContext(ZE),[u,d]=I.useState(null),p=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=I.useState({}),g=kt(t,_=>d(_)),b=Array.from(c.layers),[h]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(h),E=u?b.indexOf(u):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,T=E>=m,A=JI(_=>{const N=_.target,D=[...c.branches].some(R=>R.contains(N));!T||D||(a==null||a(_),o==null||o(_),_.defaultPrevented||s==null||s())},p),v=eC(_=>{const N=_.target;[...c.branches].some(R=>R.contains(N))||(i==null||i(_),o==null||o(_),_.defaultPrevented||s==null||s())},p);return qI(_=>{E===c.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},p),I.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(eh=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),th(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=eh)}},[u,p,n,c]),I.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),th())},[u,c]),I.useEffect(()=>{const _=()=>f({});return document.addEventListener(xs,_),()=>document.removeEventListener(xs,_)},[]),y.jsx(lt.div,{...l,ref:g,style:{pointerEvents:S?T?"auto":"none":void 0,...e.style},onFocusCapture:De(e.onFocusCapture,v.onFocusCapture),onBlurCapture:De(e.onBlurCapture,v.onBlurCapture),onPointerDownCapture:De(e.onPointerDownCapture,A.onPointerDownCapture)})});QE.displayName=YI;var ZI="DismissableLayerBranch",QI=I.forwardRef((e,t)=>{const n=I.useContext(ZE),r=I.useRef(null),a=kt(t,r);return I.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),y.jsx(lt.div,{...e,ref:a})});QI.displayName=ZI;function JI(e,t=globalThis==null?void 0:globalThis.document){const n=oa(e),r=I.useRef(!1),a=I.useRef(()=>{});return I.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){JE(KI,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=l,t.addEventListener("click",a.current,{once:!0})):l()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function eC(e,t=globalThis==null?void 0:globalThis.document){const n=oa(e),r=I.useRef(!1);return I.useEffect(()=>{const a=i=>{i.target&&!r.current&&JE(XI,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function th(){const e=new CustomEvent(xs);document.dispatchEvent(e)}function JE(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?WI(a,i):a.dispatchEvent(i)}var hn=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{},tC=I[" useId ".trim().toString()]||(()=>{}),nC=0;function ew(e){const[t,n]=I.useState(tC());return hn(()=>{n(r=>r??String(nC++))},[e]),t?`radix-${t}`:""}const rC=["top","right","bottom","left"],Yt=Math.min,Qe=Math.max,ai=Math.round,Na=Math.floor,vt=e=>({x:e,y:e}),aC={left:"right",right:"left",bottom:"top",top:"bottom"},iC={start:"end",end:"start"};function ks(e,t,n){return Qe(e,Yt(t,n))}function Ft(e,t){return typeof e=="function"?e(t):e}function Pt(e){return e.split("-")[0]}function er(e){return e.split("-")[1]}function _l(e){return e==="x"?"y":"x"}function Ol(e){return e==="y"?"height":"width"}const oC=new Set(["top","bottom"]);function wt(e){return oC.has(Pt(e))?"y":"x"}function Ll(e){return _l(wt(e))}function sC(e,t,n){n===void 0&&(n=!1);const r=er(e),a=Ll(e),i=Ol(a);let o=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=ii(o)),[o,ii(o)]}function lC(e){const t=ii(e);return[Ts(e),t,Ts(t)]}function Ts(e){return e.replace(/start|end/g,t=>iC[t])}const nh=["left","right"],rh=["right","left"],cC=["top","bottom"],uC=["bottom","top"];function dC(e,t,n){switch(e){case"top":case"bottom":return n?t?rh:nh:t?nh:rh;case"left":case"right":return t?cC:uC;default:return[]}}function pC(e,t,n,r){const a=er(e);let i=dC(Pt(e),n==="start",r);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(Ts)))),i}function ii(e){return e.replace(/left|right|bottom|top/g,t=>aC[t])}function fC(e){return{top:0,right:0,bottom:0,left:0,...e}}function tw(e){return typeof e!="number"?fC(e):{top:e,right:e,bottom:e,left:e}}function oi(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function ah(e,t,n){let{reference:r,floating:a}=e;const i=wt(t),o=Ll(t),s=Ol(o),l=Pt(t),c=i==="y",u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-a.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-a.width,y:d};break;default:f={x:r.x,y:r.y}}switch(er(t)){case"start":f[o]-=p*(n&&c?-1:1);break;case"end":f[o]+=p*(n&&c?-1:1);break}return f}const gC=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=ah(c,r,l),p=r,f={},g=0;for(let b=0;b<s.length;b++){const{name:h,fn:m}=s[b],{x:E,y:S,data:T,reset:A}=await m({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:f,rects:c,platform:o,elements:{reference:e,floating:t}});u=E??u,d=S??d,f={...f,[h]:{...f[h],...T}},A&&g<=50&&(g++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(c=A.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):A.rects),{x:u,y:d}=ah(c,p,l)),b=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:f}};async function $r(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=Ft(t,e),g=tw(f),h=s[p?d==="floating"?"reference":"floating":d],m=oi(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(h)))==null||n?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),E=d==="floating"?{x:r,y:a,width:o.floating.width,height:o.floating.height}:o.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),T=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},A=oi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:E,offsetParent:S,strategy:l}):E);return{top:(m.top-A.top+g.top)/T.y,bottom:(A.bottom-m.bottom+g.bottom)/T.y,left:(m.left-A.left+g.left)/T.x,right:(A.right-m.right+g.right)/T.x}}const mC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Ft(e,t)||{};if(c==null)return{};const d=tw(u),p={x:n,y:r},f=Ll(a),g=Ol(f),b=await o.getDimensions(c),h=f==="y",m=h?"top":"left",E=h?"bottom":"right",S=h?"clientHeight":"clientWidth",T=i.reference[g]+i.reference[f]-p[f]-i.floating[g],A=p[f]-i.reference[f],v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let _=v?v[S]:0;(!_||!await(o.isElement==null?void 0:o.isElement(v)))&&(_=s.floating[S]||i.floating[g]);const N=T/2-A/2,D=_/2-b[g]/2-1,R=Yt(d[m],D),F=Yt(d[E],D),P=R,U=_-b[g]-F,z=_/2-b[g]/2+N,B=ks(P,z,U),H=!l.arrow&&er(a)!=null&&z!==B&&i.reference[g]/2-(z<P?R:F)-b[g]/2<0,j=H?z<P?z-P:z-U:0;return{[f]:p[f]+j,data:{[f]:B,centerOffset:z-B-j,...H&&{alignmentOffset:j}},reset:H}}}),hC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...h}=Ft(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=Pt(a),E=wt(s),S=Pt(s)===s,T=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=p||(S||!b?[ii(s)]:lC(s)),v=g!=="none";!p&&v&&A.push(...pC(s,b,g,T));const _=[s,...A],N=await $r(t,h),D=[];let R=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&D.push(N[m]),d){const z=sC(a,o,T);D.push(N[z[0]],N[z[1]])}if(R=[...R,{placement:a,overflows:D}],!D.every(z=>z<=0)){var F,P;const z=(((F=i.flip)==null?void 0:F.index)||0)+1,B=_[z];if(B&&(!(d==="alignment"?E!==wt(B):!1)||R.every(M=>wt(M.placement)===E?M.overflows[0]>0:!0)))return{data:{index:z,overflows:R},reset:{placement:B}};let H=(P=R.filter(j=>j.overflows[0]<=0).sort((j,M)=>j.overflows[1]-M.overflows[1])[0])==null?void 0:P.placement;if(!H)switch(f){case"bestFit":{var U;const j=(U=R.filter(M=>{if(v){const X=wt(M.placement);return X===E||X==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(X=>X>0).reduce((X,x)=>X+x,0)]).sort((M,X)=>M[1]-X[1])[0])==null?void 0:U[0];j&&(H=j);break}case"initialPlacement":H=s;break}if(a!==H)return{reset:{placement:H}}}return{}}}};function ih(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oh(e){return rC.some(t=>e[t]>=0)}const bC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Ft(e,t);switch(r){case"referenceHidden":{const i=await $r(t,{...a,elementContext:"reference"}),o=ih(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:oh(o)}}}case"escaped":{const i=await $r(t,{...a,altBoundary:!0}),o=ih(i,n.floating);return{data:{escapedOffsets:o,escaped:oh(o)}}}default:return{}}}}},nw=new Set(["left","top"]);async function yC(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=Pt(n),s=er(n),l=wt(n)==="y",c=nw.has(o)?-1:1,u=i&&l?-1:1,d=Ft(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof g=="number"&&(f=s==="end"?g*-1:g),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}const EC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:o,middlewareData:s}=t,l=await yC(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},wC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:h=>{let{x:m,y:E}=h;return{x:m,y:E}}},...l}=Ft(e,t),c={x:n,y:r},u=await $r(t,l),d=wt(Pt(a)),p=_l(d);let f=c[p],g=c[d];if(i){const h=p==="y"?"top":"left",m=p==="y"?"bottom":"right",E=f+u[h],S=f-u[m];f=ks(E,f,S)}if(o){const h=d==="y"?"top":"left",m=d==="y"?"bottom":"right",E=g+u[h],S=g-u[m];g=ks(E,g,S)}const b=s.fn({...t,[p]:f,[d]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:i,[d]:o}}}}}},SC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:i,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Ft(e,t),u={x:n,y:r},d=wt(a),p=_l(d);let f=u[p],g=u[d];const b=Ft(s,t),h=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const S=p==="y"?"height":"width",T=i.reference[p]-i.floating[S]+h.mainAxis,A=i.reference[p]+i.reference[S]-h.mainAxis;f<T?f=T:f>A&&(f=A)}if(c){var m,E;const S=p==="y"?"width":"height",T=nw.has(Pt(a)),A=i.reference[d]-i.floating[S]+(T&&((m=o.offset)==null?void 0:m[d])||0)+(T?0:h.crossAxis),v=i.reference[d]+i.reference[S]+(T?0:((E=o.offset)==null?void 0:E[d])||0)-(T?h.crossAxis:0);g<A?g=A:g>v&&(g=v)}return{[p]:f,[d]:g}}}},vC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:i,platform:o,elements:s}=t,{apply:l=()=>{},...c}=Ft(e,t),u=await $r(t,c),d=Pt(a),p=er(a),f=wt(a)==="y",{width:g,height:b}=i.floating;let h,m;d==="top"||d==="bottom"?(h=d,m=p===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(m=d,h=p==="end"?"top":"bottom");const E=b-u.top-u.bottom,S=g-u.left-u.right,T=Yt(b-u[h],E),A=Yt(g-u[m],S),v=!t.middlewareData.shift;let _=T,N=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=E),v&&!p){const R=Qe(u.left,0),F=Qe(u.right,0),P=Qe(u.top,0),U=Qe(u.bottom,0);f?N=g-2*(R!==0||F!==0?R+F:Qe(u.left,u.right)):_=b-2*(P!==0||U!==0?P+U:Qe(u.top,u.bottom))}await l({...t,availableWidth:N,availableHeight:_});const D=await o.getDimensions(s.floating);return g!==D.width||b!==D.height?{reset:{rects:!0}}:{}}}};function ki(){return typeof window<"u"}function tr(e){return rw(e)?(e.nodeName||"").toLowerCase():"#document"}function Je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function It(e){var t;return(t=(rw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function rw(e){return ki()?e instanceof Node||e instanceof Je(e).Node:!1}function bt(e){return ki()?e instanceof Element||e instanceof Je(e).Element:!1}function Tt(e){return ki()?e instanceof HTMLElement||e instanceof Je(e).HTMLElement:!1}function sh(e){return!ki()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot}const xC=new Set(["inline","contents"]);function sa(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!xC.has(a)}const kC=new Set(["table","td","th"]);function TC(e){return kC.has(tr(e))}const AC=[":popover-open",":modal"];function Ti(e){return AC.some(t=>{try{return e.matches(t)}catch{return!1}})}const RC=["transform","translate","scale","rotate","perspective"],IC=["transform","translate","scale","rotate","perspective","filter"],CC=["paint","layout","strict","content"];function Dl(e){const t=Ml(),n=bt(e)?yt(e):e;return RC.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||IC.some(r=>(n.willChange||"").includes(r))||CC.some(r=>(n.contain||"").includes(r))}function NC(e){let t=Kt(e);for(;Tt(t)&&!$n(t);){if(Dl(t))return t;if(Ti(t))return null;t=Kt(t)}return null}function Ml(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const _C=new Set(["html","body","#document"]);function $n(e){return _C.has(tr(e))}function yt(e){return Je(e).getComputedStyle(e)}function Ai(e){return bt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kt(e){if(tr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sh(e)&&e.host||It(e);return sh(t)?t.host:t}function aw(e){const t=Kt(e);return $n(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tt(t)&&sa(t)?t:aw(t)}function Wr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=aw(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=Je(a);if(i){const s=As(o);return t.concat(o,o.visualViewport||[],sa(a)?a:[],s&&n?Wr(s):[])}return t.concat(a,Wr(a,[],n))}function As(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iw(e){const t=yt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Tt(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=ai(n)!==i||ai(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function Fl(e){return bt(e)?e:e.contextElement}function zn(e){const t=Fl(e);if(!Tt(t))return vt(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=iw(t);let o=(i?ai(n.width):n.width)/r,s=(i?ai(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const OC=vt(0);function ow(e){const t=Je(e);return!Ml()||!t.visualViewport?OC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function LC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Je(e)?!1:t}function bn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=Fl(e);let o=vt(1);t&&(r?bt(r)&&(o=zn(r)):o=zn(e));const s=LC(i,n,r)?ow(i):vt(0);let l=(a.left+s.x)/o.x,c=(a.top+s.y)/o.y,u=a.width/o.x,d=a.height/o.y;if(i){const p=Je(i),f=r&&bt(r)?Je(r):r;let g=p,b=As(g);for(;b&&r&&f!==g;){const h=zn(b),m=b.getBoundingClientRect(),E=yt(b),S=m.left+(b.clientLeft+parseFloat(E.paddingLeft))*h.x,T=m.top+(b.clientTop+parseFloat(E.paddingTop))*h.y;l*=h.x,c*=h.y,u*=h.x,d*=h.y,l+=S,c+=T,g=Je(b),b=As(g)}}return oi({width:u,height:d,x:l,y:c})}function Ri(e,t){const n=Ai(e).scrollLeft;return t?t.left+n:bn(It(e)).left+n}function sw(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ri(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function DC(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",o=It(r),s=t?Ti(t.floating):!1;if(r===o||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=vt(1);const u=vt(0),d=Tt(r);if((d||!d&&!i)&&((tr(r)!=="body"||sa(o))&&(l=Ai(r)),Tt(r))){const f=bn(r);c=zn(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const p=o&&!d&&!i?sw(o,l):vt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}}function MC(e){return Array.from(e.getClientRects())}function FC(e){const t=It(e),n=Ai(e),r=e.ownerDocument.body,a=Qe(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Qe(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Ri(e);const s=-n.scrollTop;return yt(r).direction==="rtl"&&(o+=Qe(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}const lh=25;function PC(e,t){const n=Je(e),r=It(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const u=Ml();(!u||u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}const c=Ri(r);if(c<=0){const u=r.ownerDocument,d=u.body,p=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-f);g<=lh&&(i-=g)}else c<=lh&&(i+=c);return{width:i,height:o,x:s,y:l}}const BC=new Set(["absolute","fixed"]);function UC(e,t){const n=bn(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=Tt(e)?zn(e):vt(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,c=r*i.y;return{width:o,height:s,x:l,y:c}}function ch(e,t,n){let r;if(t==="viewport")r=PC(e,n);else if(t==="document")r=FC(It(e));else if(bt(t))r=UC(t,n);else{const a=ow(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return oi(r)}function lw(e,t){const n=Kt(e);return n===t||!bt(n)||$n(n)?!1:yt(n).position==="fixed"||lw(n,t)}function zC(e,t){const n=t.get(e);if(n)return n;let r=Wr(e,[],!1).filter(s=>bt(s)&&tr(s)!=="body"),a=null;const i=yt(e).position==="fixed";let o=i?Kt(e):e;for(;bt(o)&&!$n(o);){const s=yt(o),l=Dl(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&BC.has(a.position)||sa(o)&&!l&&lw(e,o))?r=r.filter(u=>u!==o):a=s,o=Kt(o)}return t.set(e,r),r}function jC(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?Ti(t)?[]:zC(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((c,u)=>{const d=ch(t,u,a);return c.top=Qe(d.top,c.top),c.right=Yt(d.right,c.right),c.bottom=Yt(d.bottom,c.bottom),c.left=Qe(d.left,c.left),c},ch(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function GC(e){const{width:t,height:n}=iw(e);return{width:t,height:n}}function VC(e,t,n){const r=Tt(t),a=It(t),i=n==="fixed",o=bn(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=vt(0);function c(){l.x=Ri(a)}if(r||!r&&!i)if((tr(t)!=="body"||sa(a))&&(s=Ai(t)),r){const f=bn(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else a&&c();i&&!r&&a&&c();const u=a&&!r&&!i?sw(a,s):vt(0),d=o.left+s.scrollLeft-l.x-u.x,p=o.top+s.scrollTop-l.y-u.y;return{x:d,y:p,width:o.width,height:o.height}}function yo(e){return yt(e).position==="static"}function uh(e,t){if(!Tt(e)||yt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return It(e)===n&&(n=n.ownerDocument.body),n}function cw(e,t){const n=Je(e);if(Ti(e))return n;if(!Tt(e)){let a=Kt(e);for(;a&&!$n(a);){if(bt(a)&&!yo(a))return a;a=Kt(a)}return n}let r=uh(e,t);for(;r&&TC(r)&&yo(r);)r=uh(r,t);return r&&$n(r)&&yo(r)&&!Dl(r)?n:r||NC(e)||n}const HC=async function(e){const t=this.getOffsetParent||cw,n=this.getDimensions,r=await n(e.floating);return{reference:VC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $C(e){return yt(e).direction==="rtl"}const WC={convertOffsetParentRelativeRectToViewportRelativeRect:DC,getDocumentElement:It,getClippingRect:jC,getOffsetParent:cw,getElementRects:HC,getClientRects:MC,getDimensions:GC,getScale:zn,isElement:bt,isRTL:$C};function uw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qC(e,t){let n=null,r;const a=It(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const g=Na(d),b=Na(a.clientWidth-(u+p)),h=Na(a.clientHeight-(d+f)),m=Na(u),S={rootMargin:-g+"px "+-b+"px "+-h+"px "+-m+"px",threshold:Qe(0,Yt(1,l))||1};let T=!0;function A(v){const _=v[0].intersectionRatio;if(_!==l){if(!T)return o();_?o(!1,_):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!uw(c,e.getBoundingClientRect())&&o(),T=!1}try{n=new IntersectionObserver(A,{...S,root:a.ownerDocument})}catch{n=new IntersectionObserver(A,S)}n.observe(e)}return o(!0),i}function YC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Fl(e),u=a||i?[...c?Wr(c):[],...Wr(t)]:[];u.forEach(m=>{a&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=c&&s?qC(c,n):null;let p=-1,f=null;o&&(f=new ResizeObserver(m=>{let[E]=m;E&&E.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=f)==null||S.observe(t)})),n()}),c&&!l&&f.observe(c),f.observe(t));let g,b=l?bn(e):null;l&&h();function h(){const m=bn(e);b&&!uw(b,m)&&n(),b=m,g=requestAnimationFrame(h)}return n(),()=>{var m;u.forEach(E=>{a&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),d==null||d(),(m=f)==null||m.disconnect(),f=null,l&&cancelAnimationFrame(g)}}const KC=EC,XC=wC,ZC=hC,QC=vC,JC=bC,dh=mC,eN=SC,tN=(e,t,n)=>{const r=new Map,a={platform:WC,...n},i={...a.platform,_c:r};return gC(e,t,{...a,platform:i})};var nN=typeof document<"u",rN=function(){},Ha=nN?O.useLayoutEffect:rN;function si(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!si(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const i=a[r];if(!(i==="_owner"&&e.$$typeof)&&!si(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function dw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ph(e,t){const n=dw(e);return Math.round(t*n)/n}function Eo(e){const t=I.useRef(e);return Ha(()=>{t.current=e}),t}function aN(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=I.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=I.useState(r);si(p,r)||f(r);const[g,b]=I.useState(null),[h,m]=I.useState(null),E=I.useCallback(M=>{M!==v.current&&(v.current=M,b(M))},[]),S=I.useCallback(M=>{M!==_.current&&(_.current=M,m(M))},[]),T=i||g,A=o||h,v=I.useRef(null),_=I.useRef(null),N=I.useRef(u),D=l!=null,R=Eo(l),F=Eo(a),P=Eo(c),U=I.useCallback(()=>{if(!v.current||!_.current)return;const M={placement:t,strategy:n,middleware:p};F.current&&(M.platform=F.current),tN(v.current,_.current,M).then(X=>{const x={...X,isPositioned:P.current!==!1};z.current&&!si(N.current,x)&&(N.current=x,Cb.flushSync(()=>{d(x)}))})},[p,t,n,F,P]);Ha(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,d(M=>({...M,isPositioned:!1})))},[c]);const z=I.useRef(!1);Ha(()=>(z.current=!0,()=>{z.current=!1}),[]),Ha(()=>{if(T&&(v.current=T),A&&(_.current=A),T&&A){if(R.current)return R.current(T,A,U);U()}},[T,A,U,R,D]);const B=I.useMemo(()=>({reference:v,floating:_,setReference:E,setFloating:S}),[E,S]),H=I.useMemo(()=>({reference:T,floating:A}),[T,A]),j=I.useMemo(()=>{const M={position:n,left:0,top:0};if(!H.floating)return M;const X=ph(H.floating,u.x),x=ph(H.floating,u.y);return s?{...M,transform:"translate("+X+"px, "+x+"px)",...dw(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:x}},[n,s,H.floating,u.x,u.y]);return I.useMemo(()=>({...u,update:U,refs:B,elements:H,floatingStyles:j}),[u,U,B,H,j])}const iN=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?dh({element:r.current,padding:a}).fn(n):{}:r?dh({element:r,padding:a}).fn(n):{}}}},oN=(e,t)=>({...KC(e),options:[e,t]}),sN=(e,t)=>({...XC(e),options:[e,t]}),lN=(e,t)=>({...eN(e),options:[e,t]}),cN=(e,t)=>({...ZC(e),options:[e,t]}),uN=(e,t)=>({...QC(e),options:[e,t]}),dN=(e,t)=>({...JC(e),options:[e,t]}),pN=(e,t)=>({...iN(e),options:[e,t]});var fN="Arrow",pw=I.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...i}=e;return y.jsx(lt.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});pw.displayName=fN;var gN=pw;function mN(e){const[t,n]=I.useState(void 0);return hn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,s;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Pl="Popper",[fw,gw]=ia(Pl),[hN,mw]=fw(Pl),hw=e=>{const{__scopePopper:t,children:n}=e,[r,a]=I.useState(null);return y.jsx(hN,{scope:t,anchor:r,onAnchorChange:a,children:n})};hw.displayName=Pl;var bw="PopperAnchor",yw=I.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,i=mw(bw,n),o=I.useRef(null),s=kt(t,o),l=I.useRef(null);return I.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||o.current,c!==l.current&&i.onAnchorChange(l.current)}),r?null:y.jsx(lt.div,{...a,ref:s})});yw.displayName=bw;var Bl="PopperContent",[bN,yN]=fw(Bl),Ew=I.forwardRef((e,t)=>{var K,pe,ge,ve,Oe,Ke;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:g,...b}=e,h=mw(Bl,n),[m,E]=I.useState(null),S=kt(t,Ge=>E(Ge)),[T,A]=I.useState(null),v=mN(T),_=(v==null?void 0:v.width)??0,N=(v==null?void 0:v.height)??0,D=r+(i!=="center"?"-"+i:""),R=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},F=Array.isArray(c)?c:[c],P=F.length>0,U={padding:R,boundary:F.filter(wN),altBoundary:P},{refs:z,floatingStyles:B,placement:H,isPositioned:j,middlewareData:M}=aN({strategy:"fixed",placement:D,whileElementsMounted:(...Ge)=>YC(...Ge,{animationFrame:f==="always"}),elements:{reference:h.anchor},middleware:[oN({mainAxis:a+N,alignmentAxis:o}),l&&sN({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?lN():void 0,...U}),l&&cN({...U}),uN({...U,apply:({elements:Ge,rects:Jt,availableWidth:Sn,availableHeight:vn})=>{const{width:jt,height:ct}=Jt.reference,_t=Ge.floating.style;_t.setProperty("--radix-popper-available-width",`${Sn}px`),_t.setProperty("--radix-popper-available-height",`${vn}px`),_t.setProperty("--radix-popper-anchor-width",`${jt}px`),_t.setProperty("--radix-popper-anchor-height",`${ct}px`)}}),T&&pN({element:T,padding:s}),SN({arrowWidth:_,arrowHeight:N}),p&&dN({strategy:"referenceHidden",...U})]}),[X,x]=vw(H),L=oa(g);hn(()=>{j&&(L==null||L())},[j,L]);const $=(K=M.arrow)==null?void 0:K.x,k=(pe=M.arrow)==null?void 0:pe.y,Z=((ge=M.arrow)==null?void 0:ge.centerOffset)!==0,[ce,ie]=I.useState();return hn(()=>{m&&ie(window.getComputedStyle(m).zIndex)},[m]),y.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:j?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(ve=M.transformOrigin)==null?void 0:ve.x,(Oe=M.transformOrigin)==null?void 0:Oe.y].join(" "),...((Ke=M.hide)==null?void 0:Ke.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(bN,{scope:n,placedSide:X,onArrowChange:A,arrowX:$,arrowY:k,shouldHideArrow:Z,children:y.jsx(lt.div,{"data-side":X,"data-align":x,...b,ref:S,style:{...b.style,animation:j?void 0:"none"}})})})});Ew.displayName=Bl;var ww="PopperArrow",EN={top:"bottom",right:"left",bottom:"top",left:"right"},Sw=I.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,i=yN(ww,r),o=EN[i.placedSide];return y.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:y.jsx(gN,{...a,ref:n,style:{...a.style,display:"block"}})})});Sw.displayName=ww;function wN(e){return e!==null}var SN=e=>({name:"transformOrigin",options:e,fn(t){var h,m,E;const{placement:n,rects:r,middlewareData:a}=t,o=((h=a.arrow)==null?void 0:h.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=vw(n),d={start:"0%",center:"50%",end:"100%"}[u],p=(((m=a.arrow)==null?void 0:m.x)??0)+s/2,f=(((E=a.arrow)==null?void 0:E.y)??0)+l/2;let g="",b="";return c==="bottom"?(g=o?d:`${p}px`,b=`${-l}px`):c==="top"?(g=o?d:`${p}px`,b=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,b=o?d:`${f}px`):c==="left"&&(g=`${r.floating.width+l}px`,b=o?d:`${f}px`),{data:{x:g,y:b}}}});function vw(e){const[t,n="center"]=e.split("-");return[t,n]}var vN=hw,xN=yw,kN=Ew,TN=Sw;function AN(e,t){return I.useReducer((n,r)=>t[n][r]??n,e)}var xw=e=>{const{present:t,children:n}=e,r=RN(t),a=typeof n=="function"?n({present:r.isPresent}):I.Children.only(n),i=kt(r.ref,IN(a));return typeof n=="function"||r.isPresent?I.cloneElement(a,{ref:i}):null};xw.displayName="Presence";function RN(e){const[t,n]=I.useState(),r=I.useRef(null),a=I.useRef(e),i=I.useRef("none"),o=e?"mounted":"unmounted",[s,l]=AN(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I.useEffect(()=>{const c=_a(r.current);i.current=s==="mounted"?c:"none"},[s]),hn(()=>{const c=r.current,u=a.current;if(u!==e){const p=i.current,f=_a(c);e?l("MOUNT"):f==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&p!==f?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),hn(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=f=>{const b=_a(r.current).includes(CSS.escape(f.animationName));if(f.target===t&&b&&(l("ANIMATION_END"),!a.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},p=f=>{f.target===t&&(i.current=_a(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:I.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function _a(e){return(e==null?void 0:e.animationName)||"none"}function IN(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var CN=I[" useInsertionEffect ".trim().toString()]||hn;function la({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,i,o]=NN({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:a;{const u=I.useRef(e!==void 0);I.useEffect(()=>{const d=u.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,r])}const c=I.useCallback(u=>{var d;if(s){const p=_N(u)?u(e):u;p!==e&&((d=o.current)==null||d.call(o,p))}else i(u)},[s,e,i,o]);return[l,c]}function NN({defaultProp:e,onChange:t}){const[n,r]=I.useState(e),a=I.useRef(n),i=I.useRef(t);return CN(()=>{i.current=t},[t]),I.useEffect(()=>{var o;a.current!==n&&((o=i.current)==null||o.call(i,n),a.current=n)},[n,a]),[n,r,i]}function _N(e){return typeof e=="function"}var ON=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),LN="VisuallyHidden",kw=I.forwardRef((e,t)=>y.jsx(lt.span,{...e,ref:t,style:{...ON,...e.style}}));kw.displayName=LN;var DN=kw,[Ii]=ia("Tooltip",[gw]),Ci=gw(),Tw="TooltipProvider",MN=700,Rs="tooltip.open",[FN,Ul]=Ii(Tw),Aw=e=>{const{__scopeTooltip:t,delayDuration:n=MN,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:i}=e,o=I.useRef(!0),s=I.useRef(!1),l=I.useRef(0);return I.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),y.jsx(FN,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:I.useCallback(()=>{window.clearTimeout(l.current),o.current=!1},[]),onClose:I.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:I.useCallback(c=>{s.current=c},[]),disableHoverableContent:a,children:i})};Aw.displayName=Tw;var qr="Tooltip",[PN,Ni]=Ii(qr),Rw=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a,onOpenChange:i,disableHoverableContent:o,delayDuration:s}=e,l=Ul(qr,e.__scopeTooltip),c=Ci(t),[u,d]=I.useState(null),p=ew(),f=I.useRef(0),g=o??l.disableHoverableContent,b=s??l.delayDuration,h=I.useRef(!1),[m,E]=la({prop:r,defaultProp:a??!1,onChange:_=>{_?(l.onOpen(),document.dispatchEvent(new CustomEvent(Rs))):l.onClose(),i==null||i(_)},caller:qr}),S=I.useMemo(()=>m?h.current?"delayed-open":"instant-open":"closed",[m]),T=I.useCallback(()=>{window.clearTimeout(f.current),f.current=0,h.current=!1,E(!0)},[E]),A=I.useCallback(()=>{window.clearTimeout(f.current),f.current=0,E(!1)},[E]),v=I.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{h.current=!0,E(!0),f.current=0},b)},[b,E]);return I.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),y.jsx(vN,{...c,children:y.jsx(PN,{scope:t,contentId:p,open:m,stateAttribute:S,trigger:u,onTriggerChange:d,onTriggerEnter:I.useCallback(()=>{l.isOpenDelayedRef.current?v():T()},[l.isOpenDelayedRef,v,T]),onTriggerLeave:I.useCallback(()=>{g?A():(window.clearTimeout(f.current),f.current=0)},[A,g]),onOpen:T,onClose:A,disableHoverableContent:g,children:n})})};Rw.displayName=qr;var Is="TooltipTrigger",Iw=I.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Ni(Is,n),i=Ul(Is,n),o=Ci(n),s=I.useRef(null),l=kt(t,s,a.onTriggerChange),c=I.useRef(!1),u=I.useRef(!1),d=I.useCallback(()=>c.current=!1,[]);return I.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),y.jsx(xN,{asChild:!0,...o,children:y.jsx(lt.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:l,onPointerMove:De(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:De(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:De(e.onPointerDown,()=>{a.open&&a.onClose(),c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:De(e.onFocus,()=>{c.current||a.onOpen()}),onBlur:De(e.onBlur,a.onClose),onClick:De(e.onClick,a.onClose)})})});Iw.displayName=Is;var BN="TooltipPortal",[lB,UN]=Ii(BN,{forceMount:void 0}),Wn="TooltipContent",Cw=I.forwardRef((e,t)=>{const n=UN(Wn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...i}=e,o=Ni(Wn,e.__scopeTooltip);return y.jsx(xw,{present:r||o.open,children:o.disableHoverableContent?y.jsx(Nw,{side:a,...i,ref:t}):y.jsx(zN,{side:a,...i,ref:t})})}),zN=I.forwardRef((e,t)=>{const n=Ni(Wn,e.__scopeTooltip),r=Ul(Wn,e.__scopeTooltip),a=I.useRef(null),i=kt(t,a),[o,s]=I.useState(null),{trigger:l,onClose:c}=n,u=a.current,{onPointerInTransitChange:d}=r,p=I.useCallback(()=>{s(null),d(!1)},[d]),f=I.useCallback((g,b)=>{const h=g.currentTarget,m={x:g.clientX,y:g.clientY},E=$N(m,h.getBoundingClientRect()),S=WN(m,E),T=qN(b.getBoundingClientRect()),A=KN([...S,...T]);s(A),d(!0)},[d]);return I.useEffect(()=>()=>p(),[p]),I.useEffect(()=>{if(l&&u){const g=h=>f(h,u),b=h=>f(h,l);return l.addEventListener("pointerleave",g),u.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",b)}}},[l,u,f,p]),I.useEffect(()=>{if(o){const g=b=>{const h=b.target,m={x:b.clientX,y:b.clientY},E=(l==null?void 0:l.contains(h))||(u==null?void 0:u.contains(h)),S=!YN(m,o);E?p():S&&(p(),c())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,u,o,c,p]),y.jsx(Nw,{...e,ref:i})}),[jN,GN]=Ii(qr,{isInside:!1}),VN=jI("TooltipContent"),Nw=I.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...s}=e,l=Ni(Wn,n),c=Ci(n),{onClose:u}=l;return I.useEffect(()=>(document.addEventListener(Rs,u),()=>document.removeEventListener(Rs,u)),[u]),I.useEffect(()=>{if(l.trigger){const d=p=>{const f=p.target;f!=null&&f.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),y.jsx(QE,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:y.jsxs(kN,{"data-state":l.stateAttribute,...c,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[y.jsx(VN,{children:r}),y.jsx(jN,{scope:n,isInside:!0,children:y.jsx(DN,{id:l.contentId,role:"tooltip",children:a||r})})]})})});Cw.displayName=Wn;var _w="TooltipArrow",HN=I.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Ci(n);return GN(_w,n).isInside?null:y.jsx(TN,{...a,...r,ref:t})});HN.displayName=_w;function $N(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,a,i)){case i:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function WN(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function qN(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function YN(e,t){const{x:n,y:r}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const s=t[i],l=t[o],c=s.x,u=s.y,d=l.x,p=l.y;u>r!=p>r&&n<(d-c)*(r-u)/(p-u)+c&&(a=!a)}return a}function KN(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),XN(t)}function XN(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var ZN=Aw,QN=Rw,JN=Iw,Ow=Cw;const Lw=ZN,Bt=QN,Ut=JN,At=({className:e,sideOffset:t=4,...n})=>y.jsx(Ow,{sideOffset:t,avoidCollisions:!0,collisionPadding:8,className:J("z-[9999] overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]","bg-widget-bg-primary text-widget-text-secondary border-widget-border","dark:bg-widget-bg-primary dark:text-widget-text-secondary dark:border-widget-border","will-change-transform",e),...n});At.displayName=Ow.displayName;function fh(){const e=Y(r=>r.closeWidget),t=Y(r=>r.setCustomOpen),n=()=>{e(),t==null||t(!1)};return y.jsxs(Bt,{children:[y.jsx(Ut,{asChild:!0,children:y.jsx(oe.span,{className:J("cursor-pointer rounded-full p-0.5 border-2","text-widget-text-primary bg-widget-text-secondary border-widget-text-primary","dark:text-widget-text-primary dark:bg-widget-text-secondary dark:border-widget-text-primary","ring-widget-text-secondary ring-0 hover:ring-2","dark:ring-widget-text-secondary"),whileHover:{scale:1.1},whileTap:{scale:.9},onClick:n,children:y.jsx(YE,{className:"size-5"})})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:"Close Widget"})})]})}function e_({onClick:e}){const t=Y(r=>r.resetChat),n=O.useCallback(()=>{t(),e==null||e()},[t,e]);return y.jsxs(Bt,{children:[y.jsx(Ut,{asChild:!0,onClick:n,children:y.jsx(oe.span,{className:J("rounded-full p-1 cursor-pointer border-2","bg-widget-text-secondary border-widget-text-primary text-widget-text-primary","dark:bg-widget-text-secondary dark:border-widget-text-primary dark:text-widget-text-primary","ring-widget-text-secondary ring-0 hover:ring-2","dark:ring-widget-text-secondary"),whileHover:{scale:1.1,rotate:120},whileTap:{scale:.9},initial:{opacity:0,scale:0},animate:{opacity:1,scale:1,transition:{delay:.1}},children:y.jsx(WE,{className:"size-4"})})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:"Reset Chat"})})]})}const zl=e=>y.jsxs("svg",{width:e.width,height:e.height,viewBox:"0 0 236 211",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e.ref,...e,children:[e.title&&y.jsx("title",{children:e.title}),y.jsxs("g",{clipPath:"url(#clip0_486_1154)",children:[y.jsx("path",{d:"M231.927 194.514C235.881 187.393 237.006 179.067 235.083 171.168C234.531 168.984 233.769 166.858 232.806 164.819C232.502 164.15 232.156 163.501 231.771 162.874L200.418 104.252H168.341L201.143 165.69C202.172 167.475 202.714 169.496 202.714 171.552C202.714 173.608 202.172 175.628 201.143 177.414C200.139 179.082 198.715 180.464 197.01 181.424C195.305 182.385 193.378 182.89 191.416 182.892H154.009C153.595 188.612 151.801 194.15 148.776 199.041C145.751 203.931 141.584 208.033 136.625 211H205.385C209.975 210.698 214.443 209.405 218.475 207.211C224.164 204.438 228.859 200.007 231.927 194.514Z",fill:"currentColor"}),y.jsx("path",{d:"M56.0698 65.9049H88.1473L104.134 36.466C105.487 33.9253 107.515 31.7984 109.999 30.3146C112.484 28.8309 115.331 28.0467 118.233 28.0467C121.135 28.0467 123.982 28.8309 126.466 30.3146C128.951 31.7984 130.979 33.9253 132.331 36.466L147.853 65.9049H179.93L157.166 23.3081C153.391 16.2702 147.751 10.3822 140.851 6.27586C133.951 2.16956 126.052 0 118 0C109.948 0 102.049 2.16956 95.1487 6.27586C88.2488 10.3822 82.6089 16.2702 78.8345 23.3081L56.0698 65.9049Z",fill:"currentColor"}),y.jsx("path",{d:"M81.9387 99.1324C82.275 93.4362 83.9987 87.9051 86.9627 83.0107C89.9266 78.1164 94.0429 74.0041 98.9604 71.0247H36.875V99.1324H81.9387Z",fill:"currentColor"}),y.jsx("path",{d:"M87.0591 101.18V177.977H101.649C104.692 177.944 107.64 176.924 110.041 175.075C112.443 173.226 114.165 170.648 114.946 167.738C115.26 166.621 115.416 165.467 115.411 164.308V118.229C115.425 113.227 117.432 108.432 120.997 104.885C124.561 101.338 129.396 99.3264 134.451 99.286H199.382V71.0247H117.481C109.408 71.0382 101.67 74.2213 95.9663 79.8751C90.2626 85.5289 87.0591 93.1914 87.0591 101.18Z",fill:"currentColor"}),y.jsx("path",{d:"M3.1927 164.819C2.23008 166.858 1.46775 168.984 0.916237 171.168C-1.00574 179.084 0.119328 187.425 4.07225 194.565C7.14854 200.039 11.8422 204.452 17.5241 207.211C21.5555 209.405 26.0233 210.698 30.6138 211H117.999C126.232 211 134.128 207.764 139.949 202.003C145.771 196.242 149.042 188.428 149.042 180.281V104.201H134.245C130.607 104.294 127.148 105.782 124.6 108.352C122.051 110.922 120.611 114.372 120.586 117.973V164.051C120.572 169.053 118.555 173.845 114.976 177.377C111.397 180.909 106.549 182.892 101.495 182.892H44.8417C42.8798 182.89 40.9521 182.385 39.2471 181.424C37.5421 180.464 36.1182 179.082 35.1149 177.414C34.0855 175.619 33.5443 173.59 33.5443 171.526C33.5443 169.462 34.0855 167.434 35.1149 165.638L67.9167 104.201H35.5806L4.22746 162.823C3.86529 163.539 3.50313 164.154 3.1927 164.819Z",fill:"currentColor"})]}),y.jsx("defs",{children:y.jsx("clipPath",{id:"clip0_486_1154",children:y.jsx("rect",{width:"236",height:"211",fill:"currentColor"})})})]}),t_={[Hn.HAS_BEEN_OPENED]:{backgroundSize:"100% 100%"},[Hn.HAS_NOT_BEEN_OPENED]:{backgroundSize:"0% 100%"}},n_=({children:e,className:t})=>{const n=Y(r=>r.hasWidgetBeenOpened);return y.jsx(oe.span,{initial:!1,animate:n,variants:t_,transition:{duration:2,ease:"linear",delay:.5},className:J("relative rounded-lg inline-block","bg-no-repeat bg-position-[left_center] bg-linear-[30deg,#00E3AA,#FFFFFF]",t),children:e})},r_=()=>y.jsxs("span",{className:"inline-flex items-start space-x-2",children:[y.jsx(zl,{className:"size-7 text-telnyx-green cursor-pointer translate-y-[1px]"}),y.jsxs("span",{className:"inline-flex text-white text-2xl font-pp-formula space-x-2",children:[y.jsx("h1",{className:"pt-1",children:"Ask our"}),y.jsx(n_,{className:"text-black px-1 pt-1",children:"AI Assistant"})]})]}),a_=()=>y.jsxs("span",{className:"text-white text-sm",children:[y.jsx(i_,{text:"Read more about the AI assistant"}),"."]}),i_=({text:e})=>y.jsxs("a",{className:"inline underline text-telnyx-light-green hover:text-white",target:"_blank",rel:"noopener noreferrer",href:"https://support.telnyx.com/en/articles/8020222-mission-control-portal-ai-chat-support",children:[e,y.jsx("span",{className:"sr-only",children:" (opens in a new tab)"})]});function o_(){return y.jsxs(oe.div,{className:"flex flex-col cursor-default rounded-2xl bg-black/50",initial:{opacity:0,y:16,scale:1},whileInView:{opacity:1,y:0,scale:1,transition:{delay:.1}},children:[y.jsx(r_,{}),y.jsx(a_,{})]})}const wo="#00E3AA",So="#ffffff",s_=({children:e,className:t})=>{const[n,r]=O.useState({backgroundImage:`linear-gradient(30deg, ${wo}, ${So})`,backgroundPosition:"0% 50%",backgroundSize:"100%",transition:"all 0.5s ease-in-out"}),a=s=>{const{clientX:l,clientY:c}=s,{left:u,top:d}=s.currentTarget.getBoundingClientRect(),p=l-u,f=c-d;r(g=>({...g,backgroundImage:`radial-gradient(
2682
2720
  48px circle at ${p}px ${f}px,
2683
2721
  ${wo}, ${So}
2684
2722
  )`}))},i=()=>{r(s=>({...s,backgroundPosition:"100% 50%"}))},o=()=>{r(s=>({...s,backgroundImage:`linear-gradient(30deg, ${wo}, ${So})`,backgroundPosition:"0% 50%"}))};return y.jsx("span",{className:"inline-flex bg-black",children:y.jsx("h1",{className:J("text-transparent text-lg bg-clip-text","font-pp-formula font-bold","cursor-default",t),style:n,onMouseMove:a,onMouseEnter:i,onMouseLeave:o,children:e})})},l_=({children:e,className:t})=>y.jsx(Rt,{children:y.jsxs(oe.span,{className:J("inline-flex items-center justify-center space-x-1 flex-1 overflow-y-clip",t),initial:{opacity:0,y:10},animate:{opacity:1,y:-6},children:[y.jsx(zl,{className:"size-5 text-telnyx-green cursor-pointer -translate-y-0.5"}),y.jsx(s_,{children:e})]})}),c_=O.memo(l_),u_=({resetChatCustomHandler:e})=>{const t=Y(n=>n.chatVisualState);return y.jsx(Rt,{mode:"wait",children:t===je.INITIAL?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"flex justify-end",children:y.jsx(fh,{})}),y.jsx(o_,{})]}):y.jsxs("div",{className:"flex justify-between",children:[y.jsx(e_,{onClick:e}),y.jsx(c_,{children:"AI Assistant"}),y.jsx(fh,{})]})})};function d_({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M15.73 5.5h1.035A7.465 7.465 0 0 1 18 9.625a7.465 7.465 0 0 1-1.235 4.125h-.148c-.806 0-1.534.446-2.031 1.08a9.04 9.04 0 0 1-2.861 2.4c-.723.384-1.35.956-1.653 1.715a4.499 4.499 0 0 0-.322 1.672v.633A.75.75 0 0 1 9 22a2.25 2.25 0 0 1-2.25-2.25c0-1.152.26-2.243.723-3.218.266-.558-.107-1.282-.725-1.282H3.622c-1.026 0-1.945-.694-2.054-1.715A12.137 12.137 0 0 1 1.5 12.25c0-2.848.992-5.464 2.649-7.521C4.537 4.247 5.136 4 5.754 4H9.77a4.5 4.5 0 0 1 1.423.23l3.114 1.04a4.5 4.5 0 0 0 1.423.23ZM21.669 14.023c.536-1.362.831-2.845.831-4.398 0-1.22-.182-2.398-.52-3.507-.26-.85-1.084-1.368-1.973-1.368H19.1c-.445 0-.72.498-.523.898.591 1.2.924 2.55.924 3.977a8.958 8.958 0 0 1-1.302 4.666c-.245.403.028.959.5.959h1.053c.832 0 1.612-.453 1.918-1.227Z"}))}const p_=I.forwardRef(d_);function f_({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M7.493 18.5c-.425 0-.82-.236-.975-.632A7.48 7.48 0 0 1 6 15.125c0-1.75.599-3.358 1.602-4.634.151-.192.373-.309.6-.397.473-.183.89-.514 1.212-.924a9.042 9.042 0 0 1 2.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 0 0 .322-1.672V2.75A.75.75 0 0 1 15 2a2.25 2.25 0 0 1 2.25 2.25c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.422.068.85.068 1.285a11.95 11.95 0 0 1-2.649 7.521c-.388.482-.987.729-1.605.729H14.23c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 0 0-1.423-.23h-.777ZM2.331 10.727a11.969 11.969 0 0 0-.831 4.398 12 12 0 0 0 .52 3.507C2.28 19.482 3.105 20 3.994 20H4.9c.445 0 .72-.498.523-.898a8.963 8.963 0 0 1-.924-3.977c0-1.708.476-3.305 1.302-4.666.245-.403-.028-.959-.5-.959H4.25c-.832 0-1.612.453-1.918 1.227Z"}))}const g_=I.forwardRef(f_);function m_({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{d:"M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z"}))}const Dw=I.forwardRef(m_);function h_({title:e,titleId:t,...n},r){return I.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?I.createElement("title",{id:t},e):null,I.createElement("path",{fillRule:"evenodd",d:"M18.685 19.097A9.723 9.723 0 0 0 21.75 12c0-5.385-4.365-9.75-9.75-9.75S2.25 6.615 2.25 12a9.723 9.723 0 0 0 3.065 7.097A9.716 9.716 0 0 0 12 21.75a9.716 9.716 0 0 0 6.685-2.653Zm-12.54-1.285A7.486 7.486 0 0 1 12 15a7.486 7.486 0 0 1 5.855 2.812A8.224 8.224 0 0 1 12 20.25a8.224 8.224 0 0 1-5.855-2.438ZM15.75 9a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z",clipRule:"evenodd"}))}const b_=I.forwardRef(h_),y_=oe.create(qE),E_=oe.create(Dw),w_=`${st.OPEN}-${je.INITIAL}`,S_=`${st.OPEN}-${je.USER_HAS_TYPED}`,v_=`${st.CLOSED}-${je.INITIAL}`,x_=`${st.CLOSED}-${je.USER_HAS_TYPED}`,k_={[w_]:{x:-14,y:-36,scale:.8,backgroundColor:"var(--color-telnyx-light-green)",transition:{backgroundColor:{delay:.1},x:{delay:0},y:{delay:0}}},[S_]:{x:-14,y:-18,scale:.8,backgroundColor:"var(--color-telnyx-light-green)",transition:{duration:.2,delay:.2}},[v_]:{x:0,y:-6,scale:1,backgroundColor:"var(--color-telnyx-green)",color:"rgba(0, 0, 0, 1)",transition:{delay:.6,color:{delay:.2}}},[x_]:{x:0,y:-6,scale:1,backgroundColor:"var(--color-telnyx-green)",color:"rgba(0, 0, 0, 1)",transition:{delay:.6,color:{delay:.2}}}},gh=e=>({open:t=>({opacity:e==="outline"?t?0:1:t?1:0,top:"50%",left:"50%",x:"calc(-50% + 1px)",y:"calc(-50% - 1px)",rotate:"-45deg",transition:{x:{delay:.2},y:{delay:.2}}}),closed:{top:"50%",left:"50%",x:32,y:32,rotate:"-30deg"}}),T_={open:{x:"calc(-50% - 26px)",y:"calc(-50% - 26px)",transition:{duration:.3}},closed:{top:"50%",left:"50%",x:"-50%",y:"-50%",transition:{x:{delay:.2},y:{delay:.2}}}},A_={idle:{opacity:0,scale:0,top:-6,right:2,transitionDelay:1.1},loading:{opacity:1,scale:[.8,1.2,.8],background:"radial-gradient(oklch(79.5% 0.184 86.047), oklch(90.5% 0.182 98.111))",transition:{delay:1.1,scale:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"loop"}}},streaming:{opacity:1,scale:[.8,1.2,.8],background:"radial-gradient(oklch(79.5% 0.184 86.047), oklch(90.5% 0.182 98.111))",transition:{delay:1.1,scale:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"loop"}}},complete:{opacity:1,scale:[.8,1.4,.8],right:[2,3,2,3,2,3,2,3,2],background:"radial-gradient(oklch(68.5% 0.169 237.323), oklch(86.5% 0.127 207.078))",transition:{delay:1.1,scale:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"loop"},right:{duration:.4,repeat:1/0,repeatType:"loop",repeatDelay:1.6,delay:.9}}},error:{opacity:1,scale:[.8,1.2,.8],right:[2,3,2,3,2,3,2,3,2],background:"radial-gradient(oklch(57.7% 0.245 27.325), oklch(70.4% 0.191 22.216))",transition:{delay:1.1,scale:{duration:2,ease:"easeInOut",repeat:1/0,repeatType:"loop"},right:{duration:.4,repeat:1/0,repeatType:"loop",repeatDelay:1.6,delay:.9}}},retrying:{opacity:1,scale:[.8,1.2,.8],background:"radial-gradient(oklch(70.5% 0.213 47.604), oklch(83.7% 0.128 66.29))",transition:{delay:1.1,scale:{duration:1,ease:"easeInOut",repeat:1/0,repeatType:"loop"}}}},R_=({question:e,handleSendMessage:t,triggerIcon:n})=>{const r=Y(d=>d.chatVisualState),a=Y(d=>d.widgetVisualState),i=Y(d=>d.openWidget),o=Y(d=>d.botState),s=Y(d=>d.widgetVisualState===st.OPEN),l=Y(d=>d.widgetVisualState===st.CLOSED),c=o==="loading"||o==="streaming",u=O.useMemo(()=>oe.create(n),[n]);return y.jsxs("div",{className:"fixed bottom-4.5 right-6 z-[9999]",children:[y.jsxs(oe.button,{disabled:s&&!e||s&&c,className:J("relative rounded-full p-2 size-10 overflow-clip cursor-pointer disabled:cursor-default",l&&"shadow-md",s&&!!e&&"shadow-md",s&&c&&"opacity-50"),whileHover:l?{scale:1.1}:s?e?{scale:.9}:{}:{},whileTap:l?{scale:.9}:s?e?{scale:.7}:{}:{},onClick:l?i:t,variants:k_,initial:!1,animate:`${a}-${r}`,children:[y.jsx(u,{className:"absolute size-[22px]",initial:!1,variants:T_,animate:a}),y.jsx(y_,{className:"absolute size-6",initial:!1,variants:gh("outline"),custom:!!e,animate:a}),y.jsx(E_,{className:"absolute size-6",initial:!1,variants:gh("solid"),custom:!!e,animate:a})]}),y.jsx(I_,{botState:o,isWidgetClosed:l})]})},I_=({botState:e,isWidgetClosed:t})=>t?y.jsx(oe.div,{className:J("absolute","w-2 h-2 rounded-full","shadow-2xl"),initial:"idle",variants:A_,animate:e}):null;function mh({className:e,containerRef:t,onClick:n,direction:r,scrollThreshold:a=150,ref:i}){const{scrollYProgress:o}=w0({container:t}),[s,l]=O.useState(!1),c=O.useRef(0),u=O.useRef(0);e0(o,"change",f=>{if(typeof f!="number")return;const g=o.get()<.05,b=o.get()>.95;let h=0;t.current&&(h=t.current.scrollTop);const m=h-c.current;if(c.current=h,r==="up"){if(g){l(!1),u.current=0;return}m<0?u.current+=Math.abs(m):(u.current=0,l(!1)),u.current>a&&l(!0)}else{if(b){l(!1),u.current=0;return}m>0?u.current+=m:(u.current=0,l(!1)),u.current>a&&l(!0)}});const d=f=>{const g=t.current;if(!g)return;const b=g.scrollHeight;f==="up"?g.scrollTo({top:0,behavior:"smooth"}):g.scrollTo({top:b,behavior:"smooth"})},p=()=>{d(r),n==null||n(),u.current=0,l(!1)};return y.jsx(Rt,{mode:"wait",children:y.jsx(oe.div,{ref:i,initial:{opacity:1,y:r==="up"?-20:20},animate:{y:s?0:r==="up"?-20:20,opacity:s?1:0},transition:{duration:.2},className:J("absolute inset-x-0 mx-auto w-fit max-w-fit rounded-full bg-white shadow-md z-[1000]",r==="up"?"top-6":"bottom-24",e),children:y.jsxs("button",{className:J("text-black px-4 py-2 rounded-full","transition-all","hover:cursor-pointer","hover:text-telnyx-green","hover:ring-1 hover:ring-telnyx-green hover:ring-offset-transparent"),onClick:p,children:[r==="up"?y.jsx(kI,{className:"size-4"}):y.jsx(SI,{className:"size-4"}),y.jsx("span",{className:"absolute inset-x-0 w-1/2 mx-auto -bottom-px bg-gradient-to-r from-transparent via-telnyx-green to-transparent h-px"})]})})})}const hh=(e,t,n,r)=>{const a=O.useRef(n);a.current=n,O.useEffect(()=>{if(!e.current||(r==null?void 0:r.enabled)===!1)return;const i=o=>{o.key===t&&((r==null?void 0:r.shiftKey)!==void 0&&o.shiftKey!==r.shiftKey||(r==null?void 0:r.ctrlKey)!==void 0&&o.ctrlKey!==r.ctrlKey||(r==null?void 0:r.altKey)!==void 0&&o.altKey!==r.altKey||(r==null?void 0:r.metaKey)!==void 0&&o.metaKey!==r.metaKey||a.current(o))};return e.current.addEventListener("keydown",i),()=>{var o;(o=e.current)==null||o.removeEventListener("keydown",i)}},[e,t,r])};function C_(e){const t=e+"CollectionProvider",[n,r]=ia(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=b=>{const{scope:h,children:m}=b,E=O.useRef(null),S=O.useRef(new Map).current;return y.jsx(a,{scope:h,itemMap:S,collectionRef:E,children:m})};o.displayName=t;const s=e+"CollectionSlot",l=vs(s),c=O.forwardRef((b,h)=>{const{scope:m,children:E}=b,S=i(s,m),T=kt(h,S.collectionRef);return y.jsx(l,{ref:T,children:E})});c.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",p=vs(u),f=O.forwardRef((b,h)=>{const{scope:m,children:E,...S}=b,T=O.useRef(null),A=kt(h,T),v=i(u,m);return O.useEffect(()=>(v.itemMap.set(T,{ref:T,...S}),()=>void v.itemMap.delete(T))),y.jsx(p,{[d]:"",ref:A,children:E})});f.displayName=u;function g(b){const h=i(e+"CollectionConsumer",b);return O.useCallback(()=>{const E=h.collectionRef.current;if(!E)return[];const S=Array.from(E.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((v,_)=>S.indexOf(v.ref.current)-S.indexOf(_.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},g,r]}var N_=I.createContext(void 0);function Mw(e){const t=I.useContext(N_);return e||t||"ltr"}var vo="rovingFocusGroup.onEntryFocus",__={bubbles:!1,cancelable:!0},ca="RovingFocusGroup",[Cs,Fw,O_]=C_(ca),[L_,Pw]=ia(ca,[O_]),[D_,M_]=L_(ca),Bw=I.forwardRef((e,t)=>y.jsx(Cs.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(Cs.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(F_,{...e,ref:t})})}));Bw.displayName=ca;var F_=I.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,p=I.useRef(null),f=kt(t,p),g=Mw(i),[b,h]=la({prop:o,defaultProp:s??null,onChange:l,caller:ca}),[m,E]=I.useState(!1),S=oa(c),T=Fw(n),A=I.useRef(!1),[v,_]=I.useState(0);return I.useEffect(()=>{const N=p.current;if(N)return N.addEventListener(vo,S),()=>N.removeEventListener(vo,S)},[S]),y.jsx(D_,{scope:n,orientation:r,dir:g,loop:a,currentTabStopId:b,onItemFocus:I.useCallback(N=>h(N),[h]),onItemShiftTab:I.useCallback(()=>E(!0),[]),onFocusableItemAdd:I.useCallback(()=>_(N=>N+1),[]),onFocusableItemRemove:I.useCallback(()=>_(N=>N-1),[]),children:y.jsx(lt.div,{tabIndex:m||v===0?-1:0,"data-orientation":r,...d,ref:f,style:{outline:"none",...e.style},onMouseDown:De(e.onMouseDown,()=>{A.current=!0}),onFocus:De(e.onFocus,N=>{const D=!A.current;if(N.target===N.currentTarget&&D&&!m){const R=new CustomEvent(vo,__);if(N.currentTarget.dispatchEvent(R),!R.defaultPrevented){const F=T().filter(H=>H.focusable),P=F.find(H=>H.active),U=F.find(H=>H.id===b),B=[P,U,...F].filter(Boolean).map(H=>H.ref.current);jw(B,u)}}A.current=!1}),onBlur:De(e.onBlur,()=>E(!1))})})}),Uw="RovingFocusGroupItem",zw=I.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:i,children:o,...s}=e,l=ew(),c=i||l,u=M_(Uw,n),d=u.currentTabStopId===c,p=Fw(n),{onFocusableItemAdd:f,onFocusableItemRemove:g,currentTabStopId:b}=u;return I.useEffect(()=>{if(r)return f(),()=>g()},[r,f,g]),y.jsx(Cs.ItemSlot,{scope:n,id:c,focusable:r,active:a,children:y.jsx(lt.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:De(e.onMouseDown,h=>{r?u.onItemFocus(c):h.preventDefault()}),onFocus:De(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:De(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const m=U_(h,u.orientation,u.dir);if(m!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let S=p().filter(T=>T.focusable).map(T=>T.ref.current);if(m==="last")S.reverse();else if(m==="prev"||m==="next"){m==="prev"&&S.reverse();const T=S.indexOf(h.currentTarget);S=u.loop?z_(S,T+1):S.slice(T+1)}setTimeout(()=>jw(S))}}),children:typeof o=="function"?o({isCurrentTabStop:d,hasTabStop:b!=null}):o})})});zw.displayName=Uw;var P_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function B_(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function U_(e,t,n){const r=B_(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return P_[r]}function jw(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function z_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var j_=Bw,G_=zw,Gw="Toggle",Vw=I.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:a,...i}=e,[o,s]=la({prop:n,onChange:a,defaultProp:r??!1,caller:Gw});return y.jsx(lt.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:De(e.onClick,()=>{e.disabled||s(!o)})})});Vw.displayName=Gw;var Zt="ToggleGroup",[Hw]=ia(Zt,[Pw]),$w=Pw(),jl=O.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const a=r;return y.jsx(V_,{...a,ref:t})}if(n==="multiple"){const a=r;return y.jsx(H_,{...a,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${Zt}\``)});jl.displayName=Zt;var[Ww,qw]=Hw(Zt),V_=O.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},...i}=e,[o,s]=la({prop:n,defaultProp:r??"",onChange:a,caller:Zt});return y.jsx(Ww,{scope:e.__scopeToggleGroup,type:"single",value:O.useMemo(()=>o?[o]:[],[o]),onItemActivate:s,onItemDeactivate:O.useCallback(()=>s(""),[s]),children:y.jsx(Yw,{...i,ref:t})})}),H_=O.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:a=()=>{},...i}=e,[o,s]=la({prop:n,defaultProp:r??[],onChange:a,caller:Zt}),l=O.useCallback(u=>s((d=[])=>[...d,u]),[s]),c=O.useCallback(u=>s((d=[])=>d.filter(p=>p!==u)),[s]);return y.jsx(Ww,{scope:e.__scopeToggleGroup,type:"multiple",value:o,onItemActivate:l,onItemDeactivate:c,children:y.jsx(Yw,{...i,ref:t})})});jl.displayName=Zt;var[$_,W_]=Hw(Zt),Yw=O.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:a=!0,orientation:i,dir:o,loop:s=!0,...l}=e,c=$w(n),u=Mw(o),d={role:"group",dir:u,...l};return y.jsx($_,{scope:n,rovingFocus:a,disabled:r,children:a?y.jsx(j_,{asChild:!0,...c,orientation:i,dir:u,loop:s,children:y.jsx(lt.div,{...d,ref:t})}):y.jsx(lt.div,{...d,ref:t})})}),li="ToggleGroupItem",Kw=O.forwardRef((e,t)=>{const n=qw(li,e.__scopeToggleGroup),r=W_(li,e.__scopeToggleGroup),a=$w(e.__scopeToggleGroup),i=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:i,disabled:o},l=O.useRef(null);return r.rovingFocus?y.jsx(G_,{asChild:!0,...a,focusable:!o,active:i,ref:l,children:y.jsx(bh,{...s,ref:t})}):y.jsx(bh,{...s,ref:t})});Kw.displayName=li;var bh=O.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...a}=e,i=qw(li,n),o={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s=i.type==="single"?o:void 0;return y.jsx(Vw,{...s,...a,ref:t,onPressedChange:l=>{l?i.onItemActivate(r):i.onItemDeactivate(r)}})}),q_=jl,Y_=Kw;const Xw=I.createContext({size:"default",variant:"default"});function K_({className:e,size:t="default",variant:n="default",children:r,ref:a,...i}){return y.jsx(q_,{ref:a,className:J("flex items-center gap-1",e),...i,children:y.jsx(Xw.Provider,{value:{size:t,variant:n},children:r})})}const xo={base:"inline-flex flex-1 items-center justify-center gap-1.5 rounded-full text-xs font-medium transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",variant:{default:"bg-transparent text-gray-500 hover:bg-gray-100 hover:text-gray-700 data-[state=on]:bg-black data-[state=on]:text-white",outline:"border border-neutral-500 bg-transparent text-neutral-500 hover:bg-telnyx-cream hover:text-gray-700 data-[state=on]:border-black data-[state=on]:bg-black data-[state=on]:text-white",telnyx:"border border-black bg-transparent text-black hover:bg-telnyx-cream hover:text-gray-700 data-[state=on]:border-black data-[state=on]:bg-black data-[state=on]:text-telnyx-green"},size:{default:"px-3 py-1.5",xs:"px-1.5 py-0.5",sm:"px-2.5 py-1",lg:"px-4 py-2"}};function X_({className:e,children:t,variant:n,size:r,ref:a,...i}){const o=I.useContext(Xw),s=n||o.variant||"default",l=r||o.size||"default";return y.jsx(Y_,{ref:a,className:J(xo.base,xo.variant[s],xo.size[l],e),...i,children:t})}const Z_=200;function Q_(){const[e,t]=O.useState(!1),n=O.useRef(null),r=Y(u=>u.endpoint),a=Y(u=>u.setEndpoint),i=Y(u=>u.botState),o=i==="loading"||i==="streaming";if(Fm.length<2)return null;const s=u=>{u&&a(u)},l=()=>{n.current=setTimeout(()=>{t(!0)},Z_)},c=()=>{n.current&&(clearTimeout(n.current),n.current=null),t(!1)};return y.jsx(oe.div,{className:J("relative z-0","border-2 border-black bg-telnyx-dark-cream","rounded-t-xl","px-1 pt-0.5 pb-3.5","transition-[padding]",o&&"hidden"),onHoverStart:l,onHoverEnd:c,animate:{y:14},transition:{duration:.2,ease:"easeOut"},children:y.jsx(K_,{type:"single",value:r,onValueChange:s,disabled:o,className:J("flex items-center justify-between","transition-[gap] duration-200 ease-out",e?"gap-1":"gap-0"),children:Fm.map((u,d)=>{const{Icon:p}=u;return y.jsxs(Bt,{children:[y.jsx(Ut,{asChild:!0,children:y.jsx("span",{className:J("flex flex-1",!e&&r!==u.endpoint&&"hidden"),children:y.jsxs(X_,{value:u.endpoint,"aria-label":u.ariaLabel,variant:"telnyx",className:J("flex-1 transition-all duration-200 ease-out",e?"px-2.5 py-1 text-xs":"px-2 py-0.5 text-[8px]"),children:[y.jsx(p,{className:J("transition-all duration-200",e?"size-3":"size-2")}),y.jsx("span",{children:u.label})]})})}),y.jsx(At,{side:"top",align:d===0?"start":"end",className:"p-0",children:y.jsxs("div",{className:"p-3 max-w-[220px] space-y-2",children:[y.jsx("p",{className:"font-semibold text-sm",children:u.tooltip.title}),y.jsx("ul",{className:"space-y-1",children:u.tooltip.capabilities.map(f=>y.jsxs("li",{className:"text-xs flex items-center gap-1.5",children:[y.jsx("span",{className:"text-green-400",children:"✓"}),y.jsx("span",{children:f})]},f))}),y.jsxs("div",{className:"text-xs flex items-center gap-1.5 text-gray-300",children:[y.jsx("span",{children:"⏱"}),y.jsx("span",{children:u.tooltip.timing})]})]})})]},u.endpoint)})})})}const J_=oe.create(qE),eO=oe.create(Dw),yh=e=>({open:t=>({opacity:e==="outline"?t?0:1:t?1:0,top:"50%",left:"50%",x:"calc(-50% + 1px)",y:"calc(-50% - 1px)",rotate:"-45deg"})}),tO=({question:e,handleSendMessage:t})=>{const n=Y(i=>i.botState),r=!!e,a=n==="loading"||n==="streaming";return y.jsxs(oe.button,{disabled:!r||a,className:J("bg-telnyx-light-green relative rounded-full p-2 size-8 overflow-clip","cursor-pointer disabled:cursor-default",r&&"shadow-md"),whileHover:r?{scale:.9}:{},whileTap:r?{scale:.7}:{},onClick:t,children:[y.jsx(J_,{className:"absolute size-4.5",initial:!1,variants:yh("outline"),custom:r,animate:"open"}),y.jsx(eO,{className:"absolute size-4.5",initial:!1,variants:yh("solid"),custom:r,animate:"open"})]})};function nO({message:e,handleInput:t,placeholders:n,handleSendMessage:r,ref:a}){const i=Y(m=>m.setCustomOpen),o=Y(m=>m.botState),s=o==="loading"||o==="streaming",[l,c]=O.useState(0),u=O.useRef(null),d=O.useRef(0),p=O.useRef(null),f=!!i,g=O.useCallback(m=>{p.current=m,typeof a=="function"?a(m):a&&(a.current=m)},[a]);hh(p,"Enter",m=>{var E;m.shiftKey||(m.preventDefault(),r(),(E=p.current)==null||E.blur())},{enabled:!s,shiftKey:!1}),hh(p,"Escape",()=>{var m;(m=p.current)==null||m.blur()});const b=O.useCallback(()=>{if(document.visibilityState!=="visible"&&u.current)return;const m=E=>{E-d.current>=3e3&&(c(S=>(S+1)%n.length),d.current=E),u.current=requestAnimationFrame(m)};d.current=performance.now(),u.current=requestAnimationFrame(m)},[n.length]),h=O.useCallback(()=>{document.visibilityState!=="visible"&&u.current?(cancelAnimationFrame(u.current),u.current=null):document.visibilityState==="visible"&&b()},[b]);return O.useEffect(()=>(b(),document.addEventListener("visibilitychange",h),()=>{u.current&&cancelAnimationFrame(u.current),document.removeEventListener("visibilitychange",h)}),[n,b,h]),y.jsxs("div",{className:"flex flex-col",children:[y.jsx(Q_,{}),y.jsx("div",{className:J("flex flex-col rounded-xl border-2","bg-widget-input-bg border-widget-input-border","dark:bg-widget-input-bg dark:border-widget-input-border","transition-all focus-within:ring-1 focus-within:ring-widget-text-primary focus-within:ring-offset-0.5 focus-within:bg-widget-hover-bg","dark:focus-within:ring-widget-text-primary dark:focus-within:bg-widget-hover-bg","relative z-10",s&&"opacity-50"),children:y.jsxs("div",{className:"flex",children:[y.jsxs("div",{className:"pl-4 pt-3 pb-2 flex-1 relative",children:[y.jsx("textarea",{id:"user-message-input",ref:g,value:e,onInput:t,disabled:s,"aria-disabled":s,className:J("w-full max-h-24 bg-transparent text-sm resize-none overflow-y-auto focus:outline-hidden","text-widget-text-primary dark:text-widget-text-primary","placeholder:text-widget-text-muted dark:placeholder:text-widget-text-muted","focus:placeholder:text-widget-text-primary dark:focus:placeholder:text-widget-text-primary","scrollbar scrollbar-w-1 scrollbar-thumb-rounded-full scrollbar-track-transparent","[&::-webkit-scrollbar-thumb]:bg-widget-bg-tertiary dark:[&::-webkit-scrollbar-thumb]:bg-widget-bg-tertiary"),rows:1}),y.jsx("div",{className:"absolute inset-0 flex items-center pointer-events-none",children:y.jsx(Rt,{mode:"wait",children:!e&&y.jsx(oe.p,{initial:{y:5,opacity:0},animate:{y:0,opacity:1},exit:{y:-15,opacity:0},transition:{duration:.3,ease:"linear"},className:"text-neutral-500 text-sm pl-4 text-left w-[calc(100%-32px)] truncate",children:n[l]},`current-placeholder-${l}`)})})]}),y.jsx("span",{className:"w-12 flex items-center justify-center mb-0",children:f&&y.jsx(tO,{question:e,handleSendMessage:r})})]})})]})}const rO={[Hn.HAS_NOT_BEEN_OPENED]:{y:0},[Hn.HAS_BEEN_OPENED]:{y:[0,-3,0],scale:[1,1.01,1],filter:["blur(0px)","blur(5px)","blur(0px)"],opacity:[1,.8,1]}};function aO({text:e,className:t}){const n=Y(r=>r.hasWidgetBeenOpened);return e.split("").map((r,a)=>y.jsx(oe.span,{initial:!1,animate:n,variants:rO,transition:{duration:.5,delay:a*.05},className:J("inline-block whitespace-pre font-sans tracking-tight",t),children:r},`${r}-${a}`))}const iO=()=>y.jsxs("div",{className:"flex justify-center text-xs pb-0.5 mt-2",children:[y.jsx(zl,{className:"h-4 w-4 mr-1"}),y.jsx(aO,{className:"translate-y-0.5 font-pp-formula",text:"Powered by Telnyx"})]}),oO={[je.INITIAL]:{y:0},[je.USER_HAS_TYPED]:{y:0,transition:{duration:.2}}};function sO({question:e,handleInput:t,handleSendMessage:n,ref:r}){const a=Y(f=>f.chatVisualState),i=Y(f=>f.onHelpAction),o=Y(f=>f.botState),s=Y(f=>f.getLastMessage()),l=(s==null?void 0:s.show_help_action)===!0,c=a===je.USER_HAS_TYPED,u=Y(f=>f.placeholders),d=o==="error"?["Error!","Please try again."]:u,p=l&&i!==null;return y.jsx("div",{className:J("mt-2 pt-1",c&&"mt-0 mb-2 pt-0"),children:y.jsxs(oe.div,{initial:"initial",animate:a,variants:oO,className:"space-y-1",children:[p&&y.jsx(lO,{onHelpAction:i}),y.jsx(nO,{ref:r,message:e,handleInput:t,handleSendMessage:n,placeholders:d}),!c&&y.jsx(iO,{})]})})}const lO=({onHelpAction:e})=>y.jsx("div",{className:"flex items-center justify-center mb-0.5",children:y.jsxs(oe.button,{initial:{scale:.5,opacity:0,y:10},animate:{scale:.75,opacity:1,y:0,transition:{duration:.2}},exit:{scale:.5,y:10,transition:{duration:.2}},whileHover:{scale:.8,transition:{duration:.2}},whileTap:{scale:.7,transition:{duration:.2}},className:J("flex items-center gap-1 rounded-full p-2","cursor-pointer","bg-widget-bg-primary text-widget-text-secondary","dark:bg-widget-bg-primary dark:text-widget-text-secondary"),onClick:e,children:[y.jsx("p",{className:"text-sm font-medium text-widget-text-secondary dark:text-widget-text-secondary",children:"Chat to support"}),y.jsx(b_,{className:"size-5 text-widget-text-secondary dark:text-widget-text-secondary"})]})}),cO=({children:e,className:t,containerClassName:n})=>{const r=gs(0),a=gs(0),i={default:`url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='16' height='16' fill='none'%3E%3Ccircle fill='%23404040' id='pattern-circle' cx='10' cy='10' r='2.5'%3E%3C/circle%3E%3C/svg%3E")`,hover:`url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='16' height='16' fill='none'%3E%3Ccircle fill='%2300E3AA' id='pattern-circle' cx='10' cy='10' r='2.5'%3E%3C/circle%3E%3C/svg%3E")`};function o({currentTarget:s,clientX:l,clientY:c}){if(!s)return;const{left:u,top:d}=s.getBoundingClientRect();r.set(l-u),a.set(c-d)}return y.jsxs("div",{className:J("group relative h-full w-full items-center bg-black",n),onMouseMove:o,children:[y.jsx("div",{className:"pointer-events-none absolute inset-0",style:{backgroundImage:i.default}}),y.jsx(oe.div,{className:"pointer-events-none absolute inset-0 opacity-0 transition duration-300 group-hover:opacity-100",style:{backgroundImage:i.hover,WebkitMaskImage:_m`
@@ -2693,7 +2731,7 @@ React keys must be passed directly to JSX without using spread:
2693
2731
  black 0%,
2694
2732
  transparent 100%
2695
2733
  )
2696
- `}}),y.jsx("div",{className:J("relative z-20",t),children:e})]})},Eh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,wh=LE,_i=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return wh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const p=Eh(u)||Eh(d);return a[c][p]}),s=n&&Object.entries(n).reduce((c,u)=>{let[d,p]=u;return p===void 0||(c[d]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:p,...f}=u;return Object.entries(f).every(g=>{let[b,h]=g;return Array.isArray(h)?h.includes({...i,...s}[b]):{...i,...s}[b]===h})?[...c,d,p]:c},[]);return wh(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},uO=oe.create(NI),dO=oe.create(OI),Sh={copied:{scale:1,opacity:1,transition:{duration:.15}},idle:{scale:.8,opacity:0,transition:{duration:.15}}},Gl=O.memo(({textToCopy:e,onClick:t,className:n,iconClassName:r,disabled:a})=>{const[i,o]=O.useState(!1),s=async()=>{try{await navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)}catch(c){console.error("Failed to copy text: ",c)}},l=()=>{s(),t&&t()};return y.jsxs(Bt,{children:[y.jsx(Ut,{onClick:l,className:n,disabled:a,children:y.jsx(Rt,{mode:"wait",initial:!1,children:i?y.jsx(uO,{initial:"idle",animate:"copied",exit:"idle",variants:Sh,className:J("size-4 text-telnyx-green",r)},"check"):y.jsx(dO,{initial:"idle",animate:"copied",exit:"idle",variants:Sh,className:J("size-4 text-stone-600 cursor-pointer hover:text-stone-900",r)},"copy")})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:i?"Copied!":"Copy this message"})})]})}),pO=({size:e=96,spokeWidth:t=6,animationDuration:n=4})=>y.jsxs("div",{className:"relative animate-rotate-loader flex items-center justify-center",style:{width:e,height:e,animationDuration:`${n}s`},children:[y.jsx("div",{className:`rounded-full z-10 animate-scale-loader bg-telnyx-light-green duration-[${n/2}s]`,style:{width:e/8,height:e/8}}),Array.from({length:12}).map((a,i)=>{const o=i*30;return y.jsx("div",{className:"absolute bg-stone-700 rounded-[30px] top-0 left-1/2 transform origin-bottom",style:{transform:`translateX(-50%) rotate(${o}deg)`,height:e/2,width:t}},i+o)})]}),fO=e=>{const t=new CSSStyleSheet;return t.replaceSync(e.replace("((-webkit-hyphens: none) and (not (margin-trim: inline)))","(not (margin-trim: inline))")),t},gO=(e,t)=>{if(!t)return;const n=fO(t);e.adoptedStyleSheets=[n]};function Vl({children:e,shadowRootInit:t,targetMountContainer:n,ref:r,...a}){const i=Y(d=>d.widgetStyleSheetText),[o,s]=O.useState(null),l=O.useCallback(d=>{if(!d||d.shadowRoot)return;const p=d.attachShadow({mode:"open",...t});i&&gO(p,i),s(p)},[i,t]),c=O.useCallback(d=>{l(d),typeof r=="function"?r(d):r&&(r.current=d)},[l,r]),u=y.jsx("div",{ref:c,...a,children:o&&Go.createPortal(e,o)});return n?Go.createPortal(u,n):u}const An=({isLoaded:e=!1,className:t,contentClassName:n,children:r,disableAnimation:a=!1,loadingDuration:i})=>{const[o,s]=O.useState(e);O.useEffect(()=>{if(i&&!e){const c=setTimeout(()=>{s(!0)},i);return()=>clearTimeout(c)}},[i,e]);const l=e||o;return y.jsx("div",{"data-loaded":l,className:J("group relative overflow-hidden bg-neutral-700/20","pointer-events-none",!a&&!l&&["before:opacity-100 before:absolute before:inset-0","before:-translate-x-full before:animate-shimmer","before:bg-gradient-to-r","before:from-transparent before:via-neutral-600/30","before:to-transparent"],"after:opacity-100 after:absolute after:inset-0 after:-z-10","after:bg-heroui-content3","data-[loaded=true]:pointer-events-auto data-[loaded=true]:overflow-visible","data-[loaded=true]:!bg-transparent data-[loaded=true]:before:opacity-0","data-[loaded=true]:before:-z-10 data-[loaded=true]:before:animate-none","data-[loaded=true]:after:opacity-0","transition-[background] !duration-300","h-4 rounded-lg",t),children:y.jsx("div",{className:J("opacity-0 group-data-[loaded=true]:opacity-100","transition-opacity motion-reduce:transition-none !duration-300",n),children:r})})},mO=({words:e,className:t,filter:n=!0,duration:r=.5})=>{const[a,i]=G0();let o=e.split(" ");O.useEffect(()=>{const l=setTimeout(()=>{a.current&&i("span",{opacity:1,filter:n?"blur(0px)":"none"},{duration:r||1,delay:Ek(.2)})},50);return()=>clearTimeout(l)},[e,a,i,r,n]);const s=()=>y.jsx(oe.div,{ref:a,children:o.map((l,c)=>y.jsxs(oe.span,{className:"text-gray-700/60 opacity-0",style:{filter:n?"blur(10px)":"none"},children:[l," "]},`${l}-${c}`))});return y.jsx("span",{className:J("text-gray-700 text-xs font-medium leading-snug tracking-wide",t),children:s()})},hO=({isLoaded:e=!1,progressMessage:t="Processing..."})=>y.jsxs("div",{className:"flex w-64 flex-col gap-2 relative",children:[y.jsx(An,{isLoaded:e}),y.jsx(An,{isLoaded:e}),y.jsxs("div",{className:"flex gap-1 items-center",children:[y.jsx(An,{className:"duration-100 flex-1",isLoaded:e}),y.jsx("div",{className:"bg-[#fefef8] px-3 z-10",children:y.jsx(mO,{words:t,className:"text-gray-700/60 font-medium"},t)}),y.jsx(An,{className:"duration-100 flex-1",isLoaded:e})]}),y.jsx(An,{isLoaded:e}),y.jsx(An,{isLoaded:e})]});function vh(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function bO(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const yO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,EO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wO={};function xh(e,t){return(wO.jsx?EO:yO).test(e)}const SO=/[ \t\n\f\r]/g;function vO(e){return typeof e=="object"?e.type==="text"?kh(e.value):!1:kh(e)}function kh(e){return e.replace(SO,"")===""}class ua{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ua.prototype.normal={};ua.prototype.property={};ua.prototype.space=void 0;function Zw(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new ua(n,r,t)}function Yr(e){return e.toLowerCase()}class Ye{constructor(t,n){this.attribute=n,this.property=t}}Ye.prototype.attribute="";Ye.prototype.booleanish=!1;Ye.prototype.boolean=!1;Ye.prototype.commaOrSpaceSeparated=!1;Ye.prototype.commaSeparated=!1;Ye.prototype.defined=!1;Ye.prototype.mustUseProperty=!1;Ye.prototype.number=!1;Ye.prototype.overloadedBoolean=!1;Ye.prototype.property="";Ye.prototype.spaceSeparated=!1;Ye.prototype.space=void 0;let xO=0;const ne=En(),ke=En(),Ns=En(),G=En(),ye=En(),jn=En(),Ze=En();function En(){return 2**++xO}const _s=Object.freeze(Object.defineProperty({__proto__:null,boolean:ne,booleanish:ke,commaOrSpaceSeparated:Ze,commaSeparated:jn,number:G,overloadedBoolean:Ns,spaceSeparated:ye},Symbol.toStringTag,{value:"Module"})),ko=Object.keys(_s);class Hl extends Ye{constructor(t,n,r,a){let i=-1;if(super(t,n),Th(this,"space",a),typeof r=="number")for(;++i<ko.length;){const o=ko[i];Th(this,ko[i],(r&_s[o])===_s[o])}}}Hl.prototype.defined=!0;function Th(e,t,n){n&&(e[t]=n)}function nr(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Hl(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Yr(r)]=r,n[Yr(i.attribute)]=r}return new ua(t,n,e.space)}const Qw=nr({properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:G,ariaColIndex:G,ariaColSpan:G,ariaControls:ye,ariaCurrent:null,ariaDescribedBy:ye,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:ye,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:ye,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ye,ariaLevel:G,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:ye,ariaPlaceholder:null,ariaPosInSet:G,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:ye,ariaRowCount:G,ariaRowIndex:G,ariaRowSpan:G,ariaSelected:ke,ariaSetSize:G,ariaSort:null,ariaValueMax:G,ariaValueMin:G,ariaValueNow:G,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Jw(e,t){return t in e?e[t]:t}function eS(e,t){return Jw(e,t.toLowerCase())}const kO=nr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jn,acceptCharset:ye,accessKey:ye,action:null,allow:null,allowFullScreen:ne,allowPaymentRequest:ne,allowUserMedia:ne,alt:null,as:null,async:ne,autoCapitalize:null,autoComplete:ye,autoFocus:ne,autoPlay:ne,blocking:ye,capture:null,charSet:null,checked:ne,cite:null,className:ye,cols:G,colSpan:null,content:null,contentEditable:ke,controls:ne,controlsList:ye,coords:G|jn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne,defer:ne,dir:null,dirName:null,disabled:ne,download:Ns,draggable:ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne,formTarget:null,headers:ye,height:G,hidden:Ns,high:G,href:null,hrefLang:null,htmlFor:ye,httpEquiv:ye,id:null,imageSizes:null,imageSrcSet:null,inert:ne,inputMode:null,integrity:null,is:null,isMap:ne,itemId:null,itemProp:ye,itemRef:ye,itemScope:ne,itemType:ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne,low:G,manifest:null,max:null,maxLength:G,media:null,method:null,min:null,minLength:G,multiple:ne,muted:ne,name:null,nonce:null,noModule:ne,noValidate:ne,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ne,optimum:G,pattern:null,ping:ye,placeholder:null,playsInline:ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne,referrerPolicy:null,rel:ye,required:ne,reversed:ne,rows:G,rowSpan:G,sandbox:ye,scope:null,scoped:ne,seamless:ne,selected:ne,shadowRootClonable:ne,shadowRootDelegatesFocus:ne,shadowRootMode:null,shape:null,size:G,sizes:null,slot:null,span:G,spellCheck:ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:G,step:null,style:null,tabIndex:G,target:null,title:null,translate:null,type:null,typeMustMatch:ne,useMap:null,value:ke,width:G,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ye,axis:null,background:null,bgColor:null,border:G,borderColor:null,bottomMargin:G,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ne,declare:ne,event:null,face:null,frame:null,frameBorder:null,hSpace:G,leftMargin:G,link:null,longDesc:null,lowSrc:null,marginHeight:G,marginWidth:G,noResize:ne,noHref:ne,noShade:ne,noWrap:ne,object:null,profile:null,prompt:null,rev:null,rightMargin:G,rules:null,scheme:null,scrolling:ke,standby:null,summary:null,text:null,topMargin:G,valueType:null,version:null,vAlign:null,vLink:null,vSpace:G,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ne,disableRemotePlayback:ne,prefix:null,property:null,results:G,security:null,unselectable:null},space:"html",transform:eS}),TO=nr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ze,accentHeight:G,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:G,amplitude:G,arabicForm:null,ascent:G,attributeName:null,attributeType:null,azimuth:G,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:G,by:null,calcMode:null,capHeight:G,className:ye,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:G,diffuseConstant:G,direction:null,display:null,dur:null,divisor:G,dominantBaseline:null,download:ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:G,enableBackground:null,end:null,event:null,exponent:G,externalResourcesRequired:null,fill:null,fillOpacity:G,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:jn,g2:jn,glyphName:jn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:G,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:G,horizOriginX:G,horizOriginY:G,id:null,ideographic:G,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:G,k:G,k1:G,k2:G,k3:G,k4:G,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:G,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:G,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:G,overlineThickness:G,paintOrder:null,panose1:null,path:null,pathLength:G,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ye,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:G,pointsAtY:G,pointsAtZ:G,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:G,specularExponent:G,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:G,strikethroughThickness:G,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:G,strokeOpacity:G,strokeWidth:null,style:null,surfaceScale:G,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:G,tableValues:null,target:null,targetX:G,targetY:G,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:G,underlineThickness:G,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:G,values:null,vAlphabetic:G,vMathematical:G,vectorEffect:null,vHanging:G,vIdeographic:G,version:null,vertAdvY:G,vertOriginX:G,vertOriginY:G,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:G,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Jw}),tS=nr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),nS=nr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:eS}),rS=nr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),AO={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},RO=/[A-Z]/g,Ah=/-[a-z]/g,IO=/^data[-\w.:]+$/i;function aS(e,t){const n=Yr(t);let r=t,a=Ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&IO.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Ah,NO);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Ah.test(i)){let o=i.replace(RO,CO);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Hl}return new a(r,t)}function CO(e){return"-"+e.toLowerCase()}function NO(e){return e.charAt(1).toUpperCase()}const iS=Zw([Qw,kO,tS,nS,rS],"html"),Oi=Zw([Qw,TO,tS,nS,rS],"svg");function Rh(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function _O(e){return e.join(" ").trim()}var Rn={},To,Ih;function OO(){if(Ih)return To;Ih=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
2734
+ `}}),y.jsx("div",{className:J("relative z-20",t),children:e})]})},Eh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,wh=LE,_i=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return wh(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(c=>{const u=n==null?void 0:n[c],d=i==null?void 0:i[c];if(u===null)return null;const p=Eh(u)||Eh(d);return a[c][p]}),s=n&&Object.entries(n).reduce((c,u)=>{let[d,p]=u;return p===void 0||(c[d]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:p,...f}=u;return Object.entries(f).every(g=>{let[b,h]=g;return Array.isArray(h)?h.includes({...i,...s}[b]):{...i,...s}[b]===h})?[...c,d,p]:c},[]);return wh(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},uO=oe.create(NI),dO=oe.create(OI),Sh={copied:{scale:1,opacity:1,transition:{duration:.15}},idle:{scale:.8,opacity:0,transition:{duration:.15}}},Gl=O.memo(({textToCopy:e,onClick:t,className:n,iconClassName:r,disabled:a})=>{const[i,o]=O.useState(!1),s=async()=>{try{await navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),2e3)}catch(c){console.error("Failed to copy text: ",c)}},l=()=>{s(),t&&t()};return y.jsxs(Bt,{children:[y.jsx(Ut,{onClick:l,className:n,disabled:a,children:y.jsx(Rt,{mode:"wait",initial:!1,children:i?y.jsx(uO,{initial:"idle",animate:"copied",exit:"idle",variants:Sh,className:J("size-4 text-telnyx-green",r)},"check"):y.jsx(dO,{initial:"idle",animate:"copied",exit:"idle",variants:Sh,className:J("size-4 text-stone-600 cursor-pointer hover:text-stone-900",r)},"copy")})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:i?"Copied!":"Copy this message"})})]})}),pO=({size:e=96,spokeWidth:t=6,animationDuration:n=4})=>y.jsxs("div",{className:"relative animate-rotate-loader flex items-center justify-center",style:{width:e,height:e,animationDuration:`${n}s`},children:[y.jsx("div",{className:`rounded-full z-10 animate-scale-loader bg-telnyx-light-green duration-[${n/2}s]`,style:{width:e/8,height:e/8}}),Array.from({length:12}).map((a,i)=>{const o=i*30;return y.jsx("div",{className:"absolute bg-stone-700 rounded-[30px] top-0 left-1/2 transform origin-bottom",style:{transform:`translateX(-50%) rotate(${o}deg)`,height:e/2,width:t}},i+o)})]}),fO=e=>{const t=new CSSStyleSheet;return t.replaceSync(e.replace("((-webkit-hyphens: none) and (not (margin-trim: inline)))","(not (margin-trim: inline))")),t},gO=(e,t)=>{if(!t)return;const n=fO(t);e.adoptedStyleSheets=[n]};function Vl({children:e,shadowRootInit:t,targetMountContainer:n,ref:r,...a}){const i=Y(d=>d.widgetStyleSheetText),[o,s]=O.useState(null),l=O.useCallback(d=>{if(!d||d.shadowRoot)return;const p=d.attachShadow({mode:"open",...t});i&&gO(p,i),s(p)},[i,t]),c=O.useCallback(d=>{l(d),typeof r=="function"?r(d):r&&(r.current=d)},[l,r]),u=y.jsx("div",{ref:c,...a,children:o&&Go.createPortal(e,o)});return n?Go.createPortal(u,n):u}const An=({isLoaded:e=!1,className:t,contentClassName:n,children:r,disableAnimation:a=!1,loadingDuration:i})=>{const[o,s]=O.useState(e);O.useEffect(()=>{if(i&&!e){const c=setTimeout(()=>{s(!0)},i);return()=>clearTimeout(c)}},[i,e]);const l=e||o;return y.jsx("div",{"data-loaded":l,className:J("group relative overflow-hidden bg-neutral-700/20","pointer-events-none",!a&&!l&&["before:opacity-100 before:absolute before:inset-0","before:-translate-x-full before:animate-shimmer","before:bg-gradient-to-r","before:from-transparent before:via-neutral-600/30","before:to-transparent"],"after:opacity-100 after:absolute after:inset-0 after:-z-10","after:bg-heroui-content3","data-[loaded=true]:pointer-events-auto data-[loaded=true]:overflow-visible","data-[loaded=true]:!bg-transparent data-[loaded=true]:before:opacity-0","data-[loaded=true]:before:-z-10 data-[loaded=true]:before:animate-none","data-[loaded=true]:after:opacity-0","transition-[background] !duration-300","h-4 rounded-lg",t),children:y.jsx("div",{className:J("opacity-0 group-data-[loaded=true]:opacity-100","transition-opacity motion-reduce:transition-none !duration-300",n),children:r})})},mO=({words:e,className:t,filter:n=!0,duration:r=.5})=>{const[a,i]=G0();let o=e.split(" ");O.useEffect(()=>{const l=setTimeout(()=>{a.current&&i("span",{opacity:1,filter:n?"blur(0px)":"none"},{duration:r||1,delay:Ek(.2)})},50);return()=>clearTimeout(l)},[e,a,i,r,n]);const s=()=>y.jsx(oe.div,{ref:a,children:o.map((l,c)=>y.jsxs(oe.span,{className:"text-gray-700/60 opacity-0",style:{filter:n?"blur(10px)":"none"},children:[l," "]},`${l}-${c}`))});return y.jsx("span",{className:J("text-gray-700 text-xs font-medium leading-snug tracking-wide",t),children:s()})},hO=({isLoaded:e=!1,progressMessage:t="Processing..."})=>y.jsxs("div",{className:"flex w-64 flex-col gap-2 relative",children:[y.jsx(An,{isLoaded:e}),y.jsx(An,{isLoaded:e}),y.jsxs("div",{className:"flex gap-1 items-center",children:[y.jsx(An,{className:"duration-100 flex-1",isLoaded:e}),y.jsxs("div",{className:"relative z-10 overflow-hidden rounded-lg bg-neutral-700/20 p-px",children:[!e&&y.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -translate-x-full animate-shimmer bg-gradient-to-r from-transparent via-neutral-600/30 to-transparent motion-reduce:animate-none"}),y.jsx("div",{className:"relative rounded-[7px] bg-widget-bg-tertiary px-3 py-1",children:y.jsx(mO,{words:t,className:"text-gray-700/60 font-medium"},t)})]}),y.jsx(An,{className:"duration-100 flex-1",isLoaded:e})]}),y.jsx(An,{isLoaded:e}),y.jsx(An,{isLoaded:e})]});function vh(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function bO(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const yO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,EO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wO={};function xh(e,t){return(wO.jsx?EO:yO).test(e)}const SO=/[ \t\n\f\r]/g;function vO(e){return typeof e=="object"?e.type==="text"?kh(e.value):!1:kh(e)}function kh(e){return e.replace(SO,"")===""}class ua{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ua.prototype.normal={};ua.prototype.property={};ua.prototype.space=void 0;function Zw(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new ua(n,r,t)}function Yr(e){return e.toLowerCase()}class Ye{constructor(t,n){this.attribute=n,this.property=t}}Ye.prototype.attribute="";Ye.prototype.booleanish=!1;Ye.prototype.boolean=!1;Ye.prototype.commaOrSpaceSeparated=!1;Ye.prototype.commaSeparated=!1;Ye.prototype.defined=!1;Ye.prototype.mustUseProperty=!1;Ye.prototype.number=!1;Ye.prototype.overloadedBoolean=!1;Ye.prototype.property="";Ye.prototype.spaceSeparated=!1;Ye.prototype.space=void 0;let xO=0;const ne=En(),ke=En(),Ns=En(),G=En(),ye=En(),jn=En(),Ze=En();function En(){return 2**++xO}const _s=Object.freeze(Object.defineProperty({__proto__:null,boolean:ne,booleanish:ke,commaOrSpaceSeparated:Ze,commaSeparated:jn,number:G,overloadedBoolean:Ns,spaceSeparated:ye},Symbol.toStringTag,{value:"Module"})),ko=Object.keys(_s);class Hl extends Ye{constructor(t,n,r,a){let i=-1;if(super(t,n),Th(this,"space",a),typeof r=="number")for(;++i<ko.length;){const o=ko[i];Th(this,ko[i],(r&_s[o])===_s[o])}}}Hl.prototype.defined=!0;function Th(e,t,n){n&&(e[t]=n)}function nr(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new Hl(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Yr(r)]=r,n[Yr(i.attribute)]=r}return new ua(t,n,e.space)}const Qw=nr({properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:G,ariaColIndex:G,ariaColSpan:G,ariaControls:ye,ariaCurrent:null,ariaDescribedBy:ye,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:ye,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:ye,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ye,ariaLevel:G,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:ye,ariaPlaceholder:null,ariaPosInSet:G,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:ye,ariaRowCount:G,ariaRowIndex:G,ariaRowSpan:G,ariaSelected:ke,ariaSetSize:G,ariaSort:null,ariaValueMax:G,ariaValueMin:G,ariaValueNow:G,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Jw(e,t){return t in e?e[t]:t}function eS(e,t){return Jw(e,t.toLowerCase())}const kO=nr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jn,acceptCharset:ye,accessKey:ye,action:null,allow:null,allowFullScreen:ne,allowPaymentRequest:ne,allowUserMedia:ne,alt:null,as:null,async:ne,autoCapitalize:null,autoComplete:ye,autoFocus:ne,autoPlay:ne,blocking:ye,capture:null,charSet:null,checked:ne,cite:null,className:ye,cols:G,colSpan:null,content:null,contentEditable:ke,controls:ne,controlsList:ye,coords:G|jn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne,defer:ne,dir:null,dirName:null,disabled:ne,download:Ns,draggable:ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne,formTarget:null,headers:ye,height:G,hidden:Ns,high:G,href:null,hrefLang:null,htmlFor:ye,httpEquiv:ye,id:null,imageSizes:null,imageSrcSet:null,inert:ne,inputMode:null,integrity:null,is:null,isMap:ne,itemId:null,itemProp:ye,itemRef:ye,itemScope:ne,itemType:ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne,low:G,manifest:null,max:null,maxLength:G,media:null,method:null,min:null,minLength:G,multiple:ne,muted:ne,name:null,nonce:null,noModule:ne,noValidate:ne,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ne,optimum:G,pattern:null,ping:ye,placeholder:null,playsInline:ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne,referrerPolicy:null,rel:ye,required:ne,reversed:ne,rows:G,rowSpan:G,sandbox:ye,scope:null,scoped:ne,seamless:ne,selected:ne,shadowRootClonable:ne,shadowRootDelegatesFocus:ne,shadowRootMode:null,shape:null,size:G,sizes:null,slot:null,span:G,spellCheck:ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:G,step:null,style:null,tabIndex:G,target:null,title:null,translate:null,type:null,typeMustMatch:ne,useMap:null,value:ke,width:G,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ye,axis:null,background:null,bgColor:null,border:G,borderColor:null,bottomMargin:G,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ne,declare:ne,event:null,face:null,frame:null,frameBorder:null,hSpace:G,leftMargin:G,link:null,longDesc:null,lowSrc:null,marginHeight:G,marginWidth:G,noResize:ne,noHref:ne,noShade:ne,noWrap:ne,object:null,profile:null,prompt:null,rev:null,rightMargin:G,rules:null,scheme:null,scrolling:ke,standby:null,summary:null,text:null,topMargin:G,valueType:null,version:null,vAlign:null,vLink:null,vSpace:G,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ne,disableRemotePlayback:ne,prefix:null,property:null,results:G,security:null,unselectable:null},space:"html",transform:eS}),TO=nr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ze,accentHeight:G,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:G,amplitude:G,arabicForm:null,ascent:G,attributeName:null,attributeType:null,azimuth:G,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:G,by:null,calcMode:null,capHeight:G,className:ye,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:G,diffuseConstant:G,direction:null,display:null,dur:null,divisor:G,dominantBaseline:null,download:ne,dx:null,dy:null,edgeMode:null,editable:null,elevation:G,enableBackground:null,end:null,event:null,exponent:G,externalResourcesRequired:null,fill:null,fillOpacity:G,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:jn,g2:jn,glyphName:jn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:G,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:G,horizOriginX:G,horizOriginY:G,id:null,ideographic:G,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:G,k:G,k1:G,k2:G,k3:G,k4:G,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:G,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:G,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:G,overlineThickness:G,paintOrder:null,panose1:null,path:null,pathLength:G,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ye,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:G,pointsAtY:G,pointsAtZ:G,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:G,specularExponent:G,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:G,strikethroughThickness:G,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:G,strokeOpacity:G,strokeWidth:null,style:null,surfaceScale:G,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:G,tableValues:null,target:null,targetX:G,targetY:G,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:G,underlineThickness:G,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:G,values:null,vAlphabetic:G,vMathematical:G,vectorEffect:null,vHanging:G,vIdeographic:G,version:null,vertAdvY:G,vertOriginX:G,vertOriginY:G,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:G,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Jw}),tS=nr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),nS=nr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:eS}),rS=nr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),AO={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},RO=/[A-Z]/g,Ah=/-[a-z]/g,IO=/^data[-\w.:]+$/i;function aS(e,t){const n=Yr(t);let r=t,a=Ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&IO.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Ah,NO);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Ah.test(i)){let o=i.replace(RO,CO);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Hl}return new a(r,t)}function CO(e){return"-"+e.toLowerCase()}function NO(e){return e.charAt(1).toUpperCase()}const iS=Zw([Qw,kO,tS,nS,rS],"html"),Oi=Zw([Qw,TO,tS,nS,rS],"svg");function Rh(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function _O(e){return e.join(" ").trim()}var Rn={},To,Ih;function OO(){if(Ih)return To;Ih=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
2697
2735
  `,c="/",u="*",d="",p="comment",f="declaration";function g(h,m){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];m=m||{};var E=1,S=1;function T(z){var B=z.match(t);B&&(E+=B.length);var H=z.lastIndexOf(l);S=~H?z.length-H:S+z.length}function A(){var z={line:E,column:S};return function(B){return B.position=new v(z),D(),B}}function v(z){this.start=z,this.end={line:E,column:S},this.source=m.source}v.prototype.content=h;function _(z){var B=new Error(m.source+":"+E+":"+S+": "+z);if(B.reason=z,B.filename=m.source,B.line=E,B.column=S,B.source=h,!m.silent)throw B}function N(z){var B=z.exec(h);if(B){var H=B[0];return T(H),h=h.slice(H.length),B}}function D(){N(n)}function R(z){var B;for(z=z||[];B=F();)B!==!1&&z.push(B);return z}function F(){var z=A();if(!(c!=h.charAt(0)||u!=h.charAt(1))){for(var B=2;d!=h.charAt(B)&&(u!=h.charAt(B)||c!=h.charAt(B+1));)++B;if(B+=2,d===h.charAt(B-1))return _("End of comment missing");var H=h.slice(2,B-2);return S+=2,T(H),h=h.slice(B),S+=2,z({type:p,comment:H})}}function P(){var z=A(),B=N(r);if(B){if(F(),!N(a))return _("property missing ':'");var H=N(i),j=z({type:f,property:b(B[0].replace(e,d)),value:H?b(H[0].replace(e,d)):d});return N(o),j}}function U(){var z=[];R(z);for(var B;B=P();)B!==!1&&(z.push(B),R(z));return z}return D(),U()}function b(h){return h?h.replace(s,d):d}return To=g,To}var Ch;function LO(){if(Ch)return Rn;Ch=1;var e=Rn&&Rn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.default=n;const t=e(OO());function n(r,a){let i=null;if(!r||typeof r!="string")return i;const o=(0,t.default)(r),s=typeof a=="function";return o.forEach(l=>{if(l.type!=="declaration")return;const{property:c,value:u}=l;s?a(c,u,l):u&&(i=i||{},i[c]=u)}),i}return Rn}var Sr={},Nh;function DO(){if(Nh)return Sr;Nh=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(c){return!c||n.test(c)||e.test(c)},o=function(c,u){return u.toUpperCase()},s=function(c,u){return"".concat(u,"-")},l=function(c,u){return u===void 0&&(u={}),i(c)?c:(c=c.toLowerCase(),u.reactCompat?c=c.replace(a,s):c=c.replace(r,s),c.replace(t,o))};return Sr.camelCase=l,Sr}var vr,_h;function MO(){if(_h)return vr;_h=1;var e=vr&&vr.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(LO()),n=DO();function r(a,i){var o={};return!a||typeof a!="string"||(0,t.default)(a,function(s,l){s&&l&&(o[(0,n.camelCase)(s,i)]=l)}),o}return r.default=r,vr=r,vr}var FO=MO();const PO=Nb(FO),oS=sS("end"),$l=sS("start");function sS(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function BO(e){const t=$l(e),n=oS(e);if(t&&n)return{start:t,end:n}}function _r(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Oh(e.position):"start"in e||"end"in e?Oh(e):"line"in e||"column"in e?Os(e):""}function Os(e){return Lh(e&&e.line)+":"+Lh(e&&e.column)}function Oh(e){return Os(e&&e.start)+"-"+Os(e&&e.end)}function Lh(e){return e&&typeof e=="number"?e:1}class Fe extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=s?s.line:void 0,this.name=_r(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Fe.prototype.file="";Fe.prototype.name="";Fe.prototype.reason="";Fe.prototype.message="";Fe.prototype.stack="";Fe.prototype.column=void 0;Fe.prototype.line=void 0;Fe.prototype.ancestors=void 0;Fe.prototype.cause=void 0;Fe.prototype.fatal=void 0;Fe.prototype.place=void 0;Fe.prototype.ruleId=void 0;Fe.prototype.source=void 0;const Wl={}.hasOwnProperty,UO=new Map,zO=/[A-Z]/g,jO=new Set(["table","tbody","thead","tfoot","tr"]),GO=new Set(["td","th"]),lS="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function VO(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ZO(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=XO(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Oi:iS,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=cS(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function cS(e,t,n){if(t.type==="element")return HO(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return $O(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return qO(e,t,n);if(t.type==="mdxjsEsm")return WO(e,t);if(t.type==="root")return YO(e,t,n);if(t.type==="text")return KO(e,t)}function HO(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Oi,e.schema=a),e.ancestors.push(t);const i=dS(e,t.tagName,!1),o=QO(e,t);let s=Yl(e,t);return jO.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!vO(l):!0})),uS(e,o,i,t),ql(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function $O(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Kr(e,t.position)}function WO(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Kr(e,t.position)}function qO(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Oi,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:dS(e,t.name,!0),o=JO(e,t),s=Yl(e,t);return uS(e,o,i,t),ql(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function YO(e,t,n){const r={};return ql(r,Yl(e,t)),e.create(t,e.Fragment,r,n)}function KO(e,t){return t.value}function uS(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ql(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function XO(e,t,n){return r;function r(a,i,o,s){const c=Array.isArray(o.children)?n:t;return s?c(i,o,s):c(i,o)}}function ZO(e,t){return n;function n(r,a,i,o){const s=Array.isArray(i.children),l=$l(r);return t(a,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function QO(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&Wl.call(t.properties,a)){const i=e1(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&GO.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function JO(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Kr(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else Kr(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Yl(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:UO;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=a.get(l)||0;o=l+"-"+c,a.set(l,c+1)}}const s=cS(e,i,o);s!==void 0&&n.push(s)}return n}function e1(e,t,n){const r=aS(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?bO(n):_O(n)),r.property==="style"){let a=typeof n=="object"?n:t1(e,String(n));return e.stylePropertyNameCase==="css"&&(a=n1(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?AO[r.property]||r.property:r.attribute,n]}}function t1(e,t){try{return PO(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new Fe("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=lS+"#cannot-parse-style-attribute",a}}function dS(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,o;for(;++i<a.length;){const s=xh(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=o}else r=xh(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return Wl.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Kr(e)}function Kr(e,t){const n=new Fe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=lS+"#cannot-handle-mdx-estrees-without-createevaluater",n}function n1(e){const t={};let n;for(n in e)Wl.call(e,n)&&(t[r1(n)]=e[n]);return t}function r1(e){let t=e.replace(zO,a1);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function a1(e){return"-"+e.toLowerCase()}const Ao={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},i1={};function Kl(e,t){const n=i1,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return pS(e,r,a)}function pS(e,t,n){if(o1(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Dh(e.children,t,n)}return Array.isArray(e)?Dh(e,t,n):""}function Dh(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=pS(e[a],t,n);return r.join("")}function o1(e){return!!(e&&typeof e=="object")}const Mh=document.createElement("i");function Xr(e){const t="&"+e+";";Mh.innerHTML=t;const n=Mh.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function et(e,t,n,r){const a=e.length;let i=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function at(e,t){return e.length>0?(et(e,e.length,0,t),e):t}const Fh={}.hasOwnProperty;function fS(e){const t={};let n=-1;for(;++n<e.length;)s1(t,e[n]);return t}function s1(e,t){let n;for(n in t){const a=(Fh.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Fh.call(a,o)||(a[o]=[]);const s=i[o];l1(a[o],Array.isArray(s)?s:s?[s]:[])}}}function l1(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);et(e,0,0,r)}function gS(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function mt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ue=Qt(/[A-Za-z]/),Me=Qt(/[\dA-Za-z]/),c1=Qt(/[#-'*+\--9=?A-Z^-~]/);function ci(e){return e!==null&&(e<32||e===127)}const Ls=Qt(/\d/),u1=Qt(/[\dA-Fa-f]/),d1=Qt(/[!-/:-@[-`{-~]/);function Q(e){return e!==null&&e<-2}function he(e){return e!==null&&(e<0||e===32)}function ae(e){return e===-2||e===-1||e===32}const Li=Qt(new RegExp("\\p{P}|\\p{S}","u")),yn=Qt(/\s/);function Qt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function rr(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&Me(e.charCodeAt(n+1))&&Me(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function de(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return ae(l)?(e.enter(n),s(l)):t(l)}function s(l){return ae(l)&&i++<a?(e.consume(l),s):(e.exit(n),t(l))}}const p1={tokenize:f1};function f1(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),de(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return Q(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const g1={tokenize:m1},Ph={tokenize:h1};function m1(e){const t=this,n=[];let r=0,a,i,o;return s;function s(S){if(r<n.length){const T=n[r];return t.containerState=T[1],e.attempt(T[0].continuation,l,c)(S)}return c(S)}function l(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&E();const T=t.events.length;let A=T,v;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){v=t.events[A][1].end;break}m(r);let _=T;for(;_<t.events.length;)t.events[_][1].end={...v},_++;return et(t.events,A+1,0,t.events.slice(T)),t.events.length=_,c(S)}return s(S)}function c(S){if(r===n.length){if(!a)return p(S);if(a.currentConstruct&&a.currentConstruct.concrete)return g(S);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ph,u,d)(S)}function u(S){return a&&E(),m(r),p(S)}function d(S){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,g(S)}function p(S){return t.containerState={},e.attempt(Ph,f,g)(S)}function f(S){return r++,n.push([t.currentConstruct,t.containerState]),p(S)}function g(S){if(S===null){a&&E(),m(0),e.consume(S);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),b(S)}function b(S){if(S===null){h(e.exit("chunkFlow"),!0),m(0),e.consume(S);return}return Q(S)?(e.consume(S),h(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(S),b)}function h(S,T){const A=t.sliceStream(S);if(T&&A.push(null),S.previous=i,i&&(i.next=S),i=S,a.defineSkip(S.start),a.write(A),t.parser.lazy[S.start.line]){let v=a.events.length;for(;v--;)if(a.events[v][1].start.offset<o&&(!a.events[v][1].end||a.events[v][1].end.offset>o))return;const _=t.events.length;let N=_,D,R;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(D){R=t.events[N][1].end;break}D=!0}for(m(r),v=_;v<t.events.length;)t.events[v][1].end={...R},v++;et(t.events,N+1,0,t.events.slice(_)),t.events.length=v}}function m(S){let T=n.length;for(;T-- >S;){const A=n[T];t.containerState=A[1],A[0].exit.call(t,e)}n.length=S}function E(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function h1(e,t,n){return de(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function qn(e){if(e===null||he(e)||yn(e))return 1;if(Li(e))return 2}function Di(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Ds={name:"attention",resolveAll:b1,tokenize:y1};function b1(e,t){let n=-1,r,a,i,o,s,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};Bh(d,-l),Bh(p,l),o={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=at(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=at(c,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=at(c,Di(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=at(c,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=at(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,et(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function y1(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=qn(r);let i;return o;function o(l){return i=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===i)return e.consume(l),s;const c=e.exit("attentionSequence"),u=qn(l),d=!u||u===2&&a||n.includes(l),p=!a||a===2&&u||n.includes(r);return c._open=!!(i===42?d:d&&(a||!p)),c._close=!!(i===42?p:p&&(u||!d)),t(l)}}function Bh(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const E1={name:"autolink",tokenize:w1};function w1(e,t,n){let r=0;return a;function a(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(f){return Ue(f)?(e.consume(f),o):f===64?n(f):c(f)}function o(f){return f===43||f===45||f===46||Me(f)?(r=1,s(f)):c(f)}function s(f){return f===58?(e.consume(f),r=0,l):(f===43||f===45||f===46||Me(f))&&r++<32?(e.consume(f),s):(r=0,c(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||ci(f)?n(f):(e.consume(f),l)}function c(f){return f===64?(e.consume(f),u):c1(f)?(e.consume(f),c):n(f)}function u(f){return Me(f)?d(f):n(f)}function d(f){return f===46?(e.consume(f),r=0,u):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||Me(f))&&r++<63){const g=f===45?p:d;return e.consume(f),g}return n(f)}}const da={partial:!0,tokenize:S1};function S1(e,t,n){return r;function r(i){return ae(i)?de(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||Q(i)?t(i):n(i)}}const mS={continuation:{tokenize:x1},exit:k1,name:"blockQuote",tokenize:v1};function v1(e,t,n){const r=this;return a;function a(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return ae(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function x1(e,t,n){const r=this;return a;function a(o){return ae(o)?de(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(mS,t,n)(o)}}function k1(e){e.exit("blockQuote")}const hS={name:"characterEscape",tokenize:T1};function T1(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return d1(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const bS={name:"characterReference",tokenize:A1};function A1(e,t,n){const r=this;let a=0,i,o;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,o=Me,u(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=u1,u):(e.enter("characterReferenceValue"),i=7,o=Ls,u(d))}function u(d){if(d===59&&a){const p=e.exit("characterReferenceValue");return o===Me&&!Xr(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(d)&&a++<i?(e.consume(d),u):n(d)}}const Uh={partial:!0,tokenize:I1},zh={concrete:!0,name:"codeFenced",tokenize:R1};function R1(e,t,n){const r=this,a={partial:!0,tokenize:A};let i=0,o=0,s;return l;function l(v){return c(v)}function c(v){const _=r.events[r.events.length-1];return i=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,s=v,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(v)}function u(v){return v===s?(o++,e.consume(v),u):o<3?n(v):(e.exit("codeFencedFenceSequence"),ae(v)?de(e,d,"whitespace")(v):d(v))}function d(v){return v===null||Q(v)?(e.exit("codeFencedFence"),r.interrupt?t(v):e.check(Uh,b,T)(v)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===null||Q(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(v)):ae(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),de(e,f,"whitespace")(v)):v===96&&v===s?n(v):(e.consume(v),p)}function f(v){return v===null||Q(v)?d(v):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||Q(v)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(v)):v===96&&v===s?n(v):(e.consume(v),g)}function b(v){return e.attempt(a,T,h)(v)}function h(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),m}function m(v){return i>0&&ae(v)?de(e,E,"linePrefix",i+1)(v):E(v)}function E(v){return v===null||Q(v)?e.check(Uh,b,T)(v):(e.enter("codeFlowValue"),S(v))}function S(v){return v===null||Q(v)?(e.exit("codeFlowValue"),E(v)):(e.consume(v),S)}function T(v){return e.exit("codeFenced"),t(v)}function A(v,_,N){let D=0;return R;function R(B){return v.enter("lineEnding"),v.consume(B),v.exit("lineEnding"),F}function F(B){return v.enter("codeFencedFence"),ae(B)?de(v,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):P(B)}function P(B){return B===s?(v.enter("codeFencedFenceSequence"),U(B)):N(B)}function U(B){return B===s?(D++,v.consume(B),U):D>=o?(v.exit("codeFencedFenceSequence"),ae(B)?de(v,z,"whitespace")(B):z(B)):N(B)}function z(B){return B===null||Q(B)?(v.exit("codeFencedFence"),_(B)):N(B)}}}function I1(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Ro={name:"codeIndented",tokenize:N1},C1={partial:!0,tokenize:_1};function N1(e,t,n){const r=this;return a;function a(c){return e.enter("codeIndented"),de(e,i,"linePrefix",5)(c)}function i(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?o(c):n(c)}function o(c){return c===null?l(c):Q(c)?e.attempt(C1,o,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||Q(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function _1(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):Q(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):de(e,i,"linePrefix",5)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):Q(o)?a(o):n(o)}}const O1={name:"codeText",previous:D1,resolve:L1,tokenize:M1};function L1(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function D1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function M1(e,t,n){let r=0,a,i;return o;function o(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(i=e.enter("codeTextSequence"),a=0,u(d)):Q(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||Q(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function u(d){return d===96?(e.consume(d),a++,u):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}class F1{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&xr(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),xr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),xr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);xr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);xr(this.left,n.reverse())}}}function xr(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function yS(e){const t={};let n=-1,r,a,i,o,s,l,c;const u=new F1(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,P1(u,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(o=u.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(u.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(r[1].end={...u.get(a)[1].start},s=u.slice(a,n),s.unshift(r),u.splice(a,n-a+1,s))}}return et(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function P1(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],c={};let u,d,p=-1,f=n,g=0,b=0;const h=[b];for(;f;){for(;e.get(++a)[1]!==f;);i.push(a),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(b=p+1,h.push(b),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):h.pop(),p=h.length;p--;){const m=s.slice(h[p],h[p+1]),E=i.pop();l.push([E,E+m.length-1]),e.splice(E,2,m)}for(l.reverse(),p=-1;++p<l.length;)c[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return c}const B1={resolve:z1,tokenize:j1},U1={partial:!0,tokenize:G1};function z1(e){return yS(e),e}function j1(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?i(s):Q(s)?e.check(U1,o,i)(s):(e.consume(s),a)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function G1(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),de(e,i,"linePrefix")}function i(o){if(o===null||Q(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function ES(e,t,n,r,a,i,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return d;function d(m){return m===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(m),e.exit(i),p):m===null||m===32||m===41||ci(m)?n(m):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(m))}function p(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===62?(e.exit("chunkString"),e.exit(s),p(m)):m===null||m===60||Q(m)?n(m):(e.consume(m),m===92?g:f)}function g(m){return m===60||m===62||m===92?(e.consume(m),f):f(m)}function b(m){return!u&&(m===null||m===41||he(m))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(m)):u<c&&m===40?(e.consume(m),u++,b):m===41?(e.consume(m),u--,b):m===null||m===32||m===40||ci(m)?n(m):(e.consume(m),m===92?h:b)}function h(m){return m===40||m===41||m===92?(e.consume(m),b):b(m)}}function wS(e,t,n,r,a,i){const o=this;let s=0,l;return c;function c(f){return e.enter(r),e.enter(a),e.consume(f),e.exit(a),e.enter(i),u}function u(f){return s>999||f===null||f===91||f===93&&!l||f===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(f):f===93?(e.exit(i),e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):Q(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||Q(f)||s++>999?(e.exit("chunkString"),u(f)):(e.consume(f),l||(l=!ae(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),s++,d):d(f)}}function SS(e,t,n,r,a,i){let o;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(a),e.consume(p),e.exit(a),o=p===40?41:p,l):n(p)}function l(p){return p===o?(e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):(e.enter(i),c(p))}function c(p){return p===o?(e.exit(i),l(o)):p===null?n(p):Q(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),de(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===o||p===null||Q(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?d:u)}function d(p){return p===o||p===92?(e.consume(p),u):u(p)}}function Or(e,t){let n;return r;function r(a){return Q(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):ae(a)?de(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const V1={name:"definition",tokenize:$1},H1={partial:!0,tokenize:W1};function $1(e,t,n){const r=this;let a;return i;function i(f){return e.enter("definition"),o(f)}function o(f){return wS.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function s(f){return a=mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):n(f)}function l(f){return he(f)?Or(e,c)(f):c(f)}function c(f){return ES(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function u(f){return e.attempt(H1,d,d)(f)}function d(f){return ae(f)?de(e,p,"whitespace")(f):p(f)}function p(f){return f===null||Q(f)?(e.exit("definition"),r.parser.defined.push(a),t(f)):n(f)}}function W1(e,t,n){return r;function r(s){return he(s)?Or(e,a)(s):n(s)}function a(s){return SS(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return ae(s)?de(e,o,"whitespace")(s):o(s)}function o(s){return s===null||Q(s)?t(s):n(s)}}const q1={name:"hardBreakEscape",tokenize:Y1};function Y1(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Q(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const K1={name:"headingAtx",resolve:X1,tokenize:Z1};function X1(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},et(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function Z1(e,t,n){let r=0;return a;function a(u){return e.enter("atxHeading"),i(u)}function i(u){return e.enter("atxHeadingSequence"),o(u)}function o(u){return u===35&&r++<6?(e.consume(u),o):u===null||he(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||Q(u)?(e.exit("atxHeading"),t(u)):ae(u)?de(e,s,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),s(u))}function c(u){return u===null||u===35||he(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),c)}}const Q1=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],jh=["pre","script","style","textarea"],J1={concrete:!0,name:"htmlFlow",resolveTo:nL,tokenize:rL},eL={partial:!0,tokenize:iL},tL={partial:!0,tokenize:aL};function nL(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function rL(e,t,n){const r=this;let a,i,o,s,l;return c;function c(k){return u(k)}function u(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),d}function d(k){return k===33?(e.consume(k),p):k===47?(e.consume(k),i=!0,b):k===63?(e.consume(k),a=3,r.interrupt?t:x):Ue(k)?(e.consume(k),o=String.fromCharCode(k),h):n(k)}function p(k){return k===45?(e.consume(k),a=2,f):k===91?(e.consume(k),a=5,s=0,g):Ue(k)?(e.consume(k),a=4,r.interrupt?t:x):n(k)}function f(k){return k===45?(e.consume(k),r.interrupt?t:x):n(k)}function g(k){const Z="CDATA[";return k===Z.charCodeAt(s++)?(e.consume(k),s===Z.length?r.interrupt?t:P:g):n(k)}function b(k){return Ue(k)?(e.consume(k),o=String.fromCharCode(k),h):n(k)}function h(k){if(k===null||k===47||k===62||he(k)){const Z=k===47,ce=o.toLowerCase();return!Z&&!i&&jh.includes(ce)?(a=1,r.interrupt?t(k):P(k)):Q1.includes(o.toLowerCase())?(a=6,Z?(e.consume(k),m):r.interrupt?t(k):P(k)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(k):i?E(k):S(k))}return k===45||Me(k)?(e.consume(k),o+=String.fromCharCode(k),h):n(k)}function m(k){return k===62?(e.consume(k),r.interrupt?t:P):n(k)}function E(k){return ae(k)?(e.consume(k),E):R(k)}function S(k){return k===47?(e.consume(k),R):k===58||k===95||Ue(k)?(e.consume(k),T):ae(k)?(e.consume(k),S):R(k)}function T(k){return k===45||k===46||k===58||k===95||Me(k)?(e.consume(k),T):A(k)}function A(k){return k===61?(e.consume(k),v):ae(k)?(e.consume(k),A):S(k)}function v(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),l=k,_):ae(k)?(e.consume(k),v):N(k)}function _(k){return k===l?(e.consume(k),l=null,D):k===null||Q(k)?n(k):(e.consume(k),_)}function N(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||he(k)?A(k):(e.consume(k),N)}function D(k){return k===47||k===62||ae(k)?S(k):n(k)}function R(k){return k===62?(e.consume(k),F):n(k)}function F(k){return k===null||Q(k)?P(k):ae(k)?(e.consume(k),F):n(k)}function P(k){return k===45&&a===2?(e.consume(k),H):k===60&&a===1?(e.consume(k),j):k===62&&a===4?(e.consume(k),L):k===63&&a===3?(e.consume(k),x):k===93&&a===5?(e.consume(k),X):Q(k)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(eL,$,U)(k)):k===null||Q(k)?(e.exit("htmlFlowData"),U(k)):(e.consume(k),P)}function U(k){return e.check(tL,z,$)(k)}function z(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),B}function B(k){return k===null||Q(k)?U(k):(e.enter("htmlFlowData"),P(k))}function H(k){return k===45?(e.consume(k),x):P(k)}function j(k){return k===47?(e.consume(k),o="",M):P(k)}function M(k){if(k===62){const Z=o.toLowerCase();return jh.includes(Z)?(e.consume(k),L):P(k)}return Ue(k)&&o.length<8?(e.consume(k),o+=String.fromCharCode(k),M):P(k)}function X(k){return k===93?(e.consume(k),x):P(k)}function x(k){return k===62?(e.consume(k),L):k===45&&a===2?(e.consume(k),x):P(k)}function L(k){return k===null||Q(k)?(e.exit("htmlFlowData"),$(k)):(e.consume(k),L)}function $(k){return e.exit("htmlFlow"),t(k)}}function aL(e,t,n){const r=this;return a;function a(o){return Q(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function iL(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(da,t,n)}}const oL={name:"htmlText",tokenize:sL};function sL(e,t,n){const r=this;let a,i,o;return s;function s(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),l}function l(x){return x===33?(e.consume(x),c):x===47?(e.consume(x),A):x===63?(e.consume(x),S):Ue(x)?(e.consume(x),N):n(x)}function c(x){return x===45?(e.consume(x),u):x===91?(e.consume(x),i=0,g):Ue(x)?(e.consume(x),E):n(x)}function u(x){return x===45?(e.consume(x),f):n(x)}function d(x){return x===null?n(x):x===45?(e.consume(x),p):Q(x)?(o=d,j(x)):(e.consume(x),d)}function p(x){return x===45?(e.consume(x),f):d(x)}function f(x){return x===62?H(x):x===45?p(x):d(x)}function g(x){const L="CDATA[";return x===L.charCodeAt(i++)?(e.consume(x),i===L.length?b:g):n(x)}function b(x){return x===null?n(x):x===93?(e.consume(x),h):Q(x)?(o=b,j(x)):(e.consume(x),b)}function h(x){return x===93?(e.consume(x),m):b(x)}function m(x){return x===62?H(x):x===93?(e.consume(x),m):b(x)}function E(x){return x===null||x===62?H(x):Q(x)?(o=E,j(x)):(e.consume(x),E)}function S(x){return x===null?n(x):x===63?(e.consume(x),T):Q(x)?(o=S,j(x)):(e.consume(x),S)}function T(x){return x===62?H(x):S(x)}function A(x){return Ue(x)?(e.consume(x),v):n(x)}function v(x){return x===45||Me(x)?(e.consume(x),v):_(x)}function _(x){return Q(x)?(o=_,j(x)):ae(x)?(e.consume(x),_):H(x)}function N(x){return x===45||Me(x)?(e.consume(x),N):x===47||x===62||he(x)?D(x):n(x)}function D(x){return x===47?(e.consume(x),H):x===58||x===95||Ue(x)?(e.consume(x),R):Q(x)?(o=D,j(x)):ae(x)?(e.consume(x),D):H(x)}function R(x){return x===45||x===46||x===58||x===95||Me(x)?(e.consume(x),R):F(x)}function F(x){return x===61?(e.consume(x),P):Q(x)?(o=F,j(x)):ae(x)?(e.consume(x),F):D(x)}function P(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),a=x,U):Q(x)?(o=P,j(x)):ae(x)?(e.consume(x),P):(e.consume(x),z)}function U(x){return x===a?(e.consume(x),a=void 0,B):x===null?n(x):Q(x)?(o=U,j(x)):(e.consume(x),U)}function z(x){return x===null||x===34||x===39||x===60||x===61||x===96?n(x):x===47||x===62||he(x)?D(x):(e.consume(x),z)}function B(x){return x===47||x===62||he(x)?D(x):n(x)}function H(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),t):n(x)}function j(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),M}function M(x){return ae(x)?de(e,X,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):X(x)}function X(x){return e.enter("htmlTextData"),o(x)}}const Xl={name:"labelEnd",resolveAll:dL,resolveTo:pL,tokenize:fL},lL={tokenize:gL},cL={tokenize:mL},uL={tokenize:hL};function dL(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&et(e,0,e.length,n),e}function pL(e,t){let n=e.length,r=0,a,i,o,s;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},u={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=at(s,e.slice(i+1,i+r+3)),s=at(s,[["enter",u,t]]),s=at(s,Di(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),s=at(s,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),s=at(s,e.slice(o+1)),s=at(s,[["exit",l,t]]),et(e,i,e.length,s),e}function fL(e,t,n){const r=this;let a=r.events.length,i,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return s;function s(p){return i?i._inactive?d(p):(o=r.parser.defined.includes(mt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(lL,u,o?u:d)(p):p===91?e.attempt(cL,u,o?c:d)(p):o?u(p):d(p)}function c(p){return e.attempt(uL,u,d)(p)}function u(p){return t(p)}function d(p){return i._balanced=!0,n(p)}}function gL(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return he(d)?Or(e,i)(d):i(d)}function i(d){return d===41?u(d):ES(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function o(d){return he(d)?Or(e,l)(d):u(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?SS(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):u(d)}function c(d){return he(d)?Or(e,u)(d):u(d)}function u(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function mL(e,t,n){const r=this;return a;function a(s){return wS.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(mt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function hL(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const bL={name:"labelStartImage",resolveAll:Xl.resolveAll,tokenize:yL};function yL(e,t,n){const r=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const EL={name:"labelStartLink",resolveAll:Xl.resolveAll,tokenize:wL};function wL(e,t,n){const r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Io={name:"lineEnding",tokenize:SL};function SL(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),de(e,t,"linePrefix")}}const $a={name:"thematicBreak",tokenize:vL};function vL(e,t,n){let r=0,a;return i;function i(c){return e.enter("thematicBreak"),o(c)}function o(c){return a=c,s(c)}function s(c){return c===a?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||Q(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===a?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),ae(c)?de(e,s,"whitespace")(c):s(c))}}const Ve={continuation:{tokenize:AL},exit:IL,name:"list",tokenize:TL},xL={partial:!0,tokenize:CL},kL={partial:!0,tokenize:RL};function TL(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(f){const g=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Ls(f)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check($a,n,c)(f):c(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return n(f)}function l(f){return Ls(f)&&++o<10?(e.consume(f),l):(!r.interrupt||o<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),c(f)):n(f)}function c(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(da,r.interrupt?n:u,e.attempt(xL,p,d))}function u(f){return r.containerState.initialBlankLine=!0,i++,p(f)}function d(f){return ae(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function AL(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(da,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,de(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!ae(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(kL,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,de(e,e.attempt(Ve,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function RL(e,t,n){const r=this;return de(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function IL(e){e.exit(this.containerState.type)}function CL(e,t,n){const r=this;return de(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=r.events[r.events.length-1];return!ae(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const Gh={name:"setextUnderline",resolveTo:NL,tokenize:_L};function NL(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function _L(e,t,n){const r=this;let a;return i;function i(c){let u=r.events.length,d;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){d=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=c,o(c)):n(c)}function o(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===a?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),ae(c)?de(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||Q(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const OL={tokenize:LL};function LL(e){const t=this,n=e.attempt(da,r,e.attempt(this.parser.constructs.flowInitial,a,de(e,e.attempt(this.parser.constructs.flow,a,e.attempt(B1,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const DL={resolveAll:xS()},ML=vS("string"),FL=vS("text");function vS(e){return{resolveAll:xS(e==="text"?PL:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(u){return c(u)?i(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),i(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const d=a[u];let p=-1;if(d)for(;++p<d.length;){const f=d[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function xS(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function PL(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,o=-1,s=0,l;for(;i--;){const c=a[i];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(c===-2)l=!0,s++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const BL={42:Ve,43:Ve,45:Ve,48:Ve,49:Ve,50:Ve,51:Ve,52:Ve,53:Ve,54:Ve,55:Ve,56:Ve,57:Ve,62:mS},UL={91:V1},zL={[-2]:Ro,[-1]:Ro,32:Ro},jL={35:K1,42:$a,45:[Gh,$a],60:J1,61:Gh,95:$a,96:zh,126:zh},GL={38:bS,92:hS},VL={[-5]:Io,[-4]:Io,[-3]:Io,33:bL,38:bS,42:Ds,60:[E1,oL],91:EL,92:[q1,hS],93:Xl,95:Ds,96:O1},HL={null:[Ds,DL]},$L={null:[42,95]},WL={null:[]},qL=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:$L,contentInitial:UL,disable:WL,document:BL,flow:jL,flowInitial:zL,insideSpan:HL,string:GL,text:VL},Symbol.toStringTag,{value:"Module"}));function YL(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let o=[],s=[];const l={attempt:_(A),check:_(v),consume:E,enter:S,exit:T,interrupt:_(v,{interrupt:!0})},c={code:null,containerState:{},defineSkip:b,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:d};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(F){return o=at(o,F),h(),o[o.length-1]!==null?[]:(N(t,0),c.events=Di(i,c.events,c),c.events)}function p(F,P){return XL(f(F),P)}function f(F){return KL(o,F)}function g(){const{_bufferIndex:F,_index:P,line:U,column:z,offset:B}=r;return{_bufferIndex:F,_index:P,line:U,column:z,offset:B}}function b(F){a[F.line]=F.column,R()}function h(){let F;for(;r._index<o.length;){const P=o[r._index];if(typeof P=="string")for(F=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===F&&r._bufferIndex<P.length;)m(P.charCodeAt(r._bufferIndex));else m(P)}}function m(F){u=u(F)}function E(F){Q(F)?(r.line++,r.column=1,r.offset+=F===-3?2:1,R()):F!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=F}function S(F,P){const U=P||{};return U.type=F,U.start=g(),c.events.push(["enter",U,c]),s.push(U),U}function T(F){const P=s.pop();return P.end=g(),c.events.push(["exit",P,c]),P}function A(F,P){N(F,P.from)}function v(F,P){P.restore()}function _(F,P){return U;function U(z,B,H){let j,M,X,x;return Array.isArray(z)?$(z):"tokenize"in z?$([z]):L(z);function L(ie){return K;function K(pe){const ge=pe!==null&&ie[pe],ve=pe!==null&&ie.null,Oe=[...Array.isArray(ge)?ge:ge?[ge]:[],...Array.isArray(ve)?ve:ve?[ve]:[]];return $(Oe)(pe)}}function $(ie){return j=ie,M=0,ie.length===0?H:k(ie[M])}function k(ie){return K;function K(pe){return x=D(),X=ie,ie.partial||(c.currentConstruct=ie),ie.name&&c.parser.constructs.disable.null.includes(ie.name)?ce():ie.tokenize.call(P?Object.assign(Object.create(c),P):c,l,Z,ce)(pe)}}function Z(ie){return F(X,x),B}function ce(ie){return x.restore(),++M<j.length?k(j[M]):H}}}function N(F,P){F.resolveAll&&!i.includes(F)&&i.push(F),F.resolve&&et(c.events,P,c.events.length-P,F.resolve(c.events.slice(P),c)),F.resolveTo&&(c.events=F.resolveTo(c.events,c))}function D(){const F=g(),P=c.previous,U=c.currentConstruct,z=c.events.length,B=Array.from(s);return{from:z,restore:H};function H(){r=F,c.previous=P,c.currentConstruct=U,c.events.length=z,s=B,R()}}function R(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function KL(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function XL(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
2698
2736
  `;break}case-3:{o=`\r
2699
2737
  `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(i)}a=i===-2,r.push(o)}return r.join("")}function ZL(e){const r={constructs:fS([qL,...(e||{}).extensions||[]]),content:a(p1),defined:[],document:a(g1),flow:a(OL),lazy:{},string:a(ML),text:a(FL)};return r;function a(i){return o;function o(s){return YL(r,i,s)}}}function QL(e){for(;!yS(e););return e}const Vh=/[\0\t\n\r]/g;function JL(){let e=1,t="",n=!0,r;return a;function a(i,o,s){const l=[];let c,u,d,p,f;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),d=0,t="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(Vh.lastIndex=d,c=Vh.exec(i),p=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(p),!c){t=i.slice(d);break}if(f===10&&d===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<p&&(l.push(i.slice(d,p)),e+=p-d),f){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const eD=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tD(e){return e.replace(eD,nD)}function nD(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return gS(n.slice(i?2:1),i?16:10)}return Xr(n)||e}const kS={}.hasOwnProperty;function rD(e,t,n){return typeof t!="string"&&(n=t,t=void 0),aD(n)(QL(ZL(n).document().write(JL()(e,t,!0))))}function aD(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(_t),autolinkProtocol:D,autolinkEmail:D,atxHeading:i(Sn),blockQuote:i(ve),characterEscape:D,characterReference:D,codeFenced:i(Oe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(Oe,o),codeText:i(Ke,o),codeTextData:D,data:D,codeFlowValue:D,definition:i(Ge),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(Jt),hardBreakEscape:i(vn),hardBreakTrailing:i(vn),htmlFlow:i(jt,o),htmlFlowData:D,htmlText:i(jt,o),htmlTextData:D,image:i(ct),label:o,link:i(_t),listItem:i(dr),listItemValue:p,listOrdered:i(ur,d),listUnordered:i(ur),paragraph:i(en),reference:k,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(Sn),strong:i(qi),thematicBreak:i(Yi)},exit:{atxHeading:l(),atxHeadingSequence:A,autolink:l(),autolinkEmail:ge,autolinkProtocol:pe,blockQuote:l(),characterEscapeValue:R,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:ie,characterReference:K,codeFenced:l(h),codeFencedFence:b,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:R,codeIndented:l(m),codeText:l(B),codeTextData:R,data:R,definition:l(),definitionDestinationString:T,definitionLabelString:E,definitionTitleString:S,emphasis:l(),hardBreakEscape:l(P),hardBreakTrailing:l(P),htmlFlow:l(U),htmlFlowData:R,htmlText:l(z),htmlTextData:R,image:l(j),label:X,labelText:M,lineEnding:F,link:l(H),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Z,resourceDestinationString:x,resourceTitleString:L,resource:$,setextHeading:l(N),setextHeadingLineSequence:_,setextHeadingText:v,strong:l(),thematicBreak:l()}};TS(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(C){let V={type:"root",children:[]};const te={stack:[V],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:u,data:n},le=[];let me=-1;for(;++me<C.length;)if(C[me][1].type==="listOrdered"||C[me][1].type==="listUnordered")if(C[me][0]==="enter")le.push(me);else{const ut=le.pop();me=a(C,ut,me)}for(me=-1;++me<C.length;){const ut=t[C[me][0]];kS.call(ut,C[me][1].type)&&ut[C[me][1].type].call(Object.assign({sliceSerialize:C[me][2].sliceSerialize},te),C[me][1])}if(te.tokenStack.length>0){const ut=te.tokenStack[te.tokenStack.length-1];(ut[1]||Hh).call(te,void 0,ut[0])}for(V.position={start:Vt(C.length>0?C[0][1].start:{line:1,column:1,offset:0}),end:Vt(C.length>0?C[C.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me<t.transforms.length;)V=t.transforms[me](V)||V;return V}function a(C,V,te){let le=V-1,me=-1,ut=!1,tn,Ot,pr,fr;for(;++le<=te;){const Xe=C[le];switch(Xe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Xe[0]==="enter"?me++:me--,fr=void 0;break}case"lineEndingBlank":{Xe[0]==="enter"&&(tn&&!fr&&!me&&!pr&&(pr=le),fr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:fr=void 0}if(!me&&Xe[0]==="enter"&&Xe[1].type==="listItemPrefix"||me===-1&&Xe[0]==="exit"&&(Xe[1].type==="listUnordered"||Xe[1].type==="listOrdered")){if(tn){let xn=le;for(Ot=void 0;xn--;){const Lt=C[xn];if(Lt[1].type==="lineEnding"||Lt[1].type==="lineEndingBlank"){if(Lt[0]==="exit")continue;Ot&&(C[Ot][1].type="lineEndingBlank",ut=!0),Lt[1].type="lineEnding",Ot=xn}else if(!(Lt[1].type==="linePrefix"||Lt[1].type==="blockQuotePrefix"||Lt[1].type==="blockQuotePrefixWhitespace"||Lt[1].type==="blockQuoteMarker"||Lt[1].type==="listItemIndent"))break}pr&&(!Ot||pr<Ot)&&(tn._spread=!0),tn.end=Object.assign({},Ot?C[Ot][1].start:Xe[1].end),C.splice(Ot||le,0,["exit",tn,Xe[2]]),le++,te++}if(Xe[1].type==="listItemPrefix"){const xn={type:"listItem",_spread:!1,start:Object.assign({},Xe[1].start),end:void 0};tn=xn,C.splice(le,0,["enter",xn,Xe[2]]),le++,te++,pr=void 0,fr=!0}}}return C[V][1]._spread=ut,te}function i(C,V){return te;function te(le){s.call(this,C(le),le),V&&V.call(this,le)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(C,V,te){this.stack[this.stack.length-1].children.push(C),this.stack.push(C),this.tokenStack.push([V,te||void 0]),C.position={start:Vt(V.start),end:void 0}}function l(C){return V;function V(te){C&&C.call(this,te),c.call(this,te)}}function c(C,V){const te=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==C.type&&(V?V.call(this,C,le[0]):(le[1]||Hh).call(this,C,le[0]));else throw new Error("Cannot close `"+C.type+"` ("+_r({start:C.start,end:C.end})+"): it’s not open");te.position.end=Vt(C.end)}function u(){return Kl(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(C){if(this.data.expectingFirstListItemValue){const V=this.stack[this.stack.length-2];V.start=Number.parseInt(this.sliceSerialize(C),10),this.data.expectingFirstListItemValue=void 0}}function f(){const C=this.resume(),V=this.stack[this.stack.length-1];V.lang=C}function g(){const C=this.resume(),V=this.stack[this.stack.length-1];V.meta=C}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function h(){const C=this.resume(),V=this.stack[this.stack.length-1];V.value=C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const C=this.resume(),V=this.stack[this.stack.length-1];V.value=C.replace(/(\r?\n|\r)$/g,"")}function E(C){const V=this.resume(),te=this.stack[this.stack.length-1];te.label=V,te.identifier=mt(this.sliceSerialize(C)).toLowerCase()}function S(){const C=this.resume(),V=this.stack[this.stack.length-1];V.title=C}function T(){const C=this.resume(),V=this.stack[this.stack.length-1];V.url=C}function A(C){const V=this.stack[this.stack.length-1];if(!V.depth){const te=this.sliceSerialize(C).length;V.depth=te}}function v(){this.data.setextHeadingSlurpLineEnding=!0}function _(C){const V=this.stack[this.stack.length-1];V.depth=this.sliceSerialize(C).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function D(C){const te=this.stack[this.stack.length-1].children;let le=te[te.length-1];(!le||le.type!=="text")&&(le=Ea(),le.position={start:Vt(C.start),end:void 0},te.push(le)),this.stack.push(le)}function R(C){const V=this.stack.pop();V.value+=this.sliceSerialize(C),V.position.end=Vt(C.end)}function F(C){const V=this.stack[this.stack.length-1];if(this.data.atHardBreak){const te=V.children[V.children.length-1];te.position.end=Vt(C.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(V.type)&&(D.call(this,C),R.call(this,C))}function P(){this.data.atHardBreak=!0}function U(){const C=this.resume(),V=this.stack[this.stack.length-1];V.value=C}function z(){const C=this.resume(),V=this.stack[this.stack.length-1];V.value=C}function B(){const C=this.resume(),V=this.stack[this.stack.length-1];V.value=C}function H(){const C=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=V,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function j(){const C=this.stack[this.stack.length-1];if(this.data.inReference){const V=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=V,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function M(C){const V=this.sliceSerialize(C),te=this.stack[this.stack.length-2];te.label=tD(V),te.identifier=mt(V).toLowerCase()}function X(){const C=this.stack[this.stack.length-1],V=this.resume(),te=this.stack[this.stack.length-1];if(this.data.inReference=!0,te.type==="link"){const le=C.children;te.children=le}else te.alt=V}function x(){const C=this.resume(),V=this.stack[this.stack.length-1];V.url=C}function L(){const C=this.resume(),V=this.stack[this.stack.length-1];V.title=C}function $(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function Z(C){const V=this.resume(),te=this.stack[this.stack.length-1];te.label=V,te.identifier=mt(this.sliceSerialize(C)).toLowerCase(),this.data.referenceType="full"}function ce(C){this.data.characterReferenceType=C.type}function ie(C){const V=this.sliceSerialize(C),te=this.data.characterReferenceType;let le;te?(le=gS(V,te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=Xr(V);const me=this.stack[this.stack.length-1];me.value+=le}function K(C){const V=this.stack.pop();V.position.end=Vt(C.end)}function pe(C){R.call(this,C);const V=this.stack[this.stack.length-1];V.url=this.sliceSerialize(C)}function ge(C){R.call(this,C);const V=this.stack[this.stack.length-1];V.url="mailto:"+this.sliceSerialize(C)}function ve(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function Ke(){return{type:"inlineCode",value:""}}function Ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Jt(){return{type:"emphasis",children:[]}}function Sn(){return{type:"heading",depth:0,children:[]}}function vn(){return{type:"break"}}function jt(){return{type:"html",value:""}}function ct(){return{type:"image",title:null,url:"",alt:null}}function _t(){return{type:"link",title:null,url:"",children:[]}}function ur(C){return{type:"list",ordered:C.type==="listOrdered",start:null,spread:C._spread,children:[]}}function dr(C){return{type:"listItem",spread:C._spread,checked:null,children:[]}}function en(){return{type:"paragraph",children:[]}}function qi(){return{type:"strong",children:[]}}function Ea(){return{type:"text",value:""}}function Yi(){return{type:"thematicBreak"}}}function Vt(e){return{line:e.line,column:e.column,offset:e.offset}}function TS(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?TS(e,r):iD(e,r)}}function iD(e,t){let n;for(n in t)if(kS.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Hh(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+_r({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+_r({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+_r({start:t.start,end:t.end})+") is still open")}function oD(e){const t=this;t.parser=n;function n(r){return rD(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function sD(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function lD(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
@@ -2729,5 +2767,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2729
2767
  `))+1))}const o="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
2730
2768
  `,...i.current()});return/^[\t ]/.test(c)&&(c=Qr(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c}XS.peek=xF;function XS(e){return e.value||""}function xF(){return"<"}ZS.peek=kF;function ZS(e,t,n,r){const a=ag(n),i=a==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),o(),c}function kF(){return"!"}QS.peek=TF;function QS(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,i(),a==="full"||!c||c!==d?l+=s.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function TF(){return"!"}JS.peek=AF;function JS(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const o=n.unsafe[i],s=n.compilePattern(o);let l;if(o.atBreak)for(;l=s.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return a+r+a}function AF(){return"`"}function ev(e,t){const n=Kl(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}tv.peek=RF;function tv(e,t,n,r){const a=ag(n),i=a==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(ev(e,n)){const u=n.stack;n.stack=[],s=n.enter("autolink");let d=o.move("<");return d+=o.move(n.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),s(),n.stack=u,d}s=n.enter("link"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=o.move(" "+a),c+=o.move(n.safe(e.title,{before:c,after:a,...o.current()})),c+=o.move(a),l()),c+=o.move(")"),s(),c}function RF(e,t,n){return ev(e,n)?"<":"["}nv.peek=IF;function nv(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,i(),a==="full"||!c||c!==d?l+=s.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function IF(){return"["}function ig(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function CF(e){const t=ig(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function NF(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function rv(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function _F(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let o=e.ordered?NF(n):ig(n);const s=e.ordered?o==="."?")":".":CF(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),rv(n)===o&&u){let d=-1;for(;++d<e.children.length;){const p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const c=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=i,a(),c}function OF(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function LF(e,t,n,r){const a=OF(n);let i=n.bulletCurrent||ig(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let o=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(i+" ".repeat(o-i.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),u);return l(),c;function u(d,p,f){return p?(f?"":" ".repeat(o))+d:(f?i:i+" ".repeat(o-i.length))+d}}function DF(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),a(),o}const MF=Fi(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function FF(e,t,n,r){return(e.children.some(function(o){return MF(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function PF(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}av.peek=BF;function av(e,t,n,r){const a=PF(n),i=n.enter("strong"),o=n.createTracker(r),s=o.move(a+a);let l=o.move(n.containerPhrasing(e,{after:a,before:s,...o.current()}));const c=l.charCodeAt(0),u=pi(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=Qr(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=pi(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+Qr(d));const f=o.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}function BF(e,t,n){return n.options.strong||"*"}function UF(e,t,n,r){return n.safe(e.value,r)}function zF(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function jF(e,t,n){const r=(rv(n)+(n.options.ruleSpaces?" ":"")).repeat(zF(n));return n.options.ruleSpaces?r.slice(0,-1):r}const iv={blockquote:uF,break:bb,code:hF,definition:yF,emphasis:KS,hardBreak:bb,heading:vF,html:XS,image:ZS,imageReference:QS,inlineCode:JS,link:tv,linkReference:nv,list:_F,listItem:LF,paragraph:DF,root:FF,strong:av,text:UF,thematicBreak:jF};function GF(){return{enter:{table:VF,tableData:yb,tableHeader:yb,tableRow:$F},exit:{codeText:WF,table:HF,tableData:jo,tableHeader:jo,tableRow:jo}}}function VF(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function HF(e){this.exit(e),this.data.inTable=void 0}function $F(e){this.enter({type:"tableRow",children:[]},e)}function jo(e){this.exit(e)}function yb(e){this.enter({type:"tableCell",children:[]},e)}function WF(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,qF));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function qF(e,t){return t==="|"?t:e}function YF(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
2731
2769
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:l,tableRow:s}};function o(f,g,b,h){return c(u(f,b,h),f.align)}function s(f,g,b,h){const m=d(f,b,h),E=c([m]);return E.slice(0,E.indexOf(`
2732
- `))}function l(f,g,b,h){const m=b.enter("tableCell"),E=b.enter("phrasing"),S=b.containerPhrasing(f,{...h,before:i,after:i});return E(),m(),S}function c(f,g){return lF(f,{align:g,alignDelimiters:r,padding:n,stringLength:a})}function u(f,g,b){const h=f.children;let m=-1;const E=[],S=g.enter("table");for(;++m<h.length;)E[m]=d(h[m],g,b);return S(),E}function d(f,g,b){const h=f.children;let m=-1;const E=[],S=g.enter("tableRow");for(;++m<h.length;)E[m]=l(h[m],f,g,b);return S(),E}function p(f,g,b){let h=iv.inlineCode(f,g,b);return b.stack.includes("tableCell")&&(h=h.replace(/\|/g,"\\$&")),h}}function KF(){return{exit:{taskListCheckValueChecked:Eb,taskListCheckValueUnchecked:Eb,paragraph:ZF}}}function XF(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:QF}}}function Eb(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function ZF(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let i=-1,o;for(;++i<a.length;){const s=a[i];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function QF(e,t,n,r){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(o);let l=iv.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+o}}function JF(){return[_2(),Q2(),nF(),GF(),KF()]}function eP(e){return{extensions:[O2(),J2(e),rF(),YF(e),XF()]}}const tP={tokenize:sP,partial:!0},ov={tokenize:lP,partial:!0},sv={tokenize:cP,partial:!0},lv={tokenize:uP,partial:!0},nP={tokenize:dP,partial:!0},cv={name:"wwwAutolink",tokenize:iP,previous:dv},uv={name:"protocolAutolink",tokenize:oP,previous:pv},zt={name:"emailAutolink",tokenize:aP,previous:fv},Nt={};function rP(){return{text:Nt}}let an=48;for(;an<123;)Nt[an]=zt,an++,an===58?an=65:an===91&&(an=97);Nt[43]=zt;Nt[45]=zt;Nt[46]=zt;Nt[95]=zt;Nt[72]=[zt,uv];Nt[104]=[zt,uv];Nt[87]=[zt,cv];Nt[119]=[zt,cv];function aP(e,t,n){const r=this;let a,i;return o;function o(d){return!$s(d)||!fv.call(r,r.previous)||og(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return $s(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(nP,u,c)(d):d===45||d===95||Me(d)?(i=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),a=!0,l}function u(d){return i&&a&&Ue(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function iP(e,t,n){const r=this;return a;function a(o){return o!==87&&o!==119||!dv.call(r,r.previous)||og(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(tP,e.attempt(ov,e.attempt(sv,i),n),n)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function oP(e,t,n){const r=this;let a="",i=!1;return o;function o(d){return(d===72||d===104)&&pv.call(r,r.previous)&&!og(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Ue(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const p=a.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),i?c:(i=!0,l)):n(d)}function c(d){return d===null||ci(d)||he(d)||yn(d)||Li(d)?n(d):e.attempt(ov,e.attempt(sv,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function sP(e,t,n){let r=0;return a;function a(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),a):o===46&&r===3?(e.consume(o),i):n(o)}function i(o){return o===null?n(o):t(o)}}function lP(e,t,n){let r,a,i;return o;function o(c){return c===46||c===95?e.check(lv,l,s)(c):c===null||he(c)||yn(c)||c!==45&&Li(c)?l(c):(i=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(a=r,r=void 0),e.consume(c),o}function l(c){return a||r||!i?n(c):t(c)}}function cP(e,t){let n=0,r=0;return a;function a(o){return o===40?(n++,e.consume(o),a):o===41&&r<n?i(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(lv,t,i)(o):o===null||he(o)||yn(o)?t(o):(e.consume(o),a)}function i(o){return o===41&&r++,e.consume(o),a}}function uP(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),i):s===93?(e.consume(s),a):s===60||s===null||he(s)||yn(s)?t(s):n(s)}function a(s){return s===null||s===40||s===91||he(s)||yn(s)?t(s):r(s)}function i(s){return Ue(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):Ue(s)?(e.consume(s),o):n(s)}}function dP(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return Me(i)?n(i):t(i)}}function dv(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||he(e)}function pv(e){return!Ue(e)}function fv(e){return!(e===47||$s(e))}function $s(e){return e===43||e===45||e===46||e===95||Me(e)}function og(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const pP={tokenize:wP,partial:!0};function fP(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:bP,continuation:{tokenize:yP},exit:EP}},text:{91:{name:"gfmFootnoteCall",tokenize:hP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:gP,resolveTo:mP}}}}function gP(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const l=r.events[a][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const c=mt(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function mP(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function hP(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,o;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(i>999||d===93&&!o||d===null||d===91||he(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return a.includes(mt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return he(d)||(o=!0),i++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),i++,c):c(d)}}function bP(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(g)}function u(g){if(o>999||g===93&&!s||g===null||g===91||he(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return i=mt(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return he(g)||(s=!0),o++,e.consume(g),g===92?d:u}function d(g){return g===91||g===92||g===93?(e.consume(g),o++,u):u(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(i)||a.push(i),de(e,f,"gfmFootnoteDefinitionWhitespace")):n(g)}function f(g){return t(g)}}function yP(e,t,n){return e.check(da,t,e.attempt(pP,t,n))}function EP(e){e.exit("gfmFootnoteDefinition")}function wP(e,t,n){const r=this;return de(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):n(i)}}function SP(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},p=[["enter",u,s],["enter",o[c][1],s],["exit",o[c][1],s],["enter",d,s]],f=s.parser.constructs.insideSpan.null;f&&et(p,p.length,0,Di(f,o.slice(c+1,l),s)),et(p,p.length,0,[["exit",d,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",u,s]]),et(o,c-1,l-c+3,p),l=c+p.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function i(o,s,l){const c=this.previous,u=this.events;let d=0;return p;function p(g){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(g):(o.enter("strikethroughSequenceTemporary"),f(g))}function f(g){const b=qn(c);if(g===126)return d>1?l(g):(o.consume(g),d++,f);if(d<2&&!n)return l(g);const h=o.exit("strikethroughSequenceTemporary"),m=qn(g);return h._open=!m||m===2&&!!b,h._close=!b||b===2&&!!m,s(g)}}}class vP{constructor(){this.map=[]}add(t,n,r){xP(this,t,n,r)}consume(t){if(this.map.sort(function(i,o){return i[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const i of a)t.push(i);a=r.pop()}this.map.length=0}}function xP(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function kP(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function TP(){return{flow:{null:{name:"table",tokenize:AP,resolveAll:RP}}}}function AP(e,t,n){const r=this;let a=0,i=0,o;return s;function s(R){let F=r.events.length-1;for(;F>-1;){const z=r.events[F][1].type;if(z==="lineEnding"||z==="linePrefix")F--;else break}const P=F>-1?r.events[F][1].type:null,U=P==="tableHead"||P==="tableRow"?v:l;return U===v&&r.parser.lazy[r.now().line]?n(R):U(R)}function l(R){return e.enter("tableHead"),e.enter("tableRow"),c(R)}function c(R){return R===124||(o=!0,i+=1),u(R)}function u(R){return R===null?n(R):Q(R)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),f):n(R):ae(R)?de(e,u,"whitespace")(R):(i+=1,o&&(o=!1,a+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),d(R)))}function d(R){return R===null||R===124||he(R)?(e.exit("data"),u(R)):(e.consume(R),R===92?p:d)}function p(R){return R===92||R===124?(e.consume(R),d):d(R)}function f(R){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(R):(e.enter("tableDelimiterRow"),o=!1,ae(R)?de(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):g(R))}function g(R){return R===45||R===58?h(R):R===124?(o=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),b):A(R)}function b(R){return ae(R)?de(e,h,"whitespace")(R):h(R)}function h(R){return R===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),m):R===45?(i+=1,m(R)):R===null||Q(R)?T(R):A(R)}function m(R){return R===45?(e.enter("tableDelimiterFiller"),E(R)):A(R)}function E(R){return R===45?(e.consume(R),E):R===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(R))}function S(R){return ae(R)?de(e,T,"whitespace")(R):T(R)}function T(R){return R===124?g(R):R===null||Q(R)?!o||a!==i?A(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):A(R)}function A(R){return n(R)}function v(R){return e.enter("tableRow"),_(R)}function _(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),_):R===null||Q(R)?(e.exit("tableRow"),t(R)):ae(R)?de(e,_,"whitespace")(R):(e.enter("data"),N(R))}function N(R){return R===null||R===124||he(R)?(e.exit("data"),_(R)):(e.consume(R),R===92?D:N)}function D(R){return R===92||R===124?(e.consume(R),N):N(R)}}function RP(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,c,u,d;const p=new vP;for(;++n<e.length;){const f=e[n],g=f[1];f[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(wb(p,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",c,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,d=void 0,i=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",u,t]])),a=g.type==="tableDelimiterRow"?2:u?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],d=Fa(p,t,i,a,void 0,d),i=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(o[0]=o[1],d=Fa(p,t,i,a,void 0,d)),i=o,o=[i[1],n,0,0])):g.type==="tableHead"?(s=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,i[1]!==0?(o[0]=o[1],d=Fa(p,t,i,a,n,d)):o[1]!==0&&(d=Fa(p,t,o,a,n,d)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&wb(p,t,l,c,u),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=kP(t.events,n))}return e}function Fa(e,t,n,r,a,i){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(i.end=Object.assign({},Nn(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=Nn(t.events,n[1]);if(i={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const c=Nn(t.events,n[2]),u=Nn(t.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,b=n[3]-n[2]-1;e.add(g,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(i.end=Object.assign({},Nn(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function wb(e,t,n,r,a){const i=[],o=Nn(t.events,n);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function Nn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const IP={name:"tasklistCheck",tokenize:NP};function CP(){return{text:{91:IP}}}function NP(e,t,n){const r=this;return a;function a(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return he(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return Q(l)?t(l):ae(l)?e.check({tokenize:_P},t,n)(l):n(l)}}function _P(e,t,n){return de(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function OP(e){return fS([rP(),fP(),SP(e),TP(),CP()])}const LP={};function DP(e){const t=this,n=e||LP,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(OP(n)),i.push(JF()),o.push(eP(n))}const MP=oe.create(AI),FP=oe.create(II),gv=({isExpanded:e,onClick:t,className:n,iconClassName:r,disabled:a})=>y.jsxs(Bt,{children:[y.jsx(Ut,{onClick:t,className:n,disabled:a,children:y.jsx(Rt,{mode:"wait",initial:!1,children:e?y.jsx(MP,{initial:!1,animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},transition:{duration:.15},className:J("size-4 text-stone-600 cursor-pointer hover:text-stone-900",r)},"collapsed"):y.jsx(FP,{initial:!1,animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},transition:{duration:.15},className:J("size-4 text-stone-600 cursor-pointer hover:text-stone-900",r)},"expanded")})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:e?"Collapse message":"Expand message"})})]}),Sb={'code[class*="language-"]':{background:"black",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"black",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"16px 20px",overflow:"auto",borderRadius:"0 0 8px 8px"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"#00c08b"},string:{color:"#00c08b"},char:{color:"#00c08b"},builtin:{color:"#00c08b"},inserted:{color:"#00c08b"},regex:{color:"#00c08b"},"attr-value":{color:"#00c08b"},"attr-value > .token.punctuation":{color:"#00c08b"},variable:{color:"#58A6FF"},operator:{color:"#58A6FF"},function:{color:"#58A6FF"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"#00c08b"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"#58A6FF"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"#00c08b"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#00c08b"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#00c08b"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#00c08b"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#58A6FF"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#58A6FF"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#58A6FF"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},vb=({children:e,className:t})=>y.jsx("div",{className:J("flex flex-col text-[1.5ch] rounded-lg","[&_*]:scrollbar [&_*]:scrollbar-w-1 [&_*]:scrollbar-h-1 [&_*]:scrollbar-thumb-rounded-full [&_*]:scrollbar-track-transparent [&_*]:scrollbar-thumb-telnyx-dark-cream",t),children:e}),xb=({children:e})=>y.jsx("div",{className:"flex justify-between bg-telnyx-gray-hover-light rounded-t-lg py-1.5 px-4",children:e}),PP=e=>y.jsx("a",{href:e.src,target:"_blank",rel:"noopener noreferrer",children:y.jsx("img",{className:"w-full my-2",alt:e.alt,src:e.src})}),BP=e=>y.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"text-telnyx-blue no-underline",children:[y.jsx("span",{className:"underline",children:e.children}),y.jsx("span",{children:"↗"})]}),kb=({children:e})=>y.jsx("p",{className:"text-black pt-2 font-bold",children:e}),UP=({children:e})=>y.jsx("p",{className:"text-base",children:e}),zP=e=>({img:PP,h1:kb,h2:kb,a:BP,p:UP,code:O.memo(({inline:t,className:n,children:r,...a})=>{const i=Y(h=>h.numMessagesExpanded),o=Y(h=>h.setNumMessagesExpanded),s=e==="complete",[l,c]=O.useState(ft.COLLAPSED),u=O.useRef(null),d=/language-(\w+)/.exec(n||""),p=String(r).replace(/\n$/,""),f=()=>{c(ft.EXPANDED),o(i+1),document.body.style.overflow="hidden"},g=()=>{c(ft.COLLAPSED),o(i-1),document.body.style.overflow="auto"},b=i>0;return!t&&d?y.jsxs(y.Fragment,{children:[y.jsx(Rt,{children:l===ft.EXPANDED&&y.jsxs(Vl,{targetMountContainer:document.body,children:[y.jsx(oe.div,{initial:!1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/40 h-full w-full z-[5000]",onClick:f},"expanded-code-background"),y.jsx(oe.div,{initial:!1,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},className:"fixed inset-0 z-[5000] grid p-4 place-items-center",onClick:h=>h.stopPropagation(),children:y.jsx(oe.div,{className:J("w-[60%] max-w-full max-h-[90%] rounded-lg overflow-hidden"),ref:u,children:y.jsxs(vb,{className:"overflow-y-hidden",children:[y.jsxs(xb,{children:[y.jsx("code",{className:"text-telnyx-cream text-[1.6ch] flex items-center bg-gray-800/50 rounded-md px-1",children:d&&d[1]||"Unknown"}),s&&y.jsx(Tb,{isExpanded:l===ft.EXPANDED,handleCollapse:g,handleExpand:f,textToCopy:p})]}),y.jsx("div",{className:"bg-black pl-0.5 pr-1 py-1",children:y.jsx("div",{className:J("overflow-y-auto overflow-x-hidden max-h-[60vh] pb-1","scrollbar scrollbar-w-1 scrollbar-thumb-rounded-full scrollbar-track-transparent scrollbar-thumb-telnyx-dark-cream","[&_*]:scrollbar [&_*]:scrollbar-h-1 [&_*]:scrollbar-thumb-rounded-full [&_*]:scrollbar-track-transparent [&_*]:scrollbar-thumb-telnyx-dark-cream","bg-black text-telnyx-cream"),children:y.jsx(Hs,{...a,children:String(r).replace(/\n$/,""),style:Sb,language:s?d[1]:"text/plain",PreTag:"div",showLineNumbers:!0,wrapLongLines:!0})})})]})})},"expanded-code")]})}),y.jsxs(vb,{children:[y.jsxs(xb,{children:[y.jsx("code",{className:"text-telnyx-cream text-[1.6ch] flex items-center",children:d&&d[1]||"Unknown"}),s&&y.jsx(Tb,{isExpanded:l===ft.EXPANDED,handleExpand:b?void 0:f,handleCollapse:g,textToCopy:p})]}),y.jsx("div",{className:"bg-black pl-0.5 pr-1 pb-1 rounded-b-lg mb-4",children:y.jsx(Hs,{...a,children:String(r).replace(/\n$/,""),style:Sb,language:s?d[1]:"text/plain",PreTag:"div",wrapLongLines:!0})})]})]}):y.jsx("code",{...a,className:J("bg-transparent p-1",n),children:r})})}),jP=O.memo(({children:e,state:t})=>y.jsx("div",{className:J("w-full","overflow-x-auto overflow-y-hidden","scrollbar scrollbar-h-1 scrollbar-thumb-rounded-full scrollbar-thumb-gray-800/50 scrollbar-track-transparent hover:scrollbar-thumb-gray-800/70"),children:y.jsx(TM,{components:zP(t),remarkPlugins:[DP],children:e})})),Tb=({isExpanded:e,handleExpand:t,handleCollapse:n,textToCopy:r})=>y.jsxs("div",{className:"flex",children:[y.jsx(Gl,{textToCopy:r,className:J("bg-transparent border-0 py-1 px-1.5","hover:rounded-md hover:cursor-pointer hover:bg-gray-800/50"),iconClassName:"size-5 text-white hover:text-white"}),n&&t&&y.jsx(gv,{isExpanded:e,onClick:e?n:t,className:J("text-white bg-transparent border-0 py-1 px-1.5","hover:rounded-md hover:cursor-pointer hover:bg-gray-800/50"),iconClassName:"size-5 text-white hover:text-white"})]}),GP=oe.create(YE),VP={pressed:{scale:.8},hovered:{scale:1.1},idle:{scale:1},transition:{duration:.15}},HP=O.memo(({onClick:e,className:t,iconClassName:n})=>y.jsxs(Bt,{children:[y.jsx(Ut,{onClick:e,className:J("rounded-md text-black bg-telnyx-green/30 p-1 hover:bg-telnyx-green/60 hover:cursor-pointer",t),"aria-label":"Collapse message",children:y.jsx(Rt,{children:y.jsx(GP,{initial:"idle",whileHover:"hovered",whileTap:"pressed",animate:"idle",exit:"idle",variants:VP,className:J("size-5 focus:outline-none focus:ring-0",n)},"close")})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:"Collapse message"})})]})),$P=({variant:e,textToCopy:t,onCloseClick:n})=>y.jsxs("div",{className:"flex justify-between items-center border-b-2 border-black",children:[y.jsx("h2",{className:"text-xl font-pp-formula text-stone-700",children:e==="bot"?"AI Assistant":"You"}),y.jsxs("div",{className:"flex items-center gap-1 pb-2",children:[y.jsx(Gl,{textToCopy:t,className:J("rounded-md p-1 hover:bg-telnyx-green/60 hover:cursor-pointer bg-telnyx-green/30 border-0","flex items-center justify-center","h-fit"),iconClassName:"size-5 text-black"}),y.jsx(HP,{onClick:n,className:J("border-0","flex items-center justify-center","h-fit")})]})]}),WP=({feedbackId:e})=>{const t=Y(i=>i.apiService),[n,r]=O.useState(null),a=O.useCallback(i=>async()=>{r(i),await t.sendFeedback({messageId:e,type:i})},[r,t]);return y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsxs(Bt,{children:[y.jsx(Ut,{onClick:a(kn.POSITIVE),className:J("text-stone-600 cursor-pointer hover:text-stone-900",n===kn.POSITIVE&&"text-telnyx-green hover:text-telnyx-green/80"),children:n===kn.POSITIVE?y.jsx(g_,{className:"size-4"}):y.jsx(FI,{className:"size-4"})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:"Helpful"})})]}),y.jsxs(Bt,{children:[y.jsx(Ut,{onClick:a(kn.NEGATIVE),className:J("text-stone-600 cursor-pointer hover:text-stone-900",n===kn.NEGATIVE&&"text-red-600 hover:text-red-700"),children:n===kn.NEGATIVE?y.jsx(p_,{className:"size-4"}):y.jsx(DI,{className:"size-4"})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:"Not helpful"})})]})]})},qP=_i(["relative w-fit p-4 max-w-[95%]","after:absolute after:content-[''] after:w-4 after:h-2 after:-bottom-0.5"],{variants:{variant:{bot:["bg-widget-bg-tertiary text-widget-text-primary rounded-r-md rounded-tl-md justify-self-start","dark:bg-widget-bg-tertiary dark:text-widget-text-primary","after:left-0 after:bg-widget-bg-tertiary dark:after:bg-widget-bg-tertiary after:-skew-y-[30deg] after:rounded-bl-sm","[&_a]:underline [&_a]:text-indigo-600 hover:[&_a]:text-indigo-800","dark:[&_a]:text-blue-400 dark:hover:[&_a]:text-blue-300","[&_pre]:mt-4"],user:["bg-telnyx-green rounded-l-md rounded-tr-md justify-self-end","after:right-0 after:bg-telnyx-green after:skew-y-[30deg] after:rounded-br-sm"]},state:{complete:"",loading:"rounded-bl-md animate-shadow-grow border-[0.5px] border-telnyx-green/60 ring-1 ring-inset ring-telnyx-green/60 before:hidden! after:hidden! bg-white/30 dark:bg-gray-800/30",streaming:"",error:["max-w-full after:hidden! rounded-md","bg-red-100/70! text-red-600 text-justify text-sm border-2 border-red-400","dark:bg-red-900/30! dark:text-red-400 dark:border-red-600"]}},defaultVariants:{variant:"bot",state:"complete"}}),YP=({variant:e,state:t})=>({initial:{opacity:t==="loading"?.7:0,x:e==="bot"?0:48,y:e==="bot"?0:24,scale:t==="loading"?.9:.6},animate:{opacity:1,x:0,y:0,scale:1,transition:{duration:.3}},exit:{opacity:0,x:e==="bot"?0:48,y:e==="bot"?0:24,scale:t==="loading"?.9:.6,transition:{duration:.2}}}),KP=({variant:e,state:t,children:n})=>y.jsx(oe.div,{initial:"initial",animate:"animate",exit:"exit",variants:YP({variant:e,state:t}),className:qP({variant:e,state:t}),children:n}),XP=_i(["max-w-full max-h-[90vh] overflow-y-auto p-6 space-y-2","scrollbar scrollbar-w-1 scrollbar-thumb-rounded-full scrollbar-track-transparent"],{variants:{variant:{bot:["scrollbar-thumb-telnyx-green scrollbar-track-telnyx-dark-cream","[&_a]:underline [&_a]:text-indigo-600 hover:[&_a]:text-indigo-800","[&_pre]:mt-4!"],user:["scrollbar-thumb-telnyx-dark-cream scrollbar-track-telnyx-green"]}},defaultVariants:{variant:"bot"}}),ZP=_i(["flex items-center mb-2 gap-1"],{variants:{variant:{bot:["justify-self-start"],user:["justify-self-end flex-row-reverse"]}},defaultVariants:{variant:"bot"}}),Ab=O.memo(({variant:e,children:t,state:n,handleRetry:r,isFirstMessage:a,timestamp:i,feedbackId:o})=>{const s=Y(E=>E.endpoint),l=cI(i),c=Y(E=>E.numMessagesExpanded),u=Y(E=>E.setNumMessagesExpanded),d=Y(E=>E.botState),[p,f]=O.useState(ft.COLLAPSED),g=O.useRef(null),b=O.useCallback(()=>{f(ft.EXPANDED),u(c+1),document.body.style.overflow="hidden"},[c,u,f]),h=O.useCallback(()=>{f(ft.COLLAPSED),u(c-1),document.body.style.overflow="auto"},[c,u,f]),m=()=>{if(n==="streaming"||n==="complete")return y.jsx(jP,{state:n,children:t});if(n==="error")return y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("p",{children:t}),d==="retrying"&&y.jsx(JP,{}),d==="error"&&y.jsx(QP,{onClick:r})]});if(n==="loading")return s===jr.AIDA?y.jsx(hO,{isLoaded:!1,progressMessage:t},`loading-${t}`):y.jsx("div",{className:"flex items-center gap-3",children:y.jsx(pO,{size:24,spokeWidth:2,animationDuration:4})})};return y.jsxs(y.Fragment,{children:[y.jsx(Rt,{mode:"wait",children:p===ft.EXPANDED&&y.jsxs(Vl,{targetMountContainer:document.body,children:[y.jsx(oe.div,{initial:!1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60 h-full w-full z-[5000]",onClick:b},"expanded-message-background"),y.jsx(oe.div,{initial:!1,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},className:"fixed inset-0 z-[5000] grid place-items-center p-4",onClick:E=>E.stopPropagation(),children:y.jsx("div",{ref:g,className:J("w-[60%] max-w-full bg-transparent rounded-lg p-2",e==="bot"?"bg-widget-bg-tertiary dark:bg-widget-bg-tertiary":"bg-telnyx-green"),children:y.jsxs("div",{className:XP({variant:e}),children:[y.jsx($P,{variant:e,textToCopy:t,onCloseClick:h}),m()]})})},"expanded-message")]})}),y.jsx(KP,{variant:e,state:n,children:m()}),y.jsxs("div",{className:ZP({variant:e}),children:[y.jsx("span",{className:J("text-stone-600 text-sm",e==="bot"?"mr-1":"ml-1"),children:l}),!a&&n==="complete"&&y.jsxs(y.Fragment,{children:[y.jsx(gv,{onClick:b,isExpanded:p===ft.EXPANDED}),y.jsx(Gl,{textToCopy:t}),!!o&&y.jsx(WP,{feedbackId:o})]})]})]})}),QP=({onClick:e})=>y.jsx("span",{className:"flex w-full justify-center text-sm",children:y.jsx("button",{className:J("py-1.5 px-4 shadow-sm rounded-full","text-xs text-white ","bg-red-600 hover:bg-red-700","hover:cursor-pointer hover:scale-105 transition-all duration-300 active:scale-95"),onClick:e,children:"Retry"})}),JP=()=>y.jsx("div",{className:"flex w-full justify-center text-sm",children:y.jsxs("span",{className:"text-xs text-white bg-red-600 rounded-full p-1.5 flex items-center gap-1",children:["Retrying",y.jsx(WE,{className:"size-4 animate-spin"})]})}),eB=e=>y.jsx("svg",{viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e.ref,...e,children:y.jsx("path",{d:"M0 68.5714C0 30.5714 30.5714 0 68.5714 0H91.4286C129.429 0 160 30.5714 160 68.5714V160H68.5714C30.5714 160 0 129.429 0 91.4286V68.5714Z",fill:"black"})}),tB={[st.OPEN]:({numMessagesExpanded:e,position:t,isCustomMounted:n})=>{const r=n?0:-28,a=n?0:-28,[i,o]=Rb(t,r,a);return{opacity:1,clipPath:`circle(${e===0?768:4320}px at calc(${i}) calc(${o}))`,transition:{type:"spring",stiffness:30,restDelta:5}}},[st.CLOSED]:({position:e,isCustomMounted:t})=>{const n=t?0:16,r=t?0:-28,a=t?0:-28,[i,o]=Rb(e,r,a);return{clipPath:`circle(${n}px at calc(${i}) calc(${o}))`,transition:{delay:.1,type:"spring",stiffness:900,damping:160}}}};function Rb(e,t=0,n=0){const r=t>0?"+":"-",a=n>0?"+":"-",i=Math.abs(t),o=Math.abs(n);switch(e){case Ee.TOP_LEFT:return[`0% ${r} ${i}px`,`0% ${a} ${o}px`];case Ee.TOP:return[`50% ${r} ${i}px`,`0% ${a} ${o}px`];case Ee.TOP_RIGHT:return[`100% ${r} ${i}px`,`0% ${a} ${o}px`];case Ee.RIGHT:return[`100% ${r} ${i}px`,`50% ${a} ${o}px`];case Ee.BOTTOM_RIGHT:return[`100% ${r} ${i}px`,`100% ${a} ${o}px`];case Ee.BOTTOM:return[`50% ${r} ${i}px`,`100% ${a} ${o}px`];case Ee.BOTTOM_LEFT:return[`0% ${r} ${i}px`,`100% ${a} ${o}px`];case Ee.LEFT:return[`0% ${r} ${i}px`,`50% ${a} ${o}px`]}}const nB=_i("rounded-xl bg-black shadow-lg z-[9999]",{variants:{mountType:{[Nr.CUSTOM]:"absolute",[Nr.DEFAULT]:"fixed bottom-4! right-4!"},mountPositionAndDirection:{[`${be.TOP_LEFT}-${ue.INSIDE}`]:"top-0 left-0",[`${be.TOP_LEFT}-${ue.OUTSIDE}`]:"bottom-full right-full",[`${be.TOP}-${ue.INSIDE}`]:"top-0 left-1/2 -translate-x-1/2",[`${be.TOP}-${ue.OUTSIDE}`]:"bottom-full left-1/2 -translate-x-1/2",[`${be.TOP_RIGHT}-${ue.INSIDE}`]:"top-0 right-0",[`${be.TOP_RIGHT}-${ue.OUTSIDE}`]:"bottom-full left-full",[`${be.RIGHT}-${ue.INSIDE}`]:"top-1/2 -translate-y-1/2 right-0 ",[`${be.RIGHT}-${ue.OUTSIDE}`]:"top-1/2 -translate-y-1/2 left-full",[`${be.BOTTOM_RIGHT}-${ue.INSIDE}`]:"bottom-0 right-0",[`${be.BOTTOM_RIGHT}-${ue.OUTSIDE}`]:"top-full left-full",[`${be.BOTTOM}-${ue.INSIDE}`]:"bottom-0 left-1/2 -translate-x-1/2",[`${be.BOTTOM}-${ue.OUTSIDE}`]:"top-full left-1/2 -translate-x-1/2",[`${be.BOTTOM_LEFT}-${ue.INSIDE}`]:"bottom-0 left-0",[`${be.BOTTOM_LEFT}-${ue.OUTSIDE}`]:"top-full right-full",[`${be.LEFT}-${ue.INSIDE}`]:"top-1/2 -translate-y-1/2 left-0",[`${be.LEFT}-${ue.OUTSIDE}`]:"top-1/2 -translate-y-1/2 right-full"}},defaultVariants:{mountPositionAndDirection:`${be.BOTTOM_RIGHT}-${ue.INSIDE}`,mountType:Nr.DEFAULT}}),rB={[je.INITIAL]:{height:"78%",borderBottomRightRadius:"12px",borderBottomLeftRadius:"12px",borderTopLeftRadius:"24px",borderTopRightRadius:"24px"},[je.USER_HAS_TYPED]:{height:"94%",borderBottomRightRadius:"12px",borderBottomLeftRadius:"12px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px"}},aB={[je.INITIAL]:{height:"22%"},[je.USER_HAS_TYPED]:{height:"6%"}},iB=({chatAPIUrl:e,feedbackAPIUrl:t=rt.FEEDBACK_API_URL,user:n,onHelpAction:r,open:a,setOpen:i,placeholders:o=rt.DEFAULT_PLACEHOLDERS,mountPosition:s=be.BOTTOM_RIGHT,mountDirection:l=ue.INSIDE,offsetX:c=0,offsetY:u=0,icon:d=eB,theme:p=Cn.LIGHT,firstMessage:f})=>{const g=Y(C=>C.endpoint),b=yI(p),h=e||rt.CHAT_API_URL,m=!!e,E=Y(C=>C.setUser),S=Y(C=>C.setOnHelpAction),T=Y(C=>C.setChatAPIUrl);Y(C=>C.setEndpoint);const A=Y(C=>C.setFeedbackAPIUrl),v=Y(C=>C.setPlaceholders),_=Y(C=>C.question),N=Y(C=>C.setQuestion),D=Y(C=>C.messages),R=Y(C=>C.dispatchMessage),F=Y(C=>C.widgetVisualState),P=Y(C=>C.chatVisualState),U=Y(C=>C.setChatVisualState),z=Y(C=>C.numMessagesExpanded),B=Y(C=>C.setSetCustomOpen),H=Y(C=>C.openWidget),j=Y(C=>C.closeWidget),M=F===st.OPEN,X=i?Nr.CUSTOM:Nr.DEFAULT,x=`${s}-${l}`,L=bI[s][l],$=!!i,k=Y(C=>C.botState),Z=Y(C=>C.setBotState),ce=Y(C=>C.numRetries),ie=Y(C=>C.setNumRetries),K=Y(C=>C.retryTimeoutId),pe=Y(C=>C.setRetryTimeoutId),ge=Y(C=>C.chatStartTimestamp),ve=vE[g].firstMessage,Oe=f!==void 0?f:ve,{chat:Ke,lastMessage:Ge}=mI(),[Jt,Sn]=O.useState(!0),vn=O.useRef(null),jt=O.useRef(null),ct=O.useRef(null),_t=hI(ct),ur=O.useRef(`telnyx-widget-fonts-${Math.random().toString(36).substring(2,9)}`);O.useEffect(()=>{const C=ur.current;if(C){if(!document.getElementById(C)){const V=document.createElement("style");V.id=C,V.textContent=EI,document.head.appendChild(V)}return()=>{const V=document.getElementById(C);V&&V.remove()}}},[ur.current]),O.useEffect(()=>{if(!n){console.error("User info is required. Please provide a user object.");return}if(!n.id){console.error("User ID is required.");return}E(n)},[n,E]),O.useEffect(()=>{o.length>0&&v(o)},[o,v]),O.useEffect(()=>{r!==void 0&&S(r)},[r,S]),O.useEffect(()=>{T(h,m)},[h,m,T]),O.useEffect(()=>{t&&A(t)},[t,A]),O.useEffect(()=>{a!==void 0&&(a?H():j())},[a,H,j]),O.useEffect(()=>{i!==void 0&&B(i)},[i,B]),O.useEffect(()=>{var C;M&&((C=jt.current)==null||C.focus())},[M]);const dr=O.useCallback(()=>{const C=D[D.length-2];if(C.type==="user"&&C.message.length>0){N(C.message),Z("retrying");const V=setTimeout(async()=>{try{R({type:Le.DELETE_LAST_MESSAGE_PAIR,payload:null}),ie(ce+1),await Ke(C.message)}catch(te){console.error("[Retry Logic] Chat failed during retry:",te)}},rt.RETRY_INTERVAL);pe(V)}},[D,Ke,ce,R]);O.useEffect(()=>{k==="error"&&(K||(ce<rt.MAX_RETRIES?dr():ce>=rt.MAX_RETRIES&&console.error("[Retry Logic] Max retries reached, stopping retry attempts")))},[k,ce,K,dr]),O.useEffect(()=>{const C=ct.current;C&&Jt&&(Ge==null?void 0:Ge.message.length)>0&&(C.scrollTop=C.scrollHeight)},[Ge==null?void 0:Ge.message.length,Jt]);const en=O.useCallback(()=>{const C=jt.current;C&&(C.style.height="auto",C.style.height=`${C.scrollHeight}px`)},[]),qi=C=>{en(),U(je.USER_HAS_TYPED),N(C.target.value)};O.useEffect(()=>{D.length===0&&requestAnimationFrame(en)},[D.length,en]);const Ea=async()=>{N(""),requestAnimationFrame(en),await Ke(_);const C=ct.current;C&&C.scrollTo({top:C.scrollHeight,behavior:"smooth"})},Yi=()=>{const C=ct.current;if(!C)return;const V=Math.abs(C.scrollHeight-C.clientHeight-C.scrollTop)<=5;Sn(V)};return y.jsx(Vl,{ref:vn,children:y.jsx("div",{"data-widget-theme":b,children:y.jsx(Lw,{delayDuration:75,skipDelayDuration:0,children:y.jsxs(Rt,{children:[y.jsxs(oe.div,{initial:!1,animate:F,variants:tB,custom:{numMessagesExpanded:z,position:L,isCustomMounted:$},className:J(nB({mountType:X,mountPositionAndDirection:x})),style:{height:rt.WIDGET_HEIGHT,width:rt.WIDGET_WIDTH,translateX:c,translateY:u},children:[y.jsx(oe.div,{initial:!1,animate:P,className:"px-4 pt-4 rounded-t-xl",style:{backgroundColor:"var(--widget-bg-primary)"},variants:aB,children:y.jsx(cO,{className:"flex flex-col justify-between h-full pb-4",children:y.jsx(u_,{resetChatCustomHandler:en})})}),y.jsxs(oe.div,{initial:!1,animate:P,className:J("flex flex-col justify-between rounded-b-xl rounded-t-3xl p-4 pb-1.5","relative overflow-hidden"),style:{backgroundColor:"var(--widget-bg-secondary)"},variants:rB,children:[_t&&y.jsxs(y.Fragment,{children:[y.jsx(mh,{containerRef:ct,direction:"up"}),y.jsx(mh,{containerRef:ct,direction:"down"})]}),y.jsxs("div",{ref:ct,className:J("grid grid-cols-1 gap-2 content-start h-full overflow-y-auto overflow-x-hidden py-2 px-1 relative","scrollbar scrollbar-w-1 scrollbar-thumb-rounded-full scrollbar-track-transparent","[&::-webkit-scrollbar-thumb]:bg-widget-bg-tertiary dark:[&::-webkit-scrollbar-thumb]:bg-widget-bg-tertiary"),onScroll:Yi,children:[Oe&&y.jsx(Ab,{variant:"bot",isFirstMessage:!0,state:"complete",timestamp:ge,children:Oe},"bot-initial"),D.map(C=>y.jsx(Ab,{variant:C.type,timestamp:C.timestamp,state:C.state,feedbackId:C.feedback_id,handleRetry:dr,children:C.message},C.id))]}),y.jsx(sO,{ref:jt,question:_,handleInput:qi,handleSendMessage:Ea})]})]},"widget-container"),!$&&y.jsx(R_,{question:_,handleSendMessage:Ea,triggerIcon:d},"chat-trigger-button")]})})})})};exports.ChatWidget=iB;exports.Tooltip=Bt;exports.TooltipContent=At;exports.TooltipProvider=Lw;exports.TooltipTrigger=Ut;
2770
+ `))}function l(f,g,b,h){const m=b.enter("tableCell"),E=b.enter("phrasing"),S=b.containerPhrasing(f,{...h,before:i,after:i});return E(),m(),S}function c(f,g){return lF(f,{align:g,alignDelimiters:r,padding:n,stringLength:a})}function u(f,g,b){const h=f.children;let m=-1;const E=[],S=g.enter("table");for(;++m<h.length;)E[m]=d(h[m],g,b);return S(),E}function d(f,g,b){const h=f.children;let m=-1;const E=[],S=g.enter("tableRow");for(;++m<h.length;)E[m]=l(h[m],f,g,b);return S(),E}function p(f,g,b){let h=iv.inlineCode(f,g,b);return b.stack.includes("tableCell")&&(h=h.replace(/\|/g,"\\$&")),h}}function KF(){return{exit:{taskListCheckValueChecked:Eb,taskListCheckValueUnchecked:Eb,paragraph:ZF}}}function XF(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:QF}}}function Eb(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function ZF(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let i=-1,o;for(;++i<a.length;){const s=a[i];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function QF(e,t,n,r){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(o);let l=iv.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+o}}function JF(){return[_2(),Q2(),nF(),GF(),KF()]}function eP(e){return{extensions:[O2(),J2(e),rF(),YF(e),XF()]}}const tP={tokenize:sP,partial:!0},ov={tokenize:lP,partial:!0},sv={tokenize:cP,partial:!0},lv={tokenize:uP,partial:!0},nP={tokenize:dP,partial:!0},cv={name:"wwwAutolink",tokenize:iP,previous:dv},uv={name:"protocolAutolink",tokenize:oP,previous:pv},zt={name:"emailAutolink",tokenize:aP,previous:fv},Nt={};function rP(){return{text:Nt}}let an=48;for(;an<123;)Nt[an]=zt,an++,an===58?an=65:an===91&&(an=97);Nt[43]=zt;Nt[45]=zt;Nt[46]=zt;Nt[95]=zt;Nt[72]=[zt,uv];Nt[104]=[zt,uv];Nt[87]=[zt,cv];Nt[119]=[zt,cv];function aP(e,t,n){const r=this;let a,i;return o;function o(d){return!$s(d)||!fv.call(r,r.previous)||og(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return $s(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(nP,u,c)(d):d===45||d===95||Me(d)?(i=!0,e.consume(d),l):u(d)}function c(d){return e.consume(d),a=!0,l}function u(d){return i&&a&&Ue(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function iP(e,t,n){const r=this;return a;function a(o){return o!==87&&o!==119||!dv.call(r,r.previous)||og(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(tP,e.attempt(ov,e.attempt(sv,i),n),n)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function oP(e,t,n){const r=this;let a="",i=!1;return o;function o(d){return(d===72||d===104)&&pv.call(r,r.previous)&&!og(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Ue(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const p=a.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),i?c:(i=!0,l)):n(d)}function c(d){return d===null||ci(d)||he(d)||yn(d)||Li(d)?n(d):e.attempt(ov,e.attempt(sv,u),n)(d)}function u(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function sP(e,t,n){let r=0;return a;function a(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),a):o===46&&r===3?(e.consume(o),i):n(o)}function i(o){return o===null?n(o):t(o)}}function lP(e,t,n){let r,a,i;return o;function o(c){return c===46||c===95?e.check(lv,l,s)(c):c===null||he(c)||yn(c)||c!==45&&Li(c)?l(c):(i=!0,e.consume(c),o)}function s(c){return c===95?r=!0:(a=r,r=void 0),e.consume(c),o}function l(c){return a||r||!i?n(c):t(c)}}function cP(e,t){let n=0,r=0;return a;function a(o){return o===40?(n++,e.consume(o),a):o===41&&r<n?i(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(lv,t,i)(o):o===null||he(o)||yn(o)?t(o):(e.consume(o),a)}function i(o){return o===41&&r++,e.consume(o),a}}function uP(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),i):s===93?(e.consume(s),a):s===60||s===null||he(s)||yn(s)?t(s):n(s)}function a(s){return s===null||s===40||s===91||he(s)||yn(s)?t(s):r(s)}function i(s){return Ue(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):Ue(s)?(e.consume(s),o):n(s)}}function dP(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return Me(i)?n(i):t(i)}}function dv(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||he(e)}function pv(e){return!Ue(e)}function fv(e){return!(e===47||$s(e))}function $s(e){return e===43||e===45||e===46||e===95||Me(e)}function og(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const pP={tokenize:wP,partial:!0};function fP(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:bP,continuation:{tokenize:yP},exit:EP}},text:{91:{name:"gfmFootnoteCall",tokenize:hP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:gP,resolveTo:mP}}}}function gP(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const l=r.events[a][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const c=mt(r.sliceSerialize({start:o.end,end:r.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function mP(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function hP(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,o;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(i>999||d===93&&!o||d===null||d===91||he(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return a.includes(mt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return he(d)||(o=!0),i++,e.consume(d),d===92?u:c}function u(d){return d===91||d===92||d===93?(e.consume(d),i++,c):c(d)}}function bP(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0,s;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(g)}function u(g){if(o>999||g===93&&!s||g===null||g===91||he(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return i=mt(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return he(g)||(s=!0),o++,e.consume(g),g===92?d:u}function d(g){return g===91||g===92||g===93?(e.consume(g),o++,u):u(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(i)||a.push(i),de(e,f,"gfmFootnoteDefinitionWhitespace")):n(g)}function f(g){return t(g)}}function yP(e,t,n){return e.check(da,t,e.attempt(pP,t,n))}function EP(e){e.exit("gfmFootnoteDefinition")}function wP(e,t,n){const r=this;return de(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):n(i)}}function SP(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let c=l;for(;c--;)if(o[c][0]==="exit"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[c][1].end.offset-o[c][1].start.offset){o[l][1].type="strikethroughSequence",o[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},o[c][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[c][1].end),end:Object.assign({},o[l][1].start)},p=[["enter",u,s],["enter",o[c][1],s],["exit",o[c][1],s],["enter",d,s]],f=s.parser.constructs.insideSpan.null;f&&et(p,p.length,0,Di(f,o.slice(c+1,l),s)),et(p,p.length,0,[["exit",d,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",u,s]]),et(o,c-1,l-c+3,p),l=c+p.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function i(o,s,l){const c=this.previous,u=this.events;let d=0;return p;function p(g){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(g):(o.enter("strikethroughSequenceTemporary"),f(g))}function f(g){const b=qn(c);if(g===126)return d>1?l(g):(o.consume(g),d++,f);if(d<2&&!n)return l(g);const h=o.exit("strikethroughSequenceTemporary"),m=qn(g);return h._open=!m||m===2&&!!b,h._close=!b||b===2&&!!m,s(g)}}}class vP{constructor(){this.map=[]}add(t,n,r){xP(this,t,n,r)}consume(t){if(this.map.sort(function(i,o){return i[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const i of a)t.push(i);a=r.pop()}this.map.length=0}}function xP(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function kP(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function TP(){return{flow:{null:{name:"table",tokenize:AP,resolveAll:RP}}}}function AP(e,t,n){const r=this;let a=0,i=0,o;return s;function s(R){let F=r.events.length-1;for(;F>-1;){const z=r.events[F][1].type;if(z==="lineEnding"||z==="linePrefix")F--;else break}const P=F>-1?r.events[F][1].type:null,U=P==="tableHead"||P==="tableRow"?v:l;return U===v&&r.parser.lazy[r.now().line]?n(R):U(R)}function l(R){return e.enter("tableHead"),e.enter("tableRow"),c(R)}function c(R){return R===124||(o=!0,i+=1),u(R)}function u(R){return R===null?n(R):Q(R)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),f):n(R):ae(R)?de(e,u,"whitespace")(R):(i+=1,o&&(o=!1,a+=1),R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),o=!0,u):(e.enter("data"),d(R)))}function d(R){return R===null||R===124||he(R)?(e.exit("data"),u(R)):(e.consume(R),R===92?p:d)}function p(R){return R===92||R===124?(e.consume(R),d):d(R)}function f(R){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(R):(e.enter("tableDelimiterRow"),o=!1,ae(R)?de(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):g(R))}function g(R){return R===45||R===58?h(R):R===124?(o=!0,e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),b):A(R)}function b(R){return ae(R)?de(e,h,"whitespace")(R):h(R)}function h(R){return R===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),m):R===45?(i+=1,m(R)):R===null||Q(R)?T(R):A(R)}function m(R){return R===45?(e.enter("tableDelimiterFiller"),E(R)):A(R)}function E(R){return R===45?(e.consume(R),E):R===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(R),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(R))}function S(R){return ae(R)?de(e,T,"whitespace")(R):T(R)}function T(R){return R===124?g(R):R===null||Q(R)?!o||a!==i?A(R):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(R)):A(R)}function A(R){return n(R)}function v(R){return e.enter("tableRow"),_(R)}function _(R){return R===124?(e.enter("tableCellDivider"),e.consume(R),e.exit("tableCellDivider"),_):R===null||Q(R)?(e.exit("tableRow"),t(R)):ae(R)?de(e,_,"whitespace")(R):(e.enter("data"),N(R))}function N(R){return R===null||R===124||he(R)?(e.exit("data"),_(R)):(e.consume(R),R===92?D:N)}function D(R){return R===92||R===124?(e.consume(R),N):N(R)}}function RP(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,c,u,d;const p=new vP;for(;++n<e.length;){const f=e[n],g=f[1];f[0]==="enter"?g.type==="tableHead"?(s=!1,l!==0&&(wb(p,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",c,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,d=void 0,i=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",u,t]])),a=g.type==="tableDelimiterRow"?2:u?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],d=Fa(p,t,i,a,void 0,d),i=[0,0,0,0]),o[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(o[0]=o[1],d=Fa(p,t,i,a,void 0,d)),i=o,o=[i[1],n,0,0])):g.type==="tableHead"?(s=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,i[1]!==0?(o[0]=o[1],d=Fa(p,t,i,a,n,d)):o[1]!==0&&(d=Fa(p,t,o,a,n,d)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&wb(p,t,l,c,u),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=kP(t.events,n))}return e}function Fa(e,t,n,r,a,i){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(i.end=Object.assign({},Nn(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=Nn(t.events,n[1]);if(i={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const c=Nn(t.events,n[2]),u=Nn(t.events,n[3]),d={type:s,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,b=n[3]-n[2]-1;e.add(g,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(i.end=Object.assign({},Nn(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function wb(e,t,n,r,a){const i=[],o=Nn(t.events,n);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function Nn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const IP={name:"tasklistCheck",tokenize:NP};function CP(){return{text:{91:IP}}}function NP(e,t,n){const r=this;return a;function a(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return he(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return Q(l)?t(l):ae(l)?e.check({tokenize:_P},t,n)(l):n(l)}}function _P(e,t,n){return de(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function OP(e){return fS([rP(),fP(),SP(e),TP(),CP()])}const LP={};function DP(e){const t=this,n=e||LP,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(OP(n)),i.push(JF()),o.push(eP(n))}const MP=oe.create(AI),FP=oe.create(II),gv=({isExpanded:e,onClick:t,className:n,iconClassName:r,disabled:a})=>y.jsxs(Bt,{children:[y.jsx(Ut,{onClick:t,className:n,disabled:a,children:y.jsx(Rt,{mode:"wait",initial:!1,children:e?y.jsx(MP,{initial:!1,animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},transition:{duration:.15},className:J("size-4 text-stone-600 cursor-pointer hover:text-stone-900",r)},"collapsed"):y.jsx(FP,{initial:!1,animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0},transition:{duration:.15},className:J("size-4 text-stone-600 cursor-pointer hover:text-stone-900",r)},"expanded")})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:e?"Collapse message":"Expand message"})})]}),Sb={'code[class*="language-"]':{background:"black",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"black",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"16px 20px",overflow:"auto",borderRadius:"0 0 8px 8px"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"#00c08b"},string:{color:"#00c08b"},char:{color:"#00c08b"},builtin:{color:"#00c08b"},inserted:{color:"#00c08b"},regex:{color:"#00c08b"},"attr-value":{color:"#00c08b"},"attr-value > .token.punctuation":{color:"#00c08b"},variable:{color:"#58A6FF"},operator:{color:"#58A6FF"},function:{color:"#58A6FF"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"#00c08b"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"#58A6FF"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"#00c08b"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"#00c08b"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"#00c08b"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"#00c08b"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"#58A6FF"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"#58A6FF"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"#58A6FF"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}},vb=({children:e,className:t})=>y.jsx("div",{className:J("flex flex-col text-[1.5ch] rounded-lg","[&_*]:scrollbar [&_*]:scrollbar-w-1 [&_*]:scrollbar-h-1 [&_*]:scrollbar-thumb-rounded-full [&_*]:scrollbar-track-transparent [&_*]:scrollbar-thumb-telnyx-dark-cream",t),children:e}),xb=({children:e})=>y.jsx("div",{className:"flex justify-between bg-telnyx-gray-hover-light rounded-t-lg py-1.5 px-4",children:e}),PP=e=>y.jsx("a",{href:e.src,target:"_blank",rel:"noopener noreferrer",children:y.jsx("img",{className:"w-full my-2",alt:e.alt,src:e.src})}),BP=e=>y.jsxs("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",className:"text-telnyx-blue no-underline",children:[y.jsx("span",{className:"underline",children:e.children}),y.jsx("span",{children:"↗"})]}),kb=({children:e})=>y.jsx("p",{className:"text-black pt-2 font-bold",children:e}),UP=({children:e})=>y.jsx("p",{className:"text-base",children:e}),zP=e=>({img:PP,h1:kb,h2:kb,a:BP,p:UP,code:O.memo(({inline:t,className:n,children:r,...a})=>{const i=Y(h=>h.numMessagesExpanded),o=Y(h=>h.setNumMessagesExpanded),s=e==="complete",[l,c]=O.useState(ft.COLLAPSED),u=O.useRef(null),d=/language-(\w+)/.exec(n||""),p=String(r).replace(/\n$/,""),f=()=>{c(ft.EXPANDED),o(i+1),document.body.style.overflow="hidden"},g=()=>{c(ft.COLLAPSED),o(i-1),document.body.style.overflow="auto"},b=i>0;return!t&&d?y.jsxs(y.Fragment,{children:[y.jsx(Rt,{children:l===ft.EXPANDED&&y.jsxs(Vl,{targetMountContainer:document.body,children:[y.jsx(oe.div,{initial:!1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/40 h-full w-full z-[5000]",onClick:f},"expanded-code-background"),y.jsx(oe.div,{initial:!1,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},className:"fixed inset-0 z-[5000] grid p-4 place-items-center",onClick:h=>h.stopPropagation(),children:y.jsx(oe.div,{className:J("w-[60%] max-w-full max-h-[90%] rounded-lg overflow-hidden"),ref:u,children:y.jsxs(vb,{className:"overflow-y-hidden",children:[y.jsxs(xb,{children:[y.jsx("code",{className:"text-telnyx-cream text-[1.6ch] flex items-center bg-gray-800/50 rounded-md px-1",children:d&&d[1]||"Unknown"}),s&&y.jsx(Tb,{isExpanded:l===ft.EXPANDED,handleCollapse:g,handleExpand:f,textToCopy:p})]}),y.jsx("div",{className:"bg-black pl-0.5 pr-1 py-1",children:y.jsx("div",{className:J("overflow-y-auto overflow-x-hidden max-h-[60vh] pb-1","scrollbar scrollbar-w-1 scrollbar-thumb-rounded-full scrollbar-track-transparent scrollbar-thumb-telnyx-dark-cream","[&_*]:scrollbar [&_*]:scrollbar-h-1 [&_*]:scrollbar-thumb-rounded-full [&_*]:scrollbar-track-transparent [&_*]:scrollbar-thumb-telnyx-dark-cream","bg-black text-telnyx-cream"),children:y.jsx(Hs,{...a,children:String(r).replace(/\n$/,""),style:Sb,language:s?d[1]:"text/plain",PreTag:"div",showLineNumbers:!0,wrapLongLines:!0})})})]})})},"expanded-code")]})}),y.jsxs(vb,{children:[y.jsxs(xb,{children:[y.jsx("code",{className:"text-telnyx-cream text-[1.6ch] flex items-center",children:d&&d[1]||"Unknown"}),s&&y.jsx(Tb,{isExpanded:l===ft.EXPANDED,handleExpand:b?void 0:f,handleCollapse:g,textToCopy:p})]}),y.jsx("div",{className:"bg-black pl-0.5 pr-1 pb-1 rounded-b-lg mb-4",children:y.jsx(Hs,{...a,children:String(r).replace(/\n$/,""),style:Sb,language:s?d[1]:"text/plain",PreTag:"div",wrapLongLines:!0})})]})]}):y.jsx("code",{...a,className:J("bg-transparent p-1",n),children:r})})}),jP=O.memo(({children:e,state:t})=>y.jsx("div",{className:J("w-full","overflow-x-auto overflow-y-hidden","scrollbar scrollbar-h-1 scrollbar-thumb-rounded-full scrollbar-thumb-gray-800/50 scrollbar-track-transparent hover:scrollbar-thumb-gray-800/70"),children:y.jsx(TM,{components:zP(t),remarkPlugins:[DP],children:e})})),Tb=({isExpanded:e,handleExpand:t,handleCollapse:n,textToCopy:r})=>y.jsxs("div",{className:"flex",children:[y.jsx(Gl,{textToCopy:r,className:J("bg-transparent border-0 py-1 px-1.5","hover:rounded-md hover:cursor-pointer hover:bg-gray-800/50"),iconClassName:"size-5 text-white hover:text-white"}),n&&t&&y.jsx(gv,{isExpanded:e,onClick:e?n:t,className:J("text-white bg-transparent border-0 py-1 px-1.5","hover:rounded-md hover:cursor-pointer hover:bg-gray-800/50"),iconClassName:"size-5 text-white hover:text-white"})]}),GP=oe.create(YE),VP={pressed:{scale:.8},hovered:{scale:1.1},idle:{scale:1},transition:{duration:.15}},HP=O.memo(({onClick:e,className:t,iconClassName:n})=>y.jsxs(Bt,{children:[y.jsx(Ut,{onClick:e,className:J("rounded-md text-black bg-telnyx-green/30 p-1 hover:bg-telnyx-green/60 hover:cursor-pointer",t),"aria-label":"Collapse message",children:y.jsx(Rt,{children:y.jsx(GP,{initial:"idle",whileHover:"hovered",whileTap:"pressed",animate:"idle",exit:"idle",variants:VP,className:J("size-5 focus:outline-none focus:ring-0",n)},"close")})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:"Collapse message"})})]})),$P=({variant:e,textToCopy:t,onCloseClick:n})=>y.jsxs("div",{className:"flex justify-between items-center border-b-2 border-black",children:[y.jsx("h2",{className:"text-xl font-pp-formula text-stone-700",children:e==="bot"?"AI Assistant":"You"}),y.jsxs("div",{className:"flex items-center gap-1 pb-2",children:[y.jsx(Gl,{textToCopy:t,className:J("rounded-md p-1 hover:bg-telnyx-green/60 hover:cursor-pointer bg-telnyx-green/30 border-0","flex items-center justify-center","h-fit"),iconClassName:"size-5 text-black"}),y.jsx(HP,{onClick:n,className:J("border-0","flex items-center justify-center","h-fit")})]})]}),WP=({feedbackId:e})=>{const t=Y(i=>i.apiService),[n,r]=O.useState(null),a=O.useCallback(i=>async()=>{r(i),await t.sendFeedback({messageId:e,type:i})},[r,t]);return y.jsxs("div",{className:"flex items-center gap-1",children:[y.jsxs(Bt,{children:[y.jsx(Ut,{onClick:a(kn.POSITIVE),className:J("text-stone-600 cursor-pointer hover:text-stone-900",n===kn.POSITIVE&&"text-telnyx-green hover:text-telnyx-green/80"),children:n===kn.POSITIVE?y.jsx(g_,{className:"size-4"}):y.jsx(FI,{className:"size-4"})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:"Helpful"})})]}),y.jsxs(Bt,{children:[y.jsx(Ut,{onClick:a(kn.NEGATIVE),className:J("text-stone-600 cursor-pointer hover:text-stone-900",n===kn.NEGATIVE&&"text-red-600 hover:text-red-700"),children:n===kn.NEGATIVE?y.jsx(p_,{className:"size-4"}):y.jsx(DI,{className:"size-4"})}),y.jsx(At,{side:"bottom",children:y.jsx("p",{children:"Not helpful"})})]})]})},qP=_i(["relative w-fit p-4 max-w-[95%]","after:absolute after:content-[''] after:w-4 after:h-2 after:-bottom-0.5"],{variants:{variant:{bot:["bg-widget-bg-tertiary text-widget-text-primary rounded-r-md rounded-tl-md justify-self-start","dark:bg-widget-bg-tertiary dark:text-widget-text-primary","after:left-0 after:bg-widget-bg-tertiary dark:after:bg-widget-bg-tertiary after:-skew-y-[30deg] after:rounded-bl-sm","[&_a]:underline [&_a]:text-indigo-600 hover:[&_a]:text-indigo-800","dark:[&_a]:text-blue-400 dark:hover:[&_a]:text-blue-300","[&_pre]:mt-4"],user:["bg-telnyx-green rounded-l-md rounded-tr-md justify-self-end","after:right-0 after:bg-telnyx-green after:skew-y-[30deg] after:rounded-br-sm"]},state:{complete:"",loading:"rounded-bl-md animate-shadow-grow border-[0.5px] border-telnyx-green/60 ring-1 ring-inset ring-telnyx-green/60 before:hidden! after:hidden! bg-white/30 dark:bg-gray-800/30",streaming:"",error:["max-w-full after:hidden! rounded-md","bg-red-100/70! text-red-600 text-justify text-sm border-2 border-red-400","dark:bg-red-900/30! dark:text-red-400 dark:border-red-600"]}},defaultVariants:{variant:"bot",state:"complete"}}),YP=({variant:e,state:t})=>({initial:{opacity:t==="loading"?.7:0,x:e==="bot"?0:48,y:e==="bot"?0:24,scale:t==="loading"?.9:.6},animate:{opacity:1,x:0,y:0,scale:1,transition:{duration:.3}},exit:{opacity:0,x:e==="bot"?0:48,y:e==="bot"?0:24,scale:t==="loading"?.9:.6,transition:{duration:.2}}}),KP=({variant:e,state:t,children:n})=>y.jsx(oe.div,{initial:"initial",animate:"animate",exit:"exit",variants:YP({variant:e,state:t}),className:qP({variant:e,state:t}),children:n}),XP=_i(["max-w-full max-h-[90vh] overflow-y-auto p-6 space-y-2","scrollbar scrollbar-w-1 scrollbar-thumb-rounded-full scrollbar-track-transparent"],{variants:{variant:{bot:["scrollbar-thumb-telnyx-green scrollbar-track-telnyx-dark-cream","[&_a]:underline [&_a]:text-indigo-600 hover:[&_a]:text-indigo-800","[&_pre]:mt-4!"],user:["scrollbar-thumb-telnyx-dark-cream scrollbar-track-telnyx-green"]}},defaultVariants:{variant:"bot"}}),ZP=_i(["flex items-center mb-2 gap-1"],{variants:{variant:{bot:["justify-self-start"],user:["justify-self-end flex-row-reverse"]}},defaultVariants:{variant:"bot"}}),Ab=O.memo(({variant:e,children:t,state:n,handleRetry:r,isFirstMessage:a,timestamp:i,feedbackId:o})=>{const s=Y(E=>E.endpoint),l=cI(i),c=Y(E=>E.numMessagesExpanded),u=Y(E=>E.setNumMessagesExpanded),d=Y(E=>E.botState),[p,f]=O.useState(ft.COLLAPSED),g=O.useRef(null),b=O.useCallback(()=>{f(ft.EXPANDED),u(c+1),document.body.style.overflow="hidden"},[c,u,f]),h=O.useCallback(()=>{f(ft.COLLAPSED),u(c-1),document.body.style.overflow="auto"},[c,u,f]),m=()=>{if(n==="streaming"||n==="complete")return y.jsx(jP,{state:n,children:t});if(n==="error")return y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx("p",{children:t}),d==="retrying"&&y.jsx(JP,{}),d==="error"&&y.jsx(QP,{onClick:r})]});if(n==="loading")return s===jr.TAIA?y.jsx(hO,{isLoaded:!1,progressMessage:t},`loading-${t}`):y.jsx("div",{className:"flex items-center gap-3",children:y.jsx(pO,{size:24,spokeWidth:2,animationDuration:4})})};return y.jsxs(y.Fragment,{children:[y.jsx(Rt,{mode:"wait",children:p===ft.EXPANDED&&y.jsxs(Vl,{targetMountContainer:document.body,children:[y.jsx(oe.div,{initial:!1,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/60 h-full w-full z-[5000]",onClick:b},"expanded-message-background"),y.jsx(oe.div,{initial:!1,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9},className:"fixed inset-0 z-[5000] grid place-items-center p-4",onClick:E=>E.stopPropagation(),children:y.jsx("div",{ref:g,className:J("w-[60%] max-w-full bg-transparent rounded-lg p-2",e==="bot"?"bg-widget-bg-tertiary dark:bg-widget-bg-tertiary":"bg-telnyx-green"),children:y.jsxs("div",{className:XP({variant:e}),children:[y.jsx($P,{variant:e,textToCopy:t,onCloseClick:h}),m()]})})},"expanded-message")]})}),y.jsx(KP,{variant:e,state:n,children:m()}),y.jsxs("div",{className:ZP({variant:e}),children:[y.jsx("span",{className:J("text-stone-600 text-sm",e==="bot"?"mr-1":"ml-1"),children:l}),!a&&n==="complete"&&y.jsxs(y.Fragment,{children:[y.jsx(gv,{onClick:b,isExpanded:p===ft.EXPANDED}),y.jsx(Gl,{textToCopy:t}),!!o&&y.jsx(WP,{feedbackId:o})]})]})]})}),QP=({onClick:e})=>y.jsx("span",{className:"flex w-full justify-center text-sm",children:y.jsx("button",{className:J("py-1.5 px-4 shadow-sm rounded-full","text-xs text-white ","bg-red-600 hover:bg-red-700","hover:cursor-pointer hover:scale-105 transition-all duration-300 active:scale-95"),onClick:e,children:"Retry"})}),JP=()=>y.jsx("div",{className:"flex w-full justify-center text-sm",children:y.jsxs("span",{className:"text-xs text-white bg-red-600 rounded-full p-1.5 flex items-center gap-1",children:["Retrying",y.jsx(WE,{className:"size-4 animate-spin"})]})}),eB=e=>y.jsx("svg",{viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:e.ref,...e,children:y.jsx("path",{d:"M0 68.5714C0 30.5714 30.5714 0 68.5714 0H91.4286C129.429 0 160 30.5714 160 68.5714V160H68.5714C30.5714 160 0 129.429 0 91.4286V68.5714Z",fill:"black"})}),tB={[st.OPEN]:({numMessagesExpanded:e,position:t,isCustomMounted:n})=>{const r=n?0:-28,a=n?0:-28,[i,o]=Rb(t,r,a);return{opacity:1,clipPath:`circle(${e===0?768:4320}px at calc(${i}) calc(${o}))`,transition:{type:"spring",stiffness:30,restDelta:5}}},[st.CLOSED]:({position:e,isCustomMounted:t})=>{const n=t?0:16,r=t?0:-28,a=t?0:-28,[i,o]=Rb(e,r,a);return{clipPath:`circle(${n}px at calc(${i}) calc(${o}))`,transition:{delay:.1,type:"spring",stiffness:900,damping:160}}}};function Rb(e,t=0,n=0){const r=t>0?"+":"-",a=n>0?"+":"-",i=Math.abs(t),o=Math.abs(n);switch(e){case Ee.TOP_LEFT:return[`0% ${r} ${i}px`,`0% ${a} ${o}px`];case Ee.TOP:return[`50% ${r} ${i}px`,`0% ${a} ${o}px`];case Ee.TOP_RIGHT:return[`100% ${r} ${i}px`,`0% ${a} ${o}px`];case Ee.RIGHT:return[`100% ${r} ${i}px`,`50% ${a} ${o}px`];case Ee.BOTTOM_RIGHT:return[`100% ${r} ${i}px`,`100% ${a} ${o}px`];case Ee.BOTTOM:return[`50% ${r} ${i}px`,`100% ${a} ${o}px`];case Ee.BOTTOM_LEFT:return[`0% ${r} ${i}px`,`100% ${a} ${o}px`];case Ee.LEFT:return[`0% ${r} ${i}px`,`50% ${a} ${o}px`]}}const nB=_i("rounded-xl bg-black shadow-lg z-[9999]",{variants:{mountType:{[Nr.CUSTOM]:"absolute",[Nr.DEFAULT]:"fixed bottom-4! right-4!"},mountPositionAndDirection:{[`${be.TOP_LEFT}-${ue.INSIDE}`]:"top-0 left-0",[`${be.TOP_LEFT}-${ue.OUTSIDE}`]:"bottom-full right-full",[`${be.TOP}-${ue.INSIDE}`]:"top-0 left-1/2 -translate-x-1/2",[`${be.TOP}-${ue.OUTSIDE}`]:"bottom-full left-1/2 -translate-x-1/2",[`${be.TOP_RIGHT}-${ue.INSIDE}`]:"top-0 right-0",[`${be.TOP_RIGHT}-${ue.OUTSIDE}`]:"bottom-full left-full",[`${be.RIGHT}-${ue.INSIDE}`]:"top-1/2 -translate-y-1/2 right-0 ",[`${be.RIGHT}-${ue.OUTSIDE}`]:"top-1/2 -translate-y-1/2 left-full",[`${be.BOTTOM_RIGHT}-${ue.INSIDE}`]:"bottom-0 right-0",[`${be.BOTTOM_RIGHT}-${ue.OUTSIDE}`]:"top-full left-full",[`${be.BOTTOM}-${ue.INSIDE}`]:"bottom-0 left-1/2 -translate-x-1/2",[`${be.BOTTOM}-${ue.OUTSIDE}`]:"top-full left-1/2 -translate-x-1/2",[`${be.BOTTOM_LEFT}-${ue.INSIDE}`]:"bottom-0 left-0",[`${be.BOTTOM_LEFT}-${ue.OUTSIDE}`]:"top-full right-full",[`${be.LEFT}-${ue.INSIDE}`]:"top-1/2 -translate-y-1/2 left-0",[`${be.LEFT}-${ue.OUTSIDE}`]:"top-1/2 -translate-y-1/2 right-full"}},defaultVariants:{mountPositionAndDirection:`${be.BOTTOM_RIGHT}-${ue.INSIDE}`,mountType:Nr.DEFAULT}}),rB={[je.INITIAL]:{height:"78%",borderBottomRightRadius:"12px",borderBottomLeftRadius:"12px",borderTopLeftRadius:"24px",borderTopRightRadius:"24px"},[je.USER_HAS_TYPED]:{height:"94%",borderBottomRightRadius:"12px",borderBottomLeftRadius:"12px",borderTopLeftRadius:"16px",borderTopRightRadius:"16px"}},aB={[je.INITIAL]:{height:"22%"},[je.USER_HAS_TYPED]:{height:"6%"}},iB=({chatAPIUrl:e,feedbackAPIUrl:t=rt.FEEDBACK_API_URL,user:n,onHelpAction:r,open:a,setOpen:i,placeholders:o=rt.DEFAULT_PLACEHOLDERS,mountPosition:s=be.BOTTOM_RIGHT,mountDirection:l=ue.INSIDE,offsetX:c=0,offsetY:u=0,icon:d=eB,theme:p=Cn.LIGHT,firstMessage:f})=>{const g=Y(C=>C.endpoint),b=yI(p),h=e||rt.CHAT_API_URL,m=!!e,E=Y(C=>C.setUser),S=Y(C=>C.setOnHelpAction),T=Y(C=>C.setChatAPIUrl);Y(C=>C.setEndpoint);const A=Y(C=>C.setFeedbackAPIUrl),v=Y(C=>C.setPlaceholders),_=Y(C=>C.question),N=Y(C=>C.setQuestion),D=Y(C=>C.messages),R=Y(C=>C.dispatchMessage),F=Y(C=>C.widgetVisualState),P=Y(C=>C.chatVisualState),U=Y(C=>C.setChatVisualState),z=Y(C=>C.numMessagesExpanded),B=Y(C=>C.setSetCustomOpen),H=Y(C=>C.openWidget),j=Y(C=>C.closeWidget),M=F===st.OPEN,X=i?Nr.CUSTOM:Nr.DEFAULT,x=`${s}-${l}`,L=bI[s][l],$=!!i,k=Y(C=>C.botState),Z=Y(C=>C.setBotState),ce=Y(C=>C.numRetries),ie=Y(C=>C.setNumRetries),K=Y(C=>C.retryTimeoutId),pe=Y(C=>C.setRetryTimeoutId),ge=Y(C=>C.chatStartTimestamp),ve=vE[g].firstMessage,Oe=f!==void 0?f:ve,{chat:Ke,lastMessage:Ge}=mI(),[Jt,Sn]=O.useState(!0),vn=O.useRef(null),jt=O.useRef(null),ct=O.useRef(null),_t=hI(ct),ur=O.useRef(`telnyx-widget-fonts-${Math.random().toString(36).substring(2,9)}`);O.useEffect(()=>{const C=ur.current;if(C){if(!document.getElementById(C)){const V=document.createElement("style");V.id=C,V.textContent=EI,document.head.appendChild(V)}return()=>{const V=document.getElementById(C);V&&V.remove()}}},[ur.current]),O.useEffect(()=>{if(!n){console.error("User info is required. Please provide a user object.");return}if(!n.id){console.error("User ID is required.");return}E(n)},[n,E]),O.useEffect(()=>{o.length>0&&v(o)},[o,v]),O.useEffect(()=>{r!==void 0&&S(r)},[r,S]),O.useEffect(()=>{T(h,m)},[h,m,T]),O.useEffect(()=>{t&&A(t)},[t,A]),O.useEffect(()=>{a!==void 0&&(a?H():j())},[a,H,j]),O.useEffect(()=>{i!==void 0&&B(i)},[i,B]),O.useEffect(()=>{var C;M&&((C=jt.current)==null||C.focus())},[M]);const dr=O.useCallback(()=>{const C=D[D.length-2];if(C.type==="user"&&C.message.length>0){N(C.message),Z("retrying");const V=setTimeout(async()=>{try{R({type:Le.DELETE_LAST_MESSAGE_PAIR,payload:null}),ie(ce+1),await Ke(C.message)}catch(te){console.error("[Retry Logic] Chat failed during retry:",te)}},rt.RETRY_INTERVAL);pe(V)}},[D,Ke,ce,R]);O.useEffect(()=>{k==="error"&&(K||(ce<rt.MAX_RETRIES?dr():ce>=rt.MAX_RETRIES&&console.error("[Retry Logic] Max retries reached, stopping retry attempts")))},[k,ce,K,dr]),O.useEffect(()=>{const C=ct.current;C&&Jt&&(Ge==null?void 0:Ge.message.length)>0&&(C.scrollTop=C.scrollHeight)},[Ge==null?void 0:Ge.message.length,Jt]);const en=O.useCallback(()=>{const C=jt.current;C&&(C.style.height="auto",C.style.height=`${C.scrollHeight}px`)},[]),qi=C=>{en(),U(je.USER_HAS_TYPED),N(C.target.value)};O.useEffect(()=>{D.length===0&&requestAnimationFrame(en)},[D.length,en]);const Ea=async()=>{N(""),requestAnimationFrame(en),await Ke(_);const C=ct.current;C&&C.scrollTo({top:C.scrollHeight,behavior:"smooth"})},Yi=()=>{const C=ct.current;if(!C)return;const V=Math.abs(C.scrollHeight-C.clientHeight-C.scrollTop)<=5;Sn(V)};return y.jsx(Vl,{ref:vn,children:y.jsx("div",{"data-widget-theme":b,children:y.jsx(Lw,{delayDuration:75,skipDelayDuration:0,children:y.jsxs(Rt,{children:[y.jsxs(oe.div,{initial:!1,animate:F,variants:tB,custom:{numMessagesExpanded:z,position:L,isCustomMounted:$},className:J(nB({mountType:X,mountPositionAndDirection:x})),style:{height:rt.WIDGET_HEIGHT,width:rt.WIDGET_WIDTH,translateX:c,translateY:u},children:[y.jsx(oe.div,{initial:!1,animate:P,className:"px-4 pt-4 rounded-t-xl",style:{backgroundColor:"var(--widget-bg-primary)"},variants:aB,children:y.jsx(cO,{className:"flex flex-col justify-between h-full pb-4",children:y.jsx(u_,{resetChatCustomHandler:en})})}),y.jsxs(oe.div,{initial:!1,animate:P,className:J("flex flex-col justify-between rounded-b-xl rounded-t-3xl p-4 pb-1.5","relative overflow-hidden"),style:{backgroundColor:"var(--widget-bg-secondary)"},variants:rB,children:[_t&&y.jsxs(y.Fragment,{children:[y.jsx(mh,{containerRef:ct,direction:"up"}),y.jsx(mh,{containerRef:ct,direction:"down"})]}),y.jsxs("div",{ref:ct,className:J("grid grid-cols-1 gap-2 content-start h-full overflow-y-auto overflow-x-hidden py-2 px-1 relative","scrollbar scrollbar-w-1 scrollbar-thumb-rounded-full scrollbar-track-transparent","[&::-webkit-scrollbar-thumb]:bg-widget-bg-tertiary dark:[&::-webkit-scrollbar-thumb]:bg-widget-bg-tertiary"),onScroll:Yi,children:[Oe&&y.jsx(Ab,{variant:"bot",isFirstMessage:!0,state:"complete",timestamp:ge,children:Oe},"bot-initial"),D.map(C=>y.jsx(Ab,{variant:C.type,timestamp:C.timestamp,state:C.state,feedbackId:C.feedback_id,handleRetry:dr,children:C.message},C.id))]}),y.jsx(sO,{ref:jt,question:_,handleInput:qi,handleSendMessage:Ea})]})]},"widget-container"),!$&&y.jsx(R_,{question:_,handleSendMessage:Ea,triggerIcon:d},"chat-trigger-button")]})})})})};exports.ChatWidget=iB;exports.Tooltip=Bt;exports.TooltipContent=At;exports.TooltipProvider=Lw;exports.TooltipTrigger=Ut;
2733
2771
  //# sourceMappingURL=index.cjs.map