@retailrocketgroup/retailrocket-create.repurchase-vue-email-template-render 5.0.384700 → 5.0.384767
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -3
- package/dist/assets/index.js +0 -1
- package/package.json +1 -1
- package/vite.config.ts +0 -1
- package/dist/assets/index.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -12,14 +12,14 @@ rendering chunks...
|
|
|
12
12
|
|
|
13
13
|
[vite:dts] Start generate declaration files...
|
|
14
14
|
computing gzip size...
|
|
15
|
-
[vite:dts] Declaration files built in
|
|
15
|
+
[vite:dts] Declaration files built in 6196ms.
|
|
16
16
|
|
|
17
17
|
dist/index.html 1.80 kB │ gzip: 0.72 kB
|
|
18
18
|
dist/assets/index.css 129.42 kB │ gzip: 20.40 kB
|
|
19
|
-
dist/assets/index.js 3,341.
|
|
19
|
+
dist/assets/index.js 3,341.73 kB │ gzip: 939.58 kB
|
|
20
20
|
|
|
21
21
|
(!) Some chunks are larger than 500 kB after minification. Consider:
|
|
22
22
|
- Using dynamic import() to code-split the application
|
|
23
23
|
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
|
|
24
24
|
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
|
|
25
|
-
✓ built in
|
|
25
|
+
✓ built in 17.12s
|
package/dist/assets/index.js
CHANGED
|
@@ -376,4 +376,3 @@ ${m.slice(u+2)}`,d+=1;else break}e.push({indent:u,number:parseInt(a,10),content:
|
|
|
376
376
|
`},renderMarkdown:()=>`
|
|
377
377
|
`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:o})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=n;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=o.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(h=>a.includes(h.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});var vde={},Tde={},xde={},Fde;function yO(){return Fde||(Fde=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"?o():n(s)}t.Some=e,t.None=o();function n(s){return{type:t.OptionType.Some,isSome(){return!0},isNone(){return!1},match(a){return a.some(s)},map(a){return n(a(s))},andThen(a){return a(s)},or(a){return this},and(a){return a},unwrapOr(a){return s},unwrap(){return s}}}function o(){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 o()},andThen(s){return o()},or(s){return s},and(s){return o()},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})(xde)),xde}var wde;function Vnn(){return wde||(wde=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isRight=t.isLeft=t.Right=t.Left=t.EitherType=void 0;const e=yO();t.EitherType={Left:Symbol(":left"),Right:Symbol(":right")};function n(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 n(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 n(a(s))},mapLeft(a){return n(a(s))},mapRight(a){return n(s)}}}t.Left=n;function o(s){return{type:t.EitherType.Right,isLeft(){return!1},isRight(){return!0},left(){return e.None},leftAndThen(a){return o(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 o(a(s))},mapLeft(a){return o(s)},mapRight(a){return o(a(s))}}}t.Right=o;function r(s){return s.isLeft()}t.isLeft=r;function i(s){return s.isRight()}t.isRight=i})(Tde)),Tde}var Sde={},kde;function Mnn(){return kde||(kde=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isErr=t.isOk=t.Err=t.Ok=t.ResultType=void 0;const e=yO();t.ResultType={Ok:Symbol(":ok"),Err:Symbol(":err")};function n(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 n(a(s))},mapErr(a){return n(s)},andThen(a){return a(s)},orElse(a){return n(s)}}}t.Ok=n;function o(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 o(s)},mapErr(a){return o(a(s))},andThen(a){return o(s)},orElse(a){return a(s)}}}t.Err=o;function r(s){return s.isOk()}t.isOk=r;function i(s){return s.isErr()}t.isErr=i})(Sde)),Sde}var Ede;function Onn(){return Ede||(Ede=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=Vnn();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 n=yO();Object.defineProperty(t,"isNone",{enumerable:!0,get:function(){return n.isNone}}),Object.defineProperty(t,"isSome",{enumerable:!0,get:function(){return n.isSome}}),Object.defineProperty(t,"None",{enumerable:!0,get:function(){return n.None}}),Object.defineProperty(t,"Some",{enumerable:!0,get:function(){return n.Some}});var o=Mnn();Object.defineProperty(t,"Err",{enumerable:!0,get:function(){return o.Err}}),Object.defineProperty(t,"isErr",{enumerable:!0,get:function(){return o.isErr}}),Object.defineProperty(t,"isOk",{enumerable:!0,get:function(){return o.isOk}}),Object.defineProperty(t,"Ok",{enumerable:!0,get:function(){return o.Ok}})})(vde)),vde}Onn();function cy(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(t==null||t==="")return;const n=Number(t);return isNaN(n)?String(t):isFinite(n)?`${n}${e}`:void 0}function _de(t){let e;return t!==null&&typeof t=="object"&&((e=Object.getPrototypeOf(t))===Object.prototype||e===null)}function nH(t,e){return e.every(n=>t.hasOwnProperty(n))}function Inn(t,e){const n={};for(const o of e)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}function Pnn(t){return t==null?[]:Array.isArray(t)?t:[t]}function Rde(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+n.repeat(Math.max(0,e-t.length))}function Wnn(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let o=0;for(;o<t.length;)n.push(t.substr(o,e)),o+=e;return n}function x$e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o={};for(const r in t)o[r]=t[r];for(const r in e){const i=t[r],s=e[r];if(_de(i)&&_de(s)){o[r]=x$e(i,s,n);continue}if(n&&Array.isArray(i)&&Array.isArray(s)){o[r]=n(i,s);continue}o[r]=s}return o}function wF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(wF.cache.has(t))return wF.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return wF.cache.set(t,e),e}wF.cache=new Map;function Hnn(t){const e=Vt({});Bo(()=>{const o=t();for(const r in o)e[r]=o[r]},{flush:"sync"});const n={};for(const o in e)n[o]=Me(()=>e[o]);return n}const dy=2.4,Dde=.2126729,Ade=.7151522,Nde=.072175,znn=.55,jnn=.58,Unn=.57,Knn=.62,J_=.03,Bde=1.45,qnn=5e-4,Jnn=1.25,Gnn=1.25,Lde=.078,$de=12.82051282051282,G_=.06,Vde=.001;function Mde(t,e){const n=(t.r/255)**dy,o=(t.g/255)**dy,r=(t.b/255)**dy,i=(e.r/255)**dy,s=(e.g/255)**dy,a=(e.b/255)**dy;let l=n*Dde+o*Ade+r*Nde,u=i*Dde+s*Ade+a*Nde;if(l<=J_&&(l+=(J_-l)**Bde),u<=J_&&(u+=(J_-u)**Bde),Math.abs(u-l)<qnn)return 0;let c;if(u>l){const d=(u**znn-l**jnn)*Jnn;c=d<Vde?0:d<Lde?d-d*$de*G_:d-G_}else{const d=(u**Knn-l**Unn)*Gnn;c=d>-Vde?0:d>-Lde?d-d*$de*G_:d+G_}return c*100}function Bj(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function Ynn(t){return Bj(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const Ode=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,Xnn={rgb:(t,e,n,o)=>({r:t,g:e,b:n,a:o}),rgba:(t,e,n,o)=>({r:t,g:e,b:n,a:o}),hsl:(t,e,n,o)=>Ide({h:t,s:e,l:n,a:o}),hsla:(t,e,n,o)=>Ide({h:t,s:e,l:n,a:o}),hsv:(t,e,n,o)=>nS({h:t,s:e,v:n,a:o}),hsva:(t,e,n,o)=>nS({h:t,s:e,v:n,a:o})};function jT(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&Ode.test(t)){const{groups:e}=t.match(Ode),{fn:n,values:o}=e,r=o.split(/,\s*|\s*\/\s*|\s+/).map((i,s)=>i.endsWith("%")||s>0&&s<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(i)/100:parseFloat(i));return Xnn[n](...r)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(n=>n+n).join(""):[6,8].includes(e.length)||void 0,Qnn(e)}else if(typeof t=="object"){if(nH(t,["r","g","b"]))return t;if(nH(t,["h","s","l"]))return nS(F$e(t));if(nH(t,["h","s","v"]))return nS(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name}
|
|
378
378
|
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function nS(t){const{h:e,s:n,v:o,a:r}=t,i=a=>{const l=(a+e/60)%6;return o-o*n*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 Ide(t){return nS(F$e(t))}function F$e(t){const{h:e,s:n,l:o,a:r}=t,i=o+n*Math.min(o,1-o),s=i===0?0:2-2*o/i;return{h:e,s,v:i,a:r}}function Qnn(t){t=Znn(t);let[e,n,o,r]=Wnn(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:n,b:o,a:r}}function Znn(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=Rde(Rde(t,6),8,"F")),t}function eon(t){const e=Math.abs(Mde(jT(0),jT(t)));return Math.abs(Mde(jT(16777215),jT(t)))>Math.min(e,50)?"#fff":"#000"}function fk(t,e){return n=>Object.keys(t).reduce((o,r)=>{const i=typeof t[r]=="object"&&t[r]!=null&&!Array.isArray(t[r])?t[r]:{type:t[r]};return n&&r in n?o[r]={...i,default:n[r]}:o[r]=i,e&&!o[r].source&&(o[r].source=e),o},{})}function bO(t,e){const n=as();if(!n)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return n}function ton(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bO("injectSelf");const{provides:n}=e;if(n&&t in n)return n[t]}const Lj=Symbol.for("vuetify:defaults");function w$e(){const t=ln(Lj);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function non(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[wF(e)]<"u")}function oon(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:w$e();const o=bO("useDefaults");if(e=e??o.type.name??o.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const r=q(()=>n.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(m=>m!=null);if(non(o.vnode,u))return c;const d=r.value?.[u];if(d!==void 0)return d;const h=n.value?.global?.[u];return h!==void 0?h:c}}),s=wn();Bo(()=>{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=ton(Lj,o);vo(Lj,q(()=>s.value?x$e(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function ron(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=fk(t.props??{},t.name)();const e=Object.keys(t.props).filter(n=>n!=="class"&&n!=="style");t.filterProps=function(n){return Inn(n,e)},t.props._as=String,t.setup=function(n,o){const r=w$e();if(!r.value)return t._setup(n,o);const{props:i,provideSubDefaults:s}=oon(n,n._as??t.name,r),a=t._setup(i,o);return s(),a}}return t}function ion(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?ron:Xe)(e)}function son(t){const e=bO("useRender");e.render=t}function aon(t){return Hnn(()=>{const{class:e,style:n}=uon(t);return{colorClasses:e,colorStyles:n}})}function lon(t){const{colorClasses:e,colorStyles:n}=aon(()=>({background:Zo(t)}));return{backgroundColorClasses:e,backgroundColorStyles:n}}function uon(t){const e=Zo(t),n=[],o={};if(e.background)if(Bj(e.background)){if(o.backgroundColor=e.background,!e.text&&Ynn(e.background)){const r=jT(e.background);if(r.a==null||r.a===1){const i=eon(r);o.color=i,o.caretColor=i}}}else n.push(`bg-${e.background}`);return e.text&&(Bj(e.text)?(o.color=e.text,o.caretColor=e.text):n.push(`text-${e.text}`)),{class:n,style:o}}const con=fk({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function don(t){return{dimensionStyles:q(()=>{const e={},n=cy(t.height),o=cy(t.maxHeight),r=cy(t.maxWidth),i=cy(t.minHeight),s=cy(t.minWidth),a=cy(t.width);return n!=null&&(e.height=n),o!=null&&(e.maxHeight=o),r!=null&&(e.maxWidth=r),i!=null&&(e.minHeight=i),s!=null&&(e.minWidth=s),a!=null&&(e.width=a),e})}}const hon=fk({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function mon(t){return{elevationClasses:Me(()=>{const e=vn(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const fon=Symbol.for("vuetify:locale");function pon(){const t=ln(fon);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}const Pde=Symbol.for("vuetify:theme"),gon=fk({theme:String},"theme");function Con(t){bO("provideTheme");const e=ln(Pde,null);if(!e)throw new Error("Could not find Vuetify theme injection");const n=Me(()=>t.theme??e.name.value),o=Me(()=>e.themes.value[n.value]),r=Me(()=>e.isDisabled?void 0:`${e.prefix}theme--${n.value}`),i={...e,name:n,current:o,themeClasses:r};return vo(Pde,i),i}const yon={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 bon(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return _("div",{class:$e(["v-skeleton-loader__bone",`v-skeleton-loader__${t}`])},[e])}function Wde(t){const[e,n]=t.split("@");return Array.from({length:n}).map(()=>vO(e))}function vO(t){let e=[];if(!t)return e;const n=yon[t];if(t!==n){if(t.includes(","))return Hde(t);if(t.includes("@"))return Wde(t);n.includes(",")?e=Hde(n):n.includes("@")?e=Wde(n):n&&e.push(vO(n))}return[bon(t,e)]}function Hde(t){return t.replace(/\s/g,"").split(",").map(vO)}const von=fk({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...con(),...hon(),...gon()},"VSkeletonLoader");ion()({name:"VSkeletonLoader",inheritAttrs:!1,props:von(),setup(t,e){let{attrs:n,slots:o}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=lon(()=>t.color),{dimensionStyles:s}=don(t),{elevationClasses:a}=mon(t),{themeClasses:l}=Con(t),{t:u}=pon(),c=q(()=>vO(Pnn(t.type).join(",")));return son(()=>{const d=!o.default||t.loading,h=t.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(t.loadingText),role:"alert"};return d?_("div",Ar({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},l.value,r.value,a.value],style:[i.value,s.value]},h,n),[c.value]):_(rt,null,[o.default?.()])}),{}}});var vi="top",Xs="bottom",Qs="right",Ti="left",TO="auto",Jv=[vi,Xs,Qs,Ti],Yg="start",rv="end",S$e="clippingParents",nG="viewport",u0="popper",k$e="reference",$j=Jv.reduce(function(t,e){return t.concat([e+"-"+Yg,e+"-"+rv])},[]),oG=[].concat(Jv,[TO]).reduce(function(t,e){return t.concat([e,e+"-"+Yg,e+"-"+rv])},[]),E$e="beforeRead",_$e="read",R$e="afterRead",D$e="beforeMain",A$e="main",N$e="afterMain",B$e="beforeWrite",L$e="write",$$e="afterWrite",V$e=[E$e,_$e,R$e,D$e,A$e,N$e,B$e,L$e,$$e];function Ju(t){return t?(t.nodeName||"").toLowerCase():null}function Zs(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Xg(t){var e=Zs(t).Element;return t instanceof e||t instanceof Element}function Aa(t){var e=Zs(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function rG(t){if(typeof ShadowRoot>"u")return!1;var e=Zs(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ton(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var o=e.styles[n]||{},r=e.attributes[n]||{},i=e.elements[n];!Aa(i)||!Ju(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(s){var a=r[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function xon(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(o){var r=e.elements[o],i=e.attributes[o]||{},s=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:n[o]),a=s.reduce(function(l,u){return l[u]="",l},{});!Aa(r)||!Ju(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const iG={name:"applyStyles",enabled:!0,phase:"write",fn:Ton,effect:xon,requires:["computeStyles"]};function Du(t){return t.split("-")[0]}var Cg=Math.max,K$=Math.min,iv=Math.round;function Vj(){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 M$e(){return!/^((?!chrome|android).)*safari/i.test(Vj())}function sv(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var o=t.getBoundingClientRect(),r=1,i=1;e&&Aa(t)&&(r=t.offsetWidth>0&&iv(o.width)/t.offsetWidth||1,i=t.offsetHeight>0&&iv(o.height)/t.offsetHeight||1);var s=Xg(t)?Zs(t):window,a=s.visualViewport,l=!M$e()&&n,u=(o.left+(l&&a?a.offsetLeft:0))/r,c=(o.top+(l&&a?a.offsetTop:0))/i,d=o.width/r,h=o.height/i;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u,x:u,y:c}}function sG(t){var e=sv(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function O$e(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&rG(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function bd(t){return Zs(t).getComputedStyle(t)}function Fon(t){return["table","td","th"].indexOf(Ju(t))>=0}function wf(t){return((Xg(t)?t.ownerDocument:t.document)||window.document).documentElement}function xO(t){return Ju(t)==="html"?t:t.assignedSlot||t.parentNode||(rG(t)?t.host:null)||wf(t)}function zde(t){return!Aa(t)||bd(t).position==="fixed"?null:t.offsetParent}function won(t){var e=/firefox/i.test(Vj()),n=/Trident/i.test(Vj());if(n&&Aa(t)){var o=bd(t);if(o.position==="fixed")return null}var r=xO(t);for(rG(r)&&(r=r.host);Aa(r)&&["html","body"].indexOf(Ju(r))<0;){var i=bd(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 pk(t){for(var e=Zs(t),n=zde(t);n&&Fon(n)&&bd(n).position==="static";)n=zde(n);return n&&(Ju(n)==="html"||Ju(n)==="body"&&bd(n).position==="static")?e:n||won(t)||e}function aG(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function SF(t,e,n){return Cg(t,K$(e,n))}function Son(t,e,n){var o=SF(t,e,n);return o>n?n:o}function I$e(){return{top:0,right:0,bottom:0,left:0}}function P$e(t){return Object.assign({},I$e(),t)}function W$e(t,e){return e.reduce(function(n,o){return n[o]=t,n},{})}var kon=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,P$e(typeof t!="number"?t:W$e(t,Jv))};function Eon(t){var e,n=t.state,o=t.name,r=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Du(n.placement),l=aG(a),u=[Ti,Qs].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=kon(r.padding,n),h=sG(i),m=l==="y"?vi:Ti,f=l==="y"?Xs:Qs,p=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],g=s[l]-n.rects.reference[l],y=pk(i),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,F=p/2-g/2,v=d[m],T=b-h[c]-d[f],S=b/2-h[c]/2+F,k=SF(v,S,T),R=l;n.modifiersData[o]=(e={},e[R]=k,e.centerOffset=k-S,e)}}function _on(t){var e=t.state,n=t.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||O$e(e.elements.popper,r)&&(e.elements.arrow=r))}const H$e={name:"arrow",enabled:!0,phase:"main",fn:Eon,effect:_on,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function av(t){return t.split("-")[1]}var Ron={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Don(t,e){var n=t.x,o=t.y,r=e.devicePixelRatio||1;return{x:iv(n*r)/r||0,y:iv(o*r)/r||0}}function jde(t){var e,n=t.popper,o=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,h=s.x,m=h===void 0?0:h,f=s.y,p=f===void 0?0:f,g=typeof c=="function"?c({x:m,y:p}):{x:m,y:p};m=g.x,p=g.y;var y=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),F=Ti,v=vi,T=window;if(u){var S=pk(n),k="clientHeight",R="clientWidth";if(S===Zs(n)&&(S=wf(n),bd(S).position!=="static"&&a==="absolute"&&(k="scrollHeight",R="scrollWidth")),S=S,r===vi||(r===Ti||r===Qs)&&i===rv){v=Xs;var D=d&&S===T&&T.visualViewport?T.visualViewport.height:S[k];p-=D-o.height,p*=l?1:-1}if(r===Ti||(r===vi||r===Xs)&&i===rv){F=Qs;var V=d&&S===T&&T.visualViewport?T.visualViewport.width:S[R];m-=V-o.width,m*=l?1:-1}}var E=Object.assign({position:a},u&&Ron),A=c===!0?Don({x:m,y:p},Zs(n)):{x:m,y:p};if(m=A.x,p=A.y,l){var N;return Object.assign({},E,(N={},N[v]=b?"0":"",N[F]=y?"0":"",N.transform=(T.devicePixelRatio||1)<=1?"translate("+m+"px, "+p+"px)":"translate3d("+m+"px, "+p+"px, 0)",N))}return Object.assign({},E,(e={},e[v]=b?p+"px":"",e[F]=y?m+"px":"",e.transform="",e))}function Aon(t){var e=t.state,n=t.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,s=i===void 0?!0:i,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:Du(e.placement),variation:av(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,jde(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,jde(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 lG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Aon,data:{}};var Y_={passive:!0};function Non(t){var e=t.state,n=t.instance,o=t.options,r=o.scroll,i=r===void 0?!0:r,s=o.resize,a=s===void 0?!0:s,l=Zs(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Y_)}),a&&l.addEventListener("resize",n.update,Y_),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Y_)}),a&&l.removeEventListener("resize",n.update,Y_)}}const uG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Non,data:{}};var Bon={left:"right",right:"left",bottom:"top",top:"bottom"};function FD(t){return t.replace(/left|right|bottom|top/g,function(e){return Bon[e]})}var Lon={start:"end",end:"start"};function Ude(t){return t.replace(/start|end/g,function(e){return Lon[e]})}function cG(t){var e=Zs(t),n=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:n,scrollTop:o}}function dG(t){return sv(wf(t)).left+cG(t).scrollLeft}function $on(t,e){var n=Zs(t),o=wf(t),r=n.visualViewport,i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;var u=M$e();(u||!u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a+dG(t),y:l}}function Von(t){var e,n=wf(t),o=cG(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=Cg(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Cg(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-o.scrollLeft+dG(t),l=-o.scrollTop;return bd(r||n).direction==="rtl"&&(a+=Cg(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function hG(t){var e=bd(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function z$e(t){return["html","body","#document"].indexOf(Ju(t))>=0?t.ownerDocument.body:Aa(t)&&hG(t)?t:z$e(xO(t))}function kF(t,e){var n;e===void 0&&(e=[]);var o=z$e(t),r=o===((n=t.ownerDocument)==null?void 0:n.body),i=Zs(o),s=r?[i].concat(i.visualViewport||[],hG(o)?o:[]):o,a=e.concat(s);return r?a:a.concat(kF(xO(s)))}function Mj(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Mon(t,e){var n=sv(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Kde(t,e,n){return e===nG?Mj($on(t,n)):Xg(e)?Mon(e,n):Mj(Von(wf(t)))}function Oon(t){var e=kF(xO(t)),n=["absolute","fixed"].indexOf(bd(t).position)>=0,o=n&&Aa(t)?pk(t):t;return Xg(o)?e.filter(function(r){return Xg(r)&&O$e(r,o)&&Ju(r)!=="body"}):[]}function Ion(t,e,n,o){var r=e==="clippingParents"?Oon(t):[].concat(e),i=[].concat(r,[n]),s=i[0],a=i.reduce(function(l,u){var c=Kde(t,u,o);return l.top=Cg(c.top,l.top),l.right=K$(c.right,l.right),l.bottom=K$(c.bottom,l.bottom),l.left=Cg(c.left,l.left),l},Kde(t,s,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function j$e(t){var e=t.reference,n=t.element,o=t.placement,r=o?Du(o):null,i=o?av(o):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(r){case vi:l={x:s,y:e.y-n.height};break;case Xs:l={x:s,y:e.y+e.height};break;case Qs:l={x:e.x+e.width,y:a};break;case Ti:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var u=r?aG(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Yg:l[u]=l[u]-(e[c]/2-n[c]/2);break;case rv:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function lv(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=o===void 0?t.placement:o,i=n.strategy,s=i===void 0?t.strategy:i,a=n.boundary,l=a===void 0?S$e:a,u=n.rootBoundary,c=u===void 0?nG:u,d=n.elementContext,h=d===void 0?u0:d,m=n.altBoundary,f=m===void 0?!1:m,p=n.padding,g=p===void 0?0:p,y=P$e(typeof g!="number"?g:W$e(g,Jv)),b=h===u0?k$e:u0,F=t.rects.popper,v=t.elements[f?b:h],T=Ion(Xg(v)?v:v.contextElement||wf(t.elements.popper),l,c,s),S=sv(t.elements.reference),k=j$e({reference:S,element:F,placement:r}),R=Mj(Object.assign({},F,k)),D=h===u0?R:S,V={top:T.top-D.top+y.top,bottom:D.bottom-T.bottom+y.bottom,left:T.left-D.left+y.left,right:D.right-T.right+y.right},E=t.modifiersData.offset;if(h===u0&&E){var A=E[r];Object.keys(V).forEach(function(N){var I=[Qs,Xs].indexOf(N)>=0?1:-1,M=[vi,Xs].indexOf(N)>=0?"y":"x";V[N]+=A[M]*I})}return V}function Pon(t,e){e===void 0&&(e={});var n=e,o=n.placement,r=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?oG:l,c=av(o),d=c?a?$j:$j.filter(function(f){return av(f)===c}):Jv,h=d.filter(function(f){return u.indexOf(f)>=0});h.length===0&&(h=d);var m=h.reduce(function(f,p){return f[p]=lv(t,{placement:p,boundary:r,rootBoundary:i,padding:s})[Du(p)],f},{});return Object.keys(m).sort(function(f,p){return m[f]-m[p]})}function Won(t){if(Du(t)===TO)return[];var e=FD(t);return[Ude(t),e,Ude(e)]}function Hon(t){var e=t.state,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,f=m===void 0?!0:m,p=n.allowedAutoPlacements,g=e.options.placement,y=Du(g),b=y===g,F=l||(b||!f?[FD(g)]:Won(g)),v=[g].concat(F).reduce(function(He,P){return He.concat(Du(P)===TO?Pon(e,{placement:P,boundary:c,rootBoundary:d,padding:u,flipVariations:f,allowedAutoPlacements:p}):P)},[]),T=e.rects.reference,S=e.rects.popper,k=new Map,R=!0,D=v[0],V=0;V<v.length;V++){var E=v[V],A=Du(E),N=av(E)===Yg,I=[vi,Xs].indexOf(A)>=0,M=I?"width":"height",$=lv(e,{placement:E,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),H=I?N?Qs:Ti:N?Xs:vi;T[M]>S[M]&&(H=FD(H));var ke=FD(H),Oe=[];if(i&&Oe.push($[A]<=0),a&&Oe.push($[H]<=0,$[ke]<=0),Oe.every(function(He){return He})){D=E,R=!1;break}k.set(E,Oe)}if(R)for(var ve=f?3:1,K=function(He){var P=v.find(function(Ee){var ae=k.get(Ee);if(ae)return ae.slice(0,He).every(function(ne){return ne})});if(P)return D=P,"break"},Pe=ve;Pe>0;Pe--){var Y=K(Pe);if(Y==="break")break}e.placement!==D&&(e.modifiersData[o]._skip=!0,e.placement=D,e.reset=!0)}}const U$e={name:"flip",enabled:!0,phase:"main",fn:Hon,requiresIfExists:["offset"],data:{_skip:!1}};function qde(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Jde(t){return[vi,Qs,Xs,Ti].some(function(e){return t[e]>=0})}function zon(t){var e=t.state,n=t.name,o=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=lv(e,{elementContext:"reference"}),a=lv(e,{altBoundary:!0}),l=qde(s,o),u=qde(a,r,i),c=Jde(l),d=Jde(u);e.modifiersData[n]={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 K$e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zon};function jon(t,e,n){var o=Du(t),r=[Ti,vi].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*r,[Ti,Qs].indexOf(o)>=0?{x:a,y:s}:{x:s,y:a}}function Uon(t){var e=t.state,n=t.options,o=t.name,r=n.offset,i=r===void 0?[0,0]:r,s=oG.reduce(function(c,d){return c[d]=jon(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[o]=s}const q$e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Uon};function Kon(t){var e=t.state,n=t.name;e.modifiersData[n]=j$e({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const mG={name:"popperOffsets",enabled:!0,phase:"read",fn:Kon,data:{}};function qon(t){return t==="x"?"y":"x"}function Jon(t){var e=t.state,n=t.options,o=t.name,r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,m=h===void 0?!0:h,f=n.tetherOffset,p=f===void 0?0:f,g=lv(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=Du(e.placement),b=av(e.placement),F=!b,v=aG(y),T=qon(v),S=e.modifiersData.popperOffsets,k=e.rects.reference,R=e.rects.popper,D=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,V=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(S){if(i){var N,I=v==="y"?vi:Ti,M=v==="y"?Xs:Qs,$=v==="y"?"height":"width",H=S[v],ke=H+g[I],Oe=H-g[M],ve=m?-R[$]/2:0,K=b===Yg?k[$]:R[$],Pe=b===Yg?-R[$]:-k[$],Y=e.elements.arrow,He=m&&Y?sG(Y):{width:0,height:0},P=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:I$e(),Ee=P[I],ae=P[M],ne=SF(0,k[$],He[$]),St=F?k[$]/2-ve-ne-Ee-V.mainAxis:K-ne-Ee-V.mainAxis,Tt=F?-k[$]/2+ve+ne+ae+V.mainAxis:Pe+ne+ae+V.mainAxis,xt=e.elements.arrow&&pk(e.elements.arrow),B=xt?v==="y"?xt.clientTop||0:xt.clientLeft||0:0,L=(N=E?.[v])!=null?N:0,j=H+St-L-B,G=H+Tt-L,Q=SF(m?K$(ke,j):ke,H,m?Cg(Oe,G):Oe);S[v]=Q,A[v]=Q-H}if(a){var Z,te=v==="x"?vi:Ti,oe=v==="x"?Xs:Qs,U=S[T],X=T==="y"?"height":"width",Ve=U+g[te],ce=U-g[oe],ue=[vi,Ti].indexOf(y)!==-1,de=(Z=E?.[T])!=null?Z:0,Te=ue?Ve:U-k[X]-R[X]-de+V.altAxis,le=ue?U+k[X]+R[X]-de-V.altAxis:ce,ze=m&&ue?Son(Te,U,le):SF(m?Te:Ve,U,m?le:ce);S[T]=ze,A[T]=ze-U}e.modifiersData[o]=A}}const J$e={name:"preventOverflow",enabled:!0,phase:"main",fn:Jon,requiresIfExists:["offset"]};function Gon(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Yon(t){return t===Zs(t)||!Aa(t)?cG(t):Gon(t)}function Xon(t){var e=t.getBoundingClientRect(),n=iv(e.width)/t.offsetWidth||1,o=iv(e.height)/t.offsetHeight||1;return n!==1||o!==1}function Qon(t,e,n){n===void 0&&(n=!1);var o=Aa(e),r=Aa(e)&&Xon(e),i=wf(e),s=sv(t,r,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!n)&&((Ju(e)!=="body"||hG(i))&&(a=Yon(e)),Aa(e)?(l=sv(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=dG(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function Zon(t){var e=new Map,n=new Set,o=[];t.forEach(function(i){e.set(i.name,i)});function r(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&r(l)}}),o.push(i)}return t.forEach(function(i){n.has(i.name)||r(i)}),o}function ern(t){var e=Zon(t);return V$e.reduce(function(n,o){return n.concat(e.filter(function(r){return r.phase===o}))},[])}function trn(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function nrn(t){var e=t.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(e).map(function(n){return e[n]})}var Gde={placement:"bottom",modifiers:[],strategy:"absolute"};function Yde(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function FO(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,o=n===void 0?[]:n,r=e.defaultOptions,i=r===void 0?Gde:r;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gde,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},c=[],d=!1,h={state:u,setOptions:function(p){var g=typeof p=="function"?p(u.options):p;f(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:Xg(s)?kF(s):s.contextElement?kF(s.contextElement):[],popper:kF(a)};var y=ern(nrn([].concat(o,u.options.modifiers)));return u.orderedModifiers=y.filter(function(b){return b.enabled}),m(),h.update()},forceUpdate:function(){if(!d){var p=u.elements,g=p.reference,y=p.popper;if(Yde(g,y)){u.rects={reference:Qon(g,pk(y),u.options.strategy==="fixed"),popper:sG(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var F=u.orderedModifiers[b],v=F.fn,T=F.options,S=T===void 0?{}:T,k=F.name;typeof v=="function"&&(u=v({state:u,options:S,name:k,instance:h})||u)}}}},update:trn(function(){return new Promise(function(p){h.forceUpdate(),p(u)})}),destroy:function(){f(),d=!0}};if(!Yde(s,a))return h;h.setOptions(l).then(function(p){!d&&l.onFirstUpdate&&l.onFirstUpdate(p)});function m(){u.orderedModifiers.forEach(function(p){var g=p.name,y=p.options,b=y===void 0?{}:y,F=p.effect;if(typeof F=="function"){var v=F({state:u,name:g,instance:h,options:b}),T=function(){};c.push(v||T)}})}function f(){c.forEach(function(p){return p()}),c=[]}return h}}var orn=FO(),rrn=[uG,mG,lG,iG],irn=FO({defaultModifiers:rrn}),srn=[uG,mG,lG,iG,q$e,U$e,J$e,H$e,K$e],fG=FO({defaultModifiers:srn});const G$e=Object.freeze(Object.defineProperty({__proto__:null,afterMain:N$e,afterRead:R$e,afterWrite:$$e,applyStyles:iG,arrow:H$e,auto:TO,basePlacements:Jv,beforeMain:D$e,beforeRead:E$e,beforeWrite:B$e,bottom:Xs,clippingParents:S$e,computeStyles:lG,createPopper:fG,createPopperBase:orn,createPopperLite:irn,detectOverflow:lv,end:rv,eventListeners:uG,flip:U$e,hide:K$e,left:Ti,main:A$e,modifierPhases:V$e,offset:q$e,placements:oG,popper:u0,popperGenerator:FO,popperOffsets:mG,preventOverflow:J$e,read:_$e,reference:k$e,right:Qs,start:Yg,top:vi,variationPlacements:$j,viewport:nG,write:L$e},Symbol.toStringTag,{value:"Module"})),ih=new Map,oH={set(t,e,n){ih.has(t)||ih.set(t,new Map);const o=ih.get(t);if(!o.has(e)&&o.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`);return}o.set(e,n)},get(t,e){return ih.has(t)&&ih.get(t).get(e)||null},remove(t,e){if(!ih.has(t))return;const n=ih.get(t);n.delete(e),n.size===0&&ih.delete(t)}},arn=1e6,lrn=1e3,Oj="transitionend",Y$e=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),urn=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),crn=t=>{do t+=Math.floor(Math.random()*arn);while(document.getElementById(t));return t},drn=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const o=Number.parseFloat(e),r=Number.parseFloat(n);return!o&&!r?0:(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*lrn)},X$e=t=>{t.dispatchEvent(new Event(Oj))},sd=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Bm=t=>sd(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(Y$e(t)):null,Gv=t=>{if(!sd(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const o=t.closest("summary");if(o&&o.parentNode!==n||o===null)return!1}return e},Lm=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",Q$e=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?Q$e(t.parentNode):null},q$=()=>{},gk=t=>{t.offsetHeight},Z$e=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,rH=[],hrn=t=>{document.readyState==="loading"?(rH.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of rH)e()}),rH.push(t)):t()},Ya=()=>document.documentElement.dir==="rtl",rl=t=>{hrn(()=>{const e=Z$e();if(e){const n=t.NAME,o=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=o,t.jQueryInterface)}})},Yi=(t,e=[],n=t)=>typeof t=="function"?t.call(...e):n,eVe=(t,e,n=!0)=>{if(!n){Yi(t);return}const o=drn(e)+5;let r=!1;const i=({target:s})=>{s===e&&(r=!0,e.removeEventListener(Oj,i),Yi(t))};e.addEventListener(Oj,i),setTimeout(()=>{r||X$e(e)},o)},pG=(t,e,n,o)=>{const r=t.length;let i=t.indexOf(e);return i===-1?!n&&o?t[r-1]:t[0]:(i+=n?1:-1,o&&(i=(i+r)%r),t[Math.max(0,Math.min(i,r-1))])},mrn=/[^.]*(?=\..*)\.|.*/,frn=/\..*/,prn=/::\d+$/,iH={};let Xde=1;const tVe={mouseenter:"mouseover",mouseleave:"mouseout"},grn=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 nVe(t,e){return e&&`${e}::${Xde++}`||t.uidEvent||Xde++}function oVe(t){const e=nVe(t);return t.uidEvent=e,iH[e]=iH[e]||{},iH[e]}function Crn(t,e){return function n(o){return gG(o,{delegateTarget:t}),n.oneOff&&be.off(t,o.type,e),e.apply(t,[o])}}function yrn(t,e,n){return function o(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 gG(r,{delegateTarget:s}),o.oneOff&&be.off(t,r.type,e,n),n.apply(s,[r])}}function rVe(t,e,n=null){return Object.values(t).find(o=>o.callable===e&&o.delegationSelector===n)}function iVe(t,e,n){const o=typeof e=="string",r=o?n:e||n;let i=sVe(t);return grn.has(i)||(i=t),[o,r,i]}function Qde(t,e,n,o,r){if(typeof e!="string"||!t)return;let[i,s,a]=iVe(e,n,o);e in tVe&&(s=(m=>function(f){if(!f.relatedTarget||f.relatedTarget!==f.delegateTarget&&!f.delegateTarget.contains(f.relatedTarget))return m.call(this,f)})(s));const l=oVe(t),u=l[a]||(l[a]={}),c=rVe(u,s,i?n:null);if(c){c.oneOff=c.oneOff&&r;return}const d=nVe(s,e.replace(mrn,"")),h=i?yrn(t,n,s):Crn(t,s);h.delegationSelector=i?n:null,h.callable=s,h.oneOff=r,h.uidEvent=d,u[d]=h,t.addEventListener(a,h,i)}function Ij(t,e,n,o,r){const i=rVe(e[n],o,r);i&&(t.removeEventListener(n,i,!!r),delete e[n][i.uidEvent])}function brn(t,e,n,o){const r=e[n]||{};for(const[i,s]of Object.entries(r))i.includes(o)&&Ij(t,e,n,s.callable,s.delegationSelector)}function sVe(t){return t=t.replace(frn,""),tVe[t]||t}const be={on(t,e,n,o){Qde(t,e,n,o,!1)},one(t,e,n,o){Qde(t,e,n,o,!0)},off(t,e,n,o){if(typeof e!="string"||!t)return;const[r,i,s]=iVe(e,n,o),a=s!==e,l=oVe(t),u=l[s]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;Ij(t,l,s,i,r?n:null);return}if(c)for(const d of Object.keys(l))brn(t,l,d,e.slice(1));for(const[d,h]of Object.entries(u)){const m=d.replace(prn,"");(!a||e.includes(m))&&Ij(t,l,s,h.callable,h.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const o=Z$e(),r=sVe(e),i=e!==r;let s=null,a=!0,l=!0,u=!1;i&&o&&(s=o.Event(e,n),o(t).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=gG(new Event(e,{bubbles:a,cancelable:!0}),n);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function gG(t,e={}){for(const[n,o]of Object.entries(e))try{t[n]=o}catch{Object.defineProperty(t,n,{configurable:!0,get(){return o}})}return t}function Zde(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 sH(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const ad={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${sH(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${sH(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(o=>o.startsWith("bs")&&!o.startsWith("bsConfig"));for(const o of n){let r=o.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),e[r]=Zde(t.dataset[o])}return e},getDataAttribute(t,e){return Zde(t.getAttribute(`data-bs-${sH(e)}`))}};class Ck{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,n){const o=sd(n)?ad.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof o=="object"?o:{},...sd(n)?ad.getDataAttributes(n):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const[o,r]of Object.entries(n)){const i=e[o],s=sd(i)?"element":urn(i);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${s}" but expected type "${r}".`)}}}const vrn="5.3.8";class Jl extends Ck{constructor(e,n){super(),e=Bm(e),e&&(this._element=e,this._config=this._getConfig(n),oH.set(this._element,this.constructor.DATA_KEY,this))}dispose(){oH.remove(this._element,this.constructor.DATA_KEY),be.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,o=!0){eVe(e,n,o)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return oH.get(Bm(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return vrn}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 aH=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&n!=="#"?n.trim():null}return e?e.split(",").map(n=>Y$e(n)).join(","):null},mt={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(n=>n.matches(e))},parents(t,e){const n=[];let o=t.parentNode.closest(e);for(;o;)n.push(o),o=o.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(n=>!Lm(n)&&Gv(n))},getSelectorFromElement(t){const e=aH(t);return e&&mt.findOne(e)?e:null},getElementFromSelector(t){const e=aH(t);return e?mt.findOne(e):null},getMultipleElementsFromSelector(t){const e=aH(t);return e?mt.find(e):[]}},wO=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,o=t.NAME;be.on(document,n,`[data-bs-dismiss="${o}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),Lm(this))return;const i=mt.getElementFromSelector(this)||this.closest(`.${o}`);t.getOrCreateInstance(i)[e]()})},Trn="alert",xrn="bs.alert",aVe=`.${xrn}`,Frn=`close${aVe}`,wrn=`closed${aVe}`,Srn="fade",krn="show";class SO extends Jl{static get NAME(){return Trn}close(){if(be.trigger(this._element,Frn).defaultPrevented)return;this._element.classList.remove(krn);const e=this._element.classList.contains(Srn);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),be.trigger(this._element,wrn),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=SO.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}wO(SO,"close");rl(SO);const Ern="button",_rn="bs.button",Rrn=`.${_rn}`,Drn=".data-api",Arn="active",ehe='[data-bs-toggle="button"]',Nrn=`click${Rrn}${Drn}`;class kO extends Jl{static get NAME(){return Ern}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Arn))}static jQueryInterface(e){return this.each(function(){const n=kO.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}be.on(document,Nrn,ehe,t=>{t.preventDefault();const e=t.target.closest(ehe);kO.getOrCreateInstance(e).toggle()});rl(kO);const Brn="swipe",Yv=".bs.swipe",Lrn=`touchstart${Yv}`,$rn=`touchmove${Yv}`,Vrn=`touchend${Yv}`,Mrn=`pointerdown${Yv}`,Orn=`pointerup${Yv}`,Irn="touch",Prn="pen",Wrn="pointer-event",Hrn=40,zrn={endCallback:null,leftCallback:null,rightCallback:null},jrn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class J$ extends Ck{constructor(e,n){super(),this._element=e,!(!e||!J$.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return zrn}static get DefaultType(){return jrn}static get NAME(){return Brn}dispose(){be.off(this._element,Yv)}_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(),Yi(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<=Hrn)return;const n=e/this._deltaX;this._deltaX=0,n&&Yi(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(be.on(this._element,Mrn,e=>this._start(e)),be.on(this._element,Orn,e=>this._end(e)),this._element.classList.add(Wrn)):(be.on(this._element,Lrn,e=>this._start(e)),be.on(this._element,$rn,e=>this._move(e)),be.on(this._element,Vrn,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Prn||e.pointerType===Irn)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Urn="carousel",Krn="bs.carousel",Sf=`.${Krn}`,lVe=".data-api",qrn="ArrowLeft",Jrn="ArrowRight",Grn=500,eT="next",hy="prev",c0="left",wD="right",Yrn=`slide${Sf}`,lH=`slid${Sf}`,Xrn=`keydown${Sf}`,Qrn=`mouseenter${Sf}`,Zrn=`mouseleave${Sf}`,ein=`dragstart${Sf}`,tin=`load${Sf}${lVe}`,nin=`click${Sf}${lVe}`,uVe="carousel",X_="active",oin="slide",rin="carousel-item-end",iin="carousel-item-start",sin="carousel-item-next",ain="carousel-item-prev",cVe=".active",dVe=".carousel-item",lin=cVe+dVe,uin=".carousel-item img",cin=".carousel-indicators",din="[data-bs-slide], [data-bs-slide-to]",hin='[data-bs-ride="carousel"]',min={[qrn]:wD,[Jrn]:c0},fin={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},pin={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class yk extends Jl{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=mt.findOne(cin,this._element),this._addEventListeners(),this._config.ride===uVe&&this.cycle()}static get Default(){return fin}static get DefaultType(){return pin}static get NAME(){return Urn}next(){this._slide(eT)}nextWhenVisible(){!document.hidden&&Gv(this._element)&&this.next()}prev(){this._slide(hy)}pause(){this._isSliding&&X$e(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){be.one(this._element,lH,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){be.one(this._element,lH,()=>this.to(e));return}const o=this._getItemIndex(this._getActive());if(o===e)return;const r=e>o?eT:hy;this._slide(r,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&be.on(this._element,Xrn,e=>this._keydown(e)),this._config.pause==="hover"&&(be.on(this._element,Qrn,()=>this.pause()),be.on(this._element,Zrn,()=>this._maybeEnableCycle())),this._config.touch&&J$.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of mt.find(uin,this._element))be.on(n,ein,o=>o.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(c0)),rightCallback:()=>this._slide(this._directionToOrder(wD)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Grn+this._config.interval))}};this._swipeHelper=new J$(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=min[e.key];n&&(e.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const n=mt.findOne(cVe,this._indicatorsElement);n.classList.remove(X_),n.removeAttribute("aria-current");const o=mt.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);o&&(o.classList.add(X_),o.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const n=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const o=this._getActive(),r=e===eT,i=n||pG(this._getItems(),o,r,this._config.wrap);if(i===o)return;const s=this._getItemIndex(i),a=h=>be.trigger(this._element,h,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(o),to:s});if(a(Yrn).defaultPrevented||!o||!i)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=r?iin:rin,c=r?sin:ain;i.classList.add(c),gk(i),o.classList.add(u),i.classList.add(u);const d=()=>{i.classList.remove(u,c),i.classList.add(X_),o.classList.remove(X_,c,u),this._isSliding=!1,a(lH)};this._queueCallback(d,o,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(oin)}_getActive(){return mt.findOne(lin,this._element)}_getItems(){return mt.find(dVe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ya()?e===c0?hy:eT:e===c0?eT:hy}_orderToDirection(e){return Ya()?e===hy?c0:wD:e===hy?wD:c0}static jQueryInterface(e){return this.each(function(){const n=yk.getOrCreateInstance(this,e);if(typeof e=="number"){n.to(e);return}if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}be.on(document,nin,din,function(t){const e=mt.getElementFromSelector(this);if(!e||!e.classList.contains(uVe))return;t.preventDefault();const n=yk.getOrCreateInstance(e),o=this.getAttribute("data-bs-slide-to");if(o){n.to(o),n._maybeEnableCycle();return}if(ad.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});be.on(window,tin,()=>{const t=mt.find(hin);for(const e of t)yk.getOrCreateInstance(e)});rl(yk);const gin="collapse",Cin="bs.collapse",bk=`.${Cin}`,yin=".data-api",bin=`show${bk}`,vin=`shown${bk}`,Tin=`hide${bk}`,xin=`hidden${bk}`,Fin=`click${bk}${yin}`,uH="show",v0="collapse",Q_="collapsing",win="collapsed",Sin=`:scope .${v0} .${v0}`,kin="collapse-horizontal",Ein="width",_in="height",Rin=".collapse.show, .collapse.collapsing",Pj='[data-bs-toggle="collapse"]',Din={parent:null,toggle:!0},Ain={parent:"(null|element)",toggle:"boolean"};class oS extends Jl{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const o=mt.find(Pj);for(const r of o){const i=mt.getSelectorFromElement(r),s=mt.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 Din}static get DefaultType(){return Ain}static get NAME(){return gin}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(Rin).filter(i=>i!==this._element).map(i=>oS.getOrCreateInstance(i,{toggle:!1}))),e.length&&e[0]._isTransitioning||be.trigger(this._element,bin).defaultPrevented)return;for(const i of e)i.hide();const n=this._getDimension();this._element.classList.remove(v0),this._element.classList.add(Q_),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(Q_),this._element.classList.add(v0,uH),this._element.style[n]="",be.trigger(this._element,vin)},r=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[n]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||be.trigger(this._element,Tin).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,gk(this._element),this._element.classList.add(Q_),this._element.classList.remove(v0,uH);for(const o of this._triggerArray){const r=mt.getElementFromSelector(o);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(Q_),this._element.classList.add(v0),be.trigger(this._element,xin)};this._element.style[e]="",this._queueCallback(n,this._element,!0)}_isShown(e=this._element){return e.classList.contains(uH)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Bm(e.parent),e}_getDimension(){return this._element.classList.contains(kin)?Ein:_in}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Pj);for(const n of e){const o=mt.getElementFromSelector(n);o&&this._addAriaAndCollapsedClass([n],this._isShown(o))}}_getFirstLevelChildren(e){const n=mt.find(Sin,this._config.parent);return mt.find(e,this._config.parent).filter(o=>!n.includes(o))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const o of e)o.classList.toggle(win,!n),o.setAttribute("aria-expanded",n)}static jQueryInterface(e){const n={};return typeof e=="string"&&/show|hide/.test(e)&&(n.toggle=!1),this.each(function(){const o=oS.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}}be.on(document,Fin,Pj,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of mt.getMultipleElementsFromSelector(this))oS.getOrCreateInstance(e,{toggle:!1}).toggle()});rl(oS);const the="dropdown",Nin="bs.dropdown",_C=`.${Nin}`,CG=".data-api",Bin="Escape",nhe="Tab",Lin="ArrowUp",ohe="ArrowDown",$in=2,Vin=`hide${_C}`,Min=`hidden${_C}`,Oin=`show${_C}`,Iin=`shown${_C}`,hVe=`click${_C}${CG}`,mVe=`keydown${_C}${CG}`,Pin=`keyup${_C}${CG}`,d0="show",Win="dropup",Hin="dropend",zin="dropstart",jin="dropup-center",Uin="dropdown-center",bp='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Kin=`${bp}.${d0}`,SD=".dropdown-menu",qin=".navbar",Jin=".navbar-nav",Gin=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Yin=Ya()?"top-end":"top-start",Xin=Ya()?"top-start":"top-end",Qin=Ya()?"bottom-end":"bottom-start",Zin=Ya()?"bottom-start":"bottom-end",esn=Ya()?"left-start":"right-start",tsn=Ya()?"right-start":"left-start",nsn="top",osn="bottom",rsn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},isn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Au extends Jl{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=mt.next(this._element,SD)[0]||mt.prev(this._element,SD)[0]||mt.findOne(SD,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return rsn}static get DefaultType(){return isn}static get NAME(){return the}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Lm(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!be.trigger(this._element,Oin,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Jin))for(const n of[].concat(...document.body.children))be.on(n,"mouseover",q$);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(d0),this._element.classList.add(d0),be.trigger(this._element,Iin,e)}}hide(){if(Lm(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(!be.trigger(this._element,Vin,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))be.off(n,"mouseover",q$);this._popper&&this._popper.destroy(),this._menu.classList.remove(d0),this._element.classList.remove(d0),this._element.setAttribute("aria-expanded","false"),ad.removeDataAttribute(this._menu,"popper"),be.trigger(this._element,Min,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!sd(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${the.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof G$e>"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:sd(this._config.reference)?e=Bm(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=fG(e,this._menu,n)}_isShown(){return this._menu.classList.contains(d0)}_getPlacement(){const e=this._parent;if(e.classList.contains(Hin))return esn;if(e.classList.contains(zin))return tsn;if(e.classList.contains(jin))return nsn;if(e.classList.contains(Uin))return osn;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(Win)?n?Xin:Yin:n?Zin:Qin}_detectNavbar(){return this._element.closest(qin)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,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")&&(ad.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Yi(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:n}){const o=mt.find(Gin,this._menu).filter(r=>Gv(r));o.length&&pG(o,n,e===ohe,!o.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Au.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}static clearMenus(e){if(e.button===$in||e.type==="keyup"&&e.key!==nhe)return;const n=mt.find(Kin);for(const o of n){const r=Au.getInstance(o);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===nhe||/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 n=/input|textarea/i.test(e.target.tagName),o=e.key===Bin,r=[Lin,ohe].includes(e.key);if(!r&&!o||n&&!o)return;e.preventDefault();const i=this.matches(bp)?this:mt.prev(this,bp)[0]||mt.next(this,bp)[0]||mt.findOne(bp,e.delegateTarget.parentNode),s=Au.getOrCreateInstance(i);if(r){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}be.on(document,mVe,bp,Au.dataApiKeydownHandler);be.on(document,mVe,SD,Au.dataApiKeydownHandler);be.on(document,hVe,Au.clearMenus);be.on(document,Pin,Au.clearMenus);be.on(document,hVe,bp,function(t){t.preventDefault(),Au.getOrCreateInstance(this).toggle()});rl(Au);const fVe="backdrop",ssn="fade",rhe="show",ihe=`mousedown.bs.${fVe}`,asn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},lsn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class pVe extends Ck{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return asn}static get DefaultType(){return lsn}static get NAME(){return fVe}show(e){if(!this._config.isVisible){Yi(e);return}this._append();const n=this._getElement();this._config.isAnimated&&gk(n),n.classList.add(rhe),this._emulateAnimation(()=>{Yi(e)})}hide(e){if(!this._config.isVisible){Yi(e);return}this._getElement().classList.remove(rhe),this._emulateAnimation(()=>{this.dispose(),Yi(e)})}dispose(){this._isAppended&&(be.off(this._element,ihe),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(ssn),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Bm(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),be.on(e,ihe,()=>{Yi(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){eVe(e,this._getElement(),this._config.isAnimated)}}const usn="focustrap",csn="bs.focustrap",G$=`.${csn}`,dsn=`focusin${G$}`,hsn=`keydown.tab${G$}`,msn="Tab",fsn="forward",she="backward",psn={autofocus:!0,trapElement:null},gsn={autofocus:"boolean",trapElement:"element"};class gVe extends Ck{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return psn}static get DefaultType(){return gsn}static get NAME(){return usn}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),be.off(document,G$),be.on(document,dsn,e=>this._handleFocusin(e)),be.on(document,hsn,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,be.off(document,G$))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const o=mt.focusableChildren(n);o.length===0?n.focus():this._lastTabNavDirection===she?o[o.length-1].focus():o[0].focus()}_handleKeydown(e){e.key===msn&&(this._lastTabNavDirection=e.shiftKey?she:fsn)}}const ahe=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",lhe=".sticky-top",Z_="padding-right",uhe="margin-right";class Wj{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,Z_,n=>n+e),this._setElementAttributes(ahe,Z_,n=>n+e),this._setElementAttributes(lhe,uhe,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Z_),this._resetElementAttributes(ahe,Z_),this._resetElementAttributes(lhe,uhe)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,o){const r=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+r)return;this._saveInitialAttribute(s,n);const a=window.getComputedStyle(s).getPropertyValue(n);s.style.setProperty(n,`${o(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,n){const o=e.style.getPropertyValue(n);o&&ad.setDataAttribute(e,n,o)}_resetElementAttributes(e,n){const o=r=>{const i=ad.getDataAttribute(r,n);if(i===null){r.style.removeProperty(n);return}ad.removeDataAttribute(r,n),r.style.setProperty(n,i)};this._applyManipulationCallback(e,o)}_applyManipulationCallback(e,n){if(sd(e)){n(e);return}for(const o of mt.find(e,this._element))n(o)}}const Csn="modal",ysn="bs.modal",Xa=`.${ysn}`,bsn=".data-api",vsn="Escape",Tsn=`hide${Xa}`,xsn=`hidePrevented${Xa}`,CVe=`hidden${Xa}`,yVe=`show${Xa}`,Fsn=`shown${Xa}`,wsn=`resize${Xa}`,Ssn=`click.dismiss${Xa}`,ksn=`mousedown.dismiss${Xa}`,Esn=`keydown.dismiss${Xa}`,_sn=`click${Xa}${bsn}`,che="modal-open",Rsn="fade",dhe="show",cH="modal-static",Dsn=".modal.show",Asn=".modal-dialog",Nsn=".modal-body",Bsn='[data-bs-toggle="modal"]',Lsn={backdrop:!0,focus:!0,keyboard:!0},$sn={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class uv extends Jl{constructor(e,n){super(e,n),this._dialog=mt.findOne(Asn,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Wj,this._addEventListeners()}static get Default(){return Lsn}static get DefaultType(){return $sn}static get NAME(){return Csn}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||be.trigger(this._element,yVe,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(che),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||be.trigger(this._element,Tsn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(dhe),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){be.off(window,Xa),be.off(this._dialog,Xa),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new pVe({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new gVe({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 n=mt.findOne(Nsn,this._dialog);n&&(n.scrollTop=0),gk(this._element),this._element.classList.add(dhe);const o=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,be.trigger(this._element,Fsn,{relatedTarget:e})};this._queueCallback(o,this._dialog,this._isAnimated())}_addEventListeners(){be.on(this._element,Esn,e=>{if(e.key===vsn){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),be.on(window,wsn,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),be.on(this._element,ksn,e=>{be.one(this._element,Ssn,n=>{if(!(this._element!==e.target||this._element!==n.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(che),this._resetAdjustments(),this._scrollBar.reset(),be.trigger(this._element,CVe)})}_isAnimated(){return this._element.classList.contains(Rsn)}_triggerBackdropTransition(){if(be.trigger(this._element,xsn).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(cH)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(cH),this._queueCallback(()=>{this._element.classList.remove(cH),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),o=n>0;if(o&&!e){const r=Ya()?"paddingLeft":"paddingRight";this._element.style[r]=`${n}px`}if(!o&&e){const r=Ya()?"paddingRight":"paddingLeft";this._element.style[r]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,n){return this.each(function(){const o=uv.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e](n)}})}}be.on(document,_sn,Bsn,function(t){const e=mt.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),be.one(e,yVe,o=>{o.defaultPrevented||be.one(e,CVe,()=>{Gv(this)&&this.focus()})});const n=mt.findOne(Dsn);n&&uv.getInstance(n).hide(),uv.getOrCreateInstance(e).toggle(this)});wO(uv);rl(uv);const Vsn="offcanvas",Msn="bs.offcanvas",Hd=`.${Msn}`,bVe=".data-api",Osn=`load${Hd}${bVe}`,Isn="Escape",hhe="show",mhe="showing",fhe="hiding",Psn="offcanvas-backdrop",vVe=".offcanvas.show",Wsn=`show${Hd}`,Hsn=`shown${Hd}`,zsn=`hide${Hd}`,phe=`hidePrevented${Hd}`,TVe=`hidden${Hd}`,jsn=`resize${Hd}`,Usn=`click${Hd}${bVe}`,Ksn=`keydown.dismiss${Hd}`,qsn='[data-bs-toggle="offcanvas"]',Jsn={backdrop:!0,keyboard:!0,scroll:!1},Gsn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class $m extends Jl{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Jsn}static get DefaultType(){return Gsn}static get NAME(){return Vsn}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||be.trigger(this._element,Wsn,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Wj().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(mhe);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(hhe),this._element.classList.remove(mhe),be.trigger(this._element,Hsn,{relatedTarget:e})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||be.trigger(this._element,zsn).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(fhe),this._backdrop.hide();const e=()=>{this._element.classList.remove(hhe,fhe),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Wj().reset(),be.trigger(this._element,TVe)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){be.trigger(this._element,phe);return}this.hide()},n=!!this._config.backdrop;return new pVe({className:Psn,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new gVe({trapElement:this._element})}_addEventListeners(){be.on(this._element,Ksn,e=>{if(e.key===Isn){if(this._config.keyboard){this.hide();return}be.trigger(this._element,phe)}})}static jQueryInterface(e){return this.each(function(){const n=$m.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}be.on(document,Usn,qsn,function(t){const e=mt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Lm(this))return;be.one(e,TVe,()=>{Gv(this)&&this.focus()});const n=mt.findOne(vVe);n&&n!==e&&$m.getInstance(n).hide(),$m.getOrCreateInstance(e).toggle(this)});be.on(window,Osn,()=>{for(const t of mt.find(vVe))$m.getOrCreateInstance(t).show()});be.on(window,jsn,()=>{for(const t of mt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&$m.getOrCreateInstance(t).hide()});wO($m);rl($m);const Ysn=/^aria-[\w-]*$/i,xVe={"*":["class","dir","id","lang","role",Ysn],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:[]},Xsn=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Qsn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Zsn=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?Xsn.has(n)?!!Qsn.test(t.nodeValue):!0:e.filter(o=>o instanceof RegExp).some(o=>o.test(n))};function ean(t,e,n){if(!t.length)return t;if(n&&typeof n=="function")return n(t);const o=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...o.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)Zsn(u,l)||i.removeAttribute(u.nodeName)}return o.body.innerHTML}const tan="TemplateFactory",nan={allowList:xVe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},oan={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ran={entry:"(string|element|function|null)",selector:"(string|element)"};class ian extends Ck{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return nan}static get DefaultType(){return oan}static get NAME(){return tan}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 n=e.children[0],o=this._resolvePossibleFunction(this._config.extraClass);return o&&n.classList.add(...o.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[n,o]of Object.entries(e))super._typeCheckConfig({selector:n,entry:o},ran)}_setContent(e,n,o){const r=mt.findOne(o,e);if(r){if(n=this._resolvePossibleFunction(n),!n){r.remove();return}if(sd(n)){this._putElementInTemplate(Bm(n),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(n);return}r.textContent=n}}_maybeSanitize(e){return this._config.sanitize?ean(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Yi(e,[void 0,this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const san="tooltip",aan=new Set(["sanitize","allowList","sanitizeFn"]),dH="fade",lan="modal",eR="show",uan=".tooltip-inner",ghe=`.${lan}`,Che="hide.bs.modal",tT="hover",hH="focus",mH="click",can="manual",dan="hide",han="hidden",man="show",fan="shown",pan="inserted",gan="click",Can="focusin",yan="focusout",ban="mouseenter",van="mouseleave",Tan={AUTO:"auto",TOP:"top",RIGHT:Ya()?"left":"right",BOTTOM:"bottom",LEFT:Ya()?"right":"left"},xan={allowList:xVe,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"},Fan={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"};class Xv extends Jl{constructor(e,n){if(typeof G$e>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,n),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 xan}static get DefaultType(){return Fan}static get NAME(){return san}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),be.off(this._element.closest(ghe),Che,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=be.trigger(this._element,this.constructor.eventName(man)),n=(Q$e(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!n)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(o),be.trigger(this._element,this.constructor.eventName(pan))),this._popper=this._createPopper(o),o.classList.add(eR),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))be.on(s,"mouseover",q$);const i=()=>{be.trigger(this._element,this.constructor.eventName(fan)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||be.trigger(this._element,this.constructor.eventName(dan)).defaultPrevented)return;if(this._getTipElement().classList.remove(eR),"ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))be.off(n,"mouseover",q$);this._activeTrigger[mH]=!1,this._activeTrigger[hH]=!1,this._activeTrigger[tT]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),be.trigger(this._element,this.constructor.eventName(han)))};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 n=this._getTemplateFactory(e).toHtml();if(!n)return null;n.classList.remove(dH,eR),n.classList.add(`bs-${this.constructor.NAME}-auto`);const o=crn(this.constructor.NAME).toString();return n.setAttribute("id",o),this._isAnimated()&&n.classList.add(dH),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new ian({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[uan]: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(dH)}_isShown(){return this.tip&&this.tip.classList.contains(eR)}_createPopper(e){const n=Yi(this._config.placement,[this,e,this._element]),o=Tan[n.toUpperCase()];return fG(this._element,e,this._getPopperConfig(o))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_resolvePossibleFunction(e){return Yi(e,[this._element,this._element])}_getPopperConfig(e){const n={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:o=>{this._getTipElement().setAttribute("data-popper-placement",o.state.placement)}}]};return{...n,...Yi(this._config.popperConfig,[void 0,n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")be.on(this._element,this.constructor.eventName(gan),this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[mH]=!(r._isShown()&&r._activeTrigger[mH]),r.toggle()});else if(n!==can){const o=n===tT?this.constructor.eventName(ban):this.constructor.eventName(Can),r=n===tT?this.constructor.eventName(van):this.constructor.eventName(yan);be.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?hH:tT]=!0,s._enter()}),be.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?hH:tT]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},be.on(this._element.closest(ghe),Che,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,n){clearTimeout(this._timeout),this._timeout=setTimeout(e,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const n=ad.getDataAttributes(this._element);for(const o of Object.keys(n))aan.has(o)&&delete n[o];return e={...n,...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:Bm(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[n,o]of Object.entries(this._config))this.constructor.Default[n]!==o&&(e[n]=o);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 n=Xv.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}rl(Xv);const wan="popover",San=".popover-header",kan=".popover-body",Ean={...Xv.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"},_an={...Xv.DefaultType,content:"(null|string|element|function)"};class yG extends Xv{static get Default(){return Ean}static get DefaultType(){return _an}static get NAME(){return wan}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[San]:this._getTitle(),[kan]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=yG.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}rl(yG);const Ran="scrollspy",Dan="bs.scrollspy",bG=`.${Dan}`,Aan=".data-api",Nan=`activate${bG}`,yhe=`click${bG}`,Ban=`load${bG}${Aan}`,Lan="dropdown-item",my="active",$an='[data-bs-spy="scroll"]',fH="[href]",Van=".nav, .list-group",bhe=".nav-link",Man=".nav-item",Oan=".list-group-item",Ian=`${bhe}, ${Man} > ${bhe}, ${Oan}`,Pan=".dropdown",Wan=".dropdown-toggle",Han={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},zan={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};let FVe=class wVe extends Jl{constructor(e,n){super(e,n),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 Han}static get DefaultType(){return zan}static get NAME(){return Ran}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=Bm(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(n=>Number.parseFloat(n))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(be.off(this._config.target,yhe),be.on(this._config.target,yhe,fH,e=>{const n=this._observableSections.get(e.target.hash);if(n){e.preventDefault();const o=this._rootElement||window,r=n.offsetTop-this._element.offsetTop;if(o.scrollTo){o.scrollTo({top:r,behavior:"smooth"});return}o.scrollTop=r}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),e)}_observerCallback(e){const n=s=>this._targetLinks.get(`#${s.target.id}`),o=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(n(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(n(s));continue}const a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(o(s),!r)return;continue}!i&&!a&&o(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=mt.find(fH,this._config.target);for(const n of e){if(!n.hash||Lm(n))continue;const o=mt.findOne(decodeURI(n.hash),this._element);Gv(o)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,o))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(my),this._activateParents(e),be.trigger(this._element,Nan,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(Lan)){mt.findOne(Wan,e.closest(Pan)).classList.add(my);return}for(const n of mt.parents(e,Van))for(const o of mt.prev(n,Ian))o.classList.add(my)}_clearActiveClass(e){e.classList.remove(my);const n=mt.find(`${fH}.${my}`,e);for(const o of n)o.classList.remove(my)}static jQueryInterface(e){return this.each(function(){const n=wVe.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}};be.on(window,Ban,()=>{for(const t of mt.find($an))FVe.getOrCreateInstance(t)});rl(FVe);const jan="tab",Uan="bs.tab",RC=`.${Uan}`,Kan=`hide${RC}`,qan=`hidden${RC}`,Jan=`show${RC}`,Gan=`shown${RC}`,Yan=`click${RC}`,Xan=`keydown${RC}`,Qan=`load${RC}`,Zan="ArrowLeft",vhe="ArrowRight",eln="ArrowUp",The="ArrowDown",pH="Home",xhe="End",vp="active",Fhe="fade",gH="show",tln="dropdown",SVe=".dropdown-toggle",nln=".dropdown-menu",CH=`:not(${SVe})`,oln='.list-group, .nav, [role="tablist"]',rln=".nav-item, .list-group-item",iln=`.nav-link${CH}, .list-group-item${CH}, [role="tab"]${CH}`,kVe='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',yH=`${iln}, ${kVe}`,sln=`.${vp}[data-bs-toggle="tab"], .${vp}[data-bs-toggle="pill"], .${vp}[data-bs-toggle="list"]`;class cv extends Jl{constructor(e){super(e),this._parent=this._element.closest(oln),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),be.on(this._element,Xan,n=>this._keydown(n)))}static get NAME(){return jan}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),o=n?be.trigger(n,Kan,{relatedTarget:e}):null;be.trigger(e,Jan,{relatedTarget:n}).defaultPrevented||o&&o.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(vp),this._activate(mt.getElementFromSelector(e));const o=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(gH);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),be.trigger(e,Gan,{relatedTarget:n})};this._queueCallback(o,e,e.classList.contains(Fhe))}_deactivate(e,n){if(!e)return;e.classList.remove(vp),e.blur(),this._deactivate(mt.getElementFromSelector(e));const o=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(gH);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),be.trigger(e,qan,{relatedTarget:n})};this._queueCallback(o,e,e.classList.contains(Fhe))}_keydown(e){if(![Zan,vhe,eln,The,pH,xhe].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=this._getChildren().filter(r=>!Lm(r));let o;if([pH,xhe].includes(e.key))o=n[e.key===pH?0:n.length-1];else{const r=[vhe,The].includes(e.key);o=pG(n,e.target,r,!0)}o&&(o.focus({preventScroll:!0}),cv.getOrCreateInstance(o).show())}_getChildren(){return mt.find(yH,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,n){this._setAttributeIfNotExists(e,"role","tablist");for(const o of n)this._setInitialAttributesOnChild(o)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const n=this._elemIsActive(e),o=this._getOuterElement(e);e.setAttribute("aria-selected",n),o!==e&&this._setAttributeIfNotExists(o,"role","presentation"),n||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const n=mt.getElementFromSelector(e);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,n){const o=this._getOuterElement(e);if(!o.classList.contains(tln))return;const r=(i,s)=>{const a=mt.findOne(i,o);a&&a.classList.toggle(s,n)};r(SVe,vp),r(nln,gH),o.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,o){e.hasAttribute(n)||e.setAttribute(n,o)}_elemIsActive(e){return e.classList.contains(vp)}_getInnerElement(e){return e.matches(yH)?e:mt.findOne(yH,e)}_getOuterElement(e){return e.closest(rln)||e}static jQueryInterface(e){return this.each(function(){const n=cv.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}be.on(document,Yan,kVe,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!Lm(this)&&cv.getOrCreateInstance(this).show()});be.on(window,Qan,()=>{for(const t of mt.find(sln))cv.getOrCreateInstance(t)});rl(cv);const aln="toast",lln="bs.toast",kf=`.${lln}`,uln=`mouseover${kf}`,cln=`mouseout${kf}`,dln=`focusin${kf}`,hln=`focusout${kf}`,mln=`hide${kf}`,fln=`hidden${kf}`,pln=`show${kf}`,gln=`shown${kf}`,Cln="fade",whe="hide",tR="show",nR="showing",yln={animation:"boolean",autohide:"boolean",delay:"number"},bln={animation:!0,autohide:!0,delay:5e3};class EO extends Jl{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return bln}static get DefaultType(){return yln}static get NAME(){return aln}show(){if(be.trigger(this._element,pln).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Cln);const e=()=>{this._element.classList.remove(nR),be.trigger(this._element,gln),this._maybeScheduleHide()};this._element.classList.remove(whe),gk(this._element),this._element.classList.add(tR,nR),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||be.trigger(this._element,mln).defaultPrevented)return;const e=()=>{this._element.classList.add(whe),this._element.classList.remove(nR,tR),be.trigger(this._element,fln)};this._element.classList.add(nR),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(tR),super.dispose()}isShown(){return this._element.classList.contains(tR)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const o=e.relatedTarget;this._element===o||this._element.contains(o)||this._maybeScheduleHide()}_setListeners(){be.on(this._element,uln,e=>this._onInteraction(e,!0)),be.on(this._element,cln,e=>this._onInteraction(e,!1)),be.on(this._element,dln,e=>this._onInteraction(e,!0)),be.on(this._element,hln,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=EO.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}wO(EO);rl(EO);const vln=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"];Wd.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:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").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})}}}});Wd.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()}}});Wd.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()}}});Wd.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:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").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})}}}});Wd.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:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").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})}}}});Wd.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",Ys(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:n,to:o}=e.selection,r=e.doc.textBetween(n,o," ");return e.doc.nodeAt(n)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:n,to:n+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}});Wd.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:n,to:o,$from:r}=e.selection;return e.doc.textBetween(n,o," ").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=n=>n.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=n=>n.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:n})},"Mod-u":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:n})},"Mod-U":()=>{const n=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:n})}}}});Dn.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(n=>n.trim()).map(n=>n.replace(/^['"]|['"]$/g,"")).map(n=>n.replace(/ /g,""));return vln.find(n=>e.includes(n))||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 Tln=t=>new Promise((e,n)=>{const o=new Image;o.onload=()=>{e({width:o.naturalWidth,height:o.naturalHeight})},o.onerror=n,o.src=t});ic.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",Ys(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[gtn({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,n,o]=t;return{src:n,alt:e,title:o}}})]},addProseMirrorPlugins(){return[new So({view:t=>((async()=>{const{state:e,dispatch:n}=t;e.doc.descendants((o,r)=>{if(o.type.name===this.name){const{src:i,width:s,height:a}=o.attrs;i&&(!s||!a)&&Tln(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...o.attrs,width:l.width,height:l.height});n(u)})}})})(),{})})]}});yO();const xln=t=>{let e={};return n=>UYt(n).Match({RepurchaseProductList:({StockSource:o})=>JP({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSampleProductsForPreviewHttpClient:t.listExpressionDataSourceBffClient.postGetSampleProductsForPreview}),RelatedProductsForRepurchaseProductList:({StockSource:o})=>JP({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSampleProductsForPreviewHttpClient:t.listExpressionDataSourceBffClient.postGetSampleProductsForPreview}),AlternativeProductsForRepurchaseProductList:({StockSource:o})=>JP({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSampleProductsForPreviewHttpClient:t.listExpressionDataSourceBffClient.postGetSampleProductsForPreview}),ProductList:({ProductIds:o,StockSource:r})=>gLt({partnerId:t.partnerId,productIDs:o,stockId:hl({stockSource:r,customerStockId:t.customerStockId}),productCache:e,getProductsByIDsHttpClient:t.listExpressionDataSourceBffClient.postGetProductsByIds}),RelatedProductsFor:({ProductIds:o,StockSource:r})=>CLt({partnerId:t.partnerId,productIDs:o,stockId:hl({stockSource:r,customerStockId:t.customerStockId}),getRelatedProducts:t.listExpressionDataSourceBffClient.postGetRelatedRecommendations}),AlternativeProductsFor:({ProductIds:o,StockSource:r})=>yLt({partnerId:t.partnerId,productIDs:o,stockId:hl({stockSource:r,customerStockId:t.customerStockId}),getAlternativeProductsHttpClient:t.listExpressionDataSourceBffClient.postGetAlternativeRecommendations}),PopularProductsInCategories:({CategoryIds:o,StockSource:r})=>bLt({partnerId:t.partnerId,categoryIds:o,stockId:hl({stockSource:r,customerStockId:t.customerStockId}),getPopularProductsInCategoriesHttpClient:t.listExpressionDataSourceBffClient.postGetPopularInCategoriesRecommendations}),Popular:({StockSource:o})=>Ext({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetPopularRecommendations}),Latest:({StockSource:o})=>vLt({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getLatestProductsHttpClient:t.listExpressionDataSourceBffClient.postGetLatestRecommendations}),SaleByPopular:({StockSource:o})=>TLt({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSaleByPopularProductsHttpClient:t.listExpressionDataSourceBffClient.postGetSaleByPopularRecommendations}),SaleByLatest:({StockSource:o})=>xLt({partnerId:t.partnerId,stockId:hl({stockSource:o,customerStockId:t.customerStockId}),getSaleByLatestProductsHttpClient:t.listExpressionDataSourceBffClient.postGetSaleByLatestRecommendations})})},Fln=()=>()=>Promise.resolve(0),wln=t=>{const e=t.contactCustomData;return n=>jYt(n.stringExpressionDataSource).Match({StringFromContactCustomData:o=>Promise.resolve(e[o.FieldName]),StringFromContactCustomDataWithFallback:o=>Promise.resolve(o.FieldName in e&&typeof e[o.FieldName]=="string"?e[o.FieldName]:o.FallbackValue),ProductImageUrlBuilderExpression:o=>t.productImageUrlBuilderExpressionEvaluator({expression:o,context:n.context}),NextCouponFromBatch:()=>Promise.resolve("Coupon")})};var vc={},She;function Sln(){if(She)return vc;She=1;var t=vc&&vc.__awaiter||function(E,A,N,I){function M($){return $ instanceof N?$:new N(function(H){H($)})}return new(N||(N=Promise))(function($,H){function ke(K){try{ve(I.next(K))}catch(Pe){H(Pe)}}function Oe(K){try{ve(I.throw(K))}catch(Pe){H(Pe)}}function ve(K){K.done?$(K.value):M(K.value).then(ke,Oe)}ve((I=I.apply(E,A||[])).next())})},e=vc&&vc.__generator||function(E,A){var N={label:0,sent:function(){if($[0]&1)throw $[1];return $[1]},trys:[],ops:[]},I,M,$,H=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return H.next=ke(0),H.throw=ke(1),H.return=ke(2),typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function ke(ve){return function(K){return Oe([ve,K])}}function Oe(ve){if(I)throw new TypeError("Generator is already executing.");for(;H&&(H=0,ve[0]&&(N=0)),N;)try{if(I=1,M&&($=ve[0]&2?M.return:ve[0]?M.throw||(($=M.return)&&$.call(M),0):M.next)&&!($=$.call(M,ve[1])).done)return $;switch(M=0,$&&(ve=[ve[0]&2,$.value]),ve[0]){case 0:case 1:$=ve;break;case 4:return N.label++,{value:ve[1],done:!1};case 5:N.label++,M=ve[1],ve=[0];continue;case 7:ve=N.ops.pop(),N.trys.pop();continue;default:if($=N.trys,!($=$.length>0&&$[$.length-1])&&(ve[0]===6||ve[0]===2)){N=0;continue}if(ve[0]===3&&(!$||ve[1]>$[0]&&ve[1]<$[3])){N.label=ve[1];break}if(ve[0]===6&&N.label<$[1]){N.label=$[1],$=ve;break}if($&&N.label<$[2]){N.label=$[2],N.ops.push(ve);break}$[2]&&N.ops.pop(),N.trys.pop();continue}ve=A.call(E,N)}catch(K){ve=[6,K],M=0}finally{I=$=0}if(ve[0]&5)throw ve[1];return{value:ve[0]?ve[1]:void 0,done:!0}}};Object.defineProperty(vc,"__esModule",{value:!0}),vc.createApi=void 0;var n=function(E,A){return function(N){return E(N,A)}},o=function(E){return{products:E.products.map(function(A){return i(A)})}},r=function(E){return{products:E.products.map(function(A){return i(A)})}},i=function(E){return{internalId:E.internalId,externalId:E.externalId,name:E.name,description:E.description,vendor:E.vendor?E.vendor:void 0,price:E.price,oldPrice:E.oldPrice,discountPercentage:E.discountPercentage?E.discountPercentage:void 0,pictureUrl:E.pictureUrl,url:E.url,parameters:E.parameters.map(function(A){return p(A)})}},s=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},a=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},l=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},u=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},c=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},d=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},h=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},m=function(E){return{recommendations:E.recommendations.map(function(A){return f(A)})}},f=function(E){return{internalProductId:E.internalProductId,externalProductId:E.externalProductId,name:E.name,description:E.description,vendor:E.vendor?E.vendor:void 0,price:E.price,oldPrice:E.oldPrice,discountPercentage:E.discountPercentage?E.discountPercentage:void 0,pictureUrl:E.pictureUrl,url:E.url,parameters:E.parameters.map(function(A){return p(A)})}},p=function(E){return{name:E.name,value:E.value}};function g(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getProductsByIds/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:o(M.body)}];throw new Error("Unknown response")}})})}function y(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getPopularRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:s(M.body)}];throw new Error("Unknown response")}})})}function b(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getPopularInCategoriesRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:a(M.body)}];throw new Error("Unknown response")}})})}function F(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getRelatedRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:l(M.body)}];throw new Error("Unknown response")}})})}function v(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getAlternativeRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:u(M.body)}];throw new Error("Unknown response")}})})}function T(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getSearchRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:c(M.body)}];throw new Error("Unknown response")}})})}function S(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getLatestRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:d(M.body)}];throw new Error("Unknown response")}})})}function k(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getSaleByPopularRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:h(M.body)}];throw new Error("Unknown response")}})})}function R(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getSaleByLatestRecommendations/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:m(M.body)}];throw new Error("Unknown response")}})})}function D(E,A){return t(this,void 0,void 0,function(){var N,I,M;return e(this,function($){switch($.label){case 0:return N="wysiwyg/bff/v2/listExpressionDataSource/getSampleProductsForPreview/",I=new URLSearchParams,[4,A({path:N,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E.body),query:I.toString()})];case 1:if(M=$.sent(),M.status===200)return[2,{status:200,body:r(M.body)}];throw new Error("Unknown response")}})})}var V=function(E){return{postGetProductsByIds:n(g,E),postGetPopularRecommendations:n(y,E),postGetPopularInCategoriesRecommendations:n(b,E),postGetRelatedRecommendations:n(F,E),postGetAlternativeRecommendations:n(v,E),postGetSearchRecommendations:n(T,E),postGetLatestRecommendations:n(S,E),postGetSaleByPopularRecommendations:n(k,E),postGetSaleByLatestRecommendations:n(R,E),postGetSampleProductsForPreview:n(D,E)}};return vc.createApi=V,vc}var kln=Sln();const EVe="#app",ls=document.querySelector(EVe),mo={partnerId:ls.getAttribute("data-partner-id"),wysiwygTemplateEditorBffBaseUrl:ls.getAttribute("data-wysiwyg-template-editor-bff-base-url"),wysiwygBffProxyBaseUrl:ls.getAttribute("data-wysiwyg-bff-proxy-base-url"),antiForgeryHeaderTokenName:ls.getAttribute("data-anti-forgery-header-token-name"),antiForgeryHeaderTokenValue:ls.getAttribute("data-anti-forgery-header-token-value"),antiForgeryFormTokenName:ls.getAttribute("data-anti-forgery-form-token-name"),antiForgeryFormTokenValue:ls.getAttribute("data-anti-forgery-form-token-value"),createEmailTemplateSubmitUrl:ls.getAttribute("data-create-email-template-submit-url"),initialEmailTemplateJson:ls.getAttribute("data-initial-repurchase-template"),repurchaseFavoritesTemplates:JSON.parse(ls.getAttribute("data-repurchase-favorites-templates")),commonFavoritesTemplates:JSON.parse(ls.getAttribute("data-common-favorites-templates")),exitLink:ls.getAttribute("data-exit-link"),localeKey:ls.getAttribute("data-locale-key")||"en"},Eln=t=>mLt({baseUrl:t.baseUrl,antiForgeryTokenHeaderName:mo.antiForgeryHeaderTokenName,antiForgeryTokenValue:mo.antiForgeryHeaderTokenValue}),_ln=kln.createApi(Eln({baseUrl:mo.wysiwygBffProxyBaseUrl})),_Ve=t=>{const e=new FormData;e.append(mo.antiForgeryFormTokenName,mo.antiForgeryFormTokenValue),e.append("template",JSON.stringify(t.template));const n=c8e({method:"POST",action:mo.createEmailTemplateSubmitUrl,formData:e});document.body.appendChild(n),n.submit()},Rln={},Dln={BatchId:""},bH=t=>{const e=xln({partnerId:mo.partnerId,listExpressionDataSourceBffClient:_ln,customerStockId:void 0}),n=J7e({listExpressionDataSourceEvaluator:e}),o=Fln(),r=u8e({listExpressionEvaluator:n,numberExpressionDataSourceEvaluator:o}),i=Z7e({listExpressionEvaluator:n,numberExpressionEvaluator:r,stringExpressionDataSourceEvaluatorFactory:()=>wln({productImageUrlBuilderExpressionEvaluator:VYe({partnerId:mo.partnerId,numberExpressionEvaluator:r}),contactCustomData:Rln,nextCouponFromBatch:Dln})}),s=U7e({listExpressionEvaluator:n,numberExpressionEvaluator:r,stringExpressionEvaluator:i,dataStructBuilderExpressionEvaluatorFactory:u=>SQ({expressionEvaluator:u})}),a=SQ({expressionEvaluator:s}),l=m4t({localeKey:mo.localeKey});return kxt({template:t.template,templateName:t.templateName,emailTemplatePreviewTileDeps:pLt({localeKey:mo.localeKey,dataSourceFieldNameDelegate:({dataSource:u})=>Cv(u).Match({StringFromContactCustomData:c=>c.FieldName,StringFromContactCustomDataWithFallback:c=>c.FallbackValue,ProductImageUrlBuilderExpression:()=>"ImageResizer",NextCouponFromBatch:()=>"Coupon"}),richTextToolbarPlugins:[FLt({richTextToolbarPluginComponent:V5t,deps:FYe({localeKey:mo.localeKey,stringExpressionBuilderPlugin:l})})],listExpressionEvaluator:n,numberExpressionEvaluator:r,stringExpressionEvaluator:i,dataStructExpressionEvaluator:a,expressionEvaluator:s,stringExpressionBuilderPlugin:l}),onFavoriteTemplateSelected:()=>{_Ve({template:t.template})}})},khe=mo.localeKey==="ru"?p4t:f4t,RVe=XWe(xYe,{onInitialTemplateSelected:()=>{_Ve({template:mo.initialEmailTemplateJson.length?JSON.parse(mo.initialEmailTemplateJson):khe})},deps:hLt({localeKey:mo.localeKey,emailTemplatePreviews:{custom:[...mo.commonFavoritesTemplates.map(t=>({templateName:t.favoriteTemplateName,previewTileComponent:bH({template:JSON.parse(t.templateJson),templateName:t.favoriteTemplateName})})),...mo.repurchaseFavoritesTemplates.map(t=>({templateName:t.favoriteTemplateName,previewTileComponent:bH({template:JSON.parse(t.templateJson),templateName:t.favoriteTemplateName})}))],default:[...LYe(mo.localeKey).map(t=>({templateName:t.favoriteTemplateName,previewTileComponent:bH({template:t.defaultTemplate,templateName:t.favoriteTemplateName})}))]},initialEmailTemplate:mo.initialEmailTemplateJson.length?JSON.parse(mo.initialEmailTemplateJson):khe,exitLink:mo.exitLink})});RVe.use(fpe({theme:!1,directives:{ClickOutside:Gze}}));RVe.mount(EVe)});export default Aln();
|
|
379
|
-
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED