@retailrocketgroup/retailrocket-edit.abandoned-view-price-drop-vue-email-template-render 6.0.388781 → 6.0.388926

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.
@@ -190,7 +190,7 @@ ${p.slice(u+2)}`,d+=1;else break}e.push({indent:u,number:parseInt(a,10),content:
190
190
  `):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const o=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return o!==void 0?o:-1},tokenize(t,e,o){const n=i=>{const s=A9(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:a[3].toLowerCase()==="x"}),createToken:(a,l)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:o.inlineTokens(a.mainContent),nestedTokens:l}),customNestedParser:n},o);return s?[{type:"taskList",raw:s.raw,items:s.items}]:o.blockTokens(i)},r=A9(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,s)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:o.inlineTokens(i.mainContent),nestedTokens:s}),customNestedParser:n},o);if(r)return{type:"taskList",raw:r.raw,items:r.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});Wo.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(eWt.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(tWt.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(rWt.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(uWt.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(dWt.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(mWt.configure(this.options.taskList)),t}});Sd.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",xa(this.options.HTMLAttributes,t)]},renderText(){return`
191
191
  `},renderMarkdown:()=>`
192
192
  `,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:o,editor:n})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=o;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=n.extensionManager,l=i||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&s){const d=l.filter(m=>a.includes(m.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});var Iae={},Pae={},Mae={},Oae;function _G(){return Oae||(Oae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isNone=t.isSome=t.None=t.Some=t.OptionType=void 0,t.OptionType={Some:Symbol(":some"),None:Symbol(":none")};function e(s){return typeof s>"u"?n():o(s)}t.Some=e,t.None=n();function o(s){return{type:t.OptionType.Some,isSome(){return!0},isNone(){return!1},match(a){return a.some(s)},map(a){return o(a(s))},andThen(a){return a(s)},or(a){return this},and(a){return a},unwrapOr(a){return s},unwrap(){return s}}}function n(){return{type:t.OptionType.None,isSome(){return!1},isNone(){return!0},match(s){const{none:a}=s;return typeof a=="function"?a():a},map(s){return n()},andThen(s){return n()},or(s){return s},and(s){return n()},unwrapOr(s){if(s==null)throw new Error("Cannot call unwrapOr with a missing value.");return s},unwrap(){throw new ReferenceError("Trying to unwrap None.")}}}function r(s){return s.isSome()}t.isSome=r;function i(s){return s.isNone()}t.isNone=i})(Mae)),Mae}var Wae;function pWt(){return Wae||(Wae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isRight=t.isLeft=t.Right=t.Left=t.EitherType=void 0;const e=_G();t.EitherType={Left:Symbol(":left"),Right:Symbol(":right")};function o(s){return{type:t.EitherType.Left,isLeft(){return!0},isRight(){return!1},left(){return(0,e.Some)(s)},leftAndThen(a){return a(s)},right(){return e.None},rightAndThen(a){return o(s)},unwrap(){return s},unwrapLeft(){return s},unwrapLeftOr(a){return s},unwrapLeftOrElse(a){return s},unwrapRight(){throw new ReferenceError("Cannot unwrap Right value of Either.Left")},unwrapRightOr(a){return a},unwrapRightOrElse(a){return a(s)},match(a){return a.left(s)},map(a){return o(a(s))},mapLeft(a){return o(a(s))},mapRight(a){return o(s)}}}t.Left=o;function n(s){return{type:t.EitherType.Right,isLeft(){return!1},isRight(){return!0},left(){return e.None},leftAndThen(a){return n(s)},right(){return(0,e.Some)(s)},rightAndThen(a){return a(s)},unwrap(){return s},unwrapLeft(){throw new ReferenceError("Cannot unwrap Left value of Either.Right")},unwrapLeftOr(a){return a},unwrapLeftOrElse(a){return a(s)},unwrapRight(){return s},unwrapRightOr(a){return s},unwrapRightOrElse(a){return s},match(a){return a.right(s)},map(a){return n(a(s))},mapLeft(a){return n(s)},mapRight(a){return n(a(s))}}}t.Right=n;function r(s){return s.isLeft()}t.isLeft=r;function i(s){return s.isRight()}t.isRight=i})(Pae)),Pae}var Hae={},zae;function hWt(){return zae||(zae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isErr=t.isOk=t.Err=t.Ok=t.ResultType=void 0;const e=_G();t.ResultType={Ok:Symbol(":ok"),Err:Symbol(":err")};function o(s){return{type:t.ResultType.Ok,isOk(){return!0},isErr(){return!1},ok(){return(0,e.Some)(s)},err(){return e.None},unwrap(){return s},unwrapOr(a){return s},unwrapOrElse(a){return s},unwrapErr(){throw new ReferenceError("Cannot unwrap Err value of Result.Ok")},match(a){return a.ok(s)},map(a){return o(a(s))},mapErr(a){return o(s)},andThen(a){return a(s)},orElse(a){return o(s)}}}t.Ok=o;function n(s){return{type:t.ResultType.Err,isOk(){return!1},isErr(){return!0},ok(){return e.None},err(){return(0,e.Some)(s)},unwrap(){throw new ReferenceError("Cannot unwrap Ok value of Result.Err")},unwrapOr(a){return a},unwrapOrElse(a){return a(s)},unwrapErr(){return s},match(a){return a.err(s)},map(a){return n(s)},mapErr(a){return n(a(s))},andThen(a){return n(s)},orElse(a){return a(s)}}}t.Err=n;function r(s){return s.isOk()}t.isOk=r;function i(s){return s.isErr()}t.isErr=i})(Hae)),Hae}var jae;function fWt(){return jae||(jae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Ok=t.isOk=t.isErr=t.Err=t.Some=t.None=t.isSome=t.isNone=t.Right=t.Left=t.isRight=t.isLeft=void 0;var e=pWt();Object.defineProperty(t,"isLeft",{enumerable:!0,get:function(){return e.isLeft}}),Object.defineProperty(t,"isRight",{enumerable:!0,get:function(){return e.isRight}}),Object.defineProperty(t,"Left",{enumerable:!0,get:function(){return e.Left}}),Object.defineProperty(t,"Right",{enumerable:!0,get:function(){return e.Right}});var o=_G();Object.defineProperty(t,"isNone",{enumerable:!0,get:function(){return o.isNone}}),Object.defineProperty(t,"isSome",{enumerable:!0,get:function(){return o.isSome}}),Object.defineProperty(t,"None",{enumerable:!0,get:function(){return o.None}}),Object.defineProperty(t,"Some",{enumerable:!0,get:function(){return o.Some}});var n=hWt();Object.defineProperty(t,"Err",{enumerable:!0,get:function(){return n.Err}}),Object.defineProperty(t,"isErr",{enumerable:!0,get:function(){return n.isErr}}),Object.defineProperty(t,"isOk",{enumerable:!0,get:function(){return n.isOk}}),Object.defineProperty(t,"Ok",{enumerable:!0,get:function(){return n.Ok}})})(Iae)),Iae}fWt();function mb(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(t==null||t==="")return;const o=Number(t);return isNaN(o)?String(t):isFinite(o)?`${o}${e}`:void 0}function Kae(t){let e;return t!==null&&typeof t=="object"&&((e=Object.getPrototypeOf(t))===Object.prototype||e===null)}function J4(t,e){return e.every(o=>t.hasOwnProperty(o))}function gWt(t,e){const o={};for(const n of e)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o}function yWt(t){return t==null?[]:Array.isArray(t)?t:[t]}function Uae(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+o.repeat(Math.max(0,e-t.length))}function CWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const o=[];let n=0;for(;n<t.length;)o.push(t.substr(n,e)),n+=e;return o}function LLe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n={};for(const r in t)n[r]=t[r];for(const r in e){const i=t[r],s=e[r];if(Kae(i)&&Kae(s)){n[r]=LLe(i,s,o);continue}if(o&&Array.isArray(i)&&Array.isArray(s)){n[r]=o(i,s);continue}n[r]=s}return n}function DF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(DF.cache.has(t))return DF.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return DF.cache.set(t,e),e}DF.cache=new Map;function bWt(t){const e=ve({});tr(()=>{const n=t();for(const r in n)e[r]=n[r]},{flush:"sync"});const o={};for(const n in e)o[n]=Ye(()=>e[n]);return o}const pb=2.4,qae=.2126729,Jae=.7151522,Gae=.072175,vWt=.55,SWt=.58,wWt=.57,TWt=.62,H_=.03,Yae=1.45,xWt=5e-4,FWt=1.25,kWt=1.25,Zae=.078,Xae=12.82051282051282,z_=.06,Qae=.001;function ele(t,e){const o=(t.r/255)**pb,n=(t.g/255)**pb,r=(t.b/255)**pb,i=(e.r/255)**pb,s=(e.g/255)**pb,a=(e.b/255)**pb;let l=o*qae+n*Jae+r*Gae,u=i*qae+s*Jae+a*Gae;if(l<=H_&&(l+=(H_-l)**Yae),u<=H_&&(u+=(H_-u)**Yae),Math.abs(u-l)<xWt)return 0;let c;if(u>l){const d=(u**vWt-l**SWt)*FWt;c=d<Qae?0:d<Zae?d-d*Xae*z_:d-z_}else{const d=(u**TWt-l**wWt)*kWt;c=d>-Qae?0:d>-Zae?d-d*Xae*z_:d+z_}return c*100}function K9(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function LWt(t){return K9(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const tle=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,EWt={rgb:(t,e,o,n)=>({r:t,g:e,b:o,a:n}),rgba:(t,e,o,n)=>({r:t,g:e,b:o,a:n}),hsl:(t,e,o,n)=>ole({h:t,s:e,l:o,a:n}),hsla:(t,e,o,n)=>ole({h:t,s:e,l:o,a:n}),hsv:(t,e,o,n)=>bL({h:t,s:e,v:o,a:n}),hsva:(t,e,o,n)=>bL({h:t,s:e,v:o,a:n})};function hx(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&tle.test(t)){const{groups:e}=t.match(tle),{fn:o,values:n}=e,r=n.split(/,\s*|\s*\/\s*|\s+/).map((i,s)=>i.endsWith("%")||s>0&&s<3&&["hsl","hsla","hsv","hsva"].includes(o)?parseFloat(i)/100:parseFloat(i));return EWt[o](...r)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(o=>o+o).join(""):[6,8].includes(e.length)||void 0,_Wt(e)}else if(typeof t=="object"){if(J4(t,["r","g","b"]))return t;if(J4(t,["h","s","l"]))return bL(ELe(t));if(J4(t,["h","s","v"]))return bL(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name}
193
- Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function bL(t){const{h:e,s:o,v:n,a:r}=t,i=a=>{const l=(a+e/60)%6;return n-n*o*Math.max(Math.min(l,4-l,1),0)},s=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:s[0],g:s[1],b:s[2],a:r}}function ole(t){return bL(ELe(t))}function ELe(t){const{h:e,s:o,l:n,a:r}=t,i=n+o*Math.min(n,1-n),s=i===0?0:2-2*n/i;return{h:e,s,v:i,a:r}}function _Wt(t){t=DWt(t);let[e,o,n,r]=CWt(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:o,b:n,a:r}}function DWt(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=Uae(Uae(t,6),8,"F")),t}function BWt(t){const e=Math.abs(ele(hx(0),hx(t)));return Math.abs(ele(hx(16777215),hx(t)))>Math.min(e,50)?"#fff":"#000"}function KE(t,e){return o=>Object.keys(t).reduce((n,r)=>{const i=typeof t[r]=="object"&&t[r]!=null&&!Array.isArray(t[r])?t[r]:{type:t[r]};return o&&r in o?n[r]={...i,default:o[r]}:n[r]=i,e&&!n[r].source&&(n[r].source=e),n},{})}function qP(t,e){const o=zs();if(!o)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return o}function $Wt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qP("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const U9=Symbol.for("vuetify:defaults");function _Le(){const t=xo(U9);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function RWt(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[DF(e)]<"u")}function AWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_Le();const n=qP("useDefaults");if(e=e??n.type.name??n.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const r=Q(()=>o.value?.[t._as??e]),i=new Proxy(t,{get(l,u){const c=Reflect.get(l,u);if(u==="class"||u==="style")return[r.value?.[u],c].filter(p=>p!=null);if(RWt(n.vnode,u))return c;const d=r.value?.[u];if(d!==void 0)return d;const m=o.value?.global?.[u];return m!==void 0?m:c}}),s=Yo();tr(()=>{if(r.value){const l=Object.entries(r.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function a(){const l=$Wt(U9,n);er(U9,Q(()=>s.value?LLe(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function NWt(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=KE(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(o){return gWt(o,e)},t.props._as=String,t.setup=function(o,n){const r=_Le();if(!r.value)return t._setup(o,n);const{props:i,provideSubDefaults:s}=AWt(o,o._as??t.name,r),a=t._setup(i,n);return s(),a}}return t}function VWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?NWt:X)(e)}function IWt(t){const e=qP("useRender");e.render=t}function PWt(t){return bWt(()=>{const{class:e,style:o}=OWt(t);return{colorClasses:e,colorStyles:o}})}function MWt(t){const{colorClasses:e,colorStyles:o}=PWt(()=>({background:Sr(t)}));return{backgroundColorClasses:e,backgroundColorStyles:o}}function OWt(t){const e=Sr(t),o=[],n={};if(e.background)if(K9(e.background)){if(n.backgroundColor=e.background,!e.text&&LWt(e.background)){const r=hx(e.background);if(r.a==null||r.a===1){const i=BWt(r);n.color=i,n.caretColor=i}}}else o.push(`bg-${e.background}`);return e.text&&(K9(e.text)?(n.color=e.text,n.caretColor=e.text):o.push(`text-${e.text}`)),{class:o,style:n}}const WWt=KE({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function HWt(t){return{dimensionStyles:Q(()=>{const e={},o=mb(t.height),n=mb(t.maxHeight),r=mb(t.maxWidth),i=mb(t.minHeight),s=mb(t.minWidth),a=mb(t.width);return o!=null&&(e.height=o),n!=null&&(e.maxHeight=n),r!=null&&(e.maxWidth=r),i!=null&&(e.minHeight=i),s!=null&&(e.minWidth=s),a!=null&&(e.width=a),e})}}const zWt=KE({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function jWt(t){return{elevationClasses:Ye(()=>{const e=Vo(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const KWt=Symbol.for("vuetify:locale");function UWt(){const t=xo(KWt);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}const nle=Symbol.for("vuetify:theme"),qWt=KE({theme:String},"theme");function JWt(t){qP("provideTheme");const e=xo(nle,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=Ye(()=>t.theme??e.name.value),n=Ye(()=>e.themes.value[o.value]),r=Ye(()=>e.isDisabled?void 0:`${e.prefix}theme--${o.value}`),i={...e,name:o,current:n,themeClasses:r};return er(nle,i),i}const GWt={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function YWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y("div",{class:U(["v-skeleton-loader__bone",`v-skeleton-loader__${t}`])},[e])}function rle(t){const[e,o]=t.split("@");return Array.from({length:o}).map(()=>JP(e))}function JP(t){let e=[];if(!t)return e;const o=GWt[t];if(t!==o){if(t.includes(","))return ile(t);if(t.includes("@"))return rle(t);o.includes(",")?e=ile(o):o.includes("@")?e=rle(o):o&&e.push(JP(o))}return[YWt(t,e)]}function ile(t){return t.replace(/\s/g,"").split(",").map(JP)}const ZWt=KE({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...WWt(),...zWt(),...qWt()},"VSkeletonLoader");VWt()({name:"VSkeletonLoader",inheritAttrs:!1,props:ZWt(),setup(t,e){let{attrs:o,slots:n}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=MWt(()=>t.color),{dimensionStyles:s}=HWt(t),{elevationClasses:a}=jWt(t),{themeClasses:l}=JWt(t),{t:u}=UWt(),c=Q(()=>JP(yWt(t.type).join(",")));return IWt(()=>{const d=!n.default||t.loading,m=t.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(t.loadingText),role:"alert"};return d?y("div",hn({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},l.value,r.value,a.value],style:[i.value,s.value]},m,o),[c.value]):y(ce,null,[n.default?.()])}),{}}});var Wi="top",Fa="bottom",ka="right",Hi="left",GP="auto",tw=[Wi,Fa,ka,Hi],zC="start",Kv="end",DLe="clippingParents",DG="viewport",t1="popper",BLe="reference",q9=tw.reduce(function(t,e){return t.concat([e+"-"+zC,e+"-"+Kv])},[]),BG=[].concat(tw,[GP]).reduce(function(t,e){return t.concat([e,e+"-"+zC,e+"-"+Kv])},[]),$Le="beforeRead",RLe="read",ALe="afterRead",NLe="beforeMain",VLe="main",ILe="afterMain",PLe="beforeWrite",MLe="write",OLe="afterWrite",WLe=[$Le,RLe,ALe,NLe,VLe,ILe,PLe,MLe,OLe];function ld(t){return t?(t.nodeName||"").toLowerCase():null}function La(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function jC(t){var e=La(t).Element;return t instanceof e||t instanceof Element}function El(t){var e=La(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function $G(t){if(typeof ShadowRoot>"u")return!1;var e=La(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function XWt(t){var e=t.state;Object.keys(e.elements).forEach(function(o){var n=e.styles[o]||{},r=e.attributes[o]||{},i=e.elements[o];!El(i)||!ld(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(s){var a=r[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function QWt(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],i=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:o[n]),a=s.reduce(function(l,u){return l[u]="",l},{});!El(r)||!ld(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const RG={name:"applyStyles",enabled:!0,phase:"write",fn:XWt,effect:QWt,requires:["computeStyles"]};function Kc(t){return t.split("-")[0]}var Gy=Math.max,c3=Math.min,Uv=Math.round;function J9(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function HLe(){return!/^((?!chrome|android).)*safari/i.test(J9())}function qv(t,e,o){e===void 0&&(e=!1),o===void 0&&(o=!1);var n=t.getBoundingClientRect(),r=1,i=1;e&&El(t)&&(r=t.offsetWidth>0&&Uv(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Uv(n.height)/t.offsetHeight||1);var s=jC(t)?La(t):window,a=s.visualViewport,l=!HLe()&&o,u=(n.left+(l&&a?a.offsetLeft:0))/r,c=(n.top+(l&&a?a.offsetTop:0))/i,d=n.width/r,m=n.height/i;return{width:d,height:m,top:c,right:u+d,bottom:c+m,left:u,x:u,y:c}}function AG(t){var e=qv(t),o=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:n}}function zLe(t,e){var o=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(o&&$G(o)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function tp(t){return La(t).getComputedStyle(t)}function eHt(t){return["table","td","th"].indexOf(ld(t))>=0}function og(t){return((jC(t)?t.ownerDocument:t.document)||window.document).documentElement}function YP(t){return ld(t)==="html"?t:t.assignedSlot||t.parentNode||($G(t)?t.host:null)||og(t)}function sle(t){return!El(t)||tp(t).position==="fixed"?null:t.offsetParent}function tHt(t){var e=/firefox/i.test(J9()),o=/Trident/i.test(J9());if(o&&El(t)){var n=tp(t);if(n.position==="fixed")return null}var r=YP(t);for($G(r)&&(r=r.host);El(r)&&["html","body"].indexOf(ld(r))<0;){var i=tp(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function UE(t){for(var e=La(t),o=sle(t);o&&eHt(o)&&tp(o).position==="static";)o=sle(o);return o&&(ld(o)==="html"||ld(o)==="body"&&tp(o).position==="static")?e:o||tHt(t)||e}function NG(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function BF(t,e,o){return Gy(t,c3(e,o))}function oHt(t,e,o){var n=BF(t,e,o);return n>o?o:n}function jLe(){return{top:0,right:0,bottom:0,left:0}}function KLe(t){return Object.assign({},jLe(),t)}function ULe(t,e){return e.reduce(function(o,n){return o[n]=t,o},{})}var nHt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,KLe(typeof t!="number"?t:ULe(t,tw))};function rHt(t){var e,o=t.state,n=t.name,r=t.options,i=o.elements.arrow,s=o.modifiersData.popperOffsets,a=Kc(o.placement),l=NG(a),u=[Hi,ka].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=nHt(r.padding,o),m=AG(i),p=l==="y"?Wi:Hi,h=l==="y"?Fa:ka,f=o.rects.reference[c]+o.rects.reference[l]-s[l]-o.rects.popper[c],g=s[l]-o.rects.reference[l],b=UE(i),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=f/2-g/2,T=d[p],x=v-m[c]-d[h],F=v/2-m[c]/2+S,B=BF(T,F,x),N=l;o.modifiersData[n]=(e={},e[N]=B,e.centerOffset=B-F,e)}}function iHt(t){var e=t.state,o=t.options,n=o.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||zLe(e.elements.popper,r)&&(e.elements.arrow=r))}const qLe={name:"arrow",enabled:!0,phase:"main",fn:rHt,effect:iHt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jv(t){return t.split("-")[1]}var sHt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aHt(t,e){var o=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:Uv(o*r)/r||0,y:Uv(n*r)/r||0}}function ale(t){var e,o=t.popper,n=t.popperRect,r=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=t.isFixed,m=s.x,p=m===void 0?0:m,h=s.y,f=h===void 0?0:h,g=typeof c=="function"?c({x:p,y:f}):{x:p,y:f};p=g.x,f=g.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),S=Hi,T=Wi,x=window;if(u){var F=UE(o),B="clientHeight",N="clientWidth";if(F===La(o)&&(F=og(o),tp(F).position!=="static"&&a==="absolute"&&(B="scrollHeight",N="scrollWidth")),F=F,r===Wi||(r===Hi||r===ka)&&i===Kv){T=Fa;var R=d&&F===x&&x.visualViewport?x.visualViewport.height:F[B];f-=R-n.height,f*=l?1:-1}if(r===Hi||(r===Wi||r===Fa)&&i===Kv){S=ka;var P=d&&F===x&&x.visualViewport?x.visualViewport.width:F[N];p-=P-n.width,p*=l?1:-1}}var E=Object.assign({position:a},u&&sHt),L=c===!0?aHt({x:p,y:f},La(o)):{x:p,y:f};if(p=L.x,f=L.y,l){var A;return Object.assign({},E,(A={},A[T]=v?"0":"",A[S]=b?"0":"",A.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",A))}return Object.assign({},E,(e={},e[T]=v?f+"px":"",e[S]=b?p+"px":"",e.transform="",e))}function lHt(t){var e=t.state,o=t.options,n=o.gpuAcceleration,r=n===void 0?!0:n,i=o.adaptive,s=i===void 0?!0:i,a=o.roundOffsets,l=a===void 0?!0:a,u={placement:Kc(e.placement),variation:Jv(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ale(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ale(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const VG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lHt,data:{}};var j_={passive:!0};function uHt(t){var e=t.state,o=t.instance,n=t.options,r=n.scroll,i=r===void 0?!0:r,s=n.resize,a=s===void 0?!0:s,l=La(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",o.update,j_)}),a&&l.addEventListener("resize",o.update,j_),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",o.update,j_)}),a&&l.removeEventListener("resize",o.update,j_)}}const IG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:uHt,data:{}};var cHt={left:"right",right:"left",bottom:"top",top:"bottom"};function s$(t){return t.replace(/left|right|bottom|top/g,function(e){return cHt[e]})}var dHt={start:"end",end:"start"};function lle(t){return t.replace(/start|end/g,function(e){return dHt[e]})}function PG(t){var e=La(t),o=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:o,scrollTop:n}}function MG(t){return qv(og(t)).left+PG(t).scrollLeft}function mHt(t,e){var o=La(t),n=og(t),r=o.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;var u=HLe();(u||!u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a+MG(t),y:l}}function pHt(t){var e,o=og(t),n=PG(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=Gy(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Gy(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+MG(t),l=-n.scrollTop;return tp(r||o).direction==="rtl"&&(a+=Gy(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function OG(t){var e=tp(t),o=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function JLe(t){return["html","body","#document"].indexOf(ld(t))>=0?t.ownerDocument.body:El(t)&&OG(t)?t:JLe(YP(t))}function $F(t,e){var o;e===void 0&&(e=[]);var n=JLe(t),r=n===((o=t.ownerDocument)==null?void 0:o.body),i=La(n),s=r?[i].concat(i.visualViewport||[],OG(n)?n:[]):n,a=e.concat(s);return r?a:a.concat($F(YP(s)))}function G9(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function hHt(t,e){var o=qv(t,!1,e==="fixed");return o.top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o}function ule(t,e,o){return e===DG?G9(mHt(t,o)):jC(e)?hHt(e,o):G9(pHt(og(t)))}function fHt(t){var e=$F(YP(t)),o=["absolute","fixed"].indexOf(tp(t).position)>=0,n=o&&El(t)?UE(t):t;return jC(n)?e.filter(function(r){return jC(r)&&zLe(r,n)&&ld(r)!=="body"}):[]}function gHt(t,e,o,n){var r=e==="clippingParents"?fHt(t):[].concat(e),i=[].concat(r,[o]),s=i[0],a=i.reduce(function(l,u){var c=ule(t,u,n);return l.top=Gy(c.top,l.top),l.right=c3(c.right,l.right),l.bottom=c3(c.bottom,l.bottom),l.left=Gy(c.left,l.left),l},ule(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function GLe(t){var e=t.reference,o=t.element,n=t.placement,r=n?Kc(n):null,i=n?Jv(n):null,s=e.x+e.width/2-o.width/2,a=e.y+e.height/2-o.height/2,l;switch(r){case Wi:l={x:s,y:e.y-o.height};break;case Fa:l={x:s,y:e.y+e.height};break;case ka:l={x:e.x+e.width,y:a};break;case Hi:l={x:e.x-o.width,y:a};break;default:l={x:e.x,y:e.y}}var u=r?NG(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case zC:l[u]=l[u]-(e[c]/2-o[c]/2);break;case Kv:l[u]=l[u]+(e[c]/2-o[c]/2);break}}return l}function Gv(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=n===void 0?t.placement:n,i=o.strategy,s=i===void 0?t.strategy:i,a=o.boundary,l=a===void 0?DLe:a,u=o.rootBoundary,c=u===void 0?DG:u,d=o.elementContext,m=d===void 0?t1:d,p=o.altBoundary,h=p===void 0?!1:p,f=o.padding,g=f===void 0?0:f,b=KLe(typeof g!="number"?g:ULe(g,tw)),v=m===t1?BLe:t1,S=t.rects.popper,T=t.elements[h?v:m],x=gHt(jC(T)?T:T.contextElement||og(t.elements.popper),l,c,s),F=qv(t.elements.reference),B=GLe({reference:F,element:S,placement:r}),N=G9(Object.assign({},S,B)),R=m===t1?N:F,P={top:x.top-R.top+b.top,bottom:R.bottom-x.bottom+b.bottom,left:x.left-R.left+b.left,right:R.right-x.right+b.right},E=t.modifiersData.offset;if(m===t1&&E){var L=E[r];Object.keys(P).forEach(function(A){var I=[ka,Fa].indexOf(A)>=0?1:-1,W=[Wi,Fa].indexOf(A)>=0?"y":"x";P[A]+=L[W]*I})}return P}function yHt(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=o.boundary,i=o.rootBoundary,s=o.padding,a=o.flipVariations,l=o.allowedAutoPlacements,u=l===void 0?BG:l,c=Jv(n),d=c?a?q9:q9.filter(function(h){return Jv(h)===c}):tw,m=d.filter(function(h){return u.indexOf(h)>=0});m.length===0&&(m=d);var p=m.reduce(function(h,f){return h[f]=Gv(t,{placement:f,boundary:r,rootBoundary:i,padding:s})[Kc(f)],h},{});return Object.keys(p).sort(function(h,f){return p[h]-p[f]})}function CHt(t){if(Kc(t)===GP)return[];var e=s$(t);return[lle(t),e,lle(e)]}function bHt(t){var e=t.state,o=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!0:s,l=o.fallbackPlacements,u=o.padding,c=o.boundary,d=o.rootBoundary,m=o.altBoundary,p=o.flipVariations,h=p===void 0?!0:p,f=o.allowedAutoPlacements,g=e.options.placement,b=Kc(g),v=b===g,S=l||(v||!h?[s$(g)]:CHt(g)),T=[g].concat(S).reduce(function(me,H){return me.concat(Kc(H)===GP?yHt(e,{placement:H,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:f}):H)},[]),x=e.rects.reference,F=e.rects.popper,B=new Map,N=!0,R=T[0],P=0;P<T.length;P++){var E=T[P],L=Kc(E),A=Jv(E)===zC,I=[Wi,Fa].indexOf(L)>=0,W=I?"width":"height",O=Gv(e,{placement:E,boundary:c,rootBoundary:d,altBoundary:m,padding:u}),K=I?A?ka:Hi:A?Fa:Wi;x[W]>F[W]&&(K=s$(K));var fe=s$(K),Ve=[];if(i&&Ve.push(O[L]<=0),a&&Ve.push(O[K]<=0,O[fe]<=0),Ve.every(function(me){return me})){R=E,N=!1;break}B.set(E,Ve)}if(N)for(var Se=h?3:1,G=function(me){var H=T.find(function(be){var le=B.get(be);if(le)return le.slice(0,me).every(function(ue){return ue})});if(H)return R=H,"break"},Ae=Se;Ae>0;Ae--){var q=G(Ae);if(q==="break")break}e.placement!==R&&(e.modifiersData[n]._skip=!0,e.placement=R,e.reset=!0)}}const YLe={name:"flip",enabled:!0,phase:"main",fn:bHt,requiresIfExists:["offset"],data:{_skip:!1}};function cle(t,e,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-e.height-o.y,right:t.right-e.width+o.x,bottom:t.bottom-e.height+o.y,left:t.left-e.width-o.x}}function dle(t){return[Wi,ka,Fa,Hi].some(function(e){return t[e]>=0})}function vHt(t){var e=t.state,o=t.name,n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=Gv(e,{elementContext:"reference"}),a=Gv(e,{altBoundary:!0}),l=cle(s,n),u=cle(a,r,i),c=dle(l),d=dle(u);e.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const ZLe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vHt};function SHt(t,e,o){var n=Kc(t),r=[Hi,Wi].indexOf(n)>=0?-1:1,i=typeof o=="function"?o(Object.assign({},e,{placement:t})):o,s=i[0],a=i[1];return s=s||0,a=(a||0)*r,[Hi,ka].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function wHt(t){var e=t.state,o=t.options,n=t.name,r=o.offset,i=r===void 0?[0,0]:r,s=BG.reduce(function(c,d){return c[d]=SHt(d,e.rects,i),c},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}const XLe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wHt};function THt(t){var e=t.state,o=t.name;e.modifiersData[o]=GLe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const WG={name:"popperOffsets",enabled:!0,phase:"read",fn:THt,data:{}};function xHt(t){return t==="x"?"y":"x"}function FHt(t){var e=t.state,o=t.options,n=t.name,r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!1:s,l=o.boundary,u=o.rootBoundary,c=o.altBoundary,d=o.padding,m=o.tether,p=m===void 0?!0:m,h=o.tetherOffset,f=h===void 0?0:h,g=Gv(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Kc(e.placement),v=Jv(e.placement),S=!v,T=NG(b),x=xHt(T),F=e.modifiersData.popperOffsets,B=e.rects.reference,N=e.rects.popper,R=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,P=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(F){if(i){var A,I=T==="y"?Wi:Hi,W=T==="y"?Fa:ka,O=T==="y"?"height":"width",K=F[T],fe=K+g[I],Ve=K-g[W],Se=p?-N[O]/2:0,G=v===zC?B[O]:N[O],Ae=v===zC?-N[O]:-B[O],q=e.elements.arrow,me=p&&q?AG(q):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:jLe(),be=H[I],le=H[W],ue=BF(0,B[O],me[O]),Nt=S?B[O]/2-Se-ue-be-P.mainAxis:G-ue-be-P.mainAxis,Vt=S?-B[O]/2+Se+ue+le+P.mainAxis:Ae+ue+le+P.mainAxis,Et=e.elements.arrow&&UE(e.elements.arrow),z=Et?T==="y"?Et.clientTop||0:Et.clientLeft||0:0,j=(A=E?.[T])!=null?A:0,ee=K+Nt-j-z,oe=K+Vt-j,re=BF(p?c3(fe,ee):fe,K,p?Gy(Ve,oe):Ve);F[T]=re,L[T]=re-K}if(a){var ie,de=T==="x"?Wi:Hi,he=T==="x"?Fa:ka,te=F[x],ne=x==="y"?"height":"width",Ge=te+g[de],Te=te-g[he],we=[Wi,Hi].indexOf(b)!==-1,xe=(ie=E?.[x])!=null?ie:0,Ne=we?Ge:te-B[ne]-N[ne]-xe+P.altAxis,Ce=we?te+B[ne]+N[ne]-xe-P.altAxis:Te,Qe=p&&we?oHt(Ne,te,Ce):BF(p?Ne:Ge,te,p?Ce:Te);F[x]=Qe,L[x]=Qe-te}e.modifiersData[n]=L}}const QLe={name:"preventOverflow",enabled:!0,phase:"main",fn:FHt,requiresIfExists:["offset"]};function kHt(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function LHt(t){return t===La(t)||!El(t)?PG(t):kHt(t)}function EHt(t){var e=t.getBoundingClientRect(),o=Uv(e.width)/t.offsetWidth||1,n=Uv(e.height)/t.offsetHeight||1;return o!==1||n!==1}function _Ht(t,e,o){o===void 0&&(o=!1);var n=El(e),r=El(e)&&EHt(e),i=og(e),s=qv(t,r,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!o)&&((ld(e)!=="body"||OG(i))&&(a=LHt(e)),El(e)?(l=qv(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=MG(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function DHt(t){var e=new Map,o=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function r(i){o.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!o.has(a)){var l=e.get(a);l&&r(l)}}),n.push(i)}return t.forEach(function(i){o.has(i.name)||r(i)}),n}function BHt(t){var e=DHt(t);return WLe.reduce(function(o,n){return o.concat(e.filter(function(r){return r.phase===n}))},[])}function $Ht(t){var e;return function(){return e||(e=new Promise(function(o){Promise.resolve().then(function(){e=void 0,o(t())})})),e}}function RHt(t){var e=t.reduce(function(o,n){var r=o[n.name];return o[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,o},{});return Object.keys(e).map(function(o){return e[o]})}var mle={placement:"bottom",modifiers:[],strategy:"absolute"};function ple(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function ZP(t){t===void 0&&(t={});var e=t,o=e.defaultModifiers,n=o===void 0?[]:o,r=e.defaultOptions,i=r===void 0?mle:r;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},mle,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},c=[],d=!1,m={state:u,setOptions:function(f){var g=typeof f=="function"?f(u.options):f;h(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:jC(s)?$F(s):s.contextElement?$F(s.contextElement):[],popper:$F(a)};var b=BHt(RHt([].concat(n,u.options.modifiers)));return u.orderedModifiers=b.filter(function(v){return v.enabled}),p(),m.update()},forceUpdate:function(){if(!d){var f=u.elements,g=f.reference,b=f.popper;if(ple(g,b)){u.rects={reference:_Ht(g,UE(b),u.options.strategy==="fixed"),popper:AG(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var S=u.orderedModifiers[v],T=S.fn,x=S.options,F=x===void 0?{}:x,B=S.name;typeof T=="function"&&(u=T({state:u,options:F,name:B,instance:m})||u)}}}},update:$Ht(function(){return new Promise(function(f){m.forceUpdate(),f(u)})}),destroy:function(){h(),d=!0}};if(!ple(s,a))return m;m.setOptions(l).then(function(f){!d&&l.onFirstUpdate&&l.onFirstUpdate(f)});function p(){u.orderedModifiers.forEach(function(f){var g=f.name,b=f.options,v=b===void 0?{}:b,S=f.effect;if(typeof S=="function"){var T=S({state:u,name:g,instance:m,options:v}),x=function(){};c.push(T||x)}})}function h(){c.forEach(function(f){return f()}),c=[]}return m}}var AHt=ZP(),NHt=[IG,WG,VG,RG],VHt=ZP({defaultModifiers:NHt}),IHt=[IG,WG,VG,RG,XLe,YLe,QLe,qLe,ZLe],HG=ZP({defaultModifiers:IHt});const eEe=Object.freeze(Object.defineProperty({__proto__:null,afterMain:ILe,afterRead:ALe,afterWrite:OLe,applyStyles:RG,arrow:qLe,auto:GP,basePlacements:tw,beforeMain:NLe,beforeRead:$Le,beforeWrite:PLe,bottom:Fa,clippingParents:DLe,computeStyles:VG,createPopper:HG,createPopperBase:AHt,createPopperLite:VHt,detectOverflow:Gv,end:Kv,eventListeners:IG,flip:YLe,hide:ZLe,left:Hi,main:VLe,modifierPhases:WLe,offset:XLe,placements:BG,popper:t1,popperGenerator:ZP,popperOffsets:WG,preventOverflow:QLe,read:RLe,reference:BLe,right:ka,start:zC,top:Wi,variationPlacements:q9,viewport:DG,write:MLe},Symbol.toStringTag,{value:"Module"})),Jp=new Map,G4={set(t,e,o){Jp.has(t)||Jp.set(t,new Map);const n=Jp.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,o)},get(t,e){return Jp.has(t)&&Jp.get(t).get(e)||null},remove(t,e){if(!Jp.has(t))return;const o=Jp.get(t);o.delete(e),o.size===0&&Jp.delete(t)}},PHt=1e6,MHt=1e3,Y9="transitionend",tEe=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,o)=>`#${CSS.escape(o)}`)),t),OHt=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),WHt=t=>{do t+=Math.floor(Math.random()*PHt);while(document.getElementById(t));return t},HHt=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:o}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(o);return!n&&!r?0:(e=e.split(",")[0],o=o.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(o))*MHt)},oEe=t=>{t.dispatchEvent(new Event(Y9))},Dm=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Ef=t=>Dm(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(tEe(t)):null,ow=t=>{if(!Dm(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",o=t.closest("details:not([open])");if(!o)return e;if(o!==t){const n=t.closest("summary");if(n&&n.parentNode!==o||n===null)return!1}return e},_f=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",nEe=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?nEe(t.parentNode):null},d3=()=>{},qE=t=>{t.offsetHeight},rEe=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Y4=[],zHt=t=>{document.readyState==="loading"?(Y4.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Y4)e()}),Y4.push(t)):t()},Ml=()=>document.documentElement.dir==="rtl",tu=t=>{zHt(()=>{const e=rEe();if(e){const o=t.NAME,n=e.fn[o];e.fn[o]=t.jQueryInterface,e.fn[o].Constructor=t,e.fn[o].noConflict=()=>(e.fn[o]=n,t.jQueryInterface)}})},xs=(t,e=[],o=t)=>typeof t=="function"?t.call(...e):o,iEe=(t,e,o=!0)=>{if(!o){xs(t);return}const n=HHt(e)+5;let r=!1;const i=({target:s})=>{s===e&&(r=!0,e.removeEventListener(Y9,i),xs(t))};e.addEventListener(Y9,i),setTimeout(()=>{r||oEe(e)},n)},zG=(t,e,o,n)=>{const r=t.length;let i=t.indexOf(e);return i===-1?!o&&n?t[r-1]:t[0]:(i+=o?1:-1,n&&(i=(i+r)%r),t[Math.max(0,Math.min(i,r-1))])},jHt=/[^.]*(?=\..*)\.|.*/,KHt=/\..*/,UHt=/::\d+$/,Z4={};let hle=1;const sEe={mouseenter:"mouseover",mouseleave:"mouseout"},qHt=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function aEe(t,e){return e&&`${e}::${hle++}`||t.uidEvent||hle++}function lEe(t){const e=aEe(t);return t.uidEvent=e,Z4[e]=Z4[e]||{},Z4[e]}function JHt(t,e){return function o(n){return jG(n,{delegateTarget:t}),o.oneOff&&Ee.off(t,n.type,e),e.apply(t,[n])}}function GHt(t,e,o){return function n(r){const i=t.querySelectorAll(e);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return jG(r,{delegateTarget:s}),n.oneOff&&Ee.off(t,r.type,e,o),o.apply(s,[r])}}function uEe(t,e,o=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===o)}function cEe(t,e,o){const n=typeof e=="string",r=n?o:e||o;let i=dEe(t);return qHt.has(i)||(i=t),[n,r,i]}function fle(t,e,o,n,r){if(typeof e!="string"||!t)return;let[i,s,a]=cEe(e,o,n);e in sEe&&(s=(p=>function(h){if(!h.relatedTarget||h.relatedTarget!==h.delegateTarget&&!h.delegateTarget.contains(h.relatedTarget))return p.call(this,h)})(s));const l=lEe(t),u=l[a]||(l[a]={}),c=uEe(u,s,i?o:null);if(c){c.oneOff=c.oneOff&&r;return}const d=aEe(s,e.replace(jHt,"")),m=i?GHt(t,o,s):JHt(t,s);m.delegationSelector=i?o:null,m.callable=s,m.oneOff=r,m.uidEvent=d,u[d]=m,t.addEventListener(a,m,i)}function Z9(t,e,o,n,r){const i=uEe(e[o],n,r);i&&(t.removeEventListener(o,i,!!r),delete e[o][i.uidEvent])}function YHt(t,e,o,n){const r=e[o]||{};for(const[i,s]of Object.entries(r))i.includes(n)&&Z9(t,e,o,s.callable,s.delegationSelector)}function dEe(t){return t=t.replace(KHt,""),sEe[t]||t}const Ee={on(t,e,o,n){fle(t,e,o,n,!1)},one(t,e,o,n){fle(t,e,o,n,!0)},off(t,e,o,n){if(typeof e!="string"||!t)return;const[r,i,s]=cEe(e,o,n),a=s!==e,l=lEe(t),u=l[s]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;Z9(t,l,s,i,r?o:null);return}if(c)for(const d of Object.keys(l))YHt(t,l,d,e.slice(1));for(const[d,m]of Object.entries(u)){const p=d.replace(UHt,"");(!a||e.includes(p))&&Z9(t,l,s,m.callable,m.delegationSelector)}},trigger(t,e,o){if(typeof e!="string"||!t)return null;const n=rEe(),r=dEe(e),i=e!==r;let s=null,a=!0,l=!0,u=!1;i&&n&&(s=n.Event(e,o),n(t).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=jG(new Event(e,{bubbles:a,cancelable:!0}),o);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function jG(t,e={}){for(const[o,n]of Object.entries(e))try{t[o]=n}catch{Object.defineProperty(t,o,{configurable:!0,get(){return n}})}return t}function gle(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function X4(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Bm={setDataAttribute(t,e,o){t.setAttribute(`data-bs-${X4(e)}`,o)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${X4(e)}`)},getDataAttributes(t){if(!t)return{};const e={},o=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of o){let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),e[r]=gle(t.dataset[n])}return e},getDataAttribute(t,e){return gle(t.getAttribute(`data-bs-${X4(e)}`))}};let JE=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,o){const n=Dm(o)?Bm.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...Dm(o)?Bm.getDataAttributes(o):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,o=this.constructor.DefaultType){for(const[n,r]of Object.entries(o)){const i=e[n],s=Dm(i)?"element":OHt(i);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${r}".`)}}};const ZHt="5.3.8";let Xu=class extends JE{constructor(e,o){super(),e=Ef(e),e&&(this._element=e,this._config=this._getConfig(o),G4.set(this._element,this.constructor.DATA_KEY,this))}dispose(){G4.remove(this._element,this.constructor.DATA_KEY),Ee.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,o,n=!0){iEe(e,o,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return G4.get(Ef(e),this.DATA_KEY)}static getOrCreateInstance(e,o={}){return this.getInstance(e)||new this(e,typeof o=="object"?o:null)}static get VERSION(){return ZHt}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}};const Q4=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let o=t.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),e=o&&o!=="#"?o.trim():null}return e?e.split(",").map(o=>tEe(o)).join(","):null},vt={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(o=>o.matches(e))},parents(t,e){const o=[];let n=t.parentNode.closest(e);for(;n;)o.push(n),n=n.parentNode.closest(e);return o},prev(t,e){let o=t.previousElementSibling;for(;o;){if(o.matches(e))return[o];o=o.previousElementSibling}return[]},next(t,e){let o=t.nextElementSibling;for(;o;){if(o.matches(e))return[o];o=o.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(o=>!_f(o)&&ow(o))},getSelectorFromElement(t){const e=Q4(t);return e&&vt.findOne(e)?e:null},getElementFromSelector(t){const e=Q4(t);return e?vt.findOne(e):null},getMultipleElementsFromSelector(t){const e=Q4(t);return e?vt.find(e):[]}},XP=(t,e="hide")=>{const o=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Ee.on(document,o,`[data-bs-dismiss="${n}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),_f(this))return;const i=vt.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(i)[e]()})},XHt="alert",QHt="bs.alert",mEe=`.${QHt}`,e7t=`close${mEe}`,t7t=`closed${mEe}`,o7t="fade",n7t="show";let pEe=class hEe extends Xu{static get NAME(){return XHt}close(){if(Ee.trigger(this._element,e7t).defaultPrevented)return;this._element.classList.remove(n7t);const e=this._element.classList.contains(o7t);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Ee.trigger(this._element,t7t),this.dispose()}static jQueryInterface(e){return this.each(function(){const o=hEe.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};XP(pEe,"close");tu(pEe);const r7t="button",i7t="bs.button",s7t=`.${i7t}`,a7t=".data-api",l7t="active",yle='[data-bs-toggle="button"]',u7t=`click${s7t}${a7t}`;let fEe=class gEe extends Xu{static get NAME(){return r7t}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(l7t))}static jQueryInterface(e){return this.each(function(){const o=gEe.getOrCreateInstance(this);e==="toggle"&&o[e]()})}};Ee.on(document,u7t,yle,t=>{t.preventDefault();const e=t.target.closest(yle);fEe.getOrCreateInstance(e).toggle()});tu(fEe);const c7t="swipe",nw=".bs.swipe",d7t=`touchstart${nw}`,m7t=`touchmove${nw}`,p7t=`touchend${nw}`,h7t=`pointerdown${nw}`,f7t=`pointerup${nw}`,g7t="touch",y7t="pen",C7t="pointer-event",b7t=40,v7t={endCallback:null,leftCallback:null,rightCallback:null},S7t={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};let Cle=class yEe extends JE{constructor(e,o){super(),this._element=e,!(!e||!yEe.isSupported())&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return v7t}static get DefaultType(){return S7t}static get NAME(){return c7t}dispose(){Ee.off(this._element,nw)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),xs(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=b7t)return;const o=e/this._deltaX;this._deltaX=0,o&&xs(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ee.on(this._element,h7t,e=>this._start(e)),Ee.on(this._element,f7t,e=>this._end(e)),this._element.classList.add(C7t)):(Ee.on(this._element,d7t,e=>this._start(e)),Ee.on(this._element,m7t,e=>this._move(e)),Ee.on(this._element,p7t,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===y7t||e.pointerType===g7t)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}};const w7t="carousel",T7t="bs.carousel",ng=`.${T7t}`,CEe=".data-api",x7t="ArrowLeft",F7t="ArrowRight",k7t=500,dT="next",hb="prev",o1="left",a$="right",L7t=`slide${ng}`,e5=`slid${ng}`,E7t=`keydown${ng}`,_7t=`mouseenter${ng}`,D7t=`mouseleave${ng}`,B7t=`dragstart${ng}`,$7t=`load${ng}${CEe}`,R7t=`click${ng}${CEe}`,bEe="carousel",K_="active",A7t="slide",N7t="carousel-item-end",V7t="carousel-item-start",I7t="carousel-item-next",P7t="carousel-item-prev",vEe=".active",SEe=".carousel-item",M7t=vEe+SEe,O7t=".carousel-item img",W7t=".carousel-indicators",H7t="[data-bs-slide], [data-bs-slide-to]",z7t='[data-bs-ride="carousel"]',j7t={[x7t]:a$,[F7t]:o1},K7t={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},U7t={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};let KG=class wEe extends Xu{constructor(e,o){super(e,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=vt.findOne(W7t,this._element),this._addEventListeners(),this._config.ride===bEe&&this.cycle()}static get Default(){return K7t}static get DefaultType(){return U7t}static get NAME(){return w7t}next(){this._slide(dT)}nextWhenVisible(){!document.hidden&&ow(this._element)&&this.next()}prev(){this._slide(hb)}pause(){this._isSliding&&oEe(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Ee.one(this._element,e5,()=>this.cycle());return}this.cycle()}}to(e){const o=this._getItems();if(e>o.length-1||e<0)return;if(this._isSliding){Ee.one(this._element,e5,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const r=e>n?dT:hb;this._slide(r,o[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Ee.on(this._element,E7t,e=>this._keydown(e)),this._config.pause==="hover"&&(Ee.on(this._element,_7t,()=>this.pause()),Ee.on(this._element,D7t,()=>this._maybeEnableCycle())),this._config.touch&&Cle.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of vt.find(O7t,this._element))Ee.on(o,B7t,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(o1)),rightCallback:()=>this._slide(this._directionToOrder(a$)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),k7t+this._config.interval))}};this._swipeHelper=new Cle(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const o=j7t[e.key];o&&(e.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const o=vt.findOne(vEe,this._indicatorsElement);o.classList.remove(K_),o.removeAttribute("aria-current");const n=vt.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(K_),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const o=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(e,o=null){if(this._isSliding)return;const n=this._getActive(),r=e===dT,i=o||zG(this._getItems(),n,r,this._config.wrap);if(i===n)return;const s=this._getItemIndex(i),a=m=>Ee.trigger(this._element,m,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:s});if(a(L7t).defaultPrevented||!n||!i)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=r?V7t:N7t,c=r?I7t:P7t;i.classList.add(c),qE(i),n.classList.add(u),i.classList.add(u);const d=()=>{i.classList.remove(u,c),i.classList.add(K_),n.classList.remove(K_,c,u),this._isSliding=!1,a(e5)};this._queueCallback(d,n,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(A7t)}_getActive(){return vt.findOne(M7t,this._element)}_getItems(){return vt.find(SEe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ml()?e===o1?hb:dT:e===o1?dT:hb}_orderToDirection(e){return Ml()?e===hb?o1:a$:e===hb?a$:o1}static jQueryInterface(e){return this.each(function(){const o=wEe.getOrCreateInstance(this,e);if(typeof e=="number"){o.to(e);return}if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,R7t,H7t,function(t){const e=vt.getElementFromSelector(this);if(!e||!e.classList.contains(bEe))return;t.preventDefault();const o=KG.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){o.to(n),o._maybeEnableCycle();return}if(Bm.getDataAttribute(this,"slide")==="next"){o.next(),o._maybeEnableCycle();return}o.prev(),o._maybeEnableCycle()});Ee.on(window,$7t,()=>{const t=vt.find(z7t);for(const e of t)KG.getOrCreateInstance(e)});tu(KG);const q7t="collapse",J7t="bs.collapse",GE=`.${J7t}`,G7t=".data-api",Y7t=`show${GE}`,Z7t=`shown${GE}`,X7t=`hide${GE}`,Q7t=`hidden${GE}`,e8t=`click${GE}${G7t}`,t5="show",H1="collapse",U_="collapsing",t8t="collapsed",o8t=`:scope .${H1} .${H1}`,n8t="collapse-horizontal",r8t="width",i8t="height",s8t=".collapse.show, .collapse.collapsing",X9='[data-bs-toggle="collapse"]',a8t={parent:null,toggle:!0},l8t={parent:"(null|element)",toggle:"boolean"};let TEe=class Q9 extends Xu{constructor(e,o){super(e,o),this._isTransitioning=!1,this._triggerArray=[];const n=vt.find(X9);for(const r of n){const i=vt.getSelectorFromElement(r),s=vt.find(i).filter(a=>a===this._element);i!==null&&s.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return a8t}static get DefaultType(){return l8t}static get NAME(){return q7t}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(s8t).filter(i=>i!==this._element).map(i=>Q9.getOrCreateInstance(i,{toggle:!1}))),e.length&&e[0]._isTransitioning||Ee.trigger(this._element,Y7t).defaultPrevented)return;for(const i of e)i.hide();const o=this._getDimension();this._element.classList.remove(H1),this._element.classList.add(U_),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(U_),this._element.classList.add(H1,t5),this._element.style[o]="",Ee.trigger(this._element,Z7t)},r=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[o]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||Ee.trigger(this._element,X7t).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,qE(this._element),this._element.classList.add(U_),this._element.classList.remove(H1,t5);for(const n of this._triggerArray){const r=vt.getElementFromSelector(n);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(U_),this._element.classList.add(H1),Ee.trigger(this._element,Q7t)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}_isShown(e=this._element){return e.classList.contains(t5)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Ef(e.parent),e}_getDimension(){return this._element.classList.contains(n8t)?r8t:i8t}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(X9);for(const o of e){const n=vt.getElementFromSelector(o);n&&this._addAriaAndCollapsedClass([o],this._isShown(n))}}_getFirstLevelChildren(e){const o=vt.find(o8t,this._config.parent);return vt.find(e,this._config.parent).filter(n=>!o.includes(n))}_addAriaAndCollapsedClass(e,o){if(e.length)for(const n of e)n.classList.toggle(t8t,!o),n.setAttribute("aria-expanded",o)}static jQueryInterface(e){const o={};return typeof e=="string"&&/show|hide/.test(e)&&(o.toggle=!1),this.each(function(){const n=Q9.getOrCreateInstance(this,o);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}};Ee.on(document,e8t,X9,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of vt.getMultipleElementsFromSelector(this))TEe.getOrCreateInstance(e,{toggle:!1}).toggle()});tu(TEe);const ble="dropdown",u8t="bs.dropdown",S0=`.${u8t}`,UG=".data-api",c8t="Escape",vle="Tab",d8t="ArrowUp",Sle="ArrowDown",m8t=2,p8t=`hide${S0}`,h8t=`hidden${S0}`,f8t=`show${S0}`,g8t=`shown${S0}`,xEe=`click${S0}${UG}`,FEe=`keydown${S0}${UG}`,y8t=`keyup${S0}${UG}`,n1="show",C8t="dropup",b8t="dropend",v8t="dropstart",S8t="dropup-center",w8t="dropdown-center",my='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',T8t=`${my}.${n1}`,l$=".dropdown-menu",x8t=".navbar",F8t=".navbar-nav",k8t=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",L8t=Ml()?"top-end":"top-start",E8t=Ml()?"top-start":"top-end",_8t=Ml()?"bottom-end":"bottom-start",D8t=Ml()?"bottom-start":"bottom-end",B8t=Ml()?"left-start":"right-start",$8t=Ml()?"right-start":"left-start",R8t="top",A8t="bottom",N8t={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},V8t={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let rw=class u$ extends Xu{constructor(e,o){super(e,o),this._popper=null,this._parent=this._element.parentNode,this._menu=vt.next(this._element,l$)[0]||vt.prev(this._element,l$)[0]||vt.findOne(l$,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return N8t}static get DefaultType(){return V8t}static get NAME(){return ble}toggle(){return this._isShown()?this.hide():this.show()}show(){if(_f(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Ee.trigger(this._element,f8t,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(F8t))for(const o of[].concat(...document.body.children))Ee.on(o,"mouseover",d3);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(n1),this._element.classList.add(n1),Ee.trigger(this._element,g8t,e)}}hide(){if(_f(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Ee.trigger(this._element,p8t,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",d3);this._popper&&this._popper.destroy(),this._menu.classList.remove(n1),this._element.classList.remove(n1),this._element.setAttribute("aria-expanded","false"),Bm.removeDataAttribute(this._menu,"popper"),Ee.trigger(this._element,h8t,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Dm(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${ble.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof eEe>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:Dm(this._config.reference)?e=Ef(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const o=this._getPopperConfig();this._popper=HG(e,this._menu,o)}_isShown(){return this._menu.classList.contains(n1)}_getPlacement(){const e=this._parent;if(e.classList.contains(b8t))return B8t;if(e.classList.contains(v8t))return $8t;if(e.classList.contains(S8t))return R8t;if(e.classList.contains(w8t))return A8t;const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(C8t)?o?E8t:L8t:o?D8t:_8t}_detectNavbar(){return this._element.closest(x8t)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Bm.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...xs(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:o}){const n=vt.find(k8t,this._menu).filter(r=>ow(r));n.length&&zG(n,o,e===Sle,!n.includes(o)).focus()}static jQueryInterface(e){return this.each(function(){const o=u$.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}static clearMenus(e){if(e.button===m8t||e.type==="keyup"&&e.key!==vle)return;const o=vt.find(T8t);for(const n of o){const r=u$.getInstance(n);if(!r||r._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(r._menu);if(i.includes(r._element)||r._config.autoClose==="inside"&&!s||r._config.autoClose==="outside"&&s||r._menu.contains(e.target)&&(e.type==="keyup"&&e.key===vle||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:r._element};e.type==="click"&&(a.clickEvent=e),r._completeHide(a)}}static dataApiKeydownHandler(e){const o=/input|textarea/i.test(e.target.tagName),n=e.key===c8t,r=[d8t,Sle].includes(e.key);if(!r&&!n||o&&!n)return;e.preventDefault();const i=this.matches(my)?this:vt.prev(this,my)[0]||vt.next(this,my)[0]||vt.findOne(my,e.delegateTarget.parentNode),s=u$.getOrCreateInstance(i);if(r){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}};Ee.on(document,FEe,my,rw.dataApiKeydownHandler);Ee.on(document,FEe,l$,rw.dataApiKeydownHandler);Ee.on(document,xEe,rw.clearMenus);Ee.on(document,y8t,rw.clearMenus);Ee.on(document,xEe,my,function(t){t.preventDefault(),rw.getOrCreateInstance(this).toggle()});tu(rw);const kEe="backdrop",I8t="fade",wle="show",Tle=`mousedown.bs.${kEe}`,P8t={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},M8t={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};let LEe=class extends JE{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return P8t}static get DefaultType(){return M8t}static get NAME(){return kEe}show(e){if(!this._config.isVisible){xs(e);return}this._append();const o=this._getElement();this._config.isAnimated&&qE(o),o.classList.add(wle),this._emulateAnimation(()=>{xs(e)})}hide(e){if(!this._config.isVisible){xs(e);return}this._getElement().classList.remove(wle),this._emulateAnimation(()=>{this.dispose(),xs(e)})}dispose(){this._isAppended&&(Ee.off(this._element,Tle),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(I8t),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Ef(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Ee.on(e,Tle,()=>{xs(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){iEe(e,this._getElement(),this._config.isAnimated)}};const O8t="focustrap",W8t="bs.focustrap",m3=`.${W8t}`,H8t=`focusin${m3}`,z8t=`keydown.tab${m3}`,j8t="Tab",K8t="forward",xle="backward",U8t={autofocus:!0,trapElement:null},q8t={autofocus:"boolean",trapElement:"element"};let EEe=class extends JE{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return U8t}static get DefaultType(){return q8t}static get NAME(){return O8t}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ee.off(document,m3),Ee.on(document,H8t,e=>this._handleFocusin(e)),Ee.on(document,z8t,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ee.off(document,m3))}_handleFocusin(e){const{trapElement:o}=this._config;if(e.target===document||e.target===o||o.contains(e.target))return;const n=vt.focusableChildren(o);n.length===0?o.focus():this._lastTabNavDirection===xle?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===j8t&&(this._lastTabNavDirection=e.shiftKey?xle:K8t)}};const Fle=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",kle=".sticky-top",q_="padding-right",Lle="margin-right";let ez=class{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,q_,o=>o+e),this._setElementAttributes(Fle,q_,o=>o+e),this._setElementAttributes(kle,Lle,o=>o-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,q_),this._resetElementAttributes(Fle,q_),this._resetElementAttributes(kle,Lle)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,o,n){const r=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+r)return;this._saveInitialAttribute(s,o);const a=window.getComputedStyle(s).getPropertyValue(o);s.style.setProperty(o,`${n(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,o){const n=e.style.getPropertyValue(o);n&&Bm.setDataAttribute(e,o,n)}_resetElementAttributes(e,o){const n=r=>{const i=Bm.getDataAttribute(r,o);if(i===null){r.style.removeProperty(o);return}Bm.removeDataAttribute(r,o),r.style.setProperty(o,i)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,o){if(Dm(e)){o(e);return}for(const n of vt.find(e,this._element))o(n)}};const J8t="modal",G8t="bs.modal",Ol=`.${G8t}`,Y8t=".data-api",Z8t="Escape",X8t=`hide${Ol}`,Q8t=`hidePrevented${Ol}`,_Ee=`hidden${Ol}`,DEe=`show${Ol}`,e9t=`shown${Ol}`,t9t=`resize${Ol}`,o9t=`click.dismiss${Ol}`,n9t=`mousedown.dismiss${Ol}`,r9t=`keydown.dismiss${Ol}`,i9t=`click${Ol}${Y8t}`,Ele="modal-open",s9t="fade",_le="show",o5="modal-static",a9t=".modal.show",l9t=".modal-dialog",u9t=".modal-body",c9t='[data-bs-toggle="modal"]',d9t={backdrop:!0,focus:!0,keyboard:!0},m9t={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let p3=class BEe extends Xu{constructor(e,o){super(e,o),this._dialog=vt.findOne(l9t,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ez,this._addEventListeners()}static get Default(){return d9t}static get DefaultType(){return m9t}static get NAME(){return J8t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Ee.trigger(this._element,DEe,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ele),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Ee.trigger(this._element,X8t).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(_le),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ee.off(window,Ol),Ee.off(this._dialog,Ol),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new LEe({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new EEe({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=vt.findOne(u9t,this._dialog);o&&(o.scrollTop=0),qE(this._element),this._element.classList.add(_le);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ee.trigger(this._element,e9t,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Ee.on(this._element,r9t,e=>{if(e.key===Z8t){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Ee.on(window,t9t,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ee.on(this._element,n9t,e=>{Ee.one(this._element,o9t,o=>{if(!(this._element!==e.target||this._element!==o.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Ele),this._resetAdjustments(),this._scrollBar.reset(),Ee.trigger(this._element,_Ee)})}_isAnimated(){return this._element.classList.contains(s9t)}_triggerBackdropTransition(){if(Ee.trigger(this._element,Q8t).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(o5)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(o5),this._queueCallback(()=>{this._element.classList.remove(o5),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),n=o>0;if(n&&!e){const r=Ml()?"paddingLeft":"paddingRight";this._element.style[r]=`${o}px`}if(!n&&e){const r=Ml()?"paddingRight":"paddingLeft";this._element.style[r]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,o){return this.each(function(){const n=BEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](o)}})}};Ee.on(document,i9t,c9t,function(t){const e=vt.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ee.one(e,DEe,n=>{n.defaultPrevented||Ee.one(e,_Ee,()=>{ow(this)&&this.focus()})});const o=vt.findOne(a9t);o&&p3.getInstance(o).hide(),p3.getOrCreateInstance(e).toggle(this)});XP(p3);tu(p3);const p9t="offcanvas",h9t="bs.offcanvas",wp=`.${h9t}`,$Ee=".data-api",f9t=`load${wp}${$Ee}`,g9t="Escape",Dle="show",Ble="showing",$le="hiding",y9t="offcanvas-backdrop",REe=".offcanvas.show",C9t=`show${wp}`,b9t=`shown${wp}`,v9t=`hide${wp}`,Rle=`hidePrevented${wp}`,AEe=`hidden${wp}`,S9t=`resize${wp}`,w9t=`click${wp}${$Ee}`,T9t=`keydown.dismiss${wp}`,x9t='[data-bs-toggle="offcanvas"]',F9t={backdrop:!0,keyboard:!0,scroll:!1},k9t={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};let Yv=class NEe extends Xu{constructor(e,o){super(e,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return F9t}static get DefaultType(){return k9t}static get NAME(){return p9t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Ee.trigger(this._element,C9t,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ez().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ble);const o=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Dle),this._element.classList.remove(Ble),Ee.trigger(this._element,b9t,{relatedTarget:e})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||Ee.trigger(this._element,v9t).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($le),this._backdrop.hide();const e=()=>{this._element.classList.remove(Dle,$le),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ez().reset(),Ee.trigger(this._element,AEe)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Ee.trigger(this._element,Rle);return}this.hide()},o=!!this._config.backdrop;return new LEe({className:y9t,isVisible:o,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:o?e:null})}_initializeFocusTrap(){return new EEe({trapElement:this._element})}_addEventListeners(){Ee.on(this._element,T9t,e=>{if(e.key===g9t){if(this._config.keyboard){this.hide();return}Ee.trigger(this._element,Rle)}})}static jQueryInterface(e){return this.each(function(){const o=NEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};Ee.on(document,w9t,x9t,function(t){const e=vt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),_f(this))return;Ee.one(e,AEe,()=>{ow(this)&&this.focus()});const o=vt.findOne(REe);o&&o!==e&&Yv.getInstance(o).hide(),Yv.getOrCreateInstance(e).toggle(this)});Ee.on(window,f9t,()=>{for(const t of vt.find(REe))Yv.getOrCreateInstance(t).show()});Ee.on(window,S9t,()=>{for(const t of vt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Yv.getOrCreateInstance(t).hide()});XP(Yv);tu(Yv);const L9t=/^aria-[\w-]*$/i,VEe={"*":["class","dir","id","lang","role",L9t],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},E9t=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),_9t=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,D9t=(t,e)=>{const o=t.nodeName.toLowerCase();return e.includes(o)?E9t.has(o)?!!_9t.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(o))};function B9t(t,e,o){if(!t.length)return t;if(o&&typeof o=="function")return o(t);const n=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(const i of r){const s=i.nodeName.toLowerCase();if(!Object.keys(e).includes(s)){i.remove();continue}const a=[].concat(...i.attributes),l=[].concat(e["*"]||[],e[s]||[]);for(const u of a)D9t(u,l)||i.removeAttribute(u.nodeName)}return n.body.innerHTML}const $9t="TemplateFactory",R9t={allowList:VEe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},A9t={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},N9t={entry:"(string|element|function|null)",selector:"(string|element)"};let V9t=class extends JE{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return R9t}static get DefaultType(){return A9t}static get NAME(){return $9t}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[r,i]of Object.entries(this._config.content))this._setContent(e,i,r);const o=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&o.classList.add(...n.split(" ")),o}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[o,n]of Object.entries(e))super._typeCheckConfig({selector:o,entry:n},N9t)}_setContent(e,o,n){const r=vt.findOne(n,e);if(r){if(o=this._resolvePossibleFunction(o),!o){r.remove();return}if(Dm(o)){this._putElementInTemplate(Ef(o),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(o);return}r.textContent=o}}_maybeSanitize(e){return this._config.sanitize?B9t(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return xs(e,[void 0,this])}_putElementInTemplate(e,o){if(this._config.html){o.innerHTML="",o.append(e);return}o.textContent=e.textContent}};const I9t="tooltip",P9t=new Set(["sanitize","allowList","sanitizeFn"]),n5="fade",M9t="modal",J_="show",O9t=".tooltip-inner",Ale=`.${M9t}`,Nle="hide.bs.modal",mT="hover",r5="focus",i5="click",W9t="manual",H9t="hide",z9t="hidden",j9t="show",K9t="shown",U9t="inserted",q9t="click",J9t="focusin",G9t="focusout",Y9t="mouseenter",Z9t="mouseleave",X9t={AUTO:"auto",TOP:"top",RIGHT:Ml()?"left":"right",BOTTOM:"bottom",LEFT:Ml()?"right":"left"},Q9t={allowList:VEe,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ezt={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let QP=class IEe extends Xu{constructor(e,o){if(typeof eEe>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Q9t}static get DefaultType(){return ezt}static get NAME(){return I9t}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Ee.off(this._element.closest(Ale),Nle,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=Ee.trigger(this._element,this.constructor.eventName(j9t)),o=(nEe(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!o)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Ee.trigger(this._element,this.constructor.eventName(U9t))),this._popper=this._createPopper(n),n.classList.add(J_),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))Ee.on(s,"mouseover",d3);const i=()=>{Ee.trigger(this._element,this.constructor.eventName(K9t)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Ee.trigger(this._element,this.constructor.eventName(H9t)).defaultPrevented)return;if(this._getTipElement().classList.remove(J_),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",d3);this._activeTrigger[i5]=!1,this._activeTrigger[r5]=!1,this._activeTrigger[mT]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ee.trigger(this._element,this.constructor.eventName(z9t)))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const o=this._getTemplateFactory(e).toHtml();if(!o)return null;o.classList.remove(n5,J_),o.classList.add(`bs-${this.constructor.NAME}-auto`);const n=WHt(this.constructor.NAME).toString();return o.setAttribute("id",n),this._isAnimated()&&o.classList.add(n5),o}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new V9t({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[O9t]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(n5)}_isShown(){return this.tip&&this.tip.classList.contains(J_)}_createPopper(e){const o=xs(this._config.placement,[this,e,this._element]),n=X9t[o.toUpperCase()];return HG(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_resolvePossibleFunction(e){return xs(e,[this._element,this._element])}_getPopperConfig(e){const o={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...o,...xs(this._config.popperConfig,[void 0,o])}}_setListeners(){const e=this._config.trigger.split(" ");for(const o of e)if(o==="click")Ee.on(this._element,this.constructor.eventName(q9t),this._config.selector,n=>{const r=this._initializeOnDelegatedTarget(n);r._activeTrigger[i5]=!(r._isShown()&&r._activeTrigger[i5]),r.toggle()});else if(o!==W9t){const n=o===mT?this.constructor.eventName(Y9t):this.constructor.eventName(J9t),r=o===mT?this.constructor.eventName(Z9t):this.constructor.eventName(G9t);Ee.on(this._element,n,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?r5:mT]=!0,s._enter()}),Ee.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?r5:mT]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ee.on(this._element.closest(Ale),Nle,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,o){clearTimeout(this._timeout),this._timeout=setTimeout(e,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const o=Bm.getDataAttributes(this._element);for(const n of Object.keys(o))P9t.has(n)&&delete o[n];return e={...o,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Ef(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[o,n]of Object.entries(this._config))this.constructor.Default[o]!==n&&(e[o]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const o=IEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};tu(QP);const tzt="popover",ozt=".popover-header",nzt=".popover-body",rzt={...QP.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},izt={...QP.DefaultType,content:"(null|string|element|function)"};let szt=class PEe extends QP{static get Default(){return rzt}static get DefaultType(){return izt}static get NAME(){return tzt}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ozt]:this._getTitle(),[nzt]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const o=PEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};tu(szt);const azt="scrollspy",lzt="bs.scrollspy",qG=`.${lzt}`,uzt=".data-api",czt=`activate${qG}`,Vle=`click${qG}`,dzt=`load${qG}${uzt}`,mzt="dropdown-item",fb="active",pzt='[data-bs-spy="scroll"]',s5="[href]",hzt=".nav, .list-group",Ile=".nav-link",fzt=".nav-item",gzt=".list-group-item",yzt=`${Ile}, ${fzt} > ${Ile}, ${gzt}`,Czt=".dropdown",bzt=".dropdown-toggle",vzt={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Szt={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};let MEe=class OEe extends Xu{constructor(e,o){super(e,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return vzt}static get DefaultType(){return Szt}static get NAME(){return azt}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Ef(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(o=>Number.parseFloat(o))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Ee.off(this._config.target,Vle),Ee.on(this._config.target,Vle,s5,e=>{const o=this._observableSections.get(e.target.hash);if(o){e.preventDefault();const n=this._rootElement||window,r=o.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:"smooth"});return}n.scrollTop=r}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),e)}_observerCallback(e){const o=s=>this._targetLinks.get(`#${s.target.id}`),n=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(o(s))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(s));continue}const a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(n(s),!r)return;continue}!i&&!a&&n(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=vt.find(s5,this._config.target);for(const o of e){if(!o.hash||_f(o))continue;const n=vt.findOne(decodeURI(o.hash),this._element);ow(n)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(fb),this._activateParents(e),Ee.trigger(this._element,czt,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(mzt)){vt.findOne(bzt,e.closest(Czt)).classList.add(fb);return}for(const o of vt.parents(e,hzt))for(const n of vt.prev(o,yzt))n.classList.add(fb)}_clearActiveClass(e){e.classList.remove(fb);const o=vt.find(`${s5}.${fb}`,e);for(const n of o)n.classList.remove(fb)}static jQueryInterface(e){return this.each(function(){const o=OEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(window,dzt,()=>{for(const t of vt.find(pzt))MEe.getOrCreateInstance(t)});tu(MEe);const wzt="tab",Tzt="bs.tab",w0=`.${Tzt}`,xzt=`hide${w0}`,Fzt=`hidden${w0}`,kzt=`show${w0}`,Lzt=`shown${w0}`,Ezt=`click${w0}`,_zt=`keydown${w0}`,Dzt=`load${w0}`,Bzt="ArrowLeft",Ple="ArrowRight",$zt="ArrowUp",Mle="ArrowDown",a5="Home",Ole="End",py="active",Wle="fade",l5="show",Rzt="dropdown",WEe=".dropdown-toggle",Azt=".dropdown-menu",u5=`:not(${WEe})`,Nzt='.list-group, .nav, [role="tablist"]',Vzt=".nav-item, .list-group-item",Izt=`.nav-link${u5}, .list-group-item${u5}, [role="tab"]${u5}`,HEe='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',c5=`${Izt}, ${HEe}`,Pzt=`.${py}[data-bs-toggle="tab"], .${py}[data-bs-toggle="pill"], .${py}[data-bs-toggle="list"]`;let JG=class tz extends Xu{constructor(e){super(e),this._parent=this._element.closest(Nzt),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ee.on(this._element,_zt,o=>this._keydown(o)))}static get NAME(){return wzt}show(){const e=this._element;if(this._elemIsActive(e))return;const o=this._getActiveElem(),n=o?Ee.trigger(o,xzt,{relatedTarget:e}):null;Ee.trigger(e,kzt,{relatedTarget:o}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(o,e),this._activate(e,o))}_activate(e,o){if(!e)return;e.classList.add(py),this._activate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(l5);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Ee.trigger(e,Lzt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Wle))}_deactivate(e,o){if(!e)return;e.classList.remove(py),e.blur(),this._deactivate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(l5);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Ee.trigger(e,Fzt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Wle))}_keydown(e){if(![Bzt,Ple,$zt,Mle,a5,Ole].includes(e.key))return;e.stopPropagation(),e.preventDefault();const o=this._getChildren().filter(r=>!_f(r));let n;if([a5,Ole].includes(e.key))n=o[e.key===a5?0:o.length-1];else{const r=[Ple,Mle].includes(e.key);n=zG(o,e.target,r,!0)}n&&(n.focus({preventScroll:!0}),tz.getOrCreateInstance(n).show())}_getChildren(){return vt.find(c5,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,o){this._setAttributeIfNotExists(e,"role","tablist");for(const n of o)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const o=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",o),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),o||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const o=vt.getElementFromSelector(e);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,o){const n=this._getOuterElement(e);if(!n.classList.contains(Rzt))return;const r=(i,s)=>{const a=vt.findOne(i,n);a&&a.classList.toggle(s,o)};r(WEe,py),r(Azt,l5),n.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(e,o,n){e.hasAttribute(o)||e.setAttribute(o,n)}_elemIsActive(e){return e.classList.contains(py)}_getInnerElement(e){return e.matches(c5)?e:vt.findOne(c5,e)}_getOuterElement(e){return e.closest(Vzt)||e}static jQueryInterface(e){return this.each(function(){const o=tz.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,Ezt,HEe,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!_f(this)&&JG.getOrCreateInstance(this).show()});Ee.on(window,Dzt,()=>{for(const t of vt.find(Pzt))JG.getOrCreateInstance(t)});tu(JG);const Mzt="toast",Ozt="bs.toast",rg=`.${Ozt}`,Wzt=`mouseover${rg}`,Hzt=`mouseout${rg}`,zzt=`focusin${rg}`,jzt=`focusout${rg}`,Kzt=`hide${rg}`,Uzt=`hidden${rg}`,qzt=`show${rg}`,Jzt=`shown${rg}`,Gzt="fade",Hle="hide",G_="show",Y_="showing",Yzt={animation:"boolean",autohide:"boolean",delay:"number"},Zzt={animation:!0,autohide:!0,delay:5e3};let zEe=class jEe extends Xu{constructor(e,o){super(e,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Zzt}static get DefaultType(){return Yzt}static get NAME(){return Mzt}show(){if(Ee.trigger(this._element,qzt).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Gzt);const e=()=>{this._element.classList.remove(Y_),Ee.trigger(this._element,Jzt),this._maybeScheduleHide()};this._element.classList.remove(Hle),qE(this._element),this._element.classList.add(G_,Y_),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||Ee.trigger(this._element,Kzt).defaultPrevented)return;const e=()=>{this._element.classList.add(Hle),this._element.classList.remove(Y_,G_),Ee.trigger(this._element,Uzt)};this._element.classList.add(Y_),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(G_),super.dispose()}isShown(){return this._element.classList.contains(G_)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,o){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=o;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=o;break}}if(o){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Ee.on(this._element,Wzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,Hzt,e=>this._onInteraction(e,!1)),Ee.on(this._element,zzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,jzt,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const o=jEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};XP(zEe);tu(zEe);const eM=t=>({Match:e=>{for(const o in t)if(t[o]!==void 0)return e[o](t[o]);throw Error("")}}),Xzt=t=>{throw new Error("Didn't expect to get here"+t)},Qzt=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"];Sp.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}});Sp.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>t.style.fontSize.replace(/['"]+/g,""),renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t+"px"}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}});Sp.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>t.style.lineHeight.replace(/['"]+/g,""),renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t+"px"}).run(),resetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).run()}}});Sp.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}});Sp.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}});Sp.create({name:"unsubscribeLink",priority:1e3,addOptions(){return{HTMLAttributes:{"data-type":"unsubscribe-link",class:"rich-text__unsubscribe-link"}}},parseHTML(){return[{tag:'span[data-type="unsubscribe-link"]'}]},renderHTML({HTMLAttributes:t}){return["span",xa(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:o,to:n}=e.selection,r=e.doc.textBetween(o,n," ");return e.doc.nodeAt(o)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:o,to:o+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}});Sp.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=o=>o.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=o=>o.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:o})},"Mod-u":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})},"Mod-U":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})}}}});Wo.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{const e=t.style.fontFamily.split(",").map(o=>o.trim()).map(o=>o.replace(/^['"]|['"]$/g,"")).map(o=>o.replace(/ /g,""));return Qzt.find(o=>e.includes(o))||null},renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}});const ejt=t=>new Promise((e,o)=>{const n=new Image;n.onload=()=>{e({width:n.naturalWidth,height:n.naturalHeight})},n.onerror=o,n.src=t});Sd.create({name:"image",addOptions(){return{inline:!0,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},width:{default:null},height:{default:null},isRetina:{default:!1}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",xa(this.options.HTMLAttributes,{src:t.src,alt:t.alt,title:t.title,width:t.isRetina?t.width/2:t.width,height:t.isRetina?t.height/2:t.height,isRetina:t.isRetina})]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[U4t({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,o,n]=t;return{src:o,alt:e,title:n}}})]},addProseMirrorPlugins(){return[new On({view:t=>((async()=>{const{state:e,dispatch:o}=t;e.doc.descendants((n,r)=>{if(n.type.name===this.name){const{src:i,width:s,height:a}=n.attrs;i&&(!s||!a)&&ejt(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...n.attrs,width:l.width,height:l.height});o(u)})}})})(),{})})]}});const KEe=t=>Object.fromEntries(Object.entries(t).filter(([e,o])=>o!==void 0)),tjt=t=>eM(t),ojt=t=>eM(t),njt=t=>eM(t),rjt=t=>eM(t),ijt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n===r),sjt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n<r),ajt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n>r),ljt=t=>{const e=ijt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=ajt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=sjt({numberExpressionEvaluator:t.numberExpressionEvaluator});return({numberPredicate:r,context:i})=>rjt(r).Match({Equal:s=>e({predicate:s,context:i}),GreaterThan:s=>o({predicate:s,context:i}),LessThan:s=>n({predicate:s,context:i})})},ujt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Right,context:o})]).then(([n,r])=>n===r),cjt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Contains,context:o})]).then(([n,r])=>n.includes(r)),djt=t=>{const e=ujt({stringExpressionEvaluator:t.stringExpressionEvaluator}),o=cjt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({stringPredicate:n,context:r})=>njt(n).Match({Contains:i=>o({predicate:i,context:r}),Equal:i=>e({predicate:i,context:r})})},mjt=t=>{const e=ljt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=djt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({predicate:n,context:r})=>ojt(n).Match({NumberPredicate:i=>e({numberPredicate:i,context:r}),StringPredicate:i=>o({stringPredicate:i,context:r})})},pjt=t=>{const e=mjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=({boolExpression:n,context:r})=>tjt(n).Match({AndExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.every(a=>a)),OrExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.some(a=>a)),NotExpression:async i=>!await o({boolExpression:i.Expression,context:r}),Predicate:i=>e({predicate:i,context:r})});return o},hjt=t=>({localeKey:t.localeKey,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin}),fjt=t=>({postGetThemeLibrary:t.themeLibraryBffClient.postGetThemeLibrary,postGetComponentLibrary:t.componentLibraryBffClient.postGetComponentLibrary}),gjt=t=>{const e="https://cdn.retailrocket.net/api/1.0/partner";return async({context:o,expression:n})=>t.numberExpressionEvaluator({numberExpression:n.ProductId,context:o}).then(r=>t.productImageResizerUrl?t.productImageResizerUrl:e+"/"+t.partnerId+"/item/"+r+"/picture/?format=png&width="+n.ImageSize.Width+"&height="+n.ImageSize.Height+"&scale=both")},yjt=t=>({localeKey:t.localeKey}),Cjt=t=>({localeKey:t.localeKey}),bjt=t=>({localeKey:t.localeKey,saveTemplateErrorNotificationModalWindowDeps:Cjt({localeKey:t.localeKey})}),vjt=t=>({appSettingsModifierPlugin:t.appSettingsModifierPlugin,resetTemplateButtonDeps:yjt({localeKey:t.localeKey}),saveTemplateButtonDeps:bjt({localeKey:t.localeKey})}),Sjt=t=>({localeKey:t.localeKey}),wjt=t=>({localeKey:t.localeKey}),Tjt=t=>({localeKey:t.localeKey,preheaderSubjectUpdateModalWindowDeps:wjt({localeKey:t.localeKey})}),xjt=t=>({exportMenuDeps:vjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),toggleDeviceToolbarDeps:Sjt({localeKey:t.localeKey}),preheaderSubjectUpdateButtonDeps:Tjt({localeKey:t.localeKey})}),Fjt=t=>({sectionItemId:t.sectionItemId,sectionItemName:t.sectionItemName,theme:JSON.parse(t.theme.json)}),kjt=t=>({sectionId:t.sectionId,sectionName:t.sectionName,sectionItems:t.sectionItems.map(e=>Fjt(e))}),Ljt=t=>async()=>(await t.getThemeLibraryHttpClient({body:{partnerId:t.partnerId}})).body.sections.map(e=>kjt(e)),Ejt=t=>async e=>(await t.postCreateThemeLibrarySectionItem({body:{partnerId:t.partnerId,parentSectionId:e.parentSectionId,sectionItemName:e.sectionItemName,theme:{json:JSON.stringify(e.theme)}}})).status===200?"Success":"Fail",_jt=t=>({sectionId:t.sectionId,sectionName:t.sectionName}),UEe=t=>async()=>(await t.postGetThemeLibrarySections({body:{partnerId:t.partnerId}})).body.sections.map(e=>_jt(e)),Djt=t=>({localeKey:t.localeKey,addThemeSectionItem:Ejt({partnerId:t.partnerId,postCreateThemeLibrarySectionItem:t.addThemeLibrarySectionItemModalWindowBffClient.postCreateThemeLibrarySectionItem}),getThemeLibrarySections:UEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.addThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Bjt=t=>async e=>{await t.deleteThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},$jt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItem:Bjt({partnerId:t.partnerId,deleteThemeLibrarySectionItem:t.deleteThemeLibrarySectionItemModalWindowBffClient.postDeleteThemeLibrarySectionItem}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),Rjt=t=>async e=>{await t.updateThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},Ajt=t=>({localeKey:t.localeKey,updateThemeLibrarySectionItem:Rjt({partnerId:t.partnerId,updateThemeLibrarySectionItem:t.editThemeLibrarySectionItemModalWindowBffClient.postUpdateThemeLibrarySectionItem}),getThemeLibrarySections:UEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.editThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Njt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItemModalWindowDeps:$jt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient}),editThemeLibrarySectionItemModalWindowDeps:Ajt({localeKey:t.localeKey,partnerId:t.partnerId,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient})}),Vjt=t=>async e=>(await t.deleteThemeLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Ijt=t=>({localeKey:t.localeKey,deleteThemeLibrarySection:Vjt({partnerId:t.partnerId,deleteThemeLibrarySectionHttpClientDelegate:t.deleteThemeLibrarySectionModalWindowBffClient.postDeleteThemeLibrarySection})}),Pjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionModalWindowDeps:Ijt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Mjt=t=>({localeKey:t.localeKey,themeSectionItemDeps:Njt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient}),emptyThemeSectionDeps:Pjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Ojt=t=>async e=>{await t.createThemeLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},Wjt=t=>({localeKey:t.localeKey,createThemeLibrarySection:Ojt({partnerId:t.partnerId,createThemeLibrarySectionHttpClient:t.createThemeLibrarySectionModalWindowBffClient.postCreateThemeLibrarySection})}),Hjt=t=>({defaultThemeLibrary:t.defaultThemeLibrary}),qEe=t=>({localeKey:t.localeKey,defaultThemeLibraryDeps:Hjt({defaultThemeLibrary:t.defaultThemeLibrary}),customThemeLibraryDeps:{localeKey:t.localeKey,addThemeSectionItemModalWindowDeps:Djt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient}),themeSectionDeps:Mjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient}),createThemeLibrarySectionModalWindowDeps:Wjt({localeKey:t.localeKey,partnerId:t.partnerId,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient})}}),zjt=t=>({localeKey:t.localeKey,customThemeLibraryDeps:qEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}).customThemeLibraryDeps}),jjt=t=>async e=>{await t.deleteComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},Kjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItem:jjt({partnerId:t.partnerId,deleteComponentLibrarySectionItemHttpClientDelegate:t.deleteComponentLibrarySectionItemModalWindowBffClient.postDeleteComponentLibrarySectionItem})}),Ujt=t=>async e=>{await t.updateComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},JEe=t=>async()=>(await t.getComponentLibrarySectionsHttpClientDelegate({body:{partnerId:t.partnerId}})).body.sections.map(e=>({sectionId:e.sectionId,sectionName:e.sectionName})),qjt=t=>({localeKey:t.localeKey,updateComponentLibrarySectionItem:Ujt({partnerId:t.partnerId,updateComponentLibrarySectionItemHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postUpdateComponentLibrarySectionItem}),getComponentLibrarySections:JEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),Jjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItemModalWindowDeps:Kjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),editComponentLibrarySectionItemModalWindowDeps:qjt({localeKey:t.localeKey,partnerId:t.partnerId,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient}),emailComponentDeps:t.emailComponentDeps}),Gjt=t=>async e=>(await t.deleteComponentLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Yjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySection:Gjt({partnerId:t.partnerId,deleteComponentLibrarySectionHttpClientDelegate:t.deleteComponentLibrarySectionModalWindowBffClient.postDeleteComponentLibrarySection})}),Zjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionModalWindowDeps:Yjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),Xjt=t=>({localeKey:t.localeKey,componentSectionItemDeps:Jjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),emptyComponentSectionDeps:Zjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),Qjt=t=>async e=>{await t.createComponentLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},eKt=t=>({localeKey:t.localeKey,createComponentLibrarySection:Qjt({partnerId:t.partnerId,createComponentLibrarySectionHttpClient:t.createComponentLibrarySectionModalWindowBffClient.postCreateComponentLibrarySection})}),tKt=t=>({localeKey:t.localeKey,createComponentLibrarySectionModalWindowDeps:eKt({localeKey:t.localeKey,partnerId:t.partnerId,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient}),componentSectionDeps:Xjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),oKt=t=>({emailComponentDeps:t.emailComponentDeps}),nKt=t=>({localeKey:t.localeKey,componentSectionItemDeps:oKt({emailComponentDeps:t.emailComponentDeps})}),rKt=t=>({defaultComponentLibrary:t.defaultComponentLibrary,componentSectionDeps:nKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps})}),iKt=t=>({localeKey:t.localeKey,customComponentLibraryDeps:tKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient}),defaultComponentLibraryDeps:rKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps,defaultComponentLibrary:t.defaultComponentLibrary})}),sKt=t=>({localeKey:t.localeKey,exitLink:t.exitLink,themeLibraryDeps:qEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),themeStylesDeps:zjt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),componentLibraryDeps:iKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultComponentLibrary:t.defaultComponentLibrary})}),aKt=t=>async e=>{await t.createComponentLibrarySectionItemHttpClient({body:{partnerId:t.partnerId,parentSectionId:e.sectionId,sectionItemName:e.sectionItemName,component:t.httpClientComponentFactoryDelegate(e.component)}})},lKt=t=>({localeKey:t.localeKey,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,addComponentLibrarySectionItem:aKt({partnerId:t.partnerId,createComponentLibrarySectionItemHttpClient:t.addComponentLibrarySectionItemModalWindowBffClient.postCreateComponentLibrarySectionItem,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate}),getComponentLibrarySections:JEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.addComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),uKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),cKt=t=>({localeKey:t.localeKey}),dKt=t=>({movementMenuDeps:uKt({localeKey:t.localeKey}),draggingMenuDeps:cKt({localeKey:t.localeKey}),emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,addComponentLibrarySectionItemModalWindowDeps:lKt({localeKey:t.localeKey,partnerId:t.partnerId,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),mKt=t=>({localeKey:t.localeKey,emailComponentWrapperDeps:dKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),pKt=t=>({localeKey:t.localeKey}),hKt=t=>({localeKey:t.localeKey}),fKt=t=>({localeKey:t.localeKey}),gKt=t=>({localeKey:t.localeKey}),yKt=t=>({localeKey:t.localeKey,fontColorEditorDeps:gKt({localeKey:t.localeKey})}),GG=t=>({localeKey:t.localeKey,fontStyleColorEditorDeps:fKt({localeKey:t.localeKey}),customFontSettingsDeps:yKt({localeKey:t.localeKey})}),CKt=t=>({removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),truncateSpanEditorDeps:hKt({localeKey:t.localeKey}),localeKey:t.localeKey,fontStyleEditorDeps:GG({localeKey:t.localeKey})}),bKt=t=>({localeKey:t.localeKey}),GEe=t=>({localeKey:t.localeKey,borderColorEditorDeps:bKt({localeKey:t.localeKey})}),vKt=t=>({localeKey:t.localeKey,borderEditorDeps:GEe({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),YG=t=>({localeKey:t.localeKey}),SKt=t=>({localeKey:t.localeKey,borderEditorDeps:GEe({localeKey:t.localeKey}),colorEditorDeps:YG({localeKey:t.localeKey}),fontStyleEditorDeps:GG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),wKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),fontStyleEditorDeps:GG({localeKey:t.localeKey})}),TKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),xKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),colorEditorDeps:YG({localeKey:t.localeKey})}),FKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),kKt=t=>({spanEditorDeps:CKt({localeKey:t.localeKey}),imageEditorDeps:vKt({localeKey:t.localeKey}),buttonEditorDeps:SKt({localeKey:t.localeKey}),unsubscribeLinkEditorDeps:wKt({localeKey:t.localeKey}),backgroundImageEditorDeps:TKt({localeKey:t.localeKey}),spacerEditorDeps:xKt({localeKey:t.localeKey}),richTextEditorDeps:FKt({localeKey:t.localeKey})}),LKt=t=>({localeKey:t.localeKey,colorEditorDeps:YG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),EKt=t=>{const e=pjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=YIt({localeKey:t.localeKey,elementsDeps:vPt({localeKey:t.localeKey,richTextToolbarPlugins:t.richTextToolbarPlugins,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin,expressionEvaluator:t.expressionEvaluator,listExpressionEvaluator:t.listExpressionEvaluator,numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator,boolExpressionEvaluator:e,dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),listExpressionEvaluator:t.listExpressionEvaluator,dataStructExpressionEvaluator:t.dataStructExpressionEvaluator,boolExpressionEvaluator:e});return{topMenuDeps:xjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),saveEmailTemplate:t.saveEmailTemplate,createFavoriteTemplate:t.createFavoriteTemplate,getThemeLibrary:Ljt({partnerId:t.partnerId,getThemeLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetThemeLibrary}),getComponentLibrary:t.getComponentLibraryFactory({partnerId:t.partnerId,getComponentLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetComponentLibrary}),asideMenuDeps:sKt({localeKey:t.localeKey,partnerId:t.partnerId,exitLink:t.exitLink,emailComponentDeps:o,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary,defaultComponentLibrary:t.defaultComponentLibrary}),emailTemplateDeps:mKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,emailComponentDeps:o,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient}),emptyEditorDeps:pKt({localeKey:t.localeKey}),elementsEditorDeps:kKt({localeKey:t.localeKey}),emailComponentEditorDeps:LKt({localeKey:t.localeKey}),template:t.template}},Qu=t=>async()=>(await t.getAllStockIdsHttpClient({body:{partnerId:t.partnerId}})).body.stockIds,_Kt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),DKt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),BKt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),$Kt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),YEe=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),ZG=t=>{switch(t.stockSource._t){case"CustomerStockIdSource":return t.customerStockId;case"DefaultStoreStockIdSource":return;case"SpecificStockIdSource":return t.stockSource.Value;default:Xzt(t.stockSource)}},RKt=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.findProductsBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:e,stockId:n}})).body.products.map(r=>YEe(r))},AKt=t=>({localeKey:t.localeKey}),NKt=t=>({selectedProductListItemDeps:AKt({localeKey:t.localeKey})}),VKt=t=>({localeKey:t.localeKey}),IKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,selectedProductListDeps:NKt({localeKey:t.localeKey}),emptyProductListDeps:VKt({localeKey:t.localeKey})}),PKt=t=>({localeKey:t.localeKey}),MKt=t=>({localeKey:t.localeKey}),OKt=t=>({localeKey:t.localeKey}),WKt=t=>({searchedProductListItemDeps:MKt({localeKey:t.localeKey}),emptySearchProductListDeps:OKt({localeKey:t.localeKey})}),HKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,productSearchBarDeps:PKt({localeKey:t.localeKey}),searchedProductListDeps:WKt({localeKey:t.localeKey})}),zKt=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>YEe(r))},jKt=t=>{const e=zKt({partnerId:t.partnerId,productCache:{},customerStockId:t.customerStockId,getProductsByIDsHttpClient:t.productPickerModalWindowBffClient.postGetProductsByIds}),o=RKt({partnerId:t.partnerId,customerStockId:t.customerStockId,findProductsBySearchPhrase:t.productPickerModalWindowBffClient.postFindProductsBySearchPhrase});return{localeKey:t.localeKey,selectProductComponentDeps:IKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o}),productSearchComponentDeps:HKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o})}},KKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),UKt=async t=>{const e=t.categoryIds.filter(o=>!t.categoryCache[o]);return e.length>0&&(await t.findCategoriesByID({partnerId:t.partnerId,categoryIds:e})).forEach(o=>t.categoryCache[o.id]=o),t.categoryIds.map(o=>t.categoryCache[o]).filter(o=>o!==void 0)},ZEe=t=>async e=>(await UKt({partnerId:t.partnerId,categoryIds:e,categoryCache:{},findCategoriesByID:async o=>(await t.getCategoriesByIDsHttpClient({body:{partnerId:t.partnerId,categoryIds:o.categoryIds.concat([])}})).body.categories})).map(o=>KKt(o)),qKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),JKt=async t=>{const e=await t.findCategoriesByPhrase({phrase:t.phrase});return e.forEach(o=>t.categoryCache[o.id]=o),e},GKt=t=>async e=>(await JKt({phrase:e,categoryCache:t.categoryCache,findCategoriesByPhrase:async o=>(await t.findProductCategoriesBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:o.phrase}})).body.categories})).map(o=>qKt(o)),YKt=t=>({localeKey:t.localeKey}),ZKt=t=>({localeKey:t.localeKey,getCategoriesByIDs:t.getCategoriesByIDs,selectedCategoryListDeps:{},emptyCategoryListDeps:YKt({localeKey:t.localeKey})}),XKt=t=>({localeKey:t.localeKey}),QKt=t=>({localeKey:t.localeKey}),eUt=t=>({emptySearchCategoryListDeps:QKt({localeKey:t.localeKey})}),tUt=t=>({localeKey:t.localeKey,findCategoriesByName:t.findCategoriesByName,getCategoriesByIDs:t.getCategoriesByIDs,categorySearchBarDeps:XKt({localeKey:t.localeKey}),searchedCategoryListDeps:eUt({localeKey:t.localeKey})}),XEe=t=>{const e={},o=ZEe({partnerId:t.partnerId,categoryCache:e,getCategoriesByIDsHttpClient:t.productCategoryPickerModalWindowBffClient.postGetProductCategoriesByIds}),n=GKt({partnerId:t.partnerId,categoryCache:e,findProductCategoriesBySearchPhrase:t.productCategoryPickerModalWindowBffClient.postFindProductCategoriesBySearchPhrase});return{localeKey:t.localeKey,selectCategoryComponentDeps:ZKt({localeKey:t.localeKey,getCategoriesByIDs:o}),categorySearchComponentDeps:tUt({localeKey:t.localeKey,getCategoriesByIDs:o,findCategoriesByName:n})}},oUt=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),XG=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>oUt(r))},nUt=t=>({localeKey:t.localeKey,getProductsByIDs:XG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),rUt=t=>({localeKey:t.localeKey,getProductsByIDs:XG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),iUt=t=>({localeKey:t.localeKey,getProductsByIDs:XG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),sUt=t=>({localeKey:t.localeKey,getCategoriesByIDs:ZEe({partnerId:t.partnerId,categoryCache:t.categoryCache,getCategoriesByIDsHttpClient:t.getCategoriesByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),categoryListComposerModalWindowDeps:XEe({localeKey:t.localeKey,partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),QEe=t=>t.reduce((e,o)=>(e[o.name]=o.value,e),{}),T0=t=>KEe({InternalProductId:t.internalProductId,Name:t.name,Description:t.description,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,Url:t.url,CategoryIds:[],Vendor:t.vendor,Params:QEe(t.parameters),DiscountPercentage:t.discountPercentage}),aUt=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(e=>T0(e));var lUt=typeof global=="object"&&global&&global.Object===Object&&global,uUt=typeof self=="object"&&self&&self.Object===Object&&self,cUt=lUt||uUt||Function("return this")(),h3=cUt.Symbol;h3&&h3.toStringTag;h3&&h3.toStringTag;const{entries:e2e,setPrototypeOf:zle,isFrozen:dUt,getPrototypeOf:mUt,getOwnPropertyDescriptor:pUt}=Object;let{freeze:is,seal:Wl,create:oz}=Object,{apply:nz,construct:rz}=typeof Reflect<"u"&&Reflect;is||(is=function(t){return t});Wl||(Wl=function(t){return t});nz||(nz=function(t,e){for(var o=arguments.length,n=new Array(o>2?o-2:0),r=2;r<o;r++)n[r-2]=arguments[r];return t.apply(e,n)});rz||(rz=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];return new t(...o)});const Z_=ss(Array.prototype.forEach),hUt=ss(Array.prototype.lastIndexOf),jle=ss(Array.prototype.pop),pT=ss(Array.prototype.push),fUt=ss(Array.prototype.splice),c$=ss(String.prototype.toLowerCase),d5=ss(String.prototype.toString),m5=ss(String.prototype.match),hT=ss(String.prototype.replace),gUt=ss(String.prototype.indexOf),yUt=ss(String.prototype.trim),Tu=ss(Object.prototype.hasOwnProperty),bi=ss(RegExp.prototype.test),fT=CUt(TypeError);function ss(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return nz(t,e,n)}}function CUt(t){return function(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return rz(t,o)}}function oo(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c$;zle&&zle(t,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const i=o(r);i!==r&&(dUt(e)||(e[n]=i),r=i)}t[r]=!0}return t}function bUt(t){for(let e=0;e<t.length;e++)Tu(t,e)||(t[e]=null);return t}function gc(t){const e=oz(null);for(const[o,n]of e2e(t))Tu(t,o)&&(Array.isArray(n)?e[o]=bUt(n):n&&typeof n=="object"&&n.constructor===Object?e[o]=gc(n):e[o]=n);return e}function gT(t,e){for(;t!==null;){const n=pUt(t,e);if(n){if(n.get)return ss(n.get);if(typeof n.value=="function")return ss(n.value)}t=mUt(t)}function o(){return null}return o}const Kle=is(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),p5=is(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),h5=is(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),vUt=is(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),f5=is(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),SUt=is(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ule=is(["#text"]),qle=is(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),g5=is(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Jle=is(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),X_=is(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),wUt=Wl(/\{\{[\w\W]*|[\w\W]*\}\}/gm),TUt=Wl(/<%[\w\W]*|[\w\W]*%>/gm),xUt=Wl(/\$\{[\w\W]*/gm),FUt=Wl(/^data-[\-\w.\u00B7-\uFFFF]+$/),kUt=Wl(/^aria-[\-\w]+$/),t2e=Wl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),LUt=Wl(/^(?:\w+script|data):/i),EUt=Wl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),o2e=Wl(/^html$/i),_Ut=Wl(/^[a-z][.\w]*(-[.\w]+)+$/i);var Gle=Object.freeze({__proto__:null,ARIA_ATTR:kUt,ATTR_WHITESPACE:EUt,CUSTOM_ELEMENT:_Ut,DATA_ATTR:FUt,DOCTYPE_NAME:o2e,ERB_EXPR:TUt,IS_ALLOWED_URI:t2e,IS_SCRIPT_OR_DATA:LUt,MUSTACHE_EXPR:wUt,TMPLIT_EXPR:xUt});const yT={element:1,text:3,progressingInstruction:7,comment:8,document:9},DUt=function(){return typeof window>"u"?null:window},BUt=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(o=e.getAttribute(n));const r="dompurify"+(o?"#"+o:"");try{return t.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Yle=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function n2e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DUt();const e=C=>n2e(C);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==yT.document||!t.Element)return e.isSupported=!1,e;let{document:o}=t;const n=o,r=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=t,h=l.prototype,f=gT(h,"cloneNode"),g=gT(h,"remove"),b=gT(h,"nextSibling"),v=gT(h,"childNodes"),S=gT(h,"parentNode");if(typeof s=="function"){const C=o.createElement("template");C.content&&C.content.ownerDocument&&(o=C.content.ownerDocument)}let T,x="";const{implementation:F,createNodeIterator:B,createDocumentFragment:N,getElementsByTagName:R}=o,{importNode:P}=n;let E=Yle();e.isSupported=typeof e2e=="function"&&typeof S=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:A,TMPLIT_EXPR:I,DATA_ATTR:W,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:Ve}=Gle;let{IS_ALLOWED_URI:Se}=Gle,G=null;const Ae=oo({},[...Kle,...p5,...h5,...f5,...Ule]);let q=null;const me=oo({},[...qle,...g5,...Jle,...X_]);let H=Object.seal(oz(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,le=null;const ue=Object.seal(oz(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Nt=!0,Vt=!0,Et=!1,z=!0,j=!1,ee=!0,oe=!1,re=!1,ie=!1,de=!1,he=!1,te=!1,ne=!0,Ge=!1;const Te="user-content-";let we=!0,xe=!1,Ne={},Ce=null;const Qe=oo({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fo=null;const ko=oo({},["audio","video","img","source","image","track"]);let Co=null;const No=oo({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),go="http://www.w3.org/1998/Math/MathML",Lo="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let kt=tt,Uo=!1,qo=null;const su=oo({},[go,Lo,tt],d5);let $o=oo({},["mi","mo","mn","ms","mtext"]),Ro=oo({},["annotation-xml"]);const au=oo({},["title","style","font","a","script"]);let yo=null;const lu=["application/xhtml+xml","text/html"],uu="text/html";let ge=null,jt=null;const cu=o.createElement("form"),Dr=function(C){return C instanceof RegExp||C instanceof Function},yn=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jt&&jt===C)){if((!C||typeof C!="object")&&(C={}),C=gc(C),yo=lu.indexOf(C.PARSER_MEDIA_TYPE)===-1?uu:C.PARSER_MEDIA_TYPE,ge=yo==="application/xhtml+xml"?d5:c$,G=Tu(C,"ALLOWED_TAGS")?oo({},C.ALLOWED_TAGS,ge):Ae,q=Tu(C,"ALLOWED_ATTR")?oo({},C.ALLOWED_ATTR,ge):me,qo=Tu(C,"ALLOWED_NAMESPACES")?oo({},C.ALLOWED_NAMESPACES,d5):su,Co=Tu(C,"ADD_URI_SAFE_ATTR")?oo(gc(No),C.ADD_URI_SAFE_ATTR,ge):No,Fo=Tu(C,"ADD_DATA_URI_TAGS")?oo(gc(ko),C.ADD_DATA_URI_TAGS,ge):ko,Ce=Tu(C,"FORBID_CONTENTS")?oo({},C.FORBID_CONTENTS,ge):Qe,be=Tu(C,"FORBID_TAGS")?oo({},C.FORBID_TAGS,ge):gc({}),le=Tu(C,"FORBID_ATTR")?oo({},C.FORBID_ATTR,ge):gc({}),Ne=Tu(C,"USE_PROFILES")?C.USE_PROFILES:!1,Nt=C.ALLOW_ARIA_ATTR!==!1,Vt=C.ALLOW_DATA_ATTR!==!1,Et=C.ALLOW_UNKNOWN_PROTOCOLS||!1,z=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=C.SAFE_FOR_TEMPLATES||!1,ee=C.SAFE_FOR_XML!==!1,oe=C.WHOLE_DOCUMENT||!1,de=C.RETURN_DOM||!1,he=C.RETURN_DOM_FRAGMENT||!1,te=C.RETURN_TRUSTED_TYPE||!1,ie=C.FORCE_BODY||!1,ne=C.SANITIZE_DOM!==!1,Ge=C.SANITIZE_NAMED_PROPS||!1,we=C.KEEP_CONTENT!==!1,xe=C.IN_PLACE||!1,Se=C.ALLOWED_URI_REGEXP||t2e,kt=C.NAMESPACE||tt,$o=C.MATHML_TEXT_INTEGRATION_POINTS||$o,Ro=C.HTML_INTEGRATION_POINTS||Ro,H=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&Dr(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&Dr(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),j&&(Vt=!1),he&&(de=!0),Ne&&(G=oo({},Ule),q=[],Ne.html===!0&&(oo(G,Kle),oo(q,qle)),Ne.svg===!0&&(oo(G,p5),oo(q,g5),oo(q,X_)),Ne.svgFilters===!0&&(oo(G,h5),oo(q,g5),oo(q,X_)),Ne.mathMl===!0&&(oo(G,f5),oo(q,Jle),oo(q,X_))),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?ue.tagCheck=C.ADD_TAGS:(G===Ae&&(G=gc(G)),oo(G,C.ADD_TAGS,ge))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?ue.attributeCheck=C.ADD_ATTR:(q===me&&(q=gc(q)),oo(q,C.ADD_ATTR,ge))),C.ADD_URI_SAFE_ATTR&&oo(Co,C.ADD_URI_SAFE_ATTR,ge),C.FORBID_CONTENTS&&(Ce===Qe&&(Ce=gc(Ce)),oo(Ce,C.FORBID_CONTENTS,ge)),C.ADD_FORBID_CONTENTS&&(Ce===Qe&&(Ce=gc(Ce)),oo(Ce,C.ADD_FORBID_CONTENTS,ge)),we&&(G["#text"]=!0),oe&&oo(G,["html","head","body"]),G.table&&(oo(G,["tbody"]),delete be.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw fT('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fT('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=C.TRUSTED_TYPES_POLICY,x=T.createHTML("")}else T===void 0&&(T=BUt(p,r)),T!==null&&typeof x=="string"&&(x=T.createHTML(""));is&&is(C),jt=C}},Br=oo({},[...p5,...h5,...vUt]),$r=oo({},[...f5,...SUt]),du=function(C){let k=S(C);(!k||!k.tagName)&&(k={namespaceURI:kt,tagName:"template"});const D=c$(C.tagName),J=c$(k.tagName);return qo[C.namespaceURI]?C.namespaceURI===Lo?k.namespaceURI===tt?D==="svg":k.namespaceURI===go?D==="svg"&&(J==="annotation-xml"||$o[J]):!!Br[D]:C.namespaceURI===go?k.namespaceURI===tt?D==="math":k.namespaceURI===Lo?D==="math"&&Ro[J]:!!$r[D]:C.namespaceURI===tt?k.namespaceURI===Lo&&!Ro[J]||k.namespaceURI===go&&!$o[J]?!1:!$r[D]&&(au[D]||!Br[D]):!!(yo==="application/xhtml+xml"&&qo[C.namespaceURI]):!1},_t=function(C){pT(e.removed,{element:C});try{S(C).removeChild(C)}catch{g(C)}},Mt=function(C,k){try{pT(e.removed,{attribute:k.getAttributeNode(C),from:k})}catch{pT(e.removed,{attribute:null,from:k})}if(k.removeAttribute(C),C==="is")if(de||he)try{_t(k)}catch{}else try{k.setAttribute(C,"")}catch{}},Rr=function(C){let k=null,D=null;if(ie)C="<remove></remove>"+C;else{const ae=m5(C,/^[\r\n\t ]+/);D=ae&&ae[0]}yo==="application/xhtml+xml"&&kt===tt&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const J=T?T.createHTML(C):C;if(kt===tt)try{k=new m().parseFromString(J,yo)}catch{}if(!k||!k.documentElement){k=F.createDocument(kt,"template",null);try{k.documentElement.innerHTML=Uo?x:J}catch{}}const ye=k.body||k.documentElement;return C&&D&&ye.insertBefore(o.createTextNode(D),ye.childNodes[0]||null),kt===tt?R.call(k,oe?"html":"body")[0]:oe?k.documentElement:ye},Ar=function(C){return B.call(C.ownerDocument||C,C,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Cn=function(C){return C instanceof d&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof c)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},Nr=function(C){return typeof a=="function"&&C instanceof a};function pt(C,k,D){Z_(C,J=>{J.call(e,k,D,jt)})}const Vr=function(C){let k=null;if(pt(E.beforeSanitizeElements,C,null),Cn(C))return _t(C),!0;const D=ge(C.nodeName);if(pt(E.uponSanitizeElement,C,{tagName:D,allowedTags:G}),ee&&C.hasChildNodes()&&!Nr(C.firstElementChild)&&bi(/<[/\w!]/g,C.innerHTML)&&bi(/<[/\w!]/g,C.textContent)||C.nodeType===yT.progressingInstruction||ee&&C.nodeType===yT.comment&&bi(/<[/\w]/g,C.data))return _t(C),!0;if(!(ue.tagCheck instanceof Function&&ue.tagCheck(D))&&(!G[D]||be[D])){if(!be[D]&&Pr(D)&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,D)||H.tagNameCheck instanceof Function&&H.tagNameCheck(D)))return!1;if(we&&!Ce[D]){const J=S(C)||C.parentNode,ye=v(C)||C.childNodes;if(ye&&J){const ae=ye.length;for(let nt=ae-1;nt>=0;--nt){const et=f(ye[nt],!0);et.__removalCount=(C.__removalCount||0)+1,J.insertBefore(et,b(C))}}}return _t(C),!0}return C instanceof l&&!du(C)||(D==="noscript"||D==="noembed"||D==="noframes")&&bi(/<\/no(script|embed|frames)/i,C.innerHTML)?(_t(C),!0):(j&&C.nodeType===yT.text&&(k=C.textContent,Z_([L,A,I],J=>{k=hT(k,J," ")}),C.textContent!==k&&(pT(e.removed,{element:C.cloneNode()}),C.textContent=k)),pt(E.afterSanitizeElements,C,null),!1)},Ir=function(C,k,D){if(ne&&(k==="id"||k==="name")&&(D in o||D in cu))return!1;if(!(Vt&&!le[k]&&bi(W,k))&&!(Nt&&bi(O,k))&&!(ue.attributeCheck instanceof Function&&ue.attributeCheck(k,C))){if(!q[k]||le[k]){if(!(Pr(C)&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,C)||H.tagNameCheck instanceof Function&&H.tagNameCheck(C))&&(H.attributeNameCheck instanceof RegExp&&bi(H.attributeNameCheck,k)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(k,C))||k==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,D)||H.tagNameCheck instanceof Function&&H.tagNameCheck(D))))return!1}else if(!Co[k]&&!bi(Se,hT(D,fe,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&C!=="script"&&gUt(D,"data:")===0&&Fo[C])&&!(Et&&!bi(K,hT(D,fe,"")))&&D)return!1}return!0},Pr=function(C){return C!=="annotation-xml"&&m5(C,Ve)},Mr=function(C){pt(E.beforeSanitizeAttributes,C,null);const{attributes:k}=C;if(!k||Cn(C))return;const D={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let J=k.length;for(;J--;){const ye=k[J],{name:ae,namespaceURI:nt,value:et}=ye,lt=ge(ae),Jo=et;let He=ae==="value"?Jo:yUt(Jo);if(D.attrName=lt,D.attrValue=He,D.keepAttr=!0,D.forceKeepAttr=void 0,pt(E.uponSanitizeAttribute,C,D),He=D.attrValue,Ge&&(lt==="id"||lt==="name")&&(Mt(ae,C),He=Te+He),ee&&bi(/((--!?|])>)|<\/(style|title|textarea)/i,He)){Mt(ae,C);continue}if(lt==="attributename"&&m5(He,"href")){Mt(ae,C);continue}if(D.forceKeepAttr)continue;if(!D.keepAttr){Mt(ae,C);continue}if(!z&&bi(/\/>/i,He)){Mt(ae,C);continue}j&&Z_([L,A,I],Za=>{He=hT(He,Za," ")});const Eo=ge(C.nodeName);if(!Ir(Eo,lt,He)){Mt(ae,C);continue}if(T&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!nt)switch(p.getAttributeType(Eo,lt)){case"TrustedHTML":{He=T.createHTML(He);break}case"TrustedScriptURL":{He=T.createScriptURL(He);break}}if(He!==Jo)try{nt?C.setAttributeNS(nt,ae,He):C.setAttribute(ae,He),Cn(C)?_t(C):jle(e.removed)}catch{Mt(ae,C)}}pt(E.afterSanitizeAttributes,C,null)},mu=function C(k){let D=null;const J=Ar(k);for(pt(E.beforeSanitizeShadowDOM,k,null);D=J.nextNode();)pt(E.uponSanitizeShadowNode,D,null),Vr(D),Mr(D),D.content instanceof i&&C(D.content);pt(E.afterSanitizeShadowDOM,k,null)};return e.sanitize=function(C){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=null,J=null,ye=null,ae=null;if(Uo=!C,Uo&&(C="<!-->"),typeof C!="string"&&!Nr(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw fT("dirty is not a string, aborting")}else throw fT("toString is not a function");if(!e.isSupported)return C;if(re||yn(k),e.removed=[],typeof C=="string"&&(xe=!1),xe){if(C.nodeName){const lt=ge(C.nodeName);if(!G[lt]||be[lt])throw fT("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof a)D=Rr("<!---->"),J=D.ownerDocument.importNode(C,!0),J.nodeType===yT.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?D=J:D.appendChild(J);else{if(!de&&!j&&!oe&&C.indexOf("<")===-1)return T&&te?T.createHTML(C):C;if(D=Rr(C),!D)return de?null:te?x:""}D&&ie&&_t(D.firstChild);const nt=Ar(xe?C:D);for(;ye=nt.nextNode();)Vr(ye),Mr(ye),ye.content instanceof i&&mu(ye.content);if(xe)return C;if(de){if(he)for(ae=N.call(D.ownerDocument);D.firstChild;)ae.appendChild(D.firstChild);else ae=D;return(q.shadowroot||q.shadowrootmode)&&(ae=P.call(n,ae,!0)),ae}let et=oe?D.outerHTML:D.innerHTML;return oe&&G["!doctype"]&&D.ownerDocument&&D.ownerDocument.doctype&&D.ownerDocument.doctype.name&&bi(o2e,D.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+D.ownerDocument.doctype.name+`>
193
+ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function bL(t){const{h:e,s:o,v:n,a:r}=t,i=a=>{const l=(a+e/60)%6;return n-n*o*Math.max(Math.min(l,4-l,1),0)},s=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:s[0],g:s[1],b:s[2],a:r}}function ole(t){return bL(ELe(t))}function ELe(t){const{h:e,s:o,l:n,a:r}=t,i=n+o*Math.min(n,1-n),s=i===0?0:2-2*n/i;return{h:e,s,v:i,a:r}}function _Wt(t){t=DWt(t);let[e,o,n,r]=CWt(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:o,b:n,a:r}}function DWt(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=Uae(Uae(t,6),8,"F")),t}function BWt(t){const e=Math.abs(ele(hx(0),hx(t)));return Math.abs(ele(hx(16777215),hx(t)))>Math.min(e,50)?"#fff":"#000"}function KE(t,e){return o=>Object.keys(t).reduce((n,r)=>{const i=typeof t[r]=="object"&&t[r]!=null&&!Array.isArray(t[r])?t[r]:{type:t[r]};return o&&r in o?n[r]={...i,default:o[r]}:n[r]=i,e&&!n[r].source&&(n[r].source=e),n},{})}function qP(t,e){const o=zs();if(!o)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return o}function $Wt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qP("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const U9=Symbol.for("vuetify:defaults");function _Le(){const t=xo(U9);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function RWt(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[DF(e)]<"u")}function AWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_Le();const n=qP("useDefaults");if(e=e??n.type.name??n.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const r=Q(()=>o.value?.[t._as??e]),i=new Proxy(t,{get(l,u){const c=Reflect.get(l,u);if(u==="class"||u==="style")return[r.value?.[u],c].filter(p=>p!=null);if(RWt(n.vnode,u))return c;const d=r.value?.[u];if(d!==void 0)return d;const m=o.value?.global?.[u];return m!==void 0?m:c}}),s=Yo();tr(()=>{if(r.value){const l=Object.entries(r.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function a(){const l=$Wt(U9,n);er(U9,Q(()=>s.value?LLe(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function NWt(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=KE(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(o){return gWt(o,e)},t.props._as=String,t.setup=function(o,n){const r=_Le();if(!r.value)return t._setup(o,n);const{props:i,provideSubDefaults:s}=AWt(o,o._as??t.name,r),a=t._setup(i,n);return s(),a}}return t}function VWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?NWt:X)(e)}function IWt(t){const e=qP("useRender");e.render=t}function PWt(t){return bWt(()=>{const{class:e,style:o}=OWt(t);return{colorClasses:e,colorStyles:o}})}function MWt(t){const{colorClasses:e,colorStyles:o}=PWt(()=>({background:Sr(t)}));return{backgroundColorClasses:e,backgroundColorStyles:o}}function OWt(t){const e=Sr(t),o=[],n={};if(e.background)if(K9(e.background)){if(n.backgroundColor=e.background,!e.text&&LWt(e.background)){const r=hx(e.background);if(r.a==null||r.a===1){const i=BWt(r);n.color=i,n.caretColor=i}}}else o.push(`bg-${e.background}`);return e.text&&(K9(e.text)?(n.color=e.text,n.caretColor=e.text):o.push(`text-${e.text}`)),{class:o,style:n}}const WWt=KE({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function HWt(t){return{dimensionStyles:Q(()=>{const e={},o=mb(t.height),n=mb(t.maxHeight),r=mb(t.maxWidth),i=mb(t.minHeight),s=mb(t.minWidth),a=mb(t.width);return o!=null&&(e.height=o),n!=null&&(e.maxHeight=n),r!=null&&(e.maxWidth=r),i!=null&&(e.minHeight=i),s!=null&&(e.minWidth=s),a!=null&&(e.width=a),e})}}const zWt=KE({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function jWt(t){return{elevationClasses:Ye(()=>{const e=Vo(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const KWt=Symbol.for("vuetify:locale");function UWt(){const t=xo(KWt);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}const nle=Symbol.for("vuetify:theme"),qWt=KE({theme:String},"theme");function JWt(t){qP("provideTheme");const e=xo(nle,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=Ye(()=>t.theme??e.name.value),n=Ye(()=>e.themes.value[o.value]),r=Ye(()=>e.isDisabled?void 0:`${e.prefix}theme--${o.value}`),i={...e,name:o,current:n,themeClasses:r};return er(nle,i),i}const GWt={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divider:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"chip, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"text@6","table-tfoot":"text@2, avatar@2",text:"text"};function YWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y("div",{class:U(["v-skeleton-loader__bone",`v-skeleton-loader__${t}`])},[e])}function rle(t){const[e,o]=t.split("@");return Array.from({length:o}).map(()=>JP(e))}function JP(t){let e=[];if(!t)return e;const o=GWt[t];if(t!==o){if(t.includes(","))return ile(t);if(t.includes("@"))return rle(t);o.includes(",")?e=ile(o):o.includes("@")?e=rle(o):o&&e.push(JP(o))}return[YWt(t,e)]}function ile(t){return t.replace(/\s/g,"").split(",").map(JP)}const ZWt=KE({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...WWt(),...zWt(),...qWt()},"VSkeletonLoader");VWt()({name:"VSkeletonLoader",inheritAttrs:!1,props:ZWt(),setup(t,e){let{attrs:o,slots:n}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=MWt(()=>t.color),{dimensionStyles:s}=HWt(t),{elevationClasses:a}=jWt(t),{themeClasses:l}=JWt(t),{t:u}=UWt(),c=Q(()=>JP(yWt(t.type).join(",")));return IWt(()=>{const d=!n.default||t.loading,m=t.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(t.loadingText),role:"alert"};return d?y("div",hn({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},l.value,r.value,a.value],style:[i.value,s.value]},m,o),[c.value]):y(ce,null,[n.default?.()])}),{}}});var Wi="top",Fa="bottom",ka="right",Hi="left",GP="auto",tw=[Wi,Fa,ka,Hi],zC="start",Kv="end",DLe="clippingParents",DG="viewport",t1="popper",BLe="reference",q9=tw.reduce(function(t,e){return t.concat([e+"-"+zC,e+"-"+Kv])},[]),BG=[].concat(tw,[GP]).reduce(function(t,e){return t.concat([e,e+"-"+zC,e+"-"+Kv])},[]),$Le="beforeRead",RLe="read",ALe="afterRead",NLe="beforeMain",VLe="main",ILe="afterMain",PLe="beforeWrite",MLe="write",OLe="afterWrite",WLe=[$Le,RLe,ALe,NLe,VLe,ILe,PLe,MLe,OLe];function ld(t){return t?(t.nodeName||"").toLowerCase():null}function La(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function jC(t){var e=La(t).Element;return t instanceof e||t instanceof Element}function El(t){var e=La(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function $G(t){if(typeof ShadowRoot>"u")return!1;var e=La(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function XWt(t){var e=t.state;Object.keys(e.elements).forEach(function(o){var n=e.styles[o]||{},r=e.attributes[o]||{},i=e.elements[o];!El(i)||!ld(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(s){var a=r[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function QWt(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],i=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:o[n]),a=s.reduce(function(l,u){return l[u]="",l},{});!El(r)||!ld(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const RG={name:"applyStyles",enabled:!0,phase:"write",fn:XWt,effect:QWt,requires:["computeStyles"]};function Kc(t){return t.split("-")[0]}var Gy=Math.max,c3=Math.min,Uv=Math.round;function J9(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function HLe(){return!/^((?!chrome|android).)*safari/i.test(J9())}function qv(t,e,o){e===void 0&&(e=!1),o===void 0&&(o=!1);var n=t.getBoundingClientRect(),r=1,i=1;e&&El(t)&&(r=t.offsetWidth>0&&Uv(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Uv(n.height)/t.offsetHeight||1);var s=jC(t)?La(t):window,a=s.visualViewport,l=!HLe()&&o,u=(n.left+(l&&a?a.offsetLeft:0))/r,c=(n.top+(l&&a?a.offsetTop:0))/i,d=n.width/r,m=n.height/i;return{width:d,height:m,top:c,right:u+d,bottom:c+m,left:u,x:u,y:c}}function AG(t){var e=qv(t),o=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:n}}function zLe(t,e){var o=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(o&&$G(o)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function tp(t){return La(t).getComputedStyle(t)}function eHt(t){return["table","td","th"].indexOf(ld(t))>=0}function og(t){return((jC(t)?t.ownerDocument:t.document)||window.document).documentElement}function YP(t){return ld(t)==="html"?t:t.assignedSlot||t.parentNode||($G(t)?t.host:null)||og(t)}function sle(t){return!El(t)||tp(t).position==="fixed"?null:t.offsetParent}function tHt(t){var e=/firefox/i.test(J9()),o=/Trident/i.test(J9());if(o&&El(t)){var n=tp(t);if(n.position==="fixed")return null}var r=YP(t);for($G(r)&&(r=r.host);El(r)&&["html","body"].indexOf(ld(r))<0;){var i=tp(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function UE(t){for(var e=La(t),o=sle(t);o&&eHt(o)&&tp(o).position==="static";)o=sle(o);return o&&(ld(o)==="html"||ld(o)==="body"&&tp(o).position==="static")?e:o||tHt(t)||e}function NG(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function BF(t,e,o){return Gy(t,c3(e,o))}function oHt(t,e,o){var n=BF(t,e,o);return n>o?o:n}function jLe(){return{top:0,right:0,bottom:0,left:0}}function KLe(t){return Object.assign({},jLe(),t)}function ULe(t,e){return e.reduce(function(o,n){return o[n]=t,o},{})}var nHt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,KLe(typeof t!="number"?t:ULe(t,tw))};function rHt(t){var e,o=t.state,n=t.name,r=t.options,i=o.elements.arrow,s=o.modifiersData.popperOffsets,a=Kc(o.placement),l=NG(a),u=[Hi,ka].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=nHt(r.padding,o),m=AG(i),p=l==="y"?Wi:Hi,h=l==="y"?Fa:ka,f=o.rects.reference[c]+o.rects.reference[l]-s[l]-o.rects.popper[c],g=s[l]-o.rects.reference[l],b=UE(i),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=f/2-g/2,T=d[p],x=v-m[c]-d[h],F=v/2-m[c]/2+S,B=BF(T,F,x),N=l;o.modifiersData[n]=(e={},e[N]=B,e.centerOffset=B-F,e)}}function iHt(t){var e=t.state,o=t.options,n=o.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||zLe(e.elements.popper,r)&&(e.elements.arrow=r))}const qLe={name:"arrow",enabled:!0,phase:"main",fn:rHt,effect:iHt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jv(t){return t.split("-")[1]}var sHt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function aHt(t,e){var o=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:Uv(o*r)/r||0,y:Uv(n*r)/r||0}}function ale(t){var e,o=t.popper,n=t.popperRect,r=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=t.isFixed,m=s.x,p=m===void 0?0:m,h=s.y,f=h===void 0?0:h,g=typeof c=="function"?c({x:p,y:f}):{x:p,y:f};p=g.x,f=g.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),S=Hi,T=Wi,x=window;if(u){var F=UE(o),B="clientHeight",N="clientWidth";if(F===La(o)&&(F=og(o),tp(F).position!=="static"&&a==="absolute"&&(B="scrollHeight",N="scrollWidth")),F=F,r===Wi||(r===Hi||r===ka)&&i===Kv){T=Fa;var R=d&&F===x&&x.visualViewport?x.visualViewport.height:F[B];f-=R-n.height,f*=l?1:-1}if(r===Hi||(r===Wi||r===Fa)&&i===Kv){S=ka;var P=d&&F===x&&x.visualViewport?x.visualViewport.width:F[N];p-=P-n.width,p*=l?1:-1}}var E=Object.assign({position:a},u&&sHt),L=c===!0?aHt({x:p,y:f},La(o)):{x:p,y:f};if(p=L.x,f=L.y,l){var A;return Object.assign({},E,(A={},A[T]=v?"0":"",A[S]=b?"0":"",A.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",A))}return Object.assign({},E,(e={},e[T]=v?f+"px":"",e[S]=b?p+"px":"",e.transform="",e))}function lHt(t){var e=t.state,o=t.options,n=o.gpuAcceleration,r=n===void 0?!0:n,i=o.adaptive,s=i===void 0?!0:i,a=o.roundOffsets,l=a===void 0?!0:a,u={placement:Kc(e.placement),variation:Jv(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ale(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ale(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const VG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lHt,data:{}};var j_={passive:!0};function uHt(t){var e=t.state,o=t.instance,n=t.options,r=n.scroll,i=r===void 0?!0:r,s=n.resize,a=s===void 0?!0:s,l=La(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",o.update,j_)}),a&&l.addEventListener("resize",o.update,j_),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",o.update,j_)}),a&&l.removeEventListener("resize",o.update,j_)}}const IG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:uHt,data:{}};var cHt={left:"right",right:"left",bottom:"top",top:"bottom"};function s$(t){return t.replace(/left|right|bottom|top/g,function(e){return cHt[e]})}var dHt={start:"end",end:"start"};function lle(t){return t.replace(/start|end/g,function(e){return dHt[e]})}function PG(t){var e=La(t),o=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:o,scrollTop:n}}function MG(t){return qv(og(t)).left+PG(t).scrollLeft}function mHt(t,e){var o=La(t),n=og(t),r=o.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;var u=HLe();(u||!u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a+MG(t),y:l}}function pHt(t){var e,o=og(t),n=PG(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=Gy(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Gy(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+MG(t),l=-n.scrollTop;return tp(r||o).direction==="rtl"&&(a+=Gy(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function OG(t){var e=tp(t),o=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function JLe(t){return["html","body","#document"].indexOf(ld(t))>=0?t.ownerDocument.body:El(t)&&OG(t)?t:JLe(YP(t))}function $F(t,e){var o;e===void 0&&(e=[]);var n=JLe(t),r=n===((o=t.ownerDocument)==null?void 0:o.body),i=La(n),s=r?[i].concat(i.visualViewport||[],OG(n)?n:[]):n,a=e.concat(s);return r?a:a.concat($F(YP(s)))}function G9(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function hHt(t,e){var o=qv(t,!1,e==="fixed");return o.top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o}function ule(t,e,o){return e===DG?G9(mHt(t,o)):jC(e)?hHt(e,o):G9(pHt(og(t)))}function fHt(t){var e=$F(YP(t)),o=["absolute","fixed"].indexOf(tp(t).position)>=0,n=o&&El(t)?UE(t):t;return jC(n)?e.filter(function(r){return jC(r)&&zLe(r,n)&&ld(r)!=="body"}):[]}function gHt(t,e,o,n){var r=e==="clippingParents"?fHt(t):[].concat(e),i=[].concat(r,[o]),s=i[0],a=i.reduce(function(l,u){var c=ule(t,u,n);return l.top=Gy(c.top,l.top),l.right=c3(c.right,l.right),l.bottom=c3(c.bottom,l.bottom),l.left=Gy(c.left,l.left),l},ule(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function GLe(t){var e=t.reference,o=t.element,n=t.placement,r=n?Kc(n):null,i=n?Jv(n):null,s=e.x+e.width/2-o.width/2,a=e.y+e.height/2-o.height/2,l;switch(r){case Wi:l={x:s,y:e.y-o.height};break;case Fa:l={x:s,y:e.y+e.height};break;case ka:l={x:e.x+e.width,y:a};break;case Hi:l={x:e.x-o.width,y:a};break;default:l={x:e.x,y:e.y}}var u=r?NG(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case zC:l[u]=l[u]-(e[c]/2-o[c]/2);break;case Kv:l[u]=l[u]+(e[c]/2-o[c]/2);break}}return l}function Gv(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=n===void 0?t.placement:n,i=o.strategy,s=i===void 0?t.strategy:i,a=o.boundary,l=a===void 0?DLe:a,u=o.rootBoundary,c=u===void 0?DG:u,d=o.elementContext,m=d===void 0?t1:d,p=o.altBoundary,h=p===void 0?!1:p,f=o.padding,g=f===void 0?0:f,b=KLe(typeof g!="number"?g:ULe(g,tw)),v=m===t1?BLe:t1,S=t.rects.popper,T=t.elements[h?v:m],x=gHt(jC(T)?T:T.contextElement||og(t.elements.popper),l,c,s),F=qv(t.elements.reference),B=GLe({reference:F,element:S,placement:r}),N=G9(Object.assign({},S,B)),R=m===t1?N:F,P={top:x.top-R.top+b.top,bottom:R.bottom-x.bottom+b.bottom,left:x.left-R.left+b.left,right:R.right-x.right+b.right},E=t.modifiersData.offset;if(m===t1&&E){var L=E[r];Object.keys(P).forEach(function(A){var I=[ka,Fa].indexOf(A)>=0?1:-1,W=[Wi,Fa].indexOf(A)>=0?"y":"x";P[A]+=L[W]*I})}return P}function yHt(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=o.boundary,i=o.rootBoundary,s=o.padding,a=o.flipVariations,l=o.allowedAutoPlacements,u=l===void 0?BG:l,c=Jv(n),d=c?a?q9:q9.filter(function(h){return Jv(h)===c}):tw,m=d.filter(function(h){return u.indexOf(h)>=0});m.length===0&&(m=d);var p=m.reduce(function(h,f){return h[f]=Gv(t,{placement:f,boundary:r,rootBoundary:i,padding:s})[Kc(f)],h},{});return Object.keys(p).sort(function(h,f){return p[h]-p[f]})}function CHt(t){if(Kc(t)===GP)return[];var e=s$(t);return[lle(t),e,lle(e)]}function bHt(t){var e=t.state,o=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!0:s,l=o.fallbackPlacements,u=o.padding,c=o.boundary,d=o.rootBoundary,m=o.altBoundary,p=o.flipVariations,h=p===void 0?!0:p,f=o.allowedAutoPlacements,g=e.options.placement,b=Kc(g),v=b===g,S=l||(v||!h?[s$(g)]:CHt(g)),T=[g].concat(S).reduce(function(me,H){return me.concat(Kc(H)===GP?yHt(e,{placement:H,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:f}):H)},[]),x=e.rects.reference,F=e.rects.popper,B=new Map,N=!0,R=T[0],P=0;P<T.length;P++){var E=T[P],L=Kc(E),A=Jv(E)===zC,I=[Wi,Fa].indexOf(L)>=0,W=I?"width":"height",O=Gv(e,{placement:E,boundary:c,rootBoundary:d,altBoundary:m,padding:u}),K=I?A?ka:Hi:A?Fa:Wi;x[W]>F[W]&&(K=s$(K));var fe=s$(K),Ve=[];if(i&&Ve.push(O[L]<=0),a&&Ve.push(O[K]<=0,O[fe]<=0),Ve.every(function(me){return me})){R=E,N=!1;break}B.set(E,Ve)}if(N)for(var Se=h?3:1,G=function(me){var H=T.find(function(be){var le=B.get(be);if(le)return le.slice(0,me).every(function(ue){return ue})});if(H)return R=H,"break"},Ae=Se;Ae>0;Ae--){var q=G(Ae);if(q==="break")break}e.placement!==R&&(e.modifiersData[n]._skip=!0,e.placement=R,e.reset=!0)}}const YLe={name:"flip",enabled:!0,phase:"main",fn:bHt,requiresIfExists:["offset"],data:{_skip:!1}};function cle(t,e,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-e.height-o.y,right:t.right-e.width+o.x,bottom:t.bottom-e.height+o.y,left:t.left-e.width-o.x}}function dle(t){return[Wi,ka,Fa,Hi].some(function(e){return t[e]>=0})}function vHt(t){var e=t.state,o=t.name,n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=Gv(e,{elementContext:"reference"}),a=Gv(e,{altBoundary:!0}),l=cle(s,n),u=cle(a,r,i),c=dle(l),d=dle(u);e.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const ZLe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vHt};function SHt(t,e,o){var n=Kc(t),r=[Hi,Wi].indexOf(n)>=0?-1:1,i=typeof o=="function"?o(Object.assign({},e,{placement:t})):o,s=i[0],a=i[1];return s=s||0,a=(a||0)*r,[Hi,ka].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function wHt(t){var e=t.state,o=t.options,n=t.name,r=o.offset,i=r===void 0?[0,0]:r,s=BG.reduce(function(c,d){return c[d]=SHt(d,e.rects,i),c},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}const XLe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wHt};function THt(t){var e=t.state,o=t.name;e.modifiersData[o]=GLe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const WG={name:"popperOffsets",enabled:!0,phase:"read",fn:THt,data:{}};function xHt(t){return t==="x"?"y":"x"}function FHt(t){var e=t.state,o=t.options,n=t.name,r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!1:s,l=o.boundary,u=o.rootBoundary,c=o.altBoundary,d=o.padding,m=o.tether,p=m===void 0?!0:m,h=o.tetherOffset,f=h===void 0?0:h,g=Gv(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Kc(e.placement),v=Jv(e.placement),S=!v,T=NG(b),x=xHt(T),F=e.modifiersData.popperOffsets,B=e.rects.reference,N=e.rects.popper,R=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,P=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(F){if(i){var A,I=T==="y"?Wi:Hi,W=T==="y"?Fa:ka,O=T==="y"?"height":"width",K=F[T],fe=K+g[I],Ve=K-g[W],Se=p?-N[O]/2:0,G=v===zC?B[O]:N[O],Ae=v===zC?-N[O]:-B[O],q=e.elements.arrow,me=p&&q?AG(q):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:jLe(),be=H[I],le=H[W],ue=BF(0,B[O],me[O]),Nt=S?B[O]/2-Se-ue-be-P.mainAxis:G-ue-be-P.mainAxis,Vt=S?-B[O]/2+Se+ue+le+P.mainAxis:Ae+ue+le+P.mainAxis,Et=e.elements.arrow&&UE(e.elements.arrow),z=Et?T==="y"?Et.clientTop||0:Et.clientLeft||0:0,j=(A=E?.[T])!=null?A:0,ee=K+Nt-j-z,oe=K+Vt-j,re=BF(p?c3(fe,ee):fe,K,p?Gy(Ve,oe):Ve);F[T]=re,L[T]=re-K}if(a){var ie,de=T==="x"?Wi:Hi,he=T==="x"?Fa:ka,te=F[x],ne=x==="y"?"height":"width",Ge=te+g[de],Te=te-g[he],we=[Wi,Hi].indexOf(b)!==-1,xe=(ie=E?.[x])!=null?ie:0,Ne=we?Ge:te-B[ne]-N[ne]-xe+P.altAxis,Ce=we?te+B[ne]+N[ne]-xe-P.altAxis:Te,Qe=p&&we?oHt(Ne,te,Ce):BF(p?Ne:Ge,te,p?Ce:Te);F[x]=Qe,L[x]=Qe-te}e.modifiersData[n]=L}}const QLe={name:"preventOverflow",enabled:!0,phase:"main",fn:FHt,requiresIfExists:["offset"]};function kHt(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function LHt(t){return t===La(t)||!El(t)?PG(t):kHt(t)}function EHt(t){var e=t.getBoundingClientRect(),o=Uv(e.width)/t.offsetWidth||1,n=Uv(e.height)/t.offsetHeight||1;return o!==1||n!==1}function _Ht(t,e,o){o===void 0&&(o=!1);var n=El(e),r=El(e)&&EHt(e),i=og(e),s=qv(t,r,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!o)&&((ld(e)!=="body"||OG(i))&&(a=LHt(e)),El(e)?(l=qv(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=MG(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function DHt(t){var e=new Map,o=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function r(i){o.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!o.has(a)){var l=e.get(a);l&&r(l)}}),n.push(i)}return t.forEach(function(i){o.has(i.name)||r(i)}),n}function BHt(t){var e=DHt(t);return WLe.reduce(function(o,n){return o.concat(e.filter(function(r){return r.phase===n}))},[])}function $Ht(t){var e;return function(){return e||(e=new Promise(function(o){Promise.resolve().then(function(){e=void 0,o(t())})})),e}}function RHt(t){var e=t.reduce(function(o,n){var r=o[n.name];return o[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,o},{});return Object.keys(e).map(function(o){return e[o]})}var mle={placement:"bottom",modifiers:[],strategy:"absolute"};function ple(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function ZP(t){t===void 0&&(t={});var e=t,o=e.defaultModifiers,n=o===void 0?[]:o,r=e.defaultOptions,i=r===void 0?mle:r;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},mle,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},c=[],d=!1,m={state:u,setOptions:function(f){var g=typeof f=="function"?f(u.options):f;h(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:jC(s)?$F(s):s.contextElement?$F(s.contextElement):[],popper:$F(a)};var b=BHt(RHt([].concat(n,u.options.modifiers)));return u.orderedModifiers=b.filter(function(v){return v.enabled}),p(),m.update()},forceUpdate:function(){if(!d){var f=u.elements,g=f.reference,b=f.popper;if(ple(g,b)){u.rects={reference:_Ht(g,UE(b),u.options.strategy==="fixed"),popper:AG(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var S=u.orderedModifiers[v],T=S.fn,x=S.options,F=x===void 0?{}:x,B=S.name;typeof T=="function"&&(u=T({state:u,options:F,name:B,instance:m})||u)}}}},update:$Ht(function(){return new Promise(function(f){m.forceUpdate(),f(u)})}),destroy:function(){h(),d=!0}};if(!ple(s,a))return m;m.setOptions(l).then(function(f){!d&&l.onFirstUpdate&&l.onFirstUpdate(f)});function p(){u.orderedModifiers.forEach(function(f){var g=f.name,b=f.options,v=b===void 0?{}:b,S=f.effect;if(typeof S=="function"){var T=S({state:u,name:g,instance:m,options:v}),x=function(){};c.push(T||x)}})}function h(){c.forEach(function(f){return f()}),c=[]}return m}}var AHt=ZP(),NHt=[IG,WG,VG,RG],VHt=ZP({defaultModifiers:NHt}),IHt=[IG,WG,VG,RG,XLe,YLe,QLe,qLe,ZLe],HG=ZP({defaultModifiers:IHt});const eEe=Object.freeze(Object.defineProperty({__proto__:null,afterMain:ILe,afterRead:ALe,afterWrite:OLe,applyStyles:RG,arrow:qLe,auto:GP,basePlacements:tw,beforeMain:NLe,beforeRead:$Le,beforeWrite:PLe,bottom:Fa,clippingParents:DLe,computeStyles:VG,createPopper:HG,createPopperBase:AHt,createPopperLite:VHt,detectOverflow:Gv,end:Kv,eventListeners:IG,flip:YLe,hide:ZLe,left:Hi,main:VLe,modifierPhases:WLe,offset:XLe,placements:BG,popper:t1,popperGenerator:ZP,popperOffsets:WG,preventOverflow:QLe,read:RLe,reference:BLe,right:ka,start:zC,top:Wi,variationPlacements:q9,viewport:DG,write:MLe},Symbol.toStringTag,{value:"Module"})),Jp=new Map,G4={set(t,e,o){Jp.has(t)||Jp.set(t,new Map);const n=Jp.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,o)},get(t,e){return Jp.has(t)&&Jp.get(t).get(e)||null},remove(t,e){if(!Jp.has(t))return;const o=Jp.get(t);o.delete(e),o.size===0&&Jp.delete(t)}},PHt=1e6,MHt=1e3,Y9="transitionend",tEe=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,o)=>`#${CSS.escape(o)}`)),t),OHt=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),WHt=t=>{do t+=Math.floor(Math.random()*PHt);while(document.getElementById(t));return t},HHt=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:o}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(o);return!n&&!r?0:(e=e.split(",")[0],o=o.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(o))*MHt)},oEe=t=>{t.dispatchEvent(new Event(Y9))},Dm=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Ef=t=>Dm(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(tEe(t)):null,ow=t=>{if(!Dm(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",o=t.closest("details:not([open])");if(!o)return e;if(o!==t){const n=t.closest("summary");if(n&&n.parentNode!==o||n===null)return!1}return e},_f=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",nEe=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?nEe(t.parentNode):null},d3=()=>{},qE=t=>{t.offsetHeight},rEe=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Y4=[],zHt=t=>{document.readyState==="loading"?(Y4.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Y4)e()}),Y4.push(t)):t()},Ml=()=>document.documentElement.dir==="rtl",tu=t=>{zHt(()=>{const e=rEe();if(e){const o=t.NAME,n=e.fn[o];e.fn[o]=t.jQueryInterface,e.fn[o].Constructor=t,e.fn[o].noConflict=()=>(e.fn[o]=n,t.jQueryInterface)}})},xs=(t,e=[],o=t)=>typeof t=="function"?t.call(...e):o,iEe=(t,e,o=!0)=>{if(!o){xs(t);return}const n=HHt(e)+5;let r=!1;const i=({target:s})=>{s===e&&(r=!0,e.removeEventListener(Y9,i),xs(t))};e.addEventListener(Y9,i),setTimeout(()=>{r||oEe(e)},n)},zG=(t,e,o,n)=>{const r=t.length;let i=t.indexOf(e);return i===-1?!o&&n?t[r-1]:t[0]:(i+=o?1:-1,n&&(i=(i+r)%r),t[Math.max(0,Math.min(i,r-1))])},jHt=/[^.]*(?=\..*)\.|.*/,KHt=/\..*/,UHt=/::\d+$/,Z4={};let hle=1;const sEe={mouseenter:"mouseover",mouseleave:"mouseout"},qHt=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function aEe(t,e){return e&&`${e}::${hle++}`||t.uidEvent||hle++}function lEe(t){const e=aEe(t);return t.uidEvent=e,Z4[e]=Z4[e]||{},Z4[e]}function JHt(t,e){return function o(n){return jG(n,{delegateTarget:t}),o.oneOff&&Ee.off(t,n.type,e),e.apply(t,[n])}}function GHt(t,e,o){return function n(r){const i=t.querySelectorAll(e);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return jG(r,{delegateTarget:s}),n.oneOff&&Ee.off(t,r.type,e,o),o.apply(s,[r])}}function uEe(t,e,o=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===o)}function cEe(t,e,o){const n=typeof e=="string",r=n?o:e||o;let i=dEe(t);return qHt.has(i)||(i=t),[n,r,i]}function fle(t,e,o,n,r){if(typeof e!="string"||!t)return;let[i,s,a]=cEe(e,o,n);e in sEe&&(s=(p=>function(h){if(!h.relatedTarget||h.relatedTarget!==h.delegateTarget&&!h.delegateTarget.contains(h.relatedTarget))return p.call(this,h)})(s));const l=lEe(t),u=l[a]||(l[a]={}),c=uEe(u,s,i?o:null);if(c){c.oneOff=c.oneOff&&r;return}const d=aEe(s,e.replace(jHt,"")),m=i?GHt(t,o,s):JHt(t,s);m.delegationSelector=i?o:null,m.callable=s,m.oneOff=r,m.uidEvent=d,u[d]=m,t.addEventListener(a,m,i)}function Z9(t,e,o,n,r){const i=uEe(e[o],n,r);i&&(t.removeEventListener(o,i,!!r),delete e[o][i.uidEvent])}function YHt(t,e,o,n){const r=e[o]||{};for(const[i,s]of Object.entries(r))i.includes(n)&&Z9(t,e,o,s.callable,s.delegationSelector)}function dEe(t){return t=t.replace(KHt,""),sEe[t]||t}const Ee={on(t,e,o,n){fle(t,e,o,n,!1)},one(t,e,o,n){fle(t,e,o,n,!0)},off(t,e,o,n){if(typeof e!="string"||!t)return;const[r,i,s]=cEe(e,o,n),a=s!==e,l=lEe(t),u=l[s]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;Z9(t,l,s,i,r?o:null);return}if(c)for(const d of Object.keys(l))YHt(t,l,d,e.slice(1));for(const[d,m]of Object.entries(u)){const p=d.replace(UHt,"");(!a||e.includes(p))&&Z9(t,l,s,m.callable,m.delegationSelector)}},trigger(t,e,o){if(typeof e!="string"||!t)return null;const n=rEe(),r=dEe(e),i=e!==r;let s=null,a=!0,l=!0,u=!1;i&&n&&(s=n.Event(e,o),n(t).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=jG(new Event(e,{bubbles:a,cancelable:!0}),o);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function jG(t,e={}){for(const[o,n]of Object.entries(e))try{t[o]=n}catch{Object.defineProperty(t,o,{configurable:!0,get(){return n}})}return t}function gle(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function X4(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Bm={setDataAttribute(t,e,o){t.setAttribute(`data-bs-${X4(e)}`,o)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${X4(e)}`)},getDataAttributes(t){if(!t)return{};const e={},o=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of o){let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),e[r]=gle(t.dataset[n])}return e},getDataAttribute(t,e){return gle(t.getAttribute(`data-bs-${X4(e)}`))}};let JE=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,o){const n=Dm(o)?Bm.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...Dm(o)?Bm.getDataAttributes(o):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,o=this.constructor.DefaultType){for(const[n,r]of Object.entries(o)){const i=e[n],s=Dm(i)?"element":OHt(i);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${r}".`)}}};const ZHt="5.3.8";let Xu=class extends JE{constructor(e,o){super(),e=Ef(e),e&&(this._element=e,this._config=this._getConfig(o),G4.set(this._element,this.constructor.DATA_KEY,this))}dispose(){G4.remove(this._element,this.constructor.DATA_KEY),Ee.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,o,n=!0){iEe(e,o,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return G4.get(Ef(e),this.DATA_KEY)}static getOrCreateInstance(e,o={}){return this.getInstance(e)||new this(e,typeof o=="object"?o:null)}static get VERSION(){return ZHt}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}};const Q4=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let o=t.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),e=o&&o!=="#"?o.trim():null}return e?e.split(",").map(o=>tEe(o)).join(","):null},vt={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(o=>o.matches(e))},parents(t,e){const o=[];let n=t.parentNode.closest(e);for(;n;)o.push(n),n=n.parentNode.closest(e);return o},prev(t,e){let o=t.previousElementSibling;for(;o;){if(o.matches(e))return[o];o=o.previousElementSibling}return[]},next(t,e){let o=t.nextElementSibling;for(;o;){if(o.matches(e))return[o];o=o.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(o=>!_f(o)&&ow(o))},getSelectorFromElement(t){const e=Q4(t);return e&&vt.findOne(e)?e:null},getElementFromSelector(t){const e=Q4(t);return e?vt.findOne(e):null},getMultipleElementsFromSelector(t){const e=Q4(t);return e?vt.find(e):[]}},XP=(t,e="hide")=>{const o=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Ee.on(document,o,`[data-bs-dismiss="${n}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),_f(this))return;const i=vt.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(i)[e]()})},XHt="alert",QHt="bs.alert",mEe=`.${QHt}`,e7t=`close${mEe}`,t7t=`closed${mEe}`,o7t="fade",n7t="show";let pEe=class hEe extends Xu{static get NAME(){return XHt}close(){if(Ee.trigger(this._element,e7t).defaultPrevented)return;this._element.classList.remove(n7t);const e=this._element.classList.contains(o7t);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Ee.trigger(this._element,t7t),this.dispose()}static jQueryInterface(e){return this.each(function(){const o=hEe.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};XP(pEe,"close");tu(pEe);const r7t="button",i7t="bs.button",s7t=`.${i7t}`,a7t=".data-api",l7t="active",yle='[data-bs-toggle="button"]',u7t=`click${s7t}${a7t}`;let fEe=class gEe extends Xu{static get NAME(){return r7t}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(l7t))}static jQueryInterface(e){return this.each(function(){const o=gEe.getOrCreateInstance(this);e==="toggle"&&o[e]()})}};Ee.on(document,u7t,yle,t=>{t.preventDefault();const e=t.target.closest(yle);fEe.getOrCreateInstance(e).toggle()});tu(fEe);const c7t="swipe",nw=".bs.swipe",d7t=`touchstart${nw}`,m7t=`touchmove${nw}`,p7t=`touchend${nw}`,h7t=`pointerdown${nw}`,f7t=`pointerup${nw}`,g7t="touch",y7t="pen",C7t="pointer-event",b7t=40,v7t={endCallback:null,leftCallback:null,rightCallback:null},S7t={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};let Cle=class yEe extends JE{constructor(e,o){super(),this._element=e,!(!e||!yEe.isSupported())&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return v7t}static get DefaultType(){return S7t}static get NAME(){return c7t}dispose(){Ee.off(this._element,nw)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),xs(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=b7t)return;const o=e/this._deltaX;this._deltaX=0,o&&xs(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ee.on(this._element,h7t,e=>this._start(e)),Ee.on(this._element,f7t,e=>this._end(e)),this._element.classList.add(C7t)):(Ee.on(this._element,d7t,e=>this._start(e)),Ee.on(this._element,m7t,e=>this._move(e)),Ee.on(this._element,p7t,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===y7t||e.pointerType===g7t)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}};const w7t="carousel",T7t="bs.carousel",ng=`.${T7t}`,CEe=".data-api",x7t="ArrowLeft",F7t="ArrowRight",k7t=500,dT="next",hb="prev",o1="left",a$="right",L7t=`slide${ng}`,e5=`slid${ng}`,E7t=`keydown${ng}`,_7t=`mouseenter${ng}`,D7t=`mouseleave${ng}`,B7t=`dragstart${ng}`,$7t=`load${ng}${CEe}`,R7t=`click${ng}${CEe}`,bEe="carousel",K_="active",A7t="slide",N7t="carousel-item-end",V7t="carousel-item-start",I7t="carousel-item-next",P7t="carousel-item-prev",vEe=".active",SEe=".carousel-item",M7t=vEe+SEe,O7t=".carousel-item img",W7t=".carousel-indicators",H7t="[data-bs-slide], [data-bs-slide-to]",z7t='[data-bs-ride="carousel"]',j7t={[x7t]:a$,[F7t]:o1},K7t={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},U7t={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};let KG=class wEe extends Xu{constructor(e,o){super(e,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=vt.findOne(W7t,this._element),this._addEventListeners(),this._config.ride===bEe&&this.cycle()}static get Default(){return K7t}static get DefaultType(){return U7t}static get NAME(){return w7t}next(){this._slide(dT)}nextWhenVisible(){!document.hidden&&ow(this._element)&&this.next()}prev(){this._slide(hb)}pause(){this._isSliding&&oEe(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Ee.one(this._element,e5,()=>this.cycle());return}this.cycle()}}to(e){const o=this._getItems();if(e>o.length-1||e<0)return;if(this._isSliding){Ee.one(this._element,e5,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const r=e>n?dT:hb;this._slide(r,o[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Ee.on(this._element,E7t,e=>this._keydown(e)),this._config.pause==="hover"&&(Ee.on(this._element,_7t,()=>this.pause()),Ee.on(this._element,D7t,()=>this._maybeEnableCycle())),this._config.touch&&Cle.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of vt.find(O7t,this._element))Ee.on(o,B7t,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(o1)),rightCallback:()=>this._slide(this._directionToOrder(a$)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),k7t+this._config.interval))}};this._swipeHelper=new Cle(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const o=j7t[e.key];o&&(e.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const o=vt.findOne(vEe,this._indicatorsElement);o.classList.remove(K_),o.removeAttribute("aria-current");const n=vt.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(K_),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const o=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(e,o=null){if(this._isSliding)return;const n=this._getActive(),r=e===dT,i=o||zG(this._getItems(),n,r,this._config.wrap);if(i===n)return;const s=this._getItemIndex(i),a=m=>Ee.trigger(this._element,m,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:s});if(a(L7t).defaultPrevented||!n||!i)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=r?V7t:N7t,c=r?I7t:P7t;i.classList.add(c),qE(i),n.classList.add(u),i.classList.add(u);const d=()=>{i.classList.remove(u,c),i.classList.add(K_),n.classList.remove(K_,c,u),this._isSliding=!1,a(e5)};this._queueCallback(d,n,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(A7t)}_getActive(){return vt.findOne(M7t,this._element)}_getItems(){return vt.find(SEe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ml()?e===o1?hb:dT:e===o1?dT:hb}_orderToDirection(e){return Ml()?e===hb?o1:a$:e===hb?a$:o1}static jQueryInterface(e){return this.each(function(){const o=wEe.getOrCreateInstance(this,e);if(typeof e=="number"){o.to(e);return}if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,R7t,H7t,function(t){const e=vt.getElementFromSelector(this);if(!e||!e.classList.contains(bEe))return;t.preventDefault();const o=KG.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){o.to(n),o._maybeEnableCycle();return}if(Bm.getDataAttribute(this,"slide")==="next"){o.next(),o._maybeEnableCycle();return}o.prev(),o._maybeEnableCycle()});Ee.on(window,$7t,()=>{const t=vt.find(z7t);for(const e of t)KG.getOrCreateInstance(e)});tu(KG);const q7t="collapse",J7t="bs.collapse",GE=`.${J7t}`,G7t=".data-api",Y7t=`show${GE}`,Z7t=`shown${GE}`,X7t=`hide${GE}`,Q7t=`hidden${GE}`,e8t=`click${GE}${G7t}`,t5="show",H1="collapse",U_="collapsing",t8t="collapsed",o8t=`:scope .${H1} .${H1}`,n8t="collapse-horizontal",r8t="width",i8t="height",s8t=".collapse.show, .collapse.collapsing",X9='[data-bs-toggle="collapse"]',a8t={parent:null,toggle:!0},l8t={parent:"(null|element)",toggle:"boolean"};let TEe=class Q9 extends Xu{constructor(e,o){super(e,o),this._isTransitioning=!1,this._triggerArray=[];const n=vt.find(X9);for(const r of n){const i=vt.getSelectorFromElement(r),s=vt.find(i).filter(a=>a===this._element);i!==null&&s.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return a8t}static get DefaultType(){return l8t}static get NAME(){return q7t}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(s8t).filter(i=>i!==this._element).map(i=>Q9.getOrCreateInstance(i,{toggle:!1}))),e.length&&e[0]._isTransitioning||Ee.trigger(this._element,Y7t).defaultPrevented)return;for(const i of e)i.hide();const o=this._getDimension();this._element.classList.remove(H1),this._element.classList.add(U_),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(U_),this._element.classList.add(H1,t5),this._element.style[o]="",Ee.trigger(this._element,Z7t)},r=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[o]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||Ee.trigger(this._element,X7t).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,qE(this._element),this._element.classList.add(U_),this._element.classList.remove(H1,t5);for(const n of this._triggerArray){const r=vt.getElementFromSelector(n);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(U_),this._element.classList.add(H1),Ee.trigger(this._element,Q7t)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}_isShown(e=this._element){return e.classList.contains(t5)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Ef(e.parent),e}_getDimension(){return this._element.classList.contains(n8t)?r8t:i8t}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(X9);for(const o of e){const n=vt.getElementFromSelector(o);n&&this._addAriaAndCollapsedClass([o],this._isShown(n))}}_getFirstLevelChildren(e){const o=vt.find(o8t,this._config.parent);return vt.find(e,this._config.parent).filter(n=>!o.includes(n))}_addAriaAndCollapsedClass(e,o){if(e.length)for(const n of e)n.classList.toggle(t8t,!o),n.setAttribute("aria-expanded",o)}static jQueryInterface(e){const o={};return typeof e=="string"&&/show|hide/.test(e)&&(o.toggle=!1),this.each(function(){const n=Q9.getOrCreateInstance(this,o);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}};Ee.on(document,e8t,X9,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of vt.getMultipleElementsFromSelector(this))TEe.getOrCreateInstance(e,{toggle:!1}).toggle()});tu(TEe);const ble="dropdown",u8t="bs.dropdown",S0=`.${u8t}`,UG=".data-api",c8t="Escape",vle="Tab",d8t="ArrowUp",Sle="ArrowDown",m8t=2,p8t=`hide${S0}`,h8t=`hidden${S0}`,f8t=`show${S0}`,g8t=`shown${S0}`,xEe=`click${S0}${UG}`,FEe=`keydown${S0}${UG}`,y8t=`keyup${S0}${UG}`,n1="show",C8t="dropup",b8t="dropend",v8t="dropstart",S8t="dropup-center",w8t="dropdown-center",my='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',T8t=`${my}.${n1}`,l$=".dropdown-menu",x8t=".navbar",F8t=".navbar-nav",k8t=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",L8t=Ml()?"top-end":"top-start",E8t=Ml()?"top-start":"top-end",_8t=Ml()?"bottom-end":"bottom-start",D8t=Ml()?"bottom-start":"bottom-end",B8t=Ml()?"left-start":"right-start",$8t=Ml()?"right-start":"left-start",R8t="top",A8t="bottom",N8t={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},V8t={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let rw=class u$ extends Xu{constructor(e,o){super(e,o),this._popper=null,this._parent=this._element.parentNode,this._menu=vt.next(this._element,l$)[0]||vt.prev(this._element,l$)[0]||vt.findOne(l$,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return N8t}static get DefaultType(){return V8t}static get NAME(){return ble}toggle(){return this._isShown()?this.hide():this.show()}show(){if(_f(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Ee.trigger(this._element,f8t,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(F8t))for(const o of[].concat(...document.body.children))Ee.on(o,"mouseover",d3);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(n1),this._element.classList.add(n1),Ee.trigger(this._element,g8t,e)}}hide(){if(_f(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Ee.trigger(this._element,p8t,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",d3);this._popper&&this._popper.destroy(),this._menu.classList.remove(n1),this._element.classList.remove(n1),this._element.setAttribute("aria-expanded","false"),Bm.removeDataAttribute(this._menu,"popper"),Ee.trigger(this._element,h8t,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Dm(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${ble.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof eEe>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:Dm(this._config.reference)?e=Ef(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const o=this._getPopperConfig();this._popper=HG(e,this._menu,o)}_isShown(){return this._menu.classList.contains(n1)}_getPlacement(){const e=this._parent;if(e.classList.contains(b8t))return B8t;if(e.classList.contains(v8t))return $8t;if(e.classList.contains(S8t))return R8t;if(e.classList.contains(w8t))return A8t;const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(C8t)?o?E8t:L8t:o?D8t:_8t}_detectNavbar(){return this._element.closest(x8t)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Bm.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...xs(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:o}){const n=vt.find(k8t,this._menu).filter(r=>ow(r));n.length&&zG(n,o,e===Sle,!n.includes(o)).focus()}static jQueryInterface(e){return this.each(function(){const o=u$.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}static clearMenus(e){if(e.button===m8t||e.type==="keyup"&&e.key!==vle)return;const o=vt.find(T8t);for(const n of o){const r=u$.getInstance(n);if(!r||r._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(r._menu);if(i.includes(r._element)||r._config.autoClose==="inside"&&!s||r._config.autoClose==="outside"&&s||r._menu.contains(e.target)&&(e.type==="keyup"&&e.key===vle||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:r._element};e.type==="click"&&(a.clickEvent=e),r._completeHide(a)}}static dataApiKeydownHandler(e){const o=/input|textarea/i.test(e.target.tagName),n=e.key===c8t,r=[d8t,Sle].includes(e.key);if(!r&&!n||o&&!n)return;e.preventDefault();const i=this.matches(my)?this:vt.prev(this,my)[0]||vt.next(this,my)[0]||vt.findOne(my,e.delegateTarget.parentNode),s=u$.getOrCreateInstance(i);if(r){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}};Ee.on(document,FEe,my,rw.dataApiKeydownHandler);Ee.on(document,FEe,l$,rw.dataApiKeydownHandler);Ee.on(document,xEe,rw.clearMenus);Ee.on(document,y8t,rw.clearMenus);Ee.on(document,xEe,my,function(t){t.preventDefault(),rw.getOrCreateInstance(this).toggle()});tu(rw);const kEe="backdrop",I8t="fade",wle="show",Tle=`mousedown.bs.${kEe}`,P8t={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},M8t={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};let LEe=class extends JE{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return P8t}static get DefaultType(){return M8t}static get NAME(){return kEe}show(e){if(!this._config.isVisible){xs(e);return}this._append();const o=this._getElement();this._config.isAnimated&&qE(o),o.classList.add(wle),this._emulateAnimation(()=>{xs(e)})}hide(e){if(!this._config.isVisible){xs(e);return}this._getElement().classList.remove(wle),this._emulateAnimation(()=>{this.dispose(),xs(e)})}dispose(){this._isAppended&&(Ee.off(this._element,Tle),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(I8t),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Ef(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Ee.on(e,Tle,()=>{xs(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){iEe(e,this._getElement(),this._config.isAnimated)}};const O8t="focustrap",W8t="bs.focustrap",m3=`.${W8t}`,H8t=`focusin${m3}`,z8t=`keydown.tab${m3}`,j8t="Tab",K8t="forward",xle="backward",U8t={autofocus:!0,trapElement:null},q8t={autofocus:"boolean",trapElement:"element"};let EEe=class extends JE{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return U8t}static get DefaultType(){return q8t}static get NAME(){return O8t}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ee.off(document,m3),Ee.on(document,H8t,e=>this._handleFocusin(e)),Ee.on(document,z8t,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ee.off(document,m3))}_handleFocusin(e){const{trapElement:o}=this._config;if(e.target===document||e.target===o||o.contains(e.target))return;const n=vt.focusableChildren(o);n.length===0?o.focus():this._lastTabNavDirection===xle?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===j8t&&(this._lastTabNavDirection=e.shiftKey?xle:K8t)}};const Fle=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",kle=".sticky-top",q_="padding-right",Lle="margin-right";let ez=class{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,q_,o=>o+e),this._setElementAttributes(Fle,q_,o=>o+e),this._setElementAttributes(kle,Lle,o=>o-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,q_),this._resetElementAttributes(Fle,q_),this._resetElementAttributes(kle,Lle)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,o,n){const r=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+r)return;this._saveInitialAttribute(s,o);const a=window.getComputedStyle(s).getPropertyValue(o);s.style.setProperty(o,`${n(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,o){const n=e.style.getPropertyValue(o);n&&Bm.setDataAttribute(e,o,n)}_resetElementAttributes(e,o){const n=r=>{const i=Bm.getDataAttribute(r,o);if(i===null){r.style.removeProperty(o);return}Bm.removeDataAttribute(r,o),r.style.setProperty(o,i)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,o){if(Dm(e)){o(e);return}for(const n of vt.find(e,this._element))o(n)}};const J8t="modal",G8t="bs.modal",Ol=`.${G8t}`,Y8t=".data-api",Z8t="Escape",X8t=`hide${Ol}`,Q8t=`hidePrevented${Ol}`,_Ee=`hidden${Ol}`,DEe=`show${Ol}`,e9t=`shown${Ol}`,t9t=`resize${Ol}`,o9t=`click.dismiss${Ol}`,n9t=`mousedown.dismiss${Ol}`,r9t=`keydown.dismiss${Ol}`,i9t=`click${Ol}${Y8t}`,Ele="modal-open",s9t="fade",_le="show",o5="modal-static",a9t=".modal.show",l9t=".modal-dialog",u9t=".modal-body",c9t='[data-bs-toggle="modal"]',d9t={backdrop:!0,focus:!0,keyboard:!0},m9t={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let p3=class BEe extends Xu{constructor(e,o){super(e,o),this._dialog=vt.findOne(l9t,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ez,this._addEventListeners()}static get Default(){return d9t}static get DefaultType(){return m9t}static get NAME(){return J8t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Ee.trigger(this._element,DEe,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ele),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Ee.trigger(this._element,X8t).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(_le),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ee.off(window,Ol),Ee.off(this._dialog,Ol),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new LEe({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new EEe({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=vt.findOne(u9t,this._dialog);o&&(o.scrollTop=0),qE(this._element),this._element.classList.add(_le);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ee.trigger(this._element,e9t,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Ee.on(this._element,r9t,e=>{if(e.key===Z8t){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Ee.on(window,t9t,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ee.on(this._element,n9t,e=>{Ee.one(this._element,o9t,o=>{if(!(this._element!==e.target||this._element!==o.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Ele),this._resetAdjustments(),this._scrollBar.reset(),Ee.trigger(this._element,_Ee)})}_isAnimated(){return this._element.classList.contains(s9t)}_triggerBackdropTransition(){if(Ee.trigger(this._element,Q8t).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(o5)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(o5),this._queueCallback(()=>{this._element.classList.remove(o5),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),n=o>0;if(n&&!e){const r=Ml()?"paddingLeft":"paddingRight";this._element.style[r]=`${o}px`}if(!n&&e){const r=Ml()?"paddingRight":"paddingLeft";this._element.style[r]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,o){return this.each(function(){const n=BEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](o)}})}};Ee.on(document,i9t,c9t,function(t){const e=vt.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ee.one(e,DEe,n=>{n.defaultPrevented||Ee.one(e,_Ee,()=>{ow(this)&&this.focus()})});const o=vt.findOne(a9t);o&&p3.getInstance(o).hide(),p3.getOrCreateInstance(e).toggle(this)});XP(p3);tu(p3);const p9t="offcanvas",h9t="bs.offcanvas",wp=`.${h9t}`,$Ee=".data-api",f9t=`load${wp}${$Ee}`,g9t="Escape",Dle="show",Ble="showing",$le="hiding",y9t="offcanvas-backdrop",REe=".offcanvas.show",C9t=`show${wp}`,b9t=`shown${wp}`,v9t=`hide${wp}`,Rle=`hidePrevented${wp}`,AEe=`hidden${wp}`,S9t=`resize${wp}`,w9t=`click${wp}${$Ee}`,T9t=`keydown.dismiss${wp}`,x9t='[data-bs-toggle="offcanvas"]',F9t={backdrop:!0,keyboard:!0,scroll:!1},k9t={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};let Yv=class NEe extends Xu{constructor(e,o){super(e,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return F9t}static get DefaultType(){return k9t}static get NAME(){return p9t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Ee.trigger(this._element,C9t,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ez().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ble);const o=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Dle),this._element.classList.remove(Ble),Ee.trigger(this._element,b9t,{relatedTarget:e})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||Ee.trigger(this._element,v9t).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($le),this._backdrop.hide();const e=()=>{this._element.classList.remove(Dle,$le),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ez().reset(),Ee.trigger(this._element,AEe)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Ee.trigger(this._element,Rle);return}this.hide()},o=!!this._config.backdrop;return new LEe({className:y9t,isVisible:o,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:o?e:null})}_initializeFocusTrap(){return new EEe({trapElement:this._element})}_addEventListeners(){Ee.on(this._element,T9t,e=>{if(e.key===g9t){if(this._config.keyboard){this.hide();return}Ee.trigger(this._element,Rle)}})}static jQueryInterface(e){return this.each(function(){const o=NEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};Ee.on(document,w9t,x9t,function(t){const e=vt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),_f(this))return;Ee.one(e,AEe,()=>{ow(this)&&this.focus()});const o=vt.findOne(REe);o&&o!==e&&Yv.getInstance(o).hide(),Yv.getOrCreateInstance(e).toggle(this)});Ee.on(window,f9t,()=>{for(const t of vt.find(REe))Yv.getOrCreateInstance(t).show()});Ee.on(window,S9t,()=>{for(const t of vt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Yv.getOrCreateInstance(t).hide()});XP(Yv);tu(Yv);const L9t=/^aria-[\w-]*$/i,VEe={"*":["class","dir","id","lang","role",L9t],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},E9t=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),_9t=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,D9t=(t,e)=>{const o=t.nodeName.toLowerCase();return e.includes(o)?E9t.has(o)?!!_9t.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(o))};function B9t(t,e,o){if(!t.length)return t;if(o&&typeof o=="function")return o(t);const n=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(const i of r){const s=i.nodeName.toLowerCase();if(!Object.keys(e).includes(s)){i.remove();continue}const a=[].concat(...i.attributes),l=[].concat(e["*"]||[],e[s]||[]);for(const u of a)D9t(u,l)||i.removeAttribute(u.nodeName)}return n.body.innerHTML}const $9t="TemplateFactory",R9t={allowList:VEe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},A9t={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},N9t={entry:"(string|element|function|null)",selector:"(string|element)"};let V9t=class extends JE{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return R9t}static get DefaultType(){return A9t}static get NAME(){return $9t}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[r,i]of Object.entries(this._config.content))this._setContent(e,i,r);const o=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&o.classList.add(...n.split(" ")),o}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[o,n]of Object.entries(e))super._typeCheckConfig({selector:o,entry:n},N9t)}_setContent(e,o,n){const r=vt.findOne(n,e);if(r){if(o=this._resolvePossibleFunction(o),!o){r.remove();return}if(Dm(o)){this._putElementInTemplate(Ef(o),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(o);return}r.textContent=o}}_maybeSanitize(e){return this._config.sanitize?B9t(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return xs(e,[void 0,this])}_putElementInTemplate(e,o){if(this._config.html){o.innerHTML="",o.append(e);return}o.textContent=e.textContent}};const I9t="tooltip",P9t=new Set(["sanitize","allowList","sanitizeFn"]),n5="fade",M9t="modal",J_="show",O9t=".tooltip-inner",Ale=`.${M9t}`,Nle="hide.bs.modal",mT="hover",r5="focus",i5="click",W9t="manual",H9t="hide",z9t="hidden",j9t="show",K9t="shown",U9t="inserted",q9t="click",J9t="focusin",G9t="focusout",Y9t="mouseenter",Z9t="mouseleave",X9t={AUTO:"auto",TOP:"top",RIGHT:Ml()?"left":"right",BOTTOM:"bottom",LEFT:Ml()?"right":"left"},Q9t={allowList:VEe,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ezt={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let QP=class IEe extends Xu{constructor(e,o){if(typeof eEe>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Q9t}static get DefaultType(){return ezt}static get NAME(){return I9t}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Ee.off(this._element.closest(Ale),Nle,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=Ee.trigger(this._element,this.constructor.eventName(j9t)),o=(nEe(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!o)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Ee.trigger(this._element,this.constructor.eventName(U9t))),this._popper=this._createPopper(n),n.classList.add(J_),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))Ee.on(s,"mouseover",d3);const i=()=>{Ee.trigger(this._element,this.constructor.eventName(K9t)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Ee.trigger(this._element,this.constructor.eventName(H9t)).defaultPrevented)return;if(this._getTipElement().classList.remove(J_),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",d3);this._activeTrigger[i5]=!1,this._activeTrigger[r5]=!1,this._activeTrigger[mT]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ee.trigger(this._element,this.constructor.eventName(z9t)))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const o=this._getTemplateFactory(e).toHtml();if(!o)return null;o.classList.remove(n5,J_),o.classList.add(`bs-${this.constructor.NAME}-auto`);const n=WHt(this.constructor.NAME).toString();return o.setAttribute("id",n),this._isAnimated()&&o.classList.add(n5),o}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new V9t({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[O9t]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(n5)}_isShown(){return this.tip&&this.tip.classList.contains(J_)}_createPopper(e){const o=xs(this._config.placement,[this,e,this._element]),n=X9t[o.toUpperCase()];return HG(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_resolvePossibleFunction(e){return xs(e,[this._element,this._element])}_getPopperConfig(e){const o={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...o,...xs(this._config.popperConfig,[void 0,o])}}_setListeners(){const e=this._config.trigger.split(" ");for(const o of e)if(o==="click")Ee.on(this._element,this.constructor.eventName(q9t),this._config.selector,n=>{const r=this._initializeOnDelegatedTarget(n);r._activeTrigger[i5]=!(r._isShown()&&r._activeTrigger[i5]),r.toggle()});else if(o!==W9t){const n=o===mT?this.constructor.eventName(Y9t):this.constructor.eventName(J9t),r=o===mT?this.constructor.eventName(Z9t):this.constructor.eventName(G9t);Ee.on(this._element,n,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?r5:mT]=!0,s._enter()}),Ee.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?r5:mT]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ee.on(this._element.closest(Ale),Nle,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,o){clearTimeout(this._timeout),this._timeout=setTimeout(e,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const o=Bm.getDataAttributes(this._element);for(const n of Object.keys(o))P9t.has(n)&&delete o[n];return e={...o,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Ef(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[o,n]of Object.entries(this._config))this.constructor.Default[o]!==n&&(e[o]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const o=IEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};tu(QP);const tzt="popover",ozt=".popover-header",nzt=".popover-body",rzt={...QP.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},izt={...QP.DefaultType,content:"(null|string|element|function)"};let szt=class PEe extends QP{static get Default(){return rzt}static get DefaultType(){return izt}static get NAME(){return tzt}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ozt]:this._getTitle(),[nzt]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const o=PEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};tu(szt);const azt="scrollspy",lzt="bs.scrollspy",qG=`.${lzt}`,uzt=".data-api",czt=`activate${qG}`,Vle=`click${qG}`,dzt=`load${qG}${uzt}`,mzt="dropdown-item",fb="active",pzt='[data-bs-spy="scroll"]',s5="[href]",hzt=".nav, .list-group",Ile=".nav-link",fzt=".nav-item",gzt=".list-group-item",yzt=`${Ile}, ${fzt} > ${Ile}, ${gzt}`,Czt=".dropdown",bzt=".dropdown-toggle",vzt={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Szt={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};let MEe=class OEe extends Xu{constructor(e,o){super(e,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return vzt}static get DefaultType(){return Szt}static get NAME(){return azt}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Ef(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(o=>Number.parseFloat(o))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Ee.off(this._config.target,Vle),Ee.on(this._config.target,Vle,s5,e=>{const o=this._observableSections.get(e.target.hash);if(o){e.preventDefault();const n=this._rootElement||window,r=o.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:"smooth"});return}n.scrollTop=r}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),e)}_observerCallback(e){const o=s=>this._targetLinks.get(`#${s.target.id}`),n=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(o(s))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(s));continue}const a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(n(s),!r)return;continue}!i&&!a&&n(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=vt.find(s5,this._config.target);for(const o of e){if(!o.hash||_f(o))continue;const n=vt.findOne(decodeURI(o.hash),this._element);ow(n)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(fb),this._activateParents(e),Ee.trigger(this._element,czt,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(mzt)){vt.findOne(bzt,e.closest(Czt)).classList.add(fb);return}for(const o of vt.parents(e,hzt))for(const n of vt.prev(o,yzt))n.classList.add(fb)}_clearActiveClass(e){e.classList.remove(fb);const o=vt.find(`${s5}.${fb}`,e);for(const n of o)n.classList.remove(fb)}static jQueryInterface(e){return this.each(function(){const o=OEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(window,dzt,()=>{for(const t of vt.find(pzt))MEe.getOrCreateInstance(t)});tu(MEe);const wzt="tab",Tzt="bs.tab",w0=`.${Tzt}`,xzt=`hide${w0}`,Fzt=`hidden${w0}`,kzt=`show${w0}`,Lzt=`shown${w0}`,Ezt=`click${w0}`,_zt=`keydown${w0}`,Dzt=`load${w0}`,Bzt="ArrowLeft",Ple="ArrowRight",$zt="ArrowUp",Mle="ArrowDown",a5="Home",Ole="End",py="active",Wle="fade",l5="show",Rzt="dropdown",WEe=".dropdown-toggle",Azt=".dropdown-menu",u5=`:not(${WEe})`,Nzt='.list-group, .nav, [role="tablist"]',Vzt=".nav-item, .list-group-item",Izt=`.nav-link${u5}, .list-group-item${u5}, [role="tab"]${u5}`,HEe='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',c5=`${Izt}, ${HEe}`,Pzt=`.${py}[data-bs-toggle="tab"], .${py}[data-bs-toggle="pill"], .${py}[data-bs-toggle="list"]`;let JG=class tz extends Xu{constructor(e){super(e),this._parent=this._element.closest(Nzt),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ee.on(this._element,_zt,o=>this._keydown(o)))}static get NAME(){return wzt}show(){const e=this._element;if(this._elemIsActive(e))return;const o=this._getActiveElem(),n=o?Ee.trigger(o,xzt,{relatedTarget:e}):null;Ee.trigger(e,kzt,{relatedTarget:o}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(o,e),this._activate(e,o))}_activate(e,o){if(!e)return;e.classList.add(py),this._activate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(l5);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Ee.trigger(e,Lzt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Wle))}_deactivate(e,o){if(!e)return;e.classList.remove(py),e.blur(),this._deactivate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(l5);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Ee.trigger(e,Fzt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Wle))}_keydown(e){if(![Bzt,Ple,$zt,Mle,a5,Ole].includes(e.key))return;e.stopPropagation(),e.preventDefault();const o=this._getChildren().filter(r=>!_f(r));let n;if([a5,Ole].includes(e.key))n=o[e.key===a5?0:o.length-1];else{const r=[Ple,Mle].includes(e.key);n=zG(o,e.target,r,!0)}n&&(n.focus({preventScroll:!0}),tz.getOrCreateInstance(n).show())}_getChildren(){return vt.find(c5,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,o){this._setAttributeIfNotExists(e,"role","tablist");for(const n of o)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const o=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",o),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),o||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const o=vt.getElementFromSelector(e);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,o){const n=this._getOuterElement(e);if(!n.classList.contains(Rzt))return;const r=(i,s)=>{const a=vt.findOne(i,n);a&&a.classList.toggle(s,o)};r(WEe,py),r(Azt,l5),n.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(e,o,n){e.hasAttribute(o)||e.setAttribute(o,n)}_elemIsActive(e){return e.classList.contains(py)}_getInnerElement(e){return e.matches(c5)?e:vt.findOne(c5,e)}_getOuterElement(e){return e.closest(Vzt)||e}static jQueryInterface(e){return this.each(function(){const o=tz.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,Ezt,HEe,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!_f(this)&&JG.getOrCreateInstance(this).show()});Ee.on(window,Dzt,()=>{for(const t of vt.find(Pzt))JG.getOrCreateInstance(t)});tu(JG);const Mzt="toast",Ozt="bs.toast",rg=`.${Ozt}`,Wzt=`mouseover${rg}`,Hzt=`mouseout${rg}`,zzt=`focusin${rg}`,jzt=`focusout${rg}`,Kzt=`hide${rg}`,Uzt=`hidden${rg}`,qzt=`show${rg}`,Jzt=`shown${rg}`,Gzt="fade",Hle="hide",G_="show",Y_="showing",Yzt={animation:"boolean",autohide:"boolean",delay:"number"},Zzt={animation:!0,autohide:!0,delay:5e3};let zEe=class jEe extends Xu{constructor(e,o){super(e,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Zzt}static get DefaultType(){return Yzt}static get NAME(){return Mzt}show(){if(Ee.trigger(this._element,qzt).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Gzt);const e=()=>{this._element.classList.remove(Y_),Ee.trigger(this._element,Jzt),this._maybeScheduleHide()};this._element.classList.remove(Hle),qE(this._element),this._element.classList.add(G_,Y_),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||Ee.trigger(this._element,Kzt).defaultPrevented)return;const e=()=>{this._element.classList.add(Hle),this._element.classList.remove(Y_,G_),Ee.trigger(this._element,Uzt)};this._element.classList.add(Y_),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(G_),super.dispose()}isShown(){return this._element.classList.contains(G_)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,o){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=o;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=o;break}}if(o){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Ee.on(this._element,Wzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,Hzt,e=>this._onInteraction(e,!1)),Ee.on(this._element,zzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,jzt,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const o=jEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};XP(zEe);tu(zEe);const eM=t=>({Match:e=>{for(const o in t)if(t[o]!==void 0)return e[o](t[o]);throw Error("")}}),Xzt=t=>{throw new Error("Didn't expect to get here"+t)},Qzt=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"];Sp.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}});Sp.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>t.style.fontSize.replace(/['"]+/g,""),renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t+"px"}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}});Sp.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>t.style.lineHeight.replace(/['"]+/g,""),renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t+"px"}).run(),resetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).run()}}});Sp.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}});Sp.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}});Sp.create({name:"unsubscribeLink",priority:1e3,addOptions(){return{HTMLAttributes:{"data-type":"unsubscribe-link",class:"rich-text__unsubscribe-link"}}},parseHTML(){return[{tag:'span[data-type="unsubscribe-link"]'}]},renderHTML({HTMLAttributes:t}){return["span",xa(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:o,to:n}=e.selection,r=e.doc.textBetween(o,n," ");return e.doc.nodeAt(o)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:o,to:o+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}});Sp.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=o=>o.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=o=>o.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:o})},"Mod-u":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})},"Mod-U":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})}}}});Wo.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{const e=t.style.fontFamily.split(",").map(o=>o.trim()).map(o=>o.replace(/^['"]|['"]$/g,"")).map(o=>o.replace(/ /g,""));return Qzt.find(o=>e.includes(o))||null},renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}});const ejt=t=>new Promise((e,o)=>{const n=new Image;n.onload=()=>{e({width:n.naturalWidth,height:n.naturalHeight})},n.onerror=o,n.src=t});Sd.create({name:"image",addOptions(){return{inline:!0,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},width:{default:null},height:{default:null},isRetina:{default:!1}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",xa(this.options.HTMLAttributes,{src:t.src,alt:t.alt,title:t.title,width:t.isRetina?t.width/2:t.width,height:t.isRetina?t.height/2:t.height,isRetina:t.isRetina})]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[U4t({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,o,n]=t;return{src:o,alt:e,title:n}}})]},addProseMirrorPlugins(){return[new On({view:t=>((async()=>{const{state:e,dispatch:o}=t;e.doc.descendants((n,r)=>{if(n.type.name===this.name){const{src:i,width:s,height:a}=n.attrs;i&&(!s||!a)&&ejt(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...n.attrs,width:l.width,height:l.height});o(u)})}})})(),{})})]}});const KEe=t=>Object.fromEntries(Object.entries(t).filter(([e,o])=>o!==void 0)),tjt=t=>eM(t),ojt=t=>eM(t),njt=t=>eM(t),rjt=t=>eM(t),ijt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n===r),sjt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n<r),ajt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n>r),ljt=t=>{const e=ijt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=ajt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=sjt({numberExpressionEvaluator:t.numberExpressionEvaluator});return({numberPredicate:r,context:i})=>rjt(r).Match({Equal:s=>e({predicate:s,context:i}),GreaterThan:s=>o({predicate:s,context:i}),LessThan:s=>n({predicate:s,context:i})})},ujt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Right,context:o})]).then(([n,r])=>n===r),cjt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Contains,context:o})]).then(([n,r])=>n.includes(r)),djt=t=>{const e=ujt({stringExpressionEvaluator:t.stringExpressionEvaluator}),o=cjt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({stringPredicate:n,context:r})=>njt(n).Match({Contains:i=>o({predicate:i,context:r}),Equal:i=>e({predicate:i,context:r})})},mjt=t=>{const e=ljt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=djt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({predicate:n,context:r})=>ojt(n).Match({NumberPredicate:i=>e({numberPredicate:i,context:r}),StringPredicate:i=>o({stringPredicate:i,context:r})})},pjt=t=>{const e=mjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=({boolExpression:n,context:r})=>tjt(n).Match({AndExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.every(a=>a)),OrExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.some(a=>a)),NotExpression:async i=>!await o({boolExpression:i.Expression,context:r}),Predicate:i=>e({predicate:i,context:r})});return o},hjt=t=>({localeKey:t.localeKey,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin}),fjt=t=>({postGetThemeLibrary:t.themeLibraryBffClient.postGetThemeLibrary,postGetComponentLibrary:t.componentLibraryBffClient.postGetComponentLibrary}),gjt=t=>{const e="https://cdn.retailrocket.net/api/1.0/partner";return async({context:o,expression:n})=>t.numberExpressionEvaluator({numberExpression:n.ProductId,context:o}).then(r=>{const i="/"+t.partnerId+"/item/"+r+"/picture/?format=png&width="+n.ImageSize.Width+"&height="+n.ImageSize.Height+"&scale=both";return t.productImageResizerUrl?t.productImageResizerUrl+i:e+i})},yjt=t=>({localeKey:t.localeKey}),Cjt=t=>({localeKey:t.localeKey}),bjt=t=>({localeKey:t.localeKey,saveTemplateErrorNotificationModalWindowDeps:Cjt({localeKey:t.localeKey})}),vjt=t=>({appSettingsModifierPlugin:t.appSettingsModifierPlugin,resetTemplateButtonDeps:yjt({localeKey:t.localeKey}),saveTemplateButtonDeps:bjt({localeKey:t.localeKey})}),Sjt=t=>({localeKey:t.localeKey}),wjt=t=>({localeKey:t.localeKey}),Tjt=t=>({localeKey:t.localeKey,preheaderSubjectUpdateModalWindowDeps:wjt({localeKey:t.localeKey})}),xjt=t=>({exportMenuDeps:vjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),toggleDeviceToolbarDeps:Sjt({localeKey:t.localeKey}),preheaderSubjectUpdateButtonDeps:Tjt({localeKey:t.localeKey})}),Fjt=t=>({sectionItemId:t.sectionItemId,sectionItemName:t.sectionItemName,theme:JSON.parse(t.theme.json)}),kjt=t=>({sectionId:t.sectionId,sectionName:t.sectionName,sectionItems:t.sectionItems.map(e=>Fjt(e))}),Ljt=t=>async()=>(await t.getThemeLibraryHttpClient({body:{partnerId:t.partnerId}})).body.sections.map(e=>kjt(e)),Ejt=t=>async e=>(await t.postCreateThemeLibrarySectionItem({body:{partnerId:t.partnerId,parentSectionId:e.parentSectionId,sectionItemName:e.sectionItemName,theme:{json:JSON.stringify(e.theme)}}})).status===200?"Success":"Fail",_jt=t=>({sectionId:t.sectionId,sectionName:t.sectionName}),UEe=t=>async()=>(await t.postGetThemeLibrarySections({body:{partnerId:t.partnerId}})).body.sections.map(e=>_jt(e)),Djt=t=>({localeKey:t.localeKey,addThemeSectionItem:Ejt({partnerId:t.partnerId,postCreateThemeLibrarySectionItem:t.addThemeLibrarySectionItemModalWindowBffClient.postCreateThemeLibrarySectionItem}),getThemeLibrarySections:UEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.addThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Bjt=t=>async e=>{await t.deleteThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},$jt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItem:Bjt({partnerId:t.partnerId,deleteThemeLibrarySectionItem:t.deleteThemeLibrarySectionItemModalWindowBffClient.postDeleteThemeLibrarySectionItem}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),Rjt=t=>async e=>{await t.updateThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},Ajt=t=>({localeKey:t.localeKey,updateThemeLibrarySectionItem:Rjt({partnerId:t.partnerId,updateThemeLibrarySectionItem:t.editThemeLibrarySectionItemModalWindowBffClient.postUpdateThemeLibrarySectionItem}),getThemeLibrarySections:UEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.editThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Njt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItemModalWindowDeps:$jt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient}),editThemeLibrarySectionItemModalWindowDeps:Ajt({localeKey:t.localeKey,partnerId:t.partnerId,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient})}),Vjt=t=>async e=>(await t.deleteThemeLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Ijt=t=>({localeKey:t.localeKey,deleteThemeLibrarySection:Vjt({partnerId:t.partnerId,deleteThemeLibrarySectionHttpClientDelegate:t.deleteThemeLibrarySectionModalWindowBffClient.postDeleteThemeLibrarySection})}),Pjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionModalWindowDeps:Ijt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Mjt=t=>({localeKey:t.localeKey,themeSectionItemDeps:Njt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient}),emptyThemeSectionDeps:Pjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Ojt=t=>async e=>{await t.createThemeLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},Wjt=t=>({localeKey:t.localeKey,createThemeLibrarySection:Ojt({partnerId:t.partnerId,createThemeLibrarySectionHttpClient:t.createThemeLibrarySectionModalWindowBffClient.postCreateThemeLibrarySection})}),Hjt=t=>({defaultThemeLibrary:t.defaultThemeLibrary}),qEe=t=>({localeKey:t.localeKey,defaultThemeLibraryDeps:Hjt({defaultThemeLibrary:t.defaultThemeLibrary}),customThemeLibraryDeps:{localeKey:t.localeKey,addThemeSectionItemModalWindowDeps:Djt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient}),themeSectionDeps:Mjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient}),createThemeLibrarySectionModalWindowDeps:Wjt({localeKey:t.localeKey,partnerId:t.partnerId,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient})}}),zjt=t=>({localeKey:t.localeKey,customThemeLibraryDeps:qEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}).customThemeLibraryDeps}),jjt=t=>async e=>{await t.deleteComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},Kjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItem:jjt({partnerId:t.partnerId,deleteComponentLibrarySectionItemHttpClientDelegate:t.deleteComponentLibrarySectionItemModalWindowBffClient.postDeleteComponentLibrarySectionItem})}),Ujt=t=>async e=>{await t.updateComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},JEe=t=>async()=>(await t.getComponentLibrarySectionsHttpClientDelegate({body:{partnerId:t.partnerId}})).body.sections.map(e=>({sectionId:e.sectionId,sectionName:e.sectionName})),qjt=t=>({localeKey:t.localeKey,updateComponentLibrarySectionItem:Ujt({partnerId:t.partnerId,updateComponentLibrarySectionItemHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postUpdateComponentLibrarySectionItem}),getComponentLibrarySections:JEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),Jjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItemModalWindowDeps:Kjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),editComponentLibrarySectionItemModalWindowDeps:qjt({localeKey:t.localeKey,partnerId:t.partnerId,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient}),emailComponentDeps:t.emailComponentDeps}),Gjt=t=>async e=>(await t.deleteComponentLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Yjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySection:Gjt({partnerId:t.partnerId,deleteComponentLibrarySectionHttpClientDelegate:t.deleteComponentLibrarySectionModalWindowBffClient.postDeleteComponentLibrarySection})}),Zjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionModalWindowDeps:Yjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),Xjt=t=>({localeKey:t.localeKey,componentSectionItemDeps:Jjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),emptyComponentSectionDeps:Zjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),Qjt=t=>async e=>{await t.createComponentLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},eKt=t=>({localeKey:t.localeKey,createComponentLibrarySection:Qjt({partnerId:t.partnerId,createComponentLibrarySectionHttpClient:t.createComponentLibrarySectionModalWindowBffClient.postCreateComponentLibrarySection})}),tKt=t=>({localeKey:t.localeKey,createComponentLibrarySectionModalWindowDeps:eKt({localeKey:t.localeKey,partnerId:t.partnerId,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient}),componentSectionDeps:Xjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),oKt=t=>({emailComponentDeps:t.emailComponentDeps}),nKt=t=>({localeKey:t.localeKey,componentSectionItemDeps:oKt({emailComponentDeps:t.emailComponentDeps})}),rKt=t=>({defaultComponentLibrary:t.defaultComponentLibrary,componentSectionDeps:nKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps})}),iKt=t=>({localeKey:t.localeKey,customComponentLibraryDeps:tKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient}),defaultComponentLibraryDeps:rKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps,defaultComponentLibrary:t.defaultComponentLibrary})}),sKt=t=>({localeKey:t.localeKey,exitLink:t.exitLink,themeLibraryDeps:qEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),themeStylesDeps:zjt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),componentLibraryDeps:iKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultComponentLibrary:t.defaultComponentLibrary})}),aKt=t=>async e=>{await t.createComponentLibrarySectionItemHttpClient({body:{partnerId:t.partnerId,parentSectionId:e.sectionId,sectionItemName:e.sectionItemName,component:t.httpClientComponentFactoryDelegate(e.component)}})},lKt=t=>({localeKey:t.localeKey,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,addComponentLibrarySectionItem:aKt({partnerId:t.partnerId,createComponentLibrarySectionItemHttpClient:t.addComponentLibrarySectionItemModalWindowBffClient.postCreateComponentLibrarySectionItem,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate}),getComponentLibrarySections:JEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.addComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),uKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),cKt=t=>({localeKey:t.localeKey}),dKt=t=>({movementMenuDeps:uKt({localeKey:t.localeKey}),draggingMenuDeps:cKt({localeKey:t.localeKey}),emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,addComponentLibrarySectionItemModalWindowDeps:lKt({localeKey:t.localeKey,partnerId:t.partnerId,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),mKt=t=>({localeKey:t.localeKey,emailComponentWrapperDeps:dKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),pKt=t=>({localeKey:t.localeKey}),hKt=t=>({localeKey:t.localeKey}),fKt=t=>({localeKey:t.localeKey}),gKt=t=>({localeKey:t.localeKey}),yKt=t=>({localeKey:t.localeKey,fontColorEditorDeps:gKt({localeKey:t.localeKey})}),GG=t=>({localeKey:t.localeKey,fontStyleColorEditorDeps:fKt({localeKey:t.localeKey}),customFontSettingsDeps:yKt({localeKey:t.localeKey})}),CKt=t=>({removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),truncateSpanEditorDeps:hKt({localeKey:t.localeKey}),localeKey:t.localeKey,fontStyleEditorDeps:GG({localeKey:t.localeKey})}),bKt=t=>({localeKey:t.localeKey}),GEe=t=>({localeKey:t.localeKey,borderColorEditorDeps:bKt({localeKey:t.localeKey})}),vKt=t=>({localeKey:t.localeKey,borderEditorDeps:GEe({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),YG=t=>({localeKey:t.localeKey}),SKt=t=>({localeKey:t.localeKey,borderEditorDeps:GEe({localeKey:t.localeKey}),colorEditorDeps:YG({localeKey:t.localeKey}),fontStyleEditorDeps:GG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),wKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),fontStyleEditorDeps:GG({localeKey:t.localeKey})}),TKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),xKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),colorEditorDeps:YG({localeKey:t.localeKey})}),FKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),kKt=t=>({spanEditorDeps:CKt({localeKey:t.localeKey}),imageEditorDeps:vKt({localeKey:t.localeKey}),buttonEditorDeps:SKt({localeKey:t.localeKey}),unsubscribeLinkEditorDeps:wKt({localeKey:t.localeKey}),backgroundImageEditorDeps:TKt({localeKey:t.localeKey}),spacerEditorDeps:xKt({localeKey:t.localeKey}),richTextEditorDeps:FKt({localeKey:t.localeKey})}),LKt=t=>({localeKey:t.localeKey,colorEditorDeps:YG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),EKt=t=>{const e=pjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=YIt({localeKey:t.localeKey,elementsDeps:vPt({localeKey:t.localeKey,richTextToolbarPlugins:t.richTextToolbarPlugins,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin,expressionEvaluator:t.expressionEvaluator,listExpressionEvaluator:t.listExpressionEvaluator,numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator,boolExpressionEvaluator:e,dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),listExpressionEvaluator:t.listExpressionEvaluator,dataStructExpressionEvaluator:t.dataStructExpressionEvaluator,boolExpressionEvaluator:e});return{topMenuDeps:xjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),saveEmailTemplate:t.saveEmailTemplate,createFavoriteTemplate:t.createFavoriteTemplate,getThemeLibrary:Ljt({partnerId:t.partnerId,getThemeLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetThemeLibrary}),getComponentLibrary:t.getComponentLibraryFactory({partnerId:t.partnerId,getComponentLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetComponentLibrary}),asideMenuDeps:sKt({localeKey:t.localeKey,partnerId:t.partnerId,exitLink:t.exitLink,emailComponentDeps:o,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary,defaultComponentLibrary:t.defaultComponentLibrary}),emailTemplateDeps:mKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,emailComponentDeps:o,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient}),emptyEditorDeps:pKt({localeKey:t.localeKey}),elementsEditorDeps:kKt({localeKey:t.localeKey}),emailComponentEditorDeps:LKt({localeKey:t.localeKey}),template:t.template}},Qu=t=>async()=>(await t.getAllStockIdsHttpClient({body:{partnerId:t.partnerId}})).body.stockIds,_Kt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),DKt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),BKt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),$Kt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),YEe=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),ZG=t=>{switch(t.stockSource._t){case"CustomerStockIdSource":return t.customerStockId;case"DefaultStoreStockIdSource":return;case"SpecificStockIdSource":return t.stockSource.Value;default:Xzt(t.stockSource)}},RKt=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.findProductsBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:e,stockId:n}})).body.products.map(r=>YEe(r))},AKt=t=>({localeKey:t.localeKey}),NKt=t=>({selectedProductListItemDeps:AKt({localeKey:t.localeKey})}),VKt=t=>({localeKey:t.localeKey}),IKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,selectedProductListDeps:NKt({localeKey:t.localeKey}),emptyProductListDeps:VKt({localeKey:t.localeKey})}),PKt=t=>({localeKey:t.localeKey}),MKt=t=>({localeKey:t.localeKey}),OKt=t=>({localeKey:t.localeKey}),WKt=t=>({searchedProductListItemDeps:MKt({localeKey:t.localeKey}),emptySearchProductListDeps:OKt({localeKey:t.localeKey})}),HKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,productSearchBarDeps:PKt({localeKey:t.localeKey}),searchedProductListDeps:WKt({localeKey:t.localeKey})}),zKt=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>YEe(r))},jKt=t=>{const e=zKt({partnerId:t.partnerId,productCache:{},customerStockId:t.customerStockId,getProductsByIDsHttpClient:t.productPickerModalWindowBffClient.postGetProductsByIds}),o=RKt({partnerId:t.partnerId,customerStockId:t.customerStockId,findProductsBySearchPhrase:t.productPickerModalWindowBffClient.postFindProductsBySearchPhrase});return{localeKey:t.localeKey,selectProductComponentDeps:IKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o}),productSearchComponentDeps:HKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o})}},KKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),UKt=async t=>{const e=t.categoryIds.filter(o=>!t.categoryCache[o]);return e.length>0&&(await t.findCategoriesByID({partnerId:t.partnerId,categoryIds:e})).forEach(o=>t.categoryCache[o.id]=o),t.categoryIds.map(o=>t.categoryCache[o]).filter(o=>o!==void 0)},ZEe=t=>async e=>(await UKt({partnerId:t.partnerId,categoryIds:e,categoryCache:{},findCategoriesByID:async o=>(await t.getCategoriesByIDsHttpClient({body:{partnerId:t.partnerId,categoryIds:o.categoryIds.concat([])}})).body.categories})).map(o=>KKt(o)),qKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),JKt=async t=>{const e=await t.findCategoriesByPhrase({phrase:t.phrase});return e.forEach(o=>t.categoryCache[o.id]=o),e},GKt=t=>async e=>(await JKt({phrase:e,categoryCache:t.categoryCache,findCategoriesByPhrase:async o=>(await t.findProductCategoriesBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:o.phrase}})).body.categories})).map(o=>qKt(o)),YKt=t=>({localeKey:t.localeKey}),ZKt=t=>({localeKey:t.localeKey,getCategoriesByIDs:t.getCategoriesByIDs,selectedCategoryListDeps:{},emptyCategoryListDeps:YKt({localeKey:t.localeKey})}),XKt=t=>({localeKey:t.localeKey}),QKt=t=>({localeKey:t.localeKey}),eUt=t=>({emptySearchCategoryListDeps:QKt({localeKey:t.localeKey})}),tUt=t=>({localeKey:t.localeKey,findCategoriesByName:t.findCategoriesByName,getCategoriesByIDs:t.getCategoriesByIDs,categorySearchBarDeps:XKt({localeKey:t.localeKey}),searchedCategoryListDeps:eUt({localeKey:t.localeKey})}),XEe=t=>{const e={},o=ZEe({partnerId:t.partnerId,categoryCache:e,getCategoriesByIDsHttpClient:t.productCategoryPickerModalWindowBffClient.postGetProductCategoriesByIds}),n=GKt({partnerId:t.partnerId,categoryCache:e,findProductCategoriesBySearchPhrase:t.productCategoryPickerModalWindowBffClient.postFindProductCategoriesBySearchPhrase});return{localeKey:t.localeKey,selectCategoryComponentDeps:ZKt({localeKey:t.localeKey,getCategoriesByIDs:o}),categorySearchComponentDeps:tUt({localeKey:t.localeKey,getCategoriesByIDs:o,findCategoriesByName:n})}},oUt=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),XG=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>oUt(r))},nUt=t=>({localeKey:t.localeKey,getProductsByIDs:XG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),rUt=t=>({localeKey:t.localeKey,getProductsByIDs:XG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),iUt=t=>({localeKey:t.localeKey,getProductsByIDs:XG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),sUt=t=>({localeKey:t.localeKey,getCategoriesByIDs:ZEe({partnerId:t.partnerId,categoryCache:t.categoryCache,getCategoriesByIDsHttpClient:t.getCategoriesByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),categoryListComposerModalWindowDeps:XEe({localeKey:t.localeKey,partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),QEe=t=>t.reduce((e,o)=>(e[o.name]=o.value,e),{}),T0=t=>KEe({InternalProductId:t.internalProductId,Name:t.name,Description:t.description,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,Url:t.url,CategoryIds:[],Vendor:t.vendor,Params:QEe(t.parameters),DiscountPercentage:t.discountPercentage}),aUt=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(e=>T0(e));var lUt=typeof global=="object"&&global&&global.Object===Object&&global,uUt=typeof self=="object"&&self&&self.Object===Object&&self,cUt=lUt||uUt||Function("return this")(),h3=cUt.Symbol;h3&&h3.toStringTag;h3&&h3.toStringTag;const{entries:e2e,setPrototypeOf:zle,isFrozen:dUt,getPrototypeOf:mUt,getOwnPropertyDescriptor:pUt}=Object;let{freeze:is,seal:Wl,create:oz}=Object,{apply:nz,construct:rz}=typeof Reflect<"u"&&Reflect;is||(is=function(t){return t});Wl||(Wl=function(t){return t});nz||(nz=function(t,e){for(var o=arguments.length,n=new Array(o>2?o-2:0),r=2;r<o;r++)n[r-2]=arguments[r];return t.apply(e,n)});rz||(rz=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];return new t(...o)});const Z_=ss(Array.prototype.forEach),hUt=ss(Array.prototype.lastIndexOf),jle=ss(Array.prototype.pop),pT=ss(Array.prototype.push),fUt=ss(Array.prototype.splice),c$=ss(String.prototype.toLowerCase),d5=ss(String.prototype.toString),m5=ss(String.prototype.match),hT=ss(String.prototype.replace),gUt=ss(String.prototype.indexOf),yUt=ss(String.prototype.trim),Tu=ss(Object.prototype.hasOwnProperty),bi=ss(RegExp.prototype.test),fT=CUt(TypeError);function ss(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return nz(t,e,n)}}function CUt(t){return function(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return rz(t,o)}}function oo(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:c$;zle&&zle(t,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const i=o(r);i!==r&&(dUt(e)||(e[n]=i),r=i)}t[r]=!0}return t}function bUt(t){for(let e=0;e<t.length;e++)Tu(t,e)||(t[e]=null);return t}function gc(t){const e=oz(null);for(const[o,n]of e2e(t))Tu(t,o)&&(Array.isArray(n)?e[o]=bUt(n):n&&typeof n=="object"&&n.constructor===Object?e[o]=gc(n):e[o]=n);return e}function gT(t,e){for(;t!==null;){const n=pUt(t,e);if(n){if(n.get)return ss(n.get);if(typeof n.value=="function")return ss(n.value)}t=mUt(t)}function o(){return null}return o}const Kle=is(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),p5=is(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),h5=is(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),vUt=is(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),f5=is(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),SUt=is(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ule=is(["#text"]),qle=is(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),g5=is(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Jle=is(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),X_=is(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),wUt=Wl(/\{\{[\w\W]*|[\w\W]*\}\}/gm),TUt=Wl(/<%[\w\W]*|[\w\W]*%>/gm),xUt=Wl(/\$\{[\w\W]*/gm),FUt=Wl(/^data-[\-\w.\u00B7-\uFFFF]+$/),kUt=Wl(/^aria-[\-\w]+$/),t2e=Wl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),LUt=Wl(/^(?:\w+script|data):/i),EUt=Wl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),o2e=Wl(/^html$/i),_Ut=Wl(/^[a-z][.\w]*(-[.\w]+)+$/i);var Gle=Object.freeze({__proto__:null,ARIA_ATTR:kUt,ATTR_WHITESPACE:EUt,CUSTOM_ELEMENT:_Ut,DATA_ATTR:FUt,DOCTYPE_NAME:o2e,ERB_EXPR:TUt,IS_ALLOWED_URI:t2e,IS_SCRIPT_OR_DATA:LUt,MUSTACHE_EXPR:wUt,TMPLIT_EXPR:xUt});const yT={element:1,text:3,progressingInstruction:7,comment:8,document:9},DUt=function(){return typeof window>"u"?null:window},BUt=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(o=e.getAttribute(n));const r="dompurify"+(o?"#"+o:"");try{return t.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Yle=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function n2e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DUt();const e=C=>n2e(C);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==yT.document||!t.Element)return e.isSupported=!1,e;let{document:o}=t;const n=o,r=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=t,h=l.prototype,f=gT(h,"cloneNode"),g=gT(h,"remove"),b=gT(h,"nextSibling"),v=gT(h,"childNodes"),S=gT(h,"parentNode");if(typeof s=="function"){const C=o.createElement("template");C.content&&C.content.ownerDocument&&(o=C.content.ownerDocument)}let T,x="";const{implementation:F,createNodeIterator:B,createDocumentFragment:N,getElementsByTagName:R}=o,{importNode:P}=n;let E=Yle();e.isSupported=typeof e2e=="function"&&typeof S=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:A,TMPLIT_EXPR:I,DATA_ATTR:W,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:Ve}=Gle;let{IS_ALLOWED_URI:Se}=Gle,G=null;const Ae=oo({},[...Kle,...p5,...h5,...f5,...Ule]);let q=null;const me=oo({},[...qle,...g5,...Jle,...X_]);let H=Object.seal(oz(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,le=null;const ue=Object.seal(oz(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Nt=!0,Vt=!0,Et=!1,z=!0,j=!1,ee=!0,oe=!1,re=!1,ie=!1,de=!1,he=!1,te=!1,ne=!0,Ge=!1;const Te="user-content-";let we=!0,xe=!1,Ne={},Ce=null;const Qe=oo({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fo=null;const ko=oo({},["audio","video","img","source","image","track"]);let Co=null;const No=oo({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),go="http://www.w3.org/1998/Math/MathML",Lo="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let kt=tt,Uo=!1,qo=null;const su=oo({},[go,Lo,tt],d5);let $o=oo({},["mi","mo","mn","ms","mtext"]),Ro=oo({},["annotation-xml"]);const au=oo({},["title","style","font","a","script"]);let yo=null;const lu=["application/xhtml+xml","text/html"],uu="text/html";let ge=null,jt=null;const cu=o.createElement("form"),Dr=function(C){return C instanceof RegExp||C instanceof Function},yn=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jt&&jt===C)){if((!C||typeof C!="object")&&(C={}),C=gc(C),yo=lu.indexOf(C.PARSER_MEDIA_TYPE)===-1?uu:C.PARSER_MEDIA_TYPE,ge=yo==="application/xhtml+xml"?d5:c$,G=Tu(C,"ALLOWED_TAGS")?oo({},C.ALLOWED_TAGS,ge):Ae,q=Tu(C,"ALLOWED_ATTR")?oo({},C.ALLOWED_ATTR,ge):me,qo=Tu(C,"ALLOWED_NAMESPACES")?oo({},C.ALLOWED_NAMESPACES,d5):su,Co=Tu(C,"ADD_URI_SAFE_ATTR")?oo(gc(No),C.ADD_URI_SAFE_ATTR,ge):No,Fo=Tu(C,"ADD_DATA_URI_TAGS")?oo(gc(ko),C.ADD_DATA_URI_TAGS,ge):ko,Ce=Tu(C,"FORBID_CONTENTS")?oo({},C.FORBID_CONTENTS,ge):Qe,be=Tu(C,"FORBID_TAGS")?oo({},C.FORBID_TAGS,ge):gc({}),le=Tu(C,"FORBID_ATTR")?oo({},C.FORBID_ATTR,ge):gc({}),Ne=Tu(C,"USE_PROFILES")?C.USE_PROFILES:!1,Nt=C.ALLOW_ARIA_ATTR!==!1,Vt=C.ALLOW_DATA_ATTR!==!1,Et=C.ALLOW_UNKNOWN_PROTOCOLS||!1,z=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=C.SAFE_FOR_TEMPLATES||!1,ee=C.SAFE_FOR_XML!==!1,oe=C.WHOLE_DOCUMENT||!1,de=C.RETURN_DOM||!1,he=C.RETURN_DOM_FRAGMENT||!1,te=C.RETURN_TRUSTED_TYPE||!1,ie=C.FORCE_BODY||!1,ne=C.SANITIZE_DOM!==!1,Ge=C.SANITIZE_NAMED_PROPS||!1,we=C.KEEP_CONTENT!==!1,xe=C.IN_PLACE||!1,Se=C.ALLOWED_URI_REGEXP||t2e,kt=C.NAMESPACE||tt,$o=C.MATHML_TEXT_INTEGRATION_POINTS||$o,Ro=C.HTML_INTEGRATION_POINTS||Ro,H=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&Dr(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&Dr(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),j&&(Vt=!1),he&&(de=!0),Ne&&(G=oo({},Ule),q=[],Ne.html===!0&&(oo(G,Kle),oo(q,qle)),Ne.svg===!0&&(oo(G,p5),oo(q,g5),oo(q,X_)),Ne.svgFilters===!0&&(oo(G,h5),oo(q,g5),oo(q,X_)),Ne.mathMl===!0&&(oo(G,f5),oo(q,Jle),oo(q,X_))),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?ue.tagCheck=C.ADD_TAGS:(G===Ae&&(G=gc(G)),oo(G,C.ADD_TAGS,ge))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?ue.attributeCheck=C.ADD_ATTR:(q===me&&(q=gc(q)),oo(q,C.ADD_ATTR,ge))),C.ADD_URI_SAFE_ATTR&&oo(Co,C.ADD_URI_SAFE_ATTR,ge),C.FORBID_CONTENTS&&(Ce===Qe&&(Ce=gc(Ce)),oo(Ce,C.FORBID_CONTENTS,ge)),C.ADD_FORBID_CONTENTS&&(Ce===Qe&&(Ce=gc(Ce)),oo(Ce,C.ADD_FORBID_CONTENTS,ge)),we&&(G["#text"]=!0),oe&&oo(G,["html","head","body"]),G.table&&(oo(G,["tbody"]),delete be.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw fT('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fT('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=C.TRUSTED_TYPES_POLICY,x=T.createHTML("")}else T===void 0&&(T=BUt(p,r)),T!==null&&typeof x=="string"&&(x=T.createHTML(""));is&&is(C),jt=C}},Br=oo({},[...p5,...h5,...vUt]),$r=oo({},[...f5,...SUt]),du=function(C){let k=S(C);(!k||!k.tagName)&&(k={namespaceURI:kt,tagName:"template"});const D=c$(C.tagName),J=c$(k.tagName);return qo[C.namespaceURI]?C.namespaceURI===Lo?k.namespaceURI===tt?D==="svg":k.namespaceURI===go?D==="svg"&&(J==="annotation-xml"||$o[J]):!!Br[D]:C.namespaceURI===go?k.namespaceURI===tt?D==="math":k.namespaceURI===Lo?D==="math"&&Ro[J]:!!$r[D]:C.namespaceURI===tt?k.namespaceURI===Lo&&!Ro[J]||k.namespaceURI===go&&!$o[J]?!1:!$r[D]&&(au[D]||!Br[D]):!!(yo==="application/xhtml+xml"&&qo[C.namespaceURI]):!1},_t=function(C){pT(e.removed,{element:C});try{S(C).removeChild(C)}catch{g(C)}},Mt=function(C,k){try{pT(e.removed,{attribute:k.getAttributeNode(C),from:k})}catch{pT(e.removed,{attribute:null,from:k})}if(k.removeAttribute(C),C==="is")if(de||he)try{_t(k)}catch{}else try{k.setAttribute(C,"")}catch{}},Rr=function(C){let k=null,D=null;if(ie)C="<remove></remove>"+C;else{const ae=m5(C,/^[\r\n\t ]+/);D=ae&&ae[0]}yo==="application/xhtml+xml"&&kt===tt&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const J=T?T.createHTML(C):C;if(kt===tt)try{k=new m().parseFromString(J,yo)}catch{}if(!k||!k.documentElement){k=F.createDocument(kt,"template",null);try{k.documentElement.innerHTML=Uo?x:J}catch{}}const ye=k.body||k.documentElement;return C&&D&&ye.insertBefore(o.createTextNode(D),ye.childNodes[0]||null),kt===tt?R.call(k,oe?"html":"body")[0]:oe?k.documentElement:ye},Ar=function(C){return B.call(C.ownerDocument||C,C,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Cn=function(C){return C instanceof d&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof c)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},Nr=function(C){return typeof a=="function"&&C instanceof a};function pt(C,k,D){Z_(C,J=>{J.call(e,k,D,jt)})}const Vr=function(C){let k=null;if(pt(E.beforeSanitizeElements,C,null),Cn(C))return _t(C),!0;const D=ge(C.nodeName);if(pt(E.uponSanitizeElement,C,{tagName:D,allowedTags:G}),ee&&C.hasChildNodes()&&!Nr(C.firstElementChild)&&bi(/<[/\w!]/g,C.innerHTML)&&bi(/<[/\w!]/g,C.textContent)||C.nodeType===yT.progressingInstruction||ee&&C.nodeType===yT.comment&&bi(/<[/\w]/g,C.data))return _t(C),!0;if(!(ue.tagCheck instanceof Function&&ue.tagCheck(D))&&(!G[D]||be[D])){if(!be[D]&&Pr(D)&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,D)||H.tagNameCheck instanceof Function&&H.tagNameCheck(D)))return!1;if(we&&!Ce[D]){const J=S(C)||C.parentNode,ye=v(C)||C.childNodes;if(ye&&J){const ae=ye.length;for(let nt=ae-1;nt>=0;--nt){const et=f(ye[nt],!0);et.__removalCount=(C.__removalCount||0)+1,J.insertBefore(et,b(C))}}}return _t(C),!0}return C instanceof l&&!du(C)||(D==="noscript"||D==="noembed"||D==="noframes")&&bi(/<\/no(script|embed|frames)/i,C.innerHTML)?(_t(C),!0):(j&&C.nodeType===yT.text&&(k=C.textContent,Z_([L,A,I],J=>{k=hT(k,J," ")}),C.textContent!==k&&(pT(e.removed,{element:C.cloneNode()}),C.textContent=k)),pt(E.afterSanitizeElements,C,null),!1)},Ir=function(C,k,D){if(ne&&(k==="id"||k==="name")&&(D in o||D in cu))return!1;if(!(Vt&&!le[k]&&bi(W,k))&&!(Nt&&bi(O,k))&&!(ue.attributeCheck instanceof Function&&ue.attributeCheck(k,C))){if(!q[k]||le[k]){if(!(Pr(C)&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,C)||H.tagNameCheck instanceof Function&&H.tagNameCheck(C))&&(H.attributeNameCheck instanceof RegExp&&bi(H.attributeNameCheck,k)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(k,C))||k==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,D)||H.tagNameCheck instanceof Function&&H.tagNameCheck(D))))return!1}else if(!Co[k]&&!bi(Se,hT(D,fe,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&C!=="script"&&gUt(D,"data:")===0&&Fo[C])&&!(Et&&!bi(K,hT(D,fe,"")))&&D)return!1}return!0},Pr=function(C){return C!=="annotation-xml"&&m5(C,Ve)},Mr=function(C){pt(E.beforeSanitizeAttributes,C,null);const{attributes:k}=C;if(!k||Cn(C))return;const D={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let J=k.length;for(;J--;){const ye=k[J],{name:ae,namespaceURI:nt,value:et}=ye,lt=ge(ae),Jo=et;let He=ae==="value"?Jo:yUt(Jo);if(D.attrName=lt,D.attrValue=He,D.keepAttr=!0,D.forceKeepAttr=void 0,pt(E.uponSanitizeAttribute,C,D),He=D.attrValue,Ge&&(lt==="id"||lt==="name")&&(Mt(ae,C),He=Te+He),ee&&bi(/((--!?|])>)|<\/(style|title|textarea)/i,He)){Mt(ae,C);continue}if(lt==="attributename"&&m5(He,"href")){Mt(ae,C);continue}if(D.forceKeepAttr)continue;if(!D.keepAttr){Mt(ae,C);continue}if(!z&&bi(/\/>/i,He)){Mt(ae,C);continue}j&&Z_([L,A,I],Za=>{He=hT(He,Za," ")});const Eo=ge(C.nodeName);if(!Ir(Eo,lt,He)){Mt(ae,C);continue}if(T&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!nt)switch(p.getAttributeType(Eo,lt)){case"TrustedHTML":{He=T.createHTML(He);break}case"TrustedScriptURL":{He=T.createScriptURL(He);break}}if(He!==Jo)try{nt?C.setAttributeNS(nt,ae,He):C.setAttribute(ae,He),Cn(C)?_t(C):jle(e.removed)}catch{Mt(ae,C)}}pt(E.afterSanitizeAttributes,C,null)},mu=function C(k){let D=null;const J=Ar(k);for(pt(E.beforeSanitizeShadowDOM,k,null);D=J.nextNode();)pt(E.uponSanitizeShadowNode,D,null),Vr(D),Mr(D),D.content instanceof i&&C(D.content);pt(E.afterSanitizeShadowDOM,k,null)};return e.sanitize=function(C){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=null,J=null,ye=null,ae=null;if(Uo=!C,Uo&&(C="<!-->"),typeof C!="string"&&!Nr(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw fT("dirty is not a string, aborting")}else throw fT("toString is not a function");if(!e.isSupported)return C;if(re||yn(k),e.removed=[],typeof C=="string"&&(xe=!1),xe){if(C.nodeName){const lt=ge(C.nodeName);if(!G[lt]||be[lt])throw fT("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof a)D=Rr("<!---->"),J=D.ownerDocument.importNode(C,!0),J.nodeType===yT.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?D=J:D.appendChild(J);else{if(!de&&!j&&!oe&&C.indexOf("<")===-1)return T&&te?T.createHTML(C):C;if(D=Rr(C),!D)return de?null:te?x:""}D&&ie&&_t(D.firstChild);const nt=Ar(xe?C:D);for(;ye=nt.nextNode();)Vr(ye),Mr(ye),ye.content instanceof i&&mu(ye.content);if(xe)return C;if(de){if(he)for(ae=N.call(D.ownerDocument);D.firstChild;)ae.appendChild(D.firstChild);else ae=D;return(q.shadowroot||q.shadowrootmode)&&(ae=P.call(n,ae,!0)),ae}let et=oe?D.outerHTML:D.innerHTML;return oe&&G["!doctype"]&&D.ownerDocument&&D.ownerDocument.doctype&&D.ownerDocument.doctype.name&&bi(o2e,D.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+D.ownerDocument.doctype.name+`>
194
194
  `+et),j&&Z_([L,A,I],lt=>{et=hT(et,lt," ")}),T&&te?T.createHTML(et):et},e.setConfig=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yn(C),re=!0},e.clearConfig=function(){jt=null,re=!1},e.isValidAttribute=function(C,k,D){jt||yn({});const J=ge(C),ye=ge(k);return Ir(J,ye,D)},e.addHook=function(C,k){typeof k=="function"&&pT(E[C],k)},e.removeHook=function(C,k){if(k!==void 0){const D=hUt(E[C],k);return D===-1?void 0:fUt(E[C],D,1)[0]}return jle(E[C])},e.removeHooks=function(C){E[C]=[]},e.removeAllHooks=function(){E=Yle()},e}n2e();function Ur(t){this.content=t}Ur.prototype={constructor:Ur,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,o){var n=o&&o!=t?this.remove(o):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(o||t,e):(i[r+1]=e,o&&(i[r]=o)),new Ur(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var o=this.content.slice();return o.splice(e,2),new Ur(o)},addToStart:function(t,e){return new Ur([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var o=this.remove(t).content.slice();return o.push(t,e),new Ur(o)},addBefore:function(t,e,o){var n=this.remove(e),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,e,o),new Ur(r)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Ur.from(t),t.size?new Ur(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Ur.from(t),t.size?new Ur(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Ur.from(t);for(var o=0;o<t.content.length;o+=2)e=e.remove(t.content[o]);return e},toObject:function(){var t={};return this.forEach(function(e,o){t[e]=o}),t},get size(){return this.content.length>>1}};Ur.from=function(t){if(t instanceof Ur)return t;var e=[];if(t)for(var o in t)e.push(o,t[o]);return new Ur(e)};function r2e(t,e,o){for(let n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:o;let r=t.child(n),i=e.child(n);if(r==i){o+=r.nodeSize;continue}if(!r.sameMarkup(i))return o;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)o++;return o}if(r.content.size||i.content.size){let s=r2e(r.content,i.content,o+1);if(s!=null)return s}o+=r.nodeSize}}function i2e(t,e,o,n){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:o,b:n};let s=t.child(--r),a=e.child(--i),l=s.nodeSize;if(s==a){o-=l,n-=l;continue}if(!s.sameMarkup(a))return{a:o,b:n};if(s.isText&&s.text!=a.text){let u=0,c=Math.min(s.text.length,a.text.length);for(;u<c&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,o--,n--;return{a:o,b:n}}if(s.content.size||a.content.size){let u=i2e(s.content,a.content,o-1,n-1);if(u)return u}o-=l,n-=l}}class Pe{constructor(e,o){if(this.content=e,this.size=o||0,o==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,o,n,r=0,i){for(let s=0,a=0;a<o;s++){let l=this.content[s],u=a+l.nodeSize;if(u>e&&n(l,r+a,i||null,s)!==!1&&l.content.size){let c=a+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,o-c),n,r+c)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,o,n,r){let i="",s=!0;return this.nodesBetween(e,o,(a,l)=>{let u=a.isText?a.text.slice(Math.max(e,l)-l,o-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&n&&(s?s=!1:i+=n),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let o=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(o.isText&&o.sameMarkup(n)&&(r[r.length-1]=o.withText(o.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new Pe(r,this.size+e.size)}cut(e,o=this.size){if(e==0&&o==this.size)return this;let n=[],r=0;if(o>e)for(let i=0,s=0;s<o;i++){let a=this.content[i],l=s+a.nodeSize;l>e&&((s<e||l>o)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,o-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,o-s-1))),n.push(a),r+=a.nodeSize),s=l}return new Pe(n,r)}cutByIndex(e,o){return e==o?Pe.empty:e==0&&o==this.content.length?this:new Pe(this.content.slice(e,o))}replaceChild(e,o){let n=this.content[e];if(n==o)return this;let r=this.content.slice(),i=this.size+o.nodeSize-n.nodeSize;return r[e]=o,new Pe(r,i)}addToStart(e){return new Pe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Pe(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let o=0;o<this.content.length;o++)if(!this.content[o].eq(e.content[o]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let o=this.content[e];if(!o)throw new RangeError("Index "+e+" out of range for "+this);return o}maybeChild(e){return this.content[e]||null}forEach(e){for(let o=0,n=0;o<this.content.length;o++){let r=this.content[o];e(r,n,o),n+=r.nodeSize}}findDiffStart(e,o=0){return r2e(this,e,o)}findDiffEnd(e,o=this.size,n=e.size){return i2e(this,e,o,n)}findIndex(e){if(e==0)return Q_(0,e);if(e==this.size)return Q_(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let o=0,n=0;;o++){let r=this.child(o),i=n+r.nodeSize;if(i>=e)return i==e?Q_(o+1,i):Q_(o,n);n=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,o){if(!o)return Pe.empty;if(!Array.isArray(o))throw new RangeError("Invalid input for Fragment.fromJSON");return new Pe(o.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Pe.empty;let o,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(o||(o=e.slice(0,r)),o[o.length-1]=i.withText(o[o.length-1].text+i.text)):o&&o.push(i)}return new Pe(o||e,n)}static from(e){if(!e)return Pe.empty;if(e instanceof Pe)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Pe([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Pe.empty=new Pe([],0);const y5={index:0,offset:0};function Q_(t,e){return y5.index=t,y5.offset=e,y5}function f3(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let o=Array.isArray(t);if(Array.isArray(e)!=o)return!1;if(o){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!f3(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!f3(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}let cn=class iz{constructor(e,o){this.type=e,this.attrs=o}addToSet(e){let o,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))o||(o=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(o||(o=e.slice(0,r)),o.push(this),n=!0),o&&o.push(i)}}return o||(o=e.slice()),n||o.push(this),o}removeFromSet(e){for(let o=0;o<e.length;o++)if(this.eq(e[o]))return e.slice(0,o).concat(e.slice(o+1));return e}isInSet(e){for(let o=0;o<e.length;o++)if(this.eq(e[o]))return!0;return!1}eq(e){return this==e||this.type==e.type&&f3(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let o in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,o){if(!o)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[o.type];if(!n)throw new RangeError(`There is no mark type ${o.type} in this schema`);let r=n.create(o.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,o){if(e==o)return!0;if(e.length!=o.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(o[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return iz.none;if(e instanceof iz)return[e];let o=e.slice();return o.sort((n,r)=>n.type.rank-r.type.rank),o}};cn.none=[];let g3=class extends Error{},ct=class r1{constructor(e,o,n){this.content=e,this.openStart=o,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,o){let n=a2e(this.content,e+this.openStart,o);return n&&new r1(n,this.openStart,this.openEnd)}removeBetween(e,o){return new r1(s2e(this.content,e+this.openStart,o+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,o){if(!o)return r1.empty;let n=o.openStart||0,r=o.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new r1(Pe.fromJSON(e,o.content),n,r)}static maxOpen(e,o=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(o||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(o||!i.type.spec.isolating);i=i.lastChild)r++;return new r1(e,n,r)}};ct.empty=new ct(Pe.empty,0,0);function s2e(t,e,o){let{index:n,offset:r}=t.findIndex(e),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(o);if(r==e||i.isText){if(a!=o&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(o))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(s2e(i.content,e-r-1,o-r-1)))}function a2e(t,e,o,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return n&&!n.canReplace(r,r,o)?null:t.cut(0,e).append(o).append(t.cut(e));let a=a2e(s.content,e-i-1,o,s);return a&&t.replaceChild(r,s.copy(a))}function $Ut(t,e,o){if(o.openStart>t.depth)throw new g3("Inserted content deeper than insertion position");if(t.depth-o.openStart!=e.depth-o.openEnd)throw new g3("Inconsistent open depths");return l2e(t,e,o,0)}function l2e(t,e,o,n){let r=t.index(n),i=t.node(n);if(r==e.index(n)&&n<t.depth-o.openStart){let s=l2e(t,e,o,n+1);return i.copy(i.content.replaceChild(r,s))}else if(o.content.size)if(!o.openStart&&!o.openEnd&&t.depth==n&&e.depth==n){let s=t.parent,a=s.content;return Zy(s,a.cut(0,t.parentOffset).append(o.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=RUt(o,t);return Zy(i,c2e(t,s,a,e,n))}else return Zy(i,y3(t,e,n))}function u2e(t,e){if(!e.type.compatibleContent(t.type))throw new g3("Cannot join "+e.type.name+" onto "+t.type.name)}function sz(t,e,o){let n=t.node(o);return u2e(n,e.node(o)),n}function Yy(t,e){let o=e.length-1;o>=0&&t.isText&&t.sameMarkup(e[o])?e[o]=t.withText(e[o].text+t.text):e.push(t)}function RF(t,e,o,n){let r=(e||t).node(o),i=0,s=e?e.index(o):r.childCount;t&&(i=t.index(o),t.depth>o?i++:t.textOffset&&(Yy(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Yy(r.child(a),n);e&&e.depth==o&&e.textOffset&&Yy(e.nodeBefore,n)}function Zy(t,e){return t.type.checkContent(e),t.copy(e)}function c2e(t,e,o,n,r){let i=t.depth>r&&sz(t,e,r+1),s=n.depth>r&&sz(o,n,r+1),a=[];return RF(null,t,r,a),i&&s&&e.index(r)==o.index(r)?(u2e(i,s),Yy(Zy(i,c2e(t,e,o,n,r+1)),a)):(i&&Yy(Zy(i,y3(t,e,r+1)),a),RF(e,o,r,a),s&&Yy(Zy(s,y3(o,n,r+1)),a)),RF(n,null,r,a),new Pe(a)}function y3(t,e,o){let n=[];if(RF(null,t,o,n),t.depth>o){let r=sz(t,e,o+1);Yy(Zy(r,y3(t,e,o+1)),n)}return RF(e,null,o,n),new Pe(n)}function RUt(t,e){let o=e.depth-t.openStart,n=e.node(o).copy(t.content);for(let r=o-1;r>=0;r--)n=e.node(r).copy(Pe.from(n));return{start:n.resolveNoCache(t.openStart+o),end:n.resolveNoCache(n.content.size-t.openEnd-o)}}let Zle=class az{constructor(e,o,n){this.pos=e,this.path=o,this.parentOffset=n,this.depth=o.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,o=this.index(this.depth);if(o==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(o);return n?e.child(o).cut(n):r}get nodeBefore(){let e=this.index(this.depth),o=this.pos-this.path[this.path.length-1];return o?this.parent.child(e).cut(0,o):e==0?null:this.parent.child(e-1)}posAtIndex(e,o){o=this.resolveDepth(o);let n=this.path[o*3],r=o==0?0:this.path[o*3-1]+1;for(let i=0;i<e;i++)r+=n.child(i).nodeSize;return r}marks(){let e=this.parent,o=this.index();if(e.content.size==0)return cn.none;if(this.textOffset)return e.child(o).marks;let n=e.maybeChild(o-1),r=e.maybeChild(o);if(!n){let a=n;n=r,r=a}let i=n.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let o=this.parent.maybeChild(this.index());if(!o||!o.isInline)return null;let n=o.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let o=this.depth;o>0;o--)if(this.start(o)<=e&&this.end(o)>=e)return o;return 0}blockRange(e=this,o){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!o||o(this.node(n))))return new C3(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let o=1;o<=this.depth;o++)e+=(e?"/":"")+this.node(o).type.name+"_"+this.index(o-1);return e+":"+this.parentOffset}static resolve(e,o){if(!(o>=0&&o<=e.content.size))throw new RangeError("Position "+o+" out of range");let n=[],r=0,i=o;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),u=i-l;if(n.push(s,a,r+l),!u||(s=s.child(a),s.isText))break;i=u-1,r+=l+1}return new az(o,n,i)}static resolveCached(e,o){let n=Xle.get(e);if(n)for(let i=0;i<n.elts.length;i++){let s=n.elts[i];if(s.pos==o)return s}else Xle.set(e,n=new AUt);let r=n.elts[n.i]=az.resolve(e,o);return n.i=(n.i+1)%NUt,r}},AUt=class{constructor(){this.elts=[],this.i=0}};const NUt=12,Xle=new WeakMap;let C3=class{constructor(e,o,n){this.$from=e,this.$to=o,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};const VUt=Object.create(null);let Xy=class lz{constructor(e,o,n,r=cn.none){this.type=e,this.attrs=o,this.marks=r,this.content=n||Pe.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,o,n,r=0){this.content.nodesBetween(e,o,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,o,n,r){return this.content.textBetween(e,o,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,o,n){return this.type==e&&f3(this.attrs,o||e.defaultAttrs||VUt)&&cn.sameSet(this.marks,n||cn.none)}copy(e=null){return e==this.content?this:new lz(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new lz(this.type,this.attrs,this.content,e)}cut(e,o=this.content.size){return e==0&&o==this.content.size?this:this.copy(this.content.cut(e,o))}slice(e,o=this.content.size,n=!1){if(e==o)return ct.empty;let r=this.resolve(e),i=this.resolve(o),s=n?0:r.sharedDepth(o),a=r.start(s),l=r.node(s).content.cut(r.pos-a,i.pos-a);return new ct(l,r.depth-s,i.depth-s)}replace(e,o,n){return $Ut(this.resolve(e),this.resolve(o),n)}nodeAt(e){for(let o=this;;){let{index:n,offset:r}=o.content.findIndex(e);if(o=o.maybeChild(n),!o)return null;if(r==e||o.isText)return o;e-=r+1}}childAfter(e){let{index:o,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(o),index:o,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:o,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(o),index:o,offset:n};let r=this.content.child(o-1);return{node:r,index:o-1,offset:n-r.nodeSize}}resolve(e){return Zle.resolveCached(this,e)}resolveNoCache(e){return Zle.resolve(this,e)}rangeHasMark(e,o,n){let r=!1;return o>e&&this.nodesBetween(e,o,i=>(n.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),d2e(this.marks,e)}contentMatchAt(e){let o=this.type.contentMatch.matchFragment(this.content,0,e);if(!o)throw new Error("Called contentMatchAt on a node with invalid content");return o}canReplace(e,o,n=Pe.empty,r=0,i=n.childCount){let s=this.contentMatchAt(e).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,o);if(!a||!a.validEnd)return!1;for(let l=r;l<i;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0}canReplaceWith(e,o,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),s=i&&i.matchFragment(this.content,o);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=cn.none;for(let o=0;o<this.marks.length;o++){let n=this.marks[o];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!cn.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(o=>o.type.name)}`);this.content.forEach(o=>o.check())}toJSON(){let e={type:this.type.name};for(let o in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(o=>o.toJSON())),e}static fromJSON(e,o){if(!o)throw new RangeError("Invalid input for Node.fromJSON");let n;if(o.marks){if(!Array.isArray(o.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=o.marks.map(e.markFromJSON)}if(o.type=="text"){if(typeof o.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(o.text,n)}let r=Pe.fromJSON(e,o.content),i=e.nodeType(o.type).create(o.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};Xy.prototype.text=void 0;let IUt=class uz extends Xy{constructor(e,o,n,r){if(super(e,o,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):d2e(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,o){return this.text.slice(e,o)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new uz(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new uz(this.type,this.attrs,e,this.marks)}cut(e=0,o=this.text.length){return e==0&&o==this.text.length?this:this.withText(this.text.slice(e,o))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function d2e(t,e){for(let o=t.length-1;o>=0;o--)e=t[o].type.name+"("+e+")";return e}let vL=class m2e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,o){let n=new PUt(e,o);if(n.next==null)return m2e.empty;let r=p2e(n);n.next&&n.err("Unexpected trailing text");let i=KUt(jUt(r));return UUt(i,n),i}matchType(e){for(let o=0;o<this.next.length;o++)if(this.next[o].type==e)return this.next[o].next;return null}matchFragment(e,o=0,n=e.childCount){let r=this;for(let i=o;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:o}=this.next[e];if(!(o.isText||o.hasRequiredAttrs()))return o}return null}compatible(e){for(let o=0;o<this.next.length;o++)for(let n=0;n<e.next.length;n++)if(this.next[o].type==e.next[n].type)return!0;return!1}fillBefore(e,o=!1,n=0){let r=[this];function i(s,a){let l=s.matchFragment(e,n);if(l&&(!o||l.validEnd))return Pe.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:d}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&r.indexOf(d)==-1){r.push(d);let m=i(d,a.concat(c));if(m)return m}}return null}return i(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let o=this.computeWrapping(e);return this.wrapCache.push(e,o),o}computeWrapping(e){let o=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:l}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in o)&&(!r.type||l.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),o[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function o(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&o(n.next[r].next)}return o(this),e.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+e.indexOf(n.next[s].next);return i}).join(`
195
195
  `)}};vL.empty=new vL(!0);let PUt=class{constructor(e,o){this.string=e,this.nodeTypes=o,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};function p2e(t){let e=[];do e.push(MUt(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function MUt(t){let e=[];do e.push(OUt(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function OUt(t){let e=zUt(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=WUt(t,e);else break;return e}function Qle(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function WUt(t,e){let o=Qle(t),n=o;return t.eat(",")&&(t.next!="}"?n=Qle(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:o,max:n,expr:e}}function HUt(t,e){let o=t.nodeTypes,n=o[e];if(n)return[n];let r=[];for(let i in o){let s=o[i];s.isInGroup(e)&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function zUt(t){if(t.eat("(")){let e=p2e(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=HUt(t,t.next).map(o=>(t.inline==null?t.inline=o.isInline:t.inline!=o.isInline&&t.err("Mixing inline and block content"),{type:"name",value:o}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function jUt(t){let e=[[]];return r(i(t,0),o()),e;function o(){return e.push([])-1}function n(s,a,l){let u={term:l,to:a};return e[s].push(u),u}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,u)=>l.concat(i(u,a)),[]);if(s.type=="seq")for(let l=0;;l++){let u=i(s.exprs[l],a);if(l==s.exprs.length-1)return u;r(u,a=o())}else if(s.type=="star"){let l=o();return n(a,l),r(i(s.expr,l),l),[n(l)]}else if(s.type=="plus"){let l=o();return r(i(s.expr,a),l),r(i(s.expr,l),l),[n(l)]}else{if(s.type=="opt")return[n(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let u=0;u<s.min;u++){let c=o();r(i(s.expr,l),c),l=c}if(s.max==-1)r(i(s.expr,l),l);else for(let u=s.min;u<s.max;u++){let c=o();n(l,c),r(i(s.expr,l),c),l=c}return[n(l)]}else{if(s.type=="name")return[n(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function h2e(t,e){return e-t}function eue(t,e){let o=[];return n(e),o.sort(h2e);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);o.push(r);for(let s=0;s<i.length;s++){let{term:a,to:l}=i[s];!a&&o.indexOf(l)==-1&&n(l)}}}function KUt(t){let e=Object.create(null);return o(eue(t,0));function o(n){let r=[];n.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let u;for(let c=0;c<r.length;c++)r[c][0]==a&&(u=r[c][1]);eue(t,l).forEach(c=>{u||r.push([a,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let i=e[n.join(",")]=new vL(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(h2e);i.next.push({type:r[s][0],next:e[a.join(",")]||o(a)})}return i}}function UUt(t,e){for(let o=0,n=[t];o<n.length;o++){let r=n[o],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:l,next:u}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function f2e(t){let e=Object.create(null);for(let o in t){let n=t[o];if(!n.hasDefault)return null;e[o]=n.default}return e}function g2e(t,e){let o=Object.create(null);for(let n in t){let r=e&&e[n];if(r===void 0){let i=t[n];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+n)}o[n]=r}return o}function y2e(t,e,o,n){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${o} of type ${r}`);for(let r in t){let i=t[r];i.validate&&i.validate(e[r])}}function C2e(t,e){let o=Object.create(null);if(e)for(let n in e)o[n]=new JUt(t,n,e[n]);return o}let tue=class b2e{constructor(e,o,n){this.name=e,this.schema=o,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=C2e(e,n.attrs),this.defaultAttrs=f2e(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==vL.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:g2e(this.attrs,e)}create(e=null,o,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Xy(this,this.computeAttrs(e),Pe.from(o),cn.setFrom(n))}createChecked(e=null,o,n){return o=Pe.from(o),this.checkContent(o),new Xy(this,this.computeAttrs(e),o,cn.setFrom(n))}createAndFill(e=null,o,n){if(e=this.computeAttrs(e),o=Pe.from(o),o.size){let s=this.contentMatch.fillBefore(o);if(!s)return null;o=s.append(o)}let r=this.contentMatch.matchFragment(o),i=r&&r.fillBefore(Pe.empty,!0);return i?new Xy(this,e,o.append(i),cn.setFrom(n)):null}validContent(e){let o=this.contentMatch.matchFragment(e);if(!o||!o.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){y2e(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let o=0;o<e.length;o++)if(!this.allowsMarkType(e[o].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let o;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?o&&o.push(e[n]):o||(o=e.slice(0,n));return o?o.length?o:cn.none:e}static compile(e,o){let n=Object.create(null);e.forEach((i,s)=>n[i]=new b2e(i,o,s));let r=o.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};function qUt(t,e,o){let n=o.split("|");return r=>{let i=r===null?"null":typeof r;if(n.indexOf(i)<0)throw new RangeError(`Expected value of type ${n} for attribute ${e} on type ${t}, got ${i}`)}}let JUt=class{constructor(e,o,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate=typeof n.validate=="string"?qUt(e,o,n.validate):n.validate}get isRequired(){return!this.hasDefault}},v2e=class S2e{constructor(e,o,n,r){this.name=e,this.rank=o,this.schema=n,this.spec=r,this.attrs=C2e(e,r.attrs),this.excluded=null;let i=f2e(this.attrs);this.instance=i?new cn(this,i):null}create(e=null){return!e&&this.instance?this.instance:new cn(this,g2e(this.attrs,e))}static compile(e,o){let n=Object.create(null),r=0;return e.forEach((i,s)=>n[i]=new S2e(i,r++,o,s)),n}removeFromSet(e){for(var o=0;o<e.length;o++)e[o].type==this&&(e=e.slice(0,o).concat(e.slice(o+1)),o--);return e}isInSet(e){for(let o=0;o<e.length;o++)if(e[o].type==this)return e[o]}checkAttrs(e){y2e(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},GUt=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let o=this.spec={};for(let r in e)o[r]=e[r];o.nodes=Ur.from(e.nodes),o.marks=Ur.from(e.marks||{}),this.nodes=tue.compile(this.spec.nodes,this),this.marks=v2e.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=n[s]||(n[s]=vL.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?oue(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:oue(this,s.split(" "))}this.nodeFromJSON=r=>Xy.fromJSON(this,r),this.markFromJSON=r=>cn.fromJSON(this,r),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,o=null,n,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof tue){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(o,n,r)}text(e,o){let n=this.nodes.text;return new IUt(n,n.defaultAttrs,e,cn.setFrom(o))}mark(e,o){return typeof e=="string"&&(e=this.marks[e]),e.create(o)}nodeType(e){let o=this.nodes[e];if(!o)throw new RangeError("Unknown node type: "+e);return o}};function oue(t,e){let o=[];for(let n=0;n<e.length;n++){let r=e[n],i=t.marks[r],s=i;if(i)o.push(i);else for(let a in t.marks){let l=t.marks[a];(r=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&o.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[n]+"'")}return o}function YUt(t){return t.tag!=null}function ZUt(t){return t.style!=null}let d$=class cz{constructor(e,o){this.schema=e,this.rules=o,this.tags=[],this.styles=[];let n=this.matchedStyles=[];o.forEach(r=>{if(YUt(r))this.tags.push(r);else if(ZUt(r)){let i=/[^=]*/.exec(r.style)[0];n.indexOf(i)<0&&n.push(i),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,o={}){let n=new rue(this,o,!1);return n.addAll(e,cn.none,o.from,o.to),n.finish()}parseSlice(e,o={}){let n=new rue(this,o,!0);return n.addAll(e,cn.none,o.from,o.to),ct.maxOpen(n.finish())}matchTag(e,o,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(eqt(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||o.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,o,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!n.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=o))){if(s.getAttrs){let l=s.getAttrs(o);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let o=[];function n(r){let i=r.priority==null?50:r.priority,s=0;for(;s<o.length;s++){let a=o[s];if((a.priority==null?50:a.priority)<i)break}o.splice(s,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(s=>{n(s=iue(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(s=>{n(s=iue(s)),s.node||s.ignore||s.mark||(s.node=r)})}return o}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new cz(e,cz.schemaRules(e)))}};const w2e={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},XUt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},T2e={ol:!0,ul:!0},SL=1,dz=2,AF=4;function nue(t,e,o){return e!=null?(e?SL:0)|(e==="full"?dz:0):t&&t.whitespace=="pre"?SL|dz:o&~AF}let eD=class{constructor(e,o,n,r,i,s){this.type=e,this.attrs=o,this.marks=n,this.solid=r,this.options=s,this.content=[],this.activeMarks=cn.none,this.match=i||(s&AF?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let o=this.type.contentMatch.fillBefore(Pe.from(e));if(o)this.match=this.type.contentMatch.matchFragment(o);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(e.type))?(this.match=n,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&SL)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let o=Pe.from(this.content);return!e&&this.match&&(o=o.append(this.match.fillBefore(Pe.empty,!0))),this.type?this.type.create(this.attrs,o,this.marks):o}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!w2e.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},rue=class{constructor(e,o,n){this.parser=e,this.options=o,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=o.topNode,i,s=nue(null,o.preserveWhitespace,0)|(n?AF:0);r?i=new eD(r.type,r.attrs,cn.none,!0,o.topMatch||r.type.contentMatch,s):n?i=new eD(null,null,cn.none,!0,null,s):i=new eD(e.schema.topNodeType,null,cn.none,!0,null,s),this.nodes=[i],this.find=o.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,o){e.nodeType==3?this.addTextNode(e,o):e.nodeType==1&&this.addElement(e,o)}addTextNode(e,o){let n=e.nodeValue,r=this.top,i=r.options&dz?"full":this.localPreserveWS||(r.options&SL)>0,{schema:s}=this.parser;if(i==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)if(i==="full")n=n.replace(/\r\n?/g,`
196
196
  `);else if(s.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(s.linebreakReplacement.create())){let a=n.split(/\r?\n|\r/);for(let l=0;l<a.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),o,!0),a[l]&&this.insertNode(s.text(a[l]),o,!/\S/.test(a[l]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let a=r.content[r.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(n=n.slice(1))}n&&this.insertNode(s.text(n),o,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,o,n){let r=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),a;T2e.hasOwnProperty(s)&&this.parser.normalizeLists&&QUt(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,n));e:if(l?l.ignore:XUt.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,o);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let u,c=this.needsBlock;if(w2e.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,o);break e}let d=l&&l.skip?o:this.readStyles(e,o);d&&this.addAll(e,d),u&&this.sync(i),this.needsBlock=c}else{let u=this.readStyles(e,o);u&&this.addElementByRule(e,l,u,l.consuming===!1?a:void 0)}this.localPreserveWS=r}leafFallback(e,o){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`