@retailrocketgroup/retailrocket-edit.abandoned-view-na-vue-email-template-render 6.0.388781 → 6.0.388803
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 +1 -1
- package/package.json +1 -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 6376ms.
|
|
16
16
|
|
|
17
17
|
dist/index.html 7.45 kB │ gzip: 2.03 kB
|
|
18
18
|
dist/assets/index.css 175.28 kB │ gzip: 27.52 kB
|
|
19
|
-
dist/assets/index.js 3,963.
|
|
19
|
+
dist/assets/index.js 3,963.48 kB │ gzip: 1,034.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 19.
|
|
25
|
+
✓ built in 19.37s
|
package/dist/assets/index.js
CHANGED
|
@@ -190,7 +190,7 @@ ${h.slice(u+2)}`,d+=1;else break}e.push({indent:u,number:parseInt(a,10),content:
|
|
|
190
190
|
`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const o=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return o!==void 0?o:-1},tokenize(t,e,o){const n=i=>{const s=A9(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:a[3].toLowerCase()==="x"}),createToken:(a,l)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:o.inlineTokens(a.mainContent),nestedTokens:l}),customNestedParser:n},o);return s?[{type:"taskList",raw:s.raw,items:s.items}]:o.blockTokens(i)},r=A9(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,s)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:o.inlineTokens(i.mainContent),nestedTokens:s}),customNestedParser:n},o);if(r)return{type:"taskList",raw:r.raw,items:r.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});Wo.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(tWt.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(oWt.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(iWt.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(cWt.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(mWt.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(hWt.configure(this.options.taskList)),t}});Sd.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",xa(this.options.HTMLAttributes,t)]},renderText(){return`
|
|
191
191
|
`},renderMarkdown:()=>`
|
|
192
192
|
`,parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:o,editor:n})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=o;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=n.extensionManager,l=i||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&s){const d=l.filter(m=>a.includes(m.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}});var Pae={},Mae={},Oae={},Wae;function _G(){return Wae||(Wae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isNone=t.isSome=t.None=t.Some=t.OptionType=void 0,t.OptionType={Some:Symbol(":some"),None:Symbol(":none")};function e(s){return typeof s>"u"?n():o(s)}t.Some=e,t.None=n();function o(s){return{type:t.OptionType.Some,isSome(){return!0},isNone(){return!1},match(a){return a.some(s)},map(a){return o(a(s))},andThen(a){return a(s)},or(a){return this},and(a){return a},unwrapOr(a){return s},unwrap(){return s}}}function n(){return{type:t.OptionType.None,isSome(){return!1},isNone(){return!0},match(s){const{none:a}=s;return typeof a=="function"?a():a},map(s){return n()},andThen(s){return n()},or(s){return s},and(s){return n()},unwrapOr(s){if(s==null)throw new Error("Cannot call unwrapOr with a missing value.");return s},unwrap(){throw new ReferenceError("Trying to unwrap None.")}}}function r(s){return s.isSome()}t.isSome=r;function i(s){return s.isNone()}t.isNone=i})(Oae)),Oae}var Hae;function pWt(){return Hae||(Hae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isRight=t.isLeft=t.Right=t.Left=t.EitherType=void 0;const e=_G();t.EitherType={Left:Symbol(":left"),Right:Symbol(":right")};function o(s){return{type:t.EitherType.Left,isLeft(){return!0},isRight(){return!1},left(){return(0,e.Some)(s)},leftAndThen(a){return a(s)},right(){return e.None},rightAndThen(a){return o(s)},unwrap(){return s},unwrapLeft(){return s},unwrapLeftOr(a){return s},unwrapLeftOrElse(a){return s},unwrapRight(){throw new ReferenceError("Cannot unwrap Right value of Either.Left")},unwrapRightOr(a){return a},unwrapRightOrElse(a){return a(s)},match(a){return a.left(s)},map(a){return o(a(s))},mapLeft(a){return o(a(s))},mapRight(a){return o(s)}}}t.Left=o;function n(s){return{type:t.EitherType.Right,isLeft(){return!1},isRight(){return!0},left(){return e.None},leftAndThen(a){return n(s)},right(){return(0,e.Some)(s)},rightAndThen(a){return a(s)},unwrap(){return s},unwrapLeft(){throw new ReferenceError("Cannot unwrap Left value of Either.Right")},unwrapLeftOr(a){return a},unwrapLeftOrElse(a){return a(s)},unwrapRight(){return s},unwrapRightOr(a){return s},unwrapRightOrElse(a){return s},match(a){return a.right(s)},map(a){return n(a(s))},mapLeft(a){return n(s)},mapRight(a){return n(a(s))}}}t.Right=n;function r(s){return s.isLeft()}t.isLeft=r;function i(s){return s.isRight()}t.isRight=i})(Mae)),Mae}var zae={},jae;function fWt(){return jae||(jae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.isErr=t.isOk=t.Err=t.Ok=t.ResultType=void 0;const e=_G();t.ResultType={Ok:Symbol(":ok"),Err:Symbol(":err")};function o(s){return{type:t.ResultType.Ok,isOk(){return!0},isErr(){return!1},ok(){return(0,e.Some)(s)},err(){return e.None},unwrap(){return s},unwrapOr(a){return s},unwrapOrElse(a){return s},unwrapErr(){throw new ReferenceError("Cannot unwrap Err value of Result.Ok")},match(a){return a.ok(s)},map(a){return o(a(s))},mapErr(a){return o(s)},andThen(a){return a(s)},orElse(a){return o(s)}}}t.Ok=o;function n(s){return{type:t.ResultType.Err,isOk(){return!1},isErr(){return!0},ok(){return e.None},err(){return(0,e.Some)(s)},unwrap(){throw new ReferenceError("Cannot unwrap Ok value of Result.Err")},unwrapOr(a){return a},unwrapOrElse(a){return a(s)},unwrapErr(){return s},match(a){return a.err(s)},map(a){return n(s)},mapErr(a){return n(a(s))},andThen(a){return n(s)},orElse(a){return a(s)}}}t.Err=n;function r(s){return s.isOk()}t.isOk=r;function i(s){return s.isErr()}t.isErr=i})(zae)),zae}var Kae;function gWt(){return Kae||(Kae=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Ok=t.isOk=t.isErr=t.Err=t.Some=t.None=t.isSome=t.isNone=t.Right=t.Left=t.isRight=t.isLeft=void 0;var e=pWt();Object.defineProperty(t,"isLeft",{enumerable:!0,get:function(){return e.isLeft}}),Object.defineProperty(t,"isRight",{enumerable:!0,get:function(){return e.isRight}}),Object.defineProperty(t,"Left",{enumerable:!0,get:function(){return e.Left}}),Object.defineProperty(t,"Right",{enumerable:!0,get:function(){return e.Right}});var o=_G();Object.defineProperty(t,"isNone",{enumerable:!0,get:function(){return o.isNone}}),Object.defineProperty(t,"isSome",{enumerable:!0,get:function(){return o.isSome}}),Object.defineProperty(t,"None",{enumerable:!0,get:function(){return o.None}}),Object.defineProperty(t,"Some",{enumerable:!0,get:function(){return o.Some}});var n=fWt();Object.defineProperty(t,"Err",{enumerable:!0,get:function(){return n.Err}}),Object.defineProperty(t,"isErr",{enumerable:!0,get:function(){return n.isErr}}),Object.defineProperty(t,"isOk",{enumerable:!0,get:function(){return n.isOk}}),Object.defineProperty(t,"Ok",{enumerable:!0,get:function(){return n.Ok}})})(Pae)),Pae}gWt();function mb(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(t==null||t==="")return;const o=Number(t);return isNaN(o)?String(t):isFinite(o)?`${o}${e}`:void 0}function Uae(t){let e;return t!==null&&typeof t=="object"&&((e=Object.getPrototypeOf(t))===Object.prototype||e===null)}function q4(t,e){return e.every(o=>t.hasOwnProperty(o))}function yWt(t,e){const o={};for(const n of e)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o}function CWt(t){return t==null?[]:Array.isArray(t)?t:[t]}function qae(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+o.repeat(Math.max(0,e-t.length))}function bWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const o=[];let n=0;for(;n<t.length;)o.push(t.substr(n,e)),n+=e;return o}function _Le(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n={};for(const r in t)n[r]=t[r];for(const r in e){const i=t[r],s=e[r];if(Uae(i)&&Uae(s)){n[r]=_Le(i,s,o);continue}if(o&&Array.isArray(i)&&Array.isArray(s)){n[r]=o(i,s);continue}n[r]=s}return n}function BF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(BF.cache.has(t))return BF.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return BF.cache.set(t,e),e}BF.cache=new Map;function vWt(t){const e=ve({});tr(()=>{const n=t();for(const r in n)e[r]=n[r]},{flush:"sync"});const o={};for(const n in e)o[n]=Ye(()=>e[n]);return o}const hb=2.4,Jae=.2126729,Gae=.7151522,Yae=.072175,SWt=.55,wWt=.58,TWt=.57,xWt=.62,W_=.03,Zae=1.45,FWt=5e-4,kWt=1.25,LWt=1.25,Xae=.078,Qae=12.82051282051282,H_=.06,ele=.001;function tle(t,e){const o=(t.r/255)**hb,n=(t.g/255)**hb,r=(t.b/255)**hb,i=(e.r/255)**hb,s=(e.g/255)**hb,a=(e.b/255)**hb;let l=o*Jae+n*Gae+r*Yae,u=i*Jae+s*Gae+a*Yae;if(l<=W_&&(l+=(W_-l)**Zae),u<=W_&&(u+=(W_-u)**Zae),Math.abs(u-l)<FWt)return 0;let c;if(u>l){const d=(u**SWt-l**wWt)*kWt;c=d<ele?0:d<Xae?d-d*Qae*H_:d-H_}else{const d=(u**xWt-l**TWt)*LWt;c=d>-ele?0:d>-Xae?d-d*Qae*H_:d+H_}return c*100}function K9(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function EWt(t){return K9(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const ole=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,_Wt={rgb:(t,e,o,n)=>({r:t,g:e,b:o,a:n}),rgba:(t,e,o,n)=>({r:t,g:e,b:o,a:n}),hsl:(t,e,o,n)=>nle({h:t,s:e,l:o,a:n}),hsla:(t,e,o,n)=>nle({h:t,s:e,l:o,a:n}),hsv:(t,e,o,n)=>CL({h:t,s:e,v:o,a:n}),hsva:(t,e,o,n)=>CL({h:t,s:e,v:o,a:n})};function px(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&ole.test(t)){const{groups:e}=t.match(ole),{fn:o,values:n}=e,r=n.split(/,\s*|\s*\/\s*|\s+/).map((i,s)=>i.endsWith("%")||s>0&&s<3&&["hsl","hsla","hsv","hsva"].includes(o)?parseFloat(i)/100:parseFloat(i));return _Wt[o](...r)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(o=>o+o).join(""):[6,8].includes(e.length)||void 0,BWt(e)}else if(typeof t=="object"){if(q4(t,["r","g","b"]))return t;if(q4(t,["h","s","l"]))return CL(BLe(t));if(q4(t,["h","s","v"]))return CL(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name}
|
|
193
|
-
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function CL(t){const{h:e,s:o,v:n,a:r}=t,i=a=>{const l=(a+e/60)%6;return n-n*o*Math.max(Math.min(l,4-l,1),0)},s=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:s[0],g:s[1],b:s[2],a:r}}function nle(t){return CL(BLe(t))}function BLe(t){const{h:e,s:o,l:n,a:r}=t,i=n+o*Math.min(n,1-n),s=i===0?0:2-2*n/i;return{h:e,s,v:i,a:r}}function BWt(t){t=DWt(t);let[e,o,n,r]=bWt(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:o,b:n,a:r}}function DWt(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=qae(qae(t,6),8,"F")),t}function $Wt(t){const e=Math.abs(tle(px(0),px(t)));return Math.abs(tle(px(16777215),px(t)))>Math.min(e,50)?"#fff":"#000"}function jE(t,e){return o=>Object.keys(t).reduce((n,r)=>{const i=typeof t[r]=="object"&&t[r]!=null&&!Array.isArray(t[r])?t[r]:{type:t[r]};return o&&r in o?n[r]={...i,default:o[r]}:n[r]=i,e&&!n[r].source&&(n[r].source=e),n},{})}function UP(t,e){const o=zs();if(!o)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return o}function RWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:UP("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const U9=Symbol.for("vuetify:defaults");function DLe(){const t=xo(U9);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function AWt(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[BF(e)]<"u")}function NWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:DLe();const n=UP("useDefaults");if(e=e??n.type.name??n.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const r=Q(()=>o.value?.[t._as??e]),i=new Proxy(t,{get(l,u){const c=Reflect.get(l,u);if(u==="class"||u==="style")return[r.value?.[u],c].filter(h=>h!=null);if(AWt(n.vnode,u))return c;const d=r.value?.[u];if(d!==void 0)return d;const m=o.value?.global?.[u];return m!==void 0?m:c}}),s=Yo();tr(()=>{if(r.value){const l=Object.entries(r.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function a(){const l=RWt(U9,n);er(U9,Q(()=>s.value?_Le(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function VWt(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=jE(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(o){return yWt(o,e)},t.props._as=String,t.setup=function(o,n){const r=DLe();if(!r.value)return t._setup(o,n);const{props:i,provideSubDefaults:s}=NWt(o,o._as??t.name,r),a=t._setup(i,n);return s(),a}}return t}function IWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?VWt:X)(e)}function PWt(t){const e=UP("useRender");e.render=t}function MWt(t){return vWt(()=>{const{class:e,style:o}=WWt(t);return{colorClasses:e,colorStyles:o}})}function OWt(t){const{colorClasses:e,colorStyles:o}=MWt(()=>({background:Sr(t)}));return{backgroundColorClasses:e,backgroundColorStyles:o}}function WWt(t){const e=Sr(t),o=[],n={};if(e.background)if(K9(e.background)){if(n.backgroundColor=e.background,!e.text&&EWt(e.background)){const r=px(e.background);if(r.a==null||r.a===1){const i=$Wt(r);n.color=i,n.caretColor=i}}}else o.push(`bg-${e.background}`);return e.text&&(K9(e.text)?(n.color=e.text,n.caretColor=e.text):o.push(`text-${e.text}`)),{class:o,style:n}}const HWt=jE({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function zWt(t){return{dimensionStyles:Q(()=>{const e={},o=mb(t.height),n=mb(t.maxHeight),r=mb(t.maxWidth),i=mb(t.minHeight),s=mb(t.minWidth),a=mb(t.width);return o!=null&&(e.height=o),n!=null&&(e.maxHeight=n),r!=null&&(e.maxWidth=r),i!=null&&(e.minHeight=i),s!=null&&(e.minWidth=s),a!=null&&(e.width=a),e})}}const jWt=jE({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function KWt(t){return{elevationClasses:Ye(()=>{const e=Vo(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const UWt=Symbol.for("vuetify:locale");function qWt(){const t=xo(UWt);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}const rle=Symbol.for("vuetify:theme"),JWt=jE({theme:String},"theme");function GWt(t){UP("provideTheme");const e=xo(rle,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=Ye(()=>t.theme??e.name.value),n=Ye(()=>e.themes.value[o.value]),r=Ye(()=>e.isDisabled?void 0:`${e.prefix}theme--${o.value}`),i={...e,name:o,current:n,themeClasses:r};return er(rle,i),i}const YWt={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 ZWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y("div",{class:U(["v-skeleton-loader__bone",`v-skeleton-loader__${t}`])},[e])}function ile(t){const[e,o]=t.split("@");return Array.from({length:o}).map(()=>qP(e))}function qP(t){let e=[];if(!t)return e;const o=YWt[t];if(t!==o){if(t.includes(","))return sle(t);if(t.includes("@"))return ile(t);o.includes(",")?e=sle(o):o.includes("@")?e=ile(o):o&&e.push(qP(o))}return[ZWt(t,e)]}function sle(t){return t.replace(/\s/g,"").split(",").map(qP)}const XWt=jE({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...HWt(),...jWt(),...JWt()},"VSkeletonLoader");IWt()({name:"VSkeletonLoader",inheritAttrs:!1,props:XWt(),setup(t,e){let{attrs:o,slots:n}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=OWt(()=>t.color),{dimensionStyles:s}=zWt(t),{elevationClasses:a}=KWt(t),{themeClasses:l}=GWt(t),{t:u}=qWt(),c=Q(()=>qP(CWt(t.type).join(",")));return PWt(()=>{const d=!n.default||t.loading,m=t.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(t.loadingText),role:"alert"};return d?y("div",pn({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},l.value,r.value,a.value],style:[i.value,s.value]},m,o),[c.value]):y(ce,null,[n.default?.()])}),{}}});var Wi="top",Fa="bottom",ka="right",Hi="left",JP="auto",tw=[Wi,Fa,ka,Hi],zC="start",Kv="end",$Le="clippingParents",BG="viewport",t1="popper",RLe="reference",q9=tw.reduce(function(t,e){return t.concat([e+"-"+zC,e+"-"+Kv])},[]),DG=[].concat(tw,[JP]).reduce(function(t,e){return t.concat([e,e+"-"+zC,e+"-"+Kv])},[]),ALe="beforeRead",NLe="read",VLe="afterRead",ILe="beforeMain",PLe="main",MLe="afterMain",OLe="beforeWrite",WLe="write",HLe="afterWrite",zLe=[ALe,NLe,VLe,ILe,PLe,MLe,OLe,WLe,HLe];function ld(t){return t?(t.nodeName||"").toLowerCase():null}function La(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function jC(t){var e=La(t).Element;return t instanceof e||t instanceof Element}function El(t){var e=La(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function $G(t){if(typeof ShadowRoot>"u")return!1;var e=La(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function QWt(t){var e=t.state;Object.keys(e.elements).forEach(function(o){var n=e.styles[o]||{},r=e.attributes[o]||{},i=e.elements[o];!El(i)||!ld(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(s){var a=r[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function eHt(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],i=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:o[n]),a=s.reduce(function(l,u){return l[u]="",l},{});!El(r)||!ld(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const RG={name:"applyStyles",enabled:!0,phase:"write",fn:QWt,effect:eHt,requires:["computeStyles"]};function Kc(t){return t.split("-")[0]}var Gy=Math.max,u3=Math.min,Uv=Math.round;function J9(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function jLe(){return!/^((?!chrome|android).)*safari/i.test(J9())}function qv(t,e,o){e===void 0&&(e=!1),o===void 0&&(o=!1);var n=t.getBoundingClientRect(),r=1,i=1;e&&El(t)&&(r=t.offsetWidth>0&&Uv(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Uv(n.height)/t.offsetHeight||1);var s=jC(t)?La(t):window,a=s.visualViewport,l=!jLe()&&o,u=(n.left+(l&&a?a.offsetLeft:0))/r,c=(n.top+(l&&a?a.offsetTop:0))/i,d=n.width/r,m=n.height/i;return{width:d,height:m,top:c,right:u+d,bottom:c+m,left:u,x:u,y:c}}function AG(t){var e=qv(t),o=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:n}}function KLe(t,e){var o=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(o&&$G(o)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function th(t){return La(t).getComputedStyle(t)}function tHt(t){return["table","td","th"].indexOf(ld(t))>=0}function og(t){return((jC(t)?t.ownerDocument:t.document)||window.document).documentElement}function GP(t){return ld(t)==="html"?t:t.assignedSlot||t.parentNode||($G(t)?t.host:null)||og(t)}function ale(t){return!El(t)||th(t).position==="fixed"?null:t.offsetParent}function oHt(t){var e=/firefox/i.test(J9()),o=/Trident/i.test(J9());if(o&&El(t)){var n=th(t);if(n.position==="fixed")return null}var r=GP(t);for($G(r)&&(r=r.host);El(r)&&["html","body"].indexOf(ld(r))<0;){var i=th(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 KE(t){for(var e=La(t),o=ale(t);o&&tHt(o)&&th(o).position==="static";)o=ale(o);return o&&(ld(o)==="html"||ld(o)==="body"&&th(o).position==="static")?e:o||oHt(t)||e}function NG(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function DF(t,e,o){return Gy(t,u3(e,o))}function nHt(t,e,o){var n=DF(t,e,o);return n>o?o:n}function ULe(){return{top:0,right:0,bottom:0,left:0}}function qLe(t){return Object.assign({},ULe(),t)}function JLe(t,e){return e.reduce(function(o,n){return o[n]=t,o},{})}var rHt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,qLe(typeof t!="number"?t:JLe(t,tw))};function iHt(t){var e,o=t.state,n=t.name,r=t.options,i=o.elements.arrow,s=o.modifiersData.popperOffsets,a=Kc(o.placement),l=NG(a),u=[Hi,ka].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=rHt(r.padding,o),m=AG(i),h=l==="y"?Wi:Hi,p=l==="y"?Fa:ka,f=o.rects.reference[c]+o.rects.reference[l]-s[l]-o.rects.popper[c],g=s[l]-o.rects.reference[l],b=KE(i),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=f/2-g/2,T=d[h],x=v-m[c]-d[p],F=v/2-m[c]/2+S,D=DF(T,F,x),N=l;o.modifiersData[n]=(e={},e[N]=D,e.centerOffset=D-F,e)}}function sHt(t){var e=t.state,o=t.options,n=o.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||KLe(e.elements.popper,r)&&(e.elements.arrow=r))}const GLe={name:"arrow",enabled:!0,phase:"main",fn:iHt,effect:sHt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jv(t){return t.split("-")[1]}var aHt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lHt(t,e){var o=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:Uv(o*r)/r||0,y:Uv(n*r)/r||0}}function lle(t){var e,o=t.popper,n=t.popperRect,r=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=t.isFixed,m=s.x,h=m===void 0?0:m,p=s.y,f=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:f}):{x:h,y:f};h=g.x,f=g.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),S=Hi,T=Wi,x=window;if(u){var F=KE(o),D="clientHeight",N="clientWidth";if(F===La(o)&&(F=og(o),th(F).position!=="static"&&a==="absolute"&&(D="scrollHeight",N="scrollWidth")),F=F,r===Wi||(r===Hi||r===ka)&&i===Kv){T=Fa;var R=d&&F===x&&x.visualViewport?x.visualViewport.height:F[D];f-=R-n.height,f*=l?1:-1}if(r===Hi||(r===Wi||r===Fa)&&i===Kv){S=ka;var P=d&&F===x&&x.visualViewport?x.visualViewport.width:F[N];h-=P-n.width,h*=l?1:-1}}var E=Object.assign({position:a},u&&aHt),L=c===!0?lHt({x:h,y:f},La(o)):{x:h,y:f};if(h=L.x,f=L.y,l){var A;return Object.assign({},E,(A={},A[T]=v?"0":"",A[S]=b?"0":"",A.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",A))}return Object.assign({},E,(e={},e[T]=v?f+"px":"",e[S]=b?h+"px":"",e.transform="",e))}function uHt(t){var e=t.state,o=t.options,n=o.gpuAcceleration,r=n===void 0?!0:n,i=o.adaptive,s=i===void 0?!0:i,a=o.roundOffsets,l=a===void 0?!0:a,u={placement:Kc(e.placement),variation:Jv(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,lle(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,lle(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const VG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uHt,data:{}};var z_={passive:!0};function cHt(t){var e=t.state,o=t.instance,n=t.options,r=n.scroll,i=r===void 0?!0:r,s=n.resize,a=s===void 0?!0:s,l=La(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",o.update,z_)}),a&&l.addEventListener("resize",o.update,z_),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",o.update,z_)}),a&&l.removeEventListener("resize",o.update,z_)}}const IG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cHt,data:{}};var dHt={left:"right",right:"left",bottom:"top",top:"bottom"};function i$(t){return t.replace(/left|right|bottom|top/g,function(e){return dHt[e]})}var mHt={start:"end",end:"start"};function ule(t){return t.replace(/start|end/g,function(e){return mHt[e]})}function PG(t){var e=La(t),o=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:o,scrollTop:n}}function MG(t){return qv(og(t)).left+PG(t).scrollLeft}function hHt(t,e){var o=La(t),n=og(t),r=o.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;var u=jLe();(u||!u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a+MG(t),y:l}}function pHt(t){var e,o=og(t),n=PG(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=Gy(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Gy(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+MG(t),l=-n.scrollTop;return th(r||o).direction==="rtl"&&(a+=Gy(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function OG(t){var e=th(t),o=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function YLe(t){return["html","body","#document"].indexOf(ld(t))>=0?t.ownerDocument.body:El(t)&&OG(t)?t:YLe(GP(t))}function $F(t,e){var o;e===void 0&&(e=[]);var n=YLe(t),r=n===((o=t.ownerDocument)==null?void 0:o.body),i=La(n),s=r?[i].concat(i.visualViewport||[],OG(n)?n:[]):n,a=e.concat(s);return r?a:a.concat($F(GP(s)))}function G9(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function fHt(t,e){var o=qv(t,!1,e==="fixed");return o.top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o}function cle(t,e,o){return e===BG?G9(hHt(t,o)):jC(e)?fHt(e,o):G9(pHt(og(t)))}function gHt(t){var e=$F(GP(t)),o=["absolute","fixed"].indexOf(th(t).position)>=0,n=o&&El(t)?KE(t):t;return jC(n)?e.filter(function(r){return jC(r)&&KLe(r,n)&&ld(r)!=="body"}):[]}function yHt(t,e,o,n){var r=e==="clippingParents"?gHt(t):[].concat(e),i=[].concat(r,[o]),s=i[0],a=i.reduce(function(l,u){var c=cle(t,u,n);return l.top=Gy(c.top,l.top),l.right=u3(c.right,l.right),l.bottom=u3(c.bottom,l.bottom),l.left=Gy(c.left,l.left),l},cle(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ZLe(t){var e=t.reference,o=t.element,n=t.placement,r=n?Kc(n):null,i=n?Jv(n):null,s=e.x+e.width/2-o.width/2,a=e.y+e.height/2-o.height/2,l;switch(r){case Wi:l={x:s,y:e.y-o.height};break;case Fa:l={x:s,y:e.y+e.height};break;case ka:l={x:e.x+e.width,y:a};break;case Hi:l={x:e.x-o.width,y:a};break;default:l={x:e.x,y:e.y}}var u=r?NG(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case zC:l[u]=l[u]-(e[c]/2-o[c]/2);break;case Kv:l[u]=l[u]+(e[c]/2-o[c]/2);break}}return l}function Gv(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=n===void 0?t.placement:n,i=o.strategy,s=i===void 0?t.strategy:i,a=o.boundary,l=a===void 0?$Le:a,u=o.rootBoundary,c=u===void 0?BG:u,d=o.elementContext,m=d===void 0?t1:d,h=o.altBoundary,p=h===void 0?!1:h,f=o.padding,g=f===void 0?0:f,b=qLe(typeof g!="number"?g:JLe(g,tw)),v=m===t1?RLe:t1,S=t.rects.popper,T=t.elements[p?v:m],x=yHt(jC(T)?T:T.contextElement||og(t.elements.popper),l,c,s),F=qv(t.elements.reference),D=ZLe({reference:F,element:S,placement:r}),N=G9(Object.assign({},S,D)),R=m===t1?N:F,P={top:x.top-R.top+b.top,bottom:R.bottom-x.bottom+b.bottom,left:x.left-R.left+b.left,right:R.right-x.right+b.right},E=t.modifiersData.offset;if(m===t1&&E){var L=E[r];Object.keys(P).forEach(function(A){var I=[ka,Fa].indexOf(A)>=0?1:-1,W=[Wi,Fa].indexOf(A)>=0?"y":"x";P[A]+=L[W]*I})}return P}function CHt(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=o.boundary,i=o.rootBoundary,s=o.padding,a=o.flipVariations,l=o.allowedAutoPlacements,u=l===void 0?DG:l,c=Jv(n),d=c?a?q9:q9.filter(function(p){return Jv(p)===c}):tw,m=d.filter(function(p){return u.indexOf(p)>=0});m.length===0&&(m=d);var h=m.reduce(function(p,f){return p[f]=Gv(t,{placement:f,boundary:r,rootBoundary:i,padding:s})[Kc(f)],p},{});return Object.keys(h).sort(function(p,f){return h[p]-h[f]})}function bHt(t){if(Kc(t)===JP)return[];var e=i$(t);return[ule(t),e,ule(e)]}function vHt(t){var e=t.state,o=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!0:s,l=o.fallbackPlacements,u=o.padding,c=o.boundary,d=o.rootBoundary,m=o.altBoundary,h=o.flipVariations,p=h===void 0?!0:h,f=o.allowedAutoPlacements,g=e.options.placement,b=Kc(g),v=b===g,S=l||(v||!p?[i$(g)]:bHt(g)),T=[g].concat(S).reduce(function(me,H){return me.concat(Kc(H)===JP?CHt(e,{placement:H,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:f}):H)},[]),x=e.rects.reference,F=e.rects.popper,D=new Map,N=!0,R=T[0],P=0;P<T.length;P++){var E=T[P],L=Kc(E),A=Jv(E)===zC,I=[Wi,Fa].indexOf(L)>=0,W=I?"width":"height",O=Gv(e,{placement:E,boundary:c,rootBoundary:d,altBoundary:m,padding:u}),K=I?A?ka:Hi:A?Fa:Wi;x[W]>F[W]&&(K=i$(K));var fe=i$(K),Ve=[];if(i&&Ve.push(O[L]<=0),a&&Ve.push(O[K]<=0,O[fe]<=0),Ve.every(function(me){return me})){R=E,N=!1;break}D.set(E,Ve)}if(N)for(var Se=p?3:1,G=function(me){var H=T.find(function(be){var le=D.get(be);if(le)return le.slice(0,me).every(function(ue){return ue})});if(H)return R=H,"break"},Ae=Se;Ae>0;Ae--){var q=G(Ae);if(q==="break")break}e.placement!==R&&(e.modifiersData[n]._skip=!0,e.placement=R,e.reset=!0)}}const XLe={name:"flip",enabled:!0,phase:"main",fn:vHt,requiresIfExists:["offset"],data:{_skip:!1}};function dle(t,e,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-e.height-o.y,right:t.right-e.width+o.x,bottom:t.bottom-e.height+o.y,left:t.left-e.width-o.x}}function mle(t){return[Wi,ka,Fa,Hi].some(function(e){return t[e]>=0})}function SHt(t){var e=t.state,o=t.name,n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=Gv(e,{elementContext:"reference"}),a=Gv(e,{altBoundary:!0}),l=dle(s,n),u=dle(a,r,i),c=mle(l),d=mle(u);e.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const QLe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:SHt};function wHt(t,e,o){var n=Kc(t),r=[Hi,Wi].indexOf(n)>=0?-1:1,i=typeof o=="function"?o(Object.assign({},e,{placement:t})):o,s=i[0],a=i[1];return s=s||0,a=(a||0)*r,[Hi,ka].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function THt(t){var e=t.state,o=t.options,n=t.name,r=o.offset,i=r===void 0?[0,0]:r,s=DG.reduce(function(c,d){return c[d]=wHt(d,e.rects,i),c},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}const eEe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:THt};function xHt(t){var e=t.state,o=t.name;e.modifiersData[o]=ZLe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const WG={name:"popperOffsets",enabled:!0,phase:"read",fn:xHt,data:{}};function FHt(t){return t==="x"?"y":"x"}function kHt(t){var e=t.state,o=t.options,n=t.name,r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!1:s,l=o.boundary,u=o.rootBoundary,c=o.altBoundary,d=o.padding,m=o.tether,h=m===void 0?!0:m,p=o.tetherOffset,f=p===void 0?0:p,g=Gv(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Kc(e.placement),v=Jv(e.placement),S=!v,T=NG(b),x=FHt(T),F=e.modifiersData.popperOffsets,D=e.rects.reference,N=e.rects.popper,R=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,P=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(F){if(i){var A,I=T==="y"?Wi:Hi,W=T==="y"?Fa:ka,O=T==="y"?"height":"width",K=F[T],fe=K+g[I],Ve=K-g[W],Se=h?-N[O]/2:0,G=v===zC?D[O]:N[O],Ae=v===zC?-N[O]:-D[O],q=e.elements.arrow,me=h&&q?AG(q):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ULe(),be=H[I],le=H[W],ue=DF(0,D[O],me[O]),Nt=S?D[O]/2-Se-ue-be-P.mainAxis:G-ue-be-P.mainAxis,Vt=S?-D[O]/2+Se+ue+le+P.mainAxis:Ae+ue+le+P.mainAxis,Et=e.elements.arrow&&KE(e.elements.arrow),z=Et?T==="y"?Et.clientTop||0:Et.clientLeft||0:0,j=(A=E?.[T])!=null?A:0,ee=K+Nt-j-z,oe=K+Vt-j,re=DF(h?u3(fe,ee):fe,K,h?Gy(Ve,oe):Ve);F[T]=re,L[T]=re-K}if(a){var ie,de=T==="x"?Wi:Hi,pe=T==="x"?Fa:ka,te=F[x],ne=x==="y"?"height":"width",Ge=te+g[de],Te=te-g[pe],we=[Wi,Hi].indexOf(b)!==-1,xe=(ie=E?.[x])!=null?ie:0,Ne=we?Ge:te-D[ne]-N[ne]-xe+P.altAxis,Ce=we?te+D[ne]+N[ne]-xe-P.altAxis:Te,Qe=h&&we?nHt(Ne,te,Ce):DF(h?Ne:Ge,te,h?Ce:Te);F[x]=Qe,L[x]=Qe-te}e.modifiersData[n]=L}}const tEe={name:"preventOverflow",enabled:!0,phase:"main",fn:kHt,requiresIfExists:["offset"]};function LHt(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function EHt(t){return t===La(t)||!El(t)?PG(t):LHt(t)}function _Ht(t){var e=t.getBoundingClientRect(),o=Uv(e.width)/t.offsetWidth||1,n=Uv(e.height)/t.offsetHeight||1;return o!==1||n!==1}function BHt(t,e,o){o===void 0&&(o=!1);var n=El(e),r=El(e)&&_Ht(e),i=og(e),s=qv(t,r,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!o)&&((ld(e)!=="body"||OG(i))&&(a=EHt(e)),El(e)?(l=qv(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=MG(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function DHt(t){var e=new Map,o=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function r(i){o.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!o.has(a)){var l=e.get(a);l&&r(l)}}),n.push(i)}return t.forEach(function(i){o.has(i.name)||r(i)}),n}function $Ht(t){var e=DHt(t);return zLe.reduce(function(o,n){return o.concat(e.filter(function(r){return r.phase===n}))},[])}function RHt(t){var e;return function(){return e||(e=new Promise(function(o){Promise.resolve().then(function(){e=void 0,o(t())})})),e}}function AHt(t){var e=t.reduce(function(o,n){var r=o[n.name];return o[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,o},{});return Object.keys(e).map(function(o){return e[o]})}var hle={placement:"bottom",modifiers:[],strategy:"absolute"};function ple(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function YP(t){t===void 0&&(t={});var e=t,o=e.defaultModifiers,n=o===void 0?[]:o,r=e.defaultOptions,i=r===void 0?hle:r;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},hle,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},c=[],d=!1,m={state:u,setOptions:function(f){var g=typeof f=="function"?f(u.options):f;p(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:jC(s)?$F(s):s.contextElement?$F(s.contextElement):[],popper:$F(a)};var b=$Ht(AHt([].concat(n,u.options.modifiers)));return u.orderedModifiers=b.filter(function(v){return v.enabled}),h(),m.update()},forceUpdate:function(){if(!d){var f=u.elements,g=f.reference,b=f.popper;if(ple(g,b)){u.rects={reference:BHt(g,KE(b),u.options.strategy==="fixed"),popper:AG(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var S=u.orderedModifiers[v],T=S.fn,x=S.options,F=x===void 0?{}:x,D=S.name;typeof T=="function"&&(u=T({state:u,options:F,name:D,instance:m})||u)}}}},update:RHt(function(){return new Promise(function(f){m.forceUpdate(),f(u)})}),destroy:function(){p(),d=!0}};if(!ple(s,a))return m;m.setOptions(l).then(function(f){!d&&l.onFirstUpdate&&l.onFirstUpdate(f)});function h(){u.orderedModifiers.forEach(function(f){var g=f.name,b=f.options,v=b===void 0?{}:b,S=f.effect;if(typeof S=="function"){var T=S({state:u,name:g,instance:m,options:v}),x=function(){};c.push(T||x)}})}function p(){c.forEach(function(f){return f()}),c=[]}return m}}var NHt=YP(),VHt=[IG,WG,VG,RG],IHt=YP({defaultModifiers:VHt}),PHt=[IG,WG,VG,RG,eEe,XLe,tEe,GLe,QLe],HG=YP({defaultModifiers:PHt});const oEe=Object.freeze(Object.defineProperty({__proto__:null,afterMain:MLe,afterRead:VLe,afterWrite:HLe,applyStyles:RG,arrow:GLe,auto:JP,basePlacements:tw,beforeMain:ILe,beforeRead:ALe,beforeWrite:OLe,bottom:Fa,clippingParents:$Le,computeStyles:VG,createPopper:HG,createPopperBase:NHt,createPopperLite:IHt,detectOverflow:Gv,end:Kv,eventListeners:IG,flip:XLe,hide:QLe,left:Hi,main:PLe,modifierPhases:zLe,offset:eEe,placements:DG,popper:t1,popperGenerator:YP,popperOffsets:WG,preventOverflow:tEe,read:NLe,reference:RLe,right:ka,start:zC,top:Wi,variationPlacements:q9,viewport:BG,write:WLe},Symbol.toStringTag,{value:"Module"})),Jh=new Map,J4={set(t,e,o){Jh.has(t)||Jh.set(t,new Map);const n=Jh.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,o)},get(t,e){return Jh.has(t)&&Jh.get(t).get(e)||null},remove(t,e){if(!Jh.has(t))return;const o=Jh.get(t);o.delete(e),o.size===0&&Jh.delete(t)}},MHt=1e6,OHt=1e3,Y9="transitionend",nEe=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,o)=>`#${CSS.escape(o)}`)),t),WHt=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),HHt=t=>{do t+=Math.floor(Math.random()*MHt);while(document.getElementById(t));return t},zHt=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:o}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(o);return!n&&!r?0:(e=e.split(",")[0],o=o.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(o))*OHt)},rEe=t=>{t.dispatchEvent(new Event(Y9))},Bm=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Ef=t=>Bm(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(nEe(t)):null,ow=t=>{if(!Bm(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",o=t.closest("details:not([open])");if(!o)return e;if(o!==t){const n=t.closest("summary");if(n&&n.parentNode!==o||n===null)return!1}return e},_f=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",iEe=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?iEe(t.parentNode):null},c3=()=>{},UE=t=>{t.offsetHeight},sEe=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,G4=[],jHt=t=>{document.readyState==="loading"?(G4.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of G4)e()}),G4.push(t)):t()},Ml=()=>document.documentElement.dir==="rtl",tu=t=>{jHt(()=>{const e=sEe();if(e){const o=t.NAME,n=e.fn[o];e.fn[o]=t.jQueryInterface,e.fn[o].Constructor=t,e.fn[o].noConflict=()=>(e.fn[o]=n,t.jQueryInterface)}})},xs=(t,e=[],o=t)=>typeof t=="function"?t.call(...e):o,aEe=(t,e,o=!0)=>{if(!o){xs(t);return}const n=zHt(e)+5;let r=!1;const i=({target:s})=>{s===e&&(r=!0,e.removeEventListener(Y9,i),xs(t))};e.addEventListener(Y9,i),setTimeout(()=>{r||rEe(e)},n)},zG=(t,e,o,n)=>{const r=t.length;let i=t.indexOf(e);return i===-1?!o&&n?t[r-1]:t[0]:(i+=o?1:-1,n&&(i=(i+r)%r),t[Math.max(0,Math.min(i,r-1))])},KHt=/[^.]*(?=\..*)\.|.*/,UHt=/\..*/,qHt=/::\d+$/,Y4={};let fle=1;const lEe={mouseenter:"mouseover",mouseleave:"mouseout"},JHt=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 uEe(t,e){return e&&`${e}::${fle++}`||t.uidEvent||fle++}function cEe(t){const e=uEe(t);return t.uidEvent=e,Y4[e]=Y4[e]||{},Y4[e]}function GHt(t,e){return function o(n){return jG(n,{delegateTarget:t}),o.oneOff&&Ee.off(t,n.type,e),e.apply(t,[n])}}function YHt(t,e,o){return function n(r){const i=t.querySelectorAll(e);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return jG(r,{delegateTarget:s}),n.oneOff&&Ee.off(t,r.type,e,o),o.apply(s,[r])}}function dEe(t,e,o=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===o)}function mEe(t,e,o){const n=typeof e=="string",r=n?o:e||o;let i=hEe(t);return JHt.has(i)||(i=t),[n,r,i]}function gle(t,e,o,n,r){if(typeof e!="string"||!t)return;let[i,s,a]=mEe(e,o,n);e in lEe&&(s=(h=>function(p){if(!p.relatedTarget||p.relatedTarget!==p.delegateTarget&&!p.delegateTarget.contains(p.relatedTarget))return h.call(this,p)})(s));const l=cEe(t),u=l[a]||(l[a]={}),c=dEe(u,s,i?o:null);if(c){c.oneOff=c.oneOff&&r;return}const d=uEe(s,e.replace(KHt,"")),m=i?YHt(t,o,s):GHt(t,s);m.delegationSelector=i?o:null,m.callable=s,m.oneOff=r,m.uidEvent=d,u[d]=m,t.addEventListener(a,m,i)}function Z9(t,e,o,n,r){const i=dEe(e[o],n,r);i&&(t.removeEventListener(o,i,!!r),delete e[o][i.uidEvent])}function ZHt(t,e,o,n){const r=e[o]||{};for(const[i,s]of Object.entries(r))i.includes(n)&&Z9(t,e,o,s.callable,s.delegationSelector)}function hEe(t){return t=t.replace(UHt,""),lEe[t]||t}const Ee={on(t,e,o,n){gle(t,e,o,n,!1)},one(t,e,o,n){gle(t,e,o,n,!0)},off(t,e,o,n){if(typeof e!="string"||!t)return;const[r,i,s]=mEe(e,o,n),a=s!==e,l=cEe(t),u=l[s]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;Z9(t,l,s,i,r?o:null);return}if(c)for(const d of Object.keys(l))ZHt(t,l,d,e.slice(1));for(const[d,m]of Object.entries(u)){const h=d.replace(qHt,"");(!a||e.includes(h))&&Z9(t,l,s,m.callable,m.delegationSelector)}},trigger(t,e,o){if(typeof e!="string"||!t)return null;const n=sEe(),r=hEe(e),i=e!==r;let s=null,a=!0,l=!0,u=!1;i&&n&&(s=n.Event(e,o),n(t).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=jG(new Event(e,{bubbles:a,cancelable:!0}),o);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function jG(t,e={}){for(const[o,n]of Object.entries(e))try{t[o]=n}catch{Object.defineProperty(t,o,{configurable:!0,get(){return n}})}return t}function yle(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 Z4(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Dm={setDataAttribute(t,e,o){t.setAttribute(`data-bs-${Z4(e)}`,o)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Z4(e)}`)},getDataAttributes(t){if(!t)return{};const e={},o=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of o){let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),e[r]=yle(t.dataset[n])}return e},getDataAttribute(t,e){return yle(t.getAttribute(`data-bs-${Z4(e)}`))}};let qE=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,o){const n=Bm(o)?Dm.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...Bm(o)?Dm.getDataAttributes(o):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,o=this.constructor.DefaultType){for(const[n,r]of Object.entries(o)){const i=e[n],s=Bm(i)?"element":WHt(i);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${r}".`)}}};const XHt="5.3.8";let Xu=class extends qE{constructor(e,o){super(),e=Ef(e),e&&(this._element=e,this._config=this._getConfig(o),J4.set(this._element,this.constructor.DATA_KEY,this))}dispose(){J4.remove(this._element,this.constructor.DATA_KEY),Ee.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,o,n=!0){aEe(e,o,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return J4.get(Ef(e),this.DATA_KEY)}static getOrCreateInstance(e,o={}){return this.getInstance(e)||new this(e,typeof o=="object"?o:null)}static get VERSION(){return XHt}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 X4=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let o=t.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),e=o&&o!=="#"?o.trim():null}return e?e.split(",").map(o=>nEe(o)).join(","):null},vt={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(o=>o.matches(e))},parents(t,e){const o=[];let n=t.parentNode.closest(e);for(;n;)o.push(n),n=n.parentNode.closest(e);return o},prev(t,e){let o=t.previousElementSibling;for(;o;){if(o.matches(e))return[o];o=o.previousElementSibling}return[]},next(t,e){let o=t.nextElementSibling;for(;o;){if(o.matches(e))return[o];o=o.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(o=>!_f(o)&&ow(o))},getSelectorFromElement(t){const e=X4(t);return e&&vt.findOne(e)?e:null},getElementFromSelector(t){const e=X4(t);return e?vt.findOne(e):null},getMultipleElementsFromSelector(t){const e=X4(t);return e?vt.find(e):[]}},ZP=(t,e="hide")=>{const o=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Ee.on(document,o,`[data-bs-dismiss="${n}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),_f(this))return;const i=vt.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(i)[e]()})},QHt="alert",e7t="bs.alert",pEe=`.${e7t}`,t7t=`close${pEe}`,o7t=`closed${pEe}`,n7t="fade",r7t="show";let fEe=class gEe extends Xu{static get NAME(){return QHt}close(){if(Ee.trigger(this._element,t7t).defaultPrevented)return;this._element.classList.remove(r7t);const e=this._element.classList.contains(n7t);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Ee.trigger(this._element,o7t),this.dispose()}static jQueryInterface(e){return this.each(function(){const o=gEe.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};ZP(fEe,"close");tu(fEe);const i7t="button",s7t="bs.button",a7t=`.${s7t}`,l7t=".data-api",u7t="active",Cle='[data-bs-toggle="button"]',c7t=`click${a7t}${l7t}`;let yEe=class CEe extends Xu{static get NAME(){return i7t}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(u7t))}static jQueryInterface(e){return this.each(function(){const o=CEe.getOrCreateInstance(this);e==="toggle"&&o[e]()})}};Ee.on(document,c7t,Cle,t=>{t.preventDefault();const e=t.target.closest(Cle);yEe.getOrCreateInstance(e).toggle()});tu(yEe);const d7t="swipe",nw=".bs.swipe",m7t=`touchstart${nw}`,h7t=`touchmove${nw}`,p7t=`touchend${nw}`,f7t=`pointerdown${nw}`,g7t=`pointerup${nw}`,y7t="touch",C7t="pen",b7t="pointer-event",v7t=40,S7t={endCallback:null,leftCallback:null,rightCallback:null},w7t={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};let ble=class bEe extends qE{constructor(e,o){super(),this._element=e,!(!e||!bEe.isSupported())&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return S7t}static get DefaultType(){return w7t}static get NAME(){return d7t}dispose(){Ee.off(this._element,nw)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),xs(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=v7t)return;const o=e/this._deltaX;this._deltaX=0,o&&xs(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ee.on(this._element,f7t,e=>this._start(e)),Ee.on(this._element,g7t,e=>this._end(e)),this._element.classList.add(b7t)):(Ee.on(this._element,m7t,e=>this._start(e)),Ee.on(this._element,h7t,e=>this._move(e)),Ee.on(this._element,p7t,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===C7t||e.pointerType===y7t)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}};const T7t="carousel",x7t="bs.carousel",ng=`.${x7t}`,vEe=".data-api",F7t="ArrowLeft",k7t="ArrowRight",L7t=500,dT="next",pb="prev",o1="left",s$="right",E7t=`slide${ng}`,Q4=`slid${ng}`,_7t=`keydown${ng}`,B7t=`mouseenter${ng}`,D7t=`mouseleave${ng}`,$7t=`dragstart${ng}`,R7t=`load${ng}${vEe}`,A7t=`click${ng}${vEe}`,SEe="carousel",j_="active",N7t="slide",V7t="carousel-item-end",I7t="carousel-item-start",P7t="carousel-item-next",M7t="carousel-item-prev",wEe=".active",TEe=".carousel-item",O7t=wEe+TEe,W7t=".carousel-item img",H7t=".carousel-indicators",z7t="[data-bs-slide], [data-bs-slide-to]",j7t='[data-bs-ride="carousel"]',K7t={[F7t]:s$,[k7t]:o1},U7t={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},q7t={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};let KG=class xEe extends Xu{constructor(e,o){super(e,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=vt.findOne(H7t,this._element),this._addEventListeners(),this._config.ride===SEe&&this.cycle()}static get Default(){return U7t}static get DefaultType(){return q7t}static get NAME(){return T7t}next(){this._slide(dT)}nextWhenVisible(){!document.hidden&&ow(this._element)&&this.next()}prev(){this._slide(pb)}pause(){this._isSliding&&rEe(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Ee.one(this._element,Q4,()=>this.cycle());return}this.cycle()}}to(e){const o=this._getItems();if(e>o.length-1||e<0)return;if(this._isSliding){Ee.one(this._element,Q4,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const r=e>n?dT:pb;this._slide(r,o[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Ee.on(this._element,_7t,e=>this._keydown(e)),this._config.pause==="hover"&&(Ee.on(this._element,B7t,()=>this.pause()),Ee.on(this._element,D7t,()=>this._maybeEnableCycle())),this._config.touch&&ble.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of vt.find(W7t,this._element))Ee.on(o,$7t,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(o1)),rightCallback:()=>this._slide(this._directionToOrder(s$)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),L7t+this._config.interval))}};this._swipeHelper=new ble(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const o=K7t[e.key];o&&(e.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const o=vt.findOne(wEe,this._indicatorsElement);o.classList.remove(j_),o.removeAttribute("aria-current");const n=vt.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(j_),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const o=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(e,o=null){if(this._isSliding)return;const n=this._getActive(),r=e===dT,i=o||zG(this._getItems(),n,r,this._config.wrap);if(i===n)return;const s=this._getItemIndex(i),a=m=>Ee.trigger(this._element,m,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:s});if(a(E7t).defaultPrevented||!n||!i)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=r?I7t:V7t,c=r?P7t:M7t;i.classList.add(c),UE(i),n.classList.add(u),i.classList.add(u);const d=()=>{i.classList.remove(u,c),i.classList.add(j_),n.classList.remove(j_,c,u),this._isSliding=!1,a(Q4)};this._queueCallback(d,n,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(N7t)}_getActive(){return vt.findOne(O7t,this._element)}_getItems(){return vt.find(TEe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ml()?e===o1?pb:dT:e===o1?dT:pb}_orderToDirection(e){return Ml()?e===pb?o1:s$:e===pb?s$:o1}static jQueryInterface(e){return this.each(function(){const o=xEe.getOrCreateInstance(this,e);if(typeof e=="number"){o.to(e);return}if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,A7t,z7t,function(t){const e=vt.getElementFromSelector(this);if(!e||!e.classList.contains(SEe))return;t.preventDefault();const o=KG.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){o.to(n),o._maybeEnableCycle();return}if(Dm.getDataAttribute(this,"slide")==="next"){o.next(),o._maybeEnableCycle();return}o.prev(),o._maybeEnableCycle()});Ee.on(window,R7t,()=>{const t=vt.find(j7t);for(const e of t)KG.getOrCreateInstance(e)});tu(KG);const J7t="collapse",G7t="bs.collapse",JE=`.${G7t}`,Y7t=".data-api",Z7t=`show${JE}`,X7t=`shown${JE}`,Q7t=`hide${JE}`,e8t=`hidden${JE}`,t8t=`click${JE}${Y7t}`,e5="show",H1="collapse",K_="collapsing",o8t="collapsed",n8t=`:scope .${H1} .${H1}`,r8t="collapse-horizontal",i8t="width",s8t="height",a8t=".collapse.show, .collapse.collapsing",X9='[data-bs-toggle="collapse"]',l8t={parent:null,toggle:!0},u8t={parent:"(null|element)",toggle:"boolean"};let FEe=class Q9 extends Xu{constructor(e,o){super(e,o),this._isTransitioning=!1,this._triggerArray=[];const n=vt.find(X9);for(const r of n){const i=vt.getSelectorFromElement(r),s=vt.find(i).filter(a=>a===this._element);i!==null&&s.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return l8t}static get DefaultType(){return u8t}static get NAME(){return J7t}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(a8t).filter(i=>i!==this._element).map(i=>Q9.getOrCreateInstance(i,{toggle:!1}))),e.length&&e[0]._isTransitioning||Ee.trigger(this._element,Z7t).defaultPrevented)return;for(const i of e)i.hide();const o=this._getDimension();this._element.classList.remove(H1),this._element.classList.add(K_),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(K_),this._element.classList.add(H1,e5),this._element.style[o]="",Ee.trigger(this._element,X7t)},r=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[o]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||Ee.trigger(this._element,Q7t).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,UE(this._element),this._element.classList.add(K_),this._element.classList.remove(H1,e5);for(const n of this._triggerArray){const r=vt.getElementFromSelector(n);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(K_),this._element.classList.add(H1),Ee.trigger(this._element,e8t)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}_isShown(e=this._element){return e.classList.contains(e5)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Ef(e.parent),e}_getDimension(){return this._element.classList.contains(r8t)?i8t:s8t}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(X9);for(const o of e){const n=vt.getElementFromSelector(o);n&&this._addAriaAndCollapsedClass([o],this._isShown(n))}}_getFirstLevelChildren(e){const o=vt.find(n8t,this._config.parent);return vt.find(e,this._config.parent).filter(n=>!o.includes(n))}_addAriaAndCollapsedClass(e,o){if(e.length)for(const n of e)n.classList.toggle(o8t,!o),n.setAttribute("aria-expanded",o)}static jQueryInterface(e){const o={};return typeof e=="string"&&/show|hide/.test(e)&&(o.toggle=!1),this.each(function(){const n=Q9.getOrCreateInstance(this,o);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}};Ee.on(document,t8t,X9,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of vt.getMultipleElementsFromSelector(this))FEe.getOrCreateInstance(e,{toggle:!1}).toggle()});tu(FEe);const vle="dropdown",c8t="bs.dropdown",S0=`.${c8t}`,UG=".data-api",d8t="Escape",Sle="Tab",m8t="ArrowUp",wle="ArrowDown",h8t=2,p8t=`hide${S0}`,f8t=`hidden${S0}`,g8t=`show${S0}`,y8t=`shown${S0}`,kEe=`click${S0}${UG}`,LEe=`keydown${S0}${UG}`,C8t=`keyup${S0}${UG}`,n1="show",b8t="dropup",v8t="dropend",S8t="dropstart",w8t="dropup-center",T8t="dropdown-center",my='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',x8t=`${my}.${n1}`,a$=".dropdown-menu",F8t=".navbar",k8t=".navbar-nav",L8t=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",E8t=Ml()?"top-end":"top-start",_8t=Ml()?"top-start":"top-end",B8t=Ml()?"bottom-end":"bottom-start",D8t=Ml()?"bottom-start":"bottom-end",$8t=Ml()?"left-start":"right-start",R8t=Ml()?"right-start":"left-start",A8t="top",N8t="bottom",V8t={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},I8t={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let rw=class l$ extends Xu{constructor(e,o){super(e,o),this._popper=null,this._parent=this._element.parentNode,this._menu=vt.next(this._element,a$)[0]||vt.prev(this._element,a$)[0]||vt.findOne(a$,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return V8t}static get DefaultType(){return I8t}static get NAME(){return vle}toggle(){return this._isShown()?this.hide():this.show()}show(){if(_f(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Ee.trigger(this._element,g8t,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(k8t))for(const o of[].concat(...document.body.children))Ee.on(o,"mouseover",c3);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(n1),this._element.classList.add(n1),Ee.trigger(this._element,y8t,e)}}hide(){if(_f(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Ee.trigger(this._element,p8t,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",c3);this._popper&&this._popper.destroy(),this._menu.classList.remove(n1),this._element.classList.remove(n1),this._element.setAttribute("aria-expanded","false"),Dm.removeDataAttribute(this._menu,"popper"),Ee.trigger(this._element,f8t,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Bm(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${vle.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof oEe>"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:Bm(this._config.reference)?e=Ef(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const o=this._getPopperConfig();this._popper=HG(e,this._menu,o)}_isShown(){return this._menu.classList.contains(n1)}_getPlacement(){const e=this._parent;if(e.classList.contains(v8t))return $8t;if(e.classList.contains(S8t))return R8t;if(e.classList.contains(w8t))return A8t;if(e.classList.contains(T8t))return N8t;const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(b8t)?o?_8t:E8t:o?D8t:B8t}_detectNavbar(){return this._element.closest(F8t)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Dm.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...xs(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:o}){const n=vt.find(L8t,this._menu).filter(r=>ow(r));n.length&&zG(n,o,e===wle,!n.includes(o)).focus()}static jQueryInterface(e){return this.each(function(){const o=l$.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}static clearMenus(e){if(e.button===h8t||e.type==="keyup"&&e.key!==Sle)return;const o=vt.find(x8t);for(const n of o){const r=l$.getInstance(n);if(!r||r._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(r._menu);if(i.includes(r._element)||r._config.autoClose==="inside"&&!s||r._config.autoClose==="outside"&&s||r._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Sle||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:r._element};e.type==="click"&&(a.clickEvent=e),r._completeHide(a)}}static dataApiKeydownHandler(e){const o=/input|textarea/i.test(e.target.tagName),n=e.key===d8t,r=[m8t,wle].includes(e.key);if(!r&&!n||o&&!n)return;e.preventDefault();const i=this.matches(my)?this:vt.prev(this,my)[0]||vt.next(this,my)[0]||vt.findOne(my,e.delegateTarget.parentNode),s=l$.getOrCreateInstance(i);if(r){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}};Ee.on(document,LEe,my,rw.dataApiKeydownHandler);Ee.on(document,LEe,a$,rw.dataApiKeydownHandler);Ee.on(document,kEe,rw.clearMenus);Ee.on(document,C8t,rw.clearMenus);Ee.on(document,kEe,my,function(t){t.preventDefault(),rw.getOrCreateInstance(this).toggle()});tu(rw);const EEe="backdrop",P8t="fade",Tle="show",xle=`mousedown.bs.${EEe}`,M8t={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},O8t={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};let _Ee=class extends qE{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return M8t}static get DefaultType(){return O8t}static get NAME(){return EEe}show(e){if(!this._config.isVisible){xs(e);return}this._append();const o=this._getElement();this._config.isAnimated&&UE(o),o.classList.add(Tle),this._emulateAnimation(()=>{xs(e)})}hide(e){if(!this._config.isVisible){xs(e);return}this._getElement().classList.remove(Tle),this._emulateAnimation(()=>{this.dispose(),xs(e)})}dispose(){this._isAppended&&(Ee.off(this._element,xle),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(P8t),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Ef(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Ee.on(e,xle,()=>{xs(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){aEe(e,this._getElement(),this._config.isAnimated)}};const W8t="focustrap",H8t="bs.focustrap",d3=`.${H8t}`,z8t=`focusin${d3}`,j8t=`keydown.tab${d3}`,K8t="Tab",U8t="forward",Fle="backward",q8t={autofocus:!0,trapElement:null},J8t={autofocus:"boolean",trapElement:"element"};let BEe=class extends qE{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return q8t}static get DefaultType(){return J8t}static get NAME(){return W8t}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ee.off(document,d3),Ee.on(document,z8t,e=>this._handleFocusin(e)),Ee.on(document,j8t,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ee.off(document,d3))}_handleFocusin(e){const{trapElement:o}=this._config;if(e.target===document||e.target===o||o.contains(e.target))return;const n=vt.focusableChildren(o);n.length===0?o.focus():this._lastTabNavDirection===Fle?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===K8t&&(this._lastTabNavDirection=e.shiftKey?Fle:U8t)}};const kle=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Lle=".sticky-top",U_="padding-right",Ele="margin-right";let ez=class{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,U_,o=>o+e),this._setElementAttributes(kle,U_,o=>o+e),this._setElementAttributes(Lle,Ele,o=>o-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,U_),this._resetElementAttributes(kle,U_),this._resetElementAttributes(Lle,Ele)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,o,n){const r=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+r)return;this._saveInitialAttribute(s,o);const a=window.getComputedStyle(s).getPropertyValue(o);s.style.setProperty(o,`${n(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,o){const n=e.style.getPropertyValue(o);n&&Dm.setDataAttribute(e,o,n)}_resetElementAttributes(e,o){const n=r=>{const i=Dm.getDataAttribute(r,o);if(i===null){r.style.removeProperty(o);return}Dm.removeDataAttribute(r,o),r.style.setProperty(o,i)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,o){if(Bm(e)){o(e);return}for(const n of vt.find(e,this._element))o(n)}};const G8t="modal",Y8t="bs.modal",Ol=`.${Y8t}`,Z8t=".data-api",X8t="Escape",Q8t=`hide${Ol}`,e9t=`hidePrevented${Ol}`,DEe=`hidden${Ol}`,$Ee=`show${Ol}`,t9t=`shown${Ol}`,o9t=`resize${Ol}`,n9t=`click.dismiss${Ol}`,r9t=`mousedown.dismiss${Ol}`,i9t=`keydown.dismiss${Ol}`,s9t=`click${Ol}${Z8t}`,_le="modal-open",a9t="fade",Ble="show",t5="modal-static",l9t=".modal.show",u9t=".modal-dialog",c9t=".modal-body",d9t='[data-bs-toggle="modal"]',m9t={backdrop:!0,focus:!0,keyboard:!0},h9t={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let m3=class REe extends Xu{constructor(e,o){super(e,o),this._dialog=vt.findOne(u9t,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ez,this._addEventListeners()}static get Default(){return m9t}static get DefaultType(){return h9t}static get NAME(){return G8t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Ee.trigger(this._element,$Ee,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(_le),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Ee.trigger(this._element,Q8t).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ble),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ee.off(window,Ol),Ee.off(this._dialog,Ol),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new _Ee({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new BEe({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=vt.findOne(c9t,this._dialog);o&&(o.scrollTop=0),UE(this._element),this._element.classList.add(Ble);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ee.trigger(this._element,t9t,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Ee.on(this._element,i9t,e=>{if(e.key===X8t){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Ee.on(window,o9t,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ee.on(this._element,r9t,e=>{Ee.one(this._element,n9t,o=>{if(!(this._element!==e.target||this._element!==o.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(_le),this._resetAdjustments(),this._scrollBar.reset(),Ee.trigger(this._element,DEe)})}_isAnimated(){return this._element.classList.contains(a9t)}_triggerBackdropTransition(){if(Ee.trigger(this._element,e9t).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(t5)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(t5),this._queueCallback(()=>{this._element.classList.remove(t5),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),n=o>0;if(n&&!e){const r=Ml()?"paddingLeft":"paddingRight";this._element.style[r]=`${o}px`}if(!n&&e){const r=Ml()?"paddingRight":"paddingLeft";this._element.style[r]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,o){return this.each(function(){const n=REe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](o)}})}};Ee.on(document,s9t,d9t,function(t){const e=vt.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ee.one(e,$Ee,n=>{n.defaultPrevented||Ee.one(e,DEe,()=>{ow(this)&&this.focus()})});const o=vt.findOne(l9t);o&&m3.getInstance(o).hide(),m3.getOrCreateInstance(e).toggle(this)});ZP(m3);tu(m3);const p9t="offcanvas",f9t="bs.offcanvas",wh=`.${f9t}`,AEe=".data-api",g9t=`load${wh}${AEe}`,y9t="Escape",Dle="show",$le="showing",Rle="hiding",C9t="offcanvas-backdrop",NEe=".offcanvas.show",b9t=`show${wh}`,v9t=`shown${wh}`,S9t=`hide${wh}`,Ale=`hidePrevented${wh}`,VEe=`hidden${wh}`,w9t=`resize${wh}`,T9t=`click${wh}${AEe}`,x9t=`keydown.dismiss${wh}`,F9t='[data-bs-toggle="offcanvas"]',k9t={backdrop:!0,keyboard:!0,scroll:!1},L9t={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};let Yv=class IEe extends Xu{constructor(e,o){super(e,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return k9t}static get DefaultType(){return L9t}static get NAME(){return p9t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Ee.trigger(this._element,b9t,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ez().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add($le);const o=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Dle),this._element.classList.remove($le),Ee.trigger(this._element,v9t,{relatedTarget:e})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||Ee.trigger(this._element,S9t).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Rle),this._backdrop.hide();const e=()=>{this._element.classList.remove(Dle,Rle),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ez().reset(),Ee.trigger(this._element,VEe)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Ee.trigger(this._element,Ale);return}this.hide()},o=!!this._config.backdrop;return new _Ee({className:C9t,isVisible:o,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:o?e:null})}_initializeFocusTrap(){return new BEe({trapElement:this._element})}_addEventListeners(){Ee.on(this._element,x9t,e=>{if(e.key===y9t){if(this._config.keyboard){this.hide();return}Ee.trigger(this._element,Ale)}})}static jQueryInterface(e){return this.each(function(){const o=IEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};Ee.on(document,T9t,F9t,function(t){const e=vt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),_f(this))return;Ee.one(e,VEe,()=>{ow(this)&&this.focus()});const o=vt.findOne(NEe);o&&o!==e&&Yv.getInstance(o).hide(),Yv.getOrCreateInstance(e).toggle(this)});Ee.on(window,g9t,()=>{for(const t of vt.find(NEe))Yv.getOrCreateInstance(t).show()});Ee.on(window,w9t,()=>{for(const t of vt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Yv.getOrCreateInstance(t).hide()});ZP(Yv);tu(Yv);const E9t=/^aria-[\w-]*$/i,PEe={"*":["class","dir","id","lang","role",E9t],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:[]},_9t=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),B9t=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,D9t=(t,e)=>{const o=t.nodeName.toLowerCase();return e.includes(o)?_9t.has(o)?!!B9t.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(o))};function $9t(t,e,o){if(!t.length)return t;if(o&&typeof o=="function")return o(t);const n=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(const i of r){const s=i.nodeName.toLowerCase();if(!Object.keys(e).includes(s)){i.remove();continue}const a=[].concat(...i.attributes),l=[].concat(e["*"]||[],e[s]||[]);for(const u of a)D9t(u,l)||i.removeAttribute(u.nodeName)}return n.body.innerHTML}const R9t="TemplateFactory",A9t={allowList:PEe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},N9t={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},V9t={entry:"(string|element|function|null)",selector:"(string|element)"};let I9t=class extends qE{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return A9t}static get DefaultType(){return N9t}static get NAME(){return R9t}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[r,i]of Object.entries(this._config.content))this._setContent(e,i,r);const o=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&o.classList.add(...n.split(" ")),o}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[o,n]of Object.entries(e))super._typeCheckConfig({selector:o,entry:n},V9t)}_setContent(e,o,n){const r=vt.findOne(n,e);if(r){if(o=this._resolvePossibleFunction(o),!o){r.remove();return}if(Bm(o)){this._putElementInTemplate(Ef(o),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(o);return}r.textContent=o}}_maybeSanitize(e){return this._config.sanitize?$9t(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return xs(e,[void 0,this])}_putElementInTemplate(e,o){if(this._config.html){o.innerHTML="",o.append(e);return}o.textContent=e.textContent}};const P9t="tooltip",M9t=new Set(["sanitize","allowList","sanitizeFn"]),o5="fade",O9t="modal",q_="show",W9t=".tooltip-inner",Nle=`.${O9t}`,Vle="hide.bs.modal",mT="hover",n5="focus",r5="click",H9t="manual",z9t="hide",j9t="hidden",K9t="show",U9t="shown",q9t="inserted",J9t="click",G9t="focusin",Y9t="focusout",Z9t="mouseenter",X9t="mouseleave",Q9t={AUTO:"auto",TOP:"top",RIGHT:Ml()?"left":"right",BOTTOM:"bottom",LEFT:Ml()?"right":"left"},ezt={allowList:PEe,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"},tzt={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let XP=class MEe extends Xu{constructor(e,o){if(typeof oEe>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ezt}static get DefaultType(){return tzt}static get NAME(){return P9t}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Ee.off(this._element.closest(Nle),Vle,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=Ee.trigger(this._element,this.constructor.eventName(K9t)),o=(iEe(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!o)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Ee.trigger(this._element,this.constructor.eventName(q9t))),this._popper=this._createPopper(n),n.classList.add(q_),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))Ee.on(s,"mouseover",c3);const i=()=>{Ee.trigger(this._element,this.constructor.eventName(U9t)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Ee.trigger(this._element,this.constructor.eventName(z9t)).defaultPrevented)return;if(this._getTipElement().classList.remove(q_),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",c3);this._activeTrigger[r5]=!1,this._activeTrigger[n5]=!1,this._activeTrigger[mT]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ee.trigger(this._element,this.constructor.eventName(j9t)))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const o=this._getTemplateFactory(e).toHtml();if(!o)return null;o.classList.remove(o5,q_),o.classList.add(`bs-${this.constructor.NAME}-auto`);const n=HHt(this.constructor.NAME).toString();return o.setAttribute("id",n),this._isAnimated()&&o.classList.add(o5),o}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new I9t({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[W9t]: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(o5)}_isShown(){return this.tip&&this.tip.classList.contains(q_)}_createPopper(e){const o=xs(this._config.placement,[this,e,this._element]),n=Q9t[o.toUpperCase()];return HG(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_resolvePossibleFunction(e){return xs(e,[this._element,this._element])}_getPopperConfig(e){const o={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...o,...xs(this._config.popperConfig,[void 0,o])}}_setListeners(){const e=this._config.trigger.split(" ");for(const o of e)if(o==="click")Ee.on(this._element,this.constructor.eventName(J9t),this._config.selector,n=>{const r=this._initializeOnDelegatedTarget(n);r._activeTrigger[r5]=!(r._isShown()&&r._activeTrigger[r5]),r.toggle()});else if(o!==H9t){const n=o===mT?this.constructor.eventName(Z9t):this.constructor.eventName(G9t),r=o===mT?this.constructor.eventName(X9t):this.constructor.eventName(Y9t);Ee.on(this._element,n,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?n5:mT]=!0,s._enter()}),Ee.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?n5:mT]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ee.on(this._element.closest(Nle),Vle,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,o){clearTimeout(this._timeout),this._timeout=setTimeout(e,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const o=Dm.getDataAttributes(this._element);for(const n of Object.keys(o))M9t.has(n)&&delete o[n];return e={...o,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Ef(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[o,n]of Object.entries(this._config))this.constructor.Default[o]!==n&&(e[o]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const o=MEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};tu(XP);const ozt="popover",nzt=".popover-header",rzt=".popover-body",izt={...XP.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"},szt={...XP.DefaultType,content:"(null|string|element|function)"};let azt=class OEe extends XP{static get Default(){return izt}static get DefaultType(){return szt}static get NAME(){return ozt}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[nzt]:this._getTitle(),[rzt]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const o=OEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};tu(azt);const lzt="scrollspy",uzt="bs.scrollspy",qG=`.${uzt}`,czt=".data-api",dzt=`activate${qG}`,Ile=`click${qG}`,mzt=`load${qG}${czt}`,hzt="dropdown-item",fb="active",pzt='[data-bs-spy="scroll"]',i5="[href]",fzt=".nav, .list-group",Ple=".nav-link",gzt=".nav-item",yzt=".list-group-item",Czt=`${Ple}, ${gzt} > ${Ple}, ${yzt}`,bzt=".dropdown",vzt=".dropdown-toggle",Szt={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},wzt={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};let WEe=class HEe extends Xu{constructor(e,o){super(e,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Szt}static get DefaultType(){return wzt}static get NAME(){return lzt}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Ef(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(o=>Number.parseFloat(o))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Ee.off(this._config.target,Ile),Ee.on(this._config.target,Ile,i5,e=>{const o=this._observableSections.get(e.target.hash);if(o){e.preventDefault();const n=this._rootElement||window,r=o.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:"smooth"});return}n.scrollTop=r}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),e)}_observerCallback(e){const o=s=>this._targetLinks.get(`#${s.target.id}`),n=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(o(s))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(s));continue}const a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(n(s),!r)return;continue}!i&&!a&&n(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=vt.find(i5,this._config.target);for(const o of e){if(!o.hash||_f(o))continue;const n=vt.findOne(decodeURI(o.hash),this._element);ow(n)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(fb),this._activateParents(e),Ee.trigger(this._element,dzt,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(hzt)){vt.findOne(vzt,e.closest(bzt)).classList.add(fb);return}for(const o of vt.parents(e,fzt))for(const n of vt.prev(o,Czt))n.classList.add(fb)}_clearActiveClass(e){e.classList.remove(fb);const o=vt.find(`${i5}.${fb}`,e);for(const n of o)n.classList.remove(fb)}static jQueryInterface(e){return this.each(function(){const o=HEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(window,mzt,()=>{for(const t of vt.find(pzt))WEe.getOrCreateInstance(t)});tu(WEe);const Tzt="tab",xzt="bs.tab",w0=`.${xzt}`,Fzt=`hide${w0}`,kzt=`hidden${w0}`,Lzt=`show${w0}`,Ezt=`shown${w0}`,_zt=`click${w0}`,Bzt=`keydown${w0}`,Dzt=`load${w0}`,$zt="ArrowLeft",Mle="ArrowRight",Rzt="ArrowUp",Ole="ArrowDown",s5="Home",Wle="End",hy="active",Hle="fade",a5="show",Azt="dropdown",zEe=".dropdown-toggle",Nzt=".dropdown-menu",l5=`:not(${zEe})`,Vzt='.list-group, .nav, [role="tablist"]',Izt=".nav-item, .list-group-item",Pzt=`.nav-link${l5}, .list-group-item${l5}, [role="tab"]${l5}`,jEe='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',u5=`${Pzt}, ${jEe}`,Mzt=`.${hy}[data-bs-toggle="tab"], .${hy}[data-bs-toggle="pill"], .${hy}[data-bs-toggle="list"]`;let JG=class tz extends Xu{constructor(e){super(e),this._parent=this._element.closest(Vzt),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ee.on(this._element,Bzt,o=>this._keydown(o)))}static get NAME(){return Tzt}show(){const e=this._element;if(this._elemIsActive(e))return;const o=this._getActiveElem(),n=o?Ee.trigger(o,Fzt,{relatedTarget:e}):null;Ee.trigger(e,Lzt,{relatedTarget:o}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(o,e),this._activate(e,o))}_activate(e,o){if(!e)return;e.classList.add(hy),this._activate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(a5);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Ee.trigger(e,Ezt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Hle))}_deactivate(e,o){if(!e)return;e.classList.remove(hy),e.blur(),this._deactivate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(a5);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Ee.trigger(e,kzt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Hle))}_keydown(e){if(![$zt,Mle,Rzt,Ole,s5,Wle].includes(e.key))return;e.stopPropagation(),e.preventDefault();const o=this._getChildren().filter(r=>!_f(r));let n;if([s5,Wle].includes(e.key))n=o[e.key===s5?0:o.length-1];else{const r=[Mle,Ole].includes(e.key);n=zG(o,e.target,r,!0)}n&&(n.focus({preventScroll:!0}),tz.getOrCreateInstance(n).show())}_getChildren(){return vt.find(u5,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,o){this._setAttributeIfNotExists(e,"role","tablist");for(const n of o)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const o=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",o),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),o||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const o=vt.getElementFromSelector(e);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,o){const n=this._getOuterElement(e);if(!n.classList.contains(Azt))return;const r=(i,s)=>{const a=vt.findOne(i,n);a&&a.classList.toggle(s,o)};r(zEe,hy),r(Nzt,a5),n.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(e,o,n){e.hasAttribute(o)||e.setAttribute(o,n)}_elemIsActive(e){return e.classList.contains(hy)}_getInnerElement(e){return e.matches(u5)?e:vt.findOne(u5,e)}_getOuterElement(e){return e.closest(Izt)||e}static jQueryInterface(e){return this.each(function(){const o=tz.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,_zt,jEe,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!_f(this)&&JG.getOrCreateInstance(this).show()});Ee.on(window,Dzt,()=>{for(const t of vt.find(Mzt))JG.getOrCreateInstance(t)});tu(JG);const Ozt="toast",Wzt="bs.toast",rg=`.${Wzt}`,Hzt=`mouseover${rg}`,zzt=`mouseout${rg}`,jzt=`focusin${rg}`,Kzt=`focusout${rg}`,Uzt=`hide${rg}`,qzt=`hidden${rg}`,Jzt=`show${rg}`,Gzt=`shown${rg}`,Yzt="fade",zle="hide",J_="show",G_="showing",Zzt={animation:"boolean",autohide:"boolean",delay:"number"},Xzt={animation:!0,autohide:!0,delay:5e3};let KEe=class UEe extends Xu{constructor(e,o){super(e,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Xzt}static get DefaultType(){return Zzt}static get NAME(){return Ozt}show(){if(Ee.trigger(this._element,Jzt).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Yzt);const e=()=>{this._element.classList.remove(G_),Ee.trigger(this._element,Gzt),this._maybeScheduleHide()};this._element.classList.remove(zle),UE(this._element),this._element.classList.add(J_,G_),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||Ee.trigger(this._element,Uzt).defaultPrevented)return;const e=()=>{this._element.classList.add(zle),this._element.classList.remove(G_,J_),Ee.trigger(this._element,qzt)};this._element.classList.add(G_),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(J_),super.dispose()}isShown(){return this._element.classList.contains(J_)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,o){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=o;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=o;break}}if(o){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Ee.on(this._element,Hzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,zzt,e=>this._onInteraction(e,!1)),Ee.on(this._element,jzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,Kzt,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const o=UEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};ZP(KEe);tu(KEe);const QP=t=>({Match:e=>{for(const o in t)if(t[o]!==void 0)return e[o](t[o]);throw Error("")}}),Qzt=t=>{throw new Error("Didn't expect to get here"+t)},ejt=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"];Sh.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}});Sh.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()}}});Sh.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()}}});Sh.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}});Sh.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}});Sh.create({name:"unsubscribeLink",priority:1e3,addOptions(){return{HTMLAttributes:{"data-type":"unsubscribe-link",class:"rich-text__unsubscribe-link"}}},parseHTML(){return[{tag:'span[data-type="unsubscribe-link"]'}]},renderHTML({HTMLAttributes:t}){return["span",xa(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:o,to:n}=e.selection,r=e.doc.textBetween(o,n," ");return e.doc.nodeAt(o)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:o,to:o+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}});Sh.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=o=>o.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=o=>o.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:o})},"Mod-u":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})},"Mod-U":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})}}}});Wo.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{const e=t.style.fontFamily.split(",").map(o=>o.trim()).map(o=>o.replace(/^['"]|['"]$/g,"")).map(o=>o.replace(/ /g,""));return ejt.find(o=>e.includes(o))||null},renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}});const tjt=t=>new Promise((e,o)=>{const n=new Image;n.onload=()=>{e({width:n.naturalWidth,height:n.naturalHeight})},n.onerror=o,n.src=t});Sd.create({name:"image",addOptions(){return{inline:!0,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},width:{default:null},height:{default:null},isRetina:{default:!1}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",xa(this.options.HTMLAttributes,{src:t.src,alt:t.alt,title:t.title,width:t.isRetina?t.width/2:t.width,height:t.isRetina?t.height/2:t.height,isRetina:t.isRetina})]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[q4t({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,o,n]=t;return{src:o,alt:e,title:n}}})]},addProseMirrorPlugins(){return[new On({view:t=>((async()=>{const{state:e,dispatch:o}=t;e.doc.descendants((n,r)=>{if(n.type.name===this.name){const{src:i,width:s,height:a}=n.attrs;i&&(!s||!a)&&tjt(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...n.attrs,width:l.width,height:l.height});o(u)})}})})(),{})})]}});const qEe=t=>Object.fromEntries(Object.entries(t).filter(([e,o])=>o!==void 0)),ojt=t=>QP(t),njt=t=>QP(t),rjt=t=>QP(t),ijt=t=>QP(t),sjt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n===r),ajt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n<r),ljt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n>r),ujt=t=>{const e=sjt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=ljt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=ajt({numberExpressionEvaluator:t.numberExpressionEvaluator});return({numberPredicate:r,context:i})=>ijt(r).Match({Equal:s=>e({predicate:s,context:i}),GreaterThan:s=>o({predicate:s,context:i}),LessThan:s=>n({predicate:s,context:i})})},cjt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Right,context:o})]).then(([n,r])=>n===r),djt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Contains,context:o})]).then(([n,r])=>n.includes(r)),mjt=t=>{const e=cjt({stringExpressionEvaluator:t.stringExpressionEvaluator}),o=djt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({stringPredicate:n,context:r})=>rjt(n).Match({Contains:i=>o({predicate:i,context:r}),Equal:i=>e({predicate:i,context:r})})},hjt=t=>{const e=ujt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=mjt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({predicate:n,context:r})=>njt(n).Match({NumberPredicate:i=>e({numberPredicate:i,context:r}),StringPredicate:i=>o({stringPredicate:i,context:r})})},pjt=t=>{const e=hjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=({boolExpression:n,context:r})=>ojt(n).Match({AndExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.every(a=>a)),OrExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.some(a=>a)),NotExpression:async i=>!await o({boolExpression:i.Expression,context:r}),Predicate:i=>e({predicate:i,context:r})});return o},fjt=t=>({localeKey:t.localeKey,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin}),gjt=t=>({postGetThemeLibrary:t.themeLibraryBffClient.postGetThemeLibrary,postGetComponentLibrary:t.componentLibraryBffClient.postGetComponentLibrary}),yjt=t=>{const e="https://cdn.retailrocket.net/api/1.0/partner";return async({context:o,expression:n})=>t.numberExpressionEvaluator({numberExpression:n.ProductId,context:o}).then(r=>t.productImageResizerUrl?t.productImageResizerUrl:e+"/"+t.partnerId+"/item/"+r+"/picture/?format=png&width="+n.ImageSize.Width+"&height="+n.ImageSize.Height+"&scale=both")},Cjt=t=>({localeKey:t.localeKey}),bjt=t=>({localeKey:t.localeKey}),vjt=t=>({localeKey:t.localeKey,saveTemplateErrorNotificationModalWindowDeps:bjt({localeKey:t.localeKey})}),Sjt=t=>({appSettingsModifierPlugin:t.appSettingsModifierPlugin,resetTemplateButtonDeps:Cjt({localeKey:t.localeKey}),saveTemplateButtonDeps:vjt({localeKey:t.localeKey})}),wjt=t=>({localeKey:t.localeKey}),Tjt=t=>({localeKey:t.localeKey}),xjt=t=>({localeKey:t.localeKey,preheaderSubjectUpdateModalWindowDeps:Tjt({localeKey:t.localeKey})}),Fjt=t=>({exportMenuDeps:Sjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),toggleDeviceToolbarDeps:wjt({localeKey:t.localeKey}),preheaderSubjectUpdateButtonDeps:xjt({localeKey:t.localeKey})}),kjt=t=>({sectionItemId:t.sectionItemId,sectionItemName:t.sectionItemName,theme:JSON.parse(t.theme.json)}),Ljt=t=>({sectionId:t.sectionId,sectionName:t.sectionName,sectionItems:t.sectionItems.map(e=>kjt(e))}),Ejt=t=>async()=>(await t.getThemeLibraryHttpClient({body:{partnerId:t.partnerId}})).body.sections.map(e=>Ljt(e)),_jt=t=>async e=>(await t.postCreateThemeLibrarySectionItem({body:{partnerId:t.partnerId,parentSectionId:e.parentSectionId,sectionItemName:e.sectionItemName,theme:{json:JSON.stringify(e.theme)}}})).status===200?"Success":"Fail",Bjt=t=>({sectionId:t.sectionId,sectionName:t.sectionName}),JEe=t=>async()=>(await t.postGetThemeLibrarySections({body:{partnerId:t.partnerId}})).body.sections.map(e=>Bjt(e)),Djt=t=>({localeKey:t.localeKey,addThemeSectionItem:_jt({partnerId:t.partnerId,postCreateThemeLibrarySectionItem:t.addThemeLibrarySectionItemModalWindowBffClient.postCreateThemeLibrarySectionItem}),getThemeLibrarySections:JEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.addThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),$jt=t=>async e=>{await t.deleteThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},Rjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItem:$jt({partnerId:t.partnerId,deleteThemeLibrarySectionItem:t.deleteThemeLibrarySectionItemModalWindowBffClient.postDeleteThemeLibrarySectionItem}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),Ajt=t=>async e=>{await t.updateThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},Njt=t=>({localeKey:t.localeKey,updateThemeLibrarySectionItem:Ajt({partnerId:t.partnerId,updateThemeLibrarySectionItem:t.editThemeLibrarySectionItemModalWindowBffClient.postUpdateThemeLibrarySectionItem}),getThemeLibrarySections:JEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.editThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Vjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItemModalWindowDeps:Rjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient}),editThemeLibrarySectionItemModalWindowDeps:Njt({localeKey:t.localeKey,partnerId:t.partnerId,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient})}),Ijt=t=>async e=>(await t.deleteThemeLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Pjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySection:Ijt({partnerId:t.partnerId,deleteThemeLibrarySectionHttpClientDelegate:t.deleteThemeLibrarySectionModalWindowBffClient.postDeleteThemeLibrarySection})}),Mjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionModalWindowDeps:Pjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Ojt=t=>({localeKey:t.localeKey,themeSectionItemDeps:Vjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient}),emptyThemeSectionDeps:Mjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Wjt=t=>async e=>{await t.createThemeLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},Hjt=t=>({localeKey:t.localeKey,createThemeLibrarySection:Wjt({partnerId:t.partnerId,createThemeLibrarySectionHttpClient:t.createThemeLibrarySectionModalWindowBffClient.postCreateThemeLibrarySection})}),zjt=t=>({defaultThemeLibrary:t.defaultThemeLibrary}),GEe=t=>({localeKey:t.localeKey,defaultThemeLibraryDeps:zjt({defaultThemeLibrary:t.defaultThemeLibrary}),customThemeLibraryDeps:{localeKey:t.localeKey,addThemeSectionItemModalWindowDeps:Djt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient}),themeSectionDeps:Ojt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient}),createThemeLibrarySectionModalWindowDeps:Hjt({localeKey:t.localeKey,partnerId:t.partnerId,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient})}}),jjt=t=>({localeKey:t.localeKey,customThemeLibraryDeps:GEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}).customThemeLibraryDeps}),Kjt=t=>async e=>{await t.deleteComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},Ujt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItem:Kjt({partnerId:t.partnerId,deleteComponentLibrarySectionItemHttpClientDelegate:t.deleteComponentLibrarySectionItemModalWindowBffClient.postDeleteComponentLibrarySectionItem})}),qjt=t=>async e=>{await t.updateComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},YEe=t=>async()=>(await t.getComponentLibrarySectionsHttpClientDelegate({body:{partnerId:t.partnerId}})).body.sections.map(e=>({sectionId:e.sectionId,sectionName:e.sectionName})),Jjt=t=>({localeKey:t.localeKey,updateComponentLibrarySectionItem:qjt({partnerId:t.partnerId,updateComponentLibrarySectionItemHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postUpdateComponentLibrarySectionItem}),getComponentLibrarySections:YEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),Gjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItemModalWindowDeps:Ujt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),editComponentLibrarySectionItemModalWindowDeps:Jjt({localeKey:t.localeKey,partnerId:t.partnerId,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient}),emailComponentDeps:t.emailComponentDeps}),Yjt=t=>async e=>(await t.deleteComponentLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Zjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySection:Yjt({partnerId:t.partnerId,deleteComponentLibrarySectionHttpClientDelegate:t.deleteComponentLibrarySectionModalWindowBffClient.postDeleteComponentLibrarySection})}),Xjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionModalWindowDeps:Zjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),Qjt=t=>({localeKey:t.localeKey,componentSectionItemDeps:Gjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),emptyComponentSectionDeps:Xjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),eKt=t=>async e=>{await t.createComponentLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},tKt=t=>({localeKey:t.localeKey,createComponentLibrarySection:eKt({partnerId:t.partnerId,createComponentLibrarySectionHttpClient:t.createComponentLibrarySectionModalWindowBffClient.postCreateComponentLibrarySection})}),oKt=t=>({localeKey:t.localeKey,createComponentLibrarySectionModalWindowDeps:tKt({localeKey:t.localeKey,partnerId:t.partnerId,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient}),componentSectionDeps:Qjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),nKt=t=>({emailComponentDeps:t.emailComponentDeps}),rKt=t=>({localeKey:t.localeKey,componentSectionItemDeps:nKt({emailComponentDeps:t.emailComponentDeps})}),iKt=t=>({defaultComponentLibrary:t.defaultComponentLibrary,componentSectionDeps:rKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps})}),sKt=t=>({localeKey:t.localeKey,customComponentLibraryDeps:oKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient}),defaultComponentLibraryDeps:iKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps,defaultComponentLibrary:t.defaultComponentLibrary})}),aKt=t=>({localeKey:t.localeKey,exitLink:t.exitLink,themeLibraryDeps:GEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),themeStylesDeps:jjt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),componentLibraryDeps:sKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultComponentLibrary:t.defaultComponentLibrary})}),lKt=t=>async e=>{await t.createComponentLibrarySectionItemHttpClient({body:{partnerId:t.partnerId,parentSectionId:e.sectionId,sectionItemName:e.sectionItemName,component:t.httpClientComponentFactoryDelegate(e.component)}})},uKt=t=>({localeKey:t.localeKey,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,addComponentLibrarySectionItem:lKt({partnerId:t.partnerId,createComponentLibrarySectionItemHttpClient:t.addComponentLibrarySectionItemModalWindowBffClient.postCreateComponentLibrarySectionItem,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate}),getComponentLibrarySections:YEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.addComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),cKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),dKt=t=>({localeKey:t.localeKey}),mKt=t=>({movementMenuDeps:cKt({localeKey:t.localeKey}),draggingMenuDeps:dKt({localeKey:t.localeKey}),emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,addComponentLibrarySectionItemModalWindowDeps:uKt({localeKey:t.localeKey,partnerId:t.partnerId,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),hKt=t=>({localeKey:t.localeKey,emailComponentWrapperDeps:mKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),pKt=t=>({localeKey:t.localeKey}),fKt=t=>({localeKey:t.localeKey}),gKt=t=>({localeKey:t.localeKey}),yKt=t=>({localeKey:t.localeKey}),CKt=t=>({localeKey:t.localeKey,fontColorEditorDeps:yKt({localeKey:t.localeKey})}),GG=t=>({localeKey:t.localeKey,fontStyleColorEditorDeps:gKt({localeKey:t.localeKey}),customFontSettingsDeps:CKt({localeKey:t.localeKey})}),bKt=t=>({removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),truncateSpanEditorDeps:fKt({localeKey:t.localeKey}),localeKey:t.localeKey,fontStyleEditorDeps:GG({localeKey:t.localeKey})}),vKt=t=>({localeKey:t.localeKey}),ZEe=t=>({localeKey:t.localeKey,borderColorEditorDeps:vKt({localeKey:t.localeKey})}),SKt=t=>({localeKey:t.localeKey,borderEditorDeps:ZEe({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),YG=t=>({localeKey:t.localeKey}),wKt=t=>({localeKey:t.localeKey,borderEditorDeps:ZEe({localeKey:t.localeKey}),colorEditorDeps:YG({localeKey:t.localeKey}),fontStyleEditorDeps:GG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),TKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),fontStyleEditorDeps:GG({localeKey:t.localeKey})}),xKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),FKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),colorEditorDeps:YG({localeKey:t.localeKey})}),kKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),LKt=t=>({spanEditorDeps:bKt({localeKey:t.localeKey}),imageEditorDeps:SKt({localeKey:t.localeKey}),buttonEditorDeps:wKt({localeKey:t.localeKey}),unsubscribeLinkEditorDeps:TKt({localeKey:t.localeKey}),backgroundImageEditorDeps:xKt({localeKey:t.localeKey}),spacerEditorDeps:FKt({localeKey:t.localeKey}),richTextEditorDeps:kKt({localeKey:t.localeKey})}),EKt=t=>({localeKey:t.localeKey,colorEditorDeps:YG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),_Kt=t=>{const e=pjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=ZIt({localeKey:t.localeKey,elementsDeps:SPt({localeKey:t.localeKey,richTextToolbarPlugins:t.richTextToolbarPlugins,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin,expressionEvaluator:t.expressionEvaluator,listExpressionEvaluator:t.listExpressionEvaluator,numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator,boolExpressionEvaluator:e,dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),listExpressionEvaluator:t.listExpressionEvaluator,dataStructExpressionEvaluator:t.dataStructExpressionEvaluator,boolExpressionEvaluator:e});return{topMenuDeps:Fjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),saveEmailTemplate:t.saveEmailTemplate,createFavoriteTemplate:t.createFavoriteTemplate,getThemeLibrary:Ejt({partnerId:t.partnerId,getThemeLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetThemeLibrary}),getComponentLibrary:t.getComponentLibraryFactory({partnerId:t.partnerId,getComponentLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetComponentLibrary}),asideMenuDeps:aKt({localeKey:t.localeKey,partnerId:t.partnerId,exitLink:t.exitLink,emailComponentDeps:o,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary,defaultComponentLibrary:t.defaultComponentLibrary}),emailTemplateDeps:hKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,emailComponentDeps:o,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient}),emptyEditorDeps:pKt({localeKey:t.localeKey}),elementsEditorDeps:LKt({localeKey:t.localeKey}),emailComponentEditorDeps:EKt({localeKey:t.localeKey}),template:t.template}},Qu=t=>async()=>(await t.getAllStockIdsHttpClient({body:{partnerId:t.partnerId}})).body.stockIds,BKt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),DKt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),$Kt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),RKt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),XEe=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),ZG=t=>{switch(t.stockSource._t){case"CustomerStockIdSource":return t.customerStockId;case"DefaultStoreStockIdSource":return;case"SpecificStockIdSource":return t.stockSource.Value;default:Qzt(t.stockSource)}},AKt=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.findProductsBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:e,stockId:n}})).body.products.map(r=>XEe(r))},NKt=t=>({localeKey:t.localeKey}),VKt=t=>({selectedProductListItemDeps:NKt({localeKey:t.localeKey})}),IKt=t=>({localeKey:t.localeKey}),PKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,selectedProductListDeps:VKt({localeKey:t.localeKey}),emptyProductListDeps:IKt({localeKey:t.localeKey})}),MKt=t=>({localeKey:t.localeKey}),OKt=t=>({localeKey:t.localeKey}),WKt=t=>({localeKey:t.localeKey}),HKt=t=>({searchedProductListItemDeps:OKt({localeKey:t.localeKey}),emptySearchProductListDeps:WKt({localeKey:t.localeKey})}),zKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,productSearchBarDeps:MKt({localeKey:t.localeKey}),searchedProductListDeps:HKt({localeKey:t.localeKey})}),jKt=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>XEe(r))},KKt=t=>{const e=jKt({partnerId:t.partnerId,productCache:{},customerStockId:t.customerStockId,getProductsByIDsHttpClient:t.productPickerModalWindowBffClient.postGetProductsByIds}),o=AKt({partnerId:t.partnerId,customerStockId:t.customerStockId,findProductsBySearchPhrase:t.productPickerModalWindowBffClient.postFindProductsBySearchPhrase});return{localeKey:t.localeKey,selectProductComponentDeps:PKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o}),productSearchComponentDeps:zKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o})}},UKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),qKt=async t=>{const e=t.categoryIds.filter(o=>!t.categoryCache[o]);return e.length>0&&(await t.findCategoriesByID({partnerId:t.partnerId,categoryIds:e})).forEach(o=>t.categoryCache[o.id]=o),t.categoryIds.map(o=>t.categoryCache[o]).filter(o=>o!==void 0)},QEe=t=>async e=>(await qKt({partnerId:t.partnerId,categoryIds:e,categoryCache:{},findCategoriesByID:async o=>(await t.getCategoriesByIDsHttpClient({body:{partnerId:t.partnerId,categoryIds:o.categoryIds.concat([])}})).body.categories})).map(o=>UKt(o)),JKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),GKt=async t=>{const e=await t.findCategoriesByPhrase({phrase:t.phrase});return e.forEach(o=>t.categoryCache[o.id]=o),e},YKt=t=>async e=>(await GKt({phrase:e,categoryCache:t.categoryCache,findCategoriesByPhrase:async o=>(await t.findProductCategoriesBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:o.phrase}})).body.categories})).map(o=>JKt(o)),ZKt=t=>({localeKey:t.localeKey}),XKt=t=>({localeKey:t.localeKey,getCategoriesByIDs:t.getCategoriesByIDs,selectedCategoryListDeps:{},emptyCategoryListDeps:ZKt({localeKey:t.localeKey})}),QKt=t=>({localeKey:t.localeKey}),eUt=t=>({localeKey:t.localeKey}),tUt=t=>({emptySearchCategoryListDeps:eUt({localeKey:t.localeKey})}),oUt=t=>({localeKey:t.localeKey,findCategoriesByName:t.findCategoriesByName,getCategoriesByIDs:t.getCategoriesByIDs,categorySearchBarDeps:QKt({localeKey:t.localeKey}),searchedCategoryListDeps:tUt({localeKey:t.localeKey})}),e2e=t=>{const e={},o=QEe({partnerId:t.partnerId,categoryCache:e,getCategoriesByIDsHttpClient:t.productCategoryPickerModalWindowBffClient.postGetProductCategoriesByIds}),n=YKt({partnerId:t.partnerId,categoryCache:e,findProductCategoriesBySearchPhrase:t.productCategoryPickerModalWindowBffClient.postFindProductCategoriesBySearchPhrase});return{localeKey:t.localeKey,selectCategoryComponentDeps:XKt({localeKey:t.localeKey,getCategoriesByIDs:o}),categorySearchComponentDeps:oUt({localeKey:t.localeKey,getCategoriesByIDs:o,findCategoriesByName:n})}},nUt=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),XG=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>nUt(r))},rUt=t=>({localeKey:t.localeKey,getProductsByIDs:XG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),iUt=t=>({localeKey:t.localeKey,getProductsByIDs:XG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),sUt=t=>({localeKey:t.localeKey,getProductsByIDs:XG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),aUt=t=>({localeKey:t.localeKey,getCategoriesByIDs:QEe({partnerId:t.partnerId,categoryCache:t.categoryCache,getCategoriesByIDsHttpClient:t.getCategoriesByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),categoryListComposerModalWindowDeps:e2e({localeKey:t.localeKey,partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),t2e=t=>t.reduce((e,o)=>(e[o.name]=o.value,e),{}),T0=t=>qEe({InternalProductId:t.internalProductId,Name:t.name,Description:t.description,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,Url:t.url,CategoryIds:[],Vendor:t.vendor,Params:t2e(t.parameters),DiscountPercentage:t.discountPercentage}),lUt=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(e=>T0(e));var uUt=typeof global=="object"&&global&&global.Object===Object&&global,cUt=typeof self=="object"&&self&&self.Object===Object&&self,dUt=uUt||cUt||Function("return this")(),h3=dUt.Symbol;h3&&h3.toStringTag;h3&&h3.toStringTag;const{entries:o2e,setPrototypeOf:jle,isFrozen:mUt,getPrototypeOf:hUt,getOwnPropertyDescriptor:pUt}=Object;let{freeze:is,seal:Wl,create:oz}=Object,{apply:nz,construct:rz}=typeof Reflect<"u"&&Reflect;is||(is=function(t){return t});Wl||(Wl=function(t){return t});nz||(nz=function(t,e){for(var o=arguments.length,n=new Array(o>2?o-2:0),r=2;r<o;r++)n[r-2]=arguments[r];return t.apply(e,n)});rz||(rz=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];return new t(...o)});const Y_=ss(Array.prototype.forEach),fUt=ss(Array.prototype.lastIndexOf),Kle=ss(Array.prototype.pop),hT=ss(Array.prototype.push),gUt=ss(Array.prototype.splice),u$=ss(String.prototype.toLowerCase),c5=ss(String.prototype.toString),d5=ss(String.prototype.match),pT=ss(String.prototype.replace),yUt=ss(String.prototype.indexOf),CUt=ss(String.prototype.trim),Tu=ss(Object.prototype.hasOwnProperty),bi=ss(RegExp.prototype.test),fT=bUt(TypeError);function ss(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return nz(t,e,n)}}function bUt(t){return function(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return rz(t,o)}}function oo(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u$;jle&&jle(t,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const i=o(r);i!==r&&(mUt(e)||(e[n]=i),r=i)}t[r]=!0}return t}function vUt(t){for(let e=0;e<t.length;e++)Tu(t,e)||(t[e]=null);return t}function gc(t){const e=oz(null);for(const[o,n]of o2e(t))Tu(t,o)&&(Array.isArray(n)?e[o]=vUt(n):n&&typeof n=="object"&&n.constructor===Object?e[o]=gc(n):e[o]=n);return e}function gT(t,e){for(;t!==null;){const n=pUt(t,e);if(n){if(n.get)return ss(n.get);if(typeof n.value=="function")return ss(n.value)}t=hUt(t)}function o(){return null}return o}const Ule=is(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),m5=is(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),h5=is(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),SUt=is(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),p5=is(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),wUt=is(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qle=is(["#text"]),Jle=is(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),f5=is(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Gle=is(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z_=is(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),TUt=Wl(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xUt=Wl(/<%[\w\W]*|[\w\W]*%>/gm),FUt=Wl(/\$\{[\w\W]*/gm),kUt=Wl(/^data-[\-\w.\u00B7-\uFFFF]+$/),LUt=Wl(/^aria-[\-\w]+$/),n2e=Wl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),EUt=Wl(/^(?:\w+script|data):/i),_Ut=Wl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),r2e=Wl(/^html$/i),BUt=Wl(/^[a-z][.\w]*(-[.\w]+)+$/i);var Yle=Object.freeze({__proto__:null,ARIA_ATTR:LUt,ATTR_WHITESPACE:_Ut,CUSTOM_ELEMENT:BUt,DATA_ATTR:kUt,DOCTYPE_NAME:r2e,ERB_EXPR:xUt,IS_ALLOWED_URI:n2e,IS_SCRIPT_OR_DATA:EUt,MUSTACHE_EXPR:TUt,TMPLIT_EXPR:FUt});const yT={element:1,text:3,progressingInstruction:7,comment:8,document:9},DUt=function(){return typeof window>"u"?null:window},$Ut=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(o=e.getAttribute(n));const r="dompurify"+(o?"#"+o:"");try{return t.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Zle=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function i2e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DUt();const e=C=>i2e(C);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==yT.document||!t.Element)return e.isSupported=!1,e;let{document:o}=t;const n=o,r=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:h}=t,p=l.prototype,f=gT(p,"cloneNode"),g=gT(p,"remove"),b=gT(p,"nextSibling"),v=gT(p,"childNodes"),S=gT(p,"parentNode");if(typeof s=="function"){const C=o.createElement("template");C.content&&C.content.ownerDocument&&(o=C.content.ownerDocument)}let T,x="";const{implementation:F,createNodeIterator:D,createDocumentFragment:N,getElementsByTagName:R}=o,{importNode:P}=n;let E=Zle();e.isSupported=typeof o2e=="function"&&typeof S=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:A,TMPLIT_EXPR:I,DATA_ATTR:W,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:Ve}=Yle;let{IS_ALLOWED_URI:Se}=Yle,G=null;const Ae=oo({},[...Ule,...m5,...h5,...p5,...qle]);let q=null;const me=oo({},[...Jle,...f5,...Gle,...Z_]);let H=Object.seal(oz(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,le=null;const ue=Object.seal(oz(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Nt=!0,Vt=!0,Et=!1,z=!0,j=!1,ee=!0,oe=!1,re=!1,ie=!1,de=!1,pe=!1,te=!1,ne=!0,Ge=!1;const Te="user-content-";let we=!0,xe=!1,Ne={},Ce=null;const Qe=oo({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fo=null;const ko=oo({},["audio","video","img","source","image","track"]);let Co=null;const No=oo({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),go="http://www.w3.org/1998/Math/MathML",Lo="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let kt=tt,Uo=!1,qo=null;const su=oo({},[go,Lo,tt],c5);let $o=oo({},["mi","mo","mn","ms","mtext"]),Ro=oo({},["annotation-xml"]);const au=oo({},["title","style","font","a","script"]);let yo=null;const lu=["application/xhtml+xml","text/html"],uu="text/html";let ge=null,jt=null;const cu=o.createElement("form"),Br=function(C){return C instanceof RegExp||C instanceof Function},yn=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jt&&jt===C)){if((!C||typeof C!="object")&&(C={}),C=gc(C),yo=lu.indexOf(C.PARSER_MEDIA_TYPE)===-1?uu:C.PARSER_MEDIA_TYPE,ge=yo==="application/xhtml+xml"?c5:u$,G=Tu(C,"ALLOWED_TAGS")?oo({},C.ALLOWED_TAGS,ge):Ae,q=Tu(C,"ALLOWED_ATTR")?oo({},C.ALLOWED_ATTR,ge):me,qo=Tu(C,"ALLOWED_NAMESPACES")?oo({},C.ALLOWED_NAMESPACES,c5):su,Co=Tu(C,"ADD_URI_SAFE_ATTR")?oo(gc(No),C.ADD_URI_SAFE_ATTR,ge):No,Fo=Tu(C,"ADD_DATA_URI_TAGS")?oo(gc(ko),C.ADD_DATA_URI_TAGS,ge):ko,Ce=Tu(C,"FORBID_CONTENTS")?oo({},C.FORBID_CONTENTS,ge):Qe,be=Tu(C,"FORBID_TAGS")?oo({},C.FORBID_TAGS,ge):gc({}),le=Tu(C,"FORBID_ATTR")?oo({},C.FORBID_ATTR,ge):gc({}),Ne=Tu(C,"USE_PROFILES")?C.USE_PROFILES:!1,Nt=C.ALLOW_ARIA_ATTR!==!1,Vt=C.ALLOW_DATA_ATTR!==!1,Et=C.ALLOW_UNKNOWN_PROTOCOLS||!1,z=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=C.SAFE_FOR_TEMPLATES||!1,ee=C.SAFE_FOR_XML!==!1,oe=C.WHOLE_DOCUMENT||!1,de=C.RETURN_DOM||!1,pe=C.RETURN_DOM_FRAGMENT||!1,te=C.RETURN_TRUSTED_TYPE||!1,ie=C.FORCE_BODY||!1,ne=C.SANITIZE_DOM!==!1,Ge=C.SANITIZE_NAMED_PROPS||!1,we=C.KEEP_CONTENT!==!1,xe=C.IN_PLACE||!1,Se=C.ALLOWED_URI_REGEXP||n2e,kt=C.NAMESPACE||tt,$o=C.MATHML_TEXT_INTEGRATION_POINTS||$o,Ro=C.HTML_INTEGRATION_POINTS||Ro,H=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&Br(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&Br(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),j&&(Vt=!1),pe&&(de=!0),Ne&&(G=oo({},qle),q=[],Ne.html===!0&&(oo(G,Ule),oo(q,Jle)),Ne.svg===!0&&(oo(G,m5),oo(q,f5),oo(q,Z_)),Ne.svgFilters===!0&&(oo(G,h5),oo(q,f5),oo(q,Z_)),Ne.mathMl===!0&&(oo(G,p5),oo(q,Gle),oo(q,Z_))),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?ue.tagCheck=C.ADD_TAGS:(G===Ae&&(G=gc(G)),oo(G,C.ADD_TAGS,ge))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?ue.attributeCheck=C.ADD_ATTR:(q===me&&(q=gc(q)),oo(q,C.ADD_ATTR,ge))),C.ADD_URI_SAFE_ATTR&&oo(Co,C.ADD_URI_SAFE_ATTR,ge),C.FORBID_CONTENTS&&(Ce===Qe&&(Ce=gc(Ce)),oo(Ce,C.FORBID_CONTENTS,ge)),C.ADD_FORBID_CONTENTS&&(Ce===Qe&&(Ce=gc(Ce)),oo(Ce,C.ADD_FORBID_CONTENTS,ge)),we&&(G["#text"]=!0),oe&&oo(G,["html","head","body"]),G.table&&(oo(G,["tbody"]),delete be.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw fT('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fT('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=C.TRUSTED_TYPES_POLICY,x=T.createHTML("")}else T===void 0&&(T=$Ut(h,r)),T!==null&&typeof x=="string"&&(x=T.createHTML(""));is&&is(C),jt=C}},Dr=oo({},[...m5,...h5,...SUt]),$r=oo({},[...p5,...wUt]),du=function(C){let k=S(C);(!k||!k.tagName)&&(k={namespaceURI:kt,tagName:"template"});const B=u$(C.tagName),J=u$(k.tagName);return qo[C.namespaceURI]?C.namespaceURI===Lo?k.namespaceURI===tt?B==="svg":k.namespaceURI===go?B==="svg"&&(J==="annotation-xml"||$o[J]):!!Dr[B]:C.namespaceURI===go?k.namespaceURI===tt?B==="math":k.namespaceURI===Lo?B==="math"&&Ro[J]:!!$r[B]:C.namespaceURI===tt?k.namespaceURI===Lo&&!Ro[J]||k.namespaceURI===go&&!$o[J]?!1:!$r[B]&&(au[B]||!Dr[B]):!!(yo==="application/xhtml+xml"&&qo[C.namespaceURI]):!1},_t=function(C){hT(e.removed,{element:C});try{S(C).removeChild(C)}catch{g(C)}},Mt=function(C,k){try{hT(e.removed,{attribute:k.getAttributeNode(C),from:k})}catch{hT(e.removed,{attribute:null,from:k})}if(k.removeAttribute(C),C==="is")if(de||pe)try{_t(k)}catch{}else try{k.setAttribute(C,"")}catch{}},Rr=function(C){let k=null,B=null;if(ie)C="<remove></remove>"+C;else{const ae=d5(C,/^[\r\n\t ]+/);B=ae&&ae[0]}yo==="application/xhtml+xml"&&kt===tt&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const J=T?T.createHTML(C):C;if(kt===tt)try{k=new m().parseFromString(J,yo)}catch{}if(!k||!k.documentElement){k=F.createDocument(kt,"template",null);try{k.documentElement.innerHTML=Uo?x:J}catch{}}const ye=k.body||k.documentElement;return C&&B&&ye.insertBefore(o.createTextNode(B),ye.childNodes[0]||null),kt===tt?R.call(k,oe?"html":"body")[0]:oe?k.documentElement:ye},Ar=function(C){return D.call(C.ownerDocument||C,C,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Cn=function(C){return C instanceof d&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof c)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},Nr=function(C){return typeof a=="function"&&C instanceof a};function ht(C,k,B){Y_(C,J=>{J.call(e,k,B,jt)})}const Vr=function(C){let k=null;if(ht(E.beforeSanitizeElements,C,null),Cn(C))return _t(C),!0;const B=ge(C.nodeName);if(ht(E.uponSanitizeElement,C,{tagName:B,allowedTags:G}),ee&&C.hasChildNodes()&&!Nr(C.firstElementChild)&&bi(/<[/\w!]/g,C.innerHTML)&&bi(/<[/\w!]/g,C.textContent)||C.nodeType===yT.progressingInstruction||ee&&C.nodeType===yT.comment&&bi(/<[/\w]/g,C.data))return _t(C),!0;if(!(ue.tagCheck instanceof Function&&ue.tagCheck(B))&&(!G[B]||be[B])){if(!be[B]&&Pr(B)&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,B)||H.tagNameCheck instanceof Function&&H.tagNameCheck(B)))return!1;if(we&&!Ce[B]){const J=S(C)||C.parentNode,ye=v(C)||C.childNodes;if(ye&&J){const ae=ye.length;for(let nt=ae-1;nt>=0;--nt){const et=f(ye[nt],!0);et.__removalCount=(C.__removalCount||0)+1,J.insertBefore(et,b(C))}}}return _t(C),!0}return C instanceof l&&!du(C)||(B==="noscript"||B==="noembed"||B==="noframes")&&bi(/<\/no(script|embed|frames)/i,C.innerHTML)?(_t(C),!0):(j&&C.nodeType===yT.text&&(k=C.textContent,Y_([L,A,I],J=>{k=pT(k,J," ")}),C.textContent!==k&&(hT(e.removed,{element:C.cloneNode()}),C.textContent=k)),ht(E.afterSanitizeElements,C,null),!1)},Ir=function(C,k,B){if(ne&&(k==="id"||k==="name")&&(B in o||B in cu))return!1;if(!(Vt&&!le[k]&&bi(W,k))&&!(Nt&&bi(O,k))&&!(ue.attributeCheck instanceof Function&&ue.attributeCheck(k,C))){if(!q[k]||le[k]){if(!(Pr(C)&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,C)||H.tagNameCheck instanceof Function&&H.tagNameCheck(C))&&(H.attributeNameCheck instanceof RegExp&&bi(H.attributeNameCheck,k)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(k,C))||k==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,B)||H.tagNameCheck instanceof Function&&H.tagNameCheck(B))))return!1}else if(!Co[k]&&!bi(Se,pT(B,fe,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&C!=="script"&&yUt(B,"data:")===0&&Fo[C])&&!(Et&&!bi(K,pT(B,fe,"")))&&B)return!1}return!0},Pr=function(C){return C!=="annotation-xml"&&d5(C,Ve)},Mr=function(C){ht(E.beforeSanitizeAttributes,C,null);const{attributes:k}=C;if(!k||Cn(C))return;const B={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let J=k.length;for(;J--;){const ye=k[J],{name:ae,namespaceURI:nt,value:et}=ye,lt=ge(ae),Jo=et;let He=ae==="value"?Jo:CUt(Jo);if(B.attrName=lt,B.attrValue=He,B.keepAttr=!0,B.forceKeepAttr=void 0,ht(E.uponSanitizeAttribute,C,B),He=B.attrValue,Ge&&(lt==="id"||lt==="name")&&(Mt(ae,C),He=Te+He),ee&&bi(/((--!?|])>)|<\/(style|title|textarea)/i,He)){Mt(ae,C);continue}if(lt==="attributename"&&d5(He,"href")){Mt(ae,C);continue}if(B.forceKeepAttr)continue;if(!B.keepAttr){Mt(ae,C);continue}if(!z&&bi(/\/>/i,He)){Mt(ae,C);continue}j&&Y_([L,A,I],Za=>{He=pT(He,Za," ")});const Eo=ge(C.nodeName);if(!Ir(Eo,lt,He)){Mt(ae,C);continue}if(T&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!nt)switch(h.getAttributeType(Eo,lt)){case"TrustedHTML":{He=T.createHTML(He);break}case"TrustedScriptURL":{He=T.createScriptURL(He);break}}if(He!==Jo)try{nt?C.setAttributeNS(nt,ae,He):C.setAttribute(ae,He),Cn(C)?_t(C):Kle(e.removed)}catch{Mt(ae,C)}}ht(E.afterSanitizeAttributes,C,null)},mu=function C(k){let B=null;const J=Ar(k);for(ht(E.beforeSanitizeShadowDOM,k,null);B=J.nextNode();)ht(E.uponSanitizeShadowNode,B,null),Vr(B),Mr(B),B.content instanceof i&&C(B.content);ht(E.afterSanitizeShadowDOM,k,null)};return e.sanitize=function(C){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=null,J=null,ye=null,ae=null;if(Uo=!C,Uo&&(C="<!-->"),typeof C!="string"&&!Nr(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw fT("dirty is not a string, aborting")}else throw fT("toString is not a function");if(!e.isSupported)return C;if(re||yn(k),e.removed=[],typeof C=="string"&&(xe=!1),xe){if(C.nodeName){const lt=ge(C.nodeName);if(!G[lt]||be[lt])throw fT("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof a)B=Rr("<!---->"),J=B.ownerDocument.importNode(C,!0),J.nodeType===yT.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?B=J:B.appendChild(J);else{if(!de&&!j&&!oe&&C.indexOf("<")===-1)return T&&te?T.createHTML(C):C;if(B=Rr(C),!B)return de?null:te?x:""}B&&ie&&_t(B.firstChild);const nt=Ar(xe?C:B);for(;ye=nt.nextNode();)Vr(ye),Mr(ye),ye.content instanceof i&&mu(ye.content);if(xe)return C;if(de){if(pe)for(ae=N.call(B.ownerDocument);B.firstChild;)ae.appendChild(B.firstChild);else ae=B;return(q.shadowroot||q.shadowrootmode)&&(ae=P.call(n,ae,!0)),ae}let et=oe?B.outerHTML:B.innerHTML;return oe&&G["!doctype"]&&B.ownerDocument&&B.ownerDocument.doctype&&B.ownerDocument.doctype.name&&bi(r2e,B.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+B.ownerDocument.doctype.name+`>
|
|
193
|
+
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function CL(t){const{h:e,s:o,v:n,a:r}=t,i=a=>{const l=(a+e/60)%6;return n-n*o*Math.max(Math.min(l,4-l,1),0)},s=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:s[0],g:s[1],b:s[2],a:r}}function nle(t){return CL(BLe(t))}function BLe(t){const{h:e,s:o,l:n,a:r}=t,i=n+o*Math.min(n,1-n),s=i===0?0:2-2*n/i;return{h:e,s,v:i,a:r}}function BWt(t){t=DWt(t);let[e,o,n,r]=bWt(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:o,b:n,a:r}}function DWt(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=qae(qae(t,6),8,"F")),t}function $Wt(t){const e=Math.abs(tle(px(0),px(t)));return Math.abs(tle(px(16777215),px(t)))>Math.min(e,50)?"#fff":"#000"}function jE(t,e){return o=>Object.keys(t).reduce((n,r)=>{const i=typeof t[r]=="object"&&t[r]!=null&&!Array.isArray(t[r])?t[r]:{type:t[r]};return o&&r in o?n[r]={...i,default:o[r]}:n[r]=i,e&&!n[r].source&&(n[r].source=e),n},{})}function UP(t,e){const o=zs();if(!o)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return o}function RWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:UP("injectSelf");const{provides:o}=e;if(o&&t in o)return o[t]}const U9=Symbol.for("vuetify:defaults");function DLe(){const t=xo(U9);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function AWt(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[BF(e)]<"u")}function NWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:DLe();const n=UP("useDefaults");if(e=e??n.type.name??n.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const r=Q(()=>o.value?.[t._as??e]),i=new Proxy(t,{get(l,u){const c=Reflect.get(l,u);if(u==="class"||u==="style")return[r.value?.[u],c].filter(h=>h!=null);if(AWt(n.vnode,u))return c;const d=r.value?.[u];if(d!==void 0)return d;const m=o.value?.global?.[u];return m!==void 0?m:c}}),s=Yo();tr(()=>{if(r.value){const l=Object.entries(r.value).filter(u=>{let[c]=u;return c.startsWith(c[0].toUpperCase())});s.value=l.length?Object.fromEntries(l):void 0}else s.value=void 0});function a(){const l=RWt(U9,n);er(U9,Q(()=>s.value?_Le(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function VWt(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=jE(t.props??{},t.name)();const e=Object.keys(t.props).filter(o=>o!=="class"&&o!=="style");t.filterProps=function(o){return yWt(o,e)},t.props._as=String,t.setup=function(o,n){const r=DLe();if(!r.value)return t._setup(o,n);const{props:i,provideSubDefaults:s}=NWt(o,o._as??t.name,r),a=t._setup(i,n);return s(),a}}return t}function IWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?VWt:X)(e)}function PWt(t){const e=UP("useRender");e.render=t}function MWt(t){return vWt(()=>{const{class:e,style:o}=WWt(t);return{colorClasses:e,colorStyles:o}})}function OWt(t){const{colorClasses:e,colorStyles:o}=MWt(()=>({background:Sr(t)}));return{backgroundColorClasses:e,backgroundColorStyles:o}}function WWt(t){const e=Sr(t),o=[],n={};if(e.background)if(K9(e.background)){if(n.backgroundColor=e.background,!e.text&&EWt(e.background)){const r=px(e.background);if(r.a==null||r.a===1){const i=$Wt(r);n.color=i,n.caretColor=i}}}else o.push(`bg-${e.background}`);return e.text&&(K9(e.text)?(n.color=e.text,n.caretColor=e.text):o.push(`text-${e.text}`)),{class:o,style:n}}const HWt=jE({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function zWt(t){return{dimensionStyles:Q(()=>{const e={},o=mb(t.height),n=mb(t.maxHeight),r=mb(t.maxWidth),i=mb(t.minHeight),s=mb(t.minWidth),a=mb(t.width);return o!=null&&(e.height=o),n!=null&&(e.maxHeight=n),r!=null&&(e.maxWidth=r),i!=null&&(e.minHeight=i),s!=null&&(e.minWidth=s),a!=null&&(e.width=a),e})}}const jWt=jE({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function KWt(t){return{elevationClasses:Ye(()=>{const e=Vo(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const UWt=Symbol.for("vuetify:locale");function qWt(){const t=xo(UWt);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}const rle=Symbol.for("vuetify:theme"),JWt=jE({theme:String},"theme");function GWt(t){UP("provideTheme");const e=xo(rle,null);if(!e)throw new Error("Could not find Vuetify theme injection");const o=Ye(()=>t.theme??e.name.value),n=Ye(()=>e.themes.value[o.value]),r=Ye(()=>e.isDisabled?void 0:`${e.prefix}theme--${o.value}`),i={...e,name:o,current:n,themeClasses:r};return er(rle,i),i}const YWt={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 ZWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y("div",{class:U(["v-skeleton-loader__bone",`v-skeleton-loader__${t}`])},[e])}function ile(t){const[e,o]=t.split("@");return Array.from({length:o}).map(()=>qP(e))}function qP(t){let e=[];if(!t)return e;const o=YWt[t];if(t!==o){if(t.includes(","))return sle(t);if(t.includes("@"))return ile(t);o.includes(",")?e=sle(o):o.includes("@")?e=ile(o):o&&e.push(qP(o))}return[ZWt(t,e)]}function sle(t){return t.replace(/\s/g,"").split(",").map(qP)}const XWt=jE({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...HWt(),...jWt(),...JWt()},"VSkeletonLoader");IWt()({name:"VSkeletonLoader",inheritAttrs:!1,props:XWt(),setup(t,e){let{attrs:o,slots:n}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=OWt(()=>t.color),{dimensionStyles:s}=zWt(t),{elevationClasses:a}=KWt(t),{themeClasses:l}=GWt(t),{t:u}=qWt(),c=Q(()=>qP(CWt(t.type).join(",")));return PWt(()=>{const d=!n.default||t.loading,m=t.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(t.loadingText),role:"alert"};return d?y("div",pn({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},l.value,r.value,a.value],style:[i.value,s.value]},m,o),[c.value]):y(ce,null,[n.default?.()])}),{}}});var Wi="top",Fa="bottom",ka="right",Hi="left",JP="auto",tw=[Wi,Fa,ka,Hi],zC="start",Kv="end",$Le="clippingParents",BG="viewport",t1="popper",RLe="reference",q9=tw.reduce(function(t,e){return t.concat([e+"-"+zC,e+"-"+Kv])},[]),DG=[].concat(tw,[JP]).reduce(function(t,e){return t.concat([e,e+"-"+zC,e+"-"+Kv])},[]),ALe="beforeRead",NLe="read",VLe="afterRead",ILe="beforeMain",PLe="main",MLe="afterMain",OLe="beforeWrite",WLe="write",HLe="afterWrite",zLe=[ALe,NLe,VLe,ILe,PLe,MLe,OLe,WLe,HLe];function ld(t){return t?(t.nodeName||"").toLowerCase():null}function La(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function jC(t){var e=La(t).Element;return t instanceof e||t instanceof Element}function El(t){var e=La(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function $G(t){if(typeof ShadowRoot>"u")return!1;var e=La(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function QWt(t){var e=t.state;Object.keys(e.elements).forEach(function(o){var n=e.styles[o]||{},r=e.attributes[o]||{},i=e.elements[o];!El(i)||!ld(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(s){var a=r[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function eHt(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],i=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:o[n]),a=s.reduce(function(l,u){return l[u]="",l},{});!El(r)||!ld(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}const RG={name:"applyStyles",enabled:!0,phase:"write",fn:QWt,effect:eHt,requires:["computeStyles"]};function Kc(t){return t.split("-")[0]}var Gy=Math.max,u3=Math.min,Uv=Math.round;function J9(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function jLe(){return!/^((?!chrome|android).)*safari/i.test(J9())}function qv(t,e,o){e===void 0&&(e=!1),o===void 0&&(o=!1);var n=t.getBoundingClientRect(),r=1,i=1;e&&El(t)&&(r=t.offsetWidth>0&&Uv(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Uv(n.height)/t.offsetHeight||1);var s=jC(t)?La(t):window,a=s.visualViewport,l=!jLe()&&o,u=(n.left+(l&&a?a.offsetLeft:0))/r,c=(n.top+(l&&a?a.offsetTop:0))/i,d=n.width/r,m=n.height/i;return{width:d,height:m,top:c,right:u+d,bottom:c+m,left:u,x:u,y:c}}function AG(t){var e=qv(t),o=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:n}}function KLe(t,e){var o=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(o&&$G(o)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function th(t){return La(t).getComputedStyle(t)}function tHt(t){return["table","td","th"].indexOf(ld(t))>=0}function og(t){return((jC(t)?t.ownerDocument:t.document)||window.document).documentElement}function GP(t){return ld(t)==="html"?t:t.assignedSlot||t.parentNode||($G(t)?t.host:null)||og(t)}function ale(t){return!El(t)||th(t).position==="fixed"?null:t.offsetParent}function oHt(t){var e=/firefox/i.test(J9()),o=/Trident/i.test(J9());if(o&&El(t)){var n=th(t);if(n.position==="fixed")return null}var r=GP(t);for($G(r)&&(r=r.host);El(r)&&["html","body"].indexOf(ld(r))<0;){var i=th(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 KE(t){for(var e=La(t),o=ale(t);o&&tHt(o)&&th(o).position==="static";)o=ale(o);return o&&(ld(o)==="html"||ld(o)==="body"&&th(o).position==="static")?e:o||oHt(t)||e}function NG(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function DF(t,e,o){return Gy(t,u3(e,o))}function nHt(t,e,o){var n=DF(t,e,o);return n>o?o:n}function ULe(){return{top:0,right:0,bottom:0,left:0}}function qLe(t){return Object.assign({},ULe(),t)}function JLe(t,e){return e.reduce(function(o,n){return o[n]=t,o},{})}var rHt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,qLe(typeof t!="number"?t:JLe(t,tw))};function iHt(t){var e,o=t.state,n=t.name,r=t.options,i=o.elements.arrow,s=o.modifiersData.popperOffsets,a=Kc(o.placement),l=NG(a),u=[Hi,ka].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=rHt(r.padding,o),m=AG(i),h=l==="y"?Wi:Hi,p=l==="y"?Fa:ka,f=o.rects.reference[c]+o.rects.reference[l]-s[l]-o.rects.popper[c],g=s[l]-o.rects.reference[l],b=KE(i),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=f/2-g/2,T=d[h],x=v-m[c]-d[p],F=v/2-m[c]/2+S,D=DF(T,F,x),N=l;o.modifiersData[n]=(e={},e[N]=D,e.centerOffset=D-F,e)}}function sHt(t){var e=t.state,o=t.options,n=o.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||KLe(e.elements.popper,r)&&(e.elements.arrow=r))}const GLe={name:"arrow",enabled:!0,phase:"main",fn:iHt,effect:sHt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jv(t){return t.split("-")[1]}var aHt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lHt(t,e){var o=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:Uv(o*r)/r||0,y:Uv(n*r)/r||0}}function lle(t){var e,o=t.popper,n=t.popperRect,r=t.placement,i=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,d=t.isFixed,m=s.x,h=m===void 0?0:m,p=s.y,f=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:f}):{x:h,y:f};h=g.x,f=g.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),S=Hi,T=Wi,x=window;if(u){var F=KE(o),D="clientHeight",N="clientWidth";if(F===La(o)&&(F=og(o),th(F).position!=="static"&&a==="absolute"&&(D="scrollHeight",N="scrollWidth")),F=F,r===Wi||(r===Hi||r===ka)&&i===Kv){T=Fa;var R=d&&F===x&&x.visualViewport?x.visualViewport.height:F[D];f-=R-n.height,f*=l?1:-1}if(r===Hi||(r===Wi||r===Fa)&&i===Kv){S=ka;var P=d&&F===x&&x.visualViewport?x.visualViewport.width:F[N];h-=P-n.width,h*=l?1:-1}}var E=Object.assign({position:a},u&&aHt),L=c===!0?lHt({x:h,y:f},La(o)):{x:h,y:f};if(h=L.x,f=L.y,l){var A;return Object.assign({},E,(A={},A[T]=v?"0":"",A[S]=b?"0":"",A.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+f+"px)":"translate3d("+h+"px, "+f+"px, 0)",A))}return Object.assign({},E,(e={},e[T]=v?f+"px":"",e[S]=b?h+"px":"",e.transform="",e))}function uHt(t){var e=t.state,o=t.options,n=o.gpuAcceleration,r=n===void 0?!0:n,i=o.adaptive,s=i===void 0?!0:i,a=o.roundOffsets,l=a===void 0?!0:a,u={placement:Kc(e.placement),variation:Jv(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,lle(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,lle(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const VG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uHt,data:{}};var z_={passive:!0};function cHt(t){var e=t.state,o=t.instance,n=t.options,r=n.scroll,i=r===void 0?!0:r,s=n.resize,a=s===void 0?!0:s,l=La(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",o.update,z_)}),a&&l.addEventListener("resize",o.update,z_),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",o.update,z_)}),a&&l.removeEventListener("resize",o.update,z_)}}const IG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cHt,data:{}};var dHt={left:"right",right:"left",bottom:"top",top:"bottom"};function i$(t){return t.replace(/left|right|bottom|top/g,function(e){return dHt[e]})}var mHt={start:"end",end:"start"};function ule(t){return t.replace(/start|end/g,function(e){return mHt[e]})}function PG(t){var e=La(t),o=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:o,scrollTop:n}}function MG(t){return qv(og(t)).left+PG(t).scrollLeft}function hHt(t,e){var o=La(t),n=og(t),r=o.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;var u=jLe();(u||!u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a+MG(t),y:l}}function pHt(t){var e,o=og(t),n=PG(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=Gy(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Gy(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+MG(t),l=-n.scrollTop;return th(r||o).direction==="rtl"&&(a+=Gy(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function OG(t){var e=th(t),o=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function YLe(t){return["html","body","#document"].indexOf(ld(t))>=0?t.ownerDocument.body:El(t)&&OG(t)?t:YLe(GP(t))}function $F(t,e){var o;e===void 0&&(e=[]);var n=YLe(t),r=n===((o=t.ownerDocument)==null?void 0:o.body),i=La(n),s=r?[i].concat(i.visualViewport||[],OG(n)?n:[]):n,a=e.concat(s);return r?a:a.concat($F(GP(s)))}function G9(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function fHt(t,e){var o=qv(t,!1,e==="fixed");return o.top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o}function cle(t,e,o){return e===BG?G9(hHt(t,o)):jC(e)?fHt(e,o):G9(pHt(og(t)))}function gHt(t){var e=$F(GP(t)),o=["absolute","fixed"].indexOf(th(t).position)>=0,n=o&&El(t)?KE(t):t;return jC(n)?e.filter(function(r){return jC(r)&&KLe(r,n)&&ld(r)!=="body"}):[]}function yHt(t,e,o,n){var r=e==="clippingParents"?gHt(t):[].concat(e),i=[].concat(r,[o]),s=i[0],a=i.reduce(function(l,u){var c=cle(t,u,n);return l.top=Gy(c.top,l.top),l.right=u3(c.right,l.right),l.bottom=u3(c.bottom,l.bottom),l.left=Gy(c.left,l.left),l},cle(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ZLe(t){var e=t.reference,o=t.element,n=t.placement,r=n?Kc(n):null,i=n?Jv(n):null,s=e.x+e.width/2-o.width/2,a=e.y+e.height/2-o.height/2,l;switch(r){case Wi:l={x:s,y:e.y-o.height};break;case Fa:l={x:s,y:e.y+e.height};break;case ka:l={x:e.x+e.width,y:a};break;case Hi:l={x:e.x-o.width,y:a};break;default:l={x:e.x,y:e.y}}var u=r?NG(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case zC:l[u]=l[u]-(e[c]/2-o[c]/2);break;case Kv:l[u]=l[u]+(e[c]/2-o[c]/2);break}}return l}function Gv(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=n===void 0?t.placement:n,i=o.strategy,s=i===void 0?t.strategy:i,a=o.boundary,l=a===void 0?$Le:a,u=o.rootBoundary,c=u===void 0?BG:u,d=o.elementContext,m=d===void 0?t1:d,h=o.altBoundary,p=h===void 0?!1:h,f=o.padding,g=f===void 0?0:f,b=qLe(typeof g!="number"?g:JLe(g,tw)),v=m===t1?RLe:t1,S=t.rects.popper,T=t.elements[p?v:m],x=yHt(jC(T)?T:T.contextElement||og(t.elements.popper),l,c,s),F=qv(t.elements.reference),D=ZLe({reference:F,element:S,placement:r}),N=G9(Object.assign({},S,D)),R=m===t1?N:F,P={top:x.top-R.top+b.top,bottom:R.bottom-x.bottom+b.bottom,left:x.left-R.left+b.left,right:R.right-x.right+b.right},E=t.modifiersData.offset;if(m===t1&&E){var L=E[r];Object.keys(P).forEach(function(A){var I=[ka,Fa].indexOf(A)>=0?1:-1,W=[Wi,Fa].indexOf(A)>=0?"y":"x";P[A]+=L[W]*I})}return P}function CHt(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=o.boundary,i=o.rootBoundary,s=o.padding,a=o.flipVariations,l=o.allowedAutoPlacements,u=l===void 0?DG:l,c=Jv(n),d=c?a?q9:q9.filter(function(p){return Jv(p)===c}):tw,m=d.filter(function(p){return u.indexOf(p)>=0});m.length===0&&(m=d);var h=m.reduce(function(p,f){return p[f]=Gv(t,{placement:f,boundary:r,rootBoundary:i,padding:s})[Kc(f)],p},{});return Object.keys(h).sort(function(p,f){return h[p]-h[f]})}function bHt(t){if(Kc(t)===JP)return[];var e=i$(t);return[ule(t),e,ule(e)]}function vHt(t){var e=t.state,o=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!0:s,l=o.fallbackPlacements,u=o.padding,c=o.boundary,d=o.rootBoundary,m=o.altBoundary,h=o.flipVariations,p=h===void 0?!0:h,f=o.allowedAutoPlacements,g=e.options.placement,b=Kc(g),v=b===g,S=l||(v||!p?[i$(g)]:bHt(g)),T=[g].concat(S).reduce(function(me,H){return me.concat(Kc(H)===JP?CHt(e,{placement:H,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:f}):H)},[]),x=e.rects.reference,F=e.rects.popper,D=new Map,N=!0,R=T[0],P=0;P<T.length;P++){var E=T[P],L=Kc(E),A=Jv(E)===zC,I=[Wi,Fa].indexOf(L)>=0,W=I?"width":"height",O=Gv(e,{placement:E,boundary:c,rootBoundary:d,altBoundary:m,padding:u}),K=I?A?ka:Hi:A?Fa:Wi;x[W]>F[W]&&(K=i$(K));var fe=i$(K),Ve=[];if(i&&Ve.push(O[L]<=0),a&&Ve.push(O[K]<=0,O[fe]<=0),Ve.every(function(me){return me})){R=E,N=!1;break}D.set(E,Ve)}if(N)for(var Se=p?3:1,G=function(me){var H=T.find(function(be){var le=D.get(be);if(le)return le.slice(0,me).every(function(ue){return ue})});if(H)return R=H,"break"},Ae=Se;Ae>0;Ae--){var q=G(Ae);if(q==="break")break}e.placement!==R&&(e.modifiersData[n]._skip=!0,e.placement=R,e.reset=!0)}}const XLe={name:"flip",enabled:!0,phase:"main",fn:vHt,requiresIfExists:["offset"],data:{_skip:!1}};function dle(t,e,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-e.height-o.y,right:t.right-e.width+o.x,bottom:t.bottom-e.height+o.y,left:t.left-e.width-o.x}}function mle(t){return[Wi,ka,Fa,Hi].some(function(e){return t[e]>=0})}function SHt(t){var e=t.state,o=t.name,n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=Gv(e,{elementContext:"reference"}),a=Gv(e,{altBoundary:!0}),l=dle(s,n),u=dle(a,r,i),c=mle(l),d=mle(u);e.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const QLe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:SHt};function wHt(t,e,o){var n=Kc(t),r=[Hi,Wi].indexOf(n)>=0?-1:1,i=typeof o=="function"?o(Object.assign({},e,{placement:t})):o,s=i[0],a=i[1];return s=s||0,a=(a||0)*r,[Hi,ka].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function THt(t){var e=t.state,o=t.options,n=t.name,r=o.offset,i=r===void 0?[0,0]:r,s=DG.reduce(function(c,d){return c[d]=wHt(d,e.rects,i),c},{}),a=s[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}const eEe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:THt};function xHt(t){var e=t.state,o=t.name;e.modifiersData[o]=ZLe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const WG={name:"popperOffsets",enabled:!0,phase:"read",fn:xHt,data:{}};function FHt(t){return t==="x"?"y":"x"}function kHt(t){var e=t.state,o=t.options,n=t.name,r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!1:s,l=o.boundary,u=o.rootBoundary,c=o.altBoundary,d=o.padding,m=o.tether,h=m===void 0?!0:m,p=o.tetherOffset,f=p===void 0?0:p,g=Gv(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Kc(e.placement),v=Jv(e.placement),S=!v,T=NG(b),x=FHt(T),F=e.modifiersData.popperOffsets,D=e.rects.reference,N=e.rects.popper,R=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,P=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(F){if(i){var A,I=T==="y"?Wi:Hi,W=T==="y"?Fa:ka,O=T==="y"?"height":"width",K=F[T],fe=K+g[I],Ve=K-g[W],Se=h?-N[O]/2:0,G=v===zC?D[O]:N[O],Ae=v===zC?-N[O]:-D[O],q=e.elements.arrow,me=h&&q?AG(q):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ULe(),be=H[I],le=H[W],ue=DF(0,D[O],me[O]),Nt=S?D[O]/2-Se-ue-be-P.mainAxis:G-ue-be-P.mainAxis,Vt=S?-D[O]/2+Se+ue+le+P.mainAxis:Ae+ue+le+P.mainAxis,Et=e.elements.arrow&&KE(e.elements.arrow),z=Et?T==="y"?Et.clientTop||0:Et.clientLeft||0:0,j=(A=E?.[T])!=null?A:0,ee=K+Nt-j-z,oe=K+Vt-j,re=DF(h?u3(fe,ee):fe,K,h?Gy(Ve,oe):Ve);F[T]=re,L[T]=re-K}if(a){var ie,de=T==="x"?Wi:Hi,pe=T==="x"?Fa:ka,te=F[x],ne=x==="y"?"height":"width",Ge=te+g[de],Te=te-g[pe],we=[Wi,Hi].indexOf(b)!==-1,xe=(ie=E?.[x])!=null?ie:0,Ne=we?Ge:te-D[ne]-N[ne]-xe+P.altAxis,Ce=we?te+D[ne]+N[ne]-xe-P.altAxis:Te,Qe=h&&we?nHt(Ne,te,Ce):DF(h?Ne:Ge,te,h?Ce:Te);F[x]=Qe,L[x]=Qe-te}e.modifiersData[n]=L}}const tEe={name:"preventOverflow",enabled:!0,phase:"main",fn:kHt,requiresIfExists:["offset"]};function LHt(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function EHt(t){return t===La(t)||!El(t)?PG(t):LHt(t)}function _Ht(t){var e=t.getBoundingClientRect(),o=Uv(e.width)/t.offsetWidth||1,n=Uv(e.height)/t.offsetHeight||1;return o!==1||n!==1}function BHt(t,e,o){o===void 0&&(o=!1);var n=El(e),r=El(e)&&_Ht(e),i=og(e),s=qv(t,r,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!o)&&((ld(e)!=="body"||OG(i))&&(a=EHt(e)),El(e)?(l=qv(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=MG(i))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function DHt(t){var e=new Map,o=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function r(i){o.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!o.has(a)){var l=e.get(a);l&&r(l)}}),n.push(i)}return t.forEach(function(i){o.has(i.name)||r(i)}),n}function $Ht(t){var e=DHt(t);return zLe.reduce(function(o,n){return o.concat(e.filter(function(r){return r.phase===n}))},[])}function RHt(t){var e;return function(){return e||(e=new Promise(function(o){Promise.resolve().then(function(){e=void 0,o(t())})})),e}}function AHt(t){var e=t.reduce(function(o,n){var r=o[n.name];return o[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,o},{});return Object.keys(e).map(function(o){return e[o]})}var hle={placement:"bottom",modifiers:[],strategy:"absolute"};function ple(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function YP(t){t===void 0&&(t={});var e=t,o=e.defaultModifiers,n=o===void 0?[]:o,r=e.defaultOptions,i=r===void 0?hle:r;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},hle,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},c=[],d=!1,m={state:u,setOptions:function(f){var g=typeof f=="function"?f(u.options):f;p(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:jC(s)?$F(s):s.contextElement?$F(s.contextElement):[],popper:$F(a)};var b=$Ht(AHt([].concat(n,u.options.modifiers)));return u.orderedModifiers=b.filter(function(v){return v.enabled}),h(),m.update()},forceUpdate:function(){if(!d){var f=u.elements,g=f.reference,b=f.popper;if(ple(g,b)){u.rects={reference:BHt(g,KE(b),u.options.strategy==="fixed"),popper:AG(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var S=u.orderedModifiers[v],T=S.fn,x=S.options,F=x===void 0?{}:x,D=S.name;typeof T=="function"&&(u=T({state:u,options:F,name:D,instance:m})||u)}}}},update:RHt(function(){return new Promise(function(f){m.forceUpdate(),f(u)})}),destroy:function(){p(),d=!0}};if(!ple(s,a))return m;m.setOptions(l).then(function(f){!d&&l.onFirstUpdate&&l.onFirstUpdate(f)});function h(){u.orderedModifiers.forEach(function(f){var g=f.name,b=f.options,v=b===void 0?{}:b,S=f.effect;if(typeof S=="function"){var T=S({state:u,name:g,instance:m,options:v}),x=function(){};c.push(T||x)}})}function p(){c.forEach(function(f){return f()}),c=[]}return m}}var NHt=YP(),VHt=[IG,WG,VG,RG],IHt=YP({defaultModifiers:VHt}),PHt=[IG,WG,VG,RG,eEe,XLe,tEe,GLe,QLe],HG=YP({defaultModifiers:PHt});const oEe=Object.freeze(Object.defineProperty({__proto__:null,afterMain:MLe,afterRead:VLe,afterWrite:HLe,applyStyles:RG,arrow:GLe,auto:JP,basePlacements:tw,beforeMain:ILe,beforeRead:ALe,beforeWrite:OLe,bottom:Fa,clippingParents:$Le,computeStyles:VG,createPopper:HG,createPopperBase:NHt,createPopperLite:IHt,detectOverflow:Gv,end:Kv,eventListeners:IG,flip:XLe,hide:QLe,left:Hi,main:PLe,modifierPhases:zLe,offset:eEe,placements:DG,popper:t1,popperGenerator:YP,popperOffsets:WG,preventOverflow:tEe,read:NLe,reference:RLe,right:ka,start:zC,top:Wi,variationPlacements:q9,viewport:BG,write:WLe},Symbol.toStringTag,{value:"Module"})),Jh=new Map,J4={set(t,e,o){Jh.has(t)||Jh.set(t,new Map);const n=Jh.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,o)},get(t,e){return Jh.has(t)&&Jh.get(t).get(e)||null},remove(t,e){if(!Jh.has(t))return;const o=Jh.get(t);o.delete(e),o.size===0&&Jh.delete(t)}},MHt=1e6,OHt=1e3,Y9="transitionend",nEe=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,o)=>`#${CSS.escape(o)}`)),t),WHt=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),HHt=t=>{do t+=Math.floor(Math.random()*MHt);while(document.getElementById(t));return t},zHt=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:o}=window.getComputedStyle(t);const n=Number.parseFloat(e),r=Number.parseFloat(o);return!n&&!r?0:(e=e.split(",")[0],o=o.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(o))*OHt)},rEe=t=>{t.dispatchEvent(new Event(Y9))},Bm=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Ef=t=>Bm(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(nEe(t)):null,ow=t=>{if(!Bm(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",o=t.closest("details:not([open])");if(!o)return e;if(o!==t){const n=t.closest("summary");if(n&&n.parentNode!==o||n===null)return!1}return e},_f=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",iEe=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?iEe(t.parentNode):null},c3=()=>{},UE=t=>{t.offsetHeight},sEe=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,G4=[],jHt=t=>{document.readyState==="loading"?(G4.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of G4)e()}),G4.push(t)):t()},Ml=()=>document.documentElement.dir==="rtl",tu=t=>{jHt(()=>{const e=sEe();if(e){const o=t.NAME,n=e.fn[o];e.fn[o]=t.jQueryInterface,e.fn[o].Constructor=t,e.fn[o].noConflict=()=>(e.fn[o]=n,t.jQueryInterface)}})},xs=(t,e=[],o=t)=>typeof t=="function"?t.call(...e):o,aEe=(t,e,o=!0)=>{if(!o){xs(t);return}const n=zHt(e)+5;let r=!1;const i=({target:s})=>{s===e&&(r=!0,e.removeEventListener(Y9,i),xs(t))};e.addEventListener(Y9,i),setTimeout(()=>{r||rEe(e)},n)},zG=(t,e,o,n)=>{const r=t.length;let i=t.indexOf(e);return i===-1?!o&&n?t[r-1]:t[0]:(i+=o?1:-1,n&&(i=(i+r)%r),t[Math.max(0,Math.min(i,r-1))])},KHt=/[^.]*(?=\..*)\.|.*/,UHt=/\..*/,qHt=/::\d+$/,Y4={};let fle=1;const lEe={mouseenter:"mouseover",mouseleave:"mouseout"},JHt=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 uEe(t,e){return e&&`${e}::${fle++}`||t.uidEvent||fle++}function cEe(t){const e=uEe(t);return t.uidEvent=e,Y4[e]=Y4[e]||{},Y4[e]}function GHt(t,e){return function o(n){return jG(n,{delegateTarget:t}),o.oneOff&&Ee.off(t,n.type,e),e.apply(t,[n])}}function YHt(t,e,o){return function n(r){const i=t.querySelectorAll(e);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return jG(r,{delegateTarget:s}),n.oneOff&&Ee.off(t,r.type,e,o),o.apply(s,[r])}}function dEe(t,e,o=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===o)}function mEe(t,e,o){const n=typeof e=="string",r=n?o:e||o;let i=hEe(t);return JHt.has(i)||(i=t),[n,r,i]}function gle(t,e,o,n,r){if(typeof e!="string"||!t)return;let[i,s,a]=mEe(e,o,n);e in lEe&&(s=(h=>function(p){if(!p.relatedTarget||p.relatedTarget!==p.delegateTarget&&!p.delegateTarget.contains(p.relatedTarget))return h.call(this,p)})(s));const l=cEe(t),u=l[a]||(l[a]={}),c=dEe(u,s,i?o:null);if(c){c.oneOff=c.oneOff&&r;return}const d=uEe(s,e.replace(KHt,"")),m=i?YHt(t,o,s):GHt(t,s);m.delegationSelector=i?o:null,m.callable=s,m.oneOff=r,m.uidEvent=d,u[d]=m,t.addEventListener(a,m,i)}function Z9(t,e,o,n,r){const i=dEe(e[o],n,r);i&&(t.removeEventListener(o,i,!!r),delete e[o][i.uidEvent])}function ZHt(t,e,o,n){const r=e[o]||{};for(const[i,s]of Object.entries(r))i.includes(n)&&Z9(t,e,o,s.callable,s.delegationSelector)}function hEe(t){return t=t.replace(UHt,""),lEe[t]||t}const Ee={on(t,e,o,n){gle(t,e,o,n,!1)},one(t,e,o,n){gle(t,e,o,n,!0)},off(t,e,o,n){if(typeof e!="string"||!t)return;const[r,i,s]=mEe(e,o,n),a=s!==e,l=cEe(t),u=l[s]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;Z9(t,l,s,i,r?o:null);return}if(c)for(const d of Object.keys(l))ZHt(t,l,d,e.slice(1));for(const[d,m]of Object.entries(u)){const h=d.replace(qHt,"");(!a||e.includes(h))&&Z9(t,l,s,m.callable,m.delegationSelector)}},trigger(t,e,o){if(typeof e!="string"||!t)return null;const n=sEe(),r=hEe(e),i=e!==r;let s=null,a=!0,l=!0,u=!1;i&&n&&(s=n.Event(e,o),n(t).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=jG(new Event(e,{bubbles:a,cancelable:!0}),o);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function jG(t,e={}){for(const[o,n]of Object.entries(e))try{t[o]=n}catch{Object.defineProperty(t,o,{configurable:!0,get(){return n}})}return t}function yle(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 Z4(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Dm={setDataAttribute(t,e,o){t.setAttribute(`data-bs-${Z4(e)}`,o)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Z4(e)}`)},getDataAttributes(t){if(!t)return{};const e={},o=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of o){let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),e[r]=yle(t.dataset[n])}return e},getDataAttribute(t,e){return yle(t.getAttribute(`data-bs-${Z4(e)}`))}};let qE=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,o){const n=Bm(o)?Dm.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...Bm(o)?Dm.getDataAttributes(o):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,o=this.constructor.DefaultType){for(const[n,r]of Object.entries(o)){const i=e[n],s=Bm(i)?"element":WHt(i);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${r}".`)}}};const XHt="5.3.8";let Xu=class extends qE{constructor(e,o){super(),e=Ef(e),e&&(this._element=e,this._config=this._getConfig(o),J4.set(this._element,this.constructor.DATA_KEY,this))}dispose(){J4.remove(this._element,this.constructor.DATA_KEY),Ee.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,o,n=!0){aEe(e,o,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return J4.get(Ef(e),this.DATA_KEY)}static getOrCreateInstance(e,o={}){return this.getInstance(e)||new this(e,typeof o=="object"?o:null)}static get VERSION(){return XHt}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 X4=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let o=t.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),e=o&&o!=="#"?o.trim():null}return e?e.split(",").map(o=>nEe(o)).join(","):null},vt={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(o=>o.matches(e))},parents(t,e){const o=[];let n=t.parentNode.closest(e);for(;n;)o.push(n),n=n.parentNode.closest(e);return o},prev(t,e){let o=t.previousElementSibling;for(;o;){if(o.matches(e))return[o];o=o.previousElementSibling}return[]},next(t,e){let o=t.nextElementSibling;for(;o;){if(o.matches(e))return[o];o=o.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(o=>!_f(o)&&ow(o))},getSelectorFromElement(t){const e=X4(t);return e&&vt.findOne(e)?e:null},getElementFromSelector(t){const e=X4(t);return e?vt.findOne(e):null},getMultipleElementsFromSelector(t){const e=X4(t);return e?vt.find(e):[]}},ZP=(t,e="hide")=>{const o=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;Ee.on(document,o,`[data-bs-dismiss="${n}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),_f(this))return;const i=vt.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(i)[e]()})},QHt="alert",e7t="bs.alert",pEe=`.${e7t}`,t7t=`close${pEe}`,o7t=`closed${pEe}`,n7t="fade",r7t="show";let fEe=class gEe extends Xu{static get NAME(){return QHt}close(){if(Ee.trigger(this._element,t7t).defaultPrevented)return;this._element.classList.remove(r7t);const e=this._element.classList.contains(n7t);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Ee.trigger(this._element,o7t),this.dispose()}static jQueryInterface(e){return this.each(function(){const o=gEe.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};ZP(fEe,"close");tu(fEe);const i7t="button",s7t="bs.button",a7t=`.${s7t}`,l7t=".data-api",u7t="active",Cle='[data-bs-toggle="button"]',c7t=`click${a7t}${l7t}`;let yEe=class CEe extends Xu{static get NAME(){return i7t}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(u7t))}static jQueryInterface(e){return this.each(function(){const o=CEe.getOrCreateInstance(this);e==="toggle"&&o[e]()})}};Ee.on(document,c7t,Cle,t=>{t.preventDefault();const e=t.target.closest(Cle);yEe.getOrCreateInstance(e).toggle()});tu(yEe);const d7t="swipe",nw=".bs.swipe",m7t=`touchstart${nw}`,h7t=`touchmove${nw}`,p7t=`touchend${nw}`,f7t=`pointerdown${nw}`,g7t=`pointerup${nw}`,y7t="touch",C7t="pen",b7t="pointer-event",v7t=40,S7t={endCallback:null,leftCallback:null,rightCallback:null},w7t={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};let ble=class bEe extends qE{constructor(e,o){super(),this._element=e,!(!e||!bEe.isSupported())&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return S7t}static get DefaultType(){return w7t}static get NAME(){return d7t}dispose(){Ee.off(this._element,nw)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),xs(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=v7t)return;const o=e/this._deltaX;this._deltaX=0,o&&xs(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ee.on(this._element,f7t,e=>this._start(e)),Ee.on(this._element,g7t,e=>this._end(e)),this._element.classList.add(b7t)):(Ee.on(this._element,m7t,e=>this._start(e)),Ee.on(this._element,h7t,e=>this._move(e)),Ee.on(this._element,p7t,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===C7t||e.pointerType===y7t)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}};const T7t="carousel",x7t="bs.carousel",ng=`.${x7t}`,vEe=".data-api",F7t="ArrowLeft",k7t="ArrowRight",L7t=500,dT="next",pb="prev",o1="left",s$="right",E7t=`slide${ng}`,Q4=`slid${ng}`,_7t=`keydown${ng}`,B7t=`mouseenter${ng}`,D7t=`mouseleave${ng}`,$7t=`dragstart${ng}`,R7t=`load${ng}${vEe}`,A7t=`click${ng}${vEe}`,SEe="carousel",j_="active",N7t="slide",V7t="carousel-item-end",I7t="carousel-item-start",P7t="carousel-item-next",M7t="carousel-item-prev",wEe=".active",TEe=".carousel-item",O7t=wEe+TEe,W7t=".carousel-item img",H7t=".carousel-indicators",z7t="[data-bs-slide], [data-bs-slide-to]",j7t='[data-bs-ride="carousel"]',K7t={[F7t]:s$,[k7t]:o1},U7t={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},q7t={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};let KG=class xEe extends Xu{constructor(e,o){super(e,o),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=vt.findOne(H7t,this._element),this._addEventListeners(),this._config.ride===SEe&&this.cycle()}static get Default(){return U7t}static get DefaultType(){return q7t}static get NAME(){return T7t}next(){this._slide(dT)}nextWhenVisible(){!document.hidden&&ow(this._element)&&this.next()}prev(){this._slide(pb)}pause(){this._isSliding&&rEe(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Ee.one(this._element,Q4,()=>this.cycle());return}this.cycle()}}to(e){const o=this._getItems();if(e>o.length-1||e<0)return;if(this._isSliding){Ee.one(this._element,Q4,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const r=e>n?dT:pb;this._slide(r,o[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Ee.on(this._element,_7t,e=>this._keydown(e)),this._config.pause==="hover"&&(Ee.on(this._element,B7t,()=>this.pause()),Ee.on(this._element,D7t,()=>this._maybeEnableCycle())),this._config.touch&&ble.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of vt.find(W7t,this._element))Ee.on(o,$7t,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(o1)),rightCallback:()=>this._slide(this._directionToOrder(s$)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),L7t+this._config.interval))}};this._swipeHelper=new ble(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const o=K7t[e.key];o&&(e.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const o=vt.findOne(wEe,this._indicatorsElement);o.classList.remove(j_),o.removeAttribute("aria-current");const n=vt.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(j_),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const o=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=o||this._config.defaultInterval}_slide(e,o=null){if(this._isSliding)return;const n=this._getActive(),r=e===dT,i=o||zG(this._getItems(),n,r,this._config.wrap);if(i===n)return;const s=this._getItemIndex(i),a=m=>Ee.trigger(this._element,m,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:s});if(a(E7t).defaultPrevented||!n||!i)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=r?I7t:V7t,c=r?P7t:M7t;i.classList.add(c),UE(i),n.classList.add(u),i.classList.add(u);const d=()=>{i.classList.remove(u,c),i.classList.add(j_),n.classList.remove(j_,c,u),this._isSliding=!1,a(Q4)};this._queueCallback(d,n,this._isAnimated()),l&&this.cycle()}_isAnimated(){return this._element.classList.contains(N7t)}_getActive(){return vt.findOne(O7t,this._element)}_getItems(){return vt.find(TEe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ml()?e===o1?pb:dT:e===o1?dT:pb}_orderToDirection(e){return Ml()?e===pb?o1:s$:e===pb?s$:o1}static jQueryInterface(e){return this.each(function(){const o=xEe.getOrCreateInstance(this,e);if(typeof e=="number"){o.to(e);return}if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,A7t,z7t,function(t){const e=vt.getElementFromSelector(this);if(!e||!e.classList.contains(SEe))return;t.preventDefault();const o=KG.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){o.to(n),o._maybeEnableCycle();return}if(Dm.getDataAttribute(this,"slide")==="next"){o.next(),o._maybeEnableCycle();return}o.prev(),o._maybeEnableCycle()});Ee.on(window,R7t,()=>{const t=vt.find(j7t);for(const e of t)KG.getOrCreateInstance(e)});tu(KG);const J7t="collapse",G7t="bs.collapse",JE=`.${G7t}`,Y7t=".data-api",Z7t=`show${JE}`,X7t=`shown${JE}`,Q7t=`hide${JE}`,e8t=`hidden${JE}`,t8t=`click${JE}${Y7t}`,e5="show",H1="collapse",K_="collapsing",o8t="collapsed",n8t=`:scope .${H1} .${H1}`,r8t="collapse-horizontal",i8t="width",s8t="height",a8t=".collapse.show, .collapse.collapsing",X9='[data-bs-toggle="collapse"]',l8t={parent:null,toggle:!0},u8t={parent:"(null|element)",toggle:"boolean"};let FEe=class Q9 extends Xu{constructor(e,o){super(e,o),this._isTransitioning=!1,this._triggerArray=[];const n=vt.find(X9);for(const r of n){const i=vt.getSelectorFromElement(r),s=vt.find(i).filter(a=>a===this._element);i!==null&&s.length&&this._triggerArray.push(r)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return l8t}static get DefaultType(){return u8t}static get NAME(){return J7t}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(a8t).filter(i=>i!==this._element).map(i=>Q9.getOrCreateInstance(i,{toggle:!1}))),e.length&&e[0]._isTransitioning||Ee.trigger(this._element,Z7t).defaultPrevented)return;for(const i of e)i.hide();const o=this._getDimension();this._element.classList.remove(H1),this._element.classList.add(K_),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(K_),this._element.classList.add(H1,e5),this._element.style[o]="",Ee.trigger(this._element,X7t)},r=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[o]=`${this._element[r]}px`}hide(){if(this._isTransitioning||!this._isShown()||Ee.trigger(this._element,Q7t).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,UE(this._element),this._element.classList.add(K_),this._element.classList.remove(H1,e5);for(const n of this._triggerArray){const r=vt.getElementFromSelector(n);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(K_),this._element.classList.add(H1),Ee.trigger(this._element,e8t)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}_isShown(e=this._element){return e.classList.contains(e5)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Ef(e.parent),e}_getDimension(){return this._element.classList.contains(r8t)?i8t:s8t}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(X9);for(const o of e){const n=vt.getElementFromSelector(o);n&&this._addAriaAndCollapsedClass([o],this._isShown(n))}}_getFirstLevelChildren(e){const o=vt.find(n8t,this._config.parent);return vt.find(e,this._config.parent).filter(n=>!o.includes(n))}_addAriaAndCollapsedClass(e,o){if(e.length)for(const n of e)n.classList.toggle(o8t,!o),n.setAttribute("aria-expanded",o)}static jQueryInterface(e){const o={};return typeof e=="string"&&/show|hide/.test(e)&&(o.toggle=!1),this.each(function(){const n=Q9.getOrCreateInstance(this,o);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}};Ee.on(document,t8t,X9,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of vt.getMultipleElementsFromSelector(this))FEe.getOrCreateInstance(e,{toggle:!1}).toggle()});tu(FEe);const vle="dropdown",c8t="bs.dropdown",S0=`.${c8t}`,UG=".data-api",d8t="Escape",Sle="Tab",m8t="ArrowUp",wle="ArrowDown",h8t=2,p8t=`hide${S0}`,f8t=`hidden${S0}`,g8t=`show${S0}`,y8t=`shown${S0}`,kEe=`click${S0}${UG}`,LEe=`keydown${S0}${UG}`,C8t=`keyup${S0}${UG}`,n1="show",b8t="dropup",v8t="dropend",S8t="dropstart",w8t="dropup-center",T8t="dropdown-center",my='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',x8t=`${my}.${n1}`,a$=".dropdown-menu",F8t=".navbar",k8t=".navbar-nav",L8t=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",E8t=Ml()?"top-end":"top-start",_8t=Ml()?"top-start":"top-end",B8t=Ml()?"bottom-end":"bottom-start",D8t=Ml()?"bottom-start":"bottom-end",$8t=Ml()?"left-start":"right-start",R8t=Ml()?"right-start":"left-start",A8t="top",N8t="bottom",V8t={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},I8t={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let rw=class l$ extends Xu{constructor(e,o){super(e,o),this._popper=null,this._parent=this._element.parentNode,this._menu=vt.next(this._element,a$)[0]||vt.prev(this._element,a$)[0]||vt.findOne(a$,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return V8t}static get DefaultType(){return I8t}static get NAME(){return vle}toggle(){return this._isShown()?this.hide():this.show()}show(){if(_f(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Ee.trigger(this._element,g8t,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(k8t))for(const o of[].concat(...document.body.children))Ee.on(o,"mouseover",c3);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(n1),this._element.classList.add(n1),Ee.trigger(this._element,y8t,e)}}hide(){if(_f(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Ee.trigger(this._element,p8t,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",c3);this._popper&&this._popper.destroy(),this._menu.classList.remove(n1),this._element.classList.remove(n1),this._element.setAttribute("aria-expanded","false"),Dm.removeDataAttribute(this._menu,"popper"),Ee.trigger(this._element,f8t,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Bm(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${vle.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof oEe>"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:Bm(this._config.reference)?e=Ef(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const o=this._getPopperConfig();this._popper=HG(e,this._menu,o)}_isShown(){return this._menu.classList.contains(n1)}_getPlacement(){const e=this._parent;if(e.classList.contains(v8t))return $8t;if(e.classList.contains(S8t))return R8t;if(e.classList.contains(w8t))return A8t;if(e.classList.contains(T8t))return N8t;const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(b8t)?o?_8t:E8t:o?D8t:B8t}_detectNavbar(){return this._element.closest(F8t)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Dm.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...xs(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:o}){const n=vt.find(L8t,this._menu).filter(r=>ow(r));n.length&&zG(n,o,e===wle,!n.includes(o)).focus()}static jQueryInterface(e){return this.each(function(){const o=l$.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}static clearMenus(e){if(e.button===h8t||e.type==="keyup"&&e.key!==Sle)return;const o=vt.find(x8t);for(const n of o){const r=l$.getInstance(n);if(!r||r._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(r._menu);if(i.includes(r._element)||r._config.autoClose==="inside"&&!s||r._config.autoClose==="outside"&&s||r._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Sle||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:r._element};e.type==="click"&&(a.clickEvent=e),r._completeHide(a)}}static dataApiKeydownHandler(e){const o=/input|textarea/i.test(e.target.tagName),n=e.key===d8t,r=[m8t,wle].includes(e.key);if(!r&&!n||o&&!n)return;e.preventDefault();const i=this.matches(my)?this:vt.prev(this,my)[0]||vt.next(this,my)[0]||vt.findOne(my,e.delegateTarget.parentNode),s=l$.getOrCreateInstance(i);if(r){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}};Ee.on(document,LEe,my,rw.dataApiKeydownHandler);Ee.on(document,LEe,a$,rw.dataApiKeydownHandler);Ee.on(document,kEe,rw.clearMenus);Ee.on(document,C8t,rw.clearMenus);Ee.on(document,kEe,my,function(t){t.preventDefault(),rw.getOrCreateInstance(this).toggle()});tu(rw);const EEe="backdrop",P8t="fade",Tle="show",xle=`mousedown.bs.${EEe}`,M8t={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},O8t={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};let _Ee=class extends qE{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return M8t}static get DefaultType(){return O8t}static get NAME(){return EEe}show(e){if(!this._config.isVisible){xs(e);return}this._append();const o=this._getElement();this._config.isAnimated&&UE(o),o.classList.add(Tle),this._emulateAnimation(()=>{xs(e)})}hide(e){if(!this._config.isVisible){xs(e);return}this._getElement().classList.remove(Tle),this._emulateAnimation(()=>{this.dispose(),xs(e)})}dispose(){this._isAppended&&(Ee.off(this._element,xle),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(P8t),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Ef(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Ee.on(e,xle,()=>{xs(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){aEe(e,this._getElement(),this._config.isAnimated)}};const W8t="focustrap",H8t="bs.focustrap",d3=`.${H8t}`,z8t=`focusin${d3}`,j8t=`keydown.tab${d3}`,K8t="Tab",U8t="forward",Fle="backward",q8t={autofocus:!0,trapElement:null},J8t={autofocus:"boolean",trapElement:"element"};let BEe=class extends qE{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return q8t}static get DefaultType(){return J8t}static get NAME(){return W8t}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ee.off(document,d3),Ee.on(document,z8t,e=>this._handleFocusin(e)),Ee.on(document,j8t,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Ee.off(document,d3))}_handleFocusin(e){const{trapElement:o}=this._config;if(e.target===document||e.target===o||o.contains(e.target))return;const n=vt.focusableChildren(o);n.length===0?o.focus():this._lastTabNavDirection===Fle?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===K8t&&(this._lastTabNavDirection=e.shiftKey?Fle:U8t)}};const kle=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Lle=".sticky-top",U_="padding-right",Ele="margin-right";let ez=class{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,U_,o=>o+e),this._setElementAttributes(kle,U_,o=>o+e),this._setElementAttributes(Lle,Ele,o=>o-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,U_),this._resetElementAttributes(kle,U_),this._resetElementAttributes(Lle,Ele)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,o,n){const r=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+r)return;this._saveInitialAttribute(s,o);const a=window.getComputedStyle(s).getPropertyValue(o);s.style.setProperty(o,`${n(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,o){const n=e.style.getPropertyValue(o);n&&Dm.setDataAttribute(e,o,n)}_resetElementAttributes(e,o){const n=r=>{const i=Dm.getDataAttribute(r,o);if(i===null){r.style.removeProperty(o);return}Dm.removeDataAttribute(r,o),r.style.setProperty(o,i)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,o){if(Bm(e)){o(e);return}for(const n of vt.find(e,this._element))o(n)}};const G8t="modal",Y8t="bs.modal",Ol=`.${Y8t}`,Z8t=".data-api",X8t="Escape",Q8t=`hide${Ol}`,e9t=`hidePrevented${Ol}`,DEe=`hidden${Ol}`,$Ee=`show${Ol}`,t9t=`shown${Ol}`,o9t=`resize${Ol}`,n9t=`click.dismiss${Ol}`,r9t=`mousedown.dismiss${Ol}`,i9t=`keydown.dismiss${Ol}`,s9t=`click${Ol}${Z8t}`,_le="modal-open",a9t="fade",Ble="show",t5="modal-static",l9t=".modal.show",u9t=".modal-dialog",c9t=".modal-body",d9t='[data-bs-toggle="modal"]',m9t={backdrop:!0,focus:!0,keyboard:!0},h9t={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let m3=class REe extends Xu{constructor(e,o){super(e,o),this._dialog=vt.findOne(u9t,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ez,this._addEventListeners()}static get Default(){return m9t}static get DefaultType(){return h9t}static get NAME(){return G8t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Ee.trigger(this._element,$Ee,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(_le),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Ee.trigger(this._element,Q8t).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ble),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ee.off(window,Ol),Ee.off(this._dialog,Ol),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new _Ee({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new BEe({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=vt.findOne(c9t,this._dialog);o&&(o.scrollTop=0),UE(this._element),this._element.classList.add(Ble);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ee.trigger(this._element,t9t,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Ee.on(this._element,i9t,e=>{if(e.key===X8t){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Ee.on(window,o9t,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ee.on(this._element,r9t,e=>{Ee.one(this._element,n9t,o=>{if(!(this._element!==e.target||this._element!==o.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(_le),this._resetAdjustments(),this._scrollBar.reset(),Ee.trigger(this._element,DEe)})}_isAnimated(){return this._element.classList.contains(a9t)}_triggerBackdropTransition(){if(Ee.trigger(this._element,e9t).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(t5)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(t5),this._queueCallback(()=>{this._element.classList.remove(t5),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._scrollBar.getWidth(),n=o>0;if(n&&!e){const r=Ml()?"paddingLeft":"paddingRight";this._element.style[r]=`${o}px`}if(!n&&e){const r=Ml()?"paddingRight":"paddingLeft";this._element.style[r]=`${o}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,o){return this.each(function(){const n=REe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](o)}})}};Ee.on(document,s9t,d9t,function(t){const e=vt.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ee.one(e,$Ee,n=>{n.defaultPrevented||Ee.one(e,DEe,()=>{ow(this)&&this.focus()})});const o=vt.findOne(l9t);o&&m3.getInstance(o).hide(),m3.getOrCreateInstance(e).toggle(this)});ZP(m3);tu(m3);const p9t="offcanvas",f9t="bs.offcanvas",wh=`.${f9t}`,AEe=".data-api",g9t=`load${wh}${AEe}`,y9t="Escape",Dle="show",$le="showing",Rle="hiding",C9t="offcanvas-backdrop",NEe=".offcanvas.show",b9t=`show${wh}`,v9t=`shown${wh}`,S9t=`hide${wh}`,Ale=`hidePrevented${wh}`,VEe=`hidden${wh}`,w9t=`resize${wh}`,T9t=`click${wh}${AEe}`,x9t=`keydown.dismiss${wh}`,F9t='[data-bs-toggle="offcanvas"]',k9t={backdrop:!0,keyboard:!0,scroll:!1},L9t={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};let Yv=class IEe extends Xu{constructor(e,o){super(e,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return k9t}static get DefaultType(){return L9t}static get NAME(){return p9t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Ee.trigger(this._element,b9t,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new ez().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add($le);const o=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Dle),this._element.classList.remove($le),Ee.trigger(this._element,v9t,{relatedTarget:e})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||Ee.trigger(this._element,S9t).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Rle),this._backdrop.hide();const e=()=>{this._element.classList.remove(Dle,Rle),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new ez().reset(),Ee.trigger(this._element,VEe)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Ee.trigger(this._element,Ale);return}this.hide()},o=!!this._config.backdrop;return new _Ee({className:C9t,isVisible:o,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:o?e:null})}_initializeFocusTrap(){return new BEe({trapElement:this._element})}_addEventListeners(){Ee.on(this._element,x9t,e=>{if(e.key===y9t){if(this._config.keyboard){this.hide();return}Ee.trigger(this._element,Ale)}})}static jQueryInterface(e){return this.each(function(){const o=IEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};Ee.on(document,T9t,F9t,function(t){const e=vt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),_f(this))return;Ee.one(e,VEe,()=>{ow(this)&&this.focus()});const o=vt.findOne(NEe);o&&o!==e&&Yv.getInstance(o).hide(),Yv.getOrCreateInstance(e).toggle(this)});Ee.on(window,g9t,()=>{for(const t of vt.find(NEe))Yv.getOrCreateInstance(t).show()});Ee.on(window,w9t,()=>{for(const t of vt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Yv.getOrCreateInstance(t).hide()});ZP(Yv);tu(Yv);const E9t=/^aria-[\w-]*$/i,PEe={"*":["class","dir","id","lang","role",E9t],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:[]},_9t=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),B9t=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,D9t=(t,e)=>{const o=t.nodeName.toLowerCase();return e.includes(o)?_9t.has(o)?!!B9t.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(o))};function $9t(t,e,o){if(!t.length)return t;if(o&&typeof o=="function")return o(t);const n=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...n.body.querySelectorAll("*"));for(const i of r){const s=i.nodeName.toLowerCase();if(!Object.keys(e).includes(s)){i.remove();continue}const a=[].concat(...i.attributes),l=[].concat(e["*"]||[],e[s]||[]);for(const u of a)D9t(u,l)||i.removeAttribute(u.nodeName)}return n.body.innerHTML}const R9t="TemplateFactory",A9t={allowList:PEe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},N9t={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},V9t={entry:"(string|element|function|null)",selector:"(string|element)"};let I9t=class extends qE{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return A9t}static get DefaultType(){return N9t}static get NAME(){return R9t}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[r,i]of Object.entries(this._config.content))this._setContent(e,i,r);const o=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&o.classList.add(...n.split(" ")),o}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[o,n]of Object.entries(e))super._typeCheckConfig({selector:o,entry:n},V9t)}_setContent(e,o,n){const r=vt.findOne(n,e);if(r){if(o=this._resolvePossibleFunction(o),!o){r.remove();return}if(Bm(o)){this._putElementInTemplate(Ef(o),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(o);return}r.textContent=o}}_maybeSanitize(e){return this._config.sanitize?$9t(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return xs(e,[void 0,this])}_putElementInTemplate(e,o){if(this._config.html){o.innerHTML="",o.append(e);return}o.textContent=e.textContent}};const P9t="tooltip",M9t=new Set(["sanitize","allowList","sanitizeFn"]),o5="fade",O9t="modal",q_="show",W9t=".tooltip-inner",Nle=`.${O9t}`,Vle="hide.bs.modal",mT="hover",n5="focus",r5="click",H9t="manual",z9t="hide",j9t="hidden",K9t="show",U9t="shown",q9t="inserted",J9t="click",G9t="focusin",Y9t="focusout",Z9t="mouseenter",X9t="mouseleave",Q9t={AUTO:"auto",TOP:"top",RIGHT:Ml()?"left":"right",BOTTOM:"bottom",LEFT:Ml()?"right":"left"},ezt={allowList:PEe,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"},tzt={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};let XP=class MEe extends Xu{constructor(e,o){if(typeof oEe>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ezt}static get DefaultType(){return tzt}static get NAME(){return P9t}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),Ee.off(this._element.closest(Nle),Vle,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=Ee.trigger(this._element,this.constructor.eventName(K9t)),o=(iEe(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!o)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Ee.trigger(this._element,this.constructor.eventName(q9t))),this._popper=this._createPopper(n),n.classList.add(q_),"ontouchstart"in document.documentElement)for(const s of[].concat(...document.body.children))Ee.on(s,"mouseover",c3);const i=()=>{Ee.trigger(this._element,this.constructor.eventName(U9t)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(i,this.tip,this._isAnimated())}hide(){if(!this._isShown()||Ee.trigger(this._element,this.constructor.eventName(z9t)).defaultPrevented)return;if(this._getTipElement().classList.remove(q_),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))Ee.off(o,"mouseover",c3);this._activeTrigger[r5]=!1,this._activeTrigger[n5]=!1,this._activeTrigger[mT]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ee.trigger(this._element,this.constructor.eventName(j9t)))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const o=this._getTemplateFactory(e).toHtml();if(!o)return null;o.classList.remove(o5,q_),o.classList.add(`bs-${this.constructor.NAME}-auto`);const n=HHt(this.constructor.NAME).toString();return o.setAttribute("id",n),this._isAnimated()&&o.classList.add(o5),o}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new I9t({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[W9t]: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(o5)}_isShown(){return this.tip&&this.tip.classList.contains(q_)}_createPopper(e){const o=xs(this._config.placement,[this,e,this._element]),n=Q9t[o.toUpperCase()];return HG(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_resolvePossibleFunction(e){return xs(e,[this._element,this._element])}_getPopperConfig(e){const o={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...o,...xs(this._config.popperConfig,[void 0,o])}}_setListeners(){const e=this._config.trigger.split(" ");for(const o of e)if(o==="click")Ee.on(this._element,this.constructor.eventName(J9t),this._config.selector,n=>{const r=this._initializeOnDelegatedTarget(n);r._activeTrigger[r5]=!(r._isShown()&&r._activeTrigger[r5]),r.toggle()});else if(o!==H9t){const n=o===mT?this.constructor.eventName(Z9t):this.constructor.eventName(G9t),r=o===mT?this.constructor.eventName(X9t):this.constructor.eventName(Y9t);Ee.on(this._element,n,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?n5:mT]=!0,s._enter()}),Ee.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?n5:mT]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},Ee.on(this._element.closest(Nle),Vle,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,o){clearTimeout(this._timeout),this._timeout=setTimeout(e,o)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const o=Dm.getDataAttributes(this._element);for(const n of Object.keys(o))M9t.has(n)&&delete o[n];return e={...o,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Ef(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[o,n]of Object.entries(this._config))this.constructor.Default[o]!==n&&(e[o]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const o=MEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};tu(XP);const ozt="popover",nzt=".popover-header",rzt=".popover-body",izt={...XP.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"},szt={...XP.DefaultType,content:"(null|string|element|function)"};let azt=class OEe extends XP{static get Default(){return izt}static get DefaultType(){return szt}static get NAME(){return ozt}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[nzt]:this._getTitle(),[rzt]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const o=OEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};tu(azt);const lzt="scrollspy",uzt="bs.scrollspy",qG=`.${uzt}`,czt=".data-api",dzt=`activate${qG}`,Ile=`click${qG}`,mzt=`load${qG}${czt}`,hzt="dropdown-item",fb="active",pzt='[data-bs-spy="scroll"]',i5="[href]",fzt=".nav, .list-group",Ple=".nav-link",gzt=".nav-item",yzt=".list-group-item",Czt=`${Ple}, ${gzt} > ${Ple}, ${yzt}`,bzt=".dropdown",vzt=".dropdown-toggle",Szt={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},wzt={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};let WEe=class HEe extends Xu{constructor(e,o){super(e,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Szt}static get DefaultType(){return wzt}static get NAME(){return lzt}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Ef(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(o=>Number.parseFloat(o))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Ee.off(this._config.target,Ile),Ee.on(this._config.target,Ile,i5,e=>{const o=this._observableSections.get(e.target.hash);if(o){e.preventDefault();const n=this._rootElement||window,r=o.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:"smooth"});return}n.scrollTop=r}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(o=>this._observerCallback(o),e)}_observerCallback(e){const o=s=>this._targetLinks.get(`#${s.target.id}`),n=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(o(s))},r=(this._rootElement||document.documentElement).scrollTop,i=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(o(s));continue}const a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(n(s),!r)return;continue}!i&&!a&&n(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=vt.find(i5,this._config.target);for(const o of e){if(!o.hash||_f(o))continue;const n=vt.findOne(decodeURI(o.hash),this._element);ow(n)&&(this._targetLinks.set(decodeURI(o.hash),o),this._observableSections.set(o.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(fb),this._activateParents(e),Ee.trigger(this._element,dzt,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(hzt)){vt.findOne(vzt,e.closest(bzt)).classList.add(fb);return}for(const o of vt.parents(e,fzt))for(const n of vt.prev(o,Czt))n.classList.add(fb)}_clearActiveClass(e){e.classList.remove(fb);const o=vt.find(`${i5}.${fb}`,e);for(const n of o)n.classList.remove(fb)}static jQueryInterface(e){return this.each(function(){const o=HEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(window,mzt,()=>{for(const t of vt.find(pzt))WEe.getOrCreateInstance(t)});tu(WEe);const Tzt="tab",xzt="bs.tab",w0=`.${xzt}`,Fzt=`hide${w0}`,kzt=`hidden${w0}`,Lzt=`show${w0}`,Ezt=`shown${w0}`,_zt=`click${w0}`,Bzt=`keydown${w0}`,Dzt=`load${w0}`,$zt="ArrowLeft",Mle="ArrowRight",Rzt="ArrowUp",Ole="ArrowDown",s5="Home",Wle="End",hy="active",Hle="fade",a5="show",Azt="dropdown",zEe=".dropdown-toggle",Nzt=".dropdown-menu",l5=`:not(${zEe})`,Vzt='.list-group, .nav, [role="tablist"]',Izt=".nav-item, .list-group-item",Pzt=`.nav-link${l5}, .list-group-item${l5}, [role="tab"]${l5}`,jEe='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',u5=`${Pzt}, ${jEe}`,Mzt=`.${hy}[data-bs-toggle="tab"], .${hy}[data-bs-toggle="pill"], .${hy}[data-bs-toggle="list"]`;let JG=class tz extends Xu{constructor(e){super(e),this._parent=this._element.closest(Vzt),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ee.on(this._element,Bzt,o=>this._keydown(o)))}static get NAME(){return Tzt}show(){const e=this._element;if(this._elemIsActive(e))return;const o=this._getActiveElem(),n=o?Ee.trigger(o,Fzt,{relatedTarget:e}):null;Ee.trigger(e,Lzt,{relatedTarget:o}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(o,e),this._activate(e,o))}_activate(e,o){if(!e)return;e.classList.add(hy),this._activate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(a5);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Ee.trigger(e,Ezt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Hle))}_deactivate(e,o){if(!e)return;e.classList.remove(hy),e.blur(),this._deactivate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(a5);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Ee.trigger(e,kzt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Hle))}_keydown(e){if(![$zt,Mle,Rzt,Ole,s5,Wle].includes(e.key))return;e.stopPropagation(),e.preventDefault();const o=this._getChildren().filter(r=>!_f(r));let n;if([s5,Wle].includes(e.key))n=o[e.key===s5?0:o.length-1];else{const r=[Mle,Ole].includes(e.key);n=zG(o,e.target,r,!0)}n&&(n.focus({preventScroll:!0}),tz.getOrCreateInstance(n).show())}_getChildren(){return vt.find(u5,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,o){this._setAttributeIfNotExists(e,"role","tablist");for(const n of o)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const o=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",o),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),o||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const o=vt.getElementFromSelector(e);o&&(this._setAttributeIfNotExists(o,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(o,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,o){const n=this._getOuterElement(e);if(!n.classList.contains(Azt))return;const r=(i,s)=>{const a=vt.findOne(i,n);a&&a.classList.toggle(s,o)};r(zEe,hy),r(Nzt,a5),n.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(e,o,n){e.hasAttribute(o)||e.setAttribute(o,n)}_elemIsActive(e){return e.classList.contains(hy)}_getInnerElement(e){return e.matches(u5)?e:vt.findOne(u5,e)}_getOuterElement(e){return e.closest(Izt)||e}static jQueryInterface(e){return this.each(function(){const o=tz.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(document,_zt,jEe,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!_f(this)&&JG.getOrCreateInstance(this).show()});Ee.on(window,Dzt,()=>{for(const t of vt.find(Mzt))JG.getOrCreateInstance(t)});tu(JG);const Ozt="toast",Wzt="bs.toast",rg=`.${Wzt}`,Hzt=`mouseover${rg}`,zzt=`mouseout${rg}`,jzt=`focusin${rg}`,Kzt=`focusout${rg}`,Uzt=`hide${rg}`,qzt=`hidden${rg}`,Jzt=`show${rg}`,Gzt=`shown${rg}`,Yzt="fade",zle="hide",J_="show",G_="showing",Zzt={animation:"boolean",autohide:"boolean",delay:"number"},Xzt={animation:!0,autohide:!0,delay:5e3};let KEe=class UEe extends Xu{constructor(e,o){super(e,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Xzt}static get DefaultType(){return Zzt}static get NAME(){return Ozt}show(){if(Ee.trigger(this._element,Jzt).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Yzt);const e=()=>{this._element.classList.remove(G_),Ee.trigger(this._element,Gzt),this._maybeScheduleHide()};this._element.classList.remove(zle),UE(this._element),this._element.classList.add(J_,G_),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||Ee.trigger(this._element,Uzt).defaultPrevented)return;const e=()=>{this._element.classList.add(zle),this._element.classList.remove(G_,J_),Ee.trigger(this._element,qzt)};this._element.classList.add(G_),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(J_),super.dispose()}isShown(){return this._element.classList.contains(J_)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,o){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=o;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=o;break}}if(o){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Ee.on(this._element,Hzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,zzt,e=>this._onInteraction(e,!1)),Ee.on(this._element,jzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,Kzt,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const o=UEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};ZP(KEe);tu(KEe);const QP=t=>({Match:e=>{for(const o in t)if(t[o]!==void 0)return e[o](t[o]);throw Error("")}}),Qzt=t=>{throw new Error("Didn't expect to get here"+t)},ejt=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"];Sh.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}});Sh.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()}}});Sh.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()}}});Sh.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}});Sh.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}});Sh.create({name:"unsubscribeLink",priority:1e3,addOptions(){return{HTMLAttributes:{"data-type":"unsubscribe-link",class:"rich-text__unsubscribe-link"}}},parseHTML(){return[{tag:'span[data-type="unsubscribe-link"]'}]},renderHTML({HTMLAttributes:t}){return["span",xa(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:o,to:n}=e.selection,r=e.doc.textBetween(o,n," ");return e.doc.nodeAt(o)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:o,to:o+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}});Sh.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=o=>o.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=o=>o.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:o})},"Mod-u":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})},"Mod-U":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})}}}});Wo.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{const e=t.style.fontFamily.split(",").map(o=>o.trim()).map(o=>o.replace(/^['"]|['"]$/g,"")).map(o=>o.replace(/ /g,""));return ejt.find(o=>e.includes(o))||null},renderHTML:t=>t.fontFamily?{style:`font-family: ${t.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:t=>({chain:e})=>e().setMark("textStyle",{fontFamily:t}).run(),unsetFontFamily:()=>({chain:t})=>t().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}});const tjt=t=>new Promise((e,o)=>{const n=new Image;n.onload=()=>{e({width:n.naturalWidth,height:n.naturalHeight})},n.onerror=o,n.src=t});Sd.create({name:"image",addOptions(){return{inline:!0,allowBase64:!1,HTMLAttributes:{}}},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes(){return{src:{default:null},alt:{default:null},width:{default:null},height:{default:null},isRetina:{default:!1}}},parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:t}){return["img",xa(this.options.HTMLAttributes,{src:t.src,alt:t.alt,title:t.title,width:t.isRetina?t.width/2:t.width,height:t.isRetina?t.height/2:t.height,isRetina:t.isRetina})]},addCommands(){return{setImage:t=>({commands:e})=>e.insertContent({type:this.name,attrs:t})}},addInputRules(){return[q4t({find:/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,type:this.type,getAttributes:t=>{const[,,e,o,n]=t;return{src:o,alt:e,title:n}}})]},addProseMirrorPlugins(){return[new On({view:t=>((async()=>{const{state:e,dispatch:o}=t;e.doc.descendants((n,r)=>{if(n.type.name===this.name){const{src:i,width:s,height:a}=n.attrs;i&&(!s||!a)&&tjt(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...n.attrs,width:l.width,height:l.height});o(u)})}})})(),{})})]}});const qEe=t=>Object.fromEntries(Object.entries(t).filter(([e,o])=>o!==void 0)),ojt=t=>QP(t),njt=t=>QP(t),rjt=t=>QP(t),ijt=t=>QP(t),sjt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n===r),ajt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n<r),ljt=t=>({predicate:e,context:o})=>Promise.all([t.numberExpressionEvaluator({numberExpression:e.Left,context:o}),t.numberExpressionEvaluator({numberExpression:e.Right,context:o})]).then(([n,r])=>n>r),ujt=t=>{const e=sjt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=ljt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=ajt({numberExpressionEvaluator:t.numberExpressionEvaluator});return({numberPredicate:r,context:i})=>ijt(r).Match({Equal:s=>e({predicate:s,context:i}),GreaterThan:s=>o({predicate:s,context:i}),LessThan:s=>n({predicate:s,context:i})})},cjt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Right,context:o})]).then(([n,r])=>n===r),djt=t=>({predicate:e,context:o})=>Promise.all([t.stringExpressionEvaluator({stringExpression:e.Left,context:o}),t.stringExpressionEvaluator({stringExpression:e.Contains,context:o})]).then(([n,r])=>n.includes(r)),mjt=t=>{const e=cjt({stringExpressionEvaluator:t.stringExpressionEvaluator}),o=djt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({stringPredicate:n,context:r})=>rjt(n).Match({Contains:i=>o({predicate:i,context:r}),Equal:i=>e({predicate:i,context:r})})},hjt=t=>{const e=ujt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=mjt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({predicate:n,context:r})=>njt(n).Match({NumberPredicate:i=>e({numberPredicate:i,context:r}),StringPredicate:i=>o({stringPredicate:i,context:r})})},pjt=t=>{const e=hjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=({boolExpression:n,context:r})=>ojt(n).Match({AndExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.every(a=>a)),OrExpression:i=>Promise.all(i.Expressions.map(s=>o({boolExpression:s,context:r}))).then(s=>s.some(a=>a)),NotExpression:async i=>!await o({boolExpression:i.Expression,context:r}),Predicate:i=>e({predicate:i,context:r})});return o},fjt=t=>({localeKey:t.localeKey,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin}),gjt=t=>({postGetThemeLibrary:t.themeLibraryBffClient.postGetThemeLibrary,postGetComponentLibrary:t.componentLibraryBffClient.postGetComponentLibrary}),yjt=t=>{const e="https://cdn.retailrocket.net/api/1.0/partner";return async({context:o,expression:n})=>t.numberExpressionEvaluator({numberExpression:n.ProductId,context:o}).then(r=>{const i="/"+t.partnerId+"/item/"+r+"/picture/?format=png&width="+n.ImageSize.Width+"&height="+n.ImageSize.Height+"&scale=both";return t.productImageResizerUrl?t.productImageResizerUrl+i:e+i})},Cjt=t=>({localeKey:t.localeKey}),bjt=t=>({localeKey:t.localeKey}),vjt=t=>({localeKey:t.localeKey,saveTemplateErrorNotificationModalWindowDeps:bjt({localeKey:t.localeKey})}),Sjt=t=>({appSettingsModifierPlugin:t.appSettingsModifierPlugin,resetTemplateButtonDeps:Cjt({localeKey:t.localeKey}),saveTemplateButtonDeps:vjt({localeKey:t.localeKey})}),wjt=t=>({localeKey:t.localeKey}),Tjt=t=>({localeKey:t.localeKey}),xjt=t=>({localeKey:t.localeKey,preheaderSubjectUpdateModalWindowDeps:Tjt({localeKey:t.localeKey})}),Fjt=t=>({exportMenuDeps:Sjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),toggleDeviceToolbarDeps:wjt({localeKey:t.localeKey}),preheaderSubjectUpdateButtonDeps:xjt({localeKey:t.localeKey})}),kjt=t=>({sectionItemId:t.sectionItemId,sectionItemName:t.sectionItemName,theme:JSON.parse(t.theme.json)}),Ljt=t=>({sectionId:t.sectionId,sectionName:t.sectionName,sectionItems:t.sectionItems.map(e=>kjt(e))}),Ejt=t=>async()=>(await t.getThemeLibraryHttpClient({body:{partnerId:t.partnerId}})).body.sections.map(e=>Ljt(e)),_jt=t=>async e=>(await t.postCreateThemeLibrarySectionItem({body:{partnerId:t.partnerId,parentSectionId:e.parentSectionId,sectionItemName:e.sectionItemName,theme:{json:JSON.stringify(e.theme)}}})).status===200?"Success":"Fail",Bjt=t=>({sectionId:t.sectionId,sectionName:t.sectionName}),JEe=t=>async()=>(await t.postGetThemeLibrarySections({body:{partnerId:t.partnerId}})).body.sections.map(e=>Bjt(e)),Djt=t=>({localeKey:t.localeKey,addThemeSectionItem:_jt({partnerId:t.partnerId,postCreateThemeLibrarySectionItem:t.addThemeLibrarySectionItemModalWindowBffClient.postCreateThemeLibrarySectionItem}),getThemeLibrarySections:JEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.addThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),$jt=t=>async e=>{await t.deleteThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},Rjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItem:$jt({partnerId:t.partnerId,deleteThemeLibrarySectionItem:t.deleteThemeLibrarySectionItemModalWindowBffClient.postDeleteThemeLibrarySectionItem}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),Ajt=t=>async e=>{await t.updateThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},Njt=t=>({localeKey:t.localeKey,updateThemeLibrarySectionItem:Ajt({partnerId:t.partnerId,updateThemeLibrarySectionItem:t.editThemeLibrarySectionItemModalWindowBffClient.postUpdateThemeLibrarySectionItem}),getThemeLibrarySections:JEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.editThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Vjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItemModalWindowDeps:Rjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient}),editThemeLibrarySectionItemModalWindowDeps:Njt({localeKey:t.localeKey,partnerId:t.partnerId,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient})}),Ijt=t=>async e=>(await t.deleteThemeLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Pjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySection:Ijt({partnerId:t.partnerId,deleteThemeLibrarySectionHttpClientDelegate:t.deleteThemeLibrarySectionModalWindowBffClient.postDeleteThemeLibrarySection})}),Mjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionModalWindowDeps:Pjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Ojt=t=>({localeKey:t.localeKey,themeSectionItemDeps:Vjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient}),emptyThemeSectionDeps:Mjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Wjt=t=>async e=>{await t.createThemeLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},Hjt=t=>({localeKey:t.localeKey,createThemeLibrarySection:Wjt({partnerId:t.partnerId,createThemeLibrarySectionHttpClient:t.createThemeLibrarySectionModalWindowBffClient.postCreateThemeLibrarySection})}),zjt=t=>({defaultThemeLibrary:t.defaultThemeLibrary}),GEe=t=>({localeKey:t.localeKey,defaultThemeLibraryDeps:zjt({defaultThemeLibrary:t.defaultThemeLibrary}),customThemeLibraryDeps:{localeKey:t.localeKey,addThemeSectionItemModalWindowDeps:Djt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient}),themeSectionDeps:Ojt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient}),createThemeLibrarySectionModalWindowDeps:Hjt({localeKey:t.localeKey,partnerId:t.partnerId,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient})}}),jjt=t=>({localeKey:t.localeKey,customThemeLibraryDeps:GEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}).customThemeLibraryDeps}),Kjt=t=>async e=>{await t.deleteComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},Ujt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItem:Kjt({partnerId:t.partnerId,deleteComponentLibrarySectionItemHttpClientDelegate:t.deleteComponentLibrarySectionItemModalWindowBffClient.postDeleteComponentLibrarySectionItem})}),qjt=t=>async e=>{await t.updateComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},YEe=t=>async()=>(await t.getComponentLibrarySectionsHttpClientDelegate({body:{partnerId:t.partnerId}})).body.sections.map(e=>({sectionId:e.sectionId,sectionName:e.sectionName})),Jjt=t=>({localeKey:t.localeKey,updateComponentLibrarySectionItem:qjt({partnerId:t.partnerId,updateComponentLibrarySectionItemHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postUpdateComponentLibrarySectionItem}),getComponentLibrarySections:YEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),Gjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItemModalWindowDeps:Ujt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),editComponentLibrarySectionItemModalWindowDeps:Jjt({localeKey:t.localeKey,partnerId:t.partnerId,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient}),emailComponentDeps:t.emailComponentDeps}),Yjt=t=>async e=>(await t.deleteComponentLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Zjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySection:Yjt({partnerId:t.partnerId,deleteComponentLibrarySectionHttpClientDelegate:t.deleteComponentLibrarySectionModalWindowBffClient.postDeleteComponentLibrarySection})}),Xjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionModalWindowDeps:Zjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),Qjt=t=>({localeKey:t.localeKey,componentSectionItemDeps:Gjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),emptyComponentSectionDeps:Xjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),eKt=t=>async e=>{await t.createComponentLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},tKt=t=>({localeKey:t.localeKey,createComponentLibrarySection:eKt({partnerId:t.partnerId,createComponentLibrarySectionHttpClient:t.createComponentLibrarySectionModalWindowBffClient.postCreateComponentLibrarySection})}),oKt=t=>({localeKey:t.localeKey,createComponentLibrarySectionModalWindowDeps:tKt({localeKey:t.localeKey,partnerId:t.partnerId,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient}),componentSectionDeps:Qjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),nKt=t=>({emailComponentDeps:t.emailComponentDeps}),rKt=t=>({localeKey:t.localeKey,componentSectionItemDeps:nKt({emailComponentDeps:t.emailComponentDeps})}),iKt=t=>({defaultComponentLibrary:t.defaultComponentLibrary,componentSectionDeps:rKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps})}),sKt=t=>({localeKey:t.localeKey,customComponentLibraryDeps:oKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient}),defaultComponentLibraryDeps:iKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps,defaultComponentLibrary:t.defaultComponentLibrary})}),aKt=t=>({localeKey:t.localeKey,exitLink:t.exitLink,themeLibraryDeps:GEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),themeStylesDeps:jjt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),componentLibraryDeps:sKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultComponentLibrary:t.defaultComponentLibrary})}),lKt=t=>async e=>{await t.createComponentLibrarySectionItemHttpClient({body:{partnerId:t.partnerId,parentSectionId:e.sectionId,sectionItemName:e.sectionItemName,component:t.httpClientComponentFactoryDelegate(e.component)}})},uKt=t=>({localeKey:t.localeKey,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,addComponentLibrarySectionItem:lKt({partnerId:t.partnerId,createComponentLibrarySectionItemHttpClient:t.addComponentLibrarySectionItemModalWindowBffClient.postCreateComponentLibrarySectionItem,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate}),getComponentLibrarySections:YEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.addComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),cKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),dKt=t=>({localeKey:t.localeKey}),mKt=t=>({movementMenuDeps:cKt({localeKey:t.localeKey}),draggingMenuDeps:dKt({localeKey:t.localeKey}),emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,addComponentLibrarySectionItemModalWindowDeps:uKt({localeKey:t.localeKey,partnerId:t.partnerId,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),hKt=t=>({localeKey:t.localeKey,emailComponentWrapperDeps:mKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),pKt=t=>({localeKey:t.localeKey}),fKt=t=>({localeKey:t.localeKey}),gKt=t=>({localeKey:t.localeKey}),yKt=t=>({localeKey:t.localeKey}),CKt=t=>({localeKey:t.localeKey,fontColorEditorDeps:yKt({localeKey:t.localeKey})}),GG=t=>({localeKey:t.localeKey,fontStyleColorEditorDeps:gKt({localeKey:t.localeKey}),customFontSettingsDeps:CKt({localeKey:t.localeKey})}),bKt=t=>({removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),truncateSpanEditorDeps:fKt({localeKey:t.localeKey}),localeKey:t.localeKey,fontStyleEditorDeps:GG({localeKey:t.localeKey})}),vKt=t=>({localeKey:t.localeKey}),ZEe=t=>({localeKey:t.localeKey,borderColorEditorDeps:vKt({localeKey:t.localeKey})}),SKt=t=>({localeKey:t.localeKey,borderEditorDeps:ZEe({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),YG=t=>({localeKey:t.localeKey}),wKt=t=>({localeKey:t.localeKey,borderEditorDeps:ZEe({localeKey:t.localeKey}),colorEditorDeps:YG({localeKey:t.localeKey}),fontStyleEditorDeps:GG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),TKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),fontStyleEditorDeps:GG({localeKey:t.localeKey})}),xKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),FKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),colorEditorDeps:YG({localeKey:t.localeKey})}),kKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),LKt=t=>({spanEditorDeps:bKt({localeKey:t.localeKey}),imageEditorDeps:SKt({localeKey:t.localeKey}),buttonEditorDeps:wKt({localeKey:t.localeKey}),unsubscribeLinkEditorDeps:TKt({localeKey:t.localeKey}),backgroundImageEditorDeps:xKt({localeKey:t.localeKey}),spacerEditorDeps:FKt({localeKey:t.localeKey}),richTextEditorDeps:kKt({localeKey:t.localeKey})}),EKt=t=>({localeKey:t.localeKey,colorEditorDeps:YG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),_Kt=t=>{const e=pjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=ZIt({localeKey:t.localeKey,elementsDeps:SPt({localeKey:t.localeKey,richTextToolbarPlugins:t.richTextToolbarPlugins,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin,expressionEvaluator:t.expressionEvaluator,listExpressionEvaluator:t.listExpressionEvaluator,numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator,boolExpressionEvaluator:e,dataSourceFieldNameDelegate:t.dataSourceFieldNameDelegate}),listExpressionEvaluator:t.listExpressionEvaluator,dataStructExpressionEvaluator:t.dataStructExpressionEvaluator,boolExpressionEvaluator:e});return{topMenuDeps:Fjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),saveEmailTemplate:t.saveEmailTemplate,createFavoriteTemplate:t.createFavoriteTemplate,getThemeLibrary:Ejt({partnerId:t.partnerId,getThemeLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetThemeLibrary}),getComponentLibrary:t.getComponentLibraryFactory({partnerId:t.partnerId,getComponentLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetComponentLibrary}),asideMenuDeps:aKt({localeKey:t.localeKey,partnerId:t.partnerId,exitLink:t.exitLink,emailComponentDeps:o,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary,defaultComponentLibrary:t.defaultComponentLibrary}),emailTemplateDeps:hKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,emailComponentDeps:o,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient}),emptyEditorDeps:pKt({localeKey:t.localeKey}),elementsEditorDeps:LKt({localeKey:t.localeKey}),emailComponentEditorDeps:EKt({localeKey:t.localeKey}),template:t.template}},Qu=t=>async()=>(await t.getAllStockIdsHttpClient({body:{partnerId:t.partnerId}})).body.stockIds,BKt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),DKt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),$Kt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),RKt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),XEe=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),ZG=t=>{switch(t.stockSource._t){case"CustomerStockIdSource":return t.customerStockId;case"DefaultStoreStockIdSource":return;case"SpecificStockIdSource":return t.stockSource.Value;default:Qzt(t.stockSource)}},AKt=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.findProductsBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:e,stockId:n}})).body.products.map(r=>XEe(r))},NKt=t=>({localeKey:t.localeKey}),VKt=t=>({selectedProductListItemDeps:NKt({localeKey:t.localeKey})}),IKt=t=>({localeKey:t.localeKey}),PKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,selectedProductListDeps:VKt({localeKey:t.localeKey}),emptyProductListDeps:IKt({localeKey:t.localeKey})}),MKt=t=>({localeKey:t.localeKey}),OKt=t=>({localeKey:t.localeKey}),WKt=t=>({localeKey:t.localeKey}),HKt=t=>({searchedProductListItemDeps:OKt({localeKey:t.localeKey}),emptySearchProductListDeps:WKt({localeKey:t.localeKey})}),zKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,productSearchBarDeps:MKt({localeKey:t.localeKey}),searchedProductListDeps:HKt({localeKey:t.localeKey})}),jKt=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>XEe(r))},KKt=t=>{const e=jKt({partnerId:t.partnerId,productCache:{},customerStockId:t.customerStockId,getProductsByIDsHttpClient:t.productPickerModalWindowBffClient.postGetProductsByIds}),o=AKt({partnerId:t.partnerId,customerStockId:t.customerStockId,findProductsBySearchPhrase:t.productPickerModalWindowBffClient.postFindProductsBySearchPhrase});return{localeKey:t.localeKey,selectProductComponentDeps:PKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o}),productSearchComponentDeps:zKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o})}},UKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),qKt=async t=>{const e=t.categoryIds.filter(o=>!t.categoryCache[o]);return e.length>0&&(await t.findCategoriesByID({partnerId:t.partnerId,categoryIds:e})).forEach(o=>t.categoryCache[o.id]=o),t.categoryIds.map(o=>t.categoryCache[o]).filter(o=>o!==void 0)},QEe=t=>async e=>(await qKt({partnerId:t.partnerId,categoryIds:e,categoryCache:{},findCategoriesByID:async o=>(await t.getCategoriesByIDsHttpClient({body:{partnerId:t.partnerId,categoryIds:o.categoryIds.concat([])}})).body.categories})).map(o=>UKt(o)),JKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),GKt=async t=>{const e=await t.findCategoriesByPhrase({phrase:t.phrase});return e.forEach(o=>t.categoryCache[o.id]=o),e},YKt=t=>async e=>(await GKt({phrase:e,categoryCache:t.categoryCache,findCategoriesByPhrase:async o=>(await t.findProductCategoriesBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:o.phrase}})).body.categories})).map(o=>JKt(o)),ZKt=t=>({localeKey:t.localeKey}),XKt=t=>({localeKey:t.localeKey,getCategoriesByIDs:t.getCategoriesByIDs,selectedCategoryListDeps:{},emptyCategoryListDeps:ZKt({localeKey:t.localeKey})}),QKt=t=>({localeKey:t.localeKey}),eUt=t=>({localeKey:t.localeKey}),tUt=t=>({emptySearchCategoryListDeps:eUt({localeKey:t.localeKey})}),oUt=t=>({localeKey:t.localeKey,findCategoriesByName:t.findCategoriesByName,getCategoriesByIDs:t.getCategoriesByIDs,categorySearchBarDeps:QKt({localeKey:t.localeKey}),searchedCategoryListDeps:tUt({localeKey:t.localeKey})}),e2e=t=>{const e={},o=QEe({partnerId:t.partnerId,categoryCache:e,getCategoriesByIDsHttpClient:t.productCategoryPickerModalWindowBffClient.postGetProductCategoriesByIds}),n=YKt({partnerId:t.partnerId,categoryCache:e,findProductCategoriesBySearchPhrase:t.productCategoryPickerModalWindowBffClient.postFindProductCategoriesBySearchPhrase});return{localeKey:t.localeKey,selectCategoryComponentDeps:XKt({localeKey:t.localeKey,getCategoriesByIDs:o}),categorySearchComponentDeps:oUt({localeKey:t.localeKey,getCategoriesByIDs:o,findCategoriesByName:n})}},nUt=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),XG=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>nUt(r))},rUt=t=>({localeKey:t.localeKey,getProductsByIDs:XG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),iUt=t=>({localeKey:t.localeKey,getProductsByIDs:XG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),sUt=t=>({localeKey:t.localeKey,getProductsByIDs:XG({partnerId:t.partnerId,customerStockId:t.customerStockId,productCache:t.productCache,getProductsByIDsHttpClient:t.getProductsByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),productListComposerModalWindowDeps:t.productListComposerModalWindowDeps,stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey},productListDeps:{localeKey:t.localeKey,productListItemDeps:{localeKey:t.localeKey}}}),aUt=t=>({localeKey:t.localeKey,getCategoriesByIDs:QEe({partnerId:t.partnerId,categoryCache:t.categoryCache,getCategoriesByIDsHttpClient:t.getCategoriesByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),categoryListComposerModalWindowDeps:e2e({localeKey:t.localeKey,partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),t2e=t=>t.reduce((e,o)=>(e[o.name]=o.value,e),{}),T0=t=>qEe({InternalProductId:t.internalProductId,Name:t.name,Description:t.description,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,Url:t.url,CategoryIds:[],Vendor:t.vendor,Params:t2e(t.parameters),DiscountPercentage:t.discountPercentage}),lUt=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(e=>T0(e));var uUt=typeof global=="object"&&global&&global.Object===Object&&global,cUt=typeof self=="object"&&self&&self.Object===Object&&self,dUt=uUt||cUt||Function("return this")(),h3=dUt.Symbol;h3&&h3.toStringTag;h3&&h3.toStringTag;const{entries:o2e,setPrototypeOf:jle,isFrozen:mUt,getPrototypeOf:hUt,getOwnPropertyDescriptor:pUt}=Object;let{freeze:is,seal:Wl,create:oz}=Object,{apply:nz,construct:rz}=typeof Reflect<"u"&&Reflect;is||(is=function(t){return t});Wl||(Wl=function(t){return t});nz||(nz=function(t,e){for(var o=arguments.length,n=new Array(o>2?o-2:0),r=2;r<o;r++)n[r-2]=arguments[r];return t.apply(e,n)});rz||(rz=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n<e;n++)o[n-1]=arguments[n];return new t(...o)});const Y_=ss(Array.prototype.forEach),fUt=ss(Array.prototype.lastIndexOf),Kle=ss(Array.prototype.pop),hT=ss(Array.prototype.push),gUt=ss(Array.prototype.splice),u$=ss(String.prototype.toLowerCase),c5=ss(String.prototype.toString),d5=ss(String.prototype.match),pT=ss(String.prototype.replace),yUt=ss(String.prototype.indexOf),CUt=ss(String.prototype.trim),Tu=ss(Object.prototype.hasOwnProperty),bi=ss(RegExp.prototype.test),fT=bUt(TypeError);function ss(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return nz(t,e,n)}}function bUt(t){return function(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return rz(t,o)}}function oo(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u$;jle&&jle(t,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const i=o(r);i!==r&&(mUt(e)||(e[n]=i),r=i)}t[r]=!0}return t}function vUt(t){for(let e=0;e<t.length;e++)Tu(t,e)||(t[e]=null);return t}function gc(t){const e=oz(null);for(const[o,n]of o2e(t))Tu(t,o)&&(Array.isArray(n)?e[o]=vUt(n):n&&typeof n=="object"&&n.constructor===Object?e[o]=gc(n):e[o]=n);return e}function gT(t,e){for(;t!==null;){const n=pUt(t,e);if(n){if(n.get)return ss(n.get);if(typeof n.value=="function")return ss(n.value)}t=hUt(t)}function o(){return null}return o}const Ule=is(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),m5=is(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),h5=is(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),SUt=is(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),p5=is(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),wUt=is(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qle=is(["#text"]),Jle=is(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),f5=is(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Gle=is(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z_=is(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),TUt=Wl(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xUt=Wl(/<%[\w\W]*|[\w\W]*%>/gm),FUt=Wl(/\$\{[\w\W]*/gm),kUt=Wl(/^data-[\-\w.\u00B7-\uFFFF]+$/),LUt=Wl(/^aria-[\-\w]+$/),n2e=Wl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),EUt=Wl(/^(?:\w+script|data):/i),_Ut=Wl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),r2e=Wl(/^html$/i),BUt=Wl(/^[a-z][.\w]*(-[.\w]+)+$/i);var Yle=Object.freeze({__proto__:null,ARIA_ATTR:LUt,ATTR_WHITESPACE:_Ut,CUSTOM_ELEMENT:BUt,DATA_ATTR:kUt,DOCTYPE_NAME:r2e,ERB_EXPR:xUt,IS_ALLOWED_URI:n2e,IS_SCRIPT_OR_DATA:EUt,MUSTACHE_EXPR:TUt,TMPLIT_EXPR:FUt});const yT={element:1,text:3,progressingInstruction:7,comment:8,document:9},DUt=function(){return typeof window>"u"?null:window},$Ut=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(o=e.getAttribute(n));const r="dompurify"+(o?"#"+o:"");try{return t.createPolicy(r,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},Zle=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function i2e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DUt();const e=C=>i2e(C);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==yT.document||!t.Element)return e.isSupported=!1,e;let{document:o}=t;const n=o,r=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:h}=t,p=l.prototype,f=gT(p,"cloneNode"),g=gT(p,"remove"),b=gT(p,"nextSibling"),v=gT(p,"childNodes"),S=gT(p,"parentNode");if(typeof s=="function"){const C=o.createElement("template");C.content&&C.content.ownerDocument&&(o=C.content.ownerDocument)}let T,x="";const{implementation:F,createNodeIterator:D,createDocumentFragment:N,getElementsByTagName:R}=o,{importNode:P}=n;let E=Zle();e.isSupported=typeof o2e=="function"&&typeof S=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:A,TMPLIT_EXPR:I,DATA_ATTR:W,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:Ve}=Yle;let{IS_ALLOWED_URI:Se}=Yle,G=null;const Ae=oo({},[...Ule,...m5,...h5,...p5,...qle]);let q=null;const me=oo({},[...Jle,...f5,...Gle,...Z_]);let H=Object.seal(oz(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,le=null;const ue=Object.seal(oz(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Nt=!0,Vt=!0,Et=!1,z=!0,j=!1,ee=!0,oe=!1,re=!1,ie=!1,de=!1,pe=!1,te=!1,ne=!0,Ge=!1;const Te="user-content-";let we=!0,xe=!1,Ne={},Ce=null;const Qe=oo({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Fo=null;const ko=oo({},["audio","video","img","source","image","track"]);let Co=null;const No=oo({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),go="http://www.w3.org/1998/Math/MathML",Lo="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let kt=tt,Uo=!1,qo=null;const su=oo({},[go,Lo,tt],c5);let $o=oo({},["mi","mo","mn","ms","mtext"]),Ro=oo({},["annotation-xml"]);const au=oo({},["title","style","font","a","script"]);let yo=null;const lu=["application/xhtml+xml","text/html"],uu="text/html";let ge=null,jt=null;const cu=o.createElement("form"),Br=function(C){return C instanceof RegExp||C instanceof Function},yn=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(jt&&jt===C)){if((!C||typeof C!="object")&&(C={}),C=gc(C),yo=lu.indexOf(C.PARSER_MEDIA_TYPE)===-1?uu:C.PARSER_MEDIA_TYPE,ge=yo==="application/xhtml+xml"?c5:u$,G=Tu(C,"ALLOWED_TAGS")?oo({},C.ALLOWED_TAGS,ge):Ae,q=Tu(C,"ALLOWED_ATTR")?oo({},C.ALLOWED_ATTR,ge):me,qo=Tu(C,"ALLOWED_NAMESPACES")?oo({},C.ALLOWED_NAMESPACES,c5):su,Co=Tu(C,"ADD_URI_SAFE_ATTR")?oo(gc(No),C.ADD_URI_SAFE_ATTR,ge):No,Fo=Tu(C,"ADD_DATA_URI_TAGS")?oo(gc(ko),C.ADD_DATA_URI_TAGS,ge):ko,Ce=Tu(C,"FORBID_CONTENTS")?oo({},C.FORBID_CONTENTS,ge):Qe,be=Tu(C,"FORBID_TAGS")?oo({},C.FORBID_TAGS,ge):gc({}),le=Tu(C,"FORBID_ATTR")?oo({},C.FORBID_ATTR,ge):gc({}),Ne=Tu(C,"USE_PROFILES")?C.USE_PROFILES:!1,Nt=C.ALLOW_ARIA_ATTR!==!1,Vt=C.ALLOW_DATA_ATTR!==!1,Et=C.ALLOW_UNKNOWN_PROTOCOLS||!1,z=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=C.SAFE_FOR_TEMPLATES||!1,ee=C.SAFE_FOR_XML!==!1,oe=C.WHOLE_DOCUMENT||!1,de=C.RETURN_DOM||!1,pe=C.RETURN_DOM_FRAGMENT||!1,te=C.RETURN_TRUSTED_TYPE||!1,ie=C.FORCE_BODY||!1,ne=C.SANITIZE_DOM!==!1,Ge=C.SANITIZE_NAMED_PROPS||!1,we=C.KEEP_CONTENT!==!1,xe=C.IN_PLACE||!1,Se=C.ALLOWED_URI_REGEXP||n2e,kt=C.NAMESPACE||tt,$o=C.MATHML_TEXT_INTEGRATION_POINTS||$o,Ro=C.HTML_INTEGRATION_POINTS||Ro,H=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&Br(C.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=C.CUSTOM_ELEMENT_HANDLING.tagNameCheck),C.CUSTOM_ELEMENT_HANDLING&&Br(C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=C.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),C.CUSTOM_ELEMENT_HANDLING&&typeof C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=C.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),j&&(Vt=!1),pe&&(de=!0),Ne&&(G=oo({},qle),q=[],Ne.html===!0&&(oo(G,Ule),oo(q,Jle)),Ne.svg===!0&&(oo(G,m5),oo(q,f5),oo(q,Z_)),Ne.svgFilters===!0&&(oo(G,h5),oo(q,f5),oo(q,Z_)),Ne.mathMl===!0&&(oo(G,p5),oo(q,Gle),oo(q,Z_))),C.ADD_TAGS&&(typeof C.ADD_TAGS=="function"?ue.tagCheck=C.ADD_TAGS:(G===Ae&&(G=gc(G)),oo(G,C.ADD_TAGS,ge))),C.ADD_ATTR&&(typeof C.ADD_ATTR=="function"?ue.attributeCheck=C.ADD_ATTR:(q===me&&(q=gc(q)),oo(q,C.ADD_ATTR,ge))),C.ADD_URI_SAFE_ATTR&&oo(Co,C.ADD_URI_SAFE_ATTR,ge),C.FORBID_CONTENTS&&(Ce===Qe&&(Ce=gc(Ce)),oo(Ce,C.FORBID_CONTENTS,ge)),C.ADD_FORBID_CONTENTS&&(Ce===Qe&&(Ce=gc(Ce)),oo(Ce,C.ADD_FORBID_CONTENTS,ge)),we&&(G["#text"]=!0),oe&&oo(G,["html","head","body"]),G.table&&(oo(G,["tbody"]),delete be.tbody),C.TRUSTED_TYPES_POLICY){if(typeof C.TRUSTED_TYPES_POLICY.createHTML!="function")throw fT('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw fT('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=C.TRUSTED_TYPES_POLICY,x=T.createHTML("")}else T===void 0&&(T=$Ut(h,r)),T!==null&&typeof x=="string"&&(x=T.createHTML(""));is&&is(C),jt=C}},Dr=oo({},[...m5,...h5,...SUt]),$r=oo({},[...p5,...wUt]),du=function(C){let k=S(C);(!k||!k.tagName)&&(k={namespaceURI:kt,tagName:"template"});const B=u$(C.tagName),J=u$(k.tagName);return qo[C.namespaceURI]?C.namespaceURI===Lo?k.namespaceURI===tt?B==="svg":k.namespaceURI===go?B==="svg"&&(J==="annotation-xml"||$o[J]):!!Dr[B]:C.namespaceURI===go?k.namespaceURI===tt?B==="math":k.namespaceURI===Lo?B==="math"&&Ro[J]:!!$r[B]:C.namespaceURI===tt?k.namespaceURI===Lo&&!Ro[J]||k.namespaceURI===go&&!$o[J]?!1:!$r[B]&&(au[B]||!Dr[B]):!!(yo==="application/xhtml+xml"&&qo[C.namespaceURI]):!1},_t=function(C){hT(e.removed,{element:C});try{S(C).removeChild(C)}catch{g(C)}},Mt=function(C,k){try{hT(e.removed,{attribute:k.getAttributeNode(C),from:k})}catch{hT(e.removed,{attribute:null,from:k})}if(k.removeAttribute(C),C==="is")if(de||pe)try{_t(k)}catch{}else try{k.setAttribute(C,"")}catch{}},Rr=function(C){let k=null,B=null;if(ie)C="<remove></remove>"+C;else{const ae=d5(C,/^[\r\n\t ]+/);B=ae&&ae[0]}yo==="application/xhtml+xml"&&kt===tt&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const J=T?T.createHTML(C):C;if(kt===tt)try{k=new m().parseFromString(J,yo)}catch{}if(!k||!k.documentElement){k=F.createDocument(kt,"template",null);try{k.documentElement.innerHTML=Uo?x:J}catch{}}const ye=k.body||k.documentElement;return C&&B&&ye.insertBefore(o.createTextNode(B),ye.childNodes[0]||null),kt===tt?R.call(k,oe?"html":"body")[0]:oe?k.documentElement:ye},Ar=function(C){return D.call(C.ownerDocument||C,C,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Cn=function(C){return C instanceof d&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof c)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},Nr=function(C){return typeof a=="function"&&C instanceof a};function ht(C,k,B){Y_(C,J=>{J.call(e,k,B,jt)})}const Vr=function(C){let k=null;if(ht(E.beforeSanitizeElements,C,null),Cn(C))return _t(C),!0;const B=ge(C.nodeName);if(ht(E.uponSanitizeElement,C,{tagName:B,allowedTags:G}),ee&&C.hasChildNodes()&&!Nr(C.firstElementChild)&&bi(/<[/\w!]/g,C.innerHTML)&&bi(/<[/\w!]/g,C.textContent)||C.nodeType===yT.progressingInstruction||ee&&C.nodeType===yT.comment&&bi(/<[/\w]/g,C.data))return _t(C),!0;if(!(ue.tagCheck instanceof Function&&ue.tagCheck(B))&&(!G[B]||be[B])){if(!be[B]&&Pr(B)&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,B)||H.tagNameCheck instanceof Function&&H.tagNameCheck(B)))return!1;if(we&&!Ce[B]){const J=S(C)||C.parentNode,ye=v(C)||C.childNodes;if(ye&&J){const ae=ye.length;for(let nt=ae-1;nt>=0;--nt){const et=f(ye[nt],!0);et.__removalCount=(C.__removalCount||0)+1,J.insertBefore(et,b(C))}}}return _t(C),!0}return C instanceof l&&!du(C)||(B==="noscript"||B==="noembed"||B==="noframes")&&bi(/<\/no(script|embed|frames)/i,C.innerHTML)?(_t(C),!0):(j&&C.nodeType===yT.text&&(k=C.textContent,Y_([L,A,I],J=>{k=pT(k,J," ")}),C.textContent!==k&&(hT(e.removed,{element:C.cloneNode()}),C.textContent=k)),ht(E.afterSanitizeElements,C,null),!1)},Ir=function(C,k,B){if(ne&&(k==="id"||k==="name")&&(B in o||B in cu))return!1;if(!(Vt&&!le[k]&&bi(W,k))&&!(Nt&&bi(O,k))&&!(ue.attributeCheck instanceof Function&&ue.attributeCheck(k,C))){if(!q[k]||le[k]){if(!(Pr(C)&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,C)||H.tagNameCheck instanceof Function&&H.tagNameCheck(C))&&(H.attributeNameCheck instanceof RegExp&&bi(H.attributeNameCheck,k)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(k,C))||k==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&bi(H.tagNameCheck,B)||H.tagNameCheck instanceof Function&&H.tagNameCheck(B))))return!1}else if(!Co[k]&&!bi(Se,pT(B,fe,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&C!=="script"&&yUt(B,"data:")===0&&Fo[C])&&!(Et&&!bi(K,pT(B,fe,"")))&&B)return!1}return!0},Pr=function(C){return C!=="annotation-xml"&&d5(C,Ve)},Mr=function(C){ht(E.beforeSanitizeAttributes,C,null);const{attributes:k}=C;if(!k||Cn(C))return;const B={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let J=k.length;for(;J--;){const ye=k[J],{name:ae,namespaceURI:nt,value:et}=ye,lt=ge(ae),Jo=et;let He=ae==="value"?Jo:CUt(Jo);if(B.attrName=lt,B.attrValue=He,B.keepAttr=!0,B.forceKeepAttr=void 0,ht(E.uponSanitizeAttribute,C,B),He=B.attrValue,Ge&&(lt==="id"||lt==="name")&&(Mt(ae,C),He=Te+He),ee&&bi(/((--!?|])>)|<\/(style|title|textarea)/i,He)){Mt(ae,C);continue}if(lt==="attributename"&&d5(He,"href")){Mt(ae,C);continue}if(B.forceKeepAttr)continue;if(!B.keepAttr){Mt(ae,C);continue}if(!z&&bi(/\/>/i,He)){Mt(ae,C);continue}j&&Y_([L,A,I],Za=>{He=pT(He,Za," ")});const Eo=ge(C.nodeName);if(!Ir(Eo,lt,He)){Mt(ae,C);continue}if(T&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!nt)switch(h.getAttributeType(Eo,lt)){case"TrustedHTML":{He=T.createHTML(He);break}case"TrustedScriptURL":{He=T.createScriptURL(He);break}}if(He!==Jo)try{nt?C.setAttributeNS(nt,ae,He):C.setAttribute(ae,He),Cn(C)?_t(C):Kle(e.removed)}catch{Mt(ae,C)}}ht(E.afterSanitizeAttributes,C,null)},mu=function C(k){let B=null;const J=Ar(k);for(ht(E.beforeSanitizeShadowDOM,k,null);B=J.nextNode();)ht(E.uponSanitizeShadowNode,B,null),Vr(B),Mr(B),B.content instanceof i&&C(B.content);ht(E.afterSanitizeShadowDOM,k,null)};return e.sanitize=function(C){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=null,J=null,ye=null,ae=null;if(Uo=!C,Uo&&(C="<!-->"),typeof C!="string"&&!Nr(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw fT("dirty is not a string, aborting")}else throw fT("toString is not a function");if(!e.isSupported)return C;if(re||yn(k),e.removed=[],typeof C=="string"&&(xe=!1),xe){if(C.nodeName){const lt=ge(C.nodeName);if(!G[lt]||be[lt])throw fT("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof a)B=Rr("<!---->"),J=B.ownerDocument.importNode(C,!0),J.nodeType===yT.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?B=J:B.appendChild(J);else{if(!de&&!j&&!oe&&C.indexOf("<")===-1)return T&&te?T.createHTML(C):C;if(B=Rr(C),!B)return de?null:te?x:""}B&&ie&&_t(B.firstChild);const nt=Ar(xe?C:B);for(;ye=nt.nextNode();)Vr(ye),Mr(ye),ye.content instanceof i&&mu(ye.content);if(xe)return C;if(de){if(pe)for(ae=N.call(B.ownerDocument);B.firstChild;)ae.appendChild(B.firstChild);else ae=B;return(q.shadowroot||q.shadowrootmode)&&(ae=P.call(n,ae,!0)),ae}let et=oe?B.outerHTML:B.innerHTML;return oe&&G["!doctype"]&&B.ownerDocument&&B.ownerDocument.doctype&&B.ownerDocument.doctype.name&&bi(r2e,B.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+B.ownerDocument.doctype.name+`>
|
|
194
194
|
`+et),j&&Y_([L,A,I],lt=>{et=pT(et,lt," ")}),T&&te?T.createHTML(et):et},e.setConfig=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yn(C),re=!0},e.clearConfig=function(){jt=null,re=!1},e.isValidAttribute=function(C,k,B){jt||yn({});const J=ge(C),ye=ge(k);return Ir(J,ye,B)},e.addHook=function(C,k){typeof k=="function"&&hT(E[C],k)},e.removeHook=function(C,k){if(k!==void 0){const B=fUt(E[C],k);return B===-1?void 0:gUt(E[C],B,1)[0]}return Kle(E[C])},e.removeHooks=function(C){E[C]=[]},e.removeAllHooks=function(){E=Zle()},e}i2e();function Ur(t){this.content=t}Ur.prototype={constructor:Ur,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,o){var n=o&&o!=t?this.remove(o):this,r=n.find(t),i=n.content.slice();return r==-1?i.push(o||t,e):(i[r+1]=e,o&&(i[r]=o)),new Ur(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var o=this.content.slice();return o.splice(e,2),new Ur(o)},addToStart:function(t,e){return new Ur([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var o=this.remove(t).content.slice();return o.push(t,e),new Ur(o)},addBefore:function(t,e,o){var n=this.remove(e),r=n.content.slice(),i=n.find(t);return r.splice(i==-1?r.length:i,0,e,o),new Ur(r)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Ur.from(t),t.size?new Ur(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Ur.from(t),t.size?new Ur(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Ur.from(t);for(var o=0;o<t.content.length;o+=2)e=e.remove(t.content[o]);return e},toObject:function(){var t={};return this.forEach(function(e,o){t[e]=o}),t},get size(){return this.content.length>>1}};Ur.from=function(t){if(t instanceof Ur)return t;var e=[];if(t)for(var o in t)e.push(o,t[o]);return new Ur(e)};function s2e(t,e,o){for(let n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:o;let r=t.child(n),i=e.child(n);if(r==i){o+=r.nodeSize;continue}if(!r.sameMarkup(i))return o;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)o++;return o}if(r.content.size||i.content.size){let s=s2e(r.content,i.content,o+1);if(s!=null)return s}o+=r.nodeSize}}function a2e(t,e,o,n){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:o,b:n};let s=t.child(--r),a=e.child(--i),l=s.nodeSize;if(s==a){o-=l,n-=l;continue}if(!s.sameMarkup(a))return{a:o,b:n};if(s.isText&&s.text!=a.text){let u=0,c=Math.min(s.text.length,a.text.length);for(;u<c&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,o--,n--;return{a:o,b:n}}if(s.content.size||a.content.size){let u=a2e(s.content,a.content,o-1,n-1);if(u)return u}o-=l,n-=l}}class Pe{constructor(e,o){if(this.content=e,this.size=o||0,o==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,o,n,r=0,i){for(let s=0,a=0;a<o;s++){let l=this.content[s],u=a+l.nodeSize;if(u>e&&n(l,r+a,i||null,s)!==!1&&l.content.size){let c=a+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,o-c),n,r+c)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,o,n,r){let i="",s=!0;return this.nodesBetween(e,o,(a,l)=>{let u=a.isText?a.text.slice(Math.max(e,l)-l,o-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&n&&(s?s=!1:i+=n),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let o=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(o.isText&&o.sameMarkup(n)&&(r[r.length-1]=o.withText(o.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new Pe(r,this.size+e.size)}cut(e,o=this.size){if(e==0&&o==this.size)return this;let n=[],r=0;if(o>e)for(let i=0,s=0;s<o;i++){let a=this.content[i],l=s+a.nodeSize;l>e&&((s<e||l>o)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,o-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,o-s-1))),n.push(a),r+=a.nodeSize),s=l}return new Pe(n,r)}cutByIndex(e,o){return e==o?Pe.empty:e==0&&o==this.content.length?this:new Pe(this.content.slice(e,o))}replaceChild(e,o){let n=this.content[e];if(n==o)return this;let r=this.content.slice(),i=this.size+o.nodeSize-n.nodeSize;return r[e]=o,new Pe(r,i)}addToStart(e){return new Pe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Pe(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let o=0;o<this.content.length;o++)if(!this.content[o].eq(e.content[o]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let o=this.content[e];if(!o)throw new RangeError("Index "+e+" out of range for "+this);return o}maybeChild(e){return this.content[e]||null}forEach(e){for(let o=0,n=0;o<this.content.length;o++){let r=this.content[o];e(r,n,o),n+=r.nodeSize}}findDiffStart(e,o=0){return s2e(this,e,o)}findDiffEnd(e,o=this.size,n=e.size){return a2e(this,e,o,n)}findIndex(e){if(e==0)return X_(0,e);if(e==this.size)return X_(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let o=0,n=0;;o++){let r=this.child(o),i=n+r.nodeSize;if(i>=e)return i==e?X_(o+1,i):X_(o,n);n=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,o){if(!o)return Pe.empty;if(!Array.isArray(o))throw new RangeError("Invalid input for Fragment.fromJSON");return new Pe(o.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Pe.empty;let o,n=0;for(let r=0;r<e.length;r++){let i=e[r];n+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(o||(o=e.slice(0,r)),o[o.length-1]=i.withText(o[o.length-1].text+i.text)):o&&o.push(i)}return new Pe(o||e,n)}static from(e){if(!e)return Pe.empty;if(e instanceof Pe)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Pe([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Pe.empty=new Pe([],0);const g5={index:0,offset:0};function X_(t,e){return g5.index=t,g5.offset=e,g5}function p3(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let o=Array.isArray(t);if(Array.isArray(e)!=o)return!1;if(o){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!p3(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!p3(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}let cn=class iz{constructor(e,o){this.type=e,this.attrs=o}addToSet(e){let o,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))o||(o=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!n&&i.type.rank>this.type.rank&&(o||(o=e.slice(0,r)),o.push(this),n=!0),o&&o.push(i)}}return o||(o=e.slice()),n||o.push(this),o}removeFromSet(e){for(let o=0;o<e.length;o++)if(this.eq(e[o]))return e.slice(0,o).concat(e.slice(o+1));return e}isInSet(e){for(let o=0;o<e.length;o++)if(this.eq(e[o]))return!0;return!1}eq(e){return this==e||this.type==e.type&&p3(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let o in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,o){if(!o)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[o.type];if(!n)throw new RangeError(`There is no mark type ${o.type} in this schema`);let r=n.create(o.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,o){if(e==o)return!0;if(e.length!=o.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(o[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return iz.none;if(e instanceof iz)return[e];let o=e.slice();return o.sort((n,r)=>n.type.rank-r.type.rank),o}};cn.none=[];let f3=class extends Error{},ct=class r1{constructor(e,o,n){this.content=e,this.openStart=o,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,o){let n=u2e(this.content,e+this.openStart,o);return n&&new r1(n,this.openStart,this.openEnd)}removeBetween(e,o){return new r1(l2e(this.content,e+this.openStart,o+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,o){if(!o)return r1.empty;let n=o.openStart||0,r=o.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new r1(Pe.fromJSON(e,o.content),n,r)}static maxOpen(e,o=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(o||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(o||!i.type.spec.isolating);i=i.lastChild)r++;return new r1(e,n,r)}};ct.empty=new ct(Pe.empty,0,0);function l2e(t,e,o){let{index:n,offset:r}=t.findIndex(e),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(o);if(r==e||i.isText){if(a!=o&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(o))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(l2e(i.content,e-r-1,o-r-1)))}function u2e(t,e,o,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return n&&!n.canReplace(r,r,o)?null:t.cut(0,e).append(o).append(t.cut(e));let a=u2e(s.content,e-i-1,o,s);return a&&t.replaceChild(r,s.copy(a))}function RUt(t,e,o){if(o.openStart>t.depth)throw new f3("Inserted content deeper than insertion position");if(t.depth-o.openStart!=e.depth-o.openEnd)throw new f3("Inconsistent open depths");return c2e(t,e,o,0)}function c2e(t,e,o,n){let r=t.index(n),i=t.node(n);if(r==e.index(n)&&n<t.depth-o.openStart){let s=c2e(t,e,o,n+1);return i.copy(i.content.replaceChild(r,s))}else if(o.content.size)if(!o.openStart&&!o.openEnd&&t.depth==n&&e.depth==n){let s=t.parent,a=s.content;return Zy(s,a.cut(0,t.parentOffset).append(o.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=AUt(o,t);return Zy(i,m2e(t,s,a,e,n))}else return Zy(i,g3(t,e,n))}function d2e(t,e){if(!e.type.compatibleContent(t.type))throw new f3("Cannot join "+e.type.name+" onto "+t.type.name)}function sz(t,e,o){let n=t.node(o);return d2e(n,e.node(o)),n}function Yy(t,e){let o=e.length-1;o>=0&&t.isText&&t.sameMarkup(e[o])?e[o]=t.withText(e[o].text+t.text):e.push(t)}function RF(t,e,o,n){let r=(e||t).node(o),i=0,s=e?e.index(o):r.childCount;t&&(i=t.index(o),t.depth>o?i++:t.textOffset&&(Yy(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Yy(r.child(a),n);e&&e.depth==o&&e.textOffset&&Yy(e.nodeBefore,n)}function Zy(t,e){return t.type.checkContent(e),t.copy(e)}function m2e(t,e,o,n,r){let i=t.depth>r&&sz(t,e,r+1),s=n.depth>r&&sz(o,n,r+1),a=[];return RF(null,t,r,a),i&&s&&e.index(r)==o.index(r)?(d2e(i,s),Yy(Zy(i,m2e(t,e,o,n,r+1)),a)):(i&&Yy(Zy(i,g3(t,e,r+1)),a),RF(e,o,r,a),s&&Yy(Zy(s,g3(o,n,r+1)),a)),RF(n,null,r,a),new Pe(a)}function g3(t,e,o){let n=[];if(RF(null,t,o,n),t.depth>o){let r=sz(t,e,o+1);Yy(Zy(r,g3(t,e,o+1)),n)}return RF(e,null,o,n),new Pe(n)}function AUt(t,e){let o=e.depth-t.openStart,n=e.node(o).copy(t.content);for(let r=o-1;r>=0;r--)n=e.node(r).copy(Pe.from(n));return{start:n.resolveNoCache(t.openStart+o),end:n.resolveNoCache(n.content.size-t.openEnd-o)}}let Xle=class az{constructor(e,o,n){this.pos=e,this.path=o,this.parentOffset=n,this.depth=o.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,o=this.index(this.depth);if(o==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(o);return n?e.child(o).cut(n):r}get nodeBefore(){let e=this.index(this.depth),o=this.pos-this.path[this.path.length-1];return o?this.parent.child(e).cut(0,o):e==0?null:this.parent.child(e-1)}posAtIndex(e,o){o=this.resolveDepth(o);let n=this.path[o*3],r=o==0?0:this.path[o*3-1]+1;for(let i=0;i<e;i++)r+=n.child(i).nodeSize;return r}marks(){let e=this.parent,o=this.index();if(e.content.size==0)return cn.none;if(this.textOffset)return e.child(o).marks;let n=e.maybeChild(o-1),r=e.maybeChild(o);if(!n){let a=n;n=r,r=a}let i=n.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let o=this.parent.maybeChild(this.index());if(!o||!o.isInline)return null;let n=o.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let o=this.depth;o>0;o--)if(this.start(o)<=e&&this.end(o)>=e)return o;return 0}blockRange(e=this,o){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!o||o(this.node(n))))return new y3(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let o=1;o<=this.depth;o++)e+=(e?"/":"")+this.node(o).type.name+"_"+this.index(o-1);return e+":"+this.parentOffset}static resolve(e,o){if(!(o>=0&&o<=e.content.size))throw new RangeError("Position "+o+" out of range");let n=[],r=0,i=o;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),u=i-l;if(n.push(s,a,r+l),!u||(s=s.child(a),s.isText))break;i=u-1,r+=l+1}return new az(o,n,i)}static resolveCached(e,o){let n=Qle.get(e);if(n)for(let i=0;i<n.elts.length;i++){let s=n.elts[i];if(s.pos==o)return s}else Qle.set(e,n=new NUt);let r=n.elts[n.i]=az.resolve(e,o);return n.i=(n.i+1)%VUt,r}},NUt=class{constructor(){this.elts=[],this.i=0}};const VUt=12,Qle=new WeakMap;let y3=class{constructor(e,o,n){this.$from=e,this.$to=o,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};const IUt=Object.create(null);let Xy=class lz{constructor(e,o,n,r=cn.none){this.type=e,this.attrs=o,this.marks=r,this.content=n||Pe.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,o,n,r=0){this.content.nodesBetween(e,o,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,o,n,r){return this.content.textBetween(e,o,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,o,n){return this.type==e&&p3(this.attrs,o||e.defaultAttrs||IUt)&&cn.sameSet(this.marks,n||cn.none)}copy(e=null){return e==this.content?this:new lz(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new lz(this.type,this.attrs,this.content,e)}cut(e,o=this.content.size){return e==0&&o==this.content.size?this:this.copy(this.content.cut(e,o))}slice(e,o=this.content.size,n=!1){if(e==o)return ct.empty;let r=this.resolve(e),i=this.resolve(o),s=n?0:r.sharedDepth(o),a=r.start(s),l=r.node(s).content.cut(r.pos-a,i.pos-a);return new ct(l,r.depth-s,i.depth-s)}replace(e,o,n){return RUt(this.resolve(e),this.resolve(o),n)}nodeAt(e){for(let o=this;;){let{index:n,offset:r}=o.content.findIndex(e);if(o=o.maybeChild(n),!o)return null;if(r==e||o.isText)return o;e-=r+1}}childAfter(e){let{index:o,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(o),index:o,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:o,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(o),index:o,offset:n};let r=this.content.child(o-1);return{node:r,index:o-1,offset:n-r.nodeSize}}resolve(e){return Xle.resolveCached(this,e)}resolveNoCache(e){return Xle.resolve(this,e)}rangeHasMark(e,o,n){let r=!1;return o>e&&this.nodesBetween(e,o,i=>(n.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),h2e(this.marks,e)}contentMatchAt(e){let o=this.type.contentMatch.matchFragment(this.content,0,e);if(!o)throw new Error("Called contentMatchAt on a node with invalid content");return o}canReplace(e,o,n=Pe.empty,r=0,i=n.childCount){let s=this.contentMatchAt(e).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,o);if(!a||!a.validEnd)return!1;for(let l=r;l<i;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0}canReplaceWith(e,o,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),s=i&&i.matchFragment(this.content,o);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=cn.none;for(let o=0;o<this.marks.length;o++){let n=this.marks[o];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!cn.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(o=>o.type.name)}`);this.content.forEach(o=>o.check())}toJSON(){let e={type:this.type.name};for(let o in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(o=>o.toJSON())),e}static fromJSON(e,o){if(!o)throw new RangeError("Invalid input for Node.fromJSON");let n;if(o.marks){if(!Array.isArray(o.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=o.marks.map(e.markFromJSON)}if(o.type=="text"){if(typeof o.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(o.text,n)}let r=Pe.fromJSON(e,o.content),i=e.nodeType(o.type).create(o.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};Xy.prototype.text=void 0;let PUt=class uz extends Xy{constructor(e,o,n,r){if(super(e,o,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):h2e(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,o){return this.text.slice(e,o)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new uz(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new uz(this.type,this.attrs,e,this.marks)}cut(e=0,o=this.text.length){return e==0&&o==this.text.length?this:this.withText(this.text.slice(e,o))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function h2e(t,e){for(let o=t.length-1;o>=0;o--)e=t[o].type.name+"("+e+")";return e}let bL=class p2e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,o){let n=new MUt(e,o);if(n.next==null)return p2e.empty;let r=f2e(n);n.next&&n.err("Unexpected trailing text");let i=UUt(KUt(r));return qUt(i,n),i}matchType(e){for(let o=0;o<this.next.length;o++)if(this.next[o].type==e)return this.next[o].next;return null}matchFragment(e,o=0,n=e.childCount){let r=this;for(let i=o;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:o}=this.next[e];if(!(o.isText||o.hasRequiredAttrs()))return o}return null}compatible(e){for(let o=0;o<this.next.length;o++)for(let n=0;n<e.next.length;n++)if(this.next[o].type==e.next[n].type)return!0;return!1}fillBefore(e,o=!1,n=0){let r=[this];function i(s,a){let l=s.matchFragment(e,n);if(l&&(!o||l.validEnd))return Pe.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:d}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&r.indexOf(d)==-1){r.push(d);let m=i(d,a.concat(c));if(m)return m}}return null}return i(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let o=this.computeWrapping(e);return this.wrapCache.push(e,o),o}computeWrapping(e){let o=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:l}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in o)&&(!r.type||l.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),o[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function o(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&o(n.next[r].next)}return o(this),e.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+e.indexOf(n.next[s].next);return i}).join(`
|
|
195
195
|
`)}};bL.empty=new bL(!0);let MUt=class{constructor(e,o){this.string=e,this.nodeTypes=o,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};function f2e(t){let e=[];do e.push(OUt(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function OUt(t){let e=[];do e.push(WUt(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function WUt(t){let e=jUt(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=HUt(t,e);else break;return e}function eue(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function HUt(t,e){let o=eue(t),n=o;return t.eat(",")&&(t.next!="}"?n=eue(t):n=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:o,max:n,expr:e}}function zUt(t,e){let o=t.nodeTypes,n=o[e];if(n)return[n];let r=[];for(let i in o){let s=o[i];s.isInGroup(e)&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function jUt(t){if(t.eat("(")){let e=f2e(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=zUt(t,t.next).map(o=>(t.inline==null?t.inline=o.isInline:t.inline!=o.isInline&&t.err("Mixing inline and block content"),{type:"name",value:o}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function KUt(t){let e=[[]];return r(i(t,0),o()),e;function o(){return e.push([])-1}function n(s,a,l){let u={term:l,to:a};return e[s].push(u),u}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,u)=>l.concat(i(u,a)),[]);if(s.type=="seq")for(let l=0;;l++){let u=i(s.exprs[l],a);if(l==s.exprs.length-1)return u;r(u,a=o())}else if(s.type=="star"){let l=o();return n(a,l),r(i(s.expr,l),l),[n(l)]}else if(s.type=="plus"){let l=o();return r(i(s.expr,a),l),r(i(s.expr,l),l),[n(l)]}else{if(s.type=="opt")return[n(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let u=0;u<s.min;u++){let c=o();r(i(s.expr,l),c),l=c}if(s.max==-1)r(i(s.expr,l),l);else for(let u=s.min;u<s.max;u++){let c=o();n(l,c),r(i(s.expr,l),c),l=c}return[n(l)]}else{if(s.type=="name")return[n(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function g2e(t,e){return e-t}function tue(t,e){let o=[];return n(e),o.sort(g2e);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);o.push(r);for(let s=0;s<i.length;s++){let{term:a,to:l}=i[s];!a&&o.indexOf(l)==-1&&n(l)}}}function UUt(t){let e=Object.create(null);return o(tue(t,0));function o(n){let r=[];n.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let u;for(let c=0;c<r.length;c++)r[c][0]==a&&(u=r[c][1]);tue(t,l).forEach(c=>{u||r.push([a,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let i=e[n.join(",")]=new bL(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(g2e);i.next.push({type:r[s][0],next:e[a.join(",")]||o(a)})}return i}}function qUt(t,e){for(let o=0,n=[t];o<n.length;o++){let r=n[o],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:l,next:u}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function y2e(t){let e=Object.create(null);for(let o in t){let n=t[o];if(!n.hasDefault)return null;e[o]=n.default}return e}function C2e(t,e){let o=Object.create(null);for(let n in t){let r=e&&e[n];if(r===void 0){let i=t[n];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+n)}o[n]=r}return o}function b2e(t,e,o,n){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${o} of type ${r}`);for(let r in t){let i=t[r];i.validate&&i.validate(e[r])}}function v2e(t,e){let o=Object.create(null);if(e)for(let n in e)o[n]=new GUt(t,n,e[n]);return o}let oue=class S2e{constructor(e,o,n){this.name=e,this.schema=o,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=v2e(e,n.attrs),this.defaultAttrs=y2e(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==bL.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:C2e(this.attrs,e)}create(e=null,o,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Xy(this,this.computeAttrs(e),Pe.from(o),cn.setFrom(n))}createChecked(e=null,o,n){return o=Pe.from(o),this.checkContent(o),new Xy(this,this.computeAttrs(e),o,cn.setFrom(n))}createAndFill(e=null,o,n){if(e=this.computeAttrs(e),o=Pe.from(o),o.size){let s=this.contentMatch.fillBefore(o);if(!s)return null;o=s.append(o)}let r=this.contentMatch.matchFragment(o),i=r&&r.fillBefore(Pe.empty,!0);return i?new Xy(this,e,o.append(i),cn.setFrom(n)):null}validContent(e){let o=this.contentMatch.matchFragment(e);if(!o||!o.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){b2e(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let o=0;o<e.length;o++)if(!this.allowsMarkType(e[o].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let o;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?o&&o.push(e[n]):o||(o=e.slice(0,n));return o?o.length?o:cn.none:e}static compile(e,o){let n=Object.create(null);e.forEach((i,s)=>n[i]=new S2e(i,o,s));let r=o.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};function JUt(t,e,o){let n=o.split("|");return r=>{let i=r===null?"null":typeof r;if(n.indexOf(i)<0)throw new RangeError(`Expected value of type ${n} for attribute ${e} on type ${t}, got ${i}`)}}let GUt=class{constructor(e,o,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate=typeof n.validate=="string"?JUt(e,o,n.validate):n.validate}get isRequired(){return!this.hasDefault}},w2e=class T2e{constructor(e,o,n,r){this.name=e,this.rank=o,this.schema=n,this.spec=r,this.attrs=v2e(e,r.attrs),this.excluded=null;let i=y2e(this.attrs);this.instance=i?new cn(this,i):null}create(e=null){return!e&&this.instance?this.instance:new cn(this,C2e(this.attrs,e))}static compile(e,o){let n=Object.create(null),r=0;return e.forEach((i,s)=>n[i]=new T2e(i,r++,o,s)),n}removeFromSet(e){for(var o=0;o<e.length;o++)e[o].type==this&&(e=e.slice(0,o).concat(e.slice(o+1)),o--);return e}isInSet(e){for(let o=0;o<e.length;o++)if(e[o].type==this)return e[o]}checkAttrs(e){b2e(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},YUt=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let o=this.spec={};for(let r in e)o[r]=e[r];o.nodes=Ur.from(e.nodes),o.marks=Ur.from(e.marks||{}),this.nodes=oue.compile(this.spec.nodes,this),this.marks=w2e.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=n[s]||(n[s]=bL.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?nue(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:nue(this,s.split(" "))}this.nodeFromJSON=r=>Xy.fromJSON(this,r),this.markFromJSON=r=>cn.fromJSON(this,r),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,o=null,n,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof oue){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(o,n,r)}text(e,o){let n=this.nodes.text;return new PUt(n,n.defaultAttrs,e,cn.setFrom(o))}mark(e,o){return typeof e=="string"&&(e=this.marks[e]),e.create(o)}nodeType(e){let o=this.nodes[e];if(!o)throw new RangeError("Unknown node type: "+e);return o}};function nue(t,e){let o=[];for(let n=0;n<e.length;n++){let r=e[n],i=t.marks[r],s=i;if(i)o.push(i);else for(let a in t.marks){let l=t.marks[a];(r=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&o.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[n]+"'")}return o}function ZUt(t){return t.tag!=null}function XUt(t){return t.style!=null}let c$=class cz{constructor(e,o){this.schema=e,this.rules=o,this.tags=[],this.styles=[];let n=this.matchedStyles=[];o.forEach(r=>{if(ZUt(r))this.tags.push(r);else if(XUt(r)){let i=/[^=]*/.exec(r.style)[0];n.indexOf(i)<0&&n.push(i),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,o={}){let n=new iue(this,o,!1);return n.addAll(e,cn.none,o.from,o.to),n.finish()}parseSlice(e,o={}){let n=new iue(this,o,!0);return n.addAll(e,cn.none,o.from,o.to),ct.maxOpen(n.finish())}matchTag(e,o,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(tqt(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||o.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,o,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!n.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=o))){if(s.getAttrs){let l=s.getAttrs(o);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let o=[];function n(r){let i=r.priority==null?50:r.priority,s=0;for(;s<o.length;s++){let a=o[s];if((a.priority==null?50:a.priority)<i)break}o.splice(s,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(s=>{n(s=sue(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(s=>{n(s=sue(s)),s.node||s.ignore||s.mark||(s.node=r)})}return o}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new cz(e,cz.schemaRules(e)))}};const x2e={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},QUt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},F2e={ol:!0,ul:!0},vL=1,dz=2,AF=4;function rue(t,e,o){return e!=null?(e?vL:0)|(e==="full"?dz:0):t&&t.whitespace=="pre"?vL|dz:o&~AF}let Q_=class{constructor(e,o,n,r,i,s){this.type=e,this.attrs=o,this.marks=n,this.solid=r,this.options=s,this.content=[],this.activeMarks=cn.none,this.match=i||(s&AF?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let o=this.type.contentMatch.fillBefore(Pe.from(e));if(o)this.match=this.type.contentMatch.matchFragment(o);else{let n=this.type.contentMatch,r;return(r=n.findWrapping(e.type))?(this.match=n,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&vL)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let o=Pe.from(this.content);return!e&&this.match&&(o=o.append(this.match.fillBefore(Pe.empty,!0))),this.type?this.type.create(this.attrs,o,this.marks):o}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!x2e.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},iue=class{constructor(e,o,n){this.parser=e,this.options=o,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=o.topNode,i,s=rue(null,o.preserveWhitespace,0)|(n?AF:0);r?i=new Q_(r.type,r.attrs,cn.none,!0,o.topMatch||r.type.contentMatch,s):n?i=new Q_(null,null,cn.none,!0,null,s):i=new Q_(e.schema.topNodeType,null,cn.none,!0,null,s),this.nodes=[i],this.find=o.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,o){e.nodeType==3?this.addTextNode(e,o):e.nodeType==1&&this.addElement(e,o)}addTextNode(e,o){let n=e.nodeValue,r=this.top,i=r.options&dz?"full":this.localPreserveWS||(r.options&vL)>0,{schema:s}=this.parser;if(i==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)if(i==="full")n=n.replace(/\r\n?/g,`
|
|
196
196
|
`);else if(s.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(s.linebreakReplacement.create())){let a=n.split(/\r?\n|\r/);for(let l=0;l<a.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),o,!0),a[l]&&this.insertNode(s.text(a[l]),o,!/\S/.test(a[l]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let a=r.content[r.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(n=n.slice(1))}n&&this.insertNode(s.text(n),o,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,o,n){let r=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),a;F2e.hasOwnProperty(s)&&this.parser.normalizeLists&&eqt(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,n));e:if(l?l.ignore:QUt.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,o);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let u,c=this.needsBlock;if(x2e.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,o);break e}let d=l&&l.skip?o:this.readStyles(e,o);d&&this.addAll(e,d),u&&this.sync(i),this.needsBlock=c}else{let u=this.readStyles(e,o);u&&this.addElementByRule(e,l,u,l.consuming===!1?a:void 0)}this.localPreserveWS=r}leafFallback(e,o){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
package/package.json
CHANGED