@zappway/embeds 2.0.3 → 2.0.4
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/chatbox/index.global.js +69 -69
- package/dist/chatbox/index.js +3 -3
- package/dist/chatbox/legacy.js +1 -1
- package/dist/form/index.js +2 -2
- package/dist/pdfviewer/index.js +3 -3
- package/dist/zappflux/index.js +1 -1
- package/dist/zappflux/web.global.js +1 -1
- package/dist/zappflux/web.js +1 -1
- package/package.json +3 -3
package/dist/zappflux/web.js
CHANGED
|
@@ -15,7 +15,7 @@ but received
|
|
|
15
15
|
<path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
|
|
16
16
|
<path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
|
|
17
17
|
</g>
|
|
18
|
-
</svg>`,r.body.appendChild(n)};function Gf(e,t){let{state:r,send:n,prop:o,scope:i,computed:a}=e,s=r.hasTag("focus"),l=a("isDisabled"),c=!!o("readOnly"),u=!!o("required"),f=r.matches("scrubbing"),p=a("isValueEmpty"),m=o("invalid")!==void 0?!!o("invalid"):a("isOutOfRange"),b=l||!a("canIncrement")||c,y=l||!a("canDecrement")||c,x=o("translations");return{focused:s,invalid:m,empty:p,value:a("formattedValue"),valueAsNumber:a("valueAsNumber"),setValue(v){n({type:"VALUE.SET",value:v})},clearValue(){n({type:"VALUE.CLEAR"})},increment(){n({type:"VALUE.INCREMENT"})},decrement(){n({type:"VALUE.DECREMENT"})},setToMax(){n({type:"VALUE.SET",value:o("max")})},setToMin(){n({type:"VALUE.SET",value:o("min")})},focus(){Sn(i)?.focus()},getRootProps(){return t.element({id:Jx(i),...Tn.root.attrs,dir:o("dir"),"data-disabled":oe(l),"data-focus":oe(s),"data-invalid":oe(m),"data-scrubbing":oe(f)})},getLabelProps(){return t.label({...Tn.label.attrs,dir:o("dir"),"data-disabled":oe(l),"data-focus":oe(s),"data-invalid":oe(m),"data-required":oe(u),"data-scrubbing":oe(f),id:tv(i),htmlFor:Li(i),onClick(){we(()=>{Ad(Sn(i))})}})},getControlProps(){return t.element({...Tn.control.attrs,dir:o("dir"),role:"group","aria-disabled":l,"data-focus":oe(s),"data-disabled":oe(l),"data-invalid":oe(m),"data-scrubbing":oe(f),"aria-invalid":zr(m)})},getValueTextProps(){return t.element({...Tn.valueText.attrs,dir:o("dir"),"data-disabled":oe(l),"data-invalid":oe(m),"data-focus":oe(s),"data-scrubbing":oe(f)})},getInputProps(){return t.input({...Tn.input.attrs,dir:o("dir"),name:o("name"),form:o("form"),id:Li(i),role:"spinbutton",defaultValue:a("formattedValue"),pattern:o("formatOptions")?void 0:o("pattern"),inputMode:o("inputMode"),"aria-invalid":zr(m),"data-invalid":oe(m),disabled:l,"data-disabled":oe(l),readOnly:c,required:o("required"),autoComplete:"off",autoCorrect:"off",spellCheck:"false",type:"text","aria-roledescription":"numberfield","aria-valuemin":o("min"),"aria-valuemax":o("max"),"aria-valuenow":Number.isNaN(a("valueAsNumber"))?void 0:a("valueAsNumber"),"aria-valuetext":a("valueText"),"data-scrubbing":oe(f),onFocus(){n({type:"INPUT.FOCUS"})},onBlur(){n({type:"INPUT.BLUR"})},onInput(v){let C=es(v.currentTarget,i);n({type:"INPUT.CHANGE",target:v.currentTarget,hint:"set",selection:C})},onBeforeInput(v){try{let{selectionStart:C,selectionEnd:A,value:w}=v.currentTarget,E=w.slice(0,C)+(v.data??"")+w.slice(A);a("parser").isValidPartialNumber(E)||v.preventDefault()}catch{}},onKeyDown(v){if(v.defaultPrevented||c||ub(v))return;let C=pb(v)*o("step"),w={ArrowUp(){n({type:"INPUT.ARROW_UP",step:C}),v.preventDefault()},ArrowDown(){n({type:"INPUT.ARROW_DOWN",step:C}),v.preventDefault()},Home(){$a(v)||(n({type:"INPUT.HOME"}),v.preventDefault())},End(){$a(v)||(n({type:"INPUT.END"}),v.preventDefault())},Enter(E){let T=es(E.currentTarget,i);n({type:"INPUT.ENTER",selection:T})}}[v.key];w?.(v)}})},getDecrementTriggerProps(){return t.button({...Tn.decrementTrigger.attrs,dir:o("dir"),id:zf(i),disabled:y,"data-disabled":oe(y),"aria-label":x.decrementLabel,type:"button",tabIndex:-1,"aria-controls":Li(i),"data-scrubbing":oe(f),onPointerDown(v){y||xi(v)&&(n({type:"TRIGGER.PRESS_DOWN",hint:"decrement",pointerType:v.pointerType}),v.pointerType==="mouse"&&v.preventDefault(),v.pointerType==="touch"&&v.currentTarget?.focus({preventScroll:!0}))},onPointerUp(v){n({type:"TRIGGER.PRESS_UP",hint:"decrement",pointerType:v.pointerType})},onPointerLeave(){y||n({type:"TRIGGER.PRESS_UP",hint:"decrement"})}})},getIncrementTriggerProps(){return t.button({...Tn.incrementTrigger.attrs,dir:o("dir"),id:Vf(i),disabled:b,"data-disabled":oe(b),"aria-label":x.incrementLabel,type:"button",tabIndex:-1,"aria-controls":Li(i),"data-scrubbing":oe(f),onPointerDown(v){b||!xi(v)||(n({type:"TRIGGER.PRESS_DOWN",hint:"increment",pointerType:v.pointerType}),v.pointerType==="mouse"&&v.preventDefault(),v.pointerType==="touch"&&v.currentTarget?.focus({preventScroll:!0}))},onPointerUp(v){n({type:"TRIGGER.PRESS_UP",hint:"increment",pointerType:v.pointerType})},onPointerLeave(v){n({type:"TRIGGER.PRESS_UP",hint:"increment",pointerType:v.pointerType})}})},getScrubberProps(){return t.element({...Tn.scrubber.attrs,dir:o("dir"),"data-disabled":oe(l),id:Qx(i),role:"presentation","data-scrubbing":oe(f),onMouseDown(v){if(l||!xi(v))return;let C=kr(v),w=Ie(v.currentTarget).devicePixelRatio;C.x=C.x-To(7.5,w),C.y=C.y-To(7.5,w),n({type:"SCRUBBER.PRESS_DOWN",point:C}),v.preventDefault(),we(()=>{Ad(Sn(i))})},style:{cursor:l?void 0:"ew-resize"}})}}}d();d();d();d();var Hf=new Map,Wf=!1;try{Wf=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}var ic=!1;try{ic=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}var sv={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}},ac=class{constructor(t,r={}){this.numberFormatter=Q1(t,r),this.options=r}format(t){let r="";if(!Wf&&this.options.signDisplay!=null?r=eR(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!ic){let{unit:n,unitDisplay:o="short",locale:i}=this.resolvedOptions();if(!n)return r;let a=sv[n]?.[o];r+=a[i]||a.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Wf&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ic&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}};function Q1(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!ic){let{unit:i,unitDisplay:a="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!sv[i]?.[a])throw new Error(`Unsupported unit ${i} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Hf.has(n))return Hf.get(n);let o=new Intl.NumberFormat(e,t);return Hf.set(n,o),o}function eR(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(r)}}d();var tR=new RegExp("^.*\\(.*\\).*$"),rR=["latn","arab","hanidec","deva","beng","fullwide"],Di=class{constructor(t,r={}){this.locale=t,this.options=r}parse(t){return qf(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,n){return qf(this.locale,this.options,t).isValidPartialNumber(t,r,n)}getNumberingSystem(t){return qf(this.locale,this.options,t).options.numberingSystem}},lv=new Map;function qf(e,t,r){let n=cv(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let o of rR)if(o!==n.options.numberingSystem){let i=cv(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(r))return i}}return n}function cv(e,t){let r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),n=lv.get(r);return n||(n=new Kf(e,t),lv.set(r,n)),n}var Kf=class{constructor(t,r={}){this.locale=t,r.roundingIncrement!==1&&r.roundingIncrement!=null&&(r.maximumFractionDigits==null&&r.minimumFractionDigits==null?(r.maximumFractionDigits=0,r.minimumFractionDigits=0):r.maximumFractionDigits==null?r.maximumFractionDigits=r.minimumFractionDigits:r.minimumFractionDigits==null&&(r.minimumFractionDigits=r.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=nR(t,this.formatter,this.options,r),this.options.style==="percent"&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(t){let r=this.formatter.resolvedOptions().useGrouping,n=this.sanitize(t);if(!r&&this.symbols.group&&n.includes(this.symbols.group))return NaN;if(this.symbols.group&&(n=n.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let i=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let a=n.indexOf(".");a===-1&&(a=n.length),n=n.replace(".",""),a-2===0?n=`0.${n}`:a-2===-1?n=`0.0${n}`:a-2===-2?n="0.00":n=`${n.slice(0,a-2)}.${n.slice(a-2)}`,i>-1&&(n=`-${n}`)}let o=n?+n:NaN;if(isNaN(o))return NaN;if(this.options.style==="percent"){let i={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new Di(this.locale,i).parse(new ac(this.locale,i).format(o))}return this.options.currencySign==="accounting"&&tR.test(t)&&(o=-1*o),o}sanitize(t){let r=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(n=>n.unit===t)?this.symbols.noNumeralUnits.find(n=>n.unit===t).value.toString():(t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=Uo(t,",",this.symbols.decimal),t=Uo(t,"،",this.symbols.decimal)),this.symbols.group&&r&&(t=Uo(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&r&&(t=Uo(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&r&&(t=Uo(t," ",this.symbols.group),t=Uo(t,/\u00A0/g,this.symbols.group)),t)}isValidPartialNumber(t,r=-1/0,n=1/0){let o=this.formatter.resolvedOptions().useGrouping;return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&n>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&o&&(t=Uo(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}},uv=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),dv=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function nR(e,t,r,n){let o=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),i=o.formatToParts(-10000.111),a=o.formatToParts(10000.111),s=dv.map(T=>o.formatToParts(T)),l=s.map((T,R)=>{let I=T.find(N=>N.type==="unit");return I&&!T.some(N=>N.type==="integer"||N.type==="fraction")?{unit:I.value,value:dv[R]}:null}).filter(T=>!!T),c=i.find(T=>T.type==="minusSign")?.value??"-",u=a.find(T=>T.type==="plusSign")?.value;!u&&(n?.signDisplay==="exceptZero"||n?.signDisplay==="always")&&(u="+");let p=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(T=>T.type==="decimal")?.value,m=i.find(T=>T.type==="group")?.value,b=i.filter(T=>!uv.has(T.type)).map(T=>fv(T.value)),y=s.flatMap(T=>T.filter(R=>!uv.has(R.type)).map(R=>fv(R.value))),x=[...new Set([...b,...y])].sort((T,R)=>R.length-T.length),v=x.length===0?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${x.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),C=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),A=new Map(C.map((T,R)=>[T,R])),w=new RegExp(`[${C.join("")}]`,"g");return{minusSign:c,plusSign:u,decimal:p,group:m,literals:v,numeral:w,numerals:C,index:T=>String(A.get(T)),noNumeralUnits:l}}function Uo(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function fv(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var pv=(e,t={})=>new Intl.NumberFormat(e,t),mv=(e,t={})=>new Di(e,t),sc=(e,t)=>{let{prop:r,computed:n}=t;return r("formatOptions")?e===""?Number.NaN:n("parser").parse(e):parseFloat(e)},Xn=(e,t)=>{let{prop:r,computed:n}=t;return Number.isNaN(e)?"":r("formatOptions")?n("formatter").format(e):e.toString()},gv=(e,t)=>{let r=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(r=.01),r};var{choose:oR,guards:iR,createMachine:aR}=xl(),{not:Yf,and:hv}=iR,Zf=aR({props({props:e}){let t=gv(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:r}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(n){let o=r(),i=sc(n,{computed:o,prop:e});e("onValueChange")?.({value:n,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(n){return n?`x:${n.x}, y:${n.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:r})=>sc(e.get("value"),{computed:t,prop:r}),formattedValue:({computed:e,prop:t})=>Xn(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>Oh(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>Rh(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!Nh(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:Ia(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>pv(e,t)),parser:Ia(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>mv(e,t))},watch({track:e,action:t,context:r,computed:n,prop:o}){e([()=>r.get("value"),()=>o("locale"),()=>JSON.stringify(o("formatOptions"))],()=>{t(["syncInputElement"])}),e([()=>n("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>r.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:hv("clampValueOnBlur",Yf("isValueEmpty"),Yf("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]},{guard:Yf("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid","invokeOnValueCommit"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:oR([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:hv("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isValueEmpty:({computed:e})=>e("isValueEmpty"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){let t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){let t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){let r=Sn(t);return gb(r,{onFieldsetDisabledChange(n){e.set("fieldsetDisabled",n)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){let r=e.get("scrubberCursorPoint");return nv(t,r)},preventTextSelection({scope:e}){return ov(e)},trackButtonDisabled({context:e,scope:t,send:r}){let n=e.get("hint"),o=rv(t,n);return _l(o,{attributes:["disabled"],callback(){r({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:r}){let n=Sn(e);if(!n||!e.isActiveElement(n)||!r("allowMouseWheel"))return;function o(i){i.preventDefault();let a=Math.sign(i.deltaY)*-1;a===1?t({type:"VALUE.INCREMENT"}):a===-1&&t({type:"VALUE.DECREMENT"})}return Ae(n,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!kl())return Cb(e.getDoc())},trackMousemove({scope:e,send:t,context:r,computed:n}){let o=e.getDoc();function i(s){let l=r.get("scrubberCursorPoint"),c=n("isRtl"),u=iv(e,{point:l,isRtl:c,event:s});u.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:u.hint,point:u.point})}function a(){t({type:"SCRUBBER.POINTER_UP"})}return cr(Ae(o,"mousemove",i,!1),Ae(o,"mouseup",a,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;let r=Sn(e);e.isActiveElement(r)||we(()=>r?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:r,computed:n}){let o=Mh(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=Ur(o,r("min"),r("max"))),e.set("value",Xn(o,{computed:n,prop:r}))},decrement({context:e,event:t,prop:r,computed:n}){let o=$h(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=Ur(o,r("min"),r("max"))),e.set("value",Xn(o,{computed:n,prop:r}))},setClampedValue({context:e,prop:t,computed:r}){let n=Ur(r("valueAsNumber"),t("min"),t("max"));e.set("value",Xn(n,{computed:r,prop:t}))},setRawValue({context:e,event:t,prop:r,computed:n}){let o=sc(t.value,{computed:n,prop:r});r("allowOverflow")||(o=Ur(o,r("min"),r("max"))),e.set("value",Xn(o,{computed:n,prop:r}))},setValue({context:e,event:t}){let r=t.target?.value??t.value;e.set("value",r)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:r}){let n=Xn(t("max"),{computed:r,prop:t});e.set("value",n)},decrementToMin({context:e,prop:t,computed:r}){let n=Xn(t("min"),{computed:r,prop:t});e.set("value",n)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:r}){if(r.type==="INPUT.CHANGE")return;let n=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:n,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnValueCommit({computed:e,prop:t}){t("onValueCommit")?.({value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:r,scope:n}){let o=t.type.endsWith("CHANGE")?e.get("value"):r("formattedValue"),i=Sn(n),a=t.selection??es(i,n);we(()=>{mb(i,o),Xx(i,a,n)})},setFormattedValue({context:e,computed:t,action:r}){e.set("value",t("formattedValue")),r(["syncInputElement"])},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){let r=jf(t),n=e.get("scrubberCursorPoint");!r||!n||(r.style.transform=`translate3d(${n.x}px, ${n.y}px, 0px)`)}}}});var[bv,Cn]=ze({hookName:"useNumberInputContext",providerName:"<NumberInputProvider />"}),yv=e=>e.children(Cn()),wv=e=>{let t=Cn(),r=j(()=>t().getControlProps(),e);return g(W.div,r)},xv=e=>{let t=Cn(),r=j(()=>t().getDecrementTriggerProps(),e);return g(W.button,r)},vv=e=>{let t=Cn(),r=j(()=>t().getIncrementTriggerProps(),e);return g(W.button,r)},Tv=e=>{let t=Cn(),r=j(()=>t().getInputProps(),e),n=mr();return g(W.input,le({get"aria-describedby"(){return n?.().ariaDescribedby}},r))},Sv=e=>{let t=Cn(),r=j(()=>t().getLabelProps(),e);return g(W.label,r)},lc=e=>{let t=ct(),r=fr(),n=xt(),o=mr(),i=ee(()=>({id:t,ids:{label:o?.().ids.label,input:o?.().ids.control},disabled:o?.().disabled,readOnly:o?.().readOnly,required:o?.().required,invalid:o?.().invalid,dir:r().dir,locale:r().locale,getRootNode:n().getRootNode,...Nt(e)})),a=Vt(Zf,i);return ee(()=>Gf(a,zt))},Cv=e=>{let[t,r]=De()(e,["allowMouseWheel","allowOverflow","clampValueOnBlur","defaultValue","disabled","focusInputOnChange","form","formatOptions","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueCommit","onValueInvalid","pattern","readOnly","required","spinOnPress","step","translations","value"]),n=lc(t),o=j(()=>n().getRootProps(),r);return g(bv,{value:n,get children(){return g(W.div,o)}})},kv=e=>{let[{value:t},r]=De()(e,["value"]),n=j(()=>t().getRootProps(),r);return g(bv,{value:t,get children(){return g(W.div,n)}})},Ev=e=>{let t=Cn(),r=j(()=>t().getScrubberProps(),e);return g(W.div,r)},Pv=e=>{let t=Cn(),r=j(()=>t().getValueTextProps(),e);return g(W.span,r)},Jn={};Lt(Jn,{Context:()=>yv,Control:()=>wv,DecrementTrigger:()=>xv,IncrementTrigger:()=>vv,Input:()=>Tv,Label:()=>Sv,Root:()=>Cv,RootProvider:()=>kv,Scrubber:()=>Ev,ValueText:()=>Pv});d();d();d();var lR=ot("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Qn=lR.build();d();d();var Xf=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,Jf=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,cc=e=>e.ids?.content??`dialog:${e.id}:content`,uc=(e,t)=>{let r=e.ids?.trigger;return r!=null?nt(r)?r(t):r:t?`dialog:${e.id}:trigger:${t}`:`dialog:${e.id}:trigger`},dc=e=>e.ids?.title??`dialog:${e.id}:title`,fc=e=>e.ids?.description??`dialog:${e.id}:description`,Qf=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,ts=e=>e.getById(cc(e)),Iv=e=>e.getById(Xf(e)),_v=e=>e.getById(Jf(e)),ep=e=>e.getById(uc(e)),Av=e=>e.getById(dc(e)),Rv=e=>e.getById(fc(e)),Ov=e=>e.getById(Qf(e)),pc=e=>Hn(e.getRootNode(),`[data-scope="dialog"][data-part="trigger"][data-ownedby="${e.id}"]`),tp=(e,t)=>t==null?ep(e)??pc(e)[0]:e.getById(uc(e,t));function rp(e,t){let{state:r,send:n,context:o,prop:i,scope:a}=e,s=i("aria-label"),l=r.matches("open"),c=o.get("triggerValue");return{open:l,setOpen(u){r.matches("open")!==u&&n({type:u?"OPEN":"CLOSE"})},triggerValue:c,setTriggerValue(u){n({type:"TRIGGER_VALUE.SET",value:u})},getTriggerProps(u={}){let{value:f}=u,p=f==null?!1:c===f;return t.button({...Qn.trigger.attrs,dir:i("dir"),id:uc(a,f),"data-ownedby":a.id,"data-value":f,"aria-haspopup":"dialog",type:"button","aria-expanded":f==null?l:l&&p,"data-state":l?"open":"closed","aria-controls":cc(a),"data-current":oe(p),onClick(m){if(m.defaultPrevented)return;let b=l&&f!=null&&!p;n({type:b?"TRIGGER_VALUE.SET":"TOGGLE",value:f})}})},getBackdropProps(){return t.element({...Qn.backdrop.attrs,dir:i("dir"),hidden:!l,id:Jf(a),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...Qn.positioner.attrs,dir:i("dir"),id:Xf(a),style:Vr({pointerEvents:!l||!i("modal")?"none":void 0})})},getContentProps(){let u=o.get("rendered");return t.element({...Qn.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:cc(a),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":i("modal"),"aria-label":s||void 0,"aria-labelledby":s||!u.title?void 0:dc(a),"aria-describedby":u.description?fc(a):void 0,style:Vr({pointerEvents:i("modal")?void 0:"auto"})})},getTitleProps(){return t.element({...Qn.title.attrs,dir:i("dir"),id:dc(a)})},getDescriptionProps(){return t.element({...Qn.description.attrs,dir:i("dir"),id:fc(a)})},getCloseTriggerProps(){return t.button({...Qn.closeTrigger.attrs,dir:i("dir"),id:Qf(a),type:"button",onClick(u){u.defaultPrevented||(u.stopPropagation(),n({type:"CLOSE"}))}})}}}d();var np=tr({props({props:e,scope:t}){let r=e.role==="alertdialog",n=r?()=>Ov(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:o&&!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:n,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e,prop:t,scope:r}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(n){let o=t("onTriggerValueChange");if(!o)return;let i=tp(r,n);o({value:n,triggerElement:i})}}))}},watch({track:e,action:t,prop:r}){e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","setInitialFocus"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:r}){return ql(()=>ts(e),{type:"dialog",defer:!0,pointerBlocking:r("modal"),layerStyleTargets:[()=>_v(e),()=>Iv(e)],exclude:[ep(e),...pc(e)].filter(Boolean),onInteractOutside(o){r("onInteractOutside")?.(o),r("closeOnInteractOutside")||o.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onRequestDismiss:r("onRequestDismiss"),onEscapeKeyDown(o){r("onEscapeKeyDown")?.(o),r("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return $w(e.getDoc())},trapFocus({scope:e,prop:t,context:r}){return t("trapFocus")?rw(()=>ts(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:o=>{let i=t("finalFocusEl")?.();if(i)return i;let a=r.get("triggerValue");if(a){let l=tp(e,a);if(l)return l}let s=pc(e)[0];return s||o},getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?Lw(()=>[ts(e)],{defer:!0}):void 0}},actions:{setInitialFocus({prop:e,scope:t}){e("trapFocus")||we(()=>{Il({root:ts(t),getInitialEl:e("initialFocusEl")})?.focus({preventScroll:!0})})},checkRenderedElements({context:e,scope:t}){we(()=>{e.set("rendered",{title:!!Av(t),description:!!Rv(t)})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set("triggerValue",t.value)},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}});var[Lv,kn]=ze({hookName:"useDialogContext",providerName:"<DialogProvider />"}),Dv=e=>{let t=kn(),r=Fh(),n=Po(j(r,()=>({present:t().open}))),o=j(()=>t().getBackdropProps(),()=>n().presenceProps,e);return g(z,{get when(){return!n().unmounted},get children(){return g(W.div,le(o,{ref(i){var a=Gr(n().ref,e.ref);typeof a=="function"&&a(i)}}))}})},Mv=e=>{let t=kn(),r=j(()=>t().getCloseTriggerProps(),e);return g(W.button,r)},$v=e=>{let t=kn(),r=Wn(),n=j(()=>t().getContentProps(),()=>r().presenceProps,e);return g(z,{get when(){return!r().unmounted},get children(){return g(W.div,le(n,{ref(o){var i=Gr(r().ref,e.ref);typeof i=="function"&&i(o)}}))}})},Fv=e=>e.children(kn()),Bv=e=>{let t=kn(),r=j(()=>t().getDescriptionProps(),e);return g(W.div,r)},Uv=e=>{let t=kn(),r=Wn(),n=j(()=>t().getPositionerProps(),e);return g(z,{get when(){return!r().unmounted},get children(){return g(W.div,n)}})},Vv=e=>{let t=ct(),r=fr(),n=xt(),o=ee(()=>({id:t,dir:r().dir,getRootNode:n().getRootNode,...Nt(e)})),i=Vt(np,o);return ee(()=>rp(i,zt))},zv=e=>{let[t,r]=Ci(e),[n]=Pa(t),[o,i]=De()(r,["aria-label","closeOnEscape","closeOnInteractOutside","defaultOpen","finalFocusEl","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","open","persistentElements","preventScroll","restoreFocus","role","trapFocus","triggerValue","defaultTriggerValue","onTriggerValueChange"]),a=Vv(o),s=Po(j(t,()=>({present:a().open})));return g(Lv,{value:a,get children(){return g(Cd,{value:n,get children(){return g(ki,{value:s,get children(){return i.children}})}})}})},jv=e=>{let[t,r]=Ci(e),[n]=Pa(t),o=Po(j(t,()=>({present:r.value().open})));return g(Lv,{get value(){return r.value},get children(){return g(Cd,{value:n,get children(){return g(ki,{value:o,get children(){return r.children}})}})}})},Gv=e=>{let t=kn(),r=j(()=>t().getTitleProps(),e);return g(W.h2,r)},Hv=e=>{let[t,r]=De()(e,["value"]),n=kn(),o=Wn(),i=j(()=>n().getTriggerProps(t),()=>({"aria-controls":o().unmounted&&null}),r);return g(W.button,i)},eo={};Lt(eo,{Backdrop:()=>Dv,CloseTrigger:()=>Mv,Content:()=>$v,Context:()=>Fv,Description:()=>Bv,Positioner:()=>Uv,Root:()=>zv,RootProvider:()=>jv,Title:()=>Gv,Trigger:()=>Hv});d();d();d();d();var mc=ot("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger","progressText"),Ar=mc.build();d();d();var Wv=e=>e.ids?.root??`carousel:${e.id}`,qv=(e,t)=>e.ids?.item?.(t)??`carousel:${e.id}:item:${t}`,rs=e=>e.ids?.itemGroup??`carousel:${e.id}:item-group`,Kv=e=>e.ids?.nextTrigger??`carousel:${e.id}:next-trigger`,Yv=e=>e.ids?.prevTrigger??`carousel:${e.id}:prev-trigger`,Zv=e=>e.ids?.indicatorGroup??`carousel:${e.id}:indicator-group`,op=(e,t)=>e.ids?.indicator?.(t)??`carousel:${e.id}:indicator:${t}`;var kt=e=>e.getById(rs(e));var ip=e=>Hn(kt(e),"[data-part=item]"),Xv=(e,t)=>e.getById(op(e,t)),ap=e=>{let t=kt(e);if(!t)return;let r=Gn(t);t.setAttribute("tabindex",r.length>0?"-1":"0")};function sp(e,t){let{state:r,context:n,computed:o,send:i,scope:a,prop:s}=e,l=r.matches("autoplay"),c=r.matches("dragging"),u=o("canScrollNext"),f=o("canScrollPrev"),p=o("isHorizontal"),m=s("autoSize"),b=Array.from(n.get("pageSnapPoints")),y=n.get("page"),x=b.length?Ur(y,0,b.length-1):0,v=s("slidesPerPage"),C=s("padding"),A=s("translations");return{isPlaying:l,isDragging:c,page:x,pageSnapPoints:b,canScrollNext:u,canScrollPrev:f,getProgress(){return x/b.length},getProgressText(){let w={page:x+1,totalPages:b.length};return A.progressText?.(w)??""},scrollToIndex(w,E){i({type:"INDEX.SET",index:w,instant:E})},scrollTo(w,E){i({type:"PAGE.SET",index:w,instant:E})},scrollNext(w){i({type:"PAGE.NEXT",instant:w})},scrollPrev(w){i({type:"PAGE.PREV",instant:w})},play(){i({type:"AUTOPLAY.START"})},pause(){i({type:"AUTOPLAY.PAUSE"})},isInView(w){return Array.from(n.get("slidesInView")).includes(w)},refresh(){i({type:"SNAP.REFRESH"})},getRootProps(){return t.element({...Ar.root.attrs,id:Wv(a),role:"region","aria-roledescription":"carousel","data-orientation":s("orientation"),dir:s("dir"),style:{"--slides-per-page":v,"--slide-spacing":s("spacing"),"--slide-item-size":m?"auto":"calc(100% / var(--slides-per-page) - var(--slide-spacing) * (var(--slides-per-page) - 1) / var(--slides-per-page))"}})},getItemGroupProps(){return t.element({...Ar.itemGroup.attrs,id:rs(a),"data-orientation":s("orientation"),"data-dragging":oe(c),dir:s("dir"),"aria-live":l?"off":"polite",onFocus(w){mt(w.currentTarget,qe(w))&&i({type:"VIEWPORT.FOCUS"})},onBlur(w){mt(w.currentTarget,w.relatedTarget)||i({type:"VIEWPORT.BLUR"})},onMouseDown(w){if(w.defaultPrevented||!s("allowMouseDrag")||!xi(w))return;let E=qe(w);Yt(E)&&E!==w.currentTarget||(w.preventDefault(),i({type:"DRAGGING.START"}))},onWheel:Ih(w=>{let E=s("orientation")==="horizontal"?"deltaX":"deltaY";w[E]<0&&!o("canScrollPrev")||w[E]>0&&!o("canScrollNext")||i({type:"USER.SCROLL"})},150),onTouchStart(){i({type:"USER.SCROLL"})},style:{display:m?"flex":"grid",gap:"var(--slide-spacing)",scrollSnapType:[p?"x":"y",s("snapType")].join(" "),gridAutoFlow:p?"column":"row",scrollbarWidth:"none",overscrollBehaviorX:"contain",[p?"gridAutoColumns":"gridAutoRows"]:m?void 0:"var(--slide-item-size)",[p?"scrollPaddingInline":"scrollPaddingBlock"]:C,[p?"paddingInline":"paddingBlock"]:C,[p?"overflowX":"overflowY"]:"auto"}})},getItemProps(w){let E=n.get("slidesInView").includes(w.index);return t.element({...Ar.item.attrs,id:qv(a,w.index),dir:s("dir"),role:"group","data-index":w.index,"data-inview":oe(E),"aria-roledescription":"slide","data-orientation":s("orientation"),"aria-label":A.item(w.index,s("slideCount")),"aria-hidden":zr(!E),style:{flex:"0 0 auto",[p?"maxWidth":"maxHeight"]:"100%",scrollSnapAlign:(()=>{let T=w.snapAlign??"start",R=s("slidesPerMove"),I=R==="auto"?Math.floor(s("slidesPerPage")):R;return(w.index+I)%I===0?T:void 0})()}})},getControlProps(){return t.element({...Ar.control.attrs,"data-orientation":s("orientation")})},getPrevTriggerProps(){return t.button({...Ar.prevTrigger.attrs,id:Yv(a),type:"button",disabled:!f,dir:s("dir"),"aria-label":A.prevTrigger,"data-orientation":s("orientation"),"aria-controls":rs(a),onClick(w){w.defaultPrevented||i({type:"PAGE.PREV",src:"trigger"})}})},getNextTriggerProps(){return t.button({...Ar.nextTrigger.attrs,dir:s("dir"),id:Kv(a),type:"button","aria-label":A.nextTrigger,"data-orientation":s("orientation"),"aria-controls":rs(a),disabled:!u,onClick(w){w.defaultPrevented||i({type:"PAGE.NEXT",src:"trigger"})}})},getIndicatorGroupProps(){return t.element({...Ar.indicatorGroup.attrs,dir:s("dir"),id:Zv(a),"data-orientation":s("orientation"),onKeyDown(w){if(w.defaultPrevented)return;let E="indicator",T={ArrowDown(N){p||(i({type:"PAGE.NEXT",src:E}),N.preventDefault())},ArrowUp(N){p||(i({type:"PAGE.PREV",src:E}),N.preventDefault())},ArrowRight(N){p&&(i({type:"PAGE.NEXT",src:E}),N.preventDefault())},ArrowLeft(N){p&&(i({type:"PAGE.PREV",src:E}),N.preventDefault())},Home(N){i({type:"PAGE.SET",index:0,src:E}),N.preventDefault()},End(N){i({type:"PAGE.SET",index:b.length-1,src:E}),N.preventDefault()}},R=Fa(w,{dir:s("dir"),orientation:s("orientation")}),I=T[R];I?.(w)}})},getIndicatorProps(w){return t.button({...Ar.indicator.attrs,dir:s("dir"),id:op(a,w.index),type:"button","data-orientation":s("orientation"),"data-index":w.index,"data-readonly":oe(w.readOnly),"data-current":oe(w.index===x),"aria-label":A.indicator(w.index),onClick(E){E.defaultPrevented||w.readOnly||i({type:"PAGE.SET",index:w.index,src:"indicator"})}})},getAutoplayTriggerProps(){return t.button({...Ar.autoplayTrigger.attrs,type:"button","data-orientation":s("orientation"),"data-pressed":oe(l),"aria-label":l?A.autoplayStop:A.autoplayStart,onClick(w){w.defaultPrevented||i({type:l?"AUTOPLAY.PAUSE":"AUTOPLAY.START"})}})},getProgressTextProps(){return t.element({...Ar.progressText.attrs})}}}d();d();var up=e=>Kt(e).direction,gc=(e,t)=>{let r=parseFloat(e);return/%/.test(e)&&(r/=100,r*=t),Number.isNaN(r)?0:r};function Qv(e){let t=Kt(e),r=e.offsetWidth,n=e.offsetHeight,o=t.getPropertyValue("scroll-padding-left").replace("auto","0px"),i=t.getPropertyValue("scroll-padding-top").replace("auto","0px"),a=t.getPropertyValue("scroll-padding-right").replace("auto","0px"),s=t.getPropertyValue("scroll-padding-bottom").replace("auto","0px"),l=gc(o,r),c=gc(i,n),u=gc(a,r),f=gc(s,n);return{x:{before:l,after:u},y:{before:c,after:f}}}function uR(e,t,r="both"){return r==="x"&&e.right>=t.left&&e.left<=t.right||r==="y"&&e.bottom>=t.top&&e.top<=t.bottom||r==="both"&&e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom}function e0(e){let t=[];for(let r of e.children)t=t.concat(r,e0(r));return t}function t0(e,t=!1){let r=e.getBoundingClientRect(),o=up(e)==="rtl",i=Ib(e),a={x:{start:[],center:[],end:[]},y:{start:[],center:[],end:[]}},s=t?e0(e):e.children;for(let l of["x","y"]){let c=l==="x"?"y":"x",u=l==="x"?"left":"top",f=l==="x"?"right":"bottom",p=l==="x"?"width":"height",m=l==="x"?"scrollLeft":"scrollTop",b=l==="x"?i.x:i.y,y=o&&l==="x";for(let x of s){let v=x.getBoundingClientRect();if(!uR(r,v,c))continue;let C=Kt(x),[A,w]=C.getPropertyValue("scroll-snap-align").split(" ");typeof w>"u"&&(w=A);let E=l==="x"?w:A,T,R,I;if(y){let N=Math.abs(e[m]),L=(r[f]-v[f])/b+N;T=L,R=L+v[p]/b,I=L+v[p]/(2*b)}else T=(v[u]-r[u])/b+e[m],R=T+v[p]/b,I=T+v[p]/(2*b);switch(E){case"none":break;case"start":a[l].start.push({node:x,position:T});break;case"center":a[l].center.push({node:x,position:I});break;case"end":a[l].end.push({node:x,position:R});break}}}return a}function r0(e){let t=up(e),r=Qv(e),n=t0(e),o=e.offsetWidth,i=e.offsetHeight,a={x:e.scrollWidth-e.offsetWidth,y:e.scrollHeight-e.offsetHeight},s=t==="rtl",l=s&&e.scrollLeft<=0,c;return s?(c=lp([...n.x.start.map(u=>u.position-r.x.after),...n.x.center.map(u=>u.position-o/2),...n.x.end.map(u=>u.position-o+r.x.before)].map(cp(0,a.x))),l&&(c=c.map(u=>-u))):c=lp([...n.x.start.map(u=>u.position-r.x.before),...n.x.center.map(u=>u.position-o/2),...n.x.end.map(u=>u.position-o+r.x.after)].map(cp(0,a.x))),{x:c,y:lp([...n.y.start.map(u=>u.position-r.y.before),...n.y.center.map(u=>u.position-i/2),...n.y.end.map(u=>u.position-i+r.y.after)].map(cp(0,a.y)))}}function n0(e,t,r){let n=up(e),o=Qv(e),i=t0(e),a=[...i[t].start,...i[t].center,...i[t].end],s=n==="rtl",l=s&&t==="x"&&e.scrollLeft<=0;for(let c of a)if(r(c.node)){let u;return t==="x"&&s?(u=c.position-o.x.after,l&&(u=-u)):u=c.position-(t==="x"?o.x.before:o.y.before),u}}var lp=e=>[...new Set(e)],cp=(e,t)=>r=>Math.max(e,Math.min(t,r));var dR=1,dp=tr({props({props:e}){return bl(e,["slideCount"],"carousel"),{dir:"ltr",defaultPage:0,orientation:"horizontal",snapType:"mandatory",loop:!!e.autoplay,slidesPerPage:1,slidesPerMove:"auto",spacing:"0px",autoplay:!1,allowMouseDrag:!1,inViewThreshold:.6,autoSize:!1,...e,translations:{nextTrigger:"Next slide",prevTrigger:"Previous slide",indicator:t=>`Go to slide ${t+1}`,item:(t,r)=>`${t+1} of ${r}`,autoplayStart:"Start slide rotation",autoplayStop:"Stop slide rotation",progressText:({page:t,totalPages:r})=>`${t} / ${r}`,...e.translations}}},refs(){return{timeoutRef:void 0}},initialState({prop:e}){return e("autoplay")?"autoplay":"idle"},context({prop:e,bindable:t,getContext:r}){return{page:t(()=>({defaultValue:e("defaultPage"),value:e("page"),onChange(n){let i=r().get("pageSnapPoints");e("onPageChange")?.({page:n,pageSnapPoint:i[n]})}})),pageSnapPoints:t(()=>({defaultValue:e("autoSize")?Array.from({length:e("slideCount")},(n,o)=>o):fR(e("slideCount"),e("slidesPerMove"),e("slidesPerPage"))})),slidesInView:t(()=>({defaultValue:[]}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",isHorizontal:({prop:e})=>e("orientation")==="horizontal",canScrollNext:({prop:e,context:t})=>e("loop")||t.get("page")<t.get("pageSnapPoints").length-1,canScrollPrev:({prop:e,context:t})=>e("loop")||t.get("page")>0,autoplayInterval:({prop:e})=>{let t=e("autoplay");return fl(t)?t.delay:4e3}},watch({track:e,action:t,context:r,prop:n,send:o}){e([()=>n("slidesPerPage"),()=>n("slidesPerMove")],()=>{t(["setSnapPoints"])}),e([()=>r.get("page")],()=>{t(["scrollToPage","focusIndicatorEl"])}),e([()=>n("orientation"),()=>n("autoSize"),()=>n("dir")],()=>{t(["setSnapPoints","scrollToPage"])}),e([()=>n("slideCount")],()=>{o({type:"SNAP.REFRESH",src:"slide.count"})}),e([()=>!!n("autoplay")],()=>{o({type:n("autoplay")?"AUTOPLAY.START":"AUTOPLAY.PAUSE",src:"autoplay.prop.change"})})},on:{"PAGE.NEXT":{target:"idle",actions:["clearScrollEndTimer","setNextPage"]},"PAGE.PREV":{target:"idle",actions:["clearScrollEndTimer","setPrevPage"]},"PAGE.SET":{target:"idle",actions:["clearScrollEndTimer","setPage"]},"INDEX.SET":{target:"idle",actions:["clearScrollEndTimer","setMatchingPage"]},"SNAP.REFRESH":{actions:["setSnapPoints","scrollToPageIfDrifted"]},"PAGE.SCROLL":{actions:["scrollToPage"]}},effects:["trackSlideMutation","trackSlideIntersections","trackSlideResize"],entry:["setSnapPoints","setPage"],exit:["clearScrollEndTimer"],states:{idle:{on:{"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"AUTOPLAY.START":{target:"autoplay",actions:["invokeAutoplayStart"]},"USER.SCROLL":{target:"userScroll"},"VIEWPORT.FOCUS":{target:"focus"}}},focus:{effects:["trackKeyboardScroll"],on:{"VIEWPORT.BLUR":{target:"idle"},"PAGE.NEXT":{actions:["clearScrollEndTimer","setNextPage"]},"PAGE.PREV":{actions:["clearScrollEndTimer","setPrevPage"]},"PAGE.SET":{actions:["clearScrollEndTimer","setPage"]},"INDEX.SET":{actions:["clearScrollEndTimer","setMatchingPage"]},"USER.SCROLL":{target:"userScroll"}}},dragging:{effects:["trackPointerMove"],entry:["disableScrollSnap"],on:{DRAGGING:{actions:["scrollSlides","invokeDragging"]},"DRAGGING.END":{target:"settling",actions:["endDragging"]}}},settling:{effects:["trackSettlingScroll"],on:{"DRAGGING.START":{target:"dragging",actions:["clearScrollEndTimer","invokeDragStart"]},"SCROLL.END":[{guard:"isFocused",target:"focus",actions:["clearScrollEndTimer","setClosestPage","invokeDraggingEnd"]},{target:"idle",actions:["clearScrollEndTimer","setClosestPage","invokeDraggingEnd"]}]}},userScroll:{effects:["trackScroll"],on:{"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"SCROLL.END":[{guard:"isFocused",target:"focus",actions:["setClosestPage"]},{target:"idle",actions:["setClosestPage"]}]}},autoplay:{effects:["trackDocumentVisibility","trackScroll","autoUpdateSlide"],exit:["invokeAutoplayEnd"],on:{"AUTOPLAY.TICK":{actions:["setNextPage","invokeAutoplay"]},"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"AUTOPLAY.PAUSE":{target:"idle"}}}},implementations:{guards:{isFocused:({scope:e})=>e.isActiveElement(kt(e))},effects:{autoUpdateSlide({computed:e,send:t}){let r=setInterval(()=>{t({type:e("canScrollNext")?"AUTOPLAY.TICK":"AUTOPLAY.PAUSE",src:"autoplay.interval"})},e("autoplayInterval"));return()=>clearInterval(r)},trackSlideMutation({scope:e,send:t}){let r=kt(e);if(!r)return;let n=e.getWin(),o=new n.MutationObserver(()=>{t({type:"SNAP.REFRESH",src:"slide.mutation"}),ap(e)});return ap(e),o.observe(r,{childList:!0,subtree:!0}),()=>o.disconnect()},trackSlideResize({scope:e,send:t}){let r=kt(e);if(!r)return;let n=()=>{t({type:"SNAP.REFRESH",src:"slide.resize"})};we(()=>{n(),we(()=>{t({type:"PAGE.SCROLL",instant:!0})})});let o=ip(e);o.forEach(n);let i=[jd.observe(r,n),...o.map(a=>jd.observe(a,n))];return cr(...i)},trackSlideIntersections({scope:e,prop:t,context:r}){let n=kt(e),o=e.getWin(),i=new o.IntersectionObserver(a=>{let s=a.reduce((l,c)=>{let u=c.target,f=Number(u.dataset.index??"-1");return f==null||Number.isNaN(f)||f===-1?l:c.isIntersecting?yh(l,f):wh(l,f)},r.get("slidesInView"));r.set("slidesInView",xh(s))},{root:n,threshold:t("inViewThreshold")});return ip(e).forEach(a=>i.observe(a)),()=>i.disconnect()},trackScroll({send:e,refs:t,scope:r}){let n=kt(r);return n?Ae(n,"scroll",()=>{clearTimeout(t.get("timeoutRef")),t.set("timeoutRef",void 0),t.set("timeoutRef",setTimeout(()=>{e({type:"SCROLL.END"})},150))},{passive:!0}):void 0},trackSettlingScroll({send:e,refs:t,scope:r}){let n=kt(r);if(!n)return;let o=()=>{clearTimeout(t.get("timeoutRef")),t.set("timeoutRef",void 0),t.set("timeoutRef",setTimeout(()=>{e({type:"SCROLL.END"})},200))};o();let a=Ae(n,"scroll",()=>{o()},{passive:!0});return()=>{a(),clearTimeout(t.get("timeoutRef")),t.set("timeoutRef",void 0)}},trackDocumentVisibility({scope:e,send:t}){let r=e.getDoc();return Ae(r,"visibilitychange",()=>{r.visibilityState!=="visible"&&t({type:"AUTOPLAY.PAUSE",src:"doc.hidden"})})},trackPointerMove({scope:e,send:t}){let r=e.getDoc();return Eb(r,{onPointerMove({event:n}){t({type:"DRAGGING",left:-n.movementX,top:-n.movementY})},onPointerUp(){t({type:"DRAGGING.END"})}})},trackKeyboardScroll({scope:e,send:t,context:r}){let n=e.getWin();return Ae(n,"keydown",i=>{switch(i.key){case"ArrowRight":i.preventDefault(),t({type:"PAGE.NEXT"});break;case"ArrowLeft":i.preventDefault(),t({type:"PAGE.PREV"});break;case"Home":i.preventDefault(),t({type:"PAGE.SET",index:0});break;case"End":i.preventDefault(),t({type:"PAGE.SET",index:r.get("pageSnapPoints").length-1})}},{capture:!0})}},actions:{clearScrollEndTimer({refs:e}){e.get("timeoutRef")!=null&&(clearTimeout(e.get("timeoutRef")),e.set("timeoutRef",void 0))},scrollToPage({context:e,event:t,scope:r,computed:n,flush:o}){let i=t.instant?"instant":"smooth",a=Ur(t.index??e.get("page"),0,e.get("pageSnapPoints").length-1),s=kt(r);if(!s)return;let l=n("isHorizontal")?"left":"top";o(()=>{s.scrollTo({[l]:e.get("pageSnapPoints")[a],behavior:i})})},scrollToPageIfDrifted({context:e,scope:t,computed:r}){let n=kt(t);if(!n)return;let o=e.get("pageSnapPoints")[e.get("page")];if(o==null)return;let i=r("isHorizontal")?n.scrollLeft:n.scrollTop;if(Math.abs(i-o)<=dR)return;let a=r("isHorizontal")?"left":"top";n.scrollTo({[a]:o,behavior:"instant"})},setClosestPage({context:e,scope:t,computed:r}){let n=kt(t);if(!n)return;let o=r("isHorizontal")?n.scrollLeft:n.scrollTop,i=e.get("pageSnapPoints");if(!i.length)return;let a=i.reduce((s,l,c)=>{let u=Math.abs(l-o),f=Math.abs(i[s]-o);return u<f?c:s},0);e.set("page",a)},setNextPage({context:e,prop:t,state:r}){let n=r.matches("autoplay")||t("loop"),o=dl(e.get("pageSnapPoints"),e.get("page"),{loop:n});e.set("page",o)},setPrevPage({context:e,prop:t,state:r}){let n=r.matches("autoplay")||t("loop"),o=xd(e.get("pageSnapPoints"),e.get("page"),{loop:n});e.set("page",o)},setMatchingPage({context:e,event:t,computed:r,scope:n}){let o=kt(n);if(!o)return;let i=n0(o,r("isHorizontal")?"x":"y",s=>s.dataset.index===t.index.toString());if(i==null)return;let a=e.get("pageSnapPoints").findIndex(s=>Math.abs(s-i)<1);e.set("page",a)},setPage({context:e,event:t}){let r=t.index??e.get("page");e.set("page",r)},setSnapPoints({context:e,computed:t,scope:r}){let n=kt(r);if(!n)return;let o=r0(n),i=t("isHorizontal")?o.x:o.y;if(e.set("pageSnapPoints",i),!i.length)return;let a=Ur(e.get("page"),0,i.length-1);e.set("page",a)},disableScrollSnap({scope:e}){let t=kt(e);if(!t)return;let r=getComputedStyle(t);t.dataset.scrollSnapType=r.getPropertyValue("scroll-snap-type"),t.style.setProperty("scroll-snap-type","none")},scrollSlides({scope:e,event:t}){kt(e)?.scrollBy({left:t.left,top:t.top,behavior:"instant"})},endDragging({scope:e,context:t,computed:r}){let n=kt(e);if(!n)return;let o=r("isHorizontal"),i=o?n.scrollLeft:n.scrollTop,a=t.get("pageSnapPoints");if(!a.length)return;let s=a.reduce((l,c)=>Math.abs(c-i)<Math.abs(l-i)?c:l,a[0]);we(()=>{n.scrollTo({left:o?s:n.scrollLeft,top:o?n.scrollTop:s,behavior:"smooth"});let l=n.dataset.scrollSnapType;l&&(n.style.setProperty("scroll-snap-type",l),delete n.dataset.scrollSnapType)})},focusIndicatorEl({context:e,event:t,scope:r}){if(t.src!=="indicator")return;let n=Xv(r,e.get("page"));n&&we(()=>n.focus({preventScroll:!0}))},invokeDragStart({context:e,prop:t}){t("onDragStatusChange")?.({type:"dragging.start",isDragging:!0,page:e.get("page")})},invokeDragging({context:e,prop:t}){t("onDragStatusChange")?.({type:"dragging",isDragging:!0,page:e.get("page")})},invokeDraggingEnd({context:e,prop:t}){t("onDragStatusChange")?.({type:"dragging.end",isDragging:!1,page:e.get("page")})},invokeAutoplay({context:e,prop:t}){t("onAutoplayStatusChange")?.({type:"autoplay",isPlaying:!0,page:e.get("page")})},invokeAutoplayStart({context:e,prop:t}){t("onAutoplayStatusChange")?.({type:"autoplay.start",isPlaying:!0,page:e.get("page")})},invokeAutoplayEnd({context:e,prop:t}){t("onAutoplayStatusChange")?.({type:"autoplay.stop",isPlaying:!1,page:e.get("page")})}}}});function fR(e,t,r){if(e==null||r<=0)return[];let n=[],o=t==="auto"?Math.floor(r):t;if(o<=0)return[];for(let i=0;i<e&&!(i+r>e);i+=o)n.push(i);return n}var fp=mc.extendWith("progressText","autoplayIndicator");var[o0,br]=ze({hookName:"useCarouselContext",providerName:"<CarouselProvider />"}),mR=fp.build(),i0=e=>{let t=br();return g(W.span,le(()=>mR.autoplayIndicator.attrs,e,{get children(){return g(z,{get when(){return t().isPlaying},get fallback(){return e.fallback},get children(){return e.children}})}}))},gR=fp.build(),a0=e=>{let t=br(),r=ee(()=>{let n=t().page+1,o=t().pageSnapPoints.length;return`${n} / ${o}`});return g(W.span,le(()=>gR.progressText.attrs,e,{get children(){return e.children||r()}}))},s0=e=>{let t=br(),r=j(()=>t().getAutoplayTriggerProps(),e);return g(W.button,r)},l0=e=>e.children(br()),c0=e=>{let t=br(),r=j(()=>t().getControlProps(),e);return g(W.div,r)},u0=e=>{let[t,r]=De()(e,["index","readOnly"]),n=br(),o=j(()=>n().getIndicatorProps(t),r);return g(W.button,o)},d0=e=>{let t=br(),r=j(()=>t().getIndicatorGroupProps(),e);return g(W.div,r)},f0=e=>{let[t,r]=De()(e,["index","snapAlign"]),n=br(),o=j(()=>n().getItemProps(t),r);return g(W.div,o)},p0=e=>{let t=br(),r=j(()=>t().getItemGroupProps(),e);return g(W.div,r)},m0=e=>{let t=br(),r=j(()=>t().getNextTriggerProps(),e);return g(W.button,r)},g0=e=>{let t=br(),r=j(()=>t().getPrevTriggerProps(),e);return g(W.button,r)},h0=e=>{let t=ct(),r=fr(),n=xt(),o=ee(()=>({id:t,dir:r().dir,getRootNode:n().getRootNode,...Nt(e)})),i=Vt(dp,o);return ee(()=>sp(i,zt))},b0=e=>{let[t,r]=De()(e,["allowMouseDrag","autoplay","autoSize","defaultPage","id","ids","inViewThreshold","loop","onAutoplayStatusChange","onDragStatusChange","onPageChange","orientation","padding","page","slideCount","slidesPerMove","slidesPerPage","snapType","spacing","translations"]),n=h0(t),o=j(()=>n().getRootProps(),r);return g(o0,{value:n,get children(){return g(W.div,o)}})},y0=e=>{let[{value:t},r]=De()(e,["value"]),n=j(()=>t().getRootProps(),r);return g(o0,{value:t,get children(){return g(W.div,n)}})},En={};Lt(En,{AutoplayIndicator:()=>i0,AutoplayTrigger:()=>s0,Context:()=>l0,Control:()=>c0,Indicator:()=>u0,IndicatorGroup:()=>d0,Item:()=>f0,ItemGroup:()=>p0,NextTrigger:()=>m0,PrevTrigger:()=>g0,ProgressText:()=>a0,Root:()=>b0,RootProvider:()=>y0});d();d();d();function w0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=w0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function x0(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=w0(e))&&(n&&(n+=" "),n+=t);return n}var v0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,te=x0,pp=(e,t)=>r=>{var n;if(t?.variants==null)return te(e,r?.class,r?.className);let{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(c=>{let u=r?.[c],f=i?.[c];if(u===null)return null;let p=v0(u)||v0(f);return o[c][p]}),s=r&&Object.entries(r).reduce((c,u)=>{let[f,p]=u;return p===void 0||(c[f]=p),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:f,className:p,...m}=u;return Object.entries(m).every(b=>{let[y,x]=b;return Array.isArray(x)?x.includes({...i,...s}[y]):{...i,...s}[y]===x})?[...c,f,p]:c},[]);return te(e,a,l,r?.class,r?.className)};d();d();d();d();d();var Qr=class extends Error{name="KyError";get isKyError(){return!0}};var Pn=class extends Qr{name="HTTPError";response;request;options;data;constructor(t,r,n){let o=t.status||t.status===0?t.status:"",i=t.statusText??"",a=`${o} ${i}`.trim(),s=a?`status code ${a}`:"an unknown error";super(`Request failed with ${s}: ${r.method} ${r.url}`),this.response=t,this.request=r,this.options=n}};d();var Mi=class extends Qr{name="NetworkError";request;constructor(t,r){super(`Request failed due to a network error: ${t.method} ${t.url}`,r),this.request=t}};d();var $i=class extends Error{name="NonError";value;constructor(t){let r="Non-error value was thrown";try{typeof t=="string"?r=t:t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"&&(r=t.message)}catch{}super(r),this.value=t}};d();var Vo=class extends Qr{name="ForceRetryError";customDelay;code;customRequest;constructor(t){let r=t?.cause?t.cause instanceof Error?t.cause:new $i(t.cause):void 0;super(t?.code?`Forced retry: ${t.code}`:"Forced retry",r?{cause:r}:void 0),this.customDelay=t?.delay,this.code=t?.code,this.customRequest=t?.request}};d();var hc=class extends Error{name="SchemaValidationError";issues;constructor(t){super("Response schema validation failed"),this.issues=t}};d();var yr=class extends Qr{name="TimeoutError";request;constructor(t){super(`Request timed out: ${t.method} ${t.url}`),this.request=t}};d();d();var mp=(()=>{let e=!1,t=!1,r=typeof globalThis.ReadableStream=="function",n=typeof globalThis.Request=="function";if(r&&n)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(o){if(o instanceof Error&&o.message==="unsupported BodyInit type")return!1;throw o}return e&&!t})(),T0=typeof globalThis.AbortController=="function",bc=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",S0=typeof globalThis.ReadableStream=="function",C0=typeof globalThis.FormData=="function",yc=["get","post","put","patch","head","delete"],hR=()=>{};hR();var k0={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Fi=2147483647,E0=40,wc=Symbol("stop"),ns=class{options;constructor(t){this.options=t}},P0=e=>new ns(e),I0={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},_0={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0};var xc=new TextEncoder,bR=e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[r,n]of e)t+=E0,t+=xc.encode(`Content-Disposition: form-data; name="${r}"`).byteLength,t+=typeof n=="string"?xc.encode(n).byteLength:n.size;return t}return e instanceof Blob?e.size:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?e.byteLength:typeof e=="string"?xc.encode(e).byteLength:e instanceof URLSearchParams?xc.encode(e.toString()).byteLength:0},A0=(e,t,r)=>{let n,o=0;return e.pipeThrough(new TransformStream({transform(i,a){if(a.enqueue(i),n){o+=n.byteLength;let s=t===0?0:o/t;s>=1&&(s=1-Number.EPSILON),r?.({percent:s,totalBytes:Math.max(t,o),transferredBytes:o},n)}n=i},flush(){n&&(o+=n.byteLength,r?.({percent:1,totalBytes:Math.max(t,o),transferredBytes:o},n))}}))},R0=(e,t)=>{if(!e.body)return e;let r={status:e.status,statusText:e.statusText,headers:e.headers};if(e.status===204)return new Response(null,r);let n=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(A0(e.body,n,t),r)},O0=(e,t,r)=>{if(!e.body)return e;let n=bR(r??e.body);return new Request(e,{duplex:"half",body:A0(e.body,n,t)})};d();d();var en=e=>e!==null&&typeof e=="object";var yR=Symbol("replaceOption"),gp=e=>en(e)&&e[yR]===!0?{isReplace:!0,value:e.value}:{isReplace:!1,value:e};var is=(...e)=>{for(let t of e)if((!en(t)||Array.isArray(t))&&t!==void 0)throw new TypeError("The `options` argument must be an object");return yp({},...e)},bp=(e={},t={})=>{let r=new globalThis.Headers(e),n=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(let[i,a]of o.entries())n&&a==="undefined"||a===void 0?r.delete(i):r.set(i,a);return r},hp=e=>{if(!en(e)||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},Bi=e=>{if(e instanceof URLSearchParams){let t=new URLSearchParams(e),r=e[to];return r&&(t[to]=new Set(r)),t}return e instanceof globalThis.Headers?new globalThis.Headers(e):Array.isArray(e)?[...e]:hp(e)?{...e}:e},wR=e=>Object.fromEntries(Object.entries(e).filter(t=>t[1]!==void 0)),xR=(e,t)=>hp(e)&&hp(t)?wR({...e,...t}):bp(e,t);function os(e,t,r){return Object.hasOwn(t,r)&&t[r]===void 0?[]:yp(e[r]??[],t[r]??[])}var vc=(e={},t={})=>({init:os(e,t,"init"),beforeRequest:os(e,t,"beforeRequest"),beforeRetry:os(e,t,"beforeRetry"),beforeError:os(e,t,"beforeError"),afterResponse:os(e,t,"afterResponse")}),to=Symbol("deletedParameters"),vR=(e,t)=>{let r=new URLSearchParams,n=new Set;for(let o of[e,t])if(o!==void 0)if(o instanceof URLSearchParams){for(let[a,s]of o.entries())r.append(a,s),n.delete(a);let i=o[to];if(i)for(let a of i)r.delete(a),n.add(a)}else if(Array.isArray(o))for(let i of o){if(!Array.isArray(i)||i.length!==2)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");r.append(String(i[0]),String(i[1])),n.delete(String(i[0]))}else if(en(o))for(let[i,a]of Object.entries(o))a===void 0?(r.delete(i),n.add(i)):(r.append(i,String(a)),n.delete(i));else{let i=new URLSearchParams(o);for(let[a,s]of i.entries())r.append(a,s),n.delete(a)}return n.size>0&&(r[to]=n),r},yp=(...e)=>{let t={},r={},n={},o,i=[];for(let a of e)if(Array.isArray(a))Array.isArray(t)||(t=[]),t=[...t,...a];else if(en(a)){for(let[s,l]of Object.entries(a)){if(s==="signal"&&l instanceof globalThis.AbortSignal){i.push(l);continue}let c=gp(l),{isReplace:u}=c;if(l=c.value,s==="context"){if(l!=null&&(!en(l)||Array.isArray(l)))throw new TypeError("The `context` option must be an object");t={...t,context:l==null?{}:u?{...l}:{...t.context,...l}};continue}if(s==="searchParams"){l==null?o=void 0:u?o=l:o=o===void 0?l:vR(o,l);continue}en(l)&&!u&&s in t&&(l=yp(t[s],l)),t={...t,[s]:l}}if(en(a.hooks)){let{value:s,isReplace:l}=gp(a.hooks);n=vc(l?{}:n,s),t.hooks=n}if(en(a.headers)){let{value:s,isReplace:l}=gp(a.headers);r=l?Bi(s):xR(r,s),t.headers=r}}return o!==void 0&&(t.searchParams=o),i.length>0&&(i.length===1?t.signal=i[0]:bc?t.signal=AbortSignal.any(i):t.signal=i.at(-1)),t};d();var L0=e=>yc.includes(e)?e.toUpperCase():e,TR=["get","put","head","delete","options","trace"],SR=[408,413,429,500,502,503,504],CR=[413,429,503],N0={limit:2,methods:TR,statusCodes:SR,afterStatusCodes:CR,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},D0=(e={})=>{if(typeof e=="number")return{...N0,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");let t=Object.fromEntries(Object.entries({...e,methods:e.methods?.map(r=>r.toLowerCase())}).filter(([,r])=>r!==void 0));return{...N0,...t}};d();async function wp(e,t,r,n){return new Promise((o,i)=>{let a=setTimeout(()=>{r&&r.abort(),i(new yr(e))},n.timeout);n.fetch(e,t).then(o).catch(i).then(()=>{clearTimeout(a)})})}d();async function Tc(e,{signal:t}){return new Promise((r,n)=>{t&&(t.throwIfAborted(),t.addEventListener("abort",o,{once:!0}));function o(){clearTimeout(i),n(t.reason)}let i=setTimeout(()=>{t?.removeEventListener("abort",o),r()},e)})}d();var M0=e=>{let t={};for(let r in e)Object.hasOwn(e,r)&&!(r in _0)&&!(r in I0)&&(t[r]=e[r]);return t},$0=e=>e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0||!!e[to]?.size:typeof e=="object"?Object.keys(e).length>0:typeof e=="string"?e.trim().length>0:!!e;d();var kR=Object.prototype.toString,ER=e=>kR.call(e)==="[object Error]",PR=new Set(["network error","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function xp(e){if(!(e&&ER(e)&&e.name==="TypeError"&&typeof e.message=="string"))return!1;let{message:r,stack:n}=e;return r==="Load failed"?n===void 0||"__sentry_captured__"in e:r.startsWith("error sending request for url")||r==="Failed to fetch"||r.startsWith("Failed to fetch (")&&r.endsWith(")")?!0:PR.has(r)}d();var vp=(e,t)=>e instanceof t||e?.name===t.name;function F0(e){return vp(e,Pn)}function B0(e){return vp(e,Mi)}function U0(e){return vp(e,yr)}var IR=10*1024*1024,_R="The `prefixUrl` option has been renamed `prefix` in v2 and enhanced to allow slashes in input. See also the new `baseUrl` option for improved flexibility with standard URL resolution: https://github.com/sindresorhus/ky#baseurl",as=Symbol("timedOutResponseData"),AR=e=>{let t=/;\s*charset\s*=\s*(?:"([^"]+)"|([^;,\s]+))/i.exec(e),r=t?.[1]??t?.[2];if(r)try{return new TextDecoder(r)}catch{}return new TextDecoder},V0="The `schema` argument must follow the Standard Schema specification",RR=e=>typeof e!="object"?e:{...e,...e.methods&&{methods:[...e.methods]},...e.statusCodes&&{statusCodes:[...e.statusCodes]},...e.afterStatusCodes&&{afterStatusCodes:[...e.afterStatusCodes]}},G0=Object.prototype.toString,z0=e=>e instanceof globalThis.Request||G0.call(e)==="[object Request]",ss=e=>e instanceof globalThis.Response||G0.call(e)==="[object Response]",OR=e=>Array.isArray(e)?e.map(t=>[...t]):Bi(e);function NR(e){let t={...e,json:Bi(e.json),context:Bi(e.context),headers:Bi(e.headers),searchParams:OR(e.searchParams)};return e.retry!==void 0&&(t.retry=RR(e.retry)),t}var j0=async(e,t)=>{if(typeof t!="object"&&typeof t!="function"||t===null)throw new TypeError(V0);let r=t["~standard"];if(typeof r!="object"||r===null||typeof r.validate!="function")throw new TypeError(V0);let n=await r.validate(e);if(n.issues)throw new hc(n.issues);return n.value},ls=class e{static create(t,r){let n=r.hooks?.init??[],o=n.length>0?NR(r):r;for(let l of n)l(o);let i=new e(t,o),a=async()=>{if(typeof i.#e.timeout=="number"&&i.#e.timeout>Fi)throw new RangeError(`The \`timeout\` option cannot be greater than ${Fi}`);if(typeof i.#e.totalTimeout=="number"&&i.#e.totalTimeout>Fi)throw new RangeError(`The \`totalTimeout\` option cannot be greater than ${Fi}`);await Promise.resolve();let l=await i.#L(),c=l??await i.#P(async()=>i.#y()),u=l!==void 0||i.#b();for(;;){if(c===void 0)return c;if(ss(c))try{c=await i.#D(c)}catch(p){if(!(p instanceof Vo))throw p;let m=await i.#h(p,async()=>i.#y());if(m===void 0)return m;c=m,u=i.#b();continue}let f=c;if(!f.ok&&f.type!=="opaque"&&(typeof i.#e.throwHttpErrors=="function"?i.#e.throwHttpErrors(f.status):i.#e.throwHttpErrors)){let p=new Pn(f,i.#l(f),i.#s()),m=p;if(p.data=await i.#A(f),u)throw m;let b=await i.#h(p,async()=>i.#y());if(b===void 0)return b;c=b,u=i.#b();continue}break}if(!ss(c))return c;if(i.#C(c),i.#e.onDownloadProgress){if(typeof i.#e.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!S0)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");let f=c.clone();return i.#o(c),R0(f,i.#e.onDownloadProgress)}return c},s=(async()=>{try{return await a()}catch(l){if(!(l instanceof Error)||i.#T.has(l))throw l;let c=l;for(let u of i.#e.hooks.beforeError){let f=await u({request:i.request,options:i.#s(),error:c,retryCount:i.#r});f instanceof Error&&(c=f)}throw c}finally{let l=i.#v;i.#g(l?.body??void 0),i.request!==l&&i.#g(i.request.body??void 0)}})();for(let[l,c]of Object.entries(k0))l==="bytes"&&typeof globalThis.Response?.prototype?.bytes!="function"||(s[l]=async u=>{i.request.headers.set("accept",i.request.headers.get("accept")||c);let f=await s;if(l!=="json")return f[l]();let p=await f.text();if(p==="")return u!==void 0?j0(void 0,u):JSON.parse(p);let m=o.parseJson?await o.parseJson(p,{request:i.#l(f),response:f}):JSON.parse(p);return u===void 0?m:j0(m,u)});return s}static#a(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof URLSearchParams)?Object.fromEntries(Object.entries(t).filter(([,r])=>r!==void 0)):t}request;#n;#r=0;#t;#e;#v;#c;#T=new WeakSet;#u;#m;#d=!1;#S=new WeakMap;constructor(t,r={}){if(this.#t=t,Object.hasOwn(r,"prefixUrl"))throw new Error(_R);if(this.#e={...r,headers:bp(this.#t.headers,r.headers),hooks:vc({},r.hooks),method:L0(r.method??this.#t.method??"GET"),prefix:String(r.prefix||""),retry:D0(r.retry),throwHttpErrors:r.throwHttpErrors??!0,timeout:r.timeout??1e4,totalTimeout:r.totalTimeout??!1,fetch:r.fetch??globalThis.fetch.bind(globalThis),context:r.context??{}},typeof this.#t!="string"&&!(this.#t instanceof URL||this.#t instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(typeof this.#t=="string"){if(this.#e.prefix){let o=this.#e.prefix.replace(/\/+$/,""),i=this.#t.replace(/^\/+/,"");this.#t=`${o}/${i}`}if(this.#e.baseUrl){let o;try{o=new URL(this.#t)}catch{}o||(this.#t=new URL(this.#t,new Request(this.#e.baseUrl).url))}}T0&&bc&&(this.#c=this.#e.signal??this.#t.signal,this.#n=new globalThis.AbortController,this.#e.signal=this.#E()),mp&&(this.#e.duplex="half"),this.#e.json!==void 0&&(this.#e.body=this.#e.stringifyJson?.(this.#e.json)??JSON.stringify(this.#e.json),this.#e.headers.set("content-type",this.#e.headers.get("content-type")??"application/json"));let n=r.headers&&new globalThis.Headers(r.headers).has("content-type");if(this.#t instanceof globalThis.Request&&(C0&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!n&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#t,this.#e),$0(this.#e.searchParams)){let o=new URL(this.request.url),i=this.#e.searchParams?.[to];if(i)for(let a of i)o.searchParams.delete(a);if(typeof this.#e.searchParams=="string"){let a=this.#e.searchParams.replace(/^\?/,"");a!==""&&(o.search=o.search?`${o.search}&${a}`:`?${a}`)}else{let a=new URLSearchParams(e.#a(this.#e.searchParams));for(let[s,l]of a.entries())o.searchParams.append(s,l)}if(this.#e.searchParams&&typeof this.#e.searchParams=="object"&&!Array.isArray(this.#e.searchParams)&&!(this.#e.searchParams instanceof URLSearchParams))for(let[a,s]of Object.entries(this.#e.searchParams))s===void 0&&o.searchParams.delete(a);this.request=new globalThis.Request(o,this.#e)}if(this.#e.onUploadProgress&&typeof this.#e.onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");this.#m=typeof this.#e.totalTimeout=="number"?this.#I():void 0}#i(){let t=this.#e.retry.delay(this.#r+1),r=t;return this.#e.retry.jitter===!0?r=Math.random()*t:typeof this.#e.retry.jitter=="function"&&(r=this.#e.retry.jitter(t),(!Number.isFinite(r)||r<0)&&(r=t)),Math.min(this.#e.retry.backoffLimit,r)}async#_(t){if(this.#r>=this.#e.retry.limit)throw t;let r=t instanceof Error?t:new $i(t);if(r instanceof Vo)return r.customDelay??this.#i();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw t;if(this.#e.retry.shouldRetry!==void 0){let n=await this.#e.retry.shouldRetry({error:r,retryCount:this.#r+1});if(n===!1)throw t;if(n===!0)return this.#i()}if(U0(t)){if(!this.#e.retry.retryOnTimeout)throw t;return this.#i()}if(F0(t)){if(!this.#e.retry.statusCodes.includes(t.response.status))throw t;let n=t.response.headers.get("Retry-After")??t.response.headers.get("RateLimit-Reset")??t.response.headers.get("X-RateLimit-Retry-After")??t.response.headers.get("X-RateLimit-Reset")??t.response.headers.get("X-Rate-Limit-Reset");if(n&&this.#e.retry.afterStatusCodes.includes(t.response.status)){let o=Number(n)*1e3;return Number.isNaN(o)?o=Date.parse(n)-Date.now():o>=Date.parse("2024-01-01")&&(o-=Date.now()),Number.isFinite(o)?(o=Math.max(0,o),Math.min(this.#e.retry.maxRetryAfter,o)):Math.min(this.#e.retry.maxRetryAfter,this.#i())}if(t.response.status===413)throw t;return this.#i()}if(!B0(t))throw t;return this.#i()}#C(t){let r=this.#l(t);return this.#e.parseJson&&(t.json=async()=>{let n=await t.text();return n===""?JSON.parse(n):this.#e.parseJson(n,{request:r,response:t})}),t}async#A(t){let r=await this.#O(t,this.#k());if(r===as){this.#f();return}if(!r)return;if(!this.#R(t.headers.get("content-type")??""))return r;let n=await this.#N(r,t,this.#k(),this.#l(t));if(n===as){this.#f();return}return n}#k(){let t=this.#e.timeout===!1?1e4:this.#e.timeout,r=this.#p();if(r===void 0)return t;if(r<=0)throw new yr(this.request);return Math.min(t,r)}#R(t){let r=(t.split(";",1)[0]??"").trim().toLowerCase();return/\/(?:.*[.+-])?json$/.test(r)}async#O(t,r){let{body:n}=t;if(!n)try{return await t.text()}catch{return}let o;try{o=n.getReader()}catch{return}let i=AR(t.headers.get("content-type")??""),a=[],s=0,l=(async()=>{try{for(;;){let{done:f,value:p}=await o.read();if(f)break;if(s+=p.byteLength,s>IR){o.cancel().catch(()=>{});return}a.push(i.decode(p,{stream:!0}))}}catch{return}return a.push(i.decode()),a.join("")})(),c=new Promise(f=>{let p=setTimeout(()=>{f(as)},r);l.finally(()=>{clearTimeout(p)})}),u=await Promise.race([l,c]);return u===as&&o.cancel().catch(()=>{}),u}async#N(t,r,n,o){let i;try{return await Promise.race([Promise.resolve().then(()=>this.#e.parseJson?this.#e.parseJson(t,{request:o,response:r}):JSON.parse(t)),new Promise(a=>{i=setTimeout(()=>{a(as)},n)})])}catch{return}finally{clearTimeout(i)}}#g(t){t&&t.cancel().catch(()=>{})}#o(t){this.#g(t.body??void 0)}#E(){return this.#c?AbortSignal.any([this.#c,this.#n.signal]):this.#n.signal}#f(){let t=this.#p();if(t!==void 0&&t<=0)throw new yr(this.request)}async#L(){for(let t of this.#e.hooks.beforeRequest){let r=await t({request:this.request,options:this.#s(),retryCount:0});if(z0(r))this.#w(r);else if(ss(r))return r}}async#D(t){let r=this.#l(t);for(let n of this.#e.hooks.afterResponse){let o=this.#x(t.clone(),r);this.#C(o);let i;try{i=await n({request:this.request,options:this.#s(),response:o,retryCount:this.#r})}catch(s){throw o!==t&&this.#o(o),this.#o(t),s}if(i instanceof ns)throw o!==t&&this.#o(o),this.#o(t),new Vo(i.options);let a=ss(i)?this.#x(i,r):t;o!==t&&o!==a&&o.body!==a.body&&this.#o(o),t!==a&&t.body!==a.body&&this.#o(t),t=a}return t}async#P(t){try{return await t()}catch(r){return this.#h(r,t)}}async#h(t,r){this.#d=!1;let n=Math.min(await this.#_(t),Fi),o={signal:this.#c},i=this.#p();if(i!==void 0){if(i<=0)throw new yr(this.request);if(n>=i)throw await Tc(i,o),new yr(this.request)}if(await Tc(n,o),this.#f(),t instanceof Vo&&t.customRequest){let a=new globalThis.Request(t.customRequest,this.#e.signal?{signal:this.#e.signal}:void 0);this.#w(a)}for(let a of this.#e.hooks.beforeRetry){let s;try{s=await a({request:this.request,options:this.#s(),error:t,retryCount:this.#r+1})}catch(l){throw l instanceof Error&&l!==t&&this.#T.add(l),l}if(z0(s)){this.#w(s);break}if(ss(s))return this.#d=!0,this.#r++,s;if(s===wc)return}return this.#f(),this.#r++,this.#P(r)}#b(){let t=this.#d;return this.#d=!1,t}async#y(){this.#n?.signal.aborted&&(this.#n=new globalThis.AbortController,this.#e.signal=this.#E(),this.request=new globalThis.Request(this.request,{signal:this.#e.signal}));let t=M0(this.#e),r=this.#e.retry.limit>0?this.request.clone():void 0,n=this.#M(this.request,this.#e.body??void 0);this.#v=n,r&&(this.request=r);try{let o=this.#p();if(o!==void 0&&o<=0)throw new yr(this.request);let i=this.#e.timeout===!1?o:o===void 0?this.#e.timeout:Math.min(this.#e.timeout,o),a=i===void 0?await this.#e.fetch(n,t):await wp(n,t,this.#n,{timeout:i,fetch:this.#e.fetch});return this.#x(a,n)}catch(o){throw xp(o)?new Mi(this.request,{cause:o}):o}}#p(){if(this.#m===void 0)return;let t=this.#I()-this.#m;return Math.max(0,this.#e.totalTimeout-t)}#I(){return globalThis.performance?.now()??Date.now()}#s(){if(!this.#u){let{hooks:t,json:r,parseJson:n,stringifyJson:o,searchParams:i,timeout:a,totalTimeout:s,throwHttpErrors:l,fetch:c,...u}=this.#e;this.#u=Object.freeze(u)}return this.#u}#w(t){this.#u=void 0,this.request=t}#l(t){return this.#S.get(t)??this.request}#x(t,r){return this.#S.set(t,r),t}#M(t,r){return!this.#e.onUploadProgress||!t.body||!mp?t:O0(t,this.#e.onUploadProgress,r??this.#e.body??void 0)}};var Tp=e=>{let t=(r,n)=>ls.create(r,is(e,n));for(let r of yc)t[r]=(n,o)=>ls.create(n,is(e,o,{method:r}));return t.create=r=>Tp(is(r)),t.extend=r=>(typeof r=="function"&&(r=r(e??{})),Tp(is(e,r))),t.stop=wc,t.retry=P0,t},LR=Tp(),ro=LR;d();var Sc=e=>Number(e)>=6;d();var Et={general:{isInputPrefillEnabled:!1,isHideQueryParamsEnabled:!0,isNewResultOnRefreshEnabled:!0,rememberUser:{isEnabled:!1,storage:"session"},isBrandingEnabled:!1,isTypingEmulationEnabled:!0},typingEmulation:{enabled:!0,speed:400,maxDelay:3,delayBetweenBubbles:0,isDisabledOnFirstMessage:!0},metadata:{description:"Build beautiful conversational forms and embed them directly in your applications without a line of code. Triple your response rate and collect answers that has more value compared to a traditional form.",favIconUrl:e=>e+"/favicon.png",imageUrl:e=>e+"/site-preview.jpeg"}};var it={invalidMessage:"Invalid message. Please, try again.",botClosed:"This bot is now closed",networkErrorTitle:"Network Error",networkErrorMessage:"Please check your internet connection and try again.",popupBlockedTitle:"Popup blocked",popupBlockedDescription:"The bot wants to open a new tab but it was blocked by your browser. It needs a manual approval.",popupBlockedButtonLabel:"Continue in new tab",fileUploadError:"An error occured while uploading the files",fileUploadSizeError:"[[file]] is larger than [[limit]]MB",whatsAppPictureChoiceSelectLabel:"Select",addAttachmentsLabel:"Add attachments",recordVoiceLabel:"common.ariaLabels.recordVoice",stopRecordingLabel:"common.ariaLabels.stopRecording",removeAttachmentLabel:"common.ariaLabels.removeAttachment",closeLabel:"common.ariaLabels.close"};d();d();var He={blue:{light:{1:"#fcfdfe",2:"#f6f9ff",3:"#ebf2ff",4:"#ddeaff",5:"#ccdfff",6:"#b7d2ff",7:"#a0bfff",8:"#7fa5fd",9:"#3566fc",10:"#2f5be1",11:"#2c57dd",12:"#172c65"},dark:{1:"#070d1a",2:"#0f1627",3:"#12234e",4:"#162c6a",5:"#1d377e",6:"#25428f",7:"#2e4ea4",8:"#365bc1",9:"#3566fc",10:"#2a57ec",11:"#8db4ff",12:"#d1e2ff"}},orange:{light:{1:"#FBFEFC",2:"#F4FBF7",3:"#E5F6EC",4:"#D5F1E0",5:"#C3E8D2",6:"#ADDEC0",7:"#8ECEA9",8:"#5FB888",9:"#2B9A66",10:"#168D5A",11:"#00814F",12:"#1C3B2A"},dark:{1:"#0D130F",2:"#131B16",3:"#152C20",4:"#163B27",5:"#1C4831",6:"#25573D",7:"#2D6749",8:"#357B57",9:"#2B9A66",10:"#168D5A",11:"#68D098",12:"#B3F0CC"}},purple:{light:{1:"#fcfcff",2:"#f9f8ff",3:"#f2f0ff",4:"#e7e4ff",5:"#ddd8ff",6:"#d0c9ff",7:"#bdb3ff",8:"#a595ff",9:"#8055fd",10:"#7447ec",11:"#6841d3",12:"#321e6c"},dark:{1:"#0d0a1b",2:"#17132a",3:"#261b4f",4:"#321d6c",5:"#3b257c",6:"#46318b",7:"#543ea2",8:"#684cc7",9:"#8055fd",10:"#7446ee",11:"#b4a6ff",12:"#e0dcff"}},red:{light:{1:"#fffcfc",2:"#fff7f6",3:"#ffebe9",4:"#ffdad6",5:"#ffcbc6",6:"#ffbab5",7:"#fca5a0",8:"#f48984",9:"#f83b45",10:"#ea2638",11:"#d8062a",12:"#6a0d14"},dark:{1:"#130a0a",2:"#201211",3:"#3e0e0f",4:"#55050c",5:"#670b13",6:"#791b1f",7:"#932b2d",8:"#be3a3c",9:"#f83b45",10:"#e92939",11:"#ff8f89",12:"#ffd0cb"}},gray:{light:{1:"#ffffff",2:"#F8F8F8",3:"#f1f1f1",4:"#e8e8e8",5:"#e0e0e0",6:"#dfdfdf",7:"#cecece",8:"#bbbbbb",9:"#8d8d8d",10:"#838383",11:"#464646",12:"#202020"},dark:{1:"#0D0D0D",2:"#1D1D1D",3:"#222222",4:"#2a2a2a",5:"#313131",6:"#3a3a3a",7:"#484848",8:"#606060",9:"#6e6e6e",10:"#7b7b7b",11:"#b4b4b4",12:"#eeeeee"}},green:{light:{1:"#FBFEFC",2:"#F4FBF7",3:"#E5F6EC",4:"#D5F1E0",5:"#C3E8D2",6:"#ADDEC0",7:"#8ECEA9",8:"#5FB888",9:"#2B9A66",10:"#168D5A",11:"#00814F",12:"#1C3B2A"},dark:{1:"#0D130F",2:"#131B16",3:"#152C20",4:"#163B27",5:"#1C4831",6:"#25573D",7:"#2D6749",8:"#357B57",9:"#2B9A66",10:"#168D5A",11:"#68D098",12:"#B3F0CC"}}};var H0="Google",Ui="Inter",Cc="Default",S7={6:"#FFFFFF","6.1":He.gray.light[2]};var W0={6:"#e0edff","6.1":He.orange.light[9]},q0={6:He.gray.light[3],"6.1":He.gray.light[9]},K0=4,kc="absolute",Y0="Top",zo="medium",Gt=1,Sp=0,Z0="800px",X0="100%",jo="transparent";var J0={6:"#F7F8FF","6.1":He.gray.light[1]},Cp=He.gray.light[12],Q0={6:0,"6.1":1},eT=He.gray.light[6],tT={6:"#FF8E21","6.1":He.orange.light[9]},kp=He.gray.light[1],rT={6:0,"6.1":1},nT=He.orange.light[6],Ec={6:"#0042DA","6.1":He.orange.light[9]},oT=He.gray.light[1],iT={6:0,"6.1":1},aT=He.orange.light[8];var Ep="#FFFFFF",Pp=He.gray.light[12],sT="#9095A0",lT={6:0,"6.1":1},cT={6:void 0,"6.1":He.gray.light[7]},uT={6:"md","6.1":void 0},In=!0,cs=!1,dT="wrap",ie={general:{bgImage:"--flow-container-bg-image",bgColor:"--flow-container-bg-color",fontFamily:"--flow-container-font-family",progressBar:{position:"--flow-progress-bar-position",color:"--flow-progress-bar-color",colorRgb:"--flow-progress-bar-bg-rgb",height:"--flow-progress-bar-height",top:"--flow-progress-bar-top",bottom:"--flow-progress-bar-bottom"}},chat:{container:{maxWidth:"--flow-chat-container-max-width",maxHeight:"--flow-chat-container-max-height",bgColor:"--flow-chat-container-bg-rgb",color:"--flow-chat-container-color",borderRadius:"--flow-chat-container-border-radius",borderWidth:"--flow-chat-container-border-width",borderColor:"--flow-chat-container-border-rgb",borderOpacity:"--flow-chat-container-border-opacity",opacity:"--flow-chat-container-opacity",blur:"--flow-chat-container-blur",boxShadow:"--flow-chat-container-box-shadow"},hostBubbles:{bgColor:"--flow-host-bubble-bg-rgb",color:"--flow-host-bubble-color",borderRadius:"--flow-host-bubble-border-radius",borderWidth:"--flow-host-bubble-border-width",borderColor:"--flow-host-bubble-border-rgb",borderOpacity:"--flow-host-bubble-border-opacity",opacity:"--flow-host-bubble-opacity",blur:"--flow-host-bubble-blur",boxShadow:"--flow-host-bubble-box-shadow"},guestBubbles:{bgColor:"--flow-guest-bubble-bg-rgb",color:"--flow-guest-bubble-color",borderRadius:"--flow-guest-bubble-border-radius",borderWidth:"--flow-guest-bubble-border-width",borderColor:"--flow-guest-bubble-border-rgb",borderOpacity:"--flow-guest-bubble-border-opacity",opacity:"--flow-guest-bubble-opacity",blur:"--flow-guest-bubble-blur",boxShadow:"--flow-guest-bubble-box-shadow"},inputs:{bgColor:"--flow-input-bg-rgb",color:"--flow-input-color",placeholderColor:"--flow-input-placeholder-color",borderRadius:"--flow-input-border-radius",borderWidth:"--flow-input-border-width",borderColor:"--flow-input-border-rgb",borderOpacity:"--flow-input-border-opacity",opacity:"--flow-input-opacity",blur:"--flow-input-blur",boxShadow:"--flow-input-box-shadow"},buttons:{bgRgb:"--flow-button-bg-rgb",color:"--flow-button-color",borderRadius:"--flow-button-border-radius",borderWidth:"--flow-button-border-width",borderColor:"--flow-button-border-rgb",borderOpacity:"--flow-button-border-opacity",opacity:"--flow-button-opacity",blur:"--flow-button-blur",boxShadow:"--flow-button-box-shadow",flexDirection:"--flow-buttons-input-flex-direction"},checkbox:{bgRgb:"--flow-checkbox-bg-rgb",alphaRatio:"--selectable-alpha-ratio"}}},fT="#F7F8FF",pT="#303235",mT="#F7F8FF",gT="#303235";d();var hT=async e=>{let t;try{let r=typeof e=="string"?e:e.url;t=await fetch(r,{method:typeof e=="string"?"GET":e.method,mode:"cors",headers:typeof e!="string"&&ge(e.body)?{"Content-Type":"application/json"}:void 0,body:typeof e!="string"&&ge(e.body)?JSON.stringify(e.body):void 0});let n=await t.json();if(!t.ok)throw"error"in n?n.error:n;return{data:n,response:t}}catch(r){return console.error(r),{error:r,response:t}}},ge=e=>e!=null,gt=e=>e==null,Je=e=>e==null||e==="",Re=e=>e!=null&&e!=="";var bT=e=>{e.split("</noscript>").forEach(r=>{let[n,o]=r.split("<noscript>"),i=document.createRange().createContextualFragment(n??"");if(document.head.append(i),gt(o))return;let a=document.createElement("noscript"),s=document.createRange().createContextualFragment(o);a.append(s),document.head.append(a)})};var Vi=e=>e?.startsWith("data:image/svg")||e?.endsWith(".svg");d();d();var DR=(e,t)=>{let r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},MR=(e,t)=>({classGroupId:e,validator:t}),kT=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r});var yT=[],$R="arbitrary..",FR=e=>{let t=UR(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return BR(a);let s=a.split("-"),l=s[0]===""&&s.length>1?1:0;return ET(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){let l=n[a],c=r[a];return l?c?DR(c,l):l:c||yT}return r[a]||yT}}},ET=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;let o=e[t],i=r.nextPart.get(o);if(i){let c=ET(e,t+1,i);if(c)return c}let a=r.validators;if(a===null)return;let s=t===0?e.join("-"):e.slice(t).join("-"),l=a.length;for(let c=0;c<l;c++){let u=a[c];if(u.validator(s))return u.classGroupId}},BR=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?$R+n:void 0})(),UR=e=>{let{theme:t,classGroups:r}=e;return VR(r,t)},VR=(e,t)=>{let r=kT();for(let n in e){let o=e[n];Ap(o,r,n,t)}return r},Ap=(e,t,r,n)=>{let o=e.length;for(let i=0;i<o;i++){let a=e[i];zR(a,t,r,n)}},zR=(e,t,r,n)=>{if(typeof e=="string"){jR(e,t,r);return}if(typeof e=="function"){GR(e,t,r,n);return}HR(e,t,r,n)},jR=(e,t,r)=>{let n=e===""?t:PT(t,e);n.classGroupId=r},GR=(e,t,r,n)=>{if(WR(e)){Ap(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(MR(r,e))},HR=(e,t,r,n)=>{let o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){let[s,l]=o[a];Ap(l,PT(t,s),r,n)}},PT=(e,t)=>{let r=e,n=t.split("-"),o=n.length;for(let i=0;i<o;i++){let a=n[i],s=r.nextPart.get(a);s||(s=kT(),r.nextPart.set(a,s)),r=s}return r},WR=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,qR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),o=(i,a)=>{r[i]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let a=r[i];if(a!==void 0)return a;if((a=n[i])!==void 0)return o(i,a),a},set(i,a){i in r?r[i]=a:o(i,a)}}};var KR=[],wT=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),YR=e=>{let{prefix:t,experimentalParseClassName:r}=e,n=o=>{let i=[],a=0,s=0,l=0,c,u=o.length;for(let y=0;y<u;y++){let x=o[y];if(a===0&&s===0){if(x===":"){i.push(o.slice(l,y)),l=y+1;continue}if(x==="/"){c=y;continue}}x==="["?a++:x==="]"?a--:x==="("?s++:x===")"&&s--}let f=i.length===0?o:o.slice(l),p=f,m=!1;f.endsWith("!")?(p=f.slice(0,-1),m=!0):f.startsWith("!")&&(p=f.slice(1),m=!0);let b=c&&c>l?c-l:void 0;return wT(i,m,p,b)};if(t){let o=t+":",i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):wT(KR,!1,a,void 0,!0)}if(r){let o=n;n=i=>r({className:i,parseClassName:o})}return n},ZR=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{let n=[],o=[];for(let i=0;i<r.length;i++){let a=r[i],s=a[0]==="[",l=t.has(a);s||l?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(a)):o.push(a)}return o.length>0&&(o.sort(),n.push(...o)),n}},XR=e=>({cache:qR(e.cacheSize),parseClassName:YR(e),sortModifiers:ZR(e),postfixLookupClassGroupIds:JR(e),...FR(e)}),JR=e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let n=0;n<r.length;n++)t[r[n]]=!0;return t},QR=/\s+/,eO=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:a}=t,s=[],l=e.trim().split(QR),c="";for(let u=l.length-1;u>=0;u-=1){let f=l[u],{isExternal:p,modifiers:m,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:x}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let v=!!x,C;if(v){let R=y.substring(0,x);C=n(R);let I=C&&a[C]?n(y):void 0;I&&I!==C&&(C=I,v=!1)}else C=n(y);if(!C){if(!v){c=f+(c.length>0?" "+c:c);continue}if(C=n(y),!C){c=f+(c.length>0?" "+c:c);continue}v=!1}let A=m.length===0?"":m.length===1?m[0]:i(m).join(":"),w=b?A+"!":A,E=w+C;if(s.indexOf(E)>-1)continue;s.push(E);let T=o(C,v);for(let R=0;R<T.length;++R){let I=T[R];s.push(w+I)}c=f+(c.length>0?" "+c:c)}return c},tO=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=IT(r))&&(o&&(o+=" "),o+=n);return o},IT=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=IT(e[n]))&&(r&&(r+=" "),r+=t);return r},xT=(e,...t)=>{let r,n,o,i,a=l=>{let c=t.reduce((u,f)=>f(u),e());return r=XR(c),n=r.cache.get,o=r.cache.set,i=s,s(l)},s=l=>{let c=n(l);if(c)return c;let u=eO(l,r);return o(l,u),u};return i=a,(...l)=>i(tO(...l))},rO=[],ht=e=>{let t=r=>r[e]||rO;return t.isThemeGetter=!0,t},_T=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,AT=/^\((?:(\w[\w-]*):)?(.+)\)$/i,nO=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,oO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iO=/\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$/,aO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,no=e=>nO.test(e),Se=e=>!!e&&!Number.isNaN(Number(e)),tn=e=>!!e&&Number.isInteger(Number(e)),Ip=e=>e.endsWith("%")&&Se(e.slice(0,-1)),_n=e=>oO.test(e),RT=()=>!0,cO=e=>iO.test(e)&&!aO.test(e),Rp=()=>!1,uO=e=>sO.test(e),dO=e=>lO.test(e),fO=e=>!se(e)&&!ce(e),pO=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),mO=e=>oo(e,LT,Rp),se=e=>_T.test(e),Go=e=>oo(e,DT,cO),vT=e=>oo(e,TO,Se),gO=e=>oo(e,$T,RT),hO=e=>oo(e,MT,Rp),TT=e=>oo(e,OT,Rp),bO=e=>oo(e,NT,dO),Pc=e=>oo(e,FT,uO),ce=e=>AT.test(e),us=e=>Ho(e,DT),yO=e=>Ho(e,MT),ST=e=>Ho(e,OT),wO=e=>Ho(e,LT),xO=e=>Ho(e,NT),Ic=e=>Ho(e,FT,!0),vO=e=>Ho(e,$T,!0),oo=(e,t,r)=>{let n=_T.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ho=(e,t,r=!1)=>{let n=AT.exec(e);return n?n[1]?t(n[1]):r:!1},OT=e=>e==="position"||e==="percentage",NT=e=>e==="image"||e==="url",LT=e=>e==="length"||e==="size"||e==="bg-size",DT=e=>e==="length",TO=e=>e==="number",MT=e=>e==="family-name",$T=e=>e==="number"||e==="weight",FT=e=>e==="shadow";var CT=()=>{let e=ht("color"),t=ht("font"),r=ht("text"),n=ht("font-weight"),o=ht("tracking"),i=ht("leading"),a=ht("breakpoint"),s=ht("container"),l=ht("spacing"),c=ht("radius"),u=ht("shadow"),f=ht("inset-shadow"),p=ht("text-shadow"),m=ht("drop-shadow"),b=ht("blur"),y=ht("perspective"),x=ht("aspect"),v=ht("ease"),C=ht("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...w(),ce,se],T=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],I=()=>[ce,se,l],N=()=>[no,"full","auto",...I()],L=()=>[tn,"none","subgrid",ce,se],G=()=>["auto",{span:["full",tn,ce,se]},tn,ce,se],O=()=>[tn,"auto",ce,se],D=()=>["auto","min","max","fr",ce,se],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...I()],K=()=>[no,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],J=()=>[no,"screen","full","dvw","lvw","svw","min","max","fit",...I()],be=()=>[no,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],Y=()=>[e,ce,se],fe=()=>[...w(),ST,TT,{position:[ce,se]}],Ft=()=>["no-repeat",{repeat:["","x","y","space","round"]}],nr=()=>["auto","cover","contain",wO,mO,{size:[ce,se]}],wr=()=>[Ip,us,Go],ft=()=>["","none","full",c,ce,se],st=()=>["",Se,us,Go],un=()=>["solid","dashed","dotted","double"],Dn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],et=()=>[Se,Ip,ST,TT],xr=()=>["","none",b,ce,se],Me=()=>["none",Se,ce,se],Dr=()=>["none",Se,ce,se],je=()=>[Se,ce,se],dn=()=>[no,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_n],breakpoint:[_n],color:[RT],container:[_n],"drop-shadow":[_n],ease:["in","out","in-out"],font:[fO],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_n],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_n],shadow:[_n],spacing:["px",Se],text:[_n],"text-shadow":[_n],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",no,se,ce,x]}],container:["container"],"container-type":[{"@container":["","normal","size",ce,se]}],"container-named":[pO],columns:[{columns:[Se,se,ce,s]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[tn,"auto",ce,se]}],basis:[{basis:[no,"full","auto",s,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Se,no,"auto","initial","none",se]}],grow:[{grow:["",Se,ce,se]}],shrink:[{shrink:["",Se,ce,se]}],order:[{order:[tn,"first","last","none",ce,se]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pbs:[{pbs:I()}],pbe:[{pbe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...be()]}],"min-block-size":[{"min-block":["auto",...be()]}],"max-block-size":[{"max-block":["none",...be()]}],w:[{w:[s,"screen",...K()]}],"min-w":[{"min-w":[s,"screen","none",...K()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,us,Go]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,vO,gO]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ip,se]}],"font-family":[{font:[yO,hO,t]}],"font-features":[{"font-features":[se]}],"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:[o,ce,se]}],"line-clamp":[{"line-clamp":[Se,"none",ce,vT]}],leading:[{leading:[i,...I()]}],"list-image":[{"list-image":["none",ce,se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...un(),"wavy"]}],"text-decoration-thickness":[{decoration:[Se,"from-font","auto",ce,Go]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Se,"auto",ce,se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"tab-size":[{tab:[tn,ce,se]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,se]}],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",ce,se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:Ft()}],"bg-size":[{bg:nr()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tn,ce,se],radial:["",ce,se],conic:[tn,ce,se]},xO,bO]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:wr()}],"gradient-via-pos":[{via:wr()}],"gradient-to-pos":[{to:wr()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:ft()}],"rounded-s":[{"rounded-s":ft()}],"rounded-e":[{"rounded-e":ft()}],"rounded-t":[{"rounded-t":ft()}],"rounded-r":[{"rounded-r":ft()}],"rounded-b":[{"rounded-b":ft()}],"rounded-l":[{"rounded-l":ft()}],"rounded-ss":[{"rounded-ss":ft()}],"rounded-se":[{"rounded-se":ft()}],"rounded-ee":[{"rounded-ee":ft()}],"rounded-es":[{"rounded-es":ft()}],"rounded-tl":[{"rounded-tl":ft()}],"rounded-tr":[{"rounded-tr":ft()}],"rounded-br":[{"rounded-br":ft()}],"rounded-bl":[{"rounded-bl":ft()}],"border-w":[{border:st()}],"border-w-x":[{"border-x":st()}],"border-w-y":[{"border-y":st()}],"border-w-s":[{"border-s":st()}],"border-w-e":[{"border-e":st()}],"border-w-bs":[{"border-bs":st()}],"border-w-be":[{"border-be":st()}],"border-w-t":[{"border-t":st()}],"border-w-r":[{"border-r":st()}],"border-w-b":[{"border-b":st()}],"border-w-l":[{"border-l":st()}],"divide-x":[{"divide-x":st()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":st()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...un(),"hidden","none"]}],"divide-style":[{divide:[...un(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-bs":[{"border-bs":Y()}],"border-color-be":[{"border-be":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...un(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Se,ce,se]}],"outline-w":[{outline:["",Se,us,Go]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",u,Ic,Pc]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",f,Ic,Pc]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:st()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Se,Go]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":st()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",p,Ic,Pc]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Se,ce,se]}],"mix-blend":[{"mix-blend":[...Dn(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Dn()}],"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":[Se]}],"mask-image-linear-from-pos":[{"mask-linear-from":et()}],"mask-image-linear-to-pos":[{"mask-linear-to":et()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":et()}],"mask-image-t-to-pos":[{"mask-t-to":et()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":et()}],"mask-image-r-to-pos":[{"mask-r-to":et()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":et()}],"mask-image-b-to-pos":[{"mask-b-to":et()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":et()}],"mask-image-l-to-pos":[{"mask-l-to":et()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":et()}],"mask-image-x-to-pos":[{"mask-x-to":et()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":et()}],"mask-image-y-to-pos":[{"mask-y-to":et()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[ce,se]}],"mask-image-radial-from-pos":[{"mask-radial-from":et()}],"mask-image-radial-to-pos":[{"mask-radial-to":et()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[Se]}],"mask-image-conic-from-pos":[{"mask-conic-from":et()}],"mask-image-conic-to-pos":[{"mask-conic-to":et()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:Ft()}],"mask-size":[{mask:nr()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,se]}],filter:[{filter:["","none",ce,se]}],blur:[{blur:xr()}],brightness:[{brightness:[Se,ce,se]}],contrast:[{contrast:[Se,ce,se]}],"drop-shadow":[{"drop-shadow":["","none",m,Ic,Pc]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Se,ce,se]}],"hue-rotate":[{"hue-rotate":[Se,ce,se]}],invert:[{invert:["",Se,ce,se]}],saturate:[{saturate:[Se,ce,se]}],sepia:[{sepia:["",Se,ce,se]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,se]}],"backdrop-blur":[{"backdrop-blur":xr()}],"backdrop-brightness":[{"backdrop-brightness":[Se,ce,se]}],"backdrop-contrast":[{"backdrop-contrast":[Se,ce,se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Se,ce,se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Se,ce,se]}],"backdrop-invert":[{"backdrop-invert":["",Se,ce,se]}],"backdrop-opacity":[{"backdrop-opacity":[Se,ce,se]}],"backdrop-saturate":[{"backdrop-saturate":[Se,ce,se]}],"backdrop-sepia":[{"backdrop-sepia":["",Se,ce,se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Se,"initial",ce,se]}],ease:[{ease:["linear","initial",v,ce,se]}],delay:[{delay:[Se,ce,se]}],animate:[{animate:["none",C,ce,se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,ce,se]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:Me()}],"rotate-x":[{"rotate-x":Me()}],"rotate-y":[{"rotate-y":Me()}],"rotate-z":[{"rotate-z":Me()}],scale:[{scale:Dr()}],"scale-x":[{"scale-x":Dr()}],"scale-y":[{"scale-y":Dr()}],"scale-z":[{"scale-z":Dr()}],"scale-3d":["scale-3d"],skew:[{skew:je()}],"skew-x":[{"skew-x":je()}],"skew-y":[{"skew-y":je()}],transform:[{transform:[ce,se,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:dn()}],"translate-x":[{"translate-x":dn()}],"translate-y":[{"translate-y":dn()}],"translate-z":[{"translate-z":dn()}],"translate-none":["translate-none"],zoom:[{zoom:[tn,ce,se]}],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"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",ce,se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":Y()}],"scrollbar-track-color":[{"scrollbar-track":Y()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mbs":[{"scroll-mbs":I()}],"scroll-mbe":[{"scroll-mbe":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pbs":[{"scroll-pbs":I()}],"scroll-pbe":[{"scroll-pbe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",ce,se]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Se,us,Go,vT]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},SO=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(zi(e,"cacheSize",t),zi(e,"prefix",r),zi(e,"experimentalParseClassName",n),_c(e.theme,i.theme),_c(e.classGroups,i.classGroups),_c(e.conflictingClassGroups,i.conflictingClassGroups),_c(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),zi(e,"postfixLookupClassGroups",i.postfixLookupClassGroups),zi(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Ac(e.theme,o.theme),Ac(e.classGroups,o.classGroups),Ac(e.conflictingClassGroups,o.conflictingClassGroups),Ac(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),_p(e,o,"postfixLookupClassGroups"),_p(e,o,"orderSensitiveModifiers"),e),zi=(e,t,r)=>{r!==void 0&&(e[t]=r)},_c=(e,t)=>{if(t)for(let r in t)zi(e,r,t[r])},Ac=(e,t)=>{if(t)for(let r in t)_p(e,t,r)},_p=(e,t,r)=>{let n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},BT=(e,...t)=>typeof e=="function"?xT(CT,e,...t):xT(()=>SO(CT(),e),...t);var CO=BT({extend:{classGroups:{"border-w":["border-host-bubble","border-button","border-input"],"border-color":["border-host-bubble-border","border-button-border","border-input-border"]}}});function io(...e){return CO(te(e))}d();var Op=Bn(()=>{}),Rc=()=>gn(Op);d();d();d();var ye=e=>typeof e=="string",ds=()=>{let e,t,r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},UT=e=>e==null?"":String(e),kO=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},EO=/###/g,VT=e=>e&&e.includes("###")?e.replace(EO,"."):e,zT=e=>!e||ye(e),fs=(e,t,r)=>{let n=ye(t)?t.split("."):t,o=0;for(;o<n.length-1;){if(zT(e))return{};let i=VT(n[o]);!e[i]&&r&&(e[i]=new r),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return zT(e)?{}:{obj:e,k:VT(n[o])}},jT=(e,t,r)=>{let{obj:n,k:o}=fs(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let i=t[t.length-1],a=t.slice(0,t.length-1),s=fs(e,a,Object);for(;s.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=fs(e,a,Object),s?.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=r},PO=(e,t,r,n)=>{let{obj:o,k:i}=fs(e,t,Object);o[i]=o[i]||[],o[i].push(r)},Nc=(e,t)=>{let{obj:r,k:n}=fs(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},IO=(e,t,r)=>{let n=Nc(e,r);return n!==void 0?n:Nc(t,r)},YT=(e,t,r)=>{for(let n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?ye(e[n])||e[n]instanceof String||ye(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):YT(e[n],t[n],r):e[n]=t[n]);return e},An=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),_O={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},AO=e=>ye(e)?e.replace(/[&<>"'\/]/g,t=>_O[t]):e,Mp=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let r=this.regExpMap.get(t);if(r!==void 0)return r;let n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}},RO=[" ",",","?","!",";"],OO=new Mp(20),NO=(e,t,r)=>{t=t||"",r=r||"";let n=RO.filter(a=>!t.includes(a)&&!r.includes(a));if(n.length===0)return!0;let o=OO.getRegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`),i=!o.test(e);if(!i){let a=e.indexOf(r);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i},$p=(e,t,r=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let n=t.split(r),o=e;for(let i=0;i<n.length;){if(!o||typeof o!="object")return;let a,s="";for(let l=i;l<n.length;++l)if(l!==i&&(s+=r),s+=n[l],a=o[s],a!==void 0){if(["string","number","boolean"].includes(typeof a)&&l<n.length-1)continue;i+=l-i+1;break}o=a}return o},ps=e=>e?.replace(/_/g,"-"),LO={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},Fp=class e{constructor(t,r={}){this.init(t,r)}init(t,r={}){this.prefix=r.prefix||"i18next:",this.logger=t||LO,this.options=r,this.debug=r.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,o){return o&&!this.debug?null:(t=t.map(i=>ye(i)?i.replace(/[\r\n\x00-\x1F\x7F]/g," "):i),ye(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},rn=new Fp,Gi=class{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);let o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}once(t,r){let n=(...o)=>{r(...o),this.off(t,n)};return this.on(t,n),this}emit(t,...r){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,i])=>{for(let a=0;a<i;a++)o(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,i])=>{for(let a=0;a<i;a++)o(t,...r)})}},Lc=class extends Gi{constructor(t,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){let r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n,o={}){let i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,a=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,s;t.includes(".")?s=t.split("."):(s=[t,r],n&&(Array.isArray(n)?s.push(...n):ye(n)&&i?s.push(...n.split(i)):s.push(n)));let l=Nc(this.data,s);return!l&&!r&&!n&&t.includes(".")&&(t=s[0],r=s[1],n=s.slice(2).join(".")),l||!a||!ye(n)?l:$p(this.data?.[t]?.[r],n,i)}addResource(t,r,n,o,i={silent:!1}){let a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=[t,r];n&&(s=s.concat(a?n.split(a):n)),t.includes(".")&&(s=t.split("."),o=r,r=s[1]),this.addNamespaces(r),jT(this.data,s,o),i.silent||this.emit("added",t,r,n,o)}addResources(t,r,n,o={silent:!1}){for(let i in n)(ye(n[i])||Array.isArray(n[i]))&&this.addResource(t,r,i,n[i],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,i,a={silent:!1,skipCopy:!1}){let s=[t,r];t.includes(".")&&(s=t.split("."),o=n,n=r,r=s[1]),this.addNamespaces(r);let l=Nc(this.data,s)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?YT(l,n,i):l={...l,...n},jT(this.data,s,l),a.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}},ZT={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(i=>{t=this.processors[i]?.process(t,r,n,o)??t}),t}},XT=Symbol("i18next/PATH_KEY");function DO(){let e=[],t=Object.create(null),r;return t.get=(n,o)=>(r?.revoke?.(),o===XT?e:(e.push(o),r=Proxy.revocable(n,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}function ji(e,t){let{[XT]:r}=e(DO()),n=t?.keySeparator??".",o=t?.nsSeparator??":",i=t?.enableSelector==="strict";if(r.length>1&&o){let a=t?.ns,s=i?Array.isArray(a)?a:a?[a]:null:Array.isArray(a)?a:null;if(s&&(i?s:s.length>1?s.slice(1):[]).includes(r[0]))return`${r[0]}${o}${r.slice(1).join(n)}`}return r.join(n)}var Np=e=>!ye(e)&&typeof e!="boolean"&&typeof e!="number",Dc=class e extends Gi{constructor(t,r={}){super(),kO(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=rn.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,r={interpolation:{}}){let n={...r};if(t==null)return!1;let o=this.resolve(t,n);if(o?.res===void 0)return!1;let i=Np(o.res);return!(n.returnObjects===!1&&i)}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");let o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,i=r.ns||this.options.defaultNS||[],a=n&&t.includes(n),s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!NO(t,n,o);if(a&&!s){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:ye(i)?[i]:i};let c=t.split(n);(n!==o||n===o&&this.options.ns.includes(c[0]))&&(i=c.shift()),t=c.join(o)}return{key:t,namespaces:ye(i)?[i]:i}}translate(t,r,n){let o=typeof r=="object"?{...r}:r;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=ji(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]),t=t.map(D=>typeof D=="function"?ji(D,{...this.options,...o}):String(D));let i=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],o),c=l[l.length-1],u=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");let f=o.lng||this.language,p=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode")return p?i?{res:`${c}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:`${c}${u}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:s;let m=this.resolve(t,o),b=m?.res,y=m?.usedKey||s,x=m?.exactUsedKey||s,v=["[object Number]","[object Function]","[object RegExp]"],C=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,w=o.count!==void 0&&!ye(o.count),E=e.hasDefaultValue(o),T=w?this.pluralResolver.getSuffix(f,o.count,o):"",R=o.ordinal&&w?this.pluralResolver.getSuffix(f,o.count,{ordinal:!1}):"",I=w&&!o.ordinal&&o.count===0,N=I&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${T}`]||o[`defaultValue${R}`]||o.defaultValue,L=b;A&&!b&&E&&(L=N);let G=Np(L),O=Object.prototype.toString.apply(L);if(A&&L&&G&&!v.includes(O)&&!(ye(C)&&Array.isArray(L))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let D=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,L,{...o,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(m.res=D,m.usedParams=this.getUsedParamsDetails(o),m):D}if(a){let D=Array.isArray(L),$=D?[]:{},U=D?x:y;for(let V in L)if(Object.prototype.hasOwnProperty.call(L,V)){let K=`${U}${a}${V}`;E&&!b?$[V]=this.translate(K,{...o,defaultValue:Np(N)?N[V]:void 0,joinArrays:!1,ns:l}):$[V]=this.translate(K,{...o,joinArrays:!1,ns:l}),$[V]===K&&($[V]=L[V])}b=$}}else if(A&&ye(C)&&Array.isArray(b))b=b.join(C),b&&(b=this.extendTranslation(b,t,o,n));else{let D=!1,$=!1;!this.isValidLookup(b)&&E&&(D=!0,b=N),this.isValidLookup(b)||($=!0,b=s);let V=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:b,K=E&&N!==b&&this.options.updateMissing;if($||D||K){if(this.logger.log(K?"updateKey":"missingKey",f,c,w&&!K?`${s}${this.pluralResolver.getSuffix(f,o.count,o)}`:s,K?N:b),a){let fe=this.resolve(s,{...o,keySeparator:!1});fe&&fe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let J=[],be=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&be&&be[0])for(let fe=0;fe<be.length;fe++)J.push(be[fe]);else this.options.saveMissingTo==="all"?J=this.languageUtils.toResolveHierarchy(o.lng||this.language):J.push(o.lng||this.language);let Y=(fe,Ft,nr)=>{let wr=E&&nr!==b?nr:V;this.options.missingKeyHandler?this.options.missingKeyHandler(fe,c,Ft,wr,K,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(fe,c,Ft,wr,K,o),this.emit("missingKey",fe,c,Ft,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?J.forEach(fe=>{let Ft=this.pluralResolver.getSuffixes(fe,o);I&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!Ft.includes(`${this.options.pluralSeparator}zero`)&&Ft.push(`${this.options.pluralSeparator}zero`),Ft.forEach(nr=>{Y([fe],s+nr,o[`defaultValue${nr}`]||N)})}):Y(J,s,N))}b=this.extendTranslation(b,t,o,m,n),$&&b===s&&this.options.appendNamespaceToMissingKey&&(b=`${c}${u}${s}`),($||D)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${u}${s}`:s,D?b:void 0,o))}return i?(m.res=b,m.usedParams=this.getUsedParamsDetails(o),m):b}extendTranslation(t,r,n,o,i){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let l=ye(t)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),c;if(l){let f=t.match(this.interpolator.nestingRegexp);c=f&&f.length}let u=n.replace&&!ye(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),t=this.interpolator.interpolate(t,u,n.lng||this.language||o.usedLng,n),l){let f=t.match(this.interpolator.nestingRegexp),p=f&&f.length;c<p&&(n.nest=!1)}!n.lng&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,(...f)=>i?.[0]===f[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${r[0]}`),null):this.translate(...f,r),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,s=ye(a)?[a]:a;return t!=null&&s?.length&&n.applyPostProcessor!==!1&&(t=ZT.handle(s,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t,r={}){let n,o,i,a,s;return ye(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(l=>typeof l=="function"?ji(l,{...this.options,...r}):l)),t.forEach(l=>{if(this.isValidLookup(n))return;let c=this.extractFromKey(l,r),u=c.key;o=u;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));let p=r.count!==void 0&&!ye(r.count),m=p&&!r.ordinal&&r.count===0,b=r.context!==void 0&&(ye(r.context)||typeof r.context=="number")&&r.context!=="",y=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);f.forEach(x=>{this.isValidLookup(n)||(s=x,!this.checkedLoadedFor[`${y[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&(this.checkedLoadedFor[`${y[0]}-${x}`]=!0,this.logger.warn(`key "${o}" for languages "${y.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(v=>{if(this.isValidLookup(n))return;a=v;let C=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(C,u,v,x,r);else{let w;p&&(w=this.pluralResolver.getSuffix(v,r.count,r));let E=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(r.ordinal&&w.startsWith(T)&&C.push(u+w.replace(T,this.options.pluralSeparator)),C.push(u+w),m&&C.push(u+E)),b){let R=`${u}${this.options.contextSeparator||"_"}${r.context}`;C.push(R),p&&(r.ordinal&&w.startsWith(T)&&C.push(R+w.replace(T,this.options.pluralSeparator)),C.push(R+w),m&&C.push(R+E))}}let A;for(;A=C.pop();)this.isValidLookup(n)||(i=A,n=this.getResource(v,x,A,r))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,r,n,o):this.resourceStore.getResource(t,r,n,o)}getUsedParamsDetails(t={}){let r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!ye(t.replace),o=n?t.replace:t;if(n&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(let i of r)delete o[i]}return o}static hasDefaultValue(t){let r="defaultValue";for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&n.startsWith(r)&&t[n]!==void 0)return!0;return!1}},Mc=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=rn.create("languageUtils")}getScriptPartFromCode(t){if(t=ps(t),!t||!t.includes("-"))return null;let r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=ps(t),!t||!t.includes("-"))return t;let r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(ye(t)&&t.includes("-")){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;let o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;let o=this.getScriptPartFromCode(n);if(this.isSupportedCode(o))return r=o;let i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.find(a=>a===i?!0:!a.includes("-")&&!i.includes("-")?!1:!!(a.includes("-")&&!i.includes("-")&&a.slice(0,a.indexOf("-"))===i||a.startsWith(i)&&i.length>1))}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),ye(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){let n=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],t),o=[],i=a=>{a&&(this.isSupportedCode(a)?o.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return ye(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):ye(t)&&i(this.formatLanguageCode(t)),n.forEach(a=>{o.includes(a)||i(this.formatLanguageCode(a))}),o}},GT={zero:0,one:1,two:2,few:3,many:4,other:5},HT={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},Bp=class{constructor(t,r={}){this.languageUtils=t,this.options=r,this.logger=rn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,r={}){let n=ps(t==="dev"?"en":t),o=r.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),HT;if(!t.match(/-|_/))return HT;let l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,r)}return this.pluralRulesCache[i]=a,a}needsPlural(t,r={}){let n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,r,n={}){return this.getSuffixes(t,n).map(o=>`${r}${o}`)}getSuffixes(t,r={}){let n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((o,i)=>GT[o]-GT[i]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,r,n={}){let o=this.getRule(t,n);return o?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,n))}},WT=(e,t,r,n=".",o=!0)=>{let i=IO(e,t,r);return!i&&o&&ye(r)&&(i=$p(e,r,n),i===void 0&&(i=$p(t,r,n))),i},Lp=e=>e.replace(/\$/g,"$$$$"),$c=class{constructor(t={}){this.logger=rn.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:i,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:f,nestingPrefix:p,nestingPrefixEscaped:m,nestingSuffix:b,nestingSuffixEscaped:y,nestingOptionsSeparator:x,maxReplaces:v,alwaysFormat:C}=t.interpolation;this.escape=r!==void 0?r:AO,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?An(i):a||"{{",this.suffix=s?An(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":f?An(f):"-",this.unescapeSuffix=this.unescapePrefix?"":u?An(u):"",this.nestingPrefix=p?An(p):m||An("$t("),this.nestingSuffix=b?An(b):y||An(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=v||1e3,this.alwaysFormat=C!==void 0?C:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(r,n)=>r?.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,r,n,o){let i,a,s,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=m=>{if(!m.includes(this.formatSeparator)){let v=WT(r,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,n,{...o,...r,interpolationkey:m}):v}let b=m.split(this.formatSeparator),y=b.shift().trim(),x=b.join(this.formatSeparator).trim();return this.format(WT(r,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),x,n,{...o,...r,interpolationkey:y})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let u=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Lp(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Lp(this.escape(m)):Lp(m)}].forEach(m=>{for(s=0;i=m.regex.exec(t);){let b=i[1].trim();if(a=c(b),a===void 0)if(typeof u=="function"){let x=u(t,i,o);a=ye(x)?x:""}else if(o&&Object.prototype.hasOwnProperty.call(o,b))a="";else if(f){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),a="";else!ye(a)&&!this.useRawValueToEscape&&(a=UT(a));let y=m.safeValue(a);if(t=t.replace(i[0],y),f?(m.regex.lastIndex+=a.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,r,n={}){let o,i,a,s=(l,c)=>{let u=this.nestingOptionsSeparator;if(!l.includes(u))return l;let f=l.split(new RegExp(`${An(u)}[ ]*{`)),p=`{${f[1]}`;l=f[0],p=this.interpolate(p,a);let m=p.match(/'/g),b=p.match(/"/g);((m?.length??0)%2===0&&!b||(b?.length??0)%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),c&&(a={...c,...a})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${u}${p}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];a={...n},a=a.replace&&!ye(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(c!==-1&&(l=o[1].slice(c).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),o[1]=o[1].slice(0,c)),i=r(s.call(this,o[1].trim(),a),a),i&&o[0]===t&&!ye(i))return i;ye(i)||(i=UT(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),l.length&&(i=l.reduce((u,f)=>this.format(u,f,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}},MO=e=>{let t=e.toLowerCase().trim(),r={};if(e.includes("(")){let n=e.split("(");t=n[0].toLowerCase().trim();let o=n[1].slice(0,-1);t==="currency"&&!o.includes(":")?r.currency||(r.currency=o.trim()):t==="relativetime"&&!o.includes(":")?r.range||(r.range=o.trim()):o.split(";").forEach(a=>{if(a){let[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();r[u]||(r[u]=c),c==="false"&&(r[u]=!1),c==="true"&&(r[u]=!0),isNaN(c)||(r[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},qT=e=>{let t={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});let a=n+JSON.stringify(i),s=t[a];return s||(s=e(ps(n),o),t[a]=s),s(r)}},$O=e=>(t,r,n)=>e(ps(r),n)(t),Up=class{constructor(t={}){this.logger=rn.create("formatter"),this.options=t,this.init(t)}init(t,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";let n=r.cacheInBuiltFormats?qT:$O;this.formats={number:n((o,i)=>{let a=new Intl.NumberFormat(o,{...i});return s=>a.format(s)}),currency:n((o,i)=>{let a=new Intl.NumberFormat(o,{...i,style:"currency"});return s=>a.format(s)}),datetime:n((o,i)=>{let a=new Intl.DateTimeFormat(o,{...i});return s=>a.format(s)}),relativetime:n((o,i)=>{let a=new Intl.RelativeTimeFormat(o,{...i});return s=>a.format(s,i.range||"day")}),list:n((o,i)=>{let a=new Intl.ListFormat(o,{...i});return s=>a.format(s)})}}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=qT(r)}format(t,r,n,o={}){if(!r||t==null)return t;let i=r.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&!i[0].includes(")")&&i.find(s=>s.includes(")"))){let s=i.findIndex(l=>l.includes(")"));i[0]=[i[0],...i.splice(1,s)].join(this.formatSeparator)}return i.reduce((s,l)=>{let{formatName:c,formatOptions:u}=MO(l);if(this.formats[c]){let f=s;try{let p=o?.formatParams?.[o.interpolationkey]||{},m=p.locale||p.lng||o.locale||o.lng||n;f=this.formats[c](s,m,{...u,...o,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${c}`);return s},t)}},FO=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Vp=class extends Gi{constructor(t,r,n,o={}){super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=rn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,o.backend,o)}queueLoad(t,r,n,o){let i={},a={},s={},l={};return t.forEach(c=>{let u=!0;r.forEach(f=>{let p=`${c}|${f}`;!n.reload&&this.store.hasResourceBundle(c,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,u=!1,a[p]===void 0&&(a[p]=!0),i[p]===void 0&&(i[p]=!0),l[f]===void 0&&(l[f]=!0)))}),u||(s[c]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){let o=t.split("|"),i=o[0],a=o[1];r&&this.emit("failedLoading",i,a,r),!r&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);let s={};this.queue.forEach(l=>{PO(l.loaded,[i],a),FO(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});let u=l.loaded[c];u.length&&u.forEach(f=>{s[c][f]===void 0&&(s[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n,o=0,i=this.retryTimeout,a){if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:o,wait:i,callback:a});return}this.readingCalls++;let s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){let f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&u&&o<this.maxRetries){setTimeout(()=>{this.read(t,r,n,o+1,i*2,a)},i);return}a(c,u)},l=this.backend[n].bind(this.backend);if(l.length===2){try{let c=l(t,r);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,r,s)}prepareLoading(t,r,n={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();ye(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ye(r)&&(r=[r]);let i=this.queueLoad(t,r,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t,r=""){let n=t.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${r}loading namespace ${i} for language ${o} failed`,a),!a&&s&&this.logger.log(`${r}loaded namespace ${i} for language ${o}`,s),this.loaded(t,a,s)})}saveMissing(t,r,n,o,i,a={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend?.create){let l={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,r,n,o,l):u=c(t,r,n,o),u&&typeof u.then=="function"?u.then(f=>s(null,f)).catch(s):s(null,u)}catch(u){s(u)}else c(t,r,n,o,s,l)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}},Dp=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ye(e[1])&&(t.defaultValue=e[1]),ye(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),KT=e=>(ye(e.ns)&&(e.ns=[e.ns]),ye(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ye(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Oc=()=>{},BO=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})},zp=class e extends Gi{constructor(t={},r){if(super(),this.options=KT(t),this.services={},this.logger=rn,this.modules={external:[]},BO(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(t={},r){this.isInitializing=!0,typeof t=="function"&&(r=t,t={}),t.defaultNS==null&&t.ns&&(ye(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));let n=Dp();this.options={...n,...this.options,...KT(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let o=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?rn.init(o(this.modules.logger),this.options):rn.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=Up;let u=new Mc(this.options);this.store=new Lc(this.options.resources,this.options);let f=this.services;f.logger=rn,f.resourceStore=this.store,f.languageUtils=u,f.pluralResolver=new Bp(u,{prepend:this.options.pluralSeparator}),c&&(f.formatter=o(c),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new $c(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new Vp(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(p,...m)=>{this.emit(p,...m)}),this.modules.languageDetector&&(f.languageDetector=o(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=o(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Dc(this.services,this.options),this.translator.on("*",(p,...m)=>{this.emit(p,...m)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Oc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...u)=>this.store[c](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...u)=>(this.store[c](...u),this)});let s=ds(),l=()=>{let c=(u,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(f),r(u,f)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(t,r=Oc){let n=r,o=ye(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();let i=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&(i.includes(c)||i.push(c))})};o?a(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload?.forEach?.(s=>a(s)),this.services.backendConnector.load(i,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(s)})}else n(null)}reloadResources(t,r,n){let o=ds();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=Oc),this.services.backendConnector.reload(t,r,i=>{o.resolve(),n(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ZT.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!["cimode","dev"].includes(t)){for(let r=0;r<this.languages.length;r++){let n=this.languages[r];if(!["cimode","dev"].includes(n)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,r){this.isLanguageChangingTo=t;let n=ds();this.emit("languageChanging",t);let o=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},i=(s,l)=>{l?this.isLanguageChangingTo===t&&(o(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,n.resolve((...c)=>this.t(...c)),r&&r(s,(...c)=>this.t(...c))},a=s=>{!t&&!s&&this.services.languageDetector&&(s=[]);let l=ye(s)?s:s&&s[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(ye(s)?[s]:s);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,u=>{i(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),n}getFixedT(t,r,n,o){let i=o?.scopeNs,a=(s,l,...c)=>{let u;typeof l!="object"?u=this.options.overloadTranslationOptionHandler([s,l].concat(c)):u={...l},u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs;let f=u.ns!==void 0&&u.ns!==null;u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||n||a.keyPrefix);let p={...this.options,...u};Array.isArray(i)&&!f&&(p.ns=i),typeof u.keyPrefix=="function"&&(u.keyPrefix=ji(u.keyPrefix,p));let m=this.options.keySeparator||".",b;return u.keyPrefix&&Array.isArray(s)?b=s.map(y=>(typeof y=="function"&&(y=ji(y,p)),`${u.keyPrefix}${m}${y}`)):(typeof s=="function"&&(s=ji(s,p)),b=u.keyPrefix?`${u.keyPrefix}${m}${s}`:s),this.t(b,u)};return ye(t)?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;let a=(s,l)=>{let c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(r.precheck){let s=r.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,t)&&(!o||a(i,t)))}loadNamespaces(t,r){let n=ds();return this.options.ns?(ye(t)&&(t=[t]),t.forEach(o=>{this.options.ns.includes(o)||this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){let n=ds();ye(t)&&(t=[t]);let o=this.options.preload||[],i=t.filter(a=>!o.includes(a)&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=o.concat(i),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let o=new Intl.Locale(t);if(o&&o.getTextInfo){let i=o.getTextInfo();if(i&&i.direction)return i.direction}}catch{}let r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services?.languageUtils||new Mc(Dp());return t.toLowerCase().indexOf("-latn")>1?"ltr":r.includes(n.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},r){let n=new e(t,r);return n.createInstance=e.createInstance,n}cloneInstance(t={},r=Oc){let n=t.forkResourceStore;n&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},i=new e(o);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){let s=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((u,f)=>(u[f]={...l[c][f]},u),l[c]),l),{});i.store=new Lc(s,o),i.services.resourceStore=i.store}if(t.interpolation){let l={...Dp().interpolation,...this.options.interpolation,...t.interpolation},c={...o,interpolation:l};i.services.interpolator=new $c(c)}return i.translator=new Dc(i.services,o),i.translator.on("*",(s,...l)=>{i.emit(s,...l)}),i.init(o,r),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Xt=zp.createInstance(),JT=Xt.createInstance,$7=Xt.dir,F7=Xt.init,B7=Xt.loadResources,U7=Xt.reloadResources,V7=Xt.use,z7=Xt.changeLanguage,j7=Xt.getFixedT,G7=Xt.t,H7=Xt.exists,W7=Xt.setDefaultNamespace,q7=Xt.hasLoadedNamespace,K7=Xt.loadNamespaces,Y7=Xt.loadLanguages;d();var Fc=class e extends Error{type;status;description;constructor(t,r){let n=typeof r=="string"?r:void 0;if(super(n||t),this.type=t,this.description=n,typeof r=="number")this.status=r;else switch(t){case"UNAUTHORIZED":this.status=403;break;case"USAGE_LIMIT":case"PREMIUM_FEATURE":this.status=402;break;case"NOT_FOUND":this.status=404;break;case"INVALID_REQUEST":case"EMPTY_DATASOURCE":case"ALREADY_INVITED":case"INTEGRATION_VALIDATION_FAILED":this.status=400;break;case"INTEGRATION_CREDENTIALS_INVALID":this.status=403;break;case"RATE_LIMIT":this.status=429;break;case"NOT_IMPLEMENTED":this.status=501;break;case"INTERNAL_ERROR":this.status=500;break;case"CONFLICT":this.status=409;break;default:this.status=500;break}Object.setPrototypeOf(this,e.prototype)}};d();d();var Uc=[{code:"en",nativeName:"English",englishName:"English",flagCode:"US",dir:"ltr",isDefault:!0},{code:"pt-BR",nativeName:"Português (BR)",englishName:"Portuguese (Brazil)",flagCode:"BR",dir:"ltr"},{code:"es",nativeName:"Español",englishName:"Spanish",flagCode:"ES",dir:"ltr"},{code:"ar",nativeName:"العربية",englishName:"Arabic",flagCode:"AE",dir:"rtl"},{code:"az",nativeName:"Azərbaycan dili",englishName:"Azerbaijani",flagCode:"AZ",dir:"ltr"},{code:"bg",nativeName:"Български",englishName:"Bulgarian",flagCode:"BG",dir:"ltr"},{code:"bn",nativeName:"বাংলা",englishName:"Bengali",flagCode:"BD",dir:"ltr"},{code:"ca",nativeName:"Català",englishName:"Catalan",flagCode:"ES",dir:"ltr"},{code:"cs",nativeName:"Čeština",englishName:"Czech",flagCode:"CZ",dir:"ltr"},{code:"da",nativeName:"Dansk",englishName:"Danish",flagCode:"DK",dir:"ltr"},{code:"de",nativeName:"Deutsch",englishName:"German",flagCode:"DE",dir:"ltr"},{code:"el",nativeName:"Ελληνικά",englishName:"Greek",flagCode:"GR",dir:"ltr"},{code:"eo",nativeName:"Esperanto",englishName:"Esperanto",flagCode:"EU",dir:"ltr"},{code:"et",nativeName:"Eesti",englishName:"Estonian",flagCode:"EE",dir:"ltr"},{code:"fa",nativeName:"فارسی",englishName:"Persian",flagCode:"IR",dir:"rtl"},{code:"fi",nativeName:"Suomi",englishName:"Finnish",flagCode:"FI",dir:"ltr"},{code:"fr",nativeName:"Français",englishName:"French",flagCode:"FR",dir:"ltr"},{code:"ga",nativeName:"Gaeilge",englishName:"Irish",flagCode:"IE",dir:"ltr"},{code:"he",nativeName:"עברית",englishName:"Hebrew",flagCode:"IL",dir:"rtl"},{code:"hi",nativeName:"हिन्दी",englishName:"Hindi",flagCode:"IN",dir:"ltr"},{code:"hu",nativeName:"Magyar",englishName:"Hungarian",flagCode:"HU",dir:"ltr"},{code:"id",nativeName:"Bahasa Indonesia",englishName:"Indonesian",flagCode:"ID",dir:"ltr"},{code:"it",nativeName:"Italiano",englishName:"Italian",flagCode:"IT",dir:"ltr"},{code:"ja",nativeName:"日本語",englishName:"Japanese",flagCode:"JP",dir:"ltr"},{code:"ko",nativeName:"한국어",englishName:"Korean",flagCode:"KR",dir:"ltr"},{code:"lt",nativeName:"Lietuvių",englishName:"Lithuanian",flagCode:"LT",dir:"ltr"},{code:"lv",nativeName:"Latviešu",englishName:"Latvian",flagCode:"LV",dir:"ltr"},{code:"ms",nativeName:"Bahasa Melayu",englishName:"Malay",flagCode:"MY",dir:"ltr"},{code:"nb",nativeName:"Norsk Bokmål",englishName:"Norwegian Bokmål",flagCode:"NO",dir:"ltr"},{code:"nl",nativeName:"Nederlands",englishName:"Dutch",flagCode:"NL",dir:"ltr"},{code:"pl",nativeName:"Polski",englishName:"Polish",flagCode:"PL",dir:"ltr"},{code:"pt",nativeName:"Português",englishName:"Portuguese",flagCode:"PT",dir:"ltr"},{code:"ro",nativeName:"Română",englishName:"Romanian",flagCode:"RO",dir:"ltr"},{code:"ru",nativeName:"Русский",englishName:"Russian",flagCode:"RU",dir:"ltr"},{code:"sk",nativeName:"Slovenčina",englishName:"Slovak",flagCode:"SK",dir:"ltr"},{code:"sl",nativeName:"Slovenščina",englishName:"Slovenian",flagCode:"SI",dir:"ltr"},{code:"sv",nativeName:"Svenska",englishName:"Swedish",flagCode:"SE",dir:"ltr"},{code:"th",nativeName:"ไทย",englishName:"Thai",flagCode:"TH",dir:"ltr"},{code:"tl",nativeName:"Tagalog",englishName:"Tagalog",flagCode:"PH",dir:"ltr"},{code:"tr",nativeName:"Türkçe",englishName:"Turkish",flagCode:"TR",dir:"ltr"},{code:"uk",nativeName:"Українська",englishName:"Ukrainian",flagCode:"UA",dir:"ltr"},{code:"ur",nativeName:"اردو",englishName:"Urdu",flagCode:"PK",dir:"rtl"},{code:"zh",nativeName:"中文",englishName:"Chinese",flagCode:"CN",dir:"ltr"}],jp="en",Gp=Uc.map(e=>e.code),eq=new Set(Gp),tq=Uc.map(e=>({code:e.code,name:e.nativeName,englishName:e.englishName,flag:e.flagCode,dir:e.dir})),UO=new Map(Uc.map(e=>[e.code.toLowerCase(),e])),Bc=new Map;for(let e of Uc){let t=e.code.split("-")[0].toLowerCase();(!Bc.has(t)||"isDefault"in e&&e.isDefault)&&Bc.set(t,e.code)}function QT(e,t=jp){let r=e?.trim();if(!r)return t;let n=UO.get(r.toLowerCase());if(n)return n.code;let o=r.split("-")[0]?.toLowerCase();return o&&Bc.has(o)?Bc.get(o)??t:t}var Pt=jp,bt="translations",VO=!1,Wo="https://cdn.jsdelivr.net/npm/@zappway/embeds@2.0.2/dist/locales",zO=Gp,iq=new Set(zO),gs={main:{localeDirectory:"locales-ZappWay",splitDirectories:["i18n-split"],browserDirectories:[],cdnDirectory:"locales-ZappWay",cdnSplit:!0},lp:{localeDirectory:"locales-ZappWay-LP",splitDirectories:["i18n-split-lp","i18n-split-zappway-lp"],browserDirectories:[],cdnDirectory:"locales-ZappWay-LP",cdnSplit:!1},integrations:{localeDirectory:"locales-Integrations",splitDirectories:["i18n-split-integrations"],browserDirectories:[],cdnDirectory:"locales-Integrations",cdnSplit:!1},emails:{localeDirectory:"locales-Emails",splitDirectories:["i18n-split-emails"],browserDirectories:[],cdnDirectory:"locales-Emails",cdnSplit:!1},workers:{localeDirectory:"locales-Workers",splitDirectories:["i18n-split-workers"],browserDirectories:[],cdnDirectory:"locales-Workers",cdnSplit:!1},zappflux:{localeDirectory:"locales-ZappFlux",splitDirectories:["i18n-split-zappflux"],browserDirectories:[],cdnDirectory:"locales-ZappFlux",cdnSplit:!1},"zappflux-lp":{localeDirectory:"locales-ZappFlux-LP",splitDirectories:["i18n-split-zappflux-lp"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-LP",cdnSplit:!1},"zappflux-templates":{localeDirectory:"locales-ZappFlux-Templates",splitDirectories:["i18n-split-zappflux-templates"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-Templates",cdnSplit:!1,namespaceFiles:!0},"pitch-deck":{localeDirectory:"locales-PitchDeck",splitDirectories:["i18n-split-pitch-deck"],browserDirectories:[],cdnDirectory:"locales-PitchDeck",cdnSplit:!1},reports:{localeDirectory:"locales-Reports",splitDirectories:["i18n-split-reports"],browserDirectories:[],cdnDirectory:"locales-Reports",cdnSplit:!1},rag:{localeDirectory:"locales-RAG",splitDirectories:["i18n-split-rag"],browserDirectories:[],cdnDirectory:"locales-RAG",cdnSplit:!1}},qc={lp:"lp",rag:"rag",flow:"zappflux",emails:"emails",workers:"workers",reports:"reports",zappflux:"zappflux",integrations:"integrations","pitch-deck":"pitch-deck","zappflux-lp":"zappflux-lp","zappflux-templates":"zappflux-templates",WhatsAppSettings:"integrations",WhatsAppIntegrationPage:"integrations",WhatsAppBusiness_IntegrationSettings:"integrations",TelegramSettings:"integrations",Telegram_IntegrationSettings:"integrations",InstagramSettings:"integrations",Instagram_IntegrationSettings:"integrations",MessengerSettings:"integrations",Messenger_IntegrationSettings:"integrations",TikTokSettings:"integrations",TikTok_IntegrationSettings:"integrations",ZendeskSettings:"integrations",Zendesk_IntegrationSettings:"integrations",SlackSettings:"integrations",ShopifySettings:"integrations",ConnectWhatsApp:"integrations",QRCode:"integrations",crisp:"integrations",crispConfig:"integrations",crispSettingsModal:"integrations"},Vc=null,ms=null,nn=null,Wp=null,Hi=null,ao=null,vt=null,qp=null,jO=globalThis.eval;function GO(){if(nn)return nn;try{if(typeof __non_webpack_require__=="function")nn=__non_webpack_require__;else if(typeof ad=="function")nn=ad;else if(globalThis.require)nn=globalThis.require;else{let e="require";nn=globalThis[e]||jO(e)}return nn}catch(e){return console.error(" [i18n-runtime-loader] Critical: Failed to obtain require function",e),null}}function Wi(){if(typeof window<"u")return!1;if(Vc&&ms)return!0;try{let e=GO();return e?(Vc=e("fs"),ms=e("path"),Wp=Vc.readFileSync,Hi=Vc.existsSync,ao=ms.join,vt=ms.resolve,qp=ms.dirname,!0):!1}catch{return!1}}var zc=new Map,eS=new Map;function Yp(e){if(Wi(),!Hi)return[];let t=new Set;return e.filter(r=>!!r).filter(r=>t.has(r)||!Hi(r)?!1:(t.add(r),!0))}function HO(e){if(Wi(),!(!nn||!qp))try{let r=nn.resolve.call(nn,`${e}/package.json`);return qp(r)}catch{return}}var jc=null;function WO(){if(jc)return jc;if(Wi(),!vt)return[];let e=process.cwd(),t=h.ZW_I18N_CACHE_ROOT;return jc=Yp([t,vt(e,".next/cache"),vt(e,"../.next/cache"),vt(e,"../../.next/cache"),vt(e,"apps/zappway/dashboard/.next/cache"),vt(e,"packages/zappflux/packages/app/.next/cache"),"/var/task/.next/cache","/var/task/apps/zappway/dashboard/.next/cache"]),jc}var Gc=null;function qO(){if(Gc)return Gc;if(Wi(),!vt||!ao)return[];let e=process.cwd(),t=HO("@zappway/lib");return Gc=Yp([t,vt(e,"packages/zappway/lib"),vt(e,"../packages/zappway/lib"),vt(e,"../../packages/zappway/lib"),vt(e,"../../../packages/zappway/lib"),vt(e,"../../../../packages/zappway/lib"),vt(e,"node_modules/@zappway/lib"),vt(e,"../node_modules/@zappway/lib"),vt(e,"../../node_modules/@zappway/lib"),vt(e,"../../../node_modules/@zappway/lib"),vt(e,"../../../../node_modules/@zappway/lib")]).filter(r=>Hi(ao(r,"locales"))),Gc}var Hp=new Map;function tS(e){if(Hp.has(e))return Hp.get(e);if(Wi(),!Wp||!Hi||!Hi(e))return null;try{let t=Wp(e,"utf8"),r=JSON.parse(t);return Hp.set(e,r),r}catch{return null}}function Kp(e,t){if(!e)return null;let r=t||bt;if(r===bt)return e;if(e[r])return e[r];let n=r.split("."),o=e,i=!0;for(let a of n)if(o&&typeof o=="object"&&a in o)o=o[a];else{i=!1;break}return i&&o&&typeof o=="object"?o:r!==bt?{}:e}var Hc=null;function KO(){return Hc||(Hc=Yp([...WO(),...qO()]),Hc)}function Kc(e){return QT(e,Pt)}function Zp(e,t,r){if(typeof window<"u"||!Wi())return{};let n=Kc(e),o=r||bt,i=`node:${n}:${t}:${o}`,a=zc.get(i);if(a)return a;let s=gs[t];if(t==="main"&&o!==bt&&qc[o])return zc.set(i,{}),{};let l=KO(),c=[];for(let f of l){for(let p of s.splitDirectories)c.push(ao(f,p,n,`${o}.json`)),c.push(ao(f,"locales",p,n,`${o}.json`));c.push(ao(f,s.localeDirectory,n,`${o}.json`)),c.push(ao(f,"locales",s.localeDirectory,n,`${o}.json`))}for(let f of c){let p=tS(f);if(p&&Object.keys(p).length>0)return zc.set(i,p),p}let u={};for(let f of l){let p=ao(f,"locales",s.localeDirectory,n,"translations.json"),m=tS(p);if(m){if(u=Kp(m,r)||{},Object.keys(u).length>0)break}else VO&&r===bt&&console.warn(` [i18n] Bundle not found or empty: ${p} (CWD: ${typeof process<"u"?process.cwd():"unknown"})`)}return Object.keys(u).length===0&&n!==Pt?Zp(Pt,t,r):(zc.set(i,u),u)}function Xp(e,t,r){let n=t.map(o=>Zp(e,o,r));return oS(n)}async function Wc(e,t=2e3){let r=new AbortController,n=setTimeout(()=>r.abort(),t);try{let o=await fetch(`${e}?v=${Date.now()}`,{signal:r.signal,cache:"force-cache"});return clearTimeout(n),o.ok?await o.json():null}catch{return clearTimeout(n),null}}async function YO(e,t,r){let n=Kc(e),o=r||bt,a=`${typeof window>"u"?"node":"browser"}:${n}:${t}:${o}`,s=eS.get(a);if(s)return await s||{};let l=gs[t],c=(async()=>{if(typeof window>"u"){let u=Zp(e,t,r);if(u&&Object.keys(u).length>0)return u;let f=t==="main"&&o!==bt&&!o.includes(".")?`${Wo}/${l.cdnDirectory}/${n}/${o}.json`:`${Wo}/${l.cdnDirectory}/${n}/translations.json`;try{let p=await Wc(f,3e3);if(p){let m=Kp(p,r);if(m&&Object.keys(m).length>0)return m}}catch{}}else{for(let m of l.browserDirectories){let b=await Wc(`/locales-runtime/${m}/${n}/${o}.json`);if(b)return b}let u=await Wc(`/api/i18n/${n}/${o}`);if(u)return u;let f=t==="main"&&o!==bt&&!o.includes(".")?`${Wo}/${l.cdnDirectory}/${n}/${o}.json`:`${Wo}/${l.cdnDirectory}/${n}/translations.json`,p=await Wc(f);if(p)return Kp(p,r)||{}}return{}})();return eS.set(a,c),c||{}}async function rS(e,t,r){let n=t.map(i=>YO(e,i,r)),o=await Promise.all(n);return oS(o)}function nS(e,t){let r={...e};for(let[n,o]of Object.entries(t||{})){let i=r[n];i&&typeof i=="object"&&o&&typeof o=="object"&&!Array.isArray(o)?r[n]=nS(i,o):r[n]=o}return r}function oS(e){return e.reduce((t,r)=>nS(t,r||{}),{})}var em=["lp","rag","main","emails","reports","workers","zappflux","zappflux-lp","integrations","zappflux-templates"],Jp={},qi={},Qp=new Map;function hN(){let e=typeof window<"u"?window.location.pathname.split("/")[1]:null,t=typeof window<"u"?new URL(window.location.href).searchParams.get("lang")||new URL(window.location.href).searchParams.get("locale"):null,r=e||t||typeof document>"u"?null:document.cookie.split(";").find(i=>i.trim().startsWith("NEXT_LOCALE="))?.split("=")[1],n=globalThis.headers?.get?.("accept-language")?.split(",")[0],o=typeof navigator<"u"?navigator.language:null;return Zc(e||t||r||n||o||Pt)}function Zc(e){return Kc(e)}function bN(e){let t=e&&e.length?e:[bt];return Array.from(new Set([bt,...t]))}function hs(e){return!e||Object.keys(e).length===0}function Yc(e,t){if(!e)return null;let r=t||bt;if(r===bt||r!==bt&&qc[r]===r)return e;if(e[r])return e[r];let n=e,o=!0,i=r.split(".");for(let a of i)if(n&&typeof n=="object"&&a in n)n=n[a];else{o=!1;break}return o&&n&&typeof n=="object"?n:r===bt?e:{}}function lS(e,t=bt){let r=Zc(e),n=`fs:${r}:${t}`,o=qi[n];if(o)return o;let i=t===bt?void 0:t,a=Xp(r,em,i);if(!hs(a))return qi[n]=a,a;let s=`fs:${Pt}:${t}`,l=qi[s];if(l)return l;let c=Xp(Pt,em,i);if(!hs(c))return qi[s]=c,c;throw new Fc("INTERNAL_ERROR",500)}async function tm(e,t=3e3){let r=new AbortController,n=setTimeout(()=>r.abort(),t);try{let o=await fetch(e,{signal:r.signal,cache:"force-cache"});return o.ok?await o.json():null}catch{return null}finally{clearTimeout(n)}}async function yN(e,t="main"){if(t==="main")return null;let r=gs[t].cdnDirectory,n=`bundle:${e}:${r}`;if(Qp.has(n))return Qp.get(n);let o=(async()=>{let i=`${Wo}/${r}/${e}/translations.json`;return await tm(i,3e3)})();return Qp.set(n,o),o}async function cS(e,t=bt,r){let n=Zc(e),o=`cdn:${n}:${t}`,i=qi[o];if(i)return i;let a=qc[t]||"main",s=gs[a].cdnDirectory,l=async b=>{let y=t.split(".")[0],x=`${Wo}/${s}/${b}/${y}.json`,v=await tm(x,2e3);return v?Yc(v,t):null},c=async b=>{if(!r)return null;let y=t.split(".")[0],x=`${r}/api/i18n/${b}/${y}`,v=await tm(x,2e3);return Yc(v||{},t)},u=async b=>{try{let{loadManualTranslationsWithZappFlux:y}=await Promise.resolve().then(()=>(sS(),aS)),x=await y(b);return Yc(x||{},t)}catch{return null}},f=async b=>{try{return await rS(b,em,t)}catch{return null}},p=null;if(a==="main")p=await c(n),p||(p=await l(n)),p||(p=await u(n)),p||(p=await f(n)),p||(p=await c(Pt)),p||(p=await l(Pt)),p||(p=await u(Pt)),p||(p=await f(Pt));else{if(p=await c(n),hs(p||{})){let b=await yN(n,a);p=Yc(b||{},t)}hs(p||{})&&(p=await u(n)),hs(p||{})&&(p=await f(n))}let m=p||{};return qi[o]=m,m}async function uS(e,t,r){let n=Zc(e||hN()),o=bN(t),i=r||(typeof window<"u"?window.location.origin:void 0),a=typeof window>"u"?"node":"browser",s=`inst:${n}:${o.slice().sort().join("|")}:${a}`;if(Jp[s])return Jp[s];let l=typeof window>"u",c={[n]:{}};for(let f of o)c[n][f]=l?lS(n,f):await cS(n,f,i);if(n!==Pt){c[Pt]={};for(let f of o)c[Pt][f]=l?lS(Pt,f):await cS(Pt,f,i)}let u=JT();return await u.init({lng:n,fallbackLng:Pt,defaultNS:o[0],ns:o,resources:c,interpolation:{escapeValue:!1}}),Jp[s]=u,u}var dS=Bn(),so=e=>{let[t,r]=F(!1),[n,o]=F();Te(async()=>{try{let a=await uS(e.lang,["zappflux","templates"],e.apiHost);o(a),r(!0)}catch(a){console.error("[ZappFlux-Solid] I18n initialization failed:",a),r(!0)}});let i=(a,s)=>{if(!n())return a;let c=n().getFixedT(null,"zappflux")(a,s);return c!==a?c:n().getFixedT(null,"templates")(a,s)||a};return g(dS.Provider,{value:{t:i,isInitialized:t},get children(){return g(z,{get when(){return t()},get children(){return e.children}})}})},Mt=()=>{let e=gn(dS);return e||{t:t=>t,isInitialized:()=>!1}};d();d();var fS=e=>{sessionStorage.setItem("flowPaymentInProgress",JSON.stringify(e))},Ki=()=>sessionStorage.getItem("flowPaymentInProgress"),Xc=()=>{sessionStorage.removeItem("flowPaymentInProgress")};d();var qo=()=>{try{if(typeof window>"u"||!(parent!==window)||!Re(document.referrer))return;try{return new URL(document.referrer).origin}catch{return}}catch{return}};d();d();var Jt=(e,t)=>{if(typeof window<"u")return window.__ENV?window.__ENV[e]??t:void 0;if(!(typeof process>"u"))return h[e]??t};var wN="https://app.zappflux.zappway.ai",Qt=({ignoreChatApiUrl:e}={ignoreChatApiUrl:!1})=>{let t=Jt("NEXT_PUBLIC_CHAT_API_URL"),r=Jt("NEXT_PUBLIC_USE_EXPERIMENTAL_CHAT_API_ON")?.split(",");if(!e&&t&&(!r||r.some(a=>a===window.location.href)))return t;let n=Jt("NEXT_PUBLIC_VIEWER_URL")?.split(","),o=n?.find(a=>window.location.href.startsWith(a)),i=Jt("NEXT_PUBLIC_BUILDER_URL")??wN;return o??n?.[0]??i};async function pS({flow:e,isPreview:t,apiHost:r,prefilledVariables:n,resultId:o,stripeRedirectStatus:i,startFrom:a,sessionId:s}){if(gt(e))throw new Error("Flow ID is required to get initial messages");let l=Ki()??void 0,c=l?JSON.parse(l):void 0;if(c)return xN({apiHost:r,stripeRedirectStatus:i,paymentInProgressState:c});let u=typeof e=="string"?e:e.id;if(t)return vN({apiHost:r,flowId:u,startFrom:a,flow:e,prefilledVariables:n,sessionId:s});try{let f=qo();return{data:await(await ro.post(`${rm(r)}/api/v1/flows/${u}/startChat`,{headers:{"x-flow-iframe-referrer-origin":f},json:{isStreamEnabled:!0,prefilledVariables:n,resultId:o,isOnlyRegistering:!1},timeout:!1})).json()}}catch(f){return{error:f}}}var xN=async({apiHost:e,stripeRedirectStatus:t,paymentInProgressState:r})=>{Xc();try{let n=qo();return{data:{...await ro.post(`${rm(e)}/api/v1/sessions/${r.sessionId}/continueChat`,{headers:{"x-flow-iframe-referrer-origin":n},json:{message:t==="failed"?"fail":"Success"},timeout:!1}).json(),...r}}}catch(n){return{error:n}}},vN=async({apiHost:e,flowId:t,startFrom:r,flow:n,prefilledVariables:o,sessionId:i})=>{try{return{data:await ro.post(`${rm(e)}/api/v1/flows/${t}/preview/startChat`,{json:{isStreamEnabled:!0,startFrom:r,flow:n,prefilledVariables:o,sessionId:i},timeout:!1}).json()}}catch(a){return{error:a}}},rm=e=>Re(e)?e:Qt();d();var Jc=class extends Error{constructor(t){super("This bot can only be executed on "+t)}};d();var TN="https://fonts.bunny.net/css2",Qc="flow-font",nm=e=>{let t=document.getElementById(Qc);if(typeof e=="string"||e.type==="Google"){let r=(typeof e=="string"?e:e.family)??Ui;if(t?.getAttribute("href")?.includes(r))return;t?.remove();let n=document.createElement("link");n.href=`${TN}?family=${r}:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap`,n.rel="stylesheet",n.id=Qc,document.head.appendChild(n);return}if(e.type==="Custom"){if(Re(e.css)){if(t?.innerHTML===e.css)return;t?.remove();let r=document.createElement("style");r.innerHTML=e.css,r.id=Qc,document.head.appendChild(r)}if(Re(e.url)){if(t?.getAttribute("href")===e.url)return;t?.remove();let r=document.createElement("link");r.href=e.url,r.rel="stylesheet",r.id=Qc,document.head.appendChild(r)}}};d();var bs=(e,t)=>({...e,general:e.general?{...e.general,background:e.general.background?{...e.general.background,content:t?.backgroundUrl??e.general.background?.content}:void 0}:void 0,chat:{...e.chat,hostAvatar:e.chat?.hostAvatar&&t?.hostAvatarUrl?{...e.chat.hostAvatar,url:t.hostAvatarUrl}:e.chat?.hostAvatar,guestAvatar:e.chat?.guestAvatar&&t?.guestAvatarUrl?{...e.chat.guestAvatar,url:t?.guestAvatarUrl}:e.chat?.guestAvatar}});d();d();var om="resultId",mS=e=>{if(e)try{return sessionStorage.getItem(`${om}-${e}`)??localStorage.getItem(`${om}-${e}`)??void 0}catch{}},gS=(e="session")=>(t,r)=>{try{Zi(e).setItem(`${om}-${t}`,r)}catch{}},hS=e=>{if(e)try{let t=sessionStorage.getItem(`flow-${e}-initialChatReply`)??localStorage.getItem(`flow-${e}-initialChatReply`);return t?JSON.parse(t):void 0}catch{}},im=(e,{flowId:t,storage:r})=>{try{let n=JSON.stringify(e);Zi(r).setItem(`flow-${t}-initialChatReply`,n)}catch{}},eu=()=>{try{sessionStorage.setItem("flow-botOpened","true")}catch{}},Yi=()=>{try{sessionStorage.removeItem("flow-botOpened")}catch{}},tu=()=>{try{return sessionStorage.getItem("flow-botOpened")==="true"}catch{return!1}},Zi=e=>(e??Et.general.rememberUser.storage)==="session"?sessionStorage:localStorage,on=e=>{Object.keys(localStorage).forEach(t=>{t.startsWith(`flow-${e}`)&&localStorage.removeItem(t)}),Object.keys(sessionStorage).forEach(t=>{t.startsWith(`flow-${e}`)&&sessionStorage.removeItem(t)})};function ys(e,t){if(!t.storage)return[...e];let r=Zi(t.storage||Et.general.rememberUser.storage),n=a=>{let s=JSON.parse(JSON.stringify(a));return typeof s!="object"||("blobUrl"in s&&(s.blobUrl=void 0),"attachments"in s&&Array.isArray(s.attachments)&&s.attachments.forEach(l=>{l&&"blobUrl"in l&&(l.blobUrl=void 0)})),JSON.stringify(s)},o=JSON.parse.bind(JSON),i=r.getItem(t.key);if(i){let a=typeof e[0]=="function"?l=>e[1](()=>l):l=>e[1](uh(l)),s=o(i);t.transformInitDataFromStorage&&(s=t.transformInitDataFromStorage(s),r.setItem(t.key,n(s))),a(s),t.onRecovered?.()}return[e[0],typeof e[0]=="function"?a=>{let s=e[1](a);return a?r.setItem(t.key,n(s)):r.removeItem(t.key),s}:(...a)=>{e[1](...a);let s=n(Ze(()=>e[0]));r.setItem(t.key,s)}]}d();d();var at=e=>{let t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,(n,o,i,a)=>o+o+i+i+a+a);let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?[Number.parseInt(r[1]??"",16),Number.parseInt(r[2]??"",16),Number.parseInt(r[3]??"",16)]:[0,0,0]},lo=e=>(([t,r,n])=>(t*299+r*587+n*114)/1e3>155)(at(e));d();var Xi=({chatContainer:e,generalBackground:t})=>{let r=e?.backgroundColor??jo;if((e?.opacity??Gt)<=.3||r==="transparent"||Je(r)){let o=t?.type??Cc,i=o==="Image"?"#000000":o==="Color"&&Re(t?.content)?t.content:"#ffffff";return lo(i)}return lo(r)};var yS=({theme:e,container:t,isPreview:r,flowVersion:n,isDarkMode:o=!1})=>{if(!e)return;let i=t.style;am({background:e.general?.background,documentStyle:i,flowVersion:n??"6",isDarkMode:o}),i.setProperty(ie.general.fontFamily,(typeof e.general?.font=="string"?e.general.font:e.general?.font?.family)??Ui),SN({progressBar:e.general?.progressBar,documentStyle:i,isPreview:r,flowVersion:n??"6"}),CN({chatTheme:e.chat,generalBackground:e.general?.background,documentStyle:i,flowVersion:n??"6",isDarkMode:o})};var SN=({progressBar:e,documentStyle:t,isPreview:r,flowVersion:n})=>{let o=e?.position??kc;t.setProperty(ie.general.progressBar.position,o==="fixed"?r?"absolute":"fixed":o),t.setProperty(ie.general.progressBar.color,e?.color??W0[n]),t.setProperty(ie.general.progressBar.colorRgb,at(e?.backgroundColor??q0[n]).join(", ")),t.setProperty(ie.general.progressBar.height,`${e?.thickness??K0}px`);let i=e?.placement??Y0;t.setProperty(ie.general.progressBar.top,i==="Top"?"0":"auto"),t.setProperty(ie.general.progressBar.bottom,i==="Bottom"?"0":"auto")},CN=({chatTheme:e,generalBackground:t,documentStyle:r,flowVersion:n,isDarkMode:o})=>{kN({container:e?.container,generalBackground:t,documentStyle:r,legacyRoundness:e?.roundness,flowVersion:n,isDarkMode:o}),EN({hostBubbles:e?.hostBubbles,documentStyle:r,legacyRoundness:e?.roundness,flowVersion:n,isDarkMode:o}),PN({guestBubbles:e?.guestBubbles,documentStyle:r,legacyRoundness:e?.roundness,flowVersion:n,isDarkMode:o}),IN({buttons:e?.buttons,documentStyle:r,legacyRoundness:e?.roundness,flowVersion:n,isDarkMode:o}),AN({inputs:e?.inputs,documentStyle:r,legacyRoundness:e?.roundness,flowVersion:n,isDarkMode:o}),RN(e?.container,t,r),_N({buttonsInput:e?.buttonsInput,documentStyle:r,flowVersion:n})},kN=({container:e,generalBackground:t,documentStyle:r,legacyRoundness:n,isDarkMode:o})=>{let i=e?.backgroundColor??jo,a=i==="transparent"||Je(i);r.setProperty(ie.chat.container.bgColor,a?"0, 0, 0":at(i).join(", ")),r.setProperty(ie.chat.container.color,at(e?.color??(o?"#ffffff":Xi({chatContainer:e,generalBackground:t})?He.gray.light[12]:He.gray.dark[12])).join(", ")),r.setProperty(ie.chat.container.maxWidth,e?.maxWidth??Z0),r.setProperty(ie.chat.container.maxHeight,e?.maxHeight??X0);let s=a?"1":(e?.opacity??Gt).toString();r.setProperty(ie.chat.container.opacity,a?"0":(e?.opacity??Gt).toString()),r.setProperty(ie.chat.container.blur,s==="1"||a?"0xp":`${e?.blur??Sp}px`),xs(e?.shadow,r,ie.chat.container.boxShadow),ws(e?.border??{roundeness:n??zo},r,ie.chat.container.borderRadius),r.setProperty(ie.chat.container.borderWidth,ge(e?.border?.thickness)?`${e?.border?.thickness}px`:"0"),r.setProperty(ie.chat.container.borderOpacity,ge(e?.border?.opacity)?e.border.opacity.toString():Gt.toString()),r.setProperty(ie.chat.container.borderColor,at(e?.border?.color??"").join(", "))},EN=({hostBubbles:e,documentStyle:t,legacyRoundness:r,flowVersion:n,isDarkMode:o})=>{let i=J0[n],a=e?.backgroundColor===i||e?.backgroundColor?.toLowerCase()==="#ffffff"||e?.backgroundColor?.toLowerCase()==="#f7f8ff"||e?.backgroundColor?.toLowerCase()==="#f2f2f2"||e?.backgroundColor?.toLowerCase()==="#f4f4f5"||e?.backgroundColor?.toLowerCase()==="#f7f8f9",s=o&&(a||!e?.backgroundColor)?"#1D1D1D":e?.backgroundColor??(o?"#1D1D1D":i),l=e?.color===Cp||e?.color?.toLowerCase()==="#303235"||e?.color?.toLowerCase()==="#000000"||!e?.color,c=o&&l?"#eeeeee":e?.color??(o?"#eeeeee":Cp);t.setProperty(ie.chat.hostBubbles.bgColor,at(s).join(", ")),t.setProperty(ie.chat.hostBubbles.color,c),ws(e?.border??{roundeness:r??zo},t,ie.chat.hostBubbles.borderRadius);let u=e?.border?.thickness??Q0[n];ge(u)&&t.setProperty(ie.chat.hostBubbles.borderWidth,u+"px"),t.setProperty(ie.chat.hostBubbles.borderColor,at(e?.border?.color??eT).join(", ")),t.setProperty(ie.chat.hostBubbles.opacity,e?.backgroundColor==="transparent"?"0":ge(e?.opacity)?e.opacity.toString():o?"1":Gt.toString()),t.setProperty(ie.chat.hostBubbles.borderOpacity,ge(e?.border?.opacity)?e.border.opacity.toString():Gt.toString()),t.setProperty(ie.chat.hostBubbles.blur,ge(e?.blur)?`${e.blur??0}px`:"none"),xs(e?.shadow,t,ie.chat.hostBubbles.boxShadow)},PN=({guestBubbles:e,documentStyle:t,legacyRoundness:r,flowVersion:n,isDarkMode:o})=>{let i=tT[n],a=e?.backgroundColor===i||e?.backgroundColor?.toLowerCase()==="#0042da"||e?.backgroundColor?.toLowerCase()==="#ffffff"||e?.backgroundColor?.toLowerCase()==="#f7f8ff"||e?.backgroundColor?.toLowerCase()==="#f4f4f5"||e?.backgroundColor?.toLowerCase()==="#f2f2f2",s=o&&(a||!e?.backgroundColor)?"#2A2A2A":e?.backgroundColor??(o?"#2A2A2A":i),l=e?.color===kp||e?.color?.toLowerCase()==="#ffffff"||e?.color?.toLowerCase()==="#f4f4f5"||!e?.color,c=o&&l?"#eeeeee":e?.color??(o?"#eeeeee":kp);t.setProperty(ie.chat.guestBubbles.bgColor,at(s).join(", ")),t.setProperty(ie.chat.guestBubbles.color,c),ws(e?.border??{roundeness:r??zo},t,ie.chat.guestBubbles.borderRadius);let u=e?.border?.thickness??rT[n];ge(u)&&t.setProperty(ie.chat.guestBubbles.borderWidth,u+"px"),t.setProperty(ie.chat.guestBubbles.borderColor,at(e?.border?.color??nT).join(", ")),t.setProperty(ie.chat.guestBubbles.borderOpacity,ge(e?.border?.opacity)?e.border.opacity.toString():Gt.toString()),t.setProperty(ie.chat.guestBubbles.opacity,e?.backgroundColor==="transparent"?"0":ge(e?.opacity)?e.opacity.toString():o?"1":Gt.toString()),t.setProperty(ie.chat.guestBubbles.blur,ge(e?.blur)?`${e.blur??0}px`:"none"),xs(e?.shadow,t,ie.chat.guestBubbles.boxShadow)},IN=({buttons:e,documentStyle:t,legacyRoundness:r,flowVersion:n,isDarkMode:o})=>{let i=e?.backgroundColor??Ec[n];t.setProperty(ie.chat.buttons.bgRgb,at(i).join(", ")),t.setProperty(ie.chat.buttons.bgRgb,at(i).join(", "));let a=e?.backgroundColor==="#0042DA";t.setProperty(ie.chat.buttons.color,e?.color??(o?"#ffffff":oT)),t.setProperty(ie.chat.buttons.bgRgb,o&&(a||!e?.backgroundColor)?at("#2B9A66").join(", "):at(i).join(", ")),ws(e?.border??{roundeness:r??zo},t,ie.chat.buttons.borderRadius),t.setProperty(ie.chat.buttons.borderWidth,ge(e?.border?.thickness)?`${e?.border?.thickness}px`:`${iT[n]}px`),t.setProperty(ie.chat.buttons.borderColor,at(e?.border?.color??e?.backgroundColor??aT).join(", ")),t.setProperty(ie.chat.buttons.borderOpacity,ge(e?.border?.opacity)?e.border.opacity.toString():Gt.toString()),t.setProperty(ie.chat.buttons.opacity,e?.backgroundColor==="transparent"?"0":ge(e?.opacity)?e.opacity.toString():Gt.toString()),t.setProperty(ie.chat.buttons.blur,ge(e?.blur)?`${e.blur??0}px`:Sp.toString()),xs(e?.shadow,t,ie.chat.buttons.boxShadow)},_N=({buttonsInput:e,documentStyle:t})=>{t.setProperty(ie.chat.buttons.flexDirection,(e?.layout??dT)==="vertical"?"column":"unset")},AN=({inputs:e,documentStyle:t,legacyRoundness:r,flowVersion:n,isDarkMode:o})=>{let i=e?.backgroundColor===Ep||e?.backgroundColor==="#ffffff"||e?.backgroundColor==="#FFFFFF",a=o&&i?"#374151":e?.backgroundColor??(o?"#374151":Ep),s=e?.color===Pp||e?.color==="#303235"||e?.color==="#000000",l=o&&s?"#ffffff":e?.color??(o?"#ffffff":Pp);t.setProperty(ie.chat.inputs.bgColor,at(a).join(", ")),t.setProperty(ie.chat.inputs.color,l),t.setProperty(ie.chat.inputs.placeholderColor,e?.placeholderColor??(o?"#9ca3af":sT)),ws(e?.border??{roundeness:r??zo},t,ie.chat.inputs.borderRadius),t.setProperty(ie.chat.inputs.borderWidth,`${e?.border?.thickness??lT[n]}px`);let c=e?.border?.color??cT[n];ge(c)&&t.setProperty(ie.chat.inputs.borderColor,at(c).join(", ")),t.setProperty(ie.chat.inputs.borderOpacity,ge(e?.border?.opacity)?e.border.opacity.toString():Gt.toString()),t.setProperty(ie.chat.inputs.opacity,e?.backgroundColor==="transparent"?"0":ge(e?.opacity)?e.opacity.toString():Gt.toString()),t.setProperty(ie.chat.inputs.blur,ge(e?.blur)?`${e.blur??0}px`:"none"),xs(e?.shadow??uT[n],t,ie.chat.inputs.boxShadow)},RN=(e,t,r)=>{let n=e?.backgroundColor??jo;if(n==="transparent"||Je(n)||(e?.opacity??Gt)<=.2){let i=t?.type??Cc;r.setProperty(ie.chat.checkbox.bgRgb,i==="Image"?"rgba(255, 255, 255, 0.75)":at((i==="Color"?t?.content:"#ffffff")??"#ffffff").join(", ")),i==="Image"?r.setProperty(ie.chat.checkbox.alphaRatio,"3"):r.setProperty(ie.chat.checkbox.alphaRatio,t?.content&&lo(t?.content)?"1":"2")}else r.setProperty(ie.chat.checkbox.bgRgb,at(n).concat(e?.opacity??1).join(", ")),r.setProperty(ie.chat.checkbox.alphaRatio,lo(n)?"1":"2")},am=({background:e,documentStyle:t,flowVersion:r,isDarkMode:n})=>{let o=e?.type??"Default";n&&o==="Color"&&e?.content?.toLowerCase()==="#ffffff"&&(o="Default");let i=ON({type:o,content:e?.content??"",isDarkMode:n});o==="Image"||o==="Default"?(t.setProperty(ie.general.bgImage,i),o==="Default"&&t.setProperty(ie.general.bgColor,"transparent")):(t.setProperty(ie.general.bgColor,i),t.setProperty(ie.general.bgImage,"none"))},ON=({type:e,content:t,isDarkMode:r})=>{switch(e){case"None":return"transparent";case"Default":return r?"linear-gradient(to right, #080808 0%, #000c0c 80%, #080808 100%)":"linear-gradient(to bottom, #ffffff, #dcfff5, #ffffff)";case void 0:case"Color":return t;case"Image":return`url(${t})`}},ws=(e,t,r)=>{switch(e?.roundeness??zo){case"none":{t.setProperty(r,"0");break}case"medium":{t.setProperty(r,"6px");break}case"large":{t.setProperty(r,"20px");break}case"custom":{t.setProperty(r,`${e.customRoundeness??6}px`);break}}},xs=(e,t,r)=>{if(e===void 0){t.setProperty(r,"0 0 #0000");return}switch(e){case"none":t.setProperty(r,"0 0 #0000");break;case"sm":t.setProperty(r,"0 1px 2px 0 rgb(0 0 0 / 0.05)");break;case"md":t.setProperty(r,"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)");break;case"lg":t.setProperty(r,"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)");break;case"xl":t.setProperty(r,"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)");break;case"2xl":t.setProperty(r,"0 25px 50px -12px rgb(0 0 0 / 0.25)");break}};d();var rr=xf({placement:"bottom-end",gap:24});d();d();var NN=_('<svg><circle class=opacity-25 cx=12 cy=12 r=10 stroke=currentColor stroke-width=4></circle><path class=opacity-75 fill=currentColor d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z">'),ru=e=>(()=>{var t=NN();return ke(t,le(e,{get class(){return"animate-spin h-6 w-6 "+e.class},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","data-testid":"loading-spinner"}),!0,!0),t})();var LN=_("<button>"),nu=pp("font-semibold focus:outline-none filter hover:brightness-90 active:brightness-75 disabled:opacity-50 disabled:cursor-not-allowed disabled:brightness-100 flex justify-center shrink-0 transition-[filter] duration-200 cursor-pointer",{variants:{variant:{primary:"flow-button bg-button-bg text-button-text border-button-border rounded-button border-(length:--flow-button-border-width) blur-button shadow-button",secondary:"secondary-button bg-host-bubble-bg text-host-bubble-text rounded-host-bubble border-host-bubble border-host-bubble-border"},size:{icon:"text-sm size-6 pt-[3px]",sm:"py-2 px-4 text-sm",md:"py-2 px-4"}},defaultVariants:{variant:"primary",size:"md"}}),Ht=e=>{let t=al(()=>e.children),[r,n]=Ge(e,["variant","size","isDisabled","isLoading"]);return(()=>{var o=LN();return ke(o,le(n,{get disabled(){return r.isDisabled||r.isLoading},get class(){return io(nu({variant:r.variant,size:r.size}),n.class)}}),!1,!0),P(o,g(z,{get when(){return!r.isLoading},get fallback(){return g(ru,{})},get children(){return t()}})),o})()};d();d();var Tt="blocks.inputs.settings.buttonText.label";d();var co=async({err:e,context:t})=>{try{return typeof e=="string"?{context:t,description:e,details:void 0}:e instanceof Error?"response"in e&&typeof e.response=="object"&&e.response&&"text"in e.response&&typeof e.response.text=="function"?{context:t,description:e.message,details:JSON.stringify(await e.response.text())}:{context:t,description:e.message,details:typeof e.cause=="string"?e.cause:JSON.stringify(e.cause)}:{context:t,description:JSON.stringify(e)}}catch{return{context:t,description:"Unknown error (failed to parse)"}}};d();d();var DN="lg",sm=Bn(()=>DN),ou=()=>gn(sm),xS=e=>{let[t,r]=F("lg"),n=new ResizeObserver(()=>{let o=e();o&&r(wS(o))});return pe(()=>{let o=e();o&&(r(wS(o)),n.observe(o))}),ae(()=>{let o=e();o&&n.unobserve(o)}),t},wS=e=>{let t=e.clientWidth;return t<Sa.xs?"xs":t<Sa.sm?"sm":t<Sa.md?"md":t<Sa.lg?"lg":"xl"};d();var lm=async({apiHost:e,message:t,sessionId:r})=>{try{let n=qo();return{data:await ro.post(`${Re(e)?e:Qt()}/api/v1/sessions/${r}/continueChat`,{headers:{"x-flow-iframe-referrer-origin":n},json:{message:t},timeout:!1}).json()}}catch(n){return{error:n}}};d();var cm=async({apiHost:e,sessionId:t,clientLogs:r})=>{try{let n=qo();await ro.post(`${Re(e)?e:Qt()}/api/v2/sessions/${t}/clientLogs`,{headers:{"x-flow-iframe-referrer-origin":n},json:{clientLogs:r}})}catch(n){console.log(n)}};d();var vS=e=>{if(e instanceof TypeError){let t=["Connection refused","Failed to fetch","Failed to load resource","Failed to execute 'fetch' on 'Window'","Load failed","NetworkError","Network request failed","Request failed"],r=["ERR_INTERNET_DISCONNECTED","ERR_NAME_NOT_RESOLVED","ERR_CONNECTION_REFUSED","ERR_CONNECTION_TIMED_OUT","ERR_SSL_PROTOCOL_ERROR"];return[...t,...r].some(n=>e.message.toLowerCase().includes(n.toLowerCase()))}return e instanceof DOMException?e.name==="AbortError"||e.name==="TimeoutError":!1};d();d();d();d();var MN=`
|
|
18
|
+
</svg>`,r.body.appendChild(n)};function Gf(e,t){let{state:r,send:n,prop:o,scope:i,computed:a}=e,s=r.hasTag("focus"),l=a("isDisabled"),c=!!o("readOnly"),u=!!o("required"),f=r.matches("scrubbing"),p=a("isValueEmpty"),m=o("invalid")!==void 0?!!o("invalid"):a("isOutOfRange"),b=l||!a("canIncrement")||c,y=l||!a("canDecrement")||c,x=o("translations");return{focused:s,invalid:m,empty:p,value:a("formattedValue"),valueAsNumber:a("valueAsNumber"),setValue(v){n({type:"VALUE.SET",value:v})},clearValue(){n({type:"VALUE.CLEAR"})},increment(){n({type:"VALUE.INCREMENT"})},decrement(){n({type:"VALUE.DECREMENT"})},setToMax(){n({type:"VALUE.SET",value:o("max")})},setToMin(){n({type:"VALUE.SET",value:o("min")})},focus(){Sn(i)?.focus()},getRootProps(){return t.element({id:Jx(i),...Tn.root.attrs,dir:o("dir"),"data-disabled":oe(l),"data-focus":oe(s),"data-invalid":oe(m),"data-scrubbing":oe(f)})},getLabelProps(){return t.label({...Tn.label.attrs,dir:o("dir"),"data-disabled":oe(l),"data-focus":oe(s),"data-invalid":oe(m),"data-required":oe(u),"data-scrubbing":oe(f),id:tv(i),htmlFor:Li(i),onClick(){we(()=>{Ad(Sn(i))})}})},getControlProps(){return t.element({...Tn.control.attrs,dir:o("dir"),role:"group","aria-disabled":l,"data-focus":oe(s),"data-disabled":oe(l),"data-invalid":oe(m),"data-scrubbing":oe(f),"aria-invalid":zr(m)})},getValueTextProps(){return t.element({...Tn.valueText.attrs,dir:o("dir"),"data-disabled":oe(l),"data-invalid":oe(m),"data-focus":oe(s),"data-scrubbing":oe(f)})},getInputProps(){return t.input({...Tn.input.attrs,dir:o("dir"),name:o("name"),form:o("form"),id:Li(i),role:"spinbutton",defaultValue:a("formattedValue"),pattern:o("formatOptions")?void 0:o("pattern"),inputMode:o("inputMode"),"aria-invalid":zr(m),"data-invalid":oe(m),disabled:l,"data-disabled":oe(l),readOnly:c,required:o("required"),autoComplete:"off",autoCorrect:"off",spellCheck:"false",type:"text","aria-roledescription":"numberfield","aria-valuemin":o("min"),"aria-valuemax":o("max"),"aria-valuenow":Number.isNaN(a("valueAsNumber"))?void 0:a("valueAsNumber"),"aria-valuetext":a("valueText"),"data-scrubbing":oe(f),onFocus(){n({type:"INPUT.FOCUS"})},onBlur(){n({type:"INPUT.BLUR"})},onInput(v){let C=es(v.currentTarget,i);n({type:"INPUT.CHANGE",target:v.currentTarget,hint:"set",selection:C})},onBeforeInput(v){try{let{selectionStart:C,selectionEnd:A,value:w}=v.currentTarget,E=w.slice(0,C)+(v.data??"")+w.slice(A);a("parser").isValidPartialNumber(E)||v.preventDefault()}catch{}},onKeyDown(v){if(v.defaultPrevented||c||ub(v))return;let C=pb(v)*o("step"),w={ArrowUp(){n({type:"INPUT.ARROW_UP",step:C}),v.preventDefault()},ArrowDown(){n({type:"INPUT.ARROW_DOWN",step:C}),v.preventDefault()},Home(){$a(v)||(n({type:"INPUT.HOME"}),v.preventDefault())},End(){$a(v)||(n({type:"INPUT.END"}),v.preventDefault())},Enter(E){let T=es(E.currentTarget,i);n({type:"INPUT.ENTER",selection:T})}}[v.key];w?.(v)}})},getDecrementTriggerProps(){return t.button({...Tn.decrementTrigger.attrs,dir:o("dir"),id:zf(i),disabled:y,"data-disabled":oe(y),"aria-label":x.decrementLabel,type:"button",tabIndex:-1,"aria-controls":Li(i),"data-scrubbing":oe(f),onPointerDown(v){y||xi(v)&&(n({type:"TRIGGER.PRESS_DOWN",hint:"decrement",pointerType:v.pointerType}),v.pointerType==="mouse"&&v.preventDefault(),v.pointerType==="touch"&&v.currentTarget?.focus({preventScroll:!0}))},onPointerUp(v){n({type:"TRIGGER.PRESS_UP",hint:"decrement",pointerType:v.pointerType})},onPointerLeave(){y||n({type:"TRIGGER.PRESS_UP",hint:"decrement"})}})},getIncrementTriggerProps(){return t.button({...Tn.incrementTrigger.attrs,dir:o("dir"),id:Vf(i),disabled:b,"data-disabled":oe(b),"aria-label":x.incrementLabel,type:"button",tabIndex:-1,"aria-controls":Li(i),"data-scrubbing":oe(f),onPointerDown(v){b||!xi(v)||(n({type:"TRIGGER.PRESS_DOWN",hint:"increment",pointerType:v.pointerType}),v.pointerType==="mouse"&&v.preventDefault(),v.pointerType==="touch"&&v.currentTarget?.focus({preventScroll:!0}))},onPointerUp(v){n({type:"TRIGGER.PRESS_UP",hint:"increment",pointerType:v.pointerType})},onPointerLeave(v){n({type:"TRIGGER.PRESS_UP",hint:"increment",pointerType:v.pointerType})}})},getScrubberProps(){return t.element({...Tn.scrubber.attrs,dir:o("dir"),"data-disabled":oe(l),id:Qx(i),role:"presentation","data-scrubbing":oe(f),onMouseDown(v){if(l||!xi(v))return;let C=kr(v),w=Ie(v.currentTarget).devicePixelRatio;C.x=C.x-To(7.5,w),C.y=C.y-To(7.5,w),n({type:"SCRUBBER.PRESS_DOWN",point:C}),v.preventDefault(),we(()=>{Ad(Sn(i))})},style:{cursor:l?void 0:"ew-resize"}})}}}d();d();d();d();var Hf=new Map,Wf=!1;try{Wf=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}var ic=!1;try{ic=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}var sv={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}},ac=class{constructor(t,r={}){this.numberFormatter=Q1(t,r),this.options=r}format(t){let r="";if(!Wf&&this.options.signDisplay!=null?r=eR(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!ic){let{unit:n,unitDisplay:o="short",locale:i}=this.resolvedOptions();if(!n)return r;let a=sv[n]?.[o];r+=a[i]||a.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Wf&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ic&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}};function Q1(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!ic){let{unit:i,unitDisplay:a="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!sv[i]?.[a])throw new Error(`Unsupported unit ${i} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Hf.has(n))return Hf.get(n);let o=new Intl.NumberFormat(e,t);return Hf.set(n,o),o}function eR(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(r)}}d();var tR=new RegExp("^.*\\(.*\\).*$"),rR=["latn","arab","hanidec","deva","beng","fullwide"],Di=class{constructor(t,r={}){this.locale=t,this.options=r}parse(t){return qf(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,n){return qf(this.locale,this.options,t).isValidPartialNumber(t,r,n)}getNumberingSystem(t){return qf(this.locale,this.options,t).options.numberingSystem}},lv=new Map;function qf(e,t,r){let n=cv(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let o of rR)if(o!==n.options.numberingSystem){let i=cv(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(r))return i}}return n}function cv(e,t){let r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),n=lv.get(r);return n||(n=new Kf(e,t),lv.set(r,n)),n}var Kf=class{constructor(t,r={}){this.locale=t,r.roundingIncrement!==1&&r.roundingIncrement!=null&&(r.maximumFractionDigits==null&&r.minimumFractionDigits==null?(r.maximumFractionDigits=0,r.minimumFractionDigits=0):r.maximumFractionDigits==null?r.maximumFractionDigits=r.minimumFractionDigits:r.minimumFractionDigits==null&&(r.minimumFractionDigits=r.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=nR(t,this.formatter,this.options,r),this.options.style==="percent"&&((this.options.minimumFractionDigits??0)>18||(this.options.maximumFractionDigits??0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}parse(t){let r=this.formatter.resolvedOptions().useGrouping,n=this.sanitize(t);if(!r&&this.symbols.group&&n.includes(this.symbols.group))return NaN;if(this.symbols.group&&(n=n.replaceAll(this.symbols.group,"")),this.symbols.decimal&&(n=n.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(n=n.replace(this.symbols.minusSign,"-")),n=n.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let i=n.indexOf("-");n=n.replace("-",""),n=n.replace("+","");let a=n.indexOf(".");a===-1&&(a=n.length),n=n.replace(".",""),a-2===0?n=`0.${n}`:a-2===-1?n=`0.0${n}`:a-2===-2?n="0.00":n=`${n.slice(0,a-2)}.${n.slice(a-2)}`,i>-1&&(n=`-${n}`)}let o=n?+n:NaN;if(isNaN(o))return NaN;if(this.options.style==="percent"){let i={...this.options,style:"decimal",minimumFractionDigits:Math.min((this.options.minimumFractionDigits??0)+2,20),maximumFractionDigits:Math.min((this.options.maximumFractionDigits??0)+2,20)};return new Di(this.locale,i).parse(new ac(this.locale,i).format(o))}return this.options.currencySign==="accounting"&&tR.test(t)&&(o=-1*o),o}sanitize(t){let r=this.formatter.resolvedOptions().useGrouping;return this.symbols.noNumeralUnits.length>0&&this.symbols.noNumeralUnits.find(n=>n.unit===t)?this.symbols.noNumeralUnits.find(n=>n.unit===t).value.toString():(t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=Uo(t,",",this.symbols.decimal),t=Uo(t,"،",this.symbols.decimal)),this.symbols.group&&r&&(t=Uo(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&r&&(t=Uo(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&r&&(t=Uo(t," ",this.symbols.group),t=Uo(t,/\u00A0/g,this.symbols.group)),t)}isValidPartialNumber(t,r=-1/0,n=1/0){let o=this.formatter.resolvedOptions().useGrouping;return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&n>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&o&&(t=Uo(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}},uv=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),dv=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function nR(e,t,r,n){let o=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand",useGrouping:!0}),i=o.formatToParts(-10000.111),a=o.formatToParts(10000.111),s=dv.map(T=>o.formatToParts(T)),l=s.map((T,R)=>{let I=T.find(N=>N.type==="unit");return I&&!T.some(N=>N.type==="integer"||N.type==="fraction")?{unit:I.value,value:dv[R]}:null}).filter(T=>!!T),c=i.find(T=>T.type==="minusSign")?.value??"-",u=a.find(T=>T.type==="plusSign")?.value;!u&&(n?.signDisplay==="exceptZero"||n?.signDisplay==="always")&&(u="+");let p=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(T=>T.type==="decimal")?.value,m=i.find(T=>T.type==="group")?.value,b=i.filter(T=>!uv.has(T.type)).map(T=>fv(T.value)),y=s.flatMap(T=>T.filter(R=>!uv.has(R.type)).map(R=>fv(R.value))),x=[...new Set([...b,...y])].sort((T,R)=>R.length-T.length),v=x.length===0?new RegExp("\\p{White_Space}|\\p{Cf}","gu"):new RegExp(`${x.join("|")}|\\p{White_Space}|\\p{Cf}`,"gu"),C=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),A=new Map(C.map((T,R)=>[T,R])),w=new RegExp(`[${C.join("")}]`,"g");return{minusSign:c,plusSign:u,decimal:p,group:m,literals:v,numeral:w,numerals:C,index:T=>String(A.get(T)),noNumeralUnits:l}}function Uo(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function fv(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var pv=(e,t={})=>new Intl.NumberFormat(e,t),mv=(e,t={})=>new Di(e,t),sc=(e,t)=>{let{prop:r,computed:n}=t;return r("formatOptions")?e===""?Number.NaN:n("parser").parse(e):parseFloat(e)},Xn=(e,t)=>{let{prop:r,computed:n}=t;return Number.isNaN(e)?"":r("formatOptions")?n("formatter").format(e):e.toString()},gv=(e,t)=>{let r=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(r=.01),r};var{choose:oR,guards:iR,createMachine:aR}=xl(),{not:Yf,and:hv}=iR,Zf=aR({props({props:e}){let t=gv(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:r}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(n){let o=r(),i=sc(n,{computed:o,prop:e});e("onValueChange")?.({value:n,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(n){return n?`x:${n.x}, y:${n.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:r})=>sc(e.get("value"),{computed:t,prop:r}),formattedValue:({computed:e,prop:t})=>Xn(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>Oh(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>Rh(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!Nh(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>e("translations").valueText?.(t.get("value")),formatter:Ia(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>pv(e,t)),parser:Ia(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>mv(e,t))},watch({track:e,action:t,context:r,computed:n,prop:o}){e([()=>r.get("value"),()=>o("locale"),()=>JSON.stringify(o("formatOptions"))],()=>{t(["syncInputElement"])}),e([()=>n("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>r.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:hv("clampValueOnBlur",Yf("isValueEmpty"),Yf("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]},{guard:Yf("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid","invokeOnValueCommit"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:oR([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:hv("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isValueEmpty:({computed:e})=>e("isValueEmpty"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){let t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){let t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){let r=Sn(t);return gb(r,{onFieldsetDisabledChange(n){e.set("fieldsetDisabled",n)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){let r=e.get("scrubberCursorPoint");return nv(t,r)},preventTextSelection({scope:e}){return ov(e)},trackButtonDisabled({context:e,scope:t,send:r}){let n=e.get("hint"),o=rv(t,n);return _l(o,{attributes:["disabled"],callback(){r({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:r}){let n=Sn(e);if(!n||!e.isActiveElement(n)||!r("allowMouseWheel"))return;function o(i){i.preventDefault();let a=Math.sign(i.deltaY)*-1;a===1?t({type:"VALUE.INCREMENT"}):a===-1&&t({type:"VALUE.DECREMENT"})}return Ae(n,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!kl())return Cb(e.getDoc())},trackMousemove({scope:e,send:t,context:r,computed:n}){let o=e.getDoc();function i(s){let l=r.get("scrubberCursorPoint"),c=n("isRtl"),u=iv(e,{point:l,isRtl:c,event:s});u.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:u.hint,point:u.point})}function a(){t({type:"SCRUBBER.POINTER_UP"})}return cr(Ae(o,"mousemove",i,!1),Ae(o,"mouseup",a,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;let r=Sn(e);e.isActiveElement(r)||we(()=>r?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:r,computed:n}){let o=Mh(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=Ur(o,r("min"),r("max"))),e.set("value",Xn(o,{computed:n,prop:r}))},decrement({context:e,event:t,prop:r,computed:n}){let o=$h(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=Ur(o,r("min"),r("max"))),e.set("value",Xn(o,{computed:n,prop:r}))},setClampedValue({context:e,prop:t,computed:r}){let n=Ur(r("valueAsNumber"),t("min"),t("max"));e.set("value",Xn(n,{computed:r,prop:t}))},setRawValue({context:e,event:t,prop:r,computed:n}){let o=sc(t.value,{computed:n,prop:r});r("allowOverflow")||(o=Ur(o,r("min"),r("max"))),e.set("value",Xn(o,{computed:n,prop:r}))},setValue({context:e,event:t}){let r=t.target?.value??t.value;e.set("value",r)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:r}){let n=Xn(t("max"),{computed:r,prop:t});e.set("value",n)},decrementToMin({context:e,prop:t,computed:r}){let n=Xn(t("min"),{computed:r,prop:t});e.set("value",n)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:r}){if(r.type==="INPUT.CHANGE")return;let n=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:n,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnValueCommit({computed:e,prop:t}){t("onValueCommit")?.({value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:r,scope:n}){let o=t.type.endsWith("CHANGE")?e.get("value"):r("formattedValue"),i=Sn(n),a=t.selection??es(i,n);we(()=>{mb(i,o),Xx(i,a,n)})},setFormattedValue({context:e,computed:t,action:r}){e.set("value",t("formattedValue")),r(["syncInputElement"])},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){let r=jf(t),n=e.get("scrubberCursorPoint");!r||!n||(r.style.transform=`translate3d(${n.x}px, ${n.y}px, 0px)`)}}}});var[bv,Cn]=ze({hookName:"useNumberInputContext",providerName:"<NumberInputProvider />"}),yv=e=>e.children(Cn()),wv=e=>{let t=Cn(),r=j(()=>t().getControlProps(),e);return g(W.div,r)},xv=e=>{let t=Cn(),r=j(()=>t().getDecrementTriggerProps(),e);return g(W.button,r)},vv=e=>{let t=Cn(),r=j(()=>t().getIncrementTriggerProps(),e);return g(W.button,r)},Tv=e=>{let t=Cn(),r=j(()=>t().getInputProps(),e),n=mr();return g(W.input,le({get"aria-describedby"(){return n?.().ariaDescribedby}},r))},Sv=e=>{let t=Cn(),r=j(()=>t().getLabelProps(),e);return g(W.label,r)},lc=e=>{let t=ct(),r=fr(),n=xt(),o=mr(),i=ee(()=>({id:t,ids:{label:o?.().ids.label,input:o?.().ids.control},disabled:o?.().disabled,readOnly:o?.().readOnly,required:o?.().required,invalid:o?.().invalid,dir:r().dir,locale:r().locale,getRootNode:n().getRootNode,...Nt(e)})),a=Vt(Zf,i);return ee(()=>Gf(a,zt))},Cv=e=>{let[t,r]=De()(e,["allowMouseWheel","allowOverflow","clampValueOnBlur","defaultValue","disabled","focusInputOnChange","form","formatOptions","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueCommit","onValueInvalid","pattern","readOnly","required","spinOnPress","step","translations","value"]),n=lc(t),o=j(()=>n().getRootProps(),r);return g(bv,{value:n,get children(){return g(W.div,o)}})},kv=e=>{let[{value:t},r]=De()(e,["value"]),n=j(()=>t().getRootProps(),r);return g(bv,{value:t,get children(){return g(W.div,n)}})},Ev=e=>{let t=Cn(),r=j(()=>t().getScrubberProps(),e);return g(W.div,r)},Pv=e=>{let t=Cn(),r=j(()=>t().getValueTextProps(),e);return g(W.span,r)},Jn={};Lt(Jn,{Context:()=>yv,Control:()=>wv,DecrementTrigger:()=>xv,IncrementTrigger:()=>vv,Input:()=>Tv,Label:()=>Sv,Root:()=>Cv,RootProvider:()=>kv,Scrubber:()=>Ev,ValueText:()=>Pv});d();d();d();var lR=ot("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Qn=lR.build();d();d();var Xf=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,Jf=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,cc=e=>e.ids?.content??`dialog:${e.id}:content`,uc=(e,t)=>{let r=e.ids?.trigger;return r!=null?nt(r)?r(t):r:t?`dialog:${e.id}:trigger:${t}`:`dialog:${e.id}:trigger`},dc=e=>e.ids?.title??`dialog:${e.id}:title`,fc=e=>e.ids?.description??`dialog:${e.id}:description`,Qf=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,ts=e=>e.getById(cc(e)),Iv=e=>e.getById(Xf(e)),_v=e=>e.getById(Jf(e)),ep=e=>e.getById(uc(e)),Av=e=>e.getById(dc(e)),Rv=e=>e.getById(fc(e)),Ov=e=>e.getById(Qf(e)),pc=e=>Hn(e.getRootNode(),`[data-scope="dialog"][data-part="trigger"][data-ownedby="${e.id}"]`),tp=(e,t)=>t==null?ep(e)??pc(e)[0]:e.getById(uc(e,t));function rp(e,t){let{state:r,send:n,context:o,prop:i,scope:a}=e,s=i("aria-label"),l=r.matches("open"),c=o.get("triggerValue");return{open:l,setOpen(u){r.matches("open")!==u&&n({type:u?"OPEN":"CLOSE"})},triggerValue:c,setTriggerValue(u){n({type:"TRIGGER_VALUE.SET",value:u})},getTriggerProps(u={}){let{value:f}=u,p=f==null?!1:c===f;return t.button({...Qn.trigger.attrs,dir:i("dir"),id:uc(a,f),"data-ownedby":a.id,"data-value":f,"aria-haspopup":"dialog",type:"button","aria-expanded":f==null?l:l&&p,"data-state":l?"open":"closed","aria-controls":cc(a),"data-current":oe(p),onClick(m){if(m.defaultPrevented)return;let b=l&&f!=null&&!p;n({type:b?"TRIGGER_VALUE.SET":"TOGGLE",value:f})}})},getBackdropProps(){return t.element({...Qn.backdrop.attrs,dir:i("dir"),hidden:!l,id:Jf(a),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...Qn.positioner.attrs,dir:i("dir"),id:Xf(a),style:Vr({pointerEvents:!l||!i("modal")?"none":void 0})})},getContentProps(){let u=o.get("rendered");return t.element({...Qn.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:cc(a),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":i("modal"),"aria-label":s||void 0,"aria-labelledby":s||!u.title?void 0:dc(a),"aria-describedby":u.description?fc(a):void 0,style:Vr({pointerEvents:i("modal")?void 0:"auto"})})},getTitleProps(){return t.element({...Qn.title.attrs,dir:i("dir"),id:dc(a)})},getDescriptionProps(){return t.element({...Qn.description.attrs,dir:i("dir"),id:fc(a)})},getCloseTriggerProps(){return t.button({...Qn.closeTrigger.attrs,dir:i("dir"),id:Qf(a),type:"button",onClick(u){u.defaultPrevented||(u.stopPropagation(),n({type:"CLOSE"}))}})}}}d();var np=tr({props({props:e,scope:t}){let r=e.role==="alertdialog",n=r?()=>Ov(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:o&&!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:n,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e,prop:t,scope:r}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(n){let o=t("onTriggerValueChange");if(!o)return;let i=tp(r,n);o({value:n,triggerElement:i})}}))}},watch({track:e,action:t,prop:r}){e([()=>r("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","setInitialFocus"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:r}){return ql(()=>ts(e),{type:"dialog",defer:!0,pointerBlocking:r("modal"),layerStyleTargets:[()=>_v(e),()=>Iv(e)],exclude:[ep(e),...pc(e)].filter(Boolean),onInteractOutside(o){r("onInteractOutside")?.(o),r("closeOnInteractOutside")||o.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onRequestDismiss:r("onRequestDismiss"),onEscapeKeyDown(o){r("onEscapeKeyDown")?.(o),r("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return $w(e.getDoc())},trapFocus({scope:e,prop:t,context:r}){return t("trapFocus")?rw(()=>ts(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:o=>{let i=t("finalFocusEl")?.();if(i)return i;let a=r.get("triggerValue");if(a){let l=tp(e,a);if(l)return l}let s=pc(e)[0];return s||o},getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?Lw(()=>[ts(e)],{defer:!0}):void 0}},actions:{setInitialFocus({prop:e,scope:t}){e("trapFocus")||we(()=>{Il({root:ts(t),getInitialEl:e("initialFocusEl")})?.focus({preventScroll:!0})})},checkRenderedElements({context:e,scope:t}){we(()=>{e.set("rendered",{title:!!Av(t),description:!!Rv(t)})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set("triggerValue",t.value)},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}});var[Lv,kn]=ze({hookName:"useDialogContext",providerName:"<DialogProvider />"}),Dv=e=>{let t=kn(),r=Fh(),n=Po(j(r,()=>({present:t().open}))),o=j(()=>t().getBackdropProps(),()=>n().presenceProps,e);return g(z,{get when(){return!n().unmounted},get children(){return g(W.div,le(o,{ref(i){var a=Gr(n().ref,e.ref);typeof a=="function"&&a(i)}}))}})},Mv=e=>{let t=kn(),r=j(()=>t().getCloseTriggerProps(),e);return g(W.button,r)},$v=e=>{let t=kn(),r=Wn(),n=j(()=>t().getContentProps(),()=>r().presenceProps,e);return g(z,{get when(){return!r().unmounted},get children(){return g(W.div,le(n,{ref(o){var i=Gr(r().ref,e.ref);typeof i=="function"&&i(o)}}))}})},Fv=e=>e.children(kn()),Bv=e=>{let t=kn(),r=j(()=>t().getDescriptionProps(),e);return g(W.div,r)},Uv=e=>{let t=kn(),r=Wn(),n=j(()=>t().getPositionerProps(),e);return g(z,{get when(){return!r().unmounted},get children(){return g(W.div,n)}})},Vv=e=>{let t=ct(),r=fr(),n=xt(),o=ee(()=>({id:t,dir:r().dir,getRootNode:n().getRootNode,...Nt(e)})),i=Vt(np,o);return ee(()=>rp(i,zt))},zv=e=>{let[t,r]=Ci(e),[n]=Pa(t),[o,i]=De()(r,["aria-label","closeOnEscape","closeOnInteractOutside","defaultOpen","finalFocusEl","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","open","persistentElements","preventScroll","restoreFocus","role","trapFocus","triggerValue","defaultTriggerValue","onTriggerValueChange"]),a=Vv(o),s=Po(j(t,()=>({present:a().open})));return g(Lv,{value:a,get children(){return g(Cd,{value:n,get children(){return g(ki,{value:s,get children(){return i.children}})}})}})},jv=e=>{let[t,r]=Ci(e),[n]=Pa(t),o=Po(j(t,()=>({present:r.value().open})));return g(Lv,{get value(){return r.value},get children(){return g(Cd,{value:n,get children(){return g(ki,{value:o,get children(){return r.children}})}})}})},Gv=e=>{let t=kn(),r=j(()=>t().getTitleProps(),e);return g(W.h2,r)},Hv=e=>{let[t,r]=De()(e,["value"]),n=kn(),o=Wn(),i=j(()=>n().getTriggerProps(t),()=>({"aria-controls":o().unmounted&&null}),r);return g(W.button,i)},eo={};Lt(eo,{Backdrop:()=>Dv,CloseTrigger:()=>Mv,Content:()=>$v,Context:()=>Fv,Description:()=>Bv,Positioner:()=>Uv,Root:()=>zv,RootProvider:()=>jv,Title:()=>Gv,Trigger:()=>Hv});d();d();d();d();var mc=ot("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger","progressText"),Ar=mc.build();d();d();var Wv=e=>e.ids?.root??`carousel:${e.id}`,qv=(e,t)=>e.ids?.item?.(t)??`carousel:${e.id}:item:${t}`,rs=e=>e.ids?.itemGroup??`carousel:${e.id}:item-group`,Kv=e=>e.ids?.nextTrigger??`carousel:${e.id}:next-trigger`,Yv=e=>e.ids?.prevTrigger??`carousel:${e.id}:prev-trigger`,Zv=e=>e.ids?.indicatorGroup??`carousel:${e.id}:indicator-group`,op=(e,t)=>e.ids?.indicator?.(t)??`carousel:${e.id}:indicator:${t}`;var kt=e=>e.getById(rs(e));var ip=e=>Hn(kt(e),"[data-part=item]"),Xv=(e,t)=>e.getById(op(e,t)),ap=e=>{let t=kt(e);if(!t)return;let r=Gn(t);t.setAttribute("tabindex",r.length>0?"-1":"0")};function sp(e,t){let{state:r,context:n,computed:o,send:i,scope:a,prop:s}=e,l=r.matches("autoplay"),c=r.matches("dragging"),u=o("canScrollNext"),f=o("canScrollPrev"),p=o("isHorizontal"),m=s("autoSize"),b=Array.from(n.get("pageSnapPoints")),y=n.get("page"),x=b.length?Ur(y,0,b.length-1):0,v=s("slidesPerPage"),C=s("padding"),A=s("translations");return{isPlaying:l,isDragging:c,page:x,pageSnapPoints:b,canScrollNext:u,canScrollPrev:f,getProgress(){return x/b.length},getProgressText(){let w={page:x+1,totalPages:b.length};return A.progressText?.(w)??""},scrollToIndex(w,E){i({type:"INDEX.SET",index:w,instant:E})},scrollTo(w,E){i({type:"PAGE.SET",index:w,instant:E})},scrollNext(w){i({type:"PAGE.NEXT",instant:w})},scrollPrev(w){i({type:"PAGE.PREV",instant:w})},play(){i({type:"AUTOPLAY.START"})},pause(){i({type:"AUTOPLAY.PAUSE"})},isInView(w){return Array.from(n.get("slidesInView")).includes(w)},refresh(){i({type:"SNAP.REFRESH"})},getRootProps(){return t.element({...Ar.root.attrs,id:Wv(a),role:"region","aria-roledescription":"carousel","data-orientation":s("orientation"),dir:s("dir"),style:{"--slides-per-page":v,"--slide-spacing":s("spacing"),"--slide-item-size":m?"auto":"calc(100% / var(--slides-per-page) - var(--slide-spacing) * (var(--slides-per-page) - 1) / var(--slides-per-page))"}})},getItemGroupProps(){return t.element({...Ar.itemGroup.attrs,id:rs(a),"data-orientation":s("orientation"),"data-dragging":oe(c),dir:s("dir"),"aria-live":l?"off":"polite",onFocus(w){mt(w.currentTarget,qe(w))&&i({type:"VIEWPORT.FOCUS"})},onBlur(w){mt(w.currentTarget,w.relatedTarget)||i({type:"VIEWPORT.BLUR"})},onMouseDown(w){if(w.defaultPrevented||!s("allowMouseDrag")||!xi(w))return;let E=qe(w);Yt(E)&&E!==w.currentTarget||(w.preventDefault(),i({type:"DRAGGING.START"}))},onWheel:Ih(w=>{let E=s("orientation")==="horizontal"?"deltaX":"deltaY";w[E]<0&&!o("canScrollPrev")||w[E]>0&&!o("canScrollNext")||i({type:"USER.SCROLL"})},150),onTouchStart(){i({type:"USER.SCROLL"})},style:{display:m?"flex":"grid",gap:"var(--slide-spacing)",scrollSnapType:[p?"x":"y",s("snapType")].join(" "),gridAutoFlow:p?"column":"row",scrollbarWidth:"none",overscrollBehaviorX:"contain",[p?"gridAutoColumns":"gridAutoRows"]:m?void 0:"var(--slide-item-size)",[p?"scrollPaddingInline":"scrollPaddingBlock"]:C,[p?"paddingInline":"paddingBlock"]:C,[p?"overflowX":"overflowY"]:"auto"}})},getItemProps(w){let E=n.get("slidesInView").includes(w.index);return t.element({...Ar.item.attrs,id:qv(a,w.index),dir:s("dir"),role:"group","data-index":w.index,"data-inview":oe(E),"aria-roledescription":"slide","data-orientation":s("orientation"),"aria-label":A.item(w.index,s("slideCount")),"aria-hidden":zr(!E),style:{flex:"0 0 auto",[p?"maxWidth":"maxHeight"]:"100%",scrollSnapAlign:(()=>{let T=w.snapAlign??"start",R=s("slidesPerMove"),I=R==="auto"?Math.floor(s("slidesPerPage")):R;return(w.index+I)%I===0?T:void 0})()}})},getControlProps(){return t.element({...Ar.control.attrs,"data-orientation":s("orientation")})},getPrevTriggerProps(){return t.button({...Ar.prevTrigger.attrs,id:Yv(a),type:"button",disabled:!f,dir:s("dir"),"aria-label":A.prevTrigger,"data-orientation":s("orientation"),"aria-controls":rs(a),onClick(w){w.defaultPrevented||i({type:"PAGE.PREV",src:"trigger"})}})},getNextTriggerProps(){return t.button({...Ar.nextTrigger.attrs,dir:s("dir"),id:Kv(a),type:"button","aria-label":A.nextTrigger,"data-orientation":s("orientation"),"aria-controls":rs(a),disabled:!u,onClick(w){w.defaultPrevented||i({type:"PAGE.NEXT",src:"trigger"})}})},getIndicatorGroupProps(){return t.element({...Ar.indicatorGroup.attrs,dir:s("dir"),id:Zv(a),"data-orientation":s("orientation"),onKeyDown(w){if(w.defaultPrevented)return;let E="indicator",T={ArrowDown(N){p||(i({type:"PAGE.NEXT",src:E}),N.preventDefault())},ArrowUp(N){p||(i({type:"PAGE.PREV",src:E}),N.preventDefault())},ArrowRight(N){p&&(i({type:"PAGE.NEXT",src:E}),N.preventDefault())},ArrowLeft(N){p&&(i({type:"PAGE.PREV",src:E}),N.preventDefault())},Home(N){i({type:"PAGE.SET",index:0,src:E}),N.preventDefault()},End(N){i({type:"PAGE.SET",index:b.length-1,src:E}),N.preventDefault()}},R=Fa(w,{dir:s("dir"),orientation:s("orientation")}),I=T[R];I?.(w)}})},getIndicatorProps(w){return t.button({...Ar.indicator.attrs,dir:s("dir"),id:op(a,w.index),type:"button","data-orientation":s("orientation"),"data-index":w.index,"data-readonly":oe(w.readOnly),"data-current":oe(w.index===x),"aria-label":A.indicator(w.index),onClick(E){E.defaultPrevented||w.readOnly||i({type:"PAGE.SET",index:w.index,src:"indicator"})}})},getAutoplayTriggerProps(){return t.button({...Ar.autoplayTrigger.attrs,type:"button","data-orientation":s("orientation"),"data-pressed":oe(l),"aria-label":l?A.autoplayStop:A.autoplayStart,onClick(w){w.defaultPrevented||i({type:l?"AUTOPLAY.PAUSE":"AUTOPLAY.START"})}})},getProgressTextProps(){return t.element({...Ar.progressText.attrs})}}}d();d();var up=e=>Kt(e).direction,gc=(e,t)=>{let r=parseFloat(e);return/%/.test(e)&&(r/=100,r*=t),Number.isNaN(r)?0:r};function Qv(e){let t=Kt(e),r=e.offsetWidth,n=e.offsetHeight,o=t.getPropertyValue("scroll-padding-left").replace("auto","0px"),i=t.getPropertyValue("scroll-padding-top").replace("auto","0px"),a=t.getPropertyValue("scroll-padding-right").replace("auto","0px"),s=t.getPropertyValue("scroll-padding-bottom").replace("auto","0px"),l=gc(o,r),c=gc(i,n),u=gc(a,r),f=gc(s,n);return{x:{before:l,after:u},y:{before:c,after:f}}}function uR(e,t,r="both"){return r==="x"&&e.right>=t.left&&e.left<=t.right||r==="y"&&e.bottom>=t.top&&e.top<=t.bottom||r==="both"&&e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom}function e0(e){let t=[];for(let r of e.children)t=t.concat(r,e0(r));return t}function t0(e,t=!1){let r=e.getBoundingClientRect(),o=up(e)==="rtl",i=Ib(e),a={x:{start:[],center:[],end:[]},y:{start:[],center:[],end:[]}},s=t?e0(e):e.children;for(let l of["x","y"]){let c=l==="x"?"y":"x",u=l==="x"?"left":"top",f=l==="x"?"right":"bottom",p=l==="x"?"width":"height",m=l==="x"?"scrollLeft":"scrollTop",b=l==="x"?i.x:i.y,y=o&&l==="x";for(let x of s){let v=x.getBoundingClientRect();if(!uR(r,v,c))continue;let C=Kt(x),[A,w]=C.getPropertyValue("scroll-snap-align").split(" ");typeof w>"u"&&(w=A);let E=l==="x"?w:A,T,R,I;if(y){let N=Math.abs(e[m]),L=(r[f]-v[f])/b+N;T=L,R=L+v[p]/b,I=L+v[p]/(2*b)}else T=(v[u]-r[u])/b+e[m],R=T+v[p]/b,I=T+v[p]/(2*b);switch(E){case"none":break;case"start":a[l].start.push({node:x,position:T});break;case"center":a[l].center.push({node:x,position:I});break;case"end":a[l].end.push({node:x,position:R});break}}}return a}function r0(e){let t=up(e),r=Qv(e),n=t0(e),o=e.offsetWidth,i=e.offsetHeight,a={x:e.scrollWidth-e.offsetWidth,y:e.scrollHeight-e.offsetHeight},s=t==="rtl",l=s&&e.scrollLeft<=0,c;return s?(c=lp([...n.x.start.map(u=>u.position-r.x.after),...n.x.center.map(u=>u.position-o/2),...n.x.end.map(u=>u.position-o+r.x.before)].map(cp(0,a.x))),l&&(c=c.map(u=>-u))):c=lp([...n.x.start.map(u=>u.position-r.x.before),...n.x.center.map(u=>u.position-o/2),...n.x.end.map(u=>u.position-o+r.x.after)].map(cp(0,a.x))),{x:c,y:lp([...n.y.start.map(u=>u.position-r.y.before),...n.y.center.map(u=>u.position-i/2),...n.y.end.map(u=>u.position-i+r.y.after)].map(cp(0,a.y)))}}function n0(e,t,r){let n=up(e),o=Qv(e),i=t0(e),a=[...i[t].start,...i[t].center,...i[t].end],s=n==="rtl",l=s&&t==="x"&&e.scrollLeft<=0;for(let c of a)if(r(c.node)){let u;return t==="x"&&s?(u=c.position-o.x.after,l&&(u=-u)):u=c.position-(t==="x"?o.x.before:o.y.before),u}}var lp=e=>[...new Set(e)],cp=(e,t)=>r=>Math.max(e,Math.min(t,r));var dR=1,dp=tr({props({props:e}){return bl(e,["slideCount"],"carousel"),{dir:"ltr",defaultPage:0,orientation:"horizontal",snapType:"mandatory",loop:!!e.autoplay,slidesPerPage:1,slidesPerMove:"auto",spacing:"0px",autoplay:!1,allowMouseDrag:!1,inViewThreshold:.6,autoSize:!1,...e,translations:{nextTrigger:"Next slide",prevTrigger:"Previous slide",indicator:t=>`Go to slide ${t+1}`,item:(t,r)=>`${t+1} of ${r}`,autoplayStart:"Start slide rotation",autoplayStop:"Stop slide rotation",progressText:({page:t,totalPages:r})=>`${t} / ${r}`,...e.translations}}},refs(){return{timeoutRef:void 0}},initialState({prop:e}){return e("autoplay")?"autoplay":"idle"},context({prop:e,bindable:t,getContext:r}){return{page:t(()=>({defaultValue:e("defaultPage"),value:e("page"),onChange(n){let i=r().get("pageSnapPoints");e("onPageChange")?.({page:n,pageSnapPoint:i[n]})}})),pageSnapPoints:t(()=>({defaultValue:e("autoSize")?Array.from({length:e("slideCount")},(n,o)=>o):fR(e("slideCount"),e("slidesPerMove"),e("slidesPerPage"))})),slidesInView:t(()=>({defaultValue:[]}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",isHorizontal:({prop:e})=>e("orientation")==="horizontal",canScrollNext:({prop:e,context:t})=>e("loop")||t.get("page")<t.get("pageSnapPoints").length-1,canScrollPrev:({prop:e,context:t})=>e("loop")||t.get("page")>0,autoplayInterval:({prop:e})=>{let t=e("autoplay");return fl(t)?t.delay:4e3}},watch({track:e,action:t,context:r,prop:n,send:o}){e([()=>n("slidesPerPage"),()=>n("slidesPerMove")],()=>{t(["setSnapPoints"])}),e([()=>r.get("page")],()=>{t(["scrollToPage","focusIndicatorEl"])}),e([()=>n("orientation"),()=>n("autoSize"),()=>n("dir")],()=>{t(["setSnapPoints","scrollToPage"])}),e([()=>n("slideCount")],()=>{o({type:"SNAP.REFRESH",src:"slide.count"})}),e([()=>!!n("autoplay")],()=>{o({type:n("autoplay")?"AUTOPLAY.START":"AUTOPLAY.PAUSE",src:"autoplay.prop.change"})})},on:{"PAGE.NEXT":{target:"idle",actions:["clearScrollEndTimer","setNextPage"]},"PAGE.PREV":{target:"idle",actions:["clearScrollEndTimer","setPrevPage"]},"PAGE.SET":{target:"idle",actions:["clearScrollEndTimer","setPage"]},"INDEX.SET":{target:"idle",actions:["clearScrollEndTimer","setMatchingPage"]},"SNAP.REFRESH":{actions:["setSnapPoints","scrollToPageIfDrifted"]},"PAGE.SCROLL":{actions:["scrollToPage"]}},effects:["trackSlideMutation","trackSlideIntersections","trackSlideResize"],entry:["setSnapPoints","setPage"],exit:["clearScrollEndTimer"],states:{idle:{on:{"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"AUTOPLAY.START":{target:"autoplay",actions:["invokeAutoplayStart"]},"USER.SCROLL":{target:"userScroll"},"VIEWPORT.FOCUS":{target:"focus"}}},focus:{effects:["trackKeyboardScroll"],on:{"VIEWPORT.BLUR":{target:"idle"},"PAGE.NEXT":{actions:["clearScrollEndTimer","setNextPage"]},"PAGE.PREV":{actions:["clearScrollEndTimer","setPrevPage"]},"PAGE.SET":{actions:["clearScrollEndTimer","setPage"]},"INDEX.SET":{actions:["clearScrollEndTimer","setMatchingPage"]},"USER.SCROLL":{target:"userScroll"}}},dragging:{effects:["trackPointerMove"],entry:["disableScrollSnap"],on:{DRAGGING:{actions:["scrollSlides","invokeDragging"]},"DRAGGING.END":{target:"settling",actions:["endDragging"]}}},settling:{effects:["trackSettlingScroll"],on:{"DRAGGING.START":{target:"dragging",actions:["clearScrollEndTimer","invokeDragStart"]},"SCROLL.END":[{guard:"isFocused",target:"focus",actions:["clearScrollEndTimer","setClosestPage","invokeDraggingEnd"]},{target:"idle",actions:["clearScrollEndTimer","setClosestPage","invokeDraggingEnd"]}]}},userScroll:{effects:["trackScroll"],on:{"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"SCROLL.END":[{guard:"isFocused",target:"focus",actions:["setClosestPage"]},{target:"idle",actions:["setClosestPage"]}]}},autoplay:{effects:["trackDocumentVisibility","trackScroll","autoUpdateSlide"],exit:["invokeAutoplayEnd"],on:{"AUTOPLAY.TICK":{actions:["setNextPage","invokeAutoplay"]},"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"AUTOPLAY.PAUSE":{target:"idle"}}}},implementations:{guards:{isFocused:({scope:e})=>e.isActiveElement(kt(e))},effects:{autoUpdateSlide({computed:e,send:t}){let r=setInterval(()=>{t({type:e("canScrollNext")?"AUTOPLAY.TICK":"AUTOPLAY.PAUSE",src:"autoplay.interval"})},e("autoplayInterval"));return()=>clearInterval(r)},trackSlideMutation({scope:e,send:t}){let r=kt(e);if(!r)return;let n=e.getWin(),o=new n.MutationObserver(()=>{t({type:"SNAP.REFRESH",src:"slide.mutation"}),ap(e)});return ap(e),o.observe(r,{childList:!0,subtree:!0}),()=>o.disconnect()},trackSlideResize({scope:e,send:t}){let r=kt(e);if(!r)return;let n=()=>{t({type:"SNAP.REFRESH",src:"slide.resize"})};we(()=>{n(),we(()=>{t({type:"PAGE.SCROLL",instant:!0})})});let o=ip(e);o.forEach(n);let i=[jd.observe(r,n),...o.map(a=>jd.observe(a,n))];return cr(...i)},trackSlideIntersections({scope:e,prop:t,context:r}){let n=kt(e),o=e.getWin(),i=new o.IntersectionObserver(a=>{let s=a.reduce((l,c)=>{let u=c.target,f=Number(u.dataset.index??"-1");return f==null||Number.isNaN(f)||f===-1?l:c.isIntersecting?yh(l,f):wh(l,f)},r.get("slidesInView"));r.set("slidesInView",xh(s))},{root:n,threshold:t("inViewThreshold")});return ip(e).forEach(a=>i.observe(a)),()=>i.disconnect()},trackScroll({send:e,refs:t,scope:r}){let n=kt(r);return n?Ae(n,"scroll",()=>{clearTimeout(t.get("timeoutRef")),t.set("timeoutRef",void 0),t.set("timeoutRef",setTimeout(()=>{e({type:"SCROLL.END"})},150))},{passive:!0}):void 0},trackSettlingScroll({send:e,refs:t,scope:r}){let n=kt(r);if(!n)return;let o=()=>{clearTimeout(t.get("timeoutRef")),t.set("timeoutRef",void 0),t.set("timeoutRef",setTimeout(()=>{e({type:"SCROLL.END"})},200))};o();let a=Ae(n,"scroll",()=>{o()},{passive:!0});return()=>{a(),clearTimeout(t.get("timeoutRef")),t.set("timeoutRef",void 0)}},trackDocumentVisibility({scope:e,send:t}){let r=e.getDoc();return Ae(r,"visibilitychange",()=>{r.visibilityState!=="visible"&&t({type:"AUTOPLAY.PAUSE",src:"doc.hidden"})})},trackPointerMove({scope:e,send:t}){let r=e.getDoc();return Eb(r,{onPointerMove({event:n}){t({type:"DRAGGING",left:-n.movementX,top:-n.movementY})},onPointerUp(){t({type:"DRAGGING.END"})}})},trackKeyboardScroll({scope:e,send:t,context:r}){let n=e.getWin();return Ae(n,"keydown",i=>{switch(i.key){case"ArrowRight":i.preventDefault(),t({type:"PAGE.NEXT"});break;case"ArrowLeft":i.preventDefault(),t({type:"PAGE.PREV"});break;case"Home":i.preventDefault(),t({type:"PAGE.SET",index:0});break;case"End":i.preventDefault(),t({type:"PAGE.SET",index:r.get("pageSnapPoints").length-1})}},{capture:!0})}},actions:{clearScrollEndTimer({refs:e}){e.get("timeoutRef")!=null&&(clearTimeout(e.get("timeoutRef")),e.set("timeoutRef",void 0))},scrollToPage({context:e,event:t,scope:r,computed:n,flush:o}){let i=t.instant?"instant":"smooth",a=Ur(t.index??e.get("page"),0,e.get("pageSnapPoints").length-1),s=kt(r);if(!s)return;let l=n("isHorizontal")?"left":"top";o(()=>{s.scrollTo({[l]:e.get("pageSnapPoints")[a],behavior:i})})},scrollToPageIfDrifted({context:e,scope:t,computed:r}){let n=kt(t);if(!n)return;let o=e.get("pageSnapPoints")[e.get("page")];if(o==null)return;let i=r("isHorizontal")?n.scrollLeft:n.scrollTop;if(Math.abs(i-o)<=dR)return;let a=r("isHorizontal")?"left":"top";n.scrollTo({[a]:o,behavior:"instant"})},setClosestPage({context:e,scope:t,computed:r}){let n=kt(t);if(!n)return;let o=r("isHorizontal")?n.scrollLeft:n.scrollTop,i=e.get("pageSnapPoints");if(!i.length)return;let a=i.reduce((s,l,c)=>{let u=Math.abs(l-o),f=Math.abs(i[s]-o);return u<f?c:s},0);e.set("page",a)},setNextPage({context:e,prop:t,state:r}){let n=r.matches("autoplay")||t("loop"),o=dl(e.get("pageSnapPoints"),e.get("page"),{loop:n});e.set("page",o)},setPrevPage({context:e,prop:t,state:r}){let n=r.matches("autoplay")||t("loop"),o=xd(e.get("pageSnapPoints"),e.get("page"),{loop:n});e.set("page",o)},setMatchingPage({context:e,event:t,computed:r,scope:n}){let o=kt(n);if(!o)return;let i=n0(o,r("isHorizontal")?"x":"y",s=>s.dataset.index===t.index.toString());if(i==null)return;let a=e.get("pageSnapPoints").findIndex(s=>Math.abs(s-i)<1);e.set("page",a)},setPage({context:e,event:t}){let r=t.index??e.get("page");e.set("page",r)},setSnapPoints({context:e,computed:t,scope:r}){let n=kt(r);if(!n)return;let o=r0(n),i=t("isHorizontal")?o.x:o.y;if(e.set("pageSnapPoints",i),!i.length)return;let a=Ur(e.get("page"),0,i.length-1);e.set("page",a)},disableScrollSnap({scope:e}){let t=kt(e);if(!t)return;let r=getComputedStyle(t);t.dataset.scrollSnapType=r.getPropertyValue("scroll-snap-type"),t.style.setProperty("scroll-snap-type","none")},scrollSlides({scope:e,event:t}){kt(e)?.scrollBy({left:t.left,top:t.top,behavior:"instant"})},endDragging({scope:e,context:t,computed:r}){let n=kt(e);if(!n)return;let o=r("isHorizontal"),i=o?n.scrollLeft:n.scrollTop,a=t.get("pageSnapPoints");if(!a.length)return;let s=a.reduce((l,c)=>Math.abs(c-i)<Math.abs(l-i)?c:l,a[0]);we(()=>{n.scrollTo({left:o?s:n.scrollLeft,top:o?n.scrollTop:s,behavior:"smooth"});let l=n.dataset.scrollSnapType;l&&(n.style.setProperty("scroll-snap-type",l),delete n.dataset.scrollSnapType)})},focusIndicatorEl({context:e,event:t,scope:r}){if(t.src!=="indicator")return;let n=Xv(r,e.get("page"));n&&we(()=>n.focus({preventScroll:!0}))},invokeDragStart({context:e,prop:t}){t("onDragStatusChange")?.({type:"dragging.start",isDragging:!0,page:e.get("page")})},invokeDragging({context:e,prop:t}){t("onDragStatusChange")?.({type:"dragging",isDragging:!0,page:e.get("page")})},invokeDraggingEnd({context:e,prop:t}){t("onDragStatusChange")?.({type:"dragging.end",isDragging:!1,page:e.get("page")})},invokeAutoplay({context:e,prop:t}){t("onAutoplayStatusChange")?.({type:"autoplay",isPlaying:!0,page:e.get("page")})},invokeAutoplayStart({context:e,prop:t}){t("onAutoplayStatusChange")?.({type:"autoplay.start",isPlaying:!0,page:e.get("page")})},invokeAutoplayEnd({context:e,prop:t}){t("onAutoplayStatusChange")?.({type:"autoplay.stop",isPlaying:!1,page:e.get("page")})}}}});function fR(e,t,r){if(e==null||r<=0)return[];let n=[],o=t==="auto"?Math.floor(r):t;if(o<=0)return[];for(let i=0;i<e&&!(i+r>e);i+=o)n.push(i);return n}var fp=mc.extendWith("progressText","autoplayIndicator");var[o0,br]=ze({hookName:"useCarouselContext",providerName:"<CarouselProvider />"}),mR=fp.build(),i0=e=>{let t=br();return g(W.span,le(()=>mR.autoplayIndicator.attrs,e,{get children(){return g(z,{get when(){return t().isPlaying},get fallback(){return e.fallback},get children(){return e.children}})}}))},gR=fp.build(),a0=e=>{let t=br(),r=ee(()=>{let n=t().page+1,o=t().pageSnapPoints.length;return`${n} / ${o}`});return g(W.span,le(()=>gR.progressText.attrs,e,{get children(){return e.children||r()}}))},s0=e=>{let t=br(),r=j(()=>t().getAutoplayTriggerProps(),e);return g(W.button,r)},l0=e=>e.children(br()),c0=e=>{let t=br(),r=j(()=>t().getControlProps(),e);return g(W.div,r)},u0=e=>{let[t,r]=De()(e,["index","readOnly"]),n=br(),o=j(()=>n().getIndicatorProps(t),r);return g(W.button,o)},d0=e=>{let t=br(),r=j(()=>t().getIndicatorGroupProps(),e);return g(W.div,r)},f0=e=>{let[t,r]=De()(e,["index","snapAlign"]),n=br(),o=j(()=>n().getItemProps(t),r);return g(W.div,o)},p0=e=>{let t=br(),r=j(()=>t().getItemGroupProps(),e);return g(W.div,r)},m0=e=>{let t=br(),r=j(()=>t().getNextTriggerProps(),e);return g(W.button,r)},g0=e=>{let t=br(),r=j(()=>t().getPrevTriggerProps(),e);return g(W.button,r)},h0=e=>{let t=ct(),r=fr(),n=xt(),o=ee(()=>({id:t,dir:r().dir,getRootNode:n().getRootNode,...Nt(e)})),i=Vt(dp,o);return ee(()=>sp(i,zt))},b0=e=>{let[t,r]=De()(e,["allowMouseDrag","autoplay","autoSize","defaultPage","id","ids","inViewThreshold","loop","onAutoplayStatusChange","onDragStatusChange","onPageChange","orientation","padding","page","slideCount","slidesPerMove","slidesPerPage","snapType","spacing","translations"]),n=h0(t),o=j(()=>n().getRootProps(),r);return g(o0,{value:n,get children(){return g(W.div,o)}})},y0=e=>{let[{value:t},r]=De()(e,["value"]),n=j(()=>t().getRootProps(),r);return g(o0,{value:t,get children(){return g(W.div,n)}})},En={};Lt(En,{AutoplayIndicator:()=>i0,AutoplayTrigger:()=>s0,Context:()=>l0,Control:()=>c0,Indicator:()=>u0,IndicatorGroup:()=>d0,Item:()=>f0,ItemGroup:()=>p0,NextTrigger:()=>m0,PrevTrigger:()=>g0,ProgressText:()=>a0,Root:()=>b0,RootProvider:()=>y0});d();d();d();function w0(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=w0(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function x0(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=w0(e))&&(n&&(n+=" "),n+=t);return n}var v0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,te=x0,pp=(e,t)=>r=>{var n;if(t?.variants==null)return te(e,r?.class,r?.className);let{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(c=>{let u=r?.[c],f=i?.[c];if(u===null)return null;let p=v0(u)||v0(f);return o[c][p]}),s=r&&Object.entries(r).reduce((c,u)=>{let[f,p]=u;return p===void 0||(c[f]=p),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:f,className:p,...m}=u;return Object.entries(m).every(b=>{let[y,x]=b;return Array.isArray(x)?x.includes({...i,...s}[y]):{...i,...s}[y]===x})?[...c,f,p]:c},[]);return te(e,a,l,r?.class,r?.className)};d();d();d();d();d();var Qr=class extends Error{name="KyError";get isKyError(){return!0}};var Pn=class extends Qr{name="HTTPError";response;request;options;data;constructor(t,r,n){let o=t.status||t.status===0?t.status:"",i=t.statusText??"",a=`${o} ${i}`.trim(),s=a?`status code ${a}`:"an unknown error";super(`Request failed with ${s}: ${r.method} ${r.url}`),this.response=t,this.request=r,this.options=n}};d();var Mi=class extends Qr{name="NetworkError";request;constructor(t,r){super(`Request failed due to a network error: ${t.method} ${t.url}`,r),this.request=t}};d();var $i=class extends Error{name="NonError";value;constructor(t){let r="Non-error value was thrown";try{typeof t=="string"?r=t:t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"&&(r=t.message)}catch{}super(r),this.value=t}};d();var Vo=class extends Qr{name="ForceRetryError";customDelay;code;customRequest;constructor(t){let r=t?.cause?t.cause instanceof Error?t.cause:new $i(t.cause):void 0;super(t?.code?`Forced retry: ${t.code}`:"Forced retry",r?{cause:r}:void 0),this.customDelay=t?.delay,this.code=t?.code,this.customRequest=t?.request}};d();var hc=class extends Error{name="SchemaValidationError";issues;constructor(t){super("Response schema validation failed"),this.issues=t}};d();var yr=class extends Qr{name="TimeoutError";request;constructor(t){super(`Request timed out: ${t.method} ${t.url}`),this.request=t}};d();d();var mp=(()=>{let e=!1,t=!1,r=typeof globalThis.ReadableStream=="function",n=typeof globalThis.Request=="function";if(r&&n)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(o){if(o instanceof Error&&o.message==="unsupported BodyInit type")return!1;throw o}return e&&!t})(),T0=typeof globalThis.AbortController=="function",bc=typeof globalThis.AbortSignal=="function"&&typeof globalThis.AbortSignal.any=="function",S0=typeof globalThis.ReadableStream=="function",C0=typeof globalThis.FormData=="function",yc=["get","post","put","patch","head","delete"],hR=()=>{};hR();var k0={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},Fi=2147483647,E0=40,wc=Symbol("stop"),ns=class{options;constructor(t){this.options=t}},P0=e=>new ns(e),I0={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},_0={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0};var xc=new TextEncoder,bR=e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[r,n]of e)t+=E0,t+=xc.encode(`Content-Disposition: form-data; name="${r}"`).byteLength,t+=typeof n=="string"?xc.encode(n).byteLength:n.size;return t}return e instanceof Blob?e.size:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?e.byteLength:typeof e=="string"?xc.encode(e).byteLength:e instanceof URLSearchParams?xc.encode(e.toString()).byteLength:0},A0=(e,t,r)=>{let n,o=0;return e.pipeThrough(new TransformStream({transform(i,a){if(a.enqueue(i),n){o+=n.byteLength;let s=t===0?0:o/t;s>=1&&(s=1-Number.EPSILON),r?.({percent:s,totalBytes:Math.max(t,o),transferredBytes:o},n)}n=i},flush(){n&&(o+=n.byteLength,r?.({percent:1,totalBytes:Math.max(t,o),transferredBytes:o},n))}}))},R0=(e,t)=>{if(!e.body)return e;let r={status:e.status,statusText:e.statusText,headers:e.headers};if(e.status===204)return new Response(null,r);let n=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(A0(e.body,n,t),r)},O0=(e,t,r)=>{if(!e.body)return e;let n=bR(r??e.body);return new Request(e,{duplex:"half",body:A0(e.body,n,t)})};d();d();var en=e=>e!==null&&typeof e=="object";var yR=Symbol("replaceOption"),gp=e=>en(e)&&e[yR]===!0?{isReplace:!0,value:e.value}:{isReplace:!1,value:e};var is=(...e)=>{for(let t of e)if((!en(t)||Array.isArray(t))&&t!==void 0)throw new TypeError("The `options` argument must be an object");return yp({},...e)},bp=(e={},t={})=>{let r=new globalThis.Headers(e),n=t instanceof globalThis.Headers,o=new globalThis.Headers(t);for(let[i,a]of o.entries())n&&a==="undefined"||a===void 0?r.delete(i):r.set(i,a);return r},hp=e=>{if(!en(e)||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},Bi=e=>{if(e instanceof URLSearchParams){let t=new URLSearchParams(e),r=e[to];return r&&(t[to]=new Set(r)),t}return e instanceof globalThis.Headers?new globalThis.Headers(e):Array.isArray(e)?[...e]:hp(e)?{...e}:e},wR=e=>Object.fromEntries(Object.entries(e).filter(t=>t[1]!==void 0)),xR=(e,t)=>hp(e)&&hp(t)?wR({...e,...t}):bp(e,t);function os(e,t,r){return Object.hasOwn(t,r)&&t[r]===void 0?[]:yp(e[r]??[],t[r]??[])}var vc=(e={},t={})=>({init:os(e,t,"init"),beforeRequest:os(e,t,"beforeRequest"),beforeRetry:os(e,t,"beforeRetry"),beforeError:os(e,t,"beforeError"),afterResponse:os(e,t,"afterResponse")}),to=Symbol("deletedParameters"),vR=(e,t)=>{let r=new URLSearchParams,n=new Set;for(let o of[e,t])if(o!==void 0)if(o instanceof URLSearchParams){for(let[a,s]of o.entries())r.append(a,s),n.delete(a);let i=o[to];if(i)for(let a of i)r.delete(a),n.add(a)}else if(Array.isArray(o))for(let i of o){if(!Array.isArray(i)||i.length!==2)throw new TypeError("Array search parameters must be provided in [[key, value], ...] format");r.append(String(i[0]),String(i[1])),n.delete(String(i[0]))}else if(en(o))for(let[i,a]of Object.entries(o))a===void 0?(r.delete(i),n.add(i)):(r.append(i,String(a)),n.delete(i));else{let i=new URLSearchParams(o);for(let[a,s]of i.entries())r.append(a,s),n.delete(a)}return n.size>0&&(r[to]=n),r},yp=(...e)=>{let t={},r={},n={},o,i=[];for(let a of e)if(Array.isArray(a))Array.isArray(t)||(t=[]),t=[...t,...a];else if(en(a)){for(let[s,l]of Object.entries(a)){if(s==="signal"&&l instanceof globalThis.AbortSignal){i.push(l);continue}let c=gp(l),{isReplace:u}=c;if(l=c.value,s==="context"){if(l!=null&&(!en(l)||Array.isArray(l)))throw new TypeError("The `context` option must be an object");t={...t,context:l==null?{}:u?{...l}:{...t.context,...l}};continue}if(s==="searchParams"){l==null?o=void 0:u?o=l:o=o===void 0?l:vR(o,l);continue}en(l)&&!u&&s in t&&(l=yp(t[s],l)),t={...t,[s]:l}}if(en(a.hooks)){let{value:s,isReplace:l}=gp(a.hooks);n=vc(l?{}:n,s),t.hooks=n}if(en(a.headers)){let{value:s,isReplace:l}=gp(a.headers);r=l?Bi(s):xR(r,s),t.headers=r}}return o!==void 0&&(t.searchParams=o),i.length>0&&(i.length===1?t.signal=i[0]:bc?t.signal=AbortSignal.any(i):t.signal=i.at(-1)),t};d();var L0=e=>yc.includes(e)?e.toUpperCase():e,TR=["get","put","head","delete","options","trace"],SR=[408,413,429,500,502,503,504],CR=[413,429,503],N0={limit:2,methods:TR,statusCodes:SR,afterStatusCodes:CR,maxRetryAfter:Number.POSITIVE_INFINITY,backoffLimit:Number.POSITIVE_INFINITY,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1},D0=(e={})=>{if(typeof e=="number")return{...N0,limit:e};if(e.methods&&!Array.isArray(e.methods))throw new Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw new Error("retry.statusCodes must be an array");let t=Object.fromEntries(Object.entries({...e,methods:e.methods?.map(r=>r.toLowerCase())}).filter(([,r])=>r!==void 0));return{...N0,...t}};d();async function wp(e,t,r,n){return new Promise((o,i)=>{let a=setTimeout(()=>{r&&r.abort(),i(new yr(e))},n.timeout);n.fetch(e,t).then(o).catch(i).then(()=>{clearTimeout(a)})})}d();async function Tc(e,{signal:t}){return new Promise((r,n)=>{t&&(t.throwIfAborted(),t.addEventListener("abort",o,{once:!0}));function o(){clearTimeout(i),n(t.reason)}let i=setTimeout(()=>{t?.removeEventListener("abort",o),r()},e)})}d();var M0=e=>{let t={};for(let r in e)Object.hasOwn(e,r)&&!(r in _0)&&!(r in I0)&&(t[r]=e[r]);return t},$0=e=>e===void 0?!1:Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0||!!e[to]?.size:typeof e=="object"?Object.keys(e).length>0:typeof e=="string"?e.trim().length>0:!!e;d();var kR=Object.prototype.toString,ER=e=>kR.call(e)==="[object Error]",PR=new Set(["network error","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]);function xp(e){if(!(e&&ER(e)&&e.name==="TypeError"&&typeof e.message=="string"))return!1;let{message:r,stack:n}=e;return r==="Load failed"?n===void 0||"__sentry_captured__"in e:r.startsWith("error sending request for url")||r==="Failed to fetch"||r.startsWith("Failed to fetch (")&&r.endsWith(")")?!0:PR.has(r)}d();var vp=(e,t)=>e instanceof t||e?.name===t.name;function F0(e){return vp(e,Pn)}function B0(e){return vp(e,Mi)}function U0(e){return vp(e,yr)}var IR=10*1024*1024,_R="The `prefixUrl` option has been renamed `prefix` in v2 and enhanced to allow slashes in input. See also the new `baseUrl` option for improved flexibility with standard URL resolution: https://github.com/sindresorhus/ky#baseurl",as=Symbol("timedOutResponseData"),AR=e=>{let t=/;\s*charset\s*=\s*(?:"([^"]+)"|([^;,\s]+))/i.exec(e),r=t?.[1]??t?.[2];if(r)try{return new TextDecoder(r)}catch{}return new TextDecoder},V0="The `schema` argument must follow the Standard Schema specification",RR=e=>typeof e!="object"?e:{...e,...e.methods&&{methods:[...e.methods]},...e.statusCodes&&{statusCodes:[...e.statusCodes]},...e.afterStatusCodes&&{afterStatusCodes:[...e.afterStatusCodes]}},G0=Object.prototype.toString,z0=e=>e instanceof globalThis.Request||G0.call(e)==="[object Request]",ss=e=>e instanceof globalThis.Response||G0.call(e)==="[object Response]",OR=e=>Array.isArray(e)?e.map(t=>[...t]):Bi(e);function NR(e){let t={...e,json:Bi(e.json),context:Bi(e.context),headers:Bi(e.headers),searchParams:OR(e.searchParams)};return e.retry!==void 0&&(t.retry=RR(e.retry)),t}var j0=async(e,t)=>{if(typeof t!="object"&&typeof t!="function"||t===null)throw new TypeError(V0);let r=t["~standard"];if(typeof r!="object"||r===null||typeof r.validate!="function")throw new TypeError(V0);let n=await r.validate(e);if(n.issues)throw new hc(n.issues);return n.value},ls=class e{static create(t,r){let n=r.hooks?.init??[],o=n.length>0?NR(r):r;for(let l of n)l(o);let i=new e(t,o),a=async()=>{if(typeof i.#e.timeout=="number"&&i.#e.timeout>Fi)throw new RangeError(`The \`timeout\` option cannot be greater than ${Fi}`);if(typeof i.#e.totalTimeout=="number"&&i.#e.totalTimeout>Fi)throw new RangeError(`The \`totalTimeout\` option cannot be greater than ${Fi}`);await Promise.resolve();let l=await i.#L(),c=l??await i.#P(async()=>i.#y()),u=l!==void 0||i.#b();for(;;){if(c===void 0)return c;if(ss(c))try{c=await i.#D(c)}catch(p){if(!(p instanceof Vo))throw p;let m=await i.#h(p,async()=>i.#y());if(m===void 0)return m;c=m,u=i.#b();continue}let f=c;if(!f.ok&&f.type!=="opaque"&&(typeof i.#e.throwHttpErrors=="function"?i.#e.throwHttpErrors(f.status):i.#e.throwHttpErrors)){let p=new Pn(f,i.#l(f),i.#s()),m=p;if(p.data=await i.#A(f),u)throw m;let b=await i.#h(p,async()=>i.#y());if(b===void 0)return b;c=b,u=i.#b();continue}break}if(!ss(c))return c;if(i.#C(c),i.#e.onDownloadProgress){if(typeof i.#e.onDownloadProgress!="function")throw new TypeError("The `onDownloadProgress` option must be a function");if(!S0)throw new Error("Streams are not supported in your environment. `ReadableStream` is missing.");let f=c.clone();return i.#o(c),R0(f,i.#e.onDownloadProgress)}return c},s=(async()=>{try{return await a()}catch(l){if(!(l instanceof Error)||i.#T.has(l))throw l;let c=l;for(let u of i.#e.hooks.beforeError){let f=await u({request:i.request,options:i.#s(),error:c,retryCount:i.#r});f instanceof Error&&(c=f)}throw c}finally{let l=i.#v;i.#g(l?.body??void 0),i.request!==l&&i.#g(i.request.body??void 0)}})();for(let[l,c]of Object.entries(k0))l==="bytes"&&typeof globalThis.Response?.prototype?.bytes!="function"||(s[l]=async u=>{i.request.headers.set("accept",i.request.headers.get("accept")||c);let f=await s;if(l!=="json")return f[l]();let p=await f.text();if(p==="")return u!==void 0?j0(void 0,u):JSON.parse(p);let m=o.parseJson?await o.parseJson(p,{request:i.#l(f),response:f}):JSON.parse(p);return u===void 0?m:j0(m,u)});return s}static#a(t){return t&&typeof t=="object"&&!Array.isArray(t)&&!(t instanceof URLSearchParams)?Object.fromEntries(Object.entries(t).filter(([,r])=>r!==void 0)):t}request;#n;#r=0;#t;#e;#v;#c;#T=new WeakSet;#u;#m;#d=!1;#S=new WeakMap;constructor(t,r={}){if(this.#t=t,Object.hasOwn(r,"prefixUrl"))throw new Error(_R);if(this.#e={...r,headers:bp(this.#t.headers,r.headers),hooks:vc({},r.hooks),method:L0(r.method??this.#t.method??"GET"),prefix:String(r.prefix||""),retry:D0(r.retry),throwHttpErrors:r.throwHttpErrors??!0,timeout:r.timeout??1e4,totalTimeout:r.totalTimeout??!1,fetch:r.fetch??globalThis.fetch.bind(globalThis),context:r.context??{}},typeof this.#t!="string"&&!(this.#t instanceof URL||this.#t instanceof globalThis.Request))throw new TypeError("`input` must be a string, URL, or Request");if(typeof this.#t=="string"){if(this.#e.prefix){let o=this.#e.prefix.replace(/\/+$/,""),i=this.#t.replace(/^\/+/,"");this.#t=`${o}/${i}`}if(this.#e.baseUrl){let o;try{o=new URL(this.#t)}catch{}o||(this.#t=new URL(this.#t,new Request(this.#e.baseUrl).url))}}T0&&bc&&(this.#c=this.#e.signal??this.#t.signal,this.#n=new globalThis.AbortController,this.#e.signal=this.#E()),mp&&(this.#e.duplex="half"),this.#e.json!==void 0&&(this.#e.body=this.#e.stringifyJson?.(this.#e.json)??JSON.stringify(this.#e.json),this.#e.headers.set("content-type",this.#e.headers.get("content-type")??"application/json"));let n=r.headers&&new globalThis.Headers(r.headers).has("content-type");if(this.#t instanceof globalThis.Request&&(C0&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!n&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#t,this.#e),$0(this.#e.searchParams)){let o=new URL(this.request.url),i=this.#e.searchParams?.[to];if(i)for(let a of i)o.searchParams.delete(a);if(typeof this.#e.searchParams=="string"){let a=this.#e.searchParams.replace(/^\?/,"");a!==""&&(o.search=o.search?`${o.search}&${a}`:`?${a}`)}else{let a=new URLSearchParams(e.#a(this.#e.searchParams));for(let[s,l]of a.entries())o.searchParams.append(s,l)}if(this.#e.searchParams&&typeof this.#e.searchParams=="object"&&!Array.isArray(this.#e.searchParams)&&!(this.#e.searchParams instanceof URLSearchParams))for(let[a,s]of Object.entries(this.#e.searchParams))s===void 0&&o.searchParams.delete(a);this.request=new globalThis.Request(o,this.#e)}if(this.#e.onUploadProgress&&typeof this.#e.onUploadProgress!="function")throw new TypeError("The `onUploadProgress` option must be a function");this.#m=typeof this.#e.totalTimeout=="number"?this.#I():void 0}#i(){let t=this.#e.retry.delay(this.#r+1),r=t;return this.#e.retry.jitter===!0?r=Math.random()*t:typeof this.#e.retry.jitter=="function"&&(r=this.#e.retry.jitter(t),(!Number.isFinite(r)||r<0)&&(r=t)),Math.min(this.#e.retry.backoffLimit,r)}async#_(t){if(this.#r>=this.#e.retry.limit)throw t;let r=t instanceof Error?t:new $i(t);if(r instanceof Vo)return r.customDelay??this.#i();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw t;if(this.#e.retry.shouldRetry!==void 0){let n=await this.#e.retry.shouldRetry({error:r,retryCount:this.#r+1});if(n===!1)throw t;if(n===!0)return this.#i()}if(U0(t)){if(!this.#e.retry.retryOnTimeout)throw t;return this.#i()}if(F0(t)){if(!this.#e.retry.statusCodes.includes(t.response.status))throw t;let n=t.response.headers.get("Retry-After")??t.response.headers.get("RateLimit-Reset")??t.response.headers.get("X-RateLimit-Retry-After")??t.response.headers.get("X-RateLimit-Reset")??t.response.headers.get("X-Rate-Limit-Reset");if(n&&this.#e.retry.afterStatusCodes.includes(t.response.status)){let o=Number(n)*1e3;return Number.isNaN(o)?o=Date.parse(n)-Date.now():o>=Date.parse("2024-01-01")&&(o-=Date.now()),Number.isFinite(o)?(o=Math.max(0,o),Math.min(this.#e.retry.maxRetryAfter,o)):Math.min(this.#e.retry.maxRetryAfter,this.#i())}if(t.response.status===413)throw t;return this.#i()}if(!B0(t))throw t;return this.#i()}#C(t){let r=this.#l(t);return this.#e.parseJson&&(t.json=async()=>{let n=await t.text();return n===""?JSON.parse(n):this.#e.parseJson(n,{request:r,response:t})}),t}async#A(t){let r=await this.#O(t,this.#k());if(r===as){this.#f();return}if(!r)return;if(!this.#R(t.headers.get("content-type")??""))return r;let n=await this.#N(r,t,this.#k(),this.#l(t));if(n===as){this.#f();return}return n}#k(){let t=this.#e.timeout===!1?1e4:this.#e.timeout,r=this.#p();if(r===void 0)return t;if(r<=0)throw new yr(this.request);return Math.min(t,r)}#R(t){let r=(t.split(";",1)[0]??"").trim().toLowerCase();return/\/(?:.*[.+-])?json$/.test(r)}async#O(t,r){let{body:n}=t;if(!n)try{return await t.text()}catch{return}let o;try{o=n.getReader()}catch{return}let i=AR(t.headers.get("content-type")??""),a=[],s=0,l=(async()=>{try{for(;;){let{done:f,value:p}=await o.read();if(f)break;if(s+=p.byteLength,s>IR){o.cancel().catch(()=>{});return}a.push(i.decode(p,{stream:!0}))}}catch{return}return a.push(i.decode()),a.join("")})(),c=new Promise(f=>{let p=setTimeout(()=>{f(as)},r);l.finally(()=>{clearTimeout(p)})}),u=await Promise.race([l,c]);return u===as&&o.cancel().catch(()=>{}),u}async#N(t,r,n,o){let i;try{return await Promise.race([Promise.resolve().then(()=>this.#e.parseJson?this.#e.parseJson(t,{request:o,response:r}):JSON.parse(t)),new Promise(a=>{i=setTimeout(()=>{a(as)},n)})])}catch{return}finally{clearTimeout(i)}}#g(t){t&&t.cancel().catch(()=>{})}#o(t){this.#g(t.body??void 0)}#E(){return this.#c?AbortSignal.any([this.#c,this.#n.signal]):this.#n.signal}#f(){let t=this.#p();if(t!==void 0&&t<=0)throw new yr(this.request)}async#L(){for(let t of this.#e.hooks.beforeRequest){let r=await t({request:this.request,options:this.#s(),retryCount:0});if(z0(r))this.#w(r);else if(ss(r))return r}}async#D(t){let r=this.#l(t);for(let n of this.#e.hooks.afterResponse){let o=this.#x(t.clone(),r);this.#C(o);let i;try{i=await n({request:this.request,options:this.#s(),response:o,retryCount:this.#r})}catch(s){throw o!==t&&this.#o(o),this.#o(t),s}if(i instanceof ns)throw o!==t&&this.#o(o),this.#o(t),new Vo(i.options);let a=ss(i)?this.#x(i,r):t;o!==t&&o!==a&&o.body!==a.body&&this.#o(o),t!==a&&t.body!==a.body&&this.#o(t),t=a}return t}async#P(t){try{return await t()}catch(r){return this.#h(r,t)}}async#h(t,r){this.#d=!1;let n=Math.min(await this.#_(t),Fi),o={signal:this.#c},i=this.#p();if(i!==void 0){if(i<=0)throw new yr(this.request);if(n>=i)throw await Tc(i,o),new yr(this.request)}if(await Tc(n,o),this.#f(),t instanceof Vo&&t.customRequest){let a=new globalThis.Request(t.customRequest,this.#e.signal?{signal:this.#e.signal}:void 0);this.#w(a)}for(let a of this.#e.hooks.beforeRetry){let s;try{s=await a({request:this.request,options:this.#s(),error:t,retryCount:this.#r+1})}catch(l){throw l instanceof Error&&l!==t&&this.#T.add(l),l}if(z0(s)){this.#w(s);break}if(ss(s))return this.#d=!0,this.#r++,s;if(s===wc)return}return this.#f(),this.#r++,this.#P(r)}#b(){let t=this.#d;return this.#d=!1,t}async#y(){this.#n?.signal.aborted&&(this.#n=new globalThis.AbortController,this.#e.signal=this.#E(),this.request=new globalThis.Request(this.request,{signal:this.#e.signal}));let t=M0(this.#e),r=this.#e.retry.limit>0?this.request.clone():void 0,n=this.#M(this.request,this.#e.body??void 0);this.#v=n,r&&(this.request=r);try{let o=this.#p();if(o!==void 0&&o<=0)throw new yr(this.request);let i=this.#e.timeout===!1?o:o===void 0?this.#e.timeout:Math.min(this.#e.timeout,o),a=i===void 0?await this.#e.fetch(n,t):await wp(n,t,this.#n,{timeout:i,fetch:this.#e.fetch});return this.#x(a,n)}catch(o){throw xp(o)?new Mi(this.request,{cause:o}):o}}#p(){if(this.#m===void 0)return;let t=this.#I()-this.#m;return Math.max(0,this.#e.totalTimeout-t)}#I(){return globalThis.performance?.now()??Date.now()}#s(){if(!this.#u){let{hooks:t,json:r,parseJson:n,stringifyJson:o,searchParams:i,timeout:a,totalTimeout:s,throwHttpErrors:l,fetch:c,...u}=this.#e;this.#u=Object.freeze(u)}return this.#u}#w(t){this.#u=void 0,this.request=t}#l(t){return this.#S.get(t)??this.request}#x(t,r){return this.#S.set(t,r),t}#M(t,r){return!this.#e.onUploadProgress||!t.body||!mp?t:O0(t,this.#e.onUploadProgress,r??this.#e.body??void 0)}};var Tp=e=>{let t=(r,n)=>ls.create(r,is(e,n));for(let r of yc)t[r]=(n,o)=>ls.create(n,is(e,o,{method:r}));return t.create=r=>Tp(is(r)),t.extend=r=>(typeof r=="function"&&(r=r(e??{})),Tp(is(e,r))),t.stop=wc,t.retry=P0,t},LR=Tp(),ro=LR;d();var Sc=e=>Number(e)>=6;d();var Et={general:{isInputPrefillEnabled:!1,isHideQueryParamsEnabled:!0,isNewResultOnRefreshEnabled:!0,rememberUser:{isEnabled:!1,storage:"session"},isBrandingEnabled:!1,isTypingEmulationEnabled:!0},typingEmulation:{enabled:!0,speed:400,maxDelay:3,delayBetweenBubbles:0,isDisabledOnFirstMessage:!0},metadata:{description:"Build beautiful conversational forms and embed them directly in your applications without a line of code. Triple your response rate and collect answers that has more value compared to a traditional form.",favIconUrl:e=>e+"/favicon.png",imageUrl:e=>e+"/site-preview.jpeg"}};var it={invalidMessage:"Invalid message. Please, try again.",botClosed:"This bot is now closed",networkErrorTitle:"Network Error",networkErrorMessage:"Please check your internet connection and try again.",popupBlockedTitle:"Popup blocked",popupBlockedDescription:"The bot wants to open a new tab but it was blocked by your browser. It needs a manual approval.",popupBlockedButtonLabel:"Continue in new tab",fileUploadError:"An error occured while uploading the files",fileUploadSizeError:"[[file]] is larger than [[limit]]MB",whatsAppPictureChoiceSelectLabel:"Select",addAttachmentsLabel:"Add attachments",recordVoiceLabel:"common.ariaLabels.recordVoice",stopRecordingLabel:"common.ariaLabels.stopRecording",removeAttachmentLabel:"common.ariaLabels.removeAttachment",closeLabel:"common.ariaLabels.close"};d();d();var He={blue:{light:{1:"#fcfdfe",2:"#f6f9ff",3:"#ebf2ff",4:"#ddeaff",5:"#ccdfff",6:"#b7d2ff",7:"#a0bfff",8:"#7fa5fd",9:"#3566fc",10:"#2f5be1",11:"#2c57dd",12:"#172c65"},dark:{1:"#070d1a",2:"#0f1627",3:"#12234e",4:"#162c6a",5:"#1d377e",6:"#25428f",7:"#2e4ea4",8:"#365bc1",9:"#3566fc",10:"#2a57ec",11:"#8db4ff",12:"#d1e2ff"}},orange:{light:{1:"#FBFEFC",2:"#F4FBF7",3:"#E5F6EC",4:"#D5F1E0",5:"#C3E8D2",6:"#ADDEC0",7:"#8ECEA9",8:"#5FB888",9:"#2B9A66",10:"#168D5A",11:"#00814F",12:"#1C3B2A"},dark:{1:"#0D130F",2:"#131B16",3:"#152C20",4:"#163B27",5:"#1C4831",6:"#25573D",7:"#2D6749",8:"#357B57",9:"#2B9A66",10:"#168D5A",11:"#68D098",12:"#B3F0CC"}},purple:{light:{1:"#fcfcff",2:"#f9f8ff",3:"#f2f0ff",4:"#e7e4ff",5:"#ddd8ff",6:"#d0c9ff",7:"#bdb3ff",8:"#a595ff",9:"#8055fd",10:"#7447ec",11:"#6841d3",12:"#321e6c"},dark:{1:"#0d0a1b",2:"#17132a",3:"#261b4f",4:"#321d6c",5:"#3b257c",6:"#46318b",7:"#543ea2",8:"#684cc7",9:"#8055fd",10:"#7446ee",11:"#b4a6ff",12:"#e0dcff"}},red:{light:{1:"#fffcfc",2:"#fff7f6",3:"#ffebe9",4:"#ffdad6",5:"#ffcbc6",6:"#ffbab5",7:"#fca5a0",8:"#f48984",9:"#f83b45",10:"#ea2638",11:"#d8062a",12:"#6a0d14"},dark:{1:"#130a0a",2:"#201211",3:"#3e0e0f",4:"#55050c",5:"#670b13",6:"#791b1f",7:"#932b2d",8:"#be3a3c",9:"#f83b45",10:"#e92939",11:"#ff8f89",12:"#ffd0cb"}},gray:{light:{1:"#ffffff",2:"#F8F8F8",3:"#f1f1f1",4:"#e8e8e8",5:"#e0e0e0",6:"#dfdfdf",7:"#cecece",8:"#bbbbbb",9:"#8d8d8d",10:"#838383",11:"#464646",12:"#202020"},dark:{1:"#0D0D0D",2:"#1D1D1D",3:"#222222",4:"#2a2a2a",5:"#313131",6:"#3a3a3a",7:"#484848",8:"#606060",9:"#6e6e6e",10:"#7b7b7b",11:"#b4b4b4",12:"#eeeeee"}},green:{light:{1:"#FBFEFC",2:"#F4FBF7",3:"#E5F6EC",4:"#D5F1E0",5:"#C3E8D2",6:"#ADDEC0",7:"#8ECEA9",8:"#5FB888",9:"#2B9A66",10:"#168D5A",11:"#00814F",12:"#1C3B2A"},dark:{1:"#0D130F",2:"#131B16",3:"#152C20",4:"#163B27",5:"#1C4831",6:"#25573D",7:"#2D6749",8:"#357B57",9:"#2B9A66",10:"#168D5A",11:"#68D098",12:"#B3F0CC"}}};var H0="Google",Ui="Inter",Cc="Default",S7={6:"#FFFFFF","6.1":He.gray.light[2]};var W0={6:"#e0edff","6.1":He.orange.light[9]},q0={6:He.gray.light[3],"6.1":He.gray.light[9]},K0=4,kc="absolute",Y0="Top",zo="medium",Gt=1,Sp=0,Z0="800px",X0="100%",jo="transparent";var J0={6:"#F7F8FF","6.1":He.gray.light[1]},Cp=He.gray.light[12],Q0={6:0,"6.1":1},eT=He.gray.light[6],tT={6:"#FF8E21","6.1":He.orange.light[9]},kp=He.gray.light[1],rT={6:0,"6.1":1},nT=He.orange.light[6],Ec={6:"#0042DA","6.1":He.orange.light[9]},oT=He.gray.light[1],iT={6:0,"6.1":1},aT=He.orange.light[8];var Ep="#FFFFFF",Pp=He.gray.light[12],sT="#9095A0",lT={6:0,"6.1":1},cT={6:void 0,"6.1":He.gray.light[7]},uT={6:"md","6.1":void 0},In=!0,cs=!1,dT="wrap",ie={general:{bgImage:"--flow-container-bg-image",bgColor:"--flow-container-bg-color",fontFamily:"--flow-container-font-family",progressBar:{position:"--flow-progress-bar-position",color:"--flow-progress-bar-color",colorRgb:"--flow-progress-bar-bg-rgb",height:"--flow-progress-bar-height",top:"--flow-progress-bar-top",bottom:"--flow-progress-bar-bottom"}},chat:{container:{maxWidth:"--flow-chat-container-max-width",maxHeight:"--flow-chat-container-max-height",bgColor:"--flow-chat-container-bg-rgb",color:"--flow-chat-container-color",borderRadius:"--flow-chat-container-border-radius",borderWidth:"--flow-chat-container-border-width",borderColor:"--flow-chat-container-border-rgb",borderOpacity:"--flow-chat-container-border-opacity",opacity:"--flow-chat-container-opacity",blur:"--flow-chat-container-blur",boxShadow:"--flow-chat-container-box-shadow"},hostBubbles:{bgColor:"--flow-host-bubble-bg-rgb",color:"--flow-host-bubble-color",borderRadius:"--flow-host-bubble-border-radius",borderWidth:"--flow-host-bubble-border-width",borderColor:"--flow-host-bubble-border-rgb",borderOpacity:"--flow-host-bubble-border-opacity",opacity:"--flow-host-bubble-opacity",blur:"--flow-host-bubble-blur",boxShadow:"--flow-host-bubble-box-shadow"},guestBubbles:{bgColor:"--flow-guest-bubble-bg-rgb",color:"--flow-guest-bubble-color",borderRadius:"--flow-guest-bubble-border-radius",borderWidth:"--flow-guest-bubble-border-width",borderColor:"--flow-guest-bubble-border-rgb",borderOpacity:"--flow-guest-bubble-border-opacity",opacity:"--flow-guest-bubble-opacity",blur:"--flow-guest-bubble-blur",boxShadow:"--flow-guest-bubble-box-shadow"},inputs:{bgColor:"--flow-input-bg-rgb",color:"--flow-input-color",placeholderColor:"--flow-input-placeholder-color",borderRadius:"--flow-input-border-radius",borderWidth:"--flow-input-border-width",borderColor:"--flow-input-border-rgb",borderOpacity:"--flow-input-border-opacity",opacity:"--flow-input-opacity",blur:"--flow-input-blur",boxShadow:"--flow-input-box-shadow"},buttons:{bgRgb:"--flow-button-bg-rgb",color:"--flow-button-color",borderRadius:"--flow-button-border-radius",borderWidth:"--flow-button-border-width",borderColor:"--flow-button-border-rgb",borderOpacity:"--flow-button-border-opacity",opacity:"--flow-button-opacity",blur:"--flow-button-blur",boxShadow:"--flow-button-box-shadow",flexDirection:"--flow-buttons-input-flex-direction"},checkbox:{bgRgb:"--flow-checkbox-bg-rgb",alphaRatio:"--selectable-alpha-ratio"}}},fT="#F7F8FF",pT="#303235",mT="#F7F8FF",gT="#303235";d();var hT=async e=>{let t;try{let r=typeof e=="string"?e:e.url;t=await fetch(r,{method:typeof e=="string"?"GET":e.method,mode:"cors",headers:typeof e!="string"&&ge(e.body)?{"Content-Type":"application/json"}:void 0,body:typeof e!="string"&&ge(e.body)?JSON.stringify(e.body):void 0});let n=await t.json();if(!t.ok)throw"error"in n?n.error:n;return{data:n,response:t}}catch(r){return console.error(r),{error:r,response:t}}},ge=e=>e!=null,gt=e=>e==null,Je=e=>e==null||e==="",Re=e=>e!=null&&e!=="";var bT=e=>{e.split("</noscript>").forEach(r=>{let[n,o]=r.split("<noscript>"),i=document.createRange().createContextualFragment(n??"");if(document.head.append(i),gt(o))return;let a=document.createElement("noscript"),s=document.createRange().createContextualFragment(o);a.append(s),document.head.append(a)})};var Vi=e=>e?.startsWith("data:image/svg")||e?.endsWith(".svg");d();d();var DR=(e,t)=>{let r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},MR=(e,t)=>({classGroupId:e,validator:t}),kT=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r});var yT=[],$R="arbitrary..",FR=e=>{let t=UR(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return BR(a);let s=a.split("-"),l=s[0]===""&&s.length>1?1:0;return ET(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){let l=n[a],c=r[a];return l?c?DR(c,l):l:c||yT}return r[a]||yT}}},ET=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;let o=e[t],i=r.nextPart.get(o);if(i){let c=ET(e,t+1,i);if(c)return c}let a=r.validators;if(a===null)return;let s=t===0?e.join("-"):e.slice(t).join("-"),l=a.length;for(let c=0;c<l;c++){let u=a[c];if(u.validator(s))return u.classGroupId}},BR=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?$R+n:void 0})(),UR=e=>{let{theme:t,classGroups:r}=e;return VR(r,t)},VR=(e,t)=>{let r=kT();for(let n in e){let o=e[n];Ap(o,r,n,t)}return r},Ap=(e,t,r,n)=>{let o=e.length;for(let i=0;i<o;i++){let a=e[i];zR(a,t,r,n)}},zR=(e,t,r,n)=>{if(typeof e=="string"){jR(e,t,r);return}if(typeof e=="function"){GR(e,t,r,n);return}HR(e,t,r,n)},jR=(e,t,r)=>{let n=e===""?t:PT(t,e);n.classGroupId=r},GR=(e,t,r,n)=>{if(WR(e)){Ap(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(MR(r,e))},HR=(e,t,r,n)=>{let o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){let[s,l]=o[a];Ap(l,PT(t,s),r,n)}},PT=(e,t)=>{let r=e,n=t.split("-"),o=n.length;for(let i=0;i<o;i++){let a=n[i],s=r.nextPart.get(a);s||(s=kT(),r.nextPart.set(a,s)),r=s}return r},WR=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,qR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null),o=(i,a)=>{r[i]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let a=r[i];if(a!==void 0)return a;if((a=n[i])!==void 0)return o(i,a),a},set(i,a){i in r?r[i]=a:o(i,a)}}};var KR=[],wT=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),YR=e=>{let{prefix:t,experimentalParseClassName:r}=e,n=o=>{let i=[],a=0,s=0,l=0,c,u=o.length;for(let y=0;y<u;y++){let x=o[y];if(a===0&&s===0){if(x===":"){i.push(o.slice(l,y)),l=y+1;continue}if(x==="/"){c=y;continue}}x==="["?a++:x==="]"?a--:x==="("?s++:x===")"&&s--}let f=i.length===0?o:o.slice(l),p=f,m=!1;f.endsWith("!")?(p=f.slice(0,-1),m=!0):f.startsWith("!")&&(p=f.slice(1),m=!0);let b=c&&c>l?c-l:void 0;return wT(i,m,p,b)};if(t){let o=t+":",i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):wT(KR,!1,a,void 0,!0)}if(r){let o=n;n=i=>r({className:i,parseClassName:o})}return n},ZR=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{let n=[],o=[];for(let i=0;i<r.length;i++){let a=r[i],s=a[0]==="[",l=t.has(a);s||l?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(a)):o.push(a)}return o.length>0&&(o.sort(),n.push(...o)),n}},XR=e=>({cache:qR(e.cacheSize),parseClassName:YR(e),sortModifiers:ZR(e),postfixLookupClassGroupIds:JR(e),...FR(e)}),JR=e=>{let t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let n=0;n<r.length;n++)t[r[n]]=!0;return t},QR=/\s+/,eO=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:a}=t,s=[],l=e.trim().split(QR),c="";for(let u=l.length-1;u>=0;u-=1){let f=l[u],{isExternal:p,modifiers:m,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:x}=r(f);if(p){c=f+(c.length>0?" "+c:c);continue}let v=!!x,C;if(v){let R=y.substring(0,x);C=n(R);let I=C&&a[C]?n(y):void 0;I&&I!==C&&(C=I,v=!1)}else C=n(y);if(!C){if(!v){c=f+(c.length>0?" "+c:c);continue}if(C=n(y),!C){c=f+(c.length>0?" "+c:c);continue}v=!1}let A=m.length===0?"":m.length===1?m[0]:i(m).join(":"),w=b?A+"!":A,E=w+C;if(s.indexOf(E)>-1)continue;s.push(E);let T=o(C,v);for(let R=0;R<T.length;++R){let I=T[R];s.push(w+I)}c=f+(c.length>0?" "+c:c)}return c},tO=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=IT(r))&&(o&&(o+=" "),o+=n);return o},IT=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=IT(e[n]))&&(r&&(r+=" "),r+=t);return r},xT=(e,...t)=>{let r,n,o,i,a=l=>{let c=t.reduce((u,f)=>f(u),e());return r=XR(c),n=r.cache.get,o=r.cache.set,i=s,s(l)},s=l=>{let c=n(l);if(c)return c;let u=eO(l,r);return o(l,u),u};return i=a,(...l)=>i(tO(...l))},rO=[],ht=e=>{let t=r=>r[e]||rO;return t.isThemeGetter=!0,t},_T=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,AT=/^\((?:(\w[\w-]*):)?(.+)\)$/i,nO=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,oO=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,iO=/\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$/,aO=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sO=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lO=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,no=e=>nO.test(e),Se=e=>!!e&&!Number.isNaN(Number(e)),tn=e=>!!e&&Number.isInteger(Number(e)),Ip=e=>e.endsWith("%")&&Se(e.slice(0,-1)),_n=e=>oO.test(e),RT=()=>!0,cO=e=>iO.test(e)&&!aO.test(e),Rp=()=>!1,uO=e=>sO.test(e),dO=e=>lO.test(e),fO=e=>!se(e)&&!ce(e),pO=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),mO=e=>oo(e,LT,Rp),se=e=>_T.test(e),Go=e=>oo(e,DT,cO),vT=e=>oo(e,TO,Se),gO=e=>oo(e,$T,RT),hO=e=>oo(e,MT,Rp),TT=e=>oo(e,OT,Rp),bO=e=>oo(e,NT,dO),Pc=e=>oo(e,FT,uO),ce=e=>AT.test(e),us=e=>Ho(e,DT),yO=e=>Ho(e,MT),ST=e=>Ho(e,OT),wO=e=>Ho(e,LT),xO=e=>Ho(e,NT),Ic=e=>Ho(e,FT,!0),vO=e=>Ho(e,$T,!0),oo=(e,t,r)=>{let n=_T.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ho=(e,t,r=!1)=>{let n=AT.exec(e);return n?n[1]?t(n[1]):r:!1},OT=e=>e==="position"||e==="percentage",NT=e=>e==="image"||e==="url",LT=e=>e==="length"||e==="size"||e==="bg-size",DT=e=>e==="length",TO=e=>e==="number",MT=e=>e==="family-name",$T=e=>e==="number"||e==="weight",FT=e=>e==="shadow";var CT=()=>{let e=ht("color"),t=ht("font"),r=ht("text"),n=ht("font-weight"),o=ht("tracking"),i=ht("leading"),a=ht("breakpoint"),s=ht("container"),l=ht("spacing"),c=ht("radius"),u=ht("shadow"),f=ht("inset-shadow"),p=ht("text-shadow"),m=ht("drop-shadow"),b=ht("blur"),y=ht("perspective"),x=ht("aspect"),v=ht("ease"),C=ht("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...w(),ce,se],T=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],I=()=>[ce,se,l],N=()=>[no,"full","auto",...I()],L=()=>[tn,"none","subgrid",ce,se],G=()=>["auto",{span:["full",tn,ce,se]},tn,ce,se],O=()=>[tn,"auto",ce,se],D=()=>["auto","min","max","fr",ce,se],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...I()],K=()=>[no,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],J=()=>[no,"screen","full","dvw","lvw","svw","min","max","fit",...I()],be=()=>[no,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],Y=()=>[e,ce,se],fe=()=>[...w(),ST,TT,{position:[ce,se]}],Ft=()=>["no-repeat",{repeat:["","x","y","space","round"]}],nr=()=>["auto","cover","contain",wO,mO,{size:[ce,se]}],wr=()=>[Ip,us,Go],ft=()=>["","none","full",c,ce,se],st=()=>["",Se,us,Go],un=()=>["solid","dashed","dotted","double"],Dn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],et=()=>[Se,Ip,ST,TT],xr=()=>["","none",b,ce,se],Me=()=>["none",Se,ce,se],Dr=()=>["none",Se,ce,se],je=()=>[Se,ce,se],dn=()=>[no,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_n],breakpoint:[_n],color:[RT],container:[_n],"drop-shadow":[_n],ease:["in","out","in-out"],font:[fO],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_n],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_n],shadow:[_n],spacing:["px",Se],text:[_n],"text-shadow":[_n],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",no,se,ce,x]}],container:["container"],"container-type":[{"@container":["","normal","size",ce,se]}],"container-named":[pO],columns:[{columns:[Se,se,ce,s]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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:E()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:N()}],"inset-x":[{"inset-x":N()}],"inset-y":[{"inset-y":N()}],start:[{"inset-s":N(),start:N()}],end:[{"inset-e":N(),end:N()}],"inset-bs":[{"inset-bs":N()}],"inset-be":[{"inset-be":N()}],top:[{top:N()}],right:[{right:N()}],bottom:[{bottom:N()}],left:[{left:N()}],visibility:["visible","invisible","collapse"],z:[{z:[tn,"auto",ce,se]}],basis:[{basis:[no,"full","auto",s,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Se,no,"auto","initial","none",se]}],grow:[{grow:["",Se,ce,se]}],shrink:[{shrink:["",Se,ce,se]}],order:[{order:[tn,"first","last","none",ce,se]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:G()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:G()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pbs:[{pbs:I()}],pbe:[{pbe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...J()]}],"min-inline-size":[{"min-inline":["auto",...J()]}],"max-inline-size":[{"max-inline":["none",...J()]}],"block-size":[{block:["auto",...be()]}],"min-block-size":[{"min-block":["auto",...be()]}],"max-block-size":[{"max-block":["none",...be()]}],w:[{w:[s,"screen",...K()]}],"min-w":[{"min-w":[s,"screen","none",...K()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,us,Go]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,vO,gO]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ip,se]}],"font-family":[{font:[yO,hO,t]}],"font-features":[{"font-features":[se]}],"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:[o,ce,se]}],"line-clamp":[{"line-clamp":[Se,"none",ce,vT]}],leading:[{leading:[i,...I()]}],"list-image":[{"list-image":["none",ce,se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ce,se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...un(),"wavy"]}],"text-decoration-thickness":[{decoration:[Se,"from-font","auto",ce,Go]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Se,"auto",ce,se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"tab-size":[{tab:[tn,ce,se]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce,se]}],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",ce,se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:Ft()}],"bg-size":[{bg:nr()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tn,ce,se],radial:["",ce,se],conic:[tn,ce,se]},xO,bO]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:wr()}],"gradient-via-pos":[{via:wr()}],"gradient-to-pos":[{to:wr()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:ft()}],"rounded-s":[{"rounded-s":ft()}],"rounded-e":[{"rounded-e":ft()}],"rounded-t":[{"rounded-t":ft()}],"rounded-r":[{"rounded-r":ft()}],"rounded-b":[{"rounded-b":ft()}],"rounded-l":[{"rounded-l":ft()}],"rounded-ss":[{"rounded-ss":ft()}],"rounded-se":[{"rounded-se":ft()}],"rounded-ee":[{"rounded-ee":ft()}],"rounded-es":[{"rounded-es":ft()}],"rounded-tl":[{"rounded-tl":ft()}],"rounded-tr":[{"rounded-tr":ft()}],"rounded-br":[{"rounded-br":ft()}],"rounded-bl":[{"rounded-bl":ft()}],"border-w":[{border:st()}],"border-w-x":[{"border-x":st()}],"border-w-y":[{"border-y":st()}],"border-w-s":[{"border-s":st()}],"border-w-e":[{"border-e":st()}],"border-w-bs":[{"border-bs":st()}],"border-w-be":[{"border-be":st()}],"border-w-t":[{"border-t":st()}],"border-w-r":[{"border-r":st()}],"border-w-b":[{"border-b":st()}],"border-w-l":[{"border-l":st()}],"divide-x":[{"divide-x":st()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":st()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...un(),"hidden","none"]}],"divide-style":[{divide:[...un(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-bs":[{"border-bs":Y()}],"border-color-be":[{"border-be":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...un(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Se,ce,se]}],"outline-w":[{outline:["",Se,us,Go]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",u,Ic,Pc]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",f,Ic,Pc]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:st()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Se,Go]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":st()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",p,Ic,Pc]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Se,ce,se]}],"mix-blend":[{"mix-blend":[...Dn(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Dn()}],"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":[Se]}],"mask-image-linear-from-pos":[{"mask-linear-from":et()}],"mask-image-linear-to-pos":[{"mask-linear-to":et()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":et()}],"mask-image-t-to-pos":[{"mask-t-to":et()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":et()}],"mask-image-r-to-pos":[{"mask-r-to":et()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":et()}],"mask-image-b-to-pos":[{"mask-b-to":et()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":et()}],"mask-image-l-to-pos":[{"mask-l-to":et()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":et()}],"mask-image-x-to-pos":[{"mask-x-to":et()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":et()}],"mask-image-y-to-pos":[{"mask-y-to":et()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[ce,se]}],"mask-image-radial-from-pos":[{"mask-radial-from":et()}],"mask-image-radial-to-pos":[{"mask-radial-to":et()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"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":w()}],"mask-image-conic-pos":[{"mask-conic":[Se]}],"mask-image-conic-from-pos":[{"mask-conic-from":et()}],"mask-image-conic-to-pos":[{"mask-conic-to":et()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:Ft()}],"mask-size":[{mask:nr()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ce,se]}],filter:[{filter:["","none",ce,se]}],blur:[{blur:xr()}],brightness:[{brightness:[Se,ce,se]}],contrast:[{contrast:[Se,ce,se]}],"drop-shadow":[{"drop-shadow":["","none",m,Ic,Pc]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Se,ce,se]}],"hue-rotate":[{"hue-rotate":[Se,ce,se]}],invert:[{invert:["",Se,ce,se]}],saturate:[{saturate:[Se,ce,se]}],sepia:[{sepia:["",Se,ce,se]}],"backdrop-filter":[{"backdrop-filter":["","none",ce,se]}],"backdrop-blur":[{"backdrop-blur":xr()}],"backdrop-brightness":[{"backdrop-brightness":[Se,ce,se]}],"backdrop-contrast":[{"backdrop-contrast":[Se,ce,se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Se,ce,se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Se,ce,se]}],"backdrop-invert":[{"backdrop-invert":["",Se,ce,se]}],"backdrop-opacity":[{"backdrop-opacity":[Se,ce,se]}],"backdrop-saturate":[{"backdrop-saturate":[Se,ce,se]}],"backdrop-sepia":[{"backdrop-sepia":["",Se,ce,se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ce,se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Se,"initial",ce,se]}],ease:[{ease:["linear","initial",v,ce,se]}],delay:[{delay:[Se,ce,se]}],animate:[{animate:["none",C,ce,se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,ce,se]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:Me()}],"rotate-x":[{"rotate-x":Me()}],"rotate-y":[{"rotate-y":Me()}],"rotate-z":[{"rotate-z":Me()}],scale:[{scale:Dr()}],"scale-x":[{"scale-x":Dr()}],"scale-y":[{"scale-y":Dr()}],"scale-z":[{"scale-z":Dr()}],"scale-3d":["scale-3d"],skew:[{skew:je()}],"skew-x":[{"skew-x":je()}],"skew-y":[{"skew-y":je()}],transform:[{transform:[ce,se,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:dn()}],"translate-x":[{"translate-x":dn()}],"translate-y":[{"translate-y":dn()}],"translate-z":[{"translate-z":dn()}],"translate-none":["translate-none"],zoom:[{zoom:[tn,ce,se]}],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"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",ce,se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":Y()}],"scrollbar-track-color":[{"scrollbar-track":Y()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mbs":[{"scroll-mbs":I()}],"scroll-mbe":[{"scroll-mbe":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pbs":[{"scroll-pbs":I()}],"scroll-pbe":[{"scroll-pbe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",ce,se]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Se,us,Go,vT]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},SO=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(zi(e,"cacheSize",t),zi(e,"prefix",r),zi(e,"experimentalParseClassName",n),_c(e.theme,i.theme),_c(e.classGroups,i.classGroups),_c(e.conflictingClassGroups,i.conflictingClassGroups),_c(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),zi(e,"postfixLookupClassGroups",i.postfixLookupClassGroups),zi(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Ac(e.theme,o.theme),Ac(e.classGroups,o.classGroups),Ac(e.conflictingClassGroups,o.conflictingClassGroups),Ac(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),_p(e,o,"postfixLookupClassGroups"),_p(e,o,"orderSensitiveModifiers"),e),zi=(e,t,r)=>{r!==void 0&&(e[t]=r)},_c=(e,t)=>{if(t)for(let r in t)zi(e,r,t[r])},Ac=(e,t)=>{if(t)for(let r in t)_p(e,t,r)},_p=(e,t,r)=>{let n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},BT=(e,...t)=>typeof e=="function"?xT(CT,e,...t):xT(()=>SO(CT(),e),...t);var CO=BT({extend:{classGroups:{"border-w":["border-host-bubble","border-button","border-input"],"border-color":["border-host-bubble-border","border-button-border","border-input-border"]}}});function io(...e){return CO(te(e))}d();var Op=Bn(()=>{}),Rc=()=>gn(Op);d();d();d();var ye=e=>typeof e=="string",ds=()=>{let e,t,r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r},UT=e=>e==null?"":String(e),kO=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},EO=/###/g,VT=e=>e&&e.includes("###")?e.replace(EO,"."):e,zT=e=>!e||ye(e),fs=(e,t,r)=>{let n=ye(t)?t.split("."):t,o=0;for(;o<n.length-1;){if(zT(e))return{};let i=VT(n[o]);!e[i]&&r&&(e[i]=new r),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++o}return zT(e)?{}:{obj:e,k:VT(n[o])}},jT=(e,t,r)=>{let{obj:n,k:o}=fs(e,t,Object);if(n!==void 0||t.length===1){n[o]=r;return}let i=t[t.length-1],a=t.slice(0,t.length-1),s=fs(e,a,Object);for(;s.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=fs(e,a,Object),s?.obj&&typeof s.obj[`${s.k}.${i}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=r},PO=(e,t,r,n)=>{let{obj:o,k:i}=fs(e,t,Object);o[i]=o[i]||[],o[i].push(r)},Nc=(e,t)=>{let{obj:r,k:n}=fs(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},IO=(e,t,r)=>{let n=Nc(e,r);return n!==void 0?n:Nc(t,r)},YT=(e,t,r)=>{for(let n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?ye(e[n])||e[n]instanceof String||ye(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):YT(e[n],t[n],r):e[n]=t[n]);return e},An=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),_O={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},AO=e=>ye(e)?e.replace(/[&<>"'\/]/g,t=>_O[t]):e,Mp=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let r=this.regExpMap.get(t);if(r!==void 0)return r;let n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}},RO=[" ",",","?","!",";"],OO=new Mp(20),NO=(e,t,r)=>{t=t||"",r=r||"";let n=RO.filter(a=>!t.includes(a)&&!r.includes(a));if(n.length===0)return!0;let o=OO.getRegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`),i=!o.test(e);if(!i){let a=e.indexOf(r);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i},$p=(e,t,r=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let n=t.split(r),o=e;for(let i=0;i<n.length;){if(!o||typeof o!="object")return;let a,s="";for(let l=i;l<n.length;++l)if(l!==i&&(s+=r),s+=n[l],a=o[s],a!==void 0){if(["string","number","boolean"].includes(typeof a)&&l<n.length-1)continue;i+=l-i+1;break}o=a}return o},ps=e=>e?.replace(/_/g,"-"),LO={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},Fp=class e{constructor(t,r={}){this.init(t,r)}init(t,r={}){this.prefix=r.prefix||"i18next:",this.logger=t||LO,this.options=r,this.debug=r.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,o){return o&&!this.debug?null:(t=t.map(i=>ye(i)?i.replace(/[\r\n\x00-\x1F\x7F]/g," "):i),ye(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},rn=new Fp,Gi=class{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);let o=this.observers[n].get(r)||0;this.observers[n].set(r,o+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}once(t,r){let n=(...o)=>{r(...o),this.off(t,n)};return this.on(t,n),this}emit(t,...r){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,i])=>{for(let a=0;a<i;a++)o(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,i])=>{for(let a=0;a<i;a++)o(t,...r)})}},Lc=class extends Gi{constructor(t,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){let r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n,o={}){let i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,a=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,s;t.includes(".")?s=t.split("."):(s=[t,r],n&&(Array.isArray(n)?s.push(...n):ye(n)&&i?s.push(...n.split(i)):s.push(n)));let l=Nc(this.data,s);return!l&&!r&&!n&&t.includes(".")&&(t=s[0],r=s[1],n=s.slice(2).join(".")),l||!a||!ye(n)?l:$p(this.data?.[t]?.[r],n,i)}addResource(t,r,n,o,i={silent:!1}){let a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=[t,r];n&&(s=s.concat(a?n.split(a):n)),t.includes(".")&&(s=t.split("."),o=r,r=s[1]),this.addNamespaces(r),jT(this.data,s,o),i.silent||this.emit("added",t,r,n,o)}addResources(t,r,n,o={silent:!1}){for(let i in n)(ye(n[i])||Array.isArray(n[i]))&&this.addResource(t,r,i,n[i],{silent:!0});o.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,o,i,a={silent:!1,skipCopy:!1}){let s=[t,r];t.includes(".")&&(s=t.split("."),o=n,n=r,r=s[1]),this.addNamespaces(r);let l=Nc(this.data,s)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?YT(l,n,i):l={...l,...n},jT(this.data,s,l),a.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>r[o]&&Object.keys(r[o]).length>0)}toJSON(){return this.data}},ZT={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach(i=>{t=this.processors[i]?.process(t,r,n,o)??t}),t}},XT=Symbol("i18next/PATH_KEY");function DO(){let e=[],t=Object.create(null),r;return t.get=(n,o)=>(r?.revoke?.(),o===XT?e:(e.push(o),r=Proxy.revocable(n,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}function ji(e,t){let{[XT]:r}=e(DO()),n=t?.keySeparator??".",o=t?.nsSeparator??":",i=t?.enableSelector==="strict";if(r.length>1&&o){let a=t?.ns,s=i?Array.isArray(a)?a:a?[a]:null:Array.isArray(a)?a:null;if(s&&(i?s:s.length>1?s.slice(1):[]).includes(r[0]))return`${r[0]}${o}${r.slice(1).join(n)}`}return r.join(n)}var Np=e=>!ye(e)&&typeof e!="boolean"&&typeof e!="number",Dc=class e extends Gi{constructor(t,r={}){super(),kO(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=rn.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,r={interpolation:{}}){let n={...r};if(t==null)return!1;let o=this.resolve(t,n);if(o?.res===void 0)return!1;let i=Np(o.res);return!(n.returnObjects===!1&&i)}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");let o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,i=r.ns||this.options.defaultNS||[],a=n&&t.includes(n),s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!NO(t,n,o);if(a&&!s){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:ye(i)?[i]:i};let c=t.split(n);(n!==o||n===o&&this.options.ns.includes(c[0]))&&(i=c.shift()),t=c.join(o)}return{key:t,namespaces:ye(i)?[i]:i}}translate(t,r,n){let o=typeof r=="object"?{...r}:r;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=ji(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]),t=t.map(D=>typeof D=="function"?ji(D,{...this.options,...o}):String(D));let i=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],o),c=l[l.length-1],u=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");let f=o.lng||this.language,p=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode")return p?i?{res:`${c}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:`${c}${u}${s}`:i?{res:s,usedKey:s,exactUsedKey:s,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(o)}:s;let m=this.resolve(t,o),b=m?.res,y=m?.usedKey||s,x=m?.exactUsedKey||s,v=["[object Number]","[object Function]","[object RegExp]"],C=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,w=o.count!==void 0&&!ye(o.count),E=e.hasDefaultValue(o),T=w?this.pluralResolver.getSuffix(f,o.count,o):"",R=o.ordinal&&w?this.pluralResolver.getSuffix(f,o.count,{ordinal:!1}):"",I=w&&!o.ordinal&&o.count===0,N=I&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${T}`]||o[`defaultValue${R}`]||o.defaultValue,L=b;A&&!b&&E&&(L=N);let G=Np(L),O=Object.prototype.toString.apply(L);if(A&&L&&G&&!v.includes(O)&&!(ye(C)&&Array.isArray(L))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let D=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,L,{...o,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(m.res=D,m.usedParams=this.getUsedParamsDetails(o),m):D}if(a){let D=Array.isArray(L),$=D?[]:{},U=D?x:y;for(let V in L)if(Object.prototype.hasOwnProperty.call(L,V)){let K=`${U}${a}${V}`;E&&!b?$[V]=this.translate(K,{...o,defaultValue:Np(N)?N[V]:void 0,joinArrays:!1,ns:l}):$[V]=this.translate(K,{...o,joinArrays:!1,ns:l}),$[V]===K&&($[V]=L[V])}b=$}}else if(A&&ye(C)&&Array.isArray(b))b=b.join(C),b&&(b=this.extendTranslation(b,t,o,n));else{let D=!1,$=!1;!this.isValidLookup(b)&&E&&(D=!0,b=N),this.isValidLookup(b)||($=!0,b=s);let V=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:b,K=E&&N!==b&&this.options.updateMissing;if($||D||K){if(this.logger.log(K?"updateKey":"missingKey",f,c,w&&!K?`${s}${this.pluralResolver.getSuffix(f,o.count,o)}`:s,K?N:b),a){let fe=this.resolve(s,{...o,keySeparator:!1});fe&&fe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let J=[],be=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&be&&be[0])for(let fe=0;fe<be.length;fe++)J.push(be[fe]);else this.options.saveMissingTo==="all"?J=this.languageUtils.toResolveHierarchy(o.lng||this.language):J.push(o.lng||this.language);let Y=(fe,Ft,nr)=>{let wr=E&&nr!==b?nr:V;this.options.missingKeyHandler?this.options.missingKeyHandler(fe,c,Ft,wr,K,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(fe,c,Ft,wr,K,o),this.emit("missingKey",fe,c,Ft,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?J.forEach(fe=>{let Ft=this.pluralResolver.getSuffixes(fe,o);I&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!Ft.includes(`${this.options.pluralSeparator}zero`)&&Ft.push(`${this.options.pluralSeparator}zero`),Ft.forEach(nr=>{Y([fe],s+nr,o[`defaultValue${nr}`]||N)})}):Y(J,s,N))}b=this.extendTranslation(b,t,o,m,n),$&&b===s&&this.options.appendNamespaceToMissingKey&&(b=`${c}${u}${s}`),($||D)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${u}${s}`:s,D?b:void 0,o))}return i?(m.res=b,m.usedParams=this.getUsedParamsDetails(o),m):b}extendTranslation(t,r,n,o,i){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let l=ye(t)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),c;if(l){let f=t.match(this.interpolator.nestingRegexp);c=f&&f.length}let u=n.replace&&!ye(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),t=this.interpolator.interpolate(t,u,n.lng||this.language||o.usedLng,n),l){let f=t.match(this.interpolator.nestingRegexp),p=f&&f.length;c<p&&(n.nest=!1)}!n.lng&&o&&o.res&&(n.lng=this.language||o.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,(...f)=>i?.[0]===f[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${r[0]}`),null):this.translate(...f,r),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,s=ye(a)?[a]:a;return t!=null&&s?.length&&n.applyPostProcessor!==!1&&(t=ZT.handle(s,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t,r={}){let n,o,i,a,s;return ye(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(l=>typeof l=="function"?ji(l,{...this.options,...r}):l)),t.forEach(l=>{if(this.isValidLookup(n))return;let c=this.extractFromKey(l,r),u=c.key;o=u;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));let p=r.count!==void 0&&!ye(r.count),m=p&&!r.ordinal&&r.count===0,b=r.context!==void 0&&(ye(r.context)||typeof r.context=="number")&&r.context!=="",y=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);f.forEach(x=>{this.isValidLookup(n)||(s=x,!this.checkedLoadedFor[`${y[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&(this.checkedLoadedFor[`${y[0]}-${x}`]=!0,this.logger.warn(`key "${o}" for languages "${y.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(v=>{if(this.isValidLookup(n))return;a=v;let C=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(C,u,v,x,r);else{let w;p&&(w=this.pluralResolver.getSuffix(v,r.count,r));let E=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(r.ordinal&&w.startsWith(T)&&C.push(u+w.replace(T,this.options.pluralSeparator)),C.push(u+w),m&&C.push(u+E)),b){let R=`${u}${this.options.contextSeparator||"_"}${r.context}`;C.push(R),p&&(r.ordinal&&w.startsWith(T)&&C.push(R+w.replace(T,this.options.pluralSeparator)),C.push(R+w),m&&C.push(R+E))}}let A;for(;A=C.pop();)this.isValidLookup(n)||(i=A,n=this.getResource(v,x,A,r))}))})}),{res:n,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,r,n,o):this.resourceStore.getResource(t,r,n,o)}getUsedParamsDetails(t={}){let r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!ye(t.replace),o=n?t.replace:t;if(n&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(let i of r)delete o[i]}return o}static hasDefaultValue(t){let r="defaultValue";for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&n.startsWith(r)&&t[n]!==void 0)return!0;return!1}},Mc=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=rn.create("languageUtils")}getScriptPartFromCode(t){if(t=ps(t),!t||!t.includes("-"))return null;let r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=ps(t),!t||!t.includes("-"))return t;let r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(ye(t)&&t.includes("-")){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;let o=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;let o=this.getScriptPartFromCode(n);if(this.isSupportedCode(o))return r=o;let i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.find(a=>a===i?!0:!a.includes("-")&&!i.includes("-")?!1:!!(a.includes("-")&&!i.includes("-")&&a.slice(0,a.indexOf("-"))===i||a.startsWith(i)&&i.length>1))}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),ye(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){let n=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],t),o=[],i=a=>{a&&(this.isSupportedCode(a)?o.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return ye(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):ye(t)&&i(this.formatLanguageCode(t)),n.forEach(a=>{o.includes(a)||i(this.formatLanguageCode(a))}),o}},GT={zero:0,one:1,two:2,few:3,many:4,other:5},HT={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},Bp=class{constructor(t,r={}){this.languageUtils=t,this.options=r,this.logger=rn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,r={}){let n=ps(t==="dev"?"en":t),o=r.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:o});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),HT;if(!t.match(/-|_/))return HT;let l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,r)}return this.pluralRulesCache[i]=a,a}needsPlural(t,r={}){let n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,r,n={}){return this.getSuffixes(t,n).map(o=>`${r}${o}`)}getSuffixes(t,r={}){let n=this.getRule(t,r);return n||(n=this.getRule("dev",r)),n?n.resolvedOptions().pluralCategories.sort((o,i)=>GT[o]-GT[i]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,r,n={}){let o=this.getRule(t,n);return o?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,n))}},WT=(e,t,r,n=".",o=!0)=>{let i=IO(e,t,r);return!i&&o&&ye(r)&&(i=$p(e,r,n),i===void 0&&(i=$p(t,r,n))),i},Lp=e=>e.replace(/\$/g,"$$$$"),$c=class{constructor(t={}){this.logger=rn.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:r,escapeValue:n,useRawValueToEscape:o,prefix:i,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:f,nestingPrefix:p,nestingPrefixEscaped:m,nestingSuffix:b,nestingSuffixEscaped:y,nestingOptionsSeparator:x,maxReplaces:v,alwaysFormat:C}=t.interpolation;this.escape=r!==void 0?r:AO,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=i?An(i):a||"{{",this.suffix=s?An(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":f?An(f):"-",this.unescapeSuffix=this.unescapePrefix?"":u?An(u):"",this.nestingPrefix=p?An(p):m||An("$t("),this.nestingSuffix=b?An(b):y||An(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=v||1e3,this.alwaysFormat=C!==void 0?C:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(r,n)=>r?.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,r,n,o){let i,a,s,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=m=>{if(!m.includes(this.formatSeparator)){let v=WT(r,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,n,{...o,...r,interpolationkey:m}):v}let b=m.split(this.formatSeparator),y=b.shift().trim(),x=b.join(this.formatSeparator).trim();return this.format(WT(r,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),x,n,{...o,...r,interpolationkey:y})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let u=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Lp(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Lp(this.escape(m)):Lp(m)}].forEach(m=>{for(s=0;i=m.regex.exec(t);){let b=i[1].trim();if(a=c(b),a===void 0)if(typeof u=="function"){let x=u(t,i,o);a=ye(x)?x:""}else if(o&&Object.prototype.hasOwnProperty.call(o,b))a="";else if(f){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),a="";else!ye(a)&&!this.useRawValueToEscape&&(a=UT(a));let y=m.safeValue(a);if(t=t.replace(i[0],y),f?(m.regex.lastIndex+=a.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,r,n={}){let o,i,a,s=(l,c)=>{let u=this.nestingOptionsSeparator;if(!l.includes(u))return l;let f=l.split(new RegExp(`${An(u)}[ ]*{`)),p=`{${f[1]}`;l=f[0],p=this.interpolate(p,a);let m=p.match(/'/g),b=p.match(/"/g);((m?.length??0)%2===0&&!b||(b?.length??0)%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),c&&(a={...c,...a})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${u}${p}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,l};for(;o=this.nestingRegexp.exec(t);){let l=[];a={...n},a=a.replace&&!ye(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(c!==-1&&(l=o[1].slice(c).split(this.formatSeparator).map(u=>u.trim()).filter(Boolean),o[1]=o[1].slice(0,c)),i=r(s.call(this,o[1].trim(),a),a),i&&o[0]===t&&!ye(i))return i;ye(i)||(i=UT(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),l.length&&(i=l.reduce((u,f)=>this.format(u,f,n.lng,{...n,interpolationkey:o[1].trim()}),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}},MO=e=>{let t=e.toLowerCase().trim(),r={};if(e.includes("(")){let n=e.split("(");t=n[0].toLowerCase().trim();let o=n[1].slice(0,-1);t==="currency"&&!o.includes(":")?r.currency||(r.currency=o.trim()):t==="relativetime"&&!o.includes(":")?r.range||(r.range=o.trim()):o.split(";").forEach(a=>{if(a){let[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=s.trim();r[u]||(r[u]=c),c==="false"&&(r[u]=!1),c==="true"&&(r[u]=!0),isNaN(c)||(r[u]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},qT=e=>{let t={};return(r,n,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});let a=n+JSON.stringify(i),s=t[a];return s||(s=e(ps(n),o),t[a]=s),s(r)}},$O=e=>(t,r,n)=>e(ps(r),n)(t),Up=class{constructor(t={}){this.logger=rn.create("formatter"),this.options=t,this.init(t)}init(t,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";let n=r.cacheInBuiltFormats?qT:$O;this.formats={number:n((o,i)=>{let a=new Intl.NumberFormat(o,{...i});return s=>a.format(s)}),currency:n((o,i)=>{let a=new Intl.NumberFormat(o,{...i,style:"currency"});return s=>a.format(s)}),datetime:n((o,i)=>{let a=new Intl.DateTimeFormat(o,{...i});return s=>a.format(s)}),relativetime:n((o,i)=>{let a=new Intl.RelativeTimeFormat(o,{...i});return s=>a.format(s,i.range||"day")}),list:n((o,i)=>{let a=new Intl.ListFormat(o,{...i});return s=>a.format(s)})}}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=qT(r)}format(t,r,n,o={}){if(!r||t==null)return t;let i=r.split(this.formatSeparator),a=[];for(let l=0;l<i.length;l++){let c=i[l];for(;c.indexOf("(")>-1&&!c.includes(")")&&l+1<i.length;)c=`${c}${this.formatSeparator}${i[++l]}`;a.push(c)}return a.reduce((l,c)=>{let{formatName:u,formatOptions:f}=MO(c);if(this.formats[u]){let p=l;try{let m=o?.formatParams?.[o.interpolationkey]||{},b=m.locale||m.lng||o.locale||o.lng||n;p=this.formats[u](l,b,{...f,...o,...m})}catch(m){this.logger.warn(m)}return p}else this.logger.warn(`there was no format function for ${u}`);return l},t)}},FO=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Vp=class extends Gi{constructor(t,r,n,o={}){super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=rn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,o.backend,o)}queueLoad(t,r,n,o){let i={},a={},s={},l={};return t.forEach(c=>{let u=!0;r.forEach(f=>{let p=`${c}|${f}`;!n.reload&&this.store.hasResourceBundle(c,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,u=!1,a[p]===void 0&&(a[p]=!0),i[p]===void 0&&(i[p]=!0),l[f]===void 0&&(l[f]=!0)))}),u||(s[c]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){let o=t.split("|"),i=o[0],a=o[1];r&&this.emit("failedLoading",i,a,r),!r&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);let s={};this.queue.forEach(l=>{PO(l.loaded,[i],a),FO(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});let u=l.loaded[c];u.length&&u.forEach(f=>{s[c][f]===void 0&&(s[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n,o=0,i=this.retryTimeout,a){if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:o,wait:i,callback:a});return}this.readingCalls++;let s=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){let f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&u&&o<this.maxRetries){setTimeout(()=>{this.read(t,r,n,o+1,i*2,a)},i);return}a(c,u)},l=this.backend[n].bind(this.backend);if(l.length===2){try{let c=l(t,r);c&&typeof c.then=="function"?c.then(u=>s(null,u)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,r,s)}prepareLoading(t,r,n={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();ye(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ye(r)&&(r=[r]);let i=this.queueLoad(t,r,n,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t,r=""){let n=t.split("|"),o=n[0],i=n[1];this.read(o,i,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${r}loading namespace ${i} for language ${o} failed`,a),!a&&s&&this.logger.log(`${r}loaded namespace ${i} for language ${o}`,s),this.loaded(t,a,s)})}saveMissing(t,r,n,o,i,a={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend?.create){let l={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(t,r,n,o,l):u=c(t,r,n,o),u&&typeof u.then=="function"?u.then(f=>s(null,f)).catch(s):s(null,u)}catch(u){s(u)}else c(t,r,n,o,s,l)}!t||!t[0]||this.store.addResource(t[0],r,n,o)}}},Dp=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ye(e[1])&&(t.defaultValue=e[1]),ye(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),KT=e=>(ye(e.ns)&&(e.ns=[e.ns]),ye(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ye(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Oc=()=>{},BO=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})},zp=class e extends Gi{constructor(t={},r){if(super(),this.options=KT(t),this.services={},this.logger=rn,this.modules={external:[]},BO(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(t={},r){this.isInitializing=!0,typeof t=="function"&&(r=t,t={}),t.defaultNS==null&&t.ns&&(ye(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));let n=Dp();this.options={...n,...this.options,...KT(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let o=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?rn.init(o(this.modules.logger),this.options):rn.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=Up;let u=new Mc(this.options);this.store=new Lc(this.options.resources,this.options);let f=this.services;f.logger=rn,f.resourceStore=this.store,f.languageUtils=u,f.pluralResolver=new Bp(u,{prepend:this.options.pluralSeparator}),c&&(f.formatter=o(c),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new $c(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new Vp(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(p,...m)=>{this.emit(p,...m)}),this.modules.languageDetector&&(f.languageDetector=o(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=o(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Dc(this.services,this.options),this.translator.on("*",(p,...m)=>{this.emit(p,...m)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Oc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...u)=>this.store[c](...u)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...u)=>(this.store[c](...u),this)});let s=ds(),l=()=>{let c=(u,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(f),r(u,f)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),s}loadResources(t,r=Oc){let n=r,o=ye(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();let i=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&(i.includes(c)||i.push(c))})};o?a(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload?.forEach?.(s=>a(s)),this.services.backendConnector.load(i,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(s)})}else n(null)}reloadResources(t,r,n){let o=ds();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=Oc),this.services.backendConnector.reload(t,r,i=>{o.resolve(),n(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ZT.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!["cimode","dev"].includes(t)){for(let r=0;r<this.languages.length;r++){let n=this.languages[r];if(!["cimode","dev"].includes(n)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,r){this.isLanguageChangingTo=t;let n=ds();this.emit("languageChanging",t);let o=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},i=(s,l)=>{l?this.isLanguageChangingTo===t&&(o(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,n.resolve((...c)=>this.t(...c)),r&&r(s,(...c)=>this.t(...c))},a=s=>{!t&&!s&&this.services.languageDetector&&(s=[]);let l=ye(s)?s:s&&s[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(ye(s)?[s]:s);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector?.cacheUserLanguage?.(c)),this.loadResources(c,u=>{i(u,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),n}getFixedT(t,r,n,o){let i=o?.scopeNs,a=(s,l,...c)=>{let u;typeof l!="object"?u=this.options.overloadTranslationOptionHandler([s,l].concat(c)):u={...l},u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs;let f=u.ns!==void 0&&u.ns!==null;u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||n||a.keyPrefix);let p={...this.options,...u};Array.isArray(i)&&!f&&(p.ns=i),typeof u.keyPrefix=="function"&&(u.keyPrefix=ji(u.keyPrefix,p));let m=this.options.keySeparator||".",b;return u.keyPrefix&&Array.isArray(s)?b=s.map(y=>(typeof y=="function"&&(y=ji(y,p)),`${u.keyPrefix}${m}${y}`)):(typeof s=="function"&&(s=ji(s,p)),b=u.keyPrefix?`${u.keyPrefix}${m}${s}`:s),this.t(b,u)};return ye(t)?a.lng=t:a.lngs=t,a.ns=r,a.keyPrefix=n,a}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,r={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;let a=(s,l)=>{let c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(r.precheck){let s=r.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,t)&&(!o||a(i,t)))}loadNamespaces(t,r){let n=ds();return this.options.ns?(ye(t)&&(t=[t]),t.forEach(o=>{this.options.ns.includes(o)||this.options.ns.push(o)}),this.loadResources(o=>{n.resolve(),r&&r(o)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){let n=ds();ye(t)&&(t=[t]);let o=this.options.preload||[],i=t.filter(a=>!o.includes(a)&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=o.concat(i),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let o=new Intl.Locale(t);if(o&&o.getTextInfo){let i=o.getTextInfo();if(i&&i.direction)return i.direction}}catch{}let r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services?.languageUtils||new Mc(Dp());return t.toLowerCase().indexOf("-latn")>1?"ltr":r.includes(n.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},r){let n=new e(t,r);return n.createInstance=e.createInstance,n}cloneInstance(t={},r=Oc){let n=t.forkResourceStore;n&&delete t.forkResourceStore;let o={...this.options,...t,isClone:!0},i=new e(o);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(s=>{i[s]=this[s]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n){let s=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((u,f)=>(u[f]={...l[c][f]},u),l[c]),l),{});i.store=new Lc(s,o),i.services.resourceStore=i.store}if(t.interpolation){let l={...Dp().interpolation,...this.options.interpolation,...t.interpolation},c={...o,interpolation:l};i.services.interpolator=new $c(c)}return i.translator=new Dc(i.services,o),i.translator.on("*",(s,...l)=>{i.emit(s,...l)}),i.init(o,r),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Xt=zp.createInstance(),JT=Xt.createInstance,$7=Xt.dir,F7=Xt.init,B7=Xt.loadResources,U7=Xt.reloadResources,V7=Xt.use,z7=Xt.changeLanguage,j7=Xt.getFixedT,G7=Xt.t,H7=Xt.exists,W7=Xt.setDefaultNamespace,q7=Xt.hasLoadedNamespace,K7=Xt.loadNamespaces,Y7=Xt.loadLanguages;d();var Fc=class e extends Error{type;status;description;constructor(t,r){let n=typeof r=="string"?r:void 0;if(super(n||t),this.type=t,this.description=n,typeof r=="number")this.status=r;else switch(t){case"UNAUTHORIZED":this.status=403;break;case"USAGE_LIMIT":case"PREMIUM_FEATURE":this.status=402;break;case"NOT_FOUND":this.status=404;break;case"INVALID_REQUEST":case"EMPTY_DATASOURCE":case"ALREADY_INVITED":case"INTEGRATION_VALIDATION_FAILED":this.status=400;break;case"INTEGRATION_CREDENTIALS_INVALID":this.status=403;break;case"RATE_LIMIT":this.status=429;break;case"NOT_IMPLEMENTED":this.status=501;break;case"INTERNAL_ERROR":this.status=500;break;case"CONFLICT":this.status=409;break;default:this.status=500;break}Object.setPrototypeOf(this,e.prototype)}};d();d();var Uc=[{code:"en",nativeName:"English",englishName:"English",flagCode:"US",dir:"ltr",isDefault:!0},{code:"pt-BR",nativeName:"Português (BR)",englishName:"Portuguese (Brazil)",flagCode:"BR",dir:"ltr"},{code:"es",nativeName:"Español",englishName:"Spanish",flagCode:"ES",dir:"ltr"},{code:"ar",nativeName:"العربية",englishName:"Arabic",flagCode:"AE",dir:"rtl"},{code:"az",nativeName:"Azərbaycan dili",englishName:"Azerbaijani",flagCode:"AZ",dir:"ltr"},{code:"bg",nativeName:"Български",englishName:"Bulgarian",flagCode:"BG",dir:"ltr"},{code:"bn",nativeName:"বাংলা",englishName:"Bengali",flagCode:"BD",dir:"ltr"},{code:"ca",nativeName:"Català",englishName:"Catalan",flagCode:"ES",dir:"ltr"},{code:"cs",nativeName:"Čeština",englishName:"Czech",flagCode:"CZ",dir:"ltr"},{code:"da",nativeName:"Dansk",englishName:"Danish",flagCode:"DK",dir:"ltr"},{code:"de",nativeName:"Deutsch",englishName:"German",flagCode:"DE",dir:"ltr"},{code:"el",nativeName:"Ελληνικά",englishName:"Greek",flagCode:"GR",dir:"ltr"},{code:"eo",nativeName:"Esperanto",englishName:"Esperanto",flagCode:"EU",dir:"ltr"},{code:"et",nativeName:"Eesti",englishName:"Estonian",flagCode:"EE",dir:"ltr"},{code:"fa",nativeName:"فارسی",englishName:"Persian",flagCode:"IR",dir:"rtl"},{code:"fi",nativeName:"Suomi",englishName:"Finnish",flagCode:"FI",dir:"ltr"},{code:"fr",nativeName:"Français",englishName:"French",flagCode:"FR",dir:"ltr"},{code:"ga",nativeName:"Gaeilge",englishName:"Irish",flagCode:"IE",dir:"ltr"},{code:"he",nativeName:"עברית",englishName:"Hebrew",flagCode:"IL",dir:"rtl"},{code:"hi",nativeName:"हिन्दी",englishName:"Hindi",flagCode:"IN",dir:"ltr"},{code:"hu",nativeName:"Magyar",englishName:"Hungarian",flagCode:"HU",dir:"ltr"},{code:"id",nativeName:"Bahasa Indonesia",englishName:"Indonesian",flagCode:"ID",dir:"ltr"},{code:"it",nativeName:"Italiano",englishName:"Italian",flagCode:"IT",dir:"ltr"},{code:"ja",nativeName:"日本語",englishName:"Japanese",flagCode:"JP",dir:"ltr"},{code:"ko",nativeName:"한국어",englishName:"Korean",flagCode:"KR",dir:"ltr"},{code:"lt",nativeName:"Lietuvių",englishName:"Lithuanian",flagCode:"LT",dir:"ltr"},{code:"lv",nativeName:"Latviešu",englishName:"Latvian",flagCode:"LV",dir:"ltr"},{code:"ms",nativeName:"Bahasa Melayu",englishName:"Malay",flagCode:"MY",dir:"ltr"},{code:"nb",nativeName:"Norsk Bokmål",englishName:"Norwegian Bokmål",flagCode:"NO",dir:"ltr"},{code:"nl",nativeName:"Nederlands",englishName:"Dutch",flagCode:"NL",dir:"ltr"},{code:"pl",nativeName:"Polski",englishName:"Polish",flagCode:"PL",dir:"ltr"},{code:"pt",nativeName:"Português",englishName:"Portuguese",flagCode:"PT",dir:"ltr"},{code:"ro",nativeName:"Română",englishName:"Romanian",flagCode:"RO",dir:"ltr"},{code:"ru",nativeName:"Русский",englishName:"Russian",flagCode:"RU",dir:"ltr"},{code:"sk",nativeName:"Slovenčina",englishName:"Slovak",flagCode:"SK",dir:"ltr"},{code:"sl",nativeName:"Slovenščina",englishName:"Slovenian",flagCode:"SI",dir:"ltr"},{code:"sv",nativeName:"Svenska",englishName:"Swedish",flagCode:"SE",dir:"ltr"},{code:"th",nativeName:"ไทย",englishName:"Thai",flagCode:"TH",dir:"ltr"},{code:"tl",nativeName:"Tagalog",englishName:"Tagalog",flagCode:"PH",dir:"ltr"},{code:"tr",nativeName:"Türkçe",englishName:"Turkish",flagCode:"TR",dir:"ltr"},{code:"uk",nativeName:"Українська",englishName:"Ukrainian",flagCode:"UA",dir:"ltr"},{code:"ur",nativeName:"اردو",englishName:"Urdu",flagCode:"PK",dir:"rtl"},{code:"zh",nativeName:"中文",englishName:"Chinese",flagCode:"CN",dir:"ltr"}],jp="en",Gp=Uc.map(e=>e.code),eq=new Set(Gp),tq=Uc.map(e=>({code:e.code,name:e.nativeName,englishName:e.englishName,flag:e.flagCode,dir:e.dir})),UO=new Map(Uc.map(e=>[e.code.toLowerCase(),e])),Bc=new Map;for(let e of Uc){let t=e.code.split("-")[0].toLowerCase();(!Bc.has(t)||"isDefault"in e&&e.isDefault)&&Bc.set(t,e.code)}function QT(e,t=jp){let r=e?.trim();if(!r)return t;let n=UO.get(r.toLowerCase());if(n)return n.code;let o=r.split("-")[0]?.toLowerCase();return o&&Bc.has(o)?Bc.get(o)??t:t}var Pt=jp,bt="translations",VO=!1,Wo="https://cdn.jsdelivr.net/npm/@zappway/embeds@2.0.3/dist/locales",zO=Gp,iq=new Set(zO),gs={main:{localeDirectory:"locales-ZappWay",splitDirectories:["i18n-split"],browserDirectories:[],cdnDirectory:"locales-ZappWay",cdnSplit:!0},lp:{localeDirectory:"locales-ZappWay-LP",splitDirectories:["i18n-split-lp","i18n-split-zappway-lp"],browserDirectories:[],cdnDirectory:"locales-ZappWay-LP",cdnSplit:!1},integrations:{localeDirectory:"locales-Integrations",splitDirectories:["i18n-split-integrations"],browserDirectories:[],cdnDirectory:"locales-Integrations",cdnSplit:!1},emails:{localeDirectory:"locales-Emails",splitDirectories:["i18n-split-emails"],browserDirectories:[],cdnDirectory:"locales-Emails",cdnSplit:!1},workers:{localeDirectory:"locales-Workers",splitDirectories:["i18n-split-workers"],browserDirectories:[],cdnDirectory:"locales-Workers",cdnSplit:!1},zappflux:{localeDirectory:"locales-ZappFlux",splitDirectories:["i18n-split-zappflux"],browserDirectories:[],cdnDirectory:"locales-ZappFlux",cdnSplit:!1},"zappflux-lp":{localeDirectory:"locales-ZappFlux-LP",splitDirectories:["i18n-split-zappflux-lp"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-LP",cdnSplit:!1},"zappflux-templates":{localeDirectory:"locales-ZappFlux-Templates",splitDirectories:["i18n-split-zappflux-templates"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-Templates",cdnSplit:!1,namespaceFiles:!0},"pitch-deck":{localeDirectory:"locales-PitchDeck",splitDirectories:["i18n-split-pitch-deck"],browserDirectories:[],cdnDirectory:"locales-PitchDeck",cdnSplit:!1},reports:{localeDirectory:"locales-Reports",splitDirectories:["i18n-split-reports"],browserDirectories:[],cdnDirectory:"locales-Reports",cdnSplit:!1},rag:{localeDirectory:"locales-RAG",splitDirectories:["i18n-split-rag"],browserDirectories:[],cdnDirectory:"locales-RAG",cdnSplit:!1}},qc={lp:"lp",rag:"rag",flow:"zappflux",emails:"emails",workers:"workers",reports:"reports",zappflux:"zappflux",integrations:"integrations","pitch-deck":"pitch-deck","zappflux-lp":"zappflux-lp","zappflux-templates":"zappflux-templates",WhatsAppSettings:"integrations",WhatsAppIntegrationPage:"integrations",WhatsAppBusiness_IntegrationSettings:"integrations",TelegramSettings:"integrations",Telegram_IntegrationSettings:"integrations",InstagramSettings:"integrations",Instagram_IntegrationSettings:"integrations",MessengerSettings:"integrations",Messenger_IntegrationSettings:"integrations",TikTokSettings:"integrations",TikTok_IntegrationSettings:"integrations",ZendeskSettings:"integrations",Zendesk_IntegrationSettings:"integrations",SlackSettings:"integrations",ShopifySettings:"integrations",ConnectWhatsApp:"integrations",QRCode:"integrations",crisp:"integrations",crispConfig:"integrations",crispSettingsModal:"integrations"},Vc=null,ms=null,nn=null,Wp=null,Hi=null,ao=null,vt=null,qp=null,jO=globalThis.eval;function GO(){if(nn)return nn;try{if(typeof __non_webpack_require__=="function")nn=__non_webpack_require__;else if(typeof ad=="function")nn=ad;else if(globalThis.require)nn=globalThis.require;else{let e="require";nn=globalThis[e]||jO(e)}return nn}catch(e){return console.error(" [i18n-runtime-loader] Critical: Failed to obtain require function",e),null}}function Wi(){if(typeof window<"u")return!1;if(Vc&&ms)return!0;try{let e=GO();return e?(Vc=e("fs"),ms=e("path"),Wp=Vc.readFileSync,Hi=Vc.existsSync,ao=ms.join,vt=ms.resolve,qp=ms.dirname,!0):!1}catch{return!1}}var zc=new Map,eS=new Map;function Yp(e){if(Wi(),!Hi)return[];let t=new Set;return e.filter(r=>!!r).filter(r=>t.has(r)||!Hi(r)?!1:(t.add(r),!0))}function HO(e){if(Wi(),!(!nn||!qp))try{let r=nn.resolve.call(nn,`${e}/package.json`);return qp(r)}catch{return}}var jc=null;function WO(){if(jc)return jc;if(Wi(),!vt)return[];let e=process.cwd(),t=h.ZW_I18N_CACHE_ROOT;return jc=Yp([t,vt(e,".next/cache"),vt(e,"../.next/cache"),vt(e,"../../.next/cache"),vt(e,"apps/zappway/dashboard/.next/cache"),vt(e,"packages/zappflux/packages/app/.next/cache"),"/var/task/.next/cache","/var/task/apps/zappway/dashboard/.next/cache"]),jc}var Gc=null;function qO(){if(Gc)return Gc;if(Wi(),!vt||!ao)return[];let e=process.cwd(),t=HO("@zappway/lib");return Gc=Yp([t,vt(e,"packages/zappway/lib"),vt(e,"../packages/zappway/lib"),vt(e,"../../packages/zappway/lib"),vt(e,"../../../packages/zappway/lib"),vt(e,"../../../../packages/zappway/lib"),vt(e,"node_modules/@zappway/lib"),vt(e,"../node_modules/@zappway/lib"),vt(e,"../../node_modules/@zappway/lib"),vt(e,"../../../node_modules/@zappway/lib"),vt(e,"../../../../node_modules/@zappway/lib")]).filter(r=>Hi(ao(r,"locales"))),Gc}var Hp=new Map;function tS(e){if(Hp.has(e))return Hp.get(e);if(Wi(),!Wp||!Hi||!Hi(e))return null;try{let t=Wp(e,"utf8"),r=JSON.parse(t);return Hp.set(e,r),r}catch{return null}}function Kp(e,t){if(!e)return null;let r=t||bt;if(r===bt)return e;if(e[r])return e[r];let n=r.split("."),o=e,i=!0;for(let a of n)if(o&&typeof o=="object"&&a in o)o=o[a];else{i=!1;break}return i&&o&&typeof o=="object"?o:r!==bt?{}:e}var Hc=null;function KO(){return Hc||(Hc=Yp([...WO(),...qO()]),Hc)}function Kc(e){return QT(e,Pt)}function Zp(e,t,r){if(typeof window<"u"||!Wi())return{};let n=Kc(e),o=r||bt,i=`node:${n}:${t}:${o}`,a=zc.get(i);if(a)return a;let s=gs[t];if(t==="main"&&o!==bt&&qc[o])return zc.set(i,{}),{};let l=KO(),c=[];for(let f of l){for(let p of s.splitDirectories)c.push(ao(f,p,n,`${o}.json`)),c.push(ao(f,"locales",p,n,`${o}.json`));c.push(ao(f,s.localeDirectory,n,`${o}.json`)),c.push(ao(f,"locales",s.localeDirectory,n,`${o}.json`))}for(let f of c){let p=tS(f);if(p&&Object.keys(p).length>0)return zc.set(i,p),p}let u={};for(let f of l){let p=ao(f,"locales",s.localeDirectory,n,"translations.json"),m=tS(p);if(m){if(u=Kp(m,r)||{},Object.keys(u).length>0)break}else VO&&r===bt&&console.warn(` [i18n] Bundle not found or empty: ${p} (CWD: ${typeof process<"u"?process.cwd():"unknown"})`)}return Object.keys(u).length===0&&n!==Pt?Zp(Pt,t,r):(zc.set(i,u),u)}function Xp(e,t,r){let n=t.map(o=>Zp(e,o,r));return oS(n)}async function Wc(e,t=2e3){let r=new AbortController,n=setTimeout(()=>r.abort(),t);try{let o=await fetch(`${e}?v=${Date.now()}`,{signal:r.signal,cache:"force-cache"});return clearTimeout(n),o.ok?await o.json():null}catch{return clearTimeout(n),null}}async function YO(e,t,r){let n=Kc(e),o=r||bt,a=`${typeof window>"u"?"node":"browser"}:${n}:${t}:${o}`,s=eS.get(a);if(s)return await s||{};let l=gs[t],c=(async()=>{if(typeof window>"u"){let u=Zp(e,t,r);if(u&&Object.keys(u).length>0)return u;let f=t==="main"&&o!==bt&&!o.includes(".")?`${Wo}/${l.cdnDirectory}/${n}/${o}.json`:`${Wo}/${l.cdnDirectory}/${n}/translations.json`;try{let p=await Wc(f,3e3);if(p){let m=Kp(p,r);if(m&&Object.keys(m).length>0)return m}}catch{}}else{for(let m of l.browserDirectories){let b=await Wc(`/locales-runtime/${m}/${n}/${o}.json`);if(b)return b}let u=await Wc(`/api/i18n/${n}/${o}`);if(u)return u;let f=t==="main"&&o!==bt&&!o.includes(".")?`${Wo}/${l.cdnDirectory}/${n}/${o}.json`:`${Wo}/${l.cdnDirectory}/${n}/translations.json`,p=await Wc(f);if(p)return Kp(p,r)||{}}return{}})();return eS.set(a,c),c||{}}async function rS(e,t,r){let n=t.map(i=>YO(e,i,r)),o=await Promise.all(n);return oS(o)}function nS(e,t){let r={...e};for(let[n,o]of Object.entries(t||{})){let i=r[n];i&&typeof i=="object"&&o&&typeof o=="object"&&!Array.isArray(o)?r[n]=nS(i,o):r[n]=o}return r}function oS(e){return e.reduce((t,r)=>nS(t,r||{}),{})}var em=["lp","rag","main","emails","reports","workers","zappflux","zappflux-lp","integrations","zappflux-templates"],Jp={},qi={},Qp=new Map;function hN(){let e=typeof window<"u"?window.location.pathname.split("/")[1]:null,t=typeof window<"u"?new URL(window.location.href).searchParams.get("lang")||new URL(window.location.href).searchParams.get("locale"):null,r=e||t||typeof document>"u"?null:document.cookie.split(";").find(i=>i.trim().startsWith("NEXT_LOCALE="))?.split("=")[1],n=globalThis.headers?.get?.("accept-language")?.split(",")[0],o=typeof navigator<"u"?navigator.language:null;return Zc(e||t||r||n||o||Pt)}function Zc(e){return Kc(e)}function bN(e){let t=e&&e.length?e:[bt];return Array.from(new Set([bt,...t]))}function hs(e){return!e||Object.keys(e).length===0}function Yc(e,t){if(!e)return null;let r=t||bt;if(r===bt||r!==bt&&qc[r]===r)return e;if(e[r])return e[r];let n=e,o=!0,i=r.split(".");for(let a of i)if(n&&typeof n=="object"&&a in n)n=n[a];else{o=!1;break}return o&&n&&typeof n=="object"?n:r===bt?e:{}}function lS(e,t=bt){let r=Zc(e),n=`fs:${r}:${t}`,o=qi[n];if(o)return o;let i=t===bt?void 0:t,a=Xp(r,em,i);if(!hs(a))return qi[n]=a,a;let s=`fs:${Pt}:${t}`,l=qi[s];if(l)return l;let c=Xp(Pt,em,i);if(!hs(c))return qi[s]=c,c;throw new Fc("INTERNAL_ERROR",500)}async function tm(e,t=3e3){let r=new AbortController,n=setTimeout(()=>r.abort(),t);try{let o=await fetch(e,{signal:r.signal,cache:"force-cache"});return o.ok?await o.json():null}catch{return null}finally{clearTimeout(n)}}async function yN(e,t="main"){if(t==="main")return null;let r=gs[t].cdnDirectory,n=`bundle:${e}:${r}`;if(Qp.has(n))return Qp.get(n);let o=(async()=>{let i=`${Wo}/${r}/${e}/translations.json`;return await tm(i,3e3)})();return Qp.set(n,o),o}async function cS(e,t=bt,r){let n=Zc(e),o=`cdn:${n}:${t}`,i=qi[o];if(i)return i;let a=qc[t]||"main",s=gs[a].cdnDirectory,l=async b=>{let y=t.split(".")[0],x=`${Wo}/${s}/${b}/${y}.json`,v=await tm(x,2e3);return v?Yc(v,t):null},c=async b=>{if(!r)return null;let y=t.split(".")[0],x=`${r}/api/i18n/${b}/${y}`,v=await tm(x,2e3);return Yc(v||{},t)},u=async b=>{try{let{loadManualTranslationsWithZappFlux:y}=await Promise.resolve().then(()=>(sS(),aS)),x=await y(b);return Yc(x||{},t)}catch{return null}},f=async b=>{try{return await rS(b,em,t)}catch{return null}},p=null;if(a==="main")p=await c(n),p||(p=await l(n)),p||(p=await u(n)),p||(p=await f(n)),p||(p=await c(Pt)),p||(p=await l(Pt)),p||(p=await u(Pt)),p||(p=await f(Pt));else{if(p=await c(n),hs(p||{})){let b=await yN(n,a);p=Yc(b||{},t)}hs(p||{})&&(p=await u(n)),hs(p||{})&&(p=await f(n))}let m=p||{};return qi[o]=m,m}async function uS(e,t,r){let n=Zc(e||hN()),o=bN(t),i=r||(typeof window<"u"?window.location.origin:void 0),a=typeof window>"u"?"node":"browser",s=`inst:${n}:${o.slice().sort().join("|")}:${a}`;if(Jp[s])return Jp[s];let l=typeof window>"u",c={[n]:{}};for(let f of o)c[n][f]=l?lS(n,f):await cS(n,f,i);if(n!==Pt){c[Pt]={};for(let f of o)c[Pt][f]=l?lS(Pt,f):await cS(Pt,f,i)}let u=JT();return await u.init({lng:n,fallbackLng:Pt,defaultNS:o[0],ns:o,resources:c,interpolation:{escapeValue:!1}}),Jp[s]=u,u}var dS=Bn(),so=e=>{let[t,r]=F(!1),[n,o]=F();Te(async()=>{try{let a=await uS(e.lang,["zappflux","templates"],e.apiHost);o(a),r(!0)}catch(a){console.error("[ZappFlux-Solid] I18n initialization failed:",a),r(!0)}});let i=(a,s)=>{if(!n())return a;let c=n().getFixedT(null,"zappflux")(a,s);return c!==a?c:n().getFixedT(null,"templates")(a,s)||a};return g(dS.Provider,{value:{t:i,isInitialized:t},get children(){return g(z,{get when(){return t()},get children(){return e.children}})}})},Mt=()=>{let e=gn(dS);return e||{t:t=>t,isInitialized:()=>!1}};d();d();var fS=e=>{sessionStorage.setItem("flowPaymentInProgress",JSON.stringify(e))},Ki=()=>sessionStorage.getItem("flowPaymentInProgress"),Xc=()=>{sessionStorage.removeItem("flowPaymentInProgress")};d();var qo=()=>{try{if(typeof window>"u"||!(parent!==window)||!Re(document.referrer))return;try{return new URL(document.referrer).origin}catch{return}}catch{return}};d();d();var Jt=(e,t)=>{if(typeof window<"u")return window.__ENV?window.__ENV[e]??t:void 0;if(!(typeof process>"u"))return h[e]??t};var wN="https://app.zappflux.zappway.ai",Qt=({ignoreChatApiUrl:e}={ignoreChatApiUrl:!1})=>{let t=Jt("NEXT_PUBLIC_CHAT_API_URL"),r=Jt("NEXT_PUBLIC_USE_EXPERIMENTAL_CHAT_API_ON")?.split(",");if(!e&&t&&(!r||r.some(a=>a===window.location.href)))return t;let n=Jt("NEXT_PUBLIC_VIEWER_URL")?.split(","),o=n?.find(a=>window.location.href.startsWith(a)),i=Jt("NEXT_PUBLIC_BUILDER_URL")??wN;return o??n?.[0]??i};async function pS({flow:e,isPreview:t,apiHost:r,prefilledVariables:n,resultId:o,stripeRedirectStatus:i,startFrom:a,sessionId:s}){if(gt(e))throw new Error("Flow ID is required to get initial messages");let l=Ki()??void 0,c=l?JSON.parse(l):void 0;if(c)return xN({apiHost:r,stripeRedirectStatus:i,paymentInProgressState:c});let u=typeof e=="string"?e:e.id;if(t)return vN({apiHost:r,flowId:u,startFrom:a,flow:e,prefilledVariables:n,sessionId:s});try{let f=qo();return{data:await(await ro.post(`${rm(r)}/api/v1/flows/${u}/startChat`,{headers:{"x-flow-iframe-referrer-origin":f},json:{isStreamEnabled:!0,prefilledVariables:n,resultId:o,isOnlyRegistering:!1},timeout:!1})).json()}}catch(f){return{error:f}}}var xN=async({apiHost:e,stripeRedirectStatus:t,paymentInProgressState:r})=>{Xc();try{let n=qo();return{data:{...await ro.post(`${rm(e)}/api/v1/sessions/${r.sessionId}/continueChat`,{headers:{"x-flow-iframe-referrer-origin":n},json:{message:t==="failed"?"fail":"Success"},timeout:!1}).json(),...r}}}catch(n){return{error:n}}},vN=async({apiHost:e,flowId:t,startFrom:r,flow:n,prefilledVariables:o,sessionId:i})=>{try{return{data:await ro.post(`${rm(e)}/api/v1/flows/${t}/preview/startChat`,{json:{isStreamEnabled:!0,startFrom:r,flow:n,prefilledVariables:o,sessionId:i},timeout:!1}).json()}}catch(a){return{error:a}}},rm=e=>Re(e)?e:Qt();d();var Jc=class extends Error{constructor(t){super("This bot can only be executed on "+t)}};d();var TN="https://fonts.bunny.net/css2",Qc="flow-font",nm=e=>{let t=document.getElementById(Qc);if(typeof e=="string"||e.type==="Google"){let r=(typeof e=="string"?e:e.family)??Ui;if(t?.getAttribute("href")?.includes(r))return;t?.remove();let n=document.createElement("link");n.href=`${TN}?family=${r}:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap`,n.rel="stylesheet",n.id=Qc,document.head.appendChild(n);return}if(e.type==="Custom"){if(Re(e.css)){if(t?.innerHTML===e.css)return;t?.remove();let r=document.createElement("style");r.innerHTML=e.css,r.id=Qc,document.head.appendChild(r)}if(Re(e.url)){if(t?.getAttribute("href")===e.url)return;t?.remove();let r=document.createElement("link");r.href=e.url,r.rel="stylesheet",r.id=Qc,document.head.appendChild(r)}}};d();var bs=(e,t)=>({...e,general:e.general?{...e.general,background:e.general.background?{...e.general.background,content:t?.backgroundUrl??e.general.background?.content}:void 0}:void 0,chat:{...e.chat,hostAvatar:e.chat?.hostAvatar&&t?.hostAvatarUrl?{...e.chat.hostAvatar,url:t.hostAvatarUrl}:e.chat?.hostAvatar,guestAvatar:e.chat?.guestAvatar&&t?.guestAvatarUrl?{...e.chat.guestAvatar,url:t?.guestAvatarUrl}:e.chat?.guestAvatar}});d();d();var om="resultId",mS=e=>{if(e)try{return sessionStorage.getItem(`${om}-${e}`)??localStorage.getItem(`${om}-${e}`)??void 0}catch{}},gS=(e="session")=>(t,r)=>{try{Zi(e).setItem(`${om}-${t}`,r)}catch{}},hS=e=>{if(e)try{let t=sessionStorage.getItem(`flow-${e}-initialChatReply`)??localStorage.getItem(`flow-${e}-initialChatReply`);return t?JSON.parse(t):void 0}catch{}},im=(e,{flowId:t,storage:r})=>{try{let n=JSON.stringify(e);Zi(r).setItem(`flow-${t}-initialChatReply`,n)}catch{}},eu=()=>{try{sessionStorage.setItem("flow-botOpened","true")}catch{}},Yi=()=>{try{sessionStorage.removeItem("flow-botOpened")}catch{}},tu=()=>{try{return sessionStorage.getItem("flow-botOpened")==="true"}catch{return!1}},Zi=e=>(e??Et.general.rememberUser.storage)==="session"?sessionStorage:localStorage,on=e=>{Object.keys(localStorage).forEach(t=>{t.startsWith(`flow-${e}`)&&localStorage.removeItem(t)}),Object.keys(sessionStorage).forEach(t=>{t.startsWith(`flow-${e}`)&&sessionStorage.removeItem(t)})};function ys(e,t){if(!t.storage)return[...e];let r=Zi(t.storage||Et.general.rememberUser.storage),n=a=>{let s=JSON.parse(JSON.stringify(a));return typeof s!="object"||("blobUrl"in s&&(s.blobUrl=void 0),"attachments"in s&&Array.isArray(s.attachments)&&s.attachments.forEach(l=>{l&&"blobUrl"in l&&(l.blobUrl=void 0)})),JSON.stringify(s)},o=JSON.parse.bind(JSON),i=r.getItem(t.key);if(i){let a=typeof e[0]=="function"?l=>e[1](()=>l):l=>e[1](uh(l)),s=o(i);t.transformInitDataFromStorage&&(s=t.transformInitDataFromStorage(s),r.setItem(t.key,n(s))),a(s),t.onRecovered?.()}return[e[0],typeof e[0]=="function"?a=>{let s=e[1](a);return a?r.setItem(t.key,n(s)):r.removeItem(t.key),s}:(...a)=>{e[1](...a);let s=n(Ze(()=>e[0]));r.setItem(t.key,s)}]}d();d();var at=e=>{let t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,(n,o,i,a)=>o+o+i+i+a+a);let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?[Number.parseInt(r[1]??"",16),Number.parseInt(r[2]??"",16),Number.parseInt(r[3]??"",16)]:[0,0,0]},lo=e=>(([t,r,n])=>(t*299+r*587+n*114)/1e3>155)(at(e));d();var Xi=({chatContainer:e,generalBackground:t})=>{let r=e?.backgroundColor??jo;if((e?.opacity??Gt)<=.3||r==="transparent"||Je(r)){let o=t?.type??Cc,i=o==="Image"?"#000000":o==="Color"&&Re(t?.content)?t.content:"#ffffff";return lo(i)}return lo(r)};var yS=({theme:e,container:t,isPreview:r,flowVersion:n,isDarkMode:o=!1})=>{if(!e)return;let i=t.style;am({background:e.general?.background,documentStyle:i,flowVersion:n??"6",isDarkMode:o}),i.setProperty(ie.general.fontFamily,(typeof e.general?.font=="string"?e.general.font:e.general?.font?.family)??Ui),SN({progressBar:e.general?.progressBar,documentStyle:i,isPreview:r,flowVersion:n??"6"}),CN({chatTheme:e.chat,generalBackground:e.general?.background,documentStyle:i,flowVersion:n??"6",isDarkMode:o})};var SN=({progressBar:e,documentStyle:t,isPreview:r,flowVersion:n})=>{let o=e?.position??kc;t.setProperty(ie.general.progressBar.position,o==="fixed"?r?"absolute":"fixed":o),t.setProperty(ie.general.progressBar.color,e?.color??W0[n]),t.setProperty(ie.general.progressBar.colorRgb,at(e?.backgroundColor??q0[n]).join(", ")),t.setProperty(ie.general.progressBar.height,`${e?.thickness??K0}px`);let i=e?.placement??Y0;t.setProperty(ie.general.progressBar.top,i==="Top"?"0":"auto"),t.setProperty(ie.general.progressBar.bottom,i==="Bottom"?"0":"auto")},CN=({chatTheme:e,generalBackground:t,documentStyle:r,flowVersion:n,isDarkMode:o})=>{kN({container:e?.container,generalBackground:t,documentStyle:r,legacyRoundness:e?.roundness,flowVersion:n,isDarkMode:o}),EN({hostBubbles:e?.hostBubbles,documentStyle:r,legacyRoundness:e?.roundness,flowVersion:n,isDarkMode:o}),PN({guestBubbles:e?.guestBubbles,documentStyle:r,legacyRoundness:e?.roundness,flowVersion:n,isDarkMode:o}),IN({buttons:e?.buttons,documentStyle:r,legacyRoundness:e?.roundness,flowVersion:n,isDarkMode:o}),AN({inputs:e?.inputs,documentStyle:r,legacyRoundness:e?.roundness,flowVersion:n,isDarkMode:o}),RN(e?.container,t,r),_N({buttonsInput:e?.buttonsInput,documentStyle:r,flowVersion:n})},kN=({container:e,generalBackground:t,documentStyle:r,legacyRoundness:n,isDarkMode:o})=>{let i=e?.backgroundColor??jo,a=i==="transparent"||Je(i);r.setProperty(ie.chat.container.bgColor,a?"0, 0, 0":at(i).join(", ")),r.setProperty(ie.chat.container.color,at(e?.color??(o?"#ffffff":Xi({chatContainer:e,generalBackground:t})?He.gray.light[12]:He.gray.dark[12])).join(", ")),r.setProperty(ie.chat.container.maxWidth,e?.maxWidth??Z0),r.setProperty(ie.chat.container.maxHeight,e?.maxHeight??X0);let s=a?"1":(e?.opacity??Gt).toString();r.setProperty(ie.chat.container.opacity,a?"0":(e?.opacity??Gt).toString()),r.setProperty(ie.chat.container.blur,s==="1"||a?"0xp":`${e?.blur??Sp}px`),xs(e?.shadow,r,ie.chat.container.boxShadow),ws(e?.border??{roundeness:n??zo},r,ie.chat.container.borderRadius),r.setProperty(ie.chat.container.borderWidth,ge(e?.border?.thickness)?`${e?.border?.thickness}px`:"0"),r.setProperty(ie.chat.container.borderOpacity,ge(e?.border?.opacity)?e.border.opacity.toString():Gt.toString()),r.setProperty(ie.chat.container.borderColor,at(e?.border?.color??"").join(", "))},EN=({hostBubbles:e,documentStyle:t,legacyRoundness:r,flowVersion:n,isDarkMode:o})=>{let i=J0[n],a=e?.backgroundColor===i||e?.backgroundColor?.toLowerCase()==="#ffffff"||e?.backgroundColor?.toLowerCase()==="#f7f8ff"||e?.backgroundColor?.toLowerCase()==="#f2f2f2"||e?.backgroundColor?.toLowerCase()==="#f4f4f5"||e?.backgroundColor?.toLowerCase()==="#f7f8f9",s=o&&(a||!e?.backgroundColor)?"#1D1D1D":e?.backgroundColor??(o?"#1D1D1D":i),l=e?.color===Cp||e?.color?.toLowerCase()==="#303235"||e?.color?.toLowerCase()==="#000000"||!e?.color,c=o&&l?"#eeeeee":e?.color??(o?"#eeeeee":Cp);t.setProperty(ie.chat.hostBubbles.bgColor,at(s).join(", ")),t.setProperty(ie.chat.hostBubbles.color,c),ws(e?.border??{roundeness:r??zo},t,ie.chat.hostBubbles.borderRadius);let u=e?.border?.thickness??Q0[n];ge(u)&&t.setProperty(ie.chat.hostBubbles.borderWidth,u+"px"),t.setProperty(ie.chat.hostBubbles.borderColor,at(e?.border?.color??eT).join(", ")),t.setProperty(ie.chat.hostBubbles.opacity,e?.backgroundColor==="transparent"?"0":ge(e?.opacity)?e.opacity.toString():o?"1":Gt.toString()),t.setProperty(ie.chat.hostBubbles.borderOpacity,ge(e?.border?.opacity)?e.border.opacity.toString():Gt.toString()),t.setProperty(ie.chat.hostBubbles.blur,ge(e?.blur)?`${e.blur??0}px`:"none"),xs(e?.shadow,t,ie.chat.hostBubbles.boxShadow)},PN=({guestBubbles:e,documentStyle:t,legacyRoundness:r,flowVersion:n,isDarkMode:o})=>{let i=tT[n],a=e?.backgroundColor===i||e?.backgroundColor?.toLowerCase()==="#0042da"||e?.backgroundColor?.toLowerCase()==="#ffffff"||e?.backgroundColor?.toLowerCase()==="#f7f8ff"||e?.backgroundColor?.toLowerCase()==="#f4f4f5"||e?.backgroundColor?.toLowerCase()==="#f2f2f2",s=o&&(a||!e?.backgroundColor)?"#2A2A2A":e?.backgroundColor??(o?"#2A2A2A":i),l=e?.color===kp||e?.color?.toLowerCase()==="#ffffff"||e?.color?.toLowerCase()==="#f4f4f5"||!e?.color,c=o&&l?"#eeeeee":e?.color??(o?"#eeeeee":kp);t.setProperty(ie.chat.guestBubbles.bgColor,at(s).join(", ")),t.setProperty(ie.chat.guestBubbles.color,c),ws(e?.border??{roundeness:r??zo},t,ie.chat.guestBubbles.borderRadius);let u=e?.border?.thickness??rT[n];ge(u)&&t.setProperty(ie.chat.guestBubbles.borderWidth,u+"px"),t.setProperty(ie.chat.guestBubbles.borderColor,at(e?.border?.color??nT).join(", ")),t.setProperty(ie.chat.guestBubbles.borderOpacity,ge(e?.border?.opacity)?e.border.opacity.toString():Gt.toString()),t.setProperty(ie.chat.guestBubbles.opacity,e?.backgroundColor==="transparent"?"0":ge(e?.opacity)?e.opacity.toString():o?"1":Gt.toString()),t.setProperty(ie.chat.guestBubbles.blur,ge(e?.blur)?`${e.blur??0}px`:"none"),xs(e?.shadow,t,ie.chat.guestBubbles.boxShadow)},IN=({buttons:e,documentStyle:t,legacyRoundness:r,flowVersion:n,isDarkMode:o})=>{let i=e?.backgroundColor??Ec[n];t.setProperty(ie.chat.buttons.bgRgb,at(i).join(", ")),t.setProperty(ie.chat.buttons.bgRgb,at(i).join(", "));let a=e?.backgroundColor==="#0042DA";t.setProperty(ie.chat.buttons.color,e?.color??(o?"#ffffff":oT)),t.setProperty(ie.chat.buttons.bgRgb,o&&(a||!e?.backgroundColor)?at("#2B9A66").join(", "):at(i).join(", ")),ws(e?.border??{roundeness:r??zo},t,ie.chat.buttons.borderRadius),t.setProperty(ie.chat.buttons.borderWidth,ge(e?.border?.thickness)?`${e?.border?.thickness}px`:`${iT[n]}px`),t.setProperty(ie.chat.buttons.borderColor,at(e?.border?.color??e?.backgroundColor??aT).join(", ")),t.setProperty(ie.chat.buttons.borderOpacity,ge(e?.border?.opacity)?e.border.opacity.toString():Gt.toString()),t.setProperty(ie.chat.buttons.opacity,e?.backgroundColor==="transparent"?"0":ge(e?.opacity)?e.opacity.toString():Gt.toString()),t.setProperty(ie.chat.buttons.blur,ge(e?.blur)?`${e.blur??0}px`:Sp.toString()),xs(e?.shadow,t,ie.chat.buttons.boxShadow)},_N=({buttonsInput:e,documentStyle:t})=>{t.setProperty(ie.chat.buttons.flexDirection,(e?.layout??dT)==="vertical"?"column":"unset")},AN=({inputs:e,documentStyle:t,legacyRoundness:r,flowVersion:n,isDarkMode:o})=>{let i=e?.backgroundColor===Ep||e?.backgroundColor==="#ffffff"||e?.backgroundColor==="#FFFFFF",a=o&&i?"#374151":e?.backgroundColor??(o?"#374151":Ep),s=e?.color===Pp||e?.color==="#303235"||e?.color==="#000000",l=o&&s?"#ffffff":e?.color??(o?"#ffffff":Pp);t.setProperty(ie.chat.inputs.bgColor,at(a).join(", ")),t.setProperty(ie.chat.inputs.color,l),t.setProperty(ie.chat.inputs.placeholderColor,e?.placeholderColor??(o?"#9ca3af":sT)),ws(e?.border??{roundeness:r??zo},t,ie.chat.inputs.borderRadius),t.setProperty(ie.chat.inputs.borderWidth,`${e?.border?.thickness??lT[n]}px`);let c=e?.border?.color??cT[n];ge(c)&&t.setProperty(ie.chat.inputs.borderColor,at(c).join(", ")),t.setProperty(ie.chat.inputs.borderOpacity,ge(e?.border?.opacity)?e.border.opacity.toString():Gt.toString()),t.setProperty(ie.chat.inputs.opacity,e?.backgroundColor==="transparent"?"0":ge(e?.opacity)?e.opacity.toString():Gt.toString()),t.setProperty(ie.chat.inputs.blur,ge(e?.blur)?`${e.blur??0}px`:"none"),xs(e?.shadow??uT[n],t,ie.chat.inputs.boxShadow)},RN=(e,t,r)=>{let n=e?.backgroundColor??jo;if(n==="transparent"||Je(n)||(e?.opacity??Gt)<=.2){let i=t?.type??Cc;r.setProperty(ie.chat.checkbox.bgRgb,i==="Image"?"rgba(255, 255, 255, 0.75)":at((i==="Color"?t?.content:"#ffffff")??"#ffffff").join(", ")),i==="Image"?r.setProperty(ie.chat.checkbox.alphaRatio,"3"):r.setProperty(ie.chat.checkbox.alphaRatio,t?.content&&lo(t?.content)?"1":"2")}else r.setProperty(ie.chat.checkbox.bgRgb,at(n).concat(e?.opacity??1).join(", ")),r.setProperty(ie.chat.checkbox.alphaRatio,lo(n)?"1":"2")},am=({background:e,documentStyle:t,flowVersion:r,isDarkMode:n})=>{let o=e?.type??"Default";n&&o==="Color"&&e?.content?.toLowerCase()==="#ffffff"&&(o="Default");let i=ON({type:o,content:e?.content??"",isDarkMode:n});o==="Image"||o==="Default"?(t.setProperty(ie.general.bgImage,i),o==="Default"&&t.setProperty(ie.general.bgColor,"transparent")):(t.setProperty(ie.general.bgColor,i),t.setProperty(ie.general.bgImage,"none"))},ON=({type:e,content:t,isDarkMode:r})=>{switch(e){case"None":return"transparent";case"Default":return r?"linear-gradient(to right, #080808 0%, #000c0c 80%, #080808 100%)":"linear-gradient(to bottom, #ffffff, #dcfff5, #ffffff)";case void 0:case"Color":return t;case"Image":return`url(${t})`}},ws=(e,t,r)=>{switch(e?.roundeness??zo){case"none":{t.setProperty(r,"0");break}case"medium":{t.setProperty(r,"6px");break}case"large":{t.setProperty(r,"20px");break}case"custom":{t.setProperty(r,`${e.customRoundeness??6}px`);break}}},xs=(e,t,r)=>{if(e===void 0){t.setProperty(r,"0 0 #0000");return}switch(e){case"none":t.setProperty(r,"0 0 #0000");break;case"sm":t.setProperty(r,"0 1px 2px 0 rgb(0 0 0 / 0.05)");break;case"md":t.setProperty(r,"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)");break;case"lg":t.setProperty(r,"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)");break;case"xl":t.setProperty(r,"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)");break;case"2xl":t.setProperty(r,"0 25px 50px -12px rgb(0 0 0 / 0.25)");break}};d();var rr=xf({placement:"bottom-end",gap:24});d();d();var NN=_('<svg><circle class=opacity-25 cx=12 cy=12 r=10 stroke=currentColor stroke-width=4></circle><path class=opacity-75 fill=currentColor d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z">'),ru=e=>(()=>{var t=NN();return ke(t,le(e,{get class(){return"animate-spin h-6 w-6 "+e.class},xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","data-testid":"loading-spinner"}),!0,!0),t})();var LN=_("<button>"),nu=pp("font-semibold focus:outline-none filter hover:brightness-90 active:brightness-75 disabled:opacity-50 disabled:cursor-not-allowed disabled:brightness-100 flex justify-center shrink-0 transition-[filter] duration-200 cursor-pointer",{variants:{variant:{primary:"flow-button bg-button-bg text-button-text border-button-border rounded-button border-(length:--flow-button-border-width) blur-button shadow-button",secondary:"secondary-button bg-host-bubble-bg text-host-bubble-text rounded-host-bubble border-host-bubble border-host-bubble-border"},size:{icon:"text-sm size-6 pt-[3px]",sm:"py-2 px-4 text-sm",md:"py-2 px-4"}},defaultVariants:{variant:"primary",size:"md"}}),Ht=e=>{let t=al(()=>e.children),[r,n]=Ge(e,["variant","size","isDisabled","isLoading"]);return(()=>{var o=LN();return ke(o,le(n,{get disabled(){return r.isDisabled||r.isLoading},get class(){return io(nu({variant:r.variant,size:r.size}),n.class)}}),!1,!0),P(o,g(z,{get when(){return!r.isLoading},get fallback(){return g(ru,{})},get children(){return t()}})),o})()};d();d();var Tt="blocks.inputs.settings.buttonText.label";d();var co=async({err:e,context:t})=>{try{return typeof e=="string"?{context:t,description:e,details:void 0}:e instanceof Error?"response"in e&&typeof e.response=="object"&&e.response&&"text"in e.response&&typeof e.response.text=="function"?{context:t,description:e.message,details:JSON.stringify(await e.response.text())}:{context:t,description:e.message,details:typeof e.cause=="string"?e.cause:JSON.stringify(e.cause)}:{context:t,description:JSON.stringify(e)}}catch{return{context:t,description:"Unknown error (failed to parse)"}}};d();d();var DN="lg",sm=Bn(()=>DN),ou=()=>gn(sm),xS=e=>{let[t,r]=F("lg"),n=new ResizeObserver(()=>{let o=e();o&&r(wS(o))});return pe(()=>{let o=e();o&&(r(wS(o)),n.observe(o))}),ae(()=>{let o=e();o&&n.unobserve(o)}),t},wS=e=>{let t=e.clientWidth;return t<Sa.xs?"xs":t<Sa.sm?"sm":t<Sa.md?"md":t<Sa.lg?"lg":"xl"};d();var lm=async({apiHost:e,message:t,sessionId:r})=>{try{let n=qo();return{data:await ro.post(`${Re(e)?e:Qt()}/api/v1/sessions/${r}/continueChat`,{headers:{"x-flow-iframe-referrer-origin":n},json:{message:t},timeout:!1}).json()}}catch(n){return{error:n}}};d();var cm=async({apiHost:e,sessionId:t,clientLogs:r})=>{try{let n=qo();await ro.post(`${Re(e)?e:Qt()}/api/v2/sessions/${t}/clientLogs`,{headers:{"x-flow-iframe-referrer-origin":n},json:{clientLogs:r}})}catch(n){console.log(n)}};d();var vS=e=>{if(e instanceof TypeError){let t=["Connection refused","Failed to fetch","Failed to load resource","Failed to execute 'fetch' on 'Window'","Load failed","NetworkError","Network request failed","Request failed"],r=["ERR_INTERNET_DISCONNECTED","ERR_NAME_NOT_RESOLVED","ERR_CONNECTION_REFUSED","ERR_CONNECTION_TIMED_OUT","ERR_SSL_PROTOCOL_ERROR"];return[...t,...r].some(n=>e.message.toLowerCase().includes(n.toLowerCase()))}return e instanceof DOMException?e.name==="AbortError"||e.name==="TimeoutError":!1};d();d();d();d();var MN=`
|
|
19
19
|
const AsyncFunction = Object.getPrototypeOf(async () => {})
|
|
20
20
|
.constructor;
|
|
21
21
|
|