@retailrocketgroup/retailrocket-edit.price-drop-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 +4 -4
- 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 6439ms.
|
|
16
16
|
|
|
17
17
|
dist/index.html 7.48 kB │ gzip: 2.04 kB
|
|
18
|
-
|
|
19
18
|
dist/assets/index.css 175.28 kB │ gzip: 27.52 kB
|
|
20
|
-
dist/assets/index.js 3,962.
|
|
19
|
+
dist/assets/index.js 3,962.57 kB │ gzip: 1,034.40 kB
|
|
20
|
+
|
|
21
21
|
(!) Some chunks are larger than 500 kB after minification. Consider:
|
|
22
|
-
✓ built in 18.93s
|
|
23
22
|
- Using dynamic import() to code-split the application
|
|
24
23
|
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
|
|
25
24
|
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
|
|
25
|
+
✓ built in 20.16s
|
package/dist/assets/index.js
CHANGED
|
@@ -190,7 +190,7 @@ ${p.slice(u+2)}`,d+=1;else break}e.push({indent:u,number:parseInt(a,10),content:
|
|
|
190
190
|
`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const o=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return o!==void 0?o:-1},tokenize(t,e,o){const n=i=>{const s=R9(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=R9(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(oWt.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(nWt.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(sWt.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(dWt.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(pWt.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 fWt(){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 gWt(){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 yWt(){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=fWt();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=gWt();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}yWt();function db(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 CWt(t,e){const o={};for(const n of e)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o}function bWt(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 vWt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const o=[];let n=0;for(;n<t.length;)o.push(t.substr(n,e)),n+=e;return o}function LLe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n={};for(const r in t)n[r]=t[r];for(const r in e){const i=t[r],s=e[r];if(Uae(i)&&Uae(s)){n[r]=LLe(i,s,o);continue}if(o&&Array.isArray(i)&&Array.isArray(s)){n[r]=o(i,s);continue}n[r]=s}return n}function DF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(DF.cache.has(t))return DF.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return DF.cache.set(t,e),e}DF.cache=new Map;function SWt(t){const e=ve({});or(()=>{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 mb=2.4,Jae=.2126729,Gae=.7151522,Yae=.072175,TWt=.55,wWt=.58,xWt=.57,FWt=.62,W_=.03,Zae=1.45,kWt=5e-4,LWt=1.25,EWt=1.25,Xae=.078,Qae=12.82051282051282,H_=.06,ele=.001;function tle(t,e){const o=(t.r/255)**mb,n=(t.g/255)**mb,r=(t.b/255)**mb,i=(e.r/255)**mb,s=(e.g/255)**mb,a=(e.b/255)**mb;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)<kWt)return 0;let c;if(u>l){const d=(u**TWt-l**wWt)*LWt;c=d<ele?0:d<Xae?d-d*Qae*H_:d-H_}else{const d=(u**FWt-l**xWt)*EWt;c=d>-ele?0:d>-Xae?d-d*Qae*H_:d+H_}return c*100}function j9(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function _Wt(t){return j9(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const ole=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,DWt={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)=>bL({h:t,s:e,v:o,a:n}),hsva:(t,e,o,n)=>bL({h:t,s:e,v:o,a:n})};function mx(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 DWt[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 bL(ELe(t));if(q4(t,["h","s","v"]))return bL(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name}
|
|
193
|
-
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function bL(t){const{h:e,s:o,v:n,a:r}=t,i=a=>{const l=(a+e/60)%6;return n-n*o*Math.max(Math.min(l,4-l,1),0)},s=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:s[0],g:s[1],b:s[2],a:r}}function nle(t){return bL(ELe(t))}function ELe(t){const{h:e,s:o,l:n,a:r}=t,i=n+o*Math.min(n,1-n),s=i===0?0:2-2*n/i;return{h:e,s,v:i,a:r}}function BWt(t){t=$Wt(t);let[e,o,n,r]=vWt(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:o,b:n,a:r}}function $Wt(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 RWt(t){const e=Math.abs(tle(mx(0),mx(t)));return Math.abs(tle(mx(16777215),mx(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 AWt(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 K9=Symbol.for("vuetify:defaults");function _Le(){const t=xo(K9);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function NWt(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[DF(e)]<"u")}function VWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_Le();const n=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(p=>p!=null);if(NWt(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();or(()=>{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=AWt(K9,n);tr(K9,Q(()=>s.value?LLe(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function IWt(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 CWt(o,e)},t.props._as=String,t.setup=function(o,n){const r=_Le();if(!r.value)return t._setup(o,n);const{props:i,provideSubDefaults:s}=VWt(o,o._as??t.name,r),a=t._setup(i,n);return s(),a}}return t}function PWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?IWt:X)(e)}function MWt(t){const e=UP("useRender");e.render=t}function OWt(t){return SWt(()=>{const{class:e,style:o}=HWt(t);return{colorClasses:e,colorStyles:o}})}function WWt(t){const{colorClasses:e,colorStyles:o}=OWt(()=>({background:Tr(t)}));return{backgroundColorClasses:e,backgroundColorStyles:o}}function HWt(t){const e=Tr(t),o=[],n={};if(e.background)if(j9(e.background)){if(n.backgroundColor=e.background,!e.text&&_Wt(e.background)){const r=mx(e.background);if(r.a==null||r.a===1){const i=RWt(r);n.color=i,n.caretColor=i}}}else o.push(`bg-${e.background}`);return e.text&&(j9(e.text)?(n.color=e.text,n.caretColor=e.text):o.push(`text-${e.text}`)),{class:o,style:n}}const zWt=jE({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function jWt(t){return{dimensionStyles:Q(()=>{const e={},o=db(t.height),n=db(t.maxHeight),r=db(t.maxWidth),i=db(t.minHeight),s=db(t.minWidth),a=db(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 KWt=jE({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function UWt(t){return{elevationClasses:Ye(()=>{const e=Vo(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const qWt=Symbol.for("vuetify:locale");function JWt(){const t=xo(qWt);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}const rle=Symbol.for("vuetify:theme"),GWt=jE({theme:String},"theme");function YWt(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 tr(rle,i),i}const ZWt={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 XWt(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=ZWt[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[XWt(t,e)]}function sle(t){return t.replace(/\s/g,"").split(",").map(qP)}const QWt=jE({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...zWt(),...KWt(),...GWt()},"VSkeletonLoader");PWt()({name:"VSkeletonLoader",inheritAttrs:!1,props:QWt(),setup(t,e){let{attrs:o,slots:n}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=WWt(()=>t.color),{dimensionStyles:s}=jWt(t),{elevationClasses:a}=UWt(t),{themeClasses:l}=YWt(t),{t:u}=JWt(),c=Q(()=>qP(bWt(t.type).join(",")));return MWt(()=>{const d=!n.default||t.loading,m=t.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(t.loadingText),role:"alert"};return d?y("div",hn({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},l.value,r.value,a.value],style:[i.value,s.value]},m,o),[c.value]):y(ce,null,[n.default?.()])}),{}}});var Hi="top",Fa="bottom",ka="right",zi="left",JP="auto",QS=[Hi,Fa,ka,zi],zC="start",zv="end",DLe="clippingParents",DG="viewport",t1="popper",BLe="reference",U9=QS.reduce(function(t,e){return t.concat([e+"-"+zC,e+"-"+zv])},[]),BG=[].concat(QS,[JP]).reduce(function(t,e){return t.concat([e,e+"-"+zC,e+"-"+zv])},[]),$Le="beforeRead",RLe="read",ALe="afterRead",NLe="beforeMain",VLe="main",ILe="afterMain",PLe="beforeWrite",MLe="write",OLe="afterWrite",WLe=[$Le,RLe,ALe,NLe,VLe,ILe,PLe,MLe,OLe];function ld(t){return t?(t.nodeName||"").toLowerCase():null}function La(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function jC(t){var e=La(t).Element;return t instanceof e||t instanceof Element}function El(t){var e=La(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function $G(t){if(typeof ShadowRoot>"u")return!1;var e=La(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function eHt(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 tHt(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:eHt,effect:tHt,requires:["computeStyles"]};function Kc(t){return t.split("-")[0]}var Gy=Math.max,u3=Math.min,jv=Math.round;function q9(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function HLe(){return!/^((?!chrome|android).)*safari/i.test(q9())}function Kv(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&&jv(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&jv(n.height)/t.offsetHeight||1);var s=jC(t)?La(t):window,a=s.visualViewport,l=!HLe()&&o,u=(n.left+(l&&a?a.offsetLeft:0))/r,c=(n.top+(l&&a?a.offsetTop:0))/i,d=n.width/r,m=n.height/i;return{width:d,height:m,top:c,right:u+d,bottom:c+m,left:u,x:u,y:c}}function AG(t){var e=Kv(t),o=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:n}}function zLe(t,e){var o=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(o&&$G(o)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function tp(t){return La(t).getComputedStyle(t)}function oHt(t){return["table","td","th"].indexOf(ld(t))>=0}function eg(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)||eg(t)}function ale(t){return!El(t)||tp(t).position==="fixed"?null:t.offsetParent}function nHt(t){var e=/firefox/i.test(q9()),o=/Trident/i.test(q9());if(o&&El(t)){var n=tp(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=tp(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function KE(t){for(var e=La(t),o=ale(t);o&&oHt(o)&&tp(o).position==="static";)o=ale(o);return o&&(ld(o)==="html"||ld(o)==="body"&&tp(o).position==="static")?e:o||nHt(t)||e}function NG(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function BF(t,e,o){return Gy(t,u3(e,o))}function rHt(t,e,o){var n=BF(t,e,o);return n>o?o:n}function jLe(){return{top:0,right:0,bottom:0,left:0}}function KLe(t){return Object.assign({},jLe(),t)}function ULe(t,e){return e.reduce(function(o,n){return o[n]=t,o},{})}var iHt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,KLe(typeof t!="number"?t:ULe(t,QS))};function sHt(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=[zi,ka].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=iHt(r.padding,o),m=AG(i),p=l==="y"?Hi:zi,h=l==="y"?Fa:ka,f=o.rects.reference[c]+o.rects.reference[l]-s[l]-o.rects.popper[c],g=s[l]-o.rects.reference[l],b=KE(i),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=f/2-g/2,w=d[p],x=v-m[c]-d[h],F=v/2-m[c]/2+S,B=BF(w,F,x),N=l;o.modifiersData[n]=(e={},e[N]=B,e.centerOffset=B-F,e)}}function aHt(t){var e=t.state,o=t.options,n=o.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||zLe(e.elements.popper,r)&&(e.elements.arrow=r))}const qLe={name:"arrow",enabled:!0,phase:"main",fn:sHt,effect:aHt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Uv(t){return t.split("-")[1]}var lHt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uHt(t,e){var o=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:jv(o*r)/r||0,y:jv(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,p=m===void 0?0:m,h=s.y,f=h===void 0?0:h,g=typeof c=="function"?c({x:p,y:f}):{x:p,y:f};p=g.x,f=g.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),S=zi,w=Hi,x=window;if(u){var F=KE(o),B="clientHeight",N="clientWidth";if(F===La(o)&&(F=eg(o),tp(F).position!=="static"&&a==="absolute"&&(B="scrollHeight",N="scrollWidth")),F=F,r===Hi||(r===zi||r===ka)&&i===zv){w=Fa;var R=d&&F===x&&x.visualViewport?x.visualViewport.height:F[B];f-=R-n.height,f*=l?1:-1}if(r===zi||(r===Hi||r===Fa)&&i===zv){S=ka;var P=d&&F===x&&x.visualViewport?x.visualViewport.width:F[N];p-=P-n.width,p*=l?1:-1}}var E=Object.assign({position:a},u&&lHt),L=c===!0?uHt({x:p,y:f},La(o)):{x:p,y:f};if(p=L.x,f=L.y,l){var A;return Object.assign({},E,(A={},A[w]=v?"0":"",A[S]=b?"0":"",A.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",A))}return Object.assign({},E,(e={},e[w]=v?f+"px":"",e[S]=b?p+"px":"",e.transform="",e))}function cHt(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:Uv(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:cHt,data:{}};var z_={passive:!0};function dHt(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:dHt,data:{}};var mHt={left:"right",right:"left",bottom:"top",top:"bottom"};function r$(t){return t.replace(/left|right|bottom|top/g,function(e){return mHt[e]})}var pHt={start:"end",end:"start"};function ule(t){return t.replace(/start|end/g,function(e){return pHt[e]})}function PG(t){var e=La(t),o=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:o,scrollTop:n}}function MG(t){return Kv(eg(t)).left+PG(t).scrollLeft}function hHt(t,e){var o=La(t),n=eg(t),r=o.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;var u=HLe();(u||!u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a+MG(t),y:l}}function fHt(t){var e,o=eg(t),n=PG(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=Gy(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Gy(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+MG(t),l=-n.scrollTop;return tp(r||o).direction==="rtl"&&(a+=Gy(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function OG(t){var e=tp(t),o=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function JLe(t){return["html","body","#document"].indexOf(ld(t))>=0?t.ownerDocument.body:El(t)&&OG(t)?t:JLe(GP(t))}function $F(t,e){var o;e===void 0&&(e=[]);var n=JLe(t),r=n===((o=t.ownerDocument)==null?void 0:o.body),i=La(n),s=r?[i].concat(i.visualViewport||[],OG(n)?n:[]):n,a=e.concat(s);return r?a:a.concat($F(GP(s)))}function J9(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function gHt(t,e){var o=Kv(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===DG?J9(hHt(t,o)):jC(e)?gHt(e,o):J9(fHt(eg(t)))}function yHt(t){var e=$F(GP(t)),o=["absolute","fixed"].indexOf(tp(t).position)>=0,n=o&&El(t)?KE(t):t;return jC(n)?e.filter(function(r){return jC(r)&&zLe(r,n)&&ld(r)!=="body"}):[]}function CHt(t,e,o,n){var r=e==="clippingParents"?yHt(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 GLe(t){var e=t.reference,o=t.element,n=t.placement,r=n?Kc(n):null,i=n?Uv(n):null,s=e.x+e.width/2-o.width/2,a=e.y+e.height/2-o.height/2,l;switch(r){case Hi: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 zi: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 zv:l[u]=l[u]+(e[c]/2-o[c]/2);break}}return l}function qv(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=n===void 0?t.placement:n,i=o.strategy,s=i===void 0?t.strategy:i,a=o.boundary,l=a===void 0?DLe:a,u=o.rootBoundary,c=u===void 0?DG:u,d=o.elementContext,m=d===void 0?t1:d,p=o.altBoundary,h=p===void 0?!1:p,f=o.padding,g=f===void 0?0:f,b=KLe(typeof g!="number"?g:ULe(g,QS)),v=m===t1?BLe:t1,S=t.rects.popper,w=t.elements[h?v:m],x=CHt(jC(w)?w:w.contextElement||eg(t.elements.popper),l,c,s),F=Kv(t.elements.reference),B=GLe({reference:F,element:S,placement:r}),N=J9(Object.assign({},S,B)),R=m===t1?N:F,P={top:x.top-R.top+b.top,bottom:R.bottom-x.bottom+b.bottom,left:x.left-R.left+b.left,right:R.right-x.right+b.right},E=t.modifiersData.offset;if(m===t1&&E){var L=E[r];Object.keys(P).forEach(function(A){var I=[ka,Fa].indexOf(A)>=0?1:-1,W=[Hi,Fa].indexOf(A)>=0?"y":"x";P[A]+=L[W]*I})}return P}function bHt(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=o.boundary,i=o.rootBoundary,s=o.padding,a=o.flipVariations,l=o.allowedAutoPlacements,u=l===void 0?BG:l,c=Uv(n),d=c?a?U9:U9.filter(function(h){return Uv(h)===c}):QS,m=d.filter(function(h){return u.indexOf(h)>=0});m.length===0&&(m=d);var p=m.reduce(function(h,f){return h[f]=qv(t,{placement:f,boundary:r,rootBoundary:i,padding:s})[Kc(f)],h},{});return Object.keys(p).sort(function(h,f){return p[h]-p[f]})}function vHt(t){if(Kc(t)===JP)return[];var e=r$(t);return[ule(t),e,ule(e)]}function SHt(t){var e=t.state,o=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!0:s,l=o.fallbackPlacements,u=o.padding,c=o.boundary,d=o.rootBoundary,m=o.altBoundary,p=o.flipVariations,h=p===void 0?!0:p,f=o.allowedAutoPlacements,g=e.options.placement,b=Kc(g),v=b===g,S=l||(v||!h?[r$(g)]:vHt(g)),w=[g].concat(S).reduce(function(me,H){return me.concat(Kc(H)===JP?bHt(e,{placement:H,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:f}):H)},[]),x=e.rects.reference,F=e.rects.popper,B=new Map,N=!0,R=w[0],P=0;P<w.length;P++){var E=w[P],L=Kc(E),A=Uv(E)===zC,I=[Hi,Fa].indexOf(L)>=0,W=I?"width":"height",O=qv(e,{placement:E,boundary:c,rootBoundary:d,altBoundary:m,padding:u}),K=I?A?ka:zi:A?Fa:Hi;x[W]>F[W]&&(K=r$(K));var fe=r$(K),Ve=[];if(i&&Ve.push(O[L]<=0),a&&Ve.push(O[K]<=0,O[fe]<=0),Ve.every(function(me){return me})){R=E,N=!1;break}B.set(E,Ve)}if(N)for(var Se=h?3:1,G=function(me){var H=w.find(function(be){var le=B.get(be);if(le)return le.slice(0,me).every(function(ue){return ue})});if(H)return R=H,"break"},Ae=Se;Ae>0;Ae--){var q=G(Ae);if(q==="break")break}e.placement!==R&&(e.modifiersData[n]._skip=!0,e.placement=R,e.reset=!0)}}const YLe={name:"flip",enabled:!0,phase:"main",fn:SHt,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[Hi,ka,Fa,zi].some(function(e){return t[e]>=0})}function THt(t){var e=t.state,o=t.name,n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=qv(e,{elementContext:"reference"}),a=qv(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 ZLe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:THt};function wHt(t,e,o){var n=Kc(t),r=[zi,Hi].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,[zi,ka].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function xHt(t){var e=t.state,o=t.options,n=t.name,r=o.offset,i=r===void 0?[0,0]:r,s=BG.reduce(function(c,d){return c[d]=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 XLe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xHt};function FHt(t){var e=t.state,o=t.name;e.modifiersData[o]=GLe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const WG={name:"popperOffsets",enabled:!0,phase:"read",fn:FHt,data:{}};function kHt(t){return t==="x"?"y":"x"}function LHt(t){var e=t.state,o=t.options,n=t.name,r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!1:s,l=o.boundary,u=o.rootBoundary,c=o.altBoundary,d=o.padding,m=o.tether,p=m===void 0?!0:m,h=o.tetherOffset,f=h===void 0?0:h,g=qv(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Kc(e.placement),v=Uv(e.placement),S=!v,w=NG(b),x=kHt(w),F=e.modifiersData.popperOffsets,B=e.rects.reference,N=e.rects.popper,R=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,P=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(F){if(i){var A,I=w==="y"?Hi:zi,W=w==="y"?Fa:ka,O=w==="y"?"height":"width",K=F[w],fe=K+g[I],Ve=K-g[W],Se=p?-N[O]/2:0,G=v===zC?B[O]:N[O],Ae=v===zC?-N[O]:-B[O],q=e.elements.arrow,me=p&&q?AG(q):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:jLe(),be=H[I],le=H[W],ue=BF(0,B[O],me[O]),Nt=S?B[O]/2-Se-ue-be-P.mainAxis:G-ue-be-P.mainAxis,Vt=S?-B[O]/2+Se+ue+le+P.mainAxis:Ae+ue+le+P.mainAxis,Et=e.elements.arrow&&KE(e.elements.arrow),z=Et?w==="y"?Et.clientTop||0:Et.clientLeft||0:0,j=(A=E?.[w])!=null?A:0,ee=K+Nt-j-z,oe=K+Vt-j,re=BF(p?u3(fe,ee):fe,K,p?Gy(Ve,oe):Ve);F[w]=re,L[w]=re-K}if(a){var ie,de=w==="x"?Hi:zi,he=w==="x"?Fa:ka,te=F[x],ne=x==="y"?"height":"width",Ge=te+g[de],we=te-g[he],Te=[Hi,zi].indexOf(b)!==-1,xe=(ie=E?.[x])!=null?ie:0,Ne=Te?Ge:te-B[ne]-N[ne]-xe+P.altAxis,Ce=Te?te+B[ne]+N[ne]-xe-P.altAxis:we,Qe=p&&Te?rHt(Ne,te,Ce):BF(p?Ne:Ge,te,p?Ce:we);F[x]=Qe,L[x]=Qe-te}e.modifiersData[n]=L}}const QLe={name:"preventOverflow",enabled:!0,phase:"main",fn:LHt,requiresIfExists:["offset"]};function EHt(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function _Ht(t){return t===La(t)||!El(t)?PG(t):EHt(t)}function DHt(t){var e=t.getBoundingClientRect(),o=jv(e.width)/t.offsetWidth||1,n=jv(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)&&DHt(e),i=eg(e),s=Kv(t,r,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!o)&&((ld(e)!=="body"||OG(i))&&(a=_Ht(e)),El(e)?(l=Kv(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 $Ht(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 RHt(t){var e=$Ht(t);return WLe.reduce(function(o,n){return o.concat(e.filter(function(r){return r.phase===n}))},[])}function AHt(t){var e;return function(){return e||(e=new Promise(function(o){Promise.resolve().then(function(){e=void 0,o(t())})})),e}}function NHt(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 ple={placement:"bottom",modifiers:[],strategy:"absolute"};function hle(){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?ple:r;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ple,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},c=[],d=!1,m={state:u,setOptions:function(f){var g=typeof f=="function"?f(u.options):f;h(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:jC(s)?$F(s):s.contextElement?$F(s.contextElement):[],popper:$F(a)};var b=RHt(NHt([].concat(n,u.options.modifiers)));return u.orderedModifiers=b.filter(function(v){return v.enabled}),p(),m.update()},forceUpdate:function(){if(!d){var f=u.elements,g=f.reference,b=f.popper;if(hle(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],w=S.fn,x=S.options,F=x===void 0?{}:x,B=S.name;typeof w=="function"&&(u=w({state:u,options:F,name:B,instance:m})||u)}}}},update:AHt(function(){return new Promise(function(f){m.forceUpdate(),f(u)})}),destroy:function(){h(),d=!0}};if(!hle(s,a))return m;m.setOptions(l).then(function(f){!d&&l.onFirstUpdate&&l.onFirstUpdate(f)});function p(){u.orderedModifiers.forEach(function(f){var g=f.name,b=f.options,v=b===void 0?{}:b,S=f.effect;if(typeof S=="function"){var w=S({state:u,name:g,instance:m,options:v}),x=function(){};c.push(w||x)}})}function h(){c.forEach(function(f){return f()}),c=[]}return m}}var VHt=YP(),IHt=[IG,WG,VG,RG],PHt=YP({defaultModifiers:IHt}),MHt=[IG,WG,VG,RG,XLe,YLe,QLe,qLe,ZLe],HG=YP({defaultModifiers:MHt});const eEe=Object.freeze(Object.defineProperty({__proto__:null,afterMain:ILe,afterRead:ALe,afterWrite:OLe,applyStyles:RG,arrow:qLe,auto:JP,basePlacements:QS,beforeMain:NLe,beforeRead:$Le,beforeWrite:PLe,bottom:Fa,clippingParents:DLe,computeStyles:VG,createPopper:HG,createPopperBase:VHt,createPopperLite:PHt,detectOverflow:qv,end:zv,eventListeners:IG,flip:YLe,hide:ZLe,left:zi,main:VLe,modifierPhases:WLe,offset:XLe,placements:BG,popper:t1,popperGenerator:YP,popperOffsets:WG,preventOverflow:QLe,read:RLe,reference:BLe,right:ka,start:zC,top:Hi,variationPlacements:U9,viewport:DG,write:MLe},Symbol.toStringTag,{value:"Module"})),Jp=new Map,J4={set(t,e,o){Jp.has(t)||Jp.set(t,new Map);const n=Jp.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,o)},get(t,e){return Jp.has(t)&&Jp.get(t).get(e)||null},remove(t,e){if(!Jp.has(t))return;const o=Jp.get(t);o.delete(e),o.size===0&&Jp.delete(t)}},OHt=1e6,WHt=1e3,G9="transitionend",tEe=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,o)=>`#${CSS.escape(o)}`)),t),HHt=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),zHt=t=>{do t+=Math.floor(Math.random()*OHt);while(document.getElementById(t));return t},jHt=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))*WHt)},oEe=t=>{t.dispatchEvent(new Event(G9))},Dm=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),kf=t=>Dm(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(tEe(t)):null,eT=t=>{if(!Dm(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",o=t.closest("details:not([open])");if(!o)return e;if(o!==t){const n=t.closest("summary");if(n&&n.parentNode!==o||n===null)return!1}return e},Lf=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",nEe=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?nEe(t.parentNode):null},c3=()=>{},UE=t=>{t.offsetHeight},rEe=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,G4=[],KHt=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=>{KHt(()=>{const e=rEe();if(e){const o=t.NAME,n=e.fn[o];e.fn[o]=t.jQueryInterface,e.fn[o].Constructor=t,e.fn[o].noConflict=()=>(e.fn[o]=n,t.jQueryInterface)}})},Fs=(t,e=[],o=t)=>typeof t=="function"?t.call(...e):o,iEe=(t,e,o=!0)=>{if(!o){Fs(t);return}const n=jHt(e)+5;let r=!1;const i=({target:s})=>{s===e&&(r=!0,e.removeEventListener(G9,i),Fs(t))};e.addEventListener(G9,i),setTimeout(()=>{r||oEe(e)},n)},zG=(t,e,o,n)=>{const r=t.length;let i=t.indexOf(e);return i===-1?!o&&n?t[r-1]:t[0]:(i+=o?1:-1,n&&(i=(i+r)%r),t[Math.max(0,Math.min(i,r-1))])},UHt=/[^.]*(?=\..*)\.|.*/,qHt=/\..*/,JHt=/::\d+$/,Y4={};let fle=1;const sEe={mouseenter:"mouseover",mouseleave:"mouseout"},GHt=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function aEe(t,e){return e&&`${e}::${fle++}`||t.uidEvent||fle++}function lEe(t){const e=aEe(t);return t.uidEvent=e,Y4[e]=Y4[e]||{},Y4[e]}function YHt(t,e){return function o(n){return jG(n,{delegateTarget:t}),o.oneOff&&Ee.off(t,n.type,e),e.apply(t,[n])}}function ZHt(t,e,o){return function n(r){const i=t.querySelectorAll(e);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return jG(r,{delegateTarget:s}),n.oneOff&&Ee.off(t,r.type,e,o),o.apply(s,[r])}}function uEe(t,e,o=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===o)}function cEe(t,e,o){const n=typeof e=="string",r=n?o:e||o;let i=dEe(t);return GHt.has(i)||(i=t),[n,r,i]}function gle(t,e,o,n,r){if(typeof e!="string"||!t)return;let[i,s,a]=cEe(e,o,n);e in sEe&&(s=(p=>function(h){if(!h.relatedTarget||h.relatedTarget!==h.delegateTarget&&!h.delegateTarget.contains(h.relatedTarget))return p.call(this,h)})(s));const l=lEe(t),u=l[a]||(l[a]={}),c=uEe(u,s,i?o:null);if(c){c.oneOff=c.oneOff&&r;return}const d=aEe(s,e.replace(UHt,"")),m=i?ZHt(t,o,s):YHt(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 Y9(t,e,o,n,r){const i=uEe(e[o],n,r);i&&(t.removeEventListener(o,i,!!r),delete e[o][i.uidEvent])}function XHt(t,e,o,n){const r=e[o]||{};for(const[i,s]of Object.entries(r))i.includes(n)&&Y9(t,e,o,s.callable,s.delegationSelector)}function dEe(t){return t=t.replace(qHt,""),sEe[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]=cEe(e,o,n),a=s!==e,l=lEe(t),u=l[s]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;Y9(t,l,s,i,r?o:null);return}if(c)for(const d of Object.keys(l))XHt(t,l,d,e.slice(1));for(const[d,m]of Object.entries(u)){const p=d.replace(JHt,"");(!a||e.includes(p))&&Y9(t,l,s,m.callable,m.delegationSelector)}},trigger(t,e,o){if(typeof e!="string"||!t)return null;const n=rEe(),r=dEe(e),i=e!==r;let s=null,a=!0,l=!0,u=!1;i&&n&&(s=n.Event(e,o),n(t).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=jG(new Event(e,{bubbles:a,cancelable:!0}),o);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function jG(t,e={}){for(const[o,n]of Object.entries(e))try{t[o]=n}catch{Object.defineProperty(t,o,{configurable:!0,get(){return n}})}return t}function 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 Bm={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=Dm(o)?Bm.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...Dm(o)?Bm.getDataAttributes(o):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,o=this.constructor.DefaultType){for(const[n,r]of Object.entries(o)){const i=e[n],s=Dm(i)?"element":HHt(i);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${r}".`)}}};const QHt="5.3.8";let Xu=class extends qE{constructor(e,o){super(),e=kf(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){iEe(e,o,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return J4.get(kf(e),this.DATA_KEY)}static getOrCreateInstance(e,o={}){return this.getInstance(e)||new this(e,typeof o=="object"?o:null)}static get VERSION(){return QHt}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=>tEe(o)).join(","):null},vt={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(o=>o.matches(e))},parents(t,e){const o=[];let n=t.parentNode.closest(e);for(;n;)o.push(n),n=n.parentNode.closest(e);return o},prev(t,e){let o=t.previousElementSibling;for(;o;){if(o.matches(e))return[o];o=o.previousElementSibling}return[]},next(t,e){let o=t.nextElementSibling;for(;o;){if(o.matches(e))return[o];o=o.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(o=>!Lf(o)&&eT(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(),Lf(this))return;const i=vt.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(i)[e]()})},e7t="alert",t7t="bs.alert",mEe=`.${t7t}`,o7t=`close${mEe}`,n7t=`closed${mEe}`,r7t="fade",i7t="show";let pEe=class hEe extends Xu{static get NAME(){return e7t}close(){if(Ee.trigger(this._element,o7t).defaultPrevented)return;this._element.classList.remove(i7t);const e=this._element.classList.contains(r7t);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Ee.trigger(this._element,n7t),this.dispose()}static jQueryInterface(e){return this.each(function(){const o=hEe.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};ZP(pEe,"close");tu(pEe);const s7t="button",a7t="bs.button",l7t=`.${a7t}`,u7t=".data-api",c7t="active",Cle='[data-bs-toggle="button"]',d7t=`click${l7t}${u7t}`;let fEe=class gEe extends Xu{static get NAME(){return s7t}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(c7t))}static jQueryInterface(e){return this.each(function(){const o=gEe.getOrCreateInstance(this);e==="toggle"&&o[e]()})}};Ee.on(document,d7t,Cle,t=>{t.preventDefault();const e=t.target.closest(Cle);fEe.getOrCreateInstance(e).toggle()});tu(fEe);const m7t="swipe",tT=".bs.swipe",p7t=`touchstart${tT}`,h7t=`touchmove${tT}`,f7t=`touchend${tT}`,g7t=`pointerdown${tT}`,y7t=`pointerup${tT}`,C7t="touch",b7t="pen",v7t="pointer-event",S7t=40,T7t={endCallback:null,leftCallback:null,rightCallback:null},w7t={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};let ble=class yEe extends qE{constructor(e,o){super(),this._element=e,!(!e||!yEe.isSupported())&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return T7t}static get DefaultType(){return w7t}static get NAME(){return m7t}dispose(){Ee.off(this._element,tT)}_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(),Fs(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<=S7t)return;const o=e/this._deltaX;this._deltaX=0,o&&Fs(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ee.on(this._element,g7t,e=>this._start(e)),Ee.on(this._element,y7t,e=>this._end(e)),this._element.classList.add(v7t)):(Ee.on(this._element,p7t,e=>this._start(e)),Ee.on(this._element,h7t,e=>this._move(e)),Ee.on(this._element,f7t,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===b7t||e.pointerType===C7t)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}};const x7t="carousel",F7t="bs.carousel",tg=`.${F7t}`,CEe=".data-api",k7t="ArrowLeft",L7t="ArrowRight",E7t=500,uw="next",pb="prev",o1="left",i$="right",_7t=`slide${tg}`,Q4=`slid${tg}`,D7t=`keydown${tg}`,B7t=`mouseenter${tg}`,$7t=`mouseleave${tg}`,R7t=`dragstart${tg}`,A7t=`load${tg}${CEe}`,N7t=`click${tg}${CEe}`,bEe="carousel",j_="active",V7t="slide",I7t="carousel-item-end",P7t="carousel-item-start",M7t="carousel-item-next",O7t="carousel-item-prev",vEe=".active",SEe=".carousel-item",W7t=vEe+SEe,H7t=".carousel-item img",z7t=".carousel-indicators",j7t="[data-bs-slide], [data-bs-slide-to]",K7t='[data-bs-ride="carousel"]',U7t={[k7t]:i$,[L7t]:o1},q7t={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},J7t={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};let KG=class TEe 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(z7t,this._element),this._addEventListeners(),this._config.ride===bEe&&this.cycle()}static get Default(){return q7t}static get DefaultType(){return J7t}static get NAME(){return x7t}next(){this._slide(uw)}nextWhenVisible(){!document.hidden&&eT(this._element)&&this.next()}prev(){this._slide(pb)}pause(){this._isSliding&&oEe(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Ee.one(this._element,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?uw: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,D7t,e=>this._keydown(e)),this._config.pause==="hover"&&(Ee.on(this._element,B7t,()=>this.pause()),Ee.on(this._element,$7t,()=>this._maybeEnableCycle())),this._config.touch&&ble.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of vt.find(H7t,this._element))Ee.on(o,R7t,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(o1)),rightCallback:()=>this._slide(this._directionToOrder(i$)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),E7t+this._config.interval))}};this._swipeHelper=new ble(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const o=U7t[e.key];o&&(e.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const o=vt.findOne(vEe,this._indicatorsElement);o.classList.remove(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===uw,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(_7t).defaultPrevented||!n||!i)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=r?P7t:I7t,c=r?M7t:O7t;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(V7t)}_getActive(){return vt.findOne(W7t,this._element)}_getItems(){return vt.find(SEe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ml()?e===o1?pb:uw:e===o1?uw:pb}_orderToDirection(e){return Ml()?e===pb?o1:i$:e===pb?i$:o1}static jQueryInterface(e){return this.each(function(){const o=TEe.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,N7t,j7t,function(t){const e=vt.getElementFromSelector(this);if(!e||!e.classList.contains(bEe))return;t.preventDefault();const o=KG.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){o.to(n),o._maybeEnableCycle();return}if(Bm.getDataAttribute(this,"slide")==="next"){o.next(),o._maybeEnableCycle();return}o.prev(),o._maybeEnableCycle()});Ee.on(window,A7t,()=>{const t=vt.find(K7t);for(const e of t)KG.getOrCreateInstance(e)});tu(KG);const G7t="collapse",Y7t="bs.collapse",JE=`.${Y7t}`,Z7t=".data-api",X7t=`show${JE}`,Q7t=`shown${JE}`,e8t=`hide${JE}`,t8t=`hidden${JE}`,o8t=`click${JE}${Z7t}`,e5="show",O1="collapse",K_="collapsing",n8t="collapsed",r8t=`:scope .${O1} .${O1}`,i8t="collapse-horizontal",s8t="width",a8t="height",l8t=".collapse.show, .collapse.collapsing",Z9='[data-bs-toggle="collapse"]',u8t={parent:null,toggle:!0},c8t={parent:"(null|element)",toggle:"boolean"};let wEe=class X9 extends Xu{constructor(e,o){super(e,o),this._isTransitioning=!1,this._triggerArray=[];const n=vt.find(Z9);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 u8t}static get DefaultType(){return c8t}static get NAME(){return G7t}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(l8t).filter(i=>i!==this._element).map(i=>X9.getOrCreateInstance(i,{toggle:!1}))),e.length&&e[0]._isTransitioning||Ee.trigger(this._element,X7t).defaultPrevented)return;for(const i of e)i.hide();const o=this._getDimension();this._element.classList.remove(O1),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(O1,e5),this._element.style[o]="",Ee.trigger(this._element,Q7t)},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,e8t).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(O1,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(O1),Ee.trigger(this._element,t8t)};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=kf(e.parent),e}_getDimension(){return this._element.classList.contains(i8t)?s8t:a8t}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Z9);for(const o of e){const n=vt.getElementFromSelector(o);n&&this._addAriaAndCollapsedClass([o],this._isShown(n))}}_getFirstLevelChildren(e){const o=vt.find(r8t,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(n8t,!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=X9.getOrCreateInstance(this,o);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}};Ee.on(document,o8t,Z9,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of vt.getMultipleElementsFromSelector(this))wEe.getOrCreateInstance(e,{toggle:!1}).toggle()});tu(wEe);const vle="dropdown",d8t="bs.dropdown",v0=`.${d8t}`,UG=".data-api",m8t="Escape",Sle="Tab",p8t="ArrowUp",Tle="ArrowDown",h8t=2,f8t=`hide${v0}`,g8t=`hidden${v0}`,y8t=`show${v0}`,C8t=`shown${v0}`,xEe=`click${v0}${UG}`,FEe=`keydown${v0}${UG}`,b8t=`keyup${v0}${UG}`,n1="show",v8t="dropup",S8t="dropend",T8t="dropstart",w8t="dropup-center",x8t="dropdown-center",my='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',F8t=`${my}.${n1}`,s$=".dropdown-menu",k8t=".navbar",L8t=".navbar-nav",E8t=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",_8t=Ml()?"top-end":"top-start",D8t=Ml()?"top-start":"top-end",B8t=Ml()?"bottom-end":"bottom-start",$8t=Ml()?"bottom-start":"bottom-end",R8t=Ml()?"left-start":"right-start",A8t=Ml()?"right-start":"left-start",N8t="top",V8t="bottom",I8t={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},P8t={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let oT=class a$ extends Xu{constructor(e,o){super(e,o),this._popper=null,this._parent=this._element.parentNode,this._menu=vt.next(this._element,s$)[0]||vt.prev(this._element,s$)[0]||vt.findOne(s$,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return I8t}static get DefaultType(){return P8t}static get NAME(){return vle}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Lf(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Ee.trigger(this._element,y8t,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(L8t))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,C8t,e)}}hide(){if(Lf(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,f8t,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"),Bm.removeDataAttribute(this._menu,"popper"),Ee.trigger(this._element,g8t,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Dm(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 eEe>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:Dm(this._config.reference)?e=kf(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(S8t))return R8t;if(e.classList.contains(T8t))return A8t;if(e.classList.contains(w8t))return N8t;if(e.classList.contains(x8t))return V8t;const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(v8t)?o?D8t:_8t:o?$8t:B8t}_detectNavbar(){return this._element.closest(k8t)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Bm.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Fs(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:o}){const n=vt.find(E8t,this._menu).filter(r=>eT(r));n.length&&zG(n,o,e===Tle,!n.includes(o)).focus()}static jQueryInterface(e){return this.each(function(){const o=a$.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(F8t);for(const n of o){const r=a$.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===m8t,r=[p8t,Tle].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=a$.getOrCreateInstance(i);if(r){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}};Ee.on(document,FEe,my,oT.dataApiKeydownHandler);Ee.on(document,FEe,s$,oT.dataApiKeydownHandler);Ee.on(document,xEe,oT.clearMenus);Ee.on(document,b8t,oT.clearMenus);Ee.on(document,xEe,my,function(t){t.preventDefault(),oT.getOrCreateInstance(this).toggle()});tu(oT);const kEe="backdrop",M8t="fade",wle="show",xle=`mousedown.bs.${kEe}`,O8t={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},W8t={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};let LEe=class extends qE{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return O8t}static get DefaultType(){return W8t}static get NAME(){return kEe}show(e){if(!this._config.isVisible){Fs(e);return}this._append();const o=this._getElement();this._config.isAnimated&&UE(o),o.classList.add(wle),this._emulateAnimation(()=>{Fs(e)})}hide(e){if(!this._config.isVisible){Fs(e);return}this._getElement().classList.remove(wle),this._emulateAnimation(()=>{this.dispose(),Fs(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(M8t),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=kf(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Ee.on(e,xle,()=>{Fs(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){iEe(e,this._getElement(),this._config.isAnimated)}};const H8t="focustrap",z8t="bs.focustrap",d3=`.${z8t}`,j8t=`focusin${d3}`,K8t=`keydown.tab${d3}`,U8t="Tab",q8t="forward",Fle="backward",J8t={autofocus:!0,trapElement:null},G8t={autofocus:"boolean",trapElement:"element"};let EEe=class extends qE{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return J8t}static get DefaultType(){return G8t}static get NAME(){return H8t}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ee.off(document,d3),Ee.on(document,j8t,e=>this._handleFocusin(e)),Ee.on(document,K8t,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===U8t&&(this._lastTabNavDirection=e.shiftKey?Fle:q8t)}};const kle=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Lle=".sticky-top",U_="padding-right",Ele="margin-right";let Q9=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&&Bm.setDataAttribute(e,o,n)}_resetElementAttributes(e,o){const n=r=>{const i=Bm.getDataAttribute(r,o);if(i===null){r.style.removeProperty(o);return}Bm.removeDataAttribute(r,o),r.style.setProperty(o,i)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,o){if(Dm(e)){o(e);return}for(const n of vt.find(e,this._element))o(n)}};const Y8t="modal",Z8t="bs.modal",Ol=`.${Z8t}`,X8t=".data-api",Q8t="Escape",e9t=`hide${Ol}`,t9t=`hidePrevented${Ol}`,_Ee=`hidden${Ol}`,DEe=`show${Ol}`,o9t=`shown${Ol}`,n9t=`resize${Ol}`,r9t=`click.dismiss${Ol}`,i9t=`mousedown.dismiss${Ol}`,s9t=`keydown.dismiss${Ol}`,a9t=`click${Ol}${X8t}`,_le="modal-open",l9t="fade",Dle="show",t5="modal-static",u9t=".modal.show",c9t=".modal-dialog",d9t=".modal-body",m9t='[data-bs-toggle="modal"]',p9t={backdrop:!0,focus:!0,keyboard:!0},h9t={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let m3=class BEe extends Xu{constructor(e,o){super(e,o),this._dialog=vt.findOne(c9t,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Q9,this._addEventListeners()}static get Default(){return p9t}static get DefaultType(){return h9t}static get NAME(){return Y8t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Ee.trigger(this._element,DEe,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(_le),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Ee.trigger(this._element,e9t).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Dle),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ee.off(window,Ol),Ee.off(this._dialog,Ol),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new LEe({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new EEe({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=vt.findOne(d9t,this._dialog);o&&(o.scrollTop=0),UE(this._element),this._element.classList.add(Dle);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ee.trigger(this._element,o9t,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Ee.on(this._element,s9t,e=>{if(e.key===Q8t){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Ee.on(window,n9t,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ee.on(this._element,i9t,e=>{Ee.one(this._element,r9t,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,_Ee)})}_isAnimated(){return this._element.classList.contains(l9t)}_triggerBackdropTransition(){if(Ee.trigger(this._element,t9t).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=BEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](o)}})}};Ee.on(document,a9t,m9t,function(t){const e=vt.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ee.one(e,DEe,n=>{n.defaultPrevented||Ee.one(e,_Ee,()=>{eT(this)&&this.focus()})});const o=vt.findOne(u9t);o&&m3.getInstance(o).hide(),m3.getOrCreateInstance(e).toggle(this)});ZP(m3);tu(m3);const f9t="offcanvas",g9t="bs.offcanvas",Tp=`.${g9t}`,$Ee=".data-api",y9t=`load${Tp}${$Ee}`,C9t="Escape",Ble="show",$le="showing",Rle="hiding",b9t="offcanvas-backdrop",REe=".offcanvas.show",v9t=`show${Tp}`,S9t=`shown${Tp}`,T9t=`hide${Tp}`,Ale=`hidePrevented${Tp}`,AEe=`hidden${Tp}`,w9t=`resize${Tp}`,x9t=`click${Tp}${$Ee}`,F9t=`keydown.dismiss${Tp}`,k9t='[data-bs-toggle="offcanvas"]',L9t={backdrop:!0,keyboard:!0,scroll:!1},E9t={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};let Jv=class NEe extends Xu{constructor(e,o){super(e,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return L9t}static get DefaultType(){return E9t}static get NAME(){return f9t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Ee.trigger(this._element,v9t,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Q9().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(Ble),this._element.classList.remove($le),Ee.trigger(this._element,S9t,{relatedTarget:e})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||Ee.trigger(this._element,T9t).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(Ble,Rle),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Q9().reset(),Ee.trigger(this._element,AEe)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Ee.trigger(this._element,Ale);return}this.hide()},o=!!this._config.backdrop;return new LEe({className:b9t,isVisible:o,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:o?e:null})}_initializeFocusTrap(){return new EEe({trapElement:this._element})}_addEventListeners(){Ee.on(this._element,F9t,e=>{if(e.key===C9t){if(this._config.keyboard){this.hide();return}Ee.trigger(this._element,Ale)}})}static jQueryInterface(e){return this.each(function(){const o=NEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};Ee.on(document,x9t,k9t,function(t){const e=vt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Lf(this))return;Ee.one(e,AEe,()=>{eT(this)&&this.focus()});const o=vt.findOne(REe);o&&o!==e&&Jv.getInstance(o).hide(),Jv.getOrCreateInstance(e).toggle(this)});Ee.on(window,y9t,()=>{for(const t of vt.find(REe))Jv.getOrCreateInstance(t).show()});Ee.on(window,w9t,()=>{for(const t of vt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Jv.getOrCreateInstance(t).hide()});ZP(Jv);tu(Jv);const _9t=/^aria-[\w-]*$/i,VEe={"*":["class","dir","id","lang","role",_9t],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:[]},D9t=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),B9t=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,$9t=(t,e)=>{const o=t.nodeName.toLowerCase();return e.includes(o)?D9t.has(o)?!!B9t.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(o))};function R9t(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)$9t(u,l)||i.removeAttribute(u.nodeName)}return n.body.innerHTML}const A9t="TemplateFactory",N9t={allowList:VEe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},V9t={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},I9t={entry:"(string|element|function|null)",selector:"(string|element)"};let P9t=class extends qE{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return N9t}static get DefaultType(){return V9t}static get NAME(){return A9t}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},I9t)}_setContent(e,o,n){const r=vt.findOne(n,e);if(r){if(o=this._resolvePossibleFunction(o),!o){r.remove();return}if(Dm(o)){this._putElementInTemplate(kf(o),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(o);return}r.textContent=o}}_maybeSanitize(e){return this._config.sanitize?R9t(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Fs(e,[void 0,this])}_putElementInTemplate(e,o){if(this._config.html){o.innerHTML="",o.append(e);return}o.textContent=e.textContent}};const M9t="tooltip",O9t=new Set(["sanitize","allowList","sanitizeFn"]),o5="fade",W9t="modal",q_="show",H9t=".tooltip-inner",Nle=`.${W9t}`,Vle="hide.bs.modal",cw="hover",n5="focus",r5="click",z9t="manual",j9t="hide",K9t="hidden",U9t="show",q9t="shown",J9t="inserted",G9t="click",Y9t="focusin",Z9t="focusout",X9t="mouseenter",Q9t="mouseleave",ezt={AUTO:"auto",TOP:"top",RIGHT:Ml()?"left":"right",BOTTOM:"bottom",LEFT:Ml()?"right":"left"},tzt={allowList:VEe,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ozt={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 IEe extends Xu{constructor(e,o){if(typeof eEe>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return tzt}static get DefaultType(){return ozt}static get NAME(){return M9t}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(U9t)),o=(nEe(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!o)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Ee.trigger(this._element,this.constructor.eventName(J9t))),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(q9t)),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(j9t)).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[cw]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ee.trigger(this._element,this.constructor.eventName(K9t)))};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=zHt(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 P9t({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[H9t]: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=Fs(this._config.placement,[this,e,this._element]),n=ezt[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 Fs(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,...Fs(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(G9t),this._config.selector,n=>{const r=this._initializeOnDelegatedTarget(n);r._activeTrigger[r5]=!(r._isShown()&&r._activeTrigger[r5]),r.toggle()});else if(o!==z9t){const n=o===cw?this.constructor.eventName(X9t):this.constructor.eventName(Y9t),r=o===cw?this.constructor.eventName(Q9t):this.constructor.eventName(Z9t);Ee.on(this._element,n,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?n5:cw]=!0,s._enter()}),Ee.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?n5:cw]=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=Bm.getDataAttributes(this._element);for(const n of Object.keys(o))O9t.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:kf(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[o,n]of Object.entries(this._config))this.constructor.Default[o]!==n&&(e[o]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const o=IEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};tu(XP);const nzt="popover",rzt=".popover-header",izt=".popover-body",szt={...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"},azt={...XP.DefaultType,content:"(null|string|element|function)"};let lzt=class PEe extends XP{static get Default(){return szt}static get DefaultType(){return azt}static get NAME(){return nzt}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[rzt]:this._getTitle(),[izt]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const o=PEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};tu(lzt);const uzt="scrollspy",czt="bs.scrollspy",qG=`.${czt}`,dzt=".data-api",mzt=`activate${qG}`,Ile=`click${qG}`,pzt=`load${qG}${dzt}`,hzt="dropdown-item",hb="active",fzt='[data-bs-spy="scroll"]',i5="[href]",gzt=".nav, .list-group",Ple=".nav-link",yzt=".nav-item",Czt=".list-group-item",bzt=`${Ple}, ${yzt} > ${Ple}, ${Czt}`,vzt=".dropdown",Szt=".dropdown-toggle",Tzt={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 MEe=class OEe extends Xu{constructor(e,o){super(e,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Tzt}static get DefaultType(){return wzt}static get NAME(){return uzt}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=kf(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||Lf(o))continue;const n=vt.findOne(decodeURI(o.hash),this._element);eT(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(hb),this._activateParents(e),Ee.trigger(this._element,mzt,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(hzt)){vt.findOne(Szt,e.closest(vzt)).classList.add(hb);return}for(const o of vt.parents(e,gzt))for(const n of vt.prev(o,bzt))n.classList.add(hb)}_clearActiveClass(e){e.classList.remove(hb);const o=vt.find(`${i5}.${hb}`,e);for(const n of o)n.classList.remove(hb)}static jQueryInterface(e){return this.each(function(){const o=OEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(window,pzt,()=>{for(const t of vt.find(fzt))MEe.getOrCreateInstance(t)});tu(MEe);const xzt="tab",Fzt="bs.tab",S0=`.${Fzt}`,kzt=`hide${S0}`,Lzt=`hidden${S0}`,Ezt=`show${S0}`,_zt=`shown${S0}`,Dzt=`click${S0}`,Bzt=`keydown${S0}`,$zt=`load${S0}`,Rzt="ArrowLeft",Mle="ArrowRight",Azt="ArrowUp",Ole="ArrowDown",s5="Home",Wle="End",py="active",Hle="fade",a5="show",Nzt="dropdown",WEe=".dropdown-toggle",Vzt=".dropdown-menu",l5=`:not(${WEe})`,Izt='.list-group, .nav, [role="tablist"]',Pzt=".nav-item, .list-group-item",Mzt=`.nav-link${l5}, .list-group-item${l5}, [role="tab"]${l5}`,HEe='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',u5=`${Mzt}, ${HEe}`,Ozt=`.${py}[data-bs-toggle="tab"], .${py}[data-bs-toggle="pill"], .${py}[data-bs-toggle="list"]`;let JG=class ez extends Xu{constructor(e){super(e),this._parent=this._element.closest(Izt),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ee.on(this._element,Bzt,o=>this._keydown(o)))}static get NAME(){return xzt}show(){const e=this._element;if(this._elemIsActive(e))return;const o=this._getActiveElem(),n=o?Ee.trigger(o,kzt,{relatedTarget:e}):null;Ee.trigger(e,Ezt,{relatedTarget:o}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(o,e),this._activate(e,o))}_activate(e,o){if(!e)return;e.classList.add(py),this._activate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(a5);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Ee.trigger(e,_zt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Hle))}_deactivate(e,o){if(!e)return;e.classList.remove(py),e.blur(),this._deactivate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(a5);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Ee.trigger(e,Lzt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Hle))}_keydown(e){if(![Rzt,Mle,Azt,Ole,s5,Wle].includes(e.key))return;e.stopPropagation(),e.preventDefault();const o=this._getChildren().filter(r=>!Lf(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}),ez.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(Nzt))return;const r=(i,s)=>{const a=vt.findOne(i,n);a&&a.classList.toggle(s,o)};r(WEe,py),r(Vzt,a5),n.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(e,o,n){e.hasAttribute(o)||e.setAttribute(o,n)}_elemIsActive(e){return e.classList.contains(py)}_getInnerElement(e){return e.matches(u5)?e:vt.findOne(u5,e)}_getOuterElement(e){return e.closest(Pzt)||e}static jQueryInterface(e){return this.each(function(){const o=ez.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,Dzt,HEe,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!Lf(this)&&JG.getOrCreateInstance(this).show()});Ee.on(window,$zt,()=>{for(const t of vt.find(Ozt))JG.getOrCreateInstance(t)});tu(JG);const Wzt="toast",Hzt="bs.toast",og=`.${Hzt}`,zzt=`mouseover${og}`,jzt=`mouseout${og}`,Kzt=`focusin${og}`,Uzt=`focusout${og}`,qzt=`hide${og}`,Jzt=`hidden${og}`,Gzt=`show${og}`,Yzt=`shown${og}`,Zzt="fade",zle="hide",J_="show",G_="showing",Xzt={animation:"boolean",autohide:"boolean",delay:"number"},Qzt={animation:!0,autohide:!0,delay:5e3};let zEe=class jEe extends Xu{constructor(e,o){super(e,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Qzt}static get DefaultType(){return Xzt}static get NAME(){return Wzt}show(){if(Ee.trigger(this._element,Gzt).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Zzt);const e=()=>{this._element.classList.remove(G_),Ee.trigger(this._element,Yzt),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,qzt).defaultPrevented)return;const e=()=>{this._element.classList.add(zle),this._element.classList.remove(G_,J_),Ee.trigger(this._element,Jzt)};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,zzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,jzt,e=>this._onInteraction(e,!1)),Ee.on(this._element,Kzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,Uzt,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const o=jEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};ZP(zEe);tu(zEe);const QP=t=>({Match:e=>{for(const o in t)if(t[o]!==void 0)return e[o](t[o]);throw Error("")}}),ejt=t=>{throw new Error("Didn't expect to get here"+t)},tjt=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"];Sp.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}});Sp.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>t.style.fontSize.replace(/['"]+/g,""),renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t+"px"}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}});Sp.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>t.style.lineHeight.replace(/['"]+/g,""),renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t+"px"}).run(),resetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).run()}}});Sp.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}});Sp.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}});Sp.create({name:"unsubscribeLink",priority:1e3,addOptions(){return{HTMLAttributes:{"data-type":"unsubscribe-link",class:"rich-text__unsubscribe-link"}}},parseHTML(){return[{tag:'span[data-type="unsubscribe-link"]'}]},renderHTML({HTMLAttributes:t}){return["span",xa(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:o,to:n}=e.selection,r=e.doc.textBetween(o,n," ");return e.doc.nodeAt(o)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:o,to:o+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}});Sp.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=o=>o.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=o=>o.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:o})},"Mod-u":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})},"Mod-U":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})}}}});Wo.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{const e=t.style.fontFamily.split(",").map(o=>o.trim()).map(o=>o.replace(/^['"]|['"]$/g,"")).map(o=>o.replace(/ /g,""));return tjt.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 ojt=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[J4t({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 Wn({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)&&ojt(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...n.attrs,width:l.width,height:l.height});o(u)})}})})(),{})})]}});const KEe=t=>Object.fromEntries(Object.entries(t).filter(([e,o])=>o!==void 0)),njt=t=>QP(t),rjt=t=>QP(t),ijt=t=>QP(t),sjt=t=>QP(t),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=>({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),cjt=t=>{const e=ajt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=ujt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=ljt({numberExpressionEvaluator:t.numberExpressionEvaluator});return({numberPredicate:r,context:i})=>sjt(r).Match({Equal:s=>e({predicate:s,context:i}),GreaterThan:s=>o({predicate:s,context:i}),LessThan:s=>n({predicate:s,context:i})})},djt=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),mjt=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)),pjt=t=>{const e=djt({stringExpressionEvaluator:t.stringExpressionEvaluator}),o=mjt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({stringPredicate:n,context:r})=>ijt(n).Match({Contains:i=>o({predicate:i,context:r}),Equal:i=>e({predicate:i,context:r})})},hjt=t=>{const e=cjt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=pjt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({predicate:n,context:r})=>rjt(n).Match({NumberPredicate:i=>e({numberPredicate:i,context:r}),StringPredicate:i=>o({stringPredicate:i,context:r})})},fjt=t=>{const e=hjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=({boolExpression:n,context:r})=>njt(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},gjt=t=>({localeKey:t.localeKey,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin}),yjt=t=>({postGetThemeLibrary:t.themeLibraryBffClient.postGetThemeLibrary,postGetComponentLibrary:t.componentLibraryBffClient.postGetComponentLibrary}),Cjt=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")},bjt=t=>({localeKey:t.localeKey}),vjt=t=>({localeKey:t.localeKey}),Sjt=t=>({localeKey:t.localeKey,saveTemplateErrorNotificationModalWindowDeps:vjt({localeKey:t.localeKey})}),Tjt=t=>({appSettingsModifierPlugin:t.appSettingsModifierPlugin,resetTemplateButtonDeps:bjt({localeKey:t.localeKey}),saveTemplateButtonDeps:Sjt({localeKey:t.localeKey})}),wjt=t=>({localeKey:t.localeKey}),xjt=t=>({localeKey:t.localeKey}),Fjt=t=>({localeKey:t.localeKey,preheaderSubjectUpdateModalWindowDeps:xjt({localeKey:t.localeKey})}),kjt=t=>({exportMenuDeps:Tjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),toggleDeviceToolbarDeps:wjt({localeKey:t.localeKey}),preheaderSubjectUpdateButtonDeps:Fjt({localeKey:t.localeKey})}),Ljt=t=>({sectionItemId:t.sectionItemId,sectionItemName:t.sectionItemName,theme:JSON.parse(t.theme.json)}),Ejt=t=>({sectionId:t.sectionId,sectionName:t.sectionName,sectionItems:t.sectionItems.map(e=>Ljt(e))}),_jt=t=>async()=>(await t.getThemeLibraryHttpClient({body:{partnerId:t.partnerId}})).body.sections.map(e=>Ejt(e)),Djt=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}),UEe=t=>async()=>(await t.postGetThemeLibrarySections({body:{partnerId:t.partnerId}})).body.sections.map(e=>Bjt(e)),$jt=t=>({localeKey:t.localeKey,addThemeSectionItem:Djt({partnerId:t.partnerId,postCreateThemeLibrarySectionItem:t.addThemeLibrarySectionItemModalWindowBffClient.postCreateThemeLibrarySectionItem}),getThemeLibrarySections:UEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.addThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Rjt=t=>async e=>{await t.deleteThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},Ajt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItem:Rjt({partnerId:t.partnerId,deleteThemeLibrarySectionItem:t.deleteThemeLibrarySectionItemModalWindowBffClient.postDeleteThemeLibrarySectionItem}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),Njt=t=>async e=>{await t.updateThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},Vjt=t=>({localeKey:t.localeKey,updateThemeLibrarySectionItem:Njt({partnerId:t.partnerId,updateThemeLibrarySectionItem:t.editThemeLibrarySectionItemModalWindowBffClient.postUpdateThemeLibrarySectionItem}),getThemeLibrarySections:UEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.editThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Ijt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItemModalWindowDeps:Ajt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient}),editThemeLibrarySectionItemModalWindowDeps:Vjt({localeKey:t.localeKey,partnerId:t.partnerId,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient})}),Pjt=t=>async e=>(await t.deleteThemeLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Mjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySection:Pjt({partnerId:t.partnerId,deleteThemeLibrarySectionHttpClientDelegate:t.deleteThemeLibrarySectionModalWindowBffClient.postDeleteThemeLibrarySection})}),Ojt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionModalWindowDeps:Mjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Wjt=t=>({localeKey:t.localeKey,themeSectionItemDeps:Ijt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient}),emptyThemeSectionDeps:Ojt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Hjt=t=>async e=>{await t.createThemeLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},zjt=t=>({localeKey:t.localeKey,createThemeLibrarySection:Hjt({partnerId:t.partnerId,createThemeLibrarySectionHttpClient:t.createThemeLibrarySectionModalWindowBffClient.postCreateThemeLibrarySection})}),jjt=t=>({defaultThemeLibrary:t.defaultThemeLibrary}),qEe=t=>({localeKey:t.localeKey,defaultThemeLibraryDeps:jjt({defaultThemeLibrary:t.defaultThemeLibrary}),customThemeLibraryDeps:{localeKey:t.localeKey,addThemeSectionItemModalWindowDeps:$jt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient}),themeSectionDeps:Wjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient}),createThemeLibrarySectionModalWindowDeps:zjt({localeKey:t.localeKey,partnerId:t.partnerId,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient})}}),Kjt=t=>({localeKey:t.localeKey,customThemeLibraryDeps:qEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}).customThemeLibraryDeps}),Ujt=t=>async e=>{await t.deleteComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},qjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItem:Ujt({partnerId:t.partnerId,deleteComponentLibrarySectionItemHttpClientDelegate:t.deleteComponentLibrarySectionItemModalWindowBffClient.postDeleteComponentLibrarySectionItem})}),Jjt=t=>async e=>{await t.updateComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},JEe=t=>async()=>(await t.getComponentLibrarySectionsHttpClientDelegate({body:{partnerId:t.partnerId}})).body.sections.map(e=>({sectionId:e.sectionId,sectionName:e.sectionName})),Gjt=t=>({localeKey:t.localeKey,updateComponentLibrarySectionItem:Jjt({partnerId:t.partnerId,updateComponentLibrarySectionItemHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postUpdateComponentLibrarySectionItem}),getComponentLibrarySections:JEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),Yjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItemModalWindowDeps:qjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),editComponentLibrarySectionItemModalWindowDeps:Gjt({localeKey:t.localeKey,partnerId:t.partnerId,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient}),emailComponentDeps:t.emailComponentDeps}),Zjt=t=>async e=>(await t.deleteComponentLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Xjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySection:Zjt({partnerId:t.partnerId,deleteComponentLibrarySectionHttpClientDelegate:t.deleteComponentLibrarySectionModalWindowBffClient.postDeleteComponentLibrarySection})}),Qjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionModalWindowDeps:Xjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),eKt=t=>({localeKey:t.localeKey,componentSectionItemDeps:Yjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),emptyComponentSectionDeps:Qjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),tKt=t=>async e=>{await t.createComponentLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},oKt=t=>({localeKey:t.localeKey,createComponentLibrarySection:tKt({partnerId:t.partnerId,createComponentLibrarySectionHttpClient:t.createComponentLibrarySectionModalWindowBffClient.postCreateComponentLibrarySection})}),nKt=t=>({localeKey:t.localeKey,createComponentLibrarySectionModalWindowDeps:oKt({localeKey:t.localeKey,partnerId:t.partnerId,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient}),componentSectionDeps:eKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),rKt=t=>({emailComponentDeps:t.emailComponentDeps}),iKt=t=>({localeKey:t.localeKey,componentSectionItemDeps:rKt({emailComponentDeps:t.emailComponentDeps})}),sKt=t=>({defaultComponentLibrary:t.defaultComponentLibrary,componentSectionDeps:iKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps})}),aKt=t=>({localeKey:t.localeKey,customComponentLibraryDeps:nKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient}),defaultComponentLibraryDeps:sKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps,defaultComponentLibrary:t.defaultComponentLibrary})}),lKt=t=>({localeKey:t.localeKey,exitLink:t.exitLink,themeLibraryDeps:qEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),themeStylesDeps:Kjt({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:aKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultComponentLibrary:t.defaultComponentLibrary})}),uKt=t=>async e=>{await t.createComponentLibrarySectionItemHttpClient({body:{partnerId:t.partnerId,parentSectionId:e.sectionId,sectionItemName:e.sectionItemName,component:t.httpClientComponentFactoryDelegate(e.component)}})},cKt=t=>({localeKey:t.localeKey,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,addComponentLibrarySectionItem:uKt({partnerId:t.partnerId,createComponentLibrarySectionItemHttpClient:t.addComponentLibrarySectionItemModalWindowBffClient.postCreateComponentLibrarySectionItem,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate}),getComponentLibrarySections:JEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.addComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),dKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),mKt=t=>({localeKey:t.localeKey}),pKt=t=>({movementMenuDeps:dKt({localeKey:t.localeKey}),draggingMenuDeps:mKt({localeKey:t.localeKey}),emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,addComponentLibrarySectionItemModalWindowDeps:cKt({localeKey:t.localeKey,partnerId:t.partnerId,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),hKt=t=>({localeKey:t.localeKey,emailComponentWrapperDeps:pKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),fKt=t=>({localeKey:t.localeKey}),gKt=t=>({localeKey:t.localeKey}),yKt=t=>({localeKey:t.localeKey}),CKt=t=>({localeKey:t.localeKey}),bKt=t=>({localeKey:t.localeKey,fontColorEditorDeps:CKt({localeKey:t.localeKey})}),GG=t=>({localeKey:t.localeKey,fontStyleColorEditorDeps:yKt({localeKey:t.localeKey}),customFontSettingsDeps:bKt({localeKey:t.localeKey})}),vKt=t=>({removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),truncateSpanEditorDeps:gKt({localeKey:t.localeKey}),localeKey:t.localeKey,fontStyleEditorDeps:GG({localeKey:t.localeKey})}),SKt=t=>({localeKey:t.localeKey}),GEe=t=>({localeKey:t.localeKey,borderColorEditorDeps:SKt({localeKey:t.localeKey})}),TKt=t=>({localeKey:t.localeKey,borderEditorDeps:GEe({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),YG=t=>({localeKey:t.localeKey}),wKt=t=>({localeKey:t.localeKey,borderEditorDeps:GEe({localeKey:t.localeKey}),colorEditorDeps:YG({localeKey:t.localeKey}),fontStyleEditorDeps:GG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),xKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),fontStyleEditorDeps:GG({localeKey:t.localeKey})}),FKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),kKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),colorEditorDeps:YG({localeKey:t.localeKey})}),LKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),EKt=t=>({spanEditorDeps:vKt({localeKey:t.localeKey}),imageEditorDeps:TKt({localeKey:t.localeKey}),buttonEditorDeps:wKt({localeKey:t.localeKey}),unsubscribeLinkEditorDeps:xKt({localeKey:t.localeKey}),backgroundImageEditorDeps:FKt({localeKey:t.localeKey}),spacerEditorDeps:kKt({localeKey:t.localeKey}),richTextEditorDeps:LKt({localeKey:t.localeKey})}),_Kt=t=>({localeKey:t.localeKey,colorEditorDeps:YG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),DKt=t=>{const e=fjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=XIt({localeKey:t.localeKey,elementsDeps:TPt({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:kjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),saveEmailTemplate:t.saveEmailTemplate,createFavoriteTemplate:t.createFavoriteTemplate,getThemeLibrary:_jt({partnerId:t.partnerId,getThemeLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetThemeLibrary}),getComponentLibrary:t.getComponentLibraryFactory({partnerId:t.partnerId,getComponentLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetComponentLibrary}),asideMenuDeps:lKt({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:fKt({localeKey:t.localeKey}),elementsEditorDeps:EKt({localeKey:t.localeKey}),emailComponentEditorDeps:_Kt({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}}),$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}}),AKt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),YEe=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),ZG=t=>{switch(t.stockSource._t){case"CustomerStockIdSource":return t.customerStockId;case"DefaultStoreStockIdSource":return;case"SpecificStockIdSource":return t.stockSource.Value;default:ejt(t.stockSource)}},NKt=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.findProductsBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:e,stockId:n}})).body.products.map(r=>YEe(r))},VKt=t=>({localeKey:t.localeKey}),IKt=t=>({selectedProductListItemDeps:VKt({localeKey:t.localeKey})}),PKt=t=>({localeKey:t.localeKey}),MKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,selectedProductListDeps:IKt({localeKey:t.localeKey}),emptyProductListDeps:PKt({localeKey:t.localeKey})}),OKt=t=>({localeKey:t.localeKey}),WKt=t=>({localeKey:t.localeKey}),HKt=t=>({localeKey:t.localeKey}),zKt=t=>({searchedProductListItemDeps:WKt({localeKey:t.localeKey}),emptySearchProductListDeps:HKt({localeKey:t.localeKey})}),jKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,productSearchBarDeps:OKt({localeKey:t.localeKey}),searchedProductListDeps:zKt({localeKey:t.localeKey})}),KKt=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>YEe(r))},UKt=t=>{const e=KKt({partnerId:t.partnerId,productCache:{},customerStockId:t.customerStockId,getProductsByIDsHttpClient:t.productPickerModalWindowBffClient.postGetProductsByIds}),o=NKt({partnerId:t.partnerId,customerStockId:t.customerStockId,findProductsBySearchPhrase:t.productPickerModalWindowBffClient.postFindProductsBySearchPhrase});return{localeKey:t.localeKey,selectProductComponentDeps:MKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o}),productSearchComponentDeps:jKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o})}},qKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),JKt=async t=>{const e=t.categoryIds.filter(o=>!t.categoryCache[o]);return e.length>0&&(await t.findCategoriesByID({partnerId:t.partnerId,categoryIds:e})).forEach(o=>t.categoryCache[o.id]=o),t.categoryIds.map(o=>t.categoryCache[o]).filter(o=>o!==void 0)},ZEe=t=>async e=>(await JKt({partnerId:t.partnerId,categoryIds:e,categoryCache:{},findCategoriesByID:async o=>(await t.getCategoriesByIDsHttpClient({body:{partnerId:t.partnerId,categoryIds:o.categoryIds.concat([])}})).body.categories})).map(o=>qKt(o)),GKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),YKt=async t=>{const e=await t.findCategoriesByPhrase({phrase:t.phrase});return e.forEach(o=>t.categoryCache[o.id]=o),e},ZKt=t=>async e=>(await YKt({phrase:e,categoryCache:t.categoryCache,findCategoriesByPhrase:async o=>(await t.findProductCategoriesBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:o.phrase}})).body.categories})).map(o=>GKt(o)),XKt=t=>({localeKey:t.localeKey}),QKt=t=>({localeKey:t.localeKey,getCategoriesByIDs:t.getCategoriesByIDs,selectedCategoryListDeps:{},emptyCategoryListDeps:XKt({localeKey:t.localeKey})}),eUt=t=>({localeKey:t.localeKey}),tUt=t=>({localeKey:t.localeKey}),oUt=t=>({emptySearchCategoryListDeps:tUt({localeKey:t.localeKey})}),nUt=t=>({localeKey:t.localeKey,findCategoriesByName:t.findCategoriesByName,getCategoriesByIDs:t.getCategoriesByIDs,categorySearchBarDeps:eUt({localeKey:t.localeKey}),searchedCategoryListDeps:oUt({localeKey:t.localeKey})}),XEe=t=>{const e={},o=ZEe({partnerId:t.partnerId,categoryCache:e,getCategoriesByIDsHttpClient:t.productCategoryPickerModalWindowBffClient.postGetProductCategoriesByIds}),n=ZKt({partnerId:t.partnerId,categoryCache:e,findProductCategoriesBySearchPhrase:t.productCategoryPickerModalWindowBffClient.postFindProductCategoriesBySearchPhrase});return{localeKey:t.localeKey,selectCategoryComponentDeps:QKt({localeKey:t.localeKey,getCategoriesByIDs:o}),categorySearchComponentDeps:nUt({localeKey:t.localeKey,getCategoriesByIDs:o,findCategoriesByName:n})}},rUt=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=>rUt(r))},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,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}}}),lUt=t=>({localeKey:t.localeKey,getCategoriesByIDs:ZEe({partnerId:t.partnerId,categoryCache:t.categoryCache,getCategoriesByIDsHttpClient:t.getCategoriesByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),categoryListComposerModalWindowDeps:XEe({localeKey:t.localeKey,partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),QEe=t=>t.reduce((e,o)=>(e[o.name]=o.value,e),{}),T0=t=>KEe({InternalProductId:t.internalProductId,Name:t.name,Description:t.description,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,Url:t.url,CategoryIds:[],Vendor:t.vendor,Params:QEe(t.parameters),DiscountPercentage:t.discountPercentage}),uUt=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(e=>T0(e));var cUt=typeof global=="object"&&global&&global.Object===Object&&global,dUt=typeof self=="object"&&self&&self.Object===Object&&self,mUt=cUt||dUt||Function("return this")(),p3=mUt.Symbol;p3&&p3.toStringTag;p3&&p3.toStringTag;const{entries:e2e,setPrototypeOf:jle,isFrozen:pUt,getPrototypeOf:hUt,getOwnPropertyDescriptor:fUt}=Object;let{freeze:ss,seal:Wl,create:tz}=Object,{apply:oz,construct:nz}=typeof Reflect<"u"&&Reflect;ss||(ss=function(t){return t});Wl||(Wl=function(t){return t});oz||(oz=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)});nz||(nz=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_=as(Array.prototype.forEach),gUt=as(Array.prototype.lastIndexOf),Kle=as(Array.prototype.pop),dw=as(Array.prototype.push),yUt=as(Array.prototype.splice),l$=as(String.prototype.toLowerCase),c5=as(String.prototype.toString),d5=as(String.prototype.match),mw=as(String.prototype.replace),CUt=as(String.prototype.indexOf),bUt=as(String.prototype.trim),wu=as(Object.prototype.hasOwnProperty),vi=as(RegExp.prototype.test),pw=vUt(TypeError);function as(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 oz(t,e,n)}}function vUt(t){return function(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return nz(t,o)}}function oo(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l$;jle&&jle(t,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const i=o(r);i!==r&&(pUt(e)||(e[n]=i),r=i)}t[r]=!0}return t}function SUt(t){for(let e=0;e<t.length;e++)wu(t,e)||(t[e]=null);return t}function gc(t){const e=tz(null);for(const[o,n]of e2e(t))wu(t,o)&&(Array.isArray(n)?e[o]=SUt(n):n&&typeof n=="object"&&n.constructor===Object?e[o]=gc(n):e[o]=n);return e}function hw(t,e){for(;t!==null;){const n=fUt(t,e);if(n){if(n.get)return as(n.get);if(typeof n.value=="function")return as(n.value)}t=hUt(t)}function o(){return null}return o}const Ule=ss(["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=ss(["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"]),p5=ss(["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"]),TUt=ss(["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"]),h5=ss(["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=ss(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qle=ss(["#text"]),Jle=ss(["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=ss(["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=ss(["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_=ss(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xUt=Wl(/\{\{[\w\W]*|[\w\W]*\}\}/gm),FUt=Wl(/<%[\w\W]*|[\w\W]*%>/gm),kUt=Wl(/\$\{[\w\W]*/gm),LUt=Wl(/^data-[\-\w.\u00B7-\uFFFF]+$/),EUt=Wl(/^aria-[\-\w]+$/),t2e=Wl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_Ut=Wl(/^(?:\w+script|data):/i),DUt=Wl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),o2e=Wl(/^html$/i),BUt=Wl(/^[a-z][.\w]*(-[.\w]+)+$/i);var Yle=Object.freeze({__proto__:null,ARIA_ATTR:EUt,ATTR_WHITESPACE:DUt,CUSTOM_ELEMENT:BUt,DATA_ATTR:LUt,DOCTYPE_NAME:o2e,ERB_EXPR:FUt,IS_ALLOWED_URI:t2e,IS_SCRIPT_OR_DATA:_Ut,MUSTACHE_EXPR:xUt,TMPLIT_EXPR:kUt});const fw={element:1,text:3,progressingInstruction:7,comment:8,document:9},$Ut=function(){return typeof window>"u"?null:window},RUt=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 n2e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$Ut();const e=C=>n2e(C);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==fw.document||!t.Element)return e.isSupported=!1,e;let{document:o}=t;const n=o,r=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=t,h=l.prototype,f=hw(h,"cloneNode"),g=hw(h,"remove"),b=hw(h,"nextSibling"),v=hw(h,"childNodes"),S=hw(h,"parentNode");if(typeof s=="function"){const C=o.createElement("template");C.content&&C.content.ownerDocument&&(o=C.content.ownerDocument)}let w,x="";const{implementation:F,createNodeIterator:B,createDocumentFragment:N,getElementsByTagName:R}=o,{importNode:P}=n;let E=Zle();e.isSupported=typeof e2e=="function"&&typeof S=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:A,TMPLIT_EXPR:I,DATA_ATTR:W,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:Ve}=Yle;let{IS_ALLOWED_URI:Se}=Yle,G=null;const Ae=oo({},[...Ule,...m5,...p5,...h5,...qle]);let q=null;const me=oo({},[...Jle,...f5,...Gle,...Z_]);let H=Object.seal(tz(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(tz(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Nt=!0,Vt=!0,Et=!1,z=!0,j=!1,ee=!0,oe=!1,re=!1,ie=!1,de=!1,he=!1,te=!1,ne=!0,Ge=!1;const we="user-content-";let Te=!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:l$,G=wu(C,"ALLOWED_TAGS")?oo({},C.ALLOWED_TAGS,ge):Ae,q=wu(C,"ALLOWED_ATTR")?oo({},C.ALLOWED_ATTR,ge):me,qo=wu(C,"ALLOWED_NAMESPACES")?oo({},C.ALLOWED_NAMESPACES,c5):su,Co=wu(C,"ADD_URI_SAFE_ATTR")?oo(gc(No),C.ADD_URI_SAFE_ATTR,ge):No,Fo=wu(C,"ADD_DATA_URI_TAGS")?oo(gc(ko),C.ADD_DATA_URI_TAGS,ge):ko,Ce=wu(C,"FORBID_CONTENTS")?oo({},C.FORBID_CONTENTS,ge):Qe,be=wu(C,"FORBID_TAGS")?oo({},C.FORBID_TAGS,ge):gc({}),le=wu(C,"FORBID_ATTR")?oo({},C.FORBID_ATTR,ge):gc({}),Ne=wu(C,"USE_PROFILES")?C.USE_PROFILES:!1,Nt=C.ALLOW_ARIA_ATTR!==!1,Vt=C.ALLOW_DATA_ATTR!==!1,Et=C.ALLOW_UNKNOWN_PROTOCOLS||!1,z=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=C.SAFE_FOR_TEMPLATES||!1,ee=C.SAFE_FOR_XML!==!1,oe=C.WHOLE_DOCUMENT||!1,de=C.RETURN_DOM||!1,he=C.RETURN_DOM_FRAGMENT||!1,te=C.RETURN_TRUSTED_TYPE||!1,ie=C.FORCE_BODY||!1,ne=C.SANITIZE_DOM!==!1,Ge=C.SANITIZE_NAMED_PROPS||!1,Te=C.KEEP_CONTENT!==!1,xe=C.IN_PLACE||!1,Se=C.ALLOWED_URI_REGEXP||t2e,kt=C.NAMESPACE||tt,$o=C.MATHML_TEXT_INTEGRATION_POINTS||$o,Ro=C.HTML_INTEGRATION_POINTS||Ro,H=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&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),he&&(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,p5),oo(q,f5),oo(q,Z_)),Ne.mathMl===!0&&(oo(G,h5),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)),Te&&(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 pw('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw pw('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=C.TRUSTED_TYPES_POLICY,x=w.createHTML("")}else w===void 0&&(w=RUt(p,r)),w!==null&&typeof x=="string"&&(x=w.createHTML(""));ss&&ss(C),jt=C}},$r=oo({},[...m5,...p5,...TUt]),Rr=oo({},[...h5,...wUt]),du=function(C){let k=S(C);(!k||!k.tagName)&&(k={namespaceURI:kt,tagName:"template"});const D=l$(C.tagName),J=l$(k.tagName);return qo[C.namespaceURI]?C.namespaceURI===Lo?k.namespaceURI===tt?D==="svg":k.namespaceURI===go?D==="svg"&&(J==="annotation-xml"||$o[J]):!!$r[D]:C.namespaceURI===go?k.namespaceURI===tt?D==="math":k.namespaceURI===Lo?D==="math"&&Ro[J]:!!Rr[D]:C.namespaceURI===tt?k.namespaceURI===Lo&&!Ro[J]||k.namespaceURI===go&&!$o[J]?!1:!Rr[D]&&(au[D]||!$r[D]):!!(yo==="application/xhtml+xml"&&qo[C.namespaceURI]):!1},_t=function(C){dw(e.removed,{element:C});try{S(C).removeChild(C)}catch{g(C)}},Mt=function(C,k){try{dw(e.removed,{attribute:k.getAttributeNode(C),from:k})}catch{dw(e.removed,{attribute:null,from:k})}if(k.removeAttribute(C),C==="is")if(de||he)try{_t(k)}catch{}else try{k.setAttribute(C,"")}catch{}},Ar=function(C){let k=null,D=null;if(ie)C="<remove></remove>"+C;else{const ae=d5(C,/^[\r\n\t ]+/);D=ae&&ae[0]}yo==="application/xhtml+xml"&&kt===tt&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const J=w?w.createHTML(C):C;if(kt===tt)try{k=new m().parseFromString(J,yo)}catch{}if(!k||!k.documentElement){k=F.createDocument(kt,"template",null);try{k.documentElement.innerHTML=Uo?x:J}catch{}}const ye=k.body||k.documentElement;return C&&D&&ye.insertBefore(o.createTextNode(D),ye.childNodes[0]||null),kt===tt?R.call(k,oe?"html":"body")[0]:oe?k.documentElement:ye},Nr=function(C){return B.call(C.ownerDocument||C,C,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Cn=function(C){return C instanceof d&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof c)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},Vr=function(C){return typeof a=="function"&&C instanceof a};function pt(C,k,D){Y_(C,J=>{J.call(e,k,D,jt)})}const Ir=function(C){let k=null;if(pt(E.beforeSanitizeElements,C,null),Cn(C))return _t(C),!0;const D=ge(C.nodeName);if(pt(E.uponSanitizeElement,C,{tagName:D,allowedTags:G}),ee&&C.hasChildNodes()&&!Vr(C.firstElementChild)&&vi(/<[/\w!]/g,C.innerHTML)&&vi(/<[/\w!]/g,C.textContent)||C.nodeType===fw.progressingInstruction||ee&&C.nodeType===fw.comment&&vi(/<[/\w]/g,C.data))return _t(C),!0;if(!(ue.tagCheck instanceof Function&&ue.tagCheck(D))&&(!G[D]||be[D])){if(!be[D]&&Mr(D)&&(H.tagNameCheck instanceof RegExp&&vi(H.tagNameCheck,D)||H.tagNameCheck instanceof Function&&H.tagNameCheck(D)))return!1;if(Te&&!Ce[D]){const J=S(C)||C.parentNode,ye=v(C)||C.childNodes;if(ye&&J){const ae=ye.length;for(let nt=ae-1;nt>=0;--nt){const et=f(ye[nt],!0);et.__removalCount=(C.__removalCount||0)+1,J.insertBefore(et,b(C))}}}return _t(C),!0}return C instanceof l&&!du(C)||(D==="noscript"||D==="noembed"||D==="noframes")&&vi(/<\/no(script|embed|frames)/i,C.innerHTML)?(_t(C),!0):(j&&C.nodeType===fw.text&&(k=C.textContent,Y_([L,A,I],J=>{k=mw(k,J," ")}),C.textContent!==k&&(dw(e.removed,{element:C.cloneNode()}),C.textContent=k)),pt(E.afterSanitizeElements,C,null),!1)},Pr=function(C,k,D){if(ne&&(k==="id"||k==="name")&&(D in o||D in cu))return!1;if(!(Vt&&!le[k]&&vi(W,k))&&!(Nt&&vi(O,k))&&!(ue.attributeCheck instanceof Function&&ue.attributeCheck(k,C))){if(!q[k]||le[k]){if(!(Mr(C)&&(H.tagNameCheck instanceof RegExp&&vi(H.tagNameCheck,C)||H.tagNameCheck instanceof Function&&H.tagNameCheck(C))&&(H.attributeNameCheck instanceof RegExp&&vi(H.attributeNameCheck,k)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(k,C))||k==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&vi(H.tagNameCheck,D)||H.tagNameCheck instanceof Function&&H.tagNameCheck(D))))return!1}else if(!Co[k]&&!vi(Se,mw(D,fe,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&C!=="script"&&CUt(D,"data:")===0&&Fo[C])&&!(Et&&!vi(K,mw(D,fe,"")))&&D)return!1}return!0},Mr=function(C){return C!=="annotation-xml"&&d5(C,Ve)},Or=function(C){pt(E.beforeSanitizeAttributes,C,null);const{attributes:k}=C;if(!k||Cn(C))return;const D={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let J=k.length;for(;J--;){const ye=k[J],{name:ae,namespaceURI:nt,value:et}=ye,at=ge(ae),Jo=et;let He=ae==="value"?Jo:bUt(Jo);if(D.attrName=at,D.attrValue=He,D.keepAttr=!0,D.forceKeepAttr=void 0,pt(E.uponSanitizeAttribute,C,D),He=D.attrValue,Ge&&(at==="id"||at==="name")&&(Mt(ae,C),He=we+He),ee&&vi(/((--!?|])>)|<\/(style|title|textarea)/i,He)){Mt(ae,C);continue}if(at==="attributename"&&d5(He,"href")){Mt(ae,C);continue}if(D.forceKeepAttr)continue;if(!D.keepAttr){Mt(ae,C);continue}if(!z&&vi(/\/>/i,He)){Mt(ae,C);continue}j&&Y_([L,A,I],Za=>{He=mw(He,Za," ")});const Eo=ge(C.nodeName);if(!Pr(Eo,at,He)){Mt(ae,C);continue}if(w&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!nt)switch(p.getAttributeType(Eo,at)){case"TrustedHTML":{He=w.createHTML(He);break}case"TrustedScriptURL":{He=w.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)}}pt(E.afterSanitizeAttributes,C,null)},mu=function C(k){let D=null;const J=Nr(k);for(pt(E.beforeSanitizeShadowDOM,k,null);D=J.nextNode();)pt(E.uponSanitizeShadowNode,D,null),Ir(D),Or(D),D.content instanceof i&&C(D.content);pt(E.afterSanitizeShadowDOM,k,null)};return e.sanitize=function(C){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=null,J=null,ye=null,ae=null;if(Uo=!C,Uo&&(C="<!-->"),typeof C!="string"&&!Vr(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw pw("dirty is not a string, aborting")}else throw pw("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 at=ge(C.nodeName);if(!G[at]||be[at])throw pw("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof a)D=Ar("<!---->"),J=D.ownerDocument.importNode(C,!0),J.nodeType===fw.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?D=J:D.appendChild(J);else{if(!de&&!j&&!oe&&C.indexOf("<")===-1)return w&&te?w.createHTML(C):C;if(D=Ar(C),!D)return de?null:te?x:""}D&&ie&&_t(D.firstChild);const nt=Nr(xe?C:D);for(;ye=nt.nextNode();)Ir(ye),Or(ye),ye.content instanceof i&&mu(ye.content);if(xe)return C;if(de){if(he)for(ae=N.call(D.ownerDocument);D.firstChild;)ae.appendChild(D.firstChild);else ae=D;return(q.shadowroot||q.shadowrootmode)&&(ae=P.call(n,ae,!0)),ae}let et=oe?D.outerHTML:D.innerHTML;return oe&&G["!doctype"]&&D.ownerDocument&&D.ownerDocument.doctype&&D.ownerDocument.doctype.name&&vi(o2e,D.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+D.ownerDocument.doctype.name+`>
|
|
193
|
+
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function bL(t){const{h:e,s:o,v:n,a:r}=t,i=a=>{const l=(a+e/60)%6;return n-n*o*Math.max(Math.min(l,4-l,1),0)},s=[i(5),i(3),i(1)].map(a=>Math.round(a*255));return{r:s[0],g:s[1],b:s[2],a:r}}function nle(t){return bL(ELe(t))}function ELe(t){const{h:e,s:o,l:n,a:r}=t,i=n+o*Math.min(n,1-n),s=i===0?0:2-2*n/i;return{h:e,s,v:i,a:r}}function BWt(t){t=$Wt(t);let[e,o,n,r]=vWt(t,2).map(i=>parseInt(i,16));return r=r===void 0?r:r/255,{r:e,g:o,b:n,a:r}}function $Wt(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 RWt(t){const e=Math.abs(tle(mx(0),mx(t)));return Math.abs(tle(mx(16777215),mx(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 AWt(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 K9=Symbol.for("vuetify:defaults");function _Le(){const t=xo(K9);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function NWt(t,e){return t.props&&(typeof t.props[e]<"u"||typeof t.props[DF(e)]<"u")}function VWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_Le();const n=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(p=>p!=null);if(NWt(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();or(()=>{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=AWt(K9,n);tr(K9,Q(()=>s.value?LLe(l?.value??{},s.value):l?.value))}return{props:i,provideSubDefaults:a}}function IWt(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 CWt(o,e)},t.props._as=String,t.setup=function(o,n){const r=_Le();if(!r.value)return t._setup(o,n);const{props:i,provideSubDefaults:s}=VWt(o,o._as??t.name,r),a=t._setup(i,n);return s(),a}}return t}function PWt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?IWt:X)(e)}function MWt(t){const e=UP("useRender");e.render=t}function OWt(t){return SWt(()=>{const{class:e,style:o}=HWt(t);return{colorClasses:e,colorStyles:o}})}function WWt(t){const{colorClasses:e,colorStyles:o}=OWt(()=>({background:Tr(t)}));return{backgroundColorClasses:e,backgroundColorStyles:o}}function HWt(t){const e=Tr(t),o=[],n={};if(e.background)if(j9(e.background)){if(n.backgroundColor=e.background,!e.text&&_Wt(e.background)){const r=mx(e.background);if(r.a==null||r.a===1){const i=RWt(r);n.color=i,n.caretColor=i}}}else o.push(`bg-${e.background}`);return e.text&&(j9(e.text)?(n.color=e.text,n.caretColor=e.text):o.push(`text-${e.text}`)),{class:o,style:n}}const zWt=jE({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function jWt(t){return{dimensionStyles:Q(()=>{const e={},o=db(t.height),n=db(t.maxHeight),r=db(t.maxWidth),i=db(t.minHeight),s=db(t.minWidth),a=db(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 KWt=jE({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function UWt(t){return{elevationClasses:Ye(()=>{const e=Vo(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const qWt=Symbol.for("vuetify:locale");function JWt(){const t=xo(qWt);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}const rle=Symbol.for("vuetify:theme"),GWt=jE({theme:String},"theme");function YWt(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 tr(rle,i),i}const ZWt={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 XWt(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=ZWt[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[XWt(t,e)]}function sle(t){return t.replace(/\s/g,"").split(",").map(qP)}const QWt=jE({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},...zWt(),...KWt(),...GWt()},"VSkeletonLoader");PWt()({name:"VSkeletonLoader",inheritAttrs:!1,props:QWt(),setup(t,e){let{attrs:o,slots:n}=e;const{backgroundColorClasses:r,backgroundColorStyles:i}=WWt(()=>t.color),{dimensionStyles:s}=jWt(t),{elevationClasses:a}=UWt(t),{themeClasses:l}=YWt(t),{t:u}=JWt(),c=Q(()=>qP(bWt(t.type).join(",")));return MWt(()=>{const d=!n.default||t.loading,m=t.boilerplate||!d?{}:{ariaLive:"polite",ariaLabel:u(t.loadingText),role:"alert"};return d?y("div",hn({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":t.boilerplate},l.value,r.value,a.value],style:[i.value,s.value]},m,o),[c.value]):y(ce,null,[n.default?.()])}),{}}});var Hi="top",Fa="bottom",ka="right",zi="left",JP="auto",QS=[Hi,Fa,ka,zi],zC="start",zv="end",DLe="clippingParents",DG="viewport",t1="popper",BLe="reference",U9=QS.reduce(function(t,e){return t.concat([e+"-"+zC,e+"-"+zv])},[]),BG=[].concat(QS,[JP]).reduce(function(t,e){return t.concat([e,e+"-"+zC,e+"-"+zv])},[]),$Le="beforeRead",RLe="read",ALe="afterRead",NLe="beforeMain",VLe="main",ILe="afterMain",PLe="beforeWrite",MLe="write",OLe="afterWrite",WLe=[$Le,RLe,ALe,NLe,VLe,ILe,PLe,MLe,OLe];function ld(t){return t?(t.nodeName||"").toLowerCase():null}function La(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function jC(t){var e=La(t).Element;return t instanceof e||t instanceof Element}function El(t){var e=La(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function $G(t){if(typeof ShadowRoot>"u")return!1;var e=La(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function eHt(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 tHt(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:eHt,effect:tHt,requires:["computeStyles"]};function Kc(t){return t.split("-")[0]}var Gy=Math.max,u3=Math.min,jv=Math.round;function q9(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function HLe(){return!/^((?!chrome|android).)*safari/i.test(q9())}function Kv(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&&jv(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&jv(n.height)/t.offsetHeight||1);var s=jC(t)?La(t):window,a=s.visualViewport,l=!HLe()&&o,u=(n.left+(l&&a?a.offsetLeft:0))/r,c=(n.top+(l&&a?a.offsetTop:0))/i,d=n.width/r,m=n.height/i;return{width:d,height:m,top:c,right:u+d,bottom:c+m,left:u,x:u,y:c}}function AG(t){var e=Kv(t),o=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:n}}function zLe(t,e){var o=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(o&&$G(o)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function tp(t){return La(t).getComputedStyle(t)}function oHt(t){return["table","td","th"].indexOf(ld(t))>=0}function eg(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)||eg(t)}function ale(t){return!El(t)||tp(t).position==="fixed"?null:t.offsetParent}function nHt(t){var e=/firefox/i.test(q9()),o=/Trident/i.test(q9());if(o&&El(t)){var n=tp(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=tp(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function KE(t){for(var e=La(t),o=ale(t);o&&oHt(o)&&tp(o).position==="static";)o=ale(o);return o&&(ld(o)==="html"||ld(o)==="body"&&tp(o).position==="static")?e:o||nHt(t)||e}function NG(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function BF(t,e,o){return Gy(t,u3(e,o))}function rHt(t,e,o){var n=BF(t,e,o);return n>o?o:n}function jLe(){return{top:0,right:0,bottom:0,left:0}}function KLe(t){return Object.assign({},jLe(),t)}function ULe(t,e){return e.reduce(function(o,n){return o[n]=t,o},{})}var iHt=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,KLe(typeof t!="number"?t:ULe(t,QS))};function sHt(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=[zi,ka].indexOf(a)>=0,c=u?"height":"width";if(!(!i||!s)){var d=iHt(r.padding,o),m=AG(i),p=l==="y"?Hi:zi,h=l==="y"?Fa:ka,f=o.rects.reference[c]+o.rects.reference[l]-s[l]-o.rects.popper[c],g=s[l]-o.rects.reference[l],b=KE(i),v=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=f/2-g/2,w=d[p],x=v-m[c]-d[h],F=v/2-m[c]/2+S,B=BF(w,F,x),N=l;o.modifiersData[n]=(e={},e[N]=B,e.centerOffset=B-F,e)}}function aHt(t){var e=t.state,o=t.options,n=o.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||zLe(e.elements.popper,r)&&(e.elements.arrow=r))}const qLe={name:"arrow",enabled:!0,phase:"main",fn:sHt,effect:aHt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Uv(t){return t.split("-")[1]}var lHt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uHt(t,e){var o=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:jv(o*r)/r||0,y:jv(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,p=m===void 0?0:m,h=s.y,f=h===void 0?0:h,g=typeof c=="function"?c({x:p,y:f}):{x:p,y:f};p=g.x,f=g.y;var b=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),S=zi,w=Hi,x=window;if(u){var F=KE(o),B="clientHeight",N="clientWidth";if(F===La(o)&&(F=eg(o),tp(F).position!=="static"&&a==="absolute"&&(B="scrollHeight",N="scrollWidth")),F=F,r===Hi||(r===zi||r===ka)&&i===zv){w=Fa;var R=d&&F===x&&x.visualViewport?x.visualViewport.height:F[B];f-=R-n.height,f*=l?1:-1}if(r===zi||(r===Hi||r===Fa)&&i===zv){S=ka;var P=d&&F===x&&x.visualViewport?x.visualViewport.width:F[N];p-=P-n.width,p*=l?1:-1}}var E=Object.assign({position:a},u&&lHt),L=c===!0?uHt({x:p,y:f},La(o)):{x:p,y:f};if(p=L.x,f=L.y,l){var A;return Object.assign({},E,(A={},A[w]=v?"0":"",A[S]=b?"0":"",A.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+f+"px)":"translate3d("+p+"px, "+f+"px, 0)",A))}return Object.assign({},E,(e={},e[w]=v?f+"px":"",e[S]=b?p+"px":"",e.transform="",e))}function cHt(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:Uv(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:cHt,data:{}};var z_={passive:!0};function dHt(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:dHt,data:{}};var mHt={left:"right",right:"left",bottom:"top",top:"bottom"};function r$(t){return t.replace(/left|right|bottom|top/g,function(e){return mHt[e]})}var pHt={start:"end",end:"start"};function ule(t){return t.replace(/start|end/g,function(e){return pHt[e]})}function PG(t){var e=La(t),o=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:o,scrollTop:n}}function MG(t){return Kv(eg(t)).left+PG(t).scrollLeft}function hHt(t,e){var o=La(t),n=eg(t),r=o.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;var u=HLe();(u||!u&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a+MG(t),y:l}}function fHt(t){var e,o=eg(t),n=PG(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=Gy(o.scrollWidth,o.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Gy(o.scrollHeight,o.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+MG(t),l=-n.scrollTop;return tp(r||o).direction==="rtl"&&(a+=Gy(o.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}function OG(t){var e=tp(t),o=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(o+r+n)}function JLe(t){return["html","body","#document"].indexOf(ld(t))>=0?t.ownerDocument.body:El(t)&&OG(t)?t:JLe(GP(t))}function $F(t,e){var o;e===void 0&&(e=[]);var n=JLe(t),r=n===((o=t.ownerDocument)==null?void 0:o.body),i=La(n),s=r?[i].concat(i.visualViewport||[],OG(n)?n:[]):n,a=e.concat(s);return r?a:a.concat($F(GP(s)))}function J9(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function gHt(t,e){var o=Kv(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===DG?J9(hHt(t,o)):jC(e)?gHt(e,o):J9(fHt(eg(t)))}function yHt(t){var e=$F(GP(t)),o=["absolute","fixed"].indexOf(tp(t).position)>=0,n=o&&El(t)?KE(t):t;return jC(n)?e.filter(function(r){return jC(r)&&zLe(r,n)&&ld(r)!=="body"}):[]}function CHt(t,e,o,n){var r=e==="clippingParents"?yHt(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 GLe(t){var e=t.reference,o=t.element,n=t.placement,r=n?Kc(n):null,i=n?Uv(n):null,s=e.x+e.width/2-o.width/2,a=e.y+e.height/2-o.height/2,l;switch(r){case Hi: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 zi: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 zv:l[u]=l[u]+(e[c]/2-o[c]/2);break}}return l}function qv(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=n===void 0?t.placement:n,i=o.strategy,s=i===void 0?t.strategy:i,a=o.boundary,l=a===void 0?DLe:a,u=o.rootBoundary,c=u===void 0?DG:u,d=o.elementContext,m=d===void 0?t1:d,p=o.altBoundary,h=p===void 0?!1:p,f=o.padding,g=f===void 0?0:f,b=KLe(typeof g!="number"?g:ULe(g,QS)),v=m===t1?BLe:t1,S=t.rects.popper,w=t.elements[h?v:m],x=CHt(jC(w)?w:w.contextElement||eg(t.elements.popper),l,c,s),F=Kv(t.elements.reference),B=GLe({reference:F,element:S,placement:r}),N=J9(Object.assign({},S,B)),R=m===t1?N:F,P={top:x.top-R.top+b.top,bottom:R.bottom-x.bottom+b.bottom,left:x.left-R.left+b.left,right:R.right-x.right+b.right},E=t.modifiersData.offset;if(m===t1&&E){var L=E[r];Object.keys(P).forEach(function(A){var I=[ka,Fa].indexOf(A)>=0?1:-1,W=[Hi,Fa].indexOf(A)>=0?"y":"x";P[A]+=L[W]*I})}return P}function bHt(t,e){e===void 0&&(e={});var o=e,n=o.placement,r=o.boundary,i=o.rootBoundary,s=o.padding,a=o.flipVariations,l=o.allowedAutoPlacements,u=l===void 0?BG:l,c=Uv(n),d=c?a?U9:U9.filter(function(h){return Uv(h)===c}):QS,m=d.filter(function(h){return u.indexOf(h)>=0});m.length===0&&(m=d);var p=m.reduce(function(h,f){return h[f]=qv(t,{placement:f,boundary:r,rootBoundary:i,padding:s})[Kc(f)],h},{});return Object.keys(p).sort(function(h,f){return p[h]-p[f]})}function vHt(t){if(Kc(t)===JP)return[];var e=r$(t);return[ule(t),e,ule(e)]}function SHt(t){var e=t.state,o=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!0:s,l=o.fallbackPlacements,u=o.padding,c=o.boundary,d=o.rootBoundary,m=o.altBoundary,p=o.flipVariations,h=p===void 0?!0:p,f=o.allowedAutoPlacements,g=e.options.placement,b=Kc(g),v=b===g,S=l||(v||!h?[r$(g)]:vHt(g)),w=[g].concat(S).reduce(function(me,H){return me.concat(Kc(H)===JP?bHt(e,{placement:H,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:f}):H)},[]),x=e.rects.reference,F=e.rects.popper,B=new Map,N=!0,R=w[0],P=0;P<w.length;P++){var E=w[P],L=Kc(E),A=Uv(E)===zC,I=[Hi,Fa].indexOf(L)>=0,W=I?"width":"height",O=qv(e,{placement:E,boundary:c,rootBoundary:d,altBoundary:m,padding:u}),K=I?A?ka:zi:A?Fa:Hi;x[W]>F[W]&&(K=r$(K));var fe=r$(K),Ve=[];if(i&&Ve.push(O[L]<=0),a&&Ve.push(O[K]<=0,O[fe]<=0),Ve.every(function(me){return me})){R=E,N=!1;break}B.set(E,Ve)}if(N)for(var Se=h?3:1,G=function(me){var H=w.find(function(be){var le=B.get(be);if(le)return le.slice(0,me).every(function(ue){return ue})});if(H)return R=H,"break"},Ae=Se;Ae>0;Ae--){var q=G(Ae);if(q==="break")break}e.placement!==R&&(e.modifiersData[n]._skip=!0,e.placement=R,e.reset=!0)}}const YLe={name:"flip",enabled:!0,phase:"main",fn:SHt,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[Hi,ka,Fa,zi].some(function(e){return t[e]>=0})}function THt(t){var e=t.state,o=t.name,n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=qv(e,{elementContext:"reference"}),a=qv(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 ZLe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:THt};function wHt(t,e,o){var n=Kc(t),r=[zi,Hi].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,[zi,ka].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function xHt(t){var e=t.state,o=t.options,n=t.name,r=o.offset,i=r===void 0?[0,0]:r,s=BG.reduce(function(c,d){return c[d]=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 XLe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:xHt};function FHt(t){var e=t.state,o=t.name;e.modifiersData[o]=GLe({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const WG={name:"popperOffsets",enabled:!0,phase:"read",fn:FHt,data:{}};function kHt(t){return t==="x"?"y":"x"}function LHt(t){var e=t.state,o=t.options,n=t.name,r=o.mainAxis,i=r===void 0?!0:r,s=o.altAxis,a=s===void 0?!1:s,l=o.boundary,u=o.rootBoundary,c=o.altBoundary,d=o.padding,m=o.tether,p=m===void 0?!0:m,h=o.tetherOffset,f=h===void 0?0:h,g=qv(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),b=Kc(e.placement),v=Uv(e.placement),S=!v,w=NG(b),x=kHt(w),F=e.modifiersData.popperOffsets,B=e.rects.reference,N=e.rects.popper,R=typeof f=="function"?f(Object.assign({},e.rects,{placement:e.placement})):f,P=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(F){if(i){var A,I=w==="y"?Hi:zi,W=w==="y"?Fa:ka,O=w==="y"?"height":"width",K=F[w],fe=K+g[I],Ve=K-g[W],Se=p?-N[O]/2:0,G=v===zC?B[O]:N[O],Ae=v===zC?-N[O]:-B[O],q=e.elements.arrow,me=p&&q?AG(q):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:jLe(),be=H[I],le=H[W],ue=BF(0,B[O],me[O]),Nt=S?B[O]/2-Se-ue-be-P.mainAxis:G-ue-be-P.mainAxis,Vt=S?-B[O]/2+Se+ue+le+P.mainAxis:Ae+ue+le+P.mainAxis,Et=e.elements.arrow&&KE(e.elements.arrow),z=Et?w==="y"?Et.clientTop||0:Et.clientLeft||0:0,j=(A=E?.[w])!=null?A:0,ee=K+Nt-j-z,oe=K+Vt-j,re=BF(p?u3(fe,ee):fe,K,p?Gy(Ve,oe):Ve);F[w]=re,L[w]=re-K}if(a){var ie,de=w==="x"?Hi:zi,he=w==="x"?Fa:ka,te=F[x],ne=x==="y"?"height":"width",Ge=te+g[de],we=te-g[he],Te=[Hi,zi].indexOf(b)!==-1,xe=(ie=E?.[x])!=null?ie:0,Ne=Te?Ge:te-B[ne]-N[ne]-xe+P.altAxis,Ce=Te?te+B[ne]+N[ne]-xe-P.altAxis:we,Qe=p&&Te?rHt(Ne,te,Ce):BF(p?Ne:Ge,te,p?Ce:we);F[x]=Qe,L[x]=Qe-te}e.modifiersData[n]=L}}const QLe={name:"preventOverflow",enabled:!0,phase:"main",fn:LHt,requiresIfExists:["offset"]};function EHt(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function _Ht(t){return t===La(t)||!El(t)?PG(t):EHt(t)}function DHt(t){var e=t.getBoundingClientRect(),o=jv(e.width)/t.offsetWidth||1,n=jv(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)&&DHt(e),i=eg(e),s=Kv(t,r,o),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!o)&&((ld(e)!=="body"||OG(i))&&(a=_Ht(e)),El(e)?(l=Kv(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 $Ht(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 RHt(t){var e=$Ht(t);return WLe.reduce(function(o,n){return o.concat(e.filter(function(r){return r.phase===n}))},[])}function AHt(t){var e;return function(){return e||(e=new Promise(function(o){Promise.resolve().then(function(){e=void 0,o(t())})})),e}}function NHt(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 ple={placement:"bottom",modifiers:[],strategy:"absolute"};function hle(){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?ple:r;return function(s,a,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ple,i),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},c=[],d=!1,m={state:u,setOptions:function(f){var g=typeof f=="function"?f(u.options):f;h(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:jC(s)?$F(s):s.contextElement?$F(s.contextElement):[],popper:$F(a)};var b=RHt(NHt([].concat(n,u.options.modifiers)));return u.orderedModifiers=b.filter(function(v){return v.enabled}),p(),m.update()},forceUpdate:function(){if(!d){var f=u.elements,g=f.reference,b=f.popper;if(hle(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],w=S.fn,x=S.options,F=x===void 0?{}:x,B=S.name;typeof w=="function"&&(u=w({state:u,options:F,name:B,instance:m})||u)}}}},update:AHt(function(){return new Promise(function(f){m.forceUpdate(),f(u)})}),destroy:function(){h(),d=!0}};if(!hle(s,a))return m;m.setOptions(l).then(function(f){!d&&l.onFirstUpdate&&l.onFirstUpdate(f)});function p(){u.orderedModifiers.forEach(function(f){var g=f.name,b=f.options,v=b===void 0?{}:b,S=f.effect;if(typeof S=="function"){var w=S({state:u,name:g,instance:m,options:v}),x=function(){};c.push(w||x)}})}function h(){c.forEach(function(f){return f()}),c=[]}return m}}var VHt=YP(),IHt=[IG,WG,VG,RG],PHt=YP({defaultModifiers:IHt}),MHt=[IG,WG,VG,RG,XLe,YLe,QLe,qLe,ZLe],HG=YP({defaultModifiers:MHt});const eEe=Object.freeze(Object.defineProperty({__proto__:null,afterMain:ILe,afterRead:ALe,afterWrite:OLe,applyStyles:RG,arrow:qLe,auto:JP,basePlacements:QS,beforeMain:NLe,beforeRead:$Le,beforeWrite:PLe,bottom:Fa,clippingParents:DLe,computeStyles:VG,createPopper:HG,createPopperBase:VHt,createPopperLite:PHt,detectOverflow:qv,end:zv,eventListeners:IG,flip:YLe,hide:ZLe,left:zi,main:VLe,modifierPhases:WLe,offset:XLe,placements:BG,popper:t1,popperGenerator:YP,popperOffsets:WG,preventOverflow:QLe,read:RLe,reference:BLe,right:ka,start:zC,top:Hi,variationPlacements:U9,viewport:DG,write:MLe},Symbol.toStringTag,{value:"Module"})),Jp=new Map,J4={set(t,e,o){Jp.has(t)||Jp.set(t,new Map);const n=Jp.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,o)},get(t,e){return Jp.has(t)&&Jp.get(t).get(e)||null},remove(t,e){if(!Jp.has(t))return;const o=Jp.get(t);o.delete(e),o.size===0&&Jp.delete(t)}},OHt=1e6,WHt=1e3,G9="transitionend",tEe=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,o)=>`#${CSS.escape(o)}`)),t),HHt=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),zHt=t=>{do t+=Math.floor(Math.random()*OHt);while(document.getElementById(t));return t},jHt=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))*WHt)},oEe=t=>{t.dispatchEvent(new Event(G9))},Dm=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),kf=t=>Dm(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(tEe(t)):null,eT=t=>{if(!Dm(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",o=t.closest("details:not([open])");if(!o)return e;if(o!==t){const n=t.closest("summary");if(n&&n.parentNode!==o||n===null)return!1}return e},Lf=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",nEe=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?nEe(t.parentNode):null},c3=()=>{},UE=t=>{t.offsetHeight},rEe=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,G4=[],KHt=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=>{KHt(()=>{const e=rEe();if(e){const o=t.NAME,n=e.fn[o];e.fn[o]=t.jQueryInterface,e.fn[o].Constructor=t,e.fn[o].noConflict=()=>(e.fn[o]=n,t.jQueryInterface)}})},Fs=(t,e=[],o=t)=>typeof t=="function"?t.call(...e):o,iEe=(t,e,o=!0)=>{if(!o){Fs(t);return}const n=jHt(e)+5;let r=!1;const i=({target:s})=>{s===e&&(r=!0,e.removeEventListener(G9,i),Fs(t))};e.addEventListener(G9,i),setTimeout(()=>{r||oEe(e)},n)},zG=(t,e,o,n)=>{const r=t.length;let i=t.indexOf(e);return i===-1?!o&&n?t[r-1]:t[0]:(i+=o?1:-1,n&&(i=(i+r)%r),t[Math.max(0,Math.min(i,r-1))])},UHt=/[^.]*(?=\..*)\.|.*/,qHt=/\..*/,JHt=/::\d+$/,Y4={};let fle=1;const sEe={mouseenter:"mouseover",mouseleave:"mouseout"},GHt=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function aEe(t,e){return e&&`${e}::${fle++}`||t.uidEvent||fle++}function lEe(t){const e=aEe(t);return t.uidEvent=e,Y4[e]=Y4[e]||{},Y4[e]}function YHt(t,e){return function o(n){return jG(n,{delegateTarget:t}),o.oneOff&&Ee.off(t,n.type,e),e.apply(t,[n])}}function ZHt(t,e,o){return function n(r){const i=t.querySelectorAll(e);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return jG(r,{delegateTarget:s}),n.oneOff&&Ee.off(t,r.type,e,o),o.apply(s,[r])}}function uEe(t,e,o=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===o)}function cEe(t,e,o){const n=typeof e=="string",r=n?o:e||o;let i=dEe(t);return GHt.has(i)||(i=t),[n,r,i]}function gle(t,e,o,n,r){if(typeof e!="string"||!t)return;let[i,s,a]=cEe(e,o,n);e in sEe&&(s=(p=>function(h){if(!h.relatedTarget||h.relatedTarget!==h.delegateTarget&&!h.delegateTarget.contains(h.relatedTarget))return p.call(this,h)})(s));const l=lEe(t),u=l[a]||(l[a]={}),c=uEe(u,s,i?o:null);if(c){c.oneOff=c.oneOff&&r;return}const d=aEe(s,e.replace(UHt,"")),m=i?ZHt(t,o,s):YHt(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 Y9(t,e,o,n,r){const i=uEe(e[o],n,r);i&&(t.removeEventListener(o,i,!!r),delete e[o][i.uidEvent])}function XHt(t,e,o,n){const r=e[o]||{};for(const[i,s]of Object.entries(r))i.includes(n)&&Y9(t,e,o,s.callable,s.delegationSelector)}function dEe(t){return t=t.replace(qHt,""),sEe[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]=cEe(e,o,n),a=s!==e,l=lEe(t),u=l[s]||{},c=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;Y9(t,l,s,i,r?o:null);return}if(c)for(const d of Object.keys(l))XHt(t,l,d,e.slice(1));for(const[d,m]of Object.entries(u)){const p=d.replace(JHt,"");(!a||e.includes(p))&&Y9(t,l,s,m.callable,m.delegationSelector)}},trigger(t,e,o){if(typeof e!="string"||!t)return null;const n=rEe(),r=dEe(e),i=e!==r;let s=null,a=!0,l=!0,u=!1;i&&n&&(s=n.Event(e,o),n(t).trigger(s),a=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const c=jG(new Event(e,{bubbles:a,cancelable:!0}),o);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function jG(t,e={}){for(const[o,n]of Object.entries(e))try{t[o]=n}catch{Object.defineProperty(t,o,{configurable:!0,get(){return n}})}return t}function 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 Bm={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=Dm(o)?Bm.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...Dm(o)?Bm.getDataAttributes(o):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,o=this.constructor.DefaultType){for(const[n,r]of Object.entries(o)){const i=e[n],s=Dm(i)?"element":HHt(i);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${r}".`)}}};const QHt="5.3.8";let Xu=class extends qE{constructor(e,o){super(),e=kf(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){iEe(e,o,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return J4.get(kf(e),this.DATA_KEY)}static getOrCreateInstance(e,o={}){return this.getInstance(e)||new this(e,typeof o=="object"?o:null)}static get VERSION(){return QHt}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=>tEe(o)).join(","):null},vt={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(o=>o.matches(e))},parents(t,e){const o=[];let n=t.parentNode.closest(e);for(;n;)o.push(n),n=n.parentNode.closest(e);return o},prev(t,e){let o=t.previousElementSibling;for(;o;){if(o.matches(e))return[o];o=o.previousElementSibling}return[]},next(t,e){let o=t.nextElementSibling;for(;o;){if(o.matches(e))return[o];o=o.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(o=>!Lf(o)&&eT(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(),Lf(this))return;const i=vt.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(i)[e]()})},e7t="alert",t7t="bs.alert",mEe=`.${t7t}`,o7t=`close${mEe}`,n7t=`closed${mEe}`,r7t="fade",i7t="show";let pEe=class hEe extends Xu{static get NAME(){return e7t}close(){if(Ee.trigger(this._element,o7t).defaultPrevented)return;this._element.classList.remove(i7t);const e=this._element.classList.contains(r7t);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),Ee.trigger(this._element,n7t),this.dispose()}static jQueryInterface(e){return this.each(function(){const o=hEe.getOrCreateInstance(this);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};ZP(pEe,"close");tu(pEe);const s7t="button",a7t="bs.button",l7t=`.${a7t}`,u7t=".data-api",c7t="active",Cle='[data-bs-toggle="button"]',d7t=`click${l7t}${u7t}`;let fEe=class gEe extends Xu{static get NAME(){return s7t}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(c7t))}static jQueryInterface(e){return this.each(function(){const o=gEe.getOrCreateInstance(this);e==="toggle"&&o[e]()})}};Ee.on(document,d7t,Cle,t=>{t.preventDefault();const e=t.target.closest(Cle);fEe.getOrCreateInstance(e).toggle()});tu(fEe);const m7t="swipe",tT=".bs.swipe",p7t=`touchstart${tT}`,h7t=`touchmove${tT}`,f7t=`touchend${tT}`,g7t=`pointerdown${tT}`,y7t=`pointerup${tT}`,C7t="touch",b7t="pen",v7t="pointer-event",S7t=40,T7t={endCallback:null,leftCallback:null,rightCallback:null},w7t={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};let ble=class yEe extends qE{constructor(e,o){super(),this._element=e,!(!e||!yEe.isSupported())&&(this._config=this._getConfig(o),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return T7t}static get DefaultType(){return w7t}static get NAME(){return m7t}dispose(){Ee.off(this._element,tT)}_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(),Fs(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<=S7t)return;const o=e/this._deltaX;this._deltaX=0,o&&Fs(o>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Ee.on(this._element,g7t,e=>this._start(e)),Ee.on(this._element,y7t,e=>this._end(e)),this._element.classList.add(v7t)):(Ee.on(this._element,p7t,e=>this._start(e)),Ee.on(this._element,h7t,e=>this._move(e)),Ee.on(this._element,f7t,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===b7t||e.pointerType===C7t)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}};const x7t="carousel",F7t="bs.carousel",tg=`.${F7t}`,CEe=".data-api",k7t="ArrowLeft",L7t="ArrowRight",E7t=500,uw="next",pb="prev",o1="left",i$="right",_7t=`slide${tg}`,Q4=`slid${tg}`,D7t=`keydown${tg}`,B7t=`mouseenter${tg}`,$7t=`mouseleave${tg}`,R7t=`dragstart${tg}`,A7t=`load${tg}${CEe}`,N7t=`click${tg}${CEe}`,bEe="carousel",j_="active",V7t="slide",I7t="carousel-item-end",P7t="carousel-item-start",M7t="carousel-item-next",O7t="carousel-item-prev",vEe=".active",SEe=".carousel-item",W7t=vEe+SEe,H7t=".carousel-item img",z7t=".carousel-indicators",j7t="[data-bs-slide], [data-bs-slide-to]",K7t='[data-bs-ride="carousel"]',U7t={[k7t]:i$,[L7t]:o1},q7t={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},J7t={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};let KG=class TEe 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(z7t,this._element),this._addEventListeners(),this._config.ride===bEe&&this.cycle()}static get Default(){return q7t}static get DefaultType(){return J7t}static get NAME(){return x7t}next(){this._slide(uw)}nextWhenVisible(){!document.hidden&&eT(this._element)&&this.next()}prev(){this._slide(pb)}pause(){this._isSliding&&oEe(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){Ee.one(this._element,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?uw: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,D7t,e=>this._keydown(e)),this._config.pause==="hover"&&(Ee.on(this._element,B7t,()=>this.pause()),Ee.on(this._element,$7t,()=>this._maybeEnableCycle())),this._config.touch&&ble.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of vt.find(H7t,this._element))Ee.on(o,R7t,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(o1)),rightCallback:()=>this._slide(this._directionToOrder(i$)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),E7t+this._config.interval))}};this._swipeHelper=new ble(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const o=U7t[e.key];o&&(e.preventDefault(),this._slide(this._directionToOrder(o)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const o=vt.findOne(vEe,this._indicatorsElement);o.classList.remove(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===uw,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(_7t).defaultPrevented||!n||!i)return;const l=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=r?P7t:I7t,c=r?M7t:O7t;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(V7t)}_getActive(){return vt.findOne(W7t,this._element)}_getItems(){return vt.find(SEe,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Ml()?e===o1?pb:uw:e===o1?uw:pb}_orderToDirection(e){return Ml()?e===pb?o1:i$:e===pb?i$:o1}static jQueryInterface(e){return this.each(function(){const o=TEe.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,N7t,j7t,function(t){const e=vt.getElementFromSelector(this);if(!e||!e.classList.contains(bEe))return;t.preventDefault();const o=KG.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){o.to(n),o._maybeEnableCycle();return}if(Bm.getDataAttribute(this,"slide")==="next"){o.next(),o._maybeEnableCycle();return}o.prev(),o._maybeEnableCycle()});Ee.on(window,A7t,()=>{const t=vt.find(K7t);for(const e of t)KG.getOrCreateInstance(e)});tu(KG);const G7t="collapse",Y7t="bs.collapse",JE=`.${Y7t}`,Z7t=".data-api",X7t=`show${JE}`,Q7t=`shown${JE}`,e8t=`hide${JE}`,t8t=`hidden${JE}`,o8t=`click${JE}${Z7t}`,e5="show",O1="collapse",K_="collapsing",n8t="collapsed",r8t=`:scope .${O1} .${O1}`,i8t="collapse-horizontal",s8t="width",a8t="height",l8t=".collapse.show, .collapse.collapsing",Z9='[data-bs-toggle="collapse"]',u8t={parent:null,toggle:!0},c8t={parent:"(null|element)",toggle:"boolean"};let wEe=class X9 extends Xu{constructor(e,o){super(e,o),this._isTransitioning=!1,this._triggerArray=[];const n=vt.find(Z9);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 u8t}static get DefaultType(){return c8t}static get NAME(){return G7t}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(l8t).filter(i=>i!==this._element).map(i=>X9.getOrCreateInstance(i,{toggle:!1}))),e.length&&e[0]._isTransitioning||Ee.trigger(this._element,X7t).defaultPrevented)return;for(const i of e)i.hide();const o=this._getDimension();this._element.classList.remove(O1),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(O1,e5),this._element.style[o]="",Ee.trigger(this._element,Q7t)},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,e8t).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(O1,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(O1),Ee.trigger(this._element,t8t)};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=kf(e.parent),e}_getDimension(){return this._element.classList.contains(i8t)?s8t:a8t}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Z9);for(const o of e){const n=vt.getElementFromSelector(o);n&&this._addAriaAndCollapsedClass([o],this._isShown(n))}}_getFirstLevelChildren(e){const o=vt.find(r8t,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(n8t,!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=X9.getOrCreateInstance(this,o);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}};Ee.on(document,o8t,Z9,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of vt.getMultipleElementsFromSelector(this))wEe.getOrCreateInstance(e,{toggle:!1}).toggle()});tu(wEe);const vle="dropdown",d8t="bs.dropdown",v0=`.${d8t}`,UG=".data-api",m8t="Escape",Sle="Tab",p8t="ArrowUp",Tle="ArrowDown",h8t=2,f8t=`hide${v0}`,g8t=`hidden${v0}`,y8t=`show${v0}`,C8t=`shown${v0}`,xEe=`click${v0}${UG}`,FEe=`keydown${v0}${UG}`,b8t=`keyup${v0}${UG}`,n1="show",v8t="dropup",S8t="dropend",T8t="dropstart",w8t="dropup-center",x8t="dropdown-center",my='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',F8t=`${my}.${n1}`,s$=".dropdown-menu",k8t=".navbar",L8t=".navbar-nav",E8t=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",_8t=Ml()?"top-end":"top-start",D8t=Ml()?"top-start":"top-end",B8t=Ml()?"bottom-end":"bottom-start",$8t=Ml()?"bottom-start":"bottom-end",R8t=Ml()?"left-start":"right-start",A8t=Ml()?"right-start":"left-start",N8t="top",V8t="bottom",I8t={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},P8t={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let oT=class a$ extends Xu{constructor(e,o){super(e,o),this._popper=null,this._parent=this._element.parentNode,this._menu=vt.next(this._element,s$)[0]||vt.prev(this._element,s$)[0]||vt.findOne(s$,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return I8t}static get DefaultType(){return P8t}static get NAME(){return vle}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Lf(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Ee.trigger(this._element,y8t,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(L8t))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,C8t,e)}}hide(){if(Lf(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,f8t,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"),Bm.removeDataAttribute(this._menu,"popper"),Ee.trigger(this._element,g8t,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Dm(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 eEe>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:Dm(this._config.reference)?e=kf(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(S8t))return R8t;if(e.classList.contains(T8t))return A8t;if(e.classList.contains(w8t))return N8t;if(e.classList.contains(x8t))return V8t;const o=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(v8t)?o?D8t:_8t:o?$8t:B8t}_detectNavbar(){return this._element.closest(k8t)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(o=>Number.parseInt(o,10)):typeof e=="function"?o=>e(o,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Bm.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Fs(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:o}){const n=vt.find(E8t,this._menu).filter(r=>eT(r));n.length&&zG(n,o,e===Tle,!n.includes(o)).focus()}static jQueryInterface(e){return this.each(function(){const o=a$.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(F8t);for(const n of o){const r=a$.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===m8t,r=[p8t,Tle].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=a$.getOrCreateInstance(i);if(r){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}};Ee.on(document,FEe,my,oT.dataApiKeydownHandler);Ee.on(document,FEe,s$,oT.dataApiKeydownHandler);Ee.on(document,xEe,oT.clearMenus);Ee.on(document,b8t,oT.clearMenus);Ee.on(document,xEe,my,function(t){t.preventDefault(),oT.getOrCreateInstance(this).toggle()});tu(oT);const kEe="backdrop",M8t="fade",wle="show",xle=`mousedown.bs.${kEe}`,O8t={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},W8t={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};let LEe=class extends qE{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return O8t}static get DefaultType(){return W8t}static get NAME(){return kEe}show(e){if(!this._config.isVisible){Fs(e);return}this._append();const o=this._getElement();this._config.isAnimated&&UE(o),o.classList.add(wle),this._emulateAnimation(()=>{Fs(e)})}hide(e){if(!this._config.isVisible){Fs(e);return}this._getElement().classList.remove(wle),this._emulateAnimation(()=>{this.dispose(),Fs(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(M8t),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=kf(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Ee.on(e,xle,()=>{Fs(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){iEe(e,this._getElement(),this._config.isAnimated)}};const H8t="focustrap",z8t="bs.focustrap",d3=`.${z8t}`,j8t=`focusin${d3}`,K8t=`keydown.tab${d3}`,U8t="Tab",q8t="forward",Fle="backward",J8t={autofocus:!0,trapElement:null},G8t={autofocus:"boolean",trapElement:"element"};let EEe=class extends qE{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return J8t}static get DefaultType(){return G8t}static get NAME(){return H8t}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Ee.off(document,d3),Ee.on(document,j8t,e=>this._handleFocusin(e)),Ee.on(document,K8t,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===U8t&&(this._lastTabNavDirection=e.shiftKey?Fle:q8t)}};const kle=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Lle=".sticky-top",U_="padding-right",Ele="margin-right";let Q9=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&&Bm.setDataAttribute(e,o,n)}_resetElementAttributes(e,o){const n=r=>{const i=Bm.getDataAttribute(r,o);if(i===null){r.style.removeProperty(o);return}Bm.removeDataAttribute(r,o),r.style.setProperty(o,i)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,o){if(Dm(e)){o(e);return}for(const n of vt.find(e,this._element))o(n)}};const Y8t="modal",Z8t="bs.modal",Ol=`.${Z8t}`,X8t=".data-api",Q8t="Escape",e9t=`hide${Ol}`,t9t=`hidePrevented${Ol}`,_Ee=`hidden${Ol}`,DEe=`show${Ol}`,o9t=`shown${Ol}`,n9t=`resize${Ol}`,r9t=`click.dismiss${Ol}`,i9t=`mousedown.dismiss${Ol}`,s9t=`keydown.dismiss${Ol}`,a9t=`click${Ol}${X8t}`,_le="modal-open",l9t="fade",Dle="show",t5="modal-static",u9t=".modal.show",c9t=".modal-dialog",d9t=".modal-body",m9t='[data-bs-toggle="modal"]',p9t={backdrop:!0,focus:!0,keyboard:!0},h9t={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let m3=class BEe extends Xu{constructor(e,o){super(e,o),this._dialog=vt.findOne(c9t,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Q9,this._addEventListeners()}static get Default(){return p9t}static get DefaultType(){return h9t}static get NAME(){return Y8t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Ee.trigger(this._element,DEe,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(_le),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||Ee.trigger(this._element,e9t).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Dle),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){Ee.off(window,Ol),Ee.off(this._dialog,Ol),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new LEe({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new EEe({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const o=vt.findOne(d9t,this._dialog);o&&(o.scrollTop=0),UE(this._element),this._element.classList.add(Dle);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Ee.trigger(this._element,o9t,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){Ee.on(this._element,s9t,e=>{if(e.key===Q8t){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),Ee.on(window,n9t,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),Ee.on(this._element,i9t,e=>{Ee.one(this._element,r9t,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,_Ee)})}_isAnimated(){return this._element.classList.contains(l9t)}_triggerBackdropTransition(){if(Ee.trigger(this._element,t9t).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=BEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](o)}})}};Ee.on(document,a9t,m9t,function(t){const e=vt.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),Ee.one(e,DEe,n=>{n.defaultPrevented||Ee.one(e,_Ee,()=>{eT(this)&&this.focus()})});const o=vt.findOne(u9t);o&&m3.getInstance(o).hide(),m3.getOrCreateInstance(e).toggle(this)});ZP(m3);tu(m3);const f9t="offcanvas",g9t="bs.offcanvas",Tp=`.${g9t}`,$Ee=".data-api",y9t=`load${Tp}${$Ee}`,C9t="Escape",Ble="show",$le="showing",Rle="hiding",b9t="offcanvas-backdrop",REe=".offcanvas.show",v9t=`show${Tp}`,S9t=`shown${Tp}`,T9t=`hide${Tp}`,Ale=`hidePrevented${Tp}`,AEe=`hidden${Tp}`,w9t=`resize${Tp}`,x9t=`click${Tp}${$Ee}`,F9t=`keydown.dismiss${Tp}`,k9t='[data-bs-toggle="offcanvas"]',L9t={backdrop:!0,keyboard:!0,scroll:!1},E9t={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};let Jv=class NEe extends Xu{constructor(e,o){super(e,o),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return L9t}static get DefaultType(){return E9t}static get NAME(){return f9t}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||Ee.trigger(this._element,v9t,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Q9().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(Ble),this._element.classList.remove($le),Ee.trigger(this._element,S9t,{relatedTarget:e})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||Ee.trigger(this._element,T9t).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(Ble,Rle),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Q9().reset(),Ee.trigger(this._element,AEe)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){Ee.trigger(this._element,Ale);return}this.hide()},o=!!this._config.backdrop;return new LEe({className:b9t,isVisible:o,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:o?e:null})}_initializeFocusTrap(){return new EEe({trapElement:this._element})}_addEventListeners(){Ee.on(this._element,F9t,e=>{if(e.key===C9t){if(this._config.keyboard){this.hide();return}Ee.trigger(this._element,Ale)}})}static jQueryInterface(e){return this.each(function(){const o=NEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};Ee.on(document,x9t,k9t,function(t){const e=vt.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Lf(this))return;Ee.one(e,AEe,()=>{eT(this)&&this.focus()});const o=vt.findOne(REe);o&&o!==e&&Jv.getInstance(o).hide(),Jv.getOrCreateInstance(e).toggle(this)});Ee.on(window,y9t,()=>{for(const t of vt.find(REe))Jv.getOrCreateInstance(t).show()});Ee.on(window,w9t,()=>{for(const t of vt.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Jv.getOrCreateInstance(t).hide()});ZP(Jv);tu(Jv);const _9t=/^aria-[\w-]*$/i,VEe={"*":["class","dir","id","lang","role",_9t],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:[]},D9t=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),B9t=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,$9t=(t,e)=>{const o=t.nodeName.toLowerCase();return e.includes(o)?D9t.has(o)?!!B9t.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(o))};function R9t(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)$9t(u,l)||i.removeAttribute(u.nodeName)}return n.body.innerHTML}const A9t="TemplateFactory",N9t={allowList:VEe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},V9t={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},I9t={entry:"(string|element|function|null)",selector:"(string|element)"};let P9t=class extends qE{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return N9t}static get DefaultType(){return V9t}static get NAME(){return A9t}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},I9t)}_setContent(e,o,n){const r=vt.findOne(n,e);if(r){if(o=this._resolvePossibleFunction(o),!o){r.remove();return}if(Dm(o)){this._putElementInTemplate(kf(o),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(o);return}r.textContent=o}}_maybeSanitize(e){return this._config.sanitize?R9t(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Fs(e,[void 0,this])}_putElementInTemplate(e,o){if(this._config.html){o.innerHTML="",o.append(e);return}o.textContent=e.textContent}};const M9t="tooltip",O9t=new Set(["sanitize","allowList","sanitizeFn"]),o5="fade",W9t="modal",q_="show",H9t=".tooltip-inner",Nle=`.${W9t}`,Vle="hide.bs.modal",cw="hover",n5="focus",r5="click",z9t="manual",j9t="hide",K9t="hidden",U9t="show",q9t="shown",J9t="inserted",G9t="click",Y9t="focusin",Z9t="focusout",X9t="mouseenter",Q9t="mouseleave",ezt={AUTO:"auto",TOP:"top",RIGHT:Ml()?"left":"right",BOTTOM:"bottom",LEFT:Ml()?"right":"left"},tzt={allowList:VEe,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ozt={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 IEe extends Xu{constructor(e,o){if(typeof eEe>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,o),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return tzt}static get DefaultType(){return ozt}static get NAME(){return M9t}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(U9t)),o=(nEe(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!o)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),Ee.trigger(this._element,this.constructor.eventName(J9t))),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(q9t)),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(j9t)).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[cw]=!1,this._isHovered=null;const e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Ee.trigger(this._element,this.constructor.eventName(K9t)))};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=zHt(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 P9t({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[H9t]: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=Fs(this._config.placement,[this,e,this._element]),n=ezt[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 Fs(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,...Fs(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(G9t),this._config.selector,n=>{const r=this._initializeOnDelegatedTarget(n);r._activeTrigger[r5]=!(r._isShown()&&r._activeTrigger[r5]),r.toggle()});else if(o!==z9t){const n=o===cw?this.constructor.eventName(X9t):this.constructor.eventName(Y9t),r=o===cw?this.constructor.eventName(Q9t):this.constructor.eventName(Z9t);Ee.on(this._element,n,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?n5:cw]=!0,s._enter()}),Ee.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?n5:cw]=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=Bm.getDataAttributes(this._element);for(const n of Object.keys(o))O9t.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:kf(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[o,n]of Object.entries(this._config))this.constructor.Default[o]!==n&&(e[o]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const o=IEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};tu(XP);const nzt="popover",rzt=".popover-header",izt=".popover-body",szt={...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"},azt={...XP.DefaultType,content:"(null|string|element|function)"};let lzt=class PEe extends XP{static get Default(){return szt}static get DefaultType(){return azt}static get NAME(){return nzt}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[rzt]:this._getTitle(),[izt]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const o=PEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e]()}})}};tu(lzt);const uzt="scrollspy",czt="bs.scrollspy",qG=`.${czt}`,dzt=".data-api",mzt=`activate${qG}`,Ile=`click${qG}`,pzt=`load${qG}${dzt}`,hzt="dropdown-item",hb="active",fzt='[data-bs-spy="scroll"]',i5="[href]",gzt=".nav, .list-group",Ple=".nav-link",yzt=".nav-item",Czt=".list-group-item",bzt=`${Ple}, ${yzt} > ${Ple}, ${Czt}`,vzt=".dropdown",Szt=".dropdown-toggle",Tzt={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 MEe=class OEe extends Xu{constructor(e,o){super(e,o),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Tzt}static get DefaultType(){return wzt}static get NAME(){return uzt}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=kf(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||Lf(o))continue;const n=vt.findOne(decodeURI(o.hash),this._element);eT(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(hb),this._activateParents(e),Ee.trigger(this._element,mzt,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(hzt)){vt.findOne(Szt,e.closest(vzt)).classList.add(hb);return}for(const o of vt.parents(e,gzt))for(const n of vt.prev(o,bzt))n.classList.add(hb)}_clearActiveClass(e){e.classList.remove(hb);const o=vt.find(`${i5}.${hb}`,e);for(const n of o)n.classList.remove(hb)}static jQueryInterface(e){return this.each(function(){const o=OEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(o[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);o[e]()}})}};Ee.on(window,pzt,()=>{for(const t of vt.find(fzt))MEe.getOrCreateInstance(t)});tu(MEe);const xzt="tab",Fzt="bs.tab",S0=`.${Fzt}`,kzt=`hide${S0}`,Lzt=`hidden${S0}`,Ezt=`show${S0}`,_zt=`shown${S0}`,Dzt=`click${S0}`,Bzt=`keydown${S0}`,$zt=`load${S0}`,Rzt="ArrowLeft",Mle="ArrowRight",Azt="ArrowUp",Ole="ArrowDown",s5="Home",Wle="End",py="active",Hle="fade",a5="show",Nzt="dropdown",WEe=".dropdown-toggle",Vzt=".dropdown-menu",l5=`:not(${WEe})`,Izt='.list-group, .nav, [role="tablist"]',Pzt=".nav-item, .list-group-item",Mzt=`.nav-link${l5}, .list-group-item${l5}, [role="tab"]${l5}`,HEe='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',u5=`${Mzt}, ${HEe}`,Ozt=`.${py}[data-bs-toggle="tab"], .${py}[data-bs-toggle="pill"], .${py}[data-bs-toggle="list"]`;let JG=class ez extends Xu{constructor(e){super(e),this._parent=this._element.closest(Izt),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Ee.on(this._element,Bzt,o=>this._keydown(o)))}static get NAME(){return xzt}show(){const e=this._element;if(this._elemIsActive(e))return;const o=this._getActiveElem(),n=o?Ee.trigger(o,kzt,{relatedTarget:e}):null;Ee.trigger(e,Ezt,{relatedTarget:o}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(o,e),this._activate(e,o))}_activate(e,o){if(!e)return;e.classList.add(py),this._activate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(a5);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Ee.trigger(e,_zt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Hle))}_deactivate(e,o){if(!e)return;e.classList.remove(py),e.blur(),this._deactivate(vt.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(a5);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Ee.trigger(e,Lzt,{relatedTarget:o})};this._queueCallback(n,e,e.classList.contains(Hle))}_keydown(e){if(![Rzt,Mle,Azt,Ole,s5,Wle].includes(e.key))return;e.stopPropagation(),e.preventDefault();const o=this._getChildren().filter(r=>!Lf(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}),ez.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(Nzt))return;const r=(i,s)=>{const a=vt.findOne(i,n);a&&a.classList.toggle(s,o)};r(WEe,py),r(Vzt,a5),n.setAttribute("aria-expanded",o)}_setAttributeIfNotExists(e,o,n){e.hasAttribute(o)||e.setAttribute(o,n)}_elemIsActive(e){return e.classList.contains(py)}_getInnerElement(e){return e.matches(u5)?e:vt.findOne(u5,e)}_getOuterElement(e){return e.closest(Pzt)||e}static jQueryInterface(e){return this.each(function(){const o=ez.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,Dzt,HEe,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!Lf(this)&&JG.getOrCreateInstance(this).show()});Ee.on(window,$zt,()=>{for(const t of vt.find(Ozt))JG.getOrCreateInstance(t)});tu(JG);const Wzt="toast",Hzt="bs.toast",og=`.${Hzt}`,zzt=`mouseover${og}`,jzt=`mouseout${og}`,Kzt=`focusin${og}`,Uzt=`focusout${og}`,qzt=`hide${og}`,Jzt=`hidden${og}`,Gzt=`show${og}`,Yzt=`shown${og}`,Zzt="fade",zle="hide",J_="show",G_="showing",Xzt={animation:"boolean",autohide:"boolean",delay:"number"},Qzt={animation:!0,autohide:!0,delay:5e3};let zEe=class jEe extends Xu{constructor(e,o){super(e,o),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Qzt}static get DefaultType(){return Xzt}static get NAME(){return Wzt}show(){if(Ee.trigger(this._element,Gzt).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Zzt);const e=()=>{this._element.classList.remove(G_),Ee.trigger(this._element,Yzt),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,qzt).defaultPrevented)return;const e=()=>{this._element.classList.add(zle),this._element.classList.remove(G_,J_),Ee.trigger(this._element,Jzt)};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,zzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,jzt,e=>this._onInteraction(e,!1)),Ee.on(this._element,Kzt,e=>this._onInteraction(e,!0)),Ee.on(this._element,Uzt,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const o=jEe.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof o[e]>"u")throw new TypeError(`No method named "${e}"`);o[e](this)}})}};ZP(zEe);tu(zEe);const QP=t=>({Match:e=>{for(const o in t)if(t[o]!==void 0)return e[o](t[o]);throw Error("")}}),ejt=t=>{throw new Error("Didn't expect to get here"+t)},tjt=["Arial","Georgia","Tahoma","TimesNewRoman","Verdana"];Sp.create({name:"textTransform",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textTransform:{default:"none",parseHTML:t=>t.style.textTransform,renderHTML:t=>t.textTransform?{style:`text-transform: ${t.textTransform}`}:{}}}}]},addCommands(){return{setTextTransform:t=>({chain:e})=>e().setMark("textStyle",{textTransform:t}).run(),unsetTextTransform:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textTransform:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textTransform:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=e=>e.isUppercase?this.editor.commands.unsetTextTransform():this.editor.commands.setTextTransform("uppercase");return{"Mod-Shift-u":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})},"Mod-Shift-U":()=>{const e=this.editor.isActive("textStyle",{textTransform:"uppercase"});return t({isUppercase:e})}}}});Sp.create({name:"fontSize",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:t=>t.style.fontSize.replace(/['"]+/g,""),renderHTML:t=>t.fontSize?{style:`font-size: ${t.fontSize}`}:{}}}}]},addCommands(){return{setFontSize:t=>({chain:e})=>e().setMark("textStyle",{fontSize:t+"px"}).run(),unsetFontSize:()=>({chain:t})=>t().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}});Sp.create({name:"lineHeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{lineHeight:{default:null,parseHTML:t=>t.style.lineHeight.replace(/['"]+/g,""),renderHTML:t=>t.lineHeight?{style:`line-height: ${t.lineHeight}`}:{}}}}]},addCommands(){return{setLineHeight:t=>({chain:e})=>e().setMark("textStyle",{lineHeight:t+"px"}).run(),resetLineHeight:()=>({chain:t})=>t().setMark("textStyle",{lineHeight:null}).run()}}});Sp.create({name:"fontWeight",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontWeight:{default:null,parseHTML:t=>t.style.fontWeight,renderHTML:t=>t.fontWeight?{style:`font-weight: ${t.fontWeight}`}:{}}}}]},addCommands(){return{setFontWeight:t=>({chain:e})=>e().setMark("textStyle",{fontWeight:t}).run(),unsetFontWeight:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontWeight:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontWeight:"normal"}).focus().run()},resetFontWeight:()=>({chain:t})=>t().setMark("textStyle",{fontWeight:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isBold?this.editor.commands.unsetFontWeight():this.editor.commands.setFontWeight("bold");return{"Mod-b":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})},"Mod-B":()=>{const e=this.editor.isActive("textStyle",{fontWeight:"bold"});return t({isBold:e})}}}});Sp.create({name:"fontStyle",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontStyle:{default:null,parseHTML:t=>t.style.fontStyle,renderHTML:t=>t.fontStyle?{style:`font-style: ${t.fontStyle}`}:{}}}}]},addCommands(){return{setFontStyle:t=>({chain:e})=>e().setMark("textStyle",{fontStyle:t}).run(),unsetFontStyle:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{fontStyle:"normal"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{fontStyle:"normal"}).focus().run()},resetFontStyle:()=>({chain:t})=>t().setMark("textStyle",{fontStyle:null}).removeEmptyTextStyle().run()}},addKeyboardShortcuts(){const t=e=>e.isItalic?this.editor.commands.unsetFontStyle():this.editor.commands.setFontStyle("italic");return{"Mod-i":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})},"Mod-I":()=>{const e=this.editor.isActive("textStyle",{fontStyle:"italic"});return t({isItalic:e})}}}});Sp.create({name:"unsubscribeLink",priority:1e3,addOptions(){return{HTMLAttributes:{"data-type":"unsubscribe-link",class:"rich-text__unsubscribe-link"}}},parseHTML(){return[{tag:'span[data-type="unsubscribe-link"]'}]},renderHTML({HTMLAttributes:t}){return["span",xa(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnsubscribeLink:()=>({chain:t})=>t().setMark("unsubscribeLink").focus().run(),unsetUnsubscribeLink:()=>({chain:t,state:e})=>{const{from:o,to:n}=e.selection,r=e.doc.textBetween(o,n," ");return e.doc.nodeAt(o)?.type.name==="image"?t().unsetMark("unsubscribeLink").focus().run():r.length?t().setTextSelection({from:o,to:o+r.length}).unsetMark("unsubscribeLink").focus().run():t().unsetMark("unsubscribeLink",{extendEmptyMarkRange:!0}).focus().run()}}}});Sp.create({name:"textDecoration",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textDecoration:{parseHTML:t=>t.style.textDecoration,renderHTML:t=>t.textDecoration?{style:`text-decoration: ${t.textDecoration}`}:{}}}}]},addCommands(){return{setTextDecoration:t=>({chain:e})=>e().setMark("textStyle",{textDecoration:t}).run(),unsetTextDecoration:()=>({chain:t,state:e})=>{const{from:o,to:n,$from:r}=e.selection;return e.doc.textBetween(o,n," ").length?t().setMark("textStyle",{textDecoration:"none"}).run():t().setTextSelection({from:r.pos-r.nodeBefore.nodeSize,to:r.pos+r.nodeAfter.nodeSize}).setMark("textStyle",{textDecoration:"none"}).focus().run()}}},addKeyboardShortcuts(){const t=o=>o.isUnderline?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("underline"),e=o=>o.isLineThrough?this.editor.commands.unsetTextDecoration():this.editor.commands.setTextDecoration("line-through");return{"Mod-Shift-s":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"line-through"});return e({isLineThrough:o})},"Mod-u":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})},"Mod-U":()=>{const o=this.editor.isActive("textStyle",{textDecoration:"underline"});return t({isUnderline:o})}}}});Wo.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:t=>{const e=t.style.fontFamily.split(",").map(o=>o.trim()).map(o=>o.replace(/^['"]|['"]$/g,"")).map(o=>o.replace(/ /g,""));return tjt.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 ojt=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[J4t({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 Wn({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)&&ojt(i).then(l=>{const u=e.tr.setNodeMarkup(r,void 0,{...n.attrs,width:l.width,height:l.height});o(u)})}})})(),{})})]}});const KEe=t=>Object.fromEntries(Object.entries(t).filter(([e,o])=>o!==void 0)),njt=t=>QP(t),rjt=t=>QP(t),ijt=t=>QP(t),sjt=t=>QP(t),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=>({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),cjt=t=>{const e=ajt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=ujt({numberExpressionEvaluator:t.numberExpressionEvaluator}),n=ljt({numberExpressionEvaluator:t.numberExpressionEvaluator});return({numberPredicate:r,context:i})=>sjt(r).Match({Equal:s=>e({predicate:s,context:i}),GreaterThan:s=>o({predicate:s,context:i}),LessThan:s=>n({predicate:s,context:i})})},djt=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),mjt=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)),pjt=t=>{const e=djt({stringExpressionEvaluator:t.stringExpressionEvaluator}),o=mjt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({stringPredicate:n,context:r})=>ijt(n).Match({Contains:i=>o({predicate:i,context:r}),Equal:i=>e({predicate:i,context:r})})},hjt=t=>{const e=cjt({numberExpressionEvaluator:t.numberExpressionEvaluator}),o=pjt({stringExpressionEvaluator:t.stringExpressionEvaluator});return({predicate:n,context:r})=>rjt(n).Match({NumberPredicate:i=>e({numberPredicate:i,context:r}),StringPredicate:i=>o({stringPredicate:i,context:r})})},fjt=t=>{const e=hjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=({boolExpression:n,context:r})=>njt(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},gjt=t=>({localeKey:t.localeKey,stringExpressionBuilderPlugin:t.stringExpressionBuilderPlugin}),yjt=t=>({postGetThemeLibrary:t.themeLibraryBffClient.postGetThemeLibrary,postGetComponentLibrary:t.componentLibraryBffClient.postGetComponentLibrary}),Cjt=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})},bjt=t=>({localeKey:t.localeKey}),vjt=t=>({localeKey:t.localeKey}),Sjt=t=>({localeKey:t.localeKey,saveTemplateErrorNotificationModalWindowDeps:vjt({localeKey:t.localeKey})}),Tjt=t=>({appSettingsModifierPlugin:t.appSettingsModifierPlugin,resetTemplateButtonDeps:bjt({localeKey:t.localeKey}),saveTemplateButtonDeps:Sjt({localeKey:t.localeKey})}),wjt=t=>({localeKey:t.localeKey}),xjt=t=>({localeKey:t.localeKey}),Fjt=t=>({localeKey:t.localeKey,preheaderSubjectUpdateModalWindowDeps:xjt({localeKey:t.localeKey})}),kjt=t=>({exportMenuDeps:Tjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),toggleDeviceToolbarDeps:wjt({localeKey:t.localeKey}),preheaderSubjectUpdateButtonDeps:Fjt({localeKey:t.localeKey})}),Ljt=t=>({sectionItemId:t.sectionItemId,sectionItemName:t.sectionItemName,theme:JSON.parse(t.theme.json)}),Ejt=t=>({sectionId:t.sectionId,sectionName:t.sectionName,sectionItems:t.sectionItems.map(e=>Ljt(e))}),_jt=t=>async()=>(await t.getThemeLibraryHttpClient({body:{partnerId:t.partnerId}})).body.sections.map(e=>Ejt(e)),Djt=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}),UEe=t=>async()=>(await t.postGetThemeLibrarySections({body:{partnerId:t.partnerId}})).body.sections.map(e=>Bjt(e)),$jt=t=>({localeKey:t.localeKey,addThemeSectionItem:Djt({partnerId:t.partnerId,postCreateThemeLibrarySectionItem:t.addThemeLibrarySectionItemModalWindowBffClient.postCreateThemeLibrarySectionItem}),getThemeLibrarySections:UEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.addThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Rjt=t=>async e=>{await t.deleteThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},Ajt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItem:Rjt({partnerId:t.partnerId,deleteThemeLibrarySectionItem:t.deleteThemeLibrarySectionItemModalWindowBffClient.postDeleteThemeLibrarySectionItem}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),Njt=t=>async e=>{await t.updateThemeLibrarySectionItem({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},Vjt=t=>({localeKey:t.localeKey,updateThemeLibrarySectionItem:Njt({partnerId:t.partnerId,updateThemeLibrarySectionItem:t.editThemeLibrarySectionItemModalWindowBffClient.postUpdateThemeLibrarySectionItem}),getThemeLibrarySections:UEe({partnerId:t.partnerId,postGetThemeLibrarySections:t.editThemeLibrarySectionItemModalWindowBffClient.postGetThemeLibrarySections})}),Ijt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionItemModalWindowDeps:Ajt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient}),editThemeLibrarySectionItemModalWindowDeps:Vjt({localeKey:t.localeKey,partnerId:t.partnerId,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient})}),Pjt=t=>async e=>(await t.deleteThemeLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Mjt=t=>({localeKey:t.localeKey,deleteThemeLibrarySection:Pjt({partnerId:t.partnerId,deleteThemeLibrarySectionHttpClientDelegate:t.deleteThemeLibrarySectionModalWindowBffClient.postDeleteThemeLibrarySection})}),Ojt=t=>({localeKey:t.localeKey,deleteThemeLibrarySectionModalWindowDeps:Mjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Wjt=t=>({localeKey:t.localeKey,themeSectionItemDeps:Ijt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient}),emptyThemeSectionDeps:Ojt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient})}),Hjt=t=>async e=>{await t.createThemeLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},zjt=t=>({localeKey:t.localeKey,createThemeLibrarySection:Hjt({partnerId:t.partnerId,createThemeLibrarySectionHttpClient:t.createThemeLibrarySectionModalWindowBffClient.postCreateThemeLibrarySection})}),jjt=t=>({defaultThemeLibrary:t.defaultThemeLibrary}),qEe=t=>({localeKey:t.localeKey,defaultThemeLibraryDeps:jjt({defaultThemeLibrary:t.defaultThemeLibrary}),customThemeLibraryDeps:{localeKey:t.localeKey,addThemeSectionItemModalWindowDeps:$jt({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient}),themeSectionDeps:Wjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient}),createThemeLibrarySectionModalWindowDeps:zjt({localeKey:t.localeKey,partnerId:t.partnerId,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient})}}),Kjt=t=>({localeKey:t.localeKey,customThemeLibraryDeps:qEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}).customThemeLibraryDeps}),Ujt=t=>async e=>{await t.deleteComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId}})},qjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItem:Ujt({partnerId:t.partnerId,deleteComponentLibrarySectionItemHttpClientDelegate:t.deleteComponentLibrarySectionItemModalWindowBffClient.postDeleteComponentLibrarySectionItem})}),Jjt=t=>async e=>{await t.updateComponentLibrarySectionItemHttpClientDelegate({body:{partnerId:t.partnerId,sectionItemId:e.sectionItemId,updatedParentSectionId:e.updatedParentSectionId,updatedSectionItemName:e.updatedSectionItemName}})},JEe=t=>async()=>(await t.getComponentLibrarySectionsHttpClientDelegate({body:{partnerId:t.partnerId}})).body.sections.map(e=>({sectionId:e.sectionId,sectionName:e.sectionName})),Gjt=t=>({localeKey:t.localeKey,updateComponentLibrarySectionItem:Jjt({partnerId:t.partnerId,updateComponentLibrarySectionItemHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postUpdateComponentLibrarySectionItem}),getComponentLibrarySections:JEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.editComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),Yjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionItemModalWindowDeps:qjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),editComponentLibrarySectionItemModalWindowDeps:Gjt({localeKey:t.localeKey,partnerId:t.partnerId,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient}),emailComponentDeps:t.emailComponentDeps}),Zjt=t=>async e=>(await t.deleteComponentLibrarySectionHttpClientDelegate({body:{partnerId:t.partnerId,sectionId:e.sectionId}})).status===200?"Success":"Fail",Xjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySection:Zjt({partnerId:t.partnerId,deleteComponentLibrarySectionHttpClientDelegate:t.deleteComponentLibrarySectionModalWindowBffClient.postDeleteComponentLibrarySection})}),Qjt=t=>({localeKey:t.localeKey,deleteComponentLibrarySectionModalWindowDeps:Xjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),eKt=t=>({localeKey:t.localeKey,componentSectionItemDeps:Yjt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient}),emptyComponentSectionDeps:Qjt({localeKey:t.localeKey,partnerId:t.partnerId,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),tKt=t=>async e=>{await t.createComponentLibrarySectionHttpClient({body:{partnerId:t.partnerId,sectionName:e.sectionName}})},oKt=t=>({localeKey:t.localeKey,createComponentLibrarySection:tKt({partnerId:t.partnerId,createComponentLibrarySectionHttpClient:t.createComponentLibrarySectionModalWindowBffClient.postCreateComponentLibrarySection})}),nKt=t=>({localeKey:t.localeKey,createComponentLibrarySectionModalWindowDeps:oKt({localeKey:t.localeKey,partnerId:t.partnerId,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient}),componentSectionDeps:eKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient})}),rKt=t=>({emailComponentDeps:t.emailComponentDeps}),iKt=t=>({localeKey:t.localeKey,componentSectionItemDeps:rKt({emailComponentDeps:t.emailComponentDeps})}),sKt=t=>({defaultComponentLibrary:t.defaultComponentLibrary,componentSectionDeps:iKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps})}),aKt=t=>({localeKey:t.localeKey,customComponentLibraryDeps:nKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient}),defaultComponentLibraryDeps:sKt({localeKey:t.localeKey,emailComponentDeps:t.emailComponentDeps,defaultComponentLibrary:t.defaultComponentLibrary})}),lKt=t=>({localeKey:t.localeKey,exitLink:t.exitLink,themeLibraryDeps:qEe({localeKey:t.localeKey,partnerId:t.partnerId,addThemeLibrarySectionItemModalWindowBffClient:t.addThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionItemModalWindowBffClient:t.deleteThemeLibrarySectionItemModalWindowBffClient,deleteThemeLibrarySectionModalWindowBffClient:t.deleteThemeLibrarySectionModalWindowBffClient,editThemeLibrarySectionItemModalWindowBffClient:t.editThemeLibrarySectionItemModalWindowBffClient,createThemeLibrarySectionModalWindowBffClient:t.createThemeLibrarySectionModalWindowBffClient,defaultThemeLibrary:t.defaultThemeLibrary}),themeStylesDeps:Kjt({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:aKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,createComponentLibrarySectionModalWindowBffClient:t.createComponentLibrarySectionModalWindowBffClient,editComponentLibrarySectionItemModalWindowBffClient:t.editComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionItemModalWindowBffClient:t.deleteComponentLibrarySectionItemModalWindowBffClient,deleteComponentLibrarySectionModalWindowBffClient:t.deleteComponentLibrarySectionModalWindowBffClient,defaultComponentLibrary:t.defaultComponentLibrary})}),uKt=t=>async e=>{await t.createComponentLibrarySectionItemHttpClient({body:{partnerId:t.partnerId,parentSectionId:e.sectionId,sectionItemName:e.sectionItemName,component:t.httpClientComponentFactoryDelegate(e.component)}})},cKt=t=>({localeKey:t.localeKey,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,addComponentLibrarySectionItem:uKt({partnerId:t.partnerId,createComponentLibrarySectionItemHttpClient:t.addComponentLibrarySectionItemModalWindowBffClient.postCreateComponentLibrarySectionItem,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate}),getComponentLibrarySections:JEe({partnerId:t.partnerId,getComponentLibrarySectionsHttpClientDelegate:t.addComponentLibrarySectionItemModalWindowBffClient.postGetComponentLibrarySections})}),dKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),mKt=t=>({localeKey:t.localeKey}),pKt=t=>({movementMenuDeps:dKt({localeKey:t.localeKey}),draggingMenuDeps:mKt({localeKey:t.localeKey}),emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,addComponentLibrarySectionItemModalWindowDeps:cKt({localeKey:t.localeKey,partnerId:t.partnerId,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),hKt=t=>({localeKey:t.localeKey,emailComponentWrapperDeps:pKt({localeKey:t.localeKey,partnerId:t.partnerId,emailComponentDeps:t.emailComponentDeps,emailComponentSettingsModifierPlugin:t.emailComponentSettingsModifierPlugin,canProductShelfDataSourceBeConverted:t.canProductShelfDataSourceBeConverted,httpClientComponentFactoryDelegate:t.httpClientComponentFactoryDelegate,addComponentLibrarySectionItemModalWindowBffClient:t.addComponentLibrarySectionItemModalWindowBffClient})}),fKt=t=>({localeKey:t.localeKey}),gKt=t=>({localeKey:t.localeKey}),yKt=t=>({localeKey:t.localeKey}),CKt=t=>({localeKey:t.localeKey}),bKt=t=>({localeKey:t.localeKey,fontColorEditorDeps:CKt({localeKey:t.localeKey})}),GG=t=>({localeKey:t.localeKey,fontStyleColorEditorDeps:yKt({localeKey:t.localeKey}),customFontSettingsDeps:bKt({localeKey:t.localeKey})}),vKt=t=>({removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),truncateSpanEditorDeps:gKt({localeKey:t.localeKey}),localeKey:t.localeKey,fontStyleEditorDeps:GG({localeKey:t.localeKey})}),SKt=t=>({localeKey:t.localeKey}),GEe=t=>({localeKey:t.localeKey,borderColorEditorDeps:SKt({localeKey:t.localeKey})}),TKt=t=>({localeKey:t.localeKey,borderEditorDeps:GEe({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),YG=t=>({localeKey:t.localeKey}),wKt=t=>({localeKey:t.localeKey,borderEditorDeps:GEe({localeKey:t.localeKey}),colorEditorDeps:YG({localeKey:t.localeKey}),fontStyleEditorDeps:GG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),xKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),fontStyleEditorDeps:GG({localeKey:t.localeKey})}),FKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),kKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey}),colorEditorDeps:YG({localeKey:t.localeKey})}),LKt=t=>({localeKey:t.localeKey,removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),EKt=t=>({spanEditorDeps:vKt({localeKey:t.localeKey}),imageEditorDeps:TKt({localeKey:t.localeKey}),buttonEditorDeps:wKt({localeKey:t.localeKey}),unsubscribeLinkEditorDeps:xKt({localeKey:t.localeKey}),backgroundImageEditorDeps:FKt({localeKey:t.localeKey}),spacerEditorDeps:kKt({localeKey:t.localeKey}),richTextEditorDeps:LKt({localeKey:t.localeKey})}),_Kt=t=>({localeKey:t.localeKey,colorEditorDeps:YG({localeKey:t.localeKey}),removeConfirmModalWindowDeps:Yu({localeKey:t.localeKey})}),DKt=t=>{const e=fjt({numberExpressionEvaluator:t.numberExpressionEvaluator,stringExpressionEvaluator:t.stringExpressionEvaluator}),o=XIt({localeKey:t.localeKey,elementsDeps:TPt({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:kjt({localeKey:t.localeKey,appSettingsModifierPlugin:t.appSettingsModifierPlugin}),saveEmailTemplate:t.saveEmailTemplate,createFavoriteTemplate:t.createFavoriteTemplate,getThemeLibrary:_jt({partnerId:t.partnerId,getThemeLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetThemeLibrary}),getComponentLibrary:t.getComponentLibraryFactory({partnerId:t.partnerId,getComponentLibraryHttpClient:t.wysiwygTemplateEditorBffClient.postGetComponentLibrary}),asideMenuDeps:lKt({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:fKt({localeKey:t.localeKey}),elementsEditorDeps:EKt({localeKey:t.localeKey}),emailComponentEditorDeps:_Kt({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}}),$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}}),AKt=t=>({localeKey:t.localeKey,getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),YEe=t=>({InternalProductId:t.internalId,ExternalProductId:t.externalId,PictureUrl:t.pictureUrl,Name:t.name,IsAvailable:t.isAvailable}),ZG=t=>{switch(t.stockSource._t){case"CustomerStockIdSource":return t.customerStockId;case"DefaultStoreStockIdSource":return;case"SpecificStockIdSource":return t.stockSource.Value;default:ejt(t.stockSource)}},NKt=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.findProductsBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:e,stockId:n}})).body.products.map(r=>YEe(r))},VKt=t=>({localeKey:t.localeKey}),IKt=t=>({selectedProductListItemDeps:VKt({localeKey:t.localeKey})}),PKt=t=>({localeKey:t.localeKey}),MKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,selectedProductListDeps:IKt({localeKey:t.localeKey}),emptyProductListDeps:PKt({localeKey:t.localeKey})}),OKt=t=>({localeKey:t.localeKey}),WKt=t=>({localeKey:t.localeKey}),HKt=t=>({localeKey:t.localeKey}),zKt=t=>({searchedProductListItemDeps:WKt({localeKey:t.localeKey}),emptySearchProductListDeps:HKt({localeKey:t.localeKey})}),jKt=t=>({localeKey:t.localeKey,getProductsByIDs:t.getProductsByIDs,findProductsByPhrase:t.findProductsByPhrase,productSearchBarDeps:OKt({localeKey:t.localeKey}),searchedProductListDeps:zKt({localeKey:t.localeKey})}),KKt=t=>async(e,o)=>{const n=ZG({stockSource:o,customerStockId:t.customerStockId});return(await t.getProductsByIDsHttpClient({body:{partnerId:t.partnerId,internalProductIds:e.concat([]),stockId:n}})).body.products.map(r=>YEe(r))},UKt=t=>{const e=KKt({partnerId:t.partnerId,productCache:{},customerStockId:t.customerStockId,getProductsByIDsHttpClient:t.productPickerModalWindowBffClient.postGetProductsByIds}),o=NKt({partnerId:t.partnerId,customerStockId:t.customerStockId,findProductsBySearchPhrase:t.productPickerModalWindowBffClient.postFindProductsBySearchPhrase});return{localeKey:t.localeKey,selectProductComponentDeps:MKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o}),productSearchComponentDeps:jKt({localeKey:t.localeKey,getProductsByIDs:e,findProductsByPhrase:o})}},qKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),JKt=async t=>{const e=t.categoryIds.filter(o=>!t.categoryCache[o]);return e.length>0&&(await t.findCategoriesByID({partnerId:t.partnerId,categoryIds:e})).forEach(o=>t.categoryCache[o.id]=o),t.categoryIds.map(o=>t.categoryCache[o]).filter(o=>o!==void 0)},ZEe=t=>async e=>(await JKt({partnerId:t.partnerId,categoryIds:e,categoryCache:{},findCategoriesByID:async o=>(await t.getCategoriesByIDsHttpClient({body:{partnerId:t.partnerId,categoryIds:o.categoryIds.concat([])}})).body.categories})).map(o=>qKt(o)),GKt=t=>({CategoryId:t.id,Path:t.path,Name:t.name}),YKt=async t=>{const e=await t.findCategoriesByPhrase({phrase:t.phrase});return e.forEach(o=>t.categoryCache[o.id]=o),e},ZKt=t=>async e=>(await YKt({phrase:e,categoryCache:t.categoryCache,findCategoriesByPhrase:async o=>(await t.findProductCategoriesBySearchPhrase({body:{partnerId:t.partnerId,searchPhrase:o.phrase}})).body.categories})).map(o=>GKt(o)),XKt=t=>({localeKey:t.localeKey}),QKt=t=>({localeKey:t.localeKey,getCategoriesByIDs:t.getCategoriesByIDs,selectedCategoryListDeps:{},emptyCategoryListDeps:XKt({localeKey:t.localeKey})}),eUt=t=>({localeKey:t.localeKey}),tUt=t=>({localeKey:t.localeKey}),oUt=t=>({emptySearchCategoryListDeps:tUt({localeKey:t.localeKey})}),nUt=t=>({localeKey:t.localeKey,findCategoriesByName:t.findCategoriesByName,getCategoriesByIDs:t.getCategoriesByIDs,categorySearchBarDeps:eUt({localeKey:t.localeKey}),searchedCategoryListDeps:oUt({localeKey:t.localeKey})}),XEe=t=>{const e={},o=ZEe({partnerId:t.partnerId,categoryCache:e,getCategoriesByIDsHttpClient:t.productCategoryPickerModalWindowBffClient.postGetProductCategoriesByIds}),n=ZKt({partnerId:t.partnerId,categoryCache:e,findProductCategoriesBySearchPhrase:t.productCategoryPickerModalWindowBffClient.postFindProductCategoriesBySearchPhrase});return{localeKey:t.localeKey,selectCategoryComponentDeps:QKt({localeKey:t.localeKey,getCategoriesByIDs:o}),categorySearchComponentDeps:nUt({localeKey:t.localeKey,getCategoriesByIDs:o,findCategoriesByName:n})}},rUt=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=>rUt(r))},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,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}}}),lUt=t=>({localeKey:t.localeKey,getCategoriesByIDs:ZEe({partnerId:t.partnerId,categoryCache:t.categoryCache,getCategoriesByIDsHttpClient:t.getCategoriesByIDsHttpClient}),getAllStockIds:Qu({partnerId:t.partnerId,getAllStockIdsHttpClient:t.getAllStockIdsHttpClient}),categoryListComposerModalWindowDeps:XEe({localeKey:t.localeKey,partnerId:t.partnerId,productCategoryPickerModalWindowBffClient:t.productCategoryPickerModalWindowBffClient}),stockSelectorDeps:{localeKey:t.localeKey,stockSourceSelectorDeps:{localeKey:t.localeKey}},productListShelfLimiterDeps:{localeKey:t.localeKey}}),QEe=t=>t.reduce((e,o)=>(e[o.name]=o.value,e),{}),T0=t=>KEe({InternalProductId:t.internalProductId,Name:t.name,Description:t.description,Price:t.price,OldPrice:t.oldPrice,PictureUrl:t.pictureUrl,Url:t.url,CategoryIds:[],Vendor:t.vendor,Params:QEe(t.parameters),DiscountPercentage:t.discountPercentage}),uUt=async t=>(await t.getPopularProductsHttpClient({body:{partnerId:t.partnerId,stockId:t.stockId}})).body.recommendations.map(e=>T0(e));var cUt=typeof global=="object"&&global&&global.Object===Object&&global,dUt=typeof self=="object"&&self&&self.Object===Object&&self,mUt=cUt||dUt||Function("return this")(),p3=mUt.Symbol;p3&&p3.toStringTag;p3&&p3.toStringTag;const{entries:e2e,setPrototypeOf:jle,isFrozen:pUt,getPrototypeOf:hUt,getOwnPropertyDescriptor:fUt}=Object;let{freeze:ss,seal:Wl,create:tz}=Object,{apply:oz,construct:nz}=typeof Reflect<"u"&&Reflect;ss||(ss=function(t){return t});Wl||(Wl=function(t){return t});oz||(oz=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)});nz||(nz=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_=as(Array.prototype.forEach),gUt=as(Array.prototype.lastIndexOf),Kle=as(Array.prototype.pop),dw=as(Array.prototype.push),yUt=as(Array.prototype.splice),l$=as(String.prototype.toLowerCase),c5=as(String.prototype.toString),d5=as(String.prototype.match),mw=as(String.prototype.replace),CUt=as(String.prototype.indexOf),bUt=as(String.prototype.trim),wu=as(Object.prototype.hasOwnProperty),vi=as(RegExp.prototype.test),pw=vUt(TypeError);function as(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 oz(t,e,n)}}function vUt(t){return function(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];return nz(t,o)}}function oo(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l$;jle&&jle(t,null);let n=e.length;for(;n--;){let r=e[n];if(typeof r=="string"){const i=o(r);i!==r&&(pUt(e)||(e[n]=i),r=i)}t[r]=!0}return t}function SUt(t){for(let e=0;e<t.length;e++)wu(t,e)||(t[e]=null);return t}function gc(t){const e=tz(null);for(const[o,n]of e2e(t))wu(t,o)&&(Array.isArray(n)?e[o]=SUt(n):n&&typeof n=="object"&&n.constructor===Object?e[o]=gc(n):e[o]=n);return e}function hw(t,e){for(;t!==null;){const n=fUt(t,e);if(n){if(n.get)return as(n.get);if(typeof n.value=="function")return as(n.value)}t=hUt(t)}function o(){return null}return o}const Ule=ss(["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=ss(["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"]),p5=ss(["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"]),TUt=ss(["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"]),h5=ss(["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=ss(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qle=ss(["#text"]),Jle=ss(["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=ss(["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=ss(["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_=ss(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xUt=Wl(/\{\{[\w\W]*|[\w\W]*\}\}/gm),FUt=Wl(/<%[\w\W]*|[\w\W]*%>/gm),kUt=Wl(/\$\{[\w\W]*/gm),LUt=Wl(/^data-[\-\w.\u00B7-\uFFFF]+$/),EUt=Wl(/^aria-[\-\w]+$/),t2e=Wl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_Ut=Wl(/^(?:\w+script|data):/i),DUt=Wl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),o2e=Wl(/^html$/i),BUt=Wl(/^[a-z][.\w]*(-[.\w]+)+$/i);var Yle=Object.freeze({__proto__:null,ARIA_ATTR:EUt,ATTR_WHITESPACE:DUt,CUSTOM_ELEMENT:BUt,DATA_ATTR:LUt,DOCTYPE_NAME:o2e,ERB_EXPR:FUt,IS_ALLOWED_URI:t2e,IS_SCRIPT_OR_DATA:_Ut,MUSTACHE_EXPR:xUt,TMPLIT_EXPR:kUt});const fw={element:1,text:3,progressingInstruction:7,comment:8,document:9},$Ut=function(){return typeof window>"u"?null:window},RUt=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 n2e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$Ut();const e=C=>n2e(C);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==fw.document||!t.Element)return e.isSupported=!1,e;let{document:o}=t;const n=o,r=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:m,trustedTypes:p}=t,h=l.prototype,f=hw(h,"cloneNode"),g=hw(h,"remove"),b=hw(h,"nextSibling"),v=hw(h,"childNodes"),S=hw(h,"parentNode");if(typeof s=="function"){const C=o.createElement("template");C.content&&C.content.ownerDocument&&(o=C.content.ownerDocument)}let w,x="";const{implementation:F,createNodeIterator:B,createDocumentFragment:N,getElementsByTagName:R}=o,{importNode:P}=n;let E=Zle();e.isSupported=typeof e2e=="function"&&typeof S=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:A,TMPLIT_EXPR:I,DATA_ATTR:W,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:Ve}=Yle;let{IS_ALLOWED_URI:Se}=Yle,G=null;const Ae=oo({},[...Ule,...m5,...p5,...h5,...qle]);let q=null;const me=oo({},[...Jle,...f5,...Gle,...Z_]);let H=Object.seal(tz(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(tz(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Nt=!0,Vt=!0,Et=!1,z=!0,j=!1,ee=!0,oe=!1,re=!1,ie=!1,de=!1,he=!1,te=!1,ne=!0,Ge=!1;const we="user-content-";let Te=!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:l$,G=wu(C,"ALLOWED_TAGS")?oo({},C.ALLOWED_TAGS,ge):Ae,q=wu(C,"ALLOWED_ATTR")?oo({},C.ALLOWED_ATTR,ge):me,qo=wu(C,"ALLOWED_NAMESPACES")?oo({},C.ALLOWED_NAMESPACES,c5):su,Co=wu(C,"ADD_URI_SAFE_ATTR")?oo(gc(No),C.ADD_URI_SAFE_ATTR,ge):No,Fo=wu(C,"ADD_DATA_URI_TAGS")?oo(gc(ko),C.ADD_DATA_URI_TAGS,ge):ko,Ce=wu(C,"FORBID_CONTENTS")?oo({},C.FORBID_CONTENTS,ge):Qe,be=wu(C,"FORBID_TAGS")?oo({},C.FORBID_TAGS,ge):gc({}),le=wu(C,"FORBID_ATTR")?oo({},C.FORBID_ATTR,ge):gc({}),Ne=wu(C,"USE_PROFILES")?C.USE_PROFILES:!1,Nt=C.ALLOW_ARIA_ATTR!==!1,Vt=C.ALLOW_DATA_ATTR!==!1,Et=C.ALLOW_UNKNOWN_PROTOCOLS||!1,z=C.ALLOW_SELF_CLOSE_IN_ATTR!==!1,j=C.SAFE_FOR_TEMPLATES||!1,ee=C.SAFE_FOR_XML!==!1,oe=C.WHOLE_DOCUMENT||!1,de=C.RETURN_DOM||!1,he=C.RETURN_DOM_FRAGMENT||!1,te=C.RETURN_TRUSTED_TYPE||!1,ie=C.FORCE_BODY||!1,ne=C.SANITIZE_DOM!==!1,Ge=C.SANITIZE_NAMED_PROPS||!1,Te=C.KEEP_CONTENT!==!1,xe=C.IN_PLACE||!1,Se=C.ALLOWED_URI_REGEXP||t2e,kt=C.NAMESPACE||tt,$o=C.MATHML_TEXT_INTEGRATION_POINTS||$o,Ro=C.HTML_INTEGRATION_POINTS||Ro,H=C.CUSTOM_ELEMENT_HANDLING||{},C.CUSTOM_ELEMENT_HANDLING&&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),he&&(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,p5),oo(q,f5),oo(q,Z_)),Ne.mathMl===!0&&(oo(G,h5),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)),Te&&(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 pw('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof C.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw pw('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=C.TRUSTED_TYPES_POLICY,x=w.createHTML("")}else w===void 0&&(w=RUt(p,r)),w!==null&&typeof x=="string"&&(x=w.createHTML(""));ss&&ss(C),jt=C}},$r=oo({},[...m5,...p5,...TUt]),Rr=oo({},[...h5,...wUt]),du=function(C){let k=S(C);(!k||!k.tagName)&&(k={namespaceURI:kt,tagName:"template"});const D=l$(C.tagName),J=l$(k.tagName);return qo[C.namespaceURI]?C.namespaceURI===Lo?k.namespaceURI===tt?D==="svg":k.namespaceURI===go?D==="svg"&&(J==="annotation-xml"||$o[J]):!!$r[D]:C.namespaceURI===go?k.namespaceURI===tt?D==="math":k.namespaceURI===Lo?D==="math"&&Ro[J]:!!Rr[D]:C.namespaceURI===tt?k.namespaceURI===Lo&&!Ro[J]||k.namespaceURI===go&&!$o[J]?!1:!Rr[D]&&(au[D]||!$r[D]):!!(yo==="application/xhtml+xml"&&qo[C.namespaceURI]):!1},_t=function(C){dw(e.removed,{element:C});try{S(C).removeChild(C)}catch{g(C)}},Mt=function(C,k){try{dw(e.removed,{attribute:k.getAttributeNode(C),from:k})}catch{dw(e.removed,{attribute:null,from:k})}if(k.removeAttribute(C),C==="is")if(de||he)try{_t(k)}catch{}else try{k.setAttribute(C,"")}catch{}},Ar=function(C){let k=null,D=null;if(ie)C="<remove></remove>"+C;else{const ae=d5(C,/^[\r\n\t ]+/);D=ae&&ae[0]}yo==="application/xhtml+xml"&&kt===tt&&(C='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+C+"</body></html>");const J=w?w.createHTML(C):C;if(kt===tt)try{k=new m().parseFromString(J,yo)}catch{}if(!k||!k.documentElement){k=F.createDocument(kt,"template",null);try{k.documentElement.innerHTML=Uo?x:J}catch{}}const ye=k.body||k.documentElement;return C&&D&&ye.insertBefore(o.createTextNode(D),ye.childNodes[0]||null),kt===tt?R.call(k,oe?"html":"body")[0]:oe?k.documentElement:ye},Nr=function(C){return B.call(C.ownerDocument||C,C,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Cn=function(C){return C instanceof d&&(typeof C.nodeName!="string"||typeof C.textContent!="string"||typeof C.removeChild!="function"||!(C.attributes instanceof c)||typeof C.removeAttribute!="function"||typeof C.setAttribute!="function"||typeof C.namespaceURI!="string"||typeof C.insertBefore!="function"||typeof C.hasChildNodes!="function")},Vr=function(C){return typeof a=="function"&&C instanceof a};function pt(C,k,D){Y_(C,J=>{J.call(e,k,D,jt)})}const Ir=function(C){let k=null;if(pt(E.beforeSanitizeElements,C,null),Cn(C))return _t(C),!0;const D=ge(C.nodeName);if(pt(E.uponSanitizeElement,C,{tagName:D,allowedTags:G}),ee&&C.hasChildNodes()&&!Vr(C.firstElementChild)&&vi(/<[/\w!]/g,C.innerHTML)&&vi(/<[/\w!]/g,C.textContent)||C.nodeType===fw.progressingInstruction||ee&&C.nodeType===fw.comment&&vi(/<[/\w]/g,C.data))return _t(C),!0;if(!(ue.tagCheck instanceof Function&&ue.tagCheck(D))&&(!G[D]||be[D])){if(!be[D]&&Mr(D)&&(H.tagNameCheck instanceof RegExp&&vi(H.tagNameCheck,D)||H.tagNameCheck instanceof Function&&H.tagNameCheck(D)))return!1;if(Te&&!Ce[D]){const J=S(C)||C.parentNode,ye=v(C)||C.childNodes;if(ye&&J){const ae=ye.length;for(let nt=ae-1;nt>=0;--nt){const et=f(ye[nt],!0);et.__removalCount=(C.__removalCount||0)+1,J.insertBefore(et,b(C))}}}return _t(C),!0}return C instanceof l&&!du(C)||(D==="noscript"||D==="noembed"||D==="noframes")&&vi(/<\/no(script|embed|frames)/i,C.innerHTML)?(_t(C),!0):(j&&C.nodeType===fw.text&&(k=C.textContent,Y_([L,A,I],J=>{k=mw(k,J," ")}),C.textContent!==k&&(dw(e.removed,{element:C.cloneNode()}),C.textContent=k)),pt(E.afterSanitizeElements,C,null),!1)},Pr=function(C,k,D){if(ne&&(k==="id"||k==="name")&&(D in o||D in cu))return!1;if(!(Vt&&!le[k]&&vi(W,k))&&!(Nt&&vi(O,k))&&!(ue.attributeCheck instanceof Function&&ue.attributeCheck(k,C))){if(!q[k]||le[k]){if(!(Mr(C)&&(H.tagNameCheck instanceof RegExp&&vi(H.tagNameCheck,C)||H.tagNameCheck instanceof Function&&H.tagNameCheck(C))&&(H.attributeNameCheck instanceof RegExp&&vi(H.attributeNameCheck,k)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(k,C))||k==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&vi(H.tagNameCheck,D)||H.tagNameCheck instanceof Function&&H.tagNameCheck(D))))return!1}else if(!Co[k]&&!vi(Se,mw(D,fe,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&C!=="script"&&CUt(D,"data:")===0&&Fo[C])&&!(Et&&!vi(K,mw(D,fe,"")))&&D)return!1}return!0},Mr=function(C){return C!=="annotation-xml"&&d5(C,Ve)},Or=function(C){pt(E.beforeSanitizeAttributes,C,null);const{attributes:k}=C;if(!k||Cn(C))return;const D={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let J=k.length;for(;J--;){const ye=k[J],{name:ae,namespaceURI:nt,value:et}=ye,at=ge(ae),Jo=et;let He=ae==="value"?Jo:bUt(Jo);if(D.attrName=at,D.attrValue=He,D.keepAttr=!0,D.forceKeepAttr=void 0,pt(E.uponSanitizeAttribute,C,D),He=D.attrValue,Ge&&(at==="id"||at==="name")&&(Mt(ae,C),He=we+He),ee&&vi(/((--!?|])>)|<\/(style|title|textarea)/i,He)){Mt(ae,C);continue}if(at==="attributename"&&d5(He,"href")){Mt(ae,C);continue}if(D.forceKeepAttr)continue;if(!D.keepAttr){Mt(ae,C);continue}if(!z&&vi(/\/>/i,He)){Mt(ae,C);continue}j&&Y_([L,A,I],Za=>{He=mw(He,Za," ")});const Eo=ge(C.nodeName);if(!Pr(Eo,at,He)){Mt(ae,C);continue}if(w&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!nt)switch(p.getAttributeType(Eo,at)){case"TrustedHTML":{He=w.createHTML(He);break}case"TrustedScriptURL":{He=w.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)}}pt(E.afterSanitizeAttributes,C,null)},mu=function C(k){let D=null;const J=Nr(k);for(pt(E.beforeSanitizeShadowDOM,k,null);D=J.nextNode();)pt(E.uponSanitizeShadowNode,D,null),Ir(D),Or(D),D.content instanceof i&&C(D.content);pt(E.afterSanitizeShadowDOM,k,null)};return e.sanitize=function(C){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=null,J=null,ye=null,ae=null;if(Uo=!C,Uo&&(C="<!-->"),typeof C!="string"&&!Vr(C))if(typeof C.toString=="function"){if(C=C.toString(),typeof C!="string")throw pw("dirty is not a string, aborting")}else throw pw("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 at=ge(C.nodeName);if(!G[at]||be[at])throw pw("root node is forbidden and cannot be sanitized in-place")}}else if(C instanceof a)D=Ar("<!---->"),J=D.ownerDocument.importNode(C,!0),J.nodeType===fw.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?D=J:D.appendChild(J);else{if(!de&&!j&&!oe&&C.indexOf("<")===-1)return w&&te?w.createHTML(C):C;if(D=Ar(C),!D)return de?null:te?x:""}D&&ie&&_t(D.firstChild);const nt=Nr(xe?C:D);for(;ye=nt.nextNode();)Ir(ye),Or(ye),ye.content instanceof i&&mu(ye.content);if(xe)return C;if(de){if(he)for(ae=N.call(D.ownerDocument);D.firstChild;)ae.appendChild(D.firstChild);else ae=D;return(q.shadowroot||q.shadowrootmode)&&(ae=P.call(n,ae,!0)),ae}let et=oe?D.outerHTML:D.innerHTML;return oe&&G["!doctype"]&&D.ownerDocument&&D.ownerDocument.doctype&&D.ownerDocument.doctype.name&&vi(o2e,D.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+D.ownerDocument.doctype.name+`>
|
|
194
194
|
`+et),j&&Y_([L,A,I],at=>{et=mw(et,at," ")}),w&&te?w.createHTML(et):et},e.setConfig=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yn(C),re=!0},e.clearConfig=function(){jt=null,re=!1},e.isValidAttribute=function(C,k,D){jt||yn({});const J=ge(C),ye=ge(k);return Pr(J,ye,D)},e.addHook=function(C,k){typeof k=="function"&&dw(E[C],k)},e.removeHook=function(C,k){if(k!==void 0){const D=gUt(E[C],k);return D===-1?void 0:yUt(E[C],D,1)[0]}return Kle(E[C])},e.removeHooks=function(C){E[C]=[]},e.removeAllHooks=function(){E=Zle()},e}n2e();function qr(t){this.content=t}qr.prototype={constructor:qr,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 qr(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 qr(o)},addToStart:function(t,e){return new qr([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var o=this.remove(t).content.slice();return o.push(t,e),new qr(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 qr(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=qr.from(t),t.size?new qr(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=qr.from(t),t.size?new qr(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=qr.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}};qr.from=function(t){if(t instanceof qr)return t;var e=[];if(t)for(var o in t)e.push(o,t[o]);return new qr(e)};function r2e(t,e,o){for(let n=0;;n++){if(n==t.childCount||n==e.childCount)return t.childCount==e.childCount?null:o;let r=t.child(n),i=e.child(n);if(r==i){o+=r.nodeSize;continue}if(!r.sameMarkup(i))return o;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)o++;return o}if(r.content.size||i.content.size){let s=r2e(r.content,i.content,o+1);if(s!=null)return s}o+=r.nodeSize}}function i2e(t,e,o,n){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:o,b:n};let s=t.child(--r),a=e.child(--i),l=s.nodeSize;if(s==a){o-=l,n-=l;continue}if(!s.sameMarkup(a))return{a:o,b:n};if(s.isText&&s.text!=a.text){let u=0,c=Math.min(s.text.length,a.text.length);for(;u<c&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,o--,n--;return{a:o,b:n}}if(s.content.size||a.content.size){let u=i2e(s.content,a.content,o-1,n-1);if(u)return u}o-=l,n-=l}}class Pe{constructor(e,o){if(this.content=e,this.size=o||0,o==null)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,o,n,r=0,i){for(let s=0,a=0;a<o;s++){let l=this.content[s],u=a+l.nodeSize;if(u>e&&n(l,r+a,i||null,s)!==!1&&l.content.size){let c=a+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,o-c),n,r+c)}a=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,o,n,r){let i="",s=!0;return this.nodesBetween(e,o,(a,l)=>{let u=a.isText?a.text.slice(Math.max(e,l)-l,o-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&u||a.isTextblock)&&n&&(s?s=!1:i+=n),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let o=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(o.isText&&o.sameMarkup(n)&&(r[r.length-1]=o.withText(o.text+n.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new Pe(r,this.size+e.size)}cut(e,o=this.size){if(e==0&&o==this.size)return this;let n=[],r=0;if(o>e)for(let i=0,s=0;s<o;i++){let a=this.content[i],l=s+a.nodeSize;l>e&&((s<e||l>o)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,o-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,o-s-1))),n.push(a),r+=a.nodeSize),s=l}return new Pe(n,r)}cutByIndex(e,o){return e==o?Pe.empty:e==0&&o==this.content.length?this:new Pe(this.content.slice(e,o))}replaceChild(e,o){let n=this.content[e];if(n==o)return this;let r=this.content.slice(),i=this.size+o.nodeSize-n.nodeSize;return r[e]=o,new Pe(r,i)}addToStart(e){return new Pe([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Pe(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let o=0;o<this.content.length;o++)if(!this.content[o].eq(e.content[o]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let o=this.content[e];if(!o)throw new RangeError("Index "+e+" out of range for "+this);return o}maybeChild(e){return this.content[e]||null}forEach(e){for(let o=0,n=0;o<this.content.length;o++){let r=this.content[o];e(r,n,o),n+=r.nodeSize}}findDiffStart(e,o=0){return r2e(this,e,o)}findDiffEnd(e,o=this.size,n=e.size){return i2e(this,e,o,n)}findIndex(e){if(e==0)return 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 h3(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(!h3(t[n],e[n]))return!1}else{for(let n in t)if(!(n in e)||!h3(t[n],e[n]))return!1;for(let n in e)if(!(n in t))return!1}return!0}let cn=class rz{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&&h3(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 rz.none;if(e instanceof rz)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=a2e(this.content,e+this.openStart,o);return n&&new r1(n,this.openStart,this.openEnd)}removeBetween(e,o){return new r1(s2e(this.content,e+this.openStart,o+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,o){if(!o)return r1.empty;let n=o.openStart||0,r=o.openEnd||0;if(typeof n!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new r1(Pe.fromJSON(e,o.content),n,r)}static maxOpen(e,o=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(o||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(o||!i.type.spec.isolating);i=i.lastChild)r++;return new r1(e,n,r)}};ct.empty=new ct(Pe.empty,0,0);function s2e(t,e,o){let{index:n,offset:r}=t.findIndex(e),i=t.maybeChild(n),{index:s,offset:a}=t.findIndex(o);if(r==e||i.isText){if(a!=o&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(o))}if(n!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(n,i.copy(s2e(i.content,e-r-1,o-r-1)))}function a2e(t,e,o,n){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return n&&!n.canReplace(r,r,o)?null:t.cut(0,e).append(o).append(t.cut(e));let a=a2e(s.content,e-i-1,o,s);return a&&t.replaceChild(r,s.copy(a))}function AUt(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 l2e(t,e,o,0)}function l2e(t,e,o,n){let r=t.index(n),i=t.node(n);if(r==e.index(n)&&n<t.depth-o.openStart){let s=l2e(t,e,o,n+1);return i.copy(i.content.replaceChild(r,s))}else if(o.content.size)if(!o.openStart&&!o.openEnd&&t.depth==n&&e.depth==n){let s=t.parent,a=s.content;return Zy(s,a.cut(0,t.parentOffset).append(o.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=NUt(o,t);return Zy(i,c2e(t,s,a,e,n))}else return Zy(i,g3(t,e,n))}function u2e(t,e){if(!e.type.compatibleContent(t.type))throw new f3("Cannot join "+e.type.name+" onto "+t.type.name)}function iz(t,e,o){let n=t.node(o);return u2e(n,e.node(o)),n}function Yy(t,e){let o=e.length-1;o>=0&&t.isText&&t.sameMarkup(e[o])?e[o]=t.withText(e[o].text+t.text):e.push(t)}function RF(t,e,o,n){let r=(e||t).node(o),i=0,s=e?e.index(o):r.childCount;t&&(i=t.index(o),t.depth>o?i++:t.textOffset&&(Yy(t.nodeAfter,n),i++));for(let a=i;a<s;a++)Yy(r.child(a),n);e&&e.depth==o&&e.textOffset&&Yy(e.nodeBefore,n)}function Zy(t,e){return t.type.checkContent(e),t.copy(e)}function c2e(t,e,o,n,r){let i=t.depth>r&&iz(t,e,r+1),s=n.depth>r&&iz(o,n,r+1),a=[];return RF(null,t,r,a),i&&s&&e.index(r)==o.index(r)?(u2e(i,s),Yy(Zy(i,c2e(t,e,o,n,r+1)),a)):(i&&Yy(Zy(i,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=iz(t,e,o+1);Yy(Zy(r,g3(t,e,o+1)),n)}return RF(e,null,o,n),new Pe(n)}function NUt(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 sz{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 sz(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 VUt);let r=n.elts[n.i]=sz.resolve(e,o);return n.i=(n.i+1)%IUt,r}},VUt=class{constructor(){this.elts=[],this.i=0}};const IUt=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 PUt=Object.create(null);let Xy=class az{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&&h3(this.attrs,o||e.defaultAttrs||PUt)&&cn.sameSet(this.marks,n||cn.none)}copy(e=null){return e==this.content?this:new az(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new az(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 AUt(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()+")"),d2e(this.marks,e)}contentMatchAt(e){let o=this.type.contentMatch.matchFragment(this.content,0,e);if(!o)throw new Error("Called contentMatchAt on a node with invalid content");return o}canReplace(e,o,n=Pe.empty,r=0,i=n.childCount){let s=this.contentMatchAt(e).matchFragment(n,r,i),a=s&&s.matchFragment(this.content,o);if(!a||!a.validEnd)return!1;for(let l=r;l<i;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0}canReplaceWith(e,o,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),s=i&&i.matchFragment(this.content,o);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=cn.none;for(let o=0;o<this.marks.length;o++){let n=this.marks[o];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!cn.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(o=>o.type.name)}`);this.content.forEach(o=>o.check())}toJSON(){let e={type:this.type.name};for(let o in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(o=>o.toJSON())),e}static fromJSON(e,o){if(!o)throw new RangeError("Invalid input for Node.fromJSON");let n;if(o.marks){if(!Array.isArray(o.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=o.marks.map(e.markFromJSON)}if(o.type=="text"){if(typeof o.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(o.text,n)}let r=Pe.fromJSON(e,o.content),i=e.nodeType(o.type).create(o.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};Xy.prototype.text=void 0;let MUt=class lz extends Xy{constructor(e,o,n,r){if(super(e,o,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):d2e(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,o){return this.text.slice(e,o)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new lz(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new lz(this.type,this.attrs,e,this.marks)}cut(e=0,o=this.text.length){return e==0&&o==this.text.length?this:this.withText(this.text.slice(e,o))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function d2e(t,e){for(let o=t.length-1;o>=0;o--)e=t[o].type.name+"("+e+")";return e}let vL=class m2e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,o){let n=new OUt(e,o);if(n.next==null)return m2e.empty;let r=p2e(n);n.next&&n.err("Unexpected trailing text");let i=qUt(UUt(r));return JUt(i,n),i}matchType(e){for(let o=0;o<this.next.length;o++)if(this.next[o].type==e)return this.next[o].next;return null}matchFragment(e,o=0,n=e.childCount){let r=this;for(let i=o;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:o}=this.next[e];if(!(o.isText||o.hasRequiredAttrs()))return o}return null}compatible(e){for(let o=0;o<this.next.length;o++)for(let n=0;n<e.next.length;n++)if(this.next[o].type==e.next[n].type)return!0;return!1}fillBefore(e,o=!1,n=0){let r=[this];function i(s,a){let l=s.matchFragment(e,n);if(l&&(!o||l.validEnd))return Pe.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:d}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&r.indexOf(d)==-1){r.push(d);let m=i(d,a.concat(c));if(m)return m}}return null}return i(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let o=this.computeWrapping(e);return this.wrapCache.push(e,o),o}computeWrapping(e){let o=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:l}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in o)&&(!r.type||l.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),o[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function o(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&o(n.next[r].next)}return o(this),e.map((n,r)=>{let i=r+(n.validEnd?"*":" ")+" ";for(let s=0;s<n.next.length;s++)i+=(s?", ":"")+n.next[s].type.name+"->"+e.indexOf(n.next[s].next);return i}).join(`
|
|
195
195
|
`)}};vL.empty=new vL(!0);let OUt=class{constructor(e,o){this.string=e,this.nodeTypes=o,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}};function p2e(t){let e=[];do e.push(WUt(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function WUt(t){let e=[];do e.push(HUt(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function HUt(t){let e=KUt(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=zUt(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 zUt(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 jUt(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 KUt(t){if(t.eat("(")){let e=p2e(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=jUt(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 UUt(t){let e=[[]];return r(i(t,0),o()),e;function o(){return e.push([])-1}function n(s,a,l){let u={term:l,to:a};return e[s].push(u),u}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,u)=>l.concat(i(u,a)),[]);if(s.type=="seq")for(let l=0;;l++){let u=i(s.exprs[l],a);if(l==s.exprs.length-1)return u;r(u,a=o())}else if(s.type=="star"){let l=o();return n(a,l),r(i(s.expr,l),l),[n(l)]}else if(s.type=="plus"){let l=o();return r(i(s.expr,a),l),r(i(s.expr,l),l),[n(l)]}else{if(s.type=="opt")return[n(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let u=0;u<s.min;u++){let c=o();r(i(s.expr,l),c),l=c}if(s.max==-1)r(i(s.expr,l),l);else for(let u=s.min;u<s.max;u++){let c=o();n(l,c),r(i(s.expr,l),c),l=c}return[n(l)]}else{if(s.type=="name")return[n(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function h2e(t,e){return e-t}function tue(t,e){let o=[];return n(e),o.sort(h2e);function n(r){let i=t[r];if(i.length==1&&!i[0].term)return n(i[0].to);o.push(r);for(let s=0;s<i.length;s++){let{term:a,to:l}=i[s];!a&&o.indexOf(l)==-1&&n(l)}}}function qUt(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 vL(n.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(h2e);i.next.push({type:r[s][0],next:e[a.join(",")]||o(a)})}return i}}function JUt(t,e){for(let o=0,n=[t];o<n.length;o++){let r=n[o],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:l,next:u}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),n.indexOf(u)==-1&&n.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function f2e(t){let e=Object.create(null);for(let o in t){let n=t[o];if(!n.hasDefault)return null;e[o]=n.default}return e}function g2e(t,e){let o=Object.create(null);for(let n in t){let r=e&&e[n];if(r===void 0){let i=t[n];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+n)}o[n]=r}return o}function y2e(t,e,o,n){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${o} of type ${r}`);for(let r in t){let i=t[r];i.validate&&i.validate(e[r])}}function C2e(t,e){let o=Object.create(null);if(e)for(let n in e)o[n]=new YUt(t,n,e[n]);return o}let oue=class b2e{constructor(e,o,n){this.name=e,this.schema=o,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=C2e(e,n.attrs),this.defaultAttrs=f2e(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==vL.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:g2e(this.attrs,e)}create(e=null,o,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Xy(this,this.computeAttrs(e),Pe.from(o),cn.setFrom(n))}createChecked(e=null,o,n){return o=Pe.from(o),this.checkContent(o),new Xy(this,this.computeAttrs(e),o,cn.setFrom(n))}createAndFill(e=null,o,n){if(e=this.computeAttrs(e),o=Pe.from(o),o.size){let s=this.contentMatch.fillBefore(o);if(!s)return null;o=s.append(o)}let r=this.contentMatch.matchFragment(o),i=r&&r.fillBefore(Pe.empty,!0);return i?new Xy(this,e,o.append(i),cn.setFrom(n)):null}validContent(e){let o=this.contentMatch.matchFragment(e);if(!o||!o.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){y2e(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let o=0;o<e.length;o++)if(!this.allowsMarkType(e[o].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let o;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?o&&o.push(e[n]):o||(o=e.slice(0,n));return o?o.length?o:cn.none:e}static compile(e,o){let n=Object.create(null);e.forEach((i,s)=>n[i]=new b2e(i,o,s));let r=o.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}};function GUt(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 YUt=class{constructor(e,o,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate=typeof n.validate=="string"?GUt(e,o,n.validate):n.validate}get isRequired(){return!this.hasDefault}},v2e=class S2e{constructor(e,o,n,r){this.name=e,this.rank=o,this.schema=n,this.spec=r,this.attrs=C2e(e,r.attrs),this.excluded=null;let i=f2e(this.attrs);this.instance=i?new cn(this,i):null}create(e=null){return!e&&this.instance?this.instance:new cn(this,g2e(this.attrs,e))}static compile(e,o){let n=Object.create(null),r=0;return e.forEach((i,s)=>n[i]=new S2e(i,r++,o,s)),n}removeFromSet(e){for(var o=0;o<e.length;o++)e[o].type==this&&(e=e.slice(0,o).concat(e.slice(o+1)),o--);return e}isInSet(e){for(let o=0;o<e.length;o++)if(e[o].type==this)return e[o]}checkAttrs(e){y2e(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},ZUt=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=qr.from(e.nodes),o.marks=qr.from(e.marks||{}),this.nodes=oue.compile(this.spec.nodes,this),this.marks=v2e.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=n[s]||(n[s]=vL.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?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 MUt(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 XUt(t){return t.tag!=null}function QUt(t){return t.style!=null}let u$=class uz{constructor(e,o){this.schema=e,this.rules=o,this.tags=[],this.styles=[];let n=this.matchedStyles=[];o.forEach(r=>{if(XUt(r))this.tags.push(r);else if(QUt(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(oqt(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 uz(e,uz.schemaRules(e)))}};const T2e={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},eqt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},w2e={ol:!0,ul:!0},SL=1,cz=2,AF=4;function rue(t,e,o){return e!=null?(e?SL:0)|(e==="full"?cz:0):t&&t.whitespace=="pre"?SL|cz: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&SL)){let n=this.content[this.content.length-1],r;if(n&&n.isText&&(r=/[ \t\r\n\u000c]+$/.exec(n.text))){let i=n;n.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let o=Pe.from(this.content);return!e&&this.match&&(o=o.append(this.match.fillBefore(Pe.empty,!0))),this.type?this.type.create(this.attrs,o,this.marks):o}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!T2e.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&cz?"full":this.localPreserveWS||(r.options&SL)>0,{schema:s}=this.parser;if(i==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)if(i==="full")n=n.replace(/\r\n?/g,`
|
|
196
196
|
`);else if(s.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(s.linebreakReplacement.create())){let a=n.split(/\r?\n|\r/);for(let l=0;l<a.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),o,!0),a[l]&&this.insertNode(s.text(a[l]),o,!/\S/.test(a[l]));n=""}else n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let a=r.content[r.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(n=n.slice(1))}n&&this.insertNode(s.text(n),o,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,o,n){let r=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),a;w2e.hasOwnProperty(s)&&this.parser.normalizeLists&&tqt(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,n));e:if(l?l.ignore:eqt.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(T2e.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