@unvired/turboforms-embed-sdk 2.0.84 → 2.0.85

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.
@@ -37202,7 +37202,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
37202
37202
  <script>(function(){window.openImagePreviewModal=function(W,$){let L="var(--tf-primary-color, #2586c7)",v="white",I="white";document.querySelector(".tf-embed-sdk")&&window.__unviredThemeData&&(window.__unviredThemeData.primaryColor&&(L=window.__unviredThemeData.primaryColor),window.__unviredThemeData.secondaryColor&&(v=window.__unviredThemeData.secondaryColor),window.__unviredThemeData.backgroundColor&&(I=window.__unviredThemeData.backgroundColor));const l=document.createElement("div");l.style.position="fixed",l.style.top="0",l.style.left="0",l.style.width="100vw",l.style.height="100vh",l.style.backgroundColor="rgba(0, 0, 0, 0.85)",l.style.display="flex",l.style.alignItems="center",l.style.justifyContent="center",l.style.zIndex="999999";const r=document.createElement("div");r.style.width="90vw",r.style.height="90vh",r.style.backgroundColor="#fff",r.style.borderRadius="8px",r.style.display="flex",r.style.flexDirection="column",r.style.overflow="hidden",r.style.boxShadow="0 4px 12px rgba(0,0,0,0.5)";const p=document.createElement("div");p.style.backgroundColor=L,p.style.color=v,p.style.padding="10px 15px",p.style.display="flex",p.style.justifyContent="space-between",p.style.alignItems="center",p.style.position="relative";const y=document.createElement("button");y.innerHTML="Reset",y.title="Reset Zoom",y.style.background="transparent",y.style.border=`1px solid ${v}`,y.style.borderRadius="4px",y.style.color=v,y.style.fontSize="12px",y.style.cursor="pointer",y.style.padding="4px 10px",p.appendChild(y);const d=document.createElement("span");d.textContent=$||"Preview",d.style.fontSize="16px",d.style.fontWeight="500",d.style.whiteSpace="nowrap",d.style.overflow="hidden",d.style.setProperty("color",v,"important"),d.style.textOverflow="ellipsis",d.style.position="absolute",d.style.left="50%",d.style.transform="translateX(-50%)",d.style.maxWidth="50%",p.appendChild(d);const h=document.createElement("button");h.innerHTML="\u2715",h.style.background="transparent",h.style.border="none",h.style.color=v,h.style.fontSize="20px",h.style.cursor="pointer",h.style.padding="0",h.style.lineHeight="1",h.addEventListener("click",t=>{t.stopPropagation(),document.body.removeChild(l)}),p.appendChild(h);const i=document.createElement("div");i.style.flex="1",i.style.display="flex",i.style.alignItems="center",i.style.justifyContent="center",i.style.backgroundColor=I,i.style.overflow="hidden";const u=document.createElement("img");u.src=W,u.style.maxWidth="100%",u.style.maxHeight="100%",u.style.objectFit="contain",u.style.transition="transform 0.2s ease-in-out",i.appendChild(u);let a=1,m=0,f=0;function x(t=!1){const o=i.offsetWidth,e=i.offsetHeight,s=u.offsetWidth*a,g=u.offsetHeight*a,n=Math.abs(s-o)/2,C=Math.abs(g-e)/2;m=Math.max(-n,Math.min(m,n)),f=Math.max(-C,Math.min(f,C)),t?u.style.transition="transform 0.2s ease-in-out":u.style.transition="none",u.style.transform=`translate(${m}px, ${f}px) scale(${a})`}x(),i.addEventListener("wheel",t=>{t.preventDefault();const e=Math.exp((t.deltaY<0?1:-1)*.1);let s=a*e;s<.5&&(s=.5),s>50&&(s=50);const g=s/a,n=i.getBoundingClientRect(),C=n.width/2,D=n.height/2,T=t.clientX-n.left-C,k=t.clientY-n.top-D;m=T-(T-m)*g,f=k-(k-f)*g,a=s,x(!1)},{passive:!1});let b=null;i.addEventListener("touchstart",t=>{t.touches.length===2&&(t.preventDefault(),b=Math.hypot(t.touches[0].clientX-t.touches[1].clientX,t.touches[0].clientY-t.touches[1].clientY))},{passive:!1}),i.addEventListener("touchmove",t=>{if(t.touches.length===2&&b!==null){t.preventDefault();const o=Math.hypot(t.touches[0].clientX-t.touches[1].clientX,t.touches[0].clientY-t.touches[1].clientY),e=o/b;let s=a*e;s<.5&&(s=.5),s>50&&(s=50);const g=s/a,n=i.getBoundingClientRect(),C=n.width/2,D=n.height/2,T=(t.touches[0].clientX+t.touches[1].clientX)/2,k=(t.touches[0].clientY+t.touches[1].clientY)/2,H=T-n.left-C,j=k-n.top-D;m=H-(H-m)*g,f=j-(j-f)*g,a=s,b=o,x(!1)}},{passive:!1}),i.addEventListener("touchend",t=>{t.touches.length<2&&(b=null)});const c=document.createElement("div");c.style.backgroundColor=L,c.style.color=v,c.style.padding="10px 15px",c.style.display="flex",c.style.justifyContent="center",c.style.alignItems="center",c.style.gap="15px";const w=(t,o)=>{const e=document.createElement("button");return e.innerHTML=t,e.title=o,e.style.background="transparent",e.style.border=`1px solid ${v}`,e.style.borderRadius="4px",e.style.color=v,e.style.fontSize="18px",e.style.fontWeight="bold",e.style.cursor="pointer",e.style.width="35px",e.style.height="35px",e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="center",e},_=w("+","Zoom In"),P=w("\u2212","Zoom Out"),B=w("\u2190","Move Left"),S=w("\u2192","Move Right"),X=w("\u2191","Move Up"),Y=w("\u2193","Move Down");c.appendChild(_),c.appendChild(P),c.appendChild(B),c.appendChild(S),c.appendChild(X),c.appendChild(Y);const E=50;_.addEventListener("click",t=>{t.stopPropagation();let o=a+.5;o>50&&(o=50),a=o,x(!0)}),P.addEventListener("click",t=>{t.stopPropagation();let o=a-.5;o<.5&&(o=.5),a=o,x(!0)});let z=null,R=null;const M=(t,o,e)=>{const s=n=>{n.type==="touchstart"&&n.cancelable&&n.preventDefault(),n.stopPropagation(),m+=o,f+=e,x(!0),R=setTimeout(()=>{z=setInterval(()=>{m+=o*.4,f+=e*.4,x(!1)},20)},300)},g=()=>{clearTimeout(R),clearInterval(z)};t.addEventListener("mousedown",s),t.addEventListener("touchstart",s,{passive:!1}),["mouseup","mouseleave","touchend","touchcancel"].forEach(n=>{t.addEventListener(n,g)})};M(B,E,0),M(S,-E,0),M(X,0,E),M(Y,0,-E),y.addEventListener("click",t=>{t.stopPropagation(),a=1,m=0,f=0,x(!0)}),r.appendChild(p),r.appendChild(i),r.appendChild(c),l.addEventListener("click",t=>{t.target===l&&document.body.removeChild(l)}),l.appendChild(r),document.body.appendChild(l)}})();</script>
37203
37203
  <script>(function(){const n=typeof Formio!="undefined"?Formio:typeof window!="undefined"?window.Formio:void 0,a=n&&n.Components&&n.Components.components?n.Components.components.textfield:class{static schema(){return{}}};class i extends a{constructor(o,e,r){super(o,e,r)}static schema(...o){return a.schema({type:"smartId",label:"Smart ID",input:!0,key:"smartId",inputType:"text",inputFormat:"plain",disabled:!0},...o)}static get builderInfo(){return{title:"Smart Id",group:"premium",icon:"id-card-o",weight:40,documentation:"http://help.form.io/userguide/#textfield",schema:i.schema()}}static addTemplate(o,e){Templates.templates[o]=e}get defaultSchema(){return i.schema()}render(){return super.render(this.renderTemplate("input",{input:this.inputInfo}))}attach(o){let e=new Date,r="",s="";if(Number(e.getDate())<=9&&this.component.addLeadingZeros?r="0"+e.getDate():r=e.getDate(),Number(e.getMonth())<=9&&this.component.addLeadingZeros?s="0"+Number(e.getMonth()+1):s=Number(e.getMonth()+1),this.component.addLeadingZeros&&this.component.startCounter!="undefined"&&((this.component.startCounter=="undefined"||this.component.startCounter==null)&&(this.component.startCounter=1),this.component.digitsInConter&&(this.component.startCounter=String(this.component.startCounter).padStart(this.component.digitsInConter,0))),this.component.pattern){let t=this.component.pattern;t.includes("${counter}")?(t=t.replace("${day}",r),t=t.replace("${month}",s),t=t.replace("${year}",e.getFullYear()),t=t.replace("${day}",r),t=t.replace("${counter}",this.component.startCounter),this.setValue(t)):this.resetValue()}return super.attach(o)}}n&&n.Components?n.Components.addComponent("smartId",i):typeof Formio!="undefined"&&Formio.Components&&Formio.Components.addComponent("smartId",i)})();</script>
37204
37204
  <script>(function(){const m=Formio.Components.components.nested;class r extends m{static schema(...t){return m.schema({label:"Columns",key:"columns",type:"columns",columns:[{components:[],width:8,offset:0,push:0,pull:0,size:"md"},{components:[],width:8,offset:0,push:0,pull:0,size:"md"}],clearOnHide:!1,input:!1,tableView:!1,persistent:!1,autoAdjust:!1},...t)}static get builderInfo(){return{title:"Columns",icon:"columns",group:"layout",documentation:"/userguide/form-building/layout-components#columns",showPreview:!1,weight:10,schema:r.schema()}}constructor(t,e,o){super(t,e,o),this.rows=[]}get schema(){var e;const t=_.omit(super.schema,["components"]);return(e=t.columns)==null||e.map((o,s)=>{o.components.map((n,c)=>{const i=_.clone(n);i.internal=!0;const u=this.createComponent(i);delete u.component.internal,t.columns[s].components[c]=u.schema})}),t}get defaultSchema(){return r.schema()}get className(){return`row ${super.className}`}get columnKey(){return`column-${this.id}`}init(){super.init(),this.columns=[],_.each(this.component.columns,(t,e)=>{this.columns[e]=[],t.size||(t.size="md"),t.currentWidth=t.width||0,Array.isArray(t.components)||(t.components=[]),_.each(t.components,o=>{const s=this.createComponent(o);s.column=e,this.columns[e].push(s)})}),this.component.autoAdjust&&this.options.display!=="pdf"&&this.justify(),this.rows=this.groupByRow()}labelIsHidden(){return!0}render(){return super.render(this.renderTemplate("columns",{columnKey:this.columnKey,columnComponents:this.columns.map(t=>this.renderComponents(t))}))}justifyColumn(t,e){const o=_.every(t,i=>!i.visible),s=this.component.columns[e],n=o&&t.length?0:s.width,c=!_.isEqual(n,s.currentWidth);return s.currentWidth=n,c}justify(){return this.columns.reduce((t,e,o)=>this.justifyColumn(e,o)||t,!1)}attach(t){this.loadRefs(t,{[this.columnKey]:"multiple"});const e=super.attach(t);return this.refs[this.columnKey]&&this.refs[this.columnKey].forEach((o,s)=>this.attachComponents(o,this.columns[s],this.component.columns[s].components)),e}get gridSize(){return 12}groupByRow(){const t={stack:[],rows:[]},e=s=>s.component.width,o=_.reduce(this.components,(s,n)=>{const c=[...s.stack,n];return _.sumBy(c,e)<=this.gridSize?(s.stack=c,s):(s.rows=[...s.rows,s.stack],s.stack=[n],s)},t);return _.concat(o.rows,[o.stack])}checkData(t,e,o,s){const n=super.checkData(t,e,o,s);if(this.component.autoAdjust&&this.options.display!=="pdf"&&this.justify()){const i=document.activeElement;i&&(i.tagName==="INPUT"||i.tagName==="TEXTAREA"||i.classList.contains("choices__input"))||this.redraw()}return n}detach(t){super.detach(t)}destroy(){super.destroy(),this.columns=[]}}Formio.Components.addComponent("columns",r)})();</script>
37205
- <script>(function(){var u=Formio.Components;const m=u.components.htmlelement;class l extends m{constructor(e,t,i){super(e,t,i)}static schema(...e){return m.schema({label:"Smart Data Component",key:"sdc",type:"smartdata",tag:"h5",attrs:[{attr:"style",value:"padding: 15px;text-align: center;border: 2px dashed #ddd;"}],content:"Smart Data Component",input:!1,persistent:!1,hidden:!0},...e)}get key(){return _.get(this.component,"key","")}static get builderInfo(){return{title:"Smart Data",icon:"cloud",group:"premium",documentation:"http://help.form.io/userguide/#sdc",weight:30,schema:l.schema()}}get defaultSchema(){return l.schema()}get content(){if(this.builderMode)return this.component.content;const e=_.get(this.root,"submission",{});return this.component.content?this.interpolate(this.component.content,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):""}get singleTags(){return["br","img","hr"]}renderContent(){const e=_.get(this.root,"submission",{});return this.renderTemplate("html",{component:this.component,tag:this.component.tag,attrs:(this.component.attrs||[]).map(t=>({attr:t.attr,value:this.interpolate(t.value,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data})})),content:this.component.label,singleTags:this.singleTags})}render(){return this.component.hidden=!0,super.render(this.renderContent())}async attach(e){this.loadRefs(e,{html:"single"}),logger.info("[TF_SDK:195] \u2705 attach called");let t=this;switch(this.component.dataSrc){case"url":logger.info("[TF_SDK:196] \u2705 inside switch url"),(_.get(this.component,"trigger.prefetch.triggerSDC")==="onFormLoad"||_.get(this.component,"trigger.prefetch.init"))&&await this.executeJS()&&Formio.makeStaticRequest(this.interpolate(this.component.fetchapi.url),(this.component.fetchapi.method||"get").toUpperCase(),null,{headers:this.requestHeaders,noToken:!(this.component.fetchapi&&this.component.fetchapi.authenticate)}).then(function(c){t.assign(c)}),this.on(this.key,async a=>{t.component.trigger&&t.component.trigger.beforefetch&&(logger.info("[TF_SDK:198] \u2705 Executing beforefetch Javascript URL - Button Click"),this.evaluate(t.component.trigger.beforefetch.panel.javascript)),await this.executeJS()&&Formio.makeStaticRequest(this.interpolate(this.component.fetchapi.url),(this.component.fetchapi.method||"get").toUpperCase(),null,{headers:this.requestHeaders,noToken:!(this.component.fetchapi&&this.component.fetchapi.authenticate)}).then(function(h){t.assign(h)})},!0);break;case"workflow":logger.info("[TF_SDK:199] \u2705 inside switch workflow");const r=_.get(this.component,"trigger.prefetch.triggerSDC")==="onFormLoad"||_.get(this.component,"trigger.prefetch.init");r&&(t.component.trigger&&t.component.trigger.beforefetch&&(logger.info("[TF_SDK:200] \u2705 Executing beforefetch Javascript workflow - Init"),this.evaluate(t.component.trigger.beforefetch.panel.javascript)),this.builderMode||await this.executeJS()&&await this.executeworkflow(this.component,this.data,void 0)),(_.get(this.component,"trigger.prefetch.triggerSDC")==="onComponentAction"||_.get(this.component,"trigger.prefetch.triggerbycomponent")||!r)&&this.on(this.key,async a=>{t.component.trigger&&t.component.trigger.beforefetch?(logger.info("[TF_SDK:202] \u2705 Executing beforefetch Javascript workflow - Button Click"),this.builderMode||await this.executeJS()&&await this.executeworkflow(this.component,this.data,a?a.detail:void 0)):this.builderMode||await this.executeworkflow(this.component,this.data,a?a.detail:void 0)},!0);break}return super.attach(e)}assign(e){this.data=e;const t=_.get(this.component,"trigger.postfetch.event","SmartDataEvent");this.emitcustomformioevent(t,this.component,e)}async executeJS(){return this.component.trigger&&this.component.trigger.beforefetch&&(logger.info("[TF_SDK:203] \u2705 Executing beforefetch Javascript code"),await this.evaluate(this.component.trigger.beforefetch.panel.javascript)),!0}executeworkflow(e,t,i){let r=document.getElementsByClassName("sdc-spinner");r&&r.length>0&&(r[0].style.display="flex",r[0].style.justifyContent="center"),i||(i=t?t.equipNr:void 0);let s=this,a="",c="";if(window.formId)a=window.formId;else if(this.root&&this.root.form&&this.root.form.formId)a=this.root.form.formId;else if(this.root&&this.root._form&&this.root._form.formId)a=this.root._form.formId;else if(t&&t.formId)a=t.formId;else if(window.location&&window.location.pathname){const o=window.location.pathname.split("/");o.length>3&&o[3]&&(a=o[3].split(";")[0]||"")}e.fetchapi&&(c=e.fetchapi.workflowname||"");const h=localStorage.getItem("UMP_url")||"",p=localStorage.getItem("token")||"";console.log("[SDC] \u{1F680} Executing workflow:",{workflowName:c,componentKey:e.key,formId:a,eventData:i,formData:t,umpUrl:h||"(not configured in localStorage)"});let f=`formdata=${encodeURIComponent(JSON.stringify(t||{}))}`;if(i)if(typeof i=="object"){const o=encodeURIComponent(JSON.stringify(i));f=f+`&flowinput=${o}&eventdata=${o}`}else{const o=encodeURIComponent(i);f=f+`&flowinput=${o}&eventdata=${o}`}window.ump&&typeof window.ump.logInfo=="function"&&window.ump.logInfo("sdc","executeworkflow()","jwt token - "+p);const g=`${h}/UMP/API/v3/applications/DIGITAL_FORMS/workflow/${c}?${f}`;console.log("[SDC] \u{1F310} Request URL:",g),Formio.makeStaticRequest(g,"POST",null,{headers:{Authorization:"Bearer "+p,Accept:"application/json","Content-type":"application/json"}}).then(function(o){if(console.log("[SDC] \u2705 Workflow response received:",o),window.ump&&typeof window.ump.logInfo=="function"&&window.ump.logInfo("sdc","executeworkflow()","workflowdata - "+JSON.stringify(o)),r&&r.length>0&&(r[0].style.display="none",r[0].style.justifyContent=""),o){try{s.data.error=o.error,o.data!==""?s.data=Object.assign(s.data||{},typeof o.data=="string"?JSON.parse(o.data):o.data):s.data=Object.assign(s.data||{},o.data)}catch(w){o.data!==""&&(s.data=Object.assign(s.data||{},o.data))}s.emitcustomformioevent(s.component.trigger.postfetch.event,s.component,s.data)}}).catch(o=>{console.warn("[SDC] \u26A0\uFE0F Workflow fetch failed (expected in local testing without live UMP backend):",o),window.ump&&typeof window.ump.logInfo=="function"&&window.ump.logInfo("sdc","executeworkflow()","workflowdata error- "+JSON.stringify(o)),r&&r.length>0&&(r[0].style.display="none",r[0].style.justifyContent=""),logger.error("[TF_SDK:205] \u274C Error occured while fetching workflow data:",o),this.emitcustomformioevent("WorkflowExecuteError",this.component,o)})}emitcustomformioevent(e,t,i){if(console.log("[SDC] \u{1F4E2} Emitting custom SDC event:",e,{component:t,data:i}),window.eventtype=i,this.emit(e,{component:t,data:i}),this.component.trigger&&this.component.trigger.postfetch&&this.component.trigger.postfetch.panel&&this.component.trigger.postfetch.panel.javascript)try{this.evaluate(this.component.trigger.postfetch.panel.javascript)}catch(s){console.error("[SDC] Error evaluating postfetch JS:",s)}let r=new CustomEvent("sdcDoneEvent",{detail:{type:e,component:t,data:i}});document.dispatchEvent(r),typeof window.sendEventCallback=="function"&&window.sendEventCallback({type:e,message:e==="WorkflowExecuteError"?"SDC workflow execution failed.":"SDC workflow completed successfully.",errorMessage:e==="WorkflowExecuteError"?i&&i.message?i.message:"SDC workflow error":"",data:{component:t,sdcData:i,key:t?t.key:""}})}}l.requestHeaders={get:function(){let d=this,e=new Formio.Headers;if(this.component.fetchapi&&this.component.fetchapi.headers)try{this.component.fetchapi.headers.forEach(function(t){t.key&&e.set(n.key,d.interpolate(t.value))})}catch(t){logger.warn(t.message)}return e},enumerable:!0,configurable:!0},Formio.Components.addComponent("smartdata",l)})();</script>
37205
+ <script>(function(){var w=Formio.Components;const u=w.components.htmlelement;class g extends u{constructor(o,t,i){super(o,t,i)}static schema(...o){return u.schema({label:"Smart Data Component",key:"sdc",type:"smartdata",tag:"h5",attrs:[{attr:"style",value:"padding: 15px;text-align: center;border: 2px dashed #ddd;"}],content:"Smart Data Component",input:!1,persistent:!1,hidden:!0},...o)}get key(){return _.get(this.component,"key","")}static get builderInfo(){return{title:"Smart Data",icon:"cloud",group:"premium",documentation:"http://help.form.io/userguide/#sdc",weight:30,schema:g.schema()}}get defaultSchema(){return g.schema()}get content(){if(this.builderMode)return this.component.content;const o=_.get(this.root,"submission",{});return this.component.content?this.interpolate(this.component.content,{metadata:o.metadata||{},submission:o,data:this.rootValue,row:this.data}):""}get singleTags(){return["br","img","hr"]}renderContent(){const o=_.get(this.root,"submission",{});return this.renderTemplate("html",{component:this.component,tag:this.component.tag,attrs:(this.component.attrs||[]).map(t=>({attr:t.attr,value:this.interpolate(t.value,{metadata:o.metadata||{},submission:o,data:this.rootValue,row:this.data})})),content:this.component.label,singleTags:this.singleTags})}render(){return this.component.hidden=!0,super.render(this.renderContent())}async attach(o){this.loadRefs(o,{html:"single"}),logger.info("[TF_SDK:195] \u2705 attach called");let t=this;switch(this.component.dataSrc){case"url":logger.info("[TF_SDK:196] \u2705 inside switch url"),(_.get(this.component,"trigger.prefetch.triggerSDC")==="onFormLoad"||_.get(this.component,"trigger.prefetch.init"))&&await this.executeJS()&&Formio.makeStaticRequest(this.interpolate(this.component.fetchapi.url),(this.component.fetchapi.method||"get").toUpperCase(),null,{headers:this.requestHeaders,noToken:!(this.component.fetchapi&&this.component.fetchapi.authenticate)}).then(function(f){t.assign(f)}),this.on(this.key,async c=>{t.component.trigger&&t.component.trigger.beforefetch&&(logger.info("[TF_SDK:198] \u2705 Executing beforefetch Javascript URL - Button Click"),this.evaluate(t.component.trigger.beforefetch.panel.javascript)),await this.executeJS()&&Formio.makeStaticRequest(this.interpolate(this.component.fetchapi.url),(this.component.fetchapi.method||"get").toUpperCase(),null,{headers:this.requestHeaders,noToken:!(this.component.fetchapi&&this.component.fetchapi.authenticate)}).then(function(l){t.assign(l)})},!0);break;case"workflow":logger.info("[TF_SDK:199] \u2705 inside switch workflow");const r=_.get(this.component,"trigger.prefetch.triggerSDC")==="onFormLoad"||_.get(this.component,"trigger.prefetch.init");r&&(t.component.trigger&&t.component.trigger.beforefetch&&(logger.info("[TF_SDK:200] \u2705 Executing beforefetch Javascript workflow - Init"),this.evaluate(t.component.trigger.beforefetch.panel.javascript)),this.builderMode||await this.executeJS()&&await this.executeworkflow(this.component,this.data,void 0)),(_.get(this.component,"trigger.prefetch.triggerSDC")==="onComponentAction"||_.get(this.component,"trigger.prefetch.triggerbycomponent")||!r)&&this.on(this.key,async c=>{t.component.trigger&&t.component.trigger.beforefetch?(logger.info("[TF_SDK:202] \u2705 Executing beforefetch Javascript workflow - Button Click"),this.builderMode||await this.executeJS()&&await this.executeworkflow(this.component,this.data,c?c.detail:void 0)):this.builderMode||await this.executeworkflow(this.component,this.data,c?c.detail:void 0)},!0);break}return super.attach(o)}assign(o){this.data=o;const t=_.get(this.component,"trigger.postfetch.event","SmartDataEvent");this.emitcustomformioevent(t,this.component,o)}async executeJS(){return this.component.trigger&&this.component.trigger.beforefetch&&(logger.info("[TF_SDK:203] \u2705 Executing beforefetch Javascript code"),await this.evaluate(this.component.trigger.beforefetch.panel.javascript)),!0}executeworkflow(o,t,i){let r=document.getElementsByClassName("sdc-spinner");r&&r.length>0&&(r[0].style.display="flex",r[0].style.justifyContent="center"),i||(i=t?t.equipNr:void 0);let a=this,c="",f="";if(window.formId)c=window.formId;else if(this.root&&this.root.form&&this.root.form.formId)c=this.root.form.formId;else if(this.root&&this.root._form&&this.root._form.formId)c=this.root._form.formId;else if(t&&t.formId)c=t.formId;else if(window.location&&window.location.pathname){const e=window.location.pathname.split("/");e.length>3&&e[3]&&(c=e[3].split(";")[0]||"")}o.fetchapi&&(f=o.fetchapi.workflowname||"");let l="";if(window.UMP_url)l=window.UMP_url;else if(this.root&&this.root.options&&this.root.options.umpUrl)l=this.root.options.umpUrl;else if(localStorage.getItem("UMP_url"))l=localStorage.getItem("UMP_url");else if(localStorage.getItem("sso_ump_url"))l=localStorage.getItem("sso_ump_url");else if(localStorage.getItem("login"))try{const e=JSON.parse(localStorage.getItem("login"));e&&e.umpUrl&&(l=e.umpUrl)}catch(e){}l&&(l=l.replace(/\/UMP\/?$/,"").replace(/\/$/,""));let s="";if(window.jwtToken?s=window.jwtToken:window.token?s=window.token:this.root&&this.root.options&&this.root.options.token?s=this.root.options.token:localStorage.getItem("token")?s=localStorage.getItem("token"):localStorage.getItem("sso_token")?s=localStorage.getItem("sso_token"):localStorage.getItem("UNVIRED_JWT_TOKEN_DIGITAL_FORMS")?s=localStorage.getItem("UNVIRED_JWT_TOKEN_DIGITAL_FORMS"):localStorage.getItem("UNVIRED_JWT_TOKEN_undefined")&&(s=localStorage.getItem("UNVIRED_JWT_TOKEN_undefined")),!s||s.trim().length===0)for(let e=0;e<localStorage.length;e++){const m=localStorage.key(e);if(m){const p=localStorage.getItem(m);if(p&&typeof p=="string"&&p.trim().startsWith("eyJ")){s=p.trim();break}}}s&&(s=s.replace(/^Bearer\s+/i,"").trim()),console.log("[SDC] \u{1F680} Executing workflow:",{workflowName:f,componentKey:o.key,formId:c,eventData:i,formData:t,umpUrl:l||"(not configured)",hasToken:!!s});let h=`formdata=${encodeURIComponent(JSON.stringify(t||{}))}`;if(i)if(typeof i=="object"){const e=encodeURIComponent(JSON.stringify(i));h=h+`&flowinput=${e}&eventdata=${e}`}else{const e=encodeURIComponent(i);h=h+`&flowinput=${e}&eventdata=${e}`}window.ump&&typeof window.ump.logInfo=="function"&&window.ump.logInfo("sdc","executeworkflow()","jwt token - "+s);const d=`${l}/UMP/API/v3/applications/DIGITAL_FORMS/workflow/${f}?${h}`;console.log("[SDC] \u{1F310} Request URL:",d),Formio.makeStaticRequest(d,"POST",null,{headers:{Authorization:s?"Bearer "+s:"",Accept:"application/json","Content-type":"application/json"}}).then(function(e){if(console.log("[SDC] \u2705 Workflow response received:",e),window.ump&&typeof window.ump.logInfo=="function"&&window.ump.logInfo("sdc","executeworkflow()","workflowdata - "+JSON.stringify(e)),r&&r.length>0&&(r[0].style.display="none",r[0].style.justifyContent=""),e){try{a.data.error=e.error,e.data!==""?a.data=Object.assign(a.data||{},typeof e.data=="string"?JSON.parse(e.data):e.data):a.data=Object.assign(a.data||{},e.data)}catch(m){e.data!==""&&(a.data=Object.assign(a.data||{},e.data))}a.emitcustomformioevent(a.component.trigger.postfetch.event,a.component,a.data)}}).catch(e=>{console.warn("[SDC] \u26A0\uFE0F Workflow fetch failed (expected in local testing without live UMP backend):",e),window.ump&&typeof window.ump.logInfo=="function"&&window.ump.logInfo("sdc","executeworkflow()","workflowdata error- "+JSON.stringify(e)),r&&r.length>0&&(r[0].style.display="none",r[0].style.justifyContent=""),logger.error("[TF_SDK:205] \u274C Error occured while fetching workflow data:",e),this.emitcustomformioevent("WorkflowExecuteError",this.component,e)})}emitcustomformioevent(o,t,i){if(console.log("[SDC] \u{1F4E2} Emitting custom SDC event:",o,{component:t,data:i}),window.eventtype=i,this.emit(o,{component:t,data:i}),this.component.trigger&&this.component.trigger.postfetch&&this.component.trigger.postfetch.panel&&this.component.trigger.postfetch.panel.javascript)try{this.evaluate(this.component.trigger.postfetch.panel.javascript)}catch(a){console.error("[SDC] Error evaluating postfetch JS:",a)}let r=new CustomEvent("sdcDoneEvent",{detail:{type:o,component:t,data:i}});document.dispatchEvent(r),typeof window.sendEventCallback=="function"&&window.sendEventCallback({type:o,message:o==="WorkflowExecuteError"?"SDC workflow execution failed.":"SDC workflow completed successfully.",errorMessage:o==="WorkflowExecuteError"?i&&i.message?i.message:"SDC workflow error":"",data:{component:t,sdcData:i,key:t?t.key:""}})}}g.requestHeaders={get:function(){let S=this,o=new Formio.Headers;if(this.component.fetchapi&&this.component.fetchapi.headers)try{this.component.fetchapi.headers.forEach(function(t){t.key&&o.set(n.key,S.interpolate(t.value))})}catch(t){logger.warn(t.message)}return o},enumerable:!0,configurable:!0},Formio.Components.addComponent("smartdata",g)})();</script>
37206
37206
  <script>(function(){(function(y){typeof exports=="object"&&typeof module!="undefined"?module.exports=y():typeof define=="function"&&define.amd?define([],y):(typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this).EventEmitter3=y()})(function(){return function y(p,x,w){function o(v,_){if(!x[v]){if(!p[v]){var i=typeof require=="function"&&require;if(!_&&i)return i(v,!0);if(h)return h(v,!0);var e=new Error("Cannot find module '"+v+"'");throw e.code="MODULE_NOT_FOUND",e}var t=x[v]={exports:{}};p[v][0].call(t.exports,function(n){return o(p[v][1][n]||n)},t,t.exports,y,p,x,w)}return x[v].exports}for(var h=typeof require=="function"&&require,m=0;m<w.length;m++)o(w[m]);return o}({1:[function(y,p,x){"use strict";var w=Object.prototype.hasOwnProperty,o="~";function h(){}function m(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function v(e,t,n,u,a){if(typeof n!="function")throw new TypeError("The listener must be a function");var f=new m(n,u||e,a),c=o?o+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],f]:e._events[c].push(f):(e._events[c]=f,e._eventsCount++),e}function _(e,t){--e._eventsCount==0?e._events=new h:delete e._events[t]}function i(){this._events=new h,this._eventsCount=0}Object.create&&(h.prototype=Object.create(null),new h().__proto__||(o=!1)),i.prototype.eventNames=function(){var e,t,n=[];if(this._eventsCount===0)return n;for(t in e=this._events)w.call(e,t)&&n.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},i.prototype.listeners=function(e){var t=o?o+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var u=0,a=n.length,f=new Array(a);u<a;u++)f[u]=n[u].fn;return f},i.prototype.listenerCount=function(e){var t=o?o+e:e,n=this._events[t];return n?n.fn?1:n.length:0},i.prototype.emit=function(e,t,n,u,a,f){var c=o?o+e:e;if(!this._events[c])return!1;var l,r=this._events[c],d=arguments.length;if(r.fn){switch(r.once&&this.removeListener(e,r.fn,void 0,!0),d){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,t),!0;case 3:return r.fn.call(r.context,t,n),!0;case 4:return r.fn.call(r.context,t,n,u),!0;case 5:return r.fn.call(r.context,t,n,u,a),!0;case 6:return r.fn.call(r.context,t,n,u,a,f),!0}for(s=1,l=new Array(d-1);s<d;s++)l[s-1]=arguments[s];r.fn.apply(r.context,l)}else for(var b,g=r.length,s=0;s<g;s++)switch(r[s].once&&this.removeListener(e,r[s].fn,void 0,!0),d){case 1:r[s].fn.call(r[s].context);break;case 2:r[s].fn.call(r[s].context,t);break;case 3:r[s].fn.call(r[s].context,t,n);break;case 4:r[s].fn.call(r[s].context,t,n,u);break;default:if(!l)for(b=1,l=new Array(d-1);b<d;b++)l[b-1]=arguments[b];r[s].fn.apply(r[s].context,l)}return!0},i.prototype.on=function(e,t,n){return v(this,e,t,n,!1)},i.prototype.once=function(e,t,n){return v(this,e,t,n,!0)},i.prototype.removeListener=function(e,t,n,u){var a=o?o+e:e;if(!this._events[a])return this;if(!t)return _(this,a),this;var f=this._events[a];if(f.fn)f.fn!==t||u&&!f.once||n&&f.context!==n||_(this,a);else{for(var c=0,l=[],r=f.length;c<r;c++)(f[c].fn!==t||u&&!f[c].once||n&&f[c].context!==n)&&l.push(f[c]);l.length?this._events[a]=l.length===1?l[0]:l:_(this,a)}return this},i.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&_(this,t)):(this._events=new h,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=o,i.EventEmitter=i,p!==void 0&&(p.exports=i)},{}]},{},[1])(1)})})();</script>
37207
37207
 
37208
37208
  <script>(function(Y,fe){typeof exports=="object"&&typeof module!="undefined"?module.exports=fe():typeof define=="function"&&define.amd?define(fe):(Y=typeof globalThis!="undefined"?globalThis:Y||self).bootstrap=fe()})(this,function(){"use strict";const Y=new Map,fe={set(i,e,t){Y.has(i)||Y.set(i,new Map);const n=Y.get(i);n.has(e)||n.size===0?n.set(e,t):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(i,e)=>Y.has(i)&&Y.get(i).get(e)||null,remove(i,e){if(!Y.has(i))return;const t=Y.get(i);t.delete(e),t.size===0&&Y.delete(i)}},Et="transitionend",hi=i=>(i&&window.CSS&&window.CSS.escape&&(i=i.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),i),ns=i=>i==null?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase(),di=i=>{i.dispatchEvent(new Event(Et))},ie=i=>!(!i||typeof i!="object")&&(i.jquery!==void 0&&(i=i[0]),i.nodeType!==void 0),ae=i=>ie(i)?i.jquery?i[0]:i:typeof i=="string"&&i.length>0?document.querySelector(hi(i)):null,Ce=i=>{if(!ie(i)||i.getClientRects().length===0)return!1;const e=getComputedStyle(i).getPropertyValue("visibility")==="visible",t=i.closest("details:not([open])");if(!t)return e;if(t!==i){const n=i.closest("summary");if(n&&n.parentNode!==t||n===null)return!1}return e},le=i=>!i||i.nodeType!==Node.ELEMENT_NODE||!!i.classList.contains("disabled")||(i.disabled!==void 0?i.disabled:i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false"),ui=i=>{if(!document.documentElement.attachShadow)return null;if(typeof i.getRootNode=="function"){const e=i.getRootNode();return e instanceof ShadowRoot?e:null}return i instanceof ShadowRoot?i:i.parentNode?ui(i.parentNode):null},et=()=>{},ze=i=>{i.offsetHeight},fi=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,At=[],B=()=>document.documentElement.dir==="rtl",z=i=>{var e;e=()=>{const t=fi();if(t){const n=i.NAME,s=t.fn[n];t.fn[n]=i.jQueryInterface,t.fn[n].Constructor=i,t.fn[n].noConflict=()=>(t.fn[n]=s,i.jQueryInterface)}},document.readyState==="loading"?(At.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of At)t()}),At.push(e)):e()},M=(i,e=[],t=i)=>typeof i=="function"?i.call(...e):t,pi=(i,e,t=!0)=>{if(!t)return void M(i);const n=(r=>{if(!r)return 0;let{transitionDuration:a,transitionDelay:c}=window.getComputedStyle(r);const d=Number.parseFloat(a),u=Number.parseFloat(c);return d||u?(a=a.split(",")[0],c=c.split(",")[0],1e3*(Number.parseFloat(a)+Number.parseFloat(c))):0})(e)+5;let s=!1;const o=({target:r})=>{r===e&&(s=!0,e.removeEventListener(Et,o),M(i))};e.addEventListener(Et,o),setTimeout(()=>{s||di(e)},n)},Tt=(i,e,t,n)=>{const s=i.length;let o=i.indexOf(e);return o===-1?!t&&n?i[s-1]:i[0]:(o+=t?1:-1,n&&(o=(o+s)%s),i[Math.max(0,Math.min(o,s-1))])},ss=/[^.]*(?=\..*)\.|.*/,os=/\..*/,rs=/::\d+$/,Ct={};let mi=1;const gi={mouseenter:"mouseover",mouseleave:"mouseout"},as=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 _i(i,e){return e&&`${e}::${mi++}`||i.uidEvent||mi++}function bi(i){const e=_i(i);return i.uidEvent=e,Ct[e]=Ct[e]||{},Ct[e]}function vi(i,e,t=null){return Object.values(i).find(n=>n.callable===e&&n.delegationSelector===t)}function yi(i,e,t){const n=typeof e=="string",s=n?t:e||t;let o=Ei(i);return as.has(o)||(o=i),[n,s,o]}function wi(i,e,t,n,s){if(typeof e!="string"||!i)return;let[o,r,a]=yi(e,t,n);e in gi&&(r=(g=>function(m){if(!m.relatedTarget||m.relatedTarget!==m.delegateTarget&&!m.delegateTarget.contains(m.relatedTarget))return g.call(this,m)})(r));const c=bi(i),d=c[a]||(c[a]={}),u=vi(d,r,o?t:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=_i(r,e.replace(ss,"")),b=o?function(p,g,m){return function _(C){const k=p.querySelectorAll(g);for(let{target:y}=C;y&&y!==this;y=y.parentNode)for(const E of k)if(E===y)return xt(C,{delegateTarget:y}),_.oneOff&&l.off(p,C.type,g,m),m.apply(y,[C])}}(i,t,r):function(p,g){return function m(_){return xt(_,{delegateTarget:p}),m.oneOff&&l.off(p,_.type,g),g.apply(p,[_])}}(i,r);b.delegationSelector=o?t:null,b.callable=r,b.oneOff=s,b.uidEvent=h,d[h]=b,i.addEventListener(a,b,o)}function Ot(i,e,t,n,s){const o=vi(e[t],n,s);o&&(i.removeEventListener(t,o,!!s),delete e[t][o.uidEvent])}function ls(i,e,t,n){const s=e[t]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&Ot(i,e,t,r.callable,r.delegationSelector)}function Ei(i){return i=i.replace(os,""),gi[i]||i}const l={on(i,e,t,n){wi(i,e,t,n,!1)},one(i,e,t,n){wi(i,e,t,n,!0)},off(i,e,t,n){if(typeof e!="string"||!i)return;const[s,o,r]=yi(e,t,n),a=r!==e,c=bi(i),d=c[r]||{},u=e.startsWith(".");if(o===void 0){if(u)for(const h of Object.keys(c))ls(i,c,h,e.slice(1));for(const[h,b]of Object.entries(d)){const p=h.replace(rs,"");a&&!e.includes(p)||Ot(i,c,r,b.callable,b.delegationSelector)}}else{if(!Object.keys(d).length)return;Ot(i,c,r,o,s?t:null)}},trigger(i,e,t){if(typeof e!="string"||!i)return null;const n=fi();let s=null,o=!0,r=!0,a=!1;e!==Ei(e)&&n&&(s=n.Event(e,t),n(i).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const c=xt(new Event(e,{bubbles:o,cancelable:!0}),t);return a&&c.preventDefault(),r&&i.dispatchEvent(c),c.defaultPrevented&&s&&s.preventDefault(),c}};function xt(i,e={}){for(const[t,n]of Object.entries(e))try{i[t]=n}catch(s){Object.defineProperty(i,t,{configurable:!0,get:()=>n})}return i}function Ai(i){if(i==="true")return!0;if(i==="false")return!1;if(i===Number(i).toString())return Number(i);if(i===""||i==="null")return null;if(typeof i!="string")return i;try{return JSON.parse(decodeURIComponent(i))}catch(e){return i}}function kt(i){return i.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const ne={setDataAttribute(i,e,t){i.setAttribute(`data-bs-${kt(e)}`,t)},removeDataAttribute(i,e){i.removeAttribute(`data-bs-${kt(e)}`)},getDataAttributes(i){if(!i)return{};const e={},t=Object.keys(i.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of t){let s=n.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1),e[s]=Ai(i.dataset[n])}return e},getDataAttribute:(i,e)=>Ai(i.getAttribute(`data-bs-${kt(e)}`))};class Re{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,t){const n=ie(t)?ne.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...ie(t)?ne.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[n,s]of Object.entries(t)){const o=e[n],r=ie(o)?"element":ns(o);if(!new RegExp(s).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${s}".`)}}}class U extends Re{constructor(e,t){super(),(e=ae(e))&&(this._element=e,this._config=this._getConfig(t),fe.set(this._element,this.constructor.DATA_KEY,this))}dispose(){fe.remove(this._element,this.constructor.DATA_KEY),l.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){pi(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return fe.get(ae(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return"5.3.8"}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 Lt=i=>{let e=i.getAttribute("data-bs-target");if(!e||e==="#"){let t=i.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return e?e.split(",").map(t=>hi(t)).join(","):null},f={find:(i,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,i)),findOne:(i,e=document.documentElement)=>Element.prototype.querySelector.call(e,i),children:(i,e)=>[].concat(...i.children).filter(t=>t.matches(e)),parents(i,e){const t=[];let n=i.parentNode.closest(e);for(;n;)t.push(n),n=n.parentNode.closest(e);return t},prev(i,e){let t=i.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(i,e){let t=i.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(i){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,i).filter(t=>!le(t)&&Ce(t))},getSelectorFromElement(i){const e=Lt(i);return e&&f.findOne(e)?e:null},getElementFromSelector(i){const e=Lt(i);return e?f.findOne(e):null},getMultipleElementsFromSelector(i){const e=Lt(i);return e?f.find(e):[]}},tt=(i,e="hide")=>{const t=`click.dismiss${i.EVENT_KEY}`,n=i.NAME;l.on(document,t,`[data-bs-dismiss="${n}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),le(this))return;const o=f.getElementFromSelector(this)||this.closest(`.${n}`);i.getOrCreateInstance(o)[e]()})},Ti=".bs.alert",cs=`close${Ti}`,hs=`closed${Ti}`;class qe extends U{static get NAME(){return"alert"}close(){if(l.trigger(this._element,cs).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),l.trigger(this._element,hs),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=qe.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}tt(qe,"close"),z(qe);const Ci='[data-bs-toggle="button"]';class Ve extends U{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){const t=Ve.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}l.on(document,"click.bs.button.data-api",Ci,i=>{i.preventDefault();const e=i.target.closest(Ci);Ve.getOrCreateInstance(e).toggle()}),z(Ve);const Oe=".bs.swipe",ds=`touchstart${Oe}`,us=`touchmove${Oe}`,fs=`touchend${Oe}`,ps=`pointerdown${Oe}`,ms=`pointerup${Oe}`,gs={endCallback:null,leftCallback:null,rightCallback:null},_s={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class it extends Re{constructor(e,t){super(),this._element=e,e&&it.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return gs}static get DefaultType(){return _s}static get NAME(){return"swipe"}dispose(){l.off(this._element,Oe)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),M(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<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&M(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(l.on(this._element,ps,e=>this._start(e)),l.on(this._element,ms,e=>this._end(e)),this._element.classList.add("pointer-event")):(l.on(this._element,ds,e=>this._start(e)),l.on(this._element,us,e=>this._move(e)),l.on(this._element,fs,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType==="pen"||e.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const ce=".bs.carousel",Oi=".data-api",bs="ArrowLeft",vs="ArrowRight",Ke="next",xe="prev",ke="left",nt="right",ys=`slide${ce}`,St=`slid${ce}`,ws=`keydown${ce}`,Es=`mouseenter${ce}`,As=`mouseleave${ce}`,Ts=`dragstart${ce}`,Cs=`load${ce}${Oi}`,Os=`click${ce}${Oi}`,xi="carousel",st="active",ki=".active",Li=".carousel-item",xs=ki+Li,ks={[bs]:nt,[vs]:ke},Ls={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ss={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Le extends U{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=f.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===xi&&this.cycle()}static get Default(){return Ls}static get DefaultType(){return Ss}static get NAME(){return"carousel"}next(){this._slide(Ke)}nextWhenVisible(){!document.hidden&&Ce(this._element)&&this.next()}prev(){this._slide(xe)}pause(){this._isSliding&&di(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?l.one(this._element,St,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void l.one(this._element,St,()=>this.to(e));const n=this._getItemIndex(this._getActive());if(n===e)return;const s=e>n?Ke:xe;this._slide(s,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&l.on(this._element,ws,e=>this._keydown(e)),this._config.pause==="hover"&&(l.on(this._element,Es,()=>this.pause()),l.on(this._element,As,()=>this._maybeEnableCycle())),this._config.touch&&it.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of f.find(".carousel-item img",this._element))l.on(t,Ts,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(ke)),rightCallback:()=>this._slide(this._directionToOrder(nt)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new it(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ks[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=f.findOne(ki,this._indicatorsElement);t.classList.remove(st),t.removeAttribute("aria-current");const n=f.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(st),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),s=e===Ke,o=t||Tt(this._getItems(),n,s,this._config.wrap);if(o===n)return;const r=this._getItemIndex(o),a=h=>l.trigger(this._element,h,{relatedTarget:o,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:r});if(a(ys).defaultPrevented||!n||!o)return;const c=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(r),this._activeElement=o;const d=s?"carousel-item-start":"carousel-item-end",u=s?"carousel-item-next":"carousel-item-prev";o.classList.add(u),ze(o),n.classList.add(d),o.classList.add(d),this._queueCallback(()=>{o.classList.remove(d,u),o.classList.add(st),n.classList.remove(st,u,d),this._isSliding=!1,a(St)},n,this._isAnimated()),c&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return f.findOne(xs,this._element)}_getItems(){return f.find(Li,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return B()?e===ke?xe:Ke:e===ke?Ke:xe}_orderToDirection(e){return B()?e===xe?ke:nt:e===xe?nt:ke}static jQueryInterface(e){return this.each(function(){const t=Le.getOrCreateInstance(this,e);if(typeof e!="number"){if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)})}}l.on(document,Os,"[data-bs-slide], [data-bs-slide-to]",function(i){const e=f.getElementFromSelector(this);if(!e||!e.classList.contains(xi))return;i.preventDefault();const t=Le.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(t.to(n),void t._maybeEnableCycle()):ne.getDataAttribute(this,"slide")==="next"?(t.next(),void t._maybeEnableCycle()):(t.prev(),void t._maybeEnableCycle())}),l.on(window,Cs,()=>{const i=f.find('[data-bs-ride="carousel"]');for(const e of i)Le.getOrCreateInstance(e)}),z(Le);const Xe=".bs.collapse",Ds=`show${Xe}`,$s=`shown${Xe}`,Is=`hide${Xe}`,Ns=`hidden${Xe}`,Ps=`click${Xe}.data-api`,Dt="show",Se="collapse",ot="collapsing",Ms=`:scope .${Se} .${Se}`,$t='[data-bs-toggle="collapse"]',js={parent:null,toggle:!0},Fs={parent:"(null|element)",toggle:"boolean"};class De extends U{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=f.find($t);for(const s of n){const o=f.getSelectorFromElement(s),r=f.find(o).filter(a=>a===this._element);o!==null&&r.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return js}static get DefaultType(){return Fs}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(s=>s!==this._element).map(s=>De.getOrCreateInstance(s,{toggle:!1}))),e.length&&e[0]._isTransitioning||l.trigger(this._element,Ds).defaultPrevented)return;for(const s of e)s.hide();const t=this._getDimension();this._element.classList.remove(Se),this._element.classList.add(ot),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ot),this._element.classList.add(Se,Dt),this._element.style[t]="",l.trigger(this._element,$s)},this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown()||l.trigger(this._element,Is).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,ze(this._element),this._element.classList.add(ot),this._element.classList.remove(Se,Dt);for(const t of this._triggerArray){const n=f.getElementFromSelector(t);n&&!this._isShown(n)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(ot),this._element.classList.add(Se),l.trigger(this._element,Ns)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(Dt)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=ae(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren($t);for(const t of e){const n=f.getElementFromSelector(t);n&&this._addAriaAndCollapsedClass([t],this._isShown(n))}}_getFirstLevelChildren(e){const t=f.find(Ms,this._config.parent);return f.find(e,this._config.parent).filter(n=>!t.includes(n))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const n=De.getOrCreateInstance(this,t);if(typeof e=="string"){if(n[e]===void 0)throw new TypeError(`No method named "${e}"`);n[e]()}})}}l.on(document,Ps,$t,function(i){(i.target.tagName==="A"||i.delegateTarget&&i.delegateTarget.tagName==="A")&&i.preventDefault();for(const e of f.getMultipleElementsFromSelector(this))De.getOrCreateInstance(e,{toggle:!1}).toggle()}),z(De);var $="top",j="bottom",F="right",I="left",rt="auto",$e=[$,j,F,I],pe="start",Ie="end",Si="clippingParents",It="viewport",Ne="popper",Di="reference",Nt=$e.reduce(function(i,e){return i.concat([e+"-"+pe,e+"-"+Ie])},[]),Pt=[].concat($e,[rt]).reduce(function(i,e){return i.concat([e,e+"-"+pe,e+"-"+Ie])},[]),$i="beforeRead",Ii="read",Ni="afterRead",Pi="beforeMain",Mi="main",ji="afterMain",Fi="beforeWrite",Hi="write",Wi="afterWrite",Bi=[$i,Ii,Ni,Pi,Mi,ji,Fi,Hi,Wi];function J(i){return i?(i.nodeName||"").toLowerCase():null}function H(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function me(i){return i instanceof H(i).Element||i instanceof Element}function R(i){return i instanceof H(i).HTMLElement||i instanceof HTMLElement}function Mt(i){return typeof ShadowRoot!="undefined"&&(i instanceof H(i).ShadowRoot||i instanceof ShadowRoot)}const jt={name:"applyStyles",enabled:!0,phase:"write",fn:function(i){var e=i.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},s=e.attributes[t]||{},o=e.elements[t];R(o)&&J(o)&&(Object.assign(o.style,n),Object.keys(s).forEach(function(r){var a=s[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})},effect:function(i){var e=i.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(n){var s=e.elements[n],o=e.attributes[n]||{},r=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(function(a,c){return a[c]="",a},{});R(s)&&J(s)&&(Object.assign(s.style,r),Object.keys(o).forEach(function(a){s.removeAttribute(a)}))})}},requires:["computeStyles"]};function Z(i){return i.split("-")[0]}var ge=Math.max,at=Math.min,Pe=Math.round;function Ft(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function zi(){return!/^((?!chrome|android).)*safari/i.test(Ft())}function Me(i,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var n=i.getBoundingClientRect(),s=1,o=1;e&&R(i)&&(s=i.offsetWidth>0&&Pe(n.width)/i.offsetWidth||1,o=i.offsetHeight>0&&Pe(n.height)/i.offsetHeight||1);var r=(me(i)?H(i):window).visualViewport,a=!zi()&&t,c=(n.left+(a&&r?r.offsetLeft:0))/s,d=(n.top+(a&&r?r.offsetTop:0))/o,u=n.width/s,h=n.height/o;return{width:u,height:h,top:d,right:c+u,bottom:d+h,left:c,x:c,y:d}}function Ht(i){var e=Me(i),t=i.offsetWidth,n=i.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:i.offsetLeft,y:i.offsetTop,width:t,height:n}}function Ri(i,e){var t=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(t&&Mt(t)){var n=e;do{if(n&&i.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function se(i){return H(i).getComputedStyle(i)}function Hs(i){return["table","td","th"].indexOf(J(i))>=0}function he(i){return((me(i)?i.ownerDocument:i.document)||window.document).documentElement}function lt(i){return J(i)==="html"?i:i.assignedSlot||i.parentNode||(Mt(i)?i.host:null)||he(i)}function qi(i){return R(i)&&se(i).position!=="fixed"?i.offsetParent:null}function Ye(i){for(var e=H(i),t=qi(i);t&&Hs(t)&&se(t).position==="static";)t=qi(t);return t&&(J(t)==="html"||J(t)==="body"&&se(t).position==="static")?e:t||function(n){var s=/firefox/i.test(Ft());if(/Trident/i.test(Ft())&&R(n)&&se(n).position==="fixed")return null;var o=lt(n);for(Mt(o)&&(o=o.host);R(o)&&["html","body"].indexOf(J(o))<0;){var r=se(o);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||s&&r.willChange==="filter"||s&&r.filter&&r.filter!=="none")return o;o=o.parentNode}return null}(i)||e}function Wt(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function Ue(i,e,t){return ge(i,at(e,t))}function Vi(i){return Object.assign({},{top:0,right:0,bottom:0,left:0},i)}function Ki(i,e){return e.reduce(function(t,n){return t[n]=i,t},{})}const Xi={name:"arrow",enabled:!0,phase:"main",fn:function(i){var e,t=i.state,n=i.name,s=i.options,o=t.elements.arrow,r=t.modifiersData.popperOffsets,a=Z(t.placement),c=Wt(a),d=[I,F].indexOf(a)>=0?"height":"width";if(o&&r){var u=function(O,T){return Vi(typeof(O=typeof O=="function"?O(Object.assign({},T.rects,{placement:T.placement})):O)!="number"?O:Ki(O,$e))}(s.padding,t),h=Ht(o),b=c==="y"?$:I,p=c==="y"?j:F,g=t.rects.reference[d]+t.rects.reference[c]-r[c]-t.rects.popper[d],m=r[c]-t.rects.reference[c],_=Ye(o),C=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,k=g/2-m/2,y=u[b],E=C-h[d]-u[p],v=C/2-h[d]/2+k,w=Ue(y,v,E),A=c;t.modifiersData[n]=((e={})[A]=w,e.centerOffset=w-v,e)}},effect:function(i){var e=i.state,t=i.options.element,n=t===void 0?"[data-popper-arrow]":t;n!=null&&(typeof n!="string"||(n=e.elements.popper.querySelector(n)))&&Ri(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function je(i){return i.split("-")[1]}var Ws={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yi(i){var e,t=i.popper,n=i.popperRect,s=i.placement,o=i.variation,r=i.offsets,a=i.position,c=i.gpuAcceleration,d=i.adaptive,u=i.roundOffsets,h=i.isFixed,b=r.x,p=b===void 0?0:b,g=r.y,m=g===void 0?0:g,_=typeof u=="function"?u({x:p,y:m}):{x:p,y:m};p=_.x,m=_.y;var C=r.hasOwnProperty("x"),k=r.hasOwnProperty("y"),y=I,E=$,v=window;if(d){var w=Ye(t),A="clientHeight",O="clientWidth";w===H(t)&&se(w=he(t)).position!=="static"&&a==="absolute"&&(A="scrollHeight",O="scrollWidth"),(s===$||(s===I||s===F)&&o===Ie)&&(E=j,m-=(h&&w===v&&v.visualViewport?v.visualViewport.height:w[A])-n.height,m*=c?1:-1),s!==I&&(s!==$&&s!==j||o!==Ie)||(y=F,p-=(h&&w===v&&v.visualViewport?v.visualViewport.width:w[O])-n.width,p*=c?1:-1)}var T,S=Object.assign({position:a},d&&Ws),W=u===!0?function(G,N){var V=G.x,K=G.y,L=N.devicePixelRatio||1;return{x:Pe(V*L)/L||0,y:Pe(K*L)/L||0}}({x:p,y:m},H(t)):{x:p,y:m};return p=W.x,m=W.y,c?Object.assign({},S,((T={})[E]=k?"0":"",T[y]=C?"0":"",T.transform=(v.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",T)):Object.assign({},S,((e={})[E]=k?m+"px":"",e[y]=C?p+"px":"",e.transform="",e))}const Bt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(i){var e=i.state,t=i.options,n=t.gpuAcceleration,s=n===void 0||n,o=t.adaptive,r=o===void 0||o,a=t.roundOffsets,c=a===void 0||a,d={placement:Z(e.placement),variation:je(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Yi(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Yi(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var ct={passive:!0};const zt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(i){var e=i.state,t=i.instance,n=i.options,s=n.scroll,o=s===void 0||s,r=n.resize,a=r===void 0||r,c=H(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&d.forEach(function(u){u.addEventListener("scroll",t.update,ct)}),a&&c.addEventListener("resize",t.update,ct),function(){o&&d.forEach(function(u){u.removeEventListener("scroll",t.update,ct)}),a&&c.removeEventListener("resize",t.update,ct)}},data:{}};var Bs={left:"right",right:"left",bottom:"top",top:"bottom"};function ht(i){return i.replace(/left|right|bottom|top/g,function(e){return Bs[e]})}var zs={start:"end",end:"start"};function Ui(i){return i.replace(/start|end/g,function(e){return zs[e]})}function Rt(i){var e=H(i);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function qt(i){return Me(he(i)).left+Rt(i).scrollLeft}function Vt(i){var e=se(i),t=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+s+n)}function Qi(i){return["html","body","#document"].indexOf(J(i))>=0?i.ownerDocument.body:R(i)&&Vt(i)?i:Qi(lt(i))}function Qe(i,e){var t;e===void 0&&(e=[]);var n=Qi(i),s=n===((t=i.ownerDocument)==null?void 0:t.body),o=H(n),r=s?[o].concat(o.visualViewport||[],Vt(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(Qe(lt(r)))}function Kt(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function Gi(i,e,t){return e===It?Kt(function(n,s){var o=H(n),r=he(n),a=o.visualViewport,c=r.clientWidth,d=r.clientHeight,u=0,h=0;if(a){c=a.width,d=a.height;var b=zi();(b||!b&&s==="fixed")&&(u=a.offsetLeft,h=a.offsetTop)}return{width:c,height:d,x:u+qt(n),y:h}}(i,t)):me(e)?function(n,s){var o=Me(n,!1,s==="fixed");return o.top=o.top+n.clientTop,o.left=o.left+n.clientLeft,o.bottom=o.top+n.clientHeight,o.right=o.left+n.clientWidth,o.width=n.clientWidth,o.height=n.clientHeight,o.x=o.left,o.y=o.top,o}(e,t):Kt(function(n){var s,o=he(n),r=Rt(n),a=(s=n.ownerDocument)==null?void 0:s.body,c=ge(o.scrollWidth,o.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),d=ge(o.scrollHeight,o.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-r.scrollLeft+qt(n),h=-r.scrollTop;return se(a||o).direction==="rtl"&&(u+=ge(o.clientWidth,a?a.clientWidth:0)-c),{width:c,height:d,x:u,y:h}}(he(i)))}function Ji(i){var e,t=i.reference,n=i.element,s=i.placement,o=s?Z(s):null,r=s?je(s):null,a=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2;switch(o){case $:e={x:a,y:t.y-n.height};break;case j:e={x:a,y:t.y+t.height};break;case F:e={x:t.x+t.width,y:c};break;case I:e={x:t.x-n.width,y:c};break;default:e={x:t.x,y:t.y}}var d=o?Wt(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(r){case pe:e[d]=e[d]-(t[u]/2-n[u]/2);break;case Ie:e[d]=e[d]+(t[u]/2-n[u]/2)}}return e}function Fe(i,e){e===void 0&&(e={});var t=e,n=t.placement,s=n===void 0?i.placement:n,o=t.strategy,r=o===void 0?i.strategy:o,a=t.boundary,c=a===void 0?Si:a,d=t.rootBoundary,u=d===void 0?It:d,h=t.elementContext,b=h===void 0?Ne:h,p=t.altBoundary,g=p!==void 0&&p,m=t.padding,_=m===void 0?0:m,C=Vi(typeof _!="number"?_:Ki(_,$e)),k=b===Ne?Di:Ne,y=i.rects.popper,E=i.elements[g?k:b],v=function(N,V,K,L){var ee=V==="clippingParents"?function(x){var P=Qe(lt(x)),X=["absolute","fixed"].indexOf(se(x).position)>=0&&R(x)?Ye(x):x;return me(X)?P.filter(function(ue){return me(ue)&&Ri(ue,X)&&J(ue)!=="body"}):[]}(N):[].concat(V),te=[].concat(ee,[K]),Be=te[0],D=te.reduce(function(x,P){var X=Gi(N,P,L);return x.top=ge(X.top,x.top),x.right=at(X.right,x.right),x.bottom=at(X.bottom,x.bottom),x.left=ge(X.left,x.left),x},Gi(N,Be,L));return D.width=D.right-D.left,D.height=D.bottom-D.top,D.x=D.left,D.y=D.top,D}(me(E)?E:E.contextElement||he(i.elements.popper),c,u,r),w=Me(i.elements.reference),A=Ji({reference:w,element:y,placement:s}),O=Kt(Object.assign({},y,A)),T=b===Ne?O:w,S={top:v.top-T.top+C.top,bottom:T.bottom-v.bottom+C.bottom,left:v.left-T.left+C.left,right:T.right-v.right+C.right},W=i.modifiersData.offset;if(b===Ne&&W){var G=W[s];Object.keys(S).forEach(function(N){var V=[F,j].indexOf(N)>=0?1:-1,K=[$,j].indexOf(N)>=0?"y":"x";S[N]+=G[K]*V})}return S}function Rs(i,e){e===void 0&&(e={});var t=e,n=t.placement,s=t.boundary,o=t.rootBoundary,r=t.padding,a=t.flipVariations,c=t.allowedAutoPlacements,d=c===void 0?Pt:c,u=je(n),h=u?a?Nt:Nt.filter(function(g){return je(g)===u}):$e,b=h.filter(function(g){return d.indexOf(g)>=0});b.length===0&&(b=h);var p=b.reduce(function(g,m){return g[m]=Fe(i,{placement:m,boundary:s,rootBoundary:o,padding:r})[Z(m)],g},{});return Object.keys(p).sort(function(g,m){return p[g]-p[m]})}const Zi={name:"flip",enabled:!0,phase:"main",fn:function(i){var e=i.state,t=i.options,n=i.name;if(!e.modifiersData[n]._skip){for(var s=t.mainAxis,o=s===void 0||s,r=t.altAxis,a=r===void 0||r,c=t.fallbackPlacements,d=t.padding,u=t.boundary,h=t.rootBoundary,b=t.altBoundary,p=t.flipVariations,g=p===void 0||p,m=t.allowedAutoPlacements,_=e.options.placement,C=Z(_),k=c||(C!==_&&g?function(x){if(Z(x)===rt)return[];var P=ht(x);return[Ui(x),P,Ui(P)]}(_):[ht(_)]),y=[_].concat(k).reduce(function(x,P){return x.concat(Z(P)===rt?Rs(e,{placement:P,boundary:u,rootBoundary:h,padding:d,flipVariations:g,allowedAutoPlacements:m}):P)},[]),E=e.rects.reference,v=e.rects.popper,w=new Map,A=!0,O=y[0],T=0;T<y.length;T++){var S=y[T],W=Z(S),G=je(S)===pe,N=[$,j].indexOf(W)>=0,V=N?"width":"height",K=Fe(e,{placement:S,boundary:u,rootBoundary:h,altBoundary:b,padding:d}),L=N?G?F:I:G?j:$;E[V]>v[V]&&(L=ht(L));var ee=ht(L),te=[];if(o&&te.push(K[W]<=0),a&&te.push(K[L]<=0,K[ee]<=0),te.every(function(x){return x})){O=S,A=!1;break}w.set(S,te)}if(A)for(var Be=function(x){var P=y.find(function(X){var ue=w.get(X);if(ue)return ue.slice(0,x).every(function(vt){return vt})});if(P)return O=P,"break"},D=g?3:1;D>0&&Be(D)!=="break";D--);e.placement!==O&&(e.modifiersData[n]._skip=!0,e.placement=O,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function en(i,e,t){return t===void 0&&(t={x:0,y:0}),{top:i.top-e.height-t.y,right:i.right-e.width+t.x,bottom:i.bottom-e.height+t.y,left:i.left-e.width-t.x}}function tn(i){return[$,F,j,I].some(function(e){return i[e]>=0})}const nn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(i){var e=i.state,t=i.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=Fe(e,{elementContext:"reference"}),a=Fe(e,{altBoundary:!0}),c=en(r,n),d=en(a,s,o),u=tn(c),h=tn(d);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}},sn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(i){var e=i.state,t=i.options,n=i.name,s=t.offset,o=s===void 0?[0,0]:s,r=Pt.reduce(function(u,h){return u[h]=function(b,p,g){var m=Z(b),_=[I,$].indexOf(m)>=0?-1:1,C=typeof g=="function"?g(Object.assign({},p,{placement:b})):g,k=C[0],y=C[1];return k=k||0,y=(y||0)*_,[I,F].indexOf(m)>=0?{x:y,y:k}:{x:k,y}}(h,e.rects,o),u},{}),a=r[e.placement],c=a.x,d=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[n]=r}},Xt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(i){var e=i.state,t=i.name;e.modifiersData[t]=Ji({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},on={name:"preventOverflow",enabled:!0,phase:"main",fn:function(i){var e=i.state,t=i.options,n=i.name,s=t.mainAxis,o=s===void 0||s,r=t.altAxis,a=r!==void 0&&r,c=t.boundary,d=t.rootBoundary,u=t.altBoundary,h=t.padding,b=t.tether,p=b===void 0||b,g=t.tetherOffset,m=g===void 0?0:g,_=Fe(e,{boundary:c,rootBoundary:d,padding:h,altBoundary:u}),C=Z(e.placement),k=je(e.placement),y=!k,E=Wt(C),v=E==="x"?"y":"x",w=e.modifiersData.popperOffsets,A=e.rects.reference,O=e.rects.popper,T=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,S=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),W=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,G={x:0,y:0};if(w){if(o){var N,V=E==="y"?$:I,K=E==="y"?j:F,L=E==="y"?"height":"width",ee=w[E],te=ee+_[V],Be=ee-_[K],D=p?-O[L]/2:0,x=k===pe?A[L]:O[L],P=k===pe?-O[L]:-A[L],X=e.elements.arrow,ue=p&&X?Ht(X):{width:0,height:0},vt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Vn=vt[V],Kn=vt[K],yt=Ue(0,A[L],ue[L]),Er=y?A[L]/2-D-yt-Vn-S.mainAxis:x-yt-Vn-S.mainAxis,Ar=y?-A[L]/2+D+yt+Kn+S.mainAxis:P+yt+Kn+S.mainAxis,ai=e.elements.arrow&&Ye(e.elements.arrow),Tr=ai?E==="y"?ai.clientTop||0:ai.clientLeft||0:0,Xn=(N=W==null?void 0:W[E])!=null?N:0,Cr=ee+Ar-Xn,Yn=Ue(p?at(te,ee+Er-Xn-Tr):te,ee,p?ge(Be,Cr):Be);w[E]=Yn,G[E]=Yn-ee}if(a){var Un,Or=E==="x"?$:I,xr=E==="x"?j:F,Te=w[v],wt=v==="y"?"height":"width",Qn=Te+_[Or],Gn=Te-_[xr],li=[$,I].indexOf(C)!==-1,Jn=(Un=W==null?void 0:W[v])!=null?Un:0,Zn=li?Qn:Te-A[wt]-O[wt]-Jn+S.altAxis,es=li?Te+A[wt]+O[wt]-Jn-S.altAxis:Gn,ts=p&&li?function(kr,Lr,ci){var is=Ue(kr,Lr,ci);return is>ci?ci:is}(Zn,Te,es):Ue(p?Zn:Qn,Te,p?es:Gn);w[v]=ts,G[v]=ts-Te}e.modifiersData[n]=G}},requiresIfExists:["offset"]};function qs(i,e,t){t===void 0&&(t=!1);var n,s,o=R(e),r=R(e)&&function(h){var b=h.getBoundingClientRect(),p=Pe(b.width)/h.offsetWidth||1,g=Pe(b.height)/h.offsetHeight||1;return p!==1||g!==1}(e),a=he(e),c=Me(i,r,t),d={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!t)&&((J(e)!=="body"||Vt(a))&&(d=(n=e)!==H(n)&&R(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Rt(n)),R(e)?((u=Me(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=qt(a))),{x:c.left+d.scrollLeft-u.x,y:c.top+d.scrollTop-u.y,width:c.width,height:c.height}}function Vs(i){var e=new Map,t=new Set,n=[];function s(o){t.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(r){if(!t.has(r)){var a=e.get(r);a&&s(a)}}),n.push(o)}return i.forEach(function(o){e.set(o.name,o)}),i.forEach(function(o){t.has(o.name)||s(o)}),n}var rn={placement:"bottom",modifiers:[],strategy:"absolute"};function an(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function dt(i){i===void 0&&(i={});var e=i,t=e.defaultModifiers,n=t===void 0?[]:t,s=e.defaultOptions,o=s===void 0?rn:s;return function(r,a,c){c===void 0&&(c=o);var d,u,h={placement:"bottom",orderedModifiers:[],options:Object.assign({},rn,o),modifiersData:{},elements:{reference:r,popper:a},attributes:{},styles:{}},b=[],p=!1,g={state:h,setOptions:function(_){var C=typeof _=="function"?_(h.options):_;m(),h.options=Object.assign({},o,h.options,C),h.scrollParents={reference:me(r)?Qe(r):r.contextElement?Qe(r.contextElement):[],popper:Qe(a)};var k,y,E=function(v){var w=Vs(v);return Bi.reduce(function(A,O){return A.concat(w.filter(function(T){return T.phase===O}))},[])}((k=[].concat(n,h.options.modifiers),y=k.reduce(function(v,w){var A=v[w.name];return v[w.name]=A?Object.assign({},A,w,{options:Object.assign({},A.options,w.options),data:Object.assign({},A.data,w.data)}):w,v},{}),Object.keys(y).map(function(v){return y[v]})));return h.orderedModifiers=E.filter(function(v){return v.enabled}),h.orderedModifiers.forEach(function(v){var w=v.name,A=v.options,O=A===void 0?{}:A,T=v.effect;if(typeof T=="function"){var S=T({state:h,name:w,instance:g,options:O});b.push(S||function(){})}}),g.update()},forceUpdate:function(){if(!p){var _=h.elements,C=_.reference,k=_.popper;if(an(C,k)){h.rects={reference:qs(C,Ye(k),h.options.strategy==="fixed"),popper:Ht(k)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(T){return h.modifiersData[T.name]=Object.assign({},T.data)});for(var y=0;y<h.orderedModifiers.length;y++)if(h.reset!==!0){var E=h.orderedModifiers[y],v=E.fn,w=E.options,A=w===void 0?{}:w,O=E.name;typeof v=="function"&&(h=v({state:h,options:A,name:O,instance:g})||h)}else h.reset=!1,y=-1}}},update:(d=function(){return new Promise(function(_){g.forceUpdate(),_(h)})},function(){return u||(u=new Promise(function(_){Promise.resolve().then(function(){u=void 0,_(d())})})),u}),destroy:function(){m(),p=!0}};if(!an(r,a))return g;function m(){b.forEach(function(_){return _()}),b=[]}return g.setOptions(c).then(function(_){!p&&c.onFirstUpdate&&c.onFirstUpdate(_)}),g}}var Ks=dt(),Xs=dt({defaultModifiers:[zt,Xt,Bt,jt]}),Yt=dt({defaultModifiers:[zt,Xt,Bt,jt,sn,Zi,on,Xi,nn]});const ln=Object.freeze(Object.defineProperty({__proto__:null,afterMain:ji,afterRead:Ni,afterWrite:Wi,applyStyles:jt,arrow:Xi,auto:rt,basePlacements:$e,beforeMain:Pi,beforeRead:$i,beforeWrite:Fi,bottom:j,clippingParents:Si,computeStyles:Bt,createPopper:Yt,createPopperBase:Ks,createPopperLite:Xs,detectOverflow:Fe,end:Ie,eventListeners:zt,flip:Zi,hide:nn,left:I,main:Mi,modifierPhases:Bi,offset:sn,placements:Pt,popper:Ne,popperGenerator:dt,popperOffsets:Xt,preventOverflow:on,read:Ii,reference:Di,right:F,start:pe,top:$,variationPlacements:Nt,viewport:It,write:Hi},Symbol.toStringTag,{value:"Module"})),cn="dropdown",_e=".bs.dropdown",Ut=".data-api",Ys="ArrowUp",hn="ArrowDown",Us=`hide${_e}`,Qs=`hidden${_e}`,Gs=`show${_e}`,Js=`shown${_e}`,dn=`click${_e}${Ut}`,un=`keydown${_e}${Ut}`,Zs=`keyup${_e}${Ut}`,He="show",be='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',eo=`${be}.${He}`,ut=".dropdown-menu",to=B()?"top-end":"top-start",io=B()?"top-start":"top-end",no=B()?"bottom-end":"bottom-start",so=B()?"bottom-start":"bottom-end",oo=B()?"left-start":"right-start",ro=B()?"right-start":"left-start",ao={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},lo={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Q extends U{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=f.next(this._element,ut)[0]||f.prev(this._element,ut)[0]||f.findOne(ut,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ao}static get DefaultType(){return lo}static get NAME(){return cn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(le(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!l.trigger(this._element,Gs,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))l.on(t,"mouseover",et);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(He),this._element.classList.add(He),l.trigger(this._element,Js,e)}}hide(){if(le(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(!l.trigger(this._element,Us,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))l.off(t,"mouseover",et);this._popper&&this._popper.destroy(),this._menu.classList.remove(He),this._element.classList.remove(He),this._element.setAttribute("aria-expanded","false"),ne.removeDataAttribute(this._menu,"popper"),l.trigger(this._element,Qs,e)}}_getConfig(e){if(typeof(e=super._getConfig(e)).reference=="object"&&!ie(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${cn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(ln===void 0)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:ie(this._config.reference)?e=ae(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Yt(e,this._menu,t)}_isShown(){return this._menu.classList.contains(He)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return oo;if(e.classList.contains("dropstart"))return ro;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains("dropup")?t?io:to:t?so:no}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,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")&&(ne.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...M(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const n=f.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(s=>Ce(s));n.length&&Tt(n,t,e===hn,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Q.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===2||e.type==="keyup"&&e.key!=="Tab")return;const t=f.find(eo);for(const n of t){const s=Q.getInstance(n);if(!s||s._config.autoClose===!1)continue;const o=e.composedPath(),r=o.includes(s._menu);if(o.includes(s._element)||s._config.autoClose==="inside"&&!r||s._config.autoClose==="outside"&&r||s._menu.contains(e.target)&&(e.type==="keyup"&&e.key==="Tab"||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:s._element};e.type==="click"&&(a.clickEvent=e),s._completeHide(a)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n=e.key==="Escape",s=[Ys,hn].includes(e.key);if(!s&&!n||t&&!n)return;e.preventDefault();const o=this.matches(be)?this:f.prev(this,be)[0]||f.next(this,be)[0]||f.findOne(be,e.delegateTarget.parentNode),r=Q.getOrCreateInstance(o);if(s)return e.stopPropagation(),r.show(),void r._selectMenuItem(e);r._isShown()&&(e.stopPropagation(),r.hide(),o.focus())}}l.on(document,un,be,Q.dataApiKeydownHandler),l.on(document,un,ut,Q.dataApiKeydownHandler),l.on(document,dn,Q.clearMenus),l.on(document,Zs,Q.clearMenus),l.on(document,dn,be,function(i){i.preventDefault(),Q.getOrCreateInstance(this).toggle()}),z(Q);const fn="backdrop",pn="show",mn=`mousedown.bs.${fn}`,co={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ho={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class gn extends Re{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return co}static get DefaultType(){return ho}static get NAME(){return fn}show(e){if(!this._config.isVisible)return void M(e);this._append();const t=this._getElement();this._config.isAnimated&&ze(t),t.classList.add(pn),this._emulateAnimation(()=>{M(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(pn),this._emulateAnimation(()=>{this.dispose(),M(e)})):M(e)}dispose(){this._isAppended&&(l.off(this._element,mn),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("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=ae(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),l.on(e,mn,()=>{M(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){pi(e,this._getElement(),this._config.isAnimated)}}const ft=".bs.focustrap",uo=`focusin${ft}`,fo=`keydown.tab${ft}`,_n="backward",po={autofocus:!0,trapElement:null},mo={autofocus:"boolean",trapElement:"element"};class bn extends Re{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return po}static get DefaultType(){return mo}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),l.off(document,ft),l.on(document,uo,e=>this._handleFocusin(e)),l.on(document,fo,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,l.off(document,ft))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=f.focusableChildren(t);n.length===0?t.focus():this._lastTabNavDirection===_n?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key==="Tab"&&(this._lastTabNavDirection=e.shiftKey?_n:"forward")}}const vn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",yn=".sticky-top",pt="padding-right",wn="margin-right";class Qt{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,pt,t=>t+e),this._setElementAttributes(vn,pt,t=>t+e),this._setElementAttributes(yn,wn,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,pt),this._resetElementAttributes(vn,pt),this._resetElementAttributes(yn,wn)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const s=this.getWidth();this._applyManipulationCallback(e,o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+s)return;this._saveInitialAttribute(o,t);const r=window.getComputedStyle(o).getPropertyValue(t);o.style.setProperty(t,`${n(Number.parseFloat(r))}px`)})}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&ne.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,n=>{const s=ne.getDataAttribute(n,t);s!==null?(ne.removeDataAttribute(n,t),n.style.setProperty(t,s)):n.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(ie(e))t(e);else for(const n of f.find(e,this._element))t(n)}}const q=".bs.modal",go=`hide${q}`,_o=`hidePrevented${q}`,En=`hidden${q}`,An=`show${q}`,bo=`shown${q}`,vo=`resize${q}`,yo=`click.dismiss${q}`,wo=`mousedown.dismiss${q}`,Eo=`keydown.dismiss${q}`,Ao=`click${q}.data-api`,Tn="modal-open",Cn="show",Gt="modal-static",To={backdrop:!0,focus:!0,keyboard:!0},Co={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ve extends U{constructor(e,t){super(e,t),this._dialog=f.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Qt,this._addEventListeners()}static get Default(){return To}static get DefaultType(){return Co}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||l.trigger(this._element,An,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Tn),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(l.trigger(this._element,go).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Cn),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){l.off(window,q),l.off(this._dialog,q),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new gn({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new bn({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 t=f.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),ze(this._element),this._element.classList.add(Cn),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,l.trigger(this._element,bo,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){l.on(this._element,Eo,e=>{e.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),l.on(window,vo,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),l.on(this._element,wo,e=>{l.one(this._element,yo,t=>{this._element===e.target&&this._element===t.target&&(this._config.backdrop!=="static"?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_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(Tn),this._resetAdjustments(),this._scrollBar.reset(),l.trigger(this._element,En)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(l.trigger(this._element,_o).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t==="hidden"||this._element.classList.contains(Gt)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Gt),this._queueCallback(()=>{this._element.classList.remove(Gt),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const s=B()?"paddingLeft":"paddingRight";this._element.style[s]=`${t}px`}if(!n&&e){const s=B()?"paddingRight":"paddingLeft";this._element.style[s]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const n=ve.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0)throw new TypeError(`No method named "${e}"`);n[e](t)}})}}l.on(document,Ao,'[data-bs-toggle="modal"]',function(i){const e=f.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),l.one(e,An,n=>{n.defaultPrevented||l.one(e,En,()=>{Ce(this)&&this.focus()})});const t=f.findOne(".modal.show");t&&ve.getInstance(t).hide(),ve.getOrCreateInstance(e).toggle(this)}),tt(ve),z(ve);const oe=".bs.offcanvas",On=".data-api",Oo=`load${oe}${On}`,xn="show",kn="showing",Ln="hiding",Sn=".offcanvas.show",xo=`show${oe}`,ko=`shown${oe}`,Lo=`hide${oe}`,Dn=`hidePrevented${oe}`,$n=`hidden${oe}`,So=`resize${oe}`,Do=`click${oe}${On}`,$o=`keydown.dismiss${oe}`,Io={backdrop:!0,keyboard:!0,scroll:!1},No={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class re extends U{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Io}static get DefaultType(){return No}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||l.trigger(this._element,xo,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new Qt().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(kn),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(xn),this._element.classList.remove(kn),l.trigger(this._element,ko,{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(l.trigger(this._element,Lo).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ln),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(xn,Ln),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Qt().reset(),l.trigger(this._element,$n)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=!!this._config.backdrop;return new gn({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{this._config.backdrop!=="static"?this.hide():l.trigger(this._element,Dn)}:null})}_initializeFocusTrap(){return new bn({trapElement:this._element})}_addEventListeners(){l.on(this._element,$o,e=>{e.key==="Escape"&&(this._config.keyboard?this.hide():l.trigger(this._element,Dn))})}static jQueryInterface(e){return this.each(function(){const t=re.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}l.on(document,Do,'[data-bs-toggle="offcanvas"]',function(i){const e=f.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),le(this))return;l.one(e,$n,()=>{Ce(this)&&this.focus()});const t=f.findOne(Sn);t&&t!==e&&re.getInstance(t).hide(),re.getOrCreateInstance(e).toggle(this)}),l.on(window,Oo,()=>{for(const i of f.find(Sn))re.getOrCreateInstance(i).show()}),l.on(window,So,()=>{for(const i of f.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(i).position!=="fixed"&&re.getOrCreateInstance(i).hide()}),tt(re),z(re);const In={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],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:[]},Po=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Mo=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,jo=(i,e)=>{const t=i.nodeName.toLowerCase();return e.includes(t)?!Po.has(t)||!!Mo.test(i.nodeValue):e.filter(n=>n instanceof RegExp).some(n=>n.test(t))},Fo={allowList:In,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ho={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Wo={entry:"(string|element|function|null)",selector:"(string|element)"};class Bo extends Re{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Fo}static get DefaultType(){return Ho}static get NAME(){return"TemplateFactory"}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[s,o]of Object.entries(this._config.content))this._setContent(e,o,s);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Wo)}_setContent(e,t,n){const s=f.findOne(n,e);s&&((t=this._resolvePossibleFunction(t))?ie(t)?this._putElementInTemplate(ae(t),s):this._config.html?s.innerHTML=this._maybeSanitize(t):s.textContent=t:s.remove())}_maybeSanitize(e){return this._config.sanitize?function(t,n,s){if(!t.length)return t;if(s&&typeof s=="function")return s(t);const o=new window.DOMParser().parseFromString(t,"text/html"),r=[].concat(...o.body.querySelectorAll("*"));for(const a of r){const c=a.nodeName.toLowerCase();if(!Object.keys(n).includes(c)){a.remove();continue}const d=[].concat(...a.attributes),u=[].concat(n["*"]||[],n[c]||[]);for(const h of d)jo(h,u)||a.removeAttribute(h.nodeName)}return o.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return M(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const zo=new Set(["sanitize","allowList","sanitizeFn"]),Jt="fade",mt="show",Ro=".tooltip-inner",Nn=".modal",Pn="hide.bs.modal",Ge="hover",Zt="focus",ei="click",qo={AUTO:"auto",TOP:"top",RIGHT:B()?"left":"right",BOTTOM:"bottom",LEFT:B()?"right":"left"},Vo={allowList:In,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"},Ko={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class ye extends U{constructor(e,t){if(ln===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,t),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 Vo}static get DefaultType(){return Ko}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),l.off(this._element.closest(Nn),Pn,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=l.trigger(this._element,this.constructor.eventName("show")),t=(ui(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(n),l.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(mt),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))l.on(o,"mouseover",et);this._queueCallback(()=>{l.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!l.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(mt),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))l.off(e,"mouseover",et);this._activeTrigger[ei]=!1,this._activeTrigger[Zt]=!1,this._activeTrigger[Ge]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),l.trigger(this._element,this.constructor.eventName("hidden")))},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 t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Jt,mt),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(s=>{do s+=Math.floor(1e6*Math.random());while(document.getElementById(s));return s})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(Jt),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Bo({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Ro]: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(Jt)}_isShown(){return this.tip&&this.tip.classList.contains(mt)}_createPopper(e){const t=M(this._config.placement,[this,e,this._element]),n=qo[t.toUpperCase()];return Yt(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return M(e,[this._element,this._element])}_getPopperConfig(e){const t={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{...t,...M(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")l.on(this._element,this.constructor.eventName("click"),this._config.selector,n=>{const s=this._initializeOnDelegatedTarget(n);s._activeTrigger[ei]=!(s._isShown()&&s._activeTrigger[ei]),s.toggle()});else if(t!=="manual"){const n=t===Ge?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),s=t===Ge?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");l.on(this._element,n,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusin"?Zt:Ge]=!0,r._enter()}),l.on(this._element,s,this._config.selector,o=>{const r=this._initializeOnDelegatedTarget(o);r._activeTrigger[o.type==="focusout"?Zt:Ge]=r._element.contains(o.relatedTarget),r._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},l.on(this._element.closest(Nn),Pn,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(){this._isShown()||this._isHovered?this._isHovered=!0:(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,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=ne.getDataAttributes(this._element);for(const n of Object.keys(t))zo.has(n)&&delete t[n];return e={...t,...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:ae(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[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=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 t=ye.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}}z(ye);const Xo=".popover-header",Yo=".popover-body",Uo={...ye.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"},Qo={...ye.DefaultType,content:"(null|string|element|function)"};class gt extends ye{static get Default(){return Uo}static get DefaultType(){return Qo}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Xo]:this._getTitle(),[Yo]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=gt.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}}z(gt);const ti=".bs.scrollspy",Go=`activate${ti}`,Mn=`click${ti}`,Jo=`load${ti}.data-api`,We="active",ii="[href]",jn=".nav-link",Zo=`${jn}, .nav-item > ${jn}, .list-group-item`,er={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},tr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Je extends U{constructor(e,t){super(e,t),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 er}static get DefaultType(){return tr}static get NAME(){return"scrollspy"}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=ae(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(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(l.off(this._config.target,Mn),l.on(this._config.target,Mn,ii,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,s=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:s,behavior:"smooth"});n.scrollTop=s}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=r=>this._targetLinks.get(`#${r.target.id}`),n=r=>{this._previousScrollData.visibleEntryTop=r.target.offsetTop,this._process(t(r))},s=(this._rootElement||document.documentElement).scrollTop,o=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const r of e){if(!r.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(r));continue}const a=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&a){if(n(r),!s)return}else o||a||n(r)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=f.find(ii,this._config.target);for(const t of e){if(!t.hash||le(t))continue;const n=f.findOne(decodeURI(t.hash),this._element);Ce(n)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(We),this._activateParents(e),l.trigger(this._element,Go,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))f.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(We);else for(const t of f.parents(e,".nav, .list-group"))for(const n of f.prev(t,Zo))n.classList.add(We)}_clearActiveClass(e){e.classList.remove(We);const t=f.find(`${ii}.${We}`,e);for(const n of t)n.classList.remove(We)}static jQueryInterface(e){return this.each(function(){const t=Je.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}l.on(window,Jo,()=>{for(const i of f.find('[data-bs-spy="scroll"]'))Je.getOrCreateInstance(i)}),z(Je);const we=".bs.tab",ir=`hide${we}`,nr=`hidden${we}`,sr=`show${we}`,or=`shown${we}`,rr=`click${we}`,ar=`keydown${we}`,lr=`load${we}`,cr="ArrowLeft",Fn="ArrowRight",hr="ArrowUp",Hn="ArrowDown",ni="Home",Wn="End",Ee="active",Bn="fade",si="show",zn=".dropdown-toggle",oi=`:not(${zn})`,Rn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ri=`.nav-link${oi}, .list-group-item${oi}, [role="tab"]${oi}, ${Rn}`,dr=`.${Ee}[data-bs-toggle="tab"], .${Ee}[data-bs-toggle="pill"], .${Ee}[data-bs-toggle="list"]`;class Ae extends U{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),l.on(this._element,ar,t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?l.trigger(t,ir,{relatedTarget:e}):null;l.trigger(e,sr,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Ee),this._activate(f.getElementFromSelector(e)),this._queueCallback(()=>{e.getAttribute("role")==="tab"?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),l.trigger(e,or,{relatedTarget:t})):e.classList.add(si)},e,e.classList.contains(Bn)))}_deactivate(e,t){e&&(e.classList.remove(Ee),e.blur(),this._deactivate(f.getElementFromSelector(e)),this._queueCallback(()=>{e.getAttribute("role")==="tab"?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),l.trigger(e,nr,{relatedTarget:t})):e.classList.remove(si)},e,e.classList.contains(Bn)))}_keydown(e){if(![cr,Fn,hr,Hn,ni,Wn].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(s=>!le(s));let n;if([ni,Wn].includes(e.key))n=t[e.key===ni?0:t.length-1];else{const s=[Fn,Hn].includes(e.key);n=Tt(t,e.target,s,!0)}n&&(n.focus({preventScroll:!0}),Ae.getOrCreateInstance(n).show())}_getChildren(){return f.find(ri,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const n of t)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=f.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const s=(o,r)=>{const a=f.findOne(o,n);a&&a.classList.toggle(r,t)};s(zn,Ee),s(".dropdown-menu",si),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Ee)}_getInnerElement(e){return e.matches(ri)?e:f.findOne(ri,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=Ae.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}l.on(document,rr,Rn,function(i){["A","AREA"].includes(this.tagName)&&i.preventDefault(),le(this)||Ae.getOrCreateInstance(this).show()}),l.on(window,lr,()=>{for(const i of f.find(dr))Ae.getOrCreateInstance(i)}),z(Ae);const de=".bs.toast",ur=`mouseover${de}`,fr=`mouseout${de}`,pr=`focusin${de}`,mr=`focusout${de}`,gr=`hide${de}`,_r=`hidden${de}`,br=`show${de}`,vr=`shown${de}`,qn="hide",_t="show",bt="showing",yr={animation:"boolean",autohide:"boolean",delay:"number"},wr={animation:!0,autohide:!0,delay:5e3};class Ze extends U{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return wr}static get DefaultType(){return yr}static get NAME(){return"toast"}show(){l.trigger(this._element,br).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(qn),ze(this._element),this._element.classList.add(_t,bt),this._queueCallback(()=>{this._element.classList.remove(bt),l.trigger(this._element,vr),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(l.trigger(this._element,gr).defaultPrevented||(this._element.classList.add(bt),this._queueCallback(()=>{this._element.classList.add(qn),this._element.classList.remove(bt,_t),l.trigger(this._element,_r)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(_t),super.dispose()}isShown(){return this._element.classList.contains(_t)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){l.on(this._element,ur,e=>this._onInteraction(e,!0)),l.on(this._element,fr,e=>this._onInteraction(e,!1)),l.on(this._element,pr,e=>this._onInteraction(e,!0)),l.on(this._element,mr,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=Ze.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return tt(Ze),z(Ze),{Alert:qe,Button:Ve,Carousel:Le,Collapse:De,Dropdown:Q,Modal:ve,Offcanvas:re,Popover:gt,ScrollSpy:Je,Tab:Ae,Toast:Ze,Tooltip:ye}});</script>
@@ -39089,7 +39089,7 @@ Expecting `+b.join(", ")+", got '"+(this.terminals_[y]||y)+"'":x="Parse error on
39089
39089
 
39090
39090
 
39091
39091
  <div id="sticky-footer" class="footer-hidden" style="display: none;">
39092
- <div class="build-version">SDK v2.0.84</div>
39092
+ <div class="build-version">SDK v2.0.85</div>
39093
39093
 
39094
39094
  <button class="footer-btn footer-btn-secondary" id="prevBtn" style="display:none" onclick="FormOnPrevious()">
39095
39095
  <i class="bi bi-chevron-left"></i> Previous